query
stringlengths
7
5.25k
document
stringlengths
15
1.06M
metadata
dict
negatives
listlengths
3
101
negative_scores
listlengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Returns the date and time as a userfriendly string.
public static function get_formatted_datetime( $datetime, $include_seconds = true, $invalid = 'unknown' ) { if( is_null( $datetime ) || !is_string( $datetime ) ) return $invalid; $time_obj = self::get_datetime_object( $datetime ); return $time_obj->format( 'Y-m-d '.( $include_seconds ? 'g:i:s A, T' : 'g:i A, T' ) ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDateAndTime() {\n\t\t$dateAndTime = $this->date.$this->time;\n\t\treturn date(\"g:iA, l jS F Y\", strtotime($dateAndTime));\n\t}", "public static function getShortPrintableDatetime(): string\n {\n return (new DateTime())->format(\"mdHisv\");\n }", "function buildDateTimeString()\n{\n return buildDateString(getdate()).' '.buildTimeString(localtime(time() , 1));\n}", "public static function getPrintableDatetime(): string\n {\n return (new DateTime())->format(\"Y-m-d\\TH:i:s.vP\");\n }", "public function date(): string\n {\n [$sec, $msec] = explode('.', sprintf('%.3F', $_SERVER[\"REQUEST_TIME_FLOAT\"]));\n return date('Y-m-d H:i:s.', $sec) .$msec .' ';\n }", "function niceDate($time) {\n return date('M d, Y h:i a', strtotime($time)) . \" \";\n}", "public function getDateFormated(){\n\t\treturn date(\"d/m/Y à\\s H:i\", strtotime($this->data));\n\t}", "protected function getTimeStamp()\n {\n return time() . ' (' . strftime('%Y.%m.%d %H:%I:%S', time()) . ')';\n }", "public function toStringShort() {\n return gmdate(\"Y-m-d h:i:s\", $this->sec); }", "public function time() {\n\n\t\t\t$date = $this->date();\n\t\t\t$output = '<time class=\"post-date\" datetime=\"'.$date['datetime'].'\" title=\"'.$date['posted'].'\">'.$date['date'].'</time>'.\"\\n\";\n\n\t\t\treturn $output;\n\t\t}", "function printtime($datetime) {\n\tif ( ! $datetime ) return '';\n\treturn htmlspecialchars(substr($datetime,11,5));\n}", "public function formatDate() {\n\t\t\tif(!empty($this->review_date)) {\n\t\t\t\t$date = new dateTime($this->review_date);\n\t\t\t\treturn $date->format('M jS, Y - H:i');\n\t\t\t}\n\t\t}", "function show_date_time($date_time=null,$type){\t\t\n\t\treturn date($type,strtotime(str_replace(\"-\",\"/\",$date_time)));\n\t}", "protected function _getDateTime()\n {\n return date('Y-m-d', time()) . 'T' . date('H:i:s', time());\n }", "function make_date(){\n return strftime(\"%Y-%m-%d %H:%M:%S\", time());\n}", "public function __toString()\r\n\t{\r\n\t\treturn $this->format('l, jS F, Y');\r\n\t}", "private function getDate(): String\n {\n date_default_timezone_set(\"Europe/Moscow\");\n return (new DateTime())->format('d-m-Y H:i');\n }", "public function getTime() : string\r\n {\r\n return $this->format('H:i:s');\r\n }", "static function formatTime($time){\n return date('j.n.Y G:i:s', $time);\n\n }", "public function toDateTimeString()\n {\n return $this->toLocalizedString('yyyy-MM-dd HH:mm:ss');\n }", "public function dateSend()\n {\n if ($this->time) {\n return $this->time->format('m/d/Y');\n }\n }", "public function __toString() {\n return $this->format('Y-m-d H:i');\n }", "public function formatedBookingDate()\n {\n $timezone = app('UtillRepo')->getTimezone($this->user->timezone);\n $date = \\Carbon\\Carbon::createFromFormat('Y-m-d H:i:s', $this->created_at)->timezone($timezone); \n return $date->format('D d-M-Y').' at '. $date->format(' h:i A');\n }", "function format_time($mode='Y-m-d H:i:s')\r\n {\r\n\t\treturn date($mode,$_SERVER['REQUEST_TIME']);\r\n }", "public function timeFormat();", "public function format()\n {\n return sprintf('%d-%02d-%02d', $this->getYear(), $this->getMonth(), $this->getDay());\n }", "function timestampToString($time) {\n\treturn date('Y-m-d H:i:s', $time);\n}", "public function render(): string\n\t{\n\n\t\tif(isset($this->arguments['date'])){\n\t\t\t$date = $this->arguments['date'];\n\t\t\tif ($date instanceof DateTime) {\n\t\t\t\treturn $date->format('w');\n\t\t\t}\n\t\t}\n\n\t\treturn '';\n\n\t}", "public function date() {\n\n\t\t\t$output = '';\n\n\t\t\t$output['date'] = mysql2date(get_option('date_format'), $this->post->post_date);\n\t\t\t$output['time'] = mysql2date(get_option('time_format'), $this->post->post_date);\n\t\t\t$output['posted'] = sprintf(__('Posted %1$s at %2$s', 'theme translation'), mysql2date(get_option('date_format'), $this->post->post_date), mysql2date(get_option('time_format'), $this->post->post_date));\n\t\t\t$output['datetime'] = mysql2date('c', $this->post->post_date);\n\n\t\t\treturn $output;\n\t\t}", "public function dateStartFriendly(): string\n {\n return Carbon::parse($this->date_start)->format('d-m-Y');\n }", "protected function getTimeStamp() {\n return time().' ('.strftime( '%Y.%m.%d %H:%I:%S', time() ).')';\n }", "public function getDateAdmin()\n {\n return '<strong>' . $this->created_at->format(Config::get('settings.date_format')) . '</strong><br>' . $this->created_at->format(Config::get('settings.time_format'));\n }", "function getTimeString($DateTime){\n return $DateTime->format(\"Y-m-d H:i:s\"); \n}", "public static function dateTimeSgbd()\n {\n return date('Y-m-d H:i:s');\n }", "function util_datetime()\n{\n\t\treturn date(\"Y-m-d H:i:s\");\n}", "function dateView($date,$dateOpt=null,$timeOpt=null) {\n\n //if there's a \":\" in it, we've been passed a time and date. otherwise, just a date\n if (!$date) return false;\n \n if (strstr($date,\":\")) {\n \n $arr = explode(\" \",$date);\n $date = formatDate($arr[0],$dateOpt);\n $time = formatTime($arr[1],$timeOpt);\n\n\t $str = $date.\" \"._I18N_AT.\" \".$time;\n\t return $str;\n\n } else {\n\n return formatDate($date,$dateOpt);\n \n } \n \n}", "function usersCurrentTimeStr() {\n return $this->currentTimeStr($this->controller->User->getTimeZone(\n $this->controller->authd_user_id));\n }", "public function time(): string\n {\n return $this->time;\n }", "protected function makeDateHeaderString() {\n\t\t$timeZone = date(\"Z\");\n\t\t$op = ($timeZone[0] == '-') ? '-' : '+';\n\t\t$timeZone = abs($timeZone);\n\t\t$timeZone = floor($timeZone / 3600) * 100 + ($timeZone % 3600) / 60;\n\t\t$dateString = sprintf(\"%s %s%04d\", date(\"D, j M Y H:i:s\"), $op, $timeZone);\n\t\treturn \"Date: \" . $dateString . $this->_endString;\n\t}", "public function date_as_string ()\n {\n $f = $this->parent_folder ();\n return $f->format_date ($this->date);\n }", "public function __toString()\n {\n $result = array();\n $result[] = \"P\";\n $result[] = $this->formatNumber($this->year, 4, \"Y\");\n $result[] = $this->formatNumber($this->month, 2, \"M\");\n $result[] = $this->formatNumber($this->day, 2, \"D\");\n if (($this->hour !== null) || ($this->minute !== null) || ($this->second !== null)) {\n $result[] = \"T\";\n $result[] = $this->formatNumber($this->hour, 2, \"H\");\n $result[] = $this->formatNumber($this->minute, 2, \"M\");\n $result[] = $this->formatNumber($this->second, 2, \"S\");\n }\n\n return implode(\"\", $result);\n }", "public function toString($date_format = 'short',$time_format = 'medium') {\n // NONE, NONE : 20150522 09:39 AM\n // Time Format :\n // SHORT : 09:39\n // MEDIUM : 09:39:59\n // LONG : 09:39:59 UTC-07:00\n // FULL : 09:39:59 heure avancée du Pacifique\n // Date Format :\n // SHORT : 22/05/15\n // MEDIUM : 22 mai 2015\n // LONG : 22 mai 2015\n // FULL : vendredi 22 mai 2015\n return static::getFormatter($date_format,$time_format)->format($this);\n }", "public function __toString(): string\n {\n return $this->format('Y-m-d H:i:s');\n }", "public function formatAsString()\n {\n return $this->formatTimeAsString(\n $this->value,\n $this->nanoSeconds\n );\n }", "public function __toString()\n {\n return $this->format(\"Y-m-d H:i:s\");\n }", "public function getFormattedCreatedAt(): string\n {\n\n return $this->createdAt->format('d-m-Y H:m');\n\n }", "public function toDateTimeString()\n {\n return $this->format('Y-m-d H:i:s');\n }", "public static function nice($dateString = null, $time = true)\n {\n $date = ($dateString) ? ((int)$dateString) ? $dateString : strtotime($dateString) : time();\n\n $y = (self::isThisYear($date)) ? '' : ' Y';\n\n if (self::isToday($date)) {\n $return = ($time) ? sprintf(CoreModule::t('Today') . ', %s', date(\"H:i\", $date)) : CoreModule::t('Today');\n } elseif (self::wasYesterday($date)) {\n $return = ($time) ? sprintf(CoreModule::t('Yesterday') . ', %s', date(\"H:i\", $date)) : CoreModule::t('Yesterday');\n } else {\n $return = ($time) ? date(\"d F{$y}, H:i\", $date) : date(\"d M{$y}\", $date);\n }\n\n return $return;\n }", "public function getLastLogInFormatted(): string\n {\n return $this->getLastLogIn()->format('Y-m-d H:i:s');\n }", "public function toTimeString()\n {\n return $this->format('H:i:s');\n }", "protected function formatDate($time) {\n\t\treturn strftime(static::dateFormat, $time);\n\t}", "private function currentDate(): string {\n return $this->dateFormatter->format($this->time->getCurrentTime(), 'custom', 'Y-m-d');\n }", "function getFormattedCreatedDateTime()\r\n {\r\n return $this->created_at->format('d/m/Y H:i:s');\r\n }", "public function toString() {\r\n\t\treturn 'User: ' . self::format($this->utime/1000000, false)\r\n\t\t\t. ', System: ' . self::format($this->stime/1000000, false)\r\n\t\t\t. ', Real: ' . self::format($this->rtime, false);\r\n\t}", "function sc_time_format($datetime){\n\treturn date('G:i', $datetime);\n}", "public function __toString(): string\n\t{\n\t\treturn $this->format('Y-m-d H:i:s');\n\t}", "public function formattedDate($showTime = false){\n $dateFormat = ($showTime == false) ? 'd/m/y' : 'd/m/y H:i:s';\n return $this->created_at->format($dateFormat);\n }", "public function __toString()\n\t{\n\t\treturn $this->get(IL_CAL_DATETIME).'<br>';\n\t}", "public function dateTimeFormat();", "public static function toStringTimeShow($pDate)\n {\n return self::changeDatetimeFormat($pDate, 'Y-m-d H:i:s', 'H:i:s');\n }", "function humanizeTime(Date $datetime) : string\n {\n $timeFormat = Config::get('app.time_format');\n $locale = App::getLocale();\n $timezone = Config::get('app.local_timezone');\n\n $datetime->setTimezone(new \\DateTimeZone($timezone));\n\n $displayTime = $datetime->format($timeFormat[$locale]);\n\n if ($locale == 'fr') {\n $displayTime = str_replace(['EST', 'EDT'], ['HNE', 'HAE'], $displayTime);\n }\n\n return $displayTime;\n }", "public function getValue()\n {\n return $this->date->getValue() . 'T' . $this->time->getValue();\n }", "function _elastic_email_format_date($date_field) {\n $data = sprintf('%d/%d/%d', $date_field['month'], $date_field['day'], $date_field['year']);\n $time = sprintf('%s:%s %s', $date_field['hour'], $date_field['minute'], $date_field['ampm']);\n\n return $data . ' ' . $time;\n}", "public function time() {\n return date('j F Y, H:i', $this->time_changed); // 12 October 2010, 09:14\n // return date('j F Y, h:ia', $this->time_changed); // 12 October 2010, 09:14am\n }", "function s2_date_time($time)\n{\n if (!$time)\n return '';\n\n $date = date(Lang::get('Time format'), $time);\n $lang_month_small = Lang::get('Inline Months');\n if (!empty($lang_month_small))\n $date = str_replace(array_keys($lang_month_small), array_values($lang_month_small), $date);\n\n return $date;\n}", "function getFormattedCreatedDateExtended()\r\n {\r\n return $this->created_at->format('d').\" de \".$this->getMes_ptBR((int) $this->created_at->format('m') ).\" de \".$this->created_at->format('Y') ;\r\n }", "function show_date_time(){\r\n\t\techo \"Today is : \", date('l'),\" \",date('jS'),\" of \", date('F'),\", \", date('Y'),\". <br>\";\r\n\r\n\t\t//Set TimeZone : \r\n\t\tdate_default_timezone_set('Asia/Jerusalem');\r\n\t\techo \"The time is : \",date(\"h:i:s , A.\"); // starts with a wrong timezone!\r\n\t}", "public function formatTime()\n { \n return sprintf('%02d:%02d:%02d', ($this->totaltime / 3600), \n ($this->totaltime / 60 % 60), $this->totaltime % 60); \n }", "public static function datetime()\n {\n return date('Y-m-d H:i:s');\n }", "public function __toString()\n {\n if ($this->hh <= 9) {\n $retorno = \"0\" . $this->hh . \":\";\n } else {\n $retorno = $this->hh . \":\";\n }\n\n if ($this->mm <= 9) {\n $retorno .= \"0\" . $this->mm . \":\";\n } else {\n $retorno .= $this->mm . \":\";\n }\n\n if ($this->ss <= 9) {\n $retorno .= \"0\" . $this->ss;\n } else {\n $retorno .= $this->ss;\n }\n return $retorno;\n }", "function circle_posted_time() {\n\t\t$time_string = '<time class=\"entry-date published updated text-uppercase date-published\" datetime=\"%1$s\" data-waypoint=\"waypointEffect\">%2$s</time>';\n\t\tif ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) {\n\t\t\t$time_string = '<time class=\"entry-date published text-uppercase date-published\" datetime=\"%1$s\">%2$s</time><time class=\"published updated text-uppercase date-published\" datetime=\"%3$s\" data-waypoint=\"waypointEffect\">%4$s</time>';\n\t\t}\n\n\t\t$time_string = sprintf( $time_string,\n\t\t\tesc_attr( get_the_date( 'c' ) ),\n\t\t\tesc_html( get_the_date() ),\n\t\t\tesc_attr( get_the_modified_date( 'c' ) ),\n\t\t\tesc_html( get_the_modified_date() )\n\t\t);\n\n\t\techo '<span class=\"posted-on\"><a href=\"' . esc_url( get_permalink() ) . '\" rel=\"bookmark\">' . $time_string . '</a></span>'; // WPCS: XSS OK.\n\t}", "public function formatTime($time) {\n\t\t$timestamp = strtotime($time);\n\t\treturn date(\"F d, Y - g:i A\", $timestamp);\n\t}", "function make_date(){\n date_default_timezone_set(\"America/Mexico_City\");\n return strftime(\"%Y-%m-%d %H:%M:%S\", time());\n}", "public function getFormattedStartDate() {\n\t\t$format_1 = 'Y-m-d';\n\t\t$format_2 = 'Y-m-d H:i';//format coming from web page\n\t\t$format_3 = 'Y-m-d H:i:s';//format coming from mysql\n\t\t$date = null;\n\t\t$formatted_date = \"\";\n\t\t\n\t\tif (!isset($this -> start_time) ) \n\t\t\treturn \"\";\n\t\t$date = DateTime::createFromFormat($format_2, $this -> start_time);\n\t\tif ( $date == false )\n\t\t\t$date = DateTime::createFromFormat($format_3, $this -> start_time);\n\t\t// var_dump($date);\n\t\treturn $date == false ? \"\" : $date->format($format_1) ;\n\t\t\n\t}", "public function getDateCreated() {\n return Yii::app()->dateFormatter->format(\"HH:mm\",$this->createTime).\" \".Yii::app()->dateFormatter->format(Yii::app()->locale->dateFormat,$this->createTime);\n }", "public static function show($time)\n{\n\t$t=new Time($time);return$t->humanFriendly();\n}", "function action_date_title()\n{\n\treturn time();\n}", "public function formatShort()\n {\n switch (true) {\n case $this->seconds < self::TO_MINUTE:\n return sprintf('%d s', $this->seconds);\n case $this->seconds < self::TO_HOUR:\n return sprintf('%d min', $this->toMinutes());\n case $this->seconds < self::TO_DAY:\n return sprintf('%d h', $this->toHours());\n default:\n return sprintf('%d d', $this->toDays());\n }\n }", "protected function getSystemDate() {\n\t\treturn date('Y-m-d H:i:s');\n\t}", "public static function toStringDateTimeShow($pDate)\n {\n return self::changeDatetimeFormat($pDate, 'Y-m-d H:i:s', 'd/m/Y H:i:s');\n }", "public function convertDateTimeToHTML($_dtime) {\n\t\tif(ereg(\"^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})[[:space:]]\n\t\t\t([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}).*$\",\n\t\t\t$_dtime, $_arrdt) !== false) {\n\t\t\treturn sprintf(\"%02.2d-%02.2d-%04.4d %02.2d:%02.2d:%02.2d\",\n\t\t\t\t$_arrdt[3], $_arrdt[2], $_arrdt[1],\n\t\t\t\t$_arrdt[4], $_arrdt[5], $_arrdt[6]);\n\t\t}\n\t\treturn $_dtime;\n\t}", "function displayTime($event, $dayformat = 'D n/j', $timeformat = 'g:ia') {\n\t\t$str = '';\n\t\t$start = $event['starttime'];\n\t\t$end = $event['endtime'];\n\t\t\n\t\tif ($event['allday']) {\n\t\t\t$str .= date($dayformat, $start);\n\t\t\tif ($start != $end)\n\t\t\t\t$str.= ' - '.date($dayformat, $end);\n\t\t}\n\t\telse if ($start == $end) \n\t\t\t$str .= date($dayformat .', ' . $timeformat, $start);\n\t\telse if (date($dayformat, $start) == date($dayformat, $end)) \n\t\t\t$str .= date($dayformat .', ' . $timeformat, $start).date('-' . $timeformat, $end);\n\t\telse \t$str .= date($dayformat, $start).' - '.date($dayformat, $end).', '.date($timeformat, $start);\n\t\t\n\t\treturn $str;\n\t}", "function col_timecreated($values) {\n if ($values->timecreated > 0) {\n return userdate($values->timecreated);\n }\n\n return '';\n }", "function _getFormattedTimestamp()\n {\n return gmdate(\"Y-m-d\\TH:i:s.\\\\0\\\\0\\\\0\\\\Z\", time());\n }", "function format_short_date($val) {\n return format_date($val, '%e %b %y %H:%M:%S');\n }", "public static function time($date){\n if (empty($date)) return;\n $php_date = strtotime($date);\n $formatted_date = date('h:i a', $php_date );\n return $formatted_date;\n\n }", "public function __toString(): string\n {\n return $this->name.' '.$this->date->format('d-m-Y');\n }", "public function getTimeCodeString()\n {\n return '{'.$this->start.'}{'.$this->stop.'}';\n }", "public function display_date(){\n\t\t$display = date('d-m-Y');\n\t\treturn $display;\n\t}", "function getsystime() {\n\n return date('Y-m-d H:i:s');\n\n}", "public function display_date(){\n\t\t$display = date('d/m/Y');\n\t\treturn $display;\n\t}", "public function to_s() {\n $format = \"%04d-%02d-%02d\";\n\n return sprintf($format, $this->year, $this->month, $this->day);\n }", "function __toString()\n\t{\n\t\treturn self::dtToHumanReadableString( $this->elapsedMilliseconds() );\n\t}", "public function getDateFormatted()\n\t{\n\t\t$dateKey = self::arrayKeyExistsNc('date', $this->dimensions);\n\t\t$date = $this->dimensions[$dateKey];\n\n\t\tif ($date == '00000000') {\n\t\t\t$date = '19000101';\n\t\t}\n\n\t\t$hour = '00';\n\t\tif ($hourKey = self::arrayKeyExistsNc('hour', $this->dimensions)) {\n\t\t\t$hour = $this->dimensions[$hourKey];\n\t\t}\n\t\t$result = substr($date, 0, 4) . '-' . substr($date, 4, 2) . '-' . substr($date, 6, 2) . ' ' . $hour . ':00:00';\n\n\t\treturn $result;\n\t}", "public function __toString()\n {\n return $this->getNaam() . \" : \" . $this->getStartDatum()->format('d-m-Y') . (($this->getEindDatum() != null) ? \" - \" . $this->getEindDatum()->format('d-m-Y') : \"\");\n }", "function s2_date($time)\n{\n if (!$time)\n return '';\n\n $date = date(Lang::get('Date format'), $time);\n $lang_month_small = Lang::get('Inline Months');\n if (isset($lang_month_small))\n $date = str_replace(array_keys($lang_month_small), array_values($lang_month_small), $date);\n\n return $date;\n}", "public function __toString(): string\n {\n if ($next = $this->next()) {\n return $next->format('m/d/Y h:i a');\n }\n\n return '';\n }", "public function asString(): string\n {\n $hours = floor($this->value / 3600);\n $minutes = floor($this->value / 60) - ($hours * 60);\n $seconds = $this->value - ($minutes * 60) - ($hours * 3600);\n\n $hours = ($hours < 10) ? \"0{$hours}\" : $hours;\n $minutes = ($minutes < 10) ? \"0{$minutes}\" : $minutes;\n $seconds = ($seconds < 10) ? \"0{$seconds}\" : $seconds;\n\n return \"{$hours}:{$minutes}:{$seconds}\";\n }", "function timeStamp()\n {\n return date(\"YmdHis\");\n }", "function carton_time_format() {\n\treturn apply_filters( 'carton_time_format', get_option( 'time_format' ) );\n}", "function getDateTime(){\r\n return date('jS F Y\\, g:ia',$this->timestamp);\r\n }" ]
[ "0.75725436", "0.74054086", "0.7282219", "0.7277576", "0.7029043", "0.70243347", "0.69990987", "0.69453573", "0.69189364", "0.69099104", "0.6899284", "0.6855658", "0.68280554", "0.6737238", "0.67365897", "0.67299944", "0.67173547", "0.66093576", "0.6604364", "0.65984124", "0.6598212", "0.65925604", "0.6560179", "0.6555636", "0.6515266", "0.6505409", "0.64915305", "0.6473464", "0.6469862", "0.6468631", "0.6466886", "0.6435572", "0.6434809", "0.64287186", "0.6418468", "0.64023614", "0.6397363", "0.6385496", "0.6382455", "0.63744706", "0.6370778", "0.63683194", "0.63640237", "0.6361539", "0.6353204", "0.6349016", "0.6338894", "0.6334745", "0.6334119", "0.6333309", "0.6333309", "0.6324032", "0.6315487", "0.6313983", "0.6306438", "0.63033617", "0.62909544", "0.6290618", "0.6253867", "0.62474847", "0.62457424", "0.62440026", "0.623939", "0.6229176", "0.62211305", "0.62178445", "0.621774", "0.62089", "0.6192772", "0.6189163", "0.6184751", "0.6183002", "0.6178683", "0.61536473", "0.61521333", "0.6143483", "0.61306286", "0.6122166", "0.6116045", "0.61128813", "0.6097102", "0.60967654", "0.60955167", "0.6092401", "0.6089173", "0.6087674", "0.60842174", "0.60819656", "0.60749465", "0.6069534", "0.60691017", "0.60620147", "0.60602355", "0.6056253", "0.60458696", "0.60456526", "0.604558", "0.60440415", "0.60326916", "0.6029881", "0.6029542" ]
0.0
-1
Returns the date as a userfriendly string.
public static function get_formatted_date( $date, $invalid = 'unknown' ) { if( is_null( $date ) || !is_string( $date ) ) return $invalid; $datetime_obj = self::get_datetime_object( $date ); return $datetime_obj->format( 'l, F jS, Y' ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function date_as_string ()\n {\n $f = $this->parent_folder ();\n return $f->format_date ($this->date);\n }", "public function dateStartFriendly(): string\n {\n return Carbon::parse($this->date_start)->format('d-m-Y');\n }", "public function formatDate() {\n\t\t\tif(!empty($this->review_date)) {\n\t\t\t\t$date = new dateTime($this->review_date);\n\t\t\t\treturn $date->format('M jS, Y - H:i');\n\t\t\t}\n\t\t}", "public function toDateString()\n {\n return $this->toLocalizedString('yyyy-MM-dd');\n }", "public function toFormattedDateString()\n {\n return $this->format('M j, Y');\n }", "public function toFormattedDateString()\n {\n return $this->toLocalizedString('MMM d, yyyy');\n }", "private function getPublishedDate(): string\n {\n if ($this->context->get('is_term')) {\n return '';\n }\n\n if (!$this->context->get('date')) {\n return '';\n }\n\n return $this->formatIso8601($this->augmented($this->context->get('date')), false);\n }", "public function display_date(){\n\t\t$display = date('d-m-Y');\n\t\treturn $display;\n\t}", "public function __toString()\r\n\t{\r\n\t\treturn $this->format('l, jS F, Y');\r\n\t}", "public function display_date(){\n\t\t$display = date('d/m/Y');\n\t\treturn $display;\n\t}", "public static function formatDate($date): string\n\t{\n\t\treturn ($timestamp = strtotime($date)) ?\n\t\t\tdate('d/m/Y', $timestamp) :\n\t\t\t'-';\n\t}", "public function format()\n {\n return sprintf('%d-%02d-%02d', $this->getYear(), $this->getMonth(), $this->getDay());\n }", "public function getDate() : string\r\n {\r\n return $this->format('Y-m-d');\r\n }", "public function getDateFormated(){\n\t\treturn date(\"d/m/Y à\\s H:i\", strtotime($this->data));\n\t}", "function format_date($date) {\n return substr($date, 8, 2) . '/' . substr($date, 5, 2) . '/' . substr($date, 0, 4);\n }", "function getFormattedCreatedDateExtended()\r\n {\r\n return $this->created_at->format('d').\" de \".$this->getMes_ptBR((int) $this->created_at->format('m') ).\" de \".$this->created_at->format('Y') ;\r\n }", "public function toDateString()\n {\n return $this->format('Y-m-d');\n }", "public function render(): string\n\t{\n\n\t\tif(isset($this->arguments['date'])){\n\t\t\t$date = $this->arguments['date'];\n\t\t\tif ($date instanceof DateTime) {\n\t\t\t\treturn $date->format('w');\n\t\t\t}\n\t\t}\n\n\t\treturn '';\n\n\t}", "public static function date(\\DateTime $date): string\n {\n return $date->format('Ymd\\THis');\n }", "public static function getShortPrintableDatetime(): string\n {\n return (new DateTime())->format(\"mdHisv\");\n }", "public function dateDisplayFormat($date)\n\t{\n\t\t$day = substr($date,6,2);\n\t\t$month = substr($date,4,2);\n\t\t$year = substr($date,0,4);\n\t\tif ($year=='0000')\n\t\t\treturn '?';\n\t\tif ($month=='00')\n\t\t\treturn '~ ' . $year;\n\t\tif ($day=='00')\n\t\t\treturn '~ ' . $month . '.' . $year;\n\t\t$displayDate = '' . $day . '.' . $month . '.' . $year;\n\t\treturn $displayDate;\n\t\t\n\t}", "private function date()\n {\n $pubDate = $this->article->Journal->JournalIssue->PubDate;\n \n if (isset($pubDate->MedlineDate)) {\n $date = (string)$pubDate->MedlineDate;\n } else {\n $date = implode(' ', (array)$pubDate);\n }\n \n return $date;\n }", "function render_daytitle($date){\n\t\t//returns a formatted date and time for an event\n\t\t$return_string= date (\"D\", $date->get_unix_time());\n\t\t$return_string=$return_string.\"<br />\";\n\t\t$return_string=$return_string.date(\"M d\", $date->get_unix_time());\n\t\treturn $return_string;\n\t}", "protected function makeDateHeaderString() {\n\t\t$timeZone = date(\"Z\");\n\t\t$op = ($timeZone[0] == '-') ? '-' : '+';\n\t\t$timeZone = abs($timeZone);\n\t\t$timeZone = floor($timeZone / 3600) * 100 + ($timeZone % 3600) / 60;\n\t\t$dateString = sprintf(\"%s %s%04d\", date(\"D, j M Y H:i:s\"), $op, $timeZone);\n\t\treturn \"Date: \" . $dateString . $this->_endString;\n\t}", "function getFormattedCreatedDate()\r\n {\r\n return $this->created_at->format('d/m/y');\r\n }", "public function getDate4String($date=null){\n\t\treturn $this->getDateLang(date_format($this->createDate($date),\"d M Y\"));\n\t}", "public function getStrDate()\n {\n return $this->getCurrentTranslation()->getStrDate();\n }", "function sc_us_date_format($date){\n\treturn date('m/d/Y', $date);\n}", "function formatDate($date){\n\tif(validateDate($date)){\n\t\t$year = substr($date,0,4);\n\t\t$month = substr($date,4,2);\n\t\t$day = substr($date,6,2);\n\t\treturn $year.C('STR_YEAR').$month.C('STR_MONTH').$day.C('STR_DAY');\n\t}\n\telse\n\t\treturn C('STR_FORMAT_DATE_FAIL');\n}", "function _elastic_email_format_date($date_field) {\n $data = sprintf('%d/%d/%d', $date_field['month'], $date_field['day'], $date_field['year']);\n $time = sprintf('%s:%s %s', $date_field['hour'], $date_field['minute'], $date_field['ampm']);\n\n return $data . ' ' . $time;\n}", "public function date(): string\n {\n [$sec, $msec] = explode('.', sprintf('%.3F', $_SERVER[\"REQUEST_TIME_FLOAT\"]));\n return date('Y-m-d H:i:s.', $sec) .$msec .' ';\n }", "public function getSmartDate()\r\n {\r\n $now = Date::now();\r\n\r\n //other year\r\n if ($this->year != $now->year)\r\n {\r\n return $this->getValue(self::MASK_DATE_USER);\r\n }\r\n //today\r\n else if ($this->isToday())\r\n {\r\n if ($this->getHour() == 0 && $this->getMinute() == 0 && $this->getSecond())\r\n {\r\n return 'Hoje'; //$this->getValue( self::MASK_DATE_USER );\r\n }\r\n\r\n return $this->getValue(self::MASK_HOUR);\r\n }\r\n //other day\r\n else\r\n {\r\n $date = $this->strftime('%d %b');\r\n $search = array('01', '02', '03', '04', '05', '06', '07', '08', '09');\r\n $replace = array('1', '2', '3', '4', '5', '6', '7', '8', '9');\r\n\r\n return self::correctMonthNames(str_replace($search, $replace, $date));\r\n }\r\n }", "public function formatDate($date = null);", "function formatDate($date){\r\n\t\t\t\t$dateObject = date_create($date);\r\n\t\t\t\treturn date_format($dateObject, \"j F Y\");\r\n\t\t\t}", "private function getDate(): String\n {\n date_default_timezone_set(\"Europe/Moscow\");\n return (new DateTime())->format('d-m-Y H:i');\n }", "function formatDate()\n\t{\n\t\techo date(\"m/d/y\");\n\t}", "public function __toString(): string\n {\n return $this->name.' '.$this->date->format('d-m-Y');\n }", "public static function checkfront_date_format() {\n return (string)static::config()->get('checkfront_date_format');\n }", "public function getDateFormatee() {\n return date('d/m/Y', strtotime($this->date));\n }", "public function nice_name(){\n return 'Anno scolastico '.$this->first_day_first_semester->year.'-'\n .$this->last_day_second_semester->year;\n }", "private function format()\n {\n return config('app.locale') != 'en' ? 'd/m/Y' : 'm/d/Y';\n }", "public function __toString()\n {\n return $this->date;\n }", "public function toDayDateTimeString()\n {\n return $this->format('D, M j, Y g:i A');\n }", "private function currentDate(): string {\n return $this->dateFormatter->format($this->time->getCurrentTime(), 'custom', 'Y-m-d');\n }", "protected function formatDate($date)\n {\n $date = explode('-', $date);\n\n $month = $date[0];\n\n $day = $date[1];\n\n $year = $date[2];\n\n return implode('-', [$year, $month, $day]);\n }", "public static function toStringDateShow($pDate)\n {\n return self::changeDateFormat($pDate, 'Y-m-d', 'd/m/Y');\n }", "private function customDate() {\n\t\tsetlocale(LC_ALL, 'swedish');\n\t\t// setlocale(LC_ALL, 'sv_SE.UTF-8');\n\n\t\treturn utf8_encode(ucfirst(strftime('%A, den %d %B %Y. '))) . strftime('Klockan är [%H:%M:%S].');\n\t\t// return ucfirst(strftime('%A, den %d %B %Y. ')) . strftime('Klockan är [%H:%M:%S].');\n\t}", "public function date() {\n\n\t\t\t$output = '';\n\n\t\t\t$output['date'] = mysql2date(get_option('date_format'), $this->post->post_date);\n\t\t\t$output['time'] = mysql2date(get_option('time_format'), $this->post->post_date);\n\t\t\t$output['posted'] = sprintf(__('Posted %1$s at %2$s', 'theme translation'), mysql2date(get_option('date_format'), $this->post->post_date), mysql2date(get_option('time_format'), $this->post->post_date));\n\t\t\t$output['datetime'] = mysql2date('c', $this->post->post_date);\n\n\t\t\treturn $output;\n\t\t}", "public function formatedBookingDate()\n {\n $timezone = app('UtillRepo')->getTimezone($this->user->timezone);\n $date = \\Carbon\\Carbon::createFromFormat('Y-m-d H:i:s', $this->created_at)->timezone($timezone); \n return $date->format('D d-M-Y').' at '. $date->format(' h:i A');\n }", "public static function short($date){\n if (empty($date)) return;\n $php_date = strtotime($date);\n $formatted_date = date('M. j, Y (D)', $php_date);\n return $formatted_date;\n }", "function shd($date) {\n\tif ($date == \"\") return \"\";\n\treturn htmlspecialchars(date(\"d.m.Y\",strtotime($date)));\n}", "public function convertDateToHTML($_date) {\n\t\tif(ereg(\"^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2}).*$\",\n\t\t\t$_date, $_arrdt) !== false) {\n\t\t\treturn sprintf(\"%02.2d-%02.2d-%04.4d\",\n\t\t\t\t$_arrdt[3], $_arrdt[2], $_arrdt[1]);\n\t\t\t}\n\t\treturn $_date;\n\t}", "function formatDate(string $date): string\n{\n $dateTimeObject = new DateTime($date);\n $formattedDate = $dateTimeObject->format('d F Y');\n\n return $formattedDate;\n}", "public function dateSend()\n {\n if ($this->time) {\n return $this->time->format('m/d/Y');\n }\n }", "public function getFormattedCreateDate();", "public static function getPrintableDatetime(): string\n {\n return (new DateTime())->format(\"Y-m-d\\TH:i:s.vP\");\n }", "function buildDateTimeString()\n{\n return buildDateString(getdate()).' '.buildTimeString(localtime(time() , 1));\n}", "public function getFormattedPaymentDate(): string;", "public function formatedDate($date)\n {\n return $date;\n }", "public function to_s() {\n $format = \"%04d-%02d-%02d\";\n\n return sprintf($format, $this->year, $this->month, $this->day);\n }", "function string_format_complete_date( $p_date ) {\r\n\t$t_timestamp = db_unixtimestamp( $p_date );\r\n\treturn date( config_get( 'complete_date_format' ), $t_timestamp );\r\n}", "public function get_today_name(){\n return $today = date('D');\n }", "public function getDateFormatted()\n\t{\n\t\t$dateKey = self::arrayKeyExistsNc('date', $this->dimensions);\n\t\t$date = $this->dimensions[$dateKey];\n\n\t\tif ($date == '00000000') {\n\t\t\t$date = '19000101';\n\t\t}\n\n\t\t$hour = '00';\n\t\tif ($hourKey = self::arrayKeyExistsNc('hour', $this->dimensions)) {\n\t\t\t$hour = $this->dimensions[$hourKey];\n\t\t}\n\t\t$result = substr($date, 0, 4) . '-' . substr($date, 4, 2) . '-' . substr($date, 6, 2) . ' ' . $hour . ':00:00';\n\n\t\treturn $result;\n\t}", "public function formatDate ($date)\n\t{\n\t\tif (!$date) {\n\t\t\treturn '';\n\t\t}\n\t\treturn date('m/d/Y', strtotime($date));\n\t}", "function show_date_time($date_time=null,$type){\t\t\n\t\treturn date($type,strtotime(str_replace(\"-\",\"/\",$date_time)));\n\t}", "public function getHTMLDatePickerFormatValue(): string\n {\n return Carbon::parse($this->value)->format('Y-m-d');\n }", "function format_short_date($val) {\n return format_date($val, '%e %b %y %H:%M:%S');\n }", "function helper_format_date($date, $format = APP_DATE_TIME_FORMAT){\n return date( $format, strtotime($date) );\n }", "public function getFormattedStartDate() {\n\t\t$format_1 = 'Y-m-d';\n\t\t$format_2 = 'Y-m-d H:i';//format coming from web page\n\t\t$format_3 = 'Y-m-d H:i:s';//format coming from mysql\n\t\t$date = null;\n\t\t$formatted_date = \"\";\n\t\t\n\t\tif (!isset($this -> start_time) ) \n\t\t\treturn \"\";\n\t\t$date = DateTime::createFromFormat($format_2, $this -> start_time);\n\t\tif ( $date == false )\n\t\t\t$date = DateTime::createFromFormat($format_3, $this -> start_time);\n\t\t// var_dump($date);\n\t\treturn $date == false ? \"\" : $date->format($format_1) ;\n\t\t\n\t}", "public static function dateSgbd()\n {\n return date('Y-m-d');\n }", "public function getDateAdmin()\n {\n return '<strong>' . $this->created_at->format(Config::get('settings.date_format')) . '</strong><br>' . $this->created_at->format(Config::get('settings.time_format'));\n }", "public function formatDate($date){\n return date('F j, Y, g: i a', strtotime($date));\n }", "public function __toString()\n {\n $bDate = (null !== $this->getBirthdate())\n ? ' ('.$this->getBirthdate()->format('d/m/Y').')'\n : '';\n\n return $this->getFirstname().' '.$this->getLastname().$bDate;\n }", "static public function formatDate($date)\n {\n $objDate = new DateTime($date);\n return $objDate->format('d/m/Y');\n }", "public function getDayName()\r\n\t{\r\n\t\treturn $this->format('l');\r\n\t}", "public function getCreateDate(): string\n {\n return $this->create_date;\n }", "function codeDate ($date) {\r\n\t $tab = explode (\"-\", $date);\r\n\t $r = $tab[1].\"/\".$tab[2].\"/\".$tab[0];\r\n\t return $r;\r\n\t}", "function codeDate ($date) {\r\n\t $tab = explode (\"-\", $date);\r\n\t $r = $tab[1].\"/\".$tab[2].\"/\".$tab[0];\r\n\t return $r;\r\n\t}", "function codeDate ($date) {\r\n\t $tab = explode (\"-\", $date);\r\n\t $r = $tab[1].\"/\".$tab[2].\"/\".$tab[0];\r\n\t return $r;\r\n\t}", "function codeDate ($date) {\r\n\t $tab = explode (\"-\", $date);\r\n\t $r = $tab[1].\"/\".$tab[2].\"/\".$tab[0];\r\n\t return $r;\r\n\t}", "function codeDate ($date) {\r\n\t $tab = explode (\"-\", $date);\r\n\t $r = $tab[1].\"/\".$tab[2].\"/\".$tab[0];\r\n\t return $r;\r\n\t}", "function codeDate ($date) {\r\n\t $tab = explode (\"-\", $date);\r\n\t $r = $tab[1].\"/\".$tab[2].\"/\".$tab[0];\r\n\t return $r;\r\n\t}", "function codeDate ($date) {\r\n\t $tab = explode (\"-\", $date);\r\n\t $r = $tab[1].\"/\".$tab[2].\"/\".$tab[0];\r\n\t return $r;\r\n\t}", "function codeDate ($date) {\r\n\t $tab = explode (\"-\", $date);\r\n\t $r = $tab[1].\"/\".$tab[2].\"/\".$tab[0];\r\n\t return $r;\r\n\t}", "public function format_date_save($date){ \n\t\t$exp_date = explode('/', $date); \n\t\treturn $exp_date[2].'-'.$exp_date[1].'-'.$exp_date[0];\n\t}", "public static function date_to_string($value)\n\t{\n\t\tif (!preg_match('/(\\d\\d\\d\\d)-(\\d\\d)-(\\d\\d)/', $value, $m)) return '';\n\t\treturn date(conf('format.date'), mktime(0, 0, 0, $m[2], $m[3], $m[1]));\n\t}", "function vads_trans_date() {\n $date = date('YmdHis');\n return $date;\n }", "public function getDateString(){\n $date = Carbon::parse($this->created_at);\n $date->timezone = 'America/Montreal';\n return $date->format('d/m/Y');\n //return $date->format('m/d/Y');\n }", "public function __toString()\n {\n return $this->getNaam() . \" : \" . $this->getStartDatum()->format('d-m-Y') . (($this->getEindDatum() != null) ? \" - \" . $this->getEindDatum()->format('d-m-Y') : \"\");\n }", "function shwThaiDate($dte) { //where $dte is a Date format\r\n\t\treturn date(\"d-m-Y\",strtotime($dte));//formulate date format for displaying\r\n\t}", "public function getDateCreated()\n\t{\n\t\t$date = new Precurio_Date($this->date_created);\n\t\tif($date->isYesterday()) return 'Yesterday';\n\t\tif($date->isToday()) return 'Today';\n\t\t\n\t\treturn $date->get(Precurio_Date::DATE_SHORT);\n\t}", "function DateScheduleTitle($date)\n {\n return\n $this->MyLanguage_GetMessage(\"Schedule_Date_Title\").\": \".\n $this->MyTime_Sort2Date($date[ \"Name\" ]).\n \"\";\n }", "function dateFormat($date)\n{\n\t$date_formated = '';\n \tif($date!='')\n \t{\n \t$date_formated = date('Y-m-d',strtotime($date));\n \t}\n \treturn $date_formated; \n}", "function dateFormat($date)\n{\n\t$date_formated = '';\n \tif($date!='')\n \t{\n \t$date_formated = date('Y-m-d',strtotime($date));\n \t}\n \treturn $date_formated; \n}", "function quasar_entry_date( $echo = true ) {\n\t$format_prefix = ( has_post_format( 'chat' ) || has_post_format( 'status' ) ) ? _x( '%1$s on %2$s', '1: post format name. 2: date', 'quasar' ): '%2$s';\n\n\t$date = sprintf( '<span class=\"date\"><a href=\"%1$s\" title=\"%2$s\" rel=\"bookmark\"><time class=\"entry-date\" datetime=\"%3$s\">%4$s</time></a></span>',\n\t\tesc_url( get_permalink() ),\n\t\tesc_attr( sprintf( __( 'Permalink to %s', 'quasar' ), the_title_attribute( 'echo=0' ) ) ),\n\t\tesc_attr( get_the_date( 'c' ) ),\n\t\tesc_html( sprintf( $format_prefix, get_post_format_string( get_post_format() ), get_the_date() ) )\n\t);\n\n\tif ( $echo )\n\t\techo $date;\n\n\treturn $date;\n}", "public function date_display_format($created_date){\n\t\tif(($created_date != '') && ($created_date != '0000-00-00')){\n\t\t\t$c_d = date('d/m/Y', strtotime($created_date));\n\t\t\treturn $c_d;\n\t\t}\n\t}", "function fulldate($date) {\n\t\tif ($date != \"\") {\n\t\t\t$chunkit = explode(\" \", $date);\n\t\t\t$datechunk = explode(\"-\", $chunkit[0]);\n\t\t\t$timechunk = explode(\":\", $chunkit[1]);\n\t\t\t$year = $datechunk[0];\n\t\t\t$month = $datechunk[1];\n\t\t\t$day = $datechunk[2];\n\t\t\t$hour = $timechunk[0];\n\t\t\t$min = $timechunk[1];\n\t\t\t$sec = $timechunk[2];\n\t\t\t$first = date(\"M j, Y h\", mktime($hour, $min, 0, $month, $day, $year));\n\t\t\t$second = \":\".$min.\" \";\n\t\t\t$third = date(\"a\", mktime($hour, $min, 0, $month, $day, $year));\n\t\t\treturn $first.$second.$third;\n\t\t} else {\n\t\t\treturn \"\"; \n\t\t}\n\t}", "function uwwtd_get_DD_MM_YYYY_from_YYYY_MM_DD_XXX($date) {\n $return = '';\n if (!empty($date)) {\n if (strlen($date) > 10) {\n $date = substr($date, 0, 10);\n }\n $dateObj = new DateTime($date);\n $return = $dateObj->format('d/m/Y');\n }\n return $return;\n}", "protected function getFormattedDate()\n\t{\n\t\t$value = $this->getValue();\n\t\t$defaultText = $this->getDefaultText();\n\t\tif(empty($value) && !empty($defaultText))\n\t\t\treturn $this->getDefaultText();\n\n\t\t$app = $this->getApplication()->getGlobalization();\n\n\t\t//initialized the default class wide formatter\n\t\tif(self::$formatter===null)\n\t\t\tself::$formatter = new DateFormat($app->getCulture());\n\n\t\t$culture = $this->getCulture();\n\n\t\t//return the specific cultural formatted date time\n\t\tif(strlen($culture) && $app->getCulture() !== $culture)\n\t\t{\n\t\t\t$formatter = new DateFormat($culture);\n\t\t\treturn $formatter->format($value,\n\t\t\t\t\t\t\t\t\t $this->getPattern(),\n\t\t\t\t\t\t\t\t\t $this->getCharset());\n\t\t}\n\t\t//return the application wide culture formatted date time.\n\t\t$result = self::$formatter->format($value,\n\t\t\t\t\t\t\t\t\t\t$this->getPattern(),\n\t\t\t\t\t\t\t\t\t\t$this->getCharset());\n\t\treturn $result;\n\t}", "protected function _format_date($date)\n {\n $dateTime = new DateTime($date);\n return $dateTime->format(\"Y-m-d H:i:s\");\n }", "public function __toString()\n\t{\n\t\treturn $this->get(IL_CAL_DATETIME).'<br>';\n\t}" ]
[ "0.770325", "0.76071", "0.7302921", "0.728828", "0.7274972", "0.72448033", "0.71973455", "0.7197177", "0.7147537", "0.71471995", "0.71294945", "0.7102217", "0.70322293", "0.7028123", "0.69389844", "0.6937067", "0.6928089", "0.6905308", "0.689126", "0.6870163", "0.68589884", "0.68511164", "0.6829044", "0.68086934", "0.68039864", "0.6798616", "0.6781857", "0.67812103", "0.6764212", "0.6754896", "0.67537624", "0.6751772", "0.6746986", "0.6739577", "0.6732654", "0.67304355", "0.6728458", "0.67137635", "0.6713334", "0.6695146", "0.6684316", "0.663389", "0.66313595", "0.6616503", "0.66146106", "0.6609335", "0.6604459", "0.66040105", "0.6603026", "0.6602981", "0.6572174", "0.6569458", "0.6562578", "0.65388936", "0.6533648", "0.6532798", "0.6498439", "0.64913744", "0.64839286", "0.6483375", "0.647904", "0.6452277", "0.6440457", "0.64348024", "0.6421913", "0.64152104", "0.6408981", "0.6404537", "0.6404156", "0.6400355", "0.63967156", "0.6394093", "0.6385637", "0.6381624", "0.6380132", "0.6378748", "0.6376153", "0.6376153", "0.6376153", "0.6376153", "0.6376153", "0.6376153", "0.6376153", "0.6376153", "0.6371943", "0.6364011", "0.6344762", "0.6343995", "0.634265", "0.6320312", "0.6316782", "0.6316539", "0.63138646", "0.63138646", "0.63119555", "0.63116187", "0.62982213", "0.629755", "0.629693", "0.62967646", "0.6292092" ]
0.0
-1
Returns the time as a userfriendly string.
public static function get_formatted_time( $time, $include_seconds = true, $invalid = 'unknown' ) { if( is_null( $time ) || !is_string( $time ) ) return $invalid; $time_obj = self::get_datetime_object( $time ); return $time_obj->format( $include_seconds ? 'g:i:s A, T' : 'g:i A, T' ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function toTimeString()\n {\n return $this->format('H:i:s');\n }", "public function getTime() : string\r\n {\r\n return $this->format('H:i:s');\r\n }", "public function timeFormat();", "public function time(): string\n {\n return $this->time;\n }", "public function toTimeString()\n {\n return $this->toLocalizedString('HH:mm:ss');\n }", "static function formatTime($time){\n return date('j.n.Y G:i:s', $time);\n\n }", "static function string_format_time($time){\r\n $h = intval($time / 60);\r\n $min = $time % 60;\r\n $ret = '';\r\n\r\n if($h > 0){\r\n if($h == 1){\r\n $ret .= $h.' heure ';\r\n } else {\r\n $ret .= $h.' heures ';\r\n }\r\n }\r\n\r\n if($min > 0){\r\n $ret .= $min . ' minutes';\r\n }\r\n\r\n if($time == 0){\r\n $ret .= '0 heure';\r\n }\r\n\r\n return $ret;\r\n }", "public function toStringShort() {\n return gmdate(\"Y-m-d h:i:s\", $this->sec); }", "public function formatTime()\n { \n return sprintf('%02d:%02d:%02d', ($this->totaltime / 3600), \n ($this->totaltime / 60 % 60), $this->totaltime % 60); \n }", "public function formatTime($time = null);", "protected function getTimeStamp()\n {\n return time() . ' (' . strftime('%Y.%m.%d %H:%I:%S', time()) . ')';\n }", "public static function getShortPrintableDatetime(): string\n {\n return (new DateTime())->format(\"mdHisv\");\n }", "public function format(): string\n {\n foreach ($this->times as $unit => $value) {\n if ($this->time >= $value) {\n $time = floor($this->time / $value * 100) / 100;\n return \"{$time} {$unit}\";\n }\n }\n\n return round($this->time * 1000) . \" ms\";\n }", "public static function renderTime($time)\n {\n return floor($time / 60) . \" min \" . $time % 60 . \" secondes\";\n }", "public static function show($time)\n{\n\t$t=new Time($time);return$t->humanFriendly();\n}", "function printtime($datetime) {\n\tif ( ! $datetime ) return '';\n\treturn htmlspecialchars(substr($datetime,11,5));\n}", "public static function time_only($time) {\n\t\treturn Self::date_format($time, \"g:i A\");\n\t}", "public static function time($time)\n {\n $current = Time::datetime($time);\n //\n return \"-- Generated in $current ($time)\";\n }", "public function formatTime($time) {\n\t\t$timestamp = strtotime($time);\n\t\treturn date(\"F d, Y - g:i A\", $timestamp);\n\t}", "function niceDate($time) {\n return date('M d, Y h:i a', strtotime($time)) . \" \";\n}", "function display_time ( $time, $ignore_offset=0 ) {\n\tglobal $TZ_OFFSET;\n\t$hour = (int) ( $time / 10000 );\n\tif ( ! $ignore_offset )\n\t$hour += $TZ_OFFSET;\n\t$min = abs( ( $time / 100 ) % 100 );\n\t//Prevent goofy times like 8:00 9:30 9:00 10:30 10:00\n\tif ( $time < 0 && $min > 0 ) $hour = $hour - 1;\n\twhile ( $hour < 0 )\n\t$hour += 24;\n\twhile ( $hour > 23 )\n\t$hour -= 24;\n\tif ( $GLOBALS[\"TIME_FORMAT\"] == \"12\" ) {\n\t\t$ampm = ( $hour >= 12 ) ? \"pm\" : \"am\";\n\t\t$hour %= 12;\n\t\tif ( $hour == 0 )\n\t\t$hour = 12;\n\t\t$ret = sprintf ( \"%d:%02d%s\", $hour, $min, $ampm );\n\t} else {\n\t\t$ret = sprintf ( \"%d:%02d\", $hour, $min );\n\t}\n\treturn $ret;\n}", "public function timeSend()\n {\n if ($this->time) {\n return $this->time->format('H:i:s');\n }\n }", "public function getTimeCodeString()\n {\n return '{'.$this->start.'}{'.$this->stop.'}';\n }", "public function time() {\n\n\t\t\t$date = $this->date();\n\t\t\t$output = '<time class=\"post-date\" datetime=\"'.$date['datetime'].'\" title=\"'.$date['posted'].'\">'.$date['date'].'</time>'.\"\\n\";\n\n\t\t\treturn $output;\n\t\t}", "function formatTime($time){\n if(!$time){\n return '-';\n }\n $seconds = ($time/1000);//\n $minutes =floor($seconds / 60);\n $seconds = ($seconds % 60);//\n $hours = floor($seconds / 3600);\n\n return $hours.':'.$minutes.':'.$seconds;\n }", "public static function getPrintableDatetime(): string\n {\n return (new DateTime())->format(\"Y-m-d\\TH:i:s.vP\");\n }", "function time2str ($t) {\n\tif ($t == '00:00:00' OR $t == '') {\n\t\treturn '';\n\t}\n\tlist($h,$m,$s) = explode(\":\",$t);\n\t$ampm = ($h >= 12) ? \"p.m.\" : \"a.m.\";\n\t// if between 12 - 1 p.m.\n if ($h % 12 == 0) {\n return ($m > 0) ? \"12:\" . $m . \" \" . $ampm : \"Noon\";\n\t } else {\n\t\t\treturn ($m > 0) ? $h % 12 . \":\" . $m . \" \" . $ampm : $h % 12 . \" \" . $ampm;\n\t }\n}", "public function formatAsString()\n {\n return $this->formatTimeAsString(\n $this->value,\n $this->nanoSeconds\n );\n }", "protected function getTimeStamp() {\n return time().' ('.strftime( '%Y.%m.%d %H:%I:%S', time() ).')';\n }", "private function _formatTime($time, $format = 'Y-m-d H:i:s')\n {\n return $time ? TimeUtil::msTime2String($time, $format) : '';\n }", "public function formatTime($value)\n\t{\n\t\treturn $value;\n\t}", "public function gettimeModifiedAttribute()\n {\n return Carbon::parse($this->time)->translatedFormat('g:i A');\n }", "public static function timeunit(/* Long */ $time) {\n if ($time == null)\n return '';\n $sec = (int) $time % 60;\n $min = (int) ($time / 60) % 60;\n $hours = (int) ($time / 3600);\n return \"$hours:\" . sprintf('%02d', $min) . ':' . sprintf('%02d', $sec);\n }", "function format_traveltime($time) {\n\tglobal $message_hour, $message_min;\n\tif (is_null($time)) {\n\t\treturn null;\n\t} elseif ($time > 1) {\n\t\treturn round($time) . \" $message_hour\";\n\t} else {\n\t\treturn 5 * ceil($time * 60 / 5) . \" $message_min\";\n\t}\n}", "public function asString(): string\n {\n $hours = floor($this->value / 3600);\n $minutes = floor($this->value / 60) - ($hours * 60);\n $seconds = $this->value - ($minutes * 60) - ($hours * 3600);\n\n $hours = ($hours < 10) ? \"0{$hours}\" : $hours;\n $minutes = ($minutes < 10) ? \"0{$minutes}\" : $minutes;\n $seconds = ($seconds < 10) ? \"0{$seconds}\" : $seconds;\n\n return \"{$hours}:{$minutes}:{$seconds}\";\n }", "function carton_time_format() {\n\treturn apply_filters( 'carton_time_format', get_option( 'time_format' ) );\n}", "function sc_time_format($datetime){\n\treturn date('G:i', $datetime);\n}", "function usersCurrentTimeStr() {\n return $this->currentTimeStr($this->controller->User->getTimeZone(\n $this->controller->authd_user_id));\n }", "function format_time($mode='Y-m-d H:i:s')\r\n {\r\n\t\treturn date($mode,$_SERVER['REQUEST_TIME']);\r\n }", "function formatTime($tokenList)\n\t{\n\t\t$time = join(\" \",$tokenList);\t\t\n\n\t\t// if am/pm denoted as a or p, remove space between digit and a/p char\t\t\n\t\t$time = preg_replace(\"/([0-9]*[0-9]) (A|P) /i\", \" \\\\1\\\\2 \",$time);\n\t\t\n\t\t// compress small times like 8 - 5 or 8a - 5p\n\n\t\t$time = str_replace(\" - \",\"-\",$time);\n\t\t$time = str_replace(\"- \",\"-\",$time);\n\t\treturn $time;\t\t\n\t}", "function convert_time ($time = '') {\n $str_time = '';\n\n $time_in_second = $time / 1000;\n\n $nb_minutes = $time_in_second / 60;\n $nb_seconds = $time_in_second % 60;\n\n $str_time = $nb_seconds.'s';\n\n if ($nb_minutes >= 60) {\n $nb_heures = $nb_minutes / 60;\n $nb_minutes = $nb_minutes % 60;\n $str_time = floor($nb_heures).'h '.$nb_minutes.'m '.$str_time;\t\t\t\t\t\t\t\t\t\n } else {\n $str_time = floor($nb_minutes).'m '.$str_time;\n }\t\t\n return $str_time;\n\n }", "public function time() {\n return date('j F Y, H:i', $this->time_changed); // 12 October 2010, 09:14\n // return date('j F Y, h:ia', $this->time_changed); // 12 October 2010, 09:14am\n }", "private function GetTimeHHMM() : string {\n\t\t\t$dt = new DateTime();\n\t\t\t$dtz = new DateTimeZone(\"EUROPE/Berlin\");\n\t\t\t$dt->setTimezone($dtz);\n\t\t\treturn $dt->format(\"H:i\");\n\t\t}", "function s2_date_time($time)\n{\n if (!$time)\n return '';\n\n $date = date(Lang::get('Time format'), $time);\n $lang_month_small = Lang::get('Inline Months');\n if (!empty($lang_month_small))\n $date = str_replace(array_keys($lang_month_small), array_values($lang_month_small), $date);\n\n return $date;\n}", "public function getPickupTimeFormattedAttribute()\n {\n $begin_trip = $this->getFormattedTime('begin_trip');\n if($begin_trip == '-') {\n return '';\n }\n return $begin_trip;\n }", "function FormatTime($time) {\n $hour = $time[0];\n $min = $time[1];\n\n $hourModulo12 = $hour % 12;\n if ($hourModulo12 == 0) $hourModulo12 = 12;\n\n if ($hour >= 12)\n $ampm = \"PM\";\n else\n $ampm = \"AM\";\n\n if ($hourModulo12 < 10)\n $hourStr = \"0\" . $hourModulo12;\n else\n $hourStr = $hourModulo12;\n if ($min < 10)\n $minStr = \"0\" . $min;\n else\n $minStr = $min;\n return $hourStr . \":\" . $minStr . $ampm;\n}", "public function get_time_limit_formatted(): string {\n\t\t/**\n\t\t * Filters the lesson time limit.\n\t\t *\n\t\t * @since 4.6.0\n\t\t *\n\t\t * @param string $time_limit The lesson time limit as a H:M:S string.\n\t\t * @param int $time_limit_in_seconds The lesson time limit in seconds.\n\t\t * @param Lesson $lesson The lesson model.\n\t\t *\n\t\t * @ignore\n\t\t */\n\t\treturn apply_filters(\n\t\t\t'learndash_model_lesson_time_limit_formatted',\n\t\t\t$this->get_time_limit_formatted_from_trait(),\n\t\t\t$this->get_time_limit_in_seconds(),\n\t\t\t$this\n\t\t);\n\t}", "function timestampToString($time) {\n\treturn date('Y-m-d H:i:s', $time);\n}", "public function getTimeLabelAttribute()\n {\n $start = Carbon::createFromFormat('Y-m-d H:i:s', $this->start)->format('Y-m-d H:i');\n $end = Carbon::createFromFormat('Y-m-d H:i:s', $this->end)->format('H:i');\n\n return $start . '〜' . $end;\n }", "protected function formatDate($time) {\n\t\treturn strftime(static::dateFormat, $time);\n\t}", "public function get_time() {\r\n\t\t\t$date = $this->get_date( 'U' );\r\n\t\t\treturn is_numeric( $date ) ? $date : time(); //time wrong? use now\r\n\t\t}", "public function displayTime()\n {\n return $this->displayTime;\n }", "public function __toString() {\n return gmdate(\"Y-m-d h:i:s\", $this->sec).sprintf(\".%09u\", $this->nsec).\"-0000\"; }", "public function formatShort()\n {\n switch (true) {\n case $this->seconds < self::TO_MINUTE:\n return sprintf('%d s', $this->seconds);\n case $this->seconds < self::TO_HOUR:\n return sprintf('%d min', $this->toMinutes());\n case $this->seconds < self::TO_DAY:\n return sprintf('%d h', $this->toHours());\n default:\n return sprintf('%d d', $this->toDays());\n }\n }", "function show_date_time($date_time=null,$type){\t\t\n\t\treturn date($type,strtotime(str_replace(\"-\",\"/\",$date_time)));\n\t}", "function get_short_time_format() {\n\t\tstatic $site_short_time_format = FALSE;\n\n\t\tif( !$site_short_time_format ) {\n\t\t\t$site_short_time_format = $this->getConfig( 'site_short_time_format', '%H:%M %Z' );\n\t\t}\n\n\t\treturn $site_short_time_format;\n\t}", "protected function processTime($time)\n {\n return \\PHPExcel_Style_NumberFormat::toFormattedString($time,'hh:mm:ss');\n }", "function time($format, $date = null) {\n\t\treturn CaracoleI18n::strftime($format, strtotime($date));\n\t}", "public function humanize()\n {\n $now = IntlCalendar::fromDateTime(self::now($this->timezone));\n $time = $this->getCalendar()->getTime();\n\n $years = $now->fieldDifference($time, IntlCalendar::FIELD_YEAR);\n $months = $now->fieldDifference($time, IntlCalendar::FIELD_MONTH);\n $days = $now->fieldDifference($time, IntlCalendar::FIELD_DAY_OF_YEAR);\n $hours = $now->fieldDifference($time, IntlCalendar::FIELD_HOUR_OF_DAY);\n $minutes = $now->fieldDifference($time, IntlCalendar::FIELD_MINUTE);\n\n $phrase = null;\n\n if ($years !== 0) {\n $phrase = lang('Time.years', [abs($years)]);\n $before = $years < 0;\n } elseif ($months !== 0) {\n $phrase = lang('Time.months', [abs($months)]);\n $before = $months < 0;\n } elseif ($days !== 0 && (abs($days) >= 7)) {\n $weeks = ceil($days / 7);\n $phrase = lang('Time.weeks', [abs($weeks)]);\n $before = $days < 0;\n } elseif ($days !== 0) {\n $before = $days < 0;\n\n // Yesterday/Tomorrow special cases\n if (abs($days) === 1) {\n return $before ? lang('Time.yesterday') : lang('Time.tomorrow');\n }\n\n $phrase = lang('Time.days', [abs($days)]);\n } elseif ($hours !== 0) {\n $phrase = lang('Time.hours', [abs($hours)]);\n $before = $hours < 0;\n } elseif ($minutes !== 0) {\n $phrase = lang('Time.minutes', [abs($minutes)]);\n $before = $minutes < 0;\n } else {\n return lang('Time.now');\n }\n\n return $before ? lang('Time.ago', [$phrase]) : lang('Time.inFuture', [$phrase]);\n }", "public function getTimeCodeString(): string\n {\n return $this->start.' --> '.$this->stop;\n }", "function times2str_ampm ($t) {\n\tif ($t == '00:00:00' OR $t == '') {\n\t\treturn $t;\n\t}\n\tlist($h,$m,$s) = explode(\":\",$t);\n\t$ampm = ($h >= 12) ? \"PM\" : \"AM\";\n\t$h = ($h > 12) ? $h - 12 : $h;\n\treturn \"{$h}:{$m}:{$s} {$ampm}\";\n}", "public function __toString()\n {\n if ($this->hh <= 9) {\n $retorno = \"0\" . $this->hh . \":\";\n } else {\n $retorno = $this->hh . \":\";\n }\n\n if ($this->mm <= 9) {\n $retorno .= \"0\" . $this->mm . \":\";\n } else {\n $retorno .= $this->mm . \":\";\n }\n\n if ($this->ss <= 9) {\n $retorno .= \"0\" . $this->ss;\n } else {\n $retorno .= $this->ss;\n }\n return $retorno;\n }", "public static function fuzzyTimeString($time = 0)\r\n {\r\n if (!is_numeric($time)) {\r\n $time = izDateTime::timeStringToStamp($time);\r\n }\r\n\r\n $now = time();\r\n $sodTime = mktime(0, 0, 0, date('m', $time), date('d', $time), date('Y', $time));\r\n $sodNow = mktime(0, 0, 0, date('m', $now), date('d', $now), date('Y', $now));\r\n \r\n if ($sodNow == $sodTime) {\r\n return 'today at ' . date('g:ia', $time); // check 'today'\r\n } else if (($sodNow - $sodTime) <= 86400) {\r\n return 'yesterday at ' . date('g:ia', $time); // check 'yesterday'\r\n } else if (($sodNow - $sodTime) <= 432000) {\r\n return date('l \\a\\\\t g:ia', $time); // give a day name if within the last 5 days\r\n } else if (date('Y', $now) == date('Y', $time)) {\r\n return date('M j \\a\\\\t g:ia', $time); // miss off the year if it's this year\r\n } else {\r\n return date('M j, Y \\a\\\\t g:ia', $time); // return the date as normal\r\n }\r\n }", "public function date(): string\n {\n [$sec, $msec] = explode('.', sprintf('%.3F', $_SERVER[\"REQUEST_TIME_FLOAT\"]));\n return date('Y-m-d H:i:s.', $sec) .$msec .' ';\n }", "public static function timeToHumanReadable($time = 0)\r\n {\r\n if (!is_numeric($time)) {\r\n $time = izDateTime::timeStringToStamp($time);\r\n }\r\n\r\n if ($time == 0) {\r\n return 'no time at all';\r\n } else {\r\n if ($time < 0) {\r\n $neg = 1;\r\n $time = 0 - $time;\r\n } else {\r\n $neg = 0;\r\n }\r\n \r\n $days = $time / 86400;\r\n $days = floor($days);\r\n $hrs = ($time / 3600) % 24;\r\n $mins = ($time / 60) % 60;\r\n $secs = $time % 60;\r\n \r\n $timestring = '';\r\n if ($neg) {\r\n $timestring .= 'negative ';\r\n }\r\n if ($days) {\r\n $timestring .= \"$days day\" . ($days == 1 ? '' : 's');\r\n if ($hrs || $mins || $secs) {\r\n $timestring .= ', ';\r\n }\r\n }\r\n if ($hrs) {\r\n $timestring .= \"$hrs hour\" . ($hrs == 1 ? '' : 's');\r\n if ($mins && $secs) {\r\n $timestring .= ', ';\r\n }\r\n if (($mins && !$secs) || (!$mins && $secs)) {\r\n $timestring .= ' and ';\r\n }\r\n }\r\n if ($mins) {\r\n $timestring .= \"$mins min\" . ($mins == 1 ? '' : 's');\r\n if ($mins && $secs) {\r\n $timestring .= ', ';\r\n }\r\n if ($secs) {\r\n $timestring .= ' and ';\r\n }\r\n }\r\n if ($secs) {\r\n $timestring .= \"$secs sec\" . ($secs == 1 ? '' : 's');\r\n }\r\n return $timestring;\r\n }\r\n }", "protected function formatTimestamp($time) {\n return date('Y-m-d H:i:s', !empty($time) ? $time : time());\n }", "function getHtmlTime(){\r\n\treturn('P&aacute;gina generada en <b>'.(time() - $_SERVER['REQUEST_TIME']) .'</b> segundos');\r\n}", "function time_compact_ap_format($hours,$minutes,$meridien){\r\n\t$patterns = array(\"am\",\"pm\",\"AM\",\"PM\");\r\n\t$replacements = array(\"a.m.\",\"p.m.\",\"A.M.\",\"P.M.\");\r\n\t\r\n\t$meridien = str_replace($patterns,$replacements,$meridien);\r\n\t\r\n\tif($minutes == \"00\") return sprintf(\"%s %s\",$hours,$meridien);\r\n\telse return sprintf(\"%s:%s %s\",$hours,$minutes,$meridien);\r\n}", "protected function formatTime($time) {\n $year = date('Y');\n $date = null;\n $formattedTime = trim($time);\n $normalFormat = preg_match('/^([0-9]{1,2}) (\\S+) в ([0-9:]{5})/', $formattedTime, $date);\n if ($normalFormat) {\n $day = $date[1];\n $month = $this->formatMonth($date[2]);\n $hoursAndMinutes = $date[3];\n $formattedTime = \"{$year}-{$month}-{$day} {$hoursAndMinutes}\";\n } else {\n preg_match('/(\\S+) в ([0-9:]{5})/', $formattedTime, $date);\n $yearMonthDay = ($date[1] == 'сегодня')?date('Y-n-j'):date('Y-n-j', strtotime('yesterday'));\n $hoursAndMinutes = $date[2];\n $formattedTime = \"{$yearMonthDay} {$hoursAndMinutes}\";\n }\n\n return $formattedTime;\n }", "public function format_time_save($time){ \n\t\t$exp_time = explode(' ', $time);\n\t\t$time = '2014-03-29 '.$exp_time[0].':00 '.$exp_time[1];\n\t\treturn date('H:i', strtotime($time));\t\t\t\n\t}", "public function getTimeFormatter();", "public function formatTimeForTimePicker($time)\n\t{\n\t\t[$h, $m] = explode(':', $time);\n\t\t$mn = str_pad($m - $m % 15, 2, 0, STR_PAD_LEFT);\n\t\t$AM_PM = ['am', 'pm'];\n\n\t\treturn str_pad(($h % 12), 2, 0, STR_PAD_LEFT) . ':' . $mn . $AM_PM[($h / 12) % 2];\n\t}", "public function format_time($format = 'i:s.u')\n\t{\n\t\treturn $this->udate($format, $this->endTimer-$this->startTimer);\n\t}", "function my_events_time_format ($formatted, $original, $event_id) {\r\n\t$event = new Eab_EventModel(get_post($event_id));\r\n\tif ($event->has_no_start_time()) return \"All day event\";\r\n\treturn \"Starting Time: \" . date_i18n('h:i A - ', $original);\r\n}", "function buildTimeString($time_array)\n{\n return $time_array[\"tm_hour\"].':'.$time_array[\"tm_min\"].':'.$time_array[\"tm_sec\"];\n}", "public function getTimeDisplay()\n {\n return $this->timeDisplay;\n }", "function makeTimeString($arg) {\n\t$left = $arg;\n\t//Day\n\t$days = floor($left / 86400);\n\t$left = $left % 86400;\n\t//Hour\n\t$hour = floor($left / 3600);\n\t$left = $left % 3600;\n\t//Mins\n\t$mins = floor($left / 60);\n\t\n\t//make strings\n\t$days = $days.\"d \";\n\t$hour = str_pad($hour, 2, \"0\", STR_PAD_LEFT).\"h \";\n\t$mins = str_pad($mins, 2, \"0\", STR_PAD_LEFT).\"m\";\n\n\treturn $days.$hour.$mins;\n}", "public function getHour(): string\n {\n return $this->toLocalizedString('H');\n }", "function wtf_time()\n{\n $ds = 86400; // total seconds in day\n $jd = (microtime(true) / $ds) + 2440587.5; // Julian Date\n\n $js = floor(($jd - floor($jd)) * $ds); // Julian Seconds (for today)\n $jd = floor($jd); // Julian Day\n\n $wd = num2alpha($jd);\n $wt = num2alpha(($js/$ds) * pow(26,3)); // same as * 10 * 10 * 10 if it were base 10!\n\n return sprintf('%s:%s',$wd,$wt);\n}", "private function getTimeParameter()\n {\n return sprintf('%s|%s', time(), $this->generateRandomString());\n }", "public function getFormattedTime($attribute)\n {\n $formatted_time = '-';\n $trip_time = strtotime($this->attributes[$attribute]);\n if($trip_time > 0) {\n $formatted_time = date('g:i A',$trip_time);\n }\n\n return $formatted_time;\n }", "function humanizeTime(Date $datetime) : string\n {\n $timeFormat = Config::get('app.time_format');\n $locale = App::getLocale();\n $timezone = Config::get('app.local_timezone');\n\n $datetime->setTimezone(new \\DateTimeZone($timezone));\n\n $displayTime = $datetime->format($timeFormat[$locale]);\n\n if ($locale == 'fr') {\n $displayTime = str_replace(['EST', 'EDT'], ['HNE', 'HAE'], $displayTime);\n }\n\n return $displayTime;\n }", "public function get_time_hour() {\n return sprintf( '%02d', (int) edd_get_option( 'edd_commissions_payout_schedule_time_hr', '' ) );\n }", "public static function toStringTimeShow($pDate)\n {\n return self::changeDatetimeFormat($pDate, 'Y-m-d H:i:s', 'H:i:s');\n }", "function CommonTimeToMilitaryTime($time)\n {\n if ($time == \"\")\n return \"\";\n\n return date(\"H:i\", strtotime($time));\n }", "public function convertTimeToDisplayTime( $twentFourHourTime )\n\t{\n\t\t$AmPm = \"TIME\";\t\t\n\t\t$AmPm = date(\"g:i a\", strtotime($twentFourHourTime));\t\t\n\t\treturn $AmPm;\n\t}", "function times2str ($t1,$t2) {\n\tif ($t1 == '00:00:00' OR $t1 == '')\n\t\treturn '';\n\t// no end time\n\tif ($t2 == '00:00:00' OR $t2 == '')\n\t\treturn time2str($t1);\n\tlist($h1,$m1,$s1) = explode(\":\",$t1);\n\tlist($h2,$m2,$s2) = explode(\":\",$t2);\n\t$ampm1 = ($h1 >= 12) ? \" p.m.\" : \" a.m.\";\n\t$ampm2 = ($h2 >= 12) ? \" p.m.\" : \" a.m.\";\n\t$ampm1 = ($ampm1 != $ampm2) ? $ampm1 : \"\";\n\t// if time1 is 12:xx p.m.\n\tif ($h1 == \"12\") {\n\t\t$time_str = ($m1 > 0) ? \"12:\" . $m1 . $ampm1 : \"Noon\";\n\t} else {\n\t\t$time_str = ($m1 > 0) ? $h1 % 12 . \":\" . $m1 . $ampm1 : $h1 % 12 . $ampm1;\n\t}\n\t$time_str .= \"-\";\n\tif ($h2 == \"12\") {\n\t\t$time_str .= ($m2 > 0) ? \"12:\" . $m2 . $ampm2 : \"Noon\";\n\t} else {\n\t\t$time_str .= ($m2 > 0) ? $h2 % 12 . \":\" . $m2 . $ampm2 : $h2 % 12 . $ampm2;\n\t}\n\treturn ($time_str);\n}", "function MilitaryTimeToCommonTime($time)\n {\n if ($time == \"\")\n return \"\";\n return date(\"h:i A\", strtotime($time));\n }", "public static function time($date){\n if (empty($date)) return;\n $php_date = strtotime($date);\n $formatted_date = date('h:i a', $php_date );\n return $formatted_date;\n\n }", "function format_time($t,$f=':'){\n\t\t//return ($t< 0 ? '-' : '') . sprintf(\"%02d%s%02d%s%02d\", floor(abs($t)/3600), $f, (abs($t)/60)%60, $f, abs($t)%60);\n\t\t\n\t\t$seconds = abs($t)%60;\n\t\t$minutes = (abs($t)/60)%60;\n\t \n\t\tif($seconds>30){\n\t\t\t$minutes = $minutes+1;\n\t\t}\n\t\treturn sprintf(\"%02d\",$minutes);//($t< 0 ? '-' : '') . sprintf(\"%02d%s%02d%s%02d\", floor(abs($t)/3600), $f, (abs($t)/60)%60, $f, abs($t)%60);\n }", "protected function genTime($time=false){\n if (!$time){\n $time = time();\n } else if (is_numeric($time)) {\n $time = (int)$time;\n } else if (is_string($time)) {\n $time = strtotime($time);\n } else {\n throw new InvalidArgumentException('Invalid time input given');\n }\n return date('Y-m-d\\TH:i:sO',$time-120);\n }", "public function getDateAndTime() {\n\t\t$dateAndTime = $this->date.$this->time;\n\t\treturn date(\"g:iA, l jS F Y\", strtotime($dateAndTime));\n\t}", "public function asText(){\n $id_length = 2;\n $time_length = 8;\n $times = [];\n foreach($this->times as $id => $time){\n $id_length = max($id_length,strlen($id));\n $time_length = max($time_length,strlen($times[$id] = number_format($time,$this->decimals)));\n }\n $text =\n str_pad('ID',$id_length) . ' | ' . str_pad('time [s]',$time_length,' ',STR_PAD_LEFT) . \"\\n\" .\n str_repeat('-',$id_length) . '-+-' . str_repeat('-',$time_length);\n foreach($this->times as $id => $time)\n $text .= \"\\n\" . str_pad($id,$id_length) . ' | ' . str_pad($times[$id],$time_length,' ',STR_PAD_LEFT);\n return $text;\n }", "function Time($time){\r\n\r\n\t}", "private function format_time( $timestamp ) {\n\t if ( empty( $timestamp) ) {\n\t\t return __( 'never' , 'slp-premier' );\n\t }\n\t return date(\"d F Y H:i:s\",$timestamp);\n }", "function circle_posted_time() {\n\t\t$time_string = '<time class=\"entry-date published updated text-uppercase date-published\" datetime=\"%1$s\" data-waypoint=\"waypointEffect\">%2$s</time>';\n\t\tif ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) {\n\t\t\t$time_string = '<time class=\"entry-date published text-uppercase date-published\" datetime=\"%1$s\">%2$s</time><time class=\"published updated text-uppercase date-published\" datetime=\"%3$s\" data-waypoint=\"waypointEffect\">%4$s</time>';\n\t\t}\n\n\t\t$time_string = sprintf( $time_string,\n\t\t\tesc_attr( get_the_date( 'c' ) ),\n\t\t\tesc_html( get_the_date() ),\n\t\t\tesc_attr( get_the_modified_date( 'c' ) ),\n\t\t\tesc_html( get_the_modified_date() )\n\t\t);\n\n\t\techo '<span class=\"posted-on\"><a href=\"' . esc_url( get_permalink() ) . '\" rel=\"bookmark\">' . $time_string . '</a></span>'; // WPCS: XSS OK.\n\t}", "function mysqlTime()\r\n {\r\n $hour = $this->addZero( $this->hour() );\r\n $minute = $this->addZero( $this->minute() );\r\n $second = $this->addZero( $this->second() );\r\n\r\n return $hour . \":\" . $minute . \":\" . $second;\r\n }", "function time_now() {\n return date(\"H:i:s\");\n}", "function convert_time($time) {\n\t$date = date('g:i A', strtotime($time));\n\n\treturn $date;\n}", "function _getFormattedTimestamp()\n {\n return gmdate(\"Y-m-d\\TH:i:s.\\\\0\\\\0\\\\0\\\\Z\", time());\n }" ]
[ "0.7539763", "0.75088495", "0.7451943", "0.74022645", "0.74021226", "0.7328068", "0.73276496", "0.73171324", "0.72366583", "0.72268754", "0.7199568", "0.71907824", "0.7173545", "0.71235377", "0.70925874", "0.70164895", "0.6965536", "0.69471943", "0.6935208", "0.6918123", "0.69174546", "0.68955284", "0.6852869", "0.68500376", "0.6847156", "0.6800796", "0.67854387", "0.67710674", "0.67445785", "0.67410517", "0.6685488", "0.66651523", "0.6655398", "0.664249", "0.6634539", "0.663173", "0.66285914", "0.6607351", "0.65897113", "0.6586145", "0.6583812", "0.65806603", "0.6575771", "0.6566204", "0.656353", "0.6556091", "0.6550752", "0.6547555", "0.65161026", "0.6515663", "0.6500648", "0.64967555", "0.6487919", "0.6463963", "0.64622253", "0.6458988", "0.6448738", "0.6443837", "0.64428496", "0.64329827", "0.6427418", "0.6424752", "0.6420291", "0.6410216", "0.64060074", "0.6403665", "0.63866657", "0.63830286", "0.6378968", "0.63744813", "0.63735723", "0.63688534", "0.63621664", "0.6353636", "0.634919", "0.63416123", "0.63367707", "0.6327133", "0.63262576", "0.63229716", "0.6322743", "0.6271831", "0.62671036", "0.6264494", "0.6253002", "0.6252028", "0.6250364", "0.6242431", "0.6241752", "0.6228681", "0.6208334", "0.6206405", "0.6199329", "0.6188917", "0.6187615", "0.61805475", "0.61793596", "0.6170666", "0.61686796", "0.61671114" ]
0.62903094
81
Returns the interval between the date and "now"
public static function get_interval( $date, $date2 = NULL ) { // we need to convert to server time since we will compare to the server's "now" time $datetime_obj = is_object( $date ) ? $date : self::get_datetime_object( $date ); $date2_obj = is_object( $date2 ) ? $date2 : self::get_datetime_object( $date2 ); return $datetime_obj->diff( $date2_obj ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function now();", "abstract protected function get_interval();", "public static function today()\n\t{\n\t\treturn floor(time() / 86400);\n\t}", "private function interval($date) { \n $datenow = new DateTime(\"now\");\n if ($date == null){\n return '?';\n } else {\n $date = new DateTime($date);\n }\n \n $interval = date_diff($datenow, $date);\n \n switch ($interval->y) {\n case 0:\n if ($interval->m == 0) {\n $result = 'Presque 1 mois';\n }\n else {\n $result = $interval->m.' mois';\n }\n break;\n \n case 1:\n if ($interval->m == 0) {\n $result = $interval->y.' an';\n }\n else {\n $result = ''.$interval->y.' an et '.$interval->m.' mois';\n }\n break;\n \n Default:\n if ($interval->m == 0) {\n $result = ''.$interval->y.' ans';\n }\n else {\n $result = ''.$interval->y.' ans et '.$interval->m.' mois';\n }\n }\n \n return $result;\n }", "public static function get_now(){\n $result = Db::query('SELECT NOW() as now');\n \t$row = $result->fetch_assoc();\n return $row['now'];\n }", "private function get_interval() {\n\t\treturn 7 * DAY_IN_SECONDS; // 7 days.\n\t}", "public function getInterval()\n {\n return $this->getStartDate()->diff($this->getEndDate())->d;\n }", "public function getInterval()\n {\n $time_diff = date_diff($this->created_at, new \\DateTime());\n\n $format = \"Aujourd'hui\";\n if ($time_diff->d == 1) {\n $format = \"Hier\";\n }\n if ($time_diff->d > 1) {\n $format = \"Il y a %d jours\";\n }\n if ($time_diff->m > 0) {\n $format = \"Il y a %m mois\";\n }\n if ($time_diff->y > 0) {\n $format = \"Il y a %m ans\";\n }\n return $time_diff->format($format);\n }", "protected function now()\n {\n return Carbon::now();\n }", "public function get_interval() {\n return absint( edd_get_option( 'edd_commissions_payout_schedule_interval', '' ) );\n }", "public function now() {\n\n\t\t$dateTime = new DateTime ( 'NOW' );\n\t\treturn $dateTime->format ( \"Y-m-d H:i:s\" );\n\t\n\t}", "public function getInterval() {}", "public function getRelativeExpiration(): \\DateInterval;", "public function now()\n {\n return $this->current;\n }", "public static function now() {\n\t\t\treturn date('Y-m-d');\n\t\t}", "public static function getIntervalSemBetweenNowAndDate($date)\n {\n //si la date est un string\n if (is_string($date)) {\n $stop = new DateTime($date);\n } if ($date instanceof DateTime) {\n $stop = $date;\n } else {\n return null;\n }\n $stop = $stop->format('d/m/Y');\n\n //génération de la date now\n $start = new DateTime(date(DATE_ATOM));\n $start->modify('Monday this week');\n $start = $start->format('d/m/Y');\n //expode\n $start = explode('/', $start);\n $stop = explode('/', $stop);\n //timestamp\n $start = mktime(0, 0, 0, $start[1], $start[0], $start[2]);\n $stop = mktime(0, 0, 0, $stop[1], $stop[0], $stop[2]);\n //calcul\n $result = $stop - $start;\n $s = ($result / 86400);\n\n $s = floor($s / 7);\n return $s;\n }", "function now() {\n return new DateTime();\n}", "public function getCurrent() {\r\n $currentDate = new \\DateTime();\r\n return $currentDate->getTimestamp();\r\n }", "public function now()\n {\n if (!self::hasMasterDB()) {\n return date('c');\n }\n\n return self::getMasterDB()\n ->Execute(\"SELECT CURRENT_TIMESTAMP as now\")\n ->Fields('now');\n }", "public static final function now ()\n\t\t{\n\t\t\t\n\t\t\treturn date('Y-m-d H:i:s');\n\t\t\t\n\t\t}", "public function getDateInterval()\n {\n return $this->startDate->diff($this->endDate);\n }", "public function getDateInterval()\n {\n return $this->startDate->diff($this->endDate);\n }", "function _getNow() {\t\t\n\t\tstatic $datenow = null;\n\t\tif (!isset($datenow)) {\t\t\t\t\t\t\n\t\t\t$datenow =& JFactory::getDate(\"+0 seconds\");\n\t\t}\n\t\treturn $datenow;\n\t}", "function getnow() {\n\t$dt = date('Y-m-d');\n\treturn $dt;\n}", "public function getInterval() {\n return $this->sessionData[\"interval\"];\n }", "function now() {\r\n\t\tdate_default_timezone_set('GMT');\r\n\t\treturn date(\"d/m/Y H:i:s\");\r\n\t}", "public function getIntervalElapsed(): DateInterval\n {\n /** @noinspection PhpUnhandledExceptionInspection */\n return (new DateTimeImmutable('@' . $this->start))->diff(new DateTimeImmutable('@' . $this->current));\n }", "function COM_NOW() {\r\n\t$now = new DateTime();\r\n\t$offset = $_SESSION[\"org_TZO\"] - $_SESSION[\"_SITE_CONF\"][\"TZO\"]; //offset from server to organization\r\n\tif ($offset == 0) return $now;\r\n\t$invert = 0;\r\n\tif ($offset < 0) {\r\n\t\t$offset = abs($offset);\r\n\t\t$invert = 1;\r\n\t}\r\n\t$format = \"PT\".$offset.\"H\";\r\n\t$interval = new DateInterval($format);\r\n\t$interval->invert = $invert;\r\n\t$now->add($interval);\r\n\treturn $now;\r\n}", "function date_now() {\n return date(\"Y-m-d\");\n}", "public function getIntervalTime();", "public function getInterval()\n {\n return $this->interval;\n }", "public function getInterval()\n {\n return $this->interval;\n }", "public function getCarStatusInterval(){\r\n\t\t$interval = calculate_days_between_dates($this->getCarStatusDate(), getToday());\r\n\t\treturn $interval;\r\n\t}", "function calculateIfOnThisDay($curDate, $initialDate) {\n \t$date1 = new DateTime($curDate);\n \t$date2 = new DateTime($initialDate);\n \t\n \t$interval = $date1->diff($date2);\n\n\treturn $interval;\n\n\t}", "function Now($seconds_to_add=0);", "function _getNowValues($interval){\n if (($result = Cacher::getCache(\"NowRain_ID_\".$this->sensId.\"_Interval_\".$interval, 7)) == false){\n $result = $this->connection->fetchQueryResultLine(\"SELECT sum(count) as rain FROM \".$this->table.\" WHERE sens_id=\".$this->sensId.\" AND timestamp>(select (current_timestamp - INTERVAL '\".$interval.\"'))\");\n Cacher::setCache(\"NowRain_ID_\".$this->sensId.\"_Interval_\".$interval, $result);\n }\n return $result['rain'];\n }", "public function getInterval()\n {\n return $this->_interval;\n }", "public function getInterval()\n {\n\n }", "public static function now(){\n\t\treturn date('Y-m-d H:i:s', time());\n\t}", "public static function now ()\n\t\t{\n\t\t\treturn date(self::$dtFormat);\n\t\t}", "function Now()\n{\n\t$now = date(\"Y-m-d H:i:s\");\n\treturn $now;\n}", "public static function getCurrentDateAndTime() {\n\t\tif(qsys::getSiteLocation() == 'online') {\n\t\t\t$currentDateTimeOnServer = qdat::getCurrentDateAndTimeOnCurrentComputer();\n\t\t\t$currentAbsoluteSeconds = qdat::getAbsoluteSeconds($currentDateTimeOnServer);\n\t\t\t$adjustedCurrentAbsoluteSeconds = $currentAbsoluteSeconds + (Config::getServerOffsetInHours() * -1 * 3600);\n\t\t\treturn qdat::convertAbsoluteSecondsToDateTime($adjustedCurrentAbsoluteSeconds);\n\t\t} else {\n\t\t\treturn qdat::getCurrentDateAndTimeOnCurrentComputer();\n\t\t}\n\t}", "public function getInterval(){\n\t\treturn $this->test_interval;\n\t}", "public function getOnlineInterval()\n {\n $value = intval(Mage::getStoreConfig(self::XML_PATH_ONLINE_INTERVAL));\n if (!$value) {\n $value = Mage_Log_Model_Visitor::DEFAULT_ONLINE_MINUTES_INTERVAL;\n }\n return $value;\n }", "function datetime_now() {\n\treturn date('Y-m-d H:i:s');\n}", "function getInterval() {return $this->_interval;}", "function now(){\n\t$date = new DateTime();\n\t$datetime = $date->format('Y-m-d H:i:s');\n\treturn $datetime;\n}", "public function getInterval()\n {\n return 1;\n }", "protected static function now(): Carbon\n {\n return Carbon::now();\n }", "function fecha_actual()\n{\n\t$db = getDBConnection();\n \t$stmt = $db->prepare('SELECT CURDATE()');\n \t$stmt->execute();\n \t$r = $stmt->fetch(PDO::FETCH_ASSOC);\n \tif ($r) {\n \t\treturn $r['CURDATE()'];\n \t}else{\n \t\treturn false;\n \t}\n}", "public static function currdate()\n {\n $now = Carbon::now() -> toDateTimeString();\n $erase = substr($now, -3);\n $now = str_replace($erase, '', $now);\n $now = str_replace(' ', 'T', $now);\n return $now;\n }", "public function diff($now = 'NOW', $absolute = FALSE)\n{\n\tif(!($now instanceOf DateTime))$now=new Time($now);return parent::diff($now, $absolute);\n}", "protected function getDateInterval(){\n\n $dt = new \\DateTime();\n $dt->modify('-1 month');\n $interval['max'] = $dt->format('Ym');\n $dt->modify('-11 months');\n $interval['min'] = $dt->format('Ym');\n\n return $interval;\n }", "public function getTimestampInterval()\n {\n return $this->endDate->getTimestamp() - $this->startDate->getTimestamp();\n }", "public function getTimestampInterval()\n {\n return $this->endDate->getTimestamp() - $this->startDate->getTimestamp();\n }", "protected function now(): DateTimeImmutable\n {\n return $this->db->now();\n }", "public static function now(): self\n {\n return new self(value: new DateTimeImmutable('now', new DateTimeZone('UTC')));\n }", "function intervalo($inicio, $fim){\n\t $dataInicio = strtotime($inicio);\n\t $dataFim = strtotime($fim);\n\t $intervalo = ($dataFim-$dataInicio) - 86400;\n\t return date('d', $intervalo);\n\t }", "protected function getLowerBoundDate() {\n return $this->roundToNearestDay(time() - 15552000); //180 days in secs\n }", "function sqlite_now()\n{\n\treturn date('Y-m-d H:i:s');\n}", "public function now(): \\DateTimeImmutable;", "public function now(): \\DateTimeImmutable;", "public function now(): \\DateTimeImmutable;", "function current_datetime()\n {\n }", "public function current_date(){\n\t\t$date = date('Y-m-d H:i:s');\n\t\treturn $date;\n\t}", "public function current_date(){\n\t\t$date = date('Y-m-d H:i:s');\n\t\treturn $date;\n\t}", "function datetime_now() {\n return date(\"Y-m-d H:i:s\");\n}", "function now($format = 'Y-m-d') {\n\treturn date($format);\n}", "public function getDownTimeToday(){\n return Notification::calculateDailyDowntime($this);\n }", "function getIntraIntervalDetails($params = array()) {\n\t$number = range(5, 60, 5);\n\t$min = 0;\n\n\t// get date value\n\t$is_midnight = false;\n\t$midnight_date = '';\n\t$midnight_interval = '';\n\n\tif (isset($params['date'])) {\n\t\t$cur_datetime = Carbon::createFromTimestamp(strtotime($params['date']));\n\t\t$dte = $cur_datetime->format('Y-m-d');\n\t} else {\n\t\t$cur_datetime = Carbon::now()->subMinutes(5);\n\t\t$dte = $cur_datetime->format('Y-m-d');\n\n\t\t$est_hour_value = $cur_datetime->hour + 1;\n\t\tif ($est_hour_value == 24) {\n\t\t\t$midnight_date = Carbon::now()->format('Y-m-d');\n\t\t\t$midnight_interval = '00:00:00';\n\t\t\t$is_midnight = true;\n\t\t}\n\n\t}\n\n\t// get hour value\n\tif (!isset($params['hour'])) {\n\t\t$cur_hour = $cur_datetime->hour;\n\t\t$hour = $cur_hour + 1;\n\t} else {\n\t\t$hour = $params['hour'];\n\t}\n\n\t// get min value\n\tif (!isset($params['min'])) {\n\t\t$cur_min = $cur_datetime->minute;\n\t\t$min_value = 1;\n\t\tforeach ($number as $max_value) {\n\t\t\tif ($cur_min >= $min_value && $cur_min <= $max_value) {\n\t\t\t\t$min = $max_value;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t$min_value = $max_value + 1;\n\t\t}\n\t} else {\n\t\t$min = $params['min'];\n\t}\n\n\tif ($min == 60) {\n\t\t$min = 0;\n\t}\n\n\t$prev_hour = $hour - 1;\n\t$prev_date = $dte;\n\tif ($min != 0) {\n\t\t$min = str_pad($min, 2, \"0\", STR_PAD_LEFT);\n\t\t$interval = str_pad($prev_hour, 2, \"0\", STR_PAD_LEFT) . ':' . $min . ':00';\n\n\t\t$prev_min = $min - 5;\n\t} else {\n\t\t$min = str_pad($min, 2, \"0\", STR_PAD_LEFT);\n\t\t$interval = str_pad($hour, 2, \"0\", STR_PAD_LEFT) . ':' . $min . ':00';\n\t\t$prev_min = 55;\n\t\t$prev_date = $cur_datetime::yesterday()->format('Y-m-d');\n\t}\n\t$prev_intrainterval = str_pad($prev_hour, 2, \"0\", STR_PAD_LEFT) . ':' . str_pad($prev_min, 2, \"0\", STR_PAD_LEFT) . ':00';\n\n\t## for previous previous intra interval\n\t$prev_prev_hour = $prev_hour;\n\t$prev_prev_date = $prev_date;\n\n\tif ($prev_min != 0) {\n\t\t$prev_prev_min = $prev_min - 5;\n\t} else {\n\t\t$prev_prev_hour = $prev_hour - 1;\n\t\t$prev_prev_min = 55;\n\t}\n\t$prev_prev_intrainterval = str_pad($prev_prev_hour, 2, \"0\", STR_PAD_LEFT) . ':' . str_pad($prev_prev_min, 2, \"0\", STR_PAD_LEFT) . ':00';\n\n\t// create prev, prev, current intra interval values\n\t// if the current date time is midnight, return the real date and 00:00:00 interval\n\t$intra_intervals = array();\n\tif ($is_midnight) {\n\t\t$intra_intervals[] = $midnight_date . ' ' . $midnight_interval;\n\t} else {\n\t\t$intra_intervals[] = $dte . ' ' . $interval;\n\t}\n\n\t$intra_intervals[] = $prev_date . ' ' . $prev_intrainterval;\n\t$intra_intervals[] = $prev_prev_date . ' ' . $prev_prev_intrainterval;\n\n\treturn array(\n\t\t'date' => $dte,\n\t\t'min' => $min,\n\t\t'hour' => $hour,\n\t\t'intra_interval' => $interval,\n\t\t'prev_hour' => $prev_hour,\n\t\t'prev_intrainterval' => $prev_intrainterval,\n\t\t'intra_intervals' => $intra_intervals,\n\t);\n\n}", "public function getCurrentDateTime()\n {\n // Lookup configured timezone\n $timezone = Mage::getStoreConfig('general/locale/timezone');\n // Get current time\n $curDateTime = new DateTime('now');\n\n // Return\n return $curDateTime;\n }", "private function getToday() {\n $now = time() + $this->getGMTOffset();\n return date(\"Y-m-d\", $now) . \" 00:00:00\";\n }", "function today() {\n return date(\"Y-m-d\");\n }", "function now(): float\n{\n return (float) \\hrtime(true) / 1_000_000_000;\n}", "function DEPCRECATED_Now()\r{\r\tif ($GLOBALS['feedback']) echo \"Deprecated_Now()\\n\";\r\r\tmysql_select_db ($GLOBALS['db']['db'], $GLOBALS['db']['link']);\r\t$now = mysql_query(\"SELECT CURRENT_TIMESTAMP as ts\", $GLOBALS['db']['link']) or exit (mysql_error());\r\t$row_now = mysql_fetch_assoc($now);\r\tmysql_free_result ($now);\r\treturn $row_now['ts'];\r}", "public function getNow(): \\DateTimeImmutable;", "function currentDate(){\n\t$date = date(\"Y-m-d H:i:s\");\n\treturn $date;\n}", "public static function today(){\n\t\treturn date('Y-m-d', time());\n\t}", "private function getCalculatedDate(){\n date_default_timezone_set('GMT+1');//@todo get the information from system\n\n $oneDay = 86400;//seconds\n $numDays = 7; //default are 7 days\n $today = strtotime('now');\n\n if(!empty($this->settings['flexform']['countDays'])){\n $numDays = $this->settings['flexform']['countDays'];\n }\n\n //calcaulate date\n $date = date(\"d.m.Y\",$today-($numDays * $oneDay));\n\n return $date;\n }", "public static function now(): self\n {\n return new static(new DateTime());\n }", "protected function getInterval() {\n return new Interval($this->configuration['number'], $this->configuration['unit']);\n }", "public function current(): Date\n {\n return $this->current;\n }", "public static function now()\n {\n return date(self::DATETIME_PHP_FORMAT);\n }", "private function currentTime()\n\t{\n\t\treturn Carbon::now()->format('Ymdhis');\n\t}", "public static function getCurrentDate() {\n\t\treturn date(\"Y-m-d\");\n\t}", "public function isNow()\n {\n return Carbon::parse(\"now\")->between($this->arrival, $this->departure);\n }", "static public function now($format='Y-m-d H:i:s'){\n\t\treturn date($format);\n\t}", "function erp_current_datetime() {\n if ( function_exists( 'current_datetime' ) ) {\n return current_datetime();\n }\n\n return new DateTimeImmutable( 'now', erp_wp_timezone() );\n}", "function getCurrentDate()\n\t\t{\n\t\t\t$date = date('y-m-d');\n\t\t\treturn $date;\n\t\t}", "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 }", "protected function sysdate()\n {\n return 'NOW()';\n }", "function beginning_of_today ()\n{\n\tglobal $time_zone_offset;\n\t// putenv('TZ=GMT');\n\t\n\t$now = gmmktime();\n\t$hours_today = (date('G', $now - $time_zone_offset));\n\t$minutes_today = (date('i', $now - $time_zone_offset));\n\t$seconds_today = (date('s', $now - $time_zone_offset));\n\n\t$beginning = $now - (3600 * $hours_today);\n\t$beginning -= ($minutes_today * 60);\n\t$beginning -= $seconds_today;\n\n\treturn $beginning;\n}", "public function current_date_db(){\n\t\t$date = date('Y-m-d');\n\t\treturn $date;\n\t}", "public function nowMutable(): \\DateTime;", "function authCAS_getMyCurrentDate()\n{\n\treturn G::CurDate('Y-m-d');\n}", "public function currentDate()\n {\n return today()->format('Ymd');\n }", "public function testItReturnsTheCurrentDateTimeWithARealClock()\n {\n // issues due to $now possibly being equal to $before\n\n // Sleeping for 5ms is enough on PHP 7.1+\n $timeToSleep = 5000;\n\n // Before PHP 7.1, microseconds were not included when constructing date\n // objects, so we need to sleep for an entire second\n if (version_compare(PHP_VERSION, '7.1.0', '<')) {\n $timeToSleep = 1000 * 1000;\n }\n\n $before = new DateTimeImmutable();\n\n usleep($timeToSleep);\n\n $now = new DateTimeImmutable(Date::now());\n\n usleep($timeToSleep);\n\n $after = new DateTimeImmutable();\n\n $this->assertGreaterThan($before, $now);\n $this->assertLessThan($after, $now);\n }", "public function update($now)\n {\n if ($now >= ($this->lastCallTime + $this->interval)) {\n $this->lastCallTime = $now;\n $this->callNow();\n }\n }", "public function getValidUntil() {\n\t\treturn $this->stamp+Vote::getValidDays()*24*60*60;\n\t}", "public function curDateTime() {\r\n return new DateTime();\r\n }" ]
[ "0.6338796", "0.6276426", "0.61128277", "0.6050298", "0.60500306", "0.6019413", "0.59882885", "0.5970883", "0.5899441", "0.58972216", "0.588362", "0.58554006", "0.58042276", "0.57894325", "0.5783185", "0.57363904", "0.5732236", "0.5722066", "0.5705367", "0.5702237", "0.57021135", "0.57021135", "0.56977457", "0.5683048", "0.5679675", "0.56498784", "0.5640019", "0.5630299", "0.56089544", "0.56000096", "0.558613", "0.558613", "0.5585616", "0.5575221", "0.5519527", "0.5510205", "0.5503637", "0.54965794", "0.5490342", "0.54843557", "0.54825497", "0.5472727", "0.5449658", "0.5431187", "0.542842", "0.542575", "0.5416824", "0.5391358", "0.5378198", "0.53721625", "0.53669566", "0.5365195", "0.53600854", "0.53404474", "0.53404474", "0.5315556", "0.53150725", "0.5308779", "0.5293863", "0.5293269", "0.52544206", "0.52544206", "0.52544206", "0.5250694", "0.5247229", "0.5247229", "0.5241701", "0.5226083", "0.5205839", "0.5205636", "0.52052224", "0.5199837", "0.51993036", "0.5197376", "0.51970965", "0.5164694", "0.516197", "0.51485485", "0.5146089", "0.51456225", "0.51453865", "0.5127115", "0.5102185", "0.51021063", "0.5096993", "0.50918937", "0.5086543", "0.508477", "0.50773656", "0.506901", "0.5065268", "0.5064469", "0.5058634", "0.50558585", "0.5045841", "0.5044059", "0.5039753", "0.50346243", "0.50344723", "0.5016646" ]
0.59276044
8
Returns a fuzzy description of how long ago a certain date occured.
public static function get_fuzzy_period_ago( $datetime ) { if( is_null( $datetime ) || !is_string( $datetime ) ) return 'never'; $interval = self::get_interval( $datetime ); if( 0 != $interval->invert ) { $result = 'in the future'; } else if( 1 > $interval->i && 0 == $interval->h && 0 == $interval->days ) { $result = 'seconds ago'; } else if( 1 > $interval->h && 0 == $interval->days ) { $result = 'minutes ago'; } else if( 1 > $interval->d && 0 == $interval->days ) { $result = 'hours ago'; } else if( 1 == $interval->days ) { $result = 'yesterday'; } else if( 7 > $interval->days ) { $datetime_obj = self::get_datetime_object( $datetime ); $result = 'last '.$datetime_obj->format( 'l' ); } else if( 1 > $interval->m && 0 == $interval->y ) { $result = 'weeks ago'; } else if( 1 > $interval->y ) { $datetime_obj = self::get_datetime_object( $datetime ); $result = 'last '.$datetime_obj->format( 'F' ); } else { $result = 'years ago'; } return $result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDateAgo() {return $this->getDate() ? $this->getTimeDisplay($this->getDate()) : 'unknown';}", "function ago($date){\n\t\t$date = time() - $date; // to get the time since that moment\n\t\t$date = ($date<1)? 1 : $date;\n\t\t$tokens = array (\n\t\t\t31536000 => 'year',\n\t\t\t2592000 => 'month',\n\t\t\t604800 => 'week',\n\t\t\t86400 => 'day',\n\t\t\t3600 => 'hour',\n\t\t\t60 => 'minute',\n\t\t\t1 => 'second'\n\t\t);\n\n\t\tforeach ($tokens as $unit => $text) {\n\t\t\tif ($date < $unit) continue;\n\t\t\t$numberOfUnits = floor($date / $unit);\n\t\t\treturn $numberOfUnits.' '.$text.(($numberOfUnits>1)?'s':'');\n\t\t}\n\t}", "public function getCreatedTimeAgo() {\n $timeStamp = $this->getCreatedTime('U');\n $elapsed = time() - $timeStamp;\n \n if ($elapsed < 1)\n return 'just now';\n\n $lengths = array( 12 * 30 * 24 * 60 * 60 => 'year',\n 30 * 24 * 60 * 60 => 'month',\n 24 * 60 * 60 => 'day',\n 60 * 60 => 'hour',\n 60 => 'minute',\n 1 => 'second');\n\n foreach ($lengths as $secs => $str)\n {\n $d = $elapsed / $secs;\n if ($d >= 1)\n {\n $r = round($d);\n return $r . ' ' . $str . ($r > 1 ? 's' : '') . ' ago';\n }\n }\n }", "function timeAgo($dateTime)\n\t\t{\n\t\t\t$dateTime = strtotime($dateTime);\n\t\t\t$currentTime = time();\n\t\t\t$tense = \"\";\n\t\t\t$printTime = \"\";\n\t\t\t$timeDifference = $currentTime - $dateTime;\n\t\t\t$seconds = $timeDifference ;\n\t\t\t$minutes = round($timeDifference / 60 );\n\t\t\t$hours = round($timeDifference / 3600);\n\t\t\t$days = round($timeDifference / 86400 );\n\t\t\t$weeks = round($timeDifference / 604800);\n\t\t\t$months = round($timeDifference / 2600640 );\n\t\t\t$years = round($timeDifference / 31207680 );\n\t\t\t\n\t\t\tif($seconds <= 60){\n\t\t\t\t$printTime = $seconds;\n\t\t\t\t$tense = \" seconds ago\";\n\t\t\t}else if($minutes <= 60){\n\t\t\t\tif($minutes == 1){\n\t\t\t\t\t$printTime = $minutes;\n\t\t\t\t\t$tense = \" minute ago\";\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t$printTime = $minutes;\n\t\t\t\t\t$tense = \" minutes ago\";\n\t\t\t\t}\n\t\t\t}else if($hours <= 24){\n\t\t\t\tif($hours == 1){\n\t\t\t\t\t$printTime = $hours;\n\t\t\t\t\t$tense = \" hour ago\";\n\t\t\t\t}else{\n\t\t\t\t\t$printTime = $hours;\n\t\t\t\t\t$tense = \" hours ago\";\n\t\t\t\t}\n\t\t\t}else if($days <= 7){\n\t\t\t\tif($days == 1){\n\t\t\t\t\t$printTime = \"\";\n\t\t\t\t\t$tense = \"yesterday\";\n\t\t\t\t}else{\n\t\t\t\t\t$printTime = $days;\n\t\t\t\t\t$tense = \" days ago\";\n\t\t\t\t}\n\t\t\t}else if($weeks <= 4.3){\n\t\t\t\tif($weeks == 1){\n\t\t\t\t\t$printTime = $weeks;\n\t\t\t\t\treturn \" week ago\";\n\t\t\t\t}else{\n\t\t\t\t\t$printTime = $weeks;\n\t\t\t\t\t$tense = \" weeks ago\";\n\t\t\t\t}\n\t\t\t}else if($months <= 12){\n\t\t\t\tif($months == 1){\n\t\t\t\t\t$printTime = $months;\n\t\t\t\t\t$tense = \" month ago\";\n\t\t\t\t}else{\n\t\t\t\t\t$printTime = $months;\n\t\t\t\t\t$tense = \" months ago\";\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tif($years == 1){\n\t\t\t\t\t$printTime = $years;\n\t\t\t\t\t$tense = \" year ago\";\n\t\t\t\t}else{\n\t\t\t\t\t$printTime = $years;\n\t\t\t\t\t$tense = \" years ago\";\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\treturn $printTime.$tense;\n\t\t}", "function ago($datefrom,$dateto=-1)\r\n\t{\r\n\t\t// its an error rather than the epoch\r\n\r\n\t\tif($datefrom instanceof \\MongoDate)\r\n\t\t\t$datefrom = $datefrom->sec;\r\n\t\tif($dateto instanceof \\MongoDate)\r\n\t\t\t$dateto=$dateto->sec;\r\n\r\n\t\tif($datefrom==0) { return \"A long time ago\"; }\r\n\t\tif($dateto==-1) { $dateto = time(); }\r\n\r\n\t\t// Make the entered date into Unix timestamp from MySQL datetime field\r\n\r\n\t\t$datefrom = $datefrom;\r\n\r\n\t\t// Calculate the difference in seconds betweeen\r\n\t\t// the two timestamps\r\n\r\n\t\t$difference = $dateto - $datefrom;\r\n\r\n\t\t// Based on the interval, determine the\r\n\t\t// number of units between the two dates\r\n\t\t// From this point on, you would be hard\r\n\t\t// pushed telling the difference between\r\n\t\t// this function and DateDiff. If the $datediff\r\n\t\t// returned is 1, be sure to return the singular\r\n\t\t// of the unit, e.g. 'day' rather 'days'\r\n\r\n\t\tswitch(true)\r\n\t\t{\r\n\t\t\t// If difference is less than 60 seconds,\r\n\t\t\t// seconds is a good interval of choice\r\n\t\t\tcase(strtotime('-1 min', $dateto) < $datefrom):\r\n\t\t\t\t$datediff = $difference;\r\n\t\t\t\t$res = ($datediff==1) ? $datediff.' second ago' : $datediff.' seconds ago';\r\n\t\t\t\tbreak;\r\n\t\t\t\t// If difference is between 60 seconds and\r\n\t\t\t\t// 60 minutes, minutes is a good interval\r\n\t\t\tcase(strtotime('-1 hour', $dateto) < $datefrom):\r\n\t\t\t\t$datediff = floor($difference / 60);\r\n\t\t\t\t$res = ($datediff==1) ? $datediff.' minute ago' : $datediff.' minutes ago';\r\n\t\t\t\tbreak;\r\n\t\t\t\t// If difference is between 1 hour and 24 hours\r\n\t\t\t\t// hours is a good interval\r\n\t\t\tcase(strtotime('-1 day', $dateto) < $datefrom):\r\n\t\t\t\t$datediff = floor($difference / 60 / 60);\r\n\t\t\t\t$res = ($datediff==1) ? $datediff.' hour ago' : $datediff.' hours ago';\r\n\t\t\t\tbreak;\r\n\t\t\t\t// If difference is between 1 day and 7 days\r\n\t\t\t\t// days is a good interval\r\n\t\t\tcase(strtotime('-1 week', $dateto) < $datefrom):\r\n\t\t\t\t$day_difference = 1;\r\n\t\t\t\twhile (strtotime('-'.$day_difference.' day', $dateto) >= $datefrom)\r\n\t\t\t\t{\r\n\t\t\t\t\t$day_difference++;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t$datediff = $day_difference;\r\n\t\t\t\t$res = ($datediff==1) ? 'yesterday' : $datediff.' days ago';\r\n\t\t\t\tbreak;\r\n\t\t\t\t// If difference is between 1 week and 30 days\r\n\t\t\t\t// weeks is a good interval\r\n\t\t\tcase(strtotime('-1 month', $dateto) < $datefrom):\r\n\t\t\t\t$week_difference = 1;\r\n\t\t\t\twhile (strtotime('-'.$week_difference.' week', $dateto) >= $datefrom)\r\n\t\t\t\t{\r\n\t\t\t\t\t$week_difference++;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t$datediff = $week_difference;\r\n\t\t\t\t$res = ($datediff==1) ? 'last week' : $datediff.' weeks ago';\r\n\t\t\t\tbreak;\r\n\t\t\t\t// If difference is between 30 days and 365 days\r\n\t\t\t\t// months is a good interval, again, the same thing\r\n\t\t\t\t// applies, if the 29th February happens to exist\r\n\t\t\t\t// between your 2 dates, the function will return\r\n\t\t\t\t// the 'incorrect' value for a day\r\n\t\t\tcase(strtotime('-1 year', $dateto) < $datefrom):\r\n\t\t\t\t$months_difference = 1;\r\n\t\t\t\twhile (strtotime('-'.$months_difference.' month', $dateto) >= $datefrom)\r\n\t\t\t\t{\r\n\t\t\t\t\t$months_difference++;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t$datediff = $months_difference;\r\n\t\t\t\t$res = ($datediff==1) ? $datediff.' month ago' : $datediff.' months ago';\r\n\r\n\t\t\t\tbreak;\r\n\t\t\t\t// If difference is greater than or equal to 365\r\n\t\t\t\t// days, return year. This will be incorrect if\r\n\t\t\t\t// for example, you call the function on the 28th April\r\n\t\t\t\t// 2008 passing in 29th April 2007. It will return\r\n\t\t\t\t// 1 year ago when in actual fact (yawn!) not quite\r\n\t\t\t\t// a year has gone by\r\n\t\t\tcase(strtotime('-1 year', $dateto) >= $datefrom):\r\n\t\t\t\t$year_difference = 1;\r\n\t\t\t\twhile (strtotime('-'.$year_difference.' year', $dateto) >= $datefrom)\r\n\t\t\t\t{\r\n\t\t\t\t\t$year_difference++;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t$datediff = $year_difference;\r\n\t\t\t\t$res = ($datediff==1) ? $datediff.' year ago' : $datediff.' years ago';\r\n\t\t\t\tbreak;\r\n\r\n\t\t}\r\n\t\treturn $res;\r\n\t}", "private function _relative_time($date) {\n\t\t$valid_date = (is_numeric($date) && strtotime($date) === FALSE) ? $date : strtotime($date);\n\t\t$diff = time() - $valid_date;\n\t\tif ($diff > 0) {\n\t\t\tif ($diff < 60) {\n\t\t\t\treturn $diff . \" second\" . $this->_plural($diff) . \" ago\";\n\t\t\t}\n\t\t\t$diff = round($diff / 60);\n\n\t\t\tif ($diff < 60) {\n\t\t\t\treturn $diff . \" minute\" . $this->_plural($diff) . \" ago\";\n\t\t\t}\n\t\t\t$diff = round($diff / 60);\n\n\t\t\tif ($diff < 24) {\n\t\t\t\treturn $diff . \" hour\" . $this->_plural($diff) . \" ago\";\n\t\t\t}\n\t\t\t$diff = round($diff / 24);\n\n\t\t\tif ($diff < 7) {\n\t\t\t\treturn \"about \" . $diff . \" day\" . $this->_plural($diff) . \" ago\";\n\t\t\t}\n\t\t\t$diff = round($diff / 7);\n\n\t\t\tif ($diff < 4) {\n\t\t\t\treturn \"about \" . $diff . \" week\" . $this->_plural($diff) . \" ago\";\n\t\t\t}\n\n\t\t\treturn \"on \" . date(\"F j, Y\", strtotime($valid_date));\n\t\t} else {\n\t\t\tif ($diff > -60) {\n\t\t\t\treturn \"in \" . -$diff . \" second\" . $this->_plural($diff);\n\t\t\t}\n\t\t\t$diff = round($diff / 60);\n\n\t\t\tif ($diff > -60) {\n\t\t\t\treturn \"in \" . -$diff . \" minute\" . $this->_plural($diff);\n\t\t\t}\n\t\t\t$diff = round($diff / 60);\n\n\t\t\tif ($diff > -24) {\n\t\t\t\treturn \"in \" . -$diff . \" hour\" . $this->_plural($diff);\n\t\t\t}\n\t\t\t$diff = round($diff / 24);\n\n\t\t\tif ($diff > -7) {\n\t\t\t\treturn \"in \" . -$diff . \" day\" . $this->_plural($diff);\n\t\t\t}\n\t\t\t$diff = round($diff / 7);\n\n\t\t\tif ($diff > -4) {\n\t\t\t\treturn \"in \" . -$diff . \" week\" . $this->_plural($diff);\n\t\t\t}\t\n\n\t\t\treturn \"on \" . date(\"F j, Y\", strtotime($valid_date));\n\t\t}\n\t}", "function getDateTimeDiff($date)\n {\n $now_timestamp = strtotime(date('Y-m-d H:i:s'));\n $diff_timestamp = $now_timestamp - strtotime($date);\n\n if ($diff_timestamp < 60){\n return 'few second ago';\n }elseif ($diff_timestamp >= 60 && $diff_timestamp<3600){\n return round($diff_timestamp/60).' mins ago';\n\n }elseif ($diff_timestamp >= 3600 && $diff_timestamp<86400){\n return round($diff_timestamp/60).' hours ago';\n\n }elseif ($diff_timestamp >= 86400 && $diff_timestamp<(86400*30)){\n return round($diff_timestamp/60).' days ago';\n\n }elseif ($diff_timestamp >= (86400*30) && $diff_timestamp<(86400*365)){\n return round($diff_timestamp/60).' months ago';\n\n }else {\n return round($diff_timestamp/(86400*365)).' years ago';\n }\n\n echo date('Y-m-d H:i:s').'<br>';\n echo getDateTimeDiff('1976-04-13 22:28:00').'<br>';\n echo getDateTimeDiff('1982-03-26 21:35:00').'<br>';\n echo getDateTimeDiff('2012-03-16 14:40:00');\n }", "function ago($datefrom,$dateto=-1)\n {\n // its an error rather than the epoch\n \n if($datefrom=='0') { return \"A long time ago\"; }\n if($dateto=='-1') { $dateto = time(); }\n \n // Make the entered date into Unix timestamp from MySQL datetime field\n\n $datefrom = strtotime($datefrom);\n \n // Calculate the difference in seconds betweeen\n // the two timestamps\n\n $difference = $dateto - $datefrom;\n\n // Based on the interval, determine the\n // number of units between the two dates\n // From this point on, you would be hard\n // pushed telling the difference between\n // this function and DateDiff. If the $datediff\n // returned is 1, be sure to return the singular\n // of the unit, e.g. 'day' rather 'days'\n \n switch(true)\n {\n // If difference is less than 60 seconds,\n // seconds is a good interval of choice\n case(strtotime('-1 min', $dateto) < $datefrom):\n $datediff = $difference;\n $res = ($datediff==1) ? $datediff.' second ago' : $datediff.' seconds ago';\n break;\n // If difference is between 60 seconds and\n // 60 minutes, minutes is a good interval\n case(strtotime('-1 hour', $dateto) < $datefrom):\n $datediff = floor($difference / 60);\n $res = ($datediff==1) ? $datediff.' minute ago' : $datediff.' minutes ago';\n break;\n // If difference is between 1 hour and 24 hours\n // hours is a good interval\n case(strtotime('-1 day', $dateto) < $datefrom):\n $datediff = floor($difference / 60 / 60);\n $res = ($datediff==1) ? $datediff.' hour ago' : $datediff.' hours ago';\n break;\n // If difference is between 1 day and 7 days\n // days is a good interval \n case(strtotime('-1 week', $dateto) < $datefrom):\n $day_difference = 1;\n while (strtotime('-'.$day_difference.' day', $dateto) >= $datefrom)\n {\n $day_difference++;\n }\n \n $datediff = $day_difference;\n $res = ($datediff==1) ? 'yesterday' : $datediff.' days ago';\n break;\n // If difference is between 1 week and 30 days\n // weeks is a good interval \n case(strtotime('-1 month', $dateto) < $datefrom):\n $week_difference = 1;\n while (strtotime('-'.$week_difference.' week', $dateto) >= $datefrom)\n {\n $week_difference++;\n }\n \n $datediff = $week_difference;\n $res = ($datediff==1) ? 'last week' : $datediff.' weeks ago';\n break; \n // If difference is between 30 days and 365 days\n // months is a good interval, again, the same thing\n // applies, if the 29th February happens to exist\n // between your 2 dates, the function will return\n // the 'incorrect' value for a day\n case(strtotime('-1 year', $dateto) < $datefrom):\n $months_difference = 1;\n while (strtotime('-'.$months_difference.' month', $dateto) >= $datefrom)\n {\n $months_difference++;\n }\n \n $datediff = $months_difference;\n $res = ($datediff==1) ? $datediff.' month ago' : $datediff.' months ago';\n\n break;\n // If difference is greater than or equal to 365\n // days, return year. This will be incorrect if\n // for example, you call the function on the 28th April\n // 2008 passing in 29th April 2007. It will return\n // 1 year ago when in actual fact (yawn!) not quite\n // a year has gone by\n case(strtotime('-1 year', $dateto) >= $datefrom):\n $year_difference = 1;\n while (strtotime('-'.$year_difference.' year', $dateto) >= $datefrom)\n {\n $year_difference++;\n }\n \n $datediff = $year_difference;\n $res = ($datediff==1) ? $datediff.' year ago' : $datediff.' years ago';\n break;\n \n }\n return $res;\n }", "function formatToDaysAgo(string $date): string\n{\n $currentDate = new DateTime(date('Ymd'));\n $publishedDate = new DateTime($date);\n $difference = $publishedDate->diff($currentDate);\n $daysAgo = $difference->format('%a');\n\n if ($daysAgo === '0') {\n return 'today';\n } elseif ($daysAgo === '1') {\n return 'yesterday';\n }\n\n return \"$daysAgo days ago\";\n}", "function ago($m) {\n if ($m <= 90)\n return round($m) . ' min. ago';\n if ($m <= (60 * 2))\n return 'less than 2 hrs ago';\n if ($m <= (60 * 2 + 30))\n return 'about 2 hrs ago';\n if ($m <= (60 * 24))\n return 'about ' . round($m / 60) . ' hrs ago';\n\n $dayCnt = round($m / 60 / 24);\n if ($dayCnt > 1)\n return $dayCnt . ' days ago';\n else\n return $dayCnt . ' day ago';\n}", "function ago($time)\n{\n $periods_single = array(\"seconde\", \"minuut\", \"uur\", \"dag\", \"week\", \"maand\", \"jaar\", \"decennium\");\n $periods_multi = array(\"seconden\", \"minuten\", \"uur\", \"dagen\", \"weken\", \"maanden\", \"jaren\", \"decennia\");\n\n $lengths = array(\"60\",\"60\",\"24\",\"7\",\"4.35\",\"12\",\"10\");\n\n $now = time();\n\n $difference = $now - $time;\n $tense = \"ago\";\n\n for($j = 0; $difference >= $lengths[$j] && $j < count($lengths)-1; $j++) {\n $difference /= $lengths[$j];\n }\n\n $difference = round($difference);\n\n $period = $periods_single[$j];\n\n if($difference > 1) {\n $period = $periods_multi[$j];\n }\n\n return \"$difference $period geleden\";\n}", "function time_Ago($time) { \n \n // Calculate difference between current \n // time and given timestamp in seconds \n $diff = time() - $time; \n \n // Time difference in seconds \n $sec = $diff; \n \n // Convert time difference in minutes \n $min = round($diff / 60 ); \n \n // Convert time difference in hours \n $hrs = round($diff / 3600); \n \n // Convert time difference in days \n $days = round($diff / 86400 ); \n \n // Convert time difference in weeks \n $weeks = round($diff / 604800); \n \n // Convert time difference in months \n $mnths = round($diff / 2600640 ); \n \n // Convert time difference in years \n $yrs = round($diff / 31207680 ); \n \n // Check for seconds \n if($sec <= 60) { \n return \"$sec seconds ago\"; \n } \n \n // Check for minutes \n else if($min <= 60) { \n if($min==1) { \n return \"one minute ago\"; \n } \n else { \n return \"$min minutes ago\"; \n } \n } \n \n // Check for hours \n else if($hrs <= 24) { \n if($hrs == 1) { \n return \"an hour ago\"; \n } \n else { \n return \"$hrs hours ago\"; \n } \n } \n \n // Check for days \n else if($days <= 7) { \n if($days == 1) { \n return \"Yesterday\"; \n } \n else { \n return \"$days days ago\"; \n } \n } \n \n // Check for weeks \n else if($weeks <= 4.3) { \n if($weeks == 1) { \n return \"a week ago\"; \n } \n else { \n return \"$weeks weeks ago\"; \n } \n } \n \n // Check for months \n else if($mnths <= 12) { \n if($mnths == 1) { \n return \"a month ago\"; \n } \n else { \n return \"$mnths months ago\"; \n } \n } \n \n // Check for years \n else { \n if($yrs == 1) { \n return \"one year ago\"; \n } \n else { \n return \"$yrs years ago\"; \n } \n } \n}", "public function timeAgo($date)\n {\n $interval = $this->getInterval(time(), $date);\n if ($interval->invert) {\n return $this->convert(time(), $date);\n }\n\n return $this->translation->translate();\n }", "public function getTimeElapsed(): string\n {\n $now = new DateTime('now');\n $ago = new DateTime($this->datetime);\n $diff = $ago->diff($now);\n if (!empty($diff->y)) {\n $age = $diff->y . 'year';\n $age = $age . ($diff->y > 1 ? 's' : '');\n } elseif ($diff->m > 0) {\n $age = $diff->m . 'month';\n $age = $age . ($diff->m > 1 ? 's' : '');\n } elseif ($diff->d > 0) {\n $age = $diff->d . 'day';\n $age = $age . ($diff->d > 1 ? 's' : '');\n } elseif ($diff->h > 0) {\n $age = $diff->h . 'hour';\n $age = $age . ($diff->h > 1 ? 's' : '');\n } elseif ($diff->i > 0) {\n $age = $diff->i . 'minute';\n $age = $age . ($diff->i > 1 ? 's' : '');\n } else {\n $age = $diff->s . 'second';\n $age = $age . ($diff->s > 1 ? 's' : '');\n }\n $ageWithPostfix = $age . ' ago';\n return $ageWithPostfix;\n }", "function time_ago($d1, $d2){\r\n\t$d1 = (is_string($d1) ? strtotime($d1) : $d1);\r\n\t$d2 = (is_string($d2) ? strtotime($d2) : $d2);\r\n\r\n\t$diff_secs = abs($d1 - $d2);\r\n\t$base_year = min(date(\"Y\", $d1), date(\"Y\", $d2));\r\n\r\n\t$diff = mktime(0, 0, $diff_secs, 1, 1, $base_year);\r\n\t$diffArray = array(\r\n\t\t\"years\" => date(\"Y\", $diff) - $base_year,\r\n\t\t\"months_total\" => (date(\"Y\", $diff) - $base_year) * 12 + date(\"n\", $diff) - 1,\r\n\t\t\"months\" => date(\"n\", $diff) - 1,\r\n\t\t\"days_total\" => floor($diff_secs / (3600 * 24)),\r\n\t\t\"days\" => date(\"j\", $diff) - 1,\r\n\t\t\"hours_total\" => floor($diff_secs / 3600),\r\n\t\t\"hours\" => date(\"G\", $diff),\r\n\t\t\"minutes_total\" => floor($diff_secs / 60),\r\n\t\t\"minutes\" => (int) date(\"i\", $diff),\r\n\t\t\"seconds_total\" => $diff_secs,\r\n\t\t\"seconds\" => (int) date(\"s\", $diff)\r\n\t);\r\n\tif($diffArray['days'] > 0){\r\n\t\tif($diffArray['days'] == 1){\r\n\t\t\t$days = '1 day';\r\n\t\t}else{\r\n\t\t\t$days = $diffArray['days'] . ' days';\r\n\t\t}\r\n\t\treturn $days . ' and ' . $diffArray['hours'] . ' hours ago';\r\n\t}else if($diffArray['hours'] > 0){\r\n\t\tif($diffArray['hours'] == 1){\r\n\t\t\t$hours = '1 hour';\r\n\t\t}else{\r\n\t\t\t$hours = $diffArray['hours'] . ' hours';\r\n\t\t}\r\n\t\treturn $hours . ' and ' . $diffArray['minutes'] . ' minutes ago';\r\n\t}else if($diffArray['minutes'] > 0){\r\n\t\tif($diffArray['minutes'] == 1){\r\n\t\t\t$minutes = '1 minute';\r\n\t\t}else{\r\n\t\t\t$minutes = $diffArray['minutes'] . ' minutes';\r\n\t\t}\r\n\t\treturn $minutes . ' and ' . $diffArray['seconds'] . ' seconds ago';\r\n\t}else{\r\n\t\treturn 'Less than a minute ago';\r\n\t}\r\n}", "function timeAgo($time_ago)\n {\n $time_ago = strtotime($time_ago);\n $cur_time = time()-28800;\n $time_elapsed = $cur_time - $time_ago;\n $seconds = $time_elapsed ;\n $minutes = round($time_elapsed / 60 );\n $hours = round($time_elapsed / 3600);\n $days = round($time_elapsed / 86400 );\n $weeks = round($time_elapsed / 604800);\n $months = round($time_elapsed / 2600640 );\n $years = round($time_elapsed / 31207680 );\n // Seconds\n if($seconds <= 60){\n return \"just now\";\n }\n //Minutes\n else if($minutes <=60){\n if($minutes==1){\n return \"one minute ago\";\n }\n else{\n return \"$minutes minutes ago\";\n }\n }\n //Hours\n else if($hours <=24){\n if($hours==1){\n return \"an hour ago\";\n }else{\n return \"$hours hrs ago\";\n }\n }\n //Days\n else if($days <= 7){\n if($days==1){\n return \"yesterday\";\n }else{\n return \"$days days ago\";\n }\n }\n //Weeks\n else if($weeks <= 4.3){\n if($weeks==1){\n return \"a week ago\";\n }else{\n return \"$weeks weeks ago\";\n }\n }\n //Months\n else if($months <=12){\n if($months==1){\n return \"a month ago\";\n }else{\n return \"$months months ago\";\n }\n }\n //Years\n else{\n if($years==1){\n return \"one year ago\";\n }else{\n return \"$years years ago\";\n }\n }\n }", "function get_timeago( $ptime )\n{\n $estimate_time = time() - $ptime;\n\n if( $estimate_time < 1 )\n {\n return 'less than 1 second ago';\n }\n\n $condition = array(\n 12 * 30 * 24 * 60 * 60 => 'year',\n 30 * 24 * 60 * 60 => 'month',\n 24 * 60 * 60 => 'day',\n 60 * 60 => 'hour',\n 60 => 'minute',\n 1 => 'second'\n );\n\n foreach( $condition as $secs => $str )\n {\n $d = $estimate_time / $secs;\n\n if( $d >= 1 )\n {\n $r = round( $d );\n return 'about ' . $r . ' ' . $str . ( $r > 1 ? 's' : '' ) . ' ago';\n }\n }\n}", "function howOld($date){\r\n\r\n\t\t$age = time() - strtotime($date);\r\n\r\n\t\t$hours = round($age/60/60, 0);\r\n\r\n\t\tif ($hours <= 23)\r\n\t\t{\r\n\t\t\t$units = 'hours';\r\n\t\t}\r\n\t\telse if ($hours >= 24)\r\n\t\t{\r\n\t\t\t$hours = round($hours / 24, 0);\r\n\t\t\t$units = 'day';\r\n\r\n\t\t\tif ($hours > 1)\r\n\t\t\t{\r\n\t\t\t\t$units = 'days';\r\n\t\t\t}\r\n\t\t} \r\n\r\n\t\treturn $hours.' '.$units;\r\n}", "function time_calc($up_time)\n {\n // time is of the form YYYY-MM-DD HH:MM:SS.MILISEC\n $x = explode(' ', $up_time);\n $y = explode('-', $x[0]);\n $z = explode(':', $x[1]);\n\n // condition for year\n if(((int)date('Y') - (int)$y[0]) > 0)\n {\n $temp = ((int)date('Y') - (int)$y[0]);\n $temp = $temp.\" years ago\";\n return($temp);\n }\n else if(((int)date('m') - (int)$y[1]) > 0)\n {\n $temp = ((int)date('m') - (int)$y[1]);\n $temp = $temp.\" months ago\";\n return($temp);\n }\n else if(((int)date('d') - (int)$y[2]) > 0)\n {\n $temp = ((int)date('d') - (int)$y[2]);\n $temp = $temp.\" days ago\";\n return($temp);\n }\n else if(((int)date('H') - (int)$z[0]) > 0)\n {\n $temp = ((int)date('H') - (int)$z[0]);\n $temp = $temp.\" hrs ago\";\n return($temp);\n }\n else if(((int)date('i') - (int)$z[1]) > 0)\n {\n $temp = ((int)date('i') - (int)$z[1]);\n $temp = $temp.\" mins ago\";\n return($temp);\n }\n }", "function ajan_core_time_since( $older_date, $newer_date = false ) {\n\n\t// Use this filter to bypass ActivityNotifications's time_since calculations\n\tif ( $pre_value = apply_filters( 'ajan_core_time_since_pre', false, $older_date, $newer_date ) ) {\n\t\treturn $pre_value;\n\t}\n\n\t// Setup the strings\n\t$unknown_text = apply_filters( 'ajan_core_time_since_unknown_text', __( 'sometime', 'ajency-activity-and-notifications' ) );\n\t$right_now_text = apply_filters( 'ajan_core_time_since_right_now_text', __( 'right now', 'ajency-activity-and-notifications' ) );\n\t$ago_text = apply_filters( 'ajan_core_time_since_ago_text', __( '%s ago', 'ajency-activity-and-notifications' ) );\n\n\t// array of time period chunks\n\t$chunks = array(\n\t\tYEAR_IN_SECONDS,\n\t\t30 * DAY_IN_SECONDS,\n\t\tWEEK_IN_SECONDS,\n\t\tDAY_IN_SECONDS,\n\t\tHOUR_IN_SECONDS,\n\t\tMINUTE_IN_SECONDS,\n\t\t1\n\t);\n\n\tif ( !empty( $older_date ) && !is_numeric( $older_date ) ) {\n\t\t$time_chunks = explode( ':', str_replace( ' ', ':', $older_date ) );\n\t\t$date_chunks = explode( '-', str_replace( ' ', '-', $older_date ) );\n\t\t$older_date = gmmktime( (int) $time_chunks[1], (int) $time_chunks[2], (int) $time_chunks[3], (int) $date_chunks[1], (int) $date_chunks[2], (int) $date_chunks[0] );\n\t}\n\n\t/**\n\t * $newer_date will equal false if we want to know the time elapsed between\n\t * a date and the current time. $newer_date will have a value if we want to\n\t * work out time elapsed between two known dates.\n\t */\n\t$newer_date = ( !$newer_date ) ? strtotime( ajan_core_current_time() ) : $newer_date;\n\n\t// Difference in seconds\n\t$since = $newer_date - $older_date;\n\n\t// Something went wrong with date calculation and we ended up with a negative date.\n\tif ( 0 > $since ) {\n\t\t$output = $unknown_text;\n\n\t/**\n\t * We only want to output two chunks of time here, eg:\n\t * x years, xx months\n\t * x days, xx hours\n\t * so there's only two bits of calculation below:\n\t */\n\t} else {\n\n\t\t// Step one: the first chunk\n\t\tfor ( $i = 0, $j = count( $chunks ); $i < $j; ++$i ) {\n\t\t\t$seconds = $chunks[$i];\n\n\t\t\t// Finding the biggest chunk (if the chunk fits, break)\n\t\t\t$count = floor( $since / $seconds );\n\t\t\tif ( 0 != $count ) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\t// If $i iterates all the way to $j, then the event happened 0 seconds ago\n\t\tif ( !isset( $chunks[$i] ) ) {\n\t\t\t$output = $right_now_text;\n\n\t\t} else {\n\n\t\t\t// Set output var\n\t\t\tswitch ( $seconds ) {\n\t\t\t\tcase YEAR_IN_SECONDS :\n\t\t\t\t\t$output = sprintf( _n( '%s year', '%s years', $count, 'ajency-activity-and-notifications' ), $count );\n\t\t\t\t\tbreak;\n\t\t\t\tcase 30 * DAY_IN_SECONDS :\n\t\t\t\t\t$output = sprintf( _n( '%s month', '%s months', $count, 'ajency-activity-and-notifications' ), $count );\n\t\t\t\t\tbreak;\n\t\t\t\tcase WEEK_IN_SECONDS :\n\t\t\t\t\t$output = sprintf( _n( '%s week', '%s weeks', $count, 'ajency-activity-and-notifications' ), $count );\n\t\t\t\t\tbreak;\n\t\t\t\tcase DAY_IN_SECONDS :\n\t\t\t\t\t$output = sprintf( _n( '%s day', '%s days', $count, 'ajency-activity-and-notifications' ), $count );\n\t\t\t\t\tbreak;\n\t\t\t\tcase HOUR_IN_SECONDS :\n\t\t\t\t\t$output = sprintf( _n( '%s hour', '%s hours', $count, 'ajency-activity-and-notifications' ), $count );\n\t\t\t\t\tbreak;\n\t\t\t\tcase MINUTE_IN_SECONDS :\n\t\t\t\t\t$output = sprintf( _n( '%s minute', '%s minutes', $count, 'ajency-activity-and-notifications' ), $count );\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t$output = sprintf( _n( '%s second', '%s seconds', $count, 'ajency-activity-and-notifications' ), $count );\n\t\t\t}\n\n\t\t\t// Step two: the second chunk\n\t\t\t// A quirk in the implementation means that this\n\t\t\t// condition fails in the case of minutes and seconds.\n\t\t\t// We've left the quirk in place, since fractions of a\n\t\t\t// minute are not a useful piece of information for our\n\t\t\t// purposes\n\t\t\tif ( $i + 2 < $j ) {\n\t\t\t\t$seconds2 = $chunks[$i + 1];\n\t\t\t\t$count2 = floor( ( $since - ( $seconds * $count ) ) / $seconds2 );\n\n\t\t\t\t// Add to output var\n\t\t\t\tif ( 0 != $count2 ) {\n\t\t\t\t\t$output .= _x( ',', 'Separator in time since', 'ajency-activity-and-notifications' ) . ' ';\n\n\t\t\t\t\tswitch ( $seconds2 ) {\n\t\t\t\t\t\tcase 30 * DAY_IN_SECONDS :\n\t\t\t\t\t\t\t$output .= sprintf( _n( '%s month', '%s months', $count2, 'ajency-activity-and-notifications' ), $count2 );\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase WEEK_IN_SECONDS :\n\t\t\t\t\t\t\t$output .= sprintf( _n( '%s week', '%s weeks', $count2, 'ajency-activity-and-notifications' ), $count2 );\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase DAY_IN_SECONDS :\n\t\t\t\t\t\t\t$output .= sprintf( _n( '%s day', '%s days', $count2, 'ajency-activity-and-notifications' ), $count2 );\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase HOUR_IN_SECONDS :\n\t\t\t\t\t\t\t$output .= sprintf( _n( '%s hour', '%s hours', $count2, 'ajency-activity-and-notifications' ), $count2 );\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase MINUTE_IN_SECONDS :\n\t\t\t\t\t\t\t$output .= sprintf( _n( '%s minute', '%s minutes', $count2, 'ajency-activity-and-notifications' ), $count2 );\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t$output .= sprintf( _n( '%s second', '%s seconds', $count2, 'ajency-activity-and-notifications' ), $count2 );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// No output, so happened right now\n\t\t\tif ( ! (int) trim( $output ) ) {\n\t\t\t\t$output = $right_now_text;\n\t\t\t}\n\t\t}\n\t}\n\n\t// Append 'ago' to the end of time-since if not 'right now'\n\tif ( $output != $right_now_text ) {\n\t\t$output = sprintf( $ago_text, $output );\n\t}\n\n\treturn apply_filters( 'ajan_core_time_since', $output, $older_date, $newer_date );\n}", "function timeLeft($target)\n{\n\t$return_value = \"\";\n\t$diff = $target['endTime']->diff($target['timeStamp']);\n\t$doPlural = function($nb,$str){return $nb>1?$str.'s':$str;}; // adds plurals\n\n\t$format = array();\n\tif($diff->y !== 0) {\n\t\t$format[] = \"%y \".$doPlural($diff->y, \"year\");\n\t}\n\tif($diff->m !== 0) {\n\t\t$format[] = \"%m \".$doPlural($diff->m, \"month\");\n\t}\n\tif($diff->d !== 0) {\n\t\t$format[] = \"%d \".$doPlural($diff->d, \"day\");\n\t}\n\tif($diff->h !== 0) {\n\t\t$format[] = \"%h \".$doPlural($diff->h, \"hour\");\n\t}\n\tif($diff->i !== 0) {\n\t\t$format[] = \"%i \".$doPlural($diff->i, \"minute\");\n\t}\n\tif($diff->s !== 0) {\n\t\tif(!count($format)) {\n\t\t\treturn \"less than a minute ago\";\n\t\t} else {\n\t\t\t$format[] = \"%s \".$doPlural($diff->s, \"second\");\n\t\t}\n\t}\n\n\t// Prepend 'since ' or whatever you like from the calling function\n\treturn $diff->format(implode (\" \",$format));\n\n}", "function TimeAgo($datefrom,$dateto=-1) {\n\t\t// its an error rather than the epoch\n\n\t\tif($datefrom<=0) { return \"A long time ago\"; }\n\t\tif($dateto==-1) { $dateto = time(); }\n\n\t\t// Calculate the difference in seconds betweeen\n\t\t// the two timestamps\n\n\t\t$difference = $dateto - $datefrom;\n\n\t\t// If difference is less than 60 seconds,\n\t\t// seconds is a good interval of choice\n\n\t\tif($difference < 60) {\n\t\t\t$interval = \"s\";\n\t\t}\n\n\t\t// If difference is between 60 seconds and\n\t\t// 60 minutes, minutes is a good interval\n\t\telseif($difference >= 60 && $difference<60*60) {\n\t\t\t$interval = \"n\";\n\t\t}\n\n\t\t// If difference is between 1 hour and 24 hours\n\t\t// hours is a good interval\n\t\telseif($difference >= 60*60 && $difference<60*60*24) {\n\t\t\t$interval = \"h\";\n\t\t}\n\n\t\t// If difference is between 1 day and 7 days\n\t\t// days is a good interval\n\t\telseif($difference >= 60*60*24 && $difference<60*60*24*7){\n\t\t\t$interval = \"d\";\n\t\t}\n\n\t\t// If difference is between 1 week and 30 days\n\t\t// weeks is a good interval\n\t\telseif($difference >= 60*60*24*7 && $difference <60*60*24*30) {\n\t\t\t$interval = \"ww\";\n\t\t}\n\n\t\t// If difference is between 30 days and 365 days\n\t\t// months is a good interval, again, the same thing\n\t\t// applies, if the 29th February happens to exist\n\t\t// between your 2 dates, the function will return\n\t\t// the 'incorrect' value for a day\n\t\telseif($difference >= 60*60*24*30 && $difference <60*60*24*365) {\n\t\t\t$interval = \"m\";\n\t\t}\n\n\t\t// If difference is greater than or equal to 365\n\t\t// days, return year. This will be incorrect if\n\t\t// for example, you call the function on the 28th April\n\t\t// 2008 passing in 29th April 2007. It will return\n\t\t// 1 year ago when in actual fact (yawn!) not quite\n\t\t// a year has gone by\n\t\telseif($difference >= 60*60*24*365) {\n\t\t\t$interval = \"y\";\n\t\t}\n\n\t\t// Based on the interval, determine the\n\t\t// number of units between the two dates\n\t\t// From this point on, you would be hard\n\t\t// pushed telling the difference between\n\t\t// this function and DateDiff. If the $datediff\n\t\t// returned is 1, be sure to return the singular\n\t\t// of the unit, e.g. 'day' rather 'days'\n\n\t\tswitch($interval) {\n\t\t\tcase \"m\":\n\t\t\t$months_difference = floor($difference / 60 / 60 / 24 /29);\n\t\t\twhile (mktime(date(\"H\", $datefrom), date(\"i\", $datefrom), date(\"s\", $datefrom), date(\"n\", $datefrom)+($months_difference), date(\"j\", $dateto), date(\"Y\", $datefrom)) < $dateto) {\n\t\t\t\t$months_difference++;\n\t\t\t}\n\t\t\t$datediff = $months_difference;\n\n\t\t\t// We need this in here because it is possible\n\t\t\t// to have an 'm' interval and a months\n\t\t\t// difference of 12 because we are using 29 days\n\t\t\t// in a month\n\n\t\t\tif($datediff==12) {\n\t\t\t\t$datediff--;\n\t\t\t}\n\n\t\t\t$res = ($datediff==1) ? \"$datediff \".$this->lang()->index->monthAgo : \"$datediff \".$this->lang()->index->monthsAgo;\n\t\t\tbreak;\n\n\t\t\tcase \"y\":\n\t\t\t$datediff = floor($difference / 60 / 60 / 24 / 365);\n\t\t\t$res = ($datediff==1) ? \"$datediff \".$string->index->yearAgo : \"$datediff \".$this->lang()->index->yearsAgo;\n\t\t\tbreak;\n\n\t\t\tcase \"d\":\n\t\t\t$datediff = floor($difference / 60 / 60 / 24);\n\t\t\t$res = ($datediff==1) ? \"$datediff \".$this->lang()->index->dayAgo : \"$datediff \".$this->lang()->index->daysAgo;\n\t\t\tbreak;\n\n\t\t\tcase \"ww\":\n\t\t\t$datediff = floor($difference / 60 / 60 / 24 / 7);\n\t\t\t$res = ($datediff==1) ? \"$datediff \".$this->lang()->index->weekAgo : \"$datediff \".$this->lang()->index->weeksAgo;\n\t\t\tbreak;\n\n\t\t\tcase \"h\":\n\t\t\t$datediff = floor($difference / 60 / 60);\n\t\t\t$res = ($datediff==1) ? \"$datediff \".$this->lang()->index->hourAgo : \"$datediff \".$this->lang()->index->hoursAgo;\n\t\t\tbreak;\n\n\t\t\tcase \"n\":\n\t\t\t$datediff = floor($difference / 60);\n\t\t\t$res = ($datediff==1) ? \"$datediff \".$this->lang()->index->minuteAgo :\"$datediff \".$this->lang()->index->minutesAgo;\n\t\t\tbreak;\n\n\t\t\tcase \"s\":\n\t\t\t$datediff = $difference;\n\t\t\t$res = ($datediff==1) ? \"$datediff \".$this->lang()->index->secondAgo :\"$datediff \".$this->lang()->index->secondsAgo;\n\t\t\tbreak;\n\t\t}\n\t\treturn $res;\n\t}", "function relativeTime($time)\n{\n $delta = strtotime('+2 hours') - strtotime($time);\n if ($delta < 2 * MINUTE) {\n return \"1 min ago\";\n }\n if ($delta < 45 * MINUTE) {\n return floor($delta / MINUTE) . \" min ago\";\n }\n if ($delta < 90 * MINUTE) {\n return \"1 hour ago\";\n }\n if ($delta < 24 * HOUR) {\n return floor($delta / HOUR) . \" hours ago\";\n }\n if ($delta < 48 * HOUR) {\n return \"yesterday\";\n }\n if ($delta < 30 * DAY) {\n return floor($delta / DAY) . \" days ago\";\n }\n if ($delta < 12 * MONTH) {\n $months = floor($delta / DAY / 30);\n return $months <= 1 ? \"1 month ago\" : $months . \" months ago\";\n } else {\n $years = floor($delta / DAY / 365);\n return $years <= 1 ? \"1 year ago\" : $years . \" years ago\";\n }\n}", "function adelle_theme_time_ago( $type = 'comment' ) {\r\n $d = 'comment' == $type ? 'get_comment_time' : 'get_post_time';\r\n return human_time_diff($d( 'U' ), current_time( 'timestamp' )) . \" \" . __( 'ago', 'adelle-theme' );\r\n}", "function smarty_modifier_agoify($string)\n{\n $time = time() - $string; // to get the time since that moment\n\n $tokens = array (\n 31536000 => 'year',\n 2592000 => 'month',\n 604800 => 'week',\n 86400 => 'day',\n 3600 => 'hour',\n 60 => 'minute',\n 1 => 'second'\n );\n\n foreach ($tokens as $unit => $text) {\n if ($time < $unit){\n \n }else{\n $numberOfUnits = floor($time / $unit);\n break;\n }\n }\n return $numberOfUnits.' '.$text.(($numberOfUnits>1)?'s':'').' ago';\n}", "public function getTimeagoAttribute()\n\t{\n\t \t//$date = \\Carbon\\Carbon::createFromTimeStamp(strtotime($this->created_at))->diffForHumans();\n\n\t\tsetLocale(LC_TIME, 'Dutch');\n\t\t$date = Str::title($this->created_at->formatLocalized('%A %d %B %Y'));\n\n\t\treturn $date;\n\t}", "function daysAgo($timestamp){ \n date_default_timezone_set('Europe/Riga'); \n $time_ago = strtotime($timestamp); \n $current_time = time(); \n $time_difference = $current_time - $time_ago; \n $seconds = $time_difference; \n $minutes = round($seconds / 60 ); //code bellow calculates each unit by deviding seconds.\n $hours = round($seconds / 3600);\n $days = round($seconds / 86400);\n $weeks = round($seconds / 604800);\n $months = round($seconds / 2629440);\n $years = round($seconds / 31553280);\n if($seconds <= 60) \n { \n return \"Just Now\"; \n } \n else if($minutes <=60) \n { \n if($minutes==1) \n { \n return \"one minute ago\"; \n } \n else \n { \n return \"$minutes minutes ago\"; //two \"if\" statements are needed because of plural and singular.\n } \n } \n else if($hours <=24) \n { \n if($hours==1) \n { \n return \"an hour ago\"; \n } \n else \n { \n return \"$hours hrs ago\"; \n } \n } \n else if($days <= 7) \n { \n if($days==1) \n { \n return \"yesterday\"; \n } \n else \n { \n return \"$days days ago\"; \n } \n } \n else if($weeks <= 4.3) //4.3 == 52/12 \n { \n if($weeks==1) \n { \n return \"a week ago\"; \n } \n else \n { \n return \"$weeks weeks ago\"; \n } \n } \n else if($months <=12) \n { \n if($months==1) \n { \n return \"a month ago\"; \n } \n else \n { \n return \"$months months ago\"; \n } \n } \n else \n { \n if($years==1) \n { \n return \"one year ago\"; \n } \n else \n { \n return \"$years years ago\"; \n } \n } \n }", "public static function get_ago_translation() {\n\t\t// Get field value from settings.\n\t\t$text = IBX_WPFomo_Admin::get_settings( 'translate_ago' );\n\t\tif ( ! $text || empty( $text ) ) {\n\t\t\treturn esc_html__( 'ago', 'ibx-wpfomo' );\n\t\t} elseif ( '-' == $text ) {\n\t\t\treturn '';\n\t\t}\n\n\t\treturn esc_attr( $text );\n\t}", "public static function ago($t){\n\t\treturn date('Y-m-d H:i:s', time()-$t);\n\t}", "function time1($time) \n{\n \n$time= strtotime($time);\n $delta = time() - $time;\n\n if ($delta < 1 * MINUTE)\n {\n return $delta == 1 ? \"one second ago\" : $delta . \" seconds ago\";\n }\n if ($delta < 2 * MINUTE)\n {\n return \"a minute ago\";\n }\n if ($delta < 45 * MINUTE)\n {\n return floor($delta / MINUTE) . \" minutes ago\";\n }\n if ($delta < 90 * MINUTE)\n {\n return \"an hour ago\";\n }\n if ($delta < 24 * HOUR)\n {\n return floor($delta / HOUR) . \" hours ago\";\n }\n if ($delta < 48 * HOUR)\n {\n return \"yesterday\";\n }\n if ($delta < 30 * DAY)\n {\n return floor($delta / DAY) . \" days ago\";\n }\n if ($delta < 12 * MONTH)\n {\n $months = floor($delta / DAY / 30);\n return $months <= 1 ? \"one month ago\" : $months . \" months ago\";\n }\n else\n {\n $years = floor($delta / DAY / 365);\n return $years <= 1 ? \"one year ago\" : $years . \" years ago\";\n }\n \n}", "public function GetLastVisitDay($date)\n {\n $difftext = \"\";\n $createdday = strtotime($date);\n \n if($createdday){\n $today = time(); \n $datediff = abs($today - $createdday); \n\n $years = floor($datediff / (365*60*60*24)); \n $months = floor(($datediff - $years * 365*60*60*24) / (30*60*60*24)); \n $days = floor(($datediff - $years * 365*60*60*24 - $months*30*60*60*24)/ (60*60*24)); \n $hours = floor($datediff/3600); \n $minutes = floor($datediff/60); \n $seconds = floor($datediff); \n //year checker \n if($difftext==\"\") \n { \n if($years>1) \n $difftext = $years.\" years ago\"; \n elseif($years==1) \n $difftext = $years.\" year ago\"; \n } \n //month checker \n if($difftext==\"\") \n { \n if($months>1) \n $difftext = $months.\" months ago\"; \n elseif($months==1) \n $difftext = $months.\" month ago\"; \n } \n //month checker \n if($difftext==\"\") \n { \n if($days>1) \n $difftext = $days.\" days ago\"; \n elseif($days==1) \n $difftext = \"Yesterday\"; \n } \n //hour checker \n if($difftext==\"\") \n { \n if($hours>1) \n $difftext = $hours.\" hours ago\"; \n elseif($hours==1) \n $difftext = $hours.\" hour ago\"; \n } \n //minutes checker \n if($difftext==\"\") \n { \n if($minutes>1) \n $difftext = $minutes.\" minutes ago\"; \n elseif($minutes==1) \n $difftext = $minutes.\" minute ago\"; \n } \n //seconds checker \n if($difftext==\"\") \n { \n if($seconds>1) \n $difftext = $seconds.\" seconds ago\"; \n elseif($seconds==1) \n $difftext = $seconds.\" second ago\"; \n } \n }\n \n return $difftext;\n }", "public function time_diff($date, $ago_str=1, $show_date){ \t\t\n\t\t$s = time() - strtotime($date);\n\t\tif($s >= 1) {\n\t\t$td = \"$s sec\";\n\t\t} \n\t\tif($s > 59){ \n\t\t\t$m = (int)($s/60); \n\t\t\t$s = $s-($m*60); // sec left over \n\t\t\t$td = \"$m min\"; if($s>1) $td .= \"s\"; \n\t\t} \n\t\tif($m > 59){ \n\t\t\t$hr = (int)($m/60); \n\t\t\t$m = $m-($hr*60); // min left over \n\t\t\t$td = \"$hr hr\"; if($hr>1) $td .= \"s\"; \n\t\t\t\n\t\t} \n\t\tif($hr>23){\t\t\n\t\t\t$d = (int)($hr/24); \n\t\t\t$hr = $hr-($d*24); // hr left over \n\t\t\t$td = \"$d day\"; if($d>1) $td .= \"s\"; \n\t\t\t\n\t\t} \n\t\t\n\t\tif($d > 30){\t\t\n\t\t\t$m = (int)($d/30);\n\t\t\t$td = \"$m month\"; if($m>1) $td .= \"s\"; \n\t\t\t\n\t\t} \n\t\tif($ago_str == 1){\n\t\t\t$td .= ($td==\"now\")? \"\":\" ago\"; // in this example \"ago\" \n\t\t}\n\t\t// show the date\n\t\tif($d > 1 && $show_date == '1'){\n\t\t\treturn date('jS M, Y', strtotime($date));\n\t\t}\n\t\tif(trim($td) == 'ago')\treturn '1 sec ago';\n\t\t\n\t\treturn $td;\t\t\n }", "public function time_diff($date, $ago_str=1, $show_date){ \t\t\n\t\t$s = time() - strtotime($date);\n\t\tif($s >= 1) {\n\t\t$td = \"$s sec\";\n\t\t} \n\t\tif($s > 59){ \n\t\t\t$m = (int)($s/60); \n\t\t\t$s = $s-($m*60); // sec left over \n\t\t\t$td = \"$m min\"; if($s>1) $td .= \"s\"; \n\t\t} \n\t\tif($m > 59){ \n\t\t\t$hr = (int)($m/60); \n\t\t\t$m = $m-($hr*60); // min left over \n\t\t\t$td = \"$hr hr\"; if($hr>1) $td .= \"s\"; \n\t\t\t\n\t\t} \n\t\tif($hr>23){\t\t\n\t\t\t$d = (int)($hr/24); \n\t\t\t$hr = $hr-($d*24); // hr left over \n\t\t\t$td = \"$d day\"; if($d>1) $td .= \"s\"; \n\t\t\t\n\t\t} \n\t\t\n\t\tif($d > 30){\t\t\n\t\t\t$m = (int)($d/30);\n\t\t\t$td = \"$m month\"; if($m>1) $td .= \"s\"; \n\t\t\t\n\t\t} \n\t\tif($ago_str == 1){\n\t\t\t$td .= ($td==\"now\")? \"\":\" ago\"; // in this example \"ago\" \n\t\t}\n\t\t// show the date\n\t\tif($d > 1 && $show_date == '1'){\n\t\t\treturn date('jS M, Y', strtotime($date));\n\t\t}\n\t\tif(trim($td) == 'ago')\treturn '1 sec ago';\n\t\t\n\t\treturn $td;\t\t\n }", "function time_ago( $type = 'post' ) {\n\n $d = 'comment' == $type ? 'get_comment_time' : 'get_post_time';\n return human_time_diff($d('U'), current_time('timestamp')) . \" \" . __('ago');\n\n}", "function days_since( $post = null )\r\n{\r\n $days_ago = round(( date('U') - get_the_time('U') ) / ( 60 * 60 * 24 ));\r\n if ($days_ago == 0) {\r\n $posted = 'Today';\r\n } elseif ($days_ago == 1) {\r\n $posted = '1 day ago';\r\n } else {\r\n $posted = $days_ago . ' days ago.';\r\n }\r\n echo $posted;\r\n}", "function tfc_ago( $time ) {\n\t$periods = array( \"second\", \"minute\", \"hour\", \"day\", \"week\", \"month\", \"year\", \"decade\" );\n\t$lengths = array( \"60\", \"60\", \"24\", \"7\", \"4.35\", \"12\", \"10\" );\n\n\t$now = time();\n\n\t$difference = $now - $time;\n\t$tense = \"ago\";\n\n\tfor ( $j = 0; $difference >= $lengths[$j] && $j < count( $lengths )-1; $j++ ) {\n\t\t$difference /= $lengths[$j];\n\t}\n\n\t$difference = round( $difference );\n\n\tif ( $difference != 1 ) {\n\t\t$periods[$j] .= \"s\";\n\t}\n\n\treturn $difference $periods[$j] . \" ago \";\n}", "public static function ago($timestamp) {\n $difference = time() - $timestamp;\n // Having the full phrase means that it is fully localisable if the phrasing is different.\n $periods = array(\n lang::get(\"{1} second ago\"),\n lang::get(\"{1} minute ago\"),\n lang::get(\"{1} hour ago\"),\n lang::get(\"Yesterday\"),\n lang::get(\"{1} week ago\"),\n lang::get(\"{1} month ago\"),\n lang::get(\"{1} year ago\"),\n lang::get(\"{1} decade ago\")\n );\n $periodsPlural = array(\n lang::get(\"{1} seconds ago\"),\n lang::get(\"{1} minutes ago\"),\n lang::get(\"{1} hours ago\"),\n lang::get(\"{1} days ago\"),\n lang::get(\"{1} weeks ago\"),\n lang::get(\"{1} months ago\"),\n lang::get(\"{1} years ago\"),\n lang::get(\"{1} decades ago\")\n );\n $lengths = array(\"60\", \"60\", \"24\", \"7\", \"4.35\", \"12\", \"10\");\n for ($j = 0; (($difference >= $lengths[$j]) && ($j < 7)); $j++) {\n $difference /= $lengths[$j];\n }\n $difference = round($difference);\n if ($difference == 1) {\n $text = str_replace('{1}', $difference, $periods[$j]);\n }\n else {\n $text = str_replace('{1}', $difference, $periodsPlural[$j]);\n }\n return $text;\n }", "function get_time_ago($time) {\n $time_difference = time() - $time;\n\n if( $time_difference < 1 ) { return 'less than 1 second ago'; }\n $condition = array( 12 * 30 * 24 * 60 * 60 => 'year',\n 30 * 24 * 60 * 60 => 'month',\n 24 * 60 * 60 => 'day',\n 60 * 60 => 'hour',\n 60 => 'minute',\n 1 => 'second'\n );\n\n foreach( $condition as $secs => $str )\n {\n $d = $time_difference / $secs;\n\n if( $d >= 1 )\n {\n $t = round( $d );\n return $t . ' ' . $str . ( $t > 1 ? 's' : '' ) . ' ago';\n }\n }\n}", "function _lean_output_ago_date($date_raw, $show_date='true') {\n \n /**\n * Show Today, Yesterday or full date\n */\n $date_dd_mm_yyyy = format_date($date_raw, 'custom', 'd-m-Y');\n $todays_date = format_date(time(), 'custom', 'd-m-Y');\n $display_date = format_date($date_raw, 'custom', 'l, jS F');\n $posts_date = $date_dd_mm_yyyy;\n \n if ($todays_date == $posts_date) {\n $display_date = 'Today';\n } else {\n $dateDiff = strtotime($todays_date) - strtotime($posts_date);\n $fullDays = floor($dateDiff/(60*60*24));\n if ($fullDays <= 1) {\n $display_date = 'Yesterday';\n //} else if ($fullDays <= 6) {\n // $display_date = 'On '. format_date($date_raw, 'custom', 'l') . ',';\n //} else if (!$show_date) {\n // $display_date = '';\n }\n }\n return $display_date;\n}", "function get_time_ago( $time )\n{\n $time_difference = time() - $time;\n \n if( $time_difference < 1 ) { return 'less than 1 second ago'; }\n $condition = array( 12 * 30 * 24 * 60 * 60 => 'year',\n 30 * 24 * 60 * 60 => 'month',\n 24 * 60 * 60 => 'day',\n 60 * 60 => 'hour',\n 60 => 'minute',\n 1 => 'second'\n );\n \n foreach( $condition as $secs => $str )\n {\n $d = $time_difference / $secs;\n \n if( $d >= 1 )\n {\n $t = round( $d );\n return $t . ' ' . $str . ( $t > 1 ? 's' : '' ) . ' ago';\n }\n }\n}", "function get_timeago( $ptime )\n{\n $estimate_time = time() - $ptime;\n\n if( $estimate_time < 1 )\n {\n return 'pubblicato meno di 1 secondo fa';\n }\n\n $condition = array(\n 12 * 30 * 24 * 60 * 60 => 'anno',\n 30 * 24 * 60 * 60 => 'mese',\n 24 * 60 * 60 => 'giorno',\n 60 * 60 => 'ora',\n 60 => 'minuto',\n 1 => 'secondo'\n );\n\n foreach( $condition as $secs => $str )\n {\n $d = $estimate_time / $secs;\n\n if( $d >= 1 )\n {\n $r = round( $d );\n\n if ($str == 'ora') {\n return 'pubblicato circa ' . $r . ' ' . ( $r > 1 ? substr($str, 0, -1).'e' : $str ) . ' fa';\n } else {\n return 'pubblicato circa ' . $r . ' ' . ( $r > 1 ? substr($str, 0, -1).'i' : $str ) . ' fa';\n }\n \n }\n }\n}", "public function due_date_distance_in_words($date) {\n\t\t$ret = null;\n\n\t\tif ($date) {\n\t\t\t$time = strtotime($date);\n\t\t\t$now = time();\n $days = (integer) (abs($time - $now) / (60 * 60 * 24)) .__('days');\n\t\t\tif ($time < $now) {\n\t\t\t\t$ret = sprintf(__('%s late'),$days);\n\t\t\t} else {\n\t\t\t\t$ret = sprintf(__('Due in %s'),$days);\n\t\t\t}\n\t\t}\n\n\t\treturn $ret;\n\t}", "function cal_times($times){\n\t\t$diffTime = time()-strtotime($times);\n\t\t//echo $diffTime; exit();\n\t\tif($diffTime>31104000){\n\n\t\t\t$time = ceil($diffTime/31104000);\n\n\t\t\treturn $time.' year ago';\n\n\t\t}elseif($diffTime>2492000){\n\n\t\t\t$time = ceil($diffTime/2492000);\n\n\t\t\treturn $time.' months ago';\n\n\t\t}elseif($diffTime>86400){\n\n\t\t\t$time = ceil($diffTime/86400);\n\n\t\t\treturn $time.' days ago';\n\n\t\t}elseif($diffTime>3600){\n\n\t\t\t$time = ceil($diffTime/3600);\n\n\t\t\treturn $time.' hours ago';\n\n\t\t}elseif($diffTime>60){\n\n\t\t\t$time = ceil($diffTime/60);\n\n\t\t\treturn $time.' minutes ago';\n\n\t\t}else{\n\n\t\t\treturn $diffTime.' second ago';\n\n\t\t}\n\n\t}", "public static function timeAgo($from, $to='') {\n\t\tif ( empty($to) ) $to = time();\n\t\t\n\t\t$from = is_string($from)? strtotime($from) : intval($from);\n\t\t$to = is_string($to)? strtotime($to) : intval($to);\n\t\t\n\t\t$since = '';\n\t\t$diff = (int) abs($to - $from); //in seconds\n\t\tif ($diff <= 3600) $since = round($diff / 60).'m ago'; /* 1 minute .. 60 minutes */\n\t\telseif ( $diff>3600 && $diff<=86400 ) $since = round($diff / 3600).'h ago'; /* 1 hour .. 24 hours */\n\t\telseif ( $diff>86400 && $diff<=604800 ) $since = round($diff / 86400).'d ago'; /* 1 day .. 7 days */\n\t\telseif ( $diff>604800 && $diff<=3024000 ) $since = round($diff / 604800).'w ago'; /* 1 week .. 5 weeks */\n\t\t\n\t\treturn $since;\n\t}", "public static function smartDaysAgo($days) {\n\t\t$r = '';\n\t\tif($days == 1) {\n\t\t\t$r .= 'yesterday';\n\t\t} else {\n\t\t\t$r .= qstr::smartPlural($days, 'days') . ' ago';\n\t\t}\n\t\treturn $r;\n\t}", "function convertToAgoFormat($timestamp){\n date_default_timezone_set('America/Mexico_City');\n $diffBtwCurrentTimeAndTimestamp = time() - $timestamp;\n $periodsString = [\"sec\", \"min\", \"hr\", \"day\", \"week\", \"month\", \"year\", \"decade\"];\n $periodsNumber = [\"60\", \"60\", \"24\", \"7\", \"4.35\", \"12\", \"10\"];\n \n for($iterator = 0; $diffBtwCurrentTimeAndTimestamp >= $periodsNumber[$iterator]; $iterator++)\n $diffBtwCurrentTimeAndTimestamp /= $periodsNumber[$iterator];\n $diffBtwCurrentTimeAndTimestamp = round($diffBtwCurrentTimeAndTimestamp);\n \n if($diffBtwCurrentTimeAndTimestamp != 1) $periodsString[$iterator].=\"s\";\n $output = \"$diffBtwCurrentTimeAndTimestamp $periodsString[$iterator]\"; //2 days\n \n return $output.\" ago\";\n}", "function relative_date($date) {\n if (empty($date)) {\n return \"No date provided\";\n }\n\n $periods = array(\"sec\", \"min\", \"hour\", \"day\", \"week\", \"month\", \"year\", \"decade\");\n $lengths = array(\"60\", \"60\", \"24\", \"7\", \"4.35\", \"12\", \"10\");\n\n $now = time();\n\n //check if supplied Date is in unix date form\n if (is_numeric($date)) {\n $unix_date = $date;\n } else {\n $unix_date = strtotime($date);\n }\n\n\n // check validity of date\n if (empty($unix_date)) {\n return \"Bad date\";\n }\n\n // is it future date or past date\n if ($now > $unix_date) {\n $difference = $now - $unix_date;\n $tense = \"ago\";\n } else {\n $difference = $unix_date - $now;\n $tense = \"from now\";\n }\n\n for ($j = 0; $difference >= $lengths[$j] && $j < count($lengths) - 1; $j++) {\n $difference /= $lengths[$j];\n }\n\n $difference = round($difference);\n\n if ($difference != 1) {\n $periods[$j] .= \"s\";\n }\n\n return \"$difference $periods[$j] {$tense}\";\n}", "function timeago($referencedate=0, $timepointer='', $measureby=''){\n\t\t\n\t\tif($timepointer == '') $timepointer = time();\n\t\t$Raw = $timepointer-$referencedate;## Raw time difference\n\t\t$Clean = abs($Raw);\n\t\t\n\t\tif($Clean > 60*60*24*30){\n\t\t\tif(date(\"Y\")==date(\"Y\",$referencedate)){\n\t\t\t\t$strTime = date(\"n月j日\",$referencedate);\n\t\t\t\t}else{\n\t\t\t\t$strTime = date(\"Y年n月j日\",$referencedate);\n\t\t\t}\n\t\t\treturn $strTime;\n\t\t}\n\t\t\n\t\t$calcNum = array(\n\t\tarray('s', 60),\n\t\tarray('m', 60*60),\n\t\tarray('h', 60*60*60),\n\t\tarray('d', 60*60*60*24),\n\t\tarray('mo', 60*60*60*24*30)\n\t\t);\n\t\t## Used for calculating\n\t\t$calc = array(\n\t\t's' => array(1, '秒'), \n\t\t'm' => array(60, '分鐘'), \n\t\t'h' => array(60*60, '小時'), \n\t\t'd' => array(60*60*24, '日'), \n\t\t'mo' => array(60*60*24*30, '個月')\n\t\t);\n\t\t\n\t\tif($measureby == ''){\n\t\t\t$usemeasure = 's';## Default unit\n\t\t\tfor($i=0; $i<count($calcNum); $i++){\n\t\t\t\tif($Clean <= $calcNum[$i][1]){\n\t\t\t\t\t$usemeasure = $calcNum[$i][0];\n\t\t\t\t\t$i = count($calcNum);\n\t\t\t\t}\n\t\t\t}\n\t\t\t}else{\n\t\t\t$usemeasure = $measureby;## Used if a unit is provided\n\t\t}\n\t\t\n\t\t$datedifference = floor($Clean/$calc[$usemeasure][0]);\n\t\t\n\t\tif($referencedate != 0){\n\t\t\treturn $datedifference . '' . $calc[$usemeasure][1] . '前';\n\t\t\t}else{\n\t\t\treturn 'No Time';\n\t\t}\n\t}", "function time_ago_in_words($from_time, $include_seconds = false)\n{\n return distance_of_time_in_words($from_time, time(), $include_seconds);\n}", "function timeSince ( $timestamp ) {\r\n\r\n\t$diff = time() - $timestamp;\r\n\r\n\tif ( $diff < 4000 ) {\r\n\t\t$diff = ceil ( $diff / 60 );\r\n\t\t$unit = \"minute\";\r\n\r\n\t} elseif ( $diff < 100000 ) {\r\n\t\t$diff = ceil ( $diff / 3600 );\r\n\t\t$unit = \"hour\";\r\n\r\n\t} else {\r\n\t\t$diff = ceil ( $diff / 86400 );\r\n\t\t$unit = \"day\";\r\n\t}\r\n\r\n\t$end = ( $diff <= 1 ) ? NULL : \"s\";\r\n\r\n\treturn \"$diff $unit$end ago\";\r\n\r\n}", "public static function getHumanDate($date)\n {\n $diff = time() - $date;\n if ($diff > (86400 * 30)) {\n return date('M j/y \\a\\t h:i', $date);\n } else {\n if ($diff > 86400) {\n return ((int)($diff / 86400)) . 'd ago';\n } else {\n if ($diff > 3600) {\n return ((int)($diff / 3600)) . 'h ago';\n } else {\n return ((int)($diff / 60)) . 'm ago';\n }\n }\n }\n }", "function formattime_ago($time) {\n\t$period = $GLOBALS['i18']['time_period'];\n\t$periods = $GLOBALS['i18']['time_periods'];\n\t$lengths = array(\"60\",\"60\",\"24\",\"7\",\"4.35\",\"12\",\"10\");\n\n\t$now = time();\n\t$difference = $now - $time;\n\t$tense = $GLOBALS['i18']['ago'];\n\n\tfor($j = 0; $difference >= $lengths[$j] && $j < count($lengths)-1; $j++) {\n\t\t$difference /= $lengths[$j];\n\t}\n\t$difference = round($difference);\n\t\n\tif($difference > 1)\n\t\t$period_lbl = $periods[$j];\n\telse\n\t\t$period_lbl = $period[$j];\n\t\t\n\treturn str_replace('%', $difference.\" \".$period_lbl, $tense);\n}", "function prettyDate($date){\n $time = strtotime($date);\n $now = time();\n $ago = $now - $time;\n if($ago < 60){\n $when = round($ago);\n $s = ($when == 1)?\"second\":\"seconds\";\n return \"$when $s ago\";\n }elseif($ago < 3600){\n $when = round($ago / 60);\n $m = ($when == 1)?\"minute\":\"minutes\";\n return \"$when $m ago\";\n }elseif($ago >= 3600 && $ago < 86400){\n $when = round($ago / 60 / 60);\n $h = ($when == 1)?\"hour\":\"hours\";\n return \"$when $h ago\";\n }elseif($ago >= 86400 && $ago < 2629743.83){\n $when = round($ago / 60 / 60 / 24);\n $d = ($when == 1)?\"day\":\"days\";\n return \"$when $d ago\";\n }elseif($ago >= 2629743.83 && $ago < 31556926){\n $when = round($ago / 60 / 60 / 24 / 30.4375);\n $m = ($when == 1)?\"month\":\"months\";\n return \"$when $m ago\";\n }else{\n $when = round($ago / 60 / 60 / 24 / 365);\n $y = ($when == 1)?\"year\":\"years\";\n return \"$when $y ago\";\n }\n}", "public function getAge() {\n // Age of oldest entry.\n $old = $this->database->select('watchdog', 'w')\n ->fields('w', ['timestamp'])\n ->orderBy('wid', 'ASC')\n ->range(0, 1)\n ->execute()\n ->fetchField();\n\n // Age of newest entry.\n $new = $this->database->select('watchdog', 'w')\n ->fields('w', ['timestamp'])\n ->orderBy('wid', 'DESC')\n ->range(0, 1)\n ->execute()\n ->fetchField();\n\n // If two different days...\n if (date('Y-m-d', $old) != date('Y-m-d', $new)) {\n return $this->t(\"Age of messages: From @from to @to (@days days)\", [\n '@from' => date('Y-m-d', $old),\n '@to' => date('Y-m-d', $new),\n '@days' => round(($new - $old) / 86400, 2),\n ]);\n }\n // Same day; don't calculate number of days.\n return $this->t(\"Age of messages: From @from to @to\", [\n '@from' => date('Y-m-d', $old),\n '@to' => date('Y-m-d', $new),\n ]);\n }", "function relative_time($time) {\r\n if(!is_numeric($time)) $time = strtotime($time);\r\n\r\n $elapsed = time() - $time;\r\n\r\n if($elapsed <= 1) {\r\n return 'Just now';\r\n }\r\n\r\n $times = array(\r\n 31104000 => 'year',\r\n 2592000 => 'month',\r\n 604800 => 'week',\r\n 86400 => 'day',\r\n 3600 => 'hour',\r\n 60 => 'minute',\r\n 1 => 'second'\r\n );\r\n\r\n foreach($times as $seconds => $title) {\r\n $rounded = $elapsed / $seconds;\r\n\r\n if($rounded > 1) {\r\n $rounded = round($rounded);\r\n return $rounded . ' ' . pluralise($rounded, $title) . ' ago';\r\n }\r\n }\r\n}", "static public function getTimeAgo($mxdTimestamp, $intHourLimit = 24, $strAltFormat = 'M d, Y @ g:ia', $blnAbbreviate = false, $blnFormatFuture = true) {\n\t\t\tif (!is_numeric($intTimestamp = $mxdTimestamp)) {\n\t\t\t\tif (($intTimestamp = strtotime($mxdTimestamp)) < 1) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif (($intSeconds = time() - $intTimestamp) < 0 && $blnFormatFuture) {\n\t\t\t\t$intSeconds = abs($intSeconds);\n\t\t\t\t$blnInFuture = true;\n\t\t\t}\n\t\t\t$intHours = floor($intSeconds / 3600);\n\t\t\t\n\t\t\tif ($intHours >= 0 && $intHours < $intHourLimit) {\n\t\t\t\tif (!$intHours) {\n\t\t\t\t\t$intMinutes = floor($intSeconds / 60);\n\t\t\t\t\t\n\t\t\t\t\tif (!$intMinutes) {\n\t\t\t\t\t\tif ($intSeconds == 0) {\n\t\t\t\t\t\t\treturn 'just now';\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$intAmount = $intSeconds;\n\t\t\t\t\t\t$strUnit = $blnAbbreviate ? 'sec' : 'second';\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$intAmount = $intMinutes;\n\t\t\t\t\t\t$strUnit = $blnAbbreviate ? 'min' : 'minute';\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t$intAmount = $intHours;\n\t\t\t\t\t$strUnit = $blnAbbreviate ? 'hr' : 'hour';\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (!empty($blnInFuture)) {\n\t\t\t\t\treturn sprintf('in %d %s%s', $intAmount, $strUnit, ($intAmount != 1 ? 's' : ''));\n\t\t\t\t} else {\n\t\t\t\t\treturn sprintf('%d %s%s ago', $intAmount, $strUnit, ($intAmount != 1 ? 's' : ''));\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$objInstance = self::getInstance();\n\t\t\t\treturn 'on ' . date($strAltFormat, $intTimestamp + ($objInstance->intClientOffset - $objInstance->intSystemOffset));\n\t\t\t}\n\t\t}", "public function getNumberofDaysAgo($date1, $date2 = null);", "private function relative_time($date = NULL)\n {\n $diff = time() - strtotime($date);\n if ($diff<60)\n return \"il y a \". $diff . \" seconde\" . $this->plural($diff);\n $diff = round($diff/60);\n if ($diff<60)\n return \"il y a \". $diff . \" minute\" . $this->plural($diff);\n $diff = round($diff/60);\n if ($diff<24)\n return \"il y a environ \". $diff . \" heure\" . $this->plural($diff);\n $diff = round($diff/24);\n if ($diff<7)\n return \"il y a \". $diff . \" jour\" . $this->plural($diff);\n $diff = round($diff/7);\n if ($diff<4)\n return \"il y a \". $diff . \" semaine\" . $this->plural($diff);\n return \"le \" . date(\"F j, Y\", strtotime($date));\n }", "public static function getSmartVerbPhrasePast($dateTimeToProcess, $verb) {\n\t\t$r = '';\n\t\t$now = qdat::getCurrentDateAndTime();\n\t\t$americanNiceDate = qdat::getNiceDate($dateTimeToProcess);\n\t\t$seconds = qdat::getDurationInSeconds($dateTimeToProcess, $now);\n\t\tif($seconds < 60) {\n\t\t\t$amountOfSecondsPhrase = qstr::smartPlural($seconds, 'seconds');\n\t\t\tif(qstr::AreEqual($amountOfSecondsPhrase, '0 seconds')) {\n\t\t\t\t$amountOfSecondsPhrase = '1 second';\n\t\t\t}\n\t\t\t$r .= '<span class=\"justAdded\">' . qstr::hardenSpaces($verb . ' ' . $amountOfSecondsPhrase . ' ago</span>');\n\t\t} else {\n\t\t\t//within an hour ago\n\t\t\tif($seconds < 60 * 60) {\n\t\t\t\t$minutes = qdat::getSecondsToWholeMinutes($seconds);\n\t\t\t\t$r .= '<span class=\"recentlyAdded\">' . qstr::hardenSpaces($verb . ' ' . qstr::smartPlural($minutes, 'minutes')) . ' ago</span>';\n\t\t\t} else {\n\t\t\t\t//within the last 24 hours\n\t\t\t\tif($seconds < 3600 * 24) {\n\t\t\t\t\t$hours = qdat::getSecondsToWholeHours($seconds);\n\t\t\t\t\t$r .= '<span class=\"recentlyAdded\">' . $verb . ' ' . qstr::smartPlural($hours, 'hours') . ' ago</span>';\n\t\t\t\t} else {\n\t\t\t\t\t//within the last 7 days\n\t\t\t\t\tif($seconds < (3600 * 24) * 7) {\n\t\t\t\t\t\t$days = qdat::getSecondsToWholeDays($seconds);\n\t\t\t\t\t\t$r .= $verb . ' ' . qdat::smartDaysAgo($days);\n\t\t\t\t\t} else {\n\t\t\t\t\t\t//it was so long ago, just display the date\n\t\t\t\t\t\t$r .= $verb . ' on ' . $americanNiceDate;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//hackfix occasional space before issue, e.g.: <span class=\"recentlyAdded\"> 2&nbsp;hours ago</span>before\n\t\t$r = str_replace('<span class=\"recentlyAdded\">&nbsp;', '<span class=\"recentlyAdded\">', $r);\n\t\treturn $r;\n\t}", "function jr_ad_posted($m_time) {\r\n $time = get_post_time('G', true);\r\n $time_diff = time() - $time;\r\n\r\n if ( $time_diff > 0 && $time_diff < 24*60*60 )\r\n $h_time = sprintf( __('%s ago', APP_TD), human_time_diff( $time ) );\r\n else\r\n $h_time = mysql2date(get_option('date_format'), $m_time);\r\n echo $h_time;\r\n}", "function time_ago($time, $units = 1) {\n //add mysql-server time difference to time;\n $time_diff = 0;\n $time = strtotime(\"+$time_diff hours\", strtotime($time));\n $now = time(); //current time\n return strtolower(timespan($time, $now, $units)). ' ago';\n}", "function time_ago($time, $units = 1) {\n //add mysql-server time difference to time;\n $time_diff = 0;\n $time = strtotime(\"+$time_diff hours\", strtotime($time));\n $now = time(); //current time\n return strtolower(timespan($time, $now, $units)). ' ago';\n}", "function cjpopups_time_ago($ptime){\n $etime = time() - $ptime;\n if ($etime < 1){\n return __('Just now', 'cjpopups');\n }\n $a = array(\n \t12 * 30 * 24 * 60 * 60 => 'year',\n\t\t30 * 24 * 60 * 60 => 'month',\n\t\t24 * 60 * 60 => 'day',\n\t\t60 * 60 => 'hour',\n\t\t60 => 'minute',\n\t\t1 => 'second',\n );\n $singular = array(\n \t'year' => __('year', 'cjpopups'),\n\t\t'month' => __('month', 'cjpopups'),\n\t\t'day' => __('day', 'cjpopups'),\n\t\t'hour' => __('hour', 'cjpopups'),\n\t\t'minute' => __('minute', 'cjpopups'),\n\t\t'second' => __('second', 'cjpopups'),\n );\n $plurals = array(\n \t'year' => __('years', 'cjpopups'),\n\t\t'month' => __('months', 'cjpopups'),\n\t\t'day' => __('days', 'cjpopups'),\n\t\t'hour' => __('hours', 'cjpopups'),\n\t\t'minute' => __('minutes', 'cjpopups'),\n\t\t'second' => __('seconds', 'cjpopups'),\n );\n foreach ($a as $secs => $str){\n $d = $etime / $secs;\n if ($d >= 1){\n $r = round($d);\n return $r . ' ' . ($r > 1 ? $plurals[$str] : $singular[$str]) .' '. __('ago', 'cjpopups');\n }\n }\n}", "function ago($time) {\n $timediff=time()-$time;\n $days=intval($timediff/86400);\n $remain=$timediff%86400;\n $hours=intval($remain/3600);\n $remain=$remain%3600;\n $mins=intval($remain/60);\n $secs=$remain%60;\n\n if ($secs>=0) $timestring = $secs.\"s\";//\"0m\".\n if ($mins>0) $timestring = $mins.\"m\";//.$secs.\"s\";\n if ($hours>0) $timestring = $hours.\"h\";//.$mins.\"m\";\n if ($days>0) $timestring = $days.\"d\";//.$hours.\"h\";\n\n return $timestring;\n}", "public static function ago($time, $calculateFrom = 'now') {\n\n\t\t// Calculate to\n\t\t$t = strtotime($time);\n\t\t// Calculate from\n\t\t$c = strtotime($calculateFrom);\n\t\t// Elapsed\n\t\t$e = $c - $t;\n\t\t// Elapsed that day\n\t\t$de = date(\"H\", $c) * TimeAgo::$h + date(\"i\", $c) * TimeAgo::$m + date(\"s\", $c);\n\n\t\tif ($e < TimeAgo::$m) {\n\t\t\t// Now / Second / Seconds\n\t\t\treturn ($e == 0) ? TimeAgo::$string['now'] : ($e == 1 ? TimeAgo::$string['second'] : sprintf(TimeAgo::$string['seconds'], $e));\n\t\t} elseif ($e < TimeAgo::$h) {\n\t\t\t// Minutes\n\t\t\treturn (($m = intval($e / TimeAgo::$m)) && $m == 1) ? TimeAgo::$string['minute'] : sprintf(TimeAgo::$string['minutes'], $m);\n\t\t} elseif ($e < TimeAgo::$d) {\n\t\t\t// Today - Hours\n\t\t\treturn (($h = intval($e / TimeAgo::$h)) && $h == 1) ? TimeAgo::$string['hour'] : sprintf(TimeAgo::$string['hours'], $h);\n\t\t} elseif ($e <= TimeAgo::$d + $de) {\n\t\t\t// Yesterday\n\t\t\treturn TimeAgo::$string['yesterday'];\n\t\t} elseif ($e < TimeAgo::$d * 6 + $de) {\n\t\t\t// Last week\n\t\t\treturn sprintf(TimeAgo::$string['on'], TimeAgo::$weekDays[date(\"w\", $t)]);\n\t\t} elseif ($e < TimeAgo::$mo) {\n\t\t\t// less then month\n\t\t\t// Weeks\n\t\t\tif ($e < TimeAgo::$w * 2) {\n\t\t\t\t// Last seven days\n\t\t\t\treturn TimeAgo::$string['week'];\n\t\t\t} elseif ($e < TimeAgo::$w * 3) {\n\t\t\t\t// 2 weeks\n\t\t\t\treturn sprintf(TimeAgo::$string['weeks'], 2);\n\t\t\t} else {\n\t\t\t\t// 3 weeks\n\t\t\t\treturn sprintf(TimeAgo::$string['weeks'], 3);\n\t\t\t}\n\t\t} elseif ($e < TimeAgo::$y) {\n\t\t\t// less then year\n\t\t\t// Month / Months\n\t\t\treturn ($e < TimeAgo::$mo * 2) ? TimeAgo::$string['month'] : sprintf(TimeAgo::$string['months'], intval($e / TimeAgo::$mo));\n\t\t} else {\n\t\t\t// Year / Years\n\t\t\treturn ($e >= TimeAgo::$y && $e < TimeAgo::$y * 2) ? TimeAgo::$string['year'] : sprintf(TimeAgo::$string['years'], intval($e / TimeAgo::$y));\n\t\t}\n\t}", "function date_diff($d1, $d2){\n\t$d1 = (is_string($d1) ? strtotime($d1) : $d1);\n\t$d2 = (is_string($d2) ? strtotime($d2) : $d2);\n\n\t$diff_secs = abs($d1 - $d2);\n\t$base_year = min(date(\"Y\", $d1), date(\"Y\", $d2));\n\n\t$diff = mktime(0, 0, $diff_secs, 1, 1, $base_year);\n\t$diffArray = array(\n\t\t\"years\" => date(\"Y\", $diff) - $base_year,\n\t\t\"months_total\" => (date(\"Y\", $diff) - $base_year) * 12 + date(\"n\", $diff) - 1,\n\t\t\"months\" => date(\"n\", $diff) - 1,\n\t\t\"days_total\" => floor($diff_secs / (3600 * 24)),\n\t\t\"days\" => date(\"j\", $diff) - 1,\n\t\t\"hours_total\" => floor($diff_secs / 3600),\n\t\t\"hours\" => date(\"G\", $diff),\n\t\t\"minutes_total\" => floor($diff_secs / 60),\n\t\t\"minutes\" => (int) date(\"i\", $diff),\n\t\t\"seconds_total\" => $diff_secs,\n\t\t\"seconds\" => (int) date(\"s\", $diff)\n\t);\n\tif($diffArray['days'] > 0){\n\t\tif($diffArray['days'] == 1){\n\t\t\t$days = '1 day';\n\t\t}else{\n\t\t\t$days = $diffArray['days'] . ' days';\n\t\t}\n\t\treturn $days . ' and ' . $diffArray['hours'] . ' hours ago';\n\t}else if($diffArray['hours'] > 0){\n\t\tif($diffArray['hours'] == 1){\n\t\t\t$hours = '1 hour';\n\t\t}else{\n\t\t\t$hours = $diffArray['hours'] . ' hours';\n\t\t}\n\t\treturn $hours . ' and ' . $diffArray['minutes'] . ' minutes ago';\n\t}else if($diffArray['minutes'] > 0){\n\t\tif($diffArray['minutes'] == 1){\n\t\t\t$minutes = '1 minute';\n\t\t}else{\n\t\t\t$minutes = $diffArray['minutes'] . ' minutes';\n\t\t}\n\t\treturn $minutes . ' and ' . $diffArray['seconds'] . ' seconds ago';\n\t}else{\n\t\treturn 'Less than a minute ago';\n\t}\n}", "public function time_ago_format_date($the_date, $d, $post) {\n // Get the post id\n if ( is_int( $post) ) {\n $post_id = $post;\n } else {\n $post_id = $post->ID;\n }\n // subtract the post date from the current time\n $date_string = human_time_diff( strtotime($the_date) ) . ' ago';\n // make the string prettier\n $datestring = str_replace('min', 'minute', $date_string);\n\n return $date_string;\n }", "public function test_time_ago() {\n\t\t$time = current_time( 'timestamp' );\n\t\t$time_ago = locomotive_time_ago( $time );\n\n\t\t$this->assertEquals( '1 min ago', $time_ago );\n\t}", "function getTheFormattedDateTime($dateTimeString)\n{\n $_date = strtotime($dateTimeString);\n\n if (intval(date('Y', $_date)) == intval(date('Y', time()))) {\n # If same year\n $timeDifference = floor((time() - $_date) / 60); # Minutes\n\n if ($timeDifference <= 43200) { # 30 * 24 * 60 = 30 days\n # less then 30 day\n if ($timeDifference <= 1440) { # 24 * 60 = 1 days\n # if same day\n if ($timeDifference <= 60) { # 60 min = 1 hour\n # same hour\n return $timeDifference . \" min ago\";\n } else {\n return floor($timeDifference / 60) . \" hour ago\";\n }\n } else {\n return floor($timeDifference / 1440) . \" days ago\";\n }\n } else {\n return date('j M, g:ia', $_date);\n }\n } else {\n return date('j M Y, g:ia', $_date);\n }\n}", "public function formatTimeAgo($time,$long=false) {\n\t\tif (is_string($time)) {\n\t\t\tif (is_numeric($time)) {\n\t\t\t\t$datestamp = (int) $time;\n\t\t\t} else {\n\t\t\t\t$datestamp = strtotime($time);\n\t\t\t}\n\t\t} else {\n\t\t\t$datestamp = $time;\n\t\t}\n\t\t$seconds = floor((time() - $datestamp));\n\t\tif ($seconds < 60) {\n\t\t\t$ago_str = $seconds . ' seconds ago';\n\t\t} else if ($seconds >= 60 && $seconds < 120) {\n\t\t\t$ago_str = '1 minute ago';\n\t\t} else if ($seconds >= 120 && $seconds < 3600) {\n\t\t\t$ago_str = floor($seconds / 60) .' minutes ago';\n\t\t} else if ($seconds >= 3600 && $seconds < 7200) {\n\t\t\t$ago_str = '1 hour ago';\n\t\t} else if ($seconds >= 7200 && $seconds < 86400) {\n\t\t\t$ago_str = floor($seconds / 3600) .' hours ago';\n\t\t} else if ($seconds >= 86400 && $seconds < 31536000) {\n\t\t\tif ($long) {\n\t\t\t\t$ago_str = date('l, F d', $datestamp);\n\t\t\t} else {\n\t\t\t\t$ago_str = date('d M', $datestamp);\n\t\t\t}\n\t\t} else {\n\t\t\tif ($long) {\n\t\t\t\t$ago_str = date('l, F d, Y', $datestamp);\n\t\t\t} else {\n\t\t\t\t$ago_str = date('d M, y', $datestamp);\n\t\t\t}\n\t\t}\n\t\treturn $ago_str;\n\t}", "static function timeElapsed($timestamp)\n {\n $d1 = new DateTime($timestamp);\n $d2 = new DateTime();\n $interval = $d1->diff($d2);\n $totalDiff = abs(time() - strtotime($timestamp)); // diff in seconds\n if ($totalDiff < 60) return \"seconds ago\";\n if ($totalDiff >= 60 && $totalDiff < 3600) return $interval->i . \" minutes ago\";\n if ($totalDiff >= 3600 && $totalDiff < 86400) return $interval->h . \" hours ago\";\n if ($totalDiff >= 86400) return $interval->d . \" days ago\";\n }", "function exa_get_time( $post = null ) {\n\t\n\t$post = get_post($post);\n\t$secondsSincePublishing = _exa_seconds_since_published( $post );\n\n\t$since = \"\";\n\tif( exa_is_published_today( $post ) ) {\n\n\t\tif ( $secondsSincePublishing <= HOUR_IN_SECONDS ) {\n\t\t\t$mins = round( $secondsSincePublishing / MINUTE_IN_SECONDS );\n\t\t\tif( $mins < 1)\n\t\t\t\t$mins = 1;\n\t\t\t$since = sprintf( _n('%s minute ago', '%s minutes ago', $mins, 'exa'), $mins);\n\t\t} else {\n\t\t\t$hours = round( $secondsSincePublishing / HOUR_IN_SECONDS );\n\t\t\t$since = sprintf( _n('%s hour ago', '%s hours ago', $hours, 'exa'), $hours);\n\t\t}\n\t}\n\telse if( exa_is_published_yesterday( $post ) ) {\n\t\t$since = \"Yesterday\";\n\t}\n\telse {\n\t\t$since = get_the_time(\"M j, Y\",$post);\n\t}\n\t\n\treturn $since;\n}", "function publushDateFix($publishedDate){\n\t $publishedAt = date('Y-m-d', strtotime($publishedDate));\n$publishedAt = date_create($publishedAt);\n$today = date_create('now');\n$diff=date_diff($publishedAt,$today);\n\n//accesing days\n$days = $diff->d;\n//accesing years\n$years = $diff->y;\n//accesing months\n$months = $diff->m;\n//accesing hours\n$hours=$diff->h;\nif($months==0 AND $years!=0){\n\t\t\t\techo $years.\" Year ago \";}\n\t\t\t\telseif($years==0 AND $months!=0){ echo $months; if($months==1){ echo \" month ago \";} else { echo \" months ago \";}}\n\t\t\t\telseif($years!=0 AND $months!=0){ echo $years; if($years==1){ echo \" year ago \";} else { echo \" years ago \";}}\n\t\t\t\telseif($years==0 AND $months==0 AND $days!=0 ){ echo $days; if($days==1){ echo \" day ago \";} else { echo \" days ago \";}}\n\t\t\t\telseif($years==0 AND $months==0 AND $days==0 AND $hours!=0){ echo $hours; if($hours==1){ echo \" hour ago \";} else { echo \" hours ago \";}}\n\t \n\t }", "function facebook_time_ago($TIMESTAMP)\n\t\t{\n\t\t\t$time_ago = strtotime($TIMESTAMP);\n\t\t\t$current_time = time();\n\t\t\t$time_difference = $current_time - $time_ago;\n\n\t\t\t$seconds = $time_difference;\n\t\t\t$minutes = round($seconds / 60);\t\t//60 seconds\n\t\t\t$hours = round($seconds / 3600);\t\t//60 * 60\n\t\t\t$days = round($seconds / 86400);\t// 24 * 60 * 60\n\t\t\t$weeks = round($seconds / 604800); //7*24*60*60\n\t\t\t$months = round($seconds / 2629440);\n\t\t\t$years = round($seconds / 31553280);\n\n\t\t\tif($seconds <=60 )\n\t\t\t{\n\t\t\t\treturn \"Born Now\";\n\t\t\t}\n\t\t\telse if($minutes <=60)\n\t\t\t{\n\t\t\t\tif($minutes==1)\n\t\t\t\t{\n\t\t\t\t\treturn \"one minute ago\";\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\treturn \"$minutes minutes ago\";\n\t\t\t}\n\t\t\t}\n\t\t\telse if($hours <=24)\n\t\t\t{\n\t\t\t\tif($hours==1)\n\t\t\t\t{\n\t\t\t\t\treturn \"one hour old\";\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\treturn \"$hours hrs old\";\n\t\t\t}\n\t\t\t}\n\t\t\telse if($days <=7)\n\t\t\t{\n\t\t\t\tif($days==1)\n\t\t\t\t{\n\t\t\t\t\treturn \"yesterday\";\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\treturn \"$days days old\";\n\t\t\t}\n\t\t\t}\n\t\t\telse if($weeks <=4.3) //4.3 == 52/12\n\t\t\t{\n\t\t\t\tif($weeks==1)\n\t\t\t\t{\n\t\t\t\t\treturn \"a week old\";\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\treturn \"$weeks weeks old\";\n\t\t\t}\n\t\t\t}\n\t\t\telse if($months <=12)\n\t\t\t{\n\t\t\t\tif($months==1)\n\t\t\t\t{\n\t\t\t\t\treturn \"a month old\";\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\treturn \"$months months old\";\n\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif($years==1)\n\t\t\t\t{\n\t\t\t\t\treturn \"one year old\";\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\treturn \"$years years old\";\n\t\t\t\t}\n\t\t\t}\n\t\t}", "public function getSince()\n {\n return $this->since;\n }", "public function sqlToTimeDiff($strtm) {\r\n\t\t\t$time = $this->sqlToTime($strtm);\r\n\t\t\t\r\n\t\t\tif ($time <= time()) {\r\n\t\t\t\tif ($time > time() - 45) {\r\n\t\t\t\t\treturn _t('%SECONDS% seconds ago', array('SECONDS' => time() - $time));\r\n\t\t\t\t} elseif ($time > time() - 90) {\r\n\t\t\t\t\treturn _t('About a minute ago');\r\n\t\t\t\t} elseif ($time > time() - (60 * 45)) {\r\n\t\t\t\t\treturn _t('%MINUTES% minutes ago', array('MINUTES' => round((time() - $time) / 60)));\r\n\t\t\t\t} elseif ($time > time() - (60 * 90)) {\r\n\t\t\t\t\treturn _t('About an hour ago');\r\n\t\t\t\t} elseif ($time > time() - (60 * 60 * 18)) {\r\n\t\t\t\t\treturn _t('%HOURS% hours ago', array('HOURS' => round((time() - $time) / 60 / 60)));\r\n\t\t\t\t} elseif ($time > time() - (60 * 60 * 36)) {\r\n\t\t\t\t\treturn _t('About a day ago');\r\n\t\t\t\t} elseif ($time > time() - (60 * 60 * 24 * 5)) {\r\n\t\t\t\t\treturn _t('About %DAYS% days ago', array('DAYS' => round((time() - $time) / 60 / 60 / 24)));\r\n\t\t\t\t} elseif ($time > time() - (60 * 60 * 24 * 9)) {\r\n\t\t\t\t\treturn _t('About a week ago');\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\treturn $this->timeToString($time);\r\n\t\t}", "private function format_date($date) {\n \n $etime = strtotime($this->now) - strtotime($date);\n \n if ($etime < 1) {\n return 'just now';\n }\n \n $a = array( 12 * 30 * 24 * 60 * 60 => 'year',\n 30 * 24 * 60 * 60 => 'month',\n 24 * 60 * 60 => 'day',\n 60 * 60 => 'hour',\n 60 => 'minute',\n 1 => 'second'\n );\n \n foreach ($a as $secs => $str) {\n $d = $etime / $secs;\n if ($d >= 1) {\n $r = round($d);\n return $r . ' ' . $str . ($r > 1 ? 's' : '').' ago';\n }\n }\n }", "public function getSince()\n\t{\n\t\treturn $this->data['since'];\n\t}", "function time_ago_specific($date, $from = \"now\")\r\n{\r\n $datetime = strtotime($from);\r\n $date2 = strtotime(\"\" . $date);\r\n $holdtotsec = $datetime - $date2;\r\n $holdtotmin = ($datetime - $date2) / 60;\r\n $holdtothr = ($datetime - $date2) / 3600;\r\n $holdtotday = intval(($datetime - $date2) / 86400);\r\n $str = '';\r\n if (0 < $holdtotday) {\r\n $str .= $holdtotday . \"d \";\r\n }\r\n $holdhr = intval($holdtothr - $holdtotday * 24);\r\n $str .= $holdhr . \"h \";\r\n $holdmr = intval($holdtotmin - ($holdhr * 60 + $holdtotday * 1440));\r\n $str .= $holdmr . \"m\";\r\n return $str;\r\n}", "public static function time_offset($t, $f = 'h:ma M. j Y T'){\n\t$o = time() - $t;\n\tswitch($o){\n\t\tcase($o <= 1): return \"just now\"; break;\n\t\tcase($o < 20): return $o . \" seconds ago\"; break;\n\t\tcase($o < 40): return \"half a minute ago\"; break;\n\t\tcase($o < 60): return \"less than a minute ago\"; break;\n\t\tcase($o <= 90): return \"1 minute ago\"; break;\n\t\tcase($o <= 59*60): return round($o / 60) . \" minutes ago\"; break;\n\t\tcase($o <= 60*60*1.5): return \"1 hour ago\"; break;\n\t\tcase($o <= 60*60*24): return round($o / 60 / 60) . \" hours ago\"; break;\n\t\tcase($o <= 60*60*24*1.5): return \"1 day ago\"; break;\n\t\tcase($o < 60*60*24*7): return round($o / 60 / 60 / 24) . \" days ago\"; break;\n\t\tcase($o <= 60*60*24*9): return \"1 week ago\"; break;\n\t\tdefault: return date($f, $t);\n\t}\n }", "public function test_elapsed_time() {\n\t\t$this->assertInternalType( 'string', locomotive_time_ago( 1472852621 ) );\n\t}", "function timeAgoInWords($dateTime, $options = array())\n {\n $now = time();\n\n $inSeconds = strtotime($dateTime);\n $backwards = ($inSeconds > $now);\n\n $format = 'j/n/y';\n $end = '+1 month';\n\n if (is_array($options)) {\n if (isset($options['format'])) {\n $format = $options['format'];\n unset($options['format']);\n }\n if (isset($options['end'])) {\n $end = $options['end'];\n unset($options['end']);\n }\n } else {\n $format = $options;\n }\n\n if ($backwards) {\n $futureTime = $inSeconds;\n $pastTime = $now;\n } else {\n $futureTime = $now;\n $pastTime = $inSeconds;\n }\n $diff = $futureTime - $pastTime;\n\n // If more than a week, then take into account the length of months\n if ($diff >= 604800) {\n $current = array();\n $date = array();\n\n list($future['H'], $future['i'], $future['s'], $future['d'], $future['m'], $future['Y']) = explode('/', date('H/i/s/d/m/Y', $futureTime));\n\n list($past['H'], $past['i'], $past['s'], $past['d'], $past['m'], $past['Y']) = explode('/', date('H/i/s/d/m/Y', $pastTime));\n $years = $months = $weeks = $days = $hours = $minutes = $seconds = 0;\n\n if ($future['Y'] == $past['Y'] && $future['m'] == $past['m']) {\n $months = 0;\n $years = 0;\n } else {\n if ($future['Y'] == $past['Y']) {\n $months = $future['m'] - $past['m'];\n } else {\n $years = $future['Y'] - $past['Y'];\n $months = $future['m'] + ((12 * $years) - $past['m']);\n\n if ($months >= 12) {\n $years = floor($months / 12);\n $months = $months - ($years * 12);\n }\n\n if ($future['m'] < $past['m'] && $future['Y'] - $past['Y'] == 1) {\n $years--;\n }\n }\n }\n\n if ($future['d'] >= $past['d']) {\n $days = $future['d'] - $past['d'];\n } else {\n $daysInPastMonth = date('t', $pastTime);\n $daysInFutureMonth = date('t', mktime(0, 0, 0, $future['m'] - 1, 1, $future['Y']));\n\n if (!$backwards) {\n $days = ($daysInPastMonth - $past['d']) + $future['d'];\n } else {\n $days = ($daysInFutureMonth - $past['d']) + $future['d'];\n }\n\n if ($future['m'] != $past['m']) {\n $months--;\n }\n }\n\n if ($months == 0 && $years >= 1 && $diff < ($years * 31536000)) {\n $months = 11;\n $years--;\n }\n\n if ($months >= 12) {\n $years = $years + 1;\n $months = $months - 12;\n }\n\n if ($days >= 7) {\n $weeks = floor($days / 7);\n $days = $days - ($weeks * 7);\n }\n } else {\n $years = $months = $weeks = 0;\n $days = floor($diff / 86400);\n\n $diff = $diff - ($days * 86400);\n\n $hours = floor($diff / 3600);\n $diff = $diff - ($hours * 3600);\n\n $minutes = floor($diff / 60);\n $diff = $diff - ($minutes * 60);\n $seconds = $diff;\n }\n $relativeDate = '';\n $diff = $futureTime - $pastTime;\n\n if ($diff > abs($now - strtotime($end))) {\n $relativeDate = sprintf('on %s', date($format, $inSeconds));\n } else {\n if ($years > 0) {\n // years and months and days\n $relativeDate .= ($relativeDate ? ', ' : '') . $years . ' ' . ($years == 1 ? 'year' : 'years');\n $relativeDate .= $months > 0 ? ($relativeDate ? ', ' : '') . $months . ' ' . ($months == 1 ? 'month' : 'months') : '';\n $relativeDate .= $weeks > 0 ? ($relativeDate ? ', ' : '') . $weeks . ' ' . ($weeks == 1 ? 'week' : 'weeks') : '';\n $relativeDate .= $days > 0 ? ($relativeDate ? ', ' : '') . $days . ' ' . ($days == 1 ? 'day' : 'days') : '';\n } elseif (abs($months) > 0) {\n // months, weeks and days\n $relativeDate .= ($relativeDate ? ', ' : '') . $months . ' ' . ($months == 1 ? 'month' : 'months');\n $relativeDate .= $weeks > 0 ? ($relativeDate ? ', ' : '') . $weeks . ' ' . ($weeks == 1 ? 'week' : 'weeks') : '';\n $relativeDate .= $days > 0 ? ($relativeDate ? ', ' : '') . $days . ' ' . ($days == 1 ? 'day' : 'days') : '';\n } elseif (abs($weeks) > 0) {\n // weeks and days\n $relativeDate .= ($relativeDate ? ', ' : '') . $weeks . ' ' . ($weeks == 1 ? 'week' : 'weeks');\n $relativeDate .= $days > 0 ? ($relativeDate ? ', ' : '') . $days . ' ' . ($days == 1 ? 'day' : 'days') : '';\n } elseif (abs($days) > 0) {\n // days and hours\n $relativeDate .= ($relativeDate ? ', ' : '') . $days . ' ' . ($days == 1 ? 'day' : 'days');\n $relativeDate .= $hours > 0 ? ($relativeDate ? ', ' : '') . $hours . ' ' . ($hours == 1 ? 'hour' : 'hours') : '';\n } elseif (abs($hours) > 0) {\n // hours and minutes\n $relativeDate .= ($relativeDate ? ', ' : '') . $hours . ' ' . ($hours == 1 ? 'hour' : 'hours');\n $relativeDate .= $minutes > 0 ? ($relativeDate ? ', ' : '') . $minutes . ' ' . ($minutes == 1 ? 'minute' : 'minutes') : '';\n } elseif (abs($minutes) > 0) {\n // minutes only\n $relativeDate .= ($relativeDate ? ', ' : '') . $minutes . ' ' . ($minutes == 1 ? 'minute' : 'minutes');\n } else {\n // seconds only\n $relativeDate .= ($relativeDate ? ', ' : '') . $seconds . ' ' . ($seconds == 1 ? 'second' : 'seconds');\n }\n\n if (!$backwards) {\n $relativeDate = sprintf('%s ago', $relativeDate);\n }\n }\n return $relativeDate;\n }", "function human_time($datefrom, $dateto = -1)\n{\n\t// Defaults and assume if 0 is passed in that its an error rather than the epoch\n\tif ( $datefrom <= 0 )\n\t\treturn \"A long time ago\";\n\t\t\n\tif ( $dateto == -1) { \n\t\t$dateto = time(); \n\t}\n\t\n\t// Calculate the difference in seconds betweeen the two timestamps\n\t$difference = $dateto - $datefrom;\n\t\n\t// If difference is less than 60 seconds use 'seconds'\n\tif ( $difference < 60 )\n\t{ \n\t\t$interval = \"s\"; \n\t}\n\t// If difference is between 60 seconds and 60 minutes use 'minutes'\n\telse if ( $difference >= 60 AND $difference < (60*60) )\n\t{\n\t\t$interval = \"n\"; \n\t}\n\t// If difference is between 1 hour and 24 hours use 'hours'\n\telse if ( $difference >= (60*60) AND $difference < (60*60*24) )\n\t{\n\t\t$interval = \"h\"; \n\t}\n\t// If difference is between 1 day and 7 days use 'days'\n\telse if ( $difference >= (60*60*24) AND $difference < (60*60*24*7) )\n\t{\n\t\t$interval = \"d\"; \n\t}\n\t// If difference is between 1 week and 30 days use 'weeks'\n\telse if ( $difference >= (60*60*24*7) AND $difference < (60*60*24*30) )\n\t{\n\t\t$interval = \"ww\";\n\t}\n\t// If difference is between 30 days and 365 days use 'months'\n\telse if ( $difference >= (60*60*24*30) AND $difference < (60*60*24*365) )\n\t{\n\t\t$interval = \"m\"; \n\t}\n\t// If difference is greater than or equal to 365 days use 'years'\n\telse if ( $difference >= (60*60*24*365) )\n\t{\n\t\t$interval = \"y\"; \n\t}\n\t\n\t// Based on the interval, determine the number of units between the two dates\n\t// If the $datediff returned is 1, be sure to return the singular\n\t// of the unit, e.g. 'day' rather 'days'\n\tswitch ($interval)\n\t{\n\t\tcase \"m\" :\n\t\t\t$months_difference = floor($difference / 60 / 60 / 24 / 29);\n\t\t\t\n\t\t\twhile(\n\t\t\t\tmktime(date(\"H\", $datefrom), date(\"i\", $datefrom),\n\t\t\t\tdate(\"s\", $datefrom), date(\"n\", $datefrom)+($months_difference),\n\t\t\t\tdate(\"j\", $dateto), date(\"Y\", $datefrom)) < $dateto)\n\t\t\t{\n\t\t\t\t$months_difference++;\n\t\t\t}\n\t\t\t$datediff = $months_difference;\n\t\n\t\t\t// We need this in here because it is possible to have an 'm' interval and a months\n\t\t\t// difference of 12 because we are using 29 days in a month\n\t\t\tif ( $datediff == 12 )\n\t\t\t{ \n\t\t\t\t$datediff--; \n\t\t\t}\n\t\n\t\t\t$res = ($datediff==1) ? \"$datediff month ago\" : \"$datediff months ago\";\n\t\t\t\n\t\t\tbreak;\n\t\n\t\tcase \"y\" :\n\t\t\t$datediff = floor($difference / 60 / 60 / 24 / 365);\n\t\t\t$res = ($datediff==1) ? \"$datediff year ago\" : \"$datediff years ago\";\n\n\t\t\tbreak;\n\t\n\t\tcase \"d\" :\n\t\t\t$datediff = floor($difference / 60 / 60 / 24);\n\t\t\t$res = ($datediff==1) ? \"$datediff day ago\" : \"$datediff days ago\";\n\t\t\t\n\t\t\tbreak;\n\t\n\t\tcase \"ww\" :\n\t\t\t$datediff = floor($difference / 60 / 60 / 24 / 7);\n\t\t\t$res = ($datediff==1) ? \"$datediff week ago\" : \"$datediff weeks ago\";\n\n\t\t\tbreak;\n\t\n\t\tcase \"h\" :\n\t\t\t$datediff = floor($difference / 60 / 60);\n\t\t\t$res = ($datediff==1) ? \"$datediff hour ago\" : \"$datediff hours ago\";\n\n\t\t\tbreak;\n\t\n\t\tcase \"n\" :\n\t\t\t$datediff = floor($difference / 60);\n\t\t\t$res = ($datediff==1) ? \"$datediff minute ago\" : \"$datediff minutes ago\";\n\t\n\t\t\tbreak;\n\t\n\t\tcase \"s\":\n\t\t\t$datediff = $difference;\n\t\t\t$res = ($datediff==1) ? \"$datediff second ago\" : \"$datediff seconds ago\";\n\t\t\t\n\t\t\tbreak;\n\t}\n\n\treturn $res;\n}", "public function getAge()\n {\n //function qui calcule l'age de leleve \n $now = new \\DateTime('now');\n $age = $this->getDateNaissance();\n $difference = $now->diff($age);\n\n return $difference->format('%y Ans');\n }", "public function humanize()\n {\n $now = IntlCalendar::fromDateTime(self::now($this->timezone));\n $time = $this->getCalendar()->getTime();\n\n $years = $now->fieldDifference($time, IntlCalendar::FIELD_YEAR);\n $months = $now->fieldDifference($time, IntlCalendar::FIELD_MONTH);\n $days = $now->fieldDifference($time, IntlCalendar::FIELD_DAY_OF_YEAR);\n $hours = $now->fieldDifference($time, IntlCalendar::FIELD_HOUR_OF_DAY);\n $minutes = $now->fieldDifference($time, IntlCalendar::FIELD_MINUTE);\n\n $phrase = null;\n\n if ($years !== 0) {\n $phrase = lang('Time.years', [abs($years)]);\n $before = $years < 0;\n } elseif ($months !== 0) {\n $phrase = lang('Time.months', [abs($months)]);\n $before = $months < 0;\n } elseif ($days !== 0 && (abs($days) >= 7)) {\n $weeks = ceil($days / 7);\n $phrase = lang('Time.weeks', [abs($weeks)]);\n $before = $days < 0;\n } elseif ($days !== 0) {\n $before = $days < 0;\n\n // Yesterday/Tomorrow special cases\n if (abs($days) === 1) {\n return $before ? lang('Time.yesterday') : lang('Time.tomorrow');\n }\n\n $phrase = lang('Time.days', [abs($days)]);\n } elseif ($hours !== 0) {\n $phrase = lang('Time.hours', [abs($hours)]);\n $before = $hours < 0;\n } elseif ($minutes !== 0) {\n $phrase = lang('Time.minutes', [abs($minutes)]);\n $before = $minutes < 0;\n } else {\n return lang('Time.now');\n }\n\n return $before ? lang('Time.ago', [$phrase]) : lang('Time.inFuture', [$phrase]);\n }", "function time_ago($tm, $rcs = 0) {\r\n\tif (empty($tm)) $tm = strtotime(\"-10 hours\");\r\n\r\n $cur_tm = time(); \r\n $dif = $cur_tm - $tm;\r\n $pds = array('seconds', 'minutes', 'hour', 'day', 'week', 'month', 'year', 'decade');\r\n $lngh = array(1,60,3600,86400,604800,2630880,31570560,315705600);\r\n\r\n for ($v = count($lngh) - 1; ($v >= 0) && (($no = $dif / $lngh[$v]) <= 1); $v--);\r\n if ($v < 0)\r\n $v = 0;\r\n $_tm = $cur_tm - ($dif % $lngh[$v]);\r\n\r\n $no = ($rcs ? floor($no) : round($no)); // if last denomination, round\r\n\r\n if ($no != 1)\r\n $pds[$v] .= '';\r\n $x = $no . ' ' . $pds[$v];\r\n\r\n if (($rcs > 0) && ($v >= 1))\r\n $x .= ' ' . $this->time_ago($_tm, $rcs - 1);\r\n\t\r\n\tif ($v > 2) {\r\n\t\treturn date('d/m/Y h:i A',$tm);\r\n\t}\r\n\t\r\n\tif ($dif == 0) return \"recently.\";\r\n\t\r\n return $x . ' ago.';\r\n \r\n}", "function time_elapsed_string($datetime, $after, $full = false) {\n global $lang; /* on récupere la var global donné par config */\n $now = new DateTime;\n $ago = new DateTime($datetime);\n $diff = $now->diff($ago);\n\n $diff->w = floor($diff->d / 7);\n $diff->d -= $diff->w * 7;\n\n $string = array(\n 'y' => $lang[\"y\"],\n 'm' => $lang[\"m\"],\n 'w' => $lang[\"w\"],\n 'd' => $lang[\"d\"],\n 'h' => $lang[\"h\"],\n 'i' => $lang[\"i\"],\n 's' => $lang[\"s\"],\n );\n foreach ($string as $k => &$v) {\n if ($diff->$k) {\n $v = $diff->$k . ' ' . $v . ($diff->$k > 1 ? 's' : '');\n } else {\n unset($string[$k]);\n }\n }\n\n if (!$full) $string = array_slice($string, 0, 1);\n if ($lang[\"ago\"] == \"ago\")\n return $string ? implode(', ', $string) . ' ' . $after : 'just now';\n else {\n return $string ? $after . ' ' . implode(', ', $string) : \"à l'instant\";\n }\n}", "public static function getDateFormatted($date)\n {\n $currentDate = Carbon::now();\n $commentDate = new Carbon($date);\n if ($currentDate->diffInYears($commentDate) == $currentDate->year || $date === null) {\n return '';\n }\n\n if ($currentDate->diffInSeconds($commentDate) < 1) {\n return trans('public.now');\n } else if ($currentDate->diffInSeconds($commentDate) == 1) {\n return trans('public.second_ago');\n } else if ($currentDate->diffInSeconds($commentDate) < 60) {\n return trans('public.seconds_ago', ['number' => $currentDate->diffInSeconds($commentDate)]);\n } else if ($currentDate->diffInMinutes($commentDate) == 1) {\n return trans('public.minute_ago');\n } else if ($currentDate->diffInMinutes($commentDate) < 60) {\n return trans('public.minutes_ago', ['number' => $currentDate->diffInMinutes($commentDate)]);\n } else if ($currentDate->diffInHours($commentDate) == 1) {\n return trans('public.hour_ago');\n } else if ($currentDate->diffInHours($commentDate) < 24) {\n return trans('public.hours_ago', ['number' => $currentDate->diffInHours($commentDate)]);\n } else if ($currentDate->diffInDays($commentDate) == 1) {\n return trans('public.day_ago');\n } else if ($currentDate->diffInMonths($commentDate) < 1) {\n return trans('public.days_ago', ['number' => $currentDate->diffInDays($commentDate)]);\n } else if ($currentDate->diffInMonths($commentDate) == 1) {\n return trans('public.month_ago');\n } else if ($currentDate->diffInMonths($commentDate) < 12) {\n return trans('public.months_ago', ['number' => $currentDate->diffInMonths($commentDate)]);\n } else if ($currentDate->diffInYears($commentDate) == 1) {\n return trans('public.year_ago');\n } else {\n return trans('public.years_ago', ['number' => $currentDate->diffInYears($commentDate)]);\n }\n }", "public function getCreatedAttribute() {\n $timestamp = strtotime($this->created_at);\t\n\t \n $strTime = array(\"second\", \"minute\", \"hour\", \"day\", \"month\", \"year\");\n $length = array(\"60\",\"60\",\"24\",\"30\",\"12\",\"10\");\n\n $currentTime = time();\n if($currentTime >= $timestamp) {\n $diff = time()- $timestamp;\n for($i = 0; $diff >= $length[$i] && $i < count($length)-1; $i++) {\n $diff = $diff / $length[$i];\n }\n\n $diff = round($diff);\n return $diff . \" \" . $strTime[$i] . \"(s) ago \";\n }\n }", "private function ageChaton() { \n $datenow = new DateTime(\"now\");\n $result = date('Y-m-d', strtotime('-365 day')); //-12 mois\n\n return $result;\n }", "function time_since($datetime, $full = false) {\n $now = new DateTime;\n //$now->format('Y-m-d H:i:s');\n $ago = new DateTime($datetime);\n // $ago->format('Y-m-d H:i:s');\n $diff = $now->diff($ago);\n\n $diff->w = floor($diff->d / 7);\n $diff->d -= $diff->w * 7;\n\n $string = array(\n 'y' => 'year',\n 'm' => 'month',\n 'w' => 'week',\n 'd' => 'day',\n 'h' => 'hour',\n 'i' => 'min',\n 's' => 'sec',\n );\n foreach ($string as $key => &$value) {\n if ($diff->$key) {\n $value = $diff->$key . ' ' . $value . ($diff->$key > 1 ? 's' : '');\n } else {\n unset($string[$key]);\n }\n }\n\n if (!$full) $string = array_slice($string, 0, 1);\n return $string ? implode(', ', $string) . ' ago' : 'just now';\n}", "public function when()\n {\n return $this->created_at->diffForHumans();\n }", "function date_since($timestamp, $more_infos = false, $with_hours = false){\n\t$diff = abs(time() - $timestamp);\n\n\tif($with_hours){\n\t\tif($diff < 60){//If less than one minute\n\t\t\treturn $diff.' secondes';\n\t\t}\n\t\tif($diff < 3600){//If less than one hour\n\t\t\t$m=floor($diff / 60);\n\t\t\tif($m == 1){\n\t\t\t\treturn '1 minute';\n\t\t\t}\n\t\t\treturn $m.' minutes';\n\t\t}\n\t\tif($diff < 86400){//If less than one day\n\t\t\t$h=floor($diff / 3600);\n\t\t\tif($h == 1){\n\t\t\t\treturn '1 heure';\n\t\t\t}\n\t\t\treturn $h.' heures';\n\t\t}\n\t} else {\n\t\tif($diff < 86400){\n\t\t\treturn \"aujourd'hui\";\n\t\t}\n\t}\n\n\t//If more than one day:\n\n\t$day=(int)date('j', $diff);\n\t$mon=(int)date('n', $diff) - 1;\n\t$yea=(int)date('Y', $diff) - 1970;\n\n\t$tmp=array();\n\n\tif($day > 0){\n\t\tif($day == 1){\n\t\t\t$tmp[]='1 jour';\n\t\t}else{\n\t\t\t$tmp[]=$day.' jours';\n\t\t}\n\t}\n\tif($mon > 0){\n\t\tif($mon == 1){\n\t\t\t$tmp[]='1 mois';\n\t\t}else{\n\t\t\t$tmp[]=$mon.' mois';\n\t\t}\n\t}\n\tif($yea > 0){\n\t\tif($yea == 1){\n\t\t\t$tmp[]='1 an';\n\t\t}else{\n\t\t\t$tmp[]=$yea.' ans';\n\t\t}\n\t}\n\tif(!$more_infos){\n\t\treturn array_pop($tmp);\n\t}\n\t$separator=array(', ', ' et ', '');\n\t$final=array();\n\tforeach($tmp as $value){\n\t\t$final[]=$value.array_pop($separator);\n\t}\n\treturn implode(array_reverse($final));\n}", "public static function timeAgo($originTime){\n $timestamp = strtotime($originTime);\n\n $strTime = array(\"second\", \"minute\", \"hour\", \"day\", \"month\", \"year\");\n $length = array(\"60\",\"60\",\"24\",\"30\",\"12\",\"10\");\n /*$currentTime = time();*/\n $expression = new \\yii\\db\\Expression('NOW()');\n $now = (new \\yii\\db\\Query)->select($expression)->scalar();\n $currentTime = strtotime($now);\n\n if($currentTime >= $timestamp) {\n $diff = $currentTime- $timestamp;\n for($i = 0; $diff >= $length[$i] && $i < count($length)-1; $i++) {\n $diff = $diff / $length[$i];\n }\n\n $diff = round($diff);\n $singular = \"\";\n if($diff > 1){\n $singular = \"s\";\n }\n return $diff . \" \" . $strTime[$i] . $singular.\" ago \";\n }\n\n }", "function date_before($date){\n\n\t// Start and end date\n\t$then = strtotime($date);\n\t$now = time();\n\t\t\n\t// Calculate difference\n\t$difference = $now - $then;\n\n\t// Get periods lengths\n\t$periods = array(\n\t\t\"31570560\"\t\t=>\tarray(\"one\"\t=>\t\"year\", \t\t\"many\"\t=>\t\"years\"),\n\t\t\"2630880\"\t\t=>\tarray(\"one\"\t=>\t\"month\", \t\t\"many\"\t=>\t\"months\"),\n\t\t\"604800\"\t\t=>\tarray(\"one\"\t=>\t\"week\", \t\t\"many\"\t=>\t\"weeks\"),\n\t\t\"86400\"\t\t\t=>\tarray(\"one\"\t=>\t\"day\", \t\t\t\"many\"\t=>\t\"days\"),\n\t\t\"3400\"\t\t\t=>\tarray(\"one\"\t=>\t\"hour\", \t\t\"many\"\t=>\t\"hours\"),\n\t\t\"60\"\t\t\t=>\tarray(\"one\"\t=>\t\"minute\", \t\t\"many\"\t=>\t\"minutes\"),\n\t\t\"1\"\t\t\t\t=>\tarray(\"one\"\t=>\t\"second\", \t\t\"many\"\t=>\t\"seconds\")\n\t);\n\t\t\n\t// Returned string\n\t$output = \"\";\n\t\t\n\t// For each field\n\tforeach($periods AS $seconds => $names_array){\n\t\t\t\n\t\t// Get time difference for this field\n\t\t$result = $difference / $seconds;\n\t\t\t\n\t\t// If the result is more than one\n\t\tif($result > 1){\n\t\t\t\n\t\t\t// If the result is less than 2\n\t\t\tif($result < 2){\n\t\t\t\t//$output .= floor($result).\" \".$names_array['one'].\" \";\n\t\t\t\t$output[] = floor($result).\" \".$names_array['one'].\" \";\n\t\t\t\t\n\t\t\t// If the result is more than 2\n\t\t\t} else {\n\t\t\t\t//$output .= floor($result).\" \".$names_array['many'].\" \";\n\t\t\t\t$output[] = floor($result).\" \".$names_array['many'].\" \";\n\t\t\t}\n\t\t\t\t\n\t\t\t// Decrement difference with the taken time\n\t\t\t$difference = $difference - floor($result) * $seconds;\n\t\t}\n\t}\n\t\t\n\t// Check if we have data\n\tif(!empty($output[0])){\n\t\tif(!empty($output[1])){\n\t\t\t$output = $output[0].\" and \".$output[1];\n\t\t} else {\n\t\t\t$output = $output[0];\n\t\t}\n\t} else {\n\t\t$output = \"1 second\";\n\t}\n\t\t\n\t// Return difference\n\treturn $output;\n}", "public static function relativeTime($timestamp, $now = null, $format = null) {\r\n \r\n if ($timestamp instanceof DateTime) {\r\n $timestamp = $timestamp->getTimestamp(); \r\n }\r\n \r\n if ($now instanceof DateTime) {\r\n $now = $now->getTimestamp(); \r\n }\r\n \r\n if (!filter_var($now, FILTER_VALIDATE_INT)) {\r\n $now = time();\r\n }\r\n \r\n $diff = $now - $timestamp;\r\n $format = $format; // to shut up CodeClimate\r\n \r\n if ($diff < 60) {\r\n return sprintf($diff > 1 ? '%s seconds ago' : 'a second ago', $diff);\r\n }\r\n \r\n $diff = floor($diff / 60);\r\n \r\n if ($diff < 60) {\r\n return sprintf($diff > 1 ? '%s minutes ago' : 'one minute ago', $diff);\r\n }\r\n \r\n $diff = floor($diff / 60);\r\n \r\n if ($diff < 24) {\r\n return sprintf($diff > 1 ? '%s hours ago' : 'an hour ago', $diff);\r\n }\r\n \r\n $diff = floor($diff / 24);\r\n \r\n if ($diff < 7) {\r\n return sprintf($diff > 1 ? '%s days ago' : 'yesterday', $diff);\r\n }\r\n \r\n if ($diff < 30) {\r\n $diff = floor($diff / 7);\r\n return sprintf($diff > 1 ? '%s weeks ago' : 'one week ago', $diff);\r\n }\r\n \r\n $diff = floor($diff / 30);\r\n \r\n if ($diff < 12) {\r\n return sprintf($diff > 1 ? '%s months ago' : 'last month', $diff);\r\n }\r\n \r\n $diff = date('Y', $now) - date('Y', $timestamp);\r\n \r\n return sprintf($diff > 1 ? '%s years ago' : 'last year', $diff);\r\n \r\n }", "function relative_date1($time)\n {\n $today = strtotime(date('M j, Y'));\n $reldays = ($time - $today) / 86400;\n if ($reldays >= 0 && $reldays < 1) {\n return 'Today';\n } else if ($reldays >= 1 && $reldays < 2) {\n return 'Tomorrow';\n } else if ($reldays >= -1 && $reldays < 0) {\n return 'Yesterday';\n }\n if (abs($reldays) < 7) {\n if ($reldays > 0) {\n $reldays = floor($reldays);\n return 'In ' . $reldays . ' day' . ($reldays != 1 ? 's' : '');\n } else {\n $reldays = abs(floor($reldays));\n return $reldays . ' day' . ($reldays != 1 ? 's' : '') . ' ago';\n }\n }\n if (abs($reldays) < 182) {\n return date('l, j F', $time ? $time : time());\n } else {\n return date('l, j F Y', $time ? $time : time());\n }\n }", "public function getLateDaysRemaining() {\n // Use 'now' because it is possible that there are changes that occur in the future\n return $this->getLateDaysRemainingByContext($this->core->getDateTimeNow());\n }", "function timeSincePublish($pub_date){\r\n\t\t\t$now_date = date('U');\r\n\t\t\t$since_date = $now_date - $pub_date;\r\n\t\t\t$since_hours = floor($since_date / 60 / 60);\r\n\t\t\t$since_days = floor($since_hours / 24);\r\n\t\t\r\n\t\t\t?><span style=\"display:none;\"><?php echo $pub_date; ?></span><?php\r\n\t\t\r\n\t\t\tif($since_hours<1 && $since_days<1){\r\n\t\t\t?><em>recently</em><?php\r\n\t\t\t}elseif($since_hours>=1 && $since_days<1){\r\n\t\t\t?><em><?=$since_hours?> hour<?= ($since_hours>1 ? 's':''); ?> ago</em><?php\r\n\t\t\t}elseif($since_hours>1 && $since_days>=1){\r\n\t\t\t?><em><?= ($since_days==1 ? 'yesterday':$since_days.' days ago'); ?></em><?php\r\n\t\t\t}\r\n\t\t}", "function time_elapsed_string($datetime) {\n\t\t\t $now = new DateTime;\n\t\t\t $ago = new DateTime($datetime);\n\t\t\t $diff = $now->diff($ago);\n\n\t\t\t $diff->w = floor($diff->d / 7);\n\t\t\t $diff->d -= $diff->w * 7;\n\n\t\t\t $string = array(\n\t\t\t 'y' => 'year',\n\t\t\t 'm' => 'month',\n\t\t\t 'w' => 'week',\n\t\t\t 'd' => 'day',\n\t\t\t 'h' => 'hour',\n\t\t\t 'i' => 'minute',\n\t\t\t 's' => 'second',\n\t\t\t );\n\t\t\t foreach ($string as $k => &$v) {\n\t\t\t if ($diff->$k) {\n\t\t\t $v = $diff->$k . ' ' . $v . ($diff->$k > 1 ? 's' : '');\n\t\t\t } else {\n\t\t\t unset($string[$k]);\n\t\t\t }\n\t\t\t }\n\n\t\t\t if ($string = array_slice($string, 1));\n\t\t\t return $string ? implode(', ', $string) . ', ago' : 'just now';\n\t\t}" ]
[ "0.7418086", "0.70751554", "0.69802475", "0.69734514", "0.68808895", "0.6862368", "0.6844272", "0.68216854", "0.67670405", "0.67494273", "0.6742245", "0.66780555", "0.6574261", "0.6554475", "0.65236264", "0.6493394", "0.64762574", "0.6440752", "0.6370408", "0.6364765", "0.6331234", "0.6329961", "0.6326818", "0.6317782", "0.6311625", "0.6299655", "0.6234435", "0.62046266", "0.6195535", "0.6181398", "0.6173", "0.6165711", "0.6165711", "0.6162226", "0.61529976", "0.61523426", "0.61433405", "0.6118103", "0.61023074", "0.6091607", "0.6086035", "0.6065291", "0.6047567", "0.6025183", "0.6022421", "0.5999631", "0.5986917", "0.5984013", "0.59800214", "0.59565204", "0.59529936", "0.59364057", "0.5935061", "0.5920088", "0.5917378", "0.59109133", "0.5906081", "0.58862454", "0.5864227", "0.5856424", "0.5848113", "0.5848113", "0.58335483", "0.58268213", "0.5825993", "0.58156705", "0.5815193", "0.5814153", "0.5801051", "0.5789896", "0.5774967", "0.5761123", "0.5760464", "0.571579", "0.5700837", "0.5698519", "0.56838435", "0.5682845", "0.56788707", "0.5678762", "0.5674185", "0.5673824", "0.5661844", "0.5602628", "0.5594219", "0.55823743", "0.5572312", "0.55719423", "0.5568957", "0.55563724", "0.55559564", "0.5549336", "0.554223", "0.5525854", "0.55163103", "0.55038303", "0.54903316", "0.5486886", "0.54626834", "0.5456411" ]
0.6031936
43
Attempts to convert a word into its plural form. Warning: this method by no means returns the correct answer in every case.
public static function pluralize( $word ) { // special cases if( 'access' == $word ) return $word; if( 'y' == substr( $word, -1 ) ) { // likely, any word ending in 'y' has 'ies' at the end of the plural word return substr( $word, 0, -1 ).'ies'; } if( 's' == substr( $word, -1 ) ) { // likely, any word ending in an 's' has 'es' at the end of the plural word return $word.'es'; } // if there is no rule for this word then we hope that adding an 's' at the end is sufficient return $word.'s'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function pluralize($word);", "public static function pluralize($word)\n {\n $plural = array(\n '/(quiz)$/i' => '1zes',\n '/^(ox)$/i' => '1en',\n '/([m|l])ouse$/i' => '1ice',\n '/(matr|vert|ind)ix|ex$/i' => '1ices',\n '/(x|ch|ss|sh)$/i' => '1es',\n '/([^aeiouy]|qu)ies$/i' => '1y',\n '/([^aeiouy]|qu)y$/i' => '1ies',\n '/(hive)$/i' => '1s',\n '/(?:([^f])fe|([lr])f)$/i' => '12ves',\n '/sis$/i' => 'ses',\n '/([ti])um$/i' => '1a',\n '/(buffal|tomat)o$/i' => '1oes',\n '/(bu)s$/i' => '1ses',\n '/(alias|status)/i'=> '1es',\n '/(octop|vir)us$/i'=> '1i',\n '/(ax|test)is$/i'=> '1es',\n '/s$/i'=> 's',\n '/$/'=> 's');\n\n $uncountable = array('equipment', 'information', 'rice', 'money', 'species', 'series', 'fish', 'sheep');\n\n $irregular = array(\n 'person' => 'people',\n 'man' => 'men',\n 'child' => 'children',\n 'sex' => 'sexes',\n 'move' => 'moves');\n\n $lowercased_word = strtolower($word);\n\n foreach ($uncountable as $_uncountable){\n if(substr($lowercased_word,(-1*strlen($_uncountable))) == $_uncountable){\n return $word;\n }\n }\n\n foreach ($irregular as $_plural=> $_singular){\n if (preg_match('/('.$_plural.')$/i', $word, $arr)) {\n return preg_replace('/('.$_plural.')$/i', substr($arr[0],0,1).substr($_singular,1), $word);\n }\n }\n\n foreach ($plural as $rule => $replacement) {\n if (preg_match($rule, $word)) {\n return preg_replace($rule, $replacement, $word);\n }\n }\n return false;\n\n }", "public function pluralize($word)\n {\n static $rules = NULL;\n if ($rules == NULL)\n $rules = $this->getPluralRules();\n return $this->transform($word, $rules);\n }", "public static function pluralize($word) {\n $original = $word;\n foreach(self::$plural_rules as $rule => $replacement) {\n $word = preg_replace($rule,$replacement,$word);\n if($original != $word) break;\n }\n return $word;\n }", "public static function pluralize($word)\n\t{\n\t\treturn $word[strlen($word)-1] == \"s\" ? $word : $word.\"s\";\n\t}", "public function pluralize($word)\n\t{\n\t\t$plural = array(\n\t\t\t'/(quiz)$/i' => '1zes',\n\t\t\t'/^(ox)$/i' => '1en',\n\t\t\t'/([m|l])ouse$/i' => '1ice',\n\t\t\t'/(matr|vert|ind)ix|ex$/i' => '1ices',\n\t\t\t'/(x|ch|ss|sh)$/i' => '1es',\n\t\t\t'/([^aeiouy]|qu)ies$/i' => '1y',\n\t\t\t'/([^aeiouy]|qu)y$/i' => '1ies',\n\t\t\t'/(hive)$/i' => '1s',\n\t\t\t'/(?:([^f])fe|([lr])f)$/i' => '12ves',\n\t\t\t'/sis$/i' => 'ses',\n\t\t\t'/([ti])um$/i' => '1a',\n\t\t\t'/(buffal|tomat)o$/i' => '1oes',\n\t\t\t'/(bu)s$/i' => '1ses',\n\t\t\t'/(alias|status)/i'=> '1es',\n\t\t\t'/(octop|vir)us$/i'=> '1i',\n\t\t\t'/(ax|test)is$/i'=> '1es',\n\t\t\t'/s$/i'=> 's',\n\t\t\t'/$/'=> 's');\n\n\t\t$uncountable = array('equipment', 'information', 'rice', 'money', 'species', 'series', 'fish', 'sheep');\n\n\t\t$irregular = array(\n\t\t\t'person' => 'people',\n\t\t\t'man' => 'men',\n\t\t\t'child' => 'children',\n\t\t\t'sex' => 'sexes',\n\t\t\t'move' => 'moves');\n\n\t\t$lowercased_word = strtolower($word);\n\n\t\tforeach ($uncountable as $_uncountable){\n\t\t\tif(substr($lowercased_word,(-1*strlen($_uncountable))) == $_uncountable){\n\t\t\t\treturn $word;\n\t\t\t}\n\t\t}\n\n\t\tforeach ($irregular as $_plural=> $_singular){\n\t\t\tif (preg_match('/('.$_plural.')$/i', $word, $arr)) {\n\t\t\t\treturn preg_replace('/('.$_plural.')$/i', substr($arr[0],0,1).substr($_singular,1), $word);\n\t\t\t}\n\t\t}\n\n\t\tforeach ($plural as $rule => $replacement) {\n\t\t\tif (preg_match($rule, $word)) {\n\t\t\t\treturn preg_replace($rule, $replacement, $word);\n\t\t\t}\n\t\t}\n\t\treturn false;\n\n\t}", "function pluralize_word($word, $count) {\n if ($count == 1) return singular($word);\n return plural($word);\n}", "function pluralize_word($word, $count) {\n if ($count == 1) return singular($word);\n return plural($word);\n}", "public function pluralize($word)\n {\n if (isset($this->specials[$word])) {\n return $this->specials[$word];\n }\n foreach ($this->plurals as $rule => $replacement) {\n if (preg_match($rule, $word)) {\n return preg_replace($rule, $replacement, $word);\n }\n }\n\n return $word;\n }", "public function depluralize($word)\n {\n // Add the plural ending as the key and the singular\n // ending as the value for that key. This could be\n // turned into a preg_replace and probably will be\n // eventually, but for now, this is what it is.\n //\n // Note: The first rule has a value of false since\n // we don't want to mess with words that end with\n // double 's'. We normally wouldn't have to create\n // rules for words we don't want to mess with, but\n // the last rule (s) would catch double (ss) words\n // if we didn't stop before it got to that rule.\n $rules = array(\n 'ss' => false,\n 'os' => 'o',\n 'ies' => 'y',\n 'xes' => 'x',\n 'oes' => 'o',\n 'ies' => 'y',\n 'ves' => 'f',\n 's' => '');\n // Loop through all the rules and do the replacement.\n foreach(array_keys($rules) as $key)\n {\n // If the end of the word doesn't match the key,\n // it's not a candidate for replacement. Move on\n // to the next plural ending.\n if(substr($word, (strlen($key) * -1)) != $key)\n continue;\n // If the value of the key is false, stop looping\n // and return the original version of the word.\n if($key === false)\n return $word;\n // We've made it this far, so we can do the\n // replacement.\n return substr($word, 0, strlen($word) - strlen($key)) . $rules[$key];\n }\n\n return $word;\n }", "function pluralize(){\n\t\treturn $this->_copy(_Inflect::pluralize((string)$this));\n\t}", "function depluralize($word){\n // Add the plural ending as the key and the singular\n // ending as the value for that key. This could be\n // turned into a preg_replace and probably will be\n // eventually, but for now, this is what it is.\n //\n // Note: The first rule has a value of false since\n // we don't want to mess with words that end with\n // double 's'. We normally wouldn't have to create\n // rules for words we don't want to mess with, but\n // the last rule (s) would catch double (ss) words\n // if we didn't stop before it got to that rule.\n $rules = array(\n 'ss' => false,\n 'os' => 'o',\n 'ies' => 'y',\n 'xes' => 'x',\n 'oes' => 'o',\n 'ies' => 'y',\n 'ves' => 'f',\n 'ses' => 's',\n 's' => '');\n // Loop through all the rules and do the replacement.\n foreach(array_keys($rules) as $key){\n // If the end of the word doesn't match the key,\n // it's not a candidate for replacement. Move on\n // to the next plural ending.\n if(substr($word, (strlen($key) * -1)) != $key)\n continue;\n // If the value of the key is false, stop looping\n // and return the original version of the word.\n if($key === false)\n return $word;\n // We've made it this far, so we can do the\n // replacement.\n return substr($word, 0, strlen($word) - strlen($key)) . $rules[$key];\n }\n return $word;\n}", "function getPlural();", "function pluralize($num, $word, $plural) {\n return $num . ' ' . ($num == 1 ? $word : $plural);\n}", "public function pluralize($word){\n\t\t$length = i18n::strlen($word);\n\t\t$last = i18n::substr($word, $length-1);\n\t\tif(!in_array($last, $this->_locale->getAllVowels())){\n\t\t\tif($last!='s'&$last!='x'){\n\t\t\t\tswitch($last){\n\t\t\t\t\tcase 'z':\n\t\t\t\t\t\treturn $this->_replaceAccented(i18n::substr($word, 0, $length-1)).'ces';\n\t\t\t\t\tcase 'k':\n\t\t\t\t\tcase 'c':\n\t\t\t\t\t\treturn $this->_replaceAccented(i18n::substr($word, 0, $length-1)).'ques';\n\t\t\t\t\tcase 'g':\n\t\t\t\t\t\treturn $this->_replaceAccented($word).'ues';\n\t\t\t\t\tdefault:\n\t\t\t\t\t\treturn $this->_replaceAccented($word).'es';\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\treturn $word;\n\t\t\t}\n\t\t} else {\n\t\t\treturn $word.'s';\n\t\t}\n\t}", "public static function pluralise ($singularWord)\r\n\t{\r\n\t\t# Pluralise\r\n\t\tswitch (true) {\r\n\t\t\tcase preg_match ('/(.+)y$/', $singularWord, $matches):\r\n\t\t\t\treturn $matches[1] . 'ies';\r\n\t\t\tcase preg_match ('/(.+)s$/', $singularWord, $matches):\r\n\t\t\t\treturn $matches[1] . \"s'\";\r\n\t\t\tdefault:\r\n\t\t\t\treturn $singularWord . 's';\r\n\t\t}\r\n\t}", "public static function plural($str)\n {\n // Shortcut references (readability)\n $pp = &self::$plural;\n $pm = &self::$plural['merged'];\n $pd = &self::$data['plural'];\n\n // Check the internal cache (performance)\n if (isset($pd[$str])) {\n\n // Return matches from the cache\n return $pd[$str];\n }\n\n // Check against irregular plurals\n if (preg_match('/(.*)\\\\b('.$pp['cacheIrregular'].')$/i', $str, $regs)) {\n\n // Return match while also setting the internal cache (faster next time this word is referenced)\n return $pd[$str] = $regs[1].substr($str, 0, 1).substr($pm['irregular'][strtolower($regs[2])], 1);\n }\n\n // Check against the uninflected plurals\n if (preg_match('/^('.$pp['cacheUninflected'].')$/i', $str, $regs)) {\n\n // Return and cache\n return $pd[$str] = $str;\n }\n\n // Normal word (not irregular or uninflected)\n foreach ($pp['rules'] as $rule => $replacement) {\n\n // Find a matching rule\n if (preg_match($rule, $str)) {\n\n // Cache the word for next time and return the inflected\n return $pd[$str] = preg_replace($rule, $replacement, $str);\n }\n }\n }", "public static function pluralize($word, $num){\n\t\t$vowels = [\"a\", \"e\", \"i\", \"o\", \"u\"];\n\t\t$lastCharExceptions = [\"s\", \"o\", \"x\"];\n\t\t$lastTwoCharExceptions = [\"sh\", \"ch\"];\n\t\tif($num == 1){\n\t\t\treturn $word;\n\t\t}\n\t\t$lastChar = mb_substr($word, -1, 1);\n\t\t$lastTwoChars = mb_substr($word, -2, 2);\n\t\tif($lastChar == \"y\" && !in_array(mb_substr($word, -2, 1), $vowels, true)){\n\t\t\treturn mb_substr($word, 0, mb_strlen($word) - 1) . \"ies\";\n\t\t}\n\t\telse if(in_array($lastChar, $lastCharExceptions, true)\n\t\t\t|| in_array($lastTwoChars, $lastTwoCharExceptions, true)){\n\t\t\treturn $word . \"es\";\n\t\t}\n\t\telse{\n\t\t\treturn $word . \"s\";\n\t\t}\n\t}", "public function plural($string, $count = 0, $lang = null);", "private function pluralise($singular) {\n\n $last_letter = strtolower($singular[strlen($singular)-1]);\n switch($last_letter) {\n case 'y':\n return substr($singular,0,-1).'ies';\n case 's':\n return $singular.'es';\n default:\n return $singular.'s';\n }\n\n}", "private function _plural($num) {\n\t\tif ($num != 1) { return \"s\"; }\n\t}", "public function testPluralize() {\n // irregular\n $this->assertEquals('opuses', Inflector::pluralize('opus'));\n $this->assertEquals('penises', Inflector::pluralize('penis'));\n $this->assertEquals('loaves', Inflector::pluralize('loaf'));\n $this->assertEquals('mythoi', Inflector::pluralize('mythos'));\n $this->assertEquals('men', Inflector::pluralize('man'));\n\n // uninflected\n $this->assertEquals('information', Inflector::pluralize('information'));\n $this->assertEquals('corps', Inflector::pluralize('corps'));\n $this->assertEquals('gallows', Inflector::pluralize('gallows'));\n $this->assertEquals('maltese', Inflector::pluralize('maltese'));\n $this->assertEquals('rice', Inflector::pluralize('rice'));\n\n // plural\n $this->assertEquals('matrices', Inflector::pluralize('matrix'));\n $this->assertEquals('buses', Inflector::pluralize('bus'));\n $this->assertEquals('perches', Inflector::pluralize('perch'));\n $this->assertEquals('people', Inflector::pluralize('person'));\n $this->assertEquals('bananas', Inflector::pluralize('banana'));\n\n // already plural\n $this->assertEquals('opuses', Inflector::pluralize('opuses'));\n $this->assertEquals('penises', Inflector::pluralize('penises'));\n $this->assertEquals('loaves', Inflector::pluralize('loaves'));\n $this->assertEquals('mythoi', Inflector::pluralize('mythoi'));\n $this->assertEquals('men', Inflector::pluralize('men'));\n }", "protected function pluralize($word, $count)\n {\n if ($count === 1) {\n return $word;\n }\n\n return $word .'s';\n }", "function pluralize( $string )\n{\n\n\treturn MWText::pluralize($string);\n}", "function pluralize($noun){\n $lowercased_noun = strtolower($noun);\n\n foreach($_ENV['INFLECTION_EXCEPTIONS']['uncountable'] as $uncountable){\n if(substr($lowercased_noun,(-1*strlen($uncountable))) == $uncountable){\n return $noun;\n }\n }\n\n foreach($_ENV['INFLECTION_EXCEPTIONS']['irregular'] as $plural => $singular){\n if (preg_match('/('.$plural.')$/i', $noun, $arr)){\n return preg_replace('/('.$plural.')$/i', substr($arr[0],0,1).substr($singular,1), $noun);\n }\n }\n\n foreach($_ENV['INFLECTION_EXCEPTIONS']['plural'] as $rule => $replacement){\n if (preg_match($rule, $noun)){\n return preg_replace($rule, $replacement, $noun);\n }\n }\n\n return $noun;\n}", "public function getPlural($msgid1, $msgid2, $n);", "public function getPluralName();", "public function getPlural()\n {\n return $this->plural;\n }", "public static function pluralize( $string )\n{\n\tif ( in_array( strtolower( $string ), self::$uncountable ) )\n\t\treturn $string;\n\n // check for irregular singular forms\n\tforeach ( self::$irregular as $pattern => $result )\n\t{\n\t\t$pattern = '/' . $pattern . '$/i';\n\n\t\tif ( preg_match( $pattern, $string ) )\n\t\t\treturn preg_replace( $pattern, $result, $string);\n\t}\n\n // check for matches using regular expressions\n\tforeach ( self::$plural as $pattern => $result )\n\t{\n\t\tif ( preg_match( $pattern, $string ) )\n\t\t\treturn preg_replace( $pattern, $result, $string );\n\t}\n\n\treturn $string;\n}", "public static function singularise ($pluralWord)\r\n\t{\r\n\t\t# Singularise\r\n\t\tswitch (true) {\r\n\t\t\tcase preg_match ('/(.+)ies$/', $pluralWord, $matches):\r\n\t\t\t\treturn $matches[1] . 'y';\r\n\t\t\tcase preg_match ('/(.+)s\\'$/', $pluralWord, $matches):\r\n\t\t\t\treturn $matches[1] . 's';\r\n\t\t\tcase preg_match ('/(.+)s$/', $pluralWord, $matches):\r\n\t\t\t\treturn $matches[1];\r\n\t\t}\r\n\t\t\r\n\t\t# Return unmodified if no match found\r\n\t\treturn $pluralWord;\r\n\t}", "public function str_plural()\n {\n throw new Exception('Not implemented');\n }", "public static function pluralize($str)\n {\n if (strlen($str) > 0 && $str[strlen($str) - 1] === 's') {\n return $str . 'es';\n }\n return $str . 's';\n }", "function convertPlural( $count, $w1, $w2, $w3, $w4, $w5) {\n\t\treturn $count <= '1' ? $w1 : $w2;\n }", "private function retrieve_pt_plural() {\n\t\t$replacement = null;\n\n\t\t$name = $this->determine_pt_names( 'plural' );\n\t\tif ( isset( $name ) && $name !== '' ) {\n\t\t\t$replacement = $name;\n\t\t}\n\n\t\treturn $replacement;\n\t}", "protected function plural(string $resource): string\n {\n $resource = strtolower($resource);\n if (substr($resource, -1) === 's') {\n return $resource;\n }\n\n return $resource.'s';\n }", "static function pluralize( $string ) {\n $plural = array(\n array( '/(quiz)$/i', \"$1zes\" ),\n array( '/^(ox)$/i', \"$1en\" ),\n array( '/([m|l])ouse$/i', \"$1ice\" ),\n array( '/(matr|vert|ind)ix|ex$/i', \"$1ices\" ),\n array( '/(x|ch|ss|sh)$/i', \"$1es\" ),\n array( '/([^aeiouy]|qu)y$/i', \"$1ies\" ),\n array( '/([^aeiouy]|qu)ies$/i', \"$1y\" ),\n array( '/(hive)$/i', \"$1s\" ),\n array( '/(?:([^f])fe|([lr])f)$/i', \"$1$2ves\" ),\n array( '/sis$/i', \"ses\" ),\n array( '/([ti])um$/i', \"$1a\" ),\n array( '/(buffal|tomat)o$/i', \"$1oes\" ),\n array( '/(bu)s$/i', \"$1ses\" ),\n array( '/(alias|status)$/i', \"$1es\" ),\n array( '/(octop|vir)us$/i', \"$1i\" ),\n array( '/(ax|test)is$/i', \"$1es\" ),\n array( '/s$/i', \"s\" ),\n array( '/$/', \"s\" )\n );\n\n $irregular = array(\n array( 'move', 'moves' ),\n array( 'sex', 'sexes' ),\n array( 'child', 'children' ),\n array( 'man', 'men' ),\n array( 'person', 'people' )\n );\n\n $uncountable = array( \n 'sheep', \n 'fish',\n 'series',\n 'species',\n 'money',\n 'rice',\n 'information',\n 'equipment'\n );\n\n # Save time if string in uncountable\n if ( in_array( strtolower( $string ), $uncountable ) )\n return apply_filters( 'div_pluralize', $string );\n\n # Check for irregular words\n foreach ( $irregular as $noun ) {\n if ( strtolower( $string ) == $noun[0] )\n return apply_filters( 'div_pluralize', $noun[1] );\n }\n\n # Check for plural forms\n foreach ( $plural as $pattern ) {\n if ( preg_match( $pattern[0], $string ) )\n return apply_filters( 'div_pluralize', preg_replace( $pattern[0], $pattern[1], $string ) );\n }\n\n # Return if noting found\n return apply_filters( 'div_pluralize', $string );\n }", "function yourls_translate_nooped_plural( $nooped_plural, $count, $domain = 'default' ) {\n\tif ( $nooped_plural['domain'] )\n\t\t$domain = $nooped_plural['domain'];\n\n\tif ( $nooped_plural['context'] )\n\t\treturn yourls_nx( $nooped_plural['singular'], $nooped_plural['plural'], $count, $nooped_plural['context'], $domain );\n\telse\n\t\treturn yourls_n( $nooped_plural['singular'], $nooped_plural['plural'], $count, $domain );\n}", "public static function pluralize( $string )\n {\n if ( in_array( strtolower( $string ), self::$uncountable ) )\n return $string;\n\n\n // check for irregular singular forms\n foreach ( self::$irregular as $pattern => $result )\n {\n $pattern = '/' . $pattern . '$/i';\n\n if ( preg_match( $pattern, $string ) )\n return preg_replace( $pattern, $result, $string);\n }\n\n // check for matches using regular expressions\n foreach ( self::$plural as $pattern => $result )\n {\n if ( preg_match( $pattern, $string ) )\n return preg_replace( $pattern, $result, $string );\n }\n\n return $string;\n }", "public function plural($singular, $plural, $number, $locale = null) {\n\t\treturn $singular;\n\t}", "public function plural($count, $plural, $single)\n {\n if ($count == 1) {\n return $single;\n } else {\n return $plural;\n }\n }", "private function plural($num = NULL)\n {\n if ($num > 1) return \"s\";\n }", "function erp_pluralize( $word ) {\n return \\Doctrine\\Common\\Inflector\\Inflector::pluralize( $word );\n}", "function pluralize($x, $number = null) {\n\n if ($number == 1) {\n return singularize($x);\n }\n\n if (preg_match('/([aieou]?)(s?)s$/i', $x, $m)) {\n\n if ($m[1] && $m[2]) {\n // class -> classes\n return $x . 'es';\n } else {\n // already plural already\n return $x;\n }\n }\n\n $x = preg_replace('/([^aeiou])y$/i', '$1ies', $x, 1, $count);\n if ($count) return $x;\n\n $x = preg_replace('/x$/i', 'xes', $x, 1, $count);\n if ($count) return $x;\n\n return $x . 's';\n }", "function _sp($count,$singular,$plural){\n\treturn App::getLocale()->isPlural((int)$count)?$plural:$singular;\n}", "public static function simplePluralize($num, $thing)\n {\n return sprintf('%s%s', $thing, $num == 1 ? '' : 's');\n }", "public function make_plural($string){\n\t\t$lastchar = $string[strlen($string) - 1];\n\t\t\n\t\tif($lastchar == 'y'){\n\t\t\t$cut = substr($string, 0, -1);\n\t\t\t$plural = $cut.'ies';\n\t\t}else{\n\t\t\t$plural = $string.'s';\n\t\t}\n\t\t\n\t\treturn $plural;\n\t}", "public static function pluralize($nb, $plural = 's', $singular = '')\n {\n return $nb > 1 ? $plural : $singular;\n }", "public function plural($singular, $plural, $number, $locale = null)\n {\n $args = func_get_args();\n return call_user_func_array(array($this->translateAdapter, 'plural'), $args);\n }", "public function plural($singular, $plural, $number, $locale = null)\n {\n $args = func_get_args();\n return call_user_func_array(array($this->translateAdapter, 'plural'), $args);\n }", "function make_plural($number, $singular, $plural='') {\n if ($number == 1)\n return $singular;\n if ($plural)\n return $plural;\n return $singular . 's';\n}", "public function setPluralName($plural);", "public function plural()\n {\n return $this->getNameInstance()->plural();\n }", "public function plural($text)\n {\n $callback = $this->aplicator->replace(\n $this->irregularSingles,\n $this->irregularPlurals,\n $this->pluralRules\n );\n\n return $callback($text);\n }", "function hybrid_translate_plural( $domain, $single, $plural, $number, $context = null ) {\n\n\t$translations = get_translations_for_domain( $domain );\n\n\treturn $translations->translate_plural( $single, $plural, $number, $context );\n}", "function plural($msgid, $msgid_plural, $n)\n{\n return array($msgid, $msgid_plural, $n);\n}", "public static function pluralize($str){\n\t\t//if(substr($str, -7) == 'ctivity') return substr($str,0,-7).'ctivities';\n\t\treturn ActiveRecord\\Utils::pluralize($str);\n\t}", "function select_string($n) {\n $string = $this->get_plural_forms();\n $string = str_replace('nplurals',\"\\$total\",$string);\n $string = str_replace(\"n\",$n,$string);\n $string = str_replace('plural',\"\\$plural\",$string);\n\n $total = 0;\n $plural = 0;\n\n eval(\"$string\");\n if ($plural>=$total) $plural = 0;\n return $plural;\n }", "public function plural( $value, $count = 2 ) {\n\t\treturn Pluralizer::plural( $value, $count );\n\t}", "function str_plural($value, $count = 2)\n {\n return Str::plural($value, $count);\n }", "public function singularize($word);", "public static function pluralStudly(string $value, int $count = 2): string\n {\n $parts = preg_split('/(.)(?=[A-Z])/u', $value, -1, PREG_SPLIT_DELIM_CAPTURE);\n\n $lastWord = array_pop($parts);\n\n return implode('', $parts) . self::plural($lastWord, $count);\n }", "function ngettext($single, $plural, $number) {\n if ($this->error > 0) {\n $result=-1;\n } else {\n // find out the appropriate form\n $select = $this->select_string($number);\n\n // this should contains all strings separated by NULLs\n $result = $this->find_string($single.chr(0).$plural,0,$this->total);\n }\n if ($result == -1) {\n if ($number != 1) return $plural;\n else return $single;\n } else {\n $result = $this->get_translation_number($result);\n\n // lets try to parse all the NUL staff\n //$result = \"proba0\".chr(0).\"proba1\".chr(0).\"proba2\";\n $list = explode (chr(0), $result);\n return $list[$select];\n }\n }", "function str_plural($value, $count = 2)\n\t{\n\t\treturn Illuminate\\Support\\Str::plural($value, $count);\n\t}", "public function translate_plural( $singular, $plural, $count, $context = null ) {\n\t\t$text = ( abs( $count ) == 1 ) ? $singular : $plural;\n\t\treturn $this->get_translation( $this->cache_key( array( $text, $count, $context ) ), $text, func_get_args() );\n\t}", "public function getModelPlural()\n {\n return strtolower(Text::plural($this->getModelSimpleName()));\n }", "public static function plural(string $value, int $count = 2): string\n {\n return Pluralizer::plural($value, $count);\n }", "public static function plural($value, $count = 2)\n\t{\n\t\treturn $count >= 2 ? $value.'s' : $value;\n\t}", "function singularize($noun){\n $lowercased_noun = strtolower($noun);\n\n foreach($_ENV['INFLECTION_EXCEPTIONS']['uncountable'] as $uncountable){\n if(substr($lowercased_noun,(-1*strlen($uncountable))) == $uncountable){\n return $noun;\n }\n }\n\n foreach($_ENV['INFLECTION_EXCEPTIONS']['irregular'] as $plural => $singular){\n if (preg_match('/('.$singular.')$/i', $noun, $arr)){\n return preg_replace('/('.$singular.')$/i', substr($arr[0],0,1).substr($plural,1), $noun);\n }\n }\n\n foreach($_ENV['INFLECTION_EXCEPTIONS']['singular'] as $rule => $replacement){\n if (preg_match($rule, $noun)){\n return preg_replace($rule, $replacement, $noun);\n }\n }\n\n return $noun;\n}", "function class_conjugaison_plural($text,$genre,$count)\n{\n return $text;\n}", "public static function pluralise(int $count, string $singularText): string\n {\n if ($count == 1) {\n return $singularText;\n }\n if (isset(self::$plural[$singularText])) {\n return self::$plural[$singularText];\n }\n if (mb_substr($singularText, -1) === 's') {\n return $singularText;\n }\n return $singularText . 's';\n }", "function yourls_n( $single, $plural, $number, $domain = 'default' ) {\n\t$translations = yourls_get_translations_for_domain( $domain );\n\t$translation = $translations->translate_plural( $single, $plural, $number );\n\treturn yourls_apply_filter( 'translate_n', $translation, $single, $plural, $number, $domain );\n}", "public function plural()\n\t{\n\t\treturn _('Documents');\n\t}", "public function getPluralName()\n {\n\n return str_plural(lcfirst(ucwords($this->getClass())));\n }", "public function getPluralName()\n {\n\n return str_plural(lcfirst(ucwords($this->getClass())));\n }", "function translateToWords($number) \n{\n // zero is a special case, it cause problems even with typecasting if we don't deal with it here\n $max_size = pow(10,18);\n if (!$number) return \"zero\";\n if (is_int($number) && $number < abs($max_size)) \n { \n switch ($number) \n {\n // set up some rules for converting digits to words\n case $number < 0:\n $prefix = \"negative\";\n $suffix = translateToWords(-1*$number);\n $string = $prefix . \" \" . $suffix;\n break;\n case 1:\n $string = \"one\";\n break;\n case 2:\n $string = \"two\";\n break;\n case 3:\n $string = \"three\";\n break;\n case 4: \n $string = \"four\";\n break;\n case 5:\n $string = \"five\";\n break;\n case 6:\n $string = \"six\";\n break;\n case 7:\n $string = \"seven\";\n break;\n case 8:\n $string = \"eight\";\n break;\n case 9:\n $string = \"nine\";\n break; \n case 10:\n $string = \"ten\";\n break; \n case 11:\n $string = \"eleven\";\n break; \n case 12:\n $string = \"twelve\";\n break; \n case 13:\n $string = \"thirteen\";\n break; \n // fourteen handled later\n case 15:\n $string = \"fifteen\";\n break; \n case $number < 20:\n $string = translateToWords($number%10);\n // eighteen only has one \"t\"\n if ($number == 18)\n {\n $suffix = \"een\";\n } else \n {\n $suffix = \"teen\";\n }\n $string .= $suffix;\n break; \n case 20:\n $string = \"twenty\";\n break; \n case 30:\n $string = \"thirty\";\n break; \n case 40:\n $string = \"forty\";\n break; \n case 50:\n $string = \"fifty\";\n break; \n case 60:\n $string = \"sixty\";\n break; \n case 70:\n $string = \"seventy\";\n break; \n case 80:\n $string = \"eighty\";\n break; \n case 90:\n $string = \"ninety\";\n break; \n case $number < 100:\n $prefix = translateToWords($number-$number%10);\n $suffix = translateToWords($number%10);\n $string = $prefix . \"-\" . $suffix;\n break;\n // handles all number 100 to 999\n case $number < pow(10,3): \n // floor return a float not an integer\n $prefix = translateToWords(intval(floor($number/pow(10,2)))) . \" hundred\";\n if ($number%pow(10,2)) $suffix = \" and \" . translateToWords($number%pow(10,2));\n $string = $prefix . $suffix;\n break;\n case $number < pow(10,6):\n // floor return a float not an integer\n $prefix = translateToWords(intval(floor($number/pow(10,3)))) . \" thousand\";\n if ($number%pow(10,3)) $suffix = translateToWords($number%pow(10,3));\n $string = $prefix . \" \" . $suffix;\n break;\n case $number < pow(10,9):\n // floor return a float not an integer\n $prefix = translateToWords(intval(floor($number/pow(10,6)))) . \" million\";\n if ($number%pow(10,6)) $suffix = translateToWords($number%pow(10,6));\n $string = $prefix . \" \" . $suffix;\n break; \n case $number < pow(10,12):\n // floor return a float not an integer\n $prefix = translateToWords(intval(floor($number/pow(10,9)))) . \" billion\";\n if ($number%pow(10,9)) $suffix = translateToWords($number%pow(10,9));\n $string = $prefix . \" \" . $suffix; \n break;\n case $number < pow(10,15):\n // floor return a float not an integer\n $prefix = translateToWords(intval(floor($number/pow(10,12)))) . \" trillion\";\n if ($number%pow(10,12)) $suffix = translateToWords($number%pow(10,12));\n $string = $prefix . \" \" . $suffix; \n break; \n // Be careful not to pass default formatted numbers in the quadrillions+ into this function\n // Default formatting is float and causes errors\n case $number < pow(10,18):\n // floor return a float not an integer\n $prefix = translateToWords(intval(floor($number/pow(10,15)))) . \" quadrillion\";\n if ($number%pow(10,15)) $suffix = translateToWords($number%pow(10,15));\n $string = $prefix . \" \" . $suffix; \n break; \n }\n } else\n {\n echo \"ERROR with - $number<br/> Number must be an integer between -\" . number_format($max_size, 0, \".\", \",\") . \" and \" . number_format($max_size, 0, \".\", \",\") . \" exclussive.\";\n }\n return $string; \n}", "public function translatePlural(\n $message_singular,\n $message_plural,\n $amount,\n $domain = null,\n $locale = null,\n array $params = null,\n $fallback_singular = null,\n $fallback_plural = null\n ) {\n return $this->translator->translatePlural(\n $message_singular,\n $message_plural,\n $amount,\n $domain,\n $locale,\n $params,\n $fallback_singular,\n $fallback_plural\n );\n }", "public function plural(string $value, int $count = 2): string\n {\n return $this->inflector->plural($value, $count);\n }", "public function plural()\n {\n return new Name(Pluralizer::plural($this->name));\n }", "function _t_p($string,$count){\n\t$r=CLang::translate($string,App::getLocale()->isPlural((int)$count)?'s':'p');\n\treturn $r!==false ? $r : $string;\n}", "public function testPluralizeMultiWordIrregular(): void\n {\n Inflector::rules('irregular', [\n 'pregunta_frecuente' => 'preguntas_frecuentes',\n 'categoria_pregunta_frecuente' => 'categorias_preguntas_frecuentes',\n ]);\n $this->assertSame('preguntas_frecuentes', Inflector::pluralize('pregunta_frecuente'));\n $this->assertSame(\n 'categorias_preguntas_frecuentes',\n Inflector::pluralize('categoria_pregunta_frecuente')\n );\n $this->assertSame(\n 'faq_categorias_preguntas_frecuentes',\n Inflector::pluralize('faq_categoria_pregunta_frecuente')\n );\n }", "public function vsprintfPlural($msgid1, $msgid2, $n, $args = null, $translateArgs = false);", "private function readPlural(): bool\n {\n return ($data = $this->readIdentifier('msgid_plural')) !== null && $this->translation->setPlural($data);\n }", "protected function _formatPluralToSingular($string) {\n\t\t\t$response = substr_replace($string, ($consonantPlural = (substr($string, -3) === 'ies')) ? 'y' : '', $consonantPlural ? -3 : -1);\n\t\t\treturn $response;\n\t\t}", "public function translatePlurals($textSingular, $textPlural, $number, $locale);", "public function select_plural_form($count);", "public function translatePlural(string $singular, string $plural, int $number, string $textDomain = null, string $locale = null)\n {\n $locale = $locale ?: $this->getLocale();\n if ($locale === 'C')\n return $number === 1 ? $singular : $plural;\n\n $textDomain = $textDomain ?: $this->getTextDomain();\n $translation = $this->getTranslatedMessage($singular, $locale, $textDomain);\n\n if (empty($translation))\n {\n // Log untranslated message\n self::$logger->debug(\n \"Untranslated message: \\\"{msgid}\\\"\", \n [\"msgid\" => $singular, \"msgid_plural\" => $plural, \"locale\" => $locale, \"domain\" => $textDomain]\n );\n\n if (null !== ($fallbackLocale = $this->getFallbackLocale()) && $locale !== $fallbackLocale)\n return $this->translatePlural($singular, $plural, $number, $textDomain, $fallbackLocale);\n\n return $number == 1 ? $singular : $plural;\n }\n elseif (is_string($translation))\n $translation = array($translation);\n\n $index = $this->cache->get($textDomain, $locale)\n ->getPluralRule()\n ->evaluate($number);\n\n if (!isset($translation[$index]))\n throw new \\OutOfBoundsException(sprintf('Provided index $index does not exist in plural array', $index));\n\n return $translation[$index];\n }", "protected function getPluralized($key)\n {\n return isset($this->plural[$key]) ? $this->plural[$key] : $key;\n }", "function n__(string $original, string $plural, int $value, ...$args): string\n {\n $text = Translator::getTranslator()->ngettext($original, $plural, $value);\n return Translator::getFormatter()->format($text, $args);\n }", "public static function singularize($word) {\n $original = $word;\n foreach(self::$singular_rules as $rule => $replacement) {\n $word = preg_replace($rule,$replacement,$word);\n if($original != $word) break;\n }\n return $word;\n }", "public function singularize($word)\n { \n static $rules = NULL;\n if ($rules == NULL)\n $rules = $this->getSingularRules();\n return $this->transform($word, $rules);\n }", "function pluralize($nb=1, $string=null, $values=array()) {\n // remplace {#} par le chiffre\n $string = str_replace(\"{#}\", $nb, $string);\n // cherche toutes les occurences de {...}\n preg_match_all(\"/\\{(.*?)\\}/\", $string, $matches);\n foreach($matches[1] as $k=>$v) {\n // on coupe l'occurence à |\n $part = explode(\"|\", $v);\n // si aucun\n if ($nb == 0) {\n $mod = (count($part) == 1) ? \"\" : $part[0];\n // si singulier\n } else if ($nb == 1) {\n $mod = (count($part) == 1) ? \"\" : $part[1];\n // sinon pluriel\n } else {\n $mod = (count($part) == 1) ? $part[0] : ((count($part) == 2) ? $part[1] : $part[2]);\n }\n // je remplace les occurences trouvées par le bon résultat.\n $string = str_replace($matches[0][$k], $mod , $string);\n }\n // retourne le résultat en y incluant éventuellement les valeurs passées\n return vsprintf($string, $values);\n }", "public static function indefinite_article($word)\n\t{\n\t\t// Lowercase version of the word\n\t\t$word_lower = strtolower($word);\n\n\t\t// An 'an' word (specific start of words that should be preceeded by 'an')\n\t\t$an_words = array('euler', 'heir', 'honest', 'hono');\n\t\tforeach ($an_words as $an_word)\n\t\t{\n\t\t\tif (substr($word_lower, 0, strlen($an_word)) == $an_word)\n\t\t\t\treturn \"an\";\n\t\t}\n\t\tif (substr($word_lower, 0, 4) == \"hour\" and substr($word_lower, 0, 5) != \"houri\")\n\t\t\treturn \"an\";\n\n\t\t// An 'an' letter (single letter word which should be preceeded by 'an')\n\t\t$an_letters = array('a', 'e', 'f', 'h', 'i', 'l', 'm', 'n', 'o', 'r', 's', 'x');\n\t\tif (strlen($word) == 1)\n\t\t{\n\t\t\tif (in_array($word_lower, $an_letters))\n\t\t\t\treturn \"an\";\n\t\t\telse\n\t\t\t\treturn \"a\";\n\t\t}\n\n\t\t// Capital words which should likely by preceeded by 'an'\n\t\tif (preg_match('/(?!FJO|[HLMNS]Y.|RY[EO]|SQU|(F[LR]?|[HL]|MN?|N|RH?|S[CHKLMNPTVW]?|X(YL)?)[AEIOU])[FHLMNRSX][A-Z]/', $word))\n\t\t\treturn \"an\";\n\n\t\t// Special cases where a word that begins with a vowel should be preceeded by 'a'\n\t\t$regex_array = array('^e[uw]', '^onc?e\\b', '^uni([^nmd]|mo)', '^u[bcfhjkqrst][aeiou]');\n\t\tforeach ($regex_array as $regex)\n\t\t{\n\t\t\tif (preg_match('/' . $regex . '/', $word_lower))\n\t\t\t\treturn \"a\";\n\t\t}\n\n\t\t// Special capital words\n\t\tif (preg_match('/^U[NK][AIEO]/', $word))\n\t\t\treturn \"a\";\n\t\t// Not sure what this does\n\t\telse if ($word == strtoupper($word))\n\t\t{\n\t\t\t$array = array('a', 'e', 'd', 'h', 'i', 'l', 'm', 'n', 'o', 'r', 's', 'x');\n\t\t\tif (in_array($word_lower[0], $array))\n\t\t\t\treturn \"an\";\n\t\t\telse\n\t\t\t\treturn \"a\";\n\t\t}\n\n\t\t// Basic method of words that begin with a vowel being preceeded by 'an'\n\t\t$vowels = array('a', 'e', 'i', 'o', 'u');\n\t\tif (in_array($word_lower[0], $vowels))\n\t\t\treturn \"an\";\n\n\t\t// Instances where y follwed by specific letters is preceeded by 'an'\n\t\tif (preg_match('/^y(b[lor]|cl[ea]|fere|gg|p[ios]|rou|tt)/', $word_lower))\n\t\t\treturn \"an\";\n\n\t\t// Default to 'a'\n\t\treturn \"a\";\n\t}", "protected abstract function getPluralEntityName();", "public function getPluralNameAttribute()\n {\n return Str::plural($this->name);\n }", "private static function syllables_count_word( $word ) {\n\t\t$word = trim( $word );\n\t\t$unacceptable = (boolean) self::preg_match_all( '/[^a-zA-Z]/', $word );\n\t\tif ( $unacceptable ) {\n\t\t\treturn 0;\n\t\t}\n\n\t\t$length = strlen( $word );\n\t\tif ( $length < 3 ) {\n\t\t\t// e.g. we, to, a\n\t\t\treturn 1;\n\t\t}\n\n\t\t// Count the number of vowels (A, E, I, O, U) in the word.\n\t\t// Add 1 every time the letter 'y' makes the sound of a vowel\n\t\t$syllables = self::preg_match_all( '/[aeiouy]/', $word );\n\n\t\t// Subtract 1 for each silent vowel (like the silent 'e' at the end of a word).\n\t\t$ends_with_e = self::ends_with( $word, 'e' );\n\t\t$syllables -= $ends_with_e ? 1 : 0;\n\n\t\tif ( $ends_with_e && 3 === $length ) {\n\t\t\t// e.g. the, eve, axe\n\t\t\treturn 1;\n\t\t}\n\n\t\t// Subtract 1 for each diphthong\n\t\t$diphthongs = self::preg_match_all( '/[aeiouy]{2}/', $word );\n\t\t$syllables -= $diphthongs;\n\n\t\t// Subtract 1 for each triphthong\n\t\t$triphthongs = self::preg_match_all( '/[aeiouy]{3}/', $word );\n\t\t$syllables -= $triphthongs;\n\n\t\t// Does the word end with \"le\" or \"les?\" Add 1 only if the letter before the \"le\" is a consonant.\n\t\t$ends_with_le = (boolean) self::preg_match_all( '/[^aeiouy]le|les$/', $word );\n\t\t$syllables += $ends_with_le ? 1 : 0;\n\n\t\treturn $syllables <= 0\n\t\t\t? 0\n\t\t\t: $syllables;\n\t}", "public static function pluralCount($value, $count = 2)\n {\n return ($count != 0 ? $count : 'no').' '.self::plural($value, $count);\n }", "function _ngettext($singular, $plural, $number)\r\n\t{\r\n\t\t$l10n = _get_reader();\r\n\t\treturn _encode($l10n->ngettext($singular, $plural, $number));\r\n\t}", "public function convert()\n {\n if (!empty($this->femInflections)) {\n $return = [];\n foreach ($this->femInflections as $femInflection) {\n if (isset($femInflection->mascInflection)) {\n $word = $this->string;\n $plural = $femInflection->getPlural();\n $suffix = $femInflection->getSuffix();\n if ($plural->length() > 0) {\n $suffix = $suffix->removeRight((string) $plural)->ensureRight($this->separator.$plural);\n if ($femInflection->mascInflection->hasTag('pl')) {\n $word = $word->removeRight((string) $plural);\n }\n }\n if ($femInflection->mascInflection->hasTag('pl')) {\n switch ($suffix) {\n case 'les':\n $suffix = S::create('ales');\n break;\n case 'se.s':\n $suffix = S::create('euse.s');\n break;\n }\n }\n $return[] = $word->ensureRight($this->separator.$suffix);\n }\n }\n\n return array_unique($return);\n } else {\n return [$this->string];\n }\n }", "public static function plural($n) {\n $args = func_get_args();\n return $args[($n == 1) ? 1 : (($n >= 2 && $n <= 4) ? 2 : 3)];\n }", "public static function singular($str)\n {\n // Shortcut references (readability)\n $sp = &self::$singular;\n $pp = &self::$plural;\n $sm = &$sp['merged'];\n $sd = &self::$data['singular'];\n\n // Check the internal cache (performance)\n if (isset($sd[$str])) {\n\n // Return matches from the cache\n return $sd[$str];\n }\n\n // Check against irregular singulars\n if (preg_match('/(.*)\\\\b('.$sp['cacheIrregular'].')$/i', $str, $regs)) {\n\n // Return match while also setting the internal cache (faster next time this word is referenced)\n return $sd[$str] = $regs[1].substr($str, 0, 1).substr($sm['irregular'][strtolower($regs[2])], 1);\n }\n\n // Check against the uninflected singulars\n if (preg_match('/^('.$sp['cacheUninflected'].')$/i', $str, $regs)) {\n\n // Return and cache\n return $sd[$str] = $str;\n }\n\n // Normal word (not irregular or uninflected)\n foreach ($sp['rules'] as $rule => $replacement) {\n\n // Find a matching rule\n if (preg_match($rule, $str)) {\n\n // Cache the word for next time and return the inflected\n return preg_replace($rule, $replacement, $str);\n }\n }\n\n return $sd[$str] = $str;\n }" ]
[ "0.81516623", "0.7678156", "0.7656767", "0.7619133", "0.7599388", "0.7537209", "0.7511765", "0.7511765", "0.73242635", "0.73075306", "0.7229936", "0.72121793", "0.71945494", "0.71740717", "0.7131459", "0.7080026", "0.7049787", "0.7012474", "0.67510784", "0.6722927", "0.6674826", "0.661905", "0.6602496", "0.659229", "0.6575727", "0.65540826", "0.65018266", "0.64279264", "0.6371132", "0.6367722", "0.62987", "0.62966716", "0.6271399", "0.6244698", "0.6240308", "0.6239652", "0.62371385", "0.6234919", "0.61906135", "0.6185547", "0.6183906", "0.61747646", "0.60942763", "0.6091003", "0.6062065", "0.6025481", "0.6023785", "0.60108525", "0.60108525", "0.600957", "0.5984064", "0.59735507", "0.5953682", "0.5930931", "0.5918463", "0.5875477", "0.5847338", "0.5837148", "0.5774134", "0.5764735", "0.57482785", "0.5719997", "0.5703419", "0.57001656", "0.56784225", "0.5670289", "0.5635966", "0.5626845", "0.5595657", "0.5590817", "0.55618745", "0.55432487", "0.55195814", "0.55195814", "0.55124587", "0.55091286", "0.55058813", "0.55039316", "0.550126", "0.5494595", "0.5488088", "0.5451454", "0.5383957", "0.53717405", "0.536858", "0.53675425", "0.53632504", "0.5334169", "0.53144366", "0.5312753", "0.52881247", "0.52877474", "0.52869576", "0.52857155", "0.52668023", "0.5258598", "0.5236957", "0.52322984", "0.5184632", "0.51839966" ]
0.79299337
1
Converts an error number into an easiertoread error code.
public static function convert_number_to_code( $number ) { return preg_replace( '/^([0-9]+)([0-9]{3})/', '$1.$2', $number ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function error_number($query)\n\t{\n\t\tif(!is_object($query) || !method_exists($query, \"errorCode\"))\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\t$errorcode = $query->errorCode();\n\n\t\treturn $errorcode;\n\t}", "abstract protected function _getErrorNumber();", "public function errorcode();", "private function _errorNumberString($intval)\n\t{\n\t\t$errorlevels = array(\n\t\t\tE_ALL => 'E_ALL',\n\t\t\tE_RECOVERABLE_ERROR => 'E_RECOVERABLE_ERROR',\n\t\t\tE_STRICT => 'E_STRICT',\n\t\t\tE_USER_NOTICE => 'E_USER_NOTICE',\n\t\t\tE_USER_WARNING => 'E_USER_WARNING',\n\t\t\tE_USER_ERROR => 'E_USER_ERROR',\n\t\t\tE_COMPILE_WARNING => 'E_COMPILE_WARNING',\n\t\t\tE_COMPILE_ERROR => 'E_COMPILE_ERROR',\n\t\t\tE_CORE_WARNING => 'E_CORE_WARNING',\n\t\t\tE_CORE_ERROR => 'E_CORE_ERROR',\n\t\t\tE_NOTICE => 'E_NOTICE',\n\t\t\tE_PARSE => 'E_PARSE',\n\t\t\tE_WARNING => 'E_WARNING',\n\t\t\tE_ERROR => 'E_ERROR'\n\t\t);\n\n\t\tif (defined('E_DEPRECATED'))\n\t\t{\n\t\t\t$errorlevels[E_DEPRECATED] = 'E_DEPRECATED';\n\t\t\t$errorlevels[E_USER_DEPRECATED] = 'E_USER_DEPRECATED';\n\t\t}\n\n\t\treturn $errorlevels[$intval];\n\t}", "public function errorNumber()\n\t{\n\t\treturn $this->_source->errorNumber();\n\t}", "public function getCode(): int\n\t{\n\t\treturn $this->err->getCode();\n\t}", "function _uc_parsian_error_translate($code) {\n switch ($code) {\n case 20:\n case 22:\n return t('@code - Invalid PIN or IP.', array(\n '@code' => $code,\n ));\n\n case 30:\n return t('@code - The operation has been done previously.', array(\n '@code' => $code,\n ));\n\n case 34:\n return t('@code - Invalid transaction number.', array(\n '@code' => $code,\n ));\n\n default:\n return t('@code - Unknown status code. Refer to your technical documentation or contact Parsian bank support.', array(\n '@code' => $code,\n ));\n }\n}", "protected function _getErrorNumber()\n {\n return '';\n }", "public function getErrorCode(): int;", "private function convertToRoman($number)\n {\n $error_code = $this->checkParamaters($number, 'r');\n\n if ($error_code > 0) {\n return self::$error_codes[$error_code];\n }\n\n $roman_number = '';\n\n while ($number >= 1000) {\n $roman_number .= 'M';\n $number -= 1000;\n }\n\n while ($number >= 900) {\n $roman_number .= 'CM';\n $number -= 900;\n }\n\n while ($number >= 500) {\n $roman_number .= 'D';\n $number -= 500;\n }\n\n while ($number >= 400) {\n $roman_number .= 'CD';\n $number -= 400;\n }\n\n while ($number >= 100) {\n $roman_number .= 'C';\n $number -= 100;\n }\n\n while ($number >= 90) {\n $roman_number .= 'XC';\n $number -= 90;\n }\n\n while ($number >= 50) {\n $roman_number .= 'L';\n $number -= 50;\n }\n\n while ($number >= 40) {\n $roman_number .= 'XL';\n $number -= 40;\n }\n\n while ($number >= 10) {\n $roman_number .= 'X';\n $number -= 10;\n }\n\n while ($number >= 9) {\n $roman_number .= 'IX';\n $number -= 9;\n }\n\n while ($number >= 5) {\n $roman_number .= 'V';\n $number -= 5;\n }\n\n while ($number >= 4) {\n $roman_number .= 'IV';\n $number -= 4;\n }\n\n while ($number >= 1) {\n $roman_number .= 'I';\n $number -= 1;\n }\n\n return $roman_number;\n }", "public function getErrorCode()\n {\n return $this->getInput('error_code');\n }", "public function errorString($code) {\n \n if(!is_numeric($code)) {\n return false;\n }\n\n $code = (int)$code;\n \n switch($code) {\n case 0: \n return \"Operation was successful\";\n case 247: \n return \"The userid provided is absent, or incorrect\";\n case 250: \n return \"The provided userid and/or Oauth credentials do not match\";\n case 286: \n return \"No such subscription was found\";\n case 293: \n return \"The callback URL is either absent or incorrect\";\n case 294: \n return \"No such subscription could be deleted\";\n case 304: \n return \"The comment is either absent or incorrect\";\n case 305: \n return \"Too many notifications are already set\";\n case 342: \n return \"The signature (using Oauth) is invalid\";\n case 343: \n return \"Wrong Notification Callback Url don't exist\";\n case 601: \n return \"Too Many Request\";\n case 2554: \n return \"Wrong action or wrong webservice\";\n case 2555: \n return \"An unknown error occurred\";\n case 2556: \n return \"Service is not defined\";\n }\n \n return false;\n }", "public function translateErrorCode($a_code)\n\t{\n\t\tglobal $lng;\n\t\t\n\t\t// $lng->txt(\"msg_wrong_format\");\n\t\t\n\t\tswitch($a_code)\n\t\t{\n\t\t\tcase self::ADT_VALIDATION_ERROR_NULL_NOT_ALLOWED:\t\t\n\t\t\t\treturn $lng->txt(\"msg_input_is_required\");\n\t\t\t\t\n\t\t\tcase self::ADT_VALIDATION_ERROR_MAX_LENGTH:\t\t\n\t\t\t\treturn $lng->txt(\"adt_error_max_length\");\n\t\t\t\t\n\t\t\tcase self::ADT_VALIDATION_ERROR_MAX_SIZE:\t\t\n\t\t\t\treturn $lng->txt(\"adt_error_max_size\");\n\t\t\t\n\t\t\tcase self::ADT_VALIDATION_ERROR_MIN:\t\t\n\t\t\t\treturn $lng->txt(\"form_msg_value_too_low\");\n\t\t\t\t\n\t\t\tcase self::ADT_VALIDATION_ERROR_MAX:\t\t\n\t\t\t\treturn $lng->txt(\"form_msg_value_too_high\");\n\t\t\t\t\n\t\t\t// :TODO: currently not used - see ilDateTimeInputGUI\n\t\t\tcase self::ADT_VALIDATION_DATE:\t\t\n\t\t\t\treturn $lng->txt(\"exc_date_not_valid\");\n\t\t\t\t\n\t\t\tdefault:\n\t\t\t\tthrow new Exception(\"ADT unknown error code\");\n\t\t}\n\t}", "private function convertToOrdinal($number)\n {\n $error_code = $this->checkParamaters($number, 'o');\n\n if ($error_code > 0) {\n return self::$error_codes[$error_code];\n }\n\n $small_number = (int) substr($number, strlen($number) - 1);\n $big_number = (int) ($number - $small_number);\n\n $string = '';\n\n // Numbers between 20 and 99.\n if ($big_number > 0 && $number > 19 && $number < 100) {\n return $this->convertToWord($big_number).' '.$this->convertToOrdinal($small_number);\n }\n\n // Numbers over 100.\n if ($number >= 100) {\n $string = $this->convertToWord(str_pad(substr($number, 0, 1), strlen($number), '0')).'th';\n\n if ($small_number > 0) {\n $string .= ' and '.$this->convertToWord($small_number);\n }\n\n return $string;\n }\n\n return $this->small_number_string[$number];\n }", "public function get_error_code()\n {\n }", "private function convertToNumberOrdinal($number)\n {\n $error_code = $this->checkParamaters($number, 'n');\n\n if ($error_code > 0) {\n return self::$error_codes[$error_code];\n }\n\n if ($number === 0) {\n return 0;\n }\n\n if (!in_array(($number % 100), [11, 12, 13])) {\n switch ($number % 10) {\n case 1:\n return $number.'st';\n case 2:\n return $number.'nd';\n case 3:\n return $number.'rd';\n }\n }\n\n return $number.'th';\n }", "function error($code) {\n\tswitch ($code) {\n\t\tcase 'EntityExists':\n\t\t\t$str = 'Cannot complete that action because the entity already exists';\n\t\t\tbreak;\n\t\tcase 'EntityDoesNotExist':\n\t\t\t$str = 'Cannot complete that action because that entity does not exist';\n\t\t\tbreak;\n\t\tcase 'InvalidPassword':\n\t\t\t$str = 'The password supplied is not valid';\n\t\t\tbreak;\n\t\tdefault:\n\t\t\t$str = $code;\n\t}\n\treturn $str;\n}", "function validate(int $number):string{\n\treturn \"You dont have any error\";\n}", "public function preFormatNumber($number){\n /*\n * check if the number is 07...\n * check if the number is 254...\n * check if the number is +254...\n * check if the number is 7...\n */\n if(preg_match(\"/^(\\+2547)\\d{8}$/\",$number)){\n return ltrim($number,\"+\");\n }elseif (preg_match(\"/^(2547)\\d{8}$/\",$number)){\n return $number;\n }elseif (preg_match(\"/^7\\d{8}$/\",$number)){\n return \"254\" . $number;\n }elseif (preg_match(\"/^07\\d{8}$/\",$number)){\n return \"254\" . ltrim($number,\"0\");\n }\n\n throw new MpesaException(\"Invalid phone number\");\n\n }", "protected function translateResultCode($int_code)\n {\n $arr_codes = [\n 0 => 'OK',\n 1 => 'UNKNOWN_QUEUE',\n 2 => 'TRANSIENT_ERROR',\n 3 => 'INTERNAL_ERROR',\n 4 => 'TASK_TOO_LARGE',\n 5 => 'INVALID_TASK_NAME',\n 6 => 'INVALID_QUEUE_NAME',\n 7 => 'INVALID_URL',\n 8 => 'INVALID_QUEUE_RATE',\n 9 => 'PERMISSION_DENIED',\n 10 => 'TASK_ALREADY_EXISTS',\n 11 => 'TOMBSTONED_TASK',\n 12 => 'INVALID_ETA',\n 13 => 'INVALID_REQUEST',\n 14 => 'UNKNOWN_TASK',\n 15 => 'TOMBSTONED_QUEUE',\n 16 => 'DUPLICATE_TASK_NAME',\n 17 => 'SKIPPED',\n 18 => 'TOO_MANY_TASKS',\n 19 => 'INVALID_PAYLOAD',\n 20 => 'INVALID_RETRY_PARAMETERS',\n 21 => 'INVALID_QUEUE_MODE',\n 22 => 'ACL_LOOKUP_ERROR',\n 23 => 'TRANSACTIONAL_REQUEST_TOO_LARGE',\n 24 => 'INCORRECT_CREATOR_NAME',\n 25 => 'TASK_LEASE_EXPIRED',\n 26 => 'QUEUE_PAUSED',\n 27 => 'INVALID_TAG',\n 1000 => 'DATASTORE_ERROR'\n ];\n return (isset($arr_codes[$int_code]) ? $arr_codes[$int_code] : 'UNKNOWN');\n }", "public static function map_to_code(Throwable $e): int {\n\t\ttry {\n\t\t\tthrow $e;\n\t\t} catch (APIException $e) {\n\t\t\treturn $e->get_api_err();\n\t\t} catch (ArgException $e) {\n\t\t\treturn API_E_INVALID_REQUEST;\t\t\t\n\t\t} catch (IntException $e) {\n\t\t\treturn API_E_INTERNAL;\n\t\t} catch (LimitException $e) {\n\t\t\treturn API_E_LIMITED;\n\t\t} catch (FileTypeException $e) {\n\t\t\treturn API_E_INVALID_FILETYPE;\n\t\t} catch (ConfigException $e) {\n\t\t\treturn API_E_INTERNAL;\n\t\t} catch (Exception $e) {\n\t\t\treturn API_E_INTERNAL;\n\t\t}\n\t}", "private function getApiErrorCode($errorCode)\n {\n if (is_int($errorCode)) {\n $apiError = ExceptionCode::errorCodeString($errorCode);\n return $apiError ?: $errorCode;\n }\n return $errorCode;\n }", "public function getErrorCode(): int\n {\n return $this->error;\n }", "public function getErrorCode();", "public static function statusToCode($status)\n {\n switch($status)\n {\n case self::STATUS_SUCCESS:\n case self::STATUS_WARNING:\n return 200;\n break;\n case self::STATUS_ERROR:\n return 500;\n break;\n default:\n return 0;\n }\n }", "public function errorType($code)\n {\n switch($code)\n {\n case E_ERROR: // 1 //\n return 'E_ERROR';\n case E_WARNING: // 2 //\n return 'E_WARNING';\n case E_PARSE: // 4 //\n return 'E_PARSE';\n case E_NOTICE: // 8 //\n return 'E_NOTICE';\n case E_CORE_ERROR: // 16 //\n return 'E_CORE_ERROR';\n case E_CORE_WARNING: // 32 //\n return 'E_CORE_WARNING';\n case E_COMPILE_ERROR: // 64 //\n return 'E_COMPILE_ERROR';\n case E_COMPILE_WARNING: // 128 //\n return 'E_COMPILE_WARNING';\n case E_USER_ERROR: // 256 //\n return 'E_USER_ERROR';\n case E_USER_WARNING: // 512 //\n return 'E_USER_WARNING';\n case E_USER_NOTICE: // 1024 //\n return 'E_USER_NOTICE';\n case E_STRICT: // 2048 //\n return 'E_STRICT';\n case E_RECOVERABLE_ERROR: // 4096 //\n return 'E_RECOVERABLE_ERROR';\n case E_DEPRECATED: // 8192 //\n return 'E_DEPRECATED';\n case E_USER_DEPRECATED: // 16384 //\n return 'E_USER_DEPRECATED';\n }\n return \"\";\n }", "public function get_code()\n {\n $util_class_name = lib::get_class_name( 'util' );\n return $util_class_name::convert_number_to_code( $this->get_number() );\n }", "public static function getErrorMessage(int $code): string\n {\n return sprintf(\n '%s - Error Code = [%d]'\n , self::$errors[$code]\n , $code\n );\n }", "function defineErrorCode(int $errorCode) : string {\n $errors = [\n 0 => 'There is no error, the file uploaded with success',\n 1 => 'The uploaded file exceeds the upload_max_filesize directive in php.ini',\n 2 => 'The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form',\n 3 => 'The uploaded file was only partially uploaded',\n 4 => 'No file was uploaded',\n 6 => 'Missing a temporary folder',\n 7 => 'Failed to write file to disk.',\n 8 => 'A PHP extension stopped the file upload.',\n ];\n\n return $errors[$errorCode];\n}", "private function getStatusCode(Throwable $error)\n {\n if ($error instanceof Exception\n && ($error->getCode() >= 400 && $error->getCode() < 600)\n ) {\n return $error->getCode();\n }\n\n return 500;\n }", "public function getErrorMessageByCode($code): string\n {\n switch ($code) {\n case 400:\n {\n return 'Requisição Mal Formada';\n }\n case 401:\n {\n return 'Usuário não autorizado';\n }\n case 403:\n {\n return 'Acesso não autorizado';\n }\n case 404:\n {\n return 'Recurso não Encontrado';\n }\n case 405:\n {\n return 'Operação não suportada';\n }\n case 408:\n {\n return 'Tempo esgotado para a requisição';\n }\n case 409:\n {\n return 'Recurso em conflito';\n }\n case 413:\n {\n return 'Requisição excede o tamanho máximo permitido';\n }\n case 415:\n {\n return 'Content-type inválido';\n }\n case 422:\n {\n return 'Não foi possível processar as instruções contidas na requisição';\n }\n case 429:\n {\n return 'Requisição excede a quantidade máxima de chamadas permitidas à API.';\n }\n case 500:\n {\n return 'Erro na API';\n }\n }\n }", "public function getErrorCode(): int\n {\n return $this->errorCode;\n }", "function fetchErrorCode($error)\n{\n if (method_exists($error, 'getStatusCode')) {\n return $error->getStatusCode();\n }\n\n if (method_exists($error, 'getCode')) {\n return $error->getCode();\n }\n\n return 0;\n}", "public function getCode() {\n\t\tswitch($this->e->getCode()) {\n\t\t\tcase \"42S02\":\n\t\t\t\treturn DB_ERROR_NOSUCHDB;\n\t\t\tbreak;\n\t\t\tcase \"42S01\":\n\t\t\t\treturn DB_ERROR_ALREADY_EXISTS;\n\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tthrow new Exception(sprintf(_(\"Unknown Error Code %s, Message %s\"),$this->e->getCode(),$this->e->getMessage()));\n\t\t\tbreak;\n\t\t}\n\t}", "public static function type( $code ) {\n\t\t// -- Get the proper message based on HTTP status code\n\t\tswitch( $code ) {\n\t\t\tcase Error::$not_found: \n\t\t\t\treturn Error::missing(); \n\t\t\tbreak;\n\n\t\t\tcase Error::$internal: \n\t\t\t\treturn Error::internal(); \n\t\t\tbreak;\n\t\t}\n\t}", "public function getErrorCode() {\n\t\treturn $this->error_code;\n\t}", "public function getErrorCode() {\n\t\treturn $this->error_code;\n\t}", "public function convert($number)\n {\n $number = str_replace('.', '', $number);\n if ( ! is_numeric($number)) throw new Exception(\"Please input number.\");\n $base = array('nol', 'satu', 'dua', 'tiga', 'empat', 'lima', 'enam', 'tujuh', 'delapan', 'sembilan');\n $numeric = array('1000000000000000', '1000000000000', '1000000000000', 1000000000, 1000000, 1000, 100, 10, 1);\n $unit = array('kuadriliun', 'triliun', 'biliun', 'milyar', 'juta', 'ribu', 'ratus', 'puluh', '');\n $str = null;\n $i = 0;\n if ($number == 0) {\n $str = 'nol';\n } else {\n while ($number != 0) {\n $count = (int)($number / $numeric[$i]);\n if ($count >= 10) {\n $str .= static::convert($count) . ' ' . $unit[$i] . ' ';\n } elseif ($count > 0 && $count < 10) {\n $str .= $base[$count] . ' ' . $unit[$i] . ' ';\n }\n $number -= $numeric[$i] * $count;\n $i++;\n }\n $str = preg_replace('/satu puluh (\\w+)/i', '\\1 belas', $str);\n $str = preg_replace('/satu (ribu|ratus|puluh|belas)/', 'se\\1', $str);\n $str = preg_replace('/\\s{2,}/', ' ', trim($str));\n }\n return $str;\n }", "public function getCodeConstant(): string\n\t{\n\t\treturn ExceptionUtil::getExceptionCode($this->err);\n\t}", "private function find_number_color($number)\n\t{\n\t\tif ($number <= 0)\n\t\t{\n\t\t\treturn self::COLOR_GREEN;\n\t\t}\n\n\t\telse if ( (($number >= 1) && ($number <= 10))\n\t\t\t|| (($number >= 19) && ($number <= 28))\n\t\t)\n\t\t{\n\t\t\treturn (($number % 2) == 0)? self::COLOR_BLACK : self::COLOR_RED;\n\t\t}\n\n\t\telse if ( (($number >= 11) && ($number <= 18))\n\t\t\t|| (($number >= 29) && ($number <= 36))\n\t\t)\n\t\t{\n\t\t\treturn (($number % 2) == 0)? self::COLOR_RED : self::COLOR_BLACK;\n\t\t}\n\t}", "function MakePhoneNumberInt($thenumber)\r\n{\r\n\t$dff = substr($thenumber, 0, 1);\r\n\t$dff2 = substr($thenumber, 0, 3);\r\n\tif($dff==\"+\")\r\n\t{\r\n\t\treturn $thenumber;\r\n\t}\r\n\telse if($dff == \"0\")\r\n\t{\r\n\t\treturn \"234\".substr($thenumber, 1);\r\n\t}\r\n\telse if($dff2 == \"234\")\r\n\t{\r\n\t\treturn $thenumber;\r\n\t}\r\n}", "public function getErrorCode()\n {\n return $this->singleValue('//i:errorCode');\n }", "public function errorCode(): string\n {\n $error = $this->errorInfo();\n\n return $error[0];\n }", "protected function message(int $code): string\n {\n switch ($code) {\n case 0:\n return 'No error';\n case 1:\n return 'Multi-disk zip archives not supported';\n case 2:\n return 'Renaming temporary file failed';\n case 3:\n return 'Closing zip archive failed';\n case 4:\n return 'Seek error';\n case 5:\n return 'Read error';\n case 6:\n return 'Write error';\n case 7:\n return 'CRC error';\n case 8:\n return 'Containing zip archive was closed';\n case 9:\n return 'No such file';\n case 10:\n return 'File already exists';\n case 11:\n return 'Can\\'t open file';\n case 12:\n return 'Failure to create temporary file';\n case 13:\n return 'Zlib error';\n case 14:\n return 'Malloc failure';\n case 15:\n return 'Entry has been changed';\n case 16:\n return 'Compression method not supported';\n case 17:\n return 'Premature EOF';\n case 18:\n return 'Invalid argument';\n case 19:\n return 'Not a zip archive';\n case 20:\n return 'Internal error';\n case 21:\n return 'Zip archive inconsistent';\n case 22:\n return 'Can\\'t remove file';\n case 23:\n return 'Entry has been deleted';\n default:\n return 'An unknown error has occurred(' . intval($code) . ')';\n }\n }", "public function get_error($error_code) {\n\t\treturn $this->error_types[$error_code];\n\t}", "public static function errorHandler($number, $message, $file, $line)\n {\n $msg = \"$message in $file on line $line\";\n\n if (($number !== E_NOTICE) && ($number < 2048)) {\n self::errorMessage($msg);\n self::customErrorMsg();\n }\n\n return 0;\n }", "function get_error( $errorCode )\n {\n switch ( $errorCode ) {\n case 'ERRORSAVE':\n $error = 'There was a problem adding or updating the record(s)';\n break;\n case 'ERRORDELETE':\n $error = 'There was a problem deleting the record(s).';\n break;\n case 'ERRORPAGEEXISTS':\n $error = 'The page already exists.';\n break;\n case 'ERRORPAGENOTFOUND':\n $error = 'The selected page cannot be found.';\n break;\n default:\n $error = 'An error has occurred.';\n\n }\n\n return $error;\n }", "public function get_err_code( $key )\n\t{\n\t\tif( isset($this->err_code[$key]) )\n\t\t\treturn $this->err_code[$key];\n\t\telse return null;\n\t}", "function http_translate_code( $code ) {\n\t\t// Check the given parameters\n\t\tif( ! is_int( $code ) ) {\n\t\t\tthrow new \\InvalidArgumentException( 'Status is expected to be an integer.' );\n\t\t}\n\t\t// Return the string matching the given code.\n\t\tswitch( $code ) {\n\t\t\tcase 100: return 'Continue'; break;\n\t\t\tcase 101: return 'Switching Protocols'; break;\n\t\t\tcase 200: return 'OK'; break;\n\t\t\tcase 201: return 'Created'; break;\n\t\t\tcase 202: return 'Accepted'; break;\n\t\t\tcase 203: return 'Non-Authoritative Information'; break;\n\t\t\tcase 204: return 'No Content'; break;\n\t\t\tcase 205: return 'Reset Content'; break;\n\t\t\tcase 206: return 'Partial Content'; break;\n\t\t\tcase 300: return 'Multiple Choices'; break;\n\t\t\tcase 301: return 'Moved Permanently'; break;\n\t\t\tcase 302: return 'Moved Temporarily'; break;\n\t\t\tcase 303: return 'See Other'; break;\n\t\t\tcase 304: return 'Not Modified'; break;\n\t\t\tcase 305: return 'Use Proxy'; break;\n\t\t\tcase 400: return 'Bad Request'; break;\n\t\t\tcase 401: return 'Unauthorized'; break;\n\t\t\tcase 402: return 'Payment Required'; break;\n\t\t\tcase 403: return 'Forbidden'; break;\n\t\t\tcase 404: return 'Not Found'; break;\n\t\t\tcase 405: return 'Method Not Allowed'; break;\n\t\t\tcase 406: return 'Not Acceptable'; break;\n\t\t\tcase 407: return 'Proxy Authentication Required'; break;\n\t\t\tcase 408: return 'Request Time-out'; break;\n\t\t\tcase 409: return 'Conflict'; break;\n\t\t\tcase 410: return 'Gone'; break;\n\t\t\tcase 411: return 'Length Required'; break;\n\t\t\tcase 412: return 'Precondition Failed'; break;\n\t\t\tcase 413: return 'Request Entity Too Large'; break;\n\t\t\tcase 414: return 'Request-URI Too Large'; break;\n\t\t\tcase 415: return 'Unsupported Media Type'; break;\n\t\t\tcase 500: return 'Internal Server Error'; break;\n\t\t\tcase 501: return 'Not Implemented'; break;\n\t\t\tcase 502: return 'Bad Gateway'; break;\n\t\t\tcase 503: return 'Service Unavailable'; break;\n\t\t\tcase 504: return 'Gateway Time-out'; break;\n\t\t\tcase 505: return 'HTTP Version not supported'; break;\n\t\t}\n\t\t// Default is null\n\t\treturn null;\n\t}", "function errorTester(){\n echo convertFromRomanToModern('2344');\n\n // Testing with alphabets that are not roman numerals\n echo convertFromRomanToModern('LLP');\n\n // Testing with different Data Types other than Strings\n echo convertFromRomanToModern(True);\n echo convertFromRomanToModern(123);\n }", "public function getErrNo() {\n return $this->get(self::ERR_NO);\n }", "public function getErrorCode()\n {\n return $this->code;\n }", "public final function last_error_code()\n {\n return isset($this->error) ? $this->error['code'] : 0;\n }", "private function codeToChar($code) {\n if ($code < 10) {\n return (string) $code;\n } else if ($code === self::PADDING) {\n return '';\n }\n\n $key = array_search($code, self::$codes);\n if ($key === false) {\n throw new Exception('Unknown code \"' . htmlspecialchars($code) . '\"');\n }\n return $key;\n }", "public static function normalize($number) {\n\t\t$number = preg_replace('#[^0-9]#','',''.$number);\n\t\t$norm = array('ccc'=>'');\n\t\tswitch (true) {\n\t\t\t\n\t\t\tcase (strlen($number)==10 && substr($number,0,1)=='0'):\n\t\t\t\t$number = substr($number,1);\n\t\t\tcase (strlen($number)==9 && substr($number,0,1)!=='0'):\t\n\t\t\t\t$norm['ccc'] = '33';\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\t$found = false;\n\t\t\t\t$number = preg_replace('#^[0]+#', '', $number);\n\t\t\t\t$found = false;\n\t\t\t\tfor ($i=4; $i>0; $i--) {\n\t\t\t\t\t$ccc = substr($number,0,$i);\n\t\t\t\t\tif (in_array($ccc,self::$ccc)) {\n\t\t\t\t\t\t$found = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif ($found) {\n\t\t\t\t\t$norm['ccc'] = $ccc;\n\t\t\t\t\t$number = preg_replace('#^'.$ccc.'0*#','',$number);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tthrow new PhoneNumberException($number,1);\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t}\n\t\t$norm['number'] = $number;\n\t\treturn $norm;\n\t}", "function http_get_response_code_error($code)\n\t{\n\t\t$errors = array(\n\t\t200 => 'Success - The request was successful',\n\t\t201 => 'Created (Success) - The request was successful. The requested object/resource was created.',\n\t\t400 => 'Invalid Request - There are many possible causes for this error, but most commonly there is a problem with the structure or content of XML your application provided. Carefully review your XML. One simple test approach is to perform a GET on a URI and use the GET response as an input to a PUT for the same resource. With minor modifications, the input can be used for a POST as well.',\n\t\t401 => 'Unauthorized - This is an authentication problem. Primary reason is that the API call has either not provided a valid API Key, Account Owner Name and Associated Password or the API call attempted to access a resource (URI) which does not match the same as the Account Owner provided in the login credientials.',\n\t\t404 => 'URL Not Found - The URI which was provided was incorrect. Compare the URI you provided with the documented URIs. Start here.',\n\t\t409 => 'Conflict - There is a problem with the action you are trying to perform. Commonly, you are trying to \"Create\" (POST) a resource which already exists such as a Contact List or Email Address that already exists. In general, if a resource already exists, an application can \"Update\" the resource with a \"PUT\" request for that resource.',\n\t\t415 => 'Unsupported Media Type - The Media Type (Content Type) of the data you are sending does not match the expected Content Type for the specific action you are performing on the specific Resource you are acting on. Often this is due to an error in the content-type you define for your HTTP invocation (GET, PUT, POST). You will also get this error message if you are invoking a method (PUT, POST, DELETE) which is not supported for the Resource (URI) you are referencing.\n\t\tTo understand which methods are supported for each resource, and which content-type is expected, see the documentation for that Resource.',\n\t\t500 => 'Server Error',\n\t\t);\n\n\t\tif(array_key_exists($code, $errors)):\n\t\t\treturn $errors[$code];\n\t\tendif;\n\n\t\treturn '';\n\t}", "public static function getStatusCode($code) {\r\n $codes = self::statusCodes();\r\n\r\n if (!empty($codes[$code])) {\r\n return $codes[$code];\r\n }\r\n\r\n throw new Exception(\"Invalid status code: \" . $code);\r\n }", "function is_error ( $res ) {\n if ( is_numeric( $res ) && $res < 0 ) return $res;\n else if ( is_array( $res ) && isset( $res['code'] ) && $res['code'] < 0 ) return $res['code'];\n else if ( $res === FALSE ) return TRUE;\n else return false;\n}", "function rd_kafka_errno2err(int $errnox): int\n{\n\n}", "public function getReasonPhrase(int $code): string\n {\n $code = $this->filterCode($code);\n\n if (!isset($this->values[$code])) {\n throw new OutOfBoundsException(sprintf(\"Unknown http status code: '%s'\", $code));\n }\n\n return $this->values[$code];\n }", "public function getSubErrorCode()\n {\n return $this->get('error_subcode', -1);\n }", "function _errorlog_erronoToConstantName($errno) {\r\n \r\n static $numsToNames;\r\n \r\n // create index of nums to names\r\n if (!$numsToNames) {\r\n foreach (get_defined_constants() as $name => $num) { \r\n if (preg_match(\"/^E_/\", $name)) { $numsToNames[$num] = $name; }\r\n }\r\n }\r\n \r\n //\r\n if (array_key_exists($errno, $numsToNames)) { return $numsToNames[$errno]; }\r\n else { return $errno; }\r\n}", "function convertNum($num) {\n $num = (int) $num; // make sure it's an integer\n\n if ($num < 0)\n return 'negative' . convertTri(-$num, 0);\n\n if ($num == 0)\n return 'Zero';\n return convertTri($num, 0);\n}", "function get_site_error($error_code){\n \nswitch ($error_code) {\n case 3001:\n return array(\n 'code' => '3001',\n 'error' => 'Either invalid email or email is not exists'\n );\n break;\n case 3002:\n return array(\n 'code' => '3002',\n 'error' => 'invalid user id'\n );\n break;\n case 3003:\n return array(\n 'code' => '3003',\n 'error' => 'Unauthorized access'\n );\n break;\n case 3004:\n return array(\n 'code' => '3004',\n 'error' => 'Invalid parameter for rating'\n );\n break;\n case 3005:\n return array(\n 'code' => '3005',\n 'error' => 'Invalid parameter for profile update'\n );\n break;\n case 3006:\n return array(\n 'code' => '3006',\n 'error' => 'Member is not belong to you team'\n );\n break;\n case 3007:\n return array(\n 'code' => '3007',\n 'error' => 'Invalid parameter for profile create'\n );\n break;\n case 3008:\n return array(\n 'code' => '3004',\n 'error' => 'Invalid parameter for Feedback'\n );\n break;\n case \"blue\":\n echo \"Your favorite color is blue!\";\n break;\n case \"green\":\n echo \"Your favorite color is green!\";\n break;\n default:\n return array(\n 'code' => '0000',\n 'error' => 'Unhandled error'\n );\n}\n \n}", "public function readErrorCode(array $subject): string\n {\n $error = $subject;\n return isset($error['error_code'])\n ? (string) $error['error_code']\n : '';\n }", "function error_level_tostring($intval, $separator)\r\n{\r\n $errorlevels = array(\r\n 2047 => 'E_ALL',\r\n 1024 => 'E_USER_NOTICE',\r\n 512 => 'E_USER_WARNING',\r\n 256 => 'E_USER_ERROR',\r\n 128 => 'E_COMPILE_WARNING',\r\n 64 => 'E_COMPILE_ERROR',\r\n 32 => 'E_CORE_WARNING',\r\n 16 => 'E_CORE_ERROR',\r\n 8 => 'E_NOTICE',\r\n 4 => 'E_PARSE',\r\n 2 => 'E_WARNING',\r\n 1 => 'E_ERROR');\r\n $result = '';\r\n foreach($errorlevels as $number => $name)\r\n {\r\n if (($intval & $number) == $number) {\r\n $result .= ($result != '' ? $separator : '').$name; }\r\n }\r\n return $result;\r\n}", "public function convert($number)\n {\n if ($number % 15 == 0) {\n return \"FizzBuzz\";\n } elseif ($number % 3 == 0) {\n return \"Fizz\";\n } elseif ($number % 5 == 0) {\n return \"Buzz\";\n }\n \n return $number;\n }", "function errorCode()\n {\n if (PCLZIP_ERROR_EXTERNAL == 1) {\n return(PclErrorCode());\n }\n else {\n return($this->error_code);\n }\n }", "function code2utf($num){\n\tif($num<128)return chr($num);\n\tif($num<2048)return chr(($num>>6)+192).chr(($num&63)+128);\n\tif($num<65536)return chr(($num>>12)+224).chr((($num>>6)&63)+128).chr(($num&63)+128);\n\tif($num<2097152)return chr(($num>>18)+240).chr((($num>>12)&63)+128).chr((($num>>6)&63)+128) .chr(($num&63)+128);\n\treturn '';\n}", "function checkNum($number) {\n if($number>50) {\n throw new Exception(\" Tavë Kosi has been known for 90 years in Albanian cuisine.\");\n }\n return true;\n}", "public function stringToErrorCode($baseString)\n {\n return preg_replace('`[^a-z0-9_]`i', '_', strtolower($baseString));\n }", "function ErrorNo()\n\t{\n\t\treturn 0;\n\t}", "function vancode2int($c = '00') {\n\t\treturn base_convert(substr($c, 1), 36, 10);\n\t}", "function utilgsmnumber($number){\n return $number;\n }", "abstract protected function calculateCheckDigit(AccountNumber $number): string;", "function convertToRupee($number){\r\n\t\t$no = round($number);\r\n\t\t$whole = floor($number); \r\n\t\t$point = $number - $whole; \r\n\r\n\t\t$hundred = null;\r\n\t\t$digits_1 = strlen($no);\r\n\t\t$i = 0;\r\n\t\t$str = array();\r\n\t\t$words = array('0' => '', '1' => 'One', '2' => 'Two',\r\n\t\t\t\t'3' => 'Three', '4' => 'Four', '5' => 'Five', '6' => 'Six',\r\n\t\t\t\t'7' => 'Seven', '8' => 'Eight', '9' => 'Nine',\r\n\t\t\t\t'10' => 'Ten', '11' => 'Eleven', '12' => 'Twelve',\r\n\t\t\t\t'13' => 'Thirteen', '14' => 'fourteen',\r\n\t\t\t\t'15' => 'Fifteen', '16' => 'Sixteen', '17' => 'Seventeen',\r\n\t\t\t\t'18' => 'Eighteen', '19' =>'Nineteen', '20' => 'Twenty',\r\n\t\t\t\t'30' => 'Thirty', '40' => 'Forty', '50' => 'Fifty',\r\n\t\t\t\t'60' => 'Sixty', '70' => 'Seventy',\r\n\t\t\t\t'80' => 'Eighty', '90' => 'Ninety');\r\n\t\t\t\t$digits = array('', 'Hundred', 'Thousand', 'Lakh', 'Crore');\r\n\t\twhile ($i < $digits_1) {\r\n\t\t\t$divider = ($i == 2) ? 10 : 100;\r\n\t\t\t$number = floor($no % $divider);\r\n\t\t\t$no = floor($no / $divider);\r\n\t\t\t$i += ($divider == 10) ? 1 : 2;\r\n\t\t\tif ($number) {\r\n\t\t\t\t$plural = (($counter = count($str)) && $number > 9) ? 's' : null;\r\n\t\t\t\t$hundred = ($counter == 1 && $str[0]) ? ' and ' : null;\r\n\t\t\t\t$str [] = ($number < 21) ? $words[$number] .\r\n\t\t\t\t\t\" \" . $digits[$counter] . $plural . \" \" . $hundred\r\n\t\t\t\t\t:\r\n\t\t\t\t\t$words[floor($number / 10) * 10]\r\n\t\t\t\t\t. \" \" . $words[$number % 10] . \" \"\r\n\t\t\t\t\t. $digits[$counter] . $plural . \" \" . $hundred;\r\n\t\t\t} else $str[] = null;\r\n\t\t}\r\n\t\t$str = array_reverse($str);\r\n\t\t$result = implode('', $str);\r\n\t\t$points = $this->paiseValue($point);\r\n\r\n\t\t$finalStr = '';\r\n\r\n\t\tif(!empty($result)){\r\n\t\t\t$finalStr .= $result. \" Rupees \";\r\n\t\t}\r\n\t\tif(!empty($points)){\r\n\t\t\t$finalStr .= \"and \".$points. \" Paise\";\r\n\t\t}\r\n\t\tif(!empty($finalStr)){\r\n\t\t\t$finalStr .= \" Only.\";\r\n\t\t}\r\n\r\n\t\treturn $finalStr;\r\n\t}", "function code2utf($num)\n{\n if ($num < 128) return chr($num);\n if ($num < 2048) return chr(($num >> 6) + 192) . chr(($num & 63) + 128);\n if ($num < 65536) return chr(($num >> 12) + 224) . chr((($num >> 6) & 63) + 128) . chr(($num & 63) + 128);\n if ($num < 2097152) return chr(($num >> 18) + 240) . chr((($num >> 12) & 63) + 128) . chr((($num >> 6) & 63) + 128) . chr(($num & 63) + 128);\n return '';\n}", "public function converterRomanNumber($number) : void\n {\n\n if ($number > 0 && $number < 5000)\n {\n $alphabet = [\n [\"\", \"I\", \"II\", \"III\", \"IV\", \"V\", \"VI\", \"VII\", \"VIII\", \"IX\"],\n [\"\", \"X\", \"XX\", \"XXX\", \"XL\", \"L\", \"LX\", \"LXX\", \"LXXX\", \"XC\"],\n [\"\", \"C\", \"CC\", \"CCC\", \"CD\", \"D\", \"DC\", \"DCC\", \"DCCC\", \"CM\"],\n [\"\", \"M\", \"MM\", \"MMM\", \"MMMM\"]\n ];\n\n $chars = str_split($number);\n $result = \"\";\n for ($i = 0; $i < sizeof($chars); $i++)\n {\n $result = $result . $alphabet[sizeof($chars) - 1 - $i][intval($chars[$i])];\n }\n echo \"L'équivalent de \" . $number . \" en nombre romain est : \" . $result . ' ';\n }\n else\n {\n echo \"Votre nombre n'est pas compris dans la plage ]0;5000[\";\n }\n }", "public static function GetStatusCode($result) {\n\t\t$result = json_decode($result, true);\n\t\t\n\t\treturn $result['status']['code'];\n\t}", "public function getStatusCode()\n {\n preg_match(\"/(\\d\\d\\d)/\", $this->_status, $matches);\n return isset($matches[1]) ? (int) $matches[1] : 0;\n }", "public function errorCode();", "public function errorCode();", "private function getNumberToText(int $number): string {\n\t\tswitch($number) {\n\t\t\tcase 0:\n\t\t\t\treturn Language::out()->get0Name();\n\t\t\tcase 1:\n\t\t\t\treturn Language::out()->get1Name();\n\t\t\tcase 2:\n\t\t\t\treturn Language::out()->get2Name();\n\t\t\tcase 3:\n\t\t\t\treturn Language::out()->get3Name();\n\t\t\tcase 4:\n\t\t\t\treturn Language::out()->get4Name();\n\t\t\tcase 5:\n\t\t\t\treturn Language::out()->get5Name();\n\t\t\tcase 6:\n\t\t\t\treturn Language::out()->get6Name();\n\t\t\tcase 7:\n\t\t\t\treturn Language::out()->get7Name();\n\t\t\tcase 8:\n\t\t\t\treturn Language::out()->get8Name();\n\t\t\tcase 9:\n\t\t\t\treturn Language::out()->get9Name();\n\t\t\tdefault:\n\t\t\t\treturn (string) $number;\n\t\t}\n\t}", "public function getError(): int\n {\n return $this->error;\n }", "private function returnCodeMessage(int $code): string {\n $codes = [\n 211 => 'System status, or system help reply',\n 214 => 'Help message (A response to the HELP command)',\n 220 => '<domain> Service ready',\n 221 => '<domain> Service closing transmission channel',\n 235 => 'Authentication succeeded',\n 250 => 'Requested mail action okay, completed',\n 251 => 'User not local; will forward',\n 252 => 'Cannot verify the user, but it will try to deliver the message anyway',\n 334 => '(Server challenge - the text part contains the Base64-encoded challenge)',\n 354 => 'Start mail input',\n 421 => 'Service not available, closing transmission channel (This may be a reply to any command if the service knows it must shut down)',\n 432 => 'A password transition is needed',\n 450 => 'Requested mail action not taken: mailbox unavailable (e.g., mailbox busy or temporarily blocked for policy reasons)',\n 451 => 'Requested action aborted: local error in processing / IMAP server unavailable',\n 452 => 'Requested action not taken: insufficient system storage',\n 454 => 'Temporary authentication failure',\n 455 => 'Server unable to accommodate parameters',\n 500 => 'Syntax error, command unrecognized (This may include errors such as command line too long) / Authentication Exchange line is too long',\n 501 => 'Syntax error in parameters or arguments / Cannot Base64-decode Client responses / Client initiated Authentication Exchange (only when the SASL mechanism specified that client does not begin the authentication exchange)',\n 502 => 'Command not implemented',\n 503 => 'Bad sequence of commands',\n 504 => 'Command parameter is not implemented / Unrecognized authentication type',\n 521 => 'Server does not accept mail',\n 523 => 'Encryption Needed',\n 530 => 'Authentication required',\n 534 => 'Authentication mechanism is too weak',\n 535 => 'Authentication credentials invalid',\n 538 => 'Encryption required for requested authentication mechanism',\n 550 => 'Requested action not taken: mailbox unavailable (e.g., mailbox not found, no access, or command rejected for policy reasons)',\n 551 => 'User not local; please try <forward-path>',\n 552 => 'Requested mail action aborted: exceeded storage allocation',\n 553 => 'Requested action not taken: mailbox name not allowed',\n 554 => 'Transaction has failed (Or, in the case of a connection-opening response, \"No SMTP service here\") / Message too big for system',\n 556 => 'Domain does not accept mail',\n ];\n return $codes[$code] ?? '';\n }", "public function convert($num)\n {\n if(strlen($num)>48) \n {\n $this->error=\"Number out of bounds\";\n return $this->error;\n }\n \n //check if first \n if(substr($num,0,1)==\"-\")\n {\n $this->sentence.='minus ';\n $num=substr($num,1,strlen($num)-1);\n }\n \n if(strlen($num)<=3)\n {\n $this->sentence.=$this->decider($num);\n }\n else\n {\n $k=strrev($num);\n for($i=0;$i<strlen($k);$i=$i+3){$arro[]=strrev(substr($k,$i,3));}\n //reverse again\n $arro=array_reverse($arro);\n //print_r($arro);\n $mool=ceil(strlen($num)/3);\n if((strlen($num)%3)==0){$mool--;}\n //return $this->decider($arro[0]);\n $this->sentence.=$this->decider($arro[0]).' '.$this->mool_array[$mool];\n $mool--;\n //leave the first one and prepare string of others\n $arrlen=count($arro);\n for($i=1;$i<$arrlen;$i++)\n {\n $this->sentence.=' '.$this->decider($arro[$i]);\n if($mool!=0)\n {\n $this->sentence=' '.$this->sentence.' '.$this->mool_array[$mool];\n }\n $mool--;\n }\n }\n return ucfirst(trim($this->sentence));\n }", "function convertNum($num) {\n$num = (int) $num; // make sure it's an integer\n\nif ($num < 0)\nreturn \"negative\".convertTri(-$num, 0);\n\nif ($num == 0)\nreturn \"zero\";\n\nreturn convertTri($num, 0);\n}", "private function errorTwoHundred($headerText)\n\t{\n\t\t$headerCode = 200;\n\t\t$msg = (string)$headerText;\n\t\t\n\t\t$data['server'] = ['status' => $this->code, 'code' => $msg, 'information' => ERROR_CODE_INFORMATION];\n\t\t\n\t\t$this->setHeaders($headerCode, $headerText);\n\t\t\n\t\treturn $this->converting($data);\n\t}", "public function get_error_codes()\n {\n }", "public function getErrorCode(){\n return $this->_section->return_error_code;\n }", "public function message(): string\n {\n return 'El número de seguro social es invalido.';\n }", "public function errorCode()\n {\n $error = $this->errorInfo();\n return $error[0];\n }", "private function charToCode($char) {\n if (preg_match('/\\\\d/', $char)) {\n return (int) $char;\n } else if (isset(self::$codes[$char])) {\n return self::$codes[$char];\n }\n throw new Exception('Unknown character \"' . htmlspecialchars($char) . '\"');\n }", "public static function errorNumber(RequestException $e)\n {\n return $e->getHandlerContext()['errno'];\n }", "public function get_number() { return $this->getCode(); }", "function errorMsg($number)\n{\n switch ($number) {\n case 10:\n fwrite(STDERR, \"Missing parameter or wrong number of parameters\");\n exit(10);\n break;\n }\n}", "public function getNewStatusCode()\n\t {\n\t\t$select = $this->_db->select() \n\t\t\t\t ->from(array('MS'=>STATUS_MASTER),array(\"MS.code_numeric\"))\n\t\t\t\t ->order('master_id DESC')\n\t\t\t\t ->limit('1');\n\t\t\t\t //echo $select->__tostring();die;\n\t\t $result = $this->getAdapter()->fetchrow($select);\n\t\t $start = substr($result['code_numeric'],0,2);\n\t\t\t\t\t\t\t $newCode = (substr($result['code_numeric'],2)+1); \n\t\t\t\t\t\t\t $newStatus = (strlen($newCode)<3) ? $start.'0'.$newCode : $start.$newCode; \n\t\t return $newStatus;\n\t }", "public function getErrorCode()\n\t{\n\t\treturn $this->errorCode;\n\t}", "public function getStatusError($code = false)\n {\n switch ($code) {\n case 204:\n return 204;\n break;\n case 400: //Bad Request\n return 400;\n break;\n case 401:\n return 401;\n break;\n case 403:\n return 403;\n break;\n case 404:\n return 404;\n break;\n case 502:\n return 502;\n break;\n case 504:\n return 504;\n break;\n default:\n return 500;\n break;\n }\n }", "public static function getStatusCodeMessage($status)\n\t\t{\n\t\t\t// via parse_ini_file()... however, this will suffice\n\t\t\t// for an example\n\t\t\t$codes = Array(\n\t\t\t\t100 => 'Continue',\n\t\t\t\t101 => 'Switching Protocols',\n\t\t\t\t200 => 'OK',\n\t\t\t\t201 => 'Created',\n\t\t\t\t202 => 'Accepted',\n\t\t\t\t203 => 'Non-Authoritative Information',\n\t\t\t\t204 => 'No Content',\n\t\t\t\t205 => 'Reset Content',\n\t\t\t\t206 => 'Partial Content',\n\t\t\t\t300 => 'Multiple Choices',\n\t\t\t\t301 => 'Moved Permanently',\n\t\t\t\t302 => 'Found',\n\t\t\t\t303 => 'See Other',\n\t\t\t\t304 => 'Not Modified',\n\t\t\t\t305 => 'Use Proxy',\n\t\t\t\t306 => '(Unused)',\n\t\t\t\t307 => 'Temporary Redirect',\n\t\t\t\t400 => 'Bad Request',\n\t\t\t\t401 => 'Unauthorized',\n\t\t\t\t402 => 'Payment Required',\n\t\t\t\t403 => 'Forbidden',\n\t\t\t\t404 => 'Not Found',\n\t\t\t\t405 => 'Method Not Allowed',\n\t\t\t\t406 => 'Not Acceptable',\n\t\t\t\t407 => 'Proxy Authentication Required',\n\t\t\t\t408 => 'Request Timeout',\n\t\t\t\t409 => 'Conflict',\n\t\t\t\t410 => 'Gone',\n\t\t\t\t411 => 'Length Required',\n\t\t\t\t412 => 'Precondition Failed',\n\t\t\t\t413 => 'Request Entity Too Large',\n\t\t\t\t414 => 'Request-URI Too Long',\n\t\t\t\t415 => 'Unsupported Media Type',\n\t\t\t\t416 => 'Requested Range Not Satisfiable',\n\t\t\t\t417 => 'Expectation Failed',\n\t\t\t\t500 => 'Internal Server Error',\n\t\t\t\t501 => 'Not Implemented',\n\t\t\t\t502 => 'Bad Gateway',\n\t\t\t\t503 => 'Service Unavailable',\n\t\t\t\t504 => 'Gateway Timeout',\n\t\t\t\t505 => 'HTTP Version Not Supported',\n\t\t\t\t600 => 'OK',\n\t\t\t\t601 => 'Bad request',\n\t\t\t\t602 => 'You must be authorized to view this page.',\n\t\t\t\t603 => 'The requested URL ' . $_SERVER['REQUEST_URI'] . ' was not found.',\n\t\t\t\t604 => 'The server encountered an error processing your request.',\n\t\t\t\t605 => 'The requested method is not implemented.',\n\t\t\t\t606 => 'You have exceeded api call limit for the hour',\n\t\t\t\t607 => 'You have exceeded api call limit for the day'\n\t\t\t);\n\t\n\t\t\treturn (isset($codes[$status])) ? $codes[$status] : '';\n\t\t}" ]
[ "0.63819575", "0.62163925", "0.61071724", "0.6071053", "0.60575706", "0.600905", "0.5957908", "0.5941635", "0.5911305", "0.5897674", "0.58075964", "0.58039045", "0.5785466", "0.57853675", "0.57684916", "0.57590264", "0.5741741", "0.57406783", "0.5679281", "0.5676299", "0.56740993", "0.5671434", "0.5613095", "0.5598029", "0.554805", "0.5543242", "0.5515895", "0.55145556", "0.5493221", "0.54711014", "0.5470502", "0.54680663", "0.54572797", "0.54506326", "0.5438021", "0.5433949", "0.5433949", "0.5419492", "0.5416366", "0.5380093", "0.5361399", "0.5356272", "0.532597", "0.5314872", "0.5303079", "0.5302979", "0.529654", "0.5289154", "0.52881116", "0.52755433", "0.527445", "0.526919", "0.52525", "0.52418196", "0.5211987", "0.51892906", "0.5179184", "0.51722693", "0.51666486", "0.51643616", "0.51597124", "0.51572996", "0.5153822", "0.5145657", "0.5139954", "0.5139882", "0.51324403", "0.5129595", "0.5119989", "0.51070017", "0.5077344", "0.5071376", "0.5070816", "0.5065636", "0.50614893", "0.5059049", "0.50446486", "0.5042774", "0.5034731", "0.50346774", "0.5034197", "0.5034197", "0.5032112", "0.5030406", "0.5024912", "0.5024576", "0.50239235", "0.50227416", "0.5021946", "0.5002194", "0.50019544", "0.49903917", "0.49888998", "0.49812666", "0.49778736", "0.49762732", "0.49758232", "0.49750355", "0.49690682", "0.49676844" ]
0.60735375
3
Sends an HTTP error status along with the specified data. Warning, calling this method will cause the process to exit.
public static function send_http_error( $data ) { \HttpResponse::status( 400 ); \HttpResponse::setContentType( 'application/json' ); \HttpResponse::setData( $data ); \HttpResponse::send(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function error( $data = null ) {\n\t\t$this->send( $data, false );\n\t}", "public static function sendError($status_code,$message=null) {\n\t\thttp_response_code($status_code);\n\t\techo $message;\n\t}", "public function error(string $data): void\n {\n $this->errorStream->write($data);\n }", "public static function sendHttpError($errorCode, $htmlContent='') {\n // Error 404\n if ($errorCode == 404) {\n // Sending specific error status 404 HTTP\n header(\"HTTP/1.0 404 Not Found\");\n echo $htmlContent;\n exit;\n }\n }", "function HTTPFailWithCode($code,$message)\n{\n\theader(reasonForCode($code));\n\texit($message);\n}", "public static function sendHttpError($errorCode, $htmlContent='') {\n if ($errorCode == 404) {\n header(\"HTTP/1.0 404 Not Found\");\n echo $htmlContent;\n exit;\n }\n }", "private function fail() {\n\t\theader('HTTP/1.1 400 BAD REQUEST');\n\t\tdie('400 BAD REQUEST');\n\t}", "function http_send_status($status) {}", "public static function sendErrorResponse($error = null){\n http_response_code(500);\n echo $error;\n die();\n }", "public static function status400($data=null) {\n\t\tself::response($data,400);\n\t}", "function error($msg)\n{\n header('HTTP/1.1 500 ' . $msg);\n die($msg);\n}", "function respondWithError($message, $httpCode = 500) {\n header('Content-Type: application/json');\n http_response_code($httpCode);\n $json = json_encode([\n 'ok' => false,\n 'error' => $message,\n ], JSON_PRETTY_PRINT);\n echo $json;\n exit();\n}", "function errorHandler($status, $code, $message = null) {\n switch ($code) {\n case 406:\n header(\"HTTP/1.1 $code User $status\");\n if ($message == null)\n $message = 'Wrong credentials provided'; \n break;\n case 409:\n header(\"HTTP/1.1 $code $status\");\n if ($message == null)\n $message = 'There was a conflict with the data being sent'; \n break;\n case 500:\n header(\"HTTP/1.1 $code $status. Bad connection, portal is down\");\n if ($message == null)\n $message = \"The server is down, we couldn't retrieve data from the database\";\n break;\n }\n die($message);\n }", "protected function error()\n {\n $this->response = $this->response->withStatus(500);\n $this->jsonBody([\n 'input' => $this->payload->getInput(),\n 'error' => $this->payload->getOutput(),\n ]);\n }", "protected function setErrorHeader() {\n\t\tif ($this->response_code >= 400 && $this->response_code < 500) {\n\t\t\theader('HTTP/1.1 ' . $this->response_code . \" \" . SVException::g($this->response_code));\n\t\t\texit(0);\n\t\t}\n\t}", "public static function sendError($errMessage = \"\") {\n //TODO: send 404\n $responseObj = new Response();\n $body = array();\n $body['error']['code'] = 400;\n $body['error']['type'] = \"error_unknown\";\n $body['error']['message'] = $errMessage;\n $responseObj->setContent(json_encode($body));\n $responseObj->setStatus('400');\n $responseObj->setHeader('Content-Type: application/json');\n\n $responseObj->sendResponse();\n }", "function HTTPFail($message)\n{\n\terrorlog_withlevel(\"message=====>\".$message,3);\n\tprint json_encode(array('error'=>$message));\n\texit(0);\n}", "function errorHandler($message, $code){\n echo '{\"errors\":\"'.$message.'\"}';\n http_response_code($code);\n return false;\n }", "function throw_user_error($error_code, $error_text) {\n http_response_code($error_code);\n echo $error_text;\n exit;\n}", "public static function dataValidationFailed($status, $message, $code){\n\n throw new \\yii\\web\\HttpException($status, $message, $code);\n }", "private function error()\n {\n $json = array_merge($this->data, ['message' => $this->error, 'class' => 'error']);\n wp_send_json($json);\n }", "public function uriError()\n {\n header(\"HTTP/1.0 404\");\n exit();\n }", "public function respondWithError(array $data = [])\n\t{\n\t\treturn $this->setStatusCode(Response::HTTP_UNPROCESSABLE_ENTITY)\n\t\t\t->respond(array_merge(['status' => 'ERROR'], $data));\n\t}", "static function error( $code, $desc ) {\n\t\t$codes = array();\n\t\t$codes[400] = 'Bad Request';\n\t\t$codes[401] = 'Unauthorized';\n\t\t$codes[403] = 'Forbidden';\n\t\t$codes[404] = 'Not Found';\n\t\t$codes[405] = 'Method Not Allowed';\n\t\t$codes[406] = 'Not Acceptable';\n\t\t$codes[501] = 'Not Implemented';\n\t\t$codes[503] = 'Service unavailable';\n\t\t\n\t\theader('Content-Type: text/html');\n\t\theader( 'HTTP/1.1 '. $code . ' '. @$codes[$code] );\n\t\tdie( $desc );\n\t}", "protected function generateHttpError(int $errorCode = 404): void\n {\n\t\t$content =\n '<h1>' .\n $errorCode .\n ' ' .\n Response::$statusTexts[$errorCode] .\n '</h1>';\n\n\t\tResponse::create($content, $errorCode)->send();\n\t\texit();\n\t}", "function status($code) {\n $reason=@constant('self::HTTP_'.$code);\n if (PHP_SAPI!='cli')\n header($_SERVER['SERVER_PROTOCOL'].' '.$code.' '.$reason);\n return $reason;\n }", "function ReturnServerError()\n{\n header('HTTP/1.1 500 Internal Server Error');\n die(\"A server error occured while saving your request.\\r\\nPlease check our API status page at http://status.prybar.io and try again later\");\n}", "public function baseError($data,$statusCode=400, $options=null){\n\t\t$contents = array('status' => 'error', 'response' => $data, 'options' => $options);\n\n\t\t$response = Response::make($contents, $statusCode);\n\n\t\t$response->header('Content-Type', $this->contentType);\n\n\t\treturn $response;\n\n\n\t}", "static function send_http_status($code) {\n\t\tstatic $_status = array(\n\t\t// Informational 1xx\n\t\t100 => 'Continue',\n\t\t101 => 'Switching Protocols',\n\n\t\t// Success 2xx\n\t\t200 => 'OK',\n\t\t201 => 'Created',\n\t\t202 => 'Accepted',\n\t\t203 => 'Non-Authoritative Information',\n\t\t204 => 'No Content',\n\t\t205 => 'Reset Content',\n\t\t206 => 'Partial Content',\n\n\t\t// Redirection 3xx\n\t\t300 => 'Multiple Choices',\n\t\t301 => 'Moved Permanently',\n\t\t302 => 'Found', // 1.1\n\t\t303 => 'See Other',\n\t\t304 => 'Not Modified',\n\t\t305 => 'Use Proxy',\n\t\t// 306 is deprecated but reserved\n\t\t307 => 'Temporary Redirect',\n\n\t\t// Client Error 4xx\n\t\t400 => 'Bad Request',\n\t\t401 => 'Unauthorized',\n\t\t402 => 'Payment Required',\n\t\t403 => 'Forbidden',\n\t\t404 => 'Not Found',\n\t\t405 => 'Method Not Allowed',\n\t\t406 => 'Not Acceptable',\n\t\t407 => 'Proxy Authentication Required',\n\t\t408 => 'Request Timeout',\n\t\t409 => 'Conflict',\n\t\t410 => 'Gone',\n\t\t411 => 'Length Required',\n\t\t412 => 'Precondition Failed',\n\t\t413 => 'Request Entity Too Large',\n\t\t414 => 'Request-URI Too Long',\n\t\t415 => 'Unsupported Media Type',\n\t\t416 => 'Requested Range Not Satisfiable',\n\t\t417 => 'Expectation Failed',\n\n\t\t// Server Error 5xx\n\t\t500 => 'Internal Server Error',\n\t\t501 => 'Not Implemented',\n\t\t502 => 'Bad Gateway',\n\t\t503 => 'Service Unavailable',\n\t\t504 => 'Gateway Timeout',\n\t\t505 => 'HTTP Version Not Supported',\n\t\t509 => 'Bandwidth Limit Exceeded'\n\t\t);\n\t\tif(array_key_exists($code,$_status)) {\n\t\t\theader('HTTP/1.1 '.$code.' '.$_status[$code]);\n\t\t}\n\t}", "public static function sendErrorMessage($message, $code = 'ERROR', $status = 400)\n\t{\n\t\twp_send_json([\n 'error' => [\n\t\t\t\t'code' => $code,\n\t\t\t\t'message' => $message\n\t\t\t]\n ], $status);\n\t}", "public static function die500(array $data = array())\n {\n header('HTTP/1.1 500 Internal Server Error');\n\n self::dieJson($data);\n }", "public function error(int $status, $message = null, array $headers = []): ResponseInterface;", "function errorResponse ($messsage) {\n header('HTTP/1.1 500 Internal Server Error');\n die(json_encode(array('message' => $messsage)));\n }", "function sendError($errorText){\n echo json_encode(array(\n 'status' => '50x',\n 'infotext' => $errorText\n ));\n die();\n}", "public function send()\n {\n http_response_code($this->statusCode);\n $this->sendContent();\n }", "public function actionError() {\n if ($error = Yii::app()->errorHandler->error) {\n\t\t\t$this->sendRestResponse(500,array(\n\t\t\t\t'status' => false,\n\t\t\t\t'message' => $error['message'],\n\t\t\t\t'data' => $error,\n\t\t\t));\t\t\t\n }\n\t}", "public static function error_response() {\r\n header(\"HTTP/1.1 404 Recurso no encontrado\");\r\n exit();\r\n }", "public function error($data)\n {\n $data = ['erro'=>$data];\n return $this->coreResponse($data);\n }", "public function sendData($data)\n\t{\n\t\t// We have this fixed for localhosts so we cannot even check the error message\n\t\tif ($data['epayresponsecode'] == -1003)\n\t\t{\n\t\t\treturn $this->response = new EpayerrorResponse(\n\t\t\t\t$this,\n\t\t\t\tarray(\n\t\t\t\t\t'getEpayErrorResult' => true,\n\t\t\t\t\t'epayresponsestring' => 'An error -1003 occurred in the communication to ePay: The IP address your '\n\t\t\t\t\t\t. 'system calls ePay from is UNKNOWN. Please log into your ePay account to verify enter the IP '\n\t\t\t\t\t\t. 'address your system calls ePay from. This can be done from the menu: API / WEBSERVICES -> ACCESS.',\n\t\t\t\t)\n\t\t\t);\n\t\t}\n\t\t// We have this fixed for password protected webservice access so we cannot even check the error message\n\t\telseif ($data['epayresponsecode'] == -1019)\n\t\t{\n\t\t\treturn $this->response = new EpayerrorResponse(\n\t\t\t\t$this,\n\t\t\t\tarray(\n\t\t\t\t\t'getEpayErrorResult' => true,\n\t\t\t\t\t'epayresponsestring' => 'Invalid password used for webservice access! '\n\t\t\t\t\t\t. 'Please log into your ePay account to verify webservice password. This can be done from the menu: API / WEBSERVICES -> ACCESS.',\n\t\t\t\t)\n\t\t\t);\n\t\t}\n\n\t\t$client = new \\SoapClient($this->endpoint . '?WSDL');\n\n\t\t$result = $client->getEpayError($data);\n\n\t\treturn $this->response = new EpayerrorResponse(\n\t\t\t$this,\n\t\t\tarray(\n\t\t\t\t'getEpayErrorResult' => isset($result->getEpayErrorResult) ? $result->getEpayErrorResult : '',\n\t\t\t\t'epayresponsestring' => isset($result->getEpayErrorResult) ? $result->epayresponsestring : '',\n\t\t\t)\n\t\t);\n\t}", "protected static function error($code, $message) {\n\t\theader('Content-Type: text/html', true, $code);\n\t\theader('Content-Length: ' . strlen($message));\n\n\t\techo $message;\n\t}", "public static function error404()\r\n\t{\r\n\t\theader(\"HTTP/1.1 404 Not Found\");\r\n\t\theader(\"Status: 404 Not Found\");\r\n\t\texit();\r\n\t}", "protected function response($data, string $status = VALUE_STATUS_OK, int $code = VALUE_STATUS_CODE_OK,\n ?string $message = VALUE_STATUS_MESSAGE_DEFAULT)\n {\n $this->log->write_log('debug', $this->TAG . ': response: ');\n $response = $this->generate_response($status, $code, $message, $data);\n $this->send(200, $response);\n }", "function raiseError($errorMessage, $responseCode){\n\t global $errors;\n\n\t\thttp_response_code($responseCode);\n\n\t die(json_encode(array(\n\t \t\"error\" => $errorMessage\n\t )));\n\t}", "protected function abort(int $statusCode, $data = null)\n {\n $errorMessage = $this->responseHandler->formatDataToErrorMessage($data);\n throw new HttpException($statusCode, $errorMessage);\n }", "function stop(Int $code = 0, String $description = \"\", Int $HTTPStatus = 200, Array $data = Array(), $hashData = false) {\n\t\tglobal $runtime;\n\t\t$hash = is_bool($hashData) ? ($hashData ? md5(serialize($data)) : null) : md5(serialize($hashData));\n\n\t\t$output = Array(\n\t\t\t\"code\" => $code,\n\t\t\t\"status\" => $HTTPStatus,\n\t\t\t\"description\" => $description,\n\t\t\t\"user\" => $_SESSION[\"username\"],\n\t\t\t\"data\" => $data,\n\t\t\t\"hash\" => $hash,\n\t\t\t\"runtime\" => $runtime -> stop()\n\t\t);\n\n\t\t// Set the HTTP status code\n\t\thttp_response_code($HTTPStatus);\n\n\t\tif (!defined(\"PAGE_TYPE\"))\n\t\t\tdefine(\"PAGE_TYPE\", \"NORMAL\");\n\n\t\tswitch (strtoupper(PAGE_TYPE)) {\n\t\t\tcase \"NORMAL\":\n\t\t\t\tif (!headers_sent()) {\n\t\t\t\t\theader(\"Output: [$code] $description\");\n\t\t\t\t\theader(\"Output-Json: \". json_encode($output));\n\t\t\t\t}\n\n\t\t\t\tif ($HTTPStatus >= 300 || $code !== 0)\n\t\t\t\t\tprintErrorPage($output, headers_sent());\n\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase \"API\":\n\t\t\t\tif (!headers_sent())\n\t\t\t\t\theader(\"Content-Type: application/json\", true);\n\t\t\t\t\t\n\t\t\t\tprint(json_encode($output, JSON_PRETTY_PRINT));\n\t\t\t\t\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\tprint \"<h1>Error $HTTPStatus</h1><p>$description</p>\";\n\n\t\t\t\tbreak;\n\t\t}\n\n\t\tdie();\n\t}", "function getHTTPCode() {\n\n return 500;\n\n }", "public function throw()\n {\n $response = new JsonResponse($this->getResponse(), $this->code);\n\n die($response->send());\n }", "public function error($str, $code = Response::STATUS_ERROR)\n {\n $this->addError(new Error($str, $code));\n Container::get('response')->setStatus($code);\n if (!Container::get('response')->isStatus(Response::STATUS_OK)) {\n $this->serve();\n }\n }", "function _responseHttp($data,$status = 0){\n $this->CodeHTTP = ($status > 0) ? $status : 200;\n $this->_setHeaders();\n echo json_encode($data);\n exit;\n }", "private function send_status()\n {\n switch ($this->_status) \n {\n case 100: $text = 'Continue'; break;\n case 101: $text = 'Switching Protocols'; break;\n case 200: $text = 'OK'; break;\n case 201: $text = 'Created'; break;\n case 202: $text = 'Accepted'; break;\n case 203: $text = 'Non-Authoritative Information'; break;\n case 204: $text = 'No Content'; break;\n case 205: $text = 'Reset Content'; break;\n case 206: $text = 'Partial Content'; break;\n case 300: $text = 'Multiple Choices'; break;\n case 301: $text = 'Moved Permanently'; break;\n case 302: $text = 'Moved Temporarily'; break;\n case 303: $text = 'See Other'; break;\n case 304: $text = 'Not Modified'; break;\n case 305: $text = 'Use Proxy'; break;\n case 400: $text = 'Bad Request'; break;\n case 401: $text = 'Unauthorized'; break;\n case 402: $text = 'Payment Required'; break;\n case 403: $text = 'Forbidden'; break;\n case 404: $text = 'Not Found'; break;\n case 405: $text = 'Method Not Allowed'; break;\n case 406: $text = 'Not Acceptable'; break;\n case 407: $text = 'Proxy Authentication Required'; break;\n case 408: $text = 'Request Time-out'; break;\n case 409: $text = 'Conflict'; break;\n case 410: $text = 'Gone'; break;\n case 411: $text = 'Length Required'; break;\n case 412: $text = 'Precondition Failed'; break;\n case 413: $text = 'Request Entity Too Large'; break;\n case 414: $text = 'Request-URI Too Large'; break;\n case 415: $text = 'Unsupported Media Type'; break;\n case 500: $text = 'Internal Server Error'; break;\n case 501: $text = 'Not Implemented'; break;\n case 502: $text = 'Bad Gateway'; break;\n case 503: $text = 'Service Unavailable'; break;\n case 504: $text = 'Gateway Time-out'; break;\n case 505: $text = 'HTTP Version not supported'; break;\n default:\n exit('Unknown http status code \"' . htmlentities($this->_status) . '\"');\n break;\n }\n\n $protocol = (isset($_SERVER['SERVER_PROTOCOL']) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.0');\n\n header($protocol . ' ' . $this->_status . ' ' . $text);\n }", "function Error(){\n header('Content-Type: application/json');\n echo ('false');\n http_response_code(200);\n }", "protected function failure()\n {\n $this->response = $this->response->withStatus(400);\n $this->jsonBody($this->payload->getInput());\n }", "public function sendError($message=null, $endApplication = false) {\n $error = json_encode(array(\n 'jsonrpc' => $this->version,\n 'id' => isset($this->_request['id']) ? $this->_request['id'] : null,\n 'error' => $message,\n ));\n if ($endApplication) {\n die($error);\n } else {\n echo $error;\n }\n }", "private function download_error( $message, $title = '', $status = 404 ) {\n\t\twp_die( $message, $title, array( 'response' => $status ) );\n\t}", "function badRequest() {\n header('HTTP/1.0 400 Bad Request');\n }", "function errorPageHTTP ($i_code) {\n\t//send the error code to the browser\n\theader (' ', true, $i_code);\n\t//generate the error page\n\t$html = templatePage (\n\t\treMarkable (template_load (\"errors/$i_code.rem\")), $i_code,\n\t\ttemplateHeader (), templateFooter (\".system/design/templates/errors/$i_code\")\n\t);\n\t//cache it\n\tfile_put_contents (APP_CACHE.\"$i_code.html\", $html, LOCK_EX) or errorPage (\n\t\t'denied_cache.rem', 'Error: Permission Denied', array ('PATH' => APP_CACHE)\n\t);\n\t//display it\n\tdie ($html);\n}", "function sendFailure( $message ) {\n\t\t$obj = new stdClass();\n\n\t\t$obj->success = false;\n\t\t$obj->errorMessage = $this->escapeJsonString( $message );\n\n\t\t$this->sendJSON( $obj );\n\t}", "function httpError($code, $message = null, $die = true, $only_headers = false) {\n if($message === null) {\n $errors = array(\n 100 => \"HTTP/1.1 100 Continue\",\n 101 => \"HTTP/1.1 101 Switching Protocols\",\n 200 => \"HTTP/1.1 200 OK\",\n 201 => \"HTTP/1.1 201 Created\",\n 202 => \"HTTP/1.1 202 Accepted\",\n 203 => \"HTTP/1.1 203 Non-Authoritative Information\",\n 204 => \"HTTP/1.1 204 No Content\",\n 205 => \"HTTP/1.1 205 Reset Content\",\n 206 => \"HTTP/1.1 206 Partial Content\",\n 300 => \"HTTP/1.1 300 Multiple Choices\",\n 301 => \"HTTP/1.1 301 Moved Permanently\",\n 302 => \"HTTP/1.1 302 Found\",\n 303 => \"HTTP/1.1 303 See Other\",\n 304 => \"HTTP/1.1 304 Not Modified\",\n 305 => \"HTTP/1.1 305 Use Proxy\",\n 307 => \"HTTP/1.1 307 Temporary Redirect\",\n 400 => \"HTTP/1.1 400 Bad Request\",\n 401 => \"HTTP/1.1 401 Unauthorized\",\n 402 => \"HTTP/1.1 402 Payment Required\",\n 403 => \"HTTP/1.1 403 Forbidden\",\n 404 => \"HTTP/1.1 404 Not Found\",\n 405 => \"HTTP/1.1 405 Method Not Allowed\",\n 406 => \"HTTP/1.1 406 Not Acceptable\",\n 407 => \"HTTP/1.1 407 Proxy Authentication Required\",\n 408 => \"HTTP/1.1 408 Request Time-out\",\n 409 => \"HTTP/1.1 409 Conflict\",\n 410 => \"HTTP/1.1 410 Gone\",\n 411 => \"HTTP/1.1 411 Length Required\",\n 412 => \"HTTP/1.1 412 Precondition Failed\",\n 413 => \"HTTP/1.1 413 Request Entity Too Large\",\n 414 => \"HTTP/1.1 414 Request-URI Too Large\",\n 415 => \"HTTP/1.1 415 Unsupported Media Type\",\n 416 => \"HTTP/1.1 416 Requested range not satisfiable\",\n 417 => \"HTTP/1.1 417 Expectation Failed\",\n 500 => \"HTTP/1.1 500 Internal Server Error\",\n 501 => \"HTTP/1.1 501 Not Implemented\",\n 502 => \"HTTP/1.1 502 Bad Gateway\",\n 503 => \"HTTP/1.1 503 Service Unavailable\",\n 504 => \"HTTP/1.1 504 Gateway Time-out\" \n );\n \n $message = array_var($errors, $code);\n if(trim($message) == '') {\n $message = 'Unknown';\n } // if\n } // if\n \n header(\"HTTP/1.1 $code $message\");\n print '<h1>' . clean($message) . '</h1>';\n \n if($die) {\n die();\n } // if\n }", "function setErrorHeader($message){\n\thttp_response_code(404);\n\theader('Content-Type: application/json');\n\techo $message;\n}", "function errore($messaggio) {\n header($_SERVER['SERVER_PROTOCOL'] . ' 500 Internal Server Error', true, 500);\n die($messaggio);\n}", "public static function render($data, $code = '200')\n {\n $jr = new self;\n $jr->setData($data);\n $jr->setStatusCode($code);\n $jr->send();\n }", "function response400( $missing_param = '' ) {\n if ( headers_sent() )\n return;\n header( 'HTTP/1.1 400 Bad Request', true, 400 );\n header( 'Content-Type: text/plain', true );\n if ( $missing_param )\n echo $missing_param . ' required';\n exit();\n}", "function my_error($msg) {\n\theader('HTTP/1.1 500 Internal Server Error');\n\ttrigger_error($msg,E_USER_ERROR);\n}", "function sendHttpStatus($code) \n {\n\t\tstatic $_status = array(\n\t\t\t// Informational 1xx\n\t\t\t100 => 'Continue',\n\t\t\t101 => 'Switching Protocols',\n\n\t\t\t// Success 2xx\n\t\t\t200 => 'OK',\n\t\t\t201 => 'Created',\n\t\t\t202 => 'Accepted',\n\t\t\t203 => 'Non-Authoritative Information',\n\t\t\t204 => 'No Content',\n\t\t\t205 => 'Reset Content',\n\t\t\t206 => 'Partial Content',\n\n\t\t\t// Redirection 3xx\n\t\t\t300 => 'Multiple Choices',\n\t\t\t301 => 'Moved Permanently',\n\t\t\t302 => 'Found', // 1.1\n\t\t\t303 => 'See Other',\n\t\t\t304 => 'Not Modified',\n\t\t\t305 => 'Use Proxy',\n\t\t\t// 306 is deprecated but reserved\n\t\t\t307 => 'Temporary Redirect',\n\n\t\t\t// Client Error 4xx\n\t\t\t400 => 'Bad Request',\n\t\t\t401 => 'Unauthorized',\n\t\t\t402 => 'Payment Required',\n\t\t\t403 => 'Forbidden',\n\t\t\t404 => 'Not Found',\n\t\t\t405 => 'Method Not Allowed',\n\t\t\t406 => 'Not Acceptable',\n\t\t\t407 => 'Proxy Authentication Required',\n\t\t\t408 => 'Request Timeout',\n\t\t\t409 => 'Conflict',\n\t\t\t410 => 'Gone',\n\t\t\t411 => 'Length Required',\n\t\t\t412 => 'Precondition Failed',\n\t\t\t413 => 'Request Entity Too Large',\n\t\t\t414 => 'Request-URI Too Long',\n\t\t\t415 => 'Unsupported Media Type',\n\t\t\t416 => 'Requested Range Not Satisfiable',\n\t\t\t417 => 'Expectation Failed',\n\n\t\t\t// Server Error 5xx\n\t\t\t500 => 'Internal Server Error',\n\t\t\t501 => 'Not Implemented',\n\t\t\t502 => 'Bad Gateway',\n\t\t\t503 => 'Service Unavailable',\n\t\t\t504 => 'Gateway Timeout',\n\t\t\t505 => 'HTTP Version Not Supported',\n\t\t\t509 => 'Bandwidth Limit Exceeded'\n\t\t);\n\t\tif(isset($_status[$code])) {\n\t\t\theader('HTTP/1.1 '.$code.' '.$_status[$code]);\n\t\t}\n\t}", "public function error(int $type)\n\t{\n\t\tswitch ($type) {\n\t\t\tcase 404:\n\t\t\t\theader(\"HTTP/2 404 Not Found\");\n\t\t\t\t$this->render($this->vars['404']);\n\t\t\tbreak;\n\n\t\t\tcase 401:\n\t\t\t\theader(\"HTTP/2 401 Unauthorized\");\n\t\t\t\t$this->render($this->vars['401']);\n\t\t\tbreak;\n\n\t\t\tcase 403:\n\t\t\t\theader(\"HTTP/2 401 Forbidden\");\n\t\t\t\t$this->render($this->vars['403']);\n\t\t\tbreak;\n\t\t}\t\t\n\t}", "public function setStatusCode($code, $text);", "function http_send_data($data) {}", "public function warning($code, $data) \n {\n header(\"content-type: application/json\");\n $response = json_encode([\n 'warning' => [\n 'status' => $code,\n 'message' => $data\n ]\n ]);\n echo $response;\n // exit(); // do not have to exit\n }", "public function testSendError()\n {\n $this->setMockHttpResponse('JsonPurchaseResponseError.txt');\n $response = $this->request->send();\n\n $data = $this->request->getData();\n\n $code = $response->response->getStatusCode();\n $this->assertFalse($response->isSuccessful());\n $this->assertEquals(500, $data['amount']);\n $this->assertEquals(400, $code);\n $this->assertSame('BAD_REQUEST', $response->getCode());\n $this->assertSame(\"This card is not accepted for Test transactions\", $response->getMessage());\n $this->assertNull($response->getTransactionReference());\n $this->assertNull($response->getCardReference());\n }", "function error( $error, $code = '500' ) {\n\t \n\t if ( is_object( $error ) && method_exists( $error, 'get_message' ) ) {\n\t $error = $error->get_message();\n\t }\n\t\n\t\thttp_response_code( $code );\n\t\tdie( $error );\n\t\treturn false;\n\n\t}", "function set_status_header(int $p_code = 200, string $p_text = '') {\n if (flcCommon::is_cli()) {\n return;\n }\n\n /* if (empty($p_code) or !is_numeric($p_code)) {\n $p_text = 'Status code must be numeric';\n $p_code = 500;\n }*/\n\n if (empty($p_text)) {\n is_int($p_code) or $p_code = (int)$p_code;\n\n if (isset(self::$status_codes[$p_code])) {\n $p_text = self::$status_codes[$p_code];\n } else {\n $p_text = '(null)';\n $p_code = 500;\n }\n }\n\n if (strpos(PHP_SAPI, 'cgi') === 0) {\n header('Status: '.$p_code.' '.$p_text, true);\n } else {\n header($this->get_protocol_version().' '.$p_code.' '.$p_text, true, $p_code);\n }\n }", "private function error(string $message, $status = 1)\n {\n $this->printer->printError($message);\n exit($status);\n }", "public function errorAction()\n {\n $code = $this->_request->getParam('errorCode');\n $this->view->errorCode = $code;\n $this->getResponse()->setRawHeader('HTTP/1.1 500 Internal Server Error');\n }", "function internalServerError() {\n header('HTTP/1.0 500 Internal Server Error');\n }", "public static function error($status,$message){\r\n throw new \\Luracast\\Restler\\RestException($status, $message);\r\n }", "public function fail($d, $c = 500) {\n\t\tif (!$this->hdr($c)) return false; // no data sent to client\n\t\treturn self::encode($this->content_type(), $d);\n\t}", "function ErrorHandler($error_level, $error_message, $error_file, $error_line)\n{\n\theader('HTTP/1.1 500 Internal Server Error');\n\tob_get_clean();\n\techo '<div style=\"background: #f1f1f1;padding: 20px;\">';\n\techo '<h3 style=\"margin-left:30px\">Ops there a Error</h3>';\n\techo '<b style=\"margin-left:30px\">Error:</b> ' . $error_message . '<br>';\n\techo '<b style=\"margin-left:30px\">Level:</b> ' . $error_level . '<br>';\n\techo '<b style=\"margin-left:30px\">File:</b> ' . $error_file . '<br>';\n\techo '<b style=\"margin-left:30px\">Line:</b> ' . $error_line . '<br>';\n\techo '<b style=\"margin-left:30px\">PHP:</b> ' . PHP_VERSION . ' (' . PHP_OS . ')<br>';\n\techo '</div>';\n\tdie();\n}", "public static function status404($data=null) {\n\t\tself::response($data,404);\n\t}", "protected function response_error(int $status_code, string $status_message, int $header_code = 200)\n {\n $this->log->write_log('debug', $this->TAG . ': response_error: ');\n $response =\n $this->generate_response(\n VALUE_STATUS_ERROR,\n $status_code,\n $status_message,\n VALUE_DATA_ERROR);\n $this->send($header_code, $response);\n }", "private function send_error($error) {\n header('Content-Type: application/json');\n echo json_encode(array(\n 'error' => $error\n ));\n return;\n }", "private function sendResponseCode(): void\n {\n\n $http = sprintf(\n 'HTTP/%s %s %s',\n $this->versionProtocol,\n $this->responseCode,\n $this->httpCodeText[$this->responseCode]\n );\n\n header($http, true);\n http_response_code($this->responseCode);\n\n }", "public function send() {\n\t\tif (isset($this->_headers['Location']) && $this->_status === 200) {\n\t\t\t$this->statusCode(302);\n\t\t}\n\n\t\t$codeMessage = $this->_statusCodes[$this->_status];\n\t\t$this->_setCookies();\n\t\t$this->_sendHeader(\"{$this->_protocol} {$this->_status} {$codeMessage}\");\n\t\t$this->_setContent();\n\t\t$this->_setContentLength();\n\t\t$this->_setContentType();\n\t\tforeach ($this->_headers as $header => $values) {\n\t\t\tforeach ((array)$values as $value) {\n\t\t\t\t$this->_sendHeader($header, $value);\n\t\t\t}\n\t\t}\n\t\tif ($this->_file) {\n\t\t\t$this->_sendFile($this->_file, $this->_fileRange);\n\t\t\t$this->_file = $this->_fileRange = null;\n\t\t} else {\n\t\t\t$this->_sendContent($this->_body);\n\t\t}\n\t}", "function error500($html = \"\")\n{\n header($_SERVER['SERVER_PROTOCOL'] . ' 500 Internal Server Error');\n exit();\n}", "public function send() {\n header('HTTP/1.0 404 Not Found');\n \n echo $this->getHtml();\n }", "public static function die400(array $data = array())\n {\n header('HTTP/1.1 400 Bad Request');\n\n self::dieJson($data);\n }", "public static function error400($text = '') {\n header(\"{$_SERVER['SERVER_PROTOCOL']} 400 Bad Request\");\n View::render(static::VIEW_ERROR_HTTP, [\n 'code' => 400,\n 'msg' => $text ? $text : 'Bad request.',\n ], static::LAYOUT_ERROR_HTTP, false, App::requestIsAjax());\n static::end(40);\n }", "function internalServerError($message = null){\n\t\t$this->setStatusCode(500);\n\t\t$this->clearOutputBuffer();\n\t\tif(!isset($message)){\n\t\t\t$message = \"Internal server error.\";\n\t\t}\n\t\t$this->_writeStatusMessage($message);\n\t}", "private function reply($data, $status = 200){\n $protocol = (isset($_SERVER['SERVER_PROTOCOL']) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.1');\n header($protocol . ' ' . $status);\n\t\theader('Content-Type: application/json');\n\t\techo json_encode($data);\n\t\texit;\n\t}", "private function send_response($data = [], $code = 200)\n {\n $this->output\n ->set_status_header($code)\n ->set_content_type('application/json', 'utf-8')\n ->set_output(json_encode($data, JSON_PRETTY_PRINT));\n }", "public static function RequestError($code, $msg, $file, $line) {\n\t\tself::$error = true;\n\t\treturn true;\n\t}", "public static function die404(array $data = array())\n {\n header('HTTP/1.1 404 Not Found');\n\n self::dieJson($data);\n }", "public function error500(){\n\t\theader('HTTP/1.0 500 Internal Server Error');\n\t\tdie('500 internal server error');\n\t}", "protected abstract function send_error($ex=null) ;", "public static function getError(\n $message = 'you got an error.',\n $status = 'error',\n $code = 500,\n $data = null\n ) {\n // try {\n self::$errorResponse['error']['message'] = $message;\n self::$errorResponse['error']['status'] = $status;\n self::$errorResponse['error']['code'] = $code;\n $data != null ? self::$errorResponse['error']['data'] = $data : null;\n return self::$errorResponse;\n // } catch (Exception $e) {\n // throw new Exception(\"Something wrong with package.\");\n // }\n }", "public static function assertErrorHttpCode(int $http_code): void\n {\n self::assertIsInt('http_code', $http_code);\n self::assertIsIntRange('http_code', $http_code,\n RB::ERROR_HTTP_CODE_MIN, RB::ERROR_HTTP_CODE_MAX);\n }", "protected function send($data)\n\t{\n\t\t$this->response->setJsonContent($data);\n\t\t$this->response->send();\n\t\texit;\n\t}", "public static function sendOkResponse(){\n http_response_code(200);\n die();\n }", "public static function send400($msg='Malformed request', $detail=null) {\n if ( headers_sent() ) {\n echo(\"Headers sent - they would be:\\n\");\n echo(\"HTTP/1.1 400 \".$msg.\"\\n\");\n if ( is_string($detail) ) echo(\"X-Error-Detail: \".$detail.\"\\n\");\n } else {\n header(\"HTTP/1.1 400 \".$msg);\n if ( is_string($detail) ) header(\"X-Error-Detail: \".$detail);\n }\n }", "function error($message){\n die(json_encode([\"error\"=>true,\"data\"=>$message]));\n}", "public static function error($code = 500, $data = null)\n {\n self::make(View::load(\"error.$code\", $data), $code);\n }" ]
[ "0.6979921", "0.6893637", "0.64687216", "0.6457146", "0.6398474", "0.63745105", "0.6296447", "0.6276583", "0.6218234", "0.61756176", "0.61645305", "0.6156298", "0.6148711", "0.61073655", "0.6062864", "0.6058716", "0.60287654", "0.6024336", "0.5994999", "0.59730434", "0.59444314", "0.59208155", "0.5882316", "0.5871409", "0.5860727", "0.58511657", "0.58418", "0.5820719", "0.5816951", "0.58133286", "0.57997245", "0.579865", "0.5796617", "0.5795766", "0.5791358", "0.5786391", "0.57785857", "0.577123", "0.57685065", "0.5744782", "0.57233435", "0.5721566", "0.56973", "0.56914485", "0.5678379", "0.56708956", "0.5654539", "0.56515825", "0.56460434", "0.5645825", "0.5638742", "0.56283545", "0.56093174", "0.5605987", "0.560592", "0.5605305", "0.56012714", "0.5600236", "0.55941886", "0.55931026", "0.5578546", "0.55562234", "0.555436", "0.5548439", "0.55410105", "0.5530022", "0.5529144", "0.5528546", "0.5520043", "0.55175716", "0.55104256", "0.5501278", "0.5489038", "0.5482514", "0.54785866", "0.5476784", "0.5471692", "0.54645413", "0.54603153", "0.54556245", "0.5447573", "0.54399645", "0.54389304", "0.54382795", "0.5433873", "0.54293466", "0.5425486", "0.5423699", "0.5418691", "0.5416265", "0.5412888", "0.5412545", "0.54004693", "0.539863", "0.5394474", "0.53926426", "0.5391704", "0.53886175", "0.53827494", "0.53794956" ]
0.82415813
0
Get the foreground color of a jqueryui theme.
public static function get_foreground_color( $theme ) { if( 'black-tie' == $theme ) $color = '#eeeeee'; else if( 'blitzer' == $theme ) $color = '#ffffff'; else if( 'cupertino' == $theme ) $color = '#222222'; else if( 'dark-hive' == $theme ) $color = '#ffffff'; else if( 'dot-luv' == $theme ) $color = '#f6f6f6'; else if( 'eggplant' == $theme ) $color = '#ffffff'; else if( 'excite-bike' == $theme ) $color = '#e69700'; else if( 'flick' == $theme ) $color = '#444444'; else if( 'hot-sneaks' == $theme ) $color = '#e1e463'; else if( 'humanity' == $theme ) $color = '#ffffff'; else if( 'le-frog' == $theme ) $color = '#ffffff'; else if( 'mint-choc' == $theme ) $color = '#e3ddc9'; else if( 'overcast' == $theme ) $color = '#444444'; else if( 'pepper-grinder' == $theme ) $color = '#453821'; else if( 'redmond' == $theme ) $color = '#ffffff'; else if( 'smoothness' == $theme ) $color = '#222222'; else if( 'south-street' == $theme ) $color = '#433f38'; else if( 'start' == $theme ) $color = '#eaf5f7'; else if( 'sunny' == $theme ) $color = '#ffffff'; else if( 'swanky-purse' == $theme ) $color = '#eacd86'; else if( 'trontastic' == $theme ) $color = '#222222'; else if( 'ui-darkness' == $theme ) $color = '#ffffff'; else if( 'ui-lightness' == $theme ) $color = '#ffffff'; else if( 'vader' == $theme ) $color = '#ffffff'; else $color = '#ffffff'; return $color; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function getForegroundColors() {\n\t\treturn array_keys( self::foreground_colors );\n\t}", "public static function get_background_color( $theme )\n {\n if( 'black-tie' == $theme ) $background = '#333333';\n else if( 'blitzer' == $theme ) $background = '#cc0000';\n else if( 'cupertino' == $theme ) $background = '#deedf7';\n else if( 'dark-hive' == $theme ) $background = '#444444';\n else if( 'dot-luv' == $theme ) $background = '#0b3e6f';\n else if( 'eggplant' == $theme ) $background = '#30273a';\n else if( 'excite-bike' == $theme ) $background = '#f9f9f9';\n else if( 'flick' == $theme ) $background = '#dddddd';\n else if( 'hot-sneaks' == $theme ) $background = '#35414f';\n else if( 'humanity' == $theme ) $background = '#cb842e';\n else if( 'le-frog' == $theme ) $background = '#3a8104';\n else if( 'mint-choc' == $theme ) $background = '#453326';\n else if( 'overcast' == $theme ) $background = '#dddddd';\n else if( 'pepper-grinder' == $theme ) $background = '#ffffff';\n else if( 'redmond' == $theme ) $background = '#5c9ccc';\n else if( 'smoothness' == $theme ) $background = '#cccccc';\n else if( 'south-street' == $theme ) $background = '#ece8da';\n else if( 'start' == $theme ) $background = '#2191c0';\n else if( 'sunny' == $theme ) $background = '#817865';\n else if( 'swanky-purse' == $theme ) $background = '#261803';\n else if( 'trontastic' == $theme ) $background = '#9fda58';\n else if( 'ui-darkness' == $theme ) $background = '#333333';\n else if( 'ui-lightness' == $theme ) $background = '#f6a828';\n else if( 'vader' == $theme ) $background = '#888888';\n else $background = 'white';\n\n return $background;\n }", "public function getForegroundColors() {\n\t\treturn array_keys($this->foreground_colors);\n\t}", "public function getForegroundColors() {\n return array_keys($this->foreground_colors);\n }", "public function getForegroundColors() {\n\t\t\treturn array_keys($this->foreground_colors);\n\t\t}", "public function getForegroundColors() {\n\t\t\treturn array_keys($this->foreground_colors);\n\t\t}", "public function getForegroundColors()\n {\n return array_keys($this->_foregroundColors);\n }", "function habitat_wp_getcolor() {\n if (!defined('HABITAT_ENVIRONMENT')) {\n return NULL;\n }\n switch (HABITAT_ENVIRONMENT) {\n case 'Dev':\n // Red.\n return '#E22222';\n\n case 'Test':\n // Orange.\n return '#E29522';\n }\n return NULL;\n\n}", "public function getTheme();", "public function getForegroundColors(): array\n {\n\t\treturn array_keys($this->foregroundColors);\n\t}", "public function get_color( $ufc = null){\n\t\t$ufc = empty( $ufc ) ? self::$_ufc : $ufc;\n\n\t\t$index = (int) str_replace(self::VAR_PREFIX, \"\", $ufc);\n\n\t\t$theme_colors = self::$_theme_colors->colors;\n\n\t\tforeach($theme_colors as $key => $theme_color){\n\t\t\tif( $key === $index ) return $theme_color->color;\n\t\t}\n\n\t\treturn false;\n\t}", "public function getColorAccent()\n {\n return $this->colorAccent;\n }", "function tc_get_skin_color() {\r\n $_skin_map = TC_init::$instance -> skin_color_map;\r\n $_active_skin = str_replace('.min.', '.', basename( TC_init::$instance -> tc_active_skin() ) );\r\n //falls back to blue ( default #08c ) if not defined\r\n return ( false != $_active_skin && isset($_skin_map[$_active_skin]) ) ? $_skin_map[$_active_skin] : '#08c';\r\n }", "public function getAccentColor()\n {\n return isset($this->accent_color) ? $this->accent_color : '';\n }", "public function getAppearanceTextColor() {}", "function inactive_tab_foreground() {\n\t\t\t// Matches field # of register_setting\n\t\t\t$options = get_option( 'subpages_as_tabs_options' );\n?>\n\t\t\t<input id=\"spat_inactive_tab_foreground\" name=\"subpages_as_tabs_options[inactive_tab_foreground]\" class=\"color_pick\" type=\"color\" size=\"7\" value=\"<?php _e( $options['inactive_tab_foreground'] );?>\" />\n<?php\n\t\t}", "public function jb_get_color_scheme() {\n $color_scheme_option = get_theme_mod( 'color_scheme', 'default' );\n $color_schemes = $this->jb_get_color_schemes();\n\n if ( array_key_exists( $color_scheme_option, $color_schemes ) ) {\n return $color_schemes[ $color_scheme_option ]['colors'];\n }\n\n return apply_filters( 'jb_get_color_scheme', $color_schemes['default']['colors'] );\n }", "public function get_admin_color_scheme() {\n\t\tglobal $_wp_admin_css_colors;\n\n\t\t$color_scheme = sanitize_html_class( get_user_option( 'admin_color' ), 'fresh' );\n\n\t\t// It's possible to have a color scheme set that is no longer registered.\n\t\tif ( empty( $_wp_admin_css_colors[ $color_scheme ] ) ) {\n\t\t\t$color_scheme = 'fresh';\n\t\t}\n\n\t\treturn $_wp_admin_css_colors[ $color_scheme ]->colors;\n\t}", "public function getTheme () {\n $admin = Yii::app()->settings;\n \n if ($admin->enforceDefaultTheme && $admin->defaultTheme !== null) {\n $theme = $this->getDefaultTheme ();\n if ($theme) return $theme;\n } \n \n return $this->theme;\n }", "public static function getTheme ()\n {\n $config = Zend_Registry::get('config');\n\n return $config->app->theme;\n }", "protected function _getColour() {\n return $this->_getFromConfig(\"button_colour\");\n }", "public function getCurrentTheme()\n {\n $status = $this->runWpCliCommand('theme', 'status');\n $status = preg_replace(\"/\\033\\[[^m]*m/\", '', $status); // remove formatting\n\n preg_match_all(\"/^[^A-Z]*([A-Z]+)[^a-z]+([a-z\\-]+).*$/m\", $status, $matches);\n\n foreach ($matches[1] as $lineNumber => $status) {\n if (Strings::contains($status, 'A')) {\n return $matches[2][$lineNumber];\n }\n }\n\n return null; // this should never happen, there is always some activate theme\n }", "private function get_admin_color_scheme(){\n\n global $_wp_admin_css_colors;\n\n if (\n is_array( $_wp_admin_css_colors )\n && count( $_wp_admin_css_colors )\n ) {\n\n $current_user = wp_get_current_user();\n $color_scheme = get_user_option( 'admin_color', $current_user->ID );\n\n if (\n empty( $color_scheme )\n || !isset( $_wp_admin_css_colors[ $color_scheme ] )\n ) {\n $color_scheme = 'fresh';\n }\n\n if ( isset($_wp_admin_css_colors[ $color_scheme ]) && isset($_wp_admin_css_colors[ $color_scheme ]->colors) ) {\n return $_wp_admin_css_colors[ $color_scheme ]->colors;\n }\n\n }\n\n // Fallback, just in case\n return array( '#333', '#999', '#881111', '#a80000' );\n\n }", "public function getColor()\n {\n return $this->color ?? $this->defaultColor;\n }", "public function getDesignTheme();", "public function getColor()\r\n {\r\n $out = array();\r\n\r\n// if ($this->getChatHelper()->getWidgetApi() == 'new') {\r\n if (strlen($this->getChatHelper()->getThemePrimaryColor()) > 0) {\r\n $out[] = \"\\$zopim.livechat.theme.setColor('#\" . ltrim($this->getChatHelper()->getThemePrimaryColor(), '#') . \"', 'primary')\";\r\n }\r\n\r\n // Specify Badge Color\r\n if ($this->getChatHelper()->getWindowTheme() == 'simple' && $this->getChatHelper()->getBadgeColorPrimary()) {\r\n switch ($this->getChatHelper()->getBadgeColorPrimary()){\r\n case 'badge_color_primary':\r\n $color = $this->getChatHelper()->getThemePrimaryColor();\r\n break;\r\n case 'badge_color_customized':\r\n default:\r\n $color = $this->getChatHelper()->getBadgeColor();\r\n if (empty($color)) {\r\n $color = $this->getChatHelper()->getThemePrimaryColor();\r\n }\r\n break;\r\n\r\n }\r\n if (!empty($color)) {\r\n $out[] = \"\\$zopim.livechat.theme.setColor('#\" . ltrim($color, '#') . \"', 'badge')\";\r\n }\r\n }\r\n\r\n // Specify Bubble Color\r\n if ($this->getChatHelper()->getWindowTheme() == 'classic' && $this->getChatHelper()->getBubbleColorPrimary()) {\r\n switch ($this->getChatHelper()->getBubbleColorPrimary()) {\r\n case 'bubble_color_primary':\r\n $color = $this->getChatHelper()->getThemePrimaryColor();\r\n break;\r\n case 'bubble_color_customized':\r\n default:\r\n $color = $this->getChatHelper()->getBubbleColor();\r\n if (empty($color)) {\r\n $color = $this->getChatHelper()->getThemePrimaryColor();\r\n }\r\n break;\r\n }\r\n if (!empty($color)) {\r\n $out[] = \"\\$zopim.livechat.theme.setColor('#\" . ltrim($color, '#') . \"', 'bubble')\";\r\n }\r\n }\r\n\r\n if (count($out) > 0) {\r\n $out[] = \"\\$zopim.livechat.theme.reload()\";\r\n }\r\n\r\n// } else {\r\n// if (strlen($this->getChatHelper()->getThemePrimaryColor()) > 0) {\r\n// $out[] = \"\\$zopim.livechat.window.setColor('#\" . ltrim($this->getChatHelper()->getThemePrimaryColor(), '#') . \"')\";\r\n// }\r\n//\r\n// if (strlen($this->getChatHelper()->getBubbleColor()) > 0) {\r\n// $out[] = \"\\$zopim.livechat.bubble.setColor('#\" . ltrim($this->getChatHelper()->getBubbleColor(), '#') . \"')\";\r\n// }\r\n// }\r\n\r\n if (!empty($out)) {\r\n return implode(';' . \"\\n\", $out). ';' . \"\\n\";\r\n }\r\n return null;\r\n }", "function get_current_theme()\n {\n }", "public function getMainColor()\n {\n return isset($this->main_color) ? $this->main_color : '';\n }", "protected function _getCurrentTheme()\n {\n return $this->_coreRegistry->registry('current_theme');\n }", "function active_tab_foreground() {\n\t\t\t// Matches field # of register_setting\n\t\t\t$options = get_option( 'subpages_as_tabs_options' );\n?>\n\t\t\t<input id=\"spat_active_tab_foreground\" name=\"subpages_as_tabs_options[active_tab_foreground]\" class=\"color_pick\" type=\"color\" size=\"7\" value=\"<?php _e( $options['active_tab_foreground'] );?>\" />\n<?php\n\t\t}", "function get_background_color()\n {\n }", "public function get_default_theme_style() {\n\t\t\treturn 'pink';\n\t\t}", "public function getTheme()\n {\n return $this->theme;\n }", "public function getTheme()\n {\n return $this->theme;\n }", "public function getTheme()\n {\n return $this->theme;\n }", "function twentyfifteen_get_color_scheme() {\n\t$color_scheme_option = get_theme_mod( 'color_scheme', 'default' );\n\t$color_schemes = twentyfifteen_get_color_schemes();\n\n\tif ( array_key_exists( $color_scheme_option, $color_schemes ) ) {\n\t\treturn $color_schemes[ $color_scheme_option ]['colors'];\n\t}\n\n\treturn $color_schemes['default']['colors'];\n}", "public function getFontColor()\n {\n if (array_key_exists(\"fontColor\", $this->_propDict)) {\n return $this->_propDict[\"fontColor\"];\n } else {\n return null;\n }\n }", "public function getStyle() {\n // have to handle it here if set, so we can show apps in dark mode.\n $darkmode = '';\n if ($this->getRequest()->getSession()->get('darkmode') === 'true') {\n statsd_bump('dagd_dark_mode_active');\n }\n\n return array(\n $darkmode,\n );\n }", "public function getBackgroundColor() {}", "public function getBackgroundColor() {}", "function get_at_colors() {\n $scheme = theme_get_setting('color_schemes');\n if (!$scheme) {\n $scheme = 'colors-default.css';\n }\n if (isset($_COOKIE[\"atcolors\"])) {\n $scheme = $_COOKIE[\"atcolors\"];\n }\n return $scheme;\n}", "function pl_bg_color(){\n\t\n\tif( pl_check_color_hash( get_set_color( 'the_bg' ) ) )\n\t\treturn get_set_color( 'the_bg' );\n\telse \n\t\treturn 'FFFFFF';\t\n}", "public function getBackgroundColor() {}", "public function getApplyDark() {\r\n return $this->bApplyDark;\r\n }", "public function getTheme()\n\t{\n\t\treturn $this->theme;\n\t}", "public function getMainColor()\n {\n return $this->mainColor;\n }", "public function getColorPalette() {\n\t\treturn 'XLSConfig::$systemPalette';\n\t}", "public function get_theme() {\n return $this->_theme;\n }", "public function getThemeBackgroundColor(): ?string\n {\n return $this->getClaimSafe(SSODataClaimsInterface::CLAIM_THEME_BACKGROUND_COLOR);\n }", "function current_theme()\n {\n return current_theme();\n }", "public static function getTheme()\n {\n $config = parse_ini_file(self::$configuration, false);\n return $config['theme'];\n }", "public function get_bg_colour() {\n\t\treturn $this->bg_colour;\n\t}", "function uabb_theme_base_color( $default ) {\n\t$color = '';\n\n\tif ( $default == '' ) {\n\n\t\t$color = apply_filters( 'uabb/global/theme_color', $default );\n\t\t\n\t\tif ( $color == '' ) {\n\t\t\t$color = apply_filters( 'uabb_theme_theme_color', $default );\n\t\t}\n\t} else {\n\t\t$color = $default;\n\t}\n\n\treturn $color;\n}", "public function getTheme() {\n $templateFacade = $this->dependencyInjector->get('ride\\\\library\\\\template\\\\TemplateFacade');\n\n return $templateFacade->getDefaultTheme();\n }", "public static function color()\n {\n return null;\n }", "public static function color()\n {\n return null;\n }", "public function getSelectedTheme()\n {\n $selectedTheme = OW::getConfig()->getValue('base', 'selectedTheme');\n\n if ( empty($this->themeObjects[$selectedTheme]) )\n {\n $this->themeObjects[$selectedTheme] = $this->themeService->getThemeObjectByKey(OW::getConfig()->getValue('base', 'selectedTheme'));\n }\n\n return $this->themeObjects[$selectedTheme];\n }", "function getCaptionFontColor() {\n\t//Return a hex color code without #\n\t//FFC30C - Yellow Color\n return \"666666\";\n}", "public function getInteriorColor() {}", "public function getInteriorColor() {}", "public function getInteriorColor() {}", "public function color()\n\t{\n\t\treturn $this->fill_color;\n\t}", "public function getCurrentTheme()\n {\n return $theme = $this->config->theming->theme;\n }", "public function get_color()\n\t{\n\t\treturn $this->color;\n\t}", "public function getCurrentTextColor() {\n return $currentTextColor;\n }", "public function getThemeTextColor(): ?string\n {\n return $this->getClaimSafe(SSODataClaimsInterface::CLAIM_THEME_TEXT_COLOR);\n }", "public static function get_core_default_theme()\n {\n }", "public function getCookieMessageTextColor() {\n return $this->_dataHelper->getColor('message_text_color');\n }", "public function getTextColor() {}", "public function getTextColor() {}", "public function getColor()\n {\n if (array_key_exists(\"color\", $this->_propDict)) {\n return $this->_propDict[\"color\"];\n } else {\n return null;\n }\n }", "public function getColor() {\n\t\t\treturn $this->_color;\n\t\t}", "function timezonecalculator_get_admin_colors() {\r\n\r\n\t/*\r\n\tdefault colors = fresh\r\n\t*/\r\n\r\n\t$available_admin_colors=array(\"fresh\" => array(\"#464646\", \"#6D6D6D\", \"#F1F1F1\", \"#DFDFDF\"), \"classic\" => array(\"#073447\", \"#21759B\", \"#EAF3FA\", \"#BBD8E7\") );\r\n\r\n\t$current_color = get_user_option('admin_color');\r\n\tif (strlen($current_color)<1)\r\n\t\t$current_color=\"fresh\";\r\n\r\n\t/*\r\n\tinclude user-defined color schemes\r\n\t*/\r\n\r\n\t$timezonecalculator_available_admin_colors = apply_filters('timezonecalculator_available_admin_colors', array());\r\n\r\n\tif (!empty($timezonecalculator_available_admin_colors) && is_array($timezonecalculator_available_admin_colors))\r\n\t\tforeach($timezonecalculator_available_admin_colors as $key => $available_admin_color)\r\n\t\t\tif (is_array($available_admin_color) && sizeof($available_admin_color)==4)\r\n\t\t\t\tif (!array_key_exists($key, $available_admin_colors))\r\n\t\t\t\t\t$available_admin_colors[$key]=$timezonecalculator_available_admin_colors[$key];\r\n\r\n\tif (!array_key_exists($current_color, $available_admin_colors))\r\n\t\treturn $available_admin_colors[\"fresh\"];\r\n\telse\r\n\t\treturn $available_admin_colors[$current_color];\r\n}", "function get_themes()\n {\n }", "protected function getTheme()\n {\n return !empty($_GET['theme']) ? $_GET['theme'] : 'basic';\n }", "public function getColor()\n\t{\n\t\treturn $this->color;\n\t}", "public function getColor() {\n\t\treturn $this->color;\n\t}", "public function getAccentColor(): ?int\n {\n return $this->accent_color;\n }", "public function colors()\n {\n $color = $this->backgroundColor();\n return array($color, Kronolith::foregroundColor($color));\n }", "public function getColor()\n {\n $colorAttribute = $this->helper->getColorConfig();\n\n return $this->getAttribute($colorAttribute);\n }", "function theme_colors_css() {\n if (is_customize_preview()) {\n $colors_css = get_theme_mod('colors_css');\n if ($colors_css) {\n echo \"$colors_css\\n\";\n }\n }\n}", "public function getColor()\n {\n return $this->color;\n }", "public function getColor()\n {\n return $this->color;\n }", "public function getColor()\n {\n return $this->color;\n }", "public static function getTheme()\n {\n $className = static::getCalledClass();\n while (!StringHandler::endsWith($className, \"App\")) {\n $className = get_parent_class($className);\n if ($className === false) {\n $className = \"\";\n break;\n }\n if (strpos($className, \"\\\\\") !== 0) {\n $className = \"\\\\\" . $className;\n }\n }\n $theme = Kernel::getService('em')\n ->getRepository('RZ\\Roadiz\\Core\\Entities\\Theme')\n ->findOneBy(['className' => $className]);\n return $theme;\n }", "function extra_global_accent_color() {\n\t$color = et_get_option( 'accent_color', '#00a8ff' );\n\n\tif ( 0 !== strpos( $color, \"#\" ) ) {\n\t\t$color = \"#\" . $color;\n\t}\n\n\treturn $color;\n}", "public function getAdminTheme()\n {\n if ($this->sc->isGranted('IS_AUTHENTICATED_FULLY')) {\n $theme = $this->sc->getToken()->getUser()->getAdminTheme();\n }\n\n return empty($theme) ? 'default' : $theme;\n }", "function getColor() {\n\t\treturn $this->color;\n\t}", "public function getTextColor() {\n\t\treturn $this->text_color;\n\t}", "function getColor() { return $this->readColor(); }", "public function getTheme ()\r\n\t{\r\n\t\treturn Tg_Site::getTheme($this->themeId);\r\n\t}", "function twentyfifteen_color_scheme_css() {\n\t$color_scheme_option = get_theme_mod( 'color_scheme', 'default' );\n\n\t// Don't do anything if the default color scheme is selected.\n\tif ( 'default' === $color_scheme_option ) {\n\t\treturn;\n\t}\n\n\t// If we get this far, we have custom styles. Let's do this.\n\t$color_scheme = twentyfifteen_get_color_scheme();\n\n\t// Convert main and sidebar text hex color to rgba.\n\t$color_main_text_rgb = twentyfifteen_hex2rgb( $color_scheme[3] );\n\t$color_sidebar_link_rgb = twentyfifteen_hex2rgb( $color_scheme[4] );\n\n\t$color_background = $color_scheme[0];\n\t$color_sidebar_background = $color_scheme[1];\n\t$color_box_background = $color_scheme[2];\n\t$color_main_text = $color_scheme[3];\n\t$color_secondary_text = vsprintf( 'rgba( %1$s, %2$s, %3$s, 0.7)', $color_main_text_rgb );\n\t$color_border = vsprintf( 'rgba( %1$s, %2$s, %3$s, 0.1)', $color_main_text_rgb );\n\t$color_border_focus = vsprintf( 'rgba( %1$s, %2$s, %3$s, 0.3)', $color_main_text_rgb );\n\t$color_sidebar_link = $color_scheme[4];\n\t$color_sidebar_text = vsprintf( 'rgba( %1$s, %2$s, %3$s, 0.7)', $color_sidebar_link_rgb );\n\t$color_sidebar_border = vsprintf( 'rgba( %1$s, %2$s, %3$s, 0.1)', $color_sidebar_link_rgb );\n\t$color_sidebar_border_focus = vsprintf( 'rgba( %1$s, %2$s, %3$s, 0.3)', $color_sidebar_link_rgb );\n\t$color_meta_box = $color_scheme[5];\n\n\t$css = '\n\t\t/* Color Scheme */\n\n\t\t/* Background Color */\n\t\tbody {\n\t\t\tbackground-color: %1$s;\n\t\t}\n\n\t\t/* Sidebar Background Color */\n\t\tbody:before,\n\t\t.site-header {\n\t\t\tbackground-color: %2$s;\n\t\t}\n\n\t\t/* Box Background Color */\n\t\t.post-navigation,\n\t\t.pagination,\n\t\t.secondary,\n\t\t.site-footer,\n\t\t.hentry,\n\t\t.page-header,\n\t\t.page-content,\n\t\t.comments-area {\n\t\t\tbackground-color: %3$s;\n\t\t}\n\n\t\t/* Box Background Color */\n\t\tbutton,\n\t\tinput[type=\"button\"],\n\t\tinput[type=\"reset\"],\n\t\tinput[type=\"submit\"],\n\t\t.pagination .prev,\n\t\t.pagination .next,\n\t\t.pagination .prev:before,\n\t\t.pagination .next:before,\n\t\t.widget_calendar tbody a,\n\t\t.widget_calendar tbody a:hover,\n\t\t.widget_calendar tbody a:focus,\n\t\t.entry-content .page-links a,\n\t\t.entry-content .page-links a:hover,\n\t\t.entry-content .page-links a:focus,\n\t\t.sticky-post {\n\t\t\tcolor: %3$s;\n\t\t}\n\n\t\t/* Main Text Color */\n\t\tbutton,\n\t\tinput[type=\"button\"],\n\t\tinput[type=\"reset\"],\n\t\tinput[type=\"submit\"],\n\t\t.pagination .prev,\n\t\t.pagination .next,\n\t\t.widget_calendar tbody a,\n\t\t.page-links a,\n\t\t.sticky-post {\n\t\t\tbackground-color: %4$s;\n\t\t}\n\n\t\t/* Main Text Color */\n\t\tbody,\n\t\tblockquote cite,\n\t\tblockquote small,\n\t\ta,\n\t\t.dropdown-toggle:after,\n\t\t.image-navigation a:hover,\n\t\t.image-navigation a:focus,\n\t\t.comment-navigation a:hover,\n\t\t.comment-navigation a:focus,\n\t\t.widget-title,\n\t\t.entry-footer a:hover,\n\t\t.entry-footer a:focus,\n\t\t.comment-metadata a:hover,\n\t\t.comment-metadata a:focus,\n\t\t.pingback .edit-link a:hover,\n\t\t.pingback .edit-link a:focus,\n\t\t.comment-list .reply a:hover,\n\t\t.comment-list .reply a:focus,\n\t\t.site-info a:hover,\n\t\t.site-info a:focus {\n\t\t\tcolor: %4$s;\n\t\t}\n\n\t\t/* Main Text Color */\n\t\t.entry-content a,\n\t\t.entry-summary a,\n\t\t.page-content a,\n\t\t.comment-content a,\n\t\t.pingback .comment-body > a,\n\t\t.author-description a,\n\t\t.taxonomy-description a,\n\t\t.textwidget a,\n\t\t.entry-footer a:hover,\n\t\t.comment-metadata a:hover,\n\t\t.pingback .edit-link a:hover,\n\t\t.comment-list .reply a:hover,\n\t\t.site-info a:hover {\n\t\t\tborder-color: %4$s;\n\t\t}\n\n\t\t/* Secondary Text Color */\n\t\tbutton:hover,\n\t\tbutton:focus,\n\t\tinput[type=\"button\"]:hover,\n\t\tinput[type=\"button\"]:focus,\n\t\tinput[type=\"reset\"]:hover,\n\t\tinput[type=\"reset\"]:focus,\n\t\tinput[type=\"submit\"]:hover,\n\t\tinput[type=\"submit\"]:focus,\n\t\t.pagination .prev:hover,\n\t\t.pagination .prev:focus,\n\t\t.pagination .next:hover,\n\t\t.pagination .next:focus,\n\t\t.widget_calendar tbody a:hover,\n\t\t.widget_calendar tbody a:focus,\n\t\t.page-links a:hover,\n\t\t.page-links a:focus {\n\t\t\tbackground-color: %4$s; /* Fallback for IE7 and IE8 */\n\t\t\tbackground-color: %5$s;\n\t\t}\n\n\t\t/* Secondary Text Color */\n\t\tblockquote,\n\t\ta:hover,\n\t\ta:focus,\n\t\t.main-navigation .menu-item-description,\n\t\t.post-navigation .meta-nav,\n\t\t.post-navigation a:hover .post-title,\n\t\t.post-navigation a:focus .post-title,\n\t\t.image-navigation,\n\t\t.image-navigation a,\n\t\t.comment-navigation,\n\t\t.comment-navigation a,\n\t\t.widget,\n\t\t.author-heading,\n\t\t.entry-footer,\n\t\t.entry-footer a,\n\t\t.taxonomy-description,\n\t\t.page-links > .page-links-title,\n\t\t.entry-caption,\n\t\t.comment-author,\n\t\t.comment-metadata,\n\t\t.comment-metadata a,\n\t\t.pingback .edit-link,\n\t\t.pingback .edit-link a,\n\t\t.post-password-form label,\n\t\t.comment-form label,\n\t\t.comment-notes,\n\t\t.comment-awaiting-moderation,\n\t\t.logged-in-as,\n\t\t.form-allowed-tags,\n\t\t.no-comments,\n\t\t.site-info,\n\t\t.site-info a,\n\t\t.wp-caption-text,\n\t\t.gallery-caption,\n\t\t.comment-list .reply a {\n\t\t\tcolor: %4$s; /* Fallback for IE7 and IE8 */\n\t\t\tcolor: %5$s;\n\t\t}\n\n\t\t/* Secondary Text Color */\n\t\tblockquote,\n\t\t.logged-in-as a:hover,\n\t\t.comment-author a:hover {\n\t\t\tborder-color: %4$s; /* Fallback for IE7 and IE8 */\n\t\t\tborder-color: %5$s;\n\t\t}\n\n\t\t/* Border Color */\n\t\thr,\n\t\t.dropdown-toggle:hover,\n\t\t.dropdown-toggle:focus {\n\t\t\tbackground-color: %4$s; /* Fallback for IE7 and IE8 */\n\t\t\tbackground-color: %6$s;\n\t\t}\n\n\t\t/* Border Color */\n\t\tpre,\n\t\tabbr[title],\n\t\ttable,\n\t\tth,\n\t\ttd,\n\t\tinput,\n\t\ttextarea,\n\t\t.main-navigation ul,\n\t\t.main-navigation li,\n\t\t.post-navigation,\n\t\t.pagination,\n\t\t.comment-navigation,\n\t\t.widget li,\n\t\t.widget_categories .children,\n\t\t.widget_nav_menu .sub-menu,\n\t\t.widget_pages .children,\n\t\t.site-header,\n\t\t.site-footer,\n\t\t.hentry + .hentry,\n\t\t.author-info,\n\t\t.entry-content .page-links a,\n\t\t.page-links > span,\n\t\t.page-header,\n\t\t.comments-area,\n\t\t.comment-list + .comment-respond,\n\t\t.comment-list article,\n\t\t.comment-list .pingback,\n\t\t.comment-list .trackback,\n\t\t.comment-list .reply a,\n\t\t.no-comments {\n\t\t\tborder-color: %4$s; /* Fallback for IE7 and IE8 */\n\t\t\tborder-color: %6$s;\n\t\t}\n\n\t\t.post-navigation .nav-previous:not(.has-post-thumbnail) + .nav-next:not(.has-post-thumbnail) {\n\t\t\tborder-color: %6$s;\n\t\t}\n\n\t\t/* Border Focus Color */\n\t\ta:focus,\n\t\tbutton:focus,\n\t\tinput:focus {\n\t\t\toutline-color: %4$s; /* Fallback for IE7 and IE8 */\n\t\t\toutline-color: %7$s;\n\t\t}\n\n\t\tinput:focus,\n\t\ttextarea:focus {\n\t\t\tborder-color: %4$s; /* Fallback for IE7 and IE8 */\n\t\t\tborder-color: %7$s;\n\t\t}\n\n\t\t/* Sidebar Link Color */\n\t\t.secondary-toggle:before {\n\t\t\tcolor: %8$s;\n\t\t}\n\n\t\t.site-title a,\n\t\t.site-description {\n\t\t\tcolor: %8$s;\n\t\t}\n\n\t\t/* Sidebar Text Color */\n\t\t.site-title a:hover,\n\t\t.site-title a:focus {\n\t\t\tcolor: %9$s;\n\t\t}\n\n\t\t/* Sidebar Border Color */\n\t\t.secondary-toggle {\n\t\t\tborder-color: %8$s; /* Fallback for IE7 and IE8 */\n\t\t\tborder-color: %10$s;\n\t\t}\n\n\t\t/* Sidebar Border Focus Color */\n\t\t.secondary-toggle:hover,\n\t\t.secondary-toggle:focus {\n\t\t\tborder-color: %8$s; /* Fallback for IE7 and IE8 */\n\t\t\tborder-color: %11$s;\n\t\t}\n\n\t\t.site-title a {\n\t\t\toutline-color: %8$s; /* Fallback for IE7 and IE8 */\n\t\t\toutline-color: %11$s;\n\t\t}\n\n\t\t/* Meta Background Color */\n\t\t.entry-footer {\n\t\t\tbackground-color: %12$s;\n\t\t}\n\n\t\t@media screen and (min-width: 38.75em) {\n\t\t\t/* Main Text Color */\n\t\t\t.page-header {\n\t\t\t\tborder-color: %4$s;\n\t\t\t}\n\t\t}\n\n\t\t@media screen and (min-width: 59.6875em) {\n\t\t\t/* Make sure its transparent on desktop */\n\t\t\t.site-header,\n\t\t\t.secondary {\n\t\t\t\tbackground-color: transparent;\n\t\t\t}\n\n\t\t\t/* Sidebar Background Color */\n\t\t\t.widget button,\n\t\t\t.widget input[type=\"button\"],\n\t\t\t.widget input[type=\"reset\"],\n\t\t\t.widget input[type=\"submit\"],\n\t\t\t.widget_calendar tbody a,\n\t\t\t.widget_calendar tbody a:hover,\n\t\t\t.widget_calendar tbody a:focus {\n\t\t\t\tcolor: %2$s;\n\t\t\t}\n\n\t\t\t/* Sidebar Link Color */\n\t\t\t.secondary a,\n\t\t\t.dropdown-toggle:after,\n\t\t\t.widget-title,\n\t\t\t.widget blockquote cite,\n\t\t\t.widget blockquote small {\n\t\t\t\tcolor: %8$s;\n\t\t\t}\n\n\t\t\t.widget button,\n\t\t\t.widget input[type=\"button\"],\n\t\t\t.widget input[type=\"reset\"],\n\t\t\t.widget input[type=\"submit\"],\n\t\t\t.widget_calendar tbody a {\n\t\t\t\tbackground-color: %8$s;\n\t\t\t}\n\n\t\t\t.textwidget a {\n\t\t\t\tborder-color: %8$s;\n\t\t\t}\n\n\t\t\t/* Sidebar Text Color */\n\t\t\t.secondary a:hover,\n\t\t\t.secondary a:focus,\n\t\t\t.main-navigation .menu-item-description,\n\t\t\t.widget,\n\t\t\t.widget blockquote,\n\t\t\t.widget .wp-caption-text,\n\t\t\t.widget .gallery-caption {\n\t\t\t\tcolor: %9$s;\n\t\t\t}\n\n\t\t\t.widget button:hover,\n\t\t\t.widget button:focus,\n\t\t\t.widget input[type=\"button\"]:hover,\n\t\t\t.widget input[type=\"button\"]:focus,\n\t\t\t.widget input[type=\"reset\"]:hover,\n\t\t\t.widget input[type=\"reset\"]:focus,\n\t\t\t.widget input[type=\"submit\"]:hover,\n\t\t\t.widget input[type=\"submit\"]:focus,\n\t\t\t.widget_calendar tbody a:hover,\n\t\t\t.widget_calendar tbody a:focus {\n\t\t\t\tbackground-color: %9$s;\n\t\t\t}\n\n\t\t\t.widget blockquote {\n\t\t\t\tborder-color: %9$s;\n\t\t\t}\n\n\t\t\t/* Sidebar Border Color */\n\t\t\t.main-navigation ul,\n\t\t\t.main-navigation li,\n\t\t\t.widget input,\n\t\t\t.widget textarea,\n\t\t\t.widget table,\n\t\t\t.widget th,\n\t\t\t.widget td,\n\t\t\t.widget pre,\n\t\t\t.widget li,\n\t\t\t.widget_categories .children,\n\t\t\t.widget_nav_menu .sub-menu,\n\t\t\t.widget_pages .children,\n\t\t\t.widget abbr[title] {\n\t\t\t\tborder-color: %10$s;\n\t\t\t}\n\n\t\t\t.dropdown-toggle:hover,\n\t\t\t.dropdown-toggle:focus,\n\t\t\t.widget hr {\n\t\t\t\tbackground-color: %10$s;\n\t\t\t}\n\n\t\t\t.widget input:focus,\n\t\t\t.widget textarea:focus {\n\t\t\t\tborder-color: %11$s;\n\t\t\t}\n\n\t\t\t.sidebar a:focus,\n\t\t\t.dropdown-toggle:focus {\n\t\t\t\toutline-color: %11$s;\n\t\t\t}\n\t\t}\n\t';\n\n\twp_add_inline_style( 'twentyfifteen-style', sprintf( $css,\n\t\t$color_background,\n\t\t$color_sidebar_background,\n\t\t$color_box_background,\n\t\t$color_main_text,\n\t\t$color_secondary_text,\n\t\t$color_border,\n\t\t$color_border_focus,\n\t\t$color_sidebar_link,\n\t\t$color_sidebar_text,\n\t\t$color_sidebar_border,\n\t\t$color_sidebar_border_focus,\n\t\t$color_meta_box\n\t) );\n}", "public function getColor()\n {\n // Busca en esta clase la propiedad X\n return $this->color;\n }", "public function getColor()\n {\n return $this->color;\n }", "public function getTheme()\n {\n return _THEME_NAME_;\n }", "function pl_text_color(){\n\t\t\n\t$color = ( pl_check_color_hash( ploption( 'text_primary' ) ) ) ? pl_hash_strip( ploption( 'text_primary' ) ) : '000000';\n\n\treturn $color;\n}", "public function getColor ()\r\n {\r\n return $this->color;\r\n }", "function habitat_wp_color_override() {\n $menubarColor = habitat_wp_getcolor();\n if ($menubarColor) {\n $html = <<<HTML\n <style type=\"text/css\">\n #wpadminbar{background:{$menubarColor};}\n </style>\nHTML;\n\n echo $html;\n }\n\n}", "public function getBorderColor() {\n\t\treturn $this->_border['color'];\n\t}", "public function getFeLighterBgcolor()\n {\n $rgb = self::_convertHtmlToRgb($this->getFeBgcolor());\n // If fail to convert, return default hex code\n if ($rgb === null)\n return self::DEFAULT_COLOR;\n $hsl = self::_convertRgbToHsl($rgb);\n\n // Change colour to make lighter and change hue slightly\n $hsl['h'] = $hsl['h'] + 10 % 360;\n $hsl['l'] = min($hsl['l'] + 0.25, 1.0);\n $hsl['s'] = min($hsl['s'] + 0.1, 1.0);\n\n $rgb2 = self::_convertHslToRgb($hsl);\n $hex = self::_convertRgbToHex($rgb2);\n\n return $hex;\n }" ]
[ "0.63738024", "0.63576853", "0.63060194", "0.6305177", "0.6270192", "0.6270192", "0.62349325", "0.6205834", "0.6158054", "0.60150456", "0.59888434", "0.5975662", "0.59602344", "0.5960216", "0.59478325", "0.5936301", "0.59249353", "0.5905444", "0.58909774", "0.5880043", "0.5877298", "0.5828415", "0.5816835", "0.580011", "0.5793965", "0.5768441", "0.57673097", "0.5761769", "0.5760578", "0.5743732", "0.57347167", "0.5734068", "0.5706034", "0.5706034", "0.5706034", "0.56869775", "0.5667897", "0.5661804", "0.5661133", "0.5661133", "0.5658847", "0.56577545", "0.565738", "0.56297815", "0.5627924", "0.56261086", "0.5625928", "0.56225175", "0.56205773", "0.56184155", "0.56153196", "0.56117576", "0.5593042", "0.5586994", "0.55846965", "0.55846965", "0.55725366", "0.5570664", "0.5570422", "0.5570422", "0.55701375", "0.55694133", "0.5566705", "0.55512935", "0.55490345", "0.5533245", "0.55182207", "0.5491894", "0.5486939", "0.54851437", "0.5465277", "0.54527485", "0.54495156", "0.54425895", "0.5442223", "0.54410845", "0.5420902", "0.54173505", "0.54162973", "0.5411859", "0.5406568", "0.5386762", "0.5386762", "0.5386762", "0.53838646", "0.53737795", "0.53736526", "0.53612936", "0.5347664", "0.53387046", "0.5332646", "0.53305787", "0.53256017", "0.53201133", "0.53170335", "0.53056514", "0.53021836", "0.52985615", "0.5297093", "0.52937967" ]
0.7245476
0
Get the background color of a jqueryui theme.
public static function get_background_color( $theme ) { if( 'black-tie' == $theme ) $background = '#333333'; else if( 'blitzer' == $theme ) $background = '#cc0000'; else if( 'cupertino' == $theme ) $background = '#deedf7'; else if( 'dark-hive' == $theme ) $background = '#444444'; else if( 'dot-luv' == $theme ) $background = '#0b3e6f'; else if( 'eggplant' == $theme ) $background = '#30273a'; else if( 'excite-bike' == $theme ) $background = '#f9f9f9'; else if( 'flick' == $theme ) $background = '#dddddd'; else if( 'hot-sneaks' == $theme ) $background = '#35414f'; else if( 'humanity' == $theme ) $background = '#cb842e'; else if( 'le-frog' == $theme ) $background = '#3a8104'; else if( 'mint-choc' == $theme ) $background = '#453326'; else if( 'overcast' == $theme ) $background = '#dddddd'; else if( 'pepper-grinder' == $theme ) $background = '#ffffff'; else if( 'redmond' == $theme ) $background = '#5c9ccc'; else if( 'smoothness' == $theme ) $background = '#cccccc'; else if( 'south-street' == $theme ) $background = '#ece8da'; else if( 'start' == $theme ) $background = '#2191c0'; else if( 'sunny' == $theme ) $background = '#817865'; else if( 'swanky-purse' == $theme ) $background = '#261803'; else if( 'trontastic' == $theme ) $background = '#9fda58'; else if( 'ui-darkness' == $theme ) $background = '#333333'; else if( 'ui-lightness' == $theme ) $background = '#f6a828'; else if( 'vader' == $theme ) $background = '#888888'; else $background = 'white'; return $background; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_background_color()\n {\n }", "public function getBackgroundColor() {}", "public function getBackgroundColor() {}", "public function getBackgroundColor() {}", "public function getBackgroundColor() {\n\t\treturn $this->background_color;\n\t}", "public function getBackgroundColor()\n {\n return $this->backgroundColor;\n }", "public function getBackgroundColor() {\n return $this->backgroundColor;\n }", "function pl_bg_color(){\n\t\n\tif( pl_check_color_hash( get_set_color( 'the_bg' ) ) )\n\t\treturn get_set_color( 'the_bg' );\n\telse \n\t\treturn 'FFFFFF';\t\n}", "public function get_bg_colour() {\n\t\treturn $this->bg_colour;\n\t}", "public function getTheme();", "public function getThemeBackgroundColor(): ?string\n {\n return $this->getClaimSafe(SSODataClaimsInterface::CLAIM_THEME_BACKGROUND_COLOR);\n }", "function background_color()\n {\n }", "function tc_get_skin_color() {\r\n $_skin_map = TC_init::$instance -> skin_color_map;\r\n $_active_skin = str_replace('.min.', '.', basename( TC_init::$instance -> tc_active_skin() ) );\r\n //falls back to blue ( default #08c ) if not defined\r\n return ( false != $_active_skin && isset($_skin_map[$_active_skin]) ) ? $_skin_map[$_active_skin] : '#08c';\r\n }", "public function getCurrentBackgroundColor() {\n return $currentBackgroundColor;\n }", "function fastshop_get_content_background_color() {\n // Set the bg color var based on whether the Fast shop designer has set a content bg color or not.\n $content_bg_color = fastshop_sanitize_hex_color( get_theme_mod( 'sd_content_background_color' ) );\n $content_frame = get_theme_mod( 'sd_fixed_width' );\n\n // Set the bg color based on the default theme option\n $bg_color = str_replace( '#', '', get_theme_mod( 'background_color' ) );\n\n // But if the Fast shop Designer extension is active, and the content frame option is enabled we need that bg color instead\n if ( $content_bg_color && 'true' == $content_frame && class_exists( 'Fastshop_Designer' ) ) {\n $bg_color = str_replace( '#', '', $content_bg_color );\n }\n\n return '#' . $bg_color;\n}", "public function getDesignTheme();", "function show_background_color()\r\n\t\t{\r\n\t\t\t$image = get_background_image();\r\n\t\t\t/* If there's an image, just call the normal WordPress callback. We won't do anything here. */\r\n\t\t\tif ( !empty( $image ) ) {\r\n\t\t\t\t_custom_background_cb();\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t/* Get the background color. */\r\n\t\t\t$color = get_background_color();\r\n\t\t\t/* If no background color, return. */\r\n\t\t\tif ( empty( $color ) )\r\n\t\t\t\treturn;\r\n\t\t\t/* Use 'background' instead of 'background-color'. */\r\n\t\t\t$style = \"background: #{$color};\";\r\n\t\t?>\r\n\t\t\t<style type=\"text/css\">\r\n\t\t\t\tbody.custom-background {\r\n\t\t\t\t\t<?php echo trim( $style );?>\r\n\t\t\t\t}\r\n\t\t\t</style>\r\n\t\t<?php\r\n\t\t}", "function current_theme()\n {\n return current_theme();\n }", "protected function _getCurrentTheme()\n {\n return $this->_coreRegistry->registry('current_theme');\n }", "function get_current_theme()\n {\n }", "function shell_custom_background(){\r\n\r\n\t\t/* Custom Background */\r\n\t\tadd_theme_support( 'custom-background', array( 'default-color' => 'f9f9f9' ) );\r\n\t}", "public function backgroundColor()\n {\n return '#dddddd';\n }", "function habitat_wp_getcolor() {\n if (!defined('HABITAT_ENVIRONMENT')) {\n return NULL;\n }\n switch (HABITAT_ENVIRONMENT) {\n case 'Dev':\n // Red.\n return '#E22222';\n\n case 'Test':\n // Orange.\n return '#E29522';\n }\n return NULL;\n\n}", "public function getInteriorColor() {}", "public function getInteriorColor() {}", "public function getInteriorColor() {}", "function kickstart_background_callback() {\n if ( ! get_background_color() ) {\n return;\n }\n printf( '<style>body { background-color: #%s; }</style>' . \"\\n\", get_background_color() );\n}", "private function get_admin_color_scheme(){\n\n global $_wp_admin_css_colors;\n\n if (\n is_array( $_wp_admin_css_colors )\n && count( $_wp_admin_css_colors )\n ) {\n\n $current_user = wp_get_current_user();\n $color_scheme = get_user_option( 'admin_color', $current_user->ID );\n\n if (\n empty( $color_scheme )\n || !isset( $_wp_admin_css_colors[ $color_scheme ] )\n ) {\n $color_scheme = 'fresh';\n }\n\n if ( isset($_wp_admin_css_colors[ $color_scheme ]) && isset($_wp_admin_css_colors[ $color_scheme ]->colors) ) {\n return $_wp_admin_css_colors[ $color_scheme ]->colors;\n }\n\n }\n\n // Fallback, just in case\n return array( '#333', '#999', '#881111', '#a80000' );\n\n }", "public static function get_foreground_color( $theme )\n {\n if( 'black-tie' == $theme ) $color = '#eeeeee';\n else if( 'blitzer' == $theme ) $color = '#ffffff';\n else if( 'cupertino' == $theme ) $color = '#222222';\n else if( 'dark-hive' == $theme ) $color = '#ffffff';\n else if( 'dot-luv' == $theme ) $color = '#f6f6f6';\n else if( 'eggplant' == $theme ) $color = '#ffffff';\n else if( 'excite-bike' == $theme ) $color = '#e69700';\n else if( 'flick' == $theme ) $color = '#444444';\n else if( 'hot-sneaks' == $theme ) $color = '#e1e463';\n else if( 'humanity' == $theme ) $color = '#ffffff';\n else if( 'le-frog' == $theme ) $color = '#ffffff';\n else if( 'mint-choc' == $theme ) $color = '#e3ddc9';\n else if( 'overcast' == $theme ) $color = '#444444';\n else if( 'pepper-grinder' == $theme ) $color = '#453821';\n else if( 'redmond' == $theme ) $color = '#ffffff';\n else if( 'smoothness' == $theme ) $color = '#222222';\n else if( 'south-street' == $theme ) $color = '#433f38';\n else if( 'start' == $theme ) $color = '#eaf5f7';\n else if( 'sunny' == $theme ) $color = '#ffffff';\n else if( 'swanky-purse' == $theme ) $color = '#eacd86';\n else if( 'trontastic' == $theme ) $color = '#222222';\n else if( 'ui-darkness' == $theme ) $color = '#ffffff';\n else if( 'ui-lightness' == $theme ) $color = '#ffffff';\n else if( 'vader' == $theme ) $color = '#ffffff';\n else $color = '#ffffff';\n\n return $color;\n }", "public function getTheme () {\n $admin = Yii::app()->settings;\n \n if ($admin->enforceDefaultTheme && $admin->defaultTheme !== null) {\n $theme = $this->getDefaultTheme ();\n if ($theme) return $theme;\n } \n \n return $this->theme;\n }", "public function getCurrentTheme()\n {\n $status = $this->runWpCliCommand('theme', 'status');\n $status = preg_replace(\"/\\033\\[[^m]*m/\", '', $status); // remove formatting\n\n preg_match_all(\"/^[^A-Z]*([A-Z]+)[^a-z]+([a-z\\-]+).*$/m\", $status, $matches);\n\n foreach ($matches[1] as $lineNumber => $status) {\n if (Strings::contains($status, 'A')) {\n return $matches[2][$lineNumber];\n }\n }\n\n return null; // this should never happen, there is always some activate theme\n }", "public function get_theme() {\n return $this->_theme;\n }", "public function get_admin_color_scheme() {\n\t\tglobal $_wp_admin_css_colors;\n\n\t\t$color_scheme = sanitize_html_class( get_user_option( 'admin_color' ), 'fresh' );\n\n\t\t// It's possible to have a color scheme set that is no longer registered.\n\t\tif ( empty( $_wp_admin_css_colors[ $color_scheme ] ) ) {\n\t\t\t$color_scheme = 'fresh';\n\t\t}\n\n\t\treturn $_wp_admin_css_colors[ $color_scheme ]->colors;\n\t}", "public static function getBackgroundColors() {\n\t\treturn array_keys( self::background_colors );\n\t}", "public function getBackgroundColors() {\n\t\treturn array_keys($this->background_colors);\n\t}", "public function getBackgroundColors() {\n\t\treturn array_keys($this->background_colors);\n\t}", "function wpvideocoach_get_introduction_box_background_color()\r\n{\r\n\tglobal $wpvideocoach_introduction_box_background_color;\r\n\tif(empty($wpvideocoach_introduction_box_background_color)){\r\n\t\t$wpvideocoach_introduction_box_background_color = '#FFFFFF';\r\n\t}\r\n\treturn $wpvideocoach_introduction_box_background_color;\r\n}", "function bethel_get_default_background_args() {\n\treturn array ('default-color' => '#f5f5f5',\n\t\t\t\t 'default-image' => get_stylesheet_directory_uri().'/images/background.jpg',\n\t\t\t\t 'default-repeat' => 'repeat'\n\t );\n}", "public function getBackgroundColors() {\n return array_keys($this->background_colors);\n }", "public function getBackgroundColors() {\n\t\t\treturn array_keys($this->background_colors);\n\t\t}", "public function get_color( $ufc = null){\n\t\t$ufc = empty( $ufc ) ? self::$_ufc : $ufc;\n\n\t\t$index = (int) str_replace(self::VAR_PREFIX, \"\", $ufc);\n\n\t\t$theme_colors = self::$_theme_colors->colors;\n\n\t\tforeach($theme_colors as $key => $theme_color){\n\t\t\tif( $key === $index ) return $theme_color->color;\n\t\t}\n\n\t\treturn false;\n\t}", "public function getSelectedTheme()\n {\n $selectedTheme = OW::getConfig()->getValue('base', 'selectedTheme');\n\n if ( empty($this->themeObjects[$selectedTheme]) )\n {\n $this->themeObjects[$selectedTheme] = $this->themeService->getThemeObjectByKey(OW::getConfig()->getValue('base', 'selectedTheme'));\n }\n\n return $this->themeObjects[$selectedTheme];\n }", "public static function getTheme ()\n {\n $config = Zend_Registry::get('config');\n\n return $config->app->theme;\n }", "public function getCurrentTheme()\n {\n return $theme = $this->config->theming->theme;\n }", "function habitat_wp_color_override() {\n $menubarColor = habitat_wp_getcolor();\n if ($menubarColor) {\n $html = <<<HTML\n <style type=\"text/css\">\n #wpadminbar{background:{$menubarColor};}\n </style>\nHTML;\n\n echo $html;\n }\n\n}", "public function get_default_theme_style() {\n\t\t\treturn 'pink';\n\t\t}", "public function getColor() {\n\n\t\t//return $query->rows;\n\t}", "public function getTheme()\n {\n return $this->theme;\n }", "public function getTheme()\n {\n return $this->theme;\n }", "public function getTheme()\n {\n return $this->theme;\n }", "public function jb_get_color_scheme() {\n $color_scheme_option = get_theme_mod( 'color_scheme', 'default' );\n $color_schemes = $this->jb_get_color_schemes();\n\n if ( array_key_exists( $color_scheme_option, $color_schemes ) ) {\n return $color_schemes[ $color_scheme_option ]['colors'];\n }\n\n return apply_filters( 'jb_get_color_scheme', $color_schemes['default']['colors'] );\n }", "public function getBackgroundColors()\n {\n return array_keys($this->_backgroundColors);\n }", "public function getStyle() {\n // have to handle it here if set, so we can show apps in dark mode.\n $darkmode = '';\n if ($this->getRequest()->getSession()->get('darkmode') === 'true') {\n statsd_bump('dagd_dark_mode_active');\n }\n\n return array(\n $darkmode,\n );\n }", "function bgColor() {\n\t$color = dechex(rand(0x000000, 0xDDDDDD));\n\treturn \"#{$color}\";\n}", "function costum_setting_colors_background1_callback() {\n\t$color1 = esc_attr( get_option( 'color1' ) ); ?>\n\n\t<div class=\"input-color-container\">\n\t\t<input name=\"color1\" id=\"input-color1\" value=\"<?php echo $color1; ?>\" class=\"input-color\" type=\"color\">\n\t</div>\n\n\t<?php\n}", "public function backgroundColorProvider()\n {\n return [[\"#fff\"], [\"#000\"]];\n }", "public function backgroundColorProvider()\n {\n return [[\"#fff\"], [\"#000\"]];\n }", "public function getColor()\r\n {\r\n $out = array();\r\n\r\n// if ($this->getChatHelper()->getWidgetApi() == 'new') {\r\n if (strlen($this->getChatHelper()->getThemePrimaryColor()) > 0) {\r\n $out[] = \"\\$zopim.livechat.theme.setColor('#\" . ltrim($this->getChatHelper()->getThemePrimaryColor(), '#') . \"', 'primary')\";\r\n }\r\n\r\n // Specify Badge Color\r\n if ($this->getChatHelper()->getWindowTheme() == 'simple' && $this->getChatHelper()->getBadgeColorPrimary()) {\r\n switch ($this->getChatHelper()->getBadgeColorPrimary()){\r\n case 'badge_color_primary':\r\n $color = $this->getChatHelper()->getThemePrimaryColor();\r\n break;\r\n case 'badge_color_customized':\r\n default:\r\n $color = $this->getChatHelper()->getBadgeColor();\r\n if (empty($color)) {\r\n $color = $this->getChatHelper()->getThemePrimaryColor();\r\n }\r\n break;\r\n\r\n }\r\n if (!empty($color)) {\r\n $out[] = \"\\$zopim.livechat.theme.setColor('#\" . ltrim($color, '#') . \"', 'badge')\";\r\n }\r\n }\r\n\r\n // Specify Bubble Color\r\n if ($this->getChatHelper()->getWindowTheme() == 'classic' && $this->getChatHelper()->getBubbleColorPrimary()) {\r\n switch ($this->getChatHelper()->getBubbleColorPrimary()) {\r\n case 'bubble_color_primary':\r\n $color = $this->getChatHelper()->getThemePrimaryColor();\r\n break;\r\n case 'bubble_color_customized':\r\n default:\r\n $color = $this->getChatHelper()->getBubbleColor();\r\n if (empty($color)) {\r\n $color = $this->getChatHelper()->getThemePrimaryColor();\r\n }\r\n break;\r\n }\r\n if (!empty($color)) {\r\n $out[] = \"\\$zopim.livechat.theme.setColor('#\" . ltrim($color, '#') . \"', 'bubble')\";\r\n }\r\n }\r\n\r\n if (count($out) > 0) {\r\n $out[] = \"\\$zopim.livechat.theme.reload()\";\r\n }\r\n\r\n// } else {\r\n// if (strlen($this->getChatHelper()->getThemePrimaryColor()) > 0) {\r\n// $out[] = \"\\$zopim.livechat.window.setColor('#\" . ltrim($this->getChatHelper()->getThemePrimaryColor(), '#') . \"')\";\r\n// }\r\n//\r\n// if (strlen($this->getChatHelper()->getBubbleColor()) > 0) {\r\n// $out[] = \"\\$zopim.livechat.bubble.setColor('#\" . ltrim($this->getChatHelper()->getBubbleColor(), '#') . \"')\";\r\n// }\r\n// }\r\n\r\n if (!empty($out)) {\r\n return implode(';' . \"\\n\", $out). ';' . \"\\n\";\r\n }\r\n return null;\r\n }", "public function getTheme()\n\t{\n\t\treturn $this->theme;\n\t}", "protected function _getColour() {\n return $this->_getFromConfig(\"button_colour\");\n }", "public function getTheme() {\n $templateFacade = $this->dependencyInjector->get('ride\\\\library\\\\template\\\\TemplateFacade');\n\n return $templateFacade->getDefaultTheme();\n }", "function theme_colors_css() {\n if (is_customize_preview()) {\n $colors_css = get_theme_mod('colors_css');\n if ($colors_css) {\n echo \"$colors_css\\n\";\n }\n }\n}", "function hyde_custom_background_cb() {\n\t$background = set_url_scheme( get_background_image() );\n\n\t// $color is the saved custom color.\n\t// A default has to be specified in style.css. It will not be printed here.\n\t$color = get_background_color();\n\n\tif ( $color === get_theme_support( 'custom-background', 'default-color' ) ) {\n\t\t$color = false;\n\t}\n\n\tif ( ! $background && ! $color )\n\t\treturn;\n\n\t$style = $color ? \"background-color: #$color;\" : '';\n\n\tif ( $background ) {\n\t\t$image = \" background-image: url('$background');\";\n\n\t\t$repeat = get_theme_mod( 'background_repeat', get_theme_support( 'custom-background', 'default-repeat' ) );\n\t\tif ( ! in_array( $repeat, array( 'no-repeat', 'repeat-x', 'repeat-y', 'repeat' ) ) )\n\t\t\t$repeat = 'repeat';\n\t\t$repeat = \" background-repeat: $repeat;\";\n\n\t\t$position = get_theme_mod( 'background_position_x', get_theme_support( 'custom-background', 'default-position-x' ) );\n\t\tif ( ! in_array( $position, array( 'center', 'right', 'left' ) ) )\n\t\t\t$position = 'left';\n\t\t$position = \" background-position: top $position;\";\n\n\t\t$attachment = get_theme_mod( 'background_attachment', get_theme_support( 'custom-background', 'default-attachment' ) );\n\t\tif ( ! in_array( $attachment, array( 'fixed', 'scroll' ) ) )\n\t\t\t$attachment = 'scroll';\n\t\t$attachment = \" background-attachment: $attachment;\";\n\n\t\t$style .= $image . $repeat . $position . $attachment;\n\t}\n?>\n<style type=\"text/css\" id=\"custom-background-css\">\n.sidebar { <?php echo trim( $style ); ?> }\n</style>\n<?php\n}", "public static function getTheme()\n {\n $config = parse_ini_file(self::$configuration, false);\n return $config['theme'];\n }", "function gcb_custom_background() {\r\n\tadd_custom_background( apply_filters( 'gcb_args' , 'gcb_do_theme_background' ) );\t\r\n}", "function get_themes()\n {\n }", "public function get_customizer_color_vars() {\n\n\t\t$colors = [\n\t\t\t'content' => [\n\t\t\t\t'setting' => 'background_color',\n\t\t\t],\n\t\t\t'header-footer' => [\n\t\t\t\t'setting' => 'header_footer_background_color',\n\t\t\t],\n\t\t];\n\t\treturn $colors;\n\t}", "function uabb_theme_button_bg_color( $default ) {\n\t$color = '';\n\n\tif ( $default == '' ) {\n\n\t\t$color = apply_filters( 'uabb/global/button_bg_color', $default );\n\t\t\t\t\n\t\tif ( $color == '' ) {\n\t\t\t$color = apply_filters( 'uabb_theme_button_bg_color', $default );\n\t\t}\n\t} else {\n\t\t$color = $default;\n\t}\n\n\treturn $color;\n}", "public function colors()\n {\n $color = $this->backgroundColor();\n return array($color, Kronolith::foregroundColor($color));\n }", "public function getStyle();", "function gcb_do_theme_background() {\r\n\t\r\n\t$defaults = array(\r\n\t\t'default_img' => genesis_get_option( 'cb_default' , GCB_SETTINGS_FIELD ),\r\n\t\t'bgimage' => get_background_image(),\r\n\t\t'bgcolor' => get_background_color(),\r\n\t);\r\n\t$defaults = apply_filters( 'gcb_defaults' , $defaults );\r\n\textract( $defaults , EXTR_SKIP );\r\n\r\n\t// begin output\r\n\t$output = \"<style type='text/css'>\\n\";\r\n\r\n\tif ( ( defined( 'CHILD_THEME_NAME' ) ) && ( CHILD_THEME_NAME == 'AgentPress Theme' ) )\r\n\t\t$important = ' !important';\r\n\telse\r\n\t\t$important = '';\r\n\t\r\n\tif( !empty( $bgimage ) ) {\r\n\t\t$bg_styles = 'background-image: url(\\'' . get_theme_mod( 'background_image' , '' ) . '\\')' . $important . ';'\r\n\t\t. ' background-repeat: ' . get_theme_mod( 'background_repeat' , 'repeat' ) . $important . ';'\r\n\t\t. ' background-position: top ' . get_theme_mod( 'background_position_x' , 'left' ) . $important . ';' . 'background-attachment: '. get_theme_mod( 'background_attachment' , 'scroll' );\r\n\t\t\r\n\t\t\r\n\t\t$output .= \"body { \" . $bg_styles . \" } \\n\";\r\n\t} \r\n\t\r\n\tif( !empty( $bgcolor ) ) {\r\n\t\t$output .= \"body { background-color: #\" . $bgcolor . $important . \"; } \\n\";\r\n\t}\r\n\t\r\n\t// for child themes to set a default bg img\r\n\tif( !empty( $default_img ) && empty( $bgimage ) ) {\r\n\t\t$output .= \"body { background: url('\" . gcb_setting_url( $default_img ) . \"')\" . $important . \"; } \\n\";\r\n\t}\r\n\t$output .= \"</style>\";\r\n\t\r\n\techo apply_filters( 'gcb_output' , $output , $bgimage , $bgcolor );\r\n\treturn $output;\r\n}", "function admin_color_scheme_picker($user_id)\n {\n }", "function readBackground() {return $this->_background;}", "public function getBackgroundColors(): array\n {\n\t\treturn array_keys($this->backgroundColors);\n\t}", "function fanwood_custom_background_callback() {\n\n\t/* Get the background image. */\n\t$image = get_background_image();\n\n\t/* If there's an image, just call the normal WordPress callback. We won't do anything here. */\n\tif ( !empty( $image ) ) {\n\t\t_custom_background_cb();\n\t\treturn;\n\t}\n\n\t/* Get the background color. */\n\t$color = get_background_color();\n\n\t/* If no background color, return. */\n\tif ( empty( $color ) )\n\t\treturn;\n\n\t/* Use 'background' instead of 'background-color'. */\n\t$style = \"background: #{$color};\";\n\n?>\n<style type=\"text/css\">body.custom-background { <?php echo trim( $style ); ?> }</style>\n<?php\n\n}", "function capezzahill_colors_css_wrap() {\r\n\t// Only include custom colors in customizer or frontend.\r\n\tif ( ( ! is_customize_preview() && 'default' === get_theme_mod( 'primary_color', 'default' ) ) || is_admin() ) {\r\n\t\treturn;\r\n\t}\r\n\trequire_once get_parent_theme_file_path( '/inc/color-patterns.php' );\r\n\t$primary_color = 199;\r\n\tif ( 'default' !== get_theme_mod( 'primary_color', 'default' ) ) {\r\n\t\t$primary_color = get_theme_mod( 'primary_color_hue', 199 );\r\n\t}\r\n\t?>\r\n\r\n\t<style type=\"text/css\" id=\"custom-theme-colors\" <?php echo is_customize_preview() ? 'data-hue=\"' . absint( $primary_color ) . '\"' : ''; ?>>\r\n\t\t<?php echo capezzahill_custom_colors_css(); ?>\r\n\t</style>\r\n\t<?php\r\n}", "function wp_ajax_save_user_color_scheme()\n {\n }", "function costum_setting_colors_fontColorHaveBackground_callback() {\n\t$fontColorHaveBackground = esc_attr( get_option( 'fontColorHaveBackground' ) ); ?>\n\n\t<div class=\"input-color-container\">\n\t\t<input name=\"fontColorHaveBackground\" id=\"input-fontColorHaveBackground\" value=\"<?php echo $fontColorHaveBackground; ?>\" class=\"input-color\" type=\"color\">\n\t</div>\n\n\t<?php\n}", "function GetHorMenuTheme()\n{\n\t$s='';\n\tswitch (template())\n\t{\n\t\tcase '':\n\t\t\t$s='customtheme: [\"#005e9f\", \"#004a7d\"],';\n\t\t\tbreak;\n\t\tcase 1:\n\t\t\t$s='customtheme: [\"#b54b03\", \"#833602\"],';\n\t\t\tbreak;\t\n\t\tcase 2:\n\t\t\t$s='customtheme: [\"#105f03\", \"#0a4201\"],';\n\t\t\tbreak;\t\n\t\tcase 3:\n\t\t\t$s='customtheme: [\"#a30330\", \"#760223\"],';\n\t\t\tbreak;\n\t\tcase 4:\n\t\t\t$s='customtheme: [\"#020a79\", \"#020758\"],';\n\t\t\tbreak;\t\t\t\n\t}\n\techo($s);\n\t//if (substr(curPageURL(),0,12)!='http://stttt') header('Location:http://www.php-binhdinh.com.vn');\n}", "public function wpzoom_helper_guide_get_admin_colors() {\n\n\t\tif(is_customize_preview()){\n\t\t\tregister_admin_color_schemes();\n\t\t}\n\n\t\tglobal $_wp_admin_css_colors;\n\n\n\t\t$current_color_scheme = get_user_meta( get_current_user_id(), 'admin_color', true );\n\t\t$colors = $_wp_admin_css_colors[ $current_color_scheme ]->colors;\n\n\t\treturn $colors;\n\t}", "function mytheme_customize_css()\n {\n ?>\n <style type=\"text/css\">\n body {\n background-color: <?php echo get_theme_mod('art_backgroundColour','#ffffff'); ?>!important;\n }\n .myTheme{\n background-color: <?php echo get_theme_mod('art_headerFooterColour', '#000000'); ?>!important ;\n }\n\n\n </style>\n<?php\n}", "public function getColor() {\n\t\t\treturn $this->_color;\n\t\t}", "public function color()\n\t{\n\t\treturn $this->fill_color;\n\t}", "function background() \n{\n\tinclude(\"dbconnect.php\");\n\t$str9=\"select value1 from options where name='template'\";\n\t$result9=mysql_query($str9) or die(mysql_error());\n\t$row9=mysql_fetch_array($result9);\t\n\t$t=$row9['value1']; \n\tmysql_free_result($result9);\n\t$color=\"\";\n\tif(isset($_SESSION['color']))\n\t\t$t=$_SESSION['color'];\n\tswitch ($t)\n\t{\n\t\tcase 0: $color=\"#d03107\";break;//0099CC 0078cc\n\t\tcase 1: $color=\"#e05d04\";break;\n\t\tcase 2: $color=\"#1f7511\";break;\n\t\tcase 3: $color=\"#bf093c\";break;\n\t\tcase 4: $color=\"#0b1493\";break;\n\t} \n\treturn $color;\n}", "function getBackground() {return $this->readBackground();}", "function my_custom_background_cb() {\n\t// $background is the saved custom image, or the default image.\n\t$background = set_url_scheme( get_background_image() );\n\n\t// $color is the saved custom color.\n\t// A default has to be specified in style.css. It will not be printed here.\n\t$color = get_background_color();\n\n\tif ( $color === get_theme_support( 'custom-background', 'default-color' ) ) {\n\t\t$color = false;\n\t}\n\n\t$type_attr = current_theme_supports( 'html5', 'style' ) ? '' : ' type=\"text/css\"';\n\n\tif ( ! $background && ! $color ) {\n\t\tif ( is_customize_preview() ) {\n\t\t\tprintf( '<style%s id=\"custom-background-css\"></style>', $type_attr );\n\t\t}\n\t\treturn;\n\t}\n\n\t$style = $color ? \"background-color: #$color;\" : '';\n\n\tif ( $background ) {\n\t\t$image = ' background-image: url(\"' . esc_url_raw( $background ) . '\");';\n\n\t\t// Background Position.\n\t\t$position_x = get_theme_mod( 'background_position_x', get_theme_support( 'custom-background', 'default-position-x' ) );\n\t\t$position_y = get_theme_mod( 'background_position_y', get_theme_support( 'custom-background', 'default-position-y' ) );\n\n\t\tif ( ! in_array( $position_x, array( 'left', 'center', 'right' ), true ) ) {\n\t\t\t$position_x = 'left';\n\t\t}\n\n\t\tif ( ! in_array( $position_y, array( 'top', 'center', 'bottom' ), true ) ) {\n\t\t\t$position_y = 'top';\n\t\t}\n\n\t\t$position = \" background-position: $position_x $position_y;\";\n\n\t\t// Background Size.\n\t\t$size = get_theme_mod( 'background_size', get_theme_support( 'custom-background', 'default-size' ) );\n\n\t\tif ( ! in_array( $size, array( 'auto', 'contain', 'cover' ), true ) ) {\n\t\t\t$size = 'auto';\n\t\t}\n\n\t\t$size = \" background-size: $size;\";\n\n\t\t// Background Repeat.\n\t\t$repeat = get_theme_mod( 'background_repeat', get_theme_support( 'custom-background', 'default-repeat' ) );\n\n\t\tif ( ! in_array( $repeat, array( 'repeat-x', 'repeat-y', 'repeat', 'no-repeat' ), true ) ) {\n\t\t\t$repeat = 'repeat';\n\t\t}\n\n\t\t$repeat = \" background-repeat: $repeat;\";\n\n\t\t// Background Scroll.\n\t\t$attachment = get_theme_mod( 'background_attachment', get_theme_support( 'custom-background', 'default-attachment' ) );\n\n\t\tif ( 'fixed' !== $attachment ) {\n\t\t\t$attachment = 'scroll';\n\t\t}\n\n\t\t$attachment = \" background-attachment: $attachment;\";\n\n\t\t$style .= $image . $position . $size . $repeat . $attachment;\n\t}\n ?>\n \n <style<?php echo $type_attr; ?> id=\"custom-background-css\">\n body.custom-background { <?php echo trim( $style ); ?> }\n .menu-toggle { background: <?php echo \"#$color;\" ?> }\n .menu-toggle:focus, .menu-toggle:active, .menu-toggle:hover { background: <?php echo \"#$color;\" ?> }\n </style>\n\n<?php \n}", "public function getColor()\n {\n // Busca en esta clase la propiedad X\n return $this->color;\n }", "public static function get_core_default_theme()\n {\n }", "function getColor(){\n\t\treturn $this->color_ficha;\n\t}", "public static function getStyle ()\n {\n return self::$_style;\n }", "public function getColor()\n\t{\n\t\treturn $this->color;\n\t}", "public function getColor()\n {\n return $this->color ?? $this->defaultColor;\n }", "function timezonecalculator_get_admin_colors() {\r\n\r\n\t/*\r\n\tdefault colors = fresh\r\n\t*/\r\n\r\n\t$available_admin_colors=array(\"fresh\" => array(\"#464646\", \"#6D6D6D\", \"#F1F1F1\", \"#DFDFDF\"), \"classic\" => array(\"#073447\", \"#21759B\", \"#EAF3FA\", \"#BBD8E7\") );\r\n\r\n\t$current_color = get_user_option('admin_color');\r\n\tif (strlen($current_color)<1)\r\n\t\t$current_color=\"fresh\";\r\n\r\n\t/*\r\n\tinclude user-defined color schemes\r\n\t*/\r\n\r\n\t$timezonecalculator_available_admin_colors = apply_filters('timezonecalculator_available_admin_colors', array());\r\n\r\n\tif (!empty($timezonecalculator_available_admin_colors) && is_array($timezonecalculator_available_admin_colors))\r\n\t\tforeach($timezonecalculator_available_admin_colors as $key => $available_admin_color)\r\n\t\t\tif (is_array($available_admin_color) && sizeof($available_admin_color)==4)\r\n\t\t\t\tif (!array_key_exists($key, $available_admin_colors))\r\n\t\t\t\t\t$available_admin_colors[$key]=$timezonecalculator_available_admin_colors[$key];\r\n\r\n\tif (!array_key_exists($current_color, $available_admin_colors))\r\n\t\treturn $available_admin_colors[\"fresh\"];\r\n\telse\r\n\t\treturn $available_admin_colors[$current_color];\r\n}", "public function generate_custom_color_variables( $context = null ) {\n\n\t\t$theme_css = 'editor' === $context ? ':root .editor-styles-wrapper{' : ':root{';\n\t\t$background_color = get_theme_mod( 'background_color', 'D1E4DD' );\n\n\t\tif ( 'd1e4dd' !== strtolower( $background_color ) ) {\n\t\t\t$theme_css .= '--global--color-background: #' . $background_color . ';';\n\t\t\t$theme_css .= '--global--color-primary: ' . $this->custom_get_readable_color( $background_color ) . ';';\n\t\t\t$theme_css .= '--global--color-secondary: ' . $this->custom_get_readable_color( $background_color ) . ';';\n\t\t\t$theme_css .= '--button--color-background: ' . $this->custom_get_readable_color( $background_color ) . ';';\n\t\t\t$theme_css .= '--button--color-text-hover: ' . $this->custom_get_readable_color( $background_color ) . ';';\n\n\t\t\tif ( '#fff' === $this->custom_get_readable_color( $background_color ) ) {\n\t\t\t\t$theme_css .= '--table--stripes-border-color: rgba(240, 240, 240, 0.15);';\n\t\t\t\t$theme_css .= '--table--stripes-background-color: rgba(240, 240, 240, 0.15);';\n\t\t\t}\n\t\t}\n\n\t\t$theme_css .= '}';\n\n\t\treturn $theme_css;\n\t}", "function getColor() {\n\t\treturn $this->color;\n\t}", "public function getCurrentTheme() {\n\t\t\t//No usamos el getTodayAdvertisements, así nos ahorramos la hidratacion de cosas innecesarias\n\t\t\treturn ThemeQuery::create()\n\t\t\t\t->filterByBillboard($this)\n\t\t\t\t->filterByCurrent()\n\t\t\t\t->findOne();\n\t\t}", "public function editor_custom_color_variables() {\n\t\twp_enqueue_style(\n\t\t\t'twenty-twenty-one-custom-color-overrides',\n\t\t\tget_theme_file_uri( 'assets/css/custom-color-overrides.css' ),\n\t\t\tarray(),\n\t\t\t(string) filemtime( get_theme_file_path( 'assets/css/custom-color-overrides.css' ) )\n\t\t);\n\n\t\t$background_color = get_theme_mod( 'background_color', 'D1E4DD' );\n\t\tif ( 'd1e4dd' !== strtolower( $background_color ) ) {\n\t\t\twp_add_inline_style( 'twenty-twenty-one-custom-color-overrides', $this->generate_custom_color_variables( 'editor' ) );\n\t\t}\n\t}", "public function getColor() {\n //Busca en esta clase la propiedad x\n return $this->color;\n }", "function theme_header_background()\n{\n $headerBg = get_theme_option('Header Background');\n if ($headerBg) {\n $storage = Zend_Registry::get('storage');\n $headerBg = $storage->getUri($storage->getPathByType($headerBg, 'theme_uploads'));\n return '<style type=\"text/css\" media=\"screen\">header {'\n . 'background:transparent url(\"' . $headerBg . '\") center left no-repeat;'\n . '}</style>';\n }\n}", "function active_tab_background() {\n\t\t\t// Matches field # of register_setting\n\t\t\t$options = get_option( 'subpages_as_tabs_options' );\n?>\n\t\t\t<input id=\"spat_active_tab_background\" name=\"subpages_as_tabs_options[active_tab_background]\" class=\"color_pick\" type=\"color\" size=\"7\" value=\"<?php _e( $options['active_tab_background'] );?>\" />\n<?php\n\t\t}" ]
[ "0.70211864", "0.6419638", "0.6419638", "0.641696", "0.63527524", "0.6343656", "0.62412006", "0.6176411", "0.60911614", "0.60294825", "0.60215855", "0.5995265", "0.5970869", "0.5898622", "0.5871981", "0.578133", "0.57785684", "0.5721136", "0.56748533", "0.56588805", "0.5651781", "0.56395024", "0.5610446", "0.55743384", "0.55734414", "0.55734414", "0.55526596", "0.55308867", "0.55259407", "0.55111945", "0.55071783", "0.5500291", "0.54966384", "0.54915226", "0.54564273", "0.54564273", "0.54519755", "0.54427516", "0.5437727", "0.54253334", "0.54243594", "0.5419931", "0.5414225", "0.5395817", "0.53922063", "0.53796244", "0.53687364", "0.5367551", "0.5367551", "0.5367551", "0.53586084", "0.53566587", "0.5348543", "0.5340343", "0.53323525", "0.53321904", "0.53321904", "0.5329369", "0.53206384", "0.5318815", "0.53120583", "0.52872413", "0.5275719", "0.52718294", "0.52648664", "0.5254681", "0.5248723", "0.52364135", "0.52262557", "0.52137053", "0.5204585", "0.51998836", "0.51989555", "0.5184894", "0.51691556", "0.5151904", "0.51364505", "0.5133243", "0.5128699", "0.51281583", "0.51240104", "0.51238906", "0.511334", "0.5112568", "0.51084125", "0.5102552", "0.50971454", "0.5096801", "0.5090083", "0.50888383", "0.5082142", "0.507996", "0.5077422", "0.5076012", "0.5054669", "0.5049087", "0.50469714", "0.5046833", "0.5041081", "0.5037749" ]
0.68717915
1
Encodes a string using a SHA1 hash.
public static function sha1_hash( $string ) { return '{SHA}'.base64_encode( pack( 'H*', sha1( $string ) ) ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function EncodeSHA1($string, $key) {\n $key = sha1($key);\n $strLen = strlen($string);\n $keyLen = strlen($key);\n for ($i = 0; $i < $strLen; $i++) {\n $ordStr = ord(substr($string,$i,1));\n if ($j == $keyLen) { $j = 0; }\n $ordKey = ord(substr($key,$j,1));\n $j++;\n $hash .= strrev(base_convert(dechex($ordStr + $ordKey),16,36));\n }\n return $hash;\n }", "public function sha1($str)\n {\n if (!function_exists('sha1')) {\n if (!function_exists('mhash')) {\n Fly::import('system.libraries.Sha1');\n $SH = new Sha1();\n return $SH->generate($str);\n } else {\n return bin2hex(mhash(MHASH_SHA1, $str));\n }\n } else {\n return sha1($str);\n }\n }", "public static function encryptSha1($value) {\n return sha1($value . ':' . self::AUTH_MAGIC_SHA1);\n }", "public static function hmac_sha1_sign($string = '', $key = '')\n\t\t{\n\t\t\t$key_64 = str_pad(((strlen((string)$key) > 64) ? pack('H*', sha1((string)$key)) : (string)$key), 64, chr(0x00));\n\n\t\t\treturn pack('H*', sha1(($key_64 ^ str_repeat(chr(0x5c), 64)).pack('H*', sha1(($key_64 ^ str_repeat(chr(0x36), 64)).(string)$string))));\n\t\t}", "function get_hash($string) {\r\n return hash('sha1', $string);\r\n}", "protected function doEncode($input)\n {\n return sha1($input);\n }", "private static function getHash($string)\n\t{\n\t\treturn base64_encode(extension_loaded('hash') ?\n\t\thash_hmac('sha1', $string, self::$__secretKey, true) : pack('H*', sha1(\n\t\t(str_pad(self::$__secretKey, 64, chr(0x00)) ^ (str_repeat(chr(0x5c), 64))) .\n\t\tpack('H*', sha1((str_pad(self::$__secretKey, 64, chr(0x00)) ^\n\t\t(str_repeat(chr(0x36), 64))) . $string)))));\n\t}", "function mcsha1($str)\n{\n\t$gmp = gmp_import(sha1($str, true));\n\tif(gmp_cmp($gmp, gmp_init(\"0x8000000000000000000000000000000000000000\")) >= 0)\n\t{\n\t\t$gmp = gmp_mul(gmp_add(gmp_xor($gmp, gmp_init(\"0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF\")), gmp_init(1)), gmp_init(-1));\n\t}\n\treturn gmp_strval($gmp, 16);\n}", "function js_sha1($str) {\r\n return js_str(sha1(php_str($str)));\r\n}", "protected function hash($string)\n {\n return hash_hmac('sha1', $string, $this->key(), true);\n }", "public function getSha1Sign ()\n {\n $arrayToHash = array();\n foreach ($this->_params as $key => $value) {\n if ($value != '' && $this->isValidParam($key)) {\n $arrayToHash[] = strtoupper($key) . '=' . $value .\n $this->_config['sha1InPassPhrase'];\n }\n }\n asort($arrayToHash);\n $stringToHash = implode('', $arrayToHash);\n return sha1($stringToHash);\n }", "function string3(){\n\n $string3 = \"Hola mundo\";\n $sha1 = sha1($string3);\n\n echo $sha1;\n\n}", "public function sha1Filter($string)\r\n {\r\n return sha1($string);\r\n }", "function _hash($string) {\n\t\t\t// Use sha1() if possible, php versions >= 4.3.0 and 5\n\t\t\tif(function_exists('sha1')) {\n\t\t\t\t$hash = sha1($string);\n\t\t\t} else {\n\t\t\t\t// Fall back to md5(), php versions 3, 4, 5\n\t\t\t\t$hash = md5($string);\n\t\t\t}\n\t\t\t$out ='';\n\t\t\t// Convert hexadecimal hash value to binary string\n\t\t\tfor($c=0;$c<strlen($hash);$c+=2) {\n\t\t\t\t$out .= $this->_hex2chr($hash[$c] . $hash[$c+1]);\n\t\t\t}\n\t\t\treturn $out;\n\t\t}", "private function hash($string)\n {\n if (!function_exists('hash')) {\n return sha1($string);\n }\n return hash('sha256', $string);\n }", "function sha1_bin($hex)\r\n{\r\n return pack('H40', $hex);\r\n}", "protected function hmacsha1($key, $data)\n {\n\treturn base64_encode(hash_hmac('SHA1', $data, $key, true));\n }", "function getSha1() ;", "public function hash($str)\n {\n return ($this->_hashType == 'sha1') ? $this->sha1($str) : md5($str);\n }", "public function signString($string, $secretKey)\n {\n return base64_encode(\n hash_hmac('sha1', $string, $secretKey, true)\n );\n }", "public function getSha1() {}", "public function getSha1() {}", "private function hash($str)\n {\n return ($this->hashType == 'sha1') ? $this->sha1($str) : md5($str);\n }", "public static function DecodeSHA1($string,$key) {\n $key = sha1($key);\n $strLen = strlen($string);\n $keyLen = strlen($key);\n for ($i = 0; $i < $strLen; $i+=2) {\n $ordStr = hexdec(base_convert(strrev(substr($string,$i,2)),36,16));\n if ($j == $keyLen) { $j = 0; }\n $ordKey = ord(substr($key,$j,1));\n $j++;\n $hash .= chr($ordStr - $ordKey);\n }\n return $hash;\n }", "function criptografa($str)\r\n\t{\r\n\t\t$str = sha1( md5( sha1 ( md5 ( $str ) ) ) );\r\n\r\n\t\treturn $str; \t\t\r\n\t}", "public function _hash($str) {\n switch ($this->config['algoritmo_criptografia']) {\n case 'sha1':\n return ($str == '') ? '' : sha1($str);\n break;\n case 'crypt':\n return crypt($str);\n break;\n case 'base64':\n return base64_encode($str);\n break;\n case 'plain':\n return $str;\n break;\n case 'md5':\n default:\n return md5($str);\n break;\n }\n }", "abstract function encode($s);", "protected function _getHash($string) {\n\n\t\t\treturn sha1($string);\n\t\t}", "public function hash($str)\n\t{\n\t\t// on some servers hash() can be disabled :( then password are not encrypted \n\t\tif (empty($this->config['hash_method']))\n\t\t\treturn $this->config['salt_prefix'].$str.$this->config['salt_suffix']; \n\t\telse\n\t\t\treturn hash($this->config['hash_method'], $this->config['salt_prefix'].$str.$this->config['salt_suffix']); \n\t}", "public static function hash($string) {\n $hash = hash_init(Config::get('HASH'));\n hash_update($hash, $string);\n hash_update($hash, Config::get('SALT'));\n\n return hash_final($hash);\n }", "public function hash ($string){\n\t\treturn hash('sha512', $string . config_item('encryption_key'));\n\t\t}", "public function hash($string){\n return hash('sha512', $string . config_item('encryption_key'));\n }", "function my_hash($string, $username = null) {\r\n\t\t$salt = getStoredSalt($username);\r\n\t\tif (!$salt) {\r\n\t\t\t// generate the salt and store it in the database\r\n\t\t\t$salt = substr(md5(uniqid(rand(),true)),0,24);\r\n\t\t\tstoreSalt($username, $salt);\r\n\t\t}\r\n\t\treturn sha1($salt . $string);\r\n\t}", "protected function encriptar($string){\n //La función md5() permite encriptar el string\n return md5($string);\n }", "public function set_hash($string){\n\t\t\t$string = hash($this->hash_algorithm, $string . $this->password_salt);\n\t\t\t$string = $this->password_addenda . $string . $this->password_addenda;\n\t\t\treturn $string;\n\n\t\t}", "public function encode($string, $key = '')\n {\n $key = $this->getKey($key);\n $enc = $this->mcryptEncode($string, $key);\n\n return base64_encode($enc);\n }", "public static function hash($string)\n\t{\n\t\tif(extension_loaded('hash')) {\n\t\t\tif(!($key = Config::getVar('secret_key'))) {\n\t\t\t\tthrow new BakedCarrotException('\"secret_key\" parameter is not defined');\n\t\t\t}\n\n\t\t\treturn hash_hmac('sha256', $string, $key);\n\t\t}\n\t\telse {\n\t\t\treturn sha1($key);\n\t\t}\n\t}", "private static function encode($string)\n {\n return base64_encode($string);\n }", "public function hash( $string ) {\n\n return hash( 'sha512', $string.config_item( 'encryption_key' ) );\n }", "protected function hmacsha1($key, $data)\n {\n $blocksize=64;\n $hashfunc='sha1';\n if (strlen($key)>$blocksize) {\n $key=pack('H*', $hashfunc($key));\n }\n $key=str_pad($key, $blocksize, chr(0x00));\n $ipad=str_repeat(chr(0x36), $blocksize);\n $opad=str_repeat(chr(0x5c), $blocksize);\n $hmac = pack(\n 'H*', $hashfunc(\n ($key^$opad).pack(\n 'H*', $hashfunc(\n ($key^$ipad).$data\n )\n )\n )\n );\n return base64_encode($hmac);\n }", "function make_hash($str)\n{\n return sha1(md5($str));\n}", "function make_hash($str)\n{\n return sha1(md5($str));\n}", "public static function hash($str, $type = 'sha1')\n {\n if ($type == 'sha1') {\n return sha1($str);\n } else {\n return md5($str);\n }\n }", "public static function hash($string)\n {\n // The hash is a string of hex digits (with a length of 32 bytes for md5).\n return md5($string);\n }", "public function encode(string $string): string\n {\n return base64_encode($string);\n }", "function encrypt($string)\n{\n\t$hash = md5($string);\n\t$blok1 = substr($hash, 0,8);\n\t$blok2 = substr($hash, 8,8);\n\t$blok3 = substr($hash, 16,4);\n\t$blok4 = substr($hash, 20,4);\n\t$blok5 = substr($hash, 24,8);\n\n\treturn $blok2.'-'.$blok4.'-'.$blok5.'-'.$blok3.'-'.$blok1;\n}", "public function setSha1(?string $value): void {\n $this->getBackingStore()->set('sha1', $value);\n }", "public function testThatEscapeDataWorksAsExpectedHashAlgoSha1() {\n // because \\RendererTest::$hash_algo_index will have a value of 3\n // see \\Rotexsoft\\FileRenderer::hash_algos() in ./tests/bootstrap.php\n \n $this->executeEscapeDataTests();\n }", "public static function encode($string) {\n\t\treturn '=?utf-8?B?' . base64_encode($string) . '?=';\n\t}", "function hashing($s){\r\n $letters = \"acdegilmnoprstuw\";\r\n $h = 7;\r\n if(!empty($s)){\r\n $chars = str_split($s);\r\n foreach($chars as $char){\r\n $h = bcadd(bcmul($h,37), stripos($letters,$char));\r\n }\r\n return $h;\r\n }\r\n }", "private function encrypt($string) {\r\n if ($this->settings[\"encryption\"]) {\r\n $string = $string . $this->settings[\"salt\"];\r\n return base64_encode($string);\r\n }\r\n return $string;\r\n }", "public function hash(): string;", "public function over_salt ( string $hashable_string ) : string\n {\n $hashable_string = cryptme  ( base64_encode ( $hashable_string ) );\n }", "public static function isSha1($input) {\n return preg_match(\"/^[a-f0-9]{40}$/\", strtolower($input));\n }", "function _salt($str)\n\t{\n\t\treturn sha1($this->CI->config->item('encryption_key').$str);\n\t}", "public function hash($str)\n\t{\n\t\treturn hash($this->_config['hash_method'], $str);\n\t}", "public function encrypt_encode($string = '', $key = false){\n if($key){\n return base64_encode( $this->encrypt->encode($string, $key) );\n }else{\n return base64_encode( $this->encrypt->encode($string) );\n }\n \n }", "function dsq_hmacsha1($data, $key) {\n $blocksize=64;\n $hashfunc='sha1';\n if (strlen($key)>$blocksize)\n $key=pack('H*', $hashfunc($key));\n $key=str_pad($key,$blocksize,chr(0x00));\n $ipad=str_repeat(chr(0x36),$blocksize);\n $opad=str_repeat(chr(0x5c),$blocksize);\n $hmac = pack(\n 'H*',$hashfunc(\n ($key^$opad).pack(\n 'H*',$hashfunc(\n ($key^$ipad).$data\n )\n )\n )\n );\n return bin2hex($hmac);\n}", "public static function hash($string)\n {\n if (function_exists('md5')) {\n return md5($string);\n }\n\n if (is_array($string) || is_object($string)) {\n $type = gettype($string);\n $caller = next(debug_backtrace());\n $eror['line'] = $caller['line'];\n $eror['file'] = strip_tags($caller['file']);\n $error['type'] = E_USER_ERROR;\n trigger_error(\n \"md5() expects parameter 1 to be string, \"\n . $type\n . \" given in <b>{$file}</b> on line <b>{$line}</b><br />\\n\",\n E_USER_ERROR\n );\n\n return;\n }\n\n // convert into string\n $string = \"{$string}\";\n $instance = self::singleton();\n $A = \"67452301\";\n $a = $A;\n $B = \"efcdab89\";\n $b = $B;\n $C = \"98badcfe\";\n $c = $C;\n $D = \"10325476\";\n $d = $D;\n $words = $instance->binArray($string);\n for ($i = 0; $i <= count($words)/16-1; $i++) {\n $a = $A;\n $b = $B;\n $c = $C;\n $d = $D;\n /* ROUND 1 */\n $a = $instance->pad($a, $b, $c, $d, $words[0 + ($i * 16)], 7, \"d76aa478\", '1');\n $d = $instance->pad($d, $a, $b, $c, $words[1 + ($i * 16)], 12, \"e8c7b756\", '1');\n $c = $instance->pad($c, $d, $a, $b, $words[2 + ($i * 16)], 17, \"242070db\", '1');\n $b = $instance->pad($b, $c, $d, $a, $words[3 + ($i * 16)], 22, \"c1bdceee\", '1');\n $a = $instance->pad($a, $b, $c, $d, $words[4 + ($i * 16)], 7, \"f57c0faf\", '1');\n $d = $instance->pad($d, $a, $b, $c, $words[5 + ($i * 16)], 12, \"4787c62a\", '1');\n $c = $instance->pad($c, $d, $a, $b, $words[6 + ($i * 16)], 17, \"a8304613\", '1');\n $b = $instance->pad($b, $c, $d, $a, $words[7 + ($i * 16)], 22, \"fd469501\", '1');\n $a = $instance->pad($a, $b, $c, $d, $words[8 + ($i * 16)], 7, \"698098d8\", '1');\n $d = $instance->pad($d, $a, $b, $c, $words[9 + ($i * 16)], 12, \"8b44f7af\", '1');\n $c = $instance->pad($c, $d, $a, $b, $words[10 + ($i * 16)], 17, \"ffff5bb1\", '1');\n $b = $instance->pad($b, $c, $d, $a, $words[11 + ($i * 16)], 22, \"895cd7be\", '1');\n $a = $instance->pad($a, $b, $c, $d, $words[12 + ($i * 16)], 7, \"6b901122\", '1');\n $d = $instance->pad($d, $a, $b, $c, $words[13 + ($i * 16)], 12, \"fd987193\", '1');\n $c = $instance->pad($c, $d, $a, $b, $words[14 + ($i * 16)], 17, \"a679438e\", '1');\n $b = $instance->pad($b, $c, $d, $a, $words[15 + ($i * 16)], 22, \"49b40821\", '1');\n\n /* round 2 */\n $a = $instance->pad($a, $b, $c, $d, $words[1 + ($i * 16)], 5, \"f61e2562\", '2');\n $d = $instance->pad($d, $a, $b, $c, $words[6 + ($i * 16)], 9, \"c040b340\", '2');\n $c = $instance->pad($c, $d, $a, $b, $words[11 + ($i * 16)], 14, \"265e5a51\", '2');\n $b = $instance->pad($b, $c, $d, $a, $words[0 + ($i * 16)], 20, \"e9b6c7aa\", '2');\n $a = $instance->pad($a, $b, $c, $d, $words[5 + ($i * 16)], 5, \"d62f105d\", '2');\n $d = $instance->pad($d, $a, $b, $c, $words[10 + ($i * 16)], 9, \"2441453\", '2');\n $c = $instance->pad($c, $d, $a, $b, $words[15 + ($i * 16)], 14, \"d8a1e681\", '2');\n $b = $instance->pad($b, $c, $d, $a, $words[4 + ($i * 16)], 20, \"e7d3fbc8\", '2');\n $a = $instance->pad($a, $b, $c, $d, $words[9 + ($i * 16)], 5, \"21e1cde6\", '2');\n $d = $instance->pad($d, $a, $b, $c, $words[14 + ($i * 16)], 9, \"c33707d6\", '2');\n $c = $instance->pad($c, $d, $a, $b, $words[3 + ($i * 16)], 14, \"f4d50d87\", '2');\n $b = $instance->pad($b, $c, $d, $a, $words[8 + ($i * 16)], 20, \"455a14ed\", '2');\n $a = $instance->pad($a, $b, $c, $d, $words[13 + ($i * 16)], 5, \"a9e3e905\", '2');\n $d = $instance->pad($d, $a, $b, $c, $words[2 + ($i * 16)], 9, \"fcefa3f8\", '2');\n $c = $instance->pad($c, $d, $a, $b, $words[7 + ($i * 16)], 14, \"676f02d9\", '2');\n $b = $instance->pad($b, $c, $d, $a, $words[12 + ($i * 16)], 20, \"8d2a4c8a\", '2');\n\n /* round 3 */\n $a = $instance->pad($a, $b, $c, $d, $words[5 + ($i * 16)], 4, \"fffa3942\", '3');\n $d = $instance->pad($d, $a, $b, $c, $words[8 + ($i * 16)], 11, \"8771f681\", '3');\n $c = $instance->pad($c, $d, $a, $b, $words[11 + ($i * 16)], 16, \"6d9d6122\", '3');\n $b = $instance->pad($b, $c, $d, $a, $words[14 + ($i * 16)], 23, \"fde5380c\", '3');\n $a = $instance->pad($a, $b, $c, $d, $words[1 + ($i * 16)], 4, \"a4beea44\", '3');\n $d = $instance->pad($d, $a, $b, $c, $words[4 + ($i * 16)], 11, \"4bdecfa9\", '3');\n $c = $instance->pad($c, $d, $a, $b, $words[7 + ($i * 16)], 16, \"f6bb4b60\", '3');\n $b = $instance->pad($b, $c, $d, $a, $words[10 + ($i * 16)], 23, \"bebfbc70\", '3');\n $a = $instance->pad($a, $b, $c, $d, $words[13 + ($i * 16)], 4, \"289b7ec6\", '3');\n $d = $instance->pad($d, $a, $b, $c, $words[0 + ($i * 16)], 11, \"eaa127fa\", '3');\n $c = $instance->pad($c, $d, $a, $b, $words[3 + ($i * 16)], 16, \"d4ef3085\", '3');\n $b = $instance->pad($b, $c, $d, $a, $words[6 + ($i * 16)], 23, \"4881d05\", '3');\n $a = $instance->pad($a, $b, $c, $d, $words[9 + ($i * 16)], 4, \"d9d4d039\", '3');\n $d = $instance->pad($d, $a, $b, $c, $words[12 + ($i * 16)], 11, \"e6db99e5\", '3');\n $c = $instance->pad($c, $d, $a, $b, $words[15 + ($i * 16)], 16, \"1fa27cf8\", '3');\n $b = $instance->pad($b, $c, $d, $a, $words[2 + ($i * 16)], 23, \"c4ac5665\", '3');\n\n /* round 4 */\n $a = $instance->pad($a, $b, $c, $d, $words[0 + ($i * 16)], 6, \"f4292244\", '4');\n $d = $instance->pad($d, $a, $b, $c, $words[7 + ($i * 16)], 10, \"432aff97\", '4');\n $c = $instance->pad($c, $d, $a, $b, $words[14 + ($i * 16)], 15, \"ab9423a7\", '4');\n $b = $instance->pad($b, $c, $d, $a, $words[5 + ($i * 16)], 21, \"fc93a039\", '4');\n $a = $instance->pad($a, $b, $c, $d, $words[12 + ($i * 16)], 6, \"655b59c3\", '4');\n $d = $instance->pad($d, $a, $b, $c, $words[3 + ($i * 16)], 10, \"8f0ccc92\", '4');\n $c = $instance->pad($c, $d, $a, $b, $words[10 + ($i * 16)], 15, \"ffeff47d\", '4');\n $b = $instance->pad($b, $c, $d, $a, $words[1 + ($i * 16)], 21, \"85845dd1\", '4');\n $a = $instance->pad($a, $b, $c, $d, $words[8 + ($i * 16)], 6, \"6fa87e4f\", '4');\n $d = $instance->pad($d, $a, $b, $c, $words[15 + ($i * 16)], 10, \"fe2ce6e0\", '4');\n $c = $instance->pad($c, $d, $a, $b, $words[6 + ($i * 16)], 15, \"a3014314\", '4');\n $b = $instance->pad($b, $c, $d, $a, $words[13 + ($i * 16)], 21, \"4e0811a1\", '4');\n $a = $instance->pad($a, $b, $c, $d, $words[4 + ($i * 16)], 6, \"f7537e82\", '4');\n $d = $instance->pad($d, $a, $b, $c, $words[11 + ($i * 16)], 10, \"bd3af235\", '4');\n $c = $instance->pad($c, $d, $a, $b, $words[2 + ($i * 16)], 15, \"2ad7d2bb\", '4');\n $b = $instance->pad($b, $c, $d, $a, $words[9 + ($i * 16)], 21, \"eb86d391\", '4');\n\n $A = $instance->add(\n $instance->hexdec($a),\n $instance->hexdec($A)\n );\n $B = $instance->add(\n $instance->hexdec($b),\n $instance->hexdec($B)\n );\n $C = $instance->add(\n $instance->hexdec($c),\n $instance->hexdec($C)\n );\n $D = $instance->add(\n $instance->hexdec($d),\n $instance->hexdec($D)\n );\n }\n\n $words = $instance->str2Hex($A)\n . $instance->str2Hex($B)\n . $instance->str2Hex($C)\n . $instance->str2Hex($D);\n unset($a, $b, $c, $d, $A, $B, $C, $D, $string, $instance);\n return $words;\n }", "private function amazon_hmac($stringToSign) \n {\n // helper function binsha1 for amazon_hmac (returns binary value of sha1 hash)\n if (!function_exists('binsha1'))\n { \n if (version_compare(phpversion(), \"5.0.0\", \">=\")) { \n function binsha1($d) { return sha1($d, true); }\n } else { \n function binsha1($d) { return pack('H*', sha1($d)); }\n }\n }\n\n global $aws_secret;\n\n if (strlen($aws_secret) == 40)\n $aws_secret = $aws_secret.str_repeat(chr(0), 24);\n\n $ipad = str_repeat(chr(0x36), 64);\n $opad = str_repeat(chr(0x5c), 64);\n\n $hmac = binsha1(($aws_secret^$opad).binsha1(($aws_secret^$ipad).$stringToSign));\n return base64_encode($hmac);\n }", "function encrypt(string $string): string\n{\n $blowfishSalt = bin2hex(openssl_random_pseudo_bytes(22));\n $hash = crypt($string, \"$2y$12$\" . $blowfishSalt);\n\n return $hash;\n}", "public static function hash($string) {\n\treturn hash('sha512',$string);\n }", "function encode_string($str)\r\n {\r\n return strlen($str) . ':' . $str;\r\n }", "public static function hash($value)\n {\n return hash_hmac('sha1', $value, Config::get('app.key'));\n }", "protected function _sign_string($string, $secret) {\n\t\treturn hash_hmac(\"sha1\", $string, $secret);\n\t}", "function hashid_encode($data, $name = null)\n {\n return hashid($name)->encode($data);\n }", "public function hash($str) {\n\n return hash($this->hash_method, $str);\n }", "function encrypt($string, $key=KEY) {\n return base64_encode(encrypt_string($string, $key));\n }", "static function hash_string($input, $config = []) {\n\t\t$defaults = [\n\t\t\t'use_salt' => true,\n\t\t\t'encryption' => PASSWORD_BCRYPT\n\t\t];\n\t\t$config = array_merge($defaults, $config);\n\n\t\t//Create random bytes\n\t\t$salt_byte = random_bytes(15);\n\t\t//Make the bytes into a readable string (to save to the database)\n\t\t$salt_string = $config['use_salt'] ? bin2hex($salt_byte) : \"\";\n\t\t//Put the salt-string after the password for the hashing for both creation and login\n\t\t$string_hashed = password_hash($input . $salt_string, $config['encryption']);\n\n\t\treturn ['hash' => $string_hashed, 'salt' => $salt_string];\n\t}", "function onesignin_client_hash($data) {\n if (is_array($data)) {\n $data = implode(':', $data);\n }\n $hash = base64_encode(hash('sha512', $data, TRUE));\n return strtr($hash, array('+' => '-', '/' => '_', '=' => ''));\n}", "private static function hash($str) {\n $hash = 0;\n\n for ($i = 0, $l = strlen($str); $i < $l; $i++) {\n $hash += ord($str[$i]);\n $hash += $hash << 10;\n $hash ^= $hash >> 6;\n }\n\n $hash += $hash << 3;\n $hash ^= $hash >> 6;\n $hash += $hash << 16;\n\n return $hash;\n }", "public static function make($string, $salt = ''){\n return hash('sha256', $string . $salt);\n }", "protected function hash($str)\n\t{\n\t\treturn hash($this->config['hash_method'], $str);\n\t}", "public static function encrypt($string = \"\") {\n\t\t$salt = G::module ()->salt;\n\t\t$hashFunc = G::module ()->hashFunc;\n\t\t$string = sprintf ( \"%s%s%s\", $salt, $string, $salt );\n\t\t\n\t\tif (! function_exists ( $hashFunc ))\n\t\t\tthrow new CException ( 'Function `' . $hashFunc . '` is not a valid callback for hashing algorithm.' );\n\t\t\n\t\treturn $hashFunc ( $string );\n\t}", "function EncodeMcrypt( $string )\n\t{\n\t\t$iv_size = mcrypt_get_iv_size(MCRYPT_RIJNDAEL_256, MCRYPT_MODE_ECB);\n\t\t$iv = mcrypt_create_iv($iv_size, MCRYPT_RAND);\n\t\t$result = mcrypt_encrypt(MCRYPT_RIJNDAEL_256, $this->key, $string, MCRYPT_MODE_ECB, $iv);\n\t\treturn $result;\n\t}", "protected function hash($string)\n\t{\n\t\treturn md5($string);\n\n\t}", "function sha256($string) {\n $algo = 'sha256';\n return hash($algo, $string . UNIQUE_IDENTIFIER);\n }", "function _encode($string) {\n\t\tif (preg_match('/(\\/|&)/', $string)) {\n\t\t\t$string = urlencode($string);\n\t\t}\n\n\t\treturn urlencode($string);\n\t}", "public static function isSHA1( $str ) {\n\t\treturn !!preg_match( '/^[0-9A-F]{40}$/i', $str );\n\t}", "protected static function encryption($string){\n $output=FALSE;\n $key=hash('sha256', SECRET_KEY);\n $iv=substr(hash('sha256', SECRET_IV), 0, 16);\n $output=openssl_encrypt($string, METHOD, $key, 0, $iv);\n $output=base64_encode($output);\n return $output;\n }", "public function encodePassword(string $raw): string;", "private function hashing() {\n\t\t$data = md5($this->name.$this->date);\n\t\t$data = md5($data);\n\t\t$data = strrev($data);\n\t\t//$data = md5($data);\n\t\t$data = strtoupper($data);\n\t\t//$data = strrev($data);\n\n\t\t$datatemp = NULL;\n\t\tfor($i=0; $i<=strlen($data); $i++) {\n\t\t\t$arr = substr($data, $i, 1);\n\t\t\tif($i == '4' || $i == '8' || $i == '12' || $i == '16' || $i == '20' || $i == '24' || $i == '28' || $i == '32') {\n\t\t\t\t$datatemp .= substr($this->strfinger, ($i/4)-1, 1);\t\n\t\t\t}\n\t\t\t$datatemp .= \"/%\".$this->combine[$arr];\n\t\t}\n\n\t\t$this->resulthashcode = substr($datatemp, 1, strlen($datatemp)-6);\n\t\t$this->result = true;\n\t}", "protected function hash($string, $secure = true)\n {\n // If no specific hash method is specificed, but requested secure\n // default to md5, as that is the default Vanilla method.\n if ($secure === true) {\n $secure = 'md5';\n }\n\n switch ($secure) {\n case 'sha1':\n return sha1($string);\n break;\n case 'md5':\n case false:\n return md5($string);\n default:\n return hash($secure, $string);\n }\n }", "public function hash(string $value)\n {\n }", "function breach_encode($str)\n{\n if (!function_exists(\"mcrypt_create_iv\")) {\n trigger_error(\n \"Required function is missing: mcrypt_create_iv()\",\n E_USER_ERROR\n );\n }\n\n $pad = mcrypt_create_iv(strlen($str), MCRYPT_DEV_URANDOM);\n $encoded = \"\";\n for ($i = 0; $i < strlen($str); $i++) {\n $encoded .= chr(ord($str[$i]) ^ ord($pad[$i]));\n }\n return bin2hex($pad . $encoded);\n}", "private function hash($key)\n {\n $const_hash = '258EAFA5-E914-47DA-95CA-C5AB0DC85B11';\n\n return base64_encode(pack('H*', sha1($key . $const_hash)));\n }", "function ehash_encrypt($pure_string, $encryption_key) {\n \n\tif (empty($pure_string)) {\n return '';\n }\n $iv_size = mcrypt_get_iv_size(MCRYPT_BLOWFISH, MCRYPT_MODE_ECB);\n $iv = mcrypt_create_iv($iv_size, MCRYPT_RAND);\n $encrypted_string = base64_encode(mcrypt_encrypt(MCRYPT_BLOWFISH, $encryption_key, $pure_string, MCRYPT_MODE_ECB, $iv));\n \n return $encrypted_string;\n}", "function encrypt($string) {\n\t\t\t$iv = $this->_generate_iv();\n\t\t\t\n\t\t\t// Clear output\n\t\t\t$out = '';\n\t\t\t\n\t\t\t// First block of output is ($this->hash_hey XOR IV)\n\t\t\tfor($c=0;$c < $this->hash_length;$c++) {\n\t\t\t\t$out .= chr(ord($iv[$c]) ^ ord($this->hash_key[$c]));\n\t\t\t}\n\t\n\t\t\t// Use IV as first key\n\t\t\t$key = $iv;\n\t\t\t$c = 0;\n\t\n\t\t\t// Go through input string\n\t\t\twhile($c < strlen($string)) {\n\t\t\t\t// If we have used all characters of the current key we switch to a new one\n\t\t\t\tif(($c != 0) and ($c % $this->hash_length == 0)) {\n\t\t\t\t\t// New key is the hash of current key and last block of plaintext\n\t\t\t\t\t$key = $this->_hash($key . substr($string,$c - $this->hash_length,$this->hash_length));\n\t\t\t\t}\n\t\t\t\t// Generate output by xor-ing input and key character for character\n\t\t\t\t$out .= chr(ord($key[$c % $this->hash_length]) ^ ord($string[$c]));\n\t\t\t\t$c++;\n\t\t\t}\n\t\t\t// Apply base64 encoding if necessary\n\t\t\tif($this->base64) $out = base64_encode($out);\n\t\t\treturn $out;\n\t\t}", "public function getSha1()\n {\n return $this->sha1;\n }", "function simple_encode($data, $passwd, $method='aes-128-cbc', $options=0, $iv='SomeA1AweS0meK5y') {\n return openssl_encrypt ($data, $method, $passwd, $options, $iv);\n}", "public static function rsa_sha1_sign($string = '', $key = '')\n\t\t{\n\t\t\t$key = c_ws_plugin__s2member_utils_strings::_rsa_sha1_key_fix_wrappers((string)$key);\n\n\t\t\t$signature = c_ws_plugin__s2member_utils_strings::_rsa_sha1_shell_sign((string)$string, (string)$key);\n\n\t\t\tif(empty($signature) && stripos(PHP_OS, 'win') === 0 && file_exists(($openssl = 'c:\\\\openssl-win32\\\\bin\\\\openssl.exe')))\n\t\t\t\t$signature = c_ws_plugin__s2member_utils_strings::_rsa_sha1_shell_sign((string)$string, (string)$key, $openssl);\n\n\t\t\tif(empty($signature) && stripos(PHP_OS, 'win') === 0 && file_exists(($openssl = 'c:\\\\openssl-win64\\\\bin\\\\openssl.exe')))\n\t\t\t\t$signature = c_ws_plugin__s2member_utils_strings::_rsa_sha1_shell_sign((string)$string, (string)$key, $openssl);\n\n\t\t\tif(empty($signature) && function_exists('openssl_get_privatekey') && function_exists('openssl_sign') && is_resource($private_key = openssl_get_privatekey((string)$key)))\n\t\t\t\topenssl_sign((string)$string, $signature, $private_key, OPENSSL_ALGO_SHA1).openssl_free_key($private_key);\n\n\t\t\tif(empty($signature)) // Now, if we're still empty, trigger an error here.\n\t\t\t\ttrigger_error('s2Member was unable to generate an RSA-SHA1 signature.'.\n\t\t\t\t ' Please make sure your installation of PHP is compiled with OpenSSL: `openssl_sign()`.'.\n\t\t\t\t ' See: http://php.net/manual/en/function.openssl-sign.php', E_USER_ERROR);\n\n\t\t\treturn (!empty($signature)) ? $signature : FALSE;\n\t\t}", "function op_sha1(&$stack, &$bytecode, &$return) {\n if (count($stack) == 0) {\n throw new CScriptNotValid();\n }\n\n // Get value from the stack\n $val = array_pop($stack);\n\n // Hash value (sha1)\n if (function_exists('hash')) {\n $val = hash('sha1', $val, true);\n } else if (function_exists('mhash')) {\n $val = mhash(MHASH_SHA1, $val);\n } else {\n throw new \\Exception(\"Not implemented\");\n }\n\n // Push hash on stack\n array_push($stack, $val);\n }", "abstract public function encode();", "function EncodeBase64( $string )\n\t{\n\t\treturn base64_encode( $string );\n\t}", "private function generatePasswordHash($string)\n\t{\n\t\t$string = is_string($string) ? $string : strval($string);\n\t\t$pwHash = encrypto($string);\n\t\treturn $pwHash;\n\t}", "public static function checksumEncode(string $value, int $len = 256): string\n {\n $strReturn = '';\n $strHash = static::stripPrefix(strtolower($value));\n $strHashed = Keccak::hash($strHash, $len);\n $arrHash = str_split($strHash);\n\n foreach ($arrHash as $i => $v) {\n if (false !== strpos(EthType::HEX_INT, $v)) {\n $strReturn .= $v;\n } elseif (false !== stripos(EthType::HEX_CHARS, $v)) {\n $n = hexdec($strHashed[$i]);\n\n if ($n > 7) {\n $strReturn .= strtoupper($v);\n } else {\n $strReturn .= $v;\n }\n } else {\n throw new Exception(\"Unknown hex character: \" . $v);\n }\n }\n\n return static::appendPrefix($strReturn);\n }", "function androidHashCheck($paramString,$androidCrypt){\r\n\t\t$salt = 0;\r\n\r\n\t\tforeach($paramString as $string) {\r\n\t\t\t$encryptString .= $string; //concatenate all strings in array\r\n\t\t\tfor($i=0;$i<strlen($string);$i++) {\r\n\t\t\t\tif($i%2==0)\t// only find sum of every other character's ascii value\r\n\t\t\t\t\t$salt += ord($string[$i]);\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\t$salt *= 97;\r\n\t\t$salt = strval($salt).\"z\";\r\n\t\t//echo $salt.\" \";\r\n\t\t$encryptString .= $salt;\r\n\t\t$encryptString = md5($encryptString);\r\n\t\t//echo $encryptString;\r\n\t\tif($encryptString == $androidCrypt) \r\n\t\t\treturn true;\r\n\t\telse\r\n\t\t\treturn false;\t\r\n\t}", "public static function encryptSHA512($string)\r\n\t{\r\n\t\tif(!$string){\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn hash('sha512', $string);\r\n\t}", "public function encodePassword($raw, $salt)\n {\n return md5($salt . $raw); \n }", "static function setHashedValue($value) {\n $length = strlen($value);\n $middle = ($length / 2);\n if ($middle > 0) {\n $value1 = substr($value, 0, $middle - 1);\n $value2 = substr($value, $middle, $length - 1);\n $hashedvalue = sha1('2@!' . md5($value1) . $value2 . 'o&#');\n } else {\n $hashedvalue = sha1('2@!' . md5($value . 'o&#'));\n }\n return $hashedvalue;\n }" ]
[ "0.7722466", "0.7115078", "0.71039987", "0.6792224", "0.6705275", "0.67006606", "0.6697874", "0.66760564", "0.6661866", "0.6647009", "0.6605702", "0.65713686", "0.64932233", "0.6413858", "0.6308424", "0.6291928", "0.61868256", "0.6183349", "0.617936", "0.61390626", "0.61295205", "0.6129149", "0.60956055", "0.6066147", "0.6026641", "0.602179", "0.60078603", "0.59974605", "0.59919375", "0.5982964", "0.5945596", "0.59368986", "0.592382", "0.5923781", "0.5923399", "0.5886583", "0.5853772", "0.5845555", "0.5845005", "0.5831193", "0.5828303", "0.5828303", "0.5796297", "0.57756907", "0.57663804", "0.5755072", "0.5752295", "0.5709576", "0.5709477", "0.57079417", "0.5707007", "0.5699523", "0.56763124", "0.5667982", "0.5641474", "0.56384724", "0.5627719", "0.5623992", "0.5623618", "0.55856603", "0.55816424", "0.5565417", "0.55563813", "0.5552027", "0.5546526", "0.55148095", "0.55092895", "0.5486741", "0.5481573", "0.5481471", "0.5474907", "0.54728913", "0.5471578", "0.5471553", "0.5459285", "0.5446233", "0.5444238", "0.54330206", "0.542297", "0.54161346", "0.5409266", "0.5408299", "0.54053545", "0.5399305", "0.5394853", "0.5385424", "0.53705996", "0.53655356", "0.53565997", "0.5348213", "0.5340794", "0.53301793", "0.53264487", "0.5324289", "0.53211355", "0.5320898", "0.53170073", "0.531553", "0.52974266", "0.5293928" ]
0.7630864
1
Encodes a string using a MD5 hash.
public static function md5_hash( $string ) { return '{MD5}'.base64_encode( pack( 'H*', md5( $string ) ) ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function encriptar($string){\n //La función md5() permite encriptar el string\n return md5($string);\n }", "function encrypt_data($str){\n\treturn md5($str);\n}", "function encrypt($string)\n{\n\t$hash = md5($string);\n\t$blok1 = substr($hash, 0,8);\n\t$blok2 = substr($hash, 8,8);\n\t$blok3 = substr($hash, 16,4);\n\t$blok4 = substr($hash, 20,4);\n\t$blok5 = substr($hash, 24,8);\n\n\treturn $blok2.'-'.$blok4.'-'.$blok5.'-'.$blok3.'-'.$blok1;\n}", "protected function hash($string)\n\t{\n\t\treturn md5($string);\n\n\t}", "function string2(){\n\n $string2 = \"Hola mundo\";\n $md5 = md5($string2);\n\n echo $md5;\n\n}", "public static function hash($string)\n {\n if (function_exists('md5')) {\n return md5($string);\n }\n\n if (is_array($string) || is_object($string)) {\n $type = gettype($string);\n $caller = next(debug_backtrace());\n $eror['line'] = $caller['line'];\n $eror['file'] = strip_tags($caller['file']);\n $error['type'] = E_USER_ERROR;\n trigger_error(\n \"md5() expects parameter 1 to be string, \"\n . $type\n . \" given in <b>{$file}</b> on line <b>{$line}</b><br />\\n\",\n E_USER_ERROR\n );\n\n return;\n }\n\n // convert into string\n $string = \"{$string}\";\n $instance = self::singleton();\n $A = \"67452301\";\n $a = $A;\n $B = \"efcdab89\";\n $b = $B;\n $C = \"98badcfe\";\n $c = $C;\n $D = \"10325476\";\n $d = $D;\n $words = $instance->binArray($string);\n for ($i = 0; $i <= count($words)/16-1; $i++) {\n $a = $A;\n $b = $B;\n $c = $C;\n $d = $D;\n /* ROUND 1 */\n $a = $instance->pad($a, $b, $c, $d, $words[0 + ($i * 16)], 7, \"d76aa478\", '1');\n $d = $instance->pad($d, $a, $b, $c, $words[1 + ($i * 16)], 12, \"e8c7b756\", '1');\n $c = $instance->pad($c, $d, $a, $b, $words[2 + ($i * 16)], 17, \"242070db\", '1');\n $b = $instance->pad($b, $c, $d, $a, $words[3 + ($i * 16)], 22, \"c1bdceee\", '1');\n $a = $instance->pad($a, $b, $c, $d, $words[4 + ($i * 16)], 7, \"f57c0faf\", '1');\n $d = $instance->pad($d, $a, $b, $c, $words[5 + ($i * 16)], 12, \"4787c62a\", '1');\n $c = $instance->pad($c, $d, $a, $b, $words[6 + ($i * 16)], 17, \"a8304613\", '1');\n $b = $instance->pad($b, $c, $d, $a, $words[7 + ($i * 16)], 22, \"fd469501\", '1');\n $a = $instance->pad($a, $b, $c, $d, $words[8 + ($i * 16)], 7, \"698098d8\", '1');\n $d = $instance->pad($d, $a, $b, $c, $words[9 + ($i * 16)], 12, \"8b44f7af\", '1');\n $c = $instance->pad($c, $d, $a, $b, $words[10 + ($i * 16)], 17, \"ffff5bb1\", '1');\n $b = $instance->pad($b, $c, $d, $a, $words[11 + ($i * 16)], 22, \"895cd7be\", '1');\n $a = $instance->pad($a, $b, $c, $d, $words[12 + ($i * 16)], 7, \"6b901122\", '1');\n $d = $instance->pad($d, $a, $b, $c, $words[13 + ($i * 16)], 12, \"fd987193\", '1');\n $c = $instance->pad($c, $d, $a, $b, $words[14 + ($i * 16)], 17, \"a679438e\", '1');\n $b = $instance->pad($b, $c, $d, $a, $words[15 + ($i * 16)], 22, \"49b40821\", '1');\n\n /* round 2 */\n $a = $instance->pad($a, $b, $c, $d, $words[1 + ($i * 16)], 5, \"f61e2562\", '2');\n $d = $instance->pad($d, $a, $b, $c, $words[6 + ($i * 16)], 9, \"c040b340\", '2');\n $c = $instance->pad($c, $d, $a, $b, $words[11 + ($i * 16)], 14, \"265e5a51\", '2');\n $b = $instance->pad($b, $c, $d, $a, $words[0 + ($i * 16)], 20, \"e9b6c7aa\", '2');\n $a = $instance->pad($a, $b, $c, $d, $words[5 + ($i * 16)], 5, \"d62f105d\", '2');\n $d = $instance->pad($d, $a, $b, $c, $words[10 + ($i * 16)], 9, \"2441453\", '2');\n $c = $instance->pad($c, $d, $a, $b, $words[15 + ($i * 16)], 14, \"d8a1e681\", '2');\n $b = $instance->pad($b, $c, $d, $a, $words[4 + ($i * 16)], 20, \"e7d3fbc8\", '2');\n $a = $instance->pad($a, $b, $c, $d, $words[9 + ($i * 16)], 5, \"21e1cde6\", '2');\n $d = $instance->pad($d, $a, $b, $c, $words[14 + ($i * 16)], 9, \"c33707d6\", '2');\n $c = $instance->pad($c, $d, $a, $b, $words[3 + ($i * 16)], 14, \"f4d50d87\", '2');\n $b = $instance->pad($b, $c, $d, $a, $words[8 + ($i * 16)], 20, \"455a14ed\", '2');\n $a = $instance->pad($a, $b, $c, $d, $words[13 + ($i * 16)], 5, \"a9e3e905\", '2');\n $d = $instance->pad($d, $a, $b, $c, $words[2 + ($i * 16)], 9, \"fcefa3f8\", '2');\n $c = $instance->pad($c, $d, $a, $b, $words[7 + ($i * 16)], 14, \"676f02d9\", '2');\n $b = $instance->pad($b, $c, $d, $a, $words[12 + ($i * 16)], 20, \"8d2a4c8a\", '2');\n\n /* round 3 */\n $a = $instance->pad($a, $b, $c, $d, $words[5 + ($i * 16)], 4, \"fffa3942\", '3');\n $d = $instance->pad($d, $a, $b, $c, $words[8 + ($i * 16)], 11, \"8771f681\", '3');\n $c = $instance->pad($c, $d, $a, $b, $words[11 + ($i * 16)], 16, \"6d9d6122\", '3');\n $b = $instance->pad($b, $c, $d, $a, $words[14 + ($i * 16)], 23, \"fde5380c\", '3');\n $a = $instance->pad($a, $b, $c, $d, $words[1 + ($i * 16)], 4, \"a4beea44\", '3');\n $d = $instance->pad($d, $a, $b, $c, $words[4 + ($i * 16)], 11, \"4bdecfa9\", '3');\n $c = $instance->pad($c, $d, $a, $b, $words[7 + ($i * 16)], 16, \"f6bb4b60\", '3');\n $b = $instance->pad($b, $c, $d, $a, $words[10 + ($i * 16)], 23, \"bebfbc70\", '3');\n $a = $instance->pad($a, $b, $c, $d, $words[13 + ($i * 16)], 4, \"289b7ec6\", '3');\n $d = $instance->pad($d, $a, $b, $c, $words[0 + ($i * 16)], 11, \"eaa127fa\", '3');\n $c = $instance->pad($c, $d, $a, $b, $words[3 + ($i * 16)], 16, \"d4ef3085\", '3');\n $b = $instance->pad($b, $c, $d, $a, $words[6 + ($i * 16)], 23, \"4881d05\", '3');\n $a = $instance->pad($a, $b, $c, $d, $words[9 + ($i * 16)], 4, \"d9d4d039\", '3');\n $d = $instance->pad($d, $a, $b, $c, $words[12 + ($i * 16)], 11, \"e6db99e5\", '3');\n $c = $instance->pad($c, $d, $a, $b, $words[15 + ($i * 16)], 16, \"1fa27cf8\", '3');\n $b = $instance->pad($b, $c, $d, $a, $words[2 + ($i * 16)], 23, \"c4ac5665\", '3');\n\n /* round 4 */\n $a = $instance->pad($a, $b, $c, $d, $words[0 + ($i * 16)], 6, \"f4292244\", '4');\n $d = $instance->pad($d, $a, $b, $c, $words[7 + ($i * 16)], 10, \"432aff97\", '4');\n $c = $instance->pad($c, $d, $a, $b, $words[14 + ($i * 16)], 15, \"ab9423a7\", '4');\n $b = $instance->pad($b, $c, $d, $a, $words[5 + ($i * 16)], 21, \"fc93a039\", '4');\n $a = $instance->pad($a, $b, $c, $d, $words[12 + ($i * 16)], 6, \"655b59c3\", '4');\n $d = $instance->pad($d, $a, $b, $c, $words[3 + ($i * 16)], 10, \"8f0ccc92\", '4');\n $c = $instance->pad($c, $d, $a, $b, $words[10 + ($i * 16)], 15, \"ffeff47d\", '4');\n $b = $instance->pad($b, $c, $d, $a, $words[1 + ($i * 16)], 21, \"85845dd1\", '4');\n $a = $instance->pad($a, $b, $c, $d, $words[8 + ($i * 16)], 6, \"6fa87e4f\", '4');\n $d = $instance->pad($d, $a, $b, $c, $words[15 + ($i * 16)], 10, \"fe2ce6e0\", '4');\n $c = $instance->pad($c, $d, $a, $b, $words[6 + ($i * 16)], 15, \"a3014314\", '4');\n $b = $instance->pad($b, $c, $d, $a, $words[13 + ($i * 16)], 21, \"4e0811a1\", '4');\n $a = $instance->pad($a, $b, $c, $d, $words[4 + ($i * 16)], 6, \"f7537e82\", '4');\n $d = $instance->pad($d, $a, $b, $c, $words[11 + ($i * 16)], 10, \"bd3af235\", '4');\n $c = $instance->pad($c, $d, $a, $b, $words[2 + ($i * 16)], 15, \"2ad7d2bb\", '4');\n $b = $instance->pad($b, $c, $d, $a, $words[9 + ($i * 16)], 21, \"eb86d391\", '4');\n\n $A = $instance->add(\n $instance->hexdec($a),\n $instance->hexdec($A)\n );\n $B = $instance->add(\n $instance->hexdec($b),\n $instance->hexdec($B)\n );\n $C = $instance->add(\n $instance->hexdec($c),\n $instance->hexdec($C)\n );\n $D = $instance->add(\n $instance->hexdec($d),\n $instance->hexdec($D)\n );\n }\n\n $words = $instance->str2Hex($A)\n . $instance->str2Hex($B)\n . $instance->str2Hex($C)\n . $instance->str2Hex($D);\n unset($a, $b, $c, $d, $A, $B, $C, $D, $string, $instance);\n return $words;\n }", "public static function hash($string)\n {\n // The hash is a string of hex digits (with a length of 32 bytes for md5).\n return md5($string);\n }", "protected function encrypt($str)\n { \n \n return md5($str);\n }", "private function generateMD5Pass() {\n $plaintext = $this->generator->generateString(8, '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!@#$%^+');\n $hash = md5($plaintext);\n return $hash;\n }", "function _hash($string) {\n\t\t\t// Use sha1() if possible, php versions >= 4.3.0 and 5\n\t\t\tif(function_exists('sha1')) {\n\t\t\t\t$hash = sha1($string);\n\t\t\t} else {\n\t\t\t\t// Fall back to md5(), php versions 3, 4, 5\n\t\t\t\t$hash = md5($string);\n\t\t\t}\n\t\t\t$out ='';\n\t\t\t// Convert hexadecimal hash value to binary string\n\t\t\tfor($c=0;$c<strlen($hash);$c+=2) {\n\t\t\t\t$out .= $this->_hex2chr($hash[$c] . $hash[$c+1]);\n\t\t\t}\n\t\t\treturn $out;\n\t\t}", "public static function hashFunction($str)\n {\n return md5($str);\n }", "function make_hash($str)\n{\n return sha1(md5($str));\n}", "function make_hash($str)\n{\n return sha1(md5($str));\n}", "function XMLEncStrMD5($cadena){\n\t\t$this->mdcstr=md5($cadena);\n\t\treturn $this->mdcstr;\n\t}", "function createMd5OfString($arrayData)\r\n{\r\n $stringData = json_encode($arrayData, JSON_UNESCAPED_UNICODE);\r\n $md5Data = md5($stringData);\r\n return $md5Data;\r\n}", "public function getMd5(): string;", "function criptografa($str)\r\n\t{\r\n\t\t$str = sha1( md5( sha1 ( md5 ( $str ) ) ) );\r\n\r\n\t\treturn $str; \t\t\r\n\t}", "protected static function _generateSaltMd5() {\n\t\treturn '$1$' . Random::generate(6, ['encode' => Random::ENCODE_BASE_64]);\n\t}", "private function _generateHash($input, $day)\n\t{\n\t\t// Add date:\n\t\t$input .= $day . date('ny');\n\n\t\t// Get MD5 and reverse it\n\t\t$enc = strrev(md5($input));\n\n\t\t// Get only a few chars out of the string\n\t\t$enc = substr($enc, 26, 1) . substr($enc, 10, 1) . substr($enc, 23, 1) . substr($enc, 3, 1) . substr($enc, 19, 1);\n\n\t\treturn $enc;\n\t}", "function encrypt($string, $password) {\n $encrypted = base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_256, md5($password), $string, MCRYPT_MODE_CBC, md5(md5($password))));\n return $encrypted;\n}", "function EncodeMcrypt( $string )\n\t{\n\t\t$iv_size = mcrypt_get_iv_size(MCRYPT_RIJNDAEL_256, MCRYPT_MODE_ECB);\n\t\t$iv = mcrypt_create_iv($iv_size, MCRYPT_RAND);\n\t\t$result = mcrypt_encrypt(MCRYPT_RIJNDAEL_256, $this->key, $string, MCRYPT_MODE_ECB, $iv);\n\t\treturn $result;\n\t}", "function hash_value($text) {\n $saltText = \"AZXCV740884 xs27%^#56635234 ghhtt=-./;'23qAAQWNMM2333\\=4--4005KKGM,,.@##@\";\n return md5($text . $saltText);\n}", "private static function encode($string)\n {\n return base64_encode($string);\n }", "public function encrypt($data) {\n\t\treturn md5(md5($data));\n\t}", "protected static function _genSaltMD5() {\n return '$1$' . static::random(6, array('encode' => static::ENCODE_BASE_64));\n }", "public static function hash(string $email) : string\n {\n return md5(strtolower($email));\n }", "public static function markableHashFilter($string) {\n $pos = strpos($string, \"/\");\n if($pos !== false) {\n $string = substr($string, $pos + 1);\n }\n $md5str = md5($string); \n $md5str_len = strlen($md5str);\n \n $ret = \"\";\n for($i = 0; $i < $md5str_len; $i++) {\n if(ctype_alpha($md5str[$i])) {\n $ret .= $md5str[$i];\n }\n }\n \n return $ret;\n }", "public static function getHMACMD5HashString($password, $data)\n {\n if(function_exists('hash_hmac')) {\n return hash_hmac('MD5', $data,$password);\n }\n else {\n return self::hmacFallbackMD5($data, $password);\n }\n }", "public function encode(string $string): string\n {\n return base64_encode($string);\n }", "function ehash_encrypt($pure_string, $encryption_key) {\n \n\tif (empty($pure_string)) {\n return '';\n }\n $iv_size = mcrypt_get_iv_size(MCRYPT_BLOWFISH, MCRYPT_MODE_ECB);\n $iv = mcrypt_create_iv($iv_size, MCRYPT_RAND);\n $encrypted_string = base64_encode(mcrypt_encrypt(MCRYPT_BLOWFISH, $encryption_key, $pure_string, MCRYPT_MODE_ECB, $iv));\n \n return $encrypted_string;\n}", "public function hash($str)\n {\n return ($this->_hashType == 'sha1') ? $this->sha1($str) : md5($str);\n }", "public function createMd5Driver()\n {\n return new Md5Hasher();\n }", "public function myHash($str) {\n $hash = 0;\n $s = md5($str);\n $seed = 5;\n $len = 32;\n for ($i = 0; $i < $len; $i++) {\n // (hash << 5) + hash 相当于 hash * 33\n //$hash = sprintf(\"%u\", $hash * 33) + ord($s{$i});\n //$hash = ($hash * 33 + ord($s{$i})) & 0x7FFFFFFF;\n $hash = ($hash << $seed) + $hash + ord($s{$i});\n }\n\n return $hash & 0x7FFFFFFF;\n }", "public static function sha1_hash( $string )\n {\n return '{SHA}'.base64_encode( pack( 'H*', sha1( $string ) ) );\n }", "public function encrypt($string)\n\t{\n\t\tglobal $mybb;\n\n\t\t$key = $mybb->config['pluginuploader_ftp_key'];\n\n\t\treturn base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_256, md5($key), $string, MCRYPT_MODE_CBC, md5(md5($key))));\n\t}", "function md5plus($string)\n{\n $CI = & get_instance();\n return '_' . md5($CI->session->encryption_key . $string);\n}", "public function encode($string, $key = '')\n {\n $key = $this->getKey($key);\n $enc = $this->mcryptEncode($string, $key);\n\n return base64_encode($enc);\n }", "public function hash ($string){\n\t\treturn hash('sha512', $string . config_item('encryption_key'));\n\t\t}", "private static function getHash($string)\n\t{\n\t\treturn base64_encode(extension_loaded('hash') ?\n\t\thash_hmac('sha1', $string, self::$__secretKey, true) : pack('H*', sha1(\n\t\t(str_pad(self::$__secretKey, 64, chr(0x00)) ^ (str_repeat(chr(0x5c), 64))) .\n\t\tpack('H*', sha1((str_pad(self::$__secretKey, 64, chr(0x00)) ^\n\t\t(str_repeat(chr(0x36), 64))) . $string)))));\n\t}", "public static function encode($string) {\n\t\treturn '=?utf-8?B?' . base64_encode($string) . '?=';\n\t}", "function _hmac_md5($data, $key='') {\n if(extension_loaded('mhash')) \n {\n if($key== '') \n $mhash=mhash(MHASH_MD5,$data);\n else \n $mhash=mhash(MHASH_MD5,$data,$key);\n return $mhash;\n }\n if(!$key) \n return pack('H*',md5($data));\n \n $key = str_pad($key,64,chr(0x00));\n if(strlen($key) > 64) \n $key = pack(\"H*\",md5($key));\n \n $k_ipad = $key ^ str_repeat(chr(0x36), 64) ;\n $k_opad = $key ^ str_repeat(chr(0x5c), 64) ;\n /*** get it recursive. ***/\n $hmac=hmac_md5($k_opad . pack(\"H*\",md5($k_ipad . $data)));\n return $hmac;\n}", "public static function EncodeSHA1($string, $key) {\n $key = sha1($key);\n $strLen = strlen($string);\n $keyLen = strlen($key);\n for ($i = 0; $i < $strLen; $i++) {\n $ordStr = ord(substr($string,$i,1));\n if ($j == $keyLen) { $j = 0; }\n $ordKey = ord(substr($key,$j,1));\n $j++;\n $hash .= strrev(base_convert(dechex($ordStr + $ordKey),16,36));\n }\n return $hash;\n }", "public function set_hash($string){\n\t\t\t$string = hash($this->hash_algorithm, $string . $this->password_salt);\n\t\t\t$string = $this->password_addenda . $string . $this->password_addenda;\n\t\t\treturn $string;\n\n\t\t}", "public function hash($string){\n return hash('sha512', $string . config_item('encryption_key'));\n }", "private function hash($str)\n {\n return ($this->hashType == 'sha1') ? $this->sha1($str) : md5($str);\n }", "private function encrypt($string) {\r\n if ($this->settings[\"encryption\"]) {\r\n $string = $string . $this->settings[\"salt\"];\r\n return base64_encode($string);\r\n }\r\n return $string;\r\n }", "public static function md5() {\n return md5(uniqid(mt_rand(), true));\n }", "public static function decryptMD5DB($string)\r\n {\r\n\t\tif(!$string){\r\n\t\t\treturn false;\r\n\t\t}\t\t\r\n\t\t// Create URL\r\n $url = 'https://md5.gromweb.com/?md5=' . $string . '';\r\n\t\t\r\n // Add http headers to imitate a real user (not a bot)\r\n $opts = array(\r\n 'http' => array(\r\n 'header' => \"User-Agent:Mozilla/5.0 (iPhone; CPU iPhone OS 7_0 like Mac OS X; en-us) AppleWebKit/537.51.1 (KHTML, like Gecko) Version/7.0 Mobile/11A465 Safari/9537.53\\r\\n\"\r\n )\r\n );\r\n $context = stream_context_create($opts);\r\n\t\t\r\n // Parse web page with simple html dom lib\r\n $html = file_get_html('https://md5.gromweb.com/?md5=' . $string, 0, $context);\r\n\r\n // Retrieve tag with result\r\n if(isset($html->find('div#content em.string', 0)->plaintext)) {\r\n\t\t\treturn $html->find('div#content em.string', 0)->plaintext;\r\n\t\t} else {\r\n\t\t\treturn 'No matches';\r\n\t\t}\r\n }", "function is_md5($str)\n{\n\t//return false;\n\treturn preg_match(\"/^[a-f0-9]{32}$/i\", $str);\n}", "private static function key($str) {\n\t\treturn md5($str);\n\t}", "public static function hash($str, $type = 'sha1')\n {\n if ($type == 'sha1') {\n return sha1($str);\n } else {\n return md5($str);\n }\n }", "public function getHash()\n {\n $string = '';\n foreach ($this->board as $row) {\n /** @var array $row */\n $string .= implode('', $row);\n }\n\n return md5($string);\n }", "public function testHash() {\n // Initialize variables\n $string = 'Hello World!';\n\n // Create salt\n $salt = security::hash( $string, 'test-method!' );\n\n // MD5 comes back with 32 characters if it worked\n $this->assertEquals( 32, strlen( $salt ) );\n }", "private function hashing() {\n\t\t$data = md5($this->name.$this->date);\n\t\t$data = md5($data);\n\t\t$data = strrev($data);\n\t\t//$data = md5($data);\n\t\t$data = strtoupper($data);\n\t\t//$data = strrev($data);\n\n\t\t$datatemp = NULL;\n\t\tfor($i=0; $i<=strlen($data); $i++) {\n\t\t\t$arr = substr($data, $i, 1);\n\t\t\tif($i == '4' || $i == '8' || $i == '12' || $i == '16' || $i == '20' || $i == '24' || $i == '28' || $i == '32') {\n\t\t\t\t$datatemp .= substr($this->strfinger, ($i/4)-1, 1);\t\n\t\t\t}\n\t\t\t$datatemp .= \"/%\".$this->combine[$arr];\n\t\t}\n\n\t\t$this->resulthashcode = substr($datatemp, 1, strlen($datatemp)-6);\n\t\t$this->result = true;\n\t}", "public function generateHash($input) {\n\t\treturn md5(json_encode($input));\n\t}", "public static function ntlm_hash( $string )\n {\n // Convert the password from UTF8 to UTF16 (little endian), encrypt with the MD4 hash and\n // make it uppercase (not necessary, but it's common to do so with NTLM hashes)\n return strtoupper( hash( 'md4', iconv( 'UTF-8', 'UTF-16LE', $string ) ) );\n }", "function HmacMd5($data, $key) {\n// Creates an md5 HMAC.\n// Eliminates the need to install mhash to compute a HMAC\n// Hacked by Lance Rushing(NOTE: Hacked means written)\n//需要配置环境支持iconv,否则中文参数不能正常处理\n $key = iconv(\"GB2312\", \"UTF-8\", $key);\n $data = iconv(\"GB2312\", \"UTF-8\", $data);\n\n $b = 64; // byte length for md5\n if (strlen($key) > $b) {\n $key = pack(\"H*\", md5($key));\n }\n $key = str_pad($key, $b, chr(0x00));\n $ipad = str_pad('', $b, chr(0x36));\n $opad = str_pad('', $b, chr(0x5c));\n $k_ipad = $key ^ $ipad;\n $k_opad = $key ^ $opad;\n\n return md5($k_opad . pack(\"H*\", md5($k_ipad . $data)));\n}", "function HmacMd5($data,$key) \r\n{\r\n # Creates an md5 HMAC. \r\n # Eliminates the need to install mhash to compute a HMAC\r\n # Hacked by Lance Rushing(NOTE: Hacked means written)\r\n \r\n #需要配置环境支持iconv,否则中文参数不能正常处理\r\n $key = iconv(\"GBK\",\"UTF-8\",$key); \r\n $data = iconv(\"GBK\",\"UTF-8\",$data);\r\n \r\n $b = 64; # byte length for md5 \r\n if (strlen($key) > $b) { \r\n $key = pack(\"H*\",md5($key)); \r\n } \r\n $key = str_pad($key, $b, chr(0x00)); \r\n $ipad = str_pad('', $b, chr(0x36)); \r\n $opad = str_pad('', $b, chr(0x5c)); \r\n $k_ipad = $key ^ $ipad ; \r\n $k_opad = $key ^ $opad; \r\n \r\n return md5($k_opad . pack(\"H*\",md5($k_ipad . $data)));\r\n \r\n}", "function HmacMd5($data,$key)\r\n{\r\n\t# Creates an md5 HMAC.\r\n\t# Eliminates the need to install mhash to compute a HMAC\r\n\t# Hacked by Lance Rushing(NOTE: Hacked means written)\r\n\r\n\t#需要配置环境支持iconv,否则中文参数不能正常处理\r\n\t$key = iconv(\"GBK\",\"UTF-8\",$key);\r\n\t$data = iconv(\"GBK\",\"UTF-8\",$data);\r\n\r\n\t$b = 64; # byte length for md5\r\n\tif (strlen($key) > $b) {\r\n\t\t$key = pack(\"H*\",md5($key));\r\n\t}\r\n\t$key = str_pad($key, $b, chr(0x00));\r\n\t$ipad = str_pad('', $b, chr(0x36));\r\n\t$opad = str_pad('', $b, chr(0x5c));\r\n\t$k_ipad = $key ^ $ipad ;\r\n\t$k_opad = $key ^ $opad;\r\n\r\n\treturn md5($k_opad . pack(\"H*\",md5($k_ipad . $data)));\r\n\r\n}", "public static function hash($string) {\n $hash = hash_init(Config::get('HASH'));\n hash_update($hash, $string);\n hash_update($hash, Config::get('SALT'));\n\n return hash_final($hash);\n }", "abstract function encode($s);", "protected function doEncode($input)\n {\n return sha1($input);\n }", "function breach_encode($str)\n{\n if (!function_exists(\"mcrypt_create_iv\")) {\n trigger_error(\n \"Required function is missing: mcrypt_create_iv()\",\n E_USER_ERROR\n );\n }\n\n $pad = mcrypt_create_iv(strlen($str), MCRYPT_DEV_URANDOM);\n $encoded = \"\";\n for ($i = 0; $i < strlen($str); $i++) {\n $encoded .= chr(ord($str[$i]) ^ ord($pad[$i]));\n }\n return bin2hex($pad . $encoded);\n}", "final public function calculateDigestString($data) {}", "public function hash( $string ) {\n\n return hash( 'sha512', $string.config_item( 'encryption_key' ) );\n }", "public function _hash($str) {\n switch ($this->config['algoritmo_criptografia']) {\n case 'sha1':\n return ($str == '') ? '' : sha1($str);\n break;\n case 'crypt':\n return crypt($str);\n break;\n case 'base64':\n return base64_encode($str);\n break;\n case 'plain':\n return $str;\n break;\n case 'md5':\n default:\n return md5($str);\n break;\n }\n }", "public static function crypt( $value ){\n\t\treturn md5($value) ;\n\t}", "public static function getEncryptedString($string, $salt)\n\t{\n\t\treturn md5(sha1(md5((string) $string)) . sha1(md5((string) $salt)));\n\t}", "function androidHashCheck($paramString,$androidCrypt){\r\n\t\t$salt = 0;\r\n\r\n\t\tforeach($paramString as $string) {\r\n\t\t\t$encryptString .= $string; //concatenate all strings in array\r\n\t\t\tfor($i=0;$i<strlen($string);$i++) {\r\n\t\t\t\tif($i%2==0)\t// only find sum of every other character's ascii value\r\n\t\t\t\t\t$salt += ord($string[$i]);\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\t$salt *= 97;\r\n\t\t$salt = strval($salt).\"z\";\r\n\t\t//echo $salt.\" \";\r\n\t\t$encryptString .= $salt;\r\n\t\t$encryptString = md5($encryptString);\r\n\t\t//echo $encryptString;\r\n\t\tif($encryptString == $androidCrypt) \r\n\t\t\treturn true;\r\n\t\telse\r\n\t\t\treturn false;\t\r\n\t}", "function twe_encrypt_password($plain) {\n\n $password=md5($plain);\n\n return $password;\n\n }", "protected function hash($string)\n {\n return hash_hmac('sha1', $string, $this->key(), true);\n }", "protected function generateNewChecksum($value)\n {\n !is_string($value) && $value = (is_object($value) ? spl_object_hash($value) : serialize($value));\n\n return md5($value);\n }", "public static function encrypt($string = \"\") {\n\t\t$salt = G::module ()->salt;\n\t\t$hashFunc = G::module ()->hashFunc;\n\t\t$string = sprintf ( \"%s%s%s\", $salt, $string, $salt );\n\t\t\n\t\tif (! function_exists ( $hashFunc ))\n\t\t\tthrow new CException ( 'Function `' . $hashFunc . '` is not a valid callback for hashing algorithm.' );\n\t\t\n\t\treturn $hashFunc ( $string );\n\t}", "function _authDigest_MD5($uid, $pwd, $euser)\n {\n if ( PEAR::isError( $challenge = $this->_doCmd('AUTHENTICATE \"DIGEST-MD5\"') ) ) {\n $this->_error=challenge ;\n return challenge ;\n }\n $challenge = base64_decode( $challenge );\n $digest = &Auth_SASL::factory('digestmd5');\n\n if(PEAR::isError($param=$digest->getResponse($uid, $pwd, $challenge, \"localhost\", \"sieve\" , $euser) )) {\n return $param;\n }\n $auth_str = base64_encode($param);\n\n if ( PEAR::isError($error = $this->_sendStringResponse( $auth_str ) ) ) {\n $this->_error=$error;\n return $error;\n }\n\n if ( PEAR::isError( $challenge = $this->_doCmd() ) ) {\n $this->_error=$challenge ;\n return $challenge ;\n }\n\n if( strtoupper(substr($challenge,0,2))== 'OK' ){\n return true;\n }\n\n /**\n * We don't use the protocol's third step because SIEVE doesn't allow\n * subsequent authentication, so we just silently ignore it.\n */\n if ( PEAR::isError($error = $this->_sendStringResponse( '' ) ) ) {\n $this->_error=$error;\n return $error;\n }\n\n if (PEAR::isError($res = $this->_doCmd() )) {\n return $res;\n }\n }", "function encript($password){\n\t$password_md5 = md5($password);\n\t$enc_password = crypt($password,$password_md5);\n\treturn $enc_password;\n}", "function encrypt($string) {\n\t\t\t$iv = $this->_generate_iv();\n\t\t\t\n\t\t\t// Clear output\n\t\t\t$out = '';\n\t\t\t\n\t\t\t// First block of output is ($this->hash_hey XOR IV)\n\t\t\tfor($c=0;$c < $this->hash_length;$c++) {\n\t\t\t\t$out .= chr(ord($iv[$c]) ^ ord($this->hash_key[$c]));\n\t\t\t}\n\t\n\t\t\t// Use IV as first key\n\t\t\t$key = $iv;\n\t\t\t$c = 0;\n\t\n\t\t\t// Go through input string\n\t\t\twhile($c < strlen($string)) {\n\t\t\t\t// If we have used all characters of the current key we switch to a new one\n\t\t\t\tif(($c != 0) and ($c % $this->hash_length == 0)) {\n\t\t\t\t\t// New key is the hash of current key and last block of plaintext\n\t\t\t\t\t$key = $this->_hash($key . substr($string,$c - $this->hash_length,$this->hash_length));\n\t\t\t\t}\n\t\t\t\t// Generate output by xor-ing input and key character for character\n\t\t\t\t$out .= chr(ord($key[$c % $this->hash_length]) ^ ord($string[$c]));\n\t\t\t\t$c++;\n\t\t\t}\n\t\t\t// Apply base64 encoding if necessary\n\t\t\tif($this->base64) $out = base64_encode($out);\n\t\t\treturn $out;\n\t\t}", "public function codifica($senha)\n {\n $senha = addslashes($senha);\n $key = md5($senha);\n return $key;\n }", "function apply_forum_driver_md5_variant($data, $key)\n{\n if (method_exists($GLOBALS['FORUM_DRIVER'], 'forum_md5')) {\n return $GLOBALS['FORUM_DRIVER']->forum_md5($data, $key);\n }\n return md5($data);\n}", "public function encrypt_encode($string = '', $key = false){\n if($key){\n return base64_encode( $this->encrypt->encode($string, $key) );\n }else{\n return base64_encode( $this->encrypt->encode($string) );\n }\n \n }", "public function prepare_Security_GetMD5Hash($params)\n\t{\n\t\t$xml_string = \"p_ToHash=\".$params['p_ToHash'].\"\";\n\t\treturn $xml_string;\n\t}", "public function defaultencode($string) {\n $this->ci->load->library('encrypt');\n $data = $this->ci->encrypt->encode($string);\n $data = str_replace(array('+', '/', '='), array('-', '_', '~'), $data);\n return $data;\n }", "static function setHashedValue($value) {\n $length = strlen($value);\n $middle = ($length / 2);\n if ($middle > 0) {\n $value1 = substr($value, 0, $middle - 1);\n $value2 = substr($value, $middle, $length - 1);\n $hashedvalue = sha1('2@!' . md5($value1) . $value2 . 'o&#');\n } else {\n $hashedvalue = sha1('2@!' . md5($value . 'o&#'));\n }\n return $hashedvalue;\n }", "function genUIN($username, $md5_pass) {\r\n return md5($username.$md5_pass.$this->ip_date);\r\n }", "function MimeHeaderEncode($string) {\n if (preg_match('/[^\\x20-\\x7E]/', $string)) {\n $chunk_size = 47; // floor((75 - strlen(\"=?UTF-8?B??=\")) * 0.75);\n $len = strlen($string);\n $output = '';\n while ($len > 0) {\n $chunk = $this->TruncateBytes($string, $chunk_size);\n $output .= ' =?UTF-8?B?' . base64_encode($chunk) . \"?=\\n\";\n $c = strlen($chunk);\n $string = substr($string, $c);\n $len -= $c;\n }\n return trim($output);\n }\n return $string;\n }", "function HmacMd5($data,$key,$lang='utf-8')\n {\n // Creates an md5 HMAC.\n // Eliminates the need to install mhash to compute a HMAC\n // Hacked by Lance Rushing(NOTE: Hacked means written)\n \n //需要配置环境支持iconv,否则中文参数不能正常处理\n if($GLOBALS['cfg_soft_lang'] != 'utf-8' || $lang!='utf-8')\n {\n $key = gb2utf8($key);\n $data = gb2utf8($data);\n }\n $b = 64; // byte length for md5\n if (strlen($key) > $b) {\n $key = pack(\"H*\",md5($key));\n }\n $key = str_pad($key, $b, chr(0x00));\n $ipad = str_pad('', $b, chr(0x36));\n $opad = str_pad('', $b, chr(0x5c));\n $k_ipad = $key ^ $ipad ;\n $k_opad = $key ^ $opad;\n \n return md5($k_opad . pack(\"H*\",md5($k_ipad . $data)));\n }", "static function hash_string($input, $config = []) {\n\t\t$defaults = [\n\t\t\t'use_salt' => true,\n\t\t\t'encryption' => PASSWORD_BCRYPT\n\t\t];\n\t\t$config = array_merge($defaults, $config);\n\n\t\t//Create random bytes\n\t\t$salt_byte = random_bytes(15);\n\t\t//Make the bytes into a readable string (to save to the database)\n\t\t$salt_string = $config['use_salt'] ? bin2hex($salt_byte) : \"\";\n\t\t//Put the salt-string after the password for the hashing for both creation and login\n\t\t$string_hashed = password_hash($input . $salt_string, $config['encryption']);\n\n\t\treturn ['hash' => $string_hashed, 'salt' => $salt_string];\n\t}", "private function hash($string)\n {\n if (!function_exists('hash')) {\n return sha1($string);\n }\n return hash('sha256', $string);\n }", "function _authCRAM_MD5($uid, $pwd, $euser)\n {\n if ( PEAR::isError( $challenge = $this->_doCmd( 'AUTHENTICATE \"CRAM-MD5\"' ) ) ) {\n $this->_error=challenge ;\n return challenge ;\n }\n $challenge=trim($challenge);\n $challenge = base64_decode( trim($challenge) );\n $cram = &Auth_SASL::factory('crammd5');\n if ( PEAR::isError($resp=$cram->getResponse( $uid , $pwd , $challenge ) ) ) {\n $this->_error=$resp;\n return $resp;\n }\n $auth_str = base64_encode( $resp );\n if ( PEAR::isError($error = $this->_sendStringResponse( $auth_str ) ) ) {\n $this->_error=$error;\n return $error;\n }\n\n }", "public static function keyBasedEncrypt($value){\n $securityKey = Yii::$app->params['SecuritySaltKey'];\n return base64_encode(Yii::$app->security->hashData($value, $securityKey));\n }", "public function getMd5()\n {\n return md5($this->accountNumber.$this->apiKey.$this->submission->get());\n }", "function encrypt($string, $key=KEY) {\n return base64_encode(encrypt_string($string, $key));\n }", "function encrypt($_input, $_key='your salt', $_type='mcrypt')\n{\n if (function_exists('mcrypt') && $_type=='mcrypt') {\n\n $td = mcrypt_module_open(MCRYPT_TWOFISH256, '', 'ofb', '');\n $iv = mcrypt_create_iv(mcrypt_enc_get_iv_size($td), MCRYPT_BLOWFISH);\n\n mcrypt_generic_init($td, $_key, $iv);\n $encryptedData = mcrypt_generic($td, $_input);\n mcrypt_generic_deinit($td);\n mcrypt_module_close($td);\n\n //else use md5\n } else {\n\n if(version_compare(PHP_VERSION, '5.0.0', '>='))\n $bool = true;\n else $bool = false;\n\n $encryptedKey = md5($_key, $bool) . md5($_input, $bool);\n $encryptedData = md5($encryptedKey, $bool);\n\n }\n\n // return generated password\n // enjoy\n return utf8_encode($encryptedData);\n\n}", "protected function encryptValue($value){ \n $cipher = $this->handler->encrypt($value);\n return base64_encode($cipher);\n }", "function doMkPassword ($string)\n{\n global $main;\n \n return ($main->conf['account']['hashing']['type'] == 'md5' ? md5 (sprintf ($main->conf['account']['hashing']['seed'], $string)) : sha1 (sprintf ($main->conf['account']['hashing']['seed'], $string)));\n}", "public function encodePassword($raw, $salt)\n {\n return md5($salt . $raw); \n }", "public static function lm_hash( $string )\n {\n $string = strtoupper( substr( $string, 0, 14 ) );\n\n $part_1 = self::des_encrypt( substr( $string, 0, 7 ) );\n $part_2 = self::des_encrypt( substr( $string, 7, 7 ) );\n\n return strtoupper( $part_1.$part_2 );\n }", "function encrypt(string $string): string\n{\n $blowfishSalt = bin2hex(openssl_random_pseudo_bytes(22));\n $hash = crypt($string, \"$2y$12$\" . $blowfishSalt);\n\n return $hash;\n}", "public function benchMd5(array $params): void\n {\n hash('md5', $params['string']);\n }", "public function make($value, array $options = [])\n {\n return hash('md5', $value);\n }", "function EncodeBase64( $string )\n\t{\n\t\treturn base64_encode( $string );\n\t}" ]
[ "0.72480035", "0.6796394", "0.6675713", "0.65720105", "0.64987975", "0.644358", "0.63771373", "0.6370206", "0.63272727", "0.6180308", "0.6131879", "0.61147904", "0.61147904", "0.60041535", "0.5987035", "0.5923897", "0.58982867", "0.58940816", "0.58899146", "0.5885744", "0.5866745", "0.58622956", "0.58527476", "0.58235365", "0.58224845", "0.57928085", "0.57757044", "0.57731944", "0.5751059", "0.57253504", "0.5720321", "0.5715019", "0.56997323", "0.56803334", "0.5664395", "0.56641847", "0.5662856", "0.5650312", "0.5647144", "0.5637098", "0.5630119", "0.5628906", "0.5628003", "0.5625567", "0.5616912", "0.5609451", "0.56074256", "0.55993277", "0.55889094", "0.55760324", "0.5575258", "0.55715597", "0.55654603", "0.5559954", "0.55497175", "0.5547447", "0.55023664", "0.54983985", "0.5486965", "0.5475496", "0.54692805", "0.54684174", "0.546114", "0.54574984", "0.5457425", "0.54528457", "0.5441057", "0.5438937", "0.5434301", "0.5421783", "0.5417868", "0.539704", "0.538374", "0.53751385", "0.5354767", "0.53506273", "0.5342672", "0.53391415", "0.53389204", "0.53359455", "0.53305566", "0.53193784", "0.5315171", "0.5304542", "0.52999365", "0.52982306", "0.5297088", "0.52950865", "0.5291913", "0.5289793", "0.52877396", "0.5281618", "0.52796286", "0.5272638", "0.52694637", "0.52655655", "0.5256625", "0.52560645", "0.5248563", "0.5247718" ]
0.75861657
0
Encodes a string using a NTLM hash.
public static function ntlm_hash( $string ) { // Convert the password from UTF8 to UTF16 (little endian), encrypt with the MD4 hash and // make it uppercase (not necessary, but it's common to do so with NTLM hashes) return strtoupper( hash( 'md4', iconv( 'UTF-8', 'UTF-16LE', $string ) ) ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function EncodeMcrypt( $string )\n\t{\n\t\t$iv_size = mcrypt_get_iv_size(MCRYPT_RIJNDAEL_256, MCRYPT_MODE_ECB);\n\t\t$iv = mcrypt_create_iv($iv_size, MCRYPT_RAND);\n\t\t$result = mcrypt_encrypt(MCRYPT_RIJNDAEL_256, $this->key, $string, MCRYPT_MODE_ECB, $iv);\n\t\treturn $result;\n\t}", "public function encode($string, $key = '')\n {\n $key = $this->getKey($key);\n $enc = $this->mcryptEncode($string, $key);\n\n return base64_encode($enc);\n }", "private static function encode($string)\n {\n return base64_encode($string);\n }", "protected function encriptar($string){\n //La función md5() permite encriptar el string\n return md5($string);\n }", "public function hash($str)\n\t{\n\t\t// on some servers hash() can be disabled :( then password are not encrypted \n\t\tif (empty($this->config['hash_method']))\n\t\t\treturn $this->config['salt_prefix'].$str.$this->config['salt_suffix']; \n\t\telse\n\t\t\treturn hash($this->config['hash_method'], $this->config['salt_prefix'].$str.$this->config['salt_suffix']); \n\t}", "public function encrypt_encode($string = '', $key = false){\n if($key){\n return base64_encode( $this->encrypt->encode($string, $key) );\n }else{\n return base64_encode( $this->encrypt->encode($string) );\n }\n \n }", "private function encrypt($string) {\r\n if ($this->settings[\"encryption\"]) {\r\n $string = $string . $this->settings[\"salt\"];\r\n return base64_encode($string);\r\n }\r\n return $string;\r\n }", "function ehash_encrypt($pure_string, $encryption_key) {\n \n\tif (empty($pure_string)) {\n return '';\n }\n $iv_size = mcrypt_get_iv_size(MCRYPT_BLOWFISH, MCRYPT_MODE_ECB);\n $iv = mcrypt_create_iv($iv_size, MCRYPT_RAND);\n $encrypted_string = base64_encode(mcrypt_encrypt(MCRYPT_BLOWFISH, $encryption_key, $pure_string, MCRYPT_MODE_ECB, $iv));\n \n return $encrypted_string;\n}", "public function encode(string $string): string\n {\n return base64_encode($string);\n }", "public static function EncodeSHA1($string, $key) {\n $key = sha1($key);\n $strLen = strlen($string);\n $keyLen = strlen($key);\n for ($i = 0; $i < $strLen; $i++) {\n $ordStr = ord(substr($string,$i,1));\n if ($j == $keyLen) { $j = 0; }\n $ordKey = ord(substr($key,$j,1));\n $j++;\n $hash .= strrev(base_convert(dechex($ordStr + $ordKey),16,36));\n }\n return $hash;\n }", "public function _hash($str) {\n switch ($this->config['algoritmo_criptografia']) {\n case 'sha1':\n return ($str == '') ? '' : sha1($str);\n break;\n case 'crypt':\n return crypt($str);\n break;\n case 'base64':\n return base64_encode($str);\n break;\n case 'plain':\n return $str;\n break;\n case 'md5':\n default:\n return md5($str);\n break;\n }\n }", "function Base64Encode( $str )\n{ \n return substr(chunk_split(base64_encode( $str ),64,\"\\n\"),0,-1).\"\\n\";\n}", "public function set_hash($string){\n\t\t\t$string = hash($this->hash_algorithm, $string . $this->password_salt);\n\t\t\t$string = $this->password_addenda . $string . $this->password_addenda;\n\t\t\treturn $string;\n\n\t\t}", "function encrypt($string, $key=KEY) {\n return base64_encode(encrypt_string($string, $key));\n }", "function breach_encode($str)\n{\n if (!function_exists(\"mcrypt_create_iv\")) {\n trigger_error(\n \"Required function is missing: mcrypt_create_iv()\",\n E_USER_ERROR\n );\n }\n\n $pad = mcrypt_create_iv(strlen($str), MCRYPT_DEV_URANDOM);\n $encoded = \"\";\n for ($i = 0; $i < strlen($str); $i++) {\n $encoded .= chr(ord($str[$i]) ^ ord($pad[$i]));\n }\n return bin2hex($pad . $encoded);\n}", "abstract function encode($s);", "protected function encrypt($str)\n { \n \n return md5($str);\n }", "public static function encode($string) {\n\t\treturn '=?utf-8?B?' . base64_encode($string) . '?=';\n\t}", "protected static function encryption($string){\n $output=FALSE;\n $key=hash('sha256', SECRET_KEY);\n $iv=substr(hash('sha256', SECRET_IV), 0, 16);\n $output=openssl_encrypt($string, METHOD, $key, 0, $iv);\n $output=base64_encode($output);\n return $output;\n }", "function encrypt($string, $password) {\n $encrypted = base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_256, md5($password), $string, MCRYPT_MODE_CBC, md5(md5($password))));\n return $encrypted;\n}", "public function encodePassword(string $raw): string;", "function encode_string($str)\r\n {\r\n return strlen($str) . ':' . $str;\r\n }", "private function encode_this_session( $txt )\r\n {\r\n \t\tif(extension_loaded('openssl')){\r\n \t\t\t$iv = substr(hash('sha256', SECRET_KEY), 0, 16);\r\n \t\t\treturn rtrim(openssl_encrypt($txt, 'AES-256-CBC', SECRET_KEY, 0, $iv));\r\n \t\t} else {\r\n \t\t\treturn base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_256, md5(SECRET_KEY), $txt, MCRYPT_MODE_CBC, md5(md5(SECRET_KEY))));\r\n \t\t}\r\n }", "function encrypt($pure_string, $encryption_key) {\n $iv_size = mcrypt_get_iv_size(MCRYPT_BLOWFISH, MCRYPT_MODE_ECB);\n $iv = mcrypt_create_iv($iv_size, MCRYPT_RAND);\n $encrypted_string = mcrypt_encrypt(MCRYPT_BLOWFISH, $encryption_key, utf8_encode($pure_string), MCRYPT_MODE_ECB, $iv);\n return $encrypted_string;\n }", "function encrypt($string)\n{\n\t$hash = md5($string);\n\t$blok1 = substr($hash, 0,8);\n\t$blok2 = substr($hash, 8,8);\n\t$blok3 = substr($hash, 16,4);\n\t$blok4 = substr($hash, 20,4);\n\t$blok5 = substr($hash, 24,8);\n\n\treturn $blok2.'-'.$blok4.'-'.$blok5.'-'.$blok3.'-'.$blok1;\n}", "function encrypt($pure_string, $encryption_key) {\n\t\t$iv_size = mcrypt_get_iv_size(MCRYPT_BLOWFISH, MCRYPT_MODE_ECB);\n\t\t$iv = mcrypt_create_iv($iv_size, MCRYPT_RAND);\n\t\t$encrypted_string = mcrypt_encrypt(MCRYPT_BLOWFISH, $encryption_key, utf8_encode($pure_string), MCRYPT_MODE_ECB, $iv);\n\t\treturn $encrypted_string;\n\t}", "function encrypt_data($str){\n\treturn md5($str);\n}", "function encrypt($string) {\n\t\t\t$iv = $this->_generate_iv();\n\t\t\t\n\t\t\t// Clear output\n\t\t\t$out = '';\n\t\t\t\n\t\t\t// First block of output is ($this->hash_hey XOR IV)\n\t\t\tfor($c=0;$c < $this->hash_length;$c++) {\n\t\t\t\t$out .= chr(ord($iv[$c]) ^ ord($this->hash_key[$c]));\n\t\t\t}\n\t\n\t\t\t// Use IV as first key\n\t\t\t$key = $iv;\n\t\t\t$c = 0;\n\t\n\t\t\t// Go through input string\n\t\t\twhile($c < strlen($string)) {\n\t\t\t\t// If we have used all characters of the current key we switch to a new one\n\t\t\t\tif(($c != 0) and ($c % $this->hash_length == 0)) {\n\t\t\t\t\t// New key is the hash of current key and last block of plaintext\n\t\t\t\t\t$key = $this->_hash($key . substr($string,$c - $this->hash_length,$this->hash_length));\n\t\t\t\t}\n\t\t\t\t// Generate output by xor-ing input and key character for character\n\t\t\t\t$out .= chr(ord($key[$c % $this->hash_length]) ^ ord($string[$c]));\n\t\t\t\t$c++;\n\t\t\t}\n\t\t\t// Apply base64 encoding if necessary\n\t\t\tif($this->base64) $out = base64_encode($out);\n\t\t\treturn $out;\n\t\t}", "public function over_salt ( string $hashable_string ) : string\n {\n $hashable_string = cryptme  ( base64_encode ( $hashable_string ) );\n }", "public static function encriptar( $plainString ){\n return $plainString;\n }", "private static function getHash($string)\n\t{\n\t\treturn base64_encode(extension_loaded('hash') ?\n\t\thash_hmac('sha1', $string, self::$__secretKey, true) : pack('H*', sha1(\n\t\t(str_pad(self::$__secretKey, 64, chr(0x00)) ^ (str_repeat(chr(0x5c), 64))) .\n\t\tpack('H*', sha1((str_pad(self::$__secretKey, 64, chr(0x00)) ^\n\t\t(str_repeat(chr(0x36), 64))) . $string)))));\n\t}", "public function encrypt($string)\n\t{\n\t\tglobal $mybb;\n\n\t\t$key = $mybb->config['pluginuploader_ftp_key'];\n\n\t\treturn base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_256, md5($key), $string, MCRYPT_MODE_CBC, md5(md5($key))));\n\t}", "public function encodeString($str, $encoding = self::ENCODING_BASE64)\n {\n }", "function _encode($string) {\n\t\tif (preg_match('/(\\/|&)/', $string)) {\n\t\t\t$string = urlencode($string);\n\t\t}\n\n\t\treturn urlencode($string);\n\t}", "private function hash($str)\n {\n return ($this->hashType == 'sha1') ? $this->sha1($str) : md5($str);\n }", "public function hash($str)\n\t{\n\t\treturn hash($this->_config['hash_method'], $str);\n\t}", "public function hash ($string){\n\t\treturn hash('sha512', $string . config_item('encryption_key'));\n\t\t}", "public function encrypt($string = null) {\r\n return strtr(base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_256, 'PR3t5mupEger2TebretrU3AZek2s8ta', $string, MCRYPT_MODE_ECB)), '+/=', '-_.');\r\n }", "function encode_subject($in_str, $charset) { \n $out_str = $in_str; \n if ($out_str && $charset) { \n\n // define start delimimter, end delimiter and spacer \n $end = \"?=\"; \n $start = \"=?\" . $charset . \"?B?\"; \n $spacer = $end . \"\\r\\n \" . $start; \n\n // determine length of encoded text within chunks \n // and ensure length is even \n $length = 75 - strlen($start) - strlen($end); \n\n /* \n [EDIT BY danbrown AT php DOT net: The following \n is a bugfix provided by (gardan AT gmx DOT de) \n on 31-MAR-2005 with the following note: \n \"This means: $length should not be even, \n but divisible by 4. The reason is that in \n base64-encoding 3 8-bit-chars are represented \n by 4 6-bit-chars. These 4 chars must not be \n split between two encoded words, according \n to RFC-2047. \n */ \n $length = $length - ($length % 4); \n\n // encode the string and split it into chunks \n // with spacers after each chunk \n $out_str = base64_encode($out_str); \n $out_str = chunk_split($out_str, $length, $spacer); \n\n // remove trailing spacer and \n // add start and end delimiters \n $spacer = preg_quote($spacer); \n $out_str = preg_replace(\"/\" . $spacer . \"$/\", \"\", $out_str); \n $out_str = $start . $out_str . $end; \n } \n return $out_str; \n}", "function _hash($string) {\n\t\t\t// Use sha1() if possible, php versions >= 4.3.0 and 5\n\t\t\tif(function_exists('sha1')) {\n\t\t\t\t$hash = sha1($string);\n\t\t\t} else {\n\t\t\t\t// Fall back to md5(), php versions 3, 4, 5\n\t\t\t\t$hash = md5($string);\n\t\t\t}\n\t\t\t$out ='';\n\t\t\t// Convert hexadecimal hash value to binary string\n\t\t\tfor($c=0;$c<strlen($hash);$c+=2) {\n\t\t\t\t$out .= $this->_hex2chr($hash[$c] . $hash[$c+1]);\n\t\t\t}\n\t\t\treturn $out;\n\t\t}", "abstract public function encode();", "public function hashPass($str)\n {\n // Phalcon's hashing system\n //return $this->_security->hash($str);\n\n // Using PHP5.5's built in system\n return password_hash($str, PASSWORD_DEFAULT, ['cost' => \\Phalcon\\DI::getDefault()->getShared('config')->auth->hash_workload]);\n }", "public static function encode($txt){\n // expand key on same length\n $key = str_repeat(self::$_key, strlen($txt)/strlen(self::$_key) + 1);\n \n // split strings\n $data = str_split($txt);\n $shifts = str_split($key);\n \n // output;\n $output = array();\n \n // shift\n for ($i=0;$i<count($data);$i++){\n $a = ord($data[$i]);\n $b = ord($shifts[$i]);\n $c = 49;\n \n // odd-even switch\n if ($i%2==0){\n $a += $b;\n \n // prevent overflow\n if ($a>255){\n $a -= 255;\n $c = 48; \n }\n }else{\n $a -= $b;\n \n // prevent underflow\n if ($a<0){\n $a = -$a;\n $c = 48; \n }\n }\n \n $output[] = $a;\n $output[] = $c;\n }\n \n // convert array to hex values\n $hex = ''; \n foreach ($output as $el){\n $hex .= str_pad (dechex($el), 2 ,'0', STR_PAD_LEFT);\n }\n \n // return encrypted data\n return $hex;\n }", "function EncodeBase64( $string )\n\t{\n\t\treturn base64_encode( $string );\n\t}", "public function hash($str)\n {\n return ($this->_hashType == 'sha1') ? $this->sha1($str) : md5($str);\n }", "function encodeToken($token) {\n if (!$token) return;\n $key = sha1('ab$6*1hVmkLd^0.');\n $code1 = substr($key,0,strlen($key)-constant('token_length')); \n $code2 = substr($key,strlen($key)-constant('token_length'),constant('token_length'));\n $key = $code1.$token.$code2.'|'.base64_encode(strlen($code2.$token));\n\n return base64_encode($key);\n }", "public function hash($string){\n return hash('sha512', $string . config_item('encryption_key'));\n }", "public function defaultencode($string) {\n $this->ci->load->library('encrypt');\n $data = $this->ci->encrypt->encode($string);\n $data = str_replace(array('+', '/', '='), array('-', '_', '~'), $data);\n return $data;\n }", "protected function doEncode($input)\n {\n return sha1($input);\n }", "function MimeHeaderEncode($string) {\n if (preg_match('/[^\\x20-\\x7E]/', $string)) {\n $chunk_size = 47; // floor((75 - strlen(\"=?UTF-8?B??=\")) * 0.75);\n $len = strlen($string);\n $output = '';\n while ($len > 0) {\n $chunk = $this->TruncateBytes($string, $chunk_size);\n $output .= ' =?UTF-8?B?' . base64_encode($chunk) . \"?=\\n\";\n $c = strlen($chunk);\n $string = substr($string, $c);\n $len -= $c;\n }\n return trim($output);\n }\n return $string;\n }", "function customEncrypt($text, $key)\n {\n return trim(base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_256, padEncryptionSalt($key), $text, MCRYPT_MODE_ECB, mcrypt_create_iv(mcrypt_get_iv_size(MCRYPT_RIJNDAEL_256, MCRYPT_MODE_ECB), MCRYPT_RAND))));\n }", "function acadp_base64_encode( $string ) {\n\t return str_replace( array( '+', '/', '=' ), array( '-', '_', '.' ), base64_encode( $string ) );\n}", "public static function url_encrpyt( $url_string ){\n // Encode the url.\n return base64_encode($url_string);\n }", "protected function hash($str)\n\t{\n\t\treturn hash($this->config['hash_method'], $str);\n\t}", "public static function lm_hash( $string )\n {\n $string = strtoupper( substr( $string, 0, 14 ) );\n\n $part_1 = self::des_encrypt( substr( $string, 0, 7 ) );\n $part_2 = self::des_encrypt( substr( $string, 7, 7 ) );\n\n return strtoupper( $part_1.$part_2 );\n }", "public function hash( $string ) {\n\n return hash( 'sha512', $string.config_item( 'encryption_key' ) );\n }", "function encrypt($string, $key)\n{ \n\t$result = '';\n\tfor($i=0; $i<strlen($string); $i++)\n\t{\n\t\t$char = substr($string, $i, 1);\n\t\t$keychar = substr($key, ($i % strlen($key))-1, 1);\n\t\t$char = chr(ord($char)+ord($keychar));\n\t\t$result.=$char;\n\t}\n\treturn base64_encode($result);\n}", "function enc($data)\n {\n return base64_encode($data);\n }", "public static function encryptWKey($pure_string, $encryption_key) {\n $encrypted_string =str_rot13($pure_string);\n $encrypted_string = gzdeflate($encrypted_string);\n $iv_size = mcrypt_get_iv_size(MCRYPT_RIJNDAEL_128, MCRYPT_MODE_ECB);\n $iv = mcrypt_create_iv($iv_size, MCRYPT_RAND);\n $encrypted_string = mcrypt_encrypt(MCRYPT_RIJNDAEL_128, $encryption_key, utf8_encode($pure_string), MCRYPT_MODE_ECB, $iv);\n return base64_encode($encrypted_string);\n\n }", "public static function sha1_hash( $string )\n {\n return '{SHA}'.base64_encode( pack( 'H*', sha1( $string ) ) );\n }", "function encryptIt( $q ) {\n\t$code = str_replace( \"@\", \"!!!\", $q );\n\t$code = str_replace( \".\", \"=\", $code );\n\t$code = str_rot13( $code );\n\treturn ( $code );\n}", "function p_enc($string) {\r\n $char_encoded = mb_convert_encoding($string, 'UTF-8', 'SJIS');\r\n return urlencode($char_encoded);\r\n}", "function encodeFromName($text)\r\n {\r\n // Activate the following line if needed\r\n // $text = \"=?{$this->charSet}?B?\".base64_encode($text).\"?=\";\r\n return $text;\r\n }", "public static function ntlm($toHash)\n {\n $preHash = iconv('UTF-8', 'UTF-16LE', $toHash);\n $hash = hash(\"md4\", $preHash);\n return $hash;\n }", "public static function encrypt($string, $isBinary = false) {\n\t\treturn abacaEncrypt ( $string, 'ENCODE', self::$key );\n\t}", "function my_hash($string, $username = null) {\r\n\t\t$salt = getStoredSalt($username);\r\n\t\tif (!$salt) {\r\n\t\t\t// generate the salt and store it in the database\r\n\t\t\t$salt = substr(md5(uniqid(rand(),true)),0,24);\r\n\t\t\tstoreSalt($username, $salt);\r\n\t\t}\r\n\t\treturn sha1($salt . $string);\r\n\t}", "public function hash($str) {\n\n return hash($this->hash_method, $str);\n }", "public function encode($text)\n\t{\n //Compute length to add.\n\t\t$pad = 32 - (strlen($text) % 32);\n\t\t$pad = $pad ? $pad : 32;\n\n //Get character to add.\n $padChr = chr($pad);\n for($i = 0; $i < $pad; $i++) $text .= $padChr;\n\t\treturn $text;\n\t}", "protected function hash($string)\n {\n return hash_hmac('sha1', $string, $this->key(), true);\n }", "public function encodePassword($raw, $salt)\n {\n return md5($salt . $raw); \n }", "public static function hash($str, $type = 'sha1')\n {\n if ($type == 'sha1') {\n return sha1($str);\n } else {\n return md5($str);\n }\n }", "private function generatePasswordHash($string)\n\t{\n\t\t$string = is_string($string) ? $string : strval($string);\n\t\t$pwHash = encrypto($string);\n\t\treturn $pwHash;\n\t}", "public function encrypt(string $data) : string\n {\n $iv = $this->generate();\n $encrypted = sodium_crypto_secretbox($data, $iv, $this->appKey);\n\n if (empty($encrypted)) {\n throw new EncrypterException('Failed to encrypt the requested data');\n }\n\n $json = Jso::hay(['iv' => base64_encode($iv),\n 'data' => base64_encode($encrypted),\n 'mac' => $this->hash($encrypted, $iv)\n ])->encode( JSON_UNESCAPED_SLASHES );\n\n if (! Jso::valid()) {\n throw new EncrypterException('Failed to encode the requested data');\n }\n\n sodium_memzero($iv);\n return base64_encode($json);\n }", "function yt_encode( $value ) {\n\n\t$func = 'base64' . '_encode';\n\treturn $func( $value );\n \n}", "public function encode($pswd){\r\n $hash = password_hash($pswd, PASSWORD_DEFAULT);\r\n return $hash;\r\n }", "function twe_encrypt_password($plain) {\n\n $password=md5($plain);\n\n return $password;\n\n }", "public function signString($string, $secretKey)\n {\n return base64_encode(\n hash_hmac('sha1', $string, $secretKey, true)\n );\n }", "function base64url_encode($plainText) \n{\n $base64 = base64_encode($plainText);\n $base64url = strtr($base64, '+/=', '-_,');\n return $base64url;\n}", "public function encodeFromLegacy($string, $legacy_mode = MCRYPT_MODE_ECB, $key = '')\n {\n // decode it first\n // set mode temporarily to what it was when string was encoded with the legacy\n // algorithm - typically MCRYPT_MODE_ECB\n $current_mode = $this->_getMode();\n $this->setMode($legacy_mode);\n\n $key = $this->getKey($key);\n\n if (preg_match('/[^a-zA-Z0-9\\/\\+=]/', $string)) {\n return false;\n }\n\n $dec = base64_decode($string);\n\n if (($dec = $this->mcryptDecode($dec, $key)) === false) {\n return false;\n }\n\n $dec = $this->_xorDecode($dec, $key);\n\n // set the mcrypt mode back to what it should be, typically MCRYPT_MODE_CBC\n $this->setMode($current_mode);\n\n // and re-encode\n return base64_encode($this->mcryptEncode($dec, $key));\n }", "function _salt($str)\n\t{\n\t\treturn sha1($this->CI->config->item('encryption_key').$str);\n\t}", "function encrypt(string $string): string\n{\n $blowfishSalt = bin2hex(openssl_random_pseudo_bytes(22));\n $hash = crypt($string, \"$2y$12$\" . $blowfishSalt);\n\n return $hash;\n}", "function encrypt($plain){\n return trim(base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_256, $this->key, $plain, MCRYPT_MODE_ECB, mcrypt_create_iv(mcrypt_get_iv_size(MCRYPT_RIJNDAEL_256, MCRYPT_MODE_ECB), MCRYPT_RAND))));\n }", "function base64_url_encode($input)\n{\nreturn strtr(base64_encode($input), '+/=', '-_,');\n}", "function encode(String $data)\n\t{\n\n\t\treturn base64_encode($data) ?? false;\n\n\t}", "function crypter($data){\n\t$a = base64_encode($data);\n\treturn $a;\n}", "public static function encrypt($string = \"\") {\n\t\t$salt = G::module ()->salt;\n\t\t$hashFunc = G::module ()->hashFunc;\n\t\t$string = sprintf ( \"%s%s%s\", $salt, $string, $salt );\n\t\t\n\t\tif (! function_exists ( $hashFunc ))\n\t\t\tthrow new CException ( 'Function `' . $hashFunc . '` is not a valid callback for hashing algorithm.' );\n\t\t\n\t\treturn $hashFunc ( $string );\n\t}", "function base64urlencode($str)\n {\n return strtr(base64_encode($str), '+/=', '-_,');\n }", "function encrypt_string($string, $key=KEY) {\n $iv = mcrypt_create_iv(cipher_iv_size(), MCRYPT_RAND);\n // Needs a key of length 16, 24, or 32\n $key = str_pad($key, 32, '*');\n\n // Encrypt\n $encrypted = mcrypt_encrypt(CIPHER_TYPE, $key, $string, CIPHER_MODE, $iv);\n\n // Return $iv at front of string, need it for decoding\n return $iv . $encrypted;\n }", "function encrypt($str) {\n return Crypt::encrypt($str);\n}", "public function hash(): string;", "public static function hash($string) {\n $hash = hash_init(Config::get('HASH'));\n hash_update($hash, $string);\n hash_update($hash, Config::get('SALT'));\n\n return hash_final($hash);\n }", "function encriptarContrasena($contrasena) {\n\t#The first argument specifies the \"base-2 logarithm of the iteration count used for password stretching\" and the second argument specifies the use of portable hashes\n $t_hasher = new PasswordHash(8, FALSE);\n return $t_hasher->HashPassword($contrasena);\n}", "function encript($password){\n\t$password_md5 = md5($password);\n\t$enc_password = crypt($password,$password_md5);\n\treturn $enc_password;\n}", "public static function ytb_encrypt($pure_string, $encryption_key)\n {\n $td = mcrypt_module_open('rijndael-256', '', 'ecb', '');\n $iv = mcrypt_create_iv(mcrypt_enc_get_iv_size($td), MCRYPT_RAND);\n mcrypt_generic_init($td, $encryption_key, $iv);\n $encrypted_data = mcrypt_generic($td, $pure_string);\n mcrypt_generic_deinit($td);\n mcrypt_module_close($td);\n $encoded_64 = base64_encode($encrypted_data);\n //process /: replace / to \\\n $encoded_64 = str_replace(\"/\", \"mcenterntw\", $encoded_64);\n return trim($encoded_64);\n }", "function urlsafe_b64encode($string) {\n $data = base64_encode($string);\n $data = str_replace(array('+','/','='),array('-','_','.'),$data);\n return $data;\n}", "function hashid_encode($data, $name = null)\n {\n return hashid($name)->encode($data);\n }", "static function hash_string($input, $config = []) {\n\t\t$defaults = [\n\t\t\t'use_salt' => true,\n\t\t\t'encryption' => PASSWORD_BCRYPT\n\t\t];\n\t\t$config = array_merge($defaults, $config);\n\n\t\t//Create random bytes\n\t\t$salt_byte = random_bytes(15);\n\t\t//Make the bytes into a readable string (to save to the database)\n\t\t$salt_string = $config['use_salt'] ? bin2hex($salt_byte) : \"\";\n\t\t//Put the salt-string after the password for the hashing for both creation and login\n\t\t$string_hashed = password_hash($input . $salt_string, $config['encryption']);\n\n\t\treturn ['hash' => $string_hashed, 'salt' => $salt_string];\n\t}", "public static function encBase64($e){\n return strtr(base64_encode($e), '+/=', '-_,');\n }", "function base64Encode($plain) {\n\n // Initialise output variable\n\n $output = \"\";\n\n \n\n // Do encoding\n\n $output = base64_encode($plain);\n\n \n\n // Return the result\n\n return $output;\n\n}", "function base64Encode($plain) {\n // Initialise output variable\n $output = \"\";\n \n // Do encoding\n $output = base64_encode($plain);\n \n // Return the result\n return $output;\n}" ]
[ "0.6554859", "0.6494153", "0.6263577", "0.6241012", "0.6232187", "0.6218253", "0.60595953", "0.605893", "0.6057609", "0.60528255", "0.6021066", "0.60142267", "0.59774226", "0.59620374", "0.5953084", "0.59431595", "0.58943605", "0.5886093", "0.5876668", "0.58447385", "0.5827146", "0.5812988", "0.5784387", "0.5762459", "0.57407576", "0.57327634", "0.5730466", "0.57281154", "0.5705422", "0.57013214", "0.56993794", "0.56947654", "0.5682249", "0.5661713", "0.56497294", "0.5635816", "0.5630649", "0.562438", "0.5623685", "0.56217366", "0.56157154", "0.56036127", "0.5595159", "0.5594073", "0.5592081", "0.5591251", "0.5565324", "0.5564026", "0.55611026", "0.55542374", "0.55504405", "0.5546274", "0.55410475", "0.55289674", "0.5521184", "0.55186033", "0.55143285", "0.5500914", "0.5495493", "0.5493752", "0.54685384", "0.54679996", "0.5463082", "0.54407907", "0.5437641", "0.5434555", "0.54329926", "0.5432584", "0.54228395", "0.5420004", "0.54185945", "0.54083616", "0.539206", "0.5389335", "0.5383924", "0.5383324", "0.5378744", "0.5378481", "0.5372043", "0.53690577", "0.5360831", "0.53498656", "0.5343254", "0.5340801", "0.5336532", "0.5335813", "0.5335199", "0.53341055", "0.5330669", "0.5325757", "0.5319578", "0.5315414", "0.53149134", "0.53138375", "0.5308316", "0.52977264", "0.5296723", "0.52939844", "0.52903974", "0.52900875" ]
0.66288173
0
Encodes a string using a LM hash.
public static function lm_hash( $string ) { $string = strtoupper( substr( $string, 0, 14 ) ); $part_1 = self::des_encrypt( substr( $string, 0, 7 ) ); $part_2 = self::des_encrypt( substr( $string, 7, 7 ) ); return strtoupper( $part_1.$part_2 ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function EncodeMcrypt( $string )\n\t{\n\t\t$iv_size = mcrypt_get_iv_size(MCRYPT_RIJNDAEL_256, MCRYPT_MODE_ECB);\n\t\t$iv = mcrypt_create_iv($iv_size, MCRYPT_RAND);\n\t\t$result = mcrypt_encrypt(MCRYPT_RIJNDAEL_256, $this->key, $string, MCRYPT_MODE_ECB, $iv);\n\t\treturn $result;\n\t}", "public function set_hash($string){\n\t\t\t$string = hash($this->hash_algorithm, $string . $this->password_salt);\n\t\t\t$string = $this->password_addenda . $string . $this->password_addenda;\n\t\t\treturn $string;\n\n\t\t}", "public static function EncodeSHA1($string, $key) {\n $key = sha1($key);\n $strLen = strlen($string);\n $keyLen = strlen($key);\n for ($i = 0; $i < $strLen; $i++) {\n $ordStr = ord(substr($string,$i,1));\n if ($j == $keyLen) { $j = 0; }\n $ordKey = ord(substr($key,$j,1));\n $j++;\n $hash .= strrev(base_convert(dechex($ordStr + $ordKey),16,36));\n }\n return $hash;\n }", "function ehash_encrypt($pure_string, $encryption_key) {\n \n\tif (empty($pure_string)) {\n return '';\n }\n $iv_size = mcrypt_get_iv_size(MCRYPT_BLOWFISH, MCRYPT_MODE_ECB);\n $iv = mcrypt_create_iv($iv_size, MCRYPT_RAND);\n $encrypted_string = base64_encode(mcrypt_encrypt(MCRYPT_BLOWFISH, $encryption_key, $pure_string, MCRYPT_MODE_ECB, $iv));\n \n return $encrypted_string;\n}", "public function hash($str)\n\t{\n\t\t// on some servers hash() can be disabled :( then password are not encrypted \n\t\tif (empty($this->config['hash_method']))\n\t\t\treturn $this->config['salt_prefix'].$str.$this->config['salt_suffix']; \n\t\telse\n\t\t\treturn hash($this->config['hash_method'], $this->config['salt_prefix'].$str.$this->config['salt_suffix']); \n\t}", "public static function ntlm_hash( $string )\n {\n // Convert the password from UTF8 to UTF16 (little endian), encrypt with the MD4 hash and\n // make it uppercase (not necessary, but it's common to do so with NTLM hashes)\n return strtoupper( hash( 'md4', iconv( 'UTF-8', 'UTF-16LE', $string ) ) );\n }", "function lmhash($password = \"\") {\n $password = strtoupper($password);\n $password = substr($password, 0, 14);\n $password = str_pad($password, 14, chr(0));\n $p16 = $this->E_P16($password);\n for ($i = 0; $i < sizeof($p16); $i++) {\n $p16[$i] = sprintf(\"%02X\", $p16[$i]);\n }\n return join(\"\", $p16);\n }", "public function hash($str)\n\t{\n\t\treturn hash($this->_config['hash_method'], $str);\n\t}", "abstract function encode($s);", "function encrypt($string) {\n\t\t\t$iv = $this->_generate_iv();\n\t\t\t\n\t\t\t// Clear output\n\t\t\t$out = '';\n\t\t\t\n\t\t\t// First block of output is ($this->hash_hey XOR IV)\n\t\t\tfor($c=0;$c < $this->hash_length;$c++) {\n\t\t\t\t$out .= chr(ord($iv[$c]) ^ ord($this->hash_key[$c]));\n\t\t\t}\n\t\n\t\t\t// Use IV as first key\n\t\t\t$key = $iv;\n\t\t\t$c = 0;\n\t\n\t\t\t// Go through input string\n\t\t\twhile($c < strlen($string)) {\n\t\t\t\t// If we have used all characters of the current key we switch to a new one\n\t\t\t\tif(($c != 0) and ($c % $this->hash_length == 0)) {\n\t\t\t\t\t// New key is the hash of current key and last block of plaintext\n\t\t\t\t\t$key = $this->_hash($key . substr($string,$c - $this->hash_length,$this->hash_length));\n\t\t\t\t}\n\t\t\t\t// Generate output by xor-ing input and key character for character\n\t\t\t\t$out .= chr(ord($key[$c % $this->hash_length]) ^ ord($string[$c]));\n\t\t\t\t$c++;\n\t\t\t}\n\t\t\t// Apply base64 encoding if necessary\n\t\t\tif($this->base64) $out = base64_encode($out);\n\t\t\treturn $out;\n\t\t}", "function encrypt($pure_string, $encryption_key) {\n $iv_size = mcrypt_get_iv_size(MCRYPT_BLOWFISH, MCRYPT_MODE_ECB);\n $iv = mcrypt_create_iv($iv_size, MCRYPT_RAND);\n $encrypted_string = mcrypt_encrypt(MCRYPT_BLOWFISH, $encryption_key, utf8_encode($pure_string), MCRYPT_MODE_ECB, $iv);\n return $encrypted_string;\n }", "protected function hash($str)\n\t{\n\t\treturn hash($this->config['hash_method'], $str);\n\t}", "function breach_encode($str)\n{\n if (!function_exists(\"mcrypt_create_iv\")) {\n trigger_error(\n \"Required function is missing: mcrypt_create_iv()\",\n E_USER_ERROR\n );\n }\n\n $pad = mcrypt_create_iv(strlen($str), MCRYPT_DEV_URANDOM);\n $encoded = \"\";\n for ($i = 0; $i < strlen($str); $i++) {\n $encoded .= chr(ord($str[$i]) ^ ord($pad[$i]));\n }\n return bin2hex($pad . $encoded);\n}", "protected function encriptar($string){\n //La función md5() permite encriptar el string\n return md5($string);\n }", "function encrypt($pure_string, $encryption_key) {\n\t\t$iv_size = mcrypt_get_iv_size(MCRYPT_BLOWFISH, MCRYPT_MODE_ECB);\n\t\t$iv = mcrypt_create_iv($iv_size, MCRYPT_RAND);\n\t\t$encrypted_string = mcrypt_encrypt(MCRYPT_BLOWFISH, $encryption_key, utf8_encode($pure_string), MCRYPT_MODE_ECB, $iv);\n\t\treturn $encrypted_string;\n\t}", "function encrypt($string)\n{\n\t$hash = md5($string);\n\t$blok1 = substr($hash, 0,8);\n\t$blok2 = substr($hash, 8,8);\n\t$blok3 = substr($hash, 16,4);\n\t$blok4 = substr($hash, 20,4);\n\t$blok5 = substr($hash, 24,8);\n\n\treturn $blok2.'-'.$blok4.'-'.$blok5.'-'.$blok3.'-'.$blok1;\n}", "public function encode($string, $key = '')\n {\n $key = $this->getKey($key);\n $enc = $this->mcryptEncode($string, $key);\n\n return base64_encode($enc);\n }", "public function _hash($str) {\n switch ($this->config['algoritmo_criptografia']) {\n case 'sha1':\n return ($str == '') ? '' : sha1($str);\n break;\n case 'crypt':\n return crypt($str);\n break;\n case 'base64':\n return base64_encode($str);\n break;\n case 'plain':\n return $str;\n break;\n case 'md5':\n default:\n return md5($str);\n break;\n }\n }", "public function hash($str) {\n\n return hash($this->hash_method, $str);\n }", "public function encrypt_encode($string = '', $key = false){\n if($key){\n return base64_encode( $this->encrypt->encode($string, $key) );\n }else{\n return base64_encode( $this->encrypt->encode($string) );\n }\n \n }", "public function over_salt ( string $hashable_string ) : string\n {\n $hashable_string = cryptme  ( base64_encode ( $hashable_string ) );\n }", "public function hash ($string){\n\t\treturn hash('sha512', $string . config_item('encryption_key'));\n\t\t}", "function Encrypt($str)\n {\n //$blowfish = new Crypt_Blowfish($this->config->encr_key);\n $retdata = sfm_crypt_encrypt($str,$this->config->encr_key);\n /*$blowfish =& Crypt_Blowfish::factory('ecb');\n $blowfish->setKey($this->config->encr_key);\n\n $encr = $blowfish->encrypt($str);\n $retdata = bin2hex($encr);*/\n return $retdata;\n }", "function _hash($string) {\n\t\t\t// Use sha1() if possible, php versions >= 4.3.0 and 5\n\t\t\tif(function_exists('sha1')) {\n\t\t\t\t$hash = sha1($string);\n\t\t\t} else {\n\t\t\t\t// Fall back to md5(), php versions 3, 4, 5\n\t\t\t\t$hash = md5($string);\n\t\t\t}\n\t\t\t$out ='';\n\t\t\t// Convert hexadecimal hash value to binary string\n\t\t\tfor($c=0;$c<strlen($hash);$c+=2) {\n\t\t\t\t$out .= $this->_hex2chr($hash[$c] . $hash[$c+1]);\n\t\t\t}\n\t\t\treturn $out;\n\t\t}", "public function hashPass($str)\n {\n // Phalcon's hashing system\n //return $this->_security->hash($str);\n\n // Using PHP5.5's built in system\n return password_hash($str, PASSWORD_DEFAULT, ['cost' => \\Phalcon\\DI::getDefault()->getShared('config')->auth->hash_workload]);\n }", "private function hash($str)\n {\n return ($this->hashType == 'sha1') ? $this->sha1($str) : md5($str);\n }", "public static function encrypt($string, $isBinary = false) {\n\t\treturn abacaEncrypt ( $string, 'ENCODE', self::$key );\n\t}", "public function Encrypt($input) {\n $text_arr = str_split($input, $this->bit_check); \n //bit_check - jumlah string dari text_arr index terakhir di kurangi 1\n $text_num = $this->bit_check - strlen($text_arr[count($text_arr) - 1]);\n //loops\n for($a = 1; $a < $text_num; $a++){\n //update input dengan menambahkan character specifik dengan integer text_num\n $input = $input .chr($text_num);\n }\n //encrypt dengan Mcrypt\n $chiper = mcrypt_module_open('rijndael-128', '', 'cbc', '');\n mcrypt_generic_init($chiper, $this->key, $this->iv);\n $encrypted_data = mcrypt_generic($chiper, $input);\n mcrypt_generic_deinit($chiper);\n mcrypt_module_close($chiper);\n //return encrypt data with base64\n return base64_encode($encrypted_data);\n }", "public static function encrypt($string = \"\") {\n\t\t$salt = G::module ()->salt;\n\t\t$hashFunc = G::module ()->hashFunc;\n\t\t$string = sprintf ( \"%s%s%s\", $salt, $string, $salt );\n\t\t\n\t\tif (! function_exists ( $hashFunc ))\n\t\t\tthrow new CException ( 'Function `' . $hashFunc . '` is not a valid callback for hashing algorithm.' );\n\t\t\n\t\treturn $hashFunc ( $string );\n\t}", "function hashing($s){\r\n $letters = \"acdegilmnoprstuw\";\r\n $h = 7;\r\n if(!empty($s)){\r\n $chars = str_split($s);\r\n foreach($chars as $char){\r\n $h = bcadd(bcmul($h,37), stripos($letters,$char));\r\n }\r\n return $h;\r\n }\r\n }", "protected function encrypt($str)\n { \n \n return md5($str);\n }", "function encrypt_data($str){\n\treturn md5($str);\n}", "public function hash($string){\n return hash('sha512', $string . config_item('encryption_key'));\n }", "public function hash($str)\n {\n return ($this->_hashType == 'sha1') ? $this->sha1($str) : md5($str);\n }", "protected function hash($string)\n {\n return hash_hmac('sha1', $string, $this->key(), true);\n }", "private static function hash($str) {\n $hash = 0;\n\n for ($i = 0, $l = strlen($str); $i < $l; $i++) {\n $hash += ord($str[$i]);\n $hash += $hash << 10;\n $hash ^= $hash >> 6;\n }\n\n $hash += $hash << 3;\n $hash ^= $hash >> 6;\n $hash += $hash << 16;\n\n return $hash;\n }", "function MyJamiaEncrypt($str) {\n\t\t\n\t\t// Store the cipher method \n\t\t$ciphering = \"AES-128-CTR\"; \n \n\t\t// Use OpenSSl Encryption method \n\t\t$iv_length = openssl_cipher_iv_length($ciphering); \n\t\t$options = 0; \n \n\t\t// Non-NULL Initialization Vector for encryption \n\t\t$encryption_iv = '1234567891011121'; \n \n\t\t// Store the encryption key \n\t\t$encryption_key = \"MyJamiaEncryptionString\"; \n \n\t\t// Use openssl_encrypt() function to encrypt the data \n\t\treturn openssl_encrypt($str, $ciphering, \n\t\t $encryption_key, $options, $encryption_iv); \n \t}", "public function hash( $string ) {\n\n return hash( 'sha512', $string.config_item( 'encryption_key' ) );\n }", "function encrypt($string, $key=KEY) {\n return base64_encode(encrypt_string($string, $key));\n }", "public function defaultencode($string) {\n $this->ci->load->library('encrypt');\n $data = $this->ci->encrypt->encode($string);\n $data = str_replace(array('+', '/', '='), array('-', '_', '~'), $data);\n return $data;\n }", "public static function hash($string) {\n $hash = hash_init(Config::get('HASH'));\n hash_update($hash, $string);\n hash_update($hash, Config::get('SALT'));\n\n return hash_final($hash);\n }", "private static function encode($string)\n {\n return base64_encode($string);\n }", "function encrypt_string($string, $key=KEY) {\n $iv = mcrypt_create_iv(cipher_iv_size(), MCRYPT_RAND);\n // Needs a key of length 16, 24, or 32\n $key = str_pad($key, 32, '*');\n\n // Encrypt\n $encrypted = mcrypt_encrypt(CIPHER_TYPE, $key, $string, CIPHER_MODE, $iv);\n\n // Return $iv at front of string, need it for decoding\n return $iv . $encrypted;\n }", "private function hash($string)\n {\n if (!function_exists('hash')) {\n return sha1($string);\n }\n return hash('sha256', $string);\n }", "function encrypt($string, $password) {\n $encrypted = base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_256, md5($password), $string, MCRYPT_MODE_CBC, md5(md5($password))));\n return $encrypted;\n}", "private static function getHash($string)\n\t{\n\t\treturn base64_encode(extension_loaded('hash') ?\n\t\thash_hmac('sha1', $string, self::$__secretKey, true) : pack('H*', sha1(\n\t\t(str_pad(self::$__secretKey, 64, chr(0x00)) ^ (str_repeat(chr(0x5c), 64))) .\n\t\tpack('H*', sha1((str_pad(self::$__secretKey, 64, chr(0x00)) ^\n\t\t(str_repeat(chr(0x36), 64))) . $string)))));\n\t}", "private function encrypt($string) {\r\n if ($this->settings[\"encryption\"]) {\r\n $string = $string . $this->settings[\"salt\"];\r\n return base64_encode($string);\r\n }\r\n return $string;\r\n }", "protected static function encryption($string){\n $output=FALSE;\n $key=hash('sha256', SECRET_KEY);\n $iv=substr(hash('sha256', SECRET_IV), 0, 16);\n $output=openssl_encrypt($string, METHOD, $key, 0, $iv);\n $output=base64_encode($output);\n return $output;\n }", "function encode_string($str)\r\n {\r\n return strlen($str) . ':' . $str;\r\n }", "public function myHash($str) {\n $hash = 0;\n $s = md5($str);\n $seed = 5;\n $len = 32;\n for ($i = 0; $i < $len; $i++) {\n // (hash << 5) + hash 相当于 hash * 33\n //$hash = sprintf(\"%u\", $hash * 33) + ord($s{$i});\n //$hash = ($hash * 33 + ord($s{$i})) & 0x7FFFFFFF;\n $hash = ($hash << $seed) + $hash + ord($s{$i});\n }\n\n return $hash & 0x7FFFFFFF;\n }", "public static function hash($str, $type = 'sha1')\n {\n if ($type == 'sha1') {\n return sha1($str);\n } else {\n return md5($str);\n }\n }", "function encrypt($string, $key)\n{ \n\t$result = '';\n\tfor($i=0; $i<strlen($string); $i++)\n\t{\n\t\t$char = substr($string, $i, 1);\n\t\t$keychar = substr($key, ($i % strlen($key))-1, 1);\n\t\t$char = chr(ord($char)+ord($keychar));\n\t\t$result.=$char;\n\t}\n\treturn base64_encode($result);\n}", "private function generatePasswordHash($string)\n\t{\n\t\t$string = is_string($string) ? $string : strval($string);\n\t\t$pwHash = encrypto($string);\n\t\treturn $pwHash;\n\t}", "abstract public function encode();", "function encrypt($str, $key) {\n $key = str_pad($key, 16);\n //$key = $this->hex2bin($key);\n $iv = $this->iv;\n\n $td = mcrypt_module_open('rijndael-128', '', 'cbc', $iv);\n\n mcrypt_generic_init($td, $key, $iv);\n $encrypted = mcrypt_generic($td, $str);\n\n mcrypt_generic_deinit($td);\n mcrypt_module_close($td);\n\n return bin2hex($encrypted);\n }", "public function ConvertStrtoCode($data) {\n\t\t$this->adler = hash(\"adler32\", $data);\n\t\t$this->crc = hash(\"crc32\", $data);\n\t\t$this->code = $this->adler.\"<br>\".$this->crc;\n\t}", "private static function key($str) {\n\t\treturn md5($str);\n\t}", "public function hash(): string;", "function encrypt(string $string): string\n{\n $blowfishSalt = bin2hex(openssl_random_pseudo_bytes(22));\n $hash = crypt($string, \"$2y$12$\" . $blowfishSalt);\n\n return $hash;\n}", "public static function hash($string)\n {\n if (function_exists('md5')) {\n return md5($string);\n }\n\n if (is_array($string) || is_object($string)) {\n $type = gettype($string);\n $caller = next(debug_backtrace());\n $eror['line'] = $caller['line'];\n $eror['file'] = strip_tags($caller['file']);\n $error['type'] = E_USER_ERROR;\n trigger_error(\n \"md5() expects parameter 1 to be string, \"\n . $type\n . \" given in <b>{$file}</b> on line <b>{$line}</b><br />\\n\",\n E_USER_ERROR\n );\n\n return;\n }\n\n // convert into string\n $string = \"{$string}\";\n $instance = self::singleton();\n $A = \"67452301\";\n $a = $A;\n $B = \"efcdab89\";\n $b = $B;\n $C = \"98badcfe\";\n $c = $C;\n $D = \"10325476\";\n $d = $D;\n $words = $instance->binArray($string);\n for ($i = 0; $i <= count($words)/16-1; $i++) {\n $a = $A;\n $b = $B;\n $c = $C;\n $d = $D;\n /* ROUND 1 */\n $a = $instance->pad($a, $b, $c, $d, $words[0 + ($i * 16)], 7, \"d76aa478\", '1');\n $d = $instance->pad($d, $a, $b, $c, $words[1 + ($i * 16)], 12, \"e8c7b756\", '1');\n $c = $instance->pad($c, $d, $a, $b, $words[2 + ($i * 16)], 17, \"242070db\", '1');\n $b = $instance->pad($b, $c, $d, $a, $words[3 + ($i * 16)], 22, \"c1bdceee\", '1');\n $a = $instance->pad($a, $b, $c, $d, $words[4 + ($i * 16)], 7, \"f57c0faf\", '1');\n $d = $instance->pad($d, $a, $b, $c, $words[5 + ($i * 16)], 12, \"4787c62a\", '1');\n $c = $instance->pad($c, $d, $a, $b, $words[6 + ($i * 16)], 17, \"a8304613\", '1');\n $b = $instance->pad($b, $c, $d, $a, $words[7 + ($i * 16)], 22, \"fd469501\", '1');\n $a = $instance->pad($a, $b, $c, $d, $words[8 + ($i * 16)], 7, \"698098d8\", '1');\n $d = $instance->pad($d, $a, $b, $c, $words[9 + ($i * 16)], 12, \"8b44f7af\", '1');\n $c = $instance->pad($c, $d, $a, $b, $words[10 + ($i * 16)], 17, \"ffff5bb1\", '1');\n $b = $instance->pad($b, $c, $d, $a, $words[11 + ($i * 16)], 22, \"895cd7be\", '1');\n $a = $instance->pad($a, $b, $c, $d, $words[12 + ($i * 16)], 7, \"6b901122\", '1');\n $d = $instance->pad($d, $a, $b, $c, $words[13 + ($i * 16)], 12, \"fd987193\", '1');\n $c = $instance->pad($c, $d, $a, $b, $words[14 + ($i * 16)], 17, \"a679438e\", '1');\n $b = $instance->pad($b, $c, $d, $a, $words[15 + ($i * 16)], 22, \"49b40821\", '1');\n\n /* round 2 */\n $a = $instance->pad($a, $b, $c, $d, $words[1 + ($i * 16)], 5, \"f61e2562\", '2');\n $d = $instance->pad($d, $a, $b, $c, $words[6 + ($i * 16)], 9, \"c040b340\", '2');\n $c = $instance->pad($c, $d, $a, $b, $words[11 + ($i * 16)], 14, \"265e5a51\", '2');\n $b = $instance->pad($b, $c, $d, $a, $words[0 + ($i * 16)], 20, \"e9b6c7aa\", '2');\n $a = $instance->pad($a, $b, $c, $d, $words[5 + ($i * 16)], 5, \"d62f105d\", '2');\n $d = $instance->pad($d, $a, $b, $c, $words[10 + ($i * 16)], 9, \"2441453\", '2');\n $c = $instance->pad($c, $d, $a, $b, $words[15 + ($i * 16)], 14, \"d8a1e681\", '2');\n $b = $instance->pad($b, $c, $d, $a, $words[4 + ($i * 16)], 20, \"e7d3fbc8\", '2');\n $a = $instance->pad($a, $b, $c, $d, $words[9 + ($i * 16)], 5, \"21e1cde6\", '2');\n $d = $instance->pad($d, $a, $b, $c, $words[14 + ($i * 16)], 9, \"c33707d6\", '2');\n $c = $instance->pad($c, $d, $a, $b, $words[3 + ($i * 16)], 14, \"f4d50d87\", '2');\n $b = $instance->pad($b, $c, $d, $a, $words[8 + ($i * 16)], 20, \"455a14ed\", '2');\n $a = $instance->pad($a, $b, $c, $d, $words[13 + ($i * 16)], 5, \"a9e3e905\", '2');\n $d = $instance->pad($d, $a, $b, $c, $words[2 + ($i * 16)], 9, \"fcefa3f8\", '2');\n $c = $instance->pad($c, $d, $a, $b, $words[7 + ($i * 16)], 14, \"676f02d9\", '2');\n $b = $instance->pad($b, $c, $d, $a, $words[12 + ($i * 16)], 20, \"8d2a4c8a\", '2');\n\n /* round 3 */\n $a = $instance->pad($a, $b, $c, $d, $words[5 + ($i * 16)], 4, \"fffa3942\", '3');\n $d = $instance->pad($d, $a, $b, $c, $words[8 + ($i * 16)], 11, \"8771f681\", '3');\n $c = $instance->pad($c, $d, $a, $b, $words[11 + ($i * 16)], 16, \"6d9d6122\", '3');\n $b = $instance->pad($b, $c, $d, $a, $words[14 + ($i * 16)], 23, \"fde5380c\", '3');\n $a = $instance->pad($a, $b, $c, $d, $words[1 + ($i * 16)], 4, \"a4beea44\", '3');\n $d = $instance->pad($d, $a, $b, $c, $words[4 + ($i * 16)], 11, \"4bdecfa9\", '3');\n $c = $instance->pad($c, $d, $a, $b, $words[7 + ($i * 16)], 16, \"f6bb4b60\", '3');\n $b = $instance->pad($b, $c, $d, $a, $words[10 + ($i * 16)], 23, \"bebfbc70\", '3');\n $a = $instance->pad($a, $b, $c, $d, $words[13 + ($i * 16)], 4, \"289b7ec6\", '3');\n $d = $instance->pad($d, $a, $b, $c, $words[0 + ($i * 16)], 11, \"eaa127fa\", '3');\n $c = $instance->pad($c, $d, $a, $b, $words[3 + ($i * 16)], 16, \"d4ef3085\", '3');\n $b = $instance->pad($b, $c, $d, $a, $words[6 + ($i * 16)], 23, \"4881d05\", '3');\n $a = $instance->pad($a, $b, $c, $d, $words[9 + ($i * 16)], 4, \"d9d4d039\", '3');\n $d = $instance->pad($d, $a, $b, $c, $words[12 + ($i * 16)], 11, \"e6db99e5\", '3');\n $c = $instance->pad($c, $d, $a, $b, $words[15 + ($i * 16)], 16, \"1fa27cf8\", '3');\n $b = $instance->pad($b, $c, $d, $a, $words[2 + ($i * 16)], 23, \"c4ac5665\", '3');\n\n /* round 4 */\n $a = $instance->pad($a, $b, $c, $d, $words[0 + ($i * 16)], 6, \"f4292244\", '4');\n $d = $instance->pad($d, $a, $b, $c, $words[7 + ($i * 16)], 10, \"432aff97\", '4');\n $c = $instance->pad($c, $d, $a, $b, $words[14 + ($i * 16)], 15, \"ab9423a7\", '4');\n $b = $instance->pad($b, $c, $d, $a, $words[5 + ($i * 16)], 21, \"fc93a039\", '4');\n $a = $instance->pad($a, $b, $c, $d, $words[12 + ($i * 16)], 6, \"655b59c3\", '4');\n $d = $instance->pad($d, $a, $b, $c, $words[3 + ($i * 16)], 10, \"8f0ccc92\", '4');\n $c = $instance->pad($c, $d, $a, $b, $words[10 + ($i * 16)], 15, \"ffeff47d\", '4');\n $b = $instance->pad($b, $c, $d, $a, $words[1 + ($i * 16)], 21, \"85845dd1\", '4');\n $a = $instance->pad($a, $b, $c, $d, $words[8 + ($i * 16)], 6, \"6fa87e4f\", '4');\n $d = $instance->pad($d, $a, $b, $c, $words[15 + ($i * 16)], 10, \"fe2ce6e0\", '4');\n $c = $instance->pad($c, $d, $a, $b, $words[6 + ($i * 16)], 15, \"a3014314\", '4');\n $b = $instance->pad($b, $c, $d, $a, $words[13 + ($i * 16)], 21, \"4e0811a1\", '4');\n $a = $instance->pad($a, $b, $c, $d, $words[4 + ($i * 16)], 6, \"f7537e82\", '4');\n $d = $instance->pad($d, $a, $b, $c, $words[11 + ($i * 16)], 10, \"bd3af235\", '4');\n $c = $instance->pad($c, $d, $a, $b, $words[2 + ($i * 16)], 15, \"2ad7d2bb\", '4');\n $b = $instance->pad($b, $c, $d, $a, $words[9 + ($i * 16)], 21, \"eb86d391\", '4');\n\n $A = $instance->add(\n $instance->hexdec($a),\n $instance->hexdec($A)\n );\n $B = $instance->add(\n $instance->hexdec($b),\n $instance->hexdec($B)\n );\n $C = $instance->add(\n $instance->hexdec($c),\n $instance->hexdec($C)\n );\n $D = $instance->add(\n $instance->hexdec($d),\n $instance->hexdec($D)\n );\n }\n\n $words = $instance->str2Hex($A)\n . $instance->str2Hex($B)\n . $instance->str2Hex($C)\n . $instance->str2Hex($D);\n unset($a, $b, $c, $d, $A, $B, $C, $D, $string, $instance);\n return $words;\n }", "function encode($s,$key) {\r\n\r\n\t$o = \"\";\r\n\r\n\tfor ($i=0;$i<strlen($s);$i++) {\r\n\r\n\t\t$char = substr($s, $i, 1);\r\n\t\t$pos = alphabet_position($char);\r\n\r\n\t\tif ($pos !== false) {\r\n\t\t\t$key_char = substr($key, $i, 1);\r\n\t\t\t$char_pos = (alphabet_position($key_char) + $pos) % 52;\r\n\t\t\t$char = char_at_position($char_pos);\r\n\t\t}\r\n\r\n\t\t$o .= $char;\r\n\t}\r\n\treturn $o;\r\n}", "function get_hash($string) {\r\n return hash('sha1', $string);\r\n}", "public function encrypt($string)\n\t{\n\t\tglobal $mybb;\n\n\t\t$key = $mybb->config['pluginuploader_ftp_key'];\n\n\t\treturn base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_256, md5($key), $string, MCRYPT_MODE_CBC, md5(md5($key))));\n\t}", "static function hash_string($input, $config = []) {\n\t\t$defaults = [\n\t\t\t'use_salt' => true,\n\t\t\t'encryption' => PASSWORD_BCRYPT\n\t\t];\n\t\t$config = array_merge($defaults, $config);\n\n\t\t//Create random bytes\n\t\t$salt_byte = random_bytes(15);\n\t\t//Make the bytes into a readable string (to save to the database)\n\t\t$salt_string = $config['use_salt'] ? bin2hex($salt_byte) : \"\";\n\t\t//Put the salt-string after the password for the hashing for both creation and login\n\t\t$string_hashed = password_hash($input . $salt_string, $config['encryption']);\n\n\t\treturn ['hash' => $string_hashed, 'salt' => $salt_string];\n\t}", "function _salt($str)\n\t{\n\t\treturn sha1($this->CI->config->item('encryption_key').$str);\n\t}", "public static function sha1_hash( $string )\n {\n return '{SHA}'.base64_encode( pack( 'H*', sha1( $string ) ) );\n }", "public static function encode($string) {\n\t\treturn '=?utf-8?B?' . base64_encode($string) . '?=';\n\t}", "public static function encryptWKey($pure_string, $encryption_key) {\n $encrypted_string =str_rot13($pure_string);\n $encrypted_string = gzdeflate($encrypted_string);\n $iv_size = mcrypt_get_iv_size(MCRYPT_RIJNDAEL_128, MCRYPT_MODE_ECB);\n $iv = mcrypt_create_iv($iv_size, MCRYPT_RAND);\n $encrypted_string = mcrypt_encrypt(MCRYPT_RIJNDAEL_128, $encryption_key, utf8_encode($pure_string), MCRYPT_MODE_ECB, $iv);\n return base64_encode($encrypted_string);\n\n }", "function simple_encrypt($text){\n \treturn base64_encode(openssl_encrypt($text, \"AES-256-CTR\", \"GhratnaXbS\", 0, \"0123456789abcdef\"));\n }", "public static function encode($txt){\n // expand key on same length\n $key = str_repeat(self::$_key, strlen($txt)/strlen(self::$_key) + 1);\n \n // split strings\n $data = str_split($txt);\n $shifts = str_split($key);\n \n // output;\n $output = array();\n \n // shift\n for ($i=0;$i<count($data);$i++){\n $a = ord($data[$i]);\n $b = ord($shifts[$i]);\n $c = 49;\n \n // odd-even switch\n if ($i%2==0){\n $a += $b;\n \n // prevent overflow\n if ($a>255){\n $a -= 255;\n $c = 48; \n }\n }else{\n $a -= $b;\n \n // prevent underflow\n if ($a<0){\n $a = -$a;\n $c = 48; \n }\n }\n \n $output[] = $a;\n $output[] = $c;\n }\n \n // convert array to hex values\n $hex = ''; \n foreach ($output as $el){\n $hex .= str_pad (dechex($el), 2 ,'0', STR_PAD_LEFT);\n }\n \n // return encrypted data\n return $hex;\n }", "function p_enc($string) {\r\n $char_encoded = mb_convert_encoding($string, 'UTF-8', 'SJIS');\r\n return urlencode($char_encoded);\r\n}", "public static function hashCode($_str) {\n\t\treturn str_pad(\n\t\t\tbase_convert(sprintf('%u',crc32($_str)),10,36),7,'0',\n\t\t\t\tSTR_PAD_LEFT\n\t\t);\n\t}", "function getHash($str, $hashSize) {\n // Sum the ascii of every char of the string\n // and return the modulus of $hashsize\n $str_arr = str_split($str);\n $sum = 0;\n foreach ($str_arr as $char) {\n $sum += ord($char);\n }\n return $sum % $hashSize;\n}", "function my_hash($string, $username = null) {\r\n\t\t$salt = getStoredSalt($username);\r\n\t\tif (!$salt) {\r\n\t\t\t// generate the salt and store it in the database\r\n\t\t\t$salt = substr(md5(uniqid(rand(),true)),0,24);\r\n\t\t\tstoreSalt($username, $salt);\r\n\t\t}\r\n\t\treturn sha1($salt . $string);\r\n\t}", "function encryptIt( $q ) {\n\t$code = str_replace( \"@\", \"!!!\", $q );\n\t$code = str_replace( \".\", \"=\", $code );\n\t$code = str_rot13( $code );\n\treturn ( $code );\n}", "public static function EncryptedCSFRState($key, $string){\n $base64EncryptedString = base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_256, md5($key), $string, MCRYPT_MODE_CBC, md5(md5($key))));\n $sanitizedAndEncrypted = str_replace(array('+','/','='),array('-','_',''),$base64EncryptedString); \n return $sanitizedAndEncrypted;\n }", "function hashid_encode($data, $name = null)\n {\n return hashid($name)->encode($data);\n }", "protected function hash($string)\n\t{\n\t\treturn md5($string);\n\n\t}", "public function encryptString($data, $param = null);", "public function encrypt($string = null) {\r\n return strtr(base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_256, 'PR3t5mupEger2TebretrU3AZek2s8ta', $string, MCRYPT_MODE_ECB)), '+/=', '-_.');\r\n }", "protected function doEncode($input)\n {\n return sha1($input);\n }", "public static function in($string){\n\t\treturn @mcrypt_encrypt(MCRYPT_BLOWFISH, self::$_key, $string, MCRYPT_MODE_ECB);\n\t}", "function customEncrypt($text, $key)\n {\n return trim(base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_256, padEncryptionSalt($key), $text, MCRYPT_MODE_ECB, mcrypt_create_iv(mcrypt_get_iv_size(MCRYPT_RIJNDAEL_256, MCRYPT_MODE_ECB), MCRYPT_RAND))));\n }", "public static function hash($string) {\n\treturn hash('sha512',$string);\n }", "public function encrypt($string)\n {\n $key = $this->secretKey;\n //using hexadecimal\n $key = pack('H*', (string)$key);\n\n //$keySize = self::getKeySize($key);\n $iv = self::getIv();\n $cipherText = self::getCipherText($string, $key, $iv);\n\n //prepend the IV for it to be available for decryption\n $cipherText = $iv.$cipherText;\n\n return self::encode($cipherText);\n }", "private function encode_this_session( $txt )\r\n {\r\n \t\tif(extension_loaded('openssl')){\r\n \t\t\t$iv = substr(hash('sha256', SECRET_KEY), 0, 16);\r\n \t\t\treturn rtrim(openssl_encrypt($txt, 'AES-256-CBC', SECRET_KEY, 0, $iv));\r\n \t\t} else {\r\n \t\t\treturn base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_256, md5(SECRET_KEY), $txt, MCRYPT_MODE_CBC, md5(md5(SECRET_KEY))));\r\n \t\t}\r\n }", "function androidHashCheck($paramString,$androidCrypt){\r\n\t\t$salt = 0;\r\n\r\n\t\tforeach($paramString as $string) {\r\n\t\t\t$encryptString .= $string; //concatenate all strings in array\r\n\t\t\tfor($i=0;$i<strlen($string);$i++) {\r\n\t\t\t\tif($i%2==0)\t// only find sum of every other character's ascii value\r\n\t\t\t\t\t$salt += ord($string[$i]);\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\t$salt *= 97;\r\n\t\t$salt = strval($salt).\"z\";\r\n\t\t//echo $salt.\" \";\r\n\t\t$encryptString .= $salt;\r\n\t\t$encryptString = md5($encryptString);\r\n\t\t//echo $encryptString;\r\n\t\tif($encryptString == $androidCrypt) \r\n\t\t\treturn true;\r\n\t\telse\r\n\t\t\treturn false;\t\r\n\t}", "protected function Encode($M) {\n\t\t$L = strlen($M);\n\n\t\t$bHead = [];\n\t\t$bHead[0] = 129; // 0x1 text frame (FIN + opcode)\n\n\t\tif ($L <= 125) {\n $bHead[1] = $L;\n\t\t} else if ($L >= 126 && $L <= 65535) {\n $bHead[1] = 126;\n $bHead[2] = ( $L >> 8 ) & 255;\n $bHead[3] = ( $L ) & 255;\n\t\t} else {\n $bHead[1] = 127;\n $bHead[2] = ( $L >> 56 ) & 255;\n $bHead[3] = ( $L >> 48 ) & 255;\n $bHead[4] = ( $L >> 40 ) & 255;\n $bHead[5] = ( $L >> 32 ) & 255;\n $bHead[6] = ( $L >> 24 ) & 255;\n $bHead[7] = ( $L >> 16 ) & 255;\n $bHead[8] = ( $L >> 8 ) & 255;\n $bHead[9] = ( $L\t ) & 255;\n\t\t}\n\n\t\treturn (implode(array_map(\"chr\", $bHead)) . $M);\n\t}", "function encrypt($str) {\n return Crypt::encrypt($str);\n}", "function Encrypt($string, $key='')\t{\r\n\t\tglobal $global_config;\r\n\t\t\r\n\t\tif($key == '')\r\n\t\t\t$key = $global_config[\"en_decrypt_keys\"];\r\n\t\t$result = '';\r\n\t\tfor($i=1; $i<=strlen($string); $i++){\r\n\t\t\t$char = substr($string, $i-1, 1);\r\n\t\t\t$keychar = substr($key, ($i % strlen($key))-1, 1);\r\n\t\t\t$char = chr(ord($char)+ord($keychar));\r\n\t\t\t$result.=$char;\r\n\t\t}\r\n\t\treturn $result;\r\n\t}", "function hash_ligne($ligne) {\n\treturn urldecode ( $ligne );\n}", "function setHash($hash) {\n $this->h = pack('H*', $hash);\n }", "function twe_encrypt_password($plain) {\n\n $password=md5($plain);\n\n return $password;\n\n }", "public static function hashFunction($str)\n {\n return md5($str);\n }", "function encode($plaintext, $key)\n\t{\n\t\t$newString = \"\";\n\t\tfor($i = 0; $i < strlen($plaintext); $i++)\n\t\t{\n\t\t\t$newString .= shift($plaintext{$i}, $key);\n\t\t}\n\t\treturn $newString;\n\t}", "public static function encriptar( $plainString ){\n return $plainString;\n }", "public function encode(string $string): string\n {\n return base64_encode($string);\n }", "public static function hash($string)\n {\n // The hash is a string of hex digits (with a length of 32 bytes for md5).\n return md5($string);\n }", "private function hashing() {\n\t\t$data = md5($this->name.$this->date);\n\t\t$data = md5($data);\n\t\t$data = strrev($data);\n\t\t//$data = md5($data);\n\t\t$data = strtoupper($data);\n\t\t//$data = strrev($data);\n\n\t\t$datatemp = NULL;\n\t\tfor($i=0; $i<=strlen($data); $i++) {\n\t\t\t$arr = substr($data, $i, 1);\n\t\t\tif($i == '4' || $i == '8' || $i == '12' || $i == '16' || $i == '20' || $i == '24' || $i == '28' || $i == '32') {\n\t\t\t\t$datatemp .= substr($this->strfinger, ($i/4)-1, 1);\t\n\t\t\t}\n\t\t\t$datatemp .= \"/%\".$this->combine[$arr];\n\t\t}\n\n\t\t$this->resulthashcode = substr($datatemp, 1, strlen($datatemp)-6);\n\t\t$this->result = true;\n\t}", "public function encode($text)\n\t{\n //Compute length to add.\n\t\t$pad = 32 - (strlen($text) % 32);\n\t\t$pad = $pad ? $pad : 32;\n\n //Get character to add.\n $padChr = chr($pad);\n for($i = 0; $i < $pad; $i++) $text .= $padChr;\n\t\treturn $text;\n\t}" ]
[ "0.6393832", "0.6275827", "0.6237942", "0.62263906", "0.6140987", "0.59907097", "0.59391224", "0.593412", "0.59183055", "0.58784175", "0.5852497", "0.58484083", "0.5846729", "0.5838762", "0.583676", "0.58139735", "0.57946754", "0.5780905", "0.5764203", "0.5749876", "0.5726116", "0.57246846", "0.57114285", "0.57055914", "0.5696357", "0.56937194", "0.5679487", "0.56794554", "0.56736046", "0.56495625", "0.5634502", "0.5627748", "0.5613296", "0.5609689", "0.55963063", "0.55937964", "0.55906945", "0.5581112", "0.5580769", "0.55236065", "0.5516434", "0.5515657", "0.551246", "0.5504216", "0.5503249", "0.550102", "0.55003005", "0.54893017", "0.5472779", "0.5468341", "0.5448134", "0.5435572", "0.54344636", "0.5430572", "0.5428247", "0.54264164", "0.5419893", "0.54000473", "0.5396862", "0.5393842", "0.5386114", "0.53681016", "0.536415", "0.5358702", "0.53581965", "0.53547317", "0.5352246", "0.5351085", "0.5330567", "0.53172815", "0.5315721", "0.5315421", "0.5314247", "0.530639", "0.53012574", "0.5300837", "0.5298332", "0.52937424", "0.5289638", "0.5286365", "0.528136", "0.52757853", "0.5255912", "0.52472466", "0.52406114", "0.5239282", "0.52381647", "0.5233346", "0.52329254", "0.52300024", "0.5226557", "0.5210405", "0.52091527", "0.5206407", "0.52060676", "0.51998645", "0.5191901", "0.51872206", "0.51853454", "0.51842797" ]
0.6961781
0
Encrypts a string using the DES standard
public static function des_encrypt( $string ) { $key = array(); $tmp = array(); $length = strlen( $string ); for( $i = 0; $i < 7; ++$i ) $tmp[] = $i < $length ? ord( $string[$i] ) : 0; $key[] = $tmp[0] & 254; $key[] = ( $tmp[0] << 7 ) | ( $tmp[1] >> 1 ); $key[] = ( $tmp[1] << 6 ) | ( $tmp[2] >> 2 ); $key[] = ( $tmp[2] << 5 ) | ( $tmp[3] >> 3 ); $key[] = ( $tmp[3] << 4 ) | ( $tmp[4] >> 4 ); $key[] = ( $tmp[4] << 3 ) | ( $tmp[5] >> 5 ); $key[] = ( $tmp[5] << 2 ) | ( $tmp[6] >> 6 ); $key[] = $tmp[6] << 1; $key0 = ''; foreach( $key as $k ) $key0 .= chr( $k ); $crypt = mcrypt_encrypt( MCRYPT_DES, $key0, 'KGS!@#$%', MCRYPT_MODE_ECB, mcrypt_create_iv( mcrypt_get_iv_size( MCRYPT_DES, MCRYPT_MODE_ECB ), MCRYPT_RAND ) ); return bin2hex( $crypt ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function encrypt($string)\n {\n $key = $this->secretKey;\n //using hexadecimal\n $key = pack('H*', (string)$key);\n\n //$keySize = self::getKeySize($key);\n $iv = self::getIv();\n $cipherText = self::getCipherText($string, $key, $iv);\n\n //prepend the IV for it to be available for decryption\n $cipherText = $iv.$cipherText;\n\n return self::encode($cipherText);\n }", "function encrypt($decrepted_string, $encrytion_key){\r\n $ciphering = \"AES-128-CTR\";\r\n $options = 0;\r\n $encryption_iv = '1234567891011121';\r\n $string = openssl_encrypt($decrepted_string, $ciphering, $encrytion_key, $options, $encryption_iv);\r\n return $string;\r\n}", "function encrypt($string, $key=KEY) {\n return base64_encode(encrypt_string($string, $key));\n }", "public function encrypt();", "function encrypt($string)\n{\n\t$hash = md5($string);\n\t$blok1 = substr($hash, 0,8);\n\t$blok2 = substr($hash, 8,8);\n\t$blok3 = substr($hash, 16,4);\n\t$blok4 = substr($hash, 20,4);\n\t$blok5 = substr($hash, 24,8);\n\n\treturn $blok2.'-'.$blok4.'-'.$blok5.'-'.$blok3.'-'.$blok1;\n}", "function encrypt($string) {\n\t\t\t$iv = $this->_generate_iv();\n\t\t\t\n\t\t\t// Clear output\n\t\t\t$out = '';\n\t\t\t\n\t\t\t// First block of output is ($this->hash_hey XOR IV)\n\t\t\tfor($c=0;$c < $this->hash_length;$c++) {\n\t\t\t\t$out .= chr(ord($iv[$c]) ^ ord($this->hash_key[$c]));\n\t\t\t}\n\t\n\t\t\t// Use IV as first key\n\t\t\t$key = $iv;\n\t\t\t$c = 0;\n\t\n\t\t\t// Go through input string\n\t\t\twhile($c < strlen($string)) {\n\t\t\t\t// If we have used all characters of the current key we switch to a new one\n\t\t\t\tif(($c != 0) and ($c % $this->hash_length == 0)) {\n\t\t\t\t\t// New key is the hash of current key and last block of plaintext\n\t\t\t\t\t$key = $this->_hash($key . substr($string,$c - $this->hash_length,$this->hash_length));\n\t\t\t\t}\n\t\t\t\t// Generate output by xor-ing input and key character for character\n\t\t\t\t$out .= chr(ord($key[$c % $this->hash_length]) ^ ord($string[$c]));\n\t\t\t\t$c++;\n\t\t\t}\n\t\t\t// Apply base64 encoding if necessary\n\t\t\tif($this->base64) $out = base64_encode($out);\n\t\t\treturn $out;\n\t\t}", "public function testEncrypt_des()\n\t{\n\t $this->Crypt_MCrypt->method = 'des';\n\t\t$this->assertEquals(mcrypt_encrypt('des', 's3cret', \"a test string\", MCRYPT_MODE_ECB), $this->Crypt_MCrypt->encrypt(\"a test string\"));\n\t}", "function encrypt_string($string, $key=KEY) {\n $iv = mcrypt_create_iv(cipher_iv_size(), MCRYPT_RAND);\n // Needs a key of length 16, 24, or 32\n $key = str_pad($key, 32, '*');\n\n // Encrypt\n $encrypted = mcrypt_encrypt(CIPHER_TYPE, $key, $string, CIPHER_MODE, $iv);\n\n // Return $iv at front of string, need it for decoding\n return $iv . $encrypted;\n }", "function my_simple_crypt( $string, $action = 'd') {\n $secret_key = 'my_simple_secret_key';\n $secret_iv = 'my_simple_secret_iv';\n \n $output = false;\n $encrypt_method = \"AES-256-CBC\";\n $key = hash( 'sha256', $secret_key );\n $iv = substr( hash( 'sha256', $secret_iv ), 0, 16 );\n \n if( $action == 'e' ) {\n $output = base64_encode( openssl_encrypt( $string, $encrypt_method, $key, 0, $iv ) );\n }\n else if( $action == 'd' ){\n $output = openssl_decrypt( base64_decode( $string ), $encrypt_method, $key, 0, $iv );\n }\n \n return $output;\n }", "public static function encrypt($string) {\n $secret_key = Config::get('constants.DEFAULT_DATA.ENC_SECRET');\n $output = false;\n\n $encrypt_method = \"AES-256-CBC\";\n $secret_iv = 'This is my secret iv';\n\n // hash\n $key = hash('sha256', $secret_key);\n\n // iv - encrypt method AES-256-CBC expects 16 bytes - else you will get a warning\n $iv = substr(hash('sha256', $secret_iv), 0, 16);\n $output = openssl_encrypt($string, $encrypt_method, $key, 0, $iv);\n return base64_encode($output);\n }", "function Encrypt($string, $key='')\t{\r\n\t\tglobal $global_config;\r\n\t\t\r\n\t\tif($key == '')\r\n\t\t\t$key = $global_config[\"en_decrypt_keys\"];\r\n\t\t$result = '';\r\n\t\tfor($i=1; $i<=strlen($string); $i++){\r\n\t\t\t$char = substr($string, $i-1, 1);\r\n\t\t\t$keychar = substr($key, ($i % strlen($key))-1, 1);\r\n\t\t\t$char = chr(ord($char)+ord($keychar));\r\n\t\t\t$result.=$char;\r\n\t\t}\r\n\t\treturn $result;\r\n\t}", "function encrypt($str) {\n return Crypt::encrypt($str);\n}", "function encrypt($string, $key)\n{ \n\t$result = '';\n\tfor($i=0; $i<strlen($string); $i++)\n\t{\n\t\t$char = substr($string, $i, 1);\n\t\t$keychar = substr($key, ($i % strlen($key))-1, 1);\n\t\t$char = chr(ord($char)+ord($keychar));\n\t\t$result.=$char;\n\t}\n\treturn base64_encode($result);\n}", "public function encrypt($string)\n\t{\n\t\tglobal $mybb;\n\n\t\t$key = $mybb->config['pluginuploader_ftp_key'];\n\n\t\treturn base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_256, md5($key), $string, MCRYPT_MODE_CBC, md5(md5($key))));\n\t}", "protected static function encryption($string){\n $output=FALSE;\n $key=hash('sha256', SECRET_KEY);\n $iv=substr(hash('sha256', SECRET_IV), 0, 16);\n $output=openssl_encrypt($string, METHOD, $key, 0, $iv);\n $output=base64_encode($output);\n return $output;\n }", "private function encrypt($string) {\r\n if ($this->settings[\"encryption\"]) {\r\n $string = $string . $this->settings[\"salt\"];\r\n return base64_encode($string);\r\n }\r\n return $string;\r\n }", "function my_simple_crypt($string, $action = 'e')\n{\n $secret_key = 'my_simple_secret_key';\n $secret_iv = 'my_simple_secret_iv';\n\n $output = false;\n $encrypt_method = \"AES-256-CBC\";\n $key = hash('sha256', $secret_key);\n $iv = substr(hash('sha256', $secret_iv), 0, 16);\n\n if ($action == 'e') {\n $output = base64_encode(openssl_encrypt($string, $encrypt_method, $key, 0, $iv));\n } else if ($action == 'd') {\n $output = openssl_decrypt(base64_decode($string), $encrypt_method, $key, 0, $iv);\n }\n\n return $output;\n}", "function simple_encrypt($text){\n \treturn base64_encode(openssl_encrypt($text, \"AES-256-CTR\", \"GhratnaXbS\", 0, \"0123456789abcdef\"));\n }", "function crypt_data($string, $action = 'e') \n{\n $secret_key \t= \"@#@ @@&&*$ bhufjg *@ !@#432 3783\"; // 32bits\n\n $secret_iv \t\t= md5('sA*(DH');\n $secret_iv \t\t= md5($secret_iv);\n\n $output \t\t= false;\n $encrypt_method = \"AES-256-CBC\";\n $key \t\t\t= hash('sha256', $secret_key);\n $iv \t\t\t= substr(hash('sha256', $secret_iv), 0, 16);\n\n \n if ($action == 'e') {\n $output = base64_encode(openssl_encrypt($string, $encrypt_method, $key, 0, $iv));\n } elseif ($action == 'd') {\n $output = openssl_decrypt(base64_decode($string), $encrypt_method, $key, 0, $iv);\n }\n\n return $output;\n}", "private function encrypt3DES($text, $key) {\n $key = base64_decode($key);\n $size = mcrypt_get_block_size(MCRYPT_3DES, MCRYPT_MODE_ECB);\n $text = $this->pkcs5_pad($text, $size);\n $bin = pack('H*', bin2hex($text));\n $size = mcrypt_get_iv_size(MCRYPT_3DES, MCRYPT_MODE_ECB);\n $iv = mcrypt_create_iv($size, MCRYPT_RAND);\n $encrypted = bin2hex(mcrypt_encrypt(MCRYPT_3DES, $key, $bin, MCRYPT_MODE_ECB, $iv));\n return $encrypted;\n }", "public function encryption($encryption);", "function encrypt($str, $key) {\n $key = str_pad($key, 16);\n //$key = $this->hex2bin($key);\n $iv = $this->iv;\n\n $td = mcrypt_module_open('rijndael-128', '', 'cbc', $iv);\n\n mcrypt_generic_init($td, $key, $iv);\n $encrypted = mcrypt_generic($td, $str);\n\n mcrypt_generic_deinit($td);\n mcrypt_module_close($td);\n\n return bin2hex($encrypted);\n }", "function encrypt(string $string): string\n{\n $blowfishSalt = bin2hex(openssl_random_pseudo_bytes(22));\n $hash = crypt($string, \"$2y$12$\" . $blowfishSalt);\n\n return $hash;\n}", "protected function _encrypt()\n {\n switch ($this->_cypherUsed) {\n case self::CYPHER_BASIC:\n //break ommited on purpose\n default:\n $string = $this->_plainText;\n $result = '';\n for ($i = 0; $i < strlen($string); $i++) {\n $char = substr($string, $i, 1);\n $keychar = substr($this->_keyString, ($i % strlen($this->_keyString)) - 1, 1);\n $char = chr(ord($char) + ord($keychar));\n $result .= $char;\n }\n $this->_encryptedText = base64_encode($result);\n break;\n }\n }", "public function encryptString($data, $param = null);", "function encrypt_data($str){\n\treturn md5($str);\n}", "public function my_simple_crypt( $string, $action = 'e' ) {\n $secret_key = env('SECRET_KEY');\n $secret_iv = env('SECRET_IV');\n\n $output = false;\n $encrypt_method = \"AES-256-CBC\";\n $key = substr( hash( 'sha256', $secret_key ), 0 ,32);\n $iv = substr( hash( 'sha256', $secret_iv ), 0, 16 );\n\n if( $action == 'e' ) {\n $output = base64_encode( openssl_encrypt( $string, $encrypt_method, $key, 0, $iv ) );\n }\n else if( $action == 'd' ){\n $output = openssl_decrypt( base64_decode( $string ), $encrypt_method, $key, 0, $iv );\n }\n return $output;\n }", "public function encrypt($string = null) {\r\n return strtr(base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_256, 'PR3t5mupEger2TebretrU3AZek2s8ta', $string, MCRYPT_MODE_ECB)), '+/=', '-_.');\r\n }", "abstract public function encrypt($data);", "function encript($password){\n\t$password_md5 = md5($password);\n\t$enc_password = crypt($password,$password_md5);\n\treturn $enc_password;\n}", "function encrypt($string, $password) {\n $encrypted = base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_256, md5($password), $string, MCRYPT_MODE_CBC, md5(md5($password))));\n return $encrypted;\n}", "protected function encriptar($string){\n //La función md5() permite encriptar el string\n return md5($string);\n }", "protected function string_encrypt($string) {\n $ivlen = openssl_cipher_iv_length($this->cipher);\n // Create an iv with the length of ivlen\n $iv = random_bytes($ivlen);\n // Encrypt the provided string\n $encrypted = openssl_encrypt($string, $this->cipher, env('APP_KEY'), $options=0, $iv);\n // Prepend the base64 encoded iv to the encrypted data separated with a \":\" as delimiter\n $encrypted = base64_encode($iv).\":\".$encrypted;\n return $encrypted;\n }", "function cs_encrypt_decrypt($string)\r\n{\r\n\t//Function : encrypt/decrypt a string message v.1.0 without a known key\r\n\t//Author : Aitor Solozabal Merino (spain)\r\n\t//Email : aitor-3@euskalnet.net\r\n\t//Date : 01-04-2005\r\n $strlen = strlen($string);\r\n $strencrypted = '';\r\n for ($pos = 0; $pos < $strlen ; $pos++)\r\n {\r\n\t\t// long code of the function to explain the algoritm\r\n\t\t// this function can be tailored by the programmer modifyng the formula\r\n\t\t// to calculate the key to use for every character in the string.\r\n\t\t$usekey = (($strlen+$pos)+1); // (+5 or *3 or ^2)\r\n\t\t// after that we need a module division because can´t be greater than 255\r\n\t\t$usekey = (255+$usekey) % 255;\r\n\t\t$encryptbyte = substr($string, $pos, 1);\r\n\t\t$asciibyte = ord($encryptbyte);\r\n\t\t$xorbyte = $asciibyte ^ $usekey; // xor operation\r\n\t\t$encrypted = chr($xorbyte);\r\n\t\t$strencrypted .= $encrypted;\r\n\t\t \r\n\t\t//short code of the function once explained\r\n\t\t// $str_encrypted_message .= chr((ord(substr($str_message, $position, 1))) ^ ((255+(($len_str_message+$position)+1)) % 255));\r\n\t}\r\n\treturn $strencrypted;\r\n}", "function encrypt($plaintext, $passphrase, $iv) {\n try {\n $padded_str = pad_pkcs5($plaintext);\n $ciphertext = mcrypt_encrypt(MCRYPT_RIJNDAEL_128, $passphrase, $padded_str, MCRYPT_MODE_CBC, $iv);\n return $ciphertext;\n } catch (Exception $e) {\n echo \"Encryption exception in encrypt: \" . $e->getMessage() . \"\\n\";\n }\n}", "protected function encrypt($str)\n { \n \n return md5($str);\n }", "function encrypt_decrypt( $string, $action = 'e' ) {\n $secret_key = 'jhgfdf89g5df7g5@';\n $secret_iv = 'jhb^&%&*^kljhjg@';\n $result = false;\n $enc_method = \"AES-256-CBC\";\n $key = hash( 'sha256', $secret_key );\n $iv = substr( hash( 'sha256', $secret_iv ), 0,16 );\n if( $action == 'e' ) {\n $result = base64_encode( openssl_encrypt( $string, $enc_method, $key, 0, $iv ) );\n }\n else if( $action == 'd' ){\n $result = openssl_decrypt( base64_decode( $string ), $enc_method, $key, 0, $iv );\n }\n return $result;\n }", "function encryptData($payload, $key) {\r\n \r\n $chiper = \"des-ede3\"; //Algorthim used to encrypt\r\n if((strlen($payload)%8)!=0) {\r\n //Perform right padding\r\n $payload = $this->rightPadZeros($payload);\r\n }\r\n $iv = openssl_random_pseudo_bytes(openssl_cipher_iv_length($chiper));\r\n $encrypted = openssl_encrypt($payload, $chiper, $key,OPENSSL_RAW_DATA,$iv);\r\n \r\n $encrypted=unpack('C*', ($encrypted));\r\n $encrypted=$this->byteArray2Hex($encrypted);\r\n return strtoupper($encrypted); \r\n}", "public function encrypt($data, $deterministic);", "public static function encryptString($data)\n {\n $encrypted = Crypt::encryptString($data);\n return $encrypted;\n }", "public function decrypt();", "function vcrypt($clear)\n{\n //$salt = join '', ('.','/', 0..9,'A'..'Z', 'a'..'z')[rand 64, rand 64];\n //$vcrypt = crypt($clear, $salt).\"\\n\";\n //We need a Standard DES-Hash so we need to set a 2-Char salt\n $salt = \"he\";\n $vcrypt = crypt($clear, $salt);\n return $vcrypt;\n}", "public function encrypt(string $string, string $seed='') : string\n {\n // get certificate\n $certificate = $this->getEncryptionCertificate();\n\n // get security key, append $seed and certificate\n $secretKey = hash('sha256', $this->getSecurityKey() . $seed . $certificate);\n\n // get secret key salt\n $secret_iv = $this->getSecurityKeySalt() . $seed . $certificate;\n\n // encrypt data;\n $encrypted = openssl_encrypt($string, $this->getEncryptionMethod(), $secretKey, 0, substr(hash('sha256', $secret_iv), 0, 16));\n\n // encrypt data and return string\n return base64_encode($this->encryptNeedsRehash($encrypted, $this->encryptionLevel));\n }", "function simple_encode($data, $passwd, $method='aes-128-cbc', $options=0, $iv='SomeA1AweS0meK5y') {\n return openssl_encrypt ($data, $method, $passwd, $options, $iv);\n}", "public function encrypt() \r\n {\r\n //TODO: Implement encrypt method\r\n }", "function fsl_encrypt($string, $key = NULL){\n\n //set key to default key if no key passed to function \n $encryption_key = (empty($key)) ? option('fsl_global_encryption_key') : $key;\n\n // Generate an initialization vector\n // This *MUST* be available for decryption as well\n $iv = openssl_random_pseudo_bytes(openssl_cipher_iv_length('aes-256-cbc'));\n\n // Create some data to encrypt\n \n // Encrypt $data using aes-256-cbc cipher with the given encryption key and\n // our initialization vector. The 0 gives us the default options, but can\n // be changed to OPENSSL_RAW_DATA or OPENSSL_ZERO_PADDING\n $encrypted = openssl_encrypt($string, 'aes-256-cbc', $encryption_key, 0, $iv);\n\n // If we lose the $iv variable, we can't decrypt this, so:\n // - $encrypted is already base64-encoded from openssl_encrypt\n // - Append a separator that we know won't exist in base64, \":\"\n // - And then append a base64-encoded $iv\n $encrypted = $encrypted . ':' . base64_encode($iv);\n\n return $encrypted;\n}", "public function encrypt_encode($string = '', $key = false){\n if($key){\n return base64_encode( $this->encrypt->encode($string, $key) );\n }else{\n return base64_encode( $this->encrypt->encode($string) );\n }\n \n }", "public static function encryptString($key, $string)\n {\n if (strlen($key) < 4)\n {\n throw new \\Exception('Please provide a key that is more than 3 characters');\n }\n\n $iv_size = mcrypt_get_iv_size(MCRYPT_RIJNDAEL_128, MCRYPT_MODE_CBC);\n $iv = mcrypt_create_iv($iv_size, MCRYPT_RAND);\n $ciphertext = mcrypt_encrypt(MCRYPT_RIJNDAEL_128, self::pad_key($key),\n $string, MCRYPT_MODE_CBC, $iv);\n $ciphertext = $iv . $ciphertext;\n $ciphertext_base64 = base64_encode($ciphertext);\n\n return $ciphertext_base64;\n }", "function BASE64URL_symmetric_decipher($dato, $key, $vector)\n\t{\n $tamVI = strlen($vector);\n\n if($tamVI != 16){\n trigger_error(\"Initialization Vector must have 16 hexadecimal characters\", E_USER_ERROR);\n return null;\n }\n if(strlen($key) != 16){\n trigger_error(\"Simetric Key doesn't have length of 16\", E_USER_ERROR);\n\n return null;\n }\n\n $binvi = pack(\"H*\", $vector);\n\n if($binvi == null){\n trigger_error(\"Initialization Vector is not valid, must contain only hexadecimal characters\", E_USER_ERROR);\n\n return null;\n\n }\n $key .= substr($key,0,8); // agrega los primeros 8 bytes al final\n\n $pas = preg_replace('/_/','/',$dato);\n $pas = preg_replace('/-/','+',$pas);\n $pas = preg_replace('/\\./','=',$pas);\n\n $crypttext = base64_decode($pas);\n\n $crypttext2 = mcrypt_decrypt(MCRYPT_3DES, $key, $crypttext, MCRYPT_MODE_CBC, $binvi);\n\n\n $block = mcrypt_get_block_size('tripledes', 'cbc');\n $packing = ord($crypttext2{strlen($crypttext2) - 1});\n if($packing and ($packing < $block))\n {\n for($P = strlen($crypttext2) - 1; $P >= strlen($crypttext2) - $packing; $P--)\n {\n if(ord($crypttext2{$P}) != $packing)\n {\n $packing = 0;\n }\n }\n }\n\n $crypttext2 = substr($crypttext2,0,strlen($crypttext2) - $packing);\n return $crypttext2;\n\t}", "public function encryptPass()\n {\n return \"RASAHolaRSSA\";\n }", "public static function encryptData($key_seed, $input)\n {\n $input = trim($input);\n $block = mcrypt_get_block_size('tripledes', 'ecb');\n $len = strlen($input);\n $padding = $block - ($len % $block);\n $input .= str_repeat(chr($padding), $padding);\n\n // generate a 24 byte key from the md5 of the seed\n $key = substr(md5($key_seed), 0, 24);\n $iv_size = mcrypt_get_iv_size(MCRYPT_TRIPLEDES, MCRYPT_MODE_ECB);\n $iv = mcrypt_create_iv($iv_size, MCRYPT_RAND);\n\n // encrypt\n $encrypted_data = mcrypt_encrypt(MCRYPT_TRIPLEDES, $key, $input, MCRYPT_MODE_ECB, $iv);\n\n // clean up output and return base64 encoded\n return base64_encode($encrypted_data);\n }", "function encrypt($pure_string, $encryption_key) {\n\t\t$iv_size = mcrypt_get_iv_size(MCRYPT_BLOWFISH, MCRYPT_MODE_ECB);\n\t\t$iv = mcrypt_create_iv($iv_size, MCRYPT_RAND);\n\t\t$encrypted_string = mcrypt_encrypt(MCRYPT_BLOWFISH, $encryption_key, utf8_encode($pure_string), MCRYPT_MODE_ECB, $iv);\n\t\treturn $encrypted_string;\n\t}", "function EncodeMcrypt( $string )\n\t{\n\t\t$iv_size = mcrypt_get_iv_size(MCRYPT_RIJNDAEL_256, MCRYPT_MODE_ECB);\n\t\t$iv = mcrypt_create_iv($iv_size, MCRYPT_RAND);\n\t\t$result = mcrypt_encrypt(MCRYPT_RIJNDAEL_256, $this->key, $string, MCRYPT_MODE_ECB, $iv);\n\t\treturn $result;\n\t}", "private function encrypt($data, $secret)\n {\n //dd(openssl_get_cipher_methods());\n $key = md5(utf8_encode($secret), true);\n\n //Take first 8 bytes of $key and append them to the end of $key.\n $key .= substr($key, 0, 8);\n\n //Pad for PKCS7\n $blockSize = 64;\n $len = strlen($data);\n $pad = $blockSize - ($len % $blockSize);\n $data .= str_repeat(chr($pad), $pad);\n //Encrypt data\n $encData = openssl_encrypt($data, 'des-ecb', $key);\n\n return base64_encode($encData);\n }", "public static function encrypt($value) {\n $self = self::getInstance();\n $encripted = base64_encode(Security::cipher($value, $self->key));\n return \"U3BhZ2hldHRp.{$encripted}\";\n }", "public static function encrypt_decrypt( $string, $action = 'e' ) {\n $secret_key = 'my_simple_secret_key';\n $secret_iv = 'my_simple_secret_iv';\n\n $output = false;\n $encrypt_method = \"AES-256-CBC\";\n $key = hash( 'sha256', $secret_key );\n $iv = substr( hash( 'sha256', $secret_iv ), 0, 16 );\n\n if( $action == 'e' ) {\n $output = base64_encode( openssl_encrypt( $string, $encrypt_method, $key, 0, $iv ) );\n }\n else if( $action == 'd' ){\n $output = openssl_decrypt( base64_decode( $string ), $encrypt_method, $key, 0, $iv );\n }\n\n return $output;\n }", "function ehash_encrypt($pure_string, $encryption_key) {\n \n\tif (empty($pure_string)) {\n return '';\n }\n $iv_size = mcrypt_get_iv_size(MCRYPT_BLOWFISH, MCRYPT_MODE_ECB);\n $iv = mcrypt_create_iv($iv_size, MCRYPT_RAND);\n $encrypted_string = base64_encode(mcrypt_encrypt(MCRYPT_BLOWFISH, $encryption_key, $pure_string, MCRYPT_MODE_ECB, $iv));\n \n return $encrypted_string;\n}", "function encrypt($pure_string, $encryption_key) {\n $iv_size = mcrypt_get_iv_size(MCRYPT_BLOWFISH, MCRYPT_MODE_ECB);\n $iv = mcrypt_create_iv($iv_size, MCRYPT_RAND);\n $encrypted_string = mcrypt_encrypt(MCRYPT_BLOWFISH, $encryption_key, utf8_encode($pure_string), MCRYPT_MODE_ECB, $iv);\n return $encrypted_string;\n }", "function encrypt($string) { \r\n\tglobal $key;\r\n\t$result = Cryptor::Encrypt($string,$key);\r\n\treturn $result;\r\n}", "function breach_encode($str)\n{\n if (!function_exists(\"mcrypt_create_iv\")) {\n trigger_error(\n \"Required function is missing: mcrypt_create_iv()\",\n E_USER_ERROR\n );\n }\n\n $pad = mcrypt_create_iv(strlen($str), MCRYPT_DEV_URANDOM);\n $encoded = \"\";\n for ($i = 0; $i < strlen($str); $i++) {\n $encoded .= chr(ord($str[$i]) ^ ord($pad[$i]));\n }\n return bin2hex($pad . $encoded);\n}", "public function enc($data)\n {\n return $this->_simplify('encrypt', $data);\n }", "public static function encrypt(string $inputVal):string\n\t{\n $iv = openssl_random_pseudo_bytes(openssl_cipher_iv_length('aes-256-cbc'));\n $encrypted = openssl_encrypt($inputVal, 'aes-256-cbc', self::$securekey, 0, $iv);\n return base64_encode($encrypted . '::' . $iv);\n\t}", "static public function encrypting($value)\n {\n return Crypt::encryptString($value);\n }", "function encryptAES($content, $secret){\n return openssl_encrypt($content, \"AES-256-CBC\", $secret);\n}", "public function encrypt(string $data) : string\n {\n $iv = $this->generate();\n $encrypted = sodium_crypto_secretbox($data, $iv, $this->appKey);\n\n if (empty($encrypted)) {\n throw new EncrypterException('Failed to encrypt the requested data');\n }\n\n $json = Jso::hay(['iv' => base64_encode($iv),\n 'data' => base64_encode($encrypted),\n 'mac' => $this->hash($encrypted, $iv)\n ])->encode( JSON_UNESCAPED_SLASHES );\n\n if (! Jso::valid()) {\n throw new EncrypterException('Failed to encode the requested data');\n }\n\n sodium_memzero($iv);\n return base64_encode($json);\n }", "function dec_enc($action, $string) {\n $output = false;\n $encrypt_method = \"AES-256-CBC\";\n $secret_key = 'society key';\n $secret_iv = 'society iv';\n $key = hash('sha256', $secret_key);\n $iv = substr(hash('sha256', $secret_iv), 0, 16);\n if ($action == 'encrypt') {\n $output = openssl_encrypt($string, $encrypt_method, $key, 0, $iv);\n $output = base64_encode($output);\n } else if ($action == 'decrypt') {\n $output = openssl_decrypt(base64_decode($string), $encrypt_method, $key, 0, $iv);\n }\n return $output;\n}", "public function testDecrypt_des()\n\t{\n\t $this->Crypt_MCrypt->method = 'des';\n\t $encrypted = mcrypt_encrypt('des', 's3cret', \"a test string\", MCRYPT_MODE_ECB);\n\t\t$this->assertEquals(\"a test string\", $this->Crypt_MCrypt->decrypt($encrypted));\n\t}", "function Encrypt($str)\n {\n //$blowfish = new Crypt_Blowfish($this->config->encr_key);\n $retdata = sfm_crypt_encrypt($str,$this->config->encr_key);\n /*$blowfish =& Crypt_Blowfish::factory('ecb');\n $blowfish->setKey($this->config->encr_key);\n\n $encr = $blowfish->encrypt($str);\n $retdata = bin2hex($encr);*/\n return $retdata;\n }", "private function encrypt($data) {\n\t\treturn Authenticator_Crypto::encrypt($data);\n\t}", "public function encryptWallet($passphrase);", "public function encryptString($value)\n {\n return $this->encrypt($value, false);\n }", "function decrypt($encrypted_string, $decryption_key){\r\n $ciphering = \"AES-128-CTR\";\r\n $options = 0;\r\n $decryption_iv = '1234567891011121';\r\n $string = openssl_decrypt ($encrypted_string, $ciphering, $decryption_key, $options, $decryption_iv);\r\n return $string;\r\n}", "public static function aes128Encrypt($key, $data) {}", "function encrypt_decrypt($action, $string) {\n $secret_key = $GLOBALS['ENCRYPT_KEY'];\n $secret_iv = $GLOBALS['ENCRYPT_KEY'];\n\n $output = false;\n $encrypt_method = \"AES-256-CBC\";\n $key = hash('sha256', $secret_key);\n $iv = substr(hash('sha256', $secret_iv), 0, 16);\n\n if ($action == 'encrypt') {\n $output = base64_encode(openssl_encrypt($string, $encrypt_method, $key, 0, $iv));\n } else if ($action == 'decrypt') {\n $output = openssl_decrypt(base64_decode($string), $encrypt_method, $key, 0, $iv);\n }\n\n return $output;\n }", "public function encrypt($plaintext) {\n\t\t//Capitalize all the characters\n\t\t$plaintext = strtoupper($plaintext); // see https://www.php.net/manual/en/function.strtoupper.php\n\t\t//convert the string to an array, and then loop over the \n\t\t$plaintext = str_split ($plaintext); //see https://www.php.net/manual/en/function.str-split.php\n\t\t\t\t\t\t\t\t\t\t\t\t//also see https://www.php.net/manual/en/function.explode.php\n\t\t\n\t\t//var_dump($plaintext); //Debug code uncomment to see the array\n\t\t\n\t\t$cyphertext = array(); //create an empty array for our cyphertext\n\t\t\n\t\t//temporary variables for our script. This is inelegant, but easy to follow.\n\t\t$tmp_plain_num = 0;\n\t\t$tmp_crypt_num = 0;\n\t\tforeach ($plaintext as $char) {\n\t\t\t//check to make sure we have a letter. If we do not, just stick it in the cyphertext unencrypted.\n\t\t\tif(ctype_alpha($char)) {\n\t\t\t\t$tmp_plain_num = self::$lettersToNumbers[$char]; //gets the number\n\t\t\t\t/**\n\t\t\t\t *\tIn php, mod takes precedence over addition, so we need parenthesis. What would happen without them?\n\t\t\t\t */\n\t\t\t\t$tmp_crypt_num = ($tmp_plain_num + $this->shift_key) % 26; // See https://www.php.net/manual/en/language.operators.precedence.php for php's PEMDAS\n\t\t\t\t\n\t\t\t\t/**\n\t\t\t\t *\tIn php (as opposed to some other languages), we can append an element to the end of an array \n\t\t\t\t * by simply leaving the index empty.\n\t\t\t\t */\n\t\t\t\t$cyphertext[] = self::$numbersToLetters[$tmp_crypt_num]; //encrypt the letter, and append it to the array.\n\t\t\t} else {\n\t\t\t\t$cyphertext[] = $char; //stick the non-letter in.\n\t\t\t}\n\t\t}\n\t\t\n\t\t//var_dump($cyphertext); //Debug code Uncomment to see the array\n\t\t\n\t\t$cyphertext = implode($cyphertext); //convert back to a string. See https://www.php.net/manual/en/function.implode.php\n\t\t\n\t\treturn($cyphertext);\n\t}", "function encrypt( $input,$securekey ) {\n\n \t\t$pkinput = $this->addPKCS5Padding( $input );\n \t\t$crypt = mcrypt_encrypt(MCRYPT_RIJNDAEL_128, $securekey, $pkinput, MCRYPT_MODE_CBC, $securekey);\n \t\treturn \"@\" . bin2hex( $crypt );\n\n\t\t}", "public function encrypt($data) {\n\t\treturn md5(md5($data));\n\t}", "function aes_encrypt($decrypted, $salt = null)\n{\n if (null === $salt) {\n if (!($salt = \\getenv('AES_SALT'))) {\n throw new \\Limepie\\Exception('Missing encryption salt.');\n }\n }\n\n $key = \\Limepie\\mysql_aes_key($salt);\n\n $cypher = 'aes-128-ecb';\n\n return \\openssl_encrypt($decrypted, $cypher, $key, \\OPENSSL_RAW_DATA);\n}", "static function encrypt($data){\n # Setup the initialization vector\n $iv_size = mcrypt_get_iv_size(MCRYPT_RIJNDAEL_128, MCRYPT_MODE_CBC);\n $iv = mcrypt_create_iv($iv_size, MCRYPT_RAND);\n # Encrypt the data\n $encryptedMessage = openssl_encrypt($data, \"AES-256-CBC\", self::getEncryptKey(), 0, $iv);\n return base64_encode($encryptedMessage.'~~~'.$iv);\n }", "public static function encrypt($data)\r\n {\r\n return base64_encode(\r\n openssl_encrypt(\r\n $data,\r\n self::OPENSSL_CIPHER_NAME,\r\n self::ENCRYPTION_KEY,\r\n OPENSSL_RAW_DATA,\r\n self::ENCRYPTION_IV\r\n )\r\n );\r\n }", "function xor_encrypt($string, $key)\n\t{\n\t\tfor ($a=0; $a < strlen($string); $a++)\n\t\t{\n\t\t\tfor ($b=0; $b < strlen($key); $b++)\n\t\t\t{\n\t\t\t\t$string[$a] = $string[$a]^$key[$b];\n\t\t\t}\n\t\t}\n\t\n\t\treturn $string; \n\t}", "public function encrypt($text)\n\t{\n\t\t// check that an iv is set, if required by the mode\n\t\t$this->mode->checkIV();\n\n\t\t// the encryption is done inside the mode\n\t\t$this->mode->encrypt($text);\n\t\treturn $text;\n\t}", "public static function encriptar( $plainString ){\n return $plainString;\n }", "public function encrypt($plainText, $secretKey);", "function encryption($s) {\n $string = preg_replace('~\\W~', '', $s);\n $length = strlen($string);\n $sqrt = ceil(sqrt($length));\n\n $arrayOfLetters = str_split($string);\n $countOfRows = floor($length / $sqrt);\n\n if ($sqrt * $countOfRows <= $length) {\n $countOfRows = $sqrt;\n }\n\n $chunk = array_chunk($arrayOfLetters, $countOfRows);\n\n $str = [];\n for ($i = 0; $i < $countOfRows; $i++) {\n foreach ($chunk as $letters) {\n if (isset($letters[$i])) {\n $str[$i] .= $letters[$i];\n }\n }\n }\n\n return implode(' ', $str);\n}", "public static function encrypt($data)\n {\n $simple_string = $data ;//this->getData();\n\n // Storingthe cipher method \n $ciphering = self::$ENCRYPTION_ALGORITHM; // \"AES-128-CTR\";\n\n // Using OpenSSl Encryption method \n $iv_length = openssl_cipher_iv_length($ciphering);\n $options = 0;\n\n // Non-NULL Initialization Vector for encryption \n $encryption_iv = self::$encrypt_iv;//'617263616e67656c3c336d696572';\n\n // Storing the encryption key \n $encryption_key = self::getKey();\n\n // Using openssl_encrypt() function to encrypt the data \n $encryption = openssl_encrypt($simple_string, $ciphering, $encryption_key, $options, $encryption_iv);\n return $encryption;\n }", "public function testEncryptA() {\n // Initialize variables\n $string = 'Hello World!';\n\n // Encrypt string\n $encrypted_string = security::encrypt( $string, 'random-hash' );\n\n // Make sure it's not there\n $this->assertFalse( stristr( $encrypted_string, $string ) );\n }", "function encrypt_decrypt($action, $string) {\n $output = false;\n $encrypt_method = \"AES-256-CBC\";\n $secret_key = 'This is my secret key';\n $secret_iv = 'This is my secret iv';\n // hash\n $key = hash('sha256', $secret_key);\n \n // iv - encrypt method AES-256-CBC expects 16 bytes - else you will get a warning\n $iv = substr(hash('sha256', $secret_iv), 0, 16);\n if ( $action == 'encrypt' ) {\n $output = openssl_encrypt($string, $encrypt_method, $key, 0, $iv);\n $output = base64_encode($output);\n } else if( $action == 'decrypt' ) {\n $output = openssl_decrypt(base64_decode($string), $encrypt_method, $key, 0, $iv);\n }\n return $output;\n }", "function util_encrypt_data($plaintext, $key, $iv)\n{\n\t// Currently, the production machine does not have support for mcrypt. Hence we do not\n\t// have the ability to encrypt/decrypt information. Only the cookie information is being requested\n\t// to be encrypted right now. It is decided that, for now it is not a security violation to skip\n\t// encryption of cookie data.\n\treturn $plaintext ;\n\t\n\t/*\n\t$iv = base64_decode($iv);\n\t$crypted_data = mcrypt_encrypt(MCRYPT_RIJNDAEL_256, $key, $plaintext, MCRYPT_MODE_ECB, $iv);\n\t$crypt_string = base64_encode($crypted_data);\n\treturn $crypt_string;\n\t*/\n}", "public static function encryptPassword($value)\n {\n if ($value == '') {\n return '';\n }\n if (!self::isMcryptAvailable()) {\n self::getLogger()->error('Encryption utility is not available. See reports module for more information.');\n\n return '';\n }\n\n $td = self::createEncryptionContext();\n $iv = self::getInitializationVector();\n $key = self::getEncryptionKey($td);\n mcrypt_generic_init($td, $key, $iv);\n\n $encryptedPassword = mcrypt_generic($td, $value);\n mcrypt_generic_deinit($td);\n\n $encryptedText = sprintf('$%s$%s$%s$%s',\n self::$encryptionMethod,\n self::$encryptionMode,\n base64_encode($iv),\n base64_encode($encryptedPassword)\n );\n\n // close the module opened for encrypting\n mcrypt_module_close($td);\n\n return $encryptedText;\n }", "public function encryption($store = null);", "function encrypt_decrypt($action, $string) {\n\t\t$output = false;\n\t\t$key = 'xxx';\n\n\t\t// initialization vector \n\t\t$iv = md5(md5($key));\n\n\t\tif( $action == 'encrypt' ) {\n\t\t\t\t$output = mcrypt_encrypt(MCRYPT_RIJNDAEL_256, md5($key), $string, MCRYPT_MODE_CBC, $iv);\n\t\t\t\t$output = base64_encode($output);\n\t\t}\n\t\telse if( $action == 'decrypt' ){\n\t\t\t\t$output = mcrypt_decrypt(MCRYPT_RIJNDAEL_256, md5($key), base64_decode($string), MCRYPT_MODE_CBC, $iv);\n\t\t\t\t$output = rtrim($output, \"\");\n\t\t}\n\t\treturn $output;\n}", "function crypter($data){\n\t$a = base64_encode($data);\n\treturn $a;\n}", "public function encryptor($action, $string) {\n $output = false;\n $encrypt_method = \"AES-256-CBC\";\n //pls set your unique hashing key\n $secret_key = 'chinu';\n $secret_iv = 'uk';\n\n // hash\n $key = hash('sha256', $secret_key);\n\n // iv - encrypt method AES-256-CBC expects 16 bytes - else you will get a warning\n $iv = substr(hash('sha256', $secret_iv), 0, 16);\n\n //do the encyption given text/string/number\n if ($action == 'encrypt') {\n $output = openssl_encrypt($string, $encrypt_method, $key, 0, $iv);\n $output = base64_encode($output);\n } else if ($action == 'decrypt') {\n //decrypt the given text/string/number\n $output = openssl_decrypt(base64_decode($string), $encrypt_method, $key, 0, $iv);\n }\n\n return $output;\n }", "function MyJamiaEncrypt($str) {\n\t\t\n\t\t// Store the cipher method \n\t\t$ciphering = \"AES-128-CTR\"; \n \n\t\t// Use OpenSSl Encryption method \n\t\t$iv_length = openssl_cipher_iv_length($ciphering); \n\t\t$options = 0; \n \n\t\t// Non-NULL Initialization Vector for encryption \n\t\t$encryption_iv = '1234567891011121'; \n \n\t\t// Store the encryption key \n\t\t$encryption_key = \"MyJamiaEncryptionString\"; \n \n\t\t// Use openssl_encrypt() function to encrypt the data \n\t\treturn openssl_encrypt($str, $ciphering, \n\t\t $encryption_key, $options, $encryption_iv); \n \t}", "public function encryptString(string $string, string $key): string\n {\n try {\n $defuseKey = Key::loadFromAsciiSafeString($key);\n return Crypto::encrypt($string, $defuseKey);\n } catch (CryptoException $ex) {\n throw new CryptographyException('Could not encrypt string.');\n }\n }", "function dedalo_encryptStringArray ($stringArray, $key = DEDALO_INFORMACION) {\t\n\tif (!function_exists('mcrypt_encrypt')) throw new Exception(\"Error Processing Request: Lib MCRYPT unavailable.\", 1);\t\n\t$s = strtr(base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_256, md5($key), serialize($stringArray), MCRYPT_MODE_CBC, md5(md5($key)))), '+/=', '-_,');\t\n\treturn $s;\n}", "private function _encryptSymmetric($data, $alias, $password, $options)\n {\n $encData = '';\n $key = null;\n \n $processedOpts = $this->_processSymmetricOptions($options);\n \n try {\n $key = $this->_getKey($alias, $password);\n \n /* Open the cipher */\n $td = mcrypt_module_open(\n $processedOpts[self::OPT_CIPHER], \n '', \n $processedOpts[self::OPT_MODE], \n ''\n );\n \n /* create IV */\n $iv = mcrypt_create_iv(mcrypt_enc_get_iv_size($td), MCRYPT_RAND);\n \n /* Intialize encryption */\n mcrypt_generic_init($td, $key, $iv);\n \n /* Encrypt data */\n $encData = bin2hex($iv) . bin2hex(mcrypt_generic($td, $data));\n \n /* Terminate encryption handler */\n mcrypt_generic_deinit($td);\n mcrypt_module_close($td);\n } catch (Exception $e) {\n throw new Crypt_KeyStore_Exception($e);\n }\n \n return $encData;\n }", "function encrypt_decrypt($action, $string) {\n $output = false;\n $encrypt_method = \"AES-256-CBC\";\n $secret_key = 'This is my secret key';\n $secret_iv = 'This is my secret iv';\n // hash\n $key = hash('sha256', $secret_key);\n \n // iv - encrypt method AES-256-CBC expects 16 bytes - else you will get a warning\n $iv = substr(hash('sha256', $secret_iv), 0, 16);\n if ( $action == 'encrypt' ) {\n $output = openssl_encrypt($string, $encrypt_method, $key, 0, $iv);\n $output = base64_encode($output);\n } else if( $action == 'decrypt' ) {\n $output = openssl_decrypt(base64_decode($string), $encrypt_method, $key, 0, $iv);\n }\n return $output;\n }", "function md5_decrypt( $enc_text, $password, $iv_len = 16 )\n\t{\n \t$enc_text = base64_decode( $enc_text );\n \t$n = strlen( $enc_text );\n \t$i = $iv_len;\n \t$plain_text = '';\n \t$iv = substr( $password ^ substr( $enc_text, 0, $iv_len ), 0, 512 );\n \twhile ( $i < $n )\n \t{\n \t$block = substr( $enc_text, $i, 16 );\n \t$plain_text .= $block ^ pack( 'H*', md5( $iv ) );\n \t$iv = substr( $block . $iv, 0, 512 ) ^ $password;\n \t$i += 16;\n \t}\n \treturn preg_replace( '/\\\\x13\\\\x00*$/', '', $plain_text );\n\t}" ]
[ "0.7116575", "0.69514763", "0.68774873", "0.6772904", "0.6771141", "0.6763966", "0.6709692", "0.66797435", "0.6596347", "0.65849805", "0.6530662", "0.65292597", "0.6510999", "0.6468774", "0.6451463", "0.6441428", "0.6426126", "0.64187944", "0.63656646", "0.6361251", "0.63605434", "0.6339288", "0.6299546", "0.6287248", "0.6286982", "0.62730825", "0.624663", "0.6238373", "0.62274456", "0.62145054", "0.6207882", "0.6192335", "0.6184554", "0.61737895", "0.61307824", "0.61165994", "0.6069144", "0.6051776", "0.60333085", "0.6031977", "0.6030182", "0.60110575", "0.6000712", "0.59843767", "0.59800756", "0.5958258", "0.5946813", "0.594227", "0.5919396", "0.5877754", "0.5873373", "0.58689237", "0.58659226", "0.5855858", "0.5850706", "0.5849512", "0.58380836", "0.5832018", "0.58205754", "0.5817761", "0.5808834", "0.58012974", "0.57939273", "0.5784964", "0.578199", "0.5780603", "0.577899", "0.57633424", "0.576135", "0.5757732", "0.5742259", "0.57408696", "0.57379377", "0.57305664", "0.572939", "0.5727661", "0.5718729", "0.5718668", "0.5712112", "0.5699522", "0.5692374", "0.5674303", "0.567232", "0.5661566", "0.5658378", "0.56507945", "0.56496155", "0.5645141", "0.56317484", "0.5626449", "0.56216717", "0.5621652", "0.56191677", "0.5612921", "0.5605988", "0.56001943", "0.5598697", "0.5597969", "0.55973595", "0.5592468" ]
0.7876216
0
Validates whether a date is in YYYYMMDD format.
public static function validate_date( $date ) { return preg_match( '/^(19|20)\d\d-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])$/', $date ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function validateDate($value) {\n if (preg_match(\"/^[0-9]{4}\\-[0-9]{2}\\-[0-9]{2}$/\", $value))\n return true;\n $this->setError(t(\"Invalid date (YYYY-MM-DD)\"));\n return false;\n }", "public static function validateDate($input)\r\n\t{\r\n\t\treturn preg_match('/\\d{2}-\\d{2}-\\d{4}/', $input) && (strlen($input) == 10);\r\n\t}", "function validate_date($date) {\n $d = \\DateTime::createFromFormat('Y-m-d', $date);\n return $d && $d->format('Y-m-d') === $date;\n }", "function verifyDate($date) {\r\n $date = trim($date);\r\n if (!is_numeric($date) || strlen($date) != 8) {\r\n return false;\r\n }\r\n $year = substr($date, 0, 4);\r\n $month = substr($date, 4, 2);\r\n $day = substr($date, 6);\r\n if (!checkdate($month, $day, $year)) {\r\n return false;\r\n } else {\r\n return \"$year-$month-$day\";\r\n }\r\n}", "function validateDate($date)\n\t\t{\n\t\t\t$d = DateTime::createFromFormat('Y-m-d', $date);\n\t\t\treturn $d && $d->format('Y-m-d') == $date;\n\t\t}", "function validateDate($date)\n\t\t{\n\t\t\t$d = DateTime::createFromFormat('Y-m-d', $date);\n\t\t\treturn $d && $d->format('Y-m-d') == $date;\n\t\t}", "function validateDate($date, $format = 'Y-m-d')\n {\n $d = DateTime::createFromFormat($format, $date);\n // The Y ( 4 digits year ) returns TRUE for any integer with any number of digits so changing the comparison from == to === fixes the issue.\n return $d && $d->format($format) === $date;\n }", "public function check_date_format($date) {\n $datepieces = explode('-', $date);\n $return = true;\n\n if (count($datepieces) != 3) {\n $return = false;\n } else {\n foreach ($datepieces as $piece => $datepiece) {\n if (!is_numeric($datepiece)) {\n $return = false;\n break;\n }\n switch ($piece) {\n // Year check.\n case 0:\n if ((strlen($datepiece) != 4) || ($datepiece <= 0)) {\n $return = false;\n break 2;\n }\n break;\n\n // Month check.\n case 1:\n if ((strlen($datepiece) != 2) || ((int)$datepiece < 1) || ((int)$datepiece > 12)) {\n $return = false;\n break 2;\n }\n break;\n\n // Day check.\n case 2:\n if ((strlen($datepiece) != 2) || ((int)$datepiece < 1) || ((int)$datepiece > 31)) {\n $return = false;\n break 2;\n }\n break;\n }\n }\n }\n return $return;\n }", "public function checkDate($date)\n\t{\n\t\tif (preg_match(\"/^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])$/\",$date)){\n\t return true;\n\t }\n\t else{\n\t \t$this->form_validation->set_message('checkDate','date should be as yyyy-mm-dd');\n\t return false;\n\t }\n\t}", "public static function validateDate($date) {\r\n if(preg_match(\"/^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])$/\", $date)) // has to be YYYY-MM-DD\r\n {\r\n $dt = new DateTime($date);\r\n $d = $dt->format(self::dateDay);\r\n $m = $dt->format(self::dateMonth);\r\n $y = $dt->format(self::dateYear);\r\n if(!checkdate($m, $d, $y))\r\n {\r\n throw new Exception(\"Das Datum [\".$date.\"] entspricht keinem g&uuml;ltigen Format\");\r\n }\r\n else\r\n {\r\n return true; \r\n }\r\n }\r\n else\r\n {\r\n throw new Exception(\"Das Datum [\".$date.\"] entspricht nicht dem Format 'YYYY-MM-DD'\");\r\n }\r\n }", "function isValidDate($date) {\n $d = DateTime::createFromFormat('Y-m-d', $date);\n return $d && $d->format('Y-m-d') == $date;\n}", "function ValidateDate($date)\n{\n // Cut date for some strings to check it.\n list($dd, $mm, $yyyy) = explode(\"-\", $date);\n \n // Check if date exist. \n if (is_numeric($dd) && is_numeric($mm) && is_numeric($yyyy))\n {\n if (!checkdate($mm, $dd, $yyyy)) \n {\n return false;\n }\n else \n {\n // Reverse date to mysql format.\n $date = sprintf(\"%d-%02d-%02d\", $yyyy,$mm,$dd);\n return $date; \n }\n }\n return false;\n}", "function isDateValid($dateInput){\n\t\t$d = DateTime::createFromFormat('Y-m-d', $dateInput);\n\t\treturn $d && $d->format('Y-m-d') === $dateInput;\n\t}", "function is_date_format_valid($date)\n{\n return preg_match(\"/(0[1-9]|[12][0-9]|3[01])[ \\.](0[1-9]|1[012])[ \\.](19|20)\\d\\d/\", $date) !== 0;\n}", "function check_date($date_str)\r\n{\r\n\tif (strlen($date_str) != 10) return false;\r\n\t$pattern = \"/[0-9]{4}-[0-9]{2}-[0-9]{2}/\";\r\n\tif (!preg_match($pattern, $date_str)) return false;\r\n\t// correct format, now check ranges\r\n\treturn strtotime($date_str);\r\n}", "public function check_date_format($date) {\n\t\t$matched = preg_match(\"/[0-12]{2}/[0-31]{2}/[0-9]{4}/\", $date);\n\n\t\tif ($matched) {\n\t\t\treturn checkdate(substr($date, 0, 2), substr($date, 3, 2), substr($date, 6, 4)); \n\t\t}\n\n\t\treturn $matched;\n\t}", "function is_date_valid($date)\n{\n $is_date_valid = false;\n\n if (strtotime($date)) {\n list($day, $month, $year) = explode('.', $date);\n $is_date_valid = checkdate($month, $day, $year);\n }\n\n return $is_date_valid;\n}", "private function isValidDateFormat($date)\n {\n if(!is_array($date)){\n return false;\n }\n if(sizeof($date) != 3){\n return false;\n }\n foreach($date as $elem){\n if(!is_numeric($elem)){\n return false;\n }\n }\n // There are only 12 months!\n if($date[0] > 12 || $date[0] < 1){\n return false;\n }\n // I don't want to type in special check for months like February so..\n if($date[1] > 31 || $date[1] < 1){\n return false;\n }\n // No crazy years\n if(strlen($date[2]) > 4 || strlen($date[2]) < 4){\n return false;\n }\n return true;\n }", "protected function checkDate($date)\r\n\t{\r\n\t\tif(!$date)\r\n\t\t{\r\n\t\t\treturn false;\r\n\t\t} else {\r\n\t\t\tif(!preg_match('/^([1-3][0-9]{3,3})-(0?[1-9]|1[0-2])-(0?[1-9]|[1-2][1-9]|3[0-1])$/', $date)) {\r\n\t\t\t\tthrow new Exception ( 'checkDate() expects a SQL formatted date like 2009-12-24.' );\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "function validateDateFormat($date, $field)\n\t{\n\t\tif (preg_match (\"/^([0-9]{4})-([0-9]{2})-([0-9]{2})$/\", $date, $parts))\n\t\t{\n\t\t //check weather the date is valid of not\n\t\t\t\t\tif(checkdate($parts[2],$parts[3],$parts[1]))\n\t\t\t\t\t\treturn true;\n\t\t\t\t\telse\n\t\t\t\t\t return $this->setError(10011, \"error\", \"\", $field);\n\t\t}\n\t\telse\n\t\t\treturn $this->setError(10011, \"error\", \"\", $field);\n\t}", "function validateDate($date, $format = 'Y-m-d') {\n \t $d = DateTime::createFromFormat($format, $date);\n \t return $d && $d->format($format) === $date;\n }", "function valid_date($date){\r\n\t$day = date_day($date);\r\n\t$month = date_month($date);\r\n\t$year = date_year($date);\r\n\tif(!is_numeric($day) || !is_numeric($month) || !is_numeric($year)){\r\n\t\treturn FALSE;\r\n\t}elseif($month < 1 || $month > 12){\r\n\t\treturn FALSE;\r\n\t}elseif(($day < 1) || ($day > 30 && ($month == 4 || $month == 6 || $month == 9 || $month == 11 )) || ($day > 31)){\r\n\t\treturn FALSE;\r\n\t}elseif($month == 2 && ($day > 29 || ($day > 28 && (floor($year / 4) != $year / 4)))){\r\n\t\treturn FALSE;\r\n\t}else{\r\n\t\treturn TRUE;\r\n\t}\r\n}", "private static function validateDate(string $date): bool\n {\n $date = \\DateTime::createFromFormat('Y-m-d', $date);\n\n if (!$date) {\n return false;\n }\n\n return true;\n }", "public function validMysqlDate($date) {\n\t\t$error = 'The %s is not valid. YYYY-MM-DD is the correct form of dates.';\n\t\t// check if there are hyphens\n\t\tif(!strstr($date, '-')) {\n\t\t\t$this->form_validation->set_message('validMysqlDate', $error);\n\t\t\treturn false;\n\t\t}\n\t\t// split apart the date by hyphen\n\t\t$parts = explode('-', $date);\n\t\t// check that there is two hyphens\n\t\tif(count($parts) != 3) {\n\t\t\t$this->form_validation->set_message('validMysqlDate', $error);\n\t\t\treturn false;\n\t\t}\n\t\t// check that each part is numeric\n\t\tforeach($parts as $val) {\n\t\t\tif(!is_numeric($val)) {\n\t\t\t\t$this->form_validation->set_message('validMysqlDate', $error);\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t// make it here, the date is fine\n\t\treturn true;\n\t}", "function validateDateFormat($date, $format);", "public static function validate_date($day, $month, $year){\n\t\tif($day>0 && $day<32 && $month>0 && $month<13 && $year){\n\t\t\t$date_str=\"'$day,$month,$year'\";\n\t\t\t$s=\"'%d,%m,%Y'\";\n\t\t\t$s='STR_TO_DATE('.$date_str.','.$s.')';\n\t\t\treturn $s;\n\t\t}\n\t\telse return false;\n\t}", "public static function validateDate($date)\n {\n $d = \\DateTime::createFromFormat('Y-m-d', $date);\n return $d && $d->format('Y-m-d') === $date;\n }", "function valid_date($str) \n\t{\n\t\t//if (ereg(\"([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})\", $str)) {\n\t\tif (preg_match(\"/([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})/\", $str)) \n\t\t{\n\t\t\t//$arr = split(\"-\", $str);\n\t\t\t$arr = preg_split(\"/-/\", $str);\n\t\t\t$yyyy = (int) $arr[0];\n\t\t\t$mm = (int) $arr[1];\n\t\t\t$dd = (int) $arr[2];\n\t\t\treturn checkdate($mm, $dd, $yyyy);\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "function _validateDate($date, $format = 'd/m/Y'){\n $d = DateTime::createFromFormat($format, $date);\n return $d && $d->format($format) == $date;\n }", "function _valid_date($field)\r\n\t{\r\n\t\t// Ignore if empty\r\n\t\tif (empty($this->{$field}))\r\n\t\t{\r\n\t\t\treturn TRUE;\r\n\t\t}\r\n\r\n\t\t$date = date_parse($this->{$field});\r\n\r\n\t\treturn checkdate($date['month'], $date['day'],$date['year']);\r\n\t}", "function validateDate($date){\r\n $date = trim($date);\r\n $date_arr = explode(\"/\", $date);\r\n return checkdate ( $date_arr[0] , \"01\" , $date_arr[1] );\r\n\r\n}", "function nrua_validateDate($date, $format = 'Y-m-d H:i:s')\n{\n $d = DateTime::createFromFormat($format, $date);\n return $d && $d->format($format) == $date;\n}", "function validateDate($date_joined) {\n if((preg_match('/^[0-9]{4}-[0-9]{2}-[0-9]{2}$/', $date_joined))) {\n list( $y, $m, $d ) = preg_split( '/[-\\.\\/ ]/', $date_joined );\n return (checkdate( $m, $d, $y ) && ($y >= date('Y') - 2) && ($y <= date('Y')));\n } else {\n // wrong format, convert to correct format\n $date_joined = date('Y-m-d', strtotime(str_replace('-', '/', $date_joined)));\n list( $y, $m, $d ) = preg_split( '/[-\\.\\/ ]/', $date_joined );\n return (checkdate( $m, $d, $y ) && ($y >= date('Y') - 2) && ($y <= date('Y')));\n }\n }", "function validateDate($date, $format = 'Y-m-d H:i:s')\n {\n $d = DateTime::createFromFormat($format, $date);\n return $d && $d->format($format) == $date;\n }", "function validateDate($date, $format = 'Y-m-d H:i:s')\n{\n $d = DateTime::createFromFormat($format, $date);\n return $d && $d->format($format) == $date;\n}", "function validateDate($date, $format = 'Y-m-d H:i:s')\n{\n $d = DateTime::createFromFormat($format, $date);\n return $d && $d->format($format) == $date;\n}", "function _fourD_analysis_validate_date( $d ) {\n $ymd = explode('-', $d );\n \n if( sizeof($ymd) != 3 || strlen($ymd[0]) != 4 || ((int)$ymd[1]) < 1 || ((int)$ymd[2]) < 1 ){\n return false;\n }\n else{\n $ymd[1] = str_replace('0', '', $ymd[1]);\n $ymd[2] = str_replace('0', '', $ymd[2]);\n if($ymd[1] < 10) $ymd[1] = \"0\" . $ymd[1]; // pad month with leading 0\n if($ymd[2] < 10) $ymd[2] = \"0\" . $ymd[2]; // pad day with leading 0\n $ymd[3] = $ymd[0].'-'.$ymd[1].'-'.$ymd[2];\n $epoch = strtotime( $ymd[3] );\n // fourD_analysis_debug('form_parts_validate; $ymd[3]: '. $ymd[3].'; epoch: '.$epoch );\n \n //if( !$time || $time <= time() ){ // Allow past dates? What about editing an old project?\n // $err = 'Date must be in the future.';\n if( $epoch > 1 ){\n return $epoch;\n }\n }\n return false;\n}", "protected function validateDate($value){\n\t\tif ($value instanceof DateTime) return true;\n\n\t\tif (strtotime($value) === false) return false;\n\n\t\t$date = date_parse($value);\n\n\t\treturn checkdate($date['month'], $date['day'], $date['year']);\n\t}", "function isValidateDate($date, $format = 'd-m-Y')\r\n {\r\n switch ($format) {\r\n case 'd-m-Y':\r\n if (preg_match(\"/^([0-9]{2})-([0-9]{2})-([0-9]{4})$/\", $date, $parts)) {\r\n //check weather the date is valid of not\r\n if (checkdate($parts[2], $parts[1], $parts[3]))\r\n return true;\r\n else\r\n return false;\r\n } else\r\n return false;\r\n break;\r\n case 'Y-m-d':\r\n if (preg_match(\"/^([0-9]{4})-([0-9]{2})-([0-9]{2})$/\", $date, $parts)) {\r\n //check weather the date is valid of not\r\n if (checkdate($parts[2], $parts[3], $parts[1]))\r\n return true;\r\n else\r\n return false;\r\n } else\r\n return false;\r\n break;\r\n case 'd/m/Y':\r\n if (preg_match(\"/^([0-9]{2})\\/([0-9]{2})\\/([0-9]{4})$/\", $date, $parts)) {\r\n //check weather the date is valid of not\r\n if (checkdate($parts[2], $parts[1], $parts[3]))\r\n return true;\r\n else\r\n return false;\r\n } else\r\n return false;\r\n break;\r\n }\r\n }", "function checkDateFormat($date)\n{\n //match the format of the date\n if (preg_match (\"/^([0-9]{4})-([0-9]{2})-([0-9]{2})$/\", $date, $parts))\n {\n //check weather the date is valid of not\n if(checkdate($parts[2],$parts[3],$parts[1]))\n return true;\n else\n return false;\n }\n else\n return false;\n}", "function validateDate($date,$format = 'Y-m-d H:i:s') {\n $d = DateTime::createFromFormat($format, $date);\n return $d && $d->format($format) == $date;\n}", "protected static function check_date($date) {\n $date_arr = explode(\"-\", $date);\n\n if (count($date_arr) == 3 && checkdate($date_arr[1], $date_arr[2], $date_arr[0])) {\n return false;\n } else {\n return true;\n }\n }", "function validateDate($date,$format ='Y-m-d'){\n$d = dateTime::createFromFormat($format,$date);\n\nif($d && $d->format($format) == $date){\nreturn true;\n } else {\n return false;\n }\n}", "public function isdate($input){\n\n if (!preg_match(\"/^(0[1-9]|[1-2][0-9]|3[0-1])-(0[1-9]|1[0-2])-[0-9]{4}$/\",$input)){\n return false;\n }\n return true;\n }", "public static function isValidDate($date){\n return (DateTime::createFromFormat('d/m/Y', $date)) ? true : false;\n }", "public function isValidDate() {\n\t\t// TODO\n\t\treturn TRUE;\n\t}", "function check_date ($day, $month, $year) {\n\t\n\tif (preg_match ('/[0-9]{2}/',$day)) {\n\t\t\n\t\tif (preg_match ('/[0-9]{2}/',$month)) {\n\t\t\t\n\t\t\tif (preg_match ('/[0-9]{4}/',$year)) {\n\t\t\t\t\n\t\t\t\tif (checkdate ($month, $day, $year)) {\n\t\t\t\t\t\n\t\t\t\t\treturn true;\n\t\t\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\t\n\t\t\t\t\treturn false;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t\n\t\t\t\treturn false;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t} else {\n\t\t\t\n\t\t\treturn false;\n\t\t\t\n\t\t}\n\t} else {\n\t\t\n\t\treturn false;\n\t\t\n\t}\n}", "function validateDate($date, $format = 'd/m/Y H:i:s')\n{\n $d = DateTime::createFromFormat($format, $date);\n return $d && $d->format($format) == $date;\n}", "public static function check_date($value, $format='dd.mm.yyyy') {\n\t\tif (strlen($value) >= 6 && strlen($format) == 10) { \n\t // find separator. Remove all other characters from $format \n\t $separator_only = str_replace(array('m','d','y'),'', $format); \n\t $separator = $separator_only[0]; // separator is first character \n\t \n\t if ($separator && strlen($separator_only) == 2) { \n\t // make regex \n\t $regexp = str_replace('mm', '(0?[1-9]|1[0-2])', $format); \n\t $regexp = str_replace('dd', '(0?[1-9]|[1-2][0-9]|3[0-1])', $regexp); \n\t $regexp = str_replace('yyyy', '(19|20)?[0-9][0-9]', $regexp); \n\t $regexp = str_replace($separator, \"\\\\\" . $separator, $regexp); \n\t \n\t if ($regexp != $value && preg_match('/'.$regexp.'\\z/', $value)) { \n\t // check date \n\t $arr=explode($separator,$value); \n\t $day=$arr[0]; \n\t $month=$arr[1]; \n\t $year=$arr[2]; \n\t \n\t if (@checkdate($month, $day, $year)) {\n\t return true; \n\t }\n\t } \n\t } \n\t } \n\t return false; \n\t}", "function valida_dates($enter_date, $obsolescense_date)\n{\n $day1 = substr($enter_date, 0, 2);\n $month1 = substr($enter_date, 3, 2);\n $year1 = substr($enter_date, 6, 4);\n $day2 = substr($obsolescense_date, 0, 2);\n $month2 = substr($obsolescense_date, 3, 2);\n $year2 = substr($obsolescense_date, 6, 4);\n\n if ($enter_date <= $obsolescense_date) {\n return true;\n }\n\n return false;\n}", "function str_validate_date($date_str, $date_format) {\r\n\r\n $date_str = trim($date_str);\r\n $date_format = trim($date_format);\r\n\r\n if ($date_format == 'YYYY-MM-DD')\r\n list($year, $month, $day) = explode('-', $date_str);\r\n if ($date_format == 'YYYY/MM/DD')\r\n list($year, $month, $day) = explode('/', $date_str);\r\n if ($date_format == 'YYYY.MM.DD')\r\n list($year, $month, $day) = explode('.', $date_str);\r\n\r\n if ($date_format == 'DD-MM-YYYY')\r\n list($day, $month, $year) = explode('-', $date_str);\r\n if ($date_format == 'DD/MM/YYYY')\r\n list($day, $month, $year) = explode('/', $date_str);\r\n if ($date_format == 'DD.MM.YYYY')\r\n list($day, $month, $year) = explode('.', $date_str);\r\n\r\n if ($date_format == 'MM-DD-YYYY')\r\n list($month, $day, $year) = explode('-', $date_str);\r\n if ($date_format == 'MM/DD/YYYY')\r\n list($month, $day, $year) = explode('/', $date_str);\r\n if ($date_format == 'MM.DD.YYYY')\r\n list($month, $day, $year) = explode('.', $date_str);\r\n\r\n if (is_numeric($year) && is_numeric($month) && is_numeric($day))\r\n return checkdate($month, $day, $year);\r\n return false;\r\n}", "public static function isValidDate($date)\n {\n preg_match_all('/^([0-9]{1,2}).([0-9]{1,2}).([0-9]{4})$/', $date, $matches);\n if (count($matches) == 4) {\n return checkdate($matches[2][0], $matches[1][0], $matches[3][0]);\n }\n return false;\n }", "function valid_date( $value = '', $format = 'Y-m-d H:i:s' )\n\t{\n\t\t$date = date_parse($value);\n\t\t$valid = ( $date['error_count'] == 0 && checkdate($date['month'], $date['day'], $date['year']) );\n\t\t\n\t\t/*\n\t\t// Create a date depending on PHP version\n\t\t$version = explode('.', phpversion());\n\t\tif (((int) $version[0] >= 5 && (int) $version[1] >= 2 && (int) $version[2] > 17))\n\t\t{\n\t\t\t$d = DateTime::createFromFormat($format, $date);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$d = new DateTime(date($format, strtotime($date)));\n\t\t}\n\t\t*/\n\t\t/*\n\t\t// Check valid date\n\t\t$format = 'Y-m-d H:i:s';\n\t\t$d = new DateTime(date($format, strtotime($date)));\n\t\t$valid_date = ( $d && $d->format($format) == $date );\n\t\t// or\n\t\t$date = date_parse($date);\n\t\t$valid_date = ( $date['error_count'] == 0 && checkdate($date['month'], $date['day'], $date['year']) );\n\t\tif ( ! $valid_date )\n\t\t{\n\t\t\t$valid = false;\n\t\t\t$return_message[] = 'The approved date is invalid.';\n\t\t}\n\t\t*/\n\t\t\n\t\tif ( ! $valid )\n\t\t{\n\t\t\t$this->set_message('valid_date', 'The %s field has in invalid date.');\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "public function validateDate($data)\n {\n\n if($data =='now' || (strlen($data)>=8 && strlen($data)<=10)) {\n try {\n $value_time = new DateTime($data);\n return true;\n } catch (Exception $e) {\n // Is not a valida Date\n }\n }\n return false;\n }", "function isDateValid($date) {\r\n //$uy = $uyear->format(\"Y\");\r\n //$sy = date(\"Y\");\r\n \r\n if(preg_match('^(((0[1-9]|[12]\\d|3[01])\\/(0[13578]|1[02])\\/((19|[2-9]\\d)\\d{2}))|((0[1-9]|[12]\\d|30)\\/(0[13456789]|1[012])\\/((19|[2-9]\\d)\\d{2}))|((0[1-9]|1\\d|2[0-8])\\/02\\/((19|[2-9]\\d)\\d{2}))|(29\\/02\\/((1[6-9]|[2-9]\\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))))$^', $date))\r\n return false;\r\n else\r\n return true;\r\n \r\n}", "function verifyDate($date, $date_format)\n {\n $datetime=DateTime::createFromFormat($date_format, $date);\n $errors=DateTime::getLastErrors();\n if (!$datetime || !empty($errors['warning_count'])) //date was invalid\n {\n $date_check_ok=false;\n }\n else //everything OK\n {\n $date_check_ok=true;\n }\n\n return $date_check_ok;\n }", "function is_date($date) {\n\tif (preg_match('/^((1|2)[0-9]{3})-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])$/', $date) || preg_match('/^(0[1-9]|[1-2][0-9]|3[0-1])-(0[1-9]|1[0-2])-((1|2)[0-9]{3})$/', $date)){\n\t\t$date = explode('-', $date);\n\t\tif (checkdate($date[1], $date[2], $date[0]) || checkdate($date[1], $date[0], $date[2])) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t} else {\n\t\treturn false;\n\t}\n}", "private static function sanitizeDate($date){\r\n if (isset($date) && strlen(''.$date)==10 && preg_match(\"/^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])$/\",$date)){\r\n return TRUE;\r\n } else {\r\n return FALSE;\r\n }\r\n }", "function validateDate($strdate) {\n//Must be 10 digits in MM/DD/YYYY format\n//Checks for a valid date (i.e days in a month etc..)\n//Returns an array\n//\t[0] - boolean 0 for good date, 1 for date error\n// [#] - error messasge\n\n \n\t$i = 0;\t\n\tif(((strlen($strdate)<10) OR (strlen($strdate)>10)) OR\n\t ((substr_count($strdate,\"/\"))<>2)) {\n\t\t$retarray[++$i] = \"Date not in 'MM/DD/YYYY' format\";\n\t} else {\n\t\t$month=(substr($strdate,0,2)); //Parse the string to be validated\n\t\t$day=(substr($strdate,3,2));\n\t\t$year=(substr($strdate,6,4));\t\n\t\t\t\n\t\t$result=ctype_digit($year);\n\t\tif(!($result)){\n\t\t\t$year=0;\n\t\t\t$isLeap=false;\n\t\t\t$retarray[++$i] = \"Year is not numeric\";\n\t\t} else {\n\t\t\t$isLeap = DateTime::createFromFormat('Y', $year)->format('L') === \"1\";\n\t\t}\t\n\t\t\t\n\t\t$result=ctype_digit($month);\n\t\tif(!($result)){\n\t\t\t$month=0; \n\t\t\t$retarray[++$i] = \"Month is not numeric\";\n\t\t} else {\n\t\t\tif(($month<=0)OR($month>12)){\n\t\t\t\t$retarray[++$i] = \"Month is not between 01 and 12\";\n\t\t\t}\n\t\t}\n\t\t\t\n\t\t$result=ctype_digit($day);\n\t\tif(!($result)){\n\t\t\t$day=0; \n\t\t\t$retarray[++$i] = \"Day is not numeric\";\n\t\t} else {\n\t\t\tif(($day<=0)OR($day>31)){\n\t\t\t\t$retarray[++$i] = \"Day is not between 01 and 31\";\n\t\t\t}\t\n\t\t\t\n\t\t\tif((($month==2) AND (((!$isLeap)AND($day>28))OR(($isLeap)AND($day>29)))) OR \n\t\t\t ((($month==4) OR ($month==6) OR ($month==9) OR ($month==11)) AND ($day>30))){\n\t\t\t\t$retarray[++$i] = \"Day is not valid for month/year\";\n\t\t\t}\t\t\t\n\t\t}\n\t}\n\t\n\tif ($i > 0) {\n\t\t$retarray[0] = False;\n\t} else {\n\t\t$retarray[0] = True;\n\t}\t\n\t\n\treturn($retarray); \n}", "private function _is_date($date) {\n\t\tif (empty($date)) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif(!strpos($date,'-') && is_numeric($date)) {\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\tlist( $y, $m, $d ) = explode('-', $date );\n\n\t\tif ( is_numeric($m) && is_numeric($d) && is_numeric($y) && checkdate( $m, $d, $y ) ) {\n\t\t\treturn true;\n\t\t}\n\t\telse {\n\t\t\treturn false;\n\t\t}\n\t}", "function validateDate($Fecha, $Formato = 'Ymd')\n{\n $d = DateTime::createFromFormat($Formato, $Fecha);\n return $d && $d->format($Formato) == $Fecha;\n}", "public function valid_date($str)\n\t{\n\t\treturn ( ! ereg(\"^[0-9]{1,2}/[0-9]{1,2}/[0-9]{4}$\", $str)) ? FALSE : TRUE;\n\t}", "function fechaInvalida($fecha){\n $valores = explode('-', $fecha);\n if(count($valores) == 3 && checkdate($valores[1], $valores[2], $valores[0])){\n return false;\n }\n return true;\n }", "public function date(string $field) : bool\n\t{\n\t\tif(Datetime::createFromFormat('Y-m-d', $this->data[$field]) === false)\n\t\t{\n\t\t\t$this->errors[$field] = \"Date incorrecte\";\n\n\t\t\treturn false;\n\t\t}\t\n\n\t\treturn true;\n\t}", "function validaNascimento($ano, $mes, $dia)\n{\n\n $dataCheck = $ano.'-'.$mes.'-'.$dia;\n if (checkdate($mes, $dia, $ano) && $dataCheck<=date('Y-m-d'))\n return true;\n else return false;\n}", "private function validatePassportIssuedDate() {\n $issued_date = DateTime::createFromFormat( 'd.m.Y', $this->passport_issued_date );\n\n if ( $issued_date < DateTime::createFromFormat( 'd.m.Y', '01.10.1997' ) ) {\n $this->errors[] = [ 'Паспорт должен быть выдан не позднее 1 октября 1997 года' ];\n }\n\n if ( $issued_date > new DateTime( 'tomorrow' ) ) {\n $this->errors[] = [ 'Паспорт не может быть выдан в будущем' ];\n }\n }", "function checkIsValidDate($date, $format = 'Y-m-d H:i:s')\n {\n $d = DateTime::createFromFormat($format, $date);\n return $d && $d->format($format) === $date;\n }", "private function validateDate($date, $format = 'Y-m-d H:i:s'){\n $d = DateTime::createFromFormat($format, $date);\n return $d && $d->format($format) == $date;\n }", "function mycheck_isodate($str)\n{\n if (preg_match('/^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])$/', $str)) {\n return TRUE;\n } else {\n return FALSE;\n }\n}", "function checkMyDate($date) {\n if (trim($date)==\"\") return false;\n $arr = explode(\"-\",$date);\nreturn checkdate($arr[1],$arr[2],$arr[0]);\n}", "public function validateDate($date, $format) {\r\n $d = DateTime::createFromFormat ( $format, $date );\r\n return $d && $d->format ( $format ) == $date;\r\n }", "private function isValidDate($date)\n\t{\n\t\t$date = str_replace('/', '-', $date);\n\t\treturn (date_create($date)) ? JFactory::getDate($date)->format(\"Y-m-d\") : null;\n\t}", "public static function validateDate(string $date, string $name)\n {\n $date_array = explode('-', $date);\n\n if (3 !== count($date_array)) {\n throw new InvalidArgumentException(\"Value provided for $name is an invalid format. YYYY-MM-DD required.\");\n }\n\n if (false === checkdate($date_array[1], $date_array[2], $date_array[0])) {\n throw new InvalidArgumentException(\"Value provided for $name is an invalid value. Valid date in the format of YYYY-MM-DD required.\");\n }\n\n return $date;\n }", "public function validate( $value )\n\t{\n\t\t$value = (string) $value;\n\t\t\n\t\tif( strlen( $value ) != 13 )\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t$first_letter = substr( $value, 0, 1 );\n\t\t\n\t\tlist( $year, $month, $day ) = str_split( substr( $value, 1, 7 ), 2 );\n\t\tswitch( $first_letter )\n\t\t{\n\t\t\tcase '1':\n\t\t\t\t$year = '19' . $year;\n\t\t\t\tbreak;\n\t\t\tcase '2':\n\t\t\t\t$year = '19' . $year;\n\t\t\t\tbreak;\n\t\t\tcase '5':\n\t\t\t\t$year = '20' . $year;\n\t\t\t\tbreak;\n\t\t\tcase '6':\n\t\t\t\t$year = '20' . $year;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\treturn false;\n\t\t}\n\t\tif( ! RPC_Date::validDate( $year . '-' . $month . '-' . $day ) ||\n\t\t RPC_Date::getTimestamp( $year . '-' . $month . '-' . $day ) >= RPC_Date::getTimestamp( date( 'Y-m-d' ) ) )\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "public function valid_date($date, $format){\n\t\tif(!$format){\n\t\t\t$format = 'Y-m-d H:i:s';\n\t\t}\n\n\t\t$this->set_message('valid_date', 'The %s field is not a valid date according to the format: ' . $format);\n\t\t$date_object = DateTime::createFromFormat($format, $date);\n\t\treturn $date_object && $date_object->format($format) == $date;\n\n\t}", "private function isValidDate($date) {\n $date = str_replace('/', '-', $date);\n return (date_create($date)) ? JFactory::getDate($date)->format(\"Y-m-d\") : null;\n }", "private function validateDate($date, $format = 'Y-m-d')\n {\n if ($date instanceof \\DateTime) {\n $date = $date->format($format);\n } elseif (is_array($date) && isset($date['date'])) {\n $date = $date['date'];\n }\n $d = \\DateTime::createFromFormat($format, $date);\n return $d && $d->format($format) == $date;\n }", "public function checkDateFormat($data) {\n foreach ($this->_date_format as $field => $value) {\n if (!empty($data[$field])) {\n $dt = \\DateTime::createFromFormat($value, $data[$field]);\n if (!($dt !== false && !array_sum($dt->getLastErrors()))) {\n $this->_addError(self::ERROR_CODE_FIELD_FORMAT_DATE, $field, $data[$field]);\n $this->_invalid_parameter = $field;\n return false;\n }\n }\n }\n\n return true;\n }", "function validateDateFormat($date, $field, $format = 'd-m-Y')\r\n {\r\n switch ($format) {\r\n case 'd-m-Y':\r\n if (preg_match(\"/^([0-9]{2})-([0-9]{2})-([0-9]{4})$/\", $date, $parts)) {\r\n //check weather the date is valid of not\r\n if (checkdate($parts[2], $parts[1], $parts[3]))\r\n return true;\r\n else {\r\n $this->setError(10011, \"error\", \"\", $field);\r\n return false;\r\n }\r\n } else {\r\n $this->setError(10011, \"error\", \"\", $field);\r\n return false;\r\n }\r\n\r\n break;\r\n case 'Y-m-d':\r\n if (preg_match(\"/^([0-9]{4})-([0-9]{2})-([0-9]{2})$/\", $date, $parts)) {\r\n //check weather the date is valid of not\r\n if (checkdate($parts[2], $parts[3], $parts[1]))\r\n return true;\r\n else {\r\n $this->setError(10011, \"error\", \"\", $field);\r\n return false;\r\n }\r\n\r\n } else {\r\n $this->setError(10011, \"error\", \"\", $field);\r\n return false;\r\n }\r\n\r\n break;\r\n }\r\n\r\n }", "function validate_date() {\n # Check the date is in ISO date format\n if (ereg('(19|20)[0-9]{2}[- /.](0[1-9]|1[012])[- /.](0[1-9]|[12][0-9]|3[01])', $this->cur_val)) {\n # Remove any existing error message\n $this->error_message = \"\";\n\n # Return Value\n return $this->cur_val;\n }\n else {\n # Set Error Message\n $this->set_error(\"Validation for date ({$this->cur_val}) failed. This is type \" . gettype($this->cur_val));\n\n # Return Blank Date\n return \"0000-00-00\";\n }\n }", "public static function isDateFormat($may_date) {\n \n $dt = DateTime::createFromFormat(\"Y-m-d\", $may_date);\n \n if ($dt !== false && !array_sum($dt->getLastErrors())) {\n //echo $dt->format('Y-m-d');\n return true;\n }\n return false;\n \n }", "function isValidShortDate ($var) {\n //Returns error message for an invalid date\n \n //Check for unsafe characters\n $msg = isSantizeString($var);\n if ($msg != \"\") {\n return $msg;\n }\n // Format mm/dd/yy or mm/dd/yyyy\n $tmpDate = explode(\"/\",$var);\n\n //if the date can't be split into 3 parts, then a \"/\" was missing\n if (count($tmpDate) != 3) {\n return \"Invalid Date\"; \n }\n \n // isValidInt does not validate numbers with leading zeros. Strip off the leading zeros.\n $tmpDate[0] = ltrim($tmpDate[0], \"0\"); \n $tmpDate[1] = ltrim($tmpDate[1], \"0\"); \n $tmpDate[2] = ltrim($tmpDate[2], \"0\");\n \n //Make sure all of the parts are valid numbers\n if (isValidInt($tmpDate[0]) == \"\" && isValidInt($tmpDate[1]) == \"\" && isValidInt($tmpDate[2]) == \"\") {\n \n // Use checkdate to validate the date\n if (checkdate($tmpDate[0], $tmpDate[1], $tmpDate[2])) { //checkdate(month, day, year)\n return \"\";\n } else {\n return \"Invalid Date\";\n }\n } else {\n return \"Invalid Date\";\n }\n}", "function __validFecha2($fecha){\n $test_arr = explode('-', $fecha);\n if (count($test_arr) == 3) {\n if (checkdate($test_arr[1], $test_arr[2], $test_arr[0])) {//YEAR / MES / DIA\n return true;\n }\n return false;\n }\n return false;\n }", "function dateValidation($value) {\n\t$reg = \"/^(((0?[1-9]|1[012])\\/(0?[1-9]|1\\d|2[0-8])|(0?[13456789]|1[012])\\/(29|30)|(0?[13578]|1[02])\\/31)\\/(19|[2-9]\\d)\\d{2}|0?2\\/29\\/((19|[2-9]\\d)(0[48]|[2468][048]|[13579][26])|(([2468][048]|[3579][26])00)))$/\";\n\treturn preg_match($reg,$value);\n}", "private function isValidDate($date)\n\t\t{\n\t\t\t$date = str_replace('/', '-', $date);\n\t\t\treturn (date_create($date)) ? Factory::getDate($date)->format(\"Y-m-d\") : null;\n\t\t}", "public function isValid()\n {\n if (is_null($this->delimiter)) {\n return false;\n }\n\n [$month, $year] = $this->getMonthYear();\n\n return checkdate($month, 1, $year);\n }", "private function validMySQLDate($date) {\r\n if (!$this->validMySQLDateFormat($date)) {\r\n return false;\r\n }\r\n $day = substr($date, 8);\r\n $month = substr($date, 5, 2);\r\n $year = substr($date, 0, 4);\r\n return (checkdate($month, $day, $year));\r\n }", "public function checkDateFormat($str) {\n\t\t\n\t\tif ($str != '') {\n\t\t\tlist($day, $month, $year)=explode(\"/\",$str);\n\t\n\t\t\tif (strpos($str,\".\") == true) {\n\t\t\t\t$result = \"Bad date: Point is not allowed.\";\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif (is_numeric($day) == 1 && is_numeric($month) == 1 & is_numeric($year) == 1) {\n\t\t\t\t\tif(checkdate($month,$day,$year)) \n\t\t\t\t\t\t$result = \"good\";\n\t\t\t\t\telse\n\t\t\t\t\t\t$result = \"Bad date\";\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t$result = \"Bad date: Non numeric characters not allowed.\";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse \n\t\t\t$result = 'The {field} is required';\n\n\t\tif ($result == 'good') {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$this->form_validation->set_message('checkDateFormat', $result); \n\t\t\t\treturn false;\n\t\t\t}\n\t}", "public static function isValidDate($y,$m,$d)\n {\n return checkdate($m, $d, $y);\n }", "public function validateDate($date)\n {\n try {\n return new DateTime($date);\n } catch (Exception $e) {\n return false;\n }\n }", "public static function isDate($date)\n {\n if (!preg_match('/^([0-9]{4})-((?:0?[0-9])|(?:1[0-2]))-((?:0?[0-9])|(?:[1-2][0-9])|(?:3[01]))( [0-9]{2}:[0-9]{2}:[0-9]{2})?$/', $date, $matches)) {\n return false;\n }\n\n return checkdate((int) $matches[2], (int) $matches[3], (int) $matches[1]);\n }", "function is_date ($date) {\n\t\n\t\treturn !(\n\t\t\tis_null($date) ||\n\t\t\t(gettype($date)!=='object') ||\n\t\t\t(get_class($date)!=='DateTime') ||\n\t\t\t($date->format('Y m j')==='-0001 11 30')\n\t\t);\n\t\n\t}", "public function is_valid_dob($dob) {\n\n if (preg_match(\"#[\\/]#\", $dob) == 0) {\n return false;\n }\n\n list($month, $day, $year) = explode(\"/\", $dob);\n if(checkdate($month, $day, $year) === false)\n {\n return false;\n }\n\n if($year < (date('Y') - MIN_ACCOUNT_NUM) || $year > date('Y')) {\n return false;\n }\n\n return true;\n }", "protected function validateDate($date, $format = 'Y-m-d H:i:s')\n {\n $d = DateTime::createFromFormat($format, $date);\n return $d && $d->format($format) == $date;\n }", "private function check_date($value) : bool\n {\n // 'YYYY-MM-DDThh:mm:ss'\n // 'YYYY-MM-DD hh:mm:ss.u'\n // 'YYYY-MM-DD hh:mm:ss'\n // 'YYYY-MM-DD'\n // 'YYYYMMDD'\n\n if (!is_string($value))\n return false;\n\n // TODO: the \\DateTime::createFromFormat() can't handle certain\n // types of date time formats allowed by the standard (i.e, partial\n // times given by \".ttt\" in the following: YYYY-MM-DDThh:mm:ss.tttZ)\n $dt = \\DateTime::createFromFormat(\\DateTime::ISO8601, $value);\n if ($dt !== false)\n return true;\n\n $dt = \\DateTime::createFromFormat('Y-m-d H:i:s.u', $value);\n if ($dt !== false)\n return true;\n\n $dt = \\DateTime::createFromFormat('Y-m-d H:i:s', $value);\n if ($dt !== false)\n return true;\n\n $dt = \\DateTime::createFromFormat('Y-m-d', $value);\n if ($dt !== false)\n return true;\n\n $dt = \\DateTime::createFromFormat('Ymd', $value);\n if ($dt !== false)\n return true;\n\n return false;\n }", "public function isValidPaydate($date);", "public function date_valid_func($date) {\n\t\t\n\t\t$date_value = null;\n\t\t// Checking date has value or not\n\t\tif (isset($date) && !empty($date) && strlen($date) == 10) {\n\t\t\t$date_explode = explode(\"/\",$date);\n\t\t\tif (count($date_explode) == 3) {\n\t\t\t\t$date_value+=strlen($date_explode[0]);\n\t\t\t\t$date_value+=strlen($date_explode[1]);\n\t\t\t\t$date_value+=strlen($date_explode[2]);\n\t\t\t\tif ($date_value === 8) {\n\t\t\t\t\t $date_value = 'date';\n\t\t\t\t} else {\n\t\t\t\t\t$date_value = null;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn $date_value;\n\t\t}\n\t}", "public function testDate()\n {\n $this->assertTrue(BrValidation::date('01/01/2020'));\n $this->assertTrue(BrValidation::date('12/11/2019'));\n $this->assertTrue(BrValidation::date('21/04/1940'));\n $this->assertTrue(BrValidation::date('1/3/20'));\n\n $this->assertFalse(BrValidation::date('25-12-2000'), 'BR date accept only slash as separator');\n $this->assertFalse(BrValidation::date('04/21/1980'), 'BR date accept only day/month/year sequence');\n $this->assertFalse(BrValidation::date('2000-12-25'));\n $this->assertFalse(BrValidation::date('2019/11/12'));\n $this->assertFalse(BrValidation::date('2040/25/12'));\n }", "private function validMySQLDateFormat($date) {\r\n return (preg_match(\"/^([0-9]{4})-([0-9]{2})-([0-9]{2})$/\", $date));\r\n }", "static public function isDate($date)\n {\n if (!preg_match('/^([0-9]{4})-((0?[1-9])|(1[0-2]))-((0?[1-9])|([1-2][0-9])|(3[01]))( [0-9]{2}:[0-9]{2}:[0-9]{2})?$/', $date, $matches))\n return false;\n return checkdate((int)$matches[2], (int)$matches[5], (int)$matches[0]);\n }" ]
[ "0.74136245", "0.7378371", "0.73612225", "0.73555416", "0.73123413", "0.73123413", "0.7297896", "0.7232376", "0.72162765", "0.7175596", "0.7122414", "0.71077245", "0.70907414", "0.7079469", "0.70609933", "0.7024079", "0.7010321", "0.698673", "0.6972827", "0.6970309", "0.69488144", "0.69442624", "0.6938354", "0.6925981", "0.68963", "0.68761474", "0.6870447", "0.68688726", "0.686753", "0.68562925", "0.6855642", "0.68496853", "0.68269676", "0.68069774", "0.67968726", "0.67968726", "0.67937833", "0.6789364", "0.6764262", "0.6757812", "0.67404", "0.6737682", "0.67144305", "0.6709143", "0.6695758", "0.6686572", "0.66799796", "0.66742074", "0.6663593", "0.66594404", "0.6650891", "0.664873", "0.6621444", "0.66189235", "0.6605626", "0.65828085", "0.6572751", "0.65725476", "0.6571432", "0.6559298", "0.6546626", "0.6535277", "0.6530856", "0.6517795", "0.65150994", "0.6509445", "0.6496132", "0.64944017", "0.6492968", "0.6489888", "0.6484015", "0.64827836", "0.64782053", "0.6475276", "0.6466159", "0.64478123", "0.6441695", "0.6434205", "0.64341074", "0.6398375", "0.6385938", "0.63792443", "0.63791627", "0.6372205", "0.63648295", "0.6330198", "0.6307635", "0.62906826", "0.62881637", "0.62873036", "0.6286691", "0.62826496", "0.6281505", "0.62752944", "0.62752646", "0.6267867", "0.62675476", "0.6246519", "0.6235732", "0.6232542" ]
0.7037938
15
Parses the token substream.
final protected function parseStream(Stream $tokenStream, IReflection $parent = null) { $this->fileName = $tokenStream->getFileName(); $this ->processParent($parent, $tokenStream) ->parseStartLine($tokenStream) ->parseDocComment($tokenStream, $parent) ->parse($tokenStream, $parent) ->parseChildren($tokenStream, $parent) ->parseEndLine($tokenStream); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract protected function parse(Stream $tokenStream, IReflection $parent);", "function get_token(){\n global $token;\n global $identifier;\n global $array_stream;\n global $key_val;\n global $keywords;\n\n global $c_commentary;\n\n $token_end = True;\n $token_type = tokenType::start;\n init_token();\n\n while($token_end){\n /**\n * @warning end of Array works only for PHP7.3!!!!\n */\n if($key_val === array_key_last($array_stream)){\n $token->last = False;\n if($token->data !== PHP_EOL){\n $token->type = tokenType::EOL;\n $token_end = False;\n }\n }\n /* State automaton for lexical analysis combined with usage of regular expressions */\n switch ($token_type) {\n case tokenType::start:\n {\n if($array_stream[$key_val] === \".\"){ //header dection\n $token_type = tokenType::header;\n break;\n }\n elseif($array_stream[$key_val] === \"@\"){ //at mark detected\n $token->data = $array_stream[$key_val];\n $token->type = tokenType::marker;\n identify_operand();\n preset_label();\n $key_val++;\n $token_end = False;\n break;\n }\n elseif($array_stream[$key_val] === \"#\"){ //start of commentary\n $token_type = tokenType::commentary;\n break;\n }\n elseif($array_stream[$key_val] === PHP_EOL){ //EOL detected\n $token_type = tokenType::EOL;\n break;\n }\n elseif($array_stream[$key_val] === \"\\t\" || $array_stream[$key_val] === \" \"){ //white spaces before instruction/commentary\n $key_val++;\n preset_identifier();\n }\n elseif(ctype_alpha($array_stream[$key_val]) || ctype_digit($array_stream[$key_val]) || preg_match(\"/^_|\\-|\\$|&|%|\\*|!|\\?$/\", $array_stream[$key_val])){ //var/string/int catch\n $token_type = tokenType::charStream;\n break;\n }\n else {\n fwrite(STDERR, \"ERROR : Input doesn't start with .IPPcode19 header\\n\");\n exit(21);#appropriate exit code\n }\n break;\n }\n case tokenType::header:\n {\n /* Load header in loop, until new line space or commentary right after header */\n while(1){\n if($array_stream[$key_val] === PHP_EOL || preg_match(\"/^[ \\t#]$/\",$array_stream[$key_val]) || $key_val === array_key_last($array_stream)){\n if(preg_match(\"/^.ippcode19$/\", strtolower($token->data))){\n $token->type = tokenType::header;\n $token_end = False;\n break;\n }\n else {\n fwrite(STDERR,\"ERROR : Innapropriate header detected\\n\");\n exit(21);//no ippcode header;\n }\n }\n $token->data .= $array_stream[$key_val];\n $key_val++;\n }\n break;\n }\n /* Creates EOL token */\n case tokenType::EOL:\n {\n $token->data = $array_stream[$key_val];\n $token->type = tokenType::EOL;\n $key_val++;\n preset_identifier();\n preset_label();\n $token_end = False;\n break;\n }\n /* Catches commentary, all character are trimmed until EOL*/\n case tokenType::commentary:\n {\n while($array_stream[$key_val] !== PHP_EOL)\n {\n if($key_val === array_key_last($array_stream)) break;\n $key_val++;\n }\n $c_commentary++;\n $token_type = tokenType::EOL;\n break;\n }\n /* string/int or var stream stored into token */\n case tokenType::charStream:\n {\n while(1){\n if(preg_match(\"/^[ \\t@]$/\",$array_stream[$key_val])){\n $token_type = tokenType::identifyStream;\n break;\n }\n elseif($array_stream[$key_val] === PHP_EOL || $array_stream[$key_val] === \"#\"){ //read until newline or commentary start\n $token_type = tokenType::identifyStream;\n break;\n }\n elseif($key_val === array_key_last($array_stream)){ //read until EOF and add last character to token\n $token->data .= $array_stream[$key_val];\n $token_type = tokenType::identifyStream;\n break;\n }\n $token->data .= $array_stream[$key_val];\n $key_val++;\n }\n break;\n }\n case tokenType::identifyStream:\n {\n if(preg_match(\"/^[a-zA-Z_\\-\\$&%\\*!?][a-zA-Z_\\-\\$&%\\*!?0-9]*$/\", $token->data)){ //matching the identifier\n $token->type = tokenType::identifier;\n foreach ($keywords as $key => $value) { //searching for keyword\n $match_pattern = \"/\\b\" . \"$value\" . \"\\b/i\";\n if(preg_match($match_pattern, strtolower($token->data))){\n $token->type = $key + 110;\n if(preg_match(\"/^(bool)|(int)|(string)|(nil)|(gf)|(lf)|(tf)$/\", $token->data)){\n identify_operand();\n }\n break;\n }\n }\n isset_identif();\n $token_end = False;\n break;\n }\n if(preg_match(\"/^[+|-]?[0-9]*$/\", $token->data)){ //matching numbers //^[+|-]?[1-9][0-9]*|[+|-][0]|[0]$\n $token->type = tokenType::number;\n $token_end = False;\n break;\n }\n /* Match for string literal - all unicode numbers and escape sequences */\n elseif(preg_match(\"/^([\\x{0024}-\\x{005B}]|[\\x{0021}\\x{0022}]|[\\x{005D}-\\x{FFFF}]|[ěščřžýáíéóúůďťňĎŇŤŠČŘŽÝÁÍÉÚŮa-zA-Z0-9]|([\\\\\\\\][0-9]{3})?)*$/\", $token->data)){ //^([ěščřžýáíéóúůďťňĎŇŤŠČŘŽÝÁÍÉÚŮa-zA-Z0-9]|([\\\\\\\\][0-9]{3})?)*$\n $token->type = tokenType::stringStream;\n $token_end = False;\n }\n else {\n fwrite(STDERR,\"ERROR : LEX : detected lexical error in: $token->data\\n\");\n exit(23);\n }\n break;\n }\n\n default:\n break;\n }\n }\n }", "public function testParseWithMultipleTokens(): void\n {\n $this->assertSame(6, $this->parser->parse([Grammar::T_V, Grammar::T_I]));\n $this->assertSame(13, $this->parser->parse([Grammar::T_X, Grammar::T_I, Grammar::T_I, Grammar::T_I]));\n $this->assertSame(111, $this->parser->parse([Grammar::T_C, Grammar::T_X, Grammar::T_I]));\n }", "public function parse(Twig_TokenStream $tokens)\n {\n return $this->getParser()->parse($tokens);\n }", "public function getTokenParsers();", "public function getTokenStream();", "private static function parse($token)\n {\n return (new Parser())->parse((string)$token);\n }", "protected function _getNextToken() {}", "protected function _getNextToken() {}", "protected function parseTokens()\n {\n // Recursively traverse the inheritance chain defined by $this->parent\n\n if ($this->parent !== $this) return $this->parent->parseTokens();\n\n // Alias properties to local variables, initialize them\n\n $line =& $this->line; $line = 1;\n $i =& $this->index; $i = 0;\n $inString =& $this->inString; $inString = 0;\n $types =& $this->types; $types = array();\n $texts =& $this->texts; $texts = array('');\n $prevType =& $this->prevType; $prevType = false;\n $penuType =& $this->penuType; $penuType = false;\n $tokens =& $this->tokens;\n $reg =& $this->tokenRegistry;\n\n $j = 0;\n $curly = 0;\n $curlyPool = array();\n\n while (isset($tokens[$i]))\n {\n $t =& $tokens[$i]; // Get the next token\n unset($tokens[$i++]); // Free memory and move $this->index forward\n\n // Set primary type and handle string interpolation context:\n // - tag closing braces as T_CURLY_CLOSE when they are opened with curly braces\n // tagged as T_CURLY_OPEN or T_DOLLAR_OPEN_CURLY_BRACES, to make\n // them easy to separate from regular code \"{\" / \"}\" pairs,\n // - tag arrays' or objects' string indexes as T_STR_STRING.\n\n $priType = 1; // T_SEMANTIC\n\n if (isset($t[1]))\n {\n if ($inString & 1) switch ($t[0])\n {\n case T_VARIABLE:\n case T_STR_STRING:\n case T_CURLY_OPEN:\n case T_CURLY_CLOSE:\n case T_END_HEREDOC:\n case T_ENCAPSED_AND_WHITESPACE:\n case T_DOLLAR_OPEN_CURLY_BRACES: break;\n case T_STRING:\n if ('[' === $prevType || T_OBJECT_OPERATOR === $prevType)\n {\n $t[0] = T_STR_STRING;\n break;\n }\n case T_NUM_STRING: if ('[' === $prevType) break;\n case T_OBJECT_OPERATOR: if (T_VARIABLE === $prevType) break;\n default:\n if ('[' === $prevType && preg_match(\"/^[_a-zA-Z]/\", $t[1][0])) $t[0] = T_STR_STRING;\n else $t[0] = T_ENCAPSED_AND_WHITESPACE;\n }\n else if ('b\"' === $t) $t = array('\"', 'b\"'); // Binary string syntax b\"...\"\n else switch ($t[0])\n {\n case T_WHITESPACE:\n case T_COMMENT:\n case T_DOC_COMMENT:\n case T_BAD_CHARACTER: $priType = 2; // T_NON_SEMANTIC\n }\n }\n else\n {\n $t = array($t, $t);\n\n if ($inString & 1) switch ($t[0])\n {\n case '\"':\n case '`': break;\n case ']': if (T_STR_STRING === $prevType || T_NUM_STRING === $prevType) break;\n case '[': if (T_VARIABLE === $prevType && '[' === $t[0]) break;\n default: $t[0] = T_ENCAPSED_AND_WHITESPACE;\n }\n else if ('}' === $t[0] && !$curly) $t[0] = T_CURLY_CLOSE;\n }\n\n // Trigger callbacks\n\n if (isset($reg[$t[0]]) || isset($reg[$priType]))\n {\n $n = $t[0];\n $t[2] = array($priType => $priType);\n\n if (isset($reg[$priType])) $callbacks = $reg[$priType];\n else $callbacks = array();\n\n for (;;)\n {\n $t[2][$n] = $n;\n\n if (isset($reg[$n]))\n {\n $callbacks += $reg[$n];\n\n // Callback triggers are always ordered:\n // - first by parsers' instanciation order\n // - then by callbacks' registration order\n // - callbacks registered with a tilde prefix\n // are then called in reverse order.\n ksort($callbacks);\n }\n\n foreach ($callbacks as $k => $c)\n {\n unset($callbacks[$k]);\n\n // $t is the current token:\n // $t = array(\n // 0 => token's main type - a single character or a T_* constant,\n // as returned by token_get_all()\n // 1 => token's text - its source code excerpt as a string\n // 2 => an array of token's types and subtypes\n // )\n\n if ($k < 0)\n {\n $n = $c[0]->{$c[1]}($t);\n\n // Non-tilde-prefixed callbacks can return:\n // - false, which cancels the current token\n // - a new token type, which is added to $t[2] and loads the\n // related callbacks in the current callbacks stack\n // - or nothing (null)\n\n if (false === $n) continue 3;\n if ($n && empty($t[2][$n])) continue 2;\n }\n else if (null !== $c[0]->{$c[1]}($t))\n {\n user_error(\"No return value is expected for tilde-registered callback: \" . get_class($c[0]) . '->' . $c[1] . '()', E_USER_NOTICE);\n }\n }\n\n break;\n }\n }\n\n // Commit to $this->texts\n\n $texts[++$j] =& $t[1];\n\n if (2 === $priType) // T_NON_SEMANTIC\n {\n $line += substr_count($t[1], \"\\n\");\n continue;\n }\n\n // For semantic tokens only: populate $this->types, $this->prevType and $this->penuType\n\n $penuType = $prevType;\n $types[$j] = $prevType = $t[0];\n\n // Parsing context analysis related to string interpolation and line numbering\n\n if (isset($prevType[0])) switch ($prevType)\n {\n case '{': ++$curly; break;\n case '}': --$curly; break;\n case '\"':\n case '`': $inString += ($inString & 1) ? -1 : 1;\n }\n else switch ($prevType)\n {\n case T_CONSTANT_ENCAPSED_STRING:\n case T_ENCAPSED_AND_WHITESPACE:\n case T_OPEN_TAG_WITH_ECHO:\n case T_INLINE_HTML:\n case T_CLOSE_TAG:\n case T_OPEN_TAG:\n $line += substr_count($t[1], \"\\n\");\n break;\n\n case T_DOLLAR_OPEN_CURLY_BRACES:\n case T_CURLY_OPEN: $curlyPool[] = $curly; $curly = 0;\n case T_START_HEREDOC: ++$inString; break;\n\n case T_CURLY_CLOSE: $curly = array_pop($curlyPool);\n case T_END_HEREDOC: --$inString; break;\n\n case T_HALT_COMPILER:\n 4 === $this->haltCompilerTail and $this->register('tagHaltCompilerData');\n break;\n }\n }\n\n // Free memory thanks to copy-on-write\n $j = $texts;\n $types = $texts = $tokens = $reg = $this->parents = $this->parent = null;\n return $j;\n }", "public function getStreamParser() {}", "public function getStreamParser() {}", "protected function scan_token()\n {\n $tok = null;\n \n // loop used to avoid recursion if tokens get skipped (comments)\n for (;;) {\n $m = null;\n \n // track new lines?\n if ($this->tnl === true) {\n // test of a new-line can be scanned\n if (preg_match('/^\\h*\\r?(\\n)/', $this->data, $m)) {\n $this->tnl = false;\n goto prd;\n }\n } \n \n if (!preg_match(self::$re, $this->data, $m)) {\n // the scanner-pattern could not match anything\n // in this state we can not produce tokens (anymore)\n $this->eof = true;\n $this->adjust_line_coln_beg($this->data, 0);\n \n Logger::error_at($this->loc(), 'invalid input near: %s [...]',\n strtr(substr($this->data, 0, 10), [ \"\\n\" => '\\\\n' ]));\n \n return $this->scan_eof();\n }\n \n // start scan\n prd:\n \n // \"raw\" and \"sub\" matched data\n // raw: can contain whitespace at the beginning\n // sub: the relevant data\n list ($raw, $sub) = $m;\n $len = strlen($raw);\n \n // remove match from data\n $this->data = substr($this->data, $len);\n \n // get correct starting line/coln\n $this->adjust_line_coln_beg($raw, $len);\n \n // save start line/coln\n $pos = new Position($this->line, $this->coln);\n \n // comments\n if (preg_match('/^(?:[#]|\\/[*\\/])/', $sub)) {\n // update end line/coln\n $this->adjust_line_coln_end($sub, 0);\n \n // handle <eof> if the comment was at the end of our input\n if ($this->ends()) \n return $this->scan_eof();\n \n continue; // continue otherwise\n }\n \n $str = null;\n if (preg_match('/^([cor])?([\"\\'])/', $sub, $str)) {\n if ($str[1] === 'r') {\n // raw string\n $tok = $this->token(T_STRING, substr($sub, 2, -1));\n // update end line/coln\n $this->adjust_line_coln_end($sub, 0);\n } else \n // flag === '' (none) \n // flag === 'c' (constant / constant-expression)\n // flag === 'o' (object [instance of class `Str`] - unused atm)\n // start advanced string-scanner\n $tok = $this->scan_string($str[2]);\n \n $tok->flag = $str[1];\n $tok->delim = $str[2];\n } else {\n // update end line/coln\n $this->adjust_line_coln_end($sub, 0);\n \n // analyze match\n $tok = $this->analyze($sub);\n assert($tok !== null);\n \n if ($tok->type === T_SEMI)\n $tok->implicit = false;\n // track new lines if the current token was a '@'\n elseif ($tok->type === T_AT)\n $this->tnl = true;\n elseif ($tok->type === T_END) {\n // the __end__ marker behaves just like real-eof\n $end = $tok;\n \n // produce one more ';'\n $tok = $this->token(T_SEMI, ';', false);\n $tok->implicit = true;\n \n $end->raw = $raw;\n $end->loc = new Location($this->file, $pos);\n \n // push the end-token onto the queue\n $this->end = $end;\n }\n }\n \n break;\n }\n \n assert($tok !== null);\n \n $tok->raw = $raw;\n $tok->loc = new Location($this->file, $pos);\n return $tok;\n }", "abstract protected function parseOpenParenthese(TokenInterface $token);", "protected function parse(string $token): void\n {\n $this->tokenParts = explode('.', $token);\n $this->header = $this->parseEncodedTokenPart($this->tokenParts[0]);\n $this->payload = $this->parseEncodedTokenPart($this->tokenParts[1] ?? '');\n $this->signature = $this->base64UrlDecode($this->tokenParts[2] ?? '') ?: '';\n }", "public function parseToken ($token)\n {\n $format = substr($token, 0, 2);\n $validf = $this->formatCode();\n if ($format != $validf)\n {\n $this->errors[] = 'invalid_format';\n return;\n }\n $len = intval(substr($token, 2, 2));\n if (!$len)\n {\n $this->errors[] = 'invalid_length';\n return;\n }\n $sid = substr($token, 4, $len);\n $offset = $len + 4;\n $hash = substr($token, $offset);\n return [$sid, $hash, $format];\n }", "protected function parse() {}", "public function parse(array &$tokens) {\n\t\t$token = current($tokens);\n\t\t$this->content = substr($token['value'], 4, -3);\n\t}", "private function parse($input) {\n $tokens= [];\n foreach (new Tokens(new StringTokenizer($input)) as $type => $value) {\n $tokens[]= [$type, $value];\n }\n return $tokens;\n }", "abstract protected function parseName(Stream $tokenStream);", "private function getToken()\n {\n static $srcpos = 0; // current position in the source stream\n static $srclen; // the length of the source stream\n\n $statement = '';\n $token = null;\n if (empty($srclen)) {\n $srclen = strlen($this->source);\n }\n while (is_null($token) && $srcpos < $srclen) {\n $c = $this->source[$srcpos++];\n switch ($c) {\n case self::BEGIN_COMMENT:\n if (substr($this->source, $srcpos - 1, strlen(self::BEGIN_SL_COMMENT)) === self::BEGIN_SL_COMMENT) {\n $statement = self::BEGIN_SL_COMMENT;\n while ($this->source[$srcpos++] !== \"\\n\") {\n $statement .= $this->source[$srcpos];\n }\n $token = $this->createToken($statement);\n } elseif (substr($this->source, $srcpos - 1, strlen(self::BEGIN_ML_COMMENT))\n === self::BEGIN_ML_COMMENT) {\n if (ltrim($statement)) {\n throw new \\Exception('Invalid comment');\n }\n $statement .= $c.$this->source[$srcpos++];\n while (substr($this->source, $srcpos, strlen(self::END_ML_COMMENT))\n !== self::END_ML_COMMENT) {\n $statement .= $this->source[$srcpos++];\n }\n $srcpos += strlen(self::END_ML_COMMENT);\n $token = $this->createToken($statement.self::END_ML_COMMENT);\n } else {\n $statement .= $c;\n }\n break;\n case self::DOUBLE_QUOTE:\n case self::SINGLE_QUOTE:\n $statement .= $c;\n while ($this->source[$srcpos] !== $c) {\n $statement .= $this->source[$srcpos++];\n }\n $statement .= $this->source[$srcpos++];\n break;\n case self::BEGIN_INTERPOLATION:\n $statement .= $c;\n if (substr($this->source, $srcpos - 1, strlen(self::BEGIN_INTERPOLATION_BLOCK))\n === self::BEGIN_INTERPOLATION_BLOCK) {\n while ($this->source[$srcpos] !== self::END_BLOCK) {\n $statement .= $this->source[$srcpos++];\n }\n $statement .= $this->source[$srcpos++];\n }\n break;\n case self::BEGIN_BLOCK:\n case self::END_BLOCK:\n case self::END_STATEMENT:\n $token = $this->createToken($statement.$c);\n if (is_null($token)) {\n $statement = '';\n }\n break;\n default:\n $statement .= $c;\n break;\n }\n }\n\n if (is_null($token)) {\n $srclen = $srcpos = 0;\n }\n\n return $token;\n }", "function mOPEN_BRACE(){\n try {\n $_type = Erfurt_Sparql_Parser_Sparql11_Update_Tokenizer11::$OPEN_BRACE;\n $_channel = Erfurt_Sparql_Parser_Sparql11_Update_Tokenizer11::$DEFAULT_TOKEN_CHANNEL;\n // Tokenizer11.g:693:3: ( '(' ) \n // Tokenizer11.g:694:3: '(' \n {\n $this->matchChar(40); \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 receiveToken() {\n\n\t\t$parseToken = ($this->JWTParser);\n\t\t$TokenObject = $parseToken->parse($this->Token);\n\n\t\t$this->setTokenObject($TokenObject);\n\t}", "public function next() {\n\t\tnext($this->tokens);\n\t}", "public function parse()\n {\n }", "public function parse()\n {\n }", "public function parse()\n {\n }", "public function parse()\n {\n }", "public function parse(\\Twig_Token $token)\n {\n $lineno = $token->getLine();\n $stream = $this->parser->getStream();\n $count = null;\n $plural = null;\n\n if (!$stream->test(\\Twig_Token::BLOCK_END_TYPE))\n {\n $body = $this->parser->getExpressionParser()->parseExpression();\n }\n else\n {\n $stream->expect(\\Twig_Token::BLOCK_END_TYPE);\n $body = $this->parser->subparse(array($this, 'decideForFork'));\n\n if ('plural' === $stream->next()->getValue()) {\n $count = $this->parser->getExpressionParser()->parseExpression();\n $stream->expect(\\Twig_Token::BLOCK_END_TYPE);\n $plural = $this->parser->subparse(array($this, 'decideForEnd'), true);\n }\n }\n\n $stream->expect(\\Twig_Token::BLOCK_END_TYPE);\n\n $this->checkTransString($body, $lineno);\n\n $t = new TransNode( $body, $plural, $count, null, $lineno, $this->getTag() );\n $t->setTranslator( $this->translator );\n return $t;\n }", "private function parse()\n {\n $lines = file($this->filename);\n\n // skip get worker info\n $offset = 0;\n while (isset($lines[$offset])) {\n $line = $lines[$offset];\n\n if (preg_match('/(?:\\[0m\\t)(\\[.*\\])\\s*({.*})(?:[\\r\\n]*)$/', $line, $matches)) {\n $ctx = json_decode($matches[2], true);\n if (isset($ctx['receive'])) {\n $this->in[] = [$matches[1], $matches[2]];\n $offset++;\n continue;\n }\n\n $this->out[] = [$matches[1], $matches[2]];\n }\n\n $offset++;\n }\n }", "protected function parse(): void\n {\n $parseOptions = true;\n $this->parsed = $this->getTokens();\n \n while (null !== $token = array_shift($this->parsed)) {\n if ($parseOptions && '--' == $token) {\n $parseOptions = false;\n } elseif ($parseOptions && 0 === strpos($token, '--')) {\n $this->parseLongOption($token);\n } elseif ($parseOptions && '-' === $token[0] && '-' !== $token) {\n $this->parseShortOption($token);\n }\n }\n }", "protected function get_token()\n {\n if($this->token == Instructions::EOF)\n {\n return;\n }\n \n if(empty($this->buffer) == true)\n {\n $this->get_line_break();\n }\n\n $this->token = $this->buffer[0];\n array_shift($this->buffer);\n \n\n // Empty token equals empty line\n if($this->token == Instructions::EMPTY)\n {\n $this->get_token();\n }\n }", "public function readToken() {}", "protected function next() : ?Node\n {\n // is the current element associative?\n $associativeArray = $this->nextToken() && $this->nextToken()->isType(T::TOKEN_ASSIGN);\n $associativeKeyName = null;\n\n // if yes, we parse the key first\n if ($associativeArray) \n { \n $keyToken = $this->currentToken();\n\n // the key can be an identifier token and will \n // be used as a simple string\n if ($keyToken->isType(T::TOKEN_IDENTIFIER))\n {\n $associativeKeyName = $keyToken->getValue();\n }\n // string or numbers\n elseif ($keyToken->isType(T::TOKEN_STRING) || $keyToken->isType(T::TOKEN_NUMBER))\n {\n $associativeKeyName = ValueNode::fromToken($keyToken)->getRawValue();\n }\n\n $this->skipToken(2); // skip the key & assign token\n\n // there might be a linebreak between the key and value\n $this->skipTokenOfType([T::TOKEN_LINE]);\n }\n\n // placeholder for the elements value\n $elementValue = null;\n\n // value token\n $token = $this->currentToken();\n\n // check for nested array\n if ($token->isType(T::TOKEN_SCOPE_OPEN)) \n {\n $elementValue = $this->parseChild(\n ArrayParser::class, \n $this->getTokensUntilClosingScope(\n false, \n T::TOKEN_SCOPE_OPEN, \n T::TOKEN_SCOPE_CLOSE\n ), \n false\n );\n }\n\n // is a parameter reference \n elseif ($token->isValue()) \n {\n $elementValue = ValueNode::fromToken($token);\n }\n\n elseif ($token->isType(T::TOKEN_PARAMETER)) \n {\n $elementValue = $this->parseChild(ReferenceParser::class);\n }\n\n // is a service reference\n elseif ($token->isType(T::TOKEN_DEPENDENCY)) \n {\n $elementValue = $this->parseChild(ReferenceParser::class);\n }\n\n // just a linebreak\n elseif ($token->isType(T::TOKEN_LINE)) \n {\n $this->skipToken(); return null;\n }\n\n // anything else?\n else \n {\n throw $this->errorUnexpectedToken($token);\n }\n\n if (!($elementValue instanceof AssignableNode)) {\n throw $this->errorParsing(\"Trying to assign nonassignable to array.\");\n }\n\n // update our array node\n if ($associativeArray) {\n $this->array->addElement(new ArrayElementNode($associativeKeyName, $elementValue));\n } else {\n $this->array->push($elementValue);\n }\n\n // skip the value token\n $this->skipToken();\n\n // now ther might follow a seperator indicating another argument\n if (!$this->parserIsDone() && $this->currentToken()->isType(T::TOKEN_SEPERATOR)) \n {\n $this->skipToken();\n }\n\n return null;\n }", "public function parse();", "public function parse();", "public function parse();", "abstract public function parse(\\SHH\\Parser &$parser);", "public function parse()\n {\n $this->initProps();\n $this->initParams();\n $this->load();\n }", "public static function parse($data = '')\n {\n if (strpos($data, '*') === 0) {\n $info = [\n 'flags' => [],\n 'delimiter' => '',\n 'name' => '',\n ];\n \n if (($str = stristr($data, 'LIST'))) {\n $left = strpos($str, '(');\n $right = strpos($str, ')');\n \n \n if ($left > -1 && $right > -1) {\n $unparsed = trim(substr($str, $left, ($right - $left + 1)), '()');\n $parsed = explode(\" \", $unparsed);\n \n if (count($parsed) > 0) {\n $info['flags'] = explode(\" \", $unparsed);\n }\n }\n \n $left = strpos($str, '\"');\n $right = strpos($str, '\"', $left + 1);\n \n if ($left > -1 && $right > -1) {\n $parsed = trim(substr($str, $left, ($right - $left + 1)), '\"');\n \n if (strlen($parsed) > 0) {\n $info['delimiter'] = $parsed;\n }\n }\n \n $data = substr($str, $right + 1);\n $info['name'] = trim($data);\n \n yield $info;\n }\n }\n }", "public function parse($buffer)\n {\n $pos = 1; // The remain length is start from second byte.\n $remainLen = \\Mqtt\\Message\\Util::decodeRemainLength($buffer, $pos);\n $this->header->setRemainLen($remainLen);\n $this->header->parseVarHeader($buffer, $pos);\n $this->parseBody($buffer, $pos);\n }", "abstract public function parse();", "abstract public function parse();", "abstract public function parse();", "abstract public function parse();", "public function next_token()\n {\n }", "public function next ()\n {\n return next($this->tokens);\n }", "public function parse($tokens = null, $additional = [], $embedded = false)\n {\n if (is_string($tokens)) {\n $tokens = $this->tokenize($tokens, $additional, $embedded);\n } elseif (!$tokens instanceof TokenIterator) {\n // Todo: Own Exceptions\n throw new \\InvalidArgumentException('$tokens must be string or TokenIterator');\n }\n\n return $this->_process($tokens);\n }", "public function parse(Parser $lexer, $basic)\n {\n return;\n }", "public function parse(HTML5_Inputstream_Interface $input) {\n $this->errors = array();\n $events = new HTML5_Parser_DOMTreeBuilder(false, $this->options);\n $scanner = new HTML5_Parser_Scanner($input);\n $parser = new HTML5_Parser_Tokenizer($scanner, $events);\n\n $parser->parse();\n $this->errors = $events->getErrors();\n\n return $events->document();\n }", "public function getTokens();", "public function parse(array &$tokens) {\n\t\t$value = '';\n\t\t$token = current($tokens);\n\t\twhile ($token !== false && ($token['type'] != 'tagclose' || $token['value'] != '</style>')) {\n\t\t\t$value .= $token['value'];\n\t\t\t$token = next($tokens);\n\t\t}\n\t\tprev($tokens);\n\t\tif ($value) {\n\t\t\t$this->content = $value;\n\t\t}\n\t}", "public function parse(Twig_Token $token)\n\t{\n\t\t$name = $this->parser->getVarName();\n\t\t$ref = new Twig_Node_Expression_BlockReference(new Twig_Node_Expression_Constant($name, $token->getLine()), TRUE, $token->getLine(), $this->getTag());\n\n\t\t$filter = $this->parser->get_expression_parser()->parse_filter_expression_raw($ref, $this->getTag());\n\t\t$this->parser->getStream()->expect(Twig_Token::BLOCK_END_TYPE);\n\n\t\t$body = $this->parser->subparse(array($this, 'decide_block_end'), TRUE);\n\t\t$this->parser->getStream()->expect(Twig_Token::BLOCK_END_TYPE);\n\n\t\t$block = new Twig_Node_Block($name, $body, $token->getLine());\n\t\t$this->parser->setBlock($name, $block);\n\n\t\treturn new Twig_Node_Print($filter, $token->getLine(), $this->getTag());\n\t}", "protected function parse()\n {\n // [square] ..... visible comments (don't count as words for sorting, don't act as keywords)\n // (round) ....... for optional parts (count as words for sorting, act as keywords)\n // {curly} ........ word class definitions (use word class field instead, except for gender tags like {f}, {pl}, ...)\n\n while (($line = fgets($this->handle)) !== false) {\n if (strpos($line, '#') === 0) {\n continue;\n }\n\n if (trim($line) === '') {\n continue;\n }\n\n $data = preg_split('/[\\t]+/', $line);\n\n $headword = trim($data[0]);\n $translation = trim($data[1]);\n $wordclass = '';\n $subject = '';\n\n if (count($data) > 2) {\n $wordclass = trim($data[2]);\n }\n\n if (count($data) > 3) {\n $subject = trim($data[3]);\n }\n\n $entry = new Entry();\n\n $entry->directionId = $this->directionId;\n $entry->headword = $headword;\n $entry->translation = $translation;\n $entry->wordclass = $wordclass;\n\n $entry->subjects = $entry->getParsedSubjects($subject);\n $entry->parseHeadword();\n $entry->parseTranslation();\n\n yield $entry->jsonSerialize();\n }\n }", "public function getParsedInput();", "function mOPEN_SQUARE_BRACE(){\n try {\n $_type = Erfurt_Sparql_Parser_Sparql11_Update_Tokenizer11::$OPEN_SQUARE_BRACE;\n $_channel = Erfurt_Sparql_Parser_Sparql11_Update_Tokenizer11::$DEFAULT_TOKEN_CHANNEL;\n // Tokenizer11.g:718:3: ( '[' ) \n // Tokenizer11.g:719:3: '[' \n {\n $this->matchChar(91); \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 extractTokens()\n {\n // Prepare the opening and closing tags for the regex\n $openingTag = sprintf( '\\\\%s', implode( '\\\\', str_split( $this->openingTag ) ) );\n $closingTag = sprintf( '\\\\%s', implode( '\\\\', str_split( $this->closingTag ) ) );\n\n // Build the regex\n $regex = sprintf( '/%s([A-Z-_0-9]+)%s/i', $openingTag, $closingTag );\n\n // Find all the tokens in the string\n preg_match_all( $regex, $this->content, $matches, PREG_PATTERN_ORDER );\n\n // If there are no matches, simply return an empty array\n if ( empty( $matches[1] ) )\n {\n return [];\n }\n\n // Return a unique list of tokens\n return array_unique( $matches[ 1 ] );\n }", "private function _init_tokens()\n\t{\n\t\tif(is_null($this->_tokens)) {\n\t\t\t$this->_all_tokens = [];\n\t\t\t$this->_tmpname = 0;\n\t\t\t\t\n\t\t\tif($this->token_variants) {\n\t\t\t\t//pass\n\t\t\t} else {\n\t\t\t\t$this->_tokens = $this->process_tokendef('', $this->get_tokendefs());\n\t\t\t}\n\t\t}\t\t\n\t}", "public function parse()\n {\n list($header, $payload, $signature) = explode('.', $this->token);\n\n return collect([\n 'header' => json_decode(base64_decode($header)),\n 'payload' => json_decode(base64_decode($payload)),\n 'signature' => $signature\n ]);\n }", "protected function _readTokens($matches)\n {\n return array_shift($this->_tokens);\n }", "public function testParseWithOneLookaheadTokenAndOneSimpleToken(): void\n {\n $this->expectException(ParserException::class);\n $this->expectExceptionMessage('Invalid Roman');\n $this->expectExceptionCode(ParserException::INVALID_ROMAN);\n\n $this->parser->parse([Grammar::T_I, Grammar::T_X, Grammar::T_V]);\n }", "public function parse(tokenise $tokens) : void {\n\t\t$types = ['attribute', 'quotes'];\n\t\t$content = [];\n\t\twhile (($token = $tokens->next()) !== null && $token['type'] !== 'tagopenend') {\n\t\t\tif (in_array($token['type'], $types, true)) {\n\t\t\t\t$content[] = \\html_entity_decode(\\ltrim($token['value']));\n\t\t\t}\n\t\t}\n\t\t$this->content = $content;\n\t}", "public function testParsingEmptyTokens()\n {\n $this->assertEquals($this->ast, $this->parser->parse([]));\n }", "protected function parse()\n {\n\t$event_lines = explode(HCAL_LINE_SPLITER, $this->_Content);\n\n\tforeach ($event_lines as $line)\n\t{\n\t $result = $this->parseProperty($line);\n\t $this->_Properties[$result['name']] = $result['value'];\n\t}\n }", "private function mainPhase($token) {\n\n /* A DOCTYPE token */\n if($token['type'] === HTML5::DOCTYPE) {\n // Parse error. Ignore the token.\n\n /* A start tag token with the tag name \"html\" */\n } elseif($token['type'] === HTML5::STARTTAG && $token['name'] === 'html') {\n /* If this start tag token was not the first start tag token, then\n it is a parse error. */\n\n /* For each attribute on the token, check to see if the attribute\n is already present on the top element of the stack of open elements.\n If it is not, add the attribute and its corresponding value to that\n element. */\n foreach($token['attr'] as $attr) {\n if(!$this->stack[0]->hasAttribute($attr['name'])) {\n $this->stack[0]->setAttribute($attr['name'], $attr['value']);\n }\n }\n\n /* An end-of-file token */\n } elseif($token['type'] === HTML5::EOF) {\n /* Generate implied end tags. */\n $this->generateImpliedEndTags();\n\n /* Anything else. */\n } else {\n /* Depends on the insertion mode: */\n switch($this->mode) {\n case self::BEFOR_HEAD: return $this->beforeHead($token); break;\n case self::IN_HEAD: return $this->inHead($token); break;\n case self::AFTER_HEAD: return $this->afterHead($token); break;\n case self::IN_BODY: return $this->inBody($token); break;\n case self::IN_TABLE: return $this->inTable($token); break;\n case self::IN_CAPTION: return $this->inCaption($token); break;\n case self::IN_CGROUP: return $this->inColumnGroup($token); break;\n case self::IN_TBODY: return $this->inTableBody($token); break;\n case self::IN_ROW: return $this->inRow($token); break;\n case self::IN_CELL: return $this->inCell($token); break;\n case self::IN_SELECT: return $this->inSelect($token); break;\n case self::AFTER_BODY: return $this->afterBody($token); break;\n case self::IN_FRAME: return $this->inFrameset($token); break;\n case self::AFTR_FRAME: return $this->afterFrameset($token); break;\n case self::END_PHASE: return $this->trailingEndPhase($token); break;\n }\n }\n }", "public function parse(Twig_Token $token)\n {\n $grammar = $this->getGrammar();\n if (!is_object($grammar)) {\n $grammar = self::parseGrammar($grammar);\n }\n\n $grammar->setParser($this->parser);\n $values = $grammar->parse($token);\n\n return $this->getNode($values, $token->getLine());\n }", "abstract public function parse ();", "private function get_token() \n {\n if ($this->last_token === 'TK_TAG_SCRIPT' || $this->last_token === 'TK_TAG_STYLE') { //check if we need to format javascript\n $type = substr($this->last_token, 7);\n $token = $this->get_contents_to($type);\n if (!is_string($token)) {\n return $token;\n }\n return array($token, 'TK_' . $type);\n }\n if ($this->current_mode === 'CONTENT') {\n $token = $this->get_content();\n \n if (!is_string($token)) {\n return $token;\n } else {\n return array($token, 'TK_CONTENT');\n }\n }\n\n if ($this->current_mode === 'TAG') {\n $token = $this->get_tag();\n\n if (!is_string($token)) {\n return $token;\n } else {\n $tag_name_type = 'TK_TAG_' . $this->tag_type;\n return array($token, $tag_name_type);\n }\n }\n }", "protected function parse()\n {\n if($this->isRelationalKey()){\n $this->parsedValue = $this->makeRelationInstruction();\n } \n else {\n $this->parsedValue = $this->parseFlatValue($this->value);\n } \n }", "public static function parse(){\n self::$time_start = self::time();\n if(self::$state != self::STATE_READY){\n self::$error = 'Parser is not in a ready stage, current state: '.self::$state;\n self::$state = self::STATE_ERROR;\n return false;\n }\n if(self::$body == ''){\n self::$state = self::STATE_ERROR;\n self::$error = 'Body is empty';\n return false;\n }\n self::$state = self::STATE_ACTIVE;\n \n $run = true;\n while($run){\n $found = false;\n $find_open = strpos(self::$body, PARSER_OPEN_TOKEN);\n if($find_open !== false){\n $find_close = strpos(self::$body, PARSER_CLOSE_TOKEN, $find_open);\n if($find_close !== false){\n $found = true;\n $tag = substr(self::$body, $find_open, (($find_close-$find_open)+strlen(PARSER_CLOSE_TOKEN)) );\n $content = self::parse_tag($tag);\n self::$body = str_replace($tag, $content, self::$body);\n }\n }\n if(!$found){\n $run = false;\n }\n }\n self::$state = self::STATE_PARSED;\n self::time_exec();\n }", "public function createParser();", "function parse(&$reader, &$ctxt)\r\n\t{\r\n\t\t$parser =& new PhaseParser($reader, $ctxt);\r\n\t\t$output = '';\r\n\t\t\r\n\t\t// NOTE: this method provides an easy way to setup the tag libraries\r\n\t\t$parser->loadTagLibraries();\r\n\r\n\t\twhile ($reader->hasMoreInput())\r\n\t\t{\r\n\t\t\t$output .= $parser->parseElements();\r\n\t\t}\r\n\r\n\t\t// tack on the tag functions, wrapping them in the namespace\r\n\t\t// for this phase context\r\n\t\tif (count($parser->tagFunctions))\r\n\t\t{\r\n\t\t\t$output .= \r\n\t\t\t'<?php' . \"\\n\" .\r\n\t\t\t'class ' . $parser->namespace . ' {' . \"\\n\" .\r\n\t\t\timplode(\"\\n\", array_reverse($parser->tagFunctions)) . \"\\n\" .\r\n\t\t\t'}' . \"\\n\" .\r\n\t\t\t'?>' . \"\\n\";\t\r\n\t\t}\r\n\r\n\t\t// merge sections where php tags have become adjacent (no need for them)\r\n\t\t$output = preg_replace('; *\\?><\\?php *;', ' ', $output);\r\n\r\n\t\treturn $output;\r\n\t}", "public function parse($sub = false)\n {\n \n try {\n \n while($this->lexer->moveNext()) {\n \n $result = null;\n $scope = null;\n $parser = null;\n \n switch(true) {\n case($this->lexer->isNextToken(Lexer::T_GROUP_OPEN)) :\n \n # is the group character the first token? is the regex wrapped in brackets. \n //if($this->lexer->token === null) {\n // continue;\n //}\n \n # note this is a new group create new parser instance.\n $parser = new Parser($this->lexer,new Scope(),new Scope());\n \n $this->left = $parser->parse(true)->getResult();\n $this->head->attach($this->left); \n \n break;\n case($this->lexer->isNextToken(Lexer::T_GROUP_CLOSE)) :\n \n # group is finished don't want to contine this loop break = 2\n break 2;\n break;\n case ($this->lexer->isNextTokenAny(array(Lexer::T_LITERAL_CHAR,Lexer::T_LITERAL_NUMERIC))): \n \n # test for literal characters (abcd)\n $this->left = new LiteralScope();\n $this->left->addLiteral($this->lexer->lookahead['value']);\n $this->head->attach($this->left);\n \n break;\n case($this->lexer->isNextToken(Lexer::T_SET_OPEN)) :\n \n # character classes [a-z]\n $this->left = new LiteralScope();\n self::createSubParser('character')->parse($this->left,$this->head,$this->lexer);\n $this->head->attach($this->left);\n \n \n break;\n case ($this->lexer->isNextTokenAny(array(\n Lexer::T_DOT,\n Lexer::T_SHORT_D,\n Lexer::T_SHORT_NOT_D,\n Lexer::T_SHORT_W,\n Lexer::T_SHORT_NOT_W,\n Lexer::T_SHORT_S,\n Lexer::T_SHORT_NOT_S))):\n \n # match short (. \\d \\D \\w \\W \\s \\S)\n $this->left = new LiteralScope();\n self::createSubParser('short')->parse($this->left,$this->head,$this->lexer);\n $this->head->attach($this->left);\n \n \n break;\n case ($this->lexer->isNextTokenAny(array(\n Lexer::T_SHORT_P,\n Lexer::T_SHORT_UNICODE_X,\n Lexer::T_SHORT_X))):\n \n # match short (\\p{L} \\x \\X )\n $this->left = new LiteralScope();\n self::createSubParser('unicode')->parse($this->left,$this->head,$this->lexer);\n $this->head->attach($this->left);\n \n \n break;\n case ($this->lexer->isNextTokenAny(array(\n Lexer::T_QUANTIFIER_OPEN,\n Lexer::T_QUANTIFIER_PLUS,\n Lexer::T_QUANTIFIER_QUESTION,\n Lexer::T_QUANTIFIER_STAR,\n Lexer::T_QUANTIFIER_OPEN\n ))):\n \n # match quantifiers \n self::createSubParser('quantifer')->parse($this->left,$this->head,$this->lexer);\n \n break;\n case ($this->lexer->isNextToken(Lexer::T_CHOICE_BAR)):\n \n # match alternations\n $this->left = $this->head;\n \n $this->head = new Scope();\n $this->result->useAlternatingStrategy();\n $this->result->attach($this->head);\n \n \n break; \n default:\n # ignore character \n } \n \n \n }\n \n }\n catch(ParserException $e)\n {\n $pos = $this->lexer->lookahead['position'];\n $compressed = $this->compress();\n throw new ParserException(sprintf('Error found STARTING at position %s after `%s` with msg %s ',$pos,$compressed,$e->getMessage()));\n }\n \n return $this; \n }", "private function initPhase($token)\n {\n\n /* A DOCTYPE token that is marked as being in error\n A comment token\n A start tag token\n An end tag token\n A character token that is not one of one of U+0009 CHARACTER TABULATION,\n U+000A LINE FEED (LF), U+000B LINE TABULATION, U+000C FORM FEED (FF),\n or U+0020 SPACE\n An end-of-file token */\n if ((isset($token['error']) && $token['error']) ||\n $token['type'] === HTML5::COMMENT ||\n $token['type'] === HTML5::STARTTAG ||\n $token['type'] === HTML5::ENDTAG ||\n $token['type'] === HTML5::EOF ||\n ($token['type'] === HTML5::CHARACTR && isset($token['data']) &&\n !preg_match('/^[\\t\\n\\x0b\\x0c ]+$/', $token['data']))\n ) {\n /* This specification does not define how to handle this case. In\n particular, user agents may ignore the entirety of this specification\n altogether for such documents, and instead invoke special parse modes\n with a greater emphasis on backwards compatibility. */\n\n $this->phase = self::ROOT_PHASE;\n return $this->rootElementPhase($token);\n\n /* A DOCTYPE token marked as being correct */\n } elseif (isset($token['error']) && !$token['error']) {\n /* Append a DocumentType node to the Document node, with the name\n attribute set to the name given in the DOCTYPE token (which will be\n \"HTML\"), and the other attributes specific to DocumentType objects\n set to null, empty lists, or the empty string as appropriate. */\n $doctype = new DOMDocumentType(null, null, 'HTML');\n\n /* Then, switch to the root element phase of the tree construction\n stage. */\n $this->phase = self::ROOT_PHASE;\n\n /* A character token that is one of one of U+0009 CHARACTER TABULATION,\n U+000A LINE FEED (LF), U+000B LINE TABULATION, U+000C FORM FEED (FF),\n or U+0020 SPACE */\n } elseif (isset($token['data']) && preg_match(\n '/^[\\t\\n\\x0b\\x0c ]+$/',\n $token['data']\n )\n ) {\n /* Append that character to the Document node. */\n $text = $this->dom->createTextNode($token['data']);\n $this->dom->appendChild($text);\n }\n }", "private function _readValue($token) {}", "function read($token);", "public function getTokenParsers()\n {\n return array();\n }", "public function getTokenParsers()\n {\n return array();\n }", "protected function _getParser() {}", "private function initPhase($token) {\n\n /* A DOCTYPE token that is marked as being in error\n A comment token\n A start tag token\n An end tag token\n A character token that is not one of one of U+0009 CHARACTER TABULATION,\n U+000A LINE FEED (LF), U+000B LINE TABULATION, U+000C FORM FEED (FF),\n or U+0020 SPACE\n An end-of-file token */\n if((isset($token['error']) && $token['error']) ||\n $token['type'] === HTML5::COMMENT ||\n $token['type'] === HTML5::STARTTAG ||\n $token['type'] === HTML5::ENDTAG ||\n $token['type'] === HTML5::EOF ||\n ($token['type'] === HTML5::CHARACTR && isset($token['data']) &&\n !preg_match('/^[\\t\\n\\x0b\\x0c ]+$/', $token['data']))) {\n /* This specification does not define how to handle this case. In\n particular, user agents may ignore the entirety of this specification\n altogether for such documents, and instead invoke special parse modes\n with a greater emphasis on backwards compatibility. */\n\n $this->phase = self::ROOT_PHASE;\n return $this->rootElementPhase($token);\n\n /* A DOCTYPE token marked as being correct */\n } elseif(isset($token['error']) && !$token['error']) {\n /* Append a DocumentType node to the Document node, with the name\n attribute set to the name given in the DOCTYPE token (which will be\n \"HTML\"), and the other attributes specific to DocumentType objects\n set to null, empty lists, or the empty string as appropriate. */\n $doctype = new DOMDocumentType(null, null, 'HTML');\n\n /* Then, switch to the root element phase of the tree construction\n stage. */\n $this->phase = self::ROOT_PHASE;\n\n /* A character token that is one of one of U+0009 CHARACTER TABULATION,\n U+000A LINE FEED (LF), U+000B LINE TABULATION, U+000C FORM FEED (FF),\n or U+0020 SPACE */\n } elseif(isset($token['data']) && preg_match('/^[\\t\\n\\x0b\\x0c ]+$/',\n $token['data'])) {\n /* Append that character to the Document node. */\n $text = $this->dom->createTextNode($token['data']);\n $this->dom->appendChild($text);\n }\n }", "public function parse()\n {\n }", "abstract protected function parseCloseParenthese(TokenInterface $token, TokenInterface $openingToken);", "private function mainPhase($token)\n {\n\n /* A DOCTYPE token */\n if ($token['type'] === HTML5::DOCTYPE) {\n // Parse error. Ignore the token.\n\n /* A start tag token with the tag name \"html\" */\n } elseif ($token['type'] === HTML5::STARTTAG && $token['name'] === 'html') {\n /* If this start tag token was not the first start tag token, then\n it is a parse error. */\n\n /* For each attribute on the token, check to see if the attribute\n is already present on the top element of the stack of open elements.\n If it is not, add the attribute and its corresponding value to that\n element. */\n foreach ($token['attr'] as $attr) {\n if (!$this->stack[0]->hasAttribute($attr['name'])) {\n $this->stack[0]->setAttribute($attr['name'], $attr['value']);\n }\n }\n\n /* An end-of-file token */\n } elseif ($token['type'] === HTML5::EOF) {\n /* Generate implied end tags. */\n $this->generateImpliedEndTags();\n\n /* Anything else. */\n } else {\n /* Depends on the insertion mode: */\n switch ($this->mode) {\n case self::BEFOR_HEAD:\n return $this->beforeHead($token);\n break;\n case self::IN_HEAD:\n return $this->inHead($token);\n break;\n case self::AFTER_HEAD:\n return $this->afterHead($token);\n break;\n case self::IN_BODY:\n return $this->inBody($token);\n break;\n case self::IN_TABLE:\n return $this->inTable($token);\n break;\n case self::IN_CAPTION:\n return $this->inCaption($token);\n break;\n case self::IN_CGROUP:\n return $this->inColumnGroup($token);\n break;\n case self::IN_TBODY:\n return $this->inTableBody($token);\n break;\n case self::IN_ROW:\n return $this->inRow($token);\n break;\n case self::IN_CELL:\n return $this->inCell($token);\n break;\n case self::IN_SELECT:\n return $this->inSelect($token);\n break;\n case self::AFTER_BODY:\n return $this->afterBody($token);\n break;\n case self::IN_FRAME:\n return $this->inFrameset($token);\n break;\n case self::AFTR_FRAME:\n return $this->afterFrameset($token);\n break;\n case self::END_PHASE:\n return $this->trailingEndPhase($token);\n break;\n }\n }\n }", "abstract protected function newParser();", "public function parse( $contents );", "public function parse()\n {\n // TODO: Implement parse() method.\n }", "public function parse($source)\n {\n $this->source = $source;\n\n unset($source);\n $root = new Token('root');\n $root->filename = $this->filename;\n $this->buildTree($root);\n\n return $root;\n }", "public function parse()\n {\n $root = new SyntaxTreeNode('root');\n $nsMapping = new SyntaxTreeNode('nsMappings');\n $nodeTypes = new SyntaxTreeNode('nodeTypes');\n $root->addChild($nsMapping);\n $root->addChild($nodeTypes);\n\n while (!$this->tokenQueue->isEof()) {\n\n $this->debugSection('PARSER CYCLE');\n\n while ($this->checkToken(Token::TK_SYMBOL, '<')) {\n $nsMapping->addChild($this->parseNamespaceMapping());\n }\n\n if (!$this->tokenQueue->isEof()) {\n $nodeTypes->addChild($this->parseNodeTypeDef());\n }\n\n }\n\n return $root;\n }", "public function parse($document)\n {\n }", "public function parse() {\n\t\t$pointer = 0;\n\t\t$ar_line = array();\n\n\t\tforeach ($this->structure as $key => $length) {\n\t\t\t$ar_line[$key] = trim(substr($this->line, $pointer, $length), \"\\n\\r \");\n\t\t\t$pointer += $length;\n\t\t}\n\t\t$ar_line['stamp'] = md5(serialize($ar_line));\n\n\t\tif ($this->return == 'array') {\n\t\t\treturn $ar_line;\n\t\t}\n\t\treturn (object) $ar_line;\n\t}", "public function parse(array $tokens = array())\n {\n return $this->_buildTree(new \\ArrayIterator($tokens));\n }", "abstract public function token();", "function ParseStreams() {\n $URL = \"https://live.rbg.tum.de/cgi-bin/streams\";\n $html = file_get_html($URL);\n\n // Initialize basic data structure\n $data = [];\n $data[\"livestreams\"] = [];\n $data[\"vod\"] = [];\n $data[\"vod_archive\"] = [];\n // First index is normally current live events (first ul)\n // Second index is normally VOD - current semester (second ul)\n // Last index is normally VOD - archive (last ul)\n $index = 0;\n $indexToType = [0 => \"live\", 1 => \"vod\"];\n // If there are currently no active livestreams, the types shift (as 0 is now vod, because there is no ul with livestream-events existing)\n if (strpos($html->find(\"main\", 0), \"Derzeit gibt es keine aktiven Livestreams\")) {\n // If first is empty -> leave index of ul, if does not exist at all skip index\n if (sizeof($html->find(\"ul\", 0)->find(\"li\")) == 0) {\n $indexToType[0] = null;\n $indexToType[1] = \"vod\";\n } else {\n $indexToType[0] = \"vod\";\n $indexToType[1] = null;\n }\n }\n // Find the amount of all uls on the whole html page (to identify last one)\n $totalLists = sizeof($html->find(\"ul\"));\n // If the archive (last ul) was found already\n $archiveFound = false;\n for ($index; !$archiveFound; $index++) {\n\n // Check if we are in a sub ul of an VOD-Entry (then skip as this was already read in) or if we are at the last list entry\n if (!array_key_exists($index, $indexToType) && $index != $totalLists - 1) {\n continue;\n }\n\n // Find all lists to go through them\n $lists = $html->find(\"ul\", $index);\n\n // Check if we are in the archive ul\n if ($index == $totalLists - 1) {\n $archiveFound = true;\n $indexToType[$index] = \"vod_archive\";\n }\n\n // Got through each list entry and parse data\n foreach ($lists->find('li') as $entry) {\n $element = [];\n // If this is a live entry, get name and links\n if ($indexToType[$index] == \"live\") {\n $link = $entry->find('a');\n if (sizeof($link) > 1) {\n // Got a Livestream-Entry\n $element[\"info\"] = [];\n $element[\"links\"] = [];\n $element[\"info\"][\"name\"] = FormatText($link[0]->innertext);\n $element[\"links\"][\"overall\"] = FormatAndShortenLink($link[0]->attr[\"href\"]);\n if (sizeof($link) > 1) {\n $element[\"links\"][\"comb\"] = FormatAndShortenLink($link[1]->attr[\"href\"]);\n }\n if (sizeof($link) > 2) {\n $element[\"links\"][\"pres\"] = FormatAndShortenLink($link[2]->attr[\"href\"]);\n }\n if (sizeof($link) > 3) {\n $element[\"links\"][\"cam\"] = FormatAndShortenLink($link[3]->attr[\"href\"]);\n }\n }\n $data[\"livestreams\"][] = $element;\n } else if ($indexToType[$index] == \"vod\") {\n // If this is a VOD Entry it contains a header (in bold)\n if ($entry->find(\"b\") != null) {\n // Got a VOD Entry\n $element[\"info\"] = [];\n $element[\"videos\"] = [];\n $element[\"info\"][\"name\"] = FormatText($entry->find(\".vodlistth\", 0)->innertext);\n foreach ($entry->find(\"li\") as $videoEntry) {\n $retEntry = [];\n $link = $videoEntry->find('a');\n $retEntry[\"info\"][\"name\"] = FormatText($link[0]->innertext);\n $retEntry[\"links\"][\"overall\"] = FormatAndShortenLink($link[0]->attr[\"href\"]);\n if (sizeof($link) > 1) {\n $retEntry[\"links\"][\"comb\"] = FormatAndShortenLink($link[1]->attr[\"href\"]);\n }\n if (sizeof($link) > 2) {\n $retEntry[\"links\"][\"pres\"] = FormatAndShortenLink($link[2]->attr[\"href\"]);\n }\n if (sizeof($link) > 3) {\n $retEntry[\"links\"][\"cam\"] = FormatAndShortenLink($link[3]->attr[\"href\"]);\n }\n $element[\"videos\"][] = $retEntry;\n }\n $data[\"vod\"][] = $element;\n }\n } else if ($indexToType[$index] == \"vod_archive\") {\n // Got a VOD - Archive Entry\n $element[\"info\"] = [];\n $element[\"info\"][\"name\"] = FormatText($entry->find(\"a\", 0)->innertext);\n $element[\"info\"][\"link\"] = FormatLink($entry->find(\"a\", 0)->attr[\"href\"]);\n $data[\"vod_archive\"][] = $element;\n } else {\n break;\n }\n }\n }\n return $data;\n}", "public function parse(TokenStream $stream)\n {\n if ($stream->consume('CREATE TABLE')) {\n $stream->consume('IF NOT EXISTS');\n } else {\n throw new RuntimeException(\"Expected CREATE TABLE\");\n }\n\n $this->name = $stream->expectName();\n $stream->expectOpenParen();\n\n while (true) {\n $hasConstraintKeyword = $stream->consume('CONSTRAINT');\n if ($stream->consume('PRIMARY KEY')) {\n $this->parseIndex($stream, 'PRIMARY KEY');\n } elseif ($stream->consume('KEY') ||\n $stream->consume('INDEX')\n ) {\n if ($hasConstraintKeyword) {\n throw new RuntimeException(\"Bad CONSTRAINT\");\n }\n $this->parseIndex($stream, 'KEY');\n } elseif ($stream->consume('FULLTEXT')) {\n if ($hasConstraintKeyword) {\n throw new RuntimeException(\"Bad CONSTRAINT\");\n }\n $stream->consume('KEY') || $stream->consume('INDEX');\n $this->parseIndex($stream, 'FULLTEXT KEY');\n } elseif ($stream->consume('UNIQUE')) {\n $stream->consume('KEY') || $stream->consume('INDEX');\n $this->parseIndex($stream, 'UNIQUE KEY');\n } elseif ($stream->consume('FOREIGN KEY')) {\n $this->parseIndex($stream, 'FOREIGN KEY');\n } elseif ($hasConstraintKeyword) {\n $constraint = $stream->expectName();\n if ($stream->consume('PRIMARY KEY')) {\n $this->parseIndex($stream, 'PRIMARY KEY', $constraint);\n } elseif ($stream->consume('UNIQUE')) {\n $stream->consume('KEY') || $stream->consume('INDEX');\n $this->parseIndex($stream, 'UNIQUE KEY', $constraint);\n } elseif ($stream->consume('FOREIGN KEY')) {\n $this->parseIndex($stream, 'FOREIGN KEY', $constraint);\n } elseif ($stream->consume('CHECK')) {\n $this->parseCheck($stream, $constraint);\n } else {\n throw new RuntimeException(\"Bad CONSTRAINT\");\n }\n } else {\n $this->parseColumn($stream);\n }\n $token = $stream->nextToken();\n if ($token->eq(Token::SYMBOL, ',')) {\n continue;\n } elseif ($token->eq(Token::SYMBOL, ')')) {\n break;\n } else {\n throw new RuntimeException(\"Expected ',' or ')'\");\n }\n }\n\n $this->processTimestamps();\n $this->processIndexes();\n $this->processAutoIncrement();\n $this->parseTableOptions($stream);\n $this->processColumnCollations();\n }", "public function peek () {\n if ($this->done()) {\n throw new Exception(\"already at end of tokens!\");\n }\n return $this->tokens[0];\n }", "public function parse($data)\n\t\t{\n\t\t\t$tlvs = array();\n\t\t\tdo\n\t\t\t{\n\t\t\t\t$tlv_data = $this->_reader->read($data);\n\t\t\t\t$tlv = new TLV($tlv_data);\n\t\t\t\tif ($tlv->isConstruct())\n\t\t\t\t{\n\t\t\t\t\t$children = $this->parse($tlv->read());\n\t\t\t\t\tif (isset($children))\n\t\t\t\t\t{\n\t\t\t\t\t\tif (is_array($children))\n\t\t\t\t\t\t\t$tlv->addRange($children);\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\t$tlv->add($children);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$tlvs[] = $tlv;\n\t\t\t} while (strlen($data)>0);\n\n\t\t\tif (sizeof($tlvs)==0)\n\t\t\t\treturn null;\n\t\t\telse if (sizeof($tlvs)==1)\n\t\t\t\treturn $tlvs[0];\n\t\t\telse\n\t\t\t\treturn $tlvs;\n\t\t}", "public function parse(Twig_Token $token)\n\t{\n\t\t$stream = $this->parser->getStream();\n\t\t$collection = $this->parser->getExpressionParser()->parseExpression();\n\t\t$stream->expect('as');\n\t\t$as = $this->parser->getExpressionParser()->parseExpression();\n\t\t$noMinify = false;\n\t\tif ($stream->test(Twig_Token::NAME_TYPE, 'no_minify')) {\n\t\t\t$stream->next();\n\t\t\t$noMinify = true;\n\t\t}\n\t\t\n\t\t$stream->expect(Twig_Token::BLOCK_END_TYPE);\n\t\t$body = $this->parser->subparse(array($this, 'decideBlockEnd'), true);\n\t\t$stream->expect(Twig_Token::BLOCK_END_TYPE);\n\n\t\treturn new TwigAssets_Node_BuildAsset($collection, $as, $noMinify, $body, $token->getLine(), $this->getTag());\n\t}", "function parser_switch ( ) {\n\t\t// Parse buffer chunk\n\t\twhile ( strlen ( $this->buffer ) > 0 ) {\n\n\t\t\tswitch ( $this->pstate ) {\n\n\t\t\t\tcase $this->P_S_Ref:\n\t\t\t\t\t//$this->debug( 'Searching reference' );\n\t\t\t\t\t$pos = strpos ( $this->buffer, '@' );\n\t\t\t\t\tif ( $pos === FALSE ) {\n\t\t\t\t\t\t$this->buffer = '';\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$this->pstate = $this->P_R_Ref_Type;\n\t\t\t\t\t\t$this->raw_ref['type'] = '';\n\t\t\t\t\t\t$this->buffer = substr ( $this->buffer, $pos+1 );\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase $this->P_R_Ref_Type:\n\t\t\t\t\t//$this->debug( 'Reading reference type' );\n\t\t\t\t\t$matches = array();\n\t\t\t\t\t$type = '';\n\t\t\t\t\tif ( preg_match ( '/^([^,\\s{]+)/', $this->buffer, $matches ) > 0 ) {\n\t\t\t\t\t\t$type = $matches[1];\n\t\t\t\t\t\t$this->raw_ref['type'] .= $type;\n\t\t\t\t\t\t$this->buffer = substr ( $this->buffer, strlen ( $type ) );\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif ( strlen ( $this->raw_ref['type'] ) == 0 ) {\n\t\t\t\t\t\t\tthrow new tx_sevenpack_Parser_Exception ( 'Empty bibliography type' );\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//$this->debug( 'Found reference type: ' . $this->raw_ref['type'] );\n\t\t\t\t\t\t$this->pstate = $this->P_S_Ref_Beg;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase $this->P_S_Ref_Beg:\n\t\t\t\t\t$this->buffer = preg_replace ( '/^\\s*/', '', $this->buffer );\n\t\t\t\t\tif ( strlen ( $this->buffer ) > 0 ) {\n\t\t\t\t\t\tif ( substr ( $this->buffer, 0, 1 ) == \"{\" ) {\n\t\t\t\t\t\t\t//$this->debug( 'Found reference begin' );\n\t\t\t\t\t\t\t$this->buffer = substr ( $this->buffer, 1 );\n\t\t\t\t\t\t\t$this->pstate = $this->P_S_Id;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tthrow new tx_sevenpack_Parser_Exception ( 'Expected an {' );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase $this->P_S_Id:\n\t\t\t\t\t$this->buffer = preg_replace ( '/^\\s*/', '', $this->buffer );\n\t\t\t\t\tif ( strlen ( $this->buffer ) > 0 ) {\n\t\t\t\t\t\tif ( preg_match ( '/^[^,\\s]+/', $this->buffer ) > 0 ) {\n\t\t\t\t\t\t\t//$this->debug( 'Found citeid begin' );\n\t\t\t\t\t\t\t$this->pstate = $this->P_R_Id;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tthrow new tx_sevenpack_Parser_Exception ( 'Invalid citeid beginning' );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase $this->P_R_Id:\n\t\t\t\t\t$matches = array();\n\t\t\t\t\t$id = '';\n\t\t\t\t\tif ( preg_match ( '/^([^,\\s]+)/', $this->buffer, $matches ) > 0 ) {\n\t\t\t\t\t\t$id = $matches[1];\n\t\t\t\t\t\t$this->raw_ref['citeid'] .= $id;\n\t\t\t\t\t\t$this->buffer = substr ( $this->buffer, strlen ( $id ) );\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif ( strlen ( $this->raw_ref['citeid'] ) == 0 ) {\n\t\t\t\t\t\t\tthrow new tx_sevenpack_Parser_Exception ( 'Empty citeid' );\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//$this->debug( 'Found citeid: ' . $this->raw_ref['citeid'] );\n\t\t\t\t\t\t$this->pstate = $this->P_S_Comma;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase $this->P_S_Comma:\n\t\t\t\t\t$this->buffer = preg_replace ( '/^\\s*/', '', $this->buffer );\n\t\t\t\t\tif ( strlen ( $this->buffer ) > 0 ) {\n\t\t\t\t\t\t$char = substr ( $this->buffer, 0, 1 );\n\t\t\t\t\t\tif ( $char == \",\" ) {\n\t\t\t\t\t\t\t//$this->debug( 'Found Comma' );\n\t\t\t\t\t\t\t$this->buffer = substr ( $this->buffer, 1 );\n\t\t\t\t\t\t\t$this->pstate = $this->P_S_Pair_Name;\n\t\t\t\t\t\t} else if ( $char == \"}\" ) {\n\t\t\t\t\t\t\t//$this->debug( 'Found reference end' );\n\t\t\t\t\t\t\t$this->buffer = substr ( $this->buffer, 1 );\n\t\t\t\t\t\t\t$this->push_raw_ref();\n\t\t\t\t\t\t\t$this->pstate = $this->P_S_Ref;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tthrow new tx_sevenpack_Parser_Exception ( 'Expected , or } but found: ' . $char );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase $this->P_S_Pair_Name:\n\t\t\t\t\t$this->buffer = preg_replace ( '/^\\s*/', '', $this->buffer );\n\t\t\t\t\tif ( strlen ( $this->buffer ) > 0 ) {\n\t\t\t\t\t\t$char = substr ( $this->buffer, 0, 1 );\n\t\t\t\t\t\tif ( preg_match ( '/^[a-zA-Z_0-9]/', $char ) > 0 ) {\n\t\t\t\t\t\t\t//$this->debug( 'Found pair name begin' );\n\t\t\t\t\t\t\t$this->pair_name = '';\n\t\t\t\t\t\t\t$this->pstate = $this->P_R_Pair_Name;\n\t\t\t\t\t\t} else if ( $char == \"}\" ) {\n\t\t\t\t\t\t\t//$this->debug( 'Found reference end' );\n\t\t\t\t\t\t\t$this->buffer = substr ( $this->buffer, 1 );\n\t\t\t\t\t\t\t$this->push_raw_ref();\n\t\t\t\t\t\t\t$this->pstate = $this->P_S_Ref;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tthrow new tx_sevenpack_Parser_Exception ( 'Found illegal pair name characer: ' . $char );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase $this->P_R_Pair_Name:\n\t\t\t\t\t$matches = array();\n\t\t\t\t\t$str = '';\n\t\t\t\t\tif ( preg_match ( '/^([a-zA-Z_0-9]+)/', $this->buffer, $matches ) > 0 ) {\n\t\t\t\t\t\t$str = $matches[1];\n\t\t\t\t\t\t$this->pair_name .= $str;\n\t\t\t\t\t\t$this->buffer = substr ( $this->buffer, strlen ( $str ) );\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif ( strlen ( $this->pair_name ) == 0 ) {\n\t\t\t\t\t\t\tthrow new tx_sevenpack_Parser_Exception ( 'Empty value name' );\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//$this->debug( 'Found pair name: ' . $this->pair_name );\n\t\t\t\t\t\t$this->pstate = $this->P_S_Assign;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase $this->P_S_Assign:\n\t\t\t\t\t$this->buffer = preg_replace ( '/^\\s*/', '', $this->buffer );\n\t\t\t\t\tif ( strlen ( $this->buffer ) > 0 ) {\n\t\t\t\t\t\t$char = substr ( $this->buffer, 0, 1 );\n\t\t\t\t\t\tif ( $char == \"=\" ) {\n\t\t\t\t\t\t\t//$this->debug( 'Found Assignment' );\n\t\t\t\t\t\t\t$this->buffer = substr ( $this->buffer, 1 );\n\t\t\t\t\t\t\t$this->pstate = $this->P_S_Pair_Value;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tthrow new tx_sevenpack_Parser_Exception ( 'Expected = but found ' . $char );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\tcase $this->P_S_Pair_Value:\n\t\t\t\t\t$this->buffer = preg_replace ( '/^\\s*/', '', $this->buffer );\n\t\t\t\t\tif ( strlen ( $this->buffer ) > 0 ) {\n\t\t\t\t\t\t$char = substr ( $this->buffer, 0, 1 );\n\t\t\t\t\t\tif ( preg_match ( '/^[^}=]/', $char ) > 0 ) {\n\t\t\t\t\t\t\t//$this->debug( 'Found pair value begin: ' . $char );\n\t\t\t\t\t\t\tif ( ($char == \"{\") || ($char == \"'\") || ($char == \"\\\"\") ) {\n\t\t\t\t\t\t\t\t$this->pair_start = $char;\n\t\t\t\t\t\t\t\t$this->pair_value = '';\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t$this->pair_start = '';\n\t\t\t\t\t\t\t\t$this->pair_value = $char;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t$this->pair_brace = 0;\n\t\t\t\t\t\t\t$this->buffer = substr ( $this->buffer, 1 );\n\t\t\t\t\t\t\t$this->pstate = $this->P_R_Pair_Value;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tthrow new tx_sevenpack_Parser_Exception ( 'Found illegal pair value begin characer: ' . $char );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase $this->P_R_Pair_Value:\n\t\t\t\t\t//$this->debug( 'Reading pair value' );\n\t\t\t\t\t$go_on = true;\n\t\t\t\t\t$ii = 0;\n\t\t\t\t\t$last = 0;\n\t\t\t\t\t$prev_char = \"\";\n\n\t\t\t\t\twhile ( $go_on ) {\n\t\t\t\t\t\tif ( $ii > 0)\n\t\t\t\t\t\t\t$prev_char = $char;\n\t\t\t\t\t\t$char = $this->buffer{ $ii };\n\t\t\t\t\t\t$last = $ii;\n\n\t\t\t\t\t\tswitch ( $char ) {\n\t\t\t\t\t\t\tcase \"\\\"\":\n\t\t\t\t\t\t\tcase \"'\":\n\t\t\t\t\t\t\t\tif ( ($prev_char != \"\\\\\") && ($this->pair_start == $char) ) {\n\t\t\t\t\t\t\t\t\tif ( $this->pair_braces != 0 ) {\n\t\t\t\t\t\t\t\t\t\tthrow new tx_sevenpack_Parser_Exception ( 'Unbalanced brace count' );\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t$go_on = false;\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t$this->pair_value .= $char;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase \"{\":\n\t\t\t\t\t\t\t\t$this->pair_value .= $char;\n\t\t\t\t\t\t\t\tif ( $prev_char != \"\\\\\" ) {\n\t\t\t\t\t\t\t\t\t$this->pair_brace++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase \"}\":\n\t\t\t\t\t\t\t\tif ( $prev_char == \"\\\\\" ) {\n\t\t\t\t\t\t\t\t\t$this->pair_value .= $char;\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t$this->pair_brace--;\n\t\t\t\t\t\t\t\t\tif ( $this->pair_brace >= 0 ) {\n\t\t\t\t\t\t\t\t\t\t$this->pair_value .= $char;\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tif ( $this->pair_start == \"{\" ) {\n\t\t\t\t\t\t\t\t\t\t\t$go_on = false;\n\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\tthrow new tx_sevenpack_Parser_Exception ( 'Unbalanced brace count' );\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase \" \":\n\t\t\t\t\t\t\tcase \"\\t\":\n\t\t\t\t\t\t\tcase \",\":\n\t\t\t\t\t\t\t\tif ( $this->pair_start == \"\" ) {\n\t\t\t\t\t\t\t\t\t$last--;\n\t\t\t\t\t\t\t\t\t$go_on = false;\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t$this->pair_value .= $char;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\t$this->pair_value .= $char;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// Increment character position counter\n\t\t\t\t\t\tif ( !$go_on ) {\n\t\t\t\t\t\t\t//$this->debug( 'Found pair value end: ' . $char );\n\t\t\t\t\t\t\t$this->push_raw_pair();\n\t\t\t\t\t\t\t$this->pstate = $this->P_S_Comma;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif ( $ii < strlen( $this->buffer ) ) {\n\t\t\t\t\t\t\t\t$ii++;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t$go_on = false;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t$this->buffer = substr ( $this->buffer, $last+1 );\n\t\t\t\t\t//throw new tx_sevenpack_Parser_Exception ( 'Stopping here');\n\t\t\t\t\tbreak;\n\n\t\t\t\tdefault:\n\t\t\t\t\tthrow new tx_sevenpack_Parser_Exception ( 'Illegal BibTeX parser state: ' . strval ( $this->pstate ) );\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\n\n\t/**\n\t * Translates a raw reference to a useable reference structure\n\t */\n\tfunction translate_raw_ref ( $raw ) {\n\t\t$pub = array();\n\n\t\t// Bibtype\n\t\t$raw_val = strtolower ( $raw['type'] );\n\t\tif ( in_array ( $raw_val, $this->ref_read->allBibTypes ) ) {\n\t\t\t$pub['bibtype'] = array_search ( $raw_val, $this->ref_read->allBibTypes );\n\t\t} else {\n\t\t\tthrow new tx_sevenpack_Translator_Exception ( 'Unknown bibtype: ' . strval ( $raw_val ) );\n\t\t}\n\n\t\t// Citeid\n\t\t$pub['citeid'] = $raw['citeid'];\n\n\t\t// Iterate through all raw values\n\t\tforeach ( $raw['values'] as $r_key => $r_val ) {\n\t\t\t//t3lib_div::debug ( array( 'pre_trans' => $r_val) );\n\t\t\t$r_val = $this->translate_raw_string ( $r_val );\n\t\t\t//t3lib_div::debug ( array( 'post_trans' => $r_val) );\n\t\t\t$r_key = strtolower ( $r_key );\n\t\t\tswitch ( $r_key ) {\n\t\t\t\tcase 'author':\n\t\t\t\t\t$pub['authors'] = $this->translate_raw_authors ( $r_val );\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'state':\n\t\t\t\t\tforeach ( $this->ref_read->allStates as $ii => $state ) {\n\t\t\t\t\t\tif ( strtolower ( $r_val ) == $state ) {\n\t\t\t\t\t\t\t$r_val = $ii;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t$pub['state'] = $r_val;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'url':\n\t\t\t\tcase 'file_url':\n\t\t\t\t\t$pub['file_url'] = $r_val;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tif ( in_array ( $r_key, $this->pubKeys ) ) {\n\t\t\t\t\t\tif ( array_key_exists ( $r_key, $this->pubKeyMap ) )\n\t\t\t\t\t\t\t$r_key = $this->pubKeyMap[$r_key];\n\t\t\t\t\t\t$pub[$r_key] = $r_val;\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$this->stat['warnings'][] = 'Ignored field: ' . $r_key;\n\t\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn $pub;\n\t}\n\n\n\t/**\n\t * Translates some latex commands to sevenpack style\n\t * The input string should be ASCII\n\t */\n\tfunction translate_raw_string ( $raw ) {\n\t\t$res = $this->bt->translate ( $raw );\n\t\t$res = $this->code_to_utf8( $res );\n\t\t$res = $this->import_utf8_string( $res );\n\t\treturn $res;\n\t}\n\n\n\t/**\n\t * Translates a raw author string to an author array\n\t */\n\tfunction translate_raw_authors ( $authors ) {\n\t\t$res = array();\n\t\t$arr = preg_split ( '/[\\s]and[\\s]/i', $authors );\n\t\tforeach ( $arr as $a_str ) {\n\t\t\t$author = array();\n\t\t\t$a_str = trim ( $a_str );\n\t\t\tif ( strpos ( $a_str, ',' ) === FALSE ) {\n\t\t\t\t// No comma in author string\n\t\t\t\t$a_split = preg_split ( '/\\s+/', $a_str );\n\t\t\t\tforeach ( $a_split as &$a_part ) {\n\t\t\t\t\t$a_part = trim ( $a_part );\n\t\t\t\t}\n\t\t\t\t$author['forename'] = trim ( $a_split[0] );\n\t\t\t\tunset ( $a_split[0] );\n\t\t\t\t$author['surname'] = trim ( implode ( ' ', $a_split ) );\n\t\t\t} else {\n\t\t\t\t// Comma in author string\n\t\t\t\t$a_split = explode ( ',', $a_str );\n\t\t\t\tforeach ( $a_split as &$a_part ) {\n\t\t\t\t\t$a_part = trim ( $a_part );\n\t\t\t\t}\n\t\t\t\t$author['surname'] = trim ( $a_split[0] );\n\t\t\t\tunset ( $a_split[0] );\n\t\t\t\t$author['forename'] = trim ( implode ( ', ', $a_split ) );\n\t\t\t}\n\t\t\t$res[] = $author;\n\t\t}\n\t\treturn $res;\n\t}\n\n\n\t/**\n\t * Used to display debug messages\n\t */\n\tfunction debug ( $str ) {\n\t\tt3lib_div::debug( \n\t\t\tarray( 'debug' => '(' . strval ( $this->pline ) . ') ' . strval ( $str ) )\n\t\t);\n\t}\n\n\n}", "public function parse()\n {\n $raw = $this->getRaw();\n $count = count($raw);\n for ($i = 7; $i < $count; $i++) {\n $line = $raw[$i];\n\n $process = new Process(\n $line[11],\n $line[0],\n floatval($line[8]),\n floatval($line[9])\n );\n\n $this->processes[] = $process;\n }\n }", "protected static function _readValue(\\SetaPDF_Core_Tokenizer $tokenizer) {}" ]
[ "0.5938724", "0.5894717", "0.5755271", "0.56364423", "0.55995107", "0.55446464", "0.55425197", "0.5533345", "0.5533345", "0.5532451", "0.54854107", "0.54854107", "0.5422634", "0.5208889", "0.5197859", "0.5191089", "0.515141", "0.51367795", "0.511199", "0.5008954", "0.49839023", "0.4971341", "0.49609923", "0.49506658", "0.4942771", "0.4942771", "0.4941546", "0.49409226", "0.49196923", "0.49138626", "0.48931098", "0.48913443", "0.48866102", "0.48850185", "0.48752844", "0.48752844", "0.48752844", "0.4847639", "0.48474494", "0.484212", "0.48386747", "0.48364958", "0.48364958", "0.48364958", "0.48364958", "0.48273197", "0.4827105", "0.482493", "0.48160663", "0.48034158", "0.48027545", "0.4798293", "0.47971874", "0.4793112", "0.4783165", "0.47791448", "0.47788402", "0.47758967", "0.47743055", "0.47723216", "0.47689483", "0.4758077", "0.47538757", "0.47444263", "0.4742336", "0.47403517", "0.47371772", "0.47294658", "0.47206447", "0.4720269", "0.47156766", "0.47115898", "0.47111654", "0.4710826", "0.4704704", "0.4691984", "0.46897614", "0.46897614", "0.46781176", "0.467693", "0.46695262", "0.4662631", "0.46598905", "0.4655671", "0.4653954", "0.46405664", "0.4636682", "0.46352798", "0.46328583", "0.46252918", "0.46224302", "0.46202713", "0.46133935", "0.46069402", "0.45902625", "0.45586976", "0.45543295", "0.4553211", "0.45502383", "0.45464662" ]
0.54259896
12
Returns the file name the reflection object is defined in.
public function getFileName() { return $this->fileName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function myFilename()\r\n {\r\n $reflection = new ReflectionClass($this);\r\n\r\n return $reflection->getFileName();\r\n }", "public function getFileName() {\n if ( $this->reflectionSource instanceof ReflectionFunction ) {\n return $this->reflectionSource->getFileName();\n } else {\n return parent::getFileName();\n }\n }", "public function getFileReflection()\n\t{\n\t\treturn $this->getBroker()->getFile($this->fileName);\n\t}", "public function getFileName()\n {\n if (array_key_exists(\"fileName\", $this->_propDict)) {\n return $this->_propDict[\"fileName\"];\n } else {\n return null;\n }\n }", "public function getFileName(){\n\t\t$filename = sprintf($this->format, $this->classname) . '.php';\n\t\t\n\t\treturn $filename;\n\t}", "function getFilename()\n {\n return __FILE__;\n }", "public function getName(){\n if ($this->file)\n return $this->file->getName();\n }", "public function fileName()\n\t{\n\t\treturn 'application.data.' . get_class($this);\n\t}", "public function myFileLocation()\r\n {\r\n $reflection = new ReflectionClass($this);\r\n\r\n return dirname($reflection->getFileName());\r\n }", "public function getFilename($objConfig)\n {\n return File::getName($objConfig);\n }", "public function getFilename()\n {\n return __FILE__;\n }", "protected function getNameFormFileIn()\n {\n $formName = str_replace(' ', '', ucwords(str_replace('-', ' ', $this->owner->id)));\n return \"Form\" . $formName . ucfirst($this->owner->action->actionMethod) . 'In';\n }", "public function getFullFileName(){\n\t\t$filename = $this->modelsPath . '/' . sprintf($this->format, $this->classname) . '.php';\n\t\t\n\t\treturn $filename;\n\t}", "public function getDocFilename() {\r\n\t\treturn $this->class->name.($this->class instanceof AClassDoc ? \"-class\" : \"-interface\").\".html\";\r\n\t}", "public function toString() {\n return $this->getClassName().'['.$this->file->toString().']';\n }", "public static function path()\n {\n return class_basename(get_called_class());\n }", "public function getName() {\n $path = explode('\\\\', get_class($this->object[\"data\"]));\n return array_pop($path);\n }", "public function get_file_name() {\n\t\treturn $this->file;\n\t}", "public function getReference(){\n\t\t$absolute_path = $this->_function_reflection->getFileName();\n\t\t$this->_filepath = $absolute_path;\n\t\tif (strpos($absolute_path, ABSPATH)>=0){\n\t\t\t/**\n\t\t\t * Yay, it's from Wordpress!\n\t\t\t */\n\t\t\t$relative_path = str_replace(ABSPATH,'',$absolute_path);\n\t\t\t$is_native = strpos($relative_path, 'wp-includes/');\n\t\t\t$is_plugin = strpos($relative_path, 'wp-content/plugins/');\n\t\t\tif ($is_native !== false){\n\t\t\t\treturn 'WordPress function';\n\t\t\t} else if ($is_plugin !== false){\n\t\t\t\t$plugin_path = explode('/',str_replace('wp-content/plugins/','',$relative_path));\n\t\t\t\treturn 'Plugin: '.$plugin_path[0];\n\t\t\t}\n\t\t}\n\t\treturn 'PHP native';\n\t}", "public function name() {\n\t\t// @version 1.2.0 Use filename then fallback to path\n\t\t$path = $this->data('name') ?: $this->path();\n\n\t\treturn pathinfo($path, PATHINFO_FILENAME);\n\t}", "public function name() : string {\n return $this->file->name;\n }", "public function getFileName() {\n\t\t$spec = self::$specs[$this->id];\n\t\treturn array_value($spec, \"filename\", FALSE);\n\t}", "protected function get_file() {\n\n\t\treturn __FILE__;\n\t}", "public function getName() {\n if ( $this->reflectionSource instanceof ReflectionFunction ) {\n return $this->reflectionSource->getName();\n } else {\n return parent::getName();\n }\n }", "public static function getName()\n\t{\n\t\treturn self::$filename;\n\t}", "function GetFileName() {\n \treturn $this->FilePost[$this->ObjClientSide]['name'];\n }", "public function filename()\n\t{\n\t\treturn $this->_filename();\n\t}", "public function fileName()\n {\n $date = Carbon::now()->format('Y_m_d_Hms');\n $name = Str::lower(Str::snake($this->className()));\n\n return \"{$date}_{$name}.php\";\n }", "function _getFileName()\r\n\t{\r\n\t\t$f = $this->pathHomeDir . '/' . $this->pathLocale . '/' . $this->pathFile . \".\" . $this->pathEx;\r\n\t\treturn $f;\r\n\t}", "public function get_file() {\n\t\treturn __FILE__;\n\t}", "protected function getFileDescriptorByConvention()\n {\n $className = get_class($this);\n\n $parts = explode('\\\\', $className);\n $importPart = array_pop($parts);\n\n $descriptionFileName = str_replace('Model', '', $importPart);\n $descriptionFileName = $descriptionFileName . '.ini';\n return $descriptionFileName;\n }", "public function getFileName()\n {\n return $this->prefix.$this->scope.'_'.$this->comName;\n }", "public function GetRealFileName()\n {\n $oFileType = $this->GetFileType();\n\n return $this->id.'.'.$oFileType->sqlData['file_extension'];\n }", "public static function file() {\r\n\t\treturn __FILE__;\r\n\t}", "protected function ___filename() {\n\t\treturn $this->pagefiles->path . $this->basename;\n\t}", "public function getName()\n {\n return $this->_path['filename'];\n }", "public function getName()\n {\n return $this->file->getName();\n }", "public function getFilePath(): string\n {\n return oas_path(\n $this->version . '/components/schemas/' . $this->getFileName() . '.json'\n );\n }", "public function getExtensionName() {\n return $this->forwardCallToReflectionSource( __FUNCTION__ );\n }", "private function getBaseName() {\n\t\treturn pathinfo( $this->getImportFilePath(), PATHINFO_FILENAME );\n\t\t;\n\t}", "public static function getFullyQualifiedClassName() {\n $reflector = new \\ReflectionClass(get_called_class());\n return $reflector->getName();\n }", "public function getNameAttribute()\n {\n return pathinfo($this->file_path, PATHINFO_FILENAME);\n }", "public function getDefinitionFile()\n {\n return $this->definitionFile;\n }", "public function getFileName()\n {\n return $this->language.'/'.strtolower($this->getName());\n }", "public function getFileName()\n {\n $value = $this->get(self::FILENAME);\n return $value === null ? (string)$value : $value;\n }", "protected function getResourceModelFile() : string\n {\n return $this->getResourceModelDirectory(). DIRECTORY_SEPARATOR . $this->data['class_name'] .'.php';\n }", "function readNamePath()\r\n {\r\n $result=$this->className();\r\n\r\n if ($this->readOwner()!=null)\r\n {\r\n $s=$this->readOwner()->readNamePath();\r\n\r\n if ($s!=\"\") $result = $s . \".\" . $result;\r\n\r\n }\r\n\r\n return($result);\r\n }", "public function getName()\n\t{\n\t\treturn str_replace(\".{$this->getExtension()}\", '', $this->path);\n\t}", "public function filename() {\n\t\treturn $this->wire('hooks')->isHooked('Pagefile::filename()') ? $this->__call('filename', array()) : $this->___filename();\n\t}", "public function getName()\n\t{\n\t\tglobal $langs;\n\n\t\treturn $langs->trans('File');\n\t}", "public function name() {\n\t\treturn basename($this->path);\n\t}", "protected function getNameFormFileOut()\n {\n return \"Form\" . ucfirst($this->owner->id) . ucfirst($this->owner->action->actionMethod) . 'Out';\n }", "function getName() {\n\t\treturn $this->data_array['filename'];\n\t}", "public function getFilename()\n {\n return static::filename($this->path);\n }", "public function filename() : string {\n return $this->name;\n }", "public function getFileName() {\n return $this->name;\n }", "public function getUserClassFileName()\n {\n }", "public function getName()\n {\n return $this->file['name'];\n }", "protected function filename()\n {\n return 'navigation_' . date('Ymdhis');\n }", "public function buildFileName()\n {\n $twig = $this->container->get('twig');\n $globals = $twig->getGlobals();\n return $globals['fullName'].'-Resume.';\n }", "public function getFilename(): string\n {\n return DIR_TESTS . '/' . $this->module . '/Controller/' . $this->controller . 'Test.php';\n }", "public function get_file_name(){\n return $this->file_name;\n }", "private function _filename()\n\t{\n\t\t$ret = $this->_parent->{$this->_name.'_file_name'};\n\n\t\treturn empty($ret) ? false : $ret;\n\t}", "public function getCompiledName()\n\t{\n\t\treturn \"{$this->getFingerprint()}.{$this->type}\";\n\t}", "protected function filename () : string {\n return sprintf('%s/%s.csv', $this->instanceDirectory(), $this->guessName());\n }", "function getFileName()\n {\n return $this->fileName;\n }", "protected function filename()\n {\n return 'ReclassExport_' . time();\n }", "public function getNodename();", "public function getFilename() {}", "public function _getFileName()\n {\n return 'monitorTest';\n }", "function getClassFile($className) {\n\tglobal $_CLASS_MANIFEST;\n\tif(($pos = strpos($className,'_')) !== false) $className = substr($className,0,$pos);\n\tif($_CLASS_MANIFEST[$className]) return $_CLASS_MANIFEST[$className];\n}", "protected function fileName() {}", "public function getFileName()\n {\n return basename($this->file, '.' . $this->getExtension());\n }", "public function getFilename()\r\n {\r\n return pathinfo($this->filename, PATHINFO_BASENAME);\r\n }", "public static function getFilePath()\n\t{\n\t\treturn __FILE__;\n\t}", "public static function getFilePath()\n\t{\n\t\treturn __FILE__;\n\t}", "private function fileName()\n\t{\n\t\treturn $this->files[count($this->files) - 1];\n\t}", "public function getFileName() {\n\n return $this->_fileName;\n }", "public function getFileName()\n {\n return $this->fileName;\n }", "public function getFileName()\n {\n return $this->fileName;\n }", "public function getFileName()\n {\n return $this->fileName;\n }", "public function getFileName()\n {\n return $this->fileName;\n }", "public function getFileName()\n {\n return $this->fileName;\n }", "public function get_filename()\n {\n }", "public function getFilename();", "public function getFilename();", "public function getSourceFilePath(): string\n {\n $basePath = 'app/DataTransferObjects';\n if ($this->getDir()) {\n $basePath = $basePath.'/'.$this->getDir();\n }\n return base_path($basePath).'/'.$this->name.'.php';\n }", "public function __toString()\n {\n return basename(__FILE__) . ' v' . $this->classVersion . ' by Camilo Sperberg - http://unreal4u.com/';\n }", "public function getFilename() {\n return $this->getData('file');\n }", "public function getFileName()\n {\n return basename($this->path);\n }", "final public function getFile()\n {\n return 'file';\n }", "public function getFilename()\n {\n if (!$this->fileName) {\n $matcher = $this->getFileMatcher();\n $this->fileName = $this->searchFile($matcher);\n }\n\n return $this->fileName;\n }", "public function getFilename()\n {\n $file = basename($this->srcPath);\n\n $ops = str_replace(array('&', ':', ';', '?', '.', ','), '-', $this->operations);\n return trim($ops . '-' . $file, './');\n }", "public function filename(): string\n {\n return Str::random(6) . '_' . $this->type . $this->fileExtension();\n }", "public function getFileName();", "public function getFileName();", "public function getFileName();", "public function getNameFil()\n\t {\n\t return $this->nameFile;\n\t }", "static function findBaseName($object)\n {\n $reflect = new \\ReflectionClass($object);\n \n return $reflect->getShortName();\n }" ]
[ "0.77349806", "0.7625621", "0.7216131", "0.67432505", "0.66846913", "0.66521347", "0.66188794", "0.6609661", "0.65812415", "0.6555343", "0.6504265", "0.6485729", "0.6461284", "0.6454226", "0.6442351", "0.64370424", "0.6425946", "0.6424141", "0.6399855", "0.6390376", "0.63713074", "0.6366839", "0.63640624", "0.63623524", "0.63597596", "0.6337049", "0.633609", "0.6329434", "0.63258475", "0.6318294", "0.63170165", "0.6313347", "0.63034576", "0.6301793", "0.62963086", "0.62937385", "0.62737274", "0.62512255", "0.624809", "0.6233504", "0.62256825", "0.6216211", "0.6215192", "0.620219", "0.61919165", "0.618022", "0.616862", "0.61229044", "0.6114007", "0.6112342", "0.6105359", "0.6102703", "0.60923696", "0.60886824", "0.6061979", "0.60396", "0.60346514", "0.6028422", "0.60241866", "0.602139", "0.5996406", "0.59929574", "0.5982855", "0.5979812", "0.5979463", "0.5977521", "0.597264", "0.596979", "0.5941209", "0.5940249", "0.5934199", "0.5929858", "0.5928022", "0.5921087", "0.5916081", "0.5916081", "0.5915071", "0.5910108", "0.5903119", "0.5903119", "0.5903119", "0.5903119", "0.5903119", "0.59001833", "0.58956087", "0.58956087", "0.58951056", "0.5888513", "0.58870715", "0.58853173", "0.5875775", "0.58727825", "0.5870031", "0.5868986", "0.58597344", "0.58597344", "0.58597344", "0.5855237", "0.5854963" ]
0.5949506
69
Returns a file reflection.
public function getFileReflection() { return $this->getBroker()->getFile($this->fileName); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function reflect(string $file): ReflectionHierarchy;", "public function getFileReflection()\n\t{\n\t\tthrow new Exception\\BrokerException($this->getBroker(), sprintf('Function was not parsed from a file', $this->getPrettyName()), Exception\\BrokerException::UNSUPPORTED);\n\t}", "public function getFileInstance()\n {\n return $this->file;\n }", "public static function getType() {\n\t\treturn \"File\";\n\t}", "function getFile(): object {\n return $this->file;\n }", "function getReflectionClass();", "public function getReflectionClass();", "public static function getReflection()\n\t{\n\t\treturn new \\ReflectionClass( get_called_class() );\n\t}", "public static function getFile() {}", "final public function getFile()\n {\n return 'file';\n }", "protected function _getFile($type, $file)\n {\n if ($type == 'class') {\n $file = $this->_class_dir . \"$file\";\n }\n \n if ($type == 'package') {\n $file = $this->_package_dir . \"$file\";\n }\n \n return $file;\n }", "public function getReflectionService() {}", "public function getFileInfo();", "public function type()\n\t{\n\t\treturn self::lookup($this->file);\n\t}", "protected function fileObj() {\n\t\t$fileObj = new Varien_Io_File ();\n\t\treturn $fileObj;\n\t}", "public static function getInfo($file)\n\t{\n\t\t$file = str_replace('\\\\', '/', $file);\n\t\t$info \t\t\t\t= @pathinfo($file);\n\t\t$info['path']\t\t= $file;\n\t\t$info['absolute']\t= @str_replace('\\\\', '/', @realpath($file));\n\t\t$info['width']\t\t= @getimagesize($file)[0];\n\t\t$info['height']\t\t= @getimagesize($file)[1];\n\t\t$info['created']\t= @filectime($file);\n\t\t$info['modified']\t= @filemtime($file);\n\t\t$info['size']\t\t= @filesize($file);\n\t\t$info['type']\t\t= @filetype($file);\n\t\t$info['owner']\t\t= @fileowner($file);\n\t\t$info['group']\t\t= @filegroup($file);\n\t\t$info['perms']\t\t= @decoct(@fileperms($file));\n\t\t$info['writable']\t= @is_writable($file);\n\t\t$info['readable']\t= @is_readable($file);\n\t\t$info['exists']\t\t= @file_exists($file);\n\t\t$info['isfile']\t\t= @is_file($file);\n\t\t$info['isdir']\t\t= @is_dir($file);\n\t\t$info['islink']\t\t= @is_link($file);\n\t\t$info['mimetype'] \t= NULL;\n\t\t$info['encoding'] \t= NULL;\n\t\tif ($info['exists'])\n\t\t{\n\t\t\tif (class_exists('finfo'))\n\t\t\t{\n\t\t\t\t$finfo = new \\finfo();\n\t\t\t\t$finfo->set_flags(FILEINFO_MIME_TYPE);\n\t\t\t\t$info['mimetype']\t= $finfo->file($info['path']); \n\t\t\t\t$finfo->set_flags(FILEINFO_MIME_ENCODING);\n\t\t\t\tif ($info['mimetype'] != 'application/octet-stream')\n\t\t\t\t{\n\t\t\t\t\t$info['encoding'] = $finfo->file($info['path']); \n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn (object) $info;\n\t}", "public function getFile()\n {\n return $this->readOneof(1);\n }", "public function file()\n {\n return $this->morphOne(File::class, 'fileable');\n }", "private function getTypeFile($type) {\n return new File($this->path, $type);\n }", "function get_file()\n\t{\n\t\treturn $this->file;\n\t}", "public function getFile() {}", "public function getFile() {}", "final function getFile();", "function & getFileInstance() \n {\n $vfile =& v()->filesystem()->file();\n \t return $vfile;\n }", "function getClassFile($className) {\n\tglobal $_CLASS_MANIFEST;\n\tif(($pos = strpos($className,'_')) !== false) $className = substr($className,0,$pos);\n\tif($_CLASS_MANIFEST[$className]) return $_CLASS_MANIFEST[$className];\n}", "public function getFile ();", "public function getFile();", "public function getFile();", "public function get_file()\n {\n return $this->file;\n }", "public function get_file() {\n\t\treturn $this->file;\n\t}", "abstract protected function getFile(): File;", "public function getf() {\n return $this->file;\n }", "public function getFile()\n {\n return $this->_File;\n }", "public function getReflectionData()\n {\n return $this->_reflectionData;\n }", "public function getFile()\n {\n return $this->file;\n }", "public function getFile()\n {\n return $this->file;\n }", "public function getFile()\n {\n return $this->file;\n }", "public function getFile()\n {\n return $this->file;\n }", "public function getFile()\n {\n return $this->file;\n }", "public function getFile()\n {\n return $this->file;\n }", "public function getFile()\n {\n return $this->file;\n }", "public function getFile()\n {\n return $this->file;\n }", "public function getFile()\n {\n return $this->file;\n }", "public function getFile()\n {\n return $this->file;\n }", "public function getFile()\n {\n return $this->file;\n }", "public function toString() {\n return $this->getClassName().'['.$this->file->toString().']';\n }", "public function getFileProcObj() {}", "public function getFileProcObj() {}", "protected function buildClass()\n {\n return $this->files->get($this->getStub());\n }", "public function fileInfo() {\n $this->file = file_load($this->fid);\n\n // Creating an array of stream wrappers that will be removed.\n $streams = array();\n foreach (stream_get_wrappers() as $stream) {\n $streams[] = $stream . '://';\n }\n\n // Generate the folder name by the unique URI of the file.\n $file_name = str_replace($streams, '', $this->file->uri);\n $folder_name = str_replace(array('.', '_'), '-', $file_name);\n\n $files_folder = variable_get('file_public_path', conf_path() . '/files');\n\n $this->filePath = $files_folder . '/' . $file_name;\n $this->extractPath = $files_folder . '/' . $folder_name;\n }", "function getFile() {\n\t\treturn ArtifactStorage::instance()->get($this->getID());\n\t}", "public function getFileType() {\n return $this->type;\n }", "protected function getFileFactory() {}", "public function getFile() {\n return $this->file;\n }", "public function getFile() {\n return $this->file;\n }", "public function file()\n {\n return $this->file;\n }", "public function getFile() {\n\t\treturn $this->data['file'];\n\t}", "public function getFile()\n\t{\n\t\treturn $this->file;\n\t}", "public function getFile()\n\t{\n\t\treturn $this->file;\n\t}", "public function getFile(): string;", "public function getFile(): string;", "public function getFile(): string;", "public function getFile($path)\n\t{\n\t\tif (!is_file($path))\n\t\t\treturn null;\n\n\t\t$pathArray = explode('/', $path);\n\t\t$filename = end($pathArray);\n\n\t\treturn (object) [\n\t\t\t'name' => $filename,\n\t\t\t'type' => File::extension($filename),\n\t\t\t'tmpName' => null,\n\t\t\t'error' => false,\n\t\t\t'size' => filesize($path),\n\t\t\t'field' => null,\n\t\t\t'key' => 0,\n\t\t];\n\t}", "public function getFileInfo()\n {\n return $this->_info;\n }", "public function file() {\n return $this->file;\n }", "abstract public function getReflection($method);", "public function getFile() {\n return $this->getFiles()->getFirst();\n }", "public function type() {\n\t\treturn $this->_cache(__FUNCTION__, function($file) {\n\t\t\t$type = null;\n\n\t\t\t// We can't use the file command on windows\n\t\t\tif (!defined('PHP_WINDOWS_VERSION_MAJOR')) {\n\t\t\t\t$type = shell_exec(sprintf(\"file -b --mime %s\", escapeshellarg($file->path())));\n\n\t\t\t\tif ($type && strpos($type, ';') !== false) {\n\t\t\t\t\t$type = strstr($type, ';', true);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Fallback because of fileinfo bug: https://bugs.php.net/bug.php?id=53035\n\t\t\tif (!$type) {\n\t\t\t\t$info = finfo_open(FILEINFO_MIME_TYPE);\n\t\t\t\t$type = finfo_file($info, $file->path());\n\t\t\t\tfinfo_close($info);\n\t\t\t}\n\n\t\t\t// Check the mimetype against the extension or $_FILES type\n\t\t\t// If they are different, use the upload type since fileinfo returns invalid mimetypes\n\t\t\t// This could be problematic in the future, but unknown better alternative\n\t\t\t$extType = $file->data('type') ?: MimeType::getTypeFromExt($file->ext());\n\n\t\t\tif ($type !== $extType) {\n\t\t\t\t$type = $extType;\n\t\t\t}\n\n\t\t\treturn $type;\n\t\t});\n\t}", "public function getFile()\n\t{\n\t\treturn $this->file; \n\n\t}", "public function getClass(): ReflectionClass;", "private function _file()\n {\n return Html::getAttributeValue($this->model, $this->attribute);\n }", "public function getFile() {\n\n return $this->file;\n }", "private function resolveFile($type)\n {\n if ($type == 'd') {\n return new Directory;\n } else {\n return new File;\n }\n }", "final public static function getFile($type = NULL) {\n\n return \\Library\\Folder\\Files::getInstance($type);\n }", "public function getFileMetadata()\n {\n return $this->get('FileMetadata');\n }", "function file($name) {\n $this->loadStructure();\n return @$this->files[$name];\n }", "public function typeOfFile($path);", "protected function getFileInfo() : \\SplFileInfo\n {\n return new \\SplFileInfo(static::FILE_NAME);\n }", "public function findFile($class);", "public function getExtendedType()\n {\n return FileType::class;\n }", "protected function getFactoryByFile( File $file ) {\n\t\t$extension = strtolower( $file->getExtension() );\n\t\treturn $this->getFactoryByType( $extension );\n\t}", "public function getFsType() {}", "public function getReflect()\n {\n return $this->_reflect;\n }", "public function getFileInfo()\n\t{\n\t\treturn $this->data;\n\t}", "public function getFile(): string\n {\n return $this->file;\n }", "public function file($key=null,$value=null){\n return $this->methodsData(\"file\",$key,$value);\n }", "function _file_get_type($file) {\n $ext = file_ext($file);\n if (preg_match(\"/$ext/i\", get_setting(\"image_ext\")))\n return IMAGE;\n if (preg_match(\"/$ext/i\", get_setting(\"audio_ext\")))\n return AUDIO;\n if (preg_match(\"/$ext/i\", get_setting(\"video_ext\")))\n return VIDEO;\n if (preg_match(\"/$ext/i\", get_setting(\"document_ext\")))\n return DOCUMENT;\n if (preg_match(\"/$ext/i\", get_setting(\"archive_ext\")))\n return ARCHIVE;\n }", "public function getReflector()\n {\n \n return new ReflectionObject($this->object);\n \n }", "function get_file_description($file)\n {\n }", "public function getFile($type = 'document')\n {\n return $this->files()->where('type' , '=', $type)->get()->first();\n }", "public function getReflectionClass()\n {\n return new \\ReflectionClass($this->getName());\n }", "function LoadClassFile($file_name){\n\t// Get file contents\n\t$file_handle = fopen($file_name, 'r');\n\t$file_data = fread($file_handle, filesize($file_name));\n\tfclose($file_handle);\n\treturn $file_data;\n}", "public function getFileType()\n {\n return $this->fileType;\n }", "function get_file_type($file)\n {\n global $image_types, $movie_types;\n \n $pos = strrpos($file, \".\");\n if ($pos === false) {\n return \"Unknown File\";\n }\n \n $ext = rtrim(substr($file, $pos + 1), \"~\");\n if (in_array($ext, $image_types)) {\n $type = \"Image File\";\n \n } elseif (in_array($ext, $movie_types)) {\n $type = \"Video File\";\n \n } elseif (in_array($ext, $archive_types)) {\n $type = \"Compressed Archive\";\n \n } elseif (in_array($ext, $document_types)) {\n $type = \"Type Document\";\n \n } elseif (in_array($ext, $font_types)) {\n $type = \"Type Font\";\n \n } else {\n $type = \"File\";\n }\n \n return (strtoupper($ext) . \" \" . $type);\n }", "public function getReflected(): ReflectionClass\n {\n return $this->reflected;\n }", "private function processFile() {\n if ($this->isFileAllowed()) {\n $path_parts = pathinfo($this->filepath);\n $extention = $path_parts['extension'];\n\n $classes = get_declared_classes();\n\n foreach($classes as $class) {\n $reflect = new \\ReflectionClass($class);\n if($reflect->implementsInterface('App\\\\Classes\\\\IFileFormat')) {\n if ($extention === $class::getFileExtension()) {\n $fileFormat = new $class($this->filepath);\n $this->charsCount = $fileFormat->getCharactersCount();\n $this->wordsCount = $fileFormat->getWordsCount();\n }\n }\n }\n }\n }", "private function __getFileType($filePath, $relativePath = null) {\n $fi = new finfo(FILEINFO_MIME_TYPE);\n\n if (! file_exists($filePath)) {\n return false;\n }\n\n $type = $fi->file($filePath);\n\n $filePathInfo = pathinfo($filePath);\n\n $fileSize = filesize($filePath);\n\n $fileModified = filemtime($filePath);\n\n $filePreview = false;\n\n // Check if the file type supports previews\n if ($this->__supportsPreviews($type) && $this->showThumbnails) {\n $filePreview = true;\n }\n\n return array(\n 'name' => $filePathInfo['basename'],\n 'extension' => (isset($filePathInfo['extension']) ? $filePathInfo['extension'] : null),\n 'dir' => $filePathInfo['dirname'],\n 'path' => $filePath,\n 'relativePath' => $relativePath,\n 'size' => $this->__formatSize($fileSize),\n 'size_bytes' => $fileSize,\n 'modified' => $fileModified,\n 'type' => 'file',\n 'mime' => $type,\n 'url' => $this->__getUrl($filePathInfo['basename']),\n 'preview' => $filePreview,\n 'target' => ($this->openLinksInNewTab ? '_blank' : '_parent')\n );\n }", "protected function getFiles_FilespecService()\n {\n return new \\phpbb\\files\\filespec(${($_ = isset($this->services['filesystem']) ? $this->services['filesystem'] : ($this->services['filesystem'] = new \\phpbb\\filesystem\\filesystem())) && false ?: '_'}, ${($_ = isset($this->services['language']) ? $this->services['language'] : $this->getLanguageService()) && false ?: '_'}, ${($_ = isset($this->services['php_ini']) ? $this->services['php_ini'] : ($this->services['php_ini'] = new \\bantu\\IniGetWrapper\\IniGetWrapper())) && false ?: '_'}, ${($_ = isset($this->services['upload_imagesize']) ? $this->services['upload_imagesize'] : ($this->services['upload_imagesize'] = new \\FastImageSize\\FastImageSize())) && false ?: '_'}, './../', ${($_ = isset($this->services['mimetype.guesser']) ? $this->services['mimetype.guesser'] : $this->getMimetype_GuesserService()) && false ?: '_'}, ${($_ = isset($this->services['plupload']) ? $this->services['plupload'] : $this->getPluploadService()) && false ?: '_'});\n }", "function getFileObject($path)\n{\n\t$pathinfo = pathinfo($path);\n\t$filename = $pathinfo[\"basename\"];\n\t$displayName = $filename; //to be updated in the future\n\t\n\t$streamers = array();\n\t\n\tforeach(getAvailableConverters($path) as $s)\n\t{\n\t\t$streamers[] = array(\"extension\" => $s->toFileType->extension, \"fileConverterID\" => $s->id, \"mediaType\" => $s->toFileType->mediaType);\n\t}\n\treturn array(\n\t\t\"filename\" \t\t=> $filename,\n\t\t\"displayName\"\t=> $displayName,\n\t\t\"converters\"\t\t=> $streamers,\n\t\t\n\t);\n}", "public function myFilename()\r\n {\r\n $reflection = new ReflectionClass($this);\r\n\r\n return $reflection->getFileName();\r\n }" ]
[ "0.7036687", "0.62320715", "0.61566097", "0.61448807", "0.6127205", "0.6105305", "0.60861945", "0.6065893", "0.6036341", "0.5985036", "0.58901006", "0.5888788", "0.5882624", "0.5859791", "0.5848131", "0.57897633", "0.5783947", "0.57667524", "0.57469475", "0.5726383", "0.571375", "0.57130027", "0.5711063", "0.570464", "0.56910044", "0.5682956", "0.5668714", "0.5668714", "0.5664781", "0.5654582", "0.5650041", "0.563647", "0.56338704", "0.56166095", "0.56144625", "0.56144625", "0.56144625", "0.56144625", "0.56144625", "0.56144625", "0.56144625", "0.56144625", "0.56144625", "0.56144625", "0.56144625", "0.5607171", "0.56054723", "0.5603863", "0.5594807", "0.55880326", "0.55869377", "0.55820525", "0.557823", "0.5568945", "0.5568945", "0.5564634", "0.5549711", "0.55470425", "0.55470425", "0.5543977", "0.5543977", "0.5543977", "0.5540429", "0.55367684", "0.5531464", "0.55245686", "0.55186063", "0.5516067", "0.5500954", "0.5500196", "0.5494763", "0.54845744", "0.5482769", "0.547769", "0.54626155", "0.54564375", "0.5443767", "0.54315704", "0.541473", "0.54138386", "0.5405055", "0.5399006", "0.53943586", "0.53932816", "0.53798336", "0.5379045", "0.5357334", "0.535521", "0.5350771", "0.5349369", "0.5348984", "0.5335467", "0.5333764", "0.5297829", "0.52917325", "0.5278628", "0.526796", "0.5266623", "0.5255991", "0.52557224" ]
0.8251049
0
Returns the definition start line number in the file.
public function getStartLine() { return $this->startLine; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getStartLine(): int\n {\n return $this->node->getStartLine();\n }", "public function getStartLine(): int\n {\n return $this->node->getAttribute('startLine');\n }", "public function getLine(): int\n {\n return $this->node->start_lineno;\n }", "public function getStartLine() {\n if ( $this->reflectionSource instanceof ReflectionFunction ) {\n return $this->reflectionSource->getStartLine();\n } else {\n return parent::getStartLine();\n }\n }", "public function getFilePos() {\n\t\treturn $this->linepointer;\n\t}", "public function getLineNumber();", "public function getLineNumber();", "public function getLineNumber()\n\t{\n\t\treturn $this->lineNumber;\n\t}", "public function getLineNr()\n {\n return $this->lineNr;\n }", "public function getLineNumber(){\n if( $this->index ){\n return substr_count($this->input, \"\\n\", 0, $this->index) + 1;\n }\n return 1;\n }", "public function getStartLine()\n\t{\n\t\treturn null;\n\t}", "public function get_footnotes_generated_start() {\n return $this->footnotes_generated_start;\n }", "public function getCurrentLineNumber()\n {\n try {\n $li = $this->getMostRecentLineIndex();\n return $this->_model['lines'][$li]['number'];\n } catch (\\Exception $e) {\n return null;\n }\n }", "public function getOffsetStart()\n\t{\n\t\treturn $this->start + 1;\n\t}", "protected static function getLineNumbersStart($openingTag) {\n\t\t$start = 1;\n\t\tif (!empty($openingTag['attributes'][0])) {\n\t\t\t$start = intval($openingTag['attributes'][0]);\n\t\t\tif ($start < 1) $start = 1;\n\t\t}\n\t\t\n\t\treturn $start;\n\t}", "public function getLine():int {\n\t\t\treturn $this->line;\n\t\t}", "public function getLine(): int\n {\n return $this->line;\n }", "public function getLine(): int\n {\n return $this->line;\n }", "public function getStartOffset() {}", "public function getStart(): int\n {\n return $this->start;\n }", "public function getStart(): int\n {\n return $this->start;\n }", "public function getStart(): int\n {\n return $this->start;\n }", "public function getFirstLine(): ?int {\n return $this->firstLine;\n }", "public function getLine()\n\t{\n\t\treturn $this->token->line;\n\t}", "public function getStartPosition()\n\t{\n\t\treturn -1;\n\t}", "protected function loadDocCommentPos(): ?int\n {\n $docHelper = $this->getDocHelper();\n\n return $docHelper->hasDocBlock() ? $docHelper->getBlockStartPosition() : null;\n }", "public function getStartPosition()\n\t{\n\t\treturn $this->startPosition;\n\t}", "public function getCurrentLine()\n {\n return $this->lineno;\n }", "public function getStartIndex()\n {\n return $this->start_index;\n }", "protected function get_offset(): int\n\t{\n\t\treturn $this->start;\n\t}", "public function getLine_numbers()\n\t{\n\t\treturn $this->getParser()->line_numbers;\n\t}", "public function startPositionFromCenter(int $line): int\n {\n\n $start = $line - $this->getHalf();\n\n return $start < 1 ? 1 : $start;\n\n }", "public function getLine(): int\n\t{\n\t\treturn $this->err->getLine();\n\t}", "public function getStartPosition() {\r\n return $this->startPosition;\r\n }", "public function getOriginalLineNo(): int\n {\n return intval($this->originalLineNo);\n }", "public function get_position()\n {\n\n if ( $file = fopen($this->path,\"r\") ) {\n\n $string_number = 0;\n $position = 0;\n while(($line = fgets($file,4096)) !== false && !$position) {\n\n $string_number++;\n if(strpos($line,$this->str) !== false) {\n\n $position = strpos($line,$this->str);\n }\n }\n echo 'номер строки: ' . $string_number . ', позиция: ' . ($position+1);\n\n } else {\n\n echo 'ничего не вышло';\n\n }\n\n }", "public function getStart(): int;", "function getLine()\r\n {\r\n\t\t\tdo\r\n\t\t\t{\r\n\t\t\t\t$sLine = trim($this->referString[$this->currentLine]);\r\n\t\t\t\t$this->currentLine++;\r\n\t\t\t} while ($this->currentLine < count($this->referString) && !$sLine);\r\n\t\t\treturn $sLine;\r\n }", "public function getStartBeginning();", "protected function get_line() { \n\t\t$line = $this->lines[$this->cursor]; \n\t\t$this->cursor++; return $line; \n\t}", "private function getStart()\n\t{\n//\t\tprint '#'.$this->getPage().'-'.$this->getRowsPerPage().'#';\n\t\t$iStart = ( ($this->getPage() - 1) * $this->getRowsPerPage() );\n\t\tif($iStart < 0)\n\t\t{\n\t\t\t$iStart = 0;\n\t\t}\n//\t\tprint $iStart.'*';\n\t\treturn $iStart;\n//\t\tprint $this->start .'*';\n\t}", "public function getLineId(): int\n {\n return $this->lineId;\n }", "public function getLine() {\n\t\treturn $this->line;\n\t}", "public function getLine()\n\t{\n\t\treturn $this->line;\n\t}", "public function getStart(): ?int\n {\n return $this->start;\n }", "protected function _findStartOffset() {}", "public function getNewLineNo(): int\n {\n return intval($this->newLineNo);\n }", "public function getLineRef()\n {\n return $this->lineRef;\n }", "public function getDefinitionFile()\n {\n return $this->definitionFile;\n }", "public function getStartColumn()\n {\n return $this->start_column;\n }", "public function getLine()\n {\n return $this->line;\n }", "public function getLine()\n {\n return $this->line;\n }", "public function getLine()\n {\n return $this->line;\n }", "public function getLine()\n {\n return $this->line;\n }", "public function getLine()\n {\n return $this->line;\n }", "public function getLine()\n {\n return $this->line;\n }", "public function getStartCursor()\n {\n return $this->start_cursor;\n }", "public function getLine() {\r\n return $this->node->getLine();\r\n }", "static function findRealSourceLineForFunctionCall($fnName, $startLineNum, $phpLines) {\n\n // Reverse back to original order.\n $phpLines = array_reverse($phpLines);\n\n if (!hasu_($fnName)) {\n $fnName = u_($fnName);\n }\n $fnName = strtolower($fnName);\n\n $lineNum = $startLineNum;\n while (true) {\n $line = $phpLines[$lineNum];\n\n if (strpos(strtolower($line), $fnName) !== false) {\n return $lineNum;\n }\n\n $lineNum -= 1;\n if (!$lineNum) {\n return $startLineNum;\n }\n }\n }", "private function getOffset()\n {\n $this->current_offset = null;\n \n $headers = $this->getHead();\n \n if (isset($headers['Offset']) === true) {\n $this->current_offset = $headers['Offset'];\n }\n \n return $this->current_offset;\n }", "protected function _getSloc($file)\n {\n $analyser = new Analyser();\n $results = $analyser->countFiles(array($file), false);\n\n // lloc = Logical Lines of Code\n return $results['lloc'];\n }", "private function findHeaderCommentInsertionIndex(Tokens $tokens)\n {\n $index = $tokens->getNextNonWhitespace(0);\n\n if (null === $index) {\n // empty file, insert at the end\n $index = $tokens->getSize();\n }\n\n return $index;\n }", "public function getLeaderLineOffset() {}", "public function get_start_offset()\n {\n }", "public function getLineId()\n {\n return $this->line_id;\n }", "public function setFilePos($pos) {\n\t\t$this->linepointer = $pos;\n\t\treturn $this->linepointer;\n\t}", "public function firstLine(){\n return $this->file[0] ?? '';\n }", "public function getStart() {\n $p = $this->getPage();\n if(is_null($p) || $p == 1){\n $start = 1;\n } else {\n $start = (self::MAX_RESULTS) * ($p - 1) + 1;\n }\n return $start;\n }", "private function findOffset()\n {\n $this->seek(0);\n\n $offset = 0;\n\n while (!$this->isEndOfFile()) {\n if (strtolower($this->read(1)) === self::$sequence[$offset]) {\n $offset++;\n } else {\n $offset = 0;\n }\n\n if (!isset(self::$sequence[$offset + 1])) {\n break;\n }\n }\n\n $this->seek(1, SEEK_CUR);\n\n if ($offset === (count(self::$sequence) - 1)) {\n $position = $this->getPosition();\n\n if (\"\\r\\n\" === $this->read(2)) {\n return $position + 2;\n }\n\n return $position;\n }\n\n return null;\n }", "protected function getDocCommentPos()\n {\n if ($this->docCommentPos === false) {\n $this->docCommentPos = $this->loadDocCommentPos();\n }\n\n return $this->docCommentPos;\n }", "public function getLine() {\n return $this->line;\n }", "function getStart() {\n\t\t\treturn $this->start;\n\t\t}", "function startPageRecordNumber() {\n $paging = $this->params();\n $startRecord = 0;\n if ($paging['count'] >= 1) {\n $startRecord = (($paging['page'] - 1) * $paging['options']['limit']);\n }\n return $startRecord;\n }", "public function getEndLine(): int\n {\n return $this->node->getEndLine();\n }", "protected function nodeStart(Node $node)\n {\n $attributes = $node->getAttributes();\n if (!isset($attributes['startFilePos'])) {\n throw new \\LogicException(\"replaceNode requires startFilePos and endFilePos to be set. \"\n . \"Check your Lexer usedAttributes option!\");\n }\n return $attributes['startFilePos'];\n }", "public function getFirstRow() : int\n {\n\n // Convert A1:D3 to D3.\n list($startRef,) = explode(':', $this->getTableNode()->getAttribute('ref'));\n\n // Convert A1 to 1.\n $startRow = (int) ( preg_replace('/([A-Z])/', '', $startRef) );\n\n return $startRow;\n }", "public function getEndLine(): int\n {\n return $this->node->end_lineno;\n }", "public function get_line()\n {\n return $this->line;\n }", "public function getStart() {\n\t\treturn $this->attributes['start'];\n\t}", "public function getStart()\n {\n return ($this->curPage - 1) * $this->nbPerPage;\n }", "function ozh_wbsu_get_number_of_lines($file_to_read) {\n $file = new \\SplFileObject($file_to_read, 'r');\n $file->seek(PHP_INT_MAX);\n return ($file->key() + 1);\n}", "public function getDefinitionId () {\n return $this->definitionId;\n }", "public function getPosition()\r\n {\r\n return ftell($this->handle);\r\n }", "final private function _methodLineNumber ($classOrObject, $method) {\n\t\t$ref = new ReflectionMethod($classOrObject, $method);\n\t\treturn $ref->getStartLine();\n\t}", "public function hasLineNumber(){\n return $this->_has(4);\n }", "public static function getLastRunStart(array $definition) {\n $state = \\Drupal::state();\n $key = self::getStateKey($definition);\n return $last = $state->get($key, 0);\n }", "public function getStart() {\n\t\treturn $this->start;\n\t}", "protected function getListStart()\n {\n return $this->_listStart;\n }", "public function getStart ()\r\n\t{\r\n\t\treturn $this->start;\r\n\t}", "public function getDocblockOpenPtr(): int|false\n {\n return $this->phpcsFile->findPrevious(T_DOC_COMMENT_OPEN_TAG, $this->scopePtr, false, false, '/**', true);\n }", "function pos(){\n return ftell($this->handle);\n }", "protected function getCalledLine(array $stackTrace)\n {\n return $stackTrace[0]['line'];\n }", "function get_begin()\n {\n return $this->get_default_property(self :: PROPERTY_BEGIN);\n }", "public function get_file_pointer()\n {\n if (( $offset = @ftell($this->file_handle) ) === false) {\n throw new Ai1wm_Not_Tellable_Exception(sprintf('Unable to tell offset of file. File: %s', $this->file_name));\n }\n\n return $offset;\n }", "public function getLine()\n {\n return $this->get(self::_LINE);\n }", "public function getStart()\n {\n return $this->start;\n }", "public function getStart()\n {\n return $this->start;\n }", "public function getStart()\n {\n return $this->start;\n }", "public function getStart()\n {\n return $this->start;\n }", "public function getStart()\n {\n return $this->start;\n }" ]
[ "0.75917614", "0.75578386", "0.74634945", "0.7121775", "0.70218724", "0.6977419", "0.6977419", "0.67975116", "0.6760457", "0.6718711", "0.67020035", "0.66132313", "0.6594882", "0.65025795", "0.6384491", "0.63815105", "0.6379705", "0.6379705", "0.6371645", "0.63430625", "0.63430625", "0.63430625", "0.6322024", "0.63127065", "0.62919825", "0.62290365", "0.6226274", "0.61987334", "0.6159709", "0.6136397", "0.608618", "0.60544884", "0.603273", "0.6032082", "0.60200953", "0.59690166", "0.5941098", "0.59214586", "0.59076595", "0.5903139", "0.58249474", "0.58166707", "0.58140963", "0.58138174", "0.58044326", "0.5793613", "0.5776421", "0.576375", "0.57630914", "0.57611865", "0.57579184", "0.57579184", "0.57579184", "0.57579184", "0.57579184", "0.57579184", "0.5724647", "0.5721347", "0.5720602", "0.56993514", "0.568652", "0.56801766", "0.56776613", "0.5677168", "0.56760836", "0.5666321", "0.5659881", "0.563913", "0.56385857", "0.56320626", "0.5616997", "0.5609804", "0.560853", "0.5584584", "0.55793726", "0.5578263", "0.556311", "0.5560147", "0.5547865", "0.55421036", "0.55373776", "0.5534466", "0.5525059", "0.55199426", "0.55173945", "0.54997677", "0.5491392", "0.54781485", "0.5475785", "0.54716045", "0.5463797", "0.54627097", "0.5455514", "0.54531187", "0.5429419", "0.54239815", "0.54239815", "0.54239815", "0.54239815", "0.54239815" ]
0.71247154
3
Returns the definition end line number in the file.
public function getEndLine() { return $this->endLine; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getEndLine(): int\n {\n return $this->node->end_lineno;\n }", "public function getEndLine(): int\n {\n return $this->node->getEndLine();\n }", "public function getEndLine(): int\n {\n return $this->node->getAttribute('endLine');\n }", "public function getEndLine() {\n if ( $this->reflectionSource instanceof ReflectionFunction ) {\n return $this->reflectionSource->getEndLine();\n } else {\n return parent::getEndLine();\n }\n }", "public function getEndLine() {\n\t\treturn $this->end_line;\n\t}", "public function getFilePos() {\n\t\treturn $this->linepointer;\n\t}", "public function getLineNumber();", "public function getLineNumber();", "public function getLine(): int\n {\n return $this->node->start_lineno;\n }", "public function getLineNr()\n {\n return $this->lineNr;\n }", "public function getLineNumber(){\n if( $this->index ){\n return substr_count($this->input, \"\\n\", 0, $this->index) + 1;\n }\n return 1;\n }", "public function getLastLine()\n {\n return $this->lastLine;\n }", "public function getEndPosition()\n\t{\n\t\treturn -1;\n\t}", "public function getLineNumber()\n\t{\n\t\treturn $this->lineNumber;\n\t}", "public function getEndLine()\n\t{\n\t\treturn null;\n\t}", "public function getEndPosition()\n\t{\n\t\treturn $this->endPosition;\n\t}", "public function getCurrentLineNumber()\n {\n try {\n $li = $this->getMostRecentLineIndex();\n return $this->_model['lines'][$li]['number'];\n } catch (\\Exception $e) {\n return null;\n }\n }", "public function getEnd(): int\n {\n return $this->end;\n }", "public function getEndPosition() {\r\n return $this->endPosition;\r\n }", "public function getLine(): int\n {\n return $this->line;\n }", "public function getLine(): int\n {\n return $this->line;\n }", "public function lastLine(){\n return $this->file[array_key_last($this->file)] ?? '';\n }", "public function getEndIndex()\n {\n return $this->end_index;\n }", "public function getLongestLineNumberLength(): int\n {\n return 0;\n }", "private function getMostRecentLineIndex()\n {\n $c = count($this->_model['lines']);\n if ($c <= 0) {\n throw new \\Exception(\"No lines have been added. The $memberName method applies to the most recent line. To use this function, first add a line.\");\n }\n\n return $c-1;\n }", "public function getLine():int {\n\t\t\treturn $this->line;\n\t\t}", "public function getDefinitionFile()\n {\n return $this->definitionFile;\n }", "public function getEnd(): int;", "public function getStartLine(): int\n {\n return $this->node->getStartLine();\n }", "public function lastLine()\n {\n $this->line()->application->cursor->previousLine();\n }", "public function getLine(): int\n\t{\n\t\treturn $this->err->getLine();\n\t}", "public function getLine_numbers()\n\t{\n\t\treturn $this->getParser()->line_numbers;\n\t}", "protected function _getNewLineCode()\n {\n return count($this->_lines) + 1;\n }", "public function getEndRow(): int\n {\n return $this->end;\n }", "public function getStartLine(): int\n {\n return $this->node->getAttribute('startLine');\n }", "public function getEndColumn()\n {\n return $this->end_column;\n }", "public function GetBarMaxLineNumber()\n\t{\n\t\t$m = 1;\n\t\tif ($this->iObj != null) {\n\t\t\t$m = $this->iObj[0]->GetLineNbr();\n\t\t\t$n = safe_count($this->iObj);\n\t\t\tfor ($i = 1; $i < $n; ++$i) {\n\t\t\t\t$m = max($m, $this->iObj[$i]->GetLineNbr());\n\t\t\t}\n\t\t}\n\n\t\treturn $m;\n\t}", "public function getOffsetEnd()\n\t{\n\t\treturn $this->start + count($this->entities);\n\t}", "public function getNewLineNo(): int\n {\n return intval($this->newLineNo);\n }", "public function get_footnotes_generated_start() {\n return $this->footnotes_generated_start;\n }", "public function getEndLocation()\n {\n return $this->end_location;\n }", "public function getDocblockCloserPtr(): int\n {\n $docblockOpenerPtr = $this->getDocblockOpenPtr();\n $docblockOpener = $this->tokens[$docblockOpenerPtr];\n\n return $docblockOpener['comment_closer'];\n }", "public function getLine()\n\t{\n\t\treturn $this->token->line;\n\t}", "function getLine()\r\n {\r\n\t\t\tdo\r\n\t\t\t{\r\n\t\t\t\t$sLine = trim($this->referString[$this->currentLine]);\r\n\t\t\t\t$this->currentLine++;\r\n\t\t\t} while ($this->currentLine < count($this->referString) && !$sLine);\r\n\t\t\treturn $sLine;\r\n }", "public function getEnd(): ?int\n {\n return $this->end;\n }", "public function getEnd(): ?int\n {\n return $this->end;\n }", "public function getOriginalLineNo(): int\n {\n return intval($this->originalLineNo);\n }", "function pos(){\n return ftell($this->handle);\n }", "public function getPosition()\r\n {\r\n return ftell($this->handle);\r\n }", "protected function get_line() { \n\t\t$line = $this->lines[$this->cursor]; \n\t\t$this->cursor++; return $line; \n\t}", "public function getLineId(): int\n {\n return $this->lineId;\n }", "public static function getLastRunEnd(array $definition) {\n $state = \\Drupal::state();\n $key = self::getStateKey($definition) . '.end';\n return $last = $state->get($key, 0);\n }", "public function getDefinitionId () {\n return $this->definitionId;\n }", "public function getCurrentLine()\n {\n return $this->lineno;\n }", "function getEnd() {\n\t\t\treturn $this->end;\n\t\t}", "public function numLines()\n {\n if($this->state['numlines']) {\n return $this->state['numlines'];\n } else {\n $numRows = self::numRowsInFile($this->vars['ifn']);\n if($numRows < 100){\n $numRows = self::numRowsInFileAccurate($this->vars['ifn'],$this->vars['delimiter'], $this->vars['quotechar'], $this->vars['escapechar']);\n }\n $this->state['numlines'] = $numRows;\n return $this->state['numlines'];\n }\n }", "public function getEndOfLine()\n {\n return $this->endOfLine;\n }", "public function tell()\n {\n return ftell($this->_getFileHandle());\n }", "public function getEndCursor()\n {\n return $this->end_cursor;\n }", "private function findOffset()\n {\n $this->seek(0);\n\n $offset = 0;\n\n while (!$this->isEndOfFile()) {\n if (strtolower($this->read(1)) === self::$sequence[$offset]) {\n $offset++;\n } else {\n $offset = 0;\n }\n\n if (!isset(self::$sequence[$offset + 1])) {\n break;\n }\n }\n\n $this->seek(1, SEEK_CUR);\n\n if ($offset === (count(self::$sequence) - 1)) {\n $position = $this->getPosition();\n\n if (\"\\r\\n\" === $this->read(2)) {\n return $position + 2;\n }\n\n return $position;\n }\n\n return null;\n }", "public function getLineRef()\n {\n return $this->lineRef;\n }", "protected function loadDocCommentPos(): ?int\n {\n $docHelper = $this->getDocHelper();\n\n return $docHelper->hasDocBlock() ? $docHelper->getBlockStartPosition() : null;\n }", "public function getLinesCount();", "public function getLastRow() : int\n {\n\n // Convert A1:D3 to D3.\n list(,$endRef) = explode(':', $this->getTableNode()->getAttribute('ref'));\n\n // Convert D3 to 3.\n $endRow = (int) ( preg_replace('/([A-Z])/', '', $endRef) );\n\n return $endRow;\n }", "public function import_get_nb_of_lines($file)\n\t{\n // phpcs:enable\n return dol_count_nb_of_line($file);\n }", "public function hasLineNumber(){\n return $this->_has(4);\n }", "public function getFirstLine(): ?int {\n return $this->firstLine;\n }", "public function getEnd()\n\t{\n\t\treturn $this->End;\n\t}", "protected function get_line_len()\n {\n return count($this->buffer);\n }", "public function get_last_tab_index() {\n\t\t\n\t\treturn $this->last_tab_index;\n\t\t\n\t}", "public function getLeaderLineOffset() {}", "public function get_file_pointer()\n {\n if (( $offset = @ftell($this->file_handle) ) === false) {\n throw new Ai1wm_Not_Tellable_Exception(sprintf('Unable to tell offset of file. File: %s', $this->file_name));\n }\n\n return $offset;\n }", "public function getLineCount() {}", "public function getLastLine()\n {\n $buffer = $this->getBuffer();\n $lines = preg_split('/\\r\\n|\\r|\\n/', $buffer);\n return array_pop($lines);\n }", "public function getEnd()\n {\n return $this->end;\n }", "public function getEnd()\n {\n return $this->end;\n }", "public function getEnd()\n {\n return $this->end;\n }", "public function getEnd()\n {\n return $this->end;\n }", "public function getEnd()\n {\n return $this->end;\n }", "public function getEnd()\n {\n return $this->end;\n }", "protected function get_offset(): int\n\t{\n\t\treturn $this->start;\n\t}", "public function get_line()\n {\n return $this->line;\n }", "public function getLine()\n\t{\n\t\treturn $this->line;\n\t}", "public function getHeaderEnd()\n {\n return self::HEADER_END;\n }", "public function getDocblockOpenPtr(): int|false\n {\n return $this->phpcsFile->findPrevious(T_DOC_COMMENT_OPEN_TAG, $this->scopePtr, false, false, '/**', true);\n }", "public function getLine() {\n\t\treturn $this->line;\n\t}", "public function getEndAt()\n {\n return $this->end_at;\n }", "public function getEndAt()\n {\n return $this->end_at;\n }", "public function getLine()\n {\n return $this->line;\n }", "public function getLine()\n {\n return $this->line;\n }", "public function getLine()\n {\n return $this->line;\n }", "public function getLine()\n {\n return $this->line;\n }", "public function getLine()\n {\n return $this->line;\n }", "public function getLine()\n {\n return $this->line;\n }", "function ozh_wbsu_get_number_of_lines($file_to_read) {\n $file = new \\SplFileObject($file_to_read, 'r');\n $file->seek(PHP_INT_MAX);\n return ($file->key() + 1);\n}", "public function numLines() {\r\n\t\treturn $this->lines;\r\n\t}", "public function getRangeEnd()\n {\n return $this->range_end;\n }", "public function getLineId()\n {\n return $this->line_id;\n }", "public function current() {\r\n\t\treturn $this->lastLine;\r\n }", "public function get_position()\n {\n\n if ( $file = fopen($this->path,\"r\") ) {\n\n $string_number = 0;\n $position = 0;\n while(($line = fgets($file,4096)) !== false && !$position) {\n\n $string_number++;\n if(strpos($line,$this->str) !== false) {\n\n $position = strpos($line,$this->str);\n }\n }\n echo 'номер строки: ' . $string_number . ', позиция: ' . ($position+1);\n\n } else {\n\n echo 'ничего не вышло';\n\n }\n\n }" ]
[ "0.750394", "0.7283641", "0.71694005", "0.68261975", "0.67444336", "0.66855687", "0.6655314", "0.6655314", "0.6418576", "0.6338213", "0.63302004", "0.62906253", "0.62682617", "0.6220057", "0.6207956", "0.6117554", "0.6107686", "0.6098133", "0.6074422", "0.60463685", "0.60463685", "0.60399127", "0.6011201", "0.59846145", "0.5955276", "0.5953846", "0.59455454", "0.5941429", "0.5936475", "0.5862413", "0.58607113", "0.5830845", "0.5830114", "0.5811287", "0.5809786", "0.57409143", "0.5705193", "0.56901455", "0.5687806", "0.56691754", "0.56656843", "0.5663328", "0.56598824", "0.5659475", "0.56549984", "0.56549984", "0.5653925", "0.5627917", "0.5611566", "0.5610497", "0.56008285", "0.55934703", "0.55806935", "0.5575732", "0.55646867", "0.5558858", "0.5546786", "0.5526483", "0.55107313", "0.5502597", "0.5500618", "0.54995847", "0.54979473", "0.5483086", "0.54788077", "0.547211", "0.54333407", "0.5431975", "0.5413417", "0.5412816", "0.5395883", "0.5380678", "0.53780466", "0.5369885", "0.5365142", "0.5365142", "0.5365142", "0.5365142", "0.5365142", "0.5365142", "0.5354453", "0.5351982", "0.5350686", "0.53450537", "0.53421825", "0.5337907", "0.5333885", "0.5333885", "0.5324168", "0.5324168", "0.5324168", "0.5324168", "0.5324168", "0.5324168", "0.5314472", "0.5311781", "0.5306009", "0.5304993", "0.52918196", "0.5271188" ]
0.66158104
8
Returns the PHP extension reflection. Alwyas returns null everything is user defined.
public function getExtension() { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getExtension() {\n if ( $this->getExtensionName() === false ) {\n return null;\n } else {\n if ( $this->reflectionSource instanceof ReflectionFunction ) {\n return new ezcReflectionExtension(\n $this->reflectionSource->getExtension()\n );\n } else {\n // using the name, since otherwhise the object would be treated like an\n // external reflection implementation and that would decrease performance\n return new ezcReflectionExtension( parent::getExtensionName() );\n }\n }\n }", "function getReflectionClass();", "public function getReflectionClass();", "public function getExtension();", "public function getExtension();", "public function getExtension();", "public static function getReflection()\n\t{\n\t\treturn new \\ReflectionClass( get_called_class() );\n\t}", "public function getExtension() {}", "public function getExtension() {}", "public function getRequiredPhpExtension() {\n return $this->__requiredPhpExtension;\n }", "public function extension()\n\t{\n\t\t$type = $this->type();\n\t\treturn self::getExtension($type);\n\t}", "public function phpExt(): array\n {\n return \\get_loaded_extensions();\n }", "public function phpExt(): array\n {\n return \\get_loaded_extensions();\n }", "public abstract function getExtension();", "function getExtension() ;", "public function getReflectionService() {}", "public function getExtension($name) {}", "public function getExtensionPoint();", "function sa_phpInfoLite() // Returns loaded PHP extensions and versions\n{\n $values = array(\n 'php' => phpversion(),\n 'os' => php_uname(),\n 'extensions' => get_loaded_extensions(),\n );\n\n // assign extension version if available\n if ($values['extensions']) {\n foreach ($values['extensions'] as $lkey => $extension) {\n $values['extensions'][$lkey] = phpversion($extension) ? $extension. \n ' ('. phpversion($extension). ')' : $extension;\n }\n }\n\n return $values;\n}", "public function getClass(): ReflectionClass;", "public static function getPHPExtensionRequired(){\n\t\treturn 'java';\n\t}", "public function get_extension()\n {\n return $this->m_extension;\n }", "static public function grabPhpInfos() {\n $php = [\n 'version' => str_replace(PHP_EXTRA_VERSION, '', PHP_VERSION),\n 'modules' => get_loaded_extensions(),\n 'setup' => [\n 'max_execution_time' => ini_get('max_execution_time'),\n 'memory_limit' => ini_get('memory_limit'),\n 'post_max_size' => ini_get('post_max_size'),\n 'safe_mode' => ini_get('safe_mode'),\n 'session' => ini_get('session.save_handler'),\n 'upload_max_filesize' => ini_get('upload_max_filesize')\n ]\n ];\n\n return $php;\n }", "public function getExtensionName() {\n return $this->forwardCallToReflectionSource( __FUNCTION__ );\n }", "public function getReflectionClass()\n {\n return new \\ReflectionClass($this->getName());\n }", "public function getExtension() : string;", "protected static function getPhpInfo() {}", "public function get_extension()\n {\n }", "public function getExtension(): string\n {\n return $this->getMeta()->getExtension();\n }", "abstract public function getReflection($method);", "public function getReflector()\n {\n if ($this->reflector) {\n return $this->reflector;\n }\n\n return $this->reflector = new ReflectionClass($this->config);\n }", "public function getExtension()\n {\n \treturn $this->_extension;\n }", "protected function extensions() \n {\n return ['php'];\n }", "function wp_get_ext_types()\n {\n }", "public function toPhpReflectionClass()\n {\n return new \\ReflectionClass($this->getAnnotationName());\n }", "public function getPhpExtensionsConfig() {\n\t\treturn $this->_getConfigValueArrayMultiple('PHPextensions');\n\t}", "public function getExtension(string $name);", "public function getExtension(){\n $guesser = \"\\Symfony\\Component\\Mime\\MimeTypes\";\n if (class_exists($guesser) !== false) {\n /** @var Symfony\\Component\\Mime\\MimeTypes $guesser */\n $extensions = $guesser::getDefault()->getExtensions($this->getMimeType());\n return $extensions[0] ?? null;\n }\n\n $deprecated_guesser = \"\\Symfony\\Component\\HttpFoundation\\File\\MimeType\\ExtensionGuesser\";\n if (class_exists($deprecated_guesser) !== false){\n /** @var \\Symfony\\Component\\HttpFoundation\\File\\MimeType\\ExtensionGuesser $deprecated_guesser */\n return $deprecated_guesser::getInstance()->guess($this->getMimeType());\n }\n\n return null;\n }", "public function getReflectionClass(): \\ReflectionClass\n {\n return $this->reflectionClass;\n }", "public function getFileReflection()\n\t{\n\t\treturn $this->getBroker()->getFile($this->fileName);\n\t}", "public function getExtensions() {}", "public function getExtensions() {}", "public function getExtension()\n {\n return $this->_extension;\n }", "public function getReflector()\n {\n \n return new ReflectionObject($this->object);\n \n }", "public function ext()\n {\n if (!$this->info) {\n $this->info();\n }\n if (isset($this->info['extension'])) {\n return $this->info['extension'];\n }\n\n return false;\n }", "public function getExtensions(): array;", "protected function getMissingPhpModulesOfExtensions() {}", "public function getPhpExtensions($zendExtensions = false)\n {\n return get_loaded_extensions($zendExtensions);\n }", "public function getReflectionClass()\n {\n if (!$this->reflClass) {\n $this->reflClass = new \\ReflectionClass($this->getClassName());\n }\n\n return $this->reflClass;\n }", "public function get_test_php_extensions()\n {\n }", "public function getExtension()\n {\n return $this->extension;\n }", "public function getExtension()\n {\n return $this->extension;\n }", "public function getExtension()\n {\n return $this->extension;\n }", "public function getExtension()\n {\n return $this->extension;\n }", "public function getExtension()\n {\n return $this->extension;\n }", "public function getExtension()\n {\n return $this->extension;\n }", "public function getExtension()\n {\n return $this->extension;\n }", "public function GetDebugClass ();", "public function getReflected(): ReflectionClass\n {\n return $this->reflected;\n }", "public function getExtension()\r\n {\r\n $this->caseClosedOrFail();\r\n\r\n return $this->extension;\r\n }", "public function get_extensionphp($slug)\n\t{\n\t\t$file = $this->find_extension_file($slug);\n\n\t\t// File doesn't exist?\n\t\tif ( ! $file)\n\t\t{\n\t\t\tthrow new Exception(\"Platform Extension [$slug] doesn't exist.\");\n\t\t}\n\n\t\t// Info\n\t\t$extension = require $file;\n\n\t\t// Bunch of requirements for an extension.php file\n\t\tif ( ! $extension or\n\t\t\t ! is_array($extension) or\n\t\t\t ! array_get($extension, 'info.name') or\n\t\t\t ! array_get($extension, 'info.version'))\n\t\t{\n\t\t\tthrow new Exception(\"Platform Excention [$slug] doesn't have a valid extension.php file\");\n\t\t}\n\n\t\t// Add the slug to the info\n\t\t$extension['info']['slug'] = $slug;\n\n\t\t// Installed flag\n\t\t$extension['info']['installed'] = false;\n\t\t$extension['info']['has_update'] = false;\n\n\t\t// Default parameters\n\t\tif ( ! array_key_exists('is_core', $extension['info']))\n\t\t{\n\t\t\t$extension['info']['is_core'] = 0;\n\t\t}\n\t\tif ( ! array_key_exists('enabled', $extension['info']))\n\t\t{\n\t\t\t$extension['info']['enabled'] = 0;\n\t\t}\n\n\t\tksort($extension['info']);\n\t\treturn $extension;\n\t}", "abstract public function getExtensionName();", "public function getReflect()\n {\n return $this->_reflect;\n }", "abstract public function getExtensionVersion();", "public function getExtensionName() {}", "public function extensions(): array;", "public static function phpInfoAsArray()\n {\n $values = array(\n 'php' => phpversion(),\n 'os' => php_uname(),\n 'extensions' => get_loaded_extensions(),\n );\n\n natcasesort($values['extensions']);\n\n // assign extension version\n if ($values['extensions']) {\n foreach($values['extensions'] as $key => $extension) {\n $values['extensions'][$key] = phpversion($extension) ? sprintf('%s (%s)', $extension, phpversion($extension)) : $extension;\n }\n }\n\n return $values;\n }", "public function getExtensions();", "abstract function getExtension(): string;", "public function getMethodReflector(): MethodReflectorInterface;", "public function getPhpNative()\n {\n return PropelTypes::getPhpNative($this->getType());\n }", "public function getMatchableExtensions();", "public function getExtension() {\n \n return $this->extension;\n \n }", "public function getValidExtensions();", "public function get_supported_extensions() {\n return array();\n }", "public function getExtension()\n {\n return pathinfo($this->name, PATHINFO_EXTENSION);\n }", "public function getExtension(): string\n {\n return $this->extension;\n }", "public function getExtension(): string\n {\n return $this->extension;\n }", "public function getName(): string\n {\n return 'Extension';\n }", "public function getPhpType()\n {\n if ($this->phpType !== null) {\n return $this->phpType;\n }\n\n return $this->getPhpNative();\n }", "public static function getExtensions()\n {\n }", "public function extension(): string;", "public function getReflectionData()\n {\n return $this->_reflectionData;\n }", "public function getExtensions()\n {\n $form = new ChangePasswordType($this->authorizationChecker);\n\n return [\n new PreloadedExtension([$form],[]),\n ];\n }", "public function getDirectoryExtensionsEnabled()\n {\n if (array_key_exists(\"directoryExtensionsEnabled\", $this->_propDict)) {\n return $this->_propDict[\"directoryExtensionsEnabled\"];\n } else {\n return null;\n }\n }", "public function getSchemaExtensionProperties()\n {\n if (array_key_exists(\"properties\", $this->_propDict)) {\n return $this->_propDict[\"properties\"];\n } else {\n return null;\n }\n }", "public function getExtensions()\n {\n return $this->extension;\n }", "public function getReflectionClass()\n {\n return ReflectionPool::getInstance($this->className);\n }", "private function getExtensions($zend = false)\n {\n $data = array();\n $extensions = get_loaded_extensions($zend);\n foreach ($extensions as $extension) {\n $data[$extension] = phpversion($extension);\n }\n\n return $data;\n }", "public function getPhpType(): string\n {\n return $this->phpType;\n }", "public function guessExtension();", "public function toPhpReflectionParameter();", "private function tinydb_get_reflector()\n {\n if (!isset($this->tinydb_reflector)) {\n $this->tinydb_reflector = new \\ReflectionObject($this);\n }\n\n return $this->tinydb_reflector;\n }", "public function testPhpExtensionsAreValid()\n {\n $this->assert->php->extensions\n ->isLoaded('simplexml')\n ->isLoaded('fileinfo')\n ->isLoaded('xsl');\n // validate that fileinfo is loaded and configured properly\n $this->assert->php->extensions->fileinfo->isAlive();\n }", "protected function getExtensions() {\n $listing = new ExtensionDiscovery($this->root);\n // Ensure that tests in all profiles are discovered.\n $listing->setProfileDirectories([]);\n $extensions = $listing->scan('module', TRUE);\n $extensions += $listing->scan('profile', TRUE);\n $extensions += $listing->scan('theme', TRUE);\n return $extensions;\n }", "public function getFunction()\n {\n $fct_name = $this->getFunctionName();\n if (empty($this->function_reflection) && !empty($fct_name)) {\n $cls_name = $this->getClassName();\n if (\n !empty($cls_name) &&\n method_exists($cls_name, $fct_name)\n ) {\n $this->function_reflection = new \\ReflectionMethod($cls_name, $fct_name);\n } elseif (\n function_exists($fct_name)\n ) {\n $this->function_reflection = new \\ReflectionFunction($fct_name);\n }\n }\n return $this->function_reflection;\n }", "public static function getFCGIExtensions()\n\t{\n\t\tif (empty(MHTTPD::$config['FCGI']['extensions'])) {\n\t\t\treturn array();\n\t\t}\n\t\treturn MHTTPD::$config['FCGI']['extensions'];\n\t}", "public static function getExtensions()\n {\n return self::$_extensions;\n }", "public function getClass()\n {\n $cls_name = $this->getClassName();\n if (empty($this->class_reflection) && !empty($cls_name)) {\n $this->class_reflection = new \\ReflectionClass($cls_name);\n }\n return $this->class_reflection;\n }" ]
[ "0.6802095", "0.6573603", "0.64205736", "0.62163335", "0.62163335", "0.62163335", "0.6208621", "0.62005776", "0.62002337", "0.61769617", "0.61618495", "0.6156177", "0.6156177", "0.61521477", "0.6015849", "0.60130817", "0.5901413", "0.5886118", "0.5885454", "0.5850161", "0.5837467", "0.5802737", "0.5784569", "0.57611865", "0.5733094", "0.57161325", "0.57142186", "0.5711731", "0.56902987", "0.56691056", "0.5663079", "0.56456083", "0.56314945", "0.5631031", "0.5607254", "0.5602769", "0.55847496", "0.557881", "0.5561345", "0.5556817", "0.5556272", "0.5554947", "0.55348235", "0.55159444", "0.55130285", "0.5506284", "0.54964703", "0.5484816", "0.5481787", "0.54782766", "0.54782563", "0.54782563", "0.54782563", "0.54782563", "0.54782563", "0.54782563", "0.54782563", "0.5464632", "0.5460006", "0.5430773", "0.5415645", "0.54097605", "0.5405623", "0.5399203", "0.53870404", "0.5381266", "0.537951", "0.5373275", "0.5357034", "0.5347621", "0.5328044", "0.53229296", "0.53172725", "0.53128374", "0.52996016", "0.5296678", "0.52927315", "0.52927315", "0.52788347", "0.5274425", "0.52701116", "0.5246151", "0.5234913", "0.5227574", "0.5223862", "0.5223648", "0.5207391", "0.52069396", "0.5206855", "0.52036566", "0.5195", "0.5194454", "0.51866263", "0.5183758", "0.5183319", "0.5173387", "0.51705503", "0.51685566", "0.51630646" ]
0.5856195
20
Returns the PHP extension name. Alwyas returns false everything is user defined.
public function getExtensionName() { return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public function getExtensionName();", "public function getExtensionName() {}", "public function ext()\n {\n if (!$this->info) {\n $this->info();\n }\n if (isset($this->info['extension'])) {\n return $this->info['extension'];\n }\n\n return false;\n }", "function getExtension() ;", "public function getExtension(): string\n {\n return $this->extension;\n }", "public function getExtension(): string\n {\n return $this->extension;\n }", "public function getName()\n {\n return self::EXTENSION_NAME;\n }", "public function getExtension($name) {}", "public function getExtension(): string\n {\n return $this->getMeta()->getExtension();\n }", "public function getExtension() : string;", "public function getExtensionName()\n {\n return FluentDriver::EXTENSION_NAME;\n }", "public function getRequiredPhpExtension() {\n return $this->__requiredPhpExtension;\n }", "public function getExtension()\n {\n return substr(strrchr($this->getBasename(), '.'), 1);\n }", "public function getName(): string\n {\n return 'Extension';\n }", "public function getExtension() : string\n {\n return pathinfo($this->name, PATHINFO_EXTENSION);\n }", "public function getExtension(string $name);", "abstract function getExtension(): string;", "public function extension(): string;", "public function getExtension();", "public function getExtension();", "public function getExtension();", "public function getExt(): string\n {\n return (string)$this->env['EXT'];\n }", "public static function getPHPExtensionRequired(){\n\t\treturn 'java';\n\t}", "public function getExtension() {}", "public function getExtension() {}", "public function getExtension()\n {\n return pathinfo($this->name, PATHINFO_EXTENSION);\n }", "public function get_extension()\n {\n return $this->m_extension;\n }", "public function getName()\n {\n return 'jwkh_extension';\n }", "public function getExtensionName(): string {\r\n return $this->template->getConfigVars('cartpay_plugin');\r\n }", "public abstract function getExtension();", "public function extension()\n\t{\n\t\t$type = $this->type();\n\t\treturn self::getExtension($type);\n\t}", "public function getExtension(): string\n {\n return pathinfo($this->getRelativePath(), PATHINFO_EXTENSION);\n }", "public function get_extension()\n {\n }", "public function getExtension(): string\n {\n return pathinfo($this->getFilename(), PATHINFO_EXTENSION);\n }", "public function extension()\n {\n return '';\n }", "public function getDefaultExtension(): string\n {\n return $this->defaultExtension;\n }", "public function getExtension()\n\t{\n\t\treturn null;\n\t}", "public function getExtension()\n\t{\n\t\treturn null;\n\t}", "public static function getScriptExtension(): string {\n return '.php';\n }", "public function hasExtension($name);", "public function getExtension()\n {\n \treturn $this->_extension;\n }", "public function getExtension()\n {\n return $this->extension;\n }", "public function getExtension()\n {\n return $this->extension;\n }", "public function getExtension()\n {\n return $this->extension;\n }", "public function getExtension()\n {\n return $this->extension;\n }", "public function getExtension()\n {\n return $this->extension;\n }", "public function getExtension()\n {\n return $this->extension;\n }", "public function getExtension()\n {\n return $this->extension;\n }", "public function getExtension()\n {\n return $this->_extension;\n }", "public function guessExtension();", "public function getExtension()\n {\n return $this->_path['extension'];\n }", "abstract public function acceptedExtension(): string;", "public function getExtension() {\n\t\t\n\t\t$filename = $this->file['name'];\n\t\t\n\t\t$parts = explode('.', $filename);\n\t\t$extension = end($parts);\n\t\t\n\t\treturn strtolower($extension);\n\t\t\n\t}", "public function extension()\n {\n return pathinfo($this->path_filename, PATHINFO_EXTENSION);\n }", "public function getExtension()\n\t{\n\t\treturn pathinfo($this->path, PATHINFO_EXTENSION);\n\t}", "public function getExtensionName() {\n return $this->forwardCallToReflectionSource( __FUNCTION__ );\n }", "public function getExtension()\n {\n return File::get_file_extension($this->getField('Name'));\n }", "public function getFileExtension() {\n\t\t$pathInfo = pathinfo($this->filename);\n\t\tif (!isset($pathInfo['extension'])) {\n\t\t\treturn '???';\n\t\t} else {\n\t\t\treturn $pathInfo['extension'];\n\t\t}\n\t}", "public function getExtensionFromName()\n {\n $vars = explode('.', $this->getClientFilename());\n return strtolower(array_pop($vars));\n }", "public static function extension($_path)\r\n {\r\n return pathinfo($_path, PATHINFO_EXTENSION);\r\n }", "public function getName()\n {\n return 'metainfos_extension';\n }", "public function extension() : string {\n return $this->file->extension;\n }", "public function getOriginalExtension(): string\n {\n return pathinfo($this->originalName, PATHINFO_EXTENSION);\n }", "function getExtension($filename) {\n\treturn substr(strrchr($filename,'.'),1);\n}", "public function checkExt($f) {\r\n $ext = pathinfo($f, PATHINFO_EXTENSION);\r\n return $ext;\r\n }", "private function _extension()\n\t{\n\t\tif ($this->getView() instanceof View)\n\t\t{\n\t\t\treturn 'plg_' . $this->getView()->getFolder() . '_' . $this->getView()->getElement();\n\t\t}\n\n\t\treturn $this->getView()->get('option', Request::getCmd('option'));\n\t}", "public function getExtension()\r\n {\r\n return pathinfo($this->filename, PATHINFO_EXTENSION);\r\n }", "public function getExt()\n {\n $filename = $this->getPath(); \n return pathinfo($filename, PATHINFO_EXTENSION);\n }", "public function extension($extension = false)\n {\n if($extension === false) {\n return $this->adapter->extension($this->path);\n }\n\n $newName = $this->name();\n $index = strrpos($newName, '.');\n if ($index !== false) {\n $newName = substr($newName, 0, $index + 1);\n } else {\n $newName .= '.';\n }\n $newName .= $extension;\n\n return $this->name($newName);\n }", "public function getExtension()\n {\n return $this->file->getExtensionName();\n }", "public function getExtension() {\n\t\treturn CFileHelper::getExtension($this->getName());\n\t}", "public function getExtension() {\n \n return $this->extension;\n \n }", "function get_file_extension($file_name) {\n if(empty($file_name) OR !is_string($file_name)) {\n return false;\n }\n return strtolower(substr(strrchr($file_name,'.'), 1));\n}", "function getExtension($name) {\r\n $explode_file = explode('.', $name);\r\n return strtolower(end($explode_file));\r\n }", "function file_get_extension($filename)\r\n\t{\r\n\t\treturn substr($filename, strrpos($filename, \".\") + 1, strlen($filename));\r\n\t}", "function getExtension($filename = null)\n{\n\tif($filename != '') {\n\t\treturn pathinfo($filename, PATHINFO_EXTENSION);\n\t}\n\treturn null;\n}", "function getNameWithoutExtension() ;", "function getExtension($filename)\n{\n\t$info = pathinfo($filename);\n\treturn $info['extension'];\n}", "public function getExt()\n {\n $type = $this->getType();\n if ($type === 'style') {\n return 'css';\n } elseif ($type === 'script') {\n return 'js';\n } elseif ($type === 'image') {\n return pathinfo($this->getSourcePath(), PATHINFO_EXTENSION);\n }\n }", "public static function fromExtension(string $extension):string;", "function getextension($path){\n return strtolower(pathinfo($path, PATHINFO_EXTENSION)); // extension only, no period\n}", "function getextension($path)\n{\n\t$extension = null;\n if (preg_match('/\\.([a-z0-9]+)$/', $path, $found)){\n\t\t$extension = $found[1];\n\t}\n\treturn $extension;\n}", "public function getFileExtension();", "function getExt() {\n\t\treturn $this->_Ext;\n\t}", "private function get_ext( $filename='' )\n\t{\n\t\treturn substr( $filename, strrpos( $filename, '.' ) + 1);\t\n\t}", "function file_extension($filename)\n\t\t{\n\t\t\t$fileparts = explode(\".\", $filename);\n\t\t\t$more_check = strpos(strtolower(end($fileparts)), '?');\n\t\t\tif ($more_check != false) {\n\t\t\t\t\n\t\t\t\treturn substr(strtolower(end($fileparts)),0, $more_check );\n\t\t}\n\t\telse {\n\t\t\t\n\t\t\treturn strtolower(end($fileparts));\n\t\t}\n\t\t}", "public function get_test_php_extensions()\n {\n }", "public function getName()\n {\n return 'user_extension';\n }", "public static function get_extension() {\n\t\tif ($_FILES[\"images\"][\"type\"][0] == \"image/jpeg\") {\n\t\t\t$extension = '.jpeg';\n\t\t} else if ($_FILES[\"images\"][\"type\"][0] == \"image/png\") {\n\t\t\t$extension = '.png';\n\t\t} \n\t\tglobal $firephp;\n\t\t$firephp->log('The extension is:');\n\t\t$firephp->log($extension);\n\t\treturn $extension;\n\t}", "final public static function fext($file){\n\t\treturn pathinfo($file, PATHINFO_EXTENSION);\n\t}", "function getExtension($str) {\r\n $i = strrpos($str,\".\");\r\n if (!$i) { return \"\"; }\r\n $l = strlen($str) - $i;\r\n $ext = substr($str,$i+1,$l);\r\n return $ext;\r\n }", "public function fileExtension(): string\n {\n return match_data($this,\n [\n Format::Xlsx => 'xlsx',\n Format::Pdf => 'pdf',\n Format::Html => 'html',\n Format::Ods => 'ods',\n ]);\n }", "public function getExtension()\n {\n return $this->file['extension'];\n }", "public function getFileExtension(): string\n {\n return $this->fileExtension;\n }", "protected function extensions() \n {\n return ['php'];\n }", "public function getExtension()\r\n {\r\n $this->caseClosedOrFail();\r\n\r\n return $this->extension;\r\n }", "public function getName($ext = true)\n\t{\n\t\tif (!$ext)\n\t\t\treturn substr($this->name, 0, strrpos($this->name, '.'));\n\t\treturn $this->name;\n\t}", "function fileExtension($nameFile) {\n\t$format = substr($nameFile, -4);\n\treturn ($format == \".pat\");\n}", "function getExtension($str) {\n $i = strrpos($str,\".\");\n if (!$i) { return \"\"; }\n $l = strlen($str) - $i;\n $ext = substr($str,$i+1,$l);\n return $ext;\n }" ]
[ "0.79898137", "0.79338795", "0.7593611", "0.7471376", "0.74647695", "0.74647695", "0.74441206", "0.74253213", "0.7415361", "0.7405857", "0.73930216", "0.73301536", "0.73259073", "0.73051715", "0.7263593", "0.7249689", "0.7243307", "0.72403544", "0.7231279", "0.7231279", "0.7231279", "0.72295374", "0.7225672", "0.7188822", "0.71878755", "0.7159351", "0.7139065", "0.7136318", "0.7086576", "0.70649326", "0.7062437", "0.7039519", "0.702932", "0.70190763", "0.695873", "0.6957092", "0.6954359", "0.6954359", "0.69534725", "0.6929345", "0.69253683", "0.6923589", "0.6923589", "0.6923589", "0.6923589", "0.6923589", "0.6923589", "0.6923589", "0.6907757", "0.68925524", "0.6889621", "0.6865493", "0.68503493", "0.68448585", "0.6835462", "0.6804028", "0.67975295", "0.67933553", "0.67841315", "0.6747056", "0.6744014", "0.6734395", "0.6702603", "0.67020416", "0.6699194", "0.6694417", "0.6690661", "0.6681997", "0.66779995", "0.66558766", "0.662574", "0.6623517", "0.6616969", "0.6613948", "0.6602102", "0.65995264", "0.6586133", "0.65843433", "0.6578056", "0.6570586", "0.6563161", "0.6540946", "0.65336305", "0.6522234", "0.6517645", "0.6517116", "0.65112644", "0.65021", "0.649755", "0.649309", "0.6489689", "0.64870435", "0.6486915", "0.6485859", "0.64841187", "0.6479724", "0.64796114", "0.64761114", "0.6473633" ]
0.7932739
2
Returns the appropriate source code part.
public function getSource() { return $this->broker->getFileTokens($this->getFileName())->getSourcePart($this->startPosition, $this->endPosition); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCode()\n {\n if ( $this->isInternal() ) {\n $code = '/* ' . $this->getName() . ' is an internal function.'\n . ' Therefore the source code is not available. */';\n } else {\n $filename = $this->getFileName();\n\n $start = $this->getStartLine();\n $end = $this->getEndLine();\n\n $offset = $start - 1;\n $length = $end - $start + 1;\n \n $lines = array_slice( file( $filename ), $offset, $length );\n\n if ( strpos( trim( $lines[0] ), 'function' ) !== 0 ) {\n $lines[0] = substr( $lines[0], strpos( $lines[0], 'function' ) );\n }\n\n $code = implode( '', $lines );\n }\n return $code;\n }", "function getSource() ;", "public function getSource(): string;", "public function getSource() : ?string ;", "abstract public function getSource();", "public function getContent()\n {\n $source_code = '';\n $_components = array_reverse($this->components);\n $_last = end($_components);\n\n foreach ($_components as $_component) {\n if ($_component != $_last) {\n $source_code .= \"{$this->tpl_obj->left_delimiter}private_inheritancetpl_obj file='$_component->filepath' child--{$this->tpl_obj->right_delimiter}\\n\";\n } else {\n $source_code .= \"{$this->tpl_obj->left_delimiter}private_inheritancetpl_obj file='$_component->filepath'--{$this->tpl_obj->right_delimiter}\\n\";\n }\n }\n\n return $source_code;\n }", "public function getSource()\n {\n return 'we_opencode';\n }", "function getSourceFile() ;", "final function getCode();", "public function get_name() {\n $data = $this->get_data();\n if(isset($data)){\n return $data['source'];\n } else {\n throw new coding_exception('Missing or invalid source');\n }\n }", "function codePage($cp)\n{\n return $this->drv->codePage($cp);\n}", "public function getSource()\n {\n return 'sculpture';\n }", "public function getSource()\n {\n return 'tmp_m_section';\n }", "function getTemplate($param){\r\n global $modx;\r\n\r\n $template = '';\r\n\r\n if ($modx->getChunk($param) != '') {\r\n $template = $modx->getChunk($param);\r\n } else if(substr($param, 0, 6) == '@FILE:') {\r\n $template = $this->get_file_contents(substr($param, 6));\r\n } else if(substr($param, 0, 6) == '@CODE:') {\r\n $template = substr($param, 6);\r\n } else if(substr($param, 0, 5) == '@FILE') {\r\n $template = $this->get_file_contents(trim(substr($param, 5)));\r\n } else if(substr($param, 0, 5) == '@CODE') {\r\n $template = trim(substr($param, 5));\r\n } else {\r\n $template = '';\r\n }\r\n\r\n return $template;\r\n }", "public function getSource()\n\t{\n\t\treturn '';\n\t}", "public function getSource();", "public function getSource();", "public function getSource();", "public function getSource();", "public function getSource();", "public function getSource(): string\n {\n return $this->source;\n }", "public function getSource(): string\n {\n return $this->source;\n }", "public function getSourceFile(): string\n {\n return $this->getStubContents($this->getStubPath(), $this->getStubVariables());\n }", "function getSnippet()\n{ \n $baseClass = sfBundle::getBaseClassForCurrentFile();\n $packageName = getPackageName($baseClass);\n\n $snippet = sprintf(<<<SNIPPET\n/*\n * This file is part of the \\$1.\n * (c) \\${2:%s} \\${3:\\${TM_ORGANIZATION_NAME}}\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\n/**\n * \\${4:%s} \\${5:does things}.\n *\n * @package \\${6:\\$1}\n * @subpackage \\${7:%s}\n * @author \\$3\n * @version \\${8:1.0.0}\n */\nclass \\$4%s\n{\n \\$0\n}\nSNIPPET\n ,date('Y', time())\n ,getClassName(TextMate::getEnv('filename'), TextMate::getEnv('filepath'))\n ,$packageName ? $packageName : 'custom'\n ,$baseClass ? sprintf(\" extends \\${9:%s}\", $baseClass) : ''\n );\n\n return $snippet;\n}", "public function getSource()\n {\n return 'cift';\n }", "public static function getMainPart(){\n return (isset(self::$gets [self::KEY_MAIN]))?\n self::$gets [self::KEY_MAIN] : '';\n }", "public static function getSource()\n {\n if (false === ($code = @file(__FILE__))) {\n $error = error_get_last();\n\n throw new RuntimeException($error['message']);\n }\n\n $code = array_slice($code, 6);\n\n foreach ($code as $i => $line) {\n if ('' === trim($line)) {\n unset($code[$i]);\n continue;\n }\n\n if (preg_match('{^\\s*(/\\*+|\\*+)}', $line)) {\n unset($code[$i]);\n }\n }\n\n return join('', $code);\n }", "public function getCode() {\n\n $licence = '/*\n * Auto Generated Code for HomeNet\n *\n * Copyright (c) 2011 HomeNet.\n *\n * This file is part of HomeNet.\n *\n * HomeNet is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * HomeNet is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with HomeNet. If not, see <http ://www.gnu.org/licenses/>.\n */';\n return $licence;\n }", "public function getSource()\n {\n return 'pessoa';\n }", "public function getSource() {}", "public function getSource() {}", "public function getSource()\n {\n return 'bak_chouhyou_text_zokusei_mrs';\n }", "public function getSource()\n {\n $ret = ' * ';\n\n $ret .= '@'.$this->type;\n\n if (strlen($this->datatype) > 0) {\n $ret .= ' '.$this->datatype;\n }\n\n if (strlen($this->variableName) > 0) {\n $ret .= ' $'.$this->variableName;\n }\n\n if (strlen($this->description) > 0) {\n $ret .= ' '.$this->description;\n }\n\n $ret .= PHP_EOL;\n\n return $ret;\n }", "public function getSource()\n {\n return 'lab';\n }", "public function getSource()\n {\n return 'barang';\n }", "public function getSourceName();", "function GetName() {\n\t\tif ($this->type == BLOCK_PAGE) return \"\";\n\t\t$source = \"<?php \".trim($this->associatedCode);\n\t\t$interesting = array( T_FUNCTION, T_STRING, T_VARIABLE, T_CLASS, T_INCLUDE, T_INCLUDE_ONCE, T_REQUIRE, T_REQUIRE_ONCE, T_INTERFACE, T_CONSTANT_ENCAPSED_STRING );\n\t\t$alltokens = token_get_all($source);\n\t\t$tokens = array();\n\t\tforeach($alltokens as $token) {\n\t\t\tif (!in_array($token[0],$interesting)) continue;\n\t\t\t//if ($token[0] == T_STRING && strtolower($token[1]) != \"define\") continue; // a string, but not \"define\"... not useful to us\t\t\t\n\t\t\t$tokens[] = $token;\n\t\t}\n\t\t\n\t\tswitch($this->type) {\n\t\t\tcase \"T_FUNCTION\": return $tokens[1][1];\n\t\t\tcase \"T_CLASS\": return $tokens[1][1];\n\t\t\tcase \"T_INTERFACE\": return $tokens[1][1];\n\t\t\tcase \"T_STRING\": return $tokens[1][1];\n\t\t\tcase \"T_INCLUDE\": case \"T_INCLUDE_ONCE\": case \"T_REQUIRE\": case \"T_REQUIRE_ONCE\": return $tokens[1][1];\n\t\t}\n\t\treturn $this->type;\n\t}", "public function get_source()\n {\n }", "private function getHookSourceCode(string $hook): string\n {\n return $this->template->getCode($hook);\n }", "private function getHookSourceCode(string $hook): string\n {\n return $this->template->getCode($hook);\n }", "public function getCode() {\n return $this->parse()['code'];\n }", "public function getDocumentMainPart(): string\n {\n return $this->tempDocumentMainPart;\n }", "public function getHeadSnippet()\r\n\t{\r\n\t\treturn Mage::getStoreConfig('ec/config/code_head');\r\n\t}", "public function getSource()\n {\n return 'v_basic';\n }", "protected function findSource()\n {\n $traces = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS | DEBUG_BACKTRACE_PROVIDE_OBJECT);\n foreach ($traces as $trace) {\n if (isset($trace['class']) && isset($trace['file']) && strpos(\n $trace['file'],\n DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR\n ) === false\n ) {\n $file = $trace['file'];\n $line = isset($trace['line']) ? $trace['line'] : '?';\n\n return $this->normalizeFilename($file) . ':' . $line;\n } elseif (isset($trace['function']) && $trace['function'] == 'Illuminate\\Routing\\{closure}') {\n return 'Route binding';\n }\n }\n }", "public function getCodeSample()\n {\n $code = <<< 'CODE'\n namespace KEINOS\\AutoMailReply;\n require_once('./src/constants.php');\n require_once('./src/functions.php');\n echo (isModeDebug() === true) ? 'true' : 'false';\nCODE;\n $code = \\str_replace(PHP_EOL, '', $code);\n\n return $code;\n }", "public function get_source_description() {\n\t\t$description = $this->source;\n\n\t\t$payment = $this->get_first_payment();\n\n\t\tif ( $payment ) {\n\t\t\t$description = apply_filters( 'pronamic_payment_source_description', $description, $payment );\n\t\t\t$description = apply_filters( 'pronamic_payment_source_description_' . $this->source, $description, $payment );\n\t\t}\n\n\t\treturn $description;\n\t}", "public function getPostcodePart($part = IAddress::POSTCODE_PART_ONE);", "public function getContextualPart()\n {\n return '';\n }", "public static function getCode()\n\t{\n\t\tthrow new NotImplementedException;\n\t}", "public function present() {\n\t\t$html = '';\n\n\t\tif($this->file !== false) {\n\t\t\t// Read until we get to <body>\n\t\t\twhile(($line = fgets($this->file)) != false) {\n\t\t\t\tif(stristr($line, \"<body>\")) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$code = $this->codeStart();\n\n\t\t\t// Read the rest until </body>\n\t\t\twhile(($line = fgets($this->file)) != false) {\n\t\t\t\tif(stristr($line, \"</body>\")) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\t$code .= $line;\n\t\t\t}\n\n\t\t\tfclose($this->file);\n\n\t\t\tob_start();\n\t\t\teval($code);\n\t\t\t$html .= ob_get_contents();\n\t\t\tob_end_clean();\n\n\t\t\t$this->viewAux = $this->stepSection->viewAux();\n\t\t\tif($this->viewAux !== null) {\n\t\t\t\t$html .= $this->viewAux->present();\n\t\t\t}\n\n\t\t} else {\n\t\t\t$sectionTag = $this->stepSection->tag;\n\t\t\t$html .= <<<HTML\n<p class=\"centerbox comp center\">Assignment section <em>$sectionTag</em> not found.</p>\nHTML;\n\t\t}\n\n\t\treturn $html;\n\t}", "public function getSource(): string\n\t{\n\t\tif (is_null($this->source))\n\t\t{\n\t\t\t$pattern = $this->getPattern();\n\n\t\t\t// Match the correct source file\n\t\t\t$files = glob($pattern);\n\t\t\t$file = reset($files);\n\t\t\tif (! $file || ! is_file($file))\n\t\t\t{\n\t\t\t\tthrow new RuntimeException('Source file missing: ' . $pattern);\t\t\t\n\t\t\t}\n\n\t\t\t$this->source = $file;\n\t\t}\n\n\t\treturn $this->source;\n\t}", "public function getCode();", "public function getCode();", "public function getCode();", "public function getCode();", "public function getCode();", "public function getCode();", "public function get_source() {\n\t\treturn $this->source;\n\t}", "function getCodeFile()\r\n\t{\r\n\t\t$haveServer= isset( $_SERVER );\r\n\t\tif ($haveServer && array_key_exists( \"PATH_TRANSLATED\", $_SERVER ) ) {\r\n\t\t\t$codefile = $_SERVER[\"PATH_TRANSLATED\"];\r\n\t\t}\r\n\t\telse if ( $haveServer && array_key_exists( \"ORIG_PATH_TRANSLATED\", $_SERVER ) ) {\r\n\t\t\t$codefile = $_SERVER[\"ORIG_PATH_TRANSLATED\"];\r\n\t\t}\r\n\t\telse if ( $haveServer && array_key_exists( \"SCRIPT_FILENAME\", $_SERVER ) ) {\r\n\t\t\t$codefile = $_SERVER[\"SCRIPT_FILENAME\"];\r\n\t\t}\r\n\t\telse {\r\n\t\t\t$codefile = getcwd() . \"/\" . $_SERVER[ \"argv\" ][0];\r\n\t\t}\r\n\t\treturn( $codefile );\r\n\t}", "function extractHoldingLibraryCode($data){\r\n\t$instHref = '<a href=\"/institutions/';\r\n\t$start \t = strpos($data, $instHref) + strlen($instHref);\r\n\r\n\t$libCode = \"[code:\";\r\n\t$libCode .= strtoupper(substr($data, $start, 3)); //pull the actual code\r\n\t$libCode .= \"]\";\r\n\r\n\techo \"\\n\" . $libCode . \"\\n\";\r\n\treturn $libCode;\r\n}", "public function getSource()\n {\n return 'dtb_raise_project_qa';\n }", "public function get_macro ($part) {\n\t\t$fallback = $this->fallback() . '(.*)';\n\t\treturn $this->open() . $part . $fallback . $this->close();\n\t}", "public function getDocCode()\n {\n return $this->doc_code;\n }", "public function getCode(string $hook): string;", "function get_pre($string, $offset = false) {\r\n\t\tif($offset === false) {\r\n\t\t\t$offset = strlen($string);\r\n\t\t}\r\n\t\t$pre_code = substr($string, 0, $offset);\r\n\t\t$ancestryArray = OM::getAncestryArray($pre_code, strlen($pre_code));\r\n\t\tif(sizeof($ancestryArray) > 0) {\r\n\t\t\t//print('here834954950<br>');\r\n\t\t\t$pre = substr($pre_code, 0, $ancestryArray[sizeof($ancestryArray) - 1][2] + strlen($ancestryArray[sizeof($ancestryArray) - 1][1]));\r\n\t\t\treturn $pre;\r\n\t\t} else {\r\n\t\t\t//print('here834954951<br>');\r\n\t\t\t// get the code up to the first tag\r\n\t\t\tpreg_match('/(.*?)<\\w/is', $string, $pre_first_tag_matches);\r\n\t\t\t$pre_first_tag = $pre_first_tag_matches[1];\r\n\t\t\treturn $pre_first_tag;\r\n\t\t\t//return \"\";\r\n\t\t}\r\n\t}", "public function getSource()\n\t{\n\t\treturn $this->token->source;\n\t}", "public function getSource()\n {\n }", "public function render(){\n\n\t\t$part = $this->arguments['part'];\n\t\t$trailer = $this->arguments['trailer'];\n\n\t\t$partAssembled = \\TYPO3\\CMS\\Core\\Utility\\GeneralUtility::makeInstance('TYPO3\\KcHumbaurProducts\\Domain\\Repository\\PartReferenceRepository');\n\t\t$partAssembledArray;\n\t\t/*if (is_array($parts) || is_object($parts)){\n\t\t\tforeach($parts as $part){\n\t\t\t\t$partAssembledArray[] = $partAssembled->findIfAssembled($part->getUid(), $trailer->getUid());\n\t\t\t}\n\t\t}*/\n\t\t$partAssembledArray[] = $partAssembled->findIfAssembled($part->getUid(), $trailer->getUid());\n\t\treturn $partAssembled->searchForAssembled('1', $partAssembledArray);\n\t}", "public static function getSoftwareCode()\n\t\t{\n\t\t\treturn str_replace('_', '-', substr(basename(__FILE__), 0, -4));\n\t\t}", "function getSource() {\n\t return $this->node->getText();\n\t}", "public function getSource(){\n\t\treturn $this->_source;\n\t}", "function templateCode_older() {\r\n\t\tif ($this->template !== \"none\") {\r\n\t\t\tprint('do not use this function 43096809683069836');exit(0);\r\n\t\t\t$bodycode = ReTidy::getBodyCode();\r\n\t\t\tif(strpos($bodycode, '<div class=\"center\">') !== false) {\r\n\t\t\t\tvar_dump(OM::getTagString('abvb<div class=\"center\">adsfds</div>sdsgdsgds', '<div class=\"center\">'));exit(0);\r\n\t\t\t\t$bodycode = substr(OM::getTagString($bodycode, '<div class=\"center\">'), strlen('<div class=\"center\">'), strlen($bodycode)-strlen('<div class=\"center\">')-4);\r\n\t\t\t}\r\n\t\t\t$this->code = str_replace(\"{content}\", $bodycode, file_get_contents($this->template));\r\n\t\t}\r\n\t}", "function getSource()\n {\n return $this->source;\n }", "public function getCodePhase(): ?string {\n return $this->codePhase;\n }", "public function source();", "public function source();", "public function source();", "public function code()\n {\n return $this->code;\n }", "public function code()\n {\n return $this->code;\n }", "public function getCode() {}", "public function getFirstCode() {}", "public function getSource()\n {\n return 'groenten';\n }", "function editor() {\n\t\tswitch($this->EditPageNr) {\n\t\t\tcase WE_EDITPAGE_THUMBNAILS:\n\t\t\t\treturn \"we_templates/we_editor_thumbnails.inc.php\";\n\n\t\t\tcase WE_EDITPAGE_WEBUSER:\n\t\t\t\treturn \"we_modules/customer/editor_weDocumentCustomerFilter.inc.php\";\n\t\t\tdefault:\n\t\t\t\treturn parent::editor();\n\n\t\t}\n\t}", "private static final function getJSSHeader () {\r\n $jssHeaderString = new S;\r\n $jssReplaceString = new S ('[%SCRIPT_JS_SRC%]');\r\n $jssPureString = new FileContent (FORM_TP_DIR . _S . 'frm_web_header_js.tp');\r\n foreach (self::$objPageJSS as $k => $v) {\r\n $jssHeaderString->appendString (str_replace ($jssReplaceString->toString (),\r\n self::$objPageJSS[$k], $jssPureString->toString ()));\r\n }\r\n // Do return ...\r\n return $jssHeaderString;\r\n }", "function actionSource() {\r\n\r\n\t\t\t// Get the basename of the file\r\n\t\t\t$file = $_GET['id'];\r\n\r\n\t\t\t// Filepath should start with the directory of this file\r\n\t\t\t$basePath = strtolower( dirname( __FILE__ ) );\r\n\t\t\t$filePath = strtolower( dirname( realpath( $_GET['id'] ) ) );\r\n\r\n\t\t\t// Check if the file is in the right directory\r\n\t\t\tif ( substr( $filePath, 0, strlen( $basePath ) ) != $basePath ) {\r\n\t\t\t\t$this->forward( 'default' );\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\t// Check if the file exists\r\n\t\t\tif ( ! is_file( $file ) ) {\r\n\t\t\t\t$this->forward( 'default' );\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\t// Show the highlighted source\r\n\t\t\t$this->template->assign( 'file', $file );\r\n\t\t\t$this->template->assign( 'source', highlight_file( $file, 1 ) );\r\n\r\n\t\t\t// Output the template\r\n\t\t\t$this->template->display();\r\n\r\n\t\t}", "public function sourceFile() {\n return $this->loader\n ? $this->loader->getResourceAsStream(strtr($this->name, '.', '/').'/package-info.xp')\n : NULL\n ;\n }", "public function getSource(){\n return $this->source();\n }", "public function getSource()\n {\n return 'question';\n }", "public function getSource()\n {\n return 'ubicacion';\n }", "public function getFull()\n {\n return $this->name . \" ({$this->code})\";\n }", "public function findCodeContent($codeBlock) {\n\t\t$codeBlock = ltrim(rtrim($codeBlock, \" \"),\" \");\n\t\t$arr = explode(\" \", $codeBlock);\n\t\t$content = \"\";\n\t\t$i = 0;\n\t\tforeach ($arr as $cnt) {\n\t\t\tif ($i!=0) {\n\t\t\t\t$content .= \" \" .$cnt;\n\t\t\t}\n\t\t\t$i += 1;\n\t\t}\n\t\treturn ltrim($content, \" \");\n\t}", "public function getSource()\n\t{\n\t\treturn file_get_contents($this->file);\n\t}", "public function getCode(): string;", "public function getCode(): string;", "public function getCode(): string;", "function getContentArrayForTemplating($code, $strip_template_content_comments = false) {\r\n\t\t// assume the main <h1> is directly in the content <div>\r\n\t//\t$inventing_h1 = false;\r\n\t//\t$h1_strpos = strpos($code, '<h1');\r\n\t\t//print('$h1_strpos: ');var_dump($h1_strpos);\r\n\t\t//print('code}}}<br>');\r\n\t\t//print($code);\r\n\t\t//print('{{{code<br>');\r\n\t\t//exit(0);\r\n\t\t$found_h1 = false;\r\n\t//\tif($h1_strpos === false) {\r\n\t\t\t// ideally we would run structure on every file and this problem would go away, but it shouldn't be bad to write a possibly overlapping solution here\r\n\t\t\t// take a shot; look for what seems like paragraph content then take the first block in its container\r\n\t\t\tpreg_match_all('/<(p|h[1-6])[^<>]*?>(.*?)<\\/\\1>/is', $code, $possible_heading_matches, PREG_OFFSET_CAPTURE);\r\n\t\t\t//var_dump($possible_heading_matches);\r\n\t\t\tforeach($possible_heading_matches[0] as $index => $value) {\r\n\t\t\t\t$possible_heading_content = $possible_heading_matches[2][$index][0];\r\n\t\t\t\t//var_dump($possible_heading_content);\r\n\t\t\t\t/*if(substr_count($possible_heading_content, '.') > 2 || substr_count($paragraph_content, ':') > 0) {\r\n\t\t\t\t\t$paragraph_offset = $possible_heading_matches[0][$index][1];\r\n\t\t\t\t\t$blockArray = OM::getContainingBlock($code, $paragraph_offset);\r\n\t\t\t\t\t//$blockString = $blockArray[0];\r\n\t\t\t\t\t//$offset_contained_string_in_block = $blockArray[1];\r\n\t\t\t\t\t$containing_block_offset = $blockArray[2];\r\n\t\t\t\t\tpreg_match('/<(h1|h2|h3|h4|h5|h6|p)[^<>]*?>(.*?)<\\/\\1>/is', $code, $h1_matches, PREG_OFFSET_CAPTURE, $containing_block_offset);\r\n\t\t\t\t\t$h1_strpos = $h1_matches[0][1];\r\n\t\t\t\t\t$inventing_h1 = true;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}*/\r\n\t\t\t\tif(ReTidy::isIndexical($possible_heading_content)) {\r\n\t\t\t\t\t//print('possible_heading_content is indexical.<br>');\r\n\t\t\t\t\t//print('$possible_heading_content: ' . $possible_heading_content);\r\n\t\t\t\t\t$h1_strpos = $possible_heading_matches[0][$index][1];\r\n\t\t\t\t\t$h1_including_tag = $possible_heading_matches[0][$index][0];\r\n\t\t\t\t\t$h1_previous_tag_name = $possible_heading_matches[1][$index][0];\r\n\t\t\t\t\t$found_h1 = true;\r\n\t//\t\t\t\t$inventing_h1 = true;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t//\t\tif(!$inventing_h1) {\r\n\t//\t\t\t//print($code);\r\n\t//\t\t\tprint('h1 not detected or created in getContentArrayForTemplating; this needs to be fixed.');exit(0);\r\n\t//\t\t}\r\n\t//\t}\r\n\t\t$get_content_more_crudely = true;\r\n\t\tif(strpos($code, '<div') === false) {\r\n\t\t\t//print('here347459475948759<br>');\r\n\t\t} else {\r\n\t\t\t//print('here347459475948760<br>');\r\n\t\t\tif($found_h1) {\r\n\t\t\t\t// we assume the code is syntactically sound for this...\r\n\t\t\t\tpreg_match_all('/<div/is', substr($code, 0, $h1_strpos), $open_div_matches, PREG_OFFSET_CAPTURE);\r\n\t\t\t\tpreg_match_all('/<\\/div>/is', substr($code, 0, $h1_strpos), $close_div_matches, PREG_OFFSET_CAPTURE);\r\n\t\t\t\t//print('$open_div_matches: ');var_dump($open_div_matches);\r\n\t\t\t\t$counter1 = sizeof($open_div_matches[0]) - 1;\r\n\t\t\t\t$counter2 = sizeof($close_div_matches[0]) - 1;\r\n\t\t\t\t$found_content_div = false;\r\n\t\t\t\t//print('here183945606067<br>');\r\n\t\t\t\tif(sizeof($open_div_matches) > 0) {\r\n\t\t\t\t\twhile($counter1 > -1) {\r\n\t\t\t\t\t\t//print('here183945606068<br>');\r\n\t\t\t\t\t\t$strpos_open_div = $open_div_matches[0][$counter1][1];\r\n\t\t\t\t\t\twhile($counter2 > -1) {\r\n\t\t\t\t\t\t\t//print('here183945606069<br>');\r\n\t\t\t\t\t\t\t$strpos_close_div = $close_div_matches[0][$counter2][1];\r\n\t\t\t\t\t\t\t$counter2--;\r\n\t\t\t\t\t\t\tif($strpos_close_div > $strpos_open_div) {\r\n\t\t\t\t\t\t\t\t$counter1--;\r\n\t\t\t\t\t\t\t\tcontinue 2;\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t$strpos_content_div = $strpos_open_div;\r\n\t\t\t\t\t\t\t\t$found_content_div = true;\r\n\t\t\t\t\t\t\t\tbreak 2;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t$counter1--;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(!$found_content_div) {\r\n\t\t\t\t//print('here347459475948761<br>');\r\n\t\t\t} else {\r\n\t\t\t\t//print('here347459475948762<br>');\r\n\t\t\t\t//$strpos_content_div = ReTidy::strpos_last(substr($code, 0, $h1_strpos), '<div');\r\n\t\t\t\t$content_div_code = OM::getOString($code, '<div', '</div>', $strpos_content_div);\r\n\t\t\t\t//print('$content_div_code: ');var_dump($content_div_code);\r\n\t\t\t\t$strlen_opening_content_div = strpos($content_div_code, '>') + 1;\r\n\t\t\t\t$content = substr($content_div_code, $strlen_opening_content_div, strlen($content_div_code) - $strlen_opening_content_div - 6);\r\n\t\t\t\t/*print('XXX9o9beep39o9XXX\r\n');\r\n\t\t\t\tprint('$content (div-wise): ' . $content);\r\n\t\t\t\tprint('\r\nXXX9o9beep49o9XXX\r\n\t\t\t\t');*/\r\n\t\t\t\t$content_offset = $strpos_content_div + $strlen_opening_content_div;\r\n\t\t\t\t$get_content_more_crudely = false;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif($get_content_more_crudely) {\r\n\t\t\t//print('here347459475948763<br>');\r\n\t\t\t$body = OM::getOString($code, '<body', '</body>');\r\n\t\t\tif(strlen($body) === 0) {\r\n\t\t\t\t//print('here347459475948764<br>');\r\n\t\t\t\t//if($h1_strpos === false) {\r\n\t\t\t\tif(!$found_h1) {\r\n\t\t\t\t\t//return $code; // we return the unchanged code\r\n\t\t\t\t\t//ReTidy::fatal_error('did not find the &lt;body&gt; of the document or it has zero length');exit(0);\r\n\t\t\t\t\t$strpos_last_meta = ReTidy::strpos_last($code, '<meta');\r\n\t\t\t\t\t$content_offset = $strpos_last_meta + strpos($code, '>', $strpos_last_meta);\r\n\t\t\t\t\t$content = substr($code, $content_offset);\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$content_offset = $h1_strpos;\r\n\t\t\t\t\t$content = substr($code, $h1_strpos);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t//print('here347459475948765<br>');\r\n\t\t\t\t$body_offset = strpos($code, '<body');\r\n\t\t\t\tpreg_match('/<body[^<>]*?>/is', $body, $opening_body_tag_matches, PREG_OFFSET_CAPTURE);\r\n\t\t\t\t$opening_body_tag = $opening_body_tag_matches[0][0];\r\n\t\t\t\t$strlen_opening_body_tag = strlen($opening_body_tag);\r\n\t\t\t\t$content = substr($body, $strlen_opening_body_tag, strlen($body) - $strlen_opening_body_tag - 7);\r\n\t\t\t\t$content_offset = $body_offset + $opening_body_tag_matches[0][1] + $strlen_opening_body_tag;\r\n\t\t\t\t//$cleaned_content = $content;\r\n\t\t\t}\r\n\t\t}\r\n\t\t/*\r\n\t\t// content; in this generalized templater order, attempts at grabbing the content are from the more specific to the more general\r\n\t\t$opening_content_div = '<div id=\"cn-centre-col-inner\">';\r\n\t\t$strpos_content_div = strpos($code, $opening_content_div);\r\n\t\tif($strpos_content_div !== false) {\r\n\t\t\t$content_div_code = OM::getOString($code, '<div', '</div>', $strpos_content_div);\r\n\t\t\t$strlen_opening_content_div = strlen($opening_content_div);\r\n\t\t\t$content = substr($content_div_code, $strlen_opening_content_div, strlen($content_div_code) - $strlen_opening_content_div - 6);\r\n\t\t\t$content_offset = $strpos_content_div + $strlen_opening_content_div;\r\n\t\t\t//print($content);exit(0);\r\n\t\t\t// call the end of content comment comment part of the content container rather than the content itself...\r\n\t\t\t// treating the open and close differently and possibly leaving us open to future problems...\r\n\t\t\t//$pos_close_content_comment = strpos($content, '<!-- clf2-nsi2 theme ends / Fin du thème clf2-nsi2 -->');\r\n\t\t\t//if($pos_close_content_comment !== false) {\r\n\t\t\t//\t$content = substr($content, 0, $pos_close_content_comment);\r\n\t\t\t//}\r\n\t\t\t//print($content);exit(0);\r\n\t\t\tif($strip_template_content_comments) {\r\n\t\t\t\t// remove template comments from the beginning of the content\r\n\t\t\t\t$cleaned_content = $content;\r\n\t\t\t\t$cleaned_content = str_replace('<!-- Content title begins / Début du titre du contenu -->', '', $cleaned_content);\r\n\t\t\t\t$cleaned_content = str_replace('<!-- Content Title ends / Fin du titre du contenu -->', '', $cleaned_content);\r\n\t\t\t\t$cleaned_content = str_replace('<!-- clf2-nsi2 theme begins / Début du thème clf2-nsi2 -->', '', $cleaned_content);\r\n\t\t\t\t// remove template comments from the end of the content?\r\n\t\t\t\t$cleaned_content = str_replace('<!-- clf2-nsi2 theme ends / Fin du thème clf2-nsi2 -->', '', $cleaned_content);\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$opening_content_div = '<div class=\"center\">';\r\n\t\t\t$strpos_content_div = strpos($code, $opening_content_div);\r\n\t\t\tif($strpos_content_div !== false) {\r\n\t\t\t\t$content_div_code = OM::getOString($code, '<div', '</div>', $strpos_content_div);\r\n\t\t\t\t$strlen_opening_content_div = strlen($opening_content_div);\r\n\t\t\t\t$content = substr($content_div_code, $strlen_opening_content_div, strlen($content_div_code) - $strlen_opening_content_div - 6);\r\n\t\t\t\t$content_offset = $strpos_content_div + $strlen_opening_content_div;\r\n\t\t\t\tif($strip_template_content_comments) {\r\n\t\t\t\t\t// remove template comments from the beginning of the content\r\n\t\t\t\t\t$cleaned_content = $content;\r\n\t\t\t\t\t$cleaned_content = str_replace('<!-- CONTENT TITLE BEGINS | DEBUT DU TITRE DU CONTENU -->', '', $cleaned_content);\r\n\t\t\t\t\t$cleaned_content = str_replace('<!-- CONTENT TITLE ENDS | FIN DU TITRE DU CONTENU -->', '', $cleaned_content);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$body = OM::getOString($code, '<body', '</body>');\r\n\t\t\t\tif(strlen($body) === 0) {\r\n\t\t\t\t\t//return $code; // we return the unchanged code\r\n\t\t\t\t\tReTidy::fatal_error('did not find the &lt;body&gt; of the document or it has zero length');exit(0);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tpreg_match('/<body[^<>]*?>/is', $body, $opening_body_tag_matches, PREG_OFFSET_CAPTURE);\r\n\t\t\t\t\t$opening_body_tag = $opening_body_tag_matches[0][0];\r\n\t\t\t\t\t$strlen_opening_body_tag = strlen($opening_body_tag);\r\n\t\t\t\t\t$content = substr($body, $strlen_opening_body_tag, strlen($body) - $strlen_opening_body_tag - 7);\r\n\t\t\t\t\t$content_offset = $opening_body_tag_matches[0][1] + $strlen_opening_body_tag;\r\n\t\t\t\t\t$cleaned_content = $content;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}*/\r\n\t\t// force every document to have an h1 and force the h1 to be at the start of the content\r\n\t\t//print('$h1_including_tag1: ' . $h1_including_tag);\r\n\t\t//print('$h1_previous_tag_name: ');var_dump($h1_previous_tag_name);\r\n\t\t//print('content_in_templating1: ' . $content);\r\n\t\tif(!$found_h1) {\r\n\t\t\t$h1_including_tag = '<h1>Dummy h1</h1>';\r\n\t\t\t$added_h1_length = strlen($h1_including_tag);\r\n\t\t\t$h1_previous_tag_name = 'h1';\r\n\t\t\t//$h1_strpos = $content_offset + 4;\r\n\t\t} else {\r\n\t\t\t$added_h1_length = 0;\r\n\t\t\t// cutting the h1 out\r\n\t\t\t//$content = substr($content, 0, $h1_strpos) . substr($content, $h1_strpos + strlen($h1_including_tag));\r\n\t\t\t//$content = substr($code, $content_offset, $h1_strpos) . substr($code, $h1_strpos + strlen($h1_including_tag), strlen($code) - $content_offset - ($h1_strpos + strlen($h1_including_tag)) - strlen(substr($code, $content_offset + strlen($content))));\r\n\t\t\t//$content = substr($code, $content_offset, $h1_strpos) . substr($code, $h1_strpos + strlen($h1_including_tag));\r\n\t\t\t$length_of_after_content = strlen($code) - $content_offset - strlen($content);\r\n\t\t\t$length_of_after_h1_including_tag = strlen($code) - ($h1_strpos + strlen($h1_including_tag));\r\n\t\t\t//print('after_content: ' . substr($code, $content_offset + strlen($content)));\r\n\t\t\t//print('after_h1_including_tag : ' . substr($code, $h1_strpos + strlen($h1_including_tag)));\r\n\t\t\t//$length_of_after_content = strlen(substr($code, $content_offset + strlen($content)));\r\n\t\t\t//$length_of_after_h1_including_tag = strlen(substr($code, $h1_strpos + strlen($h1_including_tag)));\r\n\t\t\t//print('substr($code, $content_offset, $h1_strpos - $content_offset) : ' . substr($code, $content_offset, $h1_strpos - $content_offset) );\r\n\t\t\t//print('substr($code, $h1_strpos + strlen($h1_including_tag), $length_of_after_h1_including_tag - $length_of_after_content) : ' . substr($code, $h1_strpos + strlen($h1_including_tag), $length_of_after_h1_including_tag - $length_of_after_content));\r\n\t\t\t$content = substr($code, $content_offset, $h1_strpos - $content_offset) . substr($code, $h1_strpos + strlen($h1_including_tag), $length_of_after_h1_including_tag - $length_of_after_content);\r\n\t\t}\r\n\t\t//print('substr($code, $h1_strpos, strlen($h1_including_tag)): ' . substr($code, $h1_strpos, strlen($h1_including_tag)));\r\n\t\t//print('$content in templating2: ');ReTidy::var_dump_full($content);\r\n\t\t$h1_including_tag = str_replace('<' . $h1_previous_tag_name, '<h1', $h1_including_tag);\r\n\t\t$h1_including_tag = str_replace('</' . $h1_previous_tag_name . '>', '</h1>', $h1_including_tag);\r\n\t\t$length_adjustment_due_to_previous_tag_name = 2 * (strlen('h1') - strlen($h1_previous_tag_name));\r\n\t\t//print('$h1_including_tag2: ' . $h1_including_tag);\r\n\t\t$content = $h1_including_tag . $content;\r\n\t\t//print('$content: ');var_dump($content);\r\n\t\t//print('$code2: ' . htmlentities($code));\r\n\t\t//print('content_in_templating3: ' . $content);\r\n\t\t//print('$code, $content_offset, $content: ');ReTidy::var_dump_full($code, $content_offset, $content);\r\n\t\t$code = substr($code, 0, $content_offset) . $content . substr($code, $content_offset + strlen($content) - $length_adjustment_due_to_previous_tag_name - $added_h1_length);\r\n\t\t// 2017-10-05\r\n\t\t// 2018-07-25; previously it was unclear why -2, but frequently we are converting a <p> to an <h1> making a difference in length of 2\r\n\t\t//$code = substr($code, 0, $content_offset) . $content . substr($code, $content_offset + strlen($content));\r\n\t\t//print('$code3: ' . htmlentities($code));\r\n\t\t// h1 inside the content\r\n\t//\tif(!$inventing_h1) {\r\n\t\t\tpreg_match('/<h1[^<>]*?>(.*?)<\\/h1>/is', $content, $h1_matches, PREG_OFFSET_CAPTURE);\r\n\t\t\t$h1 = $h1_matches[1][0];\r\n\t//\t} else {\r\n\t\t\t//print('should never get here...3489573495873');exit(0);\r\n\t\t\t//$h1 = $h1_matches[2][0];\r\n\t//\t\t$h1 = $possible_heading_content;\r\n\t//\t}\r\n\t\t// remove anchors and comments from the h1; if they are required, then the new versions should exist in the template\r\n\t\t$cleaned_h1 = $h1;\r\n\t\t$cleaned_h1 = preg_replace('/<a [^<>]*?>/is', '', $cleaned_h1);\r\n\t\t$cleaned_h1 = preg_replace('/<!--[^<>]*?-->/is', '', $cleaned_h1);\r\n\t\t$cleaned_h1 = str_replace('</a>', '', $cleaned_h1);\r\n\t\t$h1_offset = $content_offset + $h1_matches[1][1];\r\n\t\t// exclude the <h1> from the content for the purposes of templating\r\n\t\t//$content = substr($content, $h1_matches[0][1] + strlen($h1_matches[0][0]));\r\n\t\t//$content = str_replace($h1_matches[0][0], '', $content); // not good enough\r\n\t\t$content = substr($content, $h1_matches[0][1] + strlen($h1_matches[0][0]));\r\n\t\t//print('content_in_templating4: ' . $content);\r\n\t\t$content_offset += $h1_matches[0][1] + strlen($h1_matches[0][0]); \r\n\t\t// exclude the date modified from the content for the purposes of templating\r\n\t\t// this is very specific so we might need to have date modified detection similar to what's in the templateCode function (around line 600)\r\n\t\tif(preg_match('/<dl[^<>]*?>\\s*<dt>(Date modified:|Date de modification&#160;:)<\\/dt>\\s*<dd>\\s*<span>\\s*<time>([^<>]*?)<\\/time>\\s*<\\/span>\\s*<\\/dd>\\s*<\\/dl>/is', $content, $date_modified_matches, PREG_OFFSET_CAPTURE)) {\r\n\t\t\t//var_dump($date_modified_matches);\r\n\t\t\t$content = substr($content, 0, $date_modified_matches[0][1]);\r\n\t\t}\r\n\t\t//print('content_in_templating5: ' . $content);\r\n\t\t$cleaned_content = $content;\r\n\t\t//print('$cleaned_content1: ' . $cleaned_content);\r\n\t\t$array_content_comments_to_remove = array(\r\n\t\t'<!-- Content title begins / Début du titre du contenu -->',\r\n\t\t'<!-- Content Title ends / Fin du titre du contenu -->',\r\n\t\t'<!-- clf2-nsi2 theme begins / Début du thème clf2-nsi2 -->',\r\n\t\t'<!-- clf2-nsi2 theme ends / Fin du thème clf2-nsi2 -->',\r\n\t\t'<!-- CONTENT TITLE BEGINS | DEBUT DU TITRE DU CONTENU -->',\r\n\t\t'<!-- CONTENT TITLE ENDS | FIN DU TITRE DU CONTENU -->',\r\n\t\t'<!-- InstanceEndEditable -->',\r\n\t\t);\r\n\t\tforeach($array_content_comments_to_remove as $index => $value) {\r\n\t\t\t$cleaned_content = str_replace($value, '', $cleaned_content);\r\n\t\t}\r\n\t\t//print('$cleaned_content2: ' . $cleaned_content);\r\n\t\t$array_regex_content_comments_to_remove = array(\r\n\t\t'<!-- InstanceBeginEditable name=\"[^\"]*?\" -->',\r\n\t\t);\r\n\t\tforeach($array_regex_content_comments_to_remove as $index => $value) {\r\n\t\t\t$cleaned_content = preg_replace('/' . $value . '/is', '', $cleaned_content);\r\n\t\t}\r\n\t\t//print('ContentArray\t: ');var_dump(array($content, $content_offset, $cleaned_content, $h1, $h1_offset, $cleaned_h1));\r\n\t\t//print('$cleaned_content3: ' . $cleaned_content);\r\n\t\t//print('$code in getContentArray: ' . $code);\r\n\t\treturn array($code, $content, $content_offset, $cleaned_content, $h1, $h1_offset, $cleaned_h1);\r\n\t}", "function source_view($srcpath, $colwidth = 80)\n{\n\t// check that the file exists, and is being requested within the source dir\n\tif (file_exists($srcpath) && substr($srcpath,0,3) == \"src\")\n\t{\n\t\t// display it\n\t\techo \"<p>Browsing /\".$srcpath.\" ... <br />\\nSize: \".round(filesize($srcpath)/1024,1).\" Kb<br />\\nLast modified: \".date(\"M d, G:i\",filectime($srcpath)).\"<br /></p>\\n<p><a href=\\\"?browsesrc\\\">Back to the source listing</a></p>\\n\";\n\t\techo \"<p class=\\\"small\\\">N.B: this source is forcibly wrapped at $colwidth characters - the ¬ symbol is used to denoted the point at which the code was wrapped.</p>\\n\";\n\t\techo \"<pre class=\\\"source\\\">\";\n\t\t$fd = @fopen($srcpath,\"r\") or die(\"Permission denied opening /$srcpath\\n\");\n\t\t\n\t\t$strfilecontents = \"\";\n\t\t\n\t\twhile (!feof($fd))\n\t\t{\n\t\t\t$buf = fgets($fd);\n\t\t\tif (ereg(\"#define ADMIN_PASSWORD\", $buf))\n\t\t\t{\n\t\t\t\t$defineparts = explode(\"\\\"\",$buf, 2);\n\t\t\t\t$buf = $defineparts[0] . \"\\\"********\\\"\\n\";\n\t\t\t\t// $strfilecontents .= wordwrap($buf,$colwidth,\" ¬\\n \");\n\t\t\t\t$strfilecontents .= source_replace($buf, \"before\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t// $strfilecontents .= wordwrap($buf,$colwidth,\" ¬\\n \");\n\t\t\t\t$strfilecontents .= source_replace($buf, \"before\");\n\t\t\t}\n\t\t}\n\t\t\n\t\t$lines = explode(\"\\n\",trim($strfilecontents));\n\t\t$linenumberwidth = strlen(count($lines).\"\");\n\t\t\n\t\tfor ($i=0;$i<count($lines);$i++)\n\t\t{\n\t\t\techo \"<span class=\\\"ln\\\" id=\\\"line\".($i+1).\"\\\">\";\n\t\t\tfor ($j=strlen(($i+1).\"\");$j<$linenumberwidth;$j++) echo \"0\";\n\t\t\techo ($i+1).\"</span> \".source_replace(htmlspecialchars($lines[$i])).\"\\n\";\n\t\t}\n\t\t\n\t\t// echo $strfilecontents;\n\t\t\n\t\techo \"</pre>\\n\";\n\t}\n\telse\n\t{\n\t\t// some error message...\n\t\techo \"<p>The file /\".$srcpath.\" doesn't appear to exist.</p>\\n<p><a href=\\\"?browsesrc\\\">Back to the source listing</a></p>\\n\";\n\t}\n}", "public function getSourceString ()\n {\n $objectManager = \\Magento\\Framework\\App\\ObjectManager::getInstance();\n $productMetadata = $objectManager->get(\n 'Magento\\Framework\\App\\ProductMetadataInterface');\n $version = $productMetadata->getVersion();\n return $this->getVersion() . \"_Magento_\" . $version;\n }", "public function getSource()\n {\n return $this->source;\n }" ]
[ "0.6400092", "0.6317464", "0.630051", "0.6178851", "0.61038744", "0.6086134", "0.60487306", "0.6022443", "0.59086823", "0.5885389", "0.58467066", "0.5839428", "0.5828351", "0.57863635", "0.5773399", "0.5758739", "0.5758739", "0.5758739", "0.5758739", "0.5758739", "0.57582253", "0.57582253", "0.57573617", "0.5738536", "0.5737549", "0.57330096", "0.5726065", "0.5700431", "0.56640995", "0.56552553", "0.56552553", "0.56168544", "0.5612513", "0.558112", "0.5566487", "0.55660886", "0.5541869", "0.55389464", "0.5522824", "0.5522824", "0.55070597", "0.5493994", "0.5466807", "0.54599595", "0.5446622", "0.54376554", "0.5436871", "0.54335845", "0.5431269", "0.5403745", "0.53945994", "0.53861123", "0.5381786", "0.5381786", "0.5381786", "0.5381786", "0.5381786", "0.5381786", "0.5375478", "0.53731257", "0.5364482", "0.5354949", "0.5318722", "0.53167766", "0.5311303", "0.5288623", "0.52775294", "0.5275923", "0.5271483", "0.52687806", "0.5265796", "0.5245752", "0.52420825", "0.52315766", "0.5230244", "0.52262384", "0.52262384", "0.52262384", "0.5221123", "0.5221123", "0.5219176", "0.521575", "0.5214084", "0.52105904", "0.5207691", "0.52072614", "0.5206805", "0.5206212", "0.52060795", "0.520565", "0.52047044", "0.520234", "0.5201359", "0.5199132", "0.5199132", "0.5199132", "0.5195033", "0.51871234", "0.51796657", "0.5176761" ]
0.6181089
3
Returns the start position in the file token stream.
public function getStartPosition() { return $this->startPosition; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFilePos() {\n\t\treturn $this->linepointer;\n\t}", "public function getOffsetStart()\n\t{\n\t\treturn $this->start + 1;\n\t}", "public function getStartOffset() {}", "protected function getStreamPos()\n {\n return gztell($this->file);\n }", "public function getStartLine(): int\n {\n return $this->node->getStartLine();\n }", "public function getStart(): int\n {\n return $this->start;\n }", "public function getStart(): int\n {\n return $this->start;\n }", "public function getStart(): int\n {\n return $this->start;\n }", "public function getStartLine(): int\n {\n return $this->node->getAttribute('startLine');\n }", "public function getStartPosition() {\r\n return $this->startPosition;\r\n }", "public function getStartPosition()\n\t{\n\t\treturn -1;\n\t}", "public function getStartIndex()\n {\n return $this->start_index;\n }", "protected function nodeStart(Node $node)\n {\n $attributes = $node->getAttributes();\n if (!isset($attributes['startFilePos'])) {\n throw new \\LogicException(\"replaceNode requires startFilePos and endFilePos to be set. \"\n . \"Check your Lexer usedAttributes option!\");\n }\n return $attributes['startFilePos'];\n }", "public function getStartCursor()\n {\n return $this->start_cursor;\n }", "public function getStartLine()\n\t{\n\t\treturn $this->startLine;\n\t}", "public function tell() {\r\n\t\t$pos=ftell($this->_handle);\r\n\t\tif($pos===false) {\r\n\t\t\tthrow new Curly_Stream_Exception('An error occured while determining the current stream offset');\r\n\t\t}\r\n\t\treturn $pos;\r\n\t}", "public function getLine()\n\t{\n\t\treturn $this->token->line;\n\t}", "public function getStartBeginning();", "protected function get_offset(): int\n\t{\n\t\treturn $this->start;\n\t}", "public function getLine(): int\n {\n return $this->node->start_lineno;\n }", "public function getStart(): ?int\n {\n return $this->start;\n }", "public function getStartLine() {\n if ( $this->reflectionSource instanceof ReflectionFunction ) {\n return $this->reflectionSource->getStartLine();\n } else {\n return parent::getStartLine();\n }\n }", "public function getStart() {\n\t\treturn $this->start;\n\t}", "protected function _findStartOffset() {}", "public function getStart()\n {\n return $this->start;\n }", "public function getStart()\n {\n return $this->start;\n }", "public function getStart()\n {\n return $this->start;\n }", "public function getStart()\n {\n return $this->start;\n }", "public function getStart()\n {\n return $this->start;\n }", "public function getStart()\n {\n return $this->start;\n }", "public function getStart()\n {\n return $this->start;\n }", "public function getStart ()\r\n\t{\r\n\t\treturn $this->start;\r\n\t}", "function getStart() {\n\t\t\treturn $this->start;\n\t\t}", "public function get_position()\n {\n\n if ( $file = fopen($this->path,\"r\") ) {\n\n $string_number = 0;\n $position = 0;\n while(($line = fgets($file,4096)) !== false && !$position) {\n\n $string_number++;\n if(strpos($line,$this->str) !== false) {\n\n $position = strpos($line,$this->str);\n }\n }\n echo 'номер строки: ' . $string_number . ', позиция: ' . ($position+1);\n\n } else {\n\n echo 'ничего не вышло';\n\n }\n\n }", "function pos(){\n return ftell($this->handle);\n }", "public function getPosition()\r\n {\r\n return ftell($this->handle);\r\n }", "public function stream_tell() {\r\n\t\treturn $this->pos;\r\n\t}", "public function getStart() {\n\t\treturn $this->attributes['start'];\n\t}", "public function getStart()\n {\n return ($this->curPage - 1) * $this->nbPerPage;\n }", "public function stream_tell()\n {\n return $this->_pos;\n }", "private function getOffset()\n {\n $this->current_offset = null;\n \n $headers = $this->getHead();\n \n if (isset($headers['Offset']) === true) {\n $this->current_offset = $headers['Offset'];\n }\n \n return $this->current_offset;\n }", "public function stream_tell()\r\n {\r\n return $this->_pos;\r\n }", "public function getSeek()\n {\n if ($this->validateSource()) {\n return ftell($this->source->getStream());\n }\n\n return false;\n }", "function stream_tell() {\r\n\t\treturn $this->position;\r\n\t}", "public function get_start_offset()\n {\n }", "public function getStart(): int;", "private function findOffset()\n {\n $this->seek(0);\n\n $offset = 0;\n\n while (!$this->isEndOfFile()) {\n if (strtolower($this->read(1)) === self::$sequence[$offset]) {\n $offset++;\n } else {\n $offset = 0;\n }\n\n if (!isset(self::$sequence[$offset + 1])) {\n break;\n }\n }\n\n $this->seek(1, SEEK_CUR);\n\n if ($offset === (count(self::$sequence) - 1)) {\n $position = $this->getPosition();\n\n if (\"\\r\\n\" === $this->read(2)) {\n return $position + 2;\n }\n\n return $position;\n }\n\n return null;\n }", "public function getCodePosition() {\n return $this->codeAtEnd ? self::END : self::START;\n }", "public function getFilePointer()\n {\n return $this->_filePointer;\n }", "protected static function getLineNumbersStart($openingTag) {\n\t\t$start = 1;\n\t\tif (!empty($openingTag['attributes'][0])) {\n\t\t\t$start = intval($openingTag['attributes'][0]);\n\t\t\tif ($start < 1) $start = 1;\n\t\t}\n\t\t\n\t\treturn $start;\n\t}", "public function getStart() {\n $p = $this->getPage();\n if(is_null($p) || $p == 1){\n $start = 1;\n } else {\n $start = (self::MAX_RESULTS) * ($p - 1) + 1;\n }\n return $start;\n }", "public function stream_tell(): int\n {\n return $this->position;\n }", "public function getStart()\n {\n return isset($this->transaction['start']) ? $this->transaction['start'] : '';\n }", "public function position()\r\n\t{\r\n\t\treturn ftell($this->getPointer());\r\n\t}", "public function testFileReaderKeyMethodShouldReturnCurrentPosition()\n {\n $fileReader = new ChunkedFileReader($this->__testFilePath);\n $this->assertEquals(0, $fileReader->key());\n $fileReader->seek(9);\n $this->assertEquals(9, $fileReader->key());\n }", "public function tell()\n {\n $res = ftell($this->stream);\n if ($res === false) {\n throw new RuntimeException('Could not determine current stream position');\n }\n return $res;\n }", "public function get_footnotes_generated_start() {\n return $this->footnotes_generated_start;\n }", "public function element_start_position(){\n return ($this->amount_per_page * $this->current_page) - $this->amount_per_page;\n }", "private function getStart()\n\t{\n//\t\tprint '#'.$this->getPage().'-'.$this->getRowsPerPage().'#';\n\t\t$iStart = ( ($this->getPage() - 1) * $this->getRowsPerPage() );\n\t\tif($iStart < 0)\n\t\t{\n\t\t\t$iStart = 0;\n\t\t}\n//\t\tprint $iStart.'*';\n\t\treturn $iStart;\n//\t\tprint $this->start .'*';\n\t}", "public function getCasStart()\n {\n return $this->cas_start;\n }", "public function tell()\n {\n return ($this->chunkOffset * $this->chunkSize) + $this->bufferOffset;\n }", "function GetStart()\n {\n $this->Set_Getvar_val();\n $this->start = (($this->getvar_val-1)*$this->length);\n }", "public function getStartLine()\n\t{\n\t\treturn null;\n\t}", "private final function parseStartLine(Stream $tokenStream)\n\t{\n\t\t$token = $tokenStream->current();\n\t\t$this->startLine = $token[2];\n\n\t\t$this->startPosition = $tokenStream->key();\n\n\t\treturn $this;\n\t}", "public function get_file_pointer()\n {\n if (( $offset = @ftell($this->file_handle) ) === false) {\n throw new Ai1wm_Not_Tellable_Exception(sprintf('Unable to tell offset of file. File: %s', $this->file_name));\n }\n\n return $offset;\n }", "public function getSource()\n\t{\n\t\treturn $this->broker->getFileTokens($this->getFileName())->getSourcePart($this->startPosition, $this->endPosition);\n\t}", "private function findHeaderCommentInsertionIndex(Tokens $tokens)\n {\n $index = $tokens->getNextNonWhitespace(0);\n\n if (null === $index) {\n // empty file, insert at the end\n $index = $tokens->getSize();\n }\n\n return $index;\n }", "public function getStartAt()\n {\n return $this->start_at;\n }", "public function getPageStart(): ?int\n {\n return $this->pageStart;\n }", "public function tell(): int\n {\n $this->assertHandleIsOpen();\n \n return $this->offset;\n }", "function getPosition() { return $this->readText(); }", "protected function loadDocCommentPos(): ?int\n {\n $docHelper = $this->getDocHelper();\n\n return $docHelper->hasDocBlock() ? $docHelper->getBlockStartPosition() : null;\n }", "public function getPageStart()\n {\n $request = $this->getRequest();\n if ($this->pageStart === null) {\n if ($request\n && isset($request[$this->getPaginationGetVar()])\n && $request[$this->getPaginationGetVar()] > 0\n ) {\n $this->pageStart = (int)$request[$this->getPaginationGetVar()];\n } else {\n $this->pageStart = 0;\n }\n }\n\n return $this->pageStart;\n }", "private function getPosition()\n {\n if (false === ($position = @ftell($this->getHandle()))) {\n $error = error_get_last();\n\n throw new RuntimeException($error['message']);\n }\n\n return $position;\n }", "public function stream_tell(): int\n\t{\n\t\treturn ftell($this->tempHandle);\n\t}", "public function getCharStart();", "public function getSource()\n\t{\n\t\treturn $this->token->source;\n\t}", "function getPosition() { return $this->readText(); }", "protected function getListStart()\n {\n return $this->_listStart;\n }", "public function tell()\n {\n return ftell($this->_getFileHandle());\n }", "public function getStartLocation()\n {\n return $this->start_location;\n }", "public function tell(): int\n {\n return $this->stream->tell() - $this->offset;\n }", "public function pageStart() {\r\n\t\treturn ($this->getCurrentPage() * $this->__pageItems) - ($this->__pageItems - 1);\r\n\t}", "public function getLineNumber(){\n if( $this->index ){\n return substr_count($this->input, \"\\n\", 0, $this->index) + 1;\n }\n return 1;\n }", "public function getMinimumOffset() {\r\n return $this->minimumOffset;\r\n }", "public function tell()\n {\n return ftell($this->stream);\n }", "public function getStartIndex();", "public function testFileReaderShouldReturnCharactersInCurrentPosition()\n {\n $fileReader = new ChunkedFileReader($this->__testFilePath);\n $this->assertEquals('1', $fileReader->current());\n $fileReader->seek(1);\n $this->assertEquals('2', $fileReader->current());\n $fileReader->seek(9);\n $this->assertEquals('0', $fileReader->current());\n }", "protected function _getSloc($file)\n {\n $analyser = new Analyser();\n $results = $analyser->countFiles(array($file), false);\n\n // lloc = Logical Lines of Code\n return $results['lloc'];\n }", "public function setFilePos($pos) {\n\t\t$this->linepointer = $pos;\n\t\treturn $this->linepointer;\n\t}", "public function getCurrentLine()\n {\n return $this->lineno;\n }", "public function getPosition() : int\n {\n $rtn = $this->data['position'];\n\n return $rtn;\n }", "protected function getDocCommentPos()\n {\n if ($this->docCommentPos === false) {\n $this->docCommentPos = $this->loadDocCommentPos();\n }\n\n return $this->docCommentPos;\n }", "public function getPos()\n {\n return $this->pos;\n }", "public function getStartTimeOffset()\n {\n return $this->start_time_offset;\n }", "public function get_start_cursor()\n {\n }", "public function getStart()\n {\n return clone $this->_start;\n }", "public function getCaretOffset() {}", "public function getDocblockOpenPtr(): int|false\n {\n return $this->phpcsFile->findPrevious(T_DOC_COMMENT_OPEN_TAG, $this->scopePtr, false, false, '/**', true);\n }", "function get_begin()\n {\n return $this->get_default_property(self :: PROPERTY_BEGIN);\n }" ]
[ "0.7190563", "0.71012163", "0.69067687", "0.677515", "0.6726911", "0.66924924", "0.66924924", "0.66924924", "0.66350144", "0.66114146", "0.65433866", "0.6519514", "0.6506582", "0.64672804", "0.6449487", "0.6414827", "0.64048874", "0.63939565", "0.63304824", "0.6285237", "0.62471265", "0.62264615", "0.62235093", "0.6202729", "0.6198989", "0.6198989", "0.6198989", "0.6198989", "0.6198989", "0.6198989", "0.6198989", "0.619153", "0.6166329", "0.6135282", "0.61120874", "0.61118424", "0.6104821", "0.60852015", "0.6049827", "0.6049366", "0.6048577", "0.60187316", "0.6018279", "0.5977138", "0.59734803", "0.59673685", "0.59454334", "0.5923786", "0.59159213", "0.58481157", "0.58341956", "0.5833386", "0.583299", "0.5807222", "0.5784425", "0.5778916", "0.57685447", "0.5764806", "0.57647765", "0.57593846", "0.5748896", "0.5735558", "0.57326895", "0.5731738", "0.57212037", "0.5714392", "0.57132244", "0.5708876", "0.5682773", "0.56671214", "0.5661333", "0.5661044", "0.5649426", "0.56423944", "0.56339985", "0.5631534", "0.5630522", "0.56227255", "0.55973417", "0.5588037", "0.55868274", "0.55629647", "0.5558756", "0.5539145", "0.5529284", "0.55166084", "0.5505012", "0.54696864", "0.5450719", "0.544423", "0.54436296", "0.5443288", "0.5439644", "0.54047763", "0.54046243", "0.54033273", "0.5400495", "0.53960735", "0.5384981", "0.538471" ]
0.6830006
3
Returns the end position in the file token stream.
public function getEndPosition() { return $this->endPosition; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getEndPosition()\n\t{\n\t\treturn -1;\n\t}", "public function getEndPosition() {\r\n return $this->endPosition;\r\n }", "public function getEndLine(): int\n {\n return $this->node->end_lineno;\n }", "public function getEnd(): int\n {\n return $this->end;\n }", "public function getOffsetEnd()\n\t{\n\t\treturn $this->start + count($this->entities);\n\t}", "protected function getStreamPos()\n {\n return gztell($this->file);\n }", "public function getFilePos() {\n\t\treturn $this->linepointer;\n\t}", "public function getEndCursor()\n {\n return $this->end_cursor;\n }", "public function tell()\n {\n return ftell($this->stream);\n }", "function getEnd() {\n\t\t\treturn $this->end;\n\t\t}", "public function getEnd(): ?int\n {\n return $this->end;\n }", "public function getEnd(): ?int\n {\n return $this->end;\n }", "public function getEnd()\n {\n return $this->end;\n }", "public function getEnd()\n {\n return $this->end;\n }", "public function getEnd()\n {\n return $this->end;\n }", "public function getEnd()\n {\n return $this->end;\n }", "public function getEnd()\n {\n return $this->end;\n }", "public function getEnd()\n {\n return $this->end;\n }", "public function getEndLine(): int\n {\n return $this->node->getEndLine();\n }", "public function tell() {\r\n\t\t$pos=ftell($this->_handle);\r\n\t\tif($pos===false) {\r\n\t\t\tthrow new Curly_Stream_Exception('An error occured while determining the current stream offset');\r\n\t\t}\r\n\t\treturn $pos;\r\n\t}", "public function tell()\n {\n return ftell($this->_getFileHandle());\n }", "public function getEndLine(): int\n {\n return $this->node->getAttribute('endLine');\n }", "public function getEndIndex()\n {\n return $this->end_index;\n }", "public function stream_tell() {\r\n\t\treturn $this->pos;\r\n\t}", "public function tell()\n {\n $res = ftell($this->stream);\n if ($res === false) {\n throw new RuntimeException('Could not determine current stream position');\n }\n return $res;\n }", "public function tell(): int\n {\n return $this->stream->tell() - $this->offset;\n }", "function stream_tell() {\r\n\t\treturn $this->position;\r\n\t}", "public function getEnd()\n\t{\n\t\treturn $this->End;\n\t}", "public function getEnd(): int;", "public function getEndPosition($position) {\n $endPosition = $position;\n for ($i = $position; $i < $this->length; $i++) {\n if ($this->words[$i]['processed'] || $this->isModifierPosition($i)) {\n $endPosition = $i - 1;\n break;\n }\n $endPosition = $i;\n }\n return $endPosition;\n }", "public function stream_tell()\r\n {\r\n return $this->_pos;\r\n }", "function pos(){\n return ftell($this->handle);\n }", "public function stream_tell()\n {\n return $this->_pos;\n }", "public function getEndLine() {\n\t\treturn $this->end_line;\n\t}", "public function getEnd()\n {\n return isset($this->transaction['end']) ? $this->transaction['end'] : '';\n }", "public function getPosition()\r\n {\r\n return ftell($this->handle);\r\n }", "public function stream_tell(): int\n\t{\n\t\treturn ftell($this->tempHandle);\n\t}", "public function getEndAt()\n {\n return $this->end_at;\n }", "public function getEndAt()\n {\n return $this->end_at;\n }", "public function tell()\n {\n return ($this->chunkOffset * $this->chunkSize) + $this->bufferOffset;\n }", "public function getEndLine()\n\t{\n\t\treturn $this->endLine;\n\t}", "public function stream_tell(): int\n {\n return $this->position;\n }", "public function tell() {\n\t\treturn ftell($this->handle);\n\t}", "public function fnNextToken() \n {\n $aCurContext = $this->fnCurContext();\n if (!$aCurContext || !$aCurContext->bPreserveSpace)\n $this->fnSkipSpace();\n\n $this->iStart = $this->iPos;\n if ($this->aOptions['locations']) \n $this->oStartLoc = $this->fnCurPosition();\n if ($this->iPos >= mb_strlen($this->sInput)) \n return $this->fnFinishToken(TokenTypes::$aTypes['eof']);\n\n if (is_callable($aCurContext->fnOverride)) \n return $aCurContext->fnOverride($this);\n else \n $this->fnReadToken($this->fnFullCharCodeAtPos());\n }", "public function end() {\n return $this->_end;\n }", "public function getSeek()\n {\n if ($this->validateSource()) {\n return ftell($this->source->getStream());\n }\n\n return false;\n }", "public function tell()\n {\n return ftell($this->res);\n }", "public function getEndLocation()\n {\n return $this->end_location;\n }", "protected function parseEnd()\n {\n return ($end = $this->matchChar(';')) ? $end : $this->peekChar('}');\n }", "public function getLastPosition(): ?int;", "protected function nodeEnd(Node $node)\n {\n $attributes = $node->getAttributes();\n if (!isset($attributes['startFilePos'])) {\n throw new \\LogicException(\"replaceNode requires startFilePos and endFilePos to be set. \"\n . \"Check your Lexer usedAttributes option!\");\n }\n return $attributes['endFilePos'];\n }", "public function getEnd()\n {\n return $this->metaRefreshValues['end'];\n }", "public function getEndLine() {\n if ( $this->reflectionSource instanceof ReflectionFunction ) {\n return $this->reflectionSource->getEndLine();\n } else {\n return parent::getEndLine();\n }\n }", "public function readUntilEnd(): string\n {\n $this->lastAccessed = time();\n\n return $this->content->readUntilEnd();\n }", "public function end() {\n return $this->end;\n }", "private function getFileCount()\n {\n $this->seek($this->offset + 4);\n\n return $this->readLong();\n }", "public function getEndIn()\n {\n return $this->end_in;\n }", "public function getLastChunk()\n {\n return $this->lastChunk;\n }", "public function getEndOfLine()\n {\n return $this->endOfLine;\n }", "public function position()\r\n\t{\r\n\t\treturn ftell($this->getPointer());\r\n\t}", "public function getPageEnd(): ?int\n {\n return $this->pageEnd;\n }", "public function EOF()\n {\n return $this->EOF;\n }", "protected function scanEOS()\n {\n if (mb_strlen($this->page) ) {\n return;\n }\n\n return $this->lastIndents-- > 0 ? $this->takeToken('outdent') : $this->takeToken('eos');\n }", "private function end() {\n return $this->formats['end'];\n }", "private function findOffset()\n {\n $this->seek(0);\n\n $offset = 0;\n\n while (!$this->isEndOfFile()) {\n if (strtolower($this->read(1)) === self::$sequence[$offset]) {\n $offset++;\n } else {\n $offset = 0;\n }\n\n if (!isset(self::$sequence[$offset + 1])) {\n break;\n }\n }\n\n $this->seek(1, SEEK_CUR);\n\n if ($offset === (count(self::$sequence) - 1)) {\n $position = $this->getPosition();\n\n if (\"\\r\\n\" === $this->read(2)) {\n return $position + 2;\n }\n\n return $position;\n }\n\n return null;\n }", "public function getCodePosition() {\n return $this->codeAtEnd ? self::END : self::START;\n }", "public function getEnd() {}", "public function stream_tell() {}", "function stream_eof() {\n return $this->eof;\n }", "public function getEnd()\n {\n return $this->getLatestPeriod()->getEnd();\n }", "public function eof() {\n\t\treturn feof($this->handle);\n\t}", "public function eof()\n {\n return $this->feof();\n }", "public function eof()\n {\n return feof($this->stream);\n }", "public function tell(): int\n {\n $this->assertHandleIsOpen();\n \n return $this->offset;\n }", "public function offset()\n {\n $this->_checkStreamHandle();\n return ftell($this->_stream_handle);\n }", "public function lastLine(){\n return $this->file[array_key_last($this->file)] ?? '';\n }", "public function getRangeEnd()\n {\n return $this->range_end;\n }", "public function stream_eof()\n {\n return ($this->_pos >= strlen($this->_pointer));\n }", "public function getLastTimestamp()\n\t{\n\t\tif (!$this->isFlv())\n\t\t\treturn 0;\n\t\t\t\n\t\tfseek($this->fh, -4 , SEEK_END); // go back 4 bytes\n\t\t\n\t\t$prev_tag_size_raw = fread ($this->fh, 4);\n\t\t$tag_size = unpack(\"N\", $prev_tag_size_raw);\n\t\t\n\t\t// go back 4 bytes AND the size of the tag + 4 bytes to get to the timestamp\n\t\tfseek ($this->fh, -$tag_size[1], SEEK_END);\n\t\t\n\t\t$data = fread ($this->fh, 4);\n\t\t$data = $data[3].substr($data, 0, 3);\n\t\t$res = unpack(\"N\", $data);\n\t\treturn $res[1];\n\t}", "public function getEnd()\n {\n return clone $this->_end;\n }", "public function getEndTimeOffset()\n {\n return $this->end_time_offset;\n }", "public function getLastCharIndex() {}", "public function getLastSplit()\n {\n $buffer = $this->getBuffer();\n $splits = explode(PHP_EOL, $buffer);\n return array_pop($splits);\n }", "public function getCharEnd();", "private function isEndOfFile()\n {\n $handle = $this->getHandle();\n\n if (false === @fgetc($handle)) {\n\n return feof($handle);\n } else {\n fseek($handle, -1, SEEK_CUR);\n }\n\n return false;\n }", "protected function getLogContentsAfterLastMarker()\n {\n $startTestMarker = 'test marker';\n\n $logContents = file_get_contents($this->findNewestLocalLogfile());\n\n $lastMarkerPosition = strrpos($logContents, $startTestMarker);\n\n $contentsAfterLastMarker = substr($logContents, $lastMarkerPosition);\n\n return $contentsAfterLastMarker;\n }", "public function getEnd();", "public function getLastLine()\n {\n return $this->lastLine;\n }", "protected function scanEOS()\n {\n if (mb_strlen($this->input)) {\n return;\n }\n\n return $this->lastIndents-- > 0 ? $this->takeToken('outdent') : $this->takeToken('eos');\n }", "function getEndNode(){\n return $this->endNode;\n }", "public function tell(): int;", "public function getEnd() : Nodo|null\n {\n return $this->end;\n }", "public function element_end_position(){\n if($this->number_of_pages() == $this->current_page){\n return $this->total_amount - 1;\n }\n else{\n return $this->element_start_position() + $this->amount_per_page - 1;\n }\n }", "public function getLine()\n\t{\n\t\treturn $this->token->line;\n\t}", "public function getOffset()\r\n {\r\n return ( $this->_pageno - 1 ) * $this->_size;\r\n }", "public function getEnd()\n {\n return $this->end_time;\n }", "abstract protected function isEndToken(string $token) : bool;", "function getEndDelimiter()\n {\n return $this->_objectPool[$this->_lastUsedObjectKey]->getOption('delimiter',1);\n }", "public function tell()\n {\n $result = ftell($this->stream);\n\n if (false === $result) {\n $msg = 'Error occurred during telling position of the read/write pointer in stream.';\n throw new Exception\\RuntimeException($msg);\n }\n\n return $result;\n }", "public function getLastIndex()\n {\n return $this->index - 1;\n }" ]
[ "0.7139315", "0.7052366", "0.6937376", "0.68073964", "0.6776418", "0.66423357", "0.6633799", "0.6566617", "0.65405893", "0.653587", "0.6521533", "0.6521533", "0.648041", "0.648041", "0.648041", "0.648041", "0.648041", "0.648041", "0.64644897", "0.646293", "0.644311", "0.642467", "0.6398342", "0.6376857", "0.63438267", "0.6315365", "0.62992007", "0.62830096", "0.62804246", "0.6265869", "0.62643117", "0.62634665", "0.62557834", "0.6221959", "0.6188134", "0.6172703", "0.6150169", "0.61367136", "0.61367136", "0.6125532", "0.61107236", "0.61034906", "0.6101333", "0.6099198", "0.60861534", "0.60773075", "0.60642684", "0.606345", "0.60503376", "0.604553", "0.6029957", "0.5998957", "0.5996697", "0.5980038", "0.5979912", "0.59433156", "0.5915053", "0.58964646", "0.5893847", "0.5883968", "0.58593327", "0.58226615", "0.5807479", "0.5805385", "0.580189", "0.5792959", "0.5788768", "0.5774685", "0.57676345", "0.5755192", "0.574659", "0.57428336", "0.5738998", "0.5734423", "0.5730581", "0.5711886", "0.5707306", "0.56778485", "0.56711924", "0.5658906", "0.5652748", "0.5645451", "0.56433254", "0.5634006", "0.56165344", "0.56150424", "0.5610118", "0.560967", "0.560035", "0.55917734", "0.55915445", "0.5586378", "0.55694693", "0.555546", "0.5546049", "0.55448544", "0.5543242", "0.5521306", "0.55194736", "0.550548" ]
0.70314056
2
Returns the stack of docblock templates.
protected function getDocblockTemplates() { return $this->docblockTemplates; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function bp_attachments_get_template_stack( $stack = array() ) {\n\treturn array_merge( $stack, array( bp_attachments_get_templates_dir() ) );\n}", "public function getTemplates (){\n $dir = conf::pathHtdocs() . \"/templates\";\n $templates = file::getFileList($dir, array('dir_only' => true));\n\n $ary = array ();\n foreach ($templates as $val){\n $info = $this->getSingleTemplate($val);\n if (empty($info)) {\n continue;\n }\n $ary[] = $info;\n }\n return $ary;\n }", "function templates()\n {\n return [];\n }", "public static function list_templates()\n\t{\n\n\t\t$functions = get_class_methods('Controller_Admin_Documents');\n\n\t\t$doc_gen_functions = NULL;\n\t\tforeach ($functions as $key => $function)\n\t\t{\n\t\t\tif (strpos($function, 'action_doc_template') !== FALSE)\n\t\t\t{\n\t\t\t\t$cache = explode('action_doc_', $function);\n\t\t\t\t$doc_gen_functions[] = $cache[1];\n\t\t\t}\n\t\t}\n\n\t\treturn $doc_gen_functions;\n\t}", "public function getTemplates()\n {\n $templates = SSViewer::get_templates_by_class(static::class, '', __CLASS__);\n // Prefer any custom template\n if ($this->getTemplate()) {\n array_unshift($templates, $this->getTemplate());\n }\n return $templates;\n }", "function get_the_block_template_html()\n {\n }", "public function getTemplates()\n\t{\n\t\t$templates = [\n\t\t\t'br' => '<br/>',\n\t\t\t'e' => '',\n\t\t\t'i' => '',\n\t\t\t'p' => '<p><xsl:apply-templates/></p>',\n\t\t\t's' => ''\n\t\t];\n\n\t\tforeach ($this->configurator->tags as $tagName => $tag)\n\t\t{\n\t\t\tif (isset($tag->template))\n\t\t\t{\n\t\t\t\t$templates[$tagName] = (string) $tag->template;\n\t\t\t}\n\t\t}\n\n\t\tksort($templates);\n\n\t\treturn $templates;\n\t}", "public function getTemplates()\n {\n $finder = Finder::create()\n ->files()\n ->name('*.sql')\n ->in($this->rootDir.'/../templates')\n ;\n\n $templates = [];\n\n /** @var SplFileInfo $file */\n foreach ($finder as $file) {\n $templates[] = $file->getRelativePathname();\n }\n\n return $templates;\n }", "protected function getDocumentTemplate() {}", "protected function getDocumentTemplate() {}", "protected function getDocumentTemplate() {}", "protected function getDocumentTemplate() {}", "protected function getDocumentTemplate() {}", "protected function getDocumentTemplate() {}", "protected function getDocumentTemplate() {}", "protected function getDocumentTemplate() {}", "protected function getDocumentTemplate() {}", "public function getTemplates()\n {\n return $this->templates;\n }", "public function getTemplates()\n {\n return $this->templates;\n }", "function app_template() {\n\t$template = <<<HTML\n\n\n\nHTML;\n\n $navigation = app_template_navigation();\n $dialogs = app_template_dialogs();\n\t$data['blocks'] = empty($navigation) ? array($dialogs) : array($dialogs, $navigation);\n\t$data['template'] = $template;\n\treturn $data;\n}", "private function getCallerTemplate()\n {\n $template = ['value' => '', 'key' => 0];\n foreach ($this->backtrace as $k => $b) {\n $function = ifset($b, 'function', '');\n if (strpos($function, 'content_') !== false) {\n $file = basename($this->backtrace[$k - 1]['file']);\n $parts = explode('.', $file);\n if (ifset($parts, 1, '') == 'file') {\n unset($parts[0], $parts[1]);\n } else {\n unset($parts[0]);\n }\n $template_name = implode('.', $parts);\n $template_name = rtrim($template_name, '.php');\n $this->backtrace[$k - 1]['file'] = $template_name;\n $template['value'] = $template_name;\n $template['key'] = $k - 1;\n break;\n }\n }\n return $template;\n }", "public function getNewsTemplates()\n\t{\n\t\treturn $this->getTemplateGroup('news_');\n\t}", "public function get_post_templates()\n {\n }", "function get_default_block_template_types()\n {\n }", "function GetDocumentTemplates()\n\t{\n\t\t$result = $this->sendRequest(\"GetDocumentTemplates\", array());\t\n\t\treturn $this->getResultFromResponse($result);\n\t}", "public function filter_template_stack( $stack ) {\n\t\tif ( ! bp_displayed_user_id() ) {\n\t\t\treturn $stack;\n\t\t}\n\n\t\t$stack[] = CACAP_PLUGIN_DIR . 'templates';\n\t\treturn $stack;\n\t}", "public function getTemplateList() {\n\t\t$aArgs = func_get_args();\n\t\t$aRet = call_user_func_array( array( $this, 'getTemplates' ), $aArgs );\n\t\treturn implode( '|', $aRet );\n\t}", "public function getGathercontentTemplate();", "private function find_templates () {\r\n\t\t$results = array();\r\n\r\n\t\t$files = WooDojo_Utils::glob_php( '*.php', GLOB_MARK, $this->templates_dir );\r\n\r\n\t\tif ( is_array( $files ) && count( $files ) > 0 ) {\r\n\t\t\tforeach ( $files as $k => $v ) {\r\n\t\t\t\t$data = $this->get_template_data( $v );\r\n\t\t\t\tif ( is_object( $data ) && isset( $data->title ) ) {\r\n\t\t\t\t\t$results[$v] = $data->title;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn $results;\r\n\t}", "public function getShowTemplates();", "function acf_get_post_templates()\n{\n}", "private function getDocblockTags(): array\n {\n $docblockOpenerPtr = $this->getDocblockOpenPtr();\n\n // If there is no docblock, return an empty array.\n if (!is_int($docblockOpenerPtr)) {\n return [];\n }\n\n $docblockOpener = $this->tokens[$docblockOpenerPtr];\n\n // Get the array of comment tag pointers.\n $tagPtrs = $docblockOpener['comment_tags'];\n\n if ($tagPtrs === []) {\n return [];\n }\n\n // Build an array of tag end pointers, using the next tag pointer of\n // each until the last tag, and then use the docblock end pointer.\n $nextTagsPtrs = array_slice($tagPtrs, 1);\n $nextTagsPtrs[] = $this->getDocblockCloserPtr();\n\n return array_combine($tagPtrs, $nextTagsPtrs);\n }", "public function getTeaserContentTemplates(): array\n {\n return Backend::getTemplateGroup('linkteaser_content_');\n }", "function _get_templates()\n\t{\n\t\t$location = FILESYSTEM_PATH .'modules/customcats/templates/cattemplates/';\n\t\t$filelist=array();\n\t\tif ($handle = opendir($location))\n\t\t{\n\t\t\twhile (false !== ($file = readdir($handle)))\n\t\t\t{\n\t\t\t\tif ($file != \".\" && $file != \"..\" && $file!=\".svn\" && $file!=\"index.htm\")\n\t\t\t\t{\n\t\t\t\t\t$filelist[]=$file;\n\t\t\t\t}\n\t\t\t}\n \t\t\tclosedir($handle);\n\t\t}\n\t\treturn $filelist;\n\t}", "public function templateTags() : array\n {\n return [\n 'get_page_part' => [$this, 'getPagePart'],\n 'get_header' => [$this, 'getHeader'],\n 'get_footer' => [$this, 'getFooter'],\n 'get_sidebar' => [$this, 'getSidebar'],\n 'get_template_part' => [$this, 'getTemplatePart']\n ];\n }", "public function getTemplate();", "public function getTemplate();", "public function getTemplate();", "public function getTemplate();", "public function getTemplate();", "public function getTemplate();", "public function getGlobals()\n {\n return [\n 'snippets' => new SnippetsTwig($this->flextype)\n ];\n }", "public function get_template_root()\n {\n }", "public static function getTemplatesUsed()\n {\n return static::$allTemplates;\n }", "public function getTemplates() : array\n {\n return [\n 'paths' => [\n 'elements' => [__DIR__ . '/../templates/'],\n ],\n ];\n }", "public static function getTemplateBlock()\n {\n return self::$templateBlock;\n }", "public function getTwig()\n {\n return TemplateHelper::getRaw($this->_getHtml());\n }", "public static function getContentTags(){\n return \\Illuminate\\View\\Compilers\\BladeCompiler::getContentTags();\n }", "function getXedocsTreeList()\n {\n $oXedocsController = &getController('xedocs');\n\n header(\"Content-Type: text/xml; charset=UTF-8\");\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\n if(!$this->module_srl) {\n return new Object(-1,'msg_invalid_request');\n }\n\n $xml_file = $this->_getXmlCacheFilename($this->module_srl);\n\n if(!file_exists($xml_file)) {\n $oXedocsController->_recompileTree($this->module_srl);\n }\n\n print FileHandler::readFile($xml_file);\n Context::close();\n exit();\n }", "function getTemplates($origdata)\n{\n\tstatic $regexs = array(\n\t\t\t'passed_param' => '!\\{\\{\\{(?P<content>[^{}]*?\\}\\}\\})!', // Highest priority\n\t\t\t'html' => '!<\\s*(?P<content>(?P<tag>[\\w]+)[^>]*>[^<]*?<\\s*/\\s*(?P=tag)\\s*>)!',\n\t\t\t'template' => '!\\{\\{\\s*(?P<content>(?P<name>[^{}\\|]+?)(?:\\|(?P<params>[^{}]+?))?\\}\\})!',\n\t\t\t'table' => '!\\{\\|(?P<content>[^{]*?\\|\\})!',\n\t\t\t'link' => '!\\[\\[(?P<content>[^\\[\\]]*?\\]\\])!'\n\t);\n\n\tstatic $MAX_ITERATIONS = 100000;\n\n\t$itercnt = 0;\n\t$match_found = true;\n\t$markers = array();\n\t$templates = array();\n\t$data = preg_replace('/<!--.*?-->/us', '', $origdata); // Strip comments\n\n\twhile ($match_found) {\n\t\tif (++$itercnt > $MAX_ITERATIONS) {\n\t\t\t//Logger::log(\"Max iterations reached data=$origdata\");\n\t\t\treturn array();\n\t\t}\n\t\t$match_found = false;\n\n\t\tforeach ($regexs as $type => $regex) {\n\t\t\t$match_cnt = preg_match_all($regex, $data, $matches, PREG_SET_ORDER | PREG_OFFSET_CAPTURE);\n\t\t\t$offset_adjust = 0;\n\n\t\t\tif ($match_cnt) {\n\t\t\t\t$match_found = true;\n\n\t\t\t\tforeach ($matches as $match) {\n\t\t\t\t\t// See if there are any containers inside\n\t\t\t\t\t$content = $match['content'][0];\n\n\t\t\t\t\tforeach ($regexs as $regex2) {\n\t\t\t\t\t\tif (preg_match($regex2, $content)) {\n\t\t\t\t\t\t\t//\t\t\t\t\t\t\t\techo \"$regex2\\n\";\n\t\t\t\t\t\t\t//\t\t\t\t\t\t\t\techo \"$content\\n\";\n\t\t\t\t\t\t\tcontinue 2;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t// Replace the match with a marker\n\t\t\t\t\t$marker_id = \"\\v\" . count($markers) . \"\\f\";\n\t\t\t\t\t$content = $match[0][0];\n\t\t\t\t\t$content_len = strlen($content);\n\t\t\t\t\t$offset = $match[0][1] - $offset_adjust;\n\t\t\t\t\t$offset_adjust += $content_len - strlen($marker_id);\n\n\t\t\t\t\t$data = substr_replace($data, $marker_id, $offset, $content_len);\n\n\t\t\t\t\tif ($type == 'template') $templates[] = $content;\n\n\t\t\t\t\t// Replace any markers in the content\n\t\t\t\t\tpreg_match_all(\"!\\v\\\\d+\\f!\", $content, $marker_matches);\n\t\t\t\t\tforeach ($marker_matches[0] as $marker_match) {\n\t\t\t\t\t\t$content = str_replace($marker_match, $markers[$marker_match], $content);\n\t\t\t\t\t}\n\n\t\t\t\t\t$markers[$marker_id] = $content;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t$results = array();\n\n\t// Parse the template names and parameters\n\tforeach ($templates as $template) {\n\t\tpreg_match($regexs['template'], $template, $matches);\n\t\t$tmpl_name = $matches['name'];\n\n\t\t// Replace any markers in the name\n\t\tpreg_match_all(\"!\\v\\\\d+\\f!\", $tmpl_name, $marker_matches);\n\t\tforeach ($marker_matches[0] as $marker_match) {\n\t\t\t$tmpl_name = str_replace($marker_match, $markers[$marker_match], $tmpl_name);\n\t\t}\n\n\t\t$tmpl_name = ucfirst(trim(str_replace('_', ' ', $tmpl_name)));\n\t\tif (strpos($tmpl_name, 'Template:') === 0) {\n\t\t\t$tmpl_name = ucfirst(ltrim(substr($tmpl_name, 9)));\n\t\t}\n\n\t\t$tmpl_params = array();\n\t\tif (isset($matches['params'])) {\n\t\t\t$numbered_param = 1;\n\t\t\t$params = explode('|', $matches['params']);\n\n\t\t\tforeach ($params as $param) {\n\t\t\t\tif (strpos($param, '=') !== false) {\n\t\t\t\t\tlist($param_name, $param_value) = explode('=', $param, 2);\n\n\t\t\t\t\t// Replace any markers in the name\n\t\t\t\t\tpreg_match_all(\"!\\v\\\\d+\\f!\", $param_name, $marker_matches);\n\t\t\t\t\tforeach ($marker_matches[0] as $marker_match) {\n\t\t\t\t\t\t$param_name = str_replace($marker_match, $markers[$marker_match], $param_name);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t$param_name = \"$numbered_param\";\n\t\t\t\t\t$param_value = $param;\n\t\t\t\t\t++$numbered_param;\n\t\t\t\t}\n\n\t\t\t\t// Replace any markers in the content\n\t\t\t\tpreg_match_all(\"!\\v\\\\d+\\f!\", $param_value, $marker_matches);\n\t\t\t\tforeach ($marker_matches[0] as $marker_match) {\n\t\t\t\t\t$param_value = str_replace($marker_match, $markers[$marker_match], $param_value);\n\t\t\t\t}\n\n\t\t\t\t$param_name = trim($param_name);\n\t\t\t\t$tmpl_params[$param_name] = trim($param_value);\n\t\t\t}\n\t\t}\n\n\t\t$results[] = array('name' => $tmpl_name, 'params' => $tmpl_params);\n\t}\n\n\treturn $results;\n}", "protected function template()\n\t{\n\t\treturn Phpfox::getLib('template');\t\n\t}", "function getTemplate();", "public function get_template_parts()\n {\n }", "function voyage_mikado_blog_templates() {\n\n $templates = array();\n $grid_templates = voyage_mikado_blog_grid_types();\n $full_templates = voyage_mikado_blog_full_width_types();\n foreach($grid_templates as $grid_template) {\n array_push($templates, 'blog-'.$grid_template);\n }\n foreach($full_templates as $full_template) {\n array_push($templates, 'blog-'.$full_template);\n }\n\n return $templates;\n\n }", "function get_template()\n {\n }", "public function get()\n {\n return $this->templates;\n }", "public function getFunctions()\n {\n return [\n new \\Twig_SimpleFunction(\n 'documents_folder',\n function ($path, $recursive = true) {\n $folders = new FolderModel();\n $folder = $folders->where('path',$path)->first();\n\n return ($recursive) ? view('lwv.module.documents::folder/tree', compact('folder'))->render() : view('lwv.module.documents::folder/folder', compact('folder'))->render();\n }\n , ['is_safe' => ['html']]\n ),\n new \\Twig_SimpleFunction(\n 'documents_resolutions',\n function ($path) {\n $folders = new FolderModel();\n $folder = $folders->where('path',$path)->first();\n\n return view('lwv.module.documents::resolutions/folder', compact('folder'))->render();\n }\n , ['is_safe' => ['html']]\n ),\n ];\n }", "public function templateInfo() \n {\n $info = array(); \n \n $info['name'] = $this->name; \n # $info[\"docblock\"] = $this->docblock->desc;\n # $info['position'] = $this->getPosition();\n # $info['is_array'] = $this->isArray();\n # $info['is_optional'] = $this->isOptional();\n # $info['is_passed_by_reference'] = $this->isPassedByReference();\n # $info['is_default_value_available'] = $this->isDefaultvalueAvailable();\n # $info['allows_null'] = $this->allowsNull();\n # $info['class_name'] = $this->getDeclaringClass() ? \n # $this->getDeclaringClass()->name : null;\n # $info['function_name'] = $this->getDeclaringFunction()->name;\n # $info['class_type'] = $this->getClass() ? $this->getClass()->getName() : null;\n\n # if ($this->isOptional() && $this->getDeclaringClass()->isUserDefined()) {\n # $info['default_value'] = $this->getDefaultValue();\n # }\n\n return $info; \n }", "function show_template() {\n\tglobal $template;\n\tprint_r($template);\n}", "public function template()\n {\n if ($this->type === 'include') {\n return (object) [\n 'template' => $this->type,\n 'fields' => [],\n ];\n }\n\n $templateKey = $this->path;\n $templateConfig = json_encode(Config::get(\"page-blocks.$templateKey\"));\n\n return json_decode($templateConfig);\n }", "function medigroup_mikado_blog_templates() {\n\n $templates = array();\n $grid_templates = medigroup_mikado_blog_grid_types();\n $full_templates = medigroup_mikado_blog_full_width_types();\n foreach($grid_templates as $grid_template) {\n array_push($templates, 'blog-'.$grid_template);\n }\n foreach($full_templates as $full_template) {\n array_push($templates, 'blog-'.$full_template);\n }\n\n return $templates;\n\n }", "public function getThemeBlocks();", "function get_blocks ( $template = null ) {\r\n if ( empty ( $template ) ) {\r\n return false;\r\n }\r\n\r\n if ( strpos( $template, config_item( 'twig_extension') ) === false ) {\r\n $template .= $this->CI->config->item( 'twig_extension' );\r\n }\r\n\r\n $template = $this->_twig->loadTemplate( $template );\r\n\r\n return $template->getBlocks();\r\n }", "function templates()\r\n\t{\r\n\t\t$websitepath = $this->website_path;\r\n\t\t$theme = $this->theme;\r\n\t\t$directory = $_SERVER['DOCUMENT_ROOT'].$websitepath.'themes/'.$theme.'';\r\n\t\tif(file_exists($directory))\r\n\t\t{\r\n\t\t\tif ($handle = opendir($_SERVER['DOCUMENT_ROOT'].$websitepath.'themes/'.$theme.'')) { \r\n\t\t\t\t$i = 0;\r\n\t\t\t\twhile (false !== ($file = readdir($handle)))\r\n\t\t\t\t{ \r\n\t\t\t\t\tif ($file != \".\" && $file != \"..\")\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(!is_dir($_SERVER['DOCUMENT_ROOT'].$websitepath.'themes/'.$theme.''.$file.''))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t$myFile = $_SERVER['DOCUMENT_ROOT'].$websitepath.'themes/'.$theme.''.$file;\r\n\t\t\t\t\t\t\t$fh = fopen($myFile, 'r');\r\n\t\t\t\t\t\t\t$theData = fread($fh, 5000);\r\n\t\t\t\t\t\t\tfclose($fh);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$pos = strrpos($theData, \"{{{{{KSD Template\");\r\n\t\t\t\t\t\t\tif ($pos === false) { // note: three equal signs\r\n\t\t\t\t\t\t\t\t//die(\"Not a template.\");\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t$array1 = explode(\"}}}}}\",$theData);\r\n\t\t\t\t\t\t\t\t$array2 = explode(\"{{{{{\",$array1[0]);\r\n\t\t\t\t\t\t\t\t$data = $array2[1];\r\n\t\t\t\t\t\t\t\t$array3 = explode(\",\",$data);\r\n\t\t\t\t\t\t\t\t$filearray[$i]['file'] = $file; \r\n\t\t\t\t\t\t\t\t$filearray[$i]['name'] = $array3[1]; \r\n\t\t\t\t\t\t\t\t$i++;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}// END while\t\r\n\t\t\t\tclosedir($handle);\r\n\t\t\t} \r\n\t\t} else {\r\n\t\t\techo(\"$directory <br />NOT EXISTS\");\r\n\t\t}\r\n\t\treturn $filearray;\r\n\t}", "public function getDocSubPackages()\n {\n return array();\n }", "public function getItemTemplates()\n\t{\n\t\treturn $this->getTemplateGroup('item_');\n\t}", "public function getBlockDefinitions(){\n\t\tif($this->blockDefinitions->isEmpty() && count($this->sections)){\n\t\t\t$this->loadBlockDefinitions();\n\t\t}\n\n\t\treturn $this->blockDefinitions;\n\t}", "public function getTeaserTemplate(): array\n {\n return Controller::getTemplateGroup('teasers_');\n }", "public function getTemplate() {}", "public function getFunctions() {\n return array(\n new \\Twig_Function(\"toc\", array($this, \"toc\")),\n new \\Twig_Function(\"render\", array($this, \"render\"))\n );\n }", "public function getModulTemplates()\n\t{\n\t\treturn $this->getTemplateGroup('mod_bn_');\n\t}", "function wp_print_file_editor_templates()\n {\n }", "public function getTemplates()\n {\n return [\n 'paths' => [\n 'app' => ['templates/app'],\n 'error' => ['templates/error'],\n 'layout' => ['templates/layout'],\n 'oauth' => ['templates/oauth'],\n ],\n ];\n }", "public function getTemplatesHtml()\n\t{\n\t\t$path = 'global/slider/content/custom/groups';\n\n\t\t$templates = '';\n\t\tforeach (Mage::getConfig()->getNode($path)->children() as $group) {\n\t\t\t$templates .= $this->getChildHtml($group->getName() .'_content_type'). \"\\n\" ;\n\t\t}\n\n\t\treturn $templates;\n\t}", "public function get_custom_templates()\n {\n }", "public function getPaths(): array\n {\n $templatePaths = [];\n\n $paths = $this->blade->getFinder()->getPaths();\n $hints = $this->blade->getFinder()->getHints();\n\n foreach ($paths as $path) {\n $templatePaths[] = new TemplatePath($path);\n }\n foreach ($hints as $namespace => $paths) {\n foreach ($paths as $path) {\n $templatePaths[] = new TemplatePath($path, $namespace);\n }\n }\n\n return array_reverse($templatePaths);\n }", "function getTemplates() {\n\n // Lets load the data if it doesn't already exist\n if (empty($this->_data)) {\n\n // constructs the query\n $query = ' SELECT * '\n . ' FROM #__templateck';\n\n // retrieves the data\n $this->_data = $this->_getList($query);\n }\n\n return $this->_data;\n }", "public function GetSavedTemplates() {\n\t\t$templates = &drupal_static(__FUNCTION__, NULL, $this->reset);\n\n\t\tif (!isset($templates)) {\n\t\t\t$templates = db_select('{'.ACQUIA_COMPOSER_TEMPLATES_TABLE.'}', 'ac')\n\t\t\t\t->fields('ac')\n\t\t\t\t->execute()\n\t\t\t\t->fetchAll(PDO::FETCH_ASSOC);\n\n\t\t\tif (!count($templates)) {\n\t\t\t\t$templates = array();\n\t\t\t}\n\t\t}\n\t\treturn $templates;\n\t}", "public function template_tags() : array {\n\t\treturn array(\n\t\t\t'the_comments' => array( $this, 'the_comments' ),\n\t\t);\n\t}", "function customcert_get_templates() {\n global $DB;\n\n return $DB->get_records_menu('customcert_template', array(), 'name ASC', 'id, name');\n}", "public function loadTemplate()\n\t{\n\t\t$t_location = \\IPS\\Request::i()->t_location;\n\t\t$t_key = \\IPS\\Request::i()->t_key;\n\t\t\n\t\tif ( $t_location === 'block' and $t_key === '_default_' and isset( \\IPS\\Request::i()->block_key ) )\n\t\t{\n\t\t\t/* Find it from the normal template system */\n\t\t\tif ( isset( \\IPS\\Request::i()->block_app ) )\n\t\t\t{\n\t\t\t\t$plugin = \\IPS\\Widget::load( \\IPS\\Application::load( \\IPS\\Request::i()->block_app ), \\IPS\\Request::i()->block_key, mt_rand() );\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$plugin = \\IPS\\Widget::load( \\IPS\\Plugin::load( \\IPS\\Request::i()->block_plugin ), \\IPS\\Request::i()->block_key, mt_rand() );\n\t\t\t}\n\t\t\t\n\t\t\t$location = $plugin->getTemplateLocation();\n\t\t\t\n\t\t\t$templateBits = \\IPS\\Theme::master()->getRawTemplates( $location['app'], $location['location'], $location['group'], \\IPS\\Theme::RETURN_ALL );\n\t\t\t$templateBit = $templateBits[ $location['app'] ][ $location['location'] ][ $location['group'] ][ $location['name'] ];\n\t\t\t\n\t\t\tif ( ! isset( \\IPS\\Request::i()->noencode ) OR ! \\IPS\\Request::i()->noencode )\n\t\t\t{\n\t\t\t\t$templateBit['template_content'] = htmlentities( $templateBit['template_content'], ENT_DISALLOWED, 'UTF-8', TRUE );\n\t\t\t}\n\t\t\t\n\t\t\t$templateArray = array(\n\t\t\t\t'template_id' \t\t\t=> $templateBit['template_id'],\n\t\t\t\t'template_key' \t\t\t=> 'template_' . $templateBit['template_name'] . '.' . $templateBit['template_id'],\n\t\t\t\t'template_title'\t\t=> $templateBit['template_name'],\n\t\t\t\t'template_desc' \t\t=> null,\n\t\t\t\t'template_content' \t\t=> $templateBit['template_content'],\n\t\t\t\t'template_location' \t=> null,\n\t\t\t\t'template_group' \t\t=> null,\n\t\t\t\t'template_container' \t=> null,\n\t\t\t\t'template_rel_id' \t\t=> null,\n\t\t\t\t'template_user_created' => null,\n\t\t\t\t'template_user_edited' => null,\n\t\t\t\t'template_params' \t => $templateBit['template_data']\n\t\t\t);\n\t\t}\n\t\telse\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tif ( \\is_numeric( $t_key ) )\n\t\t\t\t{\n\t\t\t\t\t$template = \\IPS\\cms\\Templates::load( $t_key, 'template_id' );\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$template = \\IPS\\cms\\Templates::load( $t_key );\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch( \\OutOfRangeException $ex )\n\t\t\t{\n\t\t\t\t\\IPS\\Output::i()->json( array( 'error' => true ) );\n\t\t\t}\n\n\t\t\tif ( $template !== null )\n\t\t\t{\n\t\t\t\t$templateArray = array(\n\t 'template_id' \t\t\t=> $template->id,\n\t 'template_key' \t\t\t=> $template->key,\n\t 'template_title'\t\t=> $template->title,\n\t 'template_desc' \t\t=> $template->desc,\n\t 'template_content' \t\t=> ( isset( \\IPS\\Request::i()->noencode ) AND \\IPS\\Request::i()->noencode ) ? $template->content : htmlentities( $template->content, ENT_DISALLOWED, 'UTF-8', TRUE ),\n\t 'template_location' \t=> $template->location,\n\t 'template_group' \t\t=> $template->group,\n\t 'template_container' \t=> $template->container,\n\t 'template_rel_id' \t\t=> $template->rel_id,\n\t 'template_user_created' => $template->user_created,\n\t 'template_user_edited' => $template->user_edited,\n\t 'template_params' \t => $template->params\n\t );\n\t\t\t}\n\t\t}\n\n\t\tif ( \\IPS\\Request::i()->show == 'json' )\n\t\t{\n\t\t\t\\IPS\\Output::i()->json( $templateArray );\n\t\t}\n\t\telse\n\t\t{\n\t\t\t\\IPS\\Output::i()->sendOutput( \\IPS\\Theme::i()->getTemplate( 'global', 'core' )->blankTemplate( \\IPS\\Theme::i()->getTemplate( 'templates', 'cms', 'admin' )->viewTemplate( $templateArray ) ), 200, 'text/html', \\IPS\\Output::i()->httpHeaders );\n\t\t}\n\t}", "public function getAll(){\n\t\treturn $this->stack;\n\t}", "function templates_example()\n{\n /* Get post object by its template */\n $post = \\ActiTemplate\\Template::getTemplatePageObject('page-contact.php');\n\n /* Get post ID by its template */\n $postID = \\ActiTemplate\\Template::getTemplatePageId('page-contact.php');\n\n /* Get post url by its template */\n $url = \\ActiTemplate\\Template::getTemplatePageUrl('page-contact.php');\n}", "public function getTemplates()\n {\n return [\n// 'paths' => [\n// 'auth' => [__DIR__ . '/../templates/auth'],\n//\n// 'app' => [__DIR__ . '/../templates/app'],\n// 'error' => [__DIR__ . '/../templates/error'],\n// 'layout' => [__DIR__ . '/../templates/layout'],\n// ],\n ];\n }", "function wpsl_get_templates() {\n\n $templates = array(\n array(\n 'id' => 'default',\n 'name' => __( 'Default', 'wpsl' ),\n 'path' => WPSL_PLUGIN_DIR . 'frontend/templates/default.php'\n ),\n array(\n 'id' => 'below_map',\n 'name' => __( 'Show the store list below the map', 'wpsl' ),\n 'path' => WPSL_PLUGIN_DIR . 'frontend/templates/store-listings-below.php'\n )\n );\n\n return apply_filters( 'wpsl_templates', $templates );\n}", "function locate_block_template($template, $type, array $templates)\n {\n }", "public function getDocumentTemplate() \n\t{\n\t\t$templates\t= \t[\n\t\t\t\t\t\t\t'ktp' \t\t\t\t\t=> \t[\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'nomor_ktp',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'berlaku_hingga',\n\t\t\t\t\t\t\t\t\t\t\t\t\t \t],\n\t\t\t\t\n\t\t\t\t\t\t\t'pendidikan_terakhir' \t=> [\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'sekolah',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'jenjang',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'jurusan',\n\t\t\t\t\t\t\t\t\t\t\t\t\t \t],\n\t\t\t\t\n\t\t\t\t\t\t\t'sertifikasi' \t\t\t=> \t[\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'nama',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'penyelenggara',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'tempat',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'tanggal_mulai',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'tanggal_selesai',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'is_certified',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\n\t\t\t \t\t\t\t'npwp' \t\t\t\t\t=> \t[\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'npwp',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\n\t\t\t\t\t\t\t'bpjs_kesehatan'\t\t\t=> \t[\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'nomor_peserta',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\n\t\t\t\t\t\t\t'bpjs_ketenagakerjaan' \t=>\t[\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'nomor_peserta',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\n\t\t\t \t\t\t\t'info_medis'\t\t\t=> \t[\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'golongan_darah',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'tanggal_checkup',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'hasil_checkup',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\n\t\t\t\t\t\t\t'akun_bank' \t\t\t=> \t[\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'jenis_rekening',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'nama_bank',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'nomor_rekening',\n\t\t\t\t\t\t\t\t\t\t\t\t\t \t],\n\t\t\t\t\n\t\t\t\t\t\t\t'reksa_dana' \t\t\t=>\t[\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'jenis_rekening',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'nama_reksadana',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'nomor_rekening',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t];\n\n\t\treturn new JSend('success', ['templates' => $templates]);\n }", "function ListTemplates()\r\n\t\t{\r\n\t\t\t\r\n\t\t\tglobal $Config;\r\n\t\t\t\r\n\t\t\t$sql = \"select * from templates order by TemplateDisplayName asc\" ; \r\n\t\t\treturn $this->get_results($sql);\t\t\r\n\t }", "public function getFormTemplates();", "public function getContent()\r\n {\r\n return $this->template;\r\n }", "public function getTemplates($context = null);", "public function getNewsModalTemplates()\n {\n return $this->getTemplateGroup('news_');\n }", "public function retrieveMessageTemplates()\n {\n return $this->start()->uri(\"/api/message/template\")\n ->get()\n ->go();\n }", "function templates()\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['templates'] == 1 ) ? 'Skin Template' : 'Skin Templates';\n\t\t$operation = ( $this->ipsclass->input['un'] ) ? 'removed' : 'created';\n\t\t\n\t\tforeach ( $this->xml_array['templates_group']['template'] as $k => $v )\n\t\t{\n\t\t\t$this->ipsclass->DB->do_delete( 'skin_templates', \"set_id=1 AND group_name='\".$v['group_name']['VALUE'].\"' AND func_name='\".$v['func_name']['VALUE'].\"'\" );\n\t\t\t\n\t\t\tif ( !$this->ipsclass->input['un'] )\n\t\t\t{\n\t\t\t\t$this->_add_template( $v );\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['templates']} {$object} {$operation}....\" );\n\t}", "public function getTemplates(){\n\t\n\t\tif( empty($this->_templates) ){\n\t\n\t\t\t$query\t= $this->_db->getQuery(true);\n\t\t\t\n\t\t\t$query->select( 't.tmpl_id AS value, t.tmpl_name AS text' );\n\t\t\t$query->from( '#__zbrochure_templates AS t' );\n\t\t\t$query->where( 't.tmpl_published = 1' );\n\t\t\t\n\t\t\t$this->_db->setQuery($query);\n\t\t\t$this->_templates = $this->_db->loadObjectList();\n\n\t\t}\n\t\t\n\t\treturn $this->_templates;\n\t\n\t}", "public static function msgTemplatesList(){\n $accessToken = WxApi::accessToken();\n $offset = 0;\n $count = 5;\n $url = 'https://api.weixin.qq.com/cgi-bin/wxopen/template/list?access_token=' . $accessToken;\n $postFields = json_encode(array(\n // \"access_token\" => $accessToken,\n \"offset\" => 0,\n \"count\" => 5,\n ));\n $api = curl_init();\n curl_setopt($api, CURLOPT_URL, $url);\n curl_setopt($api, CURLOPT_RETURNTRANSFER, true);\n curl_setopt($api, CURLOPT_HEADER, false);\n curl_setopt($api, CURLOPT_POST, true);\n curl_setopt($api, CURLOPT_POSTFIELDS, $postFields);\n $listObj = curl_exec($api);\n curl_close($api);\n $listObj = json_decode($listObj);\n if($listObj->errcode != 0){\n return NULL;\n }else{\n return $listObj->list;\n // return json_encode($listObj->list);\n }\n }", "public function getTemplateSet(){\n\t\treturn $this->templateSet;\n\t}", "public function viewProvider()\n {\n $config = $this->getMartyConfig();\n $templateDir = $config['templateDir'];\n $templates = [];\n $it = new \\RecursiveIteratorIterator(new \\RecursiveDirectoryIterator($templateDir));\n /** @var \\SplFileInfo $file */\n foreach ($it as $file) {\n if ($file->isFile() && $file->getExtension() == 'tpl') {\n $templateName = substr($file->getPathname(), strlen($templateDir) + 1);\n $templateId = str_replace(['/', '.tpl'], ['.', ''], $templateName);\n $templates[$templateId] = [$templateName];\n }\n }\n\n return $templates;\n }", "public function getContentPageTpl()\n {\n $aTemplate = array();\n $sContentId = $this->getContent()->oxcontents__oxloadid->value;\n $myConfig = $this->getConfig();\n if ($sContentId == $myConfig->getConfigParam('sRDFaBusinessEntityLoc')) {\n $aTemplate[] = $this->_sBusinessTemplate;\n }\n if ($sContentId == $myConfig->getConfigParam('sRDFaDeliveryChargeSpecLoc')) {\n $aTemplate[] = $this->_sDeliveryTemplate;\n }\n if ($sContentId == $myConfig->getConfigParam('sRDFaPaymentChargeSpecLoc')) {\n $aTemplate[] = $this->_sPaymentTemplate;\n }\n\n return $aTemplate;\n }", "public function getTemplates()\n {\n return [\n 'paths' => [\n 'app' => [__DIR__ . '/../templates/app'],\n 'error' => [__DIR__ . '/../templates/error'],\n 'layout' => [__DIR__ . '/../templates/layout'],\n 'mail' => [__DIR__ . '/../templates/mail'],\n ],\n ];\n }" ]
[ "0.6783125", "0.64828074", "0.6434833", "0.6181945", "0.5833598", "0.58215266", "0.5803391", "0.5745289", "0.57425255", "0.57425255", "0.5741802", "0.5741171", "0.5741171", "0.57408893", "0.57408893", "0.57408893", "0.57408893", "0.5717651", "0.5717651", "0.56773216", "0.5668874", "0.5657837", "0.5620559", "0.56187624", "0.56165105", "0.55675155", "0.55654496", "0.5548659", "0.55464685", "0.5543995", "0.5533135", "0.55174", "0.55168664", "0.54860216", "0.54849696", "0.5480304", "0.5480304", "0.5480304", "0.5480304", "0.5480304", "0.5480304", "0.5450546", "0.54329395", "0.5427721", "0.54185075", "0.5402584", "0.5390595", "0.5384309", "0.5384102", "0.5377565", "0.5372351", "0.5367497", "0.53662837", "0.53540325", "0.5350246", "0.5339548", "0.5332838", "0.5332535", "0.53099924", "0.5307898", "0.52921", "0.52717257", "0.5268745", "0.5262875", "0.52530146", "0.52484524", "0.52452123", "0.5243975", "0.52419835", "0.5238279", "0.52309626", "0.52287465", "0.5227264", "0.5213475", "0.52026594", "0.5190915", "0.5189682", "0.51886517", "0.517935", "0.51616573", "0.5152623", "0.5146536", "0.5145919", "0.5145583", "0.5136373", "0.51339185", "0.51316273", "0.51201725", "0.5117988", "0.5112934", "0.5111348", "0.51099634", "0.5107282", "0.5098543", "0.5091513", "0.5091151", "0.508321", "0.50804955", "0.5080077", "0.507884" ]
0.701369
0
Processes the parent reflection object.
protected function processParent(IReflection $parent, Stream $tokenStream) { // To be defined in child classes return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public function processClass (ReflectionClass $class);", "protected function initializeReflection() {}", "public static function resolveObjectByAttribute(\\SetaPDF_Core_Type_IndirectObjectInterface $object, $name, $parentName = 'Parent') {}", "abstract protected function parse(Stream $tokenStream, IReflection $parent);", "public function __wakeup() {\n _doing_it_wrong(__FUNCTION__, '', $this->parent->_version);\n }", "public function __construct($parent) {\r\n parent::__construct($parent, 'invoke');\r\n }", "public function getReflector()\n {\n \n return new ReflectionObject($this->object);\n \n }", "function __construct(self $parent = null)\n {\n $parent || $parent = __CLASS__ === get_class($this) ? $this : new self;\n\n $this->serviceName || $this->serviceName = get_class($this);\n $this->dependencies = (array) $this->dependencies;\n $this->parent = $parent;\n\n $php_version_id = $this->targetPhpVersionId;\n\n // Link shared properties of $parent and $this by reference\n\n if ($parent !== $this)\n {\n $v = array(\n 'index',\n 'tokens',\n 'types',\n 'texts',\n 'line',\n 'inString',\n 'prevType',\n 'penuType',\n 'headParser',\n 'tokenRegistry',\n 'parents',\n 'errors',\n 'nextRegistryIndex',\n 'targetEol',\n 'targetPhpVersionId',\n );\n\n foreach ($v as $v) $this->$v =& $parent->$v;\n }\n else\n {\n $this->nextRegistryIndex = -1 - PHP_INT_MAX;\n $this->targetPhpVersionId = PHP_VERSION_ID;\n }\n\n // Verify and set $this->dependencies to the (serviceName => service provider object) map\n\n foreach ($this->dependencies as $k => $v)\n {\n unset($this->dependencies[$k]);\n\n if (is_string($k))\n {\n $c = (array) $v;\n $v = $k;\n }\n else $c = array();\n\n $k = strtolower('\\\\' !== $v[0] ? __CLASS__ . '\\\\' . $v : substr($v, 1));\n\n if (!isset($this->parents[$k]))\n {\n throw new \\Exception(get_class($this) . \" failed dependency: {$v}\", E_USER_WARNING);\n }\n\n $parent = $this->dependencies[$v] = $this->parents[$k];\n\n foreach ($c as $c => $k)\n {\n is_int($c) and $c = $k;\n\n if (!property_exists($parent, $c)) user_error(get_class($this) . \" undefined parent property: {$v}->{$c}\", E_USER_WARNING);\n if (!property_exists($this, $k)) user_error(get_class($this) . \" undefined property: \\$this->{$k}\", E_USER_NOTICE);\n\n $this->$k =& $parent->$c;\n }\n }\n\n // Keep track of parents chained parsers\n\n $k = strtolower($this->serviceName);\n $this->parents[$k] = $this;\n\n // Keep parsers chaining order for callbacks ordering\n\n $this->registryIndex = $this->nextRegistryIndex;\n $this->nextRegistryIndex += 1 << (PHP_INT_SIZE << 2);\n\n if ( 0 > $php_version_id\n ? $this->targetPhpVersionId < -$php_version_id\n : $this->targetPhpVersionId >= $php_version_id )\n {\n $this->register($this->callbacks);\n }\n }", "protected function childLoad() {}", "private function getParentReflectorC(ReflectionClass $reflector)\n {\n $parentReflector = $reflector->getParentClass();\n if ($parentReflector) {\n return $parentReflector;\n }\n $interfaces = $reflector->getInterfaceNames();\n foreach ($interfaces as $className) {\n return new ReflectionClass($className);\n }\n return null;\n }", "function onBeforeCheckForParent($db, $format, &$object, &$parentObject) {\n\t}", "abstract public function inherit($parent);", "protected function _ensureInheritedAttributes() {}", "public function getParentClass() {}", "public function postflight(string $type, object $parent): void\n {\n }", "public function findSealedParentReflection(ClassReflection $reflection): ?ClassReflection {\n\t\tdo {\n\t\t\tif ($this->isSealed($reflection)) {\n\t\t\t\treturn $reflection;\n\t\t\t}\n\t\t} while (($reflection = $reflection->getParentClass()) !== FALSE);\n\t\treturn NULL;\n\t}", "protected function buildPropertyInfoAlter() {\n }", "public static function getReflection()\n\t{\n\t\treturn new \\ReflectionClass( get_called_class() );\n\t}", "private function cacheGetRestoreRelations(fapitng_FormBase $parent) {\n foreach ($parent->children as $element) {\n $element->form = $this;\n $element->form = $parent;\n $this->cacheGetRestoreRelations($element);\n }\n }", "protected function retrieveParent()\n {\n }", "public function processCmdmap_afterFinish(\\TYPO3\\CMS\\Core\\DataHandling\\DataHandler $parentObject) {\n\t\tif (is_array($parentObject->moveInfo) && count($parentObject->moveInfo)) {\n\t\t\tforeach ($parentObject->moveInfo as $id => $param) {\n\t\t\t\t$this->sanitizeRecordValues($id);\n\t\t\t\tif ($param === 'container') {\n\t\t\t\t\t// When moving a container take care all elements inside get also moved\n\t\t\t\t\t$this->moveContainedElements($id);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (is_array($this->parentObject->copyMappingArray['tt_content'])) {\n\t\t\tforeach ($this->parentObject->copyMappingArray['tt_content'] as $origUid => $newUid) {\n\t\t\t\t$this->sanitizeRecordValues($newUid);\n\t\t\t}\n\t\t}\n\t}", "public function postLoad()\n {\n // Ensure class content are known\n $data = (array) $this->_data;\n foreach ($data as $dataEntry) {\n $type = key($dataEntry);\n\n $dataEntry = array_pop($dataEntry);\n if (true === is_array($dataEntry)) {\n $type = key($dataEntry);\n }\n\n if ($type !== 'scalar' && $type !== 'array') {\n self::getFullClassname($type);\n }\n }\n\n parent::postLoad();\n }", "public function getReflectionData()\n {\n return $this->_reflectionData;\n }", "private function inherit()\n\t{\n\t\t$this->log(1, '...Computing inheritance(s?)');\n\t\tforeach($this->_classes as $class_name => $class_def)\n\t\t{\n\t\t\t$this->log(2,\"For Class $class_name\");\n\t\t\t$parent_name = $class_def->get_parent_class_name();\n\t\t\tif(!empty($parent_name))\n\t\t\t{\n\t\t\t\t$this->log(2, \" parent = \".$parent_name);\n\t\t\t\t$parent_def = &$this->_classes[$parent_name];\n\t\t\t\t$parent_def->_children[] = $class_def;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$this->log(2, \" no parent\");\n\t\t\t\t$_top_classes[] = $class_def;\n\t\t\t}\n\t\t}\n\t\t\n\t\tforeach($_top_classes as $top_class)\n\t\t{\n\t\t\t$this->traverse_class_hierarchy($top_class);\n\t\t}\t\t\n\t}", "public function __wakeup () {\n\t\t_doing_it_wrong( __FUNCTION__, __( 'Cheatin&#8217; huh?' ), $this->parent->_version );\n\t}", "public function __wakeup () {\n\t\t_doing_it_wrong( __FUNCTION__, __( 'Cheatin&#8217; huh?' ), $this->parent->_version );\n\t}", "function preflight( $type, $parent )\n\t{\n\t}", "function _setParent(& $parent)\n {\n $this->_parent =& $parent;\n $this->_canvas =& $this->_parent->_getCanvas();\n\n if (is_array($this->_elements)) {\n $keys = array_keys($this->_elements);\n foreach ($keys as $key) {\n if (is_object($this->_elements[$key])) {\n $this->_elements[$key]->_setParent($this);\n }\n }\n unset($keys);\n }\n }", "private function parseFields(): void\n {\n foreach ($this->reflect->getProperties() as $item) {\n $name = $item->getName();\n if (in_array($name, self::SKIP_FIELDS, true)) {\n continue;\n }\n\n $docblock = $item->getDocComment();\n $defType = $this->getFieldType($name, $docblock);\n $varType = $this->getVarType($name, $docblock);\n $isRequired = $this->isRequired($name, $docblock);\n $storage = &$this->fieldsBuffer[$defType];\n\n switch ($defType) {\n case self::FIELD_SIMPLE_TYPE:\n $storage[] = $this->processSimpleField($name, $varType, $isRequired);\n break;\n case self::FIELD_DATE_TYPE:\n $storage[] = $this->processDateField($name, $varType, $isRequired);\n break;\n case self::FIELD_MO_TYPE:\n $storage[] = $this->processManyToOneField($name, $varType, $isRequired);\n break;\n case self::FIELD_OM_TYPE:\n $storage[] = $this->processOneToManyField($name);\n break;\n }\n }\n\n unset($storage);\n }", "function df_call_parent($o, string $m, array $a = []) {\n\t$rc = new RC($c = get_class($o)); /** @var RC $rc */ /** @var string $c */\n\t$rc2 = df_assert($rc->getParentClass(), \"`{$c}` does not have a parent.\"); /** @var RC $rc2 */\n\tdf_assert($rc2->hasMethod($m), \"The `{$rc2->getName()}` class does not have the `{$m}` method.\");\n\t$rm = $rc2->getMethod($m);\t/** @var RM $rm */\n\t/**\n\t * 2023-08-01\n\t * 1) https://stackoverflow.com/a/17174448\n\t * 2) «As of PHP 8.1.0, calling this method has no effect; all methods are invokable by default»:\n\t * https://php.net/manual/reflectionmethod.setaccessible.php#refsect1-reflectionmethod.setaccessible-description\n\t * That is why I use @noinspection PhpExpressionResultUnusedInspection\n\t */\n\t$rm->setAccessible(true);\n\t/**\n\t * 2023-08-01\n\t * 1) «Magento\\Framework\\Config\\Dom::validate():\n\t * Argument #2 ($errors) must be passed by reference, value given\n\t * in vendor/mage2pro/core/Core/lib/reflection\\parent.php on line 30»: https://github.com/mage2pro/core/issues/301\n\t * 2) «@see ReflectionMethod::invoke() cannot be used when reference parameters are expected.\n\t * @uses ReflectionMethod::invokeArgs() has to be used instead (passing references in the argument list).»:\n\t * https://php.net/manual/reflectionmethod.invoke.php#refsect1-reflectionmethod.invoke-notes\n\t */\n\treturn $rm->invokeArgs($o, $a);\n}", "public function __wakeup()\n {\n _doing_it_wrong(__FUNCTION__, __('Cheatin&#8217; huh?'), $this->parent->_version);\n }", "function process_data($data) {\n // Implement in children classes\n }", "private function executeFieldsSerially(\\GraphQL\\Type\\Definition\\ObjectType $parentType, $rootValue, array $path, \\ArrayObject $fields)\n {\n }", "public function onInheritanceFromRequest($req) {\n\t}", "abstract protected function getParentObjectName();", "protected function buildPropertyInfo() {\n }", "public function _onAdd($parent) {\r\n\t\t/* Intentionally empty */\r\n\t}", "public function getReflectionClass();", "private function buildClassMeta()\n {\n // Search meta informations before going to reflection and then, ast parsing\n foreach ($this->data as $line) {\n $line = trim($line);\n\n // Namespace search\n if (preg_match(self::NAMESPACE_PATTERN, $line, $matches) === 1) {\n $this->context->setCurrentNamespace(trim($matches[1]));\n continue;\n }\n\n // Class name\n if (preg_match(self::DEFINITION_PATTERN, $line, $matches) === 1) {\n $this->context->setClassName(trim($matches[1]));\n break; // Stop after class found, let the reflection do the next job\n }\n\n // Uses\n if (preg_match(self::USE_PATTERN, $line, $matches) === 1) {\n $this->context->addUse($matches[1]);\n continue;\n }\n }\n }", "function __construct( $parentObj )\n {\n $this->pObj = $parentObj;\n }", "final protected function parseStream(Stream $tokenStream, IReflection $parent = null)\n\t{\n\t\t$this->fileName = $tokenStream->getFileName();\n\n\t\t$this\n\t\t\t->processParent($parent, $tokenStream)\n\t\t\t->parseStartLine($tokenStream)\n\t\t\t->parseDocComment($tokenStream, $parent)\n\t\t\t->parse($tokenStream, $parent)\n\t\t\t->parseChildren($tokenStream, $parent)\n\t\t\t->parseEndLine($tokenStream);\n\t}", "private function executeFields(\\GraphQL\\Type\\Definition\\ObjectType $parentType, $rootValue, array $path, \\ArrayObject $fields)\n {\n }", "protected function processSourceTree () {\n\t\t$this->processFileTree();\n\t\tforeach (get_declared_interfaces() as $interface) {\n\t\t$ref = new ReflectionClass($interface);\n\t\t\tif ($ref->isUserDefined()) {\n\t\t\t\t$this->classes[] = $ref;\n\t\t\t}\n\t\t}\n\t\tforeach (get_declared_classes() as $class) {\n\t\t\t$ref = new ReflectionClass($class);\n\t\t\tif ($ref->isUserDefined() && !preg_match('/^Spd/', $class)) {\n\t\t\t\t$this->classes[] = $ref;\n\t\t\t}\n\t\t}\n\t}", "public function preflight($type, $parent)\n {\n }", "private function setParentChildrenClass() {\n $tmp_schemedata = $this->schemedata;\n \n // replace parents with primary key.\n foreach($this->schemedata as $index => $class) {\n $parents = array();\n $see = array();\n foreach ($class['parents'] as $parent=>$cols) {\n foreach($tmp_schemedata as $tmp_class) {\n if ($tmp_class['table'] == $parent) {\n $tmp = $tmp_class['pkFields'];\n $tmp_cols = $cols;\n $tmp2 = array();\n foreach ($tmp as $key=>$val) {\n $key = array_shift($tmp_cols);\n $tmp2[$key] = $val;\n }\n $parents[$tmp_class['name']] = $tmp2;\n $see[] = $tmp_class['name'];\n }\n }\n }\n $this->schemedata[$index]['parents'] = $parents;\n $this->schemedata[$index]['see'] = $see;\n }\n\n // children\n foreach($this->schemedata as $index => $class) {\n foreach ($class['parents'] as $parent=>$cols) {\n foreach($tmp_schemedata as $tmp_class) {\n if ($tmp_class['table'] == $this->schemedata[$parent]['table']) {\n if ($class['type'] != 'TO' AND $class['type'] != 'TS' AND $class['type'] != 'TB') {\n $tmp = $class['parents']; // children's parent def\n $tmp2 = array();\n foreach ($tmp as $key=>$val) {\n if($key == $tmp_class['name']) {\n $tmp2 = $val;\n }\n }\n if($class['name']) {\n $this->schemedata[$tmp_class['name']]['children'][$class['name']] = $tmp2;\n $this->schemedata[$tmp_class['name']]['see'][] = $class['name'];\n } else {\n $this->schemedata[$tmp_class['name']]['children'][$index] = $tmp2;\n }\n }\n }\n }\n }\n }\n\n // relationships\n foreach($this->schemedata as $class) {\n if ($class['type'] == 'TO' OR $class['type'] == 'TS' OR $class['type'] == 'TB') {\n foreach ($class['parents'] as $parent=>$pkFields) {\n if(!isset($this->schemedata[$parent]['relationships'])) {\n $this->schemedata[$parent]['relationships'] = array();\n }\n // add parent to another parent list getter\n foreach ($class['parents'] as $p=>$fs) {\n if ($parent != $p) {\n $type = 'List';\n $mname = '';\n foreach($fs as $k => $v) {\n $name = $k;\n }\n foreach($class['params'] as $param) {\n if($name == $param['name']) {\n $type = ($param['pair']=='N')?'List':'Class';\n break;\n }\n }\n\n $this->schemedata[$parent]['relationships'][$p]= array(\n 'table' => $class['table'],\n 'myFields' => $pkFields,\n 'fields' => $fs,\n 'type' => $type\n );\n }\n }\n }\n }\n }\n\n // rewrite relation key for parents, children and relations\n foreach($this->schemedata as $key => $class) {\n // parent\n foreach($class['parents'] as $k1 => $values) {\n foreach($values as $k2 => $value) {\n foreach($class['params'] as $param) {\n if($param['name']==$k2) {\n unset($this->schemedata[$key]['parents'][$k1][$k2]);\n $this->schemedata[$key]['parents'][$k1][$param['mname']] = $value;\n break;\n }\n }\n }\n }\n // children\n foreach($class['children'] as $k1 => $values) {\n foreach($values as $k2 => $value) {\n foreach($class['params'] as $param) {\n if($param['name']==$value) {\n $this->schemedata[$key]['children'][$k1][$k2] = $param['mname'];\n break;\n }\n }\n }\n }\n // relations\n if(isset($class['relationships'])) {\n foreach($class['relationships'] as $k1 => $values) {\n foreach($values['myFields'] as $k2 => $value) {\n foreach($class['params'] as $param) {\n if($param['name']==$value) {\n $this->schemedata[$key]['relationships'][$k1]['myFields'][$k2] = $param['mname'];\n break;\n }\n }\n }\n foreach($values['fields'] as $k2 => $value) {\n foreach($class['params'] as $param) {\n if($param['name']==$value) {\n $this->schemedata[$key]['relationships'][$k1]['fields'][$k2] = $param['mname'];\n break;\n }\n }\n }\n }\n }\n }\n }", "public function preflight($type, $parent)\n\t{\n\t}", "protected function parseChildren(Stream $tokenStream, IReflection $parent)\n\t{\n\t\t// To be defined in child classes\n\t\treturn $this;\n\t}", "protected function checkForNecessaryProperties()\n {\n if (!property_exists($this, 'data')) {\n throw new IncompatibleParentClass('Parent class must implement $data property.');\n }\n }", "public function __clone() {\n _doing_it_wrong(__FUNCTION__, '', $this->parent->_version);\n }", "private function applyObject(Orm $o)\n {\n if (!($this instanceof $o))\n throw new OrmInputException('Passed object (of type %s) is not a parent of this class (%s)', get_class($o), get_class($this));\n\n # use reflection, iterate over classes, apply values to this object, apply synced marker according to $o's synced markers\n $class_reflection = new ReflectionClass(get_class($o));\n do {\n foreach ($class_reflection->getProperties() as $property_reflection) {\n $p_name = $property_reflection->name;\n $this->$p_name = $o->$p_name;\n }\n\n if ($class_reflection->isInstantiable())\n $this->setLoadedFromDb($o->getLoadedFromDb($class_reflection->getName()));\n\n } while (($class_reflection = $class_reflection->getParentClass()) && # get the parent\n $class_reflection->getName() != __CLASS__); # check that we're not hitting the top\n }", "public function setReflection($reflection){\r\n\r\n $this->request = ClosureDispatcher::bind($reflection);\r\n }", "abstract public function processMethod (ReflectionMethod $met, $className);", "protected function handleMethod()\n {\n try {\n parent::$method = new ReflectionMethod(parent::$view->name, Request::$method);\n } catch(Exception $e) {\n self::jump(405);\n }\n }", "public function onBeforeWrite()\n {\n parent::onBeforeWrite();\n if (isset($_REQUEST[\"ParentID\"])) {\n $this->ParentID = $_REQUEST[\"ParentID\"];\n }\n if (isset($_REQUEST['SubClass']) && ClassInfo::exists($_REQUEST['SubClass'])) {\n $this->setClassName($_REQUEST['SubClass']);\n }\n }", "protected function traverseFields(): void\n {\n $columns = $this->definition->tca['columns'] ?? [];\n foreach ($this->definition->data as $fieldName => $value) {\n if (! is_array($columns[$fieldName])) {\n continue;\n }\n \n $this->registerHandlerDefinitions($fieldName, $columns[$fieldName], [$fieldName]);\n \n // Handle flex form fields\n if (isset($columns[$fieldName]['config']['type']) && $columns[$fieldName]['config']['type'] === 'flex') {\n $this->flexFormTraverser->initialize($this->definition, [$fieldName])->traverse();\n }\n }\n }", "public function update($parent)\n {\n }", "public function update($parent)\n\t{\n\t}", "protected function setUp() {\n $this->object = new ReflectionClass();\n }", "private function _parseClass()\n {\n // check which interfaces are implemented\n $interfaces = $this->_reflectionClass->getInterfaceNames();\n foreach ($interfaces as $i) {\n if ($i == 'Webiny\\Component\\Rest\\Interfaces\\AccessInterface') {\n $this->_parsedClass->accessInterface = true;\n }\n\n if ($i == 'Webiny\\Component\\Rest\\Interfaces\\CacheKeyInterface') {\n $this->_parsedClass->cacheKeyInterface = true;\n }\n }\n }", "private function loadParent(&$child, $type, $parent_name)\n {\n if (isset($this->$type) && isset($this->{$type}[$parent_name])) {\n //link the parent\n $child[0] = &$this->{$type}[$parent_name];\n //add to list of children\n $this->{$type}[$parent_name][2][] = &$child;\n }\n }", "public function postflight($type, $parent)\n {\n }", "function getReflectionClass();", "public function setParent( Streamwide_Introspection_Composite_Interface $parent )\n {\n return null;\n }", "private function getParentReflectorMpc(Reflector $reflector, $what)\n {\n $hasWhat = 'has' . \\ucfirst($what);\n $getWhat = 'get' . \\ucfirst($what);\n if ($what === 'constant') {\n $getWhat = 'getReflectionConstant'; // php 7.1\n }\n $name = $reflector->getName();\n $reflectionClass = $reflector->getDeclaringClass();\n $interfaces = $reflectionClass->getInterfaceNames();\n foreach ($interfaces as $className) {\n $reflectionInterface = new ReflectionClass($className);\n if ($reflectionInterface->{$hasWhat}($name)) {\n return $reflectionInterface->{$getWhat}($name);\n }\n }\n $parentClass = $reflectionClass->getParentClass();\n if ($parentClass && $parentClass->{$hasWhat}($name)) {\n return $parentClass->{$getWhat}($name);\n }\n return null;\n }", "abstract public function parent();", "protected function handleCustomField()\n {\n // If this field is a custom field we'll assume it has it's child fields\n // under the `fields` key. Then we are gonna modify those child fields'\n // attribute `name`, `label` & `conditional_logics` properties using\n // the parent field. The current implementation will modify those\n // properties in a way so that we can use dot notation to access.\n $customFields = Arr::get($this->field, 'fields');\n\n if ($customFields) {\n $parentAttribute = Arr::get($this->field, 'attributes.name');\n\n $parentConditionalLogics = Arr::get($this->field, 'settings.conditional_logics', []);\n\n $isAddressOrNameField = in_array(Arr::get($this->field, 'element'), ['address', 'input_name']);\n\n $isRepeatField = Arr::get($this->field, 'element') === 'input_repeat' || Arr::get($this->field, 'element') == 'repeater_field';\n\n foreach ($customFields as $index => $customField) {\n // If the current field is in fact `address` || `name` field\n // then we have to only keep the enabled child fields\n // by the user from the form editor settings.\n if ($isAddressOrNameField) {\n if (!Arr::get($customField, 'settings.visible', false)) {\n unset($customFields[$index]);\n continue;\n }\n }\n\n // Depending on whether the parent field is a repeat field or not\n // the modified attribute name of the child field will vary.\n if ($isRepeatField) {\n $modifiedAttribute = $parentAttribute.'['.$index.'].*';\n } else {\n $modifiedAttribute = $parentAttribute.'['.Arr::get($customField, 'attributes.name').']';\n }\n\n $modifiedLabel = $parentAttribute.'['.Arr::get($customField, 'settings.label').']';\n\n $customField['attributes']['name'] = $modifiedAttribute;\n\n $customField['settings']['label'] = $modifiedLabel;\n\n // Now, we'll replace the `conditional_logics` property\n $customField['settings']['conditional_logics'] = $parentConditionalLogics;\n\n // Now that this field's properties are handled we can pass\n // it to the extract field method to extract it's data.\n $this->extractField($customField);\n }\n }\n\n return $this;\n }", "public function childpublic(){\n\t\t\t\t\t$this->childVar1 ; \n\t\t\t\t\t$this->childVar2 ;\n\t\t\t\t\t$this->childVar3 ;\n\t\t\techo\t$this->parentVar3 ; //if we echo this which is parentclass variable,then 'parent_protected_variable_not_initialized' this will echo as we know outside constructor values executed because without of object initialize of class of this variable i.e. parentclass and if we assigned any value to this variable here or above then that value will executed.\n\t\t\t\t\t$this->childprivate();\n\t\t\t}", "public function preProcess($object);", "public function testParentWithPrivatePropertyMapping(): void\n {\n }", "protected function forwardCallToReflectionSource( $method, $arguments = array() ) {\n if ( $this->reflectionSource instanceof parent ) {\n return call_user_func_array( array( $this->reflectionSource, $method ), $arguments );\n } else {\n //*\n return call_user_func_array( array( $this, 'parent::' . $method ), $arguments );\n /*/\n $argumentStrings = array();\n foreach ( array_keys( $arguments ) as $key ) {\n $argumentStrings[] = '$arguments[' . var_export( $key, true ) . ']';\n }\n $cmd = 'return parent::$method( ' . implode( ', ', $argumentStrings ) . ' );';\n return eval( $cmd );\n //*/\n }\n }", "public function __wakeup() {\n\t\t\tparent::__wakeup();\n\t\t}", "public function setup()\n {\n parent::setup();\n \n $formClass = $this->getChildFormClass();\n $collection = $this->getParentObject()->{$this->getRelationAlias()};\n $nbChilds = 0;\n $min = $this->getMinNbChilds();\n $max = $this->getMaxNbChilds();\n \n if ($min > $max && $max > 0)\n throw new RuntimeException('min cannot be greater than max.');\n \n // embed forms for each child element that is already persisted\n foreach ($collection as $childObject)\n {\n $form = new $formClass($childObject);\n $pk = $childObject->identifier();\n \n if ($childObject->exists() === false)\n throw new RuntimeException('Transient child objects are not supported.');\n \n if (count($pk) !== 1)\n throw new RuntimeException('Composite primary keys are not supported.');\n \n $this->embedForm(self::PERSISTENT_PREFIX.reset($pk), $form);\n $nbChilds += 1;\n }\n \n // embed as many additional forms as are needed to reach the minimum\n // number of required child objects\n for (; $nbChilds < $min; $nbChilds += 1)\n {\n $form = new $formClass($collection->get(null));\n $this->embedForm(self::TRANSIENT_PREFIX.$nbChilds, $form);\n }\n \n $this->validatorSchema->setPostValidator(new sfValidatorCallback(array(\n 'callback' => array($this, 'validateLogic'),\n )));\n }", "public function __invoke()\n {\n return $this->getParent();\n }", "public function testLoadParentClassNotDefined()\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\tORM::load(1);\r\n\t\t}", "protected function processReceivedData() \n {\n parent::processReceivedData();\n // to do: call processReceivedData() for all members\n }", "public function getReflect()\n {\n return $this->_reflect;\n }", "protected function setUp() {\n $this->object = new Class_Doku_Php_Source_Reflection;\n }", "public function getParentContentObject() {}", "function acf_get_fields($parent)\n{\n}", "function updateProjectObjectsParentType() {\n try {\n DB::beginWork('Updating project objects parent type @ ' . __CLASS__);\n\n $project_objects_table = TABLE_PREFIX . 'project_objects';\n\n $rows = DB::execute(\"SELECT parent_id FROM $project_objects_table WHERE parent_id > '0' AND (parent_type IS NULL OR parent_type = '')\");\n if($rows) {\n $parent_ids = array();\n\n foreach($rows as $row) {\n $parent_ids[] = (integer) $row['parent_id'];\n } // foreach\n\n $rows = DB::execute(\"SELECT id, type FROM $project_objects_table WHERE id IN (?)\", $parent_ids);\n if($rows) {\n $type_ids_map = array();\n\n foreach($rows as $row) {\n $type = $row['type'];\n\n if(isset($type_ids_map[$type])) {\n $type_ids_map[$type][] = $row['id'];\n } else {\n $type_ids_map[$type] = array($row['id']);\n } // if\n } // foreach\n\n foreach($type_ids_map as $type => $ids) {\n DB::execute(\"UPDATE $project_objects_table SET parent_type = ? WHERE parent_id IN (?)\", $type, $ids);\n } // foreach\n } // if\n } // if\n\n DB::commit('Parent type values have been updated @ ' . __CLASS__);\n } catch(Exception $e) {\n DB::rollback('Failed to update parent type @ ' . __CLASS__);\n return $e->getMessage();\n } // try\n\n return true;\n }", "function ciniki_products_typeObjectDefUpdate($ciniki, $object_def, $args) {\n\n if( $object_def == NULL ) {\n $object_def = array(\n 'name'=>array('name_s'=>'', 'name_p'=>''),\n );\n }\n if( !isset($object['parent']) ) {\n $object['parent'] = array('products'=>array());\n }\n if( !isset($object['parent']['products']) ) {\n $object['parent']['products'] = array();\n }\n\n $product_fields = array(\n 'name',\n 'code',\n 'sequence',\n 'category',\n 'source',\n 'flags',\n 'status',\n 'barcode',\n 'supplier_tnid',\n 'supplier_product_id',\n 'price',\n 'unit_discount_amount',\n 'unit_discount_percentage',\n 'taxtype_id',\n 'cost',\n 'msrp',\n 'sell_unit',\n 'supplier_id',\n 'supplier_item_number',\n 'supplier_minimum_order',\n 'supplier_order_multiple',\n 'manufacture_min_time',\n 'manufacture_max_time',\n 'inventory_flags',\n 'inventory_current_num',\n 'inventory_reorder_num',\n 'inventory_reorder_quantity',\n 'shipping_flags',\n 'shipping_weight',\n 'shipping_weight_units',\n 'shipping_length',\n 'shipping_width',\n 'shipping_height',\n 'shipping_size_units',\n 'primary_image_id',\n 'short_description',\n 'long_description',\n 'description',\n 'start_date',\n 'end_date',\n 'webflags',\n 'detail01',\n 'detail02',\n 'detail03',\n 'detail04',\n 'detail05',\n 'detail06',\n 'detail07',\n 'detail08',\n 'detail09',\n );\n foreach($product_fields as $field) {\n if( isset($args['parent_product_' . $field]) ) {\n if( $args['parent_product_' . $field] == 'on' ) {\n $object_def['parent']['products'][$field] = array();\n } elseif( $args['parent_product_' . $field] == 'off' \n && isset($object_def['parent']['products'][$field]) ) {\n unset($object_def['parent']['products'][$field]);\n }\n }\n if( (!isset($args['parent_product_' . $field . '-name']) || $args['parent_product_' . $field . '-name'])\n && isset($args['parent_product_' . $field . '-name']) ) {\n if( isset($object_def['parent']['products']) ) {\n $object_def['parent']['products'][$field]['name'] = $args['parent_product_' . $field . '-name'];\n }\n }\n if( isset($args['child_product_' . $field]) ) {\n if( $args['child_product_' . $field] == 'on' ) {\n if( !isset($object_def['child']) ) {\n $object_def['child'] = array('products'=>array());\n }\n $object_def['child']['products'][$field] = array();\n } elseif( $args['child_product_' . $field] == 'off' \n && isset($object_def['child']['products'][$field]) ) {\n unset($object_def['child']['products'][$field]);\n }\n }\n if( (!isset($args['child_product_' . $field . '-name']) || $args['child_product_' . $field . '-name'])\n && isset($args['child_product_' . $field . '-name']) ) {\n if( isset($object_def['child']['products']) ) {\n $object_def['child']['products'][$field]['name'] = $args['child_product_' . $field . '-name'];\n }\n }\n }\n\n $price_fields = array(\n 'name',\n 'pricepoint_id',\n 'available_to',\n 'min_quantity',\n 'unit_amount',\n 'unit_discount_amount',\n 'unit_discount_percentage',\n 'taxtype_id',\n 'start_date',\n 'end_date',\n 'webflags',\n );\n\n foreach($price_fields as $field) {\n if( isset($args['parent_price_' . $field]) ) {\n if( $args['parent_price_' . $field] == 'on' ) {\n if( !isset($object_def['parent']['prices']) ) { $object_def['parent']['prices'] = array(); }\n $object_def['parent']['prices'][$field] = array();\n } elseif( $args['parent_price_' . $field] == 'hidden' ) {\n if( !isset($object_def['parent']['prices']) ) { $object_def['parent']['prices'] = array(); }\n $object_def['parent']['prices'][$field] = array('ui-hide'=>'yes');\n } elseif( $args['parent_price_' . $field] == 'off' \n && isset($object_def['parent']['prices'][$field]) ) {\n unset($object_def['parent']['prices'][$field]);\n }\n if( $args['parent_price_' . $field] != 'off' ) {\n if( isset($args['parent_price_' . $field . '-default']) \n && $args['parent_price_' . $field . '-default'] != '' ) {\n $object_def['parent']['prices'][$field]['default'] = $args['parent_price_' . $field . '-default'];\n }\n }\n }\n if( isset($args['child_price_' . $field]) ) {\n if( $args['child_price_' . $field] == 'on' ) {\n if( !isset($object_def['child']) ) { $object_def['child'] = array('products'=>array()); }\n if( !isset($object_def['child']['prices']) ) { $object_def['child']['prices'] = array(); }\n $object_def['child']['prices'][$field] = array();\n } elseif( $args['child_price_' . $field] == 'off' \n && isset($object_def['child']['prices'][$field]) ) {\n unset($object_def['child']['prices'][$field]);\n }\n }\n }\n\n //\n // Remove old ones\n //\n if( isset($object_def['parent']['subcategories']) ) { unset($object_def['parent']['subcategories']); }\n\n// $args['object_def'] = serialize($object_def);\n\n //\n // Check for subcategories\n //\n for($i=11;$i<30;$i++) {\n $field = 'parent_subcategories-' . $i;\n if( isset($args[$field]) ) {\n if( $args[$field] == 'on' ) {\n $object_def['parent']['subcategories-' . $i] = array();\n if( isset($args[$field . '-sname']) ) {\n $object_def['parent']['subcategories-' . $i]['sname'] = $args[$field . '-sname'];\n }\n if( isset($args[$field . '-pname']) ) {\n $object_def['parent']['subcategories-' . $i]['pname'] = $args[$field . '-pname'];\n }\n } elseif( $args[$field] == 'off' && isset($object_def['parent']['subcategories-' . $i]) ) {\n unset($object_def['parent']['subcategories-' . $i]);\n }\n }\n }\n\n $extras = array('categories', \n// 'subcategories-11', 'subcategories-12', 'subcategories-13', 'subcategories-14', 'subcategories-15', \n 'tags', 'images', 'audio', 'files', 'similar', 'recipes');\n foreach($extras as $extra) {\n $field = 'parent_' . $extra;\n if( isset($args[$field]) ) {\n if( $args[$field] == 'on' ) {\n $object_def['parent'][$extra] = array();\n } elseif( $args[$field] == 'off' && isset($object_def['parent'][$extra]) ) {\n unset($object_def['parent'][$extra]);\n }\n }\n $field = 'child_' . $extra;\n if( isset($args[$field]) ) {\n if( $args[$field] == 'on' ) {\n $object_def['child'][$extra] = array();\n } elseif( $args[$field] == 'off' && isset($object_def['child'][$extra]) ) {\n unset($object_def['child'][$extra]);\n }\n }\n }\n\n return array('stat'=>'ok', 'object_def'=>$object_def);\n}", "public function getReflectionClass()\n {\n return new \\ReflectionClass($this->getName());\n }", "public function init(&$parentObject)\n {\n $this->parentObject = $parentObject;\n }", "public function getReflectionService() {}", "protected function getReflectedEntity()\n {\n return new \\ReflectionClass($this->getEntityName());\n }", "public function flattenInheritedAttributes() {}", "protected function processReceivedData() \r\n {\r\n parent::processReceivedData();\r\n // to do: call processReceivedData() for all members\r\n }", "public function parent() { }", "protected function derive_class_reflector() {\n\t\ttry {\n\t\t\t$class_reflector = $this->is_class_reference() ? new ReflectionClass( $this->get_class() ) : null;\n\t\t} catch ( ReflectionException $exception ) {\n\t\t\t$class_reflector = null;\n\t\t}\n\t\treturn $class_reflector;\n\t}", "public function __construct()\n\t{\n\t\t// Initialize reflectionClass with information about the target class\n\t\t$this->reflectionClass = new \\ReflectionClass($this);\n\t}", "public function test_ClassResolver_hasAttribute_reflection() {\n $this->assertClassHasAttribute('reflection', \\FightTheIce\\Coding\\ClassResolver::class);\n }", "function &_v($parent,$index,$kind = \"stdClass\",$fail=true){\n\tif ( isset($parent->{$index} ) && is_object($t =& $parent->{$index} ) && is_a($t,$kind) ) return $t;\n\tif($fail) { \n\t\t$pid = isset($parent->ID)?$parent->ID:\"no ID\";\n\t\t$className = get_class($parent);\n\t\t_e (\"The $index element of $className ($pid) is NOT a $kind thing\");\n\t}\n\t// we return false if the caller wants to suppress the error\n\treturn $fail;\n}", "public function reference() {\r\n\t\t$this->parseJavaName();\r\n\t\t$this->parseMultiObject();\r\n\t\tif (count($this->properties)) {\r\n\t\t\tforeach ($this->properties as $prop) {\r\n\t\t\t\t$prop->reference();\r\n\t\t\t}\r\n\t\t}\r\n\t\tif ($this->arrayType) {\r\n\t\t\t$this->arrayType->reference();\r\n\t\t}\r\n\t\t// add to classes array so we can generate the java classes easily (but only \"global objects\").\r\n\t\tif ($this->id) {\r\n\t\t\tif (!array_key_exists($this->javaClass, self::$classes)) {\r\n\t\t\t\tself::$classes[$this->javaClass] = array();\r\n\t\t\t}\r\n\t\t\tself::$classes[$this->javaClass][$this->javaType] = $this;\r\n\t\t}\r\n\t}", "protected function checkReflectionDocComment() {}", "abstract public function getReflection($method);", "public function postflight($type, $parent) {\n\t\t$this->loadConfigXml($parent);\n\n\t\t$this->loadSamples($parent);\n\n\t\tif ($type === 'update' &&\n\t\t\t\tversion_compare($this->fromVersion, $parent->getManifest()->version, '<')) {\n\t\t\t$this->enqueueMessage($this->getChangelog($parent));\n\t\t}\n\t}", "#[Pure]\nfunction class_parents($object_or_class, bool $autoload = true): array|false {}", "private function setAllLoaded()\n {\n $class_reflection = new ReflectionClass(get_class($this));\n do {\n if ($class_reflection->isInstantiable())\n $this->setLoadedFromDb($class_reflection->getName());\n\n } while (($class_reflection = $class_reflection->getParentClass()) && # get the parent\n $class_reflection->getName() != __CLASS__); # check that we're not hitting the top\n }", "public function loadForClass($obj)\r\n\t{\r\n\t\t/**\r\n\t\t * @var $class_name string full qualified name of class ex. fhibox\\jeeves\\application\\commands\\deploy\\CommandDeploy\r\n\t\t */\r\n\t\t$class_name = (is_string($obj)) ? $obj : get_class($obj);\r\n\t\t/* */ isset($this->logger) && $this->logger->debug(\"class_name=$class_name\");\r\n\r\n\t\t// Read conf file for current class:\r\n\t\t$arr_conf = $this->getArrConf($class_name);\r\n\t\t// ... and process placeholders if applicable\r\n\t\tif (!is_string($obj))\r\n\t\t{\t$arr_conf = $this->processPlaceholders($arr_conf, $obj);\r\n\t\t}\r\n\r\n\t\t/* */ isset($this->logger) && $this->logger->debug(\"arr_conf=\". print_r($arr_conf, true));\r\n\r\n\t\t// If class has parent classes, read their confs and merge them into child conf,\r\n\t\t// with lower precedence (child conf \"redefines\" parent conf)\r\n\t\t$class_parents = $this->getParents($class_name);\r\n\t\t/* */\t isset($this->logger) && $this->logger->debug(\"parents = \" . print_r($class_parents, true));\r\n\r\n\r\n\t\tforeach ($class_parents as $parent_class)\r\n\t\t{ // Read conf file for current class:\r\n\t\t\t$arr_conf_parent = $this->getArrConf($parent_class);\r\n\t\t\t// ... and process placeholders if applicable\r\n\t\t\tif (!is_string($obj))\r\n\t\t\t{\t$arr_conf_parent = $this->processPlaceholders($arr_conf_parent, $obj);\r\n\t\t\t}\r\n\r\n\t\t\t// Merge in already computed conf, with lower precedence:\r\n\t\t\t#$arr_conf = array_merge($arr_conf_parent, $arr_conf);\r\n\t\t\t$arr_conf = ArrayLib::array_merge_recursive($arr_conf_parent, $arr_conf);\r\n\r\n\t\t\t#// Remove new lines from values (Experimental): (Trying to fix the way help looks)\r\n\t\t\t#array_walk_recursive($arr_conf, function(&$i, $k){ $i=StringLib::removeNewlines($i);});\r\n\r\n\t\t}\r\n\t\t/* */ isset($this->logger) && $this->logger->debug(\"merged conf array=\" . print_r($arr_conf, true));\r\n\r\n\r\n\r\n\t\t// If array is empty, return an EmptyConfiguration\r\n\t\tif (empty($arr_conf))\r\n\t\t{\treturn new EmptyConfiguration();\r\n\t\t}\r\n\t\telse\r\n\t\t{\t// @todo polymorphism Return type should be configurable\r\n\t\t\treturn new ArrayConfiguration($arr_conf);\r\n\t\t}\r\n\r\n\t}", "public function postProcess($object);" ]
[ "0.61574465", "0.5886144", "0.5733333", "0.57058024", "0.54436225", "0.51873374", "0.51832104", "0.5164014", "0.513366", "0.51274467", "0.5122928", "0.5102061", "0.5083078", "0.5046989", "0.5027641", "0.49854237", "0.4974509", "0.49613896", "0.4935625", "0.49228963", "0.49112806", "0.4896535", "0.4893949", "0.48881057", "0.48866645", "0.48866645", "0.48529047", "0.4835643", "0.48280782", "0.4813346", "0.4810113", "0.4805245", "0.47730887", "0.47708872", "0.4742711", "0.47401485", "0.47348088", "0.47117364", "0.46989548", "0.4697168", "0.46943626", "0.46928805", "0.46902427", "0.46835718", "0.4676602", "0.46726167", "0.46627563", "0.4662535", "0.46576318", "0.46531636", "0.46458676", "0.46200034", "0.46184427", "0.46117315", "0.4610395", "0.45862138", "0.4583232", "0.45817107", "0.4579716", "0.45730567", "0.45700133", "0.4566142", "0.45652813", "0.4559807", "0.45458165", "0.45454544", "0.45411876", "0.45390508", "0.45376256", "0.45311096", "0.45250213", "0.45153743", "0.45149454", "0.44939348", "0.4488298", "0.4485284", "0.4483363", "0.44713223", "0.4470501", "0.4464814", "0.4452588", "0.44484517", "0.4444105", "0.4440708", "0.44394433", "0.44386202", "0.44366094", "0.44324988", "0.44123387", "0.44059065", "0.4401823", "0.4394008", "0.43937948", "0.43919614", "0.43830165", "0.43811488", "0.43744844", "0.4372526", "0.43678635", "0.43594038" ]
0.6085767
1
Find the appropriate docblock.
protected function parseDocComment(Stream $tokenStream, IReflection $parent) { if ($this instanceof ReflectionParameter) { $this->docComment = new ReflectionAnnotation($this); return $this; } $position = $tokenStream->key(); if ($tokenStream->is(T_DOC_COMMENT, $position - 1)) { $value = $tokenStream->getTokenValue($position - 1); if (self::DOCBLOCK_TEMPLATE_END !== $value) { $this->docComment = new ReflectionAnnotation($this, $value); $this->startPosition--; } } elseif ($tokenStream->is(T_DOC_COMMENT, $position - 2)) { $value = $tokenStream->getTokenValue($position - 2); if (self::DOCBLOCK_TEMPLATE_END !== $value) { $this->docComment = new ReflectionAnnotation($this, $value); $this->startPosition -= 2; } } elseif ($tokenStream->is(T_COMMENT, $position - 1) && preg_match('~^' . preg_quote(self::DOCBLOCK_TEMPLATE_START, '~') . '~', $tokenStream->getTokenValue($position - 1))) { $this->docComment = new ReflectionAnnotation($this, $tokenStream->getTokenValue($position - 1)); $this->startPosition--; } elseif ($tokenStream->is(T_COMMENT, $position - 2) && preg_match('~^' . preg_quote(self::DOCBLOCK_TEMPLATE_START, '~') . '~', $tokenStream->getTokenValue($position - 2))) { $this->docComment = new ReflectionAnnotation($this, $tokenStream->getTokenValue($position - 2)); $this->startPosition -= 2; } if (null === $this->docComment) { $this->docComment = new ReflectionAnnotation($this); } if ($parent instanceof ReflectionElement) { $this->docComment->setTemplates($parent->getDocblockTemplates()); } return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDocblock()\n {\n $tokens = $this->tokenStream->tokens();\n $currentLineNumber = $tokens[$this->id]->getLine();\n $prevLineNumber = $currentLineNumber - 1;\n\n for ($i = $this->id - 1; $i; $i--) {\n if (!isset($tokens[$i])) {\n return;\n }\n\n if ($tokens[$i] instanceof PHP_Token_FUNCTION ||\n $tokens[$i] instanceof PHP_Token_CLASS ||\n $tokens[$i] instanceof PHP_Token_TRAIT) {\n // Some other trait, class or function, no docblock can be\n // used for the current token\n break;\n }\n\n $line = $tokens[$i]->getLine();\n\n if ($line == $currentLineNumber ||\n ($line == $prevLineNumber &&\n $tokens[$i] instanceof PHP_Token_WHITESPACE)) {\n continue;\n }\n\n if ($line < $currentLineNumber &&\n !$tokens[$i] instanceof PHP_Token_DOC_COMMENT) {\n break;\n }\n\n return (string) $tokens[$i];\n }\n }", "public function getDocblock()\n {\n $currentLineNumber = $this->tokenStream[$this->id][2];\n $prevLineNumber = $currentLineNumber - 1;\n\n for ($i = $this->id - 1; $i > 0; $i--) {\n\n if ('T_FUNCTION' == $this->tokenStream[$i][0]\n || 'T_CLASS' == $this->tokenStream[$i][0]\n ) {\n // Some other class or function,\n // no docblock can be used for the current token\n break;\n }\n\n $line = $this->tokenStream[$i][2];\n\n if ($line == $currentLineNumber\n || (($line == $prevLineNumber)\n && ('T_WHITESPACE' == $this->tokenStream[$i][0]))\n ) {\n continue;\n }\n\n if ($line == $prevLineNumber\n && ('T_COMMENT' == $this->tokenStream[$i][0])\n ) {\n return $this->tokenStream[$i][1];\n }\n\n if (($line < $currentLineNumber)\n && ('T_DOC_COMMENT' !== $this->tokenStream[$i][0])\n ) {\n break;\n }\n\n return $this->tokenStream[$i][1];\n }\n }", "public function generateDocblock();", "public function getDocBlock()\n {\n return $this->docBlock;\n }", "public function test_file_docblocks() {\n\n\t\t$this->assertFileHasDocs(\n\t\t\tarray( 'description' => 'This is the file-level docblock summary.' )\n\t\t);\n\t}", "public function getDocComment()\n {\n // if it's already been retrieved, just return it\n if ($this->docString) {\n return $this->docString;\n }\n \n // attempt to get it from the current method\n if ($docblock = parent::getDocComment()) {\n $this->docString = $docblock;\n return $this->docString;\n }\n \n // if not, check it's interfaces\n $methodName = $this->getName();\n foreach ($this->getDeclaringClass()->getInterfaces() as $iFace) {\n // coninue of the method doesn't exist in the interface\n if (!$iFace->hasMethod($methodName)) {\n continue;\n }\n \n // attempt to find it in the current interface\n if ($this->docString = $iFace->getMethod($methodName)->getDocComment()) {\n break;\n }\n }\n \n return $this->docString;\n }", "protected function parseDocBlock()\n {\n if (!$this->docBlockIsParsed) {\n // The parse function will insert data from the provided method\n // into this object, using our accessors.\n CommandDocBlockParserFactory::parse($this, $this->reflection);\n $this->docBlockIsParsed = true;\n // Use method's return type if @return is not present.\n if ($this->reflection->hasReturnType() && !$this->getReturnType()) {\n $type = $this->reflection->getReturnType();\n if ($type instanceof \\ReflectionUnionType) {\n // Use first declared type.\n $type = current($type->getTypes());\n }\n $this->setReturnType($type->getName());\n }\n }\n }", "public function getDocBlock(): ?DocBlock\n {\n return $this->docBlock;\n }", "public function myAstShouldHaveAFileLevelDocBlockWithShortDescription()\n {\n /** @var \\SimpleXMLElement $structure */\n $structure = simplexml_load_file('build/structure.xml');\n if (!$structure->xpath('/project/file/docblock[description != \"\"]')) {\n throw new \\Exception(\n \"File-level DocBlock not found in structure file:\\n\"\n . $structure->asXML()\n );\n }\n }", "protected function getDocblock()\n\t{\n\t\treturn $this->property->getDocComment();\n\t}", "public function getDocBlock()\n {\n return new DocBlock($this->getDocComment());\n }", "public function test_method_docblocks() {\n\n\t\t$this->assertMethodHasDocs(\n\t\t\t'Test_Class'\n\t\t\t, 'test_method'\n\t\t\t, array( 'description' => 'This is a method docblock.' )\n\t\t);\n\t}", "public function getParsedDocBlock()\n {\n if (!$this->parsedDocblock) {\n if (strlen($this->docBlock) > 0) {\n $parser = new DocblockParser(\"/\" . $this->docBlock .\"/\");\n $this->parsedDocblock = $parser->parse();\n } else {\n return null;\n }\n }\n return $this->parsedDocblock;\n }", "public function getGeneralDocumentation();", "public function getDetailedDocumentation();", "public function test_hook_docblocks() {\n\n\t\t$this->assertHookHasDocs(\n\t\t\t'test_action'\n\t\t\t, array( 'description' => 'A test action.' )\n\t\t);\n\n\t\t$this->assertHookHasDocs(\n\t\t\t'test_filter'\n\t\t\t, array( 'description' => 'A filter.' )\n\t\t);\n\n\t\t$this->assertHookHasDocs(\n\t\t\t'test_ref_array_action'\n\t\t\t, array( 'description' => 'A reference array action.' )\n\t\t);\n\n\t\t$this->assertHookHasDocs(\n\t\t\t'test_ref_array_filter'\n\t\t\t, array( 'description' => 'A reference array filter.' )\n\t\t);\n\t}", "public function example()\n {\n// $docblock = new Docblock();\n// vd($docblock);\n\n\n /*\n * b) Create from string:\n */\n// $docblock = new Docblock('/**\n// * Short Description.\n// *\n// * Long Description.\n// *\n// * @author gossi\n// */'\n// );\n// vd($docblock);\n\n /*\n * 2 Manipulate tags\n * Get the tags:\n */\n// $docblock = new Docblock();\n// $tags = $docblock->getTags();\n// vd($tags);\n\n /*\n * Get tags by name:\n */\n// $docblock = new Docblock();\n// $tags = $docblock->getTags('author');\n// vd($tags);\n\n\n /*\n * Append a tag:\n */\n// $docblock = new Docblock();\n// $author = new AuthorTag();\n// $author->setName('gossi');\n// $docblock->appendTag($author);\n// vd($docblock);\n\n\n /*\n * or with fluent API:\n */\n// $docblock = new Docblock();\n// $docblock->appendTag(AuthorTag::create()\n// ->setName('gossi'));\n// vd($docblock);\n\n\n /*\n * Check tag existence:\n */\n// $docblock = new Docblock();\n// $docblock->hasTag('author');\n// vd($docblock);\n\n\n /*\n * 3. Get back the string\n * Call toString():\n */\n// $docblock = new Docblock();\n// $docblock->toString();\n// vd($docblock);\n\n\n }", "private function getDocBlock(string $fullyQualifiedNameSpace, string $methodName) : DocBlock\n {\n $emptyDocBlock = DocBlockFactory::createInstance()->create('/** */');\n\n if (!class_exists($fullyQualifiedNameSpace)) {\n return $emptyDocBlock;\n }\n\n try {\n return DocBlockUtility::getMethodDocBlock(new $fullyQualifiedNameSpace, $methodName) ?? $emptyDocBlock;\n } catch (Exception $e) {\n return $emptyDocBlock;\n }\n }", "abstract public static function getDoc();", "protected function checkReflectionDocComment() {}", "protected function getDocCommentParser() {}", "protected function getDocCommentParser() {}", "protected function getDocCommentParser() {}", "public function getDocComment();", "public function test_class_docblocks() {\n\n\t\t$this->assertClassHasDocs(\n\t\t\t'Test_Class'\n\t\t\t, array( 'description' => 'This is a class docblock.' )\n\t\t);\n\t}", "public function testBadlyClosedDocblock() {\n\t\t$info = Inspector::info(__METHOD__ . '()');\n\t\t$description = 'This docblock has an extra * in the closing element.';\n\t\t$this->assertEqual($description, $info['description']);\n\t\t$this->assertEqual('', $info['text']);\n\t}", "function getDocumentation()\n{\t\n if(count($this->_documentation) > 0){\n return $this->_documentation;\n } else {\n $debug_prefix = debug_indent(\"Module-getDocumentation() {$this->ModuleID}:\");\n\n $this->_documentation = array(\n 'Introduction' => '' \n );\n\n $documentation_element = $this->_map->selectFirstElement('Documentation', NULL, NULL);\n if(!empty($documentation_element) && count($documentation_element->c) > 0){\n foreach($documentation_element->c as $docsection_element){\n $title = $docsection_element->getAttr('title');\n print \"$debug_prefix generating section: $title\\n\";\n\n $content = '';\n\n //loop through contents\n foreach($docsection_element->c as $contentItem){\n switch(strtolower(get_class($contentItem))){\n case 'element':\n $content .= $contentItem->getContent();\n break;\n case 'characterdata':\n $content .= $contentItem->content;\n break;\n default:\n die(\"$debug_prefix unknown content type in documentation section\");\n }\n }\n\n $this->_documentation[$docsection_element->getAttr('sectionID')] = array($docsection_element->getAttr('title'), $content);\n }\n }\n debug_unindent();\n return $this->_documentation;\n }\n}", "public function getDocblockOpenPtr(): int|false\n {\n return $this->phpcsFile->findPrevious(T_DOC_COMMENT_OPEN_TAG, $this->scopePtr, false, false, '/**', true);\n }", "protected function _checkClassDocBlock() {\n\t\tfor ($i = 0; $i < count($this->tokens); $i++) {\n\t\t\tif ($this->tokens[$i][0] == T_CLASS) {\n\t\t\t\t$abMod = 0;\n\t\t\t\tif (isset($this->tokens[$i - 2][0]) && $this->tokens[$i - 2][0] == T_ABSTRACT) {\n\t\t\t\t\t$abMod = 2;\n\t\t\t\t}\n\t\t\t\tif (isset($this->tokens[$i - (2 + $abMod)][0])) {\n\t\t\t\t\tif ($this->tokens[$i - (2 + $abMod)][0] != T_DOC_COMMENT) {\n\t\t\t\t\t\t$line = str_pad(\"line {$this->tokens[$i][2]}:\", 10);\n\t\t\t\t\t\t$this->_error($i);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public static function echoInheritdocBlock()\n {\n echo \" /**\\n\";\n echo \" * @inheritdoc\\n\";\n echo \" */\\n\";\n }", "protected function _checkDocBlocks() {\n\t\tfor ($i = 0; $i < count($this->tokens); $i++) {\n\t\t\tif ($this->tokens[$i][0] == T_VARIABLE || $this->tokens[$i][0] == T_FUNCTION) {\n\t\t\t\t// Get the previous tokens.\n\t\t\t\t// Max is 8, allows for abstract, scope, static markers.\n\t\t\t\t$leadingTokens = array();\n\t\t\t\t$leadingTokenTypes = array();\n\t\t\t\tfor ($j = 1; $j < 9; $j++) {\n\t\t\t\t\t\tif (!isset($this->tokens[$i - $j])) {\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$leadingTokens[$i - $j] = $this->tokens[$i - $j];\n\t\t\t\t\t\t$leadingTokenTypes[$i - $j] = $this->tokens[$i - $j][0];\n\t\t\t\t\t\t// Don't parse farther past if you run into another var/function.\n\t\t\t\t\t\tif (in_array($this->tokens[$i - $j][0], array(T_VARIABLE, T_FUNCTION))) {\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// Check for a scope operator. Lack of one means we've hit a\n\t\t\t\t// closure or a non-class var that can be ignored.\n\t\t\t\t// Hit means this needs documentation.\n\t\t\t\t$scoped = in_array(T_PUBLIC, $leadingTokenTypes) ||\n\t\t\t\t in_array(T_PROTECTED, $leadingTokenTypes) ||\n\t\t\t\t in_array(T_PRIVATE, $leadingTokenTypes);\n\t\t\t\tif ($scoped && !in_array(T_DOC_COMMENT, $leadingTokenTypes)) {\n\t\t\t\t\t$this->_error($i);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "protected function checkDocRoot() {}", "public function getDocBlock()\n {\n $docblocks = $this->getDirectElementsByTagName($this->node, 'docblock');\n\n // if this method does not yet have a docblock; add one; even\n // though DocBlox throws a warning about a missing DocBlock!\n if (count($docblocks) < 1) {\n $docblock = new DOMElement('docblock');\n $this->node->appendChild($docblock);\n } else {\n /** @var DOMElement $docblock */\n $docblock = reset($docblocks);\n }\n\n return new DocBlox_Plugin_Core_Transformer_Behaviour_Inherit_Node_DocBlock(\n $docblock, $this->nodes\n );\n }", "public function getDocumentation(): string;", "function find()\n {\n }", "public function getDocblockCloserPtr(): int\n {\n $docblockOpenerPtr = $this->getDocblockOpenPtr();\n $docblockOpener = $this->tokens[$docblockOpenerPtr];\n\n return $docblockOpener['comment_closer'];\n }", "protected function loadDocCommentPos(): ?int\n {\n $docHelper = $this->getDocHelper();\n\n return $docHelper->hasDocBlock() ? $docHelper->getBlockStartPosition() : null;\n }", "public function test_property_docblocks() {\n\n\t\t$this->assertPropertyHasDocs(\n\t\t\t'Test_Class'\n\t\t\t, '$a_string'\n\t\t\t, array( 'description' => 'This is a docblock for a class property.' )\n\t\t);\n\t}", "public function find()\n {\n echo '找到需求' . PHP_EOL;\n }", "public function getDocumentationLanguage() {}", "function UpdateDocBlock($file, $doc, $line) {\n\t\t\n\t\t// Read file...\n\t\t$source = @file_get_contents($file);\n\t\tif (!$source) die(\"ERR3\"); // error 3 => can't read file\n\t\t\n\t\t// Now, we process the file, and make sure the original comment is still at the right location, or it's been moved\n\t\t$tokens = token_get_all($source);\n\t\t$found = false;\n\t\t$oldcomment = \"\";\n\t\tforeach($tokens as $token) {\n\t\t\tif ($token[0] == T_DOC_COMMENT && $token[2] == $line) {\n\t\t\t\t$found = true;\n\t\t\t\t$oldcomment = $token[1];\n\t\t\t}\n\t\t}\n\t\tif (!$found) die(\"ERR4\");\n\n\t\t// Set indent\n\t\t$code = $_POST['Code'];\n\t\tif ( preg_match('@^([\\t\\040]*).*$@', $code, $matches) ) {\n\t\t\t$doc->indent = $matches[1];\n\t\t}\n\t\t\n\t\t// Which line breaks does the source use?\n\t\t$lbtype = \"\\n\";\n\t\tif (substr_count($source,\"\\r\\n\") > 0) $lbtype = \"\\r\\n\";\n\t\t$final = implode($lbtype, $doc->Output(isUtf8($source)));\n\t\t\n\t\t// Simply search & replace old docblock\n\t\t$source = str_replace($oldcomment, trim($final), $source);\n\t\t//rename($file,$file.\".bak\");\n\t\tfile_put_contents($file, $source);\n\t}", "public function test_function_docblocks() {\n\n\t\t$this->assertFunctionHasDocs(\n\t\t\t'test_func'\n\t\t\t, array(\n\t\t\t\t'description' => 'This is a function docblock.',\n\t\t\t\t'long_description' => '<p>This function is just a test, but we\\'ve added this description anyway.</p>',\n\t\t\t\t'tags' => array(\n\t\t\t\t\tarray(\n\t\t\t\t\t\t'name' => 'since',\n\t\t\t\t\t\t'content' => '2.6.0',\n\t\t\t\t\t),\n\t\t\t\t\tarray(\n\t\t\t\t\t\t'name' => 'param',\n\t\t\t\t\t\t'content' => 'A string value.',\n\t\t\t\t\t\t'types' => array( 'string' ),\n\t\t\t\t\t\t'variable' => '$var',\n\t\t\t\t\t),\n\t\t\t\t\tarray(\n\t\t\t\t\t\t'name' => 'param',\n\t\t\t\t\t\t'content' => 'A number.',\n\t\t\t\t\t\t'types' => array( 'int' ),\n\t\t\t\t\t\t'variable' => '$num',\n\t\t\t\t\t),\n\t\t\t\t\tarray(\n\t\t\t\t\t\t'name' => 'return',\n\t\t\t\t\t\t'content' => 'Whether the function was called correctly.',\n\t\t\t\t\t\t'types' => array( 'bool' ),\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t)\n\t\t);\n\t}", "function analyseModuleDoc($para) {\n \n $module = $this->emptyModule;\n $module[\"name\"] = (\"\" != $para[\"name\"]) ? $para[\"name\"] : $this->currentFile;\n $module[\"group\"] = (\"\" != $para[\"group\"]) ? $para[\"group\"] : $this->currentFile;\n \n if (\"missing\" == $para[\"status\"]) {\n \n $msg = \"The file '$this->currentFile' does not contain any classes and seems to lack a module doc comment.\";\n $this->warn->addDocWarning($this->currentFile, \"module\", $module[\"name\"], $msg, \"missing\");\n \n } else if (\"tags missing\" == $para[\"status\"]) {\n \n $msg = \"The module doc comment does not contain a @module or @modulegroup tag, the module gets names: '$this->currentFile'\";\n $this->warn->addDocWarning($this->currentFile, \"module\", $module[\"name\"], $msg, \"missing\");\n \n }\n \n if (\"\" != $para[\"doc\"]) {\n \n $tags = $this->getTags($para[\"doc\"]);\n $module = $this->analyseTags($tags, $module, $this->moduleTags);\n \n list($msg, $module) = $this->checkParserErrors($module, \"module\");\n if (\"\" != $msg) \n $this->warn->addDocWarning($this->currentFile, \"module\", $module[\"name\"], $msg, \"mismatch\");\n \n list($shortdesc, $fulldesc) = $this->getDescription($para[\"doc\"]); \n $module[\"sdesc\"] = $shortdesc;\n $module[\"desc\"] = $fulldesc;\n \n $module[\"undoc\"] = false;\n }\n\n unset($module[\"module\"]);\n unset($module[\"modulegroup\"]);\n \n return $module;\n }", "protected function _findDescription($namespace) {}", "protected function formatComments(?\\phpDocumentor\\Reflection\\DocBlock $docBlock, \\ReflectionMethod | \\ReflectionClass | null $reflection = null) : string\n\t\t{\n\t\tif (! $docBlock)\n\t\t\t{\n\t\t\treturn '';\n\t\t\t}\n\n\t\t$container = new \\PHPFUI\\Container();\n\t\t$container->add($this->parsedown->text($this->getInheritedText($docBlock, $reflection, 'getSummary')));\n\t\t$desc = $this->getInheritedText($docBlock, $reflection);\n\n\t\tif ($desc)\n\t\t\t{\n\t\t\t$div = new \\PHPFUI\\HTML5Element('div');\n\t\t\t$div->addClass('description');\n\t\t\t$div->add($this->parsedown->text($desc));\n\t\t\t$container->add($div);\n\t\t\t}\n\n\t\t$tags = $docBlock->getTags();\n\t\t// if we are in a method, inheritdoc makes sense, and we should get the correct doc block comments\n\t\tif ($reflection instanceof \\ReflectionMethod)\n\t\t\t{\n\t\t\t$tags = $this->getInheritedDocBlock($tags, $reflection);\n\t\t\t}\n\n\t\tif ($tags)\n\t\t\t{\n\t\t\t$ul = new \\PHPFUI\\UnorderedList();\n\n\t\t\tforeach ($tags as $tag)\n\t\t\t\t{\n\t\t\t\t$name = $tag->getName();\n\t\t\t\t$description = \\method_exists($tag, 'getDescription') ? \\trim($tag->getDescription() ?? '') : '';\n\t\t\t\t$body = '';\n\t\t\t\t// punt on useless tags\n\t\t\t\tif (\\in_array($name, ['method', 'inheritdoc']))\n\t\t\t\t\t{\n\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\n\t\t\t\tif (\\method_exists($tag, 'getType'))\n\t\t\t\t\t{\n\t\t\t\t\t$type = $tag->getType();\n\t\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t$type = '';\n\t\t\t\t\t}\n\n\t\t\t\tif ('var' == $name || 'param' == $name)\n\t\t\t\t\t{\n\t\t\t\t\t// useless if no description or type\n\t\t\t\t\tif (! $description && ! $type)\n\t\t\t\t\t\t{\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\tif (\\method_exists($tag, 'getAuthorName'))\n\t\t\t\t\t{\n\t\t\t\t\t// @phpstan-ignore-next-line\n\t\t\t\t\t$body .= \\PHPFUI\\Link::email($tag->getEmail(), $tag->getAuthorName());\n\t\t\t\t\t}\n\n\t\t\t\tif (\\method_exists($tag, 'getReference'))\n\t\t\t\t\t{\n\t\t\t\t\t$body .= $tag->getReference();\n\t\t\t\t\t}\n\n\t\t\t\tif (\\method_exists($tag, 'getVersion'))\n\t\t\t\t\t{\n\t\t\t\t\t$body .= $tag->getVersion();\n\t\t\t\t\t}\n\n\t\t\t\tif (\\method_exists($tag, 'getLink'))\n\t\t\t\t\t{\n\t\t\t\t\t$body .= new \\PHPFUI\\Link($tag->getLink(), '', false);\n\t\t\t\t\t}\n\n\t\t\t\tif ($type)\n\t\t\t\t\t{\n\t\t\t\t\t$body .= $this->getClassName($type) . ' ';\n\t\t\t\t\t}\n\n\t\t\t\tif (\\method_exists($tag, 'getVariableName'))\n\t\t\t\t\t{\n\t\t\t\t\t$varname = $tag->getVariableName();\n\n\t\t\t\t\tif ($varname)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t$body .= $this->getColor('variable', '$' . $varname) . ' ';\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t$parts = \\explode('$', $description);\n\n\t\t\t\tif (\\count($parts) > 1)\n\t\t\t\t\t{\n\t\t\t\t\t$parts[0] = \\str_replace(['<', '>'], ['&lt;', '&gt;'], $parts[0]);\n\t\t\t\t\t$description = \\implode('$', $parts);\n\t\t\t\t\t}\n\t\t\t\t$body .= $this->parsedown->html($description);\n\t\t\t\t$ul->addItem(new \\PHPFUI\\ListItem($this->getColor('name', $name) . ' ' . $this->getColor('description', $body)));\n\t\t\t\t}\n\n\t\t\t$attributes = $this->getAttributes($reflection);\n\n\t\t\tforeach ($attributes as $attribute)\n\t\t\t\t{\n\t\t\t\t$ul->addItem(new \\PHPFUI\\ListItem($this->getColor('name', 'attribute') . ' ' . $this->formatAttribute($attribute)));\n\t\t\t\t}\n\n\t\t\t$container->add($ul);\n\t\t\t}\n\n\t\treturn $container;\n\t\t}", "public function displayDoc()\n {\n include __DIR__ . '/templates/doc.php';\n }", "protected static function replaceDocblock($body, $token)\n {\n return preg_match('/\\*\\/\\s*[\\r\\n](?:(?:abstract|final)\\s+)?(?:class|interface)\\s+\\S+/Ss', static::getContentHead($body))\n ? preg_replace(\n '/([\\n\\r])\\/\\*\\*\\s*(?:[\\r\\n]\\s+\\*[^\\r\\n]*)+[\\r\\n]\\s+\\*\\/\\s*([\\r\\n](?:(?:abstract|final)\\s+)?(?:class|interface)\\s+\\S+)/USs',\n '$1' . trim($token) . '$2',\n $body\n )\n : preg_replace(\n '/([\\r\\n](?:(?:abstract|final)\\s+)?(?:class|interface)\\s+\\S+)/USs',\n PHP_EOL . trim($token) . '$1',\n $body\n );\n }", "public function doc()\n {\n }", "public function getDocumentationFromNode(Node $node)\n {\n if ($node instanceof Node\\Stmt\\PropertyProperty || $node instanceof Node\\Const_) {\n $node = $node->getAttribute('parentNode');\n }\n if ($node instanceof Node\\Param) {\n $fn = $node->getAttribute('parentNode');\n $docBlock = $fn->getAttribute('docBlock');\n if ($docBlock !== null) {\n $tags = $docBlock->getTagsByName('param');\n foreach ($tags as $tag) {\n if ($tag->getVariableName() === $node->name) {\n return $tag->getDescription()->render();\n }\n }\n }\n } else {\n $docBlock = $node->getAttribute('docBlock');\n if ($docBlock !== null) {\n return $docBlock->getSummary();\n }\n }\n }", "public function setDocBlock($docBlock)\n {\n $this->docBlock = $docBlock;\n }", "public function getDocumentation()\n {\n return self::cleanComment($this->getMetaValue(self::META_DOCUMENTATION, ''), ' ');\n }", "public function getDescription(){\n\t\tif ($this->_description == ''){\n\t\t\t$this->_known_tags = array();\n\t\t\t$desc = $this->_function_reflection->getDocComment();\n\t\t\t$parsed_desc = '';\n\t\t\tif ($desc){\n\t\t\t\t$matches = preg_split('/\\n/',$desc);\n\t\t\t\t$start_pattern = '/w*\\/\\*\\*w*/';\n\t\t\t\tforeach ($matches as $match) {\n\t\t\t\t\tif (preg_match($start_pattern, $match,$submatch)){\n\t\t\t\t\t\t// skip it\n\t\t\t\t\t} else if (preg_match('/w*\\*\\//',$match,$submatch)){\n\t\t\t\t\t\t$offset = strpos($match,'*/')-1;\n\t\t\t\t\t\t$final_line = '';\n\t\t\t\t\t\t$final_line.= trim(substr($match,0,-$offset)).'';\n\t\t\t\t\t\tif ($final_line != ''){\n\t\t\t\t\t\t\t$parsed_desc .= $final_line;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (preg_match('/w*\\*/',$match,$submatch)){\n\t\t\t\t\t\tif (preg_match('/@/',$match,$submatch)){\n\t\t\t\t\t\t\t$offset = strpos($match,'@')+1;\n\t\t\t\t\t\t\t$tag = trim(substr($match,$offset,strlen($match)-$offset));\n\t\t\t\t\t\t\t$this->addTagFromString($tag);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$offset = strpos($match,'*')+1;\n\t\t\t\t\t\t\t$parsed_desc .= trim(substr($match,$offset,strlen($match)-$offset)).'\n\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\tif ($parsed_desc == ''){\n\t\t\t\t$parsed_desc = __('No documentation found. ','Shortcode Reference');\n\t\t\t}\n\t\t\t$this->_description = $parsed_desc;\n\t\t}\n\t\treturn $this->_description;\n\t}", "public function onlyDocblock(): void\n {\n // Binding types from the functional code and the docblock.\n $this->setFunctionalType($this->getReturnType($this->functional));\n $this->setDocblockType($this->getReturnTypeFromDocblock($this->docblock));\n\n if (!$this->docblockTypeIsset()) {\n $this->addIssue((new UntypedReturnDocblock())\n ->setName($this->functional->name)\n ->setLine($this->functional->getStartLine())\n ->setType($this->getMissingTypeFromNode())\n );\n }\n }", "public function getFieldDocumentation($field);", "public function documentation()\n {\n \t\t\n\t$this->load->view('Bleckmann/templates/header');\n \t$this->load->view('admin/documentation');\n $this->load->view('Bleckmann/templates/footer');\n\t\n }", "function findRef_layout($content, $spParams) {\n\t\treturn $this->getSoftrefTable('tx_kbnescefe_layout', $content);\n\t}", "public function find(string $view);", "public function testFind()\n\t{\n\t\t// Remove the following lines when you implement this test.\n\t\t$this->markTestIncomplete(\n\t\t\t'This test has not been implemented yet.'\n\t\t);\n\t}", "public static function _init()\n\t{\n\t\t\\Module::load('documentation');\n\t}", "function locate_block_template($template, $type, array $templates)\n {\n }", "public function testReadDocument() {\n\n $obj = new FileSystemStorageProvider($this->logger, $this->directory);\n\n $this->assertContains(\"<?php\", $obj->readDocument($this->doc1));\n }", "function post_process() {\n $this->_format_doc_comment();\n }", "function renderCommonDocfields($block, &$data) {\n\n reset($this->simpleDocfields);\n while (list($varname, $field) = each($this->simpleDocfields)) {\n\n if (isset($data[\"doc\"][$field])) {\n\n $this->tpl->setCurrentBlock($block.$field);\n $this->tpl->setVariable($varname, htmlentities($data[\"doc\"][$field][\"value\"]));\n $this->tpl->parseCurrentBlock();\n\n }\n\n }\n\n if (isset($data[\"doc\"][\"link\"]))\n $this->renderLinks($data[\"doc\"][\"link\"], $block);\n\n if (isset($data[\"doc\"][\"author\"])) \n $this->renderAuthors($data[\"doc\"][\"author\"], $block);\n\n if (isset($data[\"doc\"][\"see\"]))\n $this->renderSee($data[\"doc\"][\"see\"], $block);\n\n }", "public function find($tag);", "public function documentation() {\n\t\t$this->display(API_VIEWS_BASE.'/backend/documentation/index'); \n }", "private static function get_doc_comment( $reflection ) {\n\t\t$contents = null;\n\t\t$doc_comment = $reflection->getDocComment();\n\n\t\tif ( false !== $doc_comment || ! ( ini_get( 'opcache.enable_cli' ) && ! ini_get( 'opcache.save_comments' ) ) ) { // phpcs:ignore PHPCompatibility.IniDirectives.NewIniDirectives\n\t\t\t// Either have doc comment, or no doc comment and save comments enabled - standard situation.\n\t\t\tif ( ! getenv( 'WP_CLI_TEST_GET_DOC_COMMENT' ) ) {\n\t\t\t\treturn $doc_comment;\n\t\t\t}\n\t\t}\n\n\t\t$filename = $reflection->getFileName();\n\n\t\tif ( isset( self::$file_contents[ $filename ] ) ) {\n\t\t\t$contents = self::$file_contents[ $filename ];\n\t\t} elseif ( is_readable( $filename ) ) {\n\t\t\t$contents = file_get_contents( $filename );\n\t\t\tif ( is_string( $contents ) && '' !== $contents ) {\n\t\t\t\t$contents = explode( \"\\n\", $contents );\n\t\t\t\tself::$file_contents[ $filename ] = $contents;\n\t\t\t}\n\t\t}\n\n\t\tif ( ! empty( $contents ) ) {\n\t\t\treturn self::extract_last_doc_comment( implode( \"\\n\", array_slice( $contents, 0, $reflection->getStartLine() ) ) );\n\t\t}\n\n\t\tWP_CLI::debug( \"Could not read contents for filename '{$filename}'.\", 'commandfactory' );\n\t\treturn null;\n\t}", "public function docBodyTagBegin() {}", "public function getDocComment()\n\t{\n\t\treturn false;\n\t}", "public function test_find() : void\n {\n $journalMetadata1 = $this->prophesize(Metadata\\Comment::class);\n $journalMetadata2 = $this->prophesize(Metadata\\Comment::class);\n $this->compiler_prophecy\n ->compile(Argument::any())\n ->willReturn([\n $journalMetadata1->reveal(),\n $journalMetadata2->reveal(),\n ]);\n\n // create a new repository\n $repo = new FilesystemAnnotationRepository($this->file_source_prophecy->reveal(), $this->compiler_prophecy->reveal());\n\n // check the repository\n $entries = $repo->find();\n\n // check that the right number and content of entries is found\n $this->assertCount(2, $entries);\n $this->assertContains($journalMetadata1->reveal(), $entries);\n $this->assertContains($journalMetadata2->reveal(), $entries);\n }", "public function getDocComment() {\n if ( $this->reflectionSource instanceof ReflectionFunction ) {\n return $this->reflectionSource->getDocComment();\n } else {\n return parent::getDocComment();\n }\n }", "public function find();", "function InsertDocBlock($file, $doc, $type, $code=\"\", $line=0) {\n\t\t// Read file...\n\t\t$source = @file_get_contents($file);\n\t\tif (!$source) die(\"ERR3\"); // error 3 => can't read file\n\t\t\n\t\t// Split the code in an array\n\t\t$lines = preg_split(\"/((\\r?\\n)|(\\n?\\r))/\", $source);\n\t\t\n\t\t// Figure out line number\n\t\t// Make sure the retained line contains the same code as previously, otherwise we may have a problem\n\t\tif ($type != BLOCK_PAGE) {\n\t\t\t$linenumber = intval($line);\t\t\n\t\t\tif (trim($lines[$linenumber-1]) != trim($code) ) die(\"ERR1\");\t\t\t\n\t\t\t// Figure out indent\n\t\t\tif ( preg_match('@^([\\t\\040]*).*$@', $lines[$linenumber-1], $matches) ) {\n\t\t\t\t$doc->indent = $matches[1];\n\t\t\t}\n\t\t\t\n\t\t} else {\n\t\t\t// For the page block, we have to find the first open tag and insert after\n\t\t\t$tokens = token_get_all($source);\n\t\t\t$found = false;\n\t\t\tforeach($tokens as $token) {\n\t\t\t\tif ($token[0] == T_OPEN_TAG) {\n\t\t\t\t\t$found = true;\n\t\t\t\t\t$linenumber = intval($token[2])+1;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!$found) die(\"ERR4\");\n\t\t}\n\t\t\n\t\t// Which line breaks does the source use?\n\t\t$lbtype = \"\\n\";\n\t\tif (substr_count($source,\"\\r\\n\") > 0) $lbtype = \"\\r\\n\";\n\n\t\t// Insert docblock\n\t\tarray_splice($lines, $linenumber-1, 0, $lbtype.@implode($lbtype,$doc->Output( isUtf8($source) )) );\n\t\t\t\t\n\t\t// final source\n\t\t$source = implode($lbtype, $lines);\n\t\t//rename($file,$file.\".bak\");\n\t\tfile_put_contents($file, $source);\n\t}", "public function documentation()\n\t{\n\t\tif(defined(\"CMS_BACKEND\"))\n\t\t{\n\t\t\tAuthUser::load();\n\t\t\tif ( ! AuthUser::isLoggedIn()) {\n\t\t\t\tredirect(get_url('login'));\n\t\t\t}\n\t\t\t$this->display('mbblog/views/admin/docs');\n\t\n\t\t} else\n\t\t{\n\t\t\tFlash::set('error', __('You do not have permission to access the requested page!'));\n\t\t\tredirect(get_url());\n\t\t}\n\t}", "public function getOptDoc($optname) {}", "public function read_doc()\n {\n $path = getcwd();\n $f = $path . \"/\" . $this->file;\n $fileHandle = fopen($f, \"r\");\n $line = @fread($fileHandle, filesize($this->file));\n $lines = explode(chr(0x0D), $line);\n $outtext = \"\";\n foreach ($lines as $thisline) {\n $pos = strpos($thisline, chr(0x00));\n if (($pos !== false) || (strlen($thisline) == 0)) {\n } else {\n $outtext .= $thisline . \" \";\n }\n }\n $outtext = preg_replace(\"/[^a-zA-Z0-9\\s\\,\\.\\-\\n\\r\\t@\\/\\_\\(\\)]/\", \"\", $outtext);\n\n return $outtext;\n }", "public function getDocumentation(): ?string\n {\n return null;\n }", "public function v2docs() \n {\n $this->template->write_view('content', 'api/v2docs');\n $this->template->render();\n }", "function tidy_get_opt_doc(tidy $object, $optname) {}", "public function getBlockDefinition($blockOrIdentifier)\n\t{\n\t\tif ($blockOrIdentifier instanceof ContentBlock)\n\t\t{\n\t\t\t$identifier = $blockOrIdentifier->identifier;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$identifier = $blockOrIdentifier;\n\t\t}\n\n\t\t$blockDefinitions = $this->getBlockDefinitions();\n\t\tforeach ($blockDefinitions as $definition)\n\t\t{\n\t\t\tif ($definition['identifier'] == $identifier)\n\t\t\t{\n\t\t\t\treturn $definition;\n\t\t\t}\n\t\t}\n\n\t\treturn null;\n\t}", "public function _self_doc()\n\t{\n\t\t$info = array(\n\t\t\t'daily_deal' => array(\n\t\t\t\t'description' => array(\n\t\t\t\t\t'en' => 'Display the current daily deal active in SHOP.'\n\t\t\t\t),\n\t\t\t\t'single' => false,\n\t\t\t\t'double' => true,\n\t\t\t\t'variables' => 'id|cover_id|slug|name|description',\n\t\t\t\t'attributes' => array(),\n\t\t\t),\t\t\n\t\t\t'images' => array(\n\t\t\t\t'description' => array(\n\t\t\t\t\t'en' => 'Display Gallery and cover images of products.'\n\t\t\t\t),\n\t\t\t\t'single' => false,\n\t\t\t\t'double' => true,\n\t\t\t\t'variables' => 'id|src|alt|height|width|file_id|local',\t\t\t\t\n\t\t\t\t'attributes' => array(\n\t\t\t\t\t'id' => array(\n\t\t\t\t\t\t'type' => 'int',\n\t\t\t\t\t\t'required' => true,\n\t\t\t\t\t),\n\t\t\t\t\t'max' => array(\n\t\t\t\t\t\t'type' => 'Integer',\n\t\t\t\t\t\t'default' => '0',\n\t\t\t\t\t\t'required' => false,\n\t\t\t\t\t),\n\t\t\t\t\t'include_cover' => array(\n\t\t\t\t\t\t'type' => 'Boolean',\n\t\t\t\t\t\t'default' => 'NO',\n\t\t\t\t\t\t'required' => false,\n\t\t\t\t\t),\t\t\n\t\t\t\t\t'include_gallery' => array(\n\t\t\t\t\t\t'type' => 'Boolean',\n\t\t\t\t\t\t'default' => 'YES',\n\t\t\t\t\t\t'required' => false,\n\t\t\t\t\t),\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t),\n\t\t\t),\t\t\t\t\n\t\t\t'related' => array(\n\t\t\t\t'description' => array(\n\t\t\t\t\t'en' => 'Display a list of related products to another product.'\n\t\t\t\t),\n\t\t\t\t'single' => false,\n\t\t\t\t'double' => true,\n\t\t\t\t'variables' => 'id|cover_id|slug|name|description',\n\t\t\t\t'attributes' => array(\n\t\t\t\t\t'id' => array(\n\t\t\t\t\t\t'type' => 'int',\n\t\t\t\t\t\t'required' => true,\n\t\t\t\t\t),\n\t\t\t\t\t'max' => array(\n\t\t\t\t\t\t'type' => 'Integer',\n\t\t\t\t\t\t'default' => '0',\n\t\t\t\t\t\t'required' => false,\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t),\t\n\t\t\t'options' => array(\n\t\t\t\t'description' => array(\n\t\t\t\t\t'en' => 'Display all hte options assigned to a Product.'\n\t\t\t\t),\n\t\t\t\t'single' => false,\n\t\t\t\t'double' => true,\n\t\t\t\t'variables' => 'display|label|type',\n\t\t\t\t'attributes' => array(\n\t\t\t\t\t'id' => array(\n\t\t\t\t\t\t'type' => 'Integer',\n\t\t\t\t\t\t'required' => true,\n\t\t\t\t\t),\n\t\t\t\t\t'txtBoxClass' => array(\n\t\t\t\t\t\t'type' => 'String',\n\t\t\t\t\t\t'default' => '',\n\t\t\t\t\t\t'required' => false,\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t),\n\t\t\t'categories' => array(\n\t\t\t\t'description' => array(\n\t\t\t\t\t'en' => 'Display a list of Categories.'\n\t\t\t\t),\n\t\t\t\t'single' => false,\n\t\t\t\t'double' => true,\n\t\t\t\t'variables' => 'link|categories',\n\t\t\t\t'attributes' => array(),\n\t\t\t),\t\t\t\t\n\t\t\t'category' => array(\n\t\t\t\t'description' => array(\n\t\t\t\t\t'en' => 'Get all fields of a particular category by Category-ID, OR just get the value of a particular field.'\n\t\t\t\t),\n\t\t\t\t'single' => false,\n\t\t\t\t'double' => true,\n\t\t\t\t'variables' => 'id|slug|name|user_data',\n\t\t\t\t'attributes' => array(\n\t\t\t\t\t'id' => array(\n\t\t\t\t\t\t'type' => 'Integer',\n\t\t\t\t\t\t'required' => true,\n\t\t\t\t\t),\n\t\t\t\t\t'field' => array(\n\t\t\t\t\t\t'type' => 'String',\n\t\t\t\t\t\t'default' => '',\n\t\t\t\t\t\t'required' => false,\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t),\t\n\t\t\t'cart' => array(\n\t\t\t\t'description' => array(\n\t\t\t\t\t'en' => 'Display the cart contents.'\n\t\t\t\t),\n\t\t\t\t'single' => false,\n\t\t\t\t'double' => true,\n\t\t\t\t'variables' => 'id|rowid|name|qty|price|subtotal',\n\t\t\t\t'attributes' => array(),\n\t\t\t),\t\t\t\n\t\t\t'currency' => array(\n\t\t\t\t'description' => array(\n\t\t\t\t\t'en' => 'Display the Shop default currency symbol OR format a float value to the Shop currency format.'\n\t\t\t\t),\n\t\t\t\t'single' => true,\n\t\t\t\t'double' => false,\n\t\t\t\t'variables' => 'id|rowid|name|qty|price|subtotal',\n\t\t\t\t'attributes' => array(\n\t\t\t\t\t'format' => array(\n\t\t\t\t\t\t'type' => 'float',\n\t\t\t\t\t\t'required' => false,\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t),\t\n\t\t\t'products' => array(\n\t\t\t\t'description' => array(\n\t\t\t\t\t'en' => 'Display a list of ALL products'\n\t\t\t\t),\n\t\t\t\t'single' => false,\n\t\t\t\t'double' => true,\n\t\t\t\t'variables' => 'id|slug|name|cover_id|price|category_id',\n\t\t\t\t'attributes' => array(\n\t\t\t\t\t'limit' => array(\n\t\t\t\t\t\t'type' => 'Integer',\n\t\t\t\t\t\t'required' => false,\n\t\t\t\t\t\t'default' => '0',\n\t\t\t\t\t),\n\t\t\t\t\t'order-by' => array(\n\t\t\t\t\t\t'type' => 'String',\n\t\t\t\t\t\t'required' => false,\n\t\t\t\t\t\t'default' => 'date_created',\n\t\t\t\t\t),\t\t\n\t\t\t\t\t'order-dir' => array(\n\t\t\t\t\t\t'type' => 'String',\n\t\t\t\t\t\t'required' => false,\n\t\t\t\t\t\t'default' => 'asc',\n\t\t\t\t\t),\t\n\t\t\t\t\t'category_id' => array(\n\t\t\t\t\t\t'type' => 'Integer',\n\t\t\t\t\t\t'required' => false,\n\t\t\t\t\t\t'default' => '0',\n\t\t\t\t\t),\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t),\n\t\t\t),\t\t\t\t\t\t\t\n\t\t\t'product' => array(\n\t\t\t\t'description' => array(\n\t\t\t\t\t'en' => 'Display basic information about a product, Only 1 attribute is required.'\n\t\t\t\t),\n\t\t\t\t'single' => false,\n\t\t\t\t'double' => true,\n\t\t\t\t'variables' => 'id|slug|name|cover_id|price|category_id',\n\t\t\t\t'attributes' => array(\n\t\t\t\t\t'id' => array(\n\t\t\t\t\t\t'type' => 'Integer',\n\t\t\t\t\t\t'required' => false,\n\t\t\t\t\t),\n\t\t\t\t\t'slug' => array(\n\t\t\t\t\t\t'type' => 'Integer',\n\t\t\t\t\t\t'required' => false,\n\t\t\t\t\t),\t\t\t\t\t\n\t\t\t\t),\n\t\t\t),\t\n\t\t\t'digital_files' => array(\n\t\t\t\t'description' => array(\n\t\t\t\t\t'en' => 'Display a list of files associated with an order or product.'\n\t\t\t\t),\n\t\t\t\t'single' => false,\n\t\t\t\t'double' => true,\n\t\t\t\t'variables' => 'id|filename|ext',\n\t\t\t\t'attributes' => array(\n\t\t\t\t\t'order_id' => array(\n\t\t\t\t\t\t'type' => 'Integer',\n\t\t\t\t\t\t'required' => false,\n\t\t\t\t\t),\n\t\t\t\t\t'product_id' => array(\n\t\t\t\t\t\t'type' => 'Integer',\n\t\t\t\t\t\t'required' => false,\n\t\t\t\t\t),\t\t\t\t\t\n\t\t\t\t),\n\t\t\t),\t\n\t\t\t'in_wishlist' => array(\n\t\t\t\t'description' => array(\n\t\t\t\t\t'en' => 'Displays contents ONLY if the Product is IN the users wishlist.'\n\t\t\t\t),\n\t\t\t\t'single' => false,\n\t\t\t\t'double' => true,\n\t\t\t\t'variables' => '',\n\t\t\t\t'attributes' => array(\n\t\t\t\t\t'id' => array(\n\t\t\t\t\t\t'type' => 'Integer',\n\t\t\t\t\t\t'required' => TRUE,\n\t\t\t\t\t),\t\t\t\t\n\t\t\t\t),\n\t\t\t),\t\n\t\t\t'notin_wishlist' => array(\n\t\t\t\t'description' => array(\n\t\t\t\t\t'en' => 'Displays contents ONLY if the Product is NOT-IN the users wishlist.'\n\t\t\t\t),\n\t\t\t\t'single' => false,\n\t\t\t\t'double' => true,\n\t\t\t\t'variables' => '',\n\t\t\t\t'attributes' => array(\n\t\t\t\t\t'id' => array(\n\t\t\t\t\t\t'type' => 'Integer',\n\t\t\t\t\t\t'required' => TRUE,\n\t\t\t\t\t),\t\t\t\t\n\t\t\t\t),\n\t\t\t),\t\t\t\t\t\t\t\n\t\t\t\n\t\t);\n\t\n\t\treturn $info;\n\t}", "function findKeyword() {\n \n }", "public static function getDoc()\n {\n return array(\n 'trigger' => 'admin',\n 'demo' => \"php admin help\",\n 'doc' => \"Group of commands for package admin\",\n );\n }", "public static function getDoc()\n {\n return array(\n 'trigger' => 'base-trait-repo',\n 'demo' => \"php owp update base-trait-repo\",\n 'doc' => \"Update current repo trait core\",\n );\n }", "function render_block_core_search($attributes, $content, $block)\n {\n }", "public function parse($docComment) {\n \t$this->docComment = $docComment;\n\n $lines = explode(\"\\n\", $this->docComment);\n\n foreach ($lines as $line) {\n $line = $this->extractContentFromDocCommentLine($line);\n\n // in some states we need to do something\n if (!empty($line)) {\n if ($line[0] == '@') {\n $this->state = self::ANNOTATIONS;\n $this->parseAnnotation($line);\n }\n elseif ($this->state == self::ANNOTATIONS) {\n $this->parseAnnotation($line);\n }\n else {\n if ($this->state == self::SHORT_DESC\n \tor $this->state == self::BEGINNING) {\n $this->shortDesc .= $line . \"\\n\";\n }\n elseif ($this->state == self::LONG_DESC) {\n $this->longDesc .= $line . \"\\n\";\n }\n }\n }\n else if ($this->state == self::LONG_DESC) {\n $this->longDesc .= \"\\n\";\n }\n\n //next state\n $this->state = $this->stateTable[empty($line)][$this->state];\n }\n $this->shortDesc = trim($this->shortDesc);\n $this->longDesc = trim($this->longDesc);\n }", "public function getDocComment($type = 'class', $name = '')\n {\n $this->parse();\n\n return $name ? $this->docComment[$type][$name] : $this->docComment[$type];\n }", "public function testGeneratesElementsWithDocumentation()\n\t {\n\t\t$schemafragment = new SchemaFragment(\"xs\");\n\n\t\t$elementdescription = array();\n\t\t$elementdescription[\"name\"] = \"TestElement\";\n\t\t$elementdescription[\"nodeattributes\"] = array(\"type\" => \"string\");\n\n\t\t$elementdescription[\"annotation\"] = array();\n\t\t$elementdescription[\"annotation\"][\"documentation\"] = array(\n\t\t\t\t\t\t\t\t \"title\" => \"Test element\",\n\t\t\t\t\t\t\t\t \"description\" => \"Test description\",\n\t\t\t\t\t\t\t\t );\n\n\t\t$generatedelement = $schemafragment->get($elementdescription, false);\n\n\t\t$snippetlocation = $this->_testsetFolder . \"/elementwithdocumentation.xmlsnippet\";\n\t\t$this->assertEquals(file_get_contents($snippetlocation), $generatedelement->ownerDocument->saveXML($generatedelement));\n\t }", "protected function getDocblockTagsSection($docblock)\n {\n $docblock = $this->sanitizeDocblock($docblock);\n preg_match('/^\\s*\\\\'.self::TOKEN_ANNOTATION_IDENTIFIER.'/m', $docblock, $matches, PREG_OFFSET_CAPTURE);\n\n // return found docblock tag section or empty string\n return isset($matches[0]) ? substr($docblock, $matches[0][1]) : '';\n }", "public function doFind()\r\n {\r\n throw new Exception('This method is not yet implemented');\r\n }", "public function hasDocComment()\n {\n return parent::getDocComment() !== false;\n }", "public function documentation()\n {\n return $this->hasOne('App\\Documentation');\n }", "public static function docBlock($string)\n {\n $o = new Comment();\n $o->setMessage($string);\n $o->setType('docBlock');\n return $o;\n }", "function doc_begin () {\r\n\t\treturn($this->docbegin);\r\n\t}", "public abstract function find();", "protected function createDocComment()\n {\n $comment = parent::getDocComment();\r\n if ($comment === false) {\r\n return false;\r\n }\n return new AspectPHP_Reflection_DocComment($comment);\n }", "public function action_search_doc()\n\t{\n\t\tglobal $context;\n\n\t\t$context['doc_apiurl'] = 'https://github.com/elkarte/Elkarte/wiki/api.php';\n\t\t$context['doc_scripturl'] = 'https://github.com/elkarte/Elkarte/wiki/';\n\n\t\t// Set all the parameters search might expect.\n\t\t$postVars = explode(' ', $context['search_term']);\n\n\t\t// Encode the search data.\n\t\tforeach ($postVars as $k => $v)\n\t\t{\n\t\t\t$postVars[$k] = urlencode($v);\n\t\t}\n\n\t\t// This is what we will send.\n\t\t$postVars = implode('+', $postVars);\n\n\t\t// Get the results from the doc site.\n\t\trequire_once(SUBSDIR . '/Package.subs.php');\n\t\t// Demo URL:\n\t\t// https://github.com/elkarte/Elkarte/wiki/api.php?action=query&list=search&srprop=timestamp|snippet&format=xml&srwhat=text&srsearch=template+eval\n\t\t$search_results = fetch_web_data($context['doc_apiurl'] . '?action=query&list=search&srprop=timestamp|snippet&format=xml&srwhat=text&srsearch=' . $postVars);\n\n\t\t// If we didn't get any xml back we are in trouble - perhaps the doc site is overloaded?\n\t\tif (!$search_results || preg_match('~<' . '\\?xml\\sversion=\"\\d+\\.\\d+\"\\?' . '>\\s*(<api>.+?</api>)~is', $search_results, $matches) !== 1)\n\t\t{\n\t\t\tthrow new Exception('cannot_connect_doc_site');\n\t\t}\n\n\t\t$search_results = !empty($matches[1]) ? $matches[1] : '';\n\n\t\t// Otherwise we simply walk through the XML and stick it in context for display.\n\t\t$context['search_results'] = array();\n\n\t\t// Get the results loaded into an array for processing!\n\t\t$results = new XmlArray($search_results, false);\n\n\t\t// Move through the api layer.\n\t\tif (!$results->exists('api'))\n\t\t{\n\t\t\tthrow new Exception('cannot_connect_doc_site');\n\t\t}\n\n\t\t// Are there actually some results?\n\t\tif ($results->exists('api/query/search/p'))\n\t\t{\n\t\t\t$relevance = 0;\n\t\t\tforeach ($results->set('api/query/search/p') as $result)\n\t\t\t{\n\t\t\t\t$title = $result->fetch('@title');\n\t\t\t\t$context['search_results'][$title] = array(\n\t\t\t\t\t'title' => $title,\n\t\t\t\t\t'relevance' => $relevance++,\n\t\t\t\t\t'snippet' => str_replace('class=\\'searchmatch\\'', 'class=\"highlight\"', un_htmlspecialchars($result->fetch('@snippet'))),\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t}", "public function actionDoc($detail=true){\n if($detail)\n echo $this->getHelp();\n else\n echo $this->getHelpSummary();\n // getActionHelp($action)\n // getActionArgsHelp($action)\n // getActionOptionsHelp($action)\n \n // getActionMethodReflection($action) -- protected\n }", "public function test1() //PhpDoc is missed\n {\n }", "protected function getDocHelper(): DocHelper\n {\n if ($this->docHelper === null) {\n $this->docHelper = new DocHelper($this->getFile(), $this->getStackPos());\n }\n\n return $this->docHelper;\n }", "protected function parseComment(string $comment): void\n {\n // Strip the opening and closing tags of the docblock\n $comment = \\substr($comment, 3, -2);\n\n // Split into arrays of lines\n $comment = \\preg_split('/\\r?\\n\\r?/', $comment);\n\n // Trim asterisks and whitespace from the beginning and whitespace from the end of lines\n $comment = \\array_map(function ($line) {\n return \\ltrim(\\rtrim($line), \"* \\t\\n\\r\\0\\x0B\");\n }, $comment);\n\n // Group the lines together by @tags\n $blocks = [];\n $b = -1;\n foreach ($comment as $line) {\n if (self::isTagged($line)) {\n $b++;\n $blocks[] = [];\n } elseif ($b == -1) {\n $b = 0;\n $blocks[] = [];\n }\n $blocks[$b][] = $line;\n }\n\n // Parse the blocks\n foreach ($blocks as $block => $body) {\n $body = \\trim(\\implode(\"\\n\", $body));\n\n if ($block == 0 && !self::isTagged($body)) {\n // This is the description block\n $this->description = $body;\n continue;\n } else {\n // This block is tagged\n $tag = (string)\\substr(self::strTag($body), 1);\n $body = \\ltrim((string)\\substr($body, \\strlen($tag) + 2));\n\n if (isset(self::$vectors[$tag])) {\n // The tagged block is a vector\n $count = \\count(self::$vectors[$tag]);\n if ($body) {\n $parts = \\preg_split('/\\s+/', $body, $count);\n } else {\n $parts = [];\n }\n // Default the trailing values\n $parts = \\array_pad($parts, $count, null);\n $mapped = \\array_combine(\n self::$vectors[$tag],\n $parts\n );\n\n if (isset($mapped['var']) && \\substr($mapped['var'], 0, 3) === '...') {\n $mapped['var'] = substr($mapped['var'], 3);\n }\n // Store as a mapped array\n $this->tags[$tag][] = $mapped;\n } else {\n // The tagged block is only text\n $this->tags[$tag][] = $body;\n }\n }\n }\n }", "public function replaceBlockDocumentElements($content){\n\t\t//regular expression indiicating what a document block looks like\n\t\t$document_block_string = \"/\\{arch:document\\}(.*?)\\{\\/arch:document\\}/s\";\n\t\t\n\t\t//array to hold blocks that need to be replaced\n\t\t$document_array = array();\n\t\t\n\t\t//fill the array\n\t\tpreg_match_all($document_block_string, $content, $document_array);\n\t\t\n\t\t//parse document block array\n\t\tforeach($document_array[0] as $block){\n\t\t\t//start block content and fill it with all of the content in the block\n\t\t\t$block_content = $block;\n\n\t\t\t//array to hold elements in the block\n\t\t\t$element_array = array();\n\t\t\t\n\t\t\t//string to match document elements against\n\t\t\t$document_elements_string = \"/{arch:[a-zA-Z0-9\\s]*\\/}/\";\n\t\t\t\n\t\t\t//fill array\n\t\t\tpreg_match_all($document_elements_string, $block, $element_array);\n\t\t\t\n\t\t\t//parse element array\n\t\t\tforeach($element_array[0] as $element){\n\t\t\t\t//strip name out of the element string\n\t\t\t\t$element_name = explode(':', $element);\n\t\t\t\t$element_name = explode('/', $element_name[1]);\n\t\t\t\t//final element name\n\t\t\t\t$element_name = $element_name[0];\n\t\t\t\t\n\t\t\t\t//inline editing variables\n\t\t\t\t$element_editing_type = \"\";\n\t\t\t\t\n\t\t\t\tif(in_array($element_name, $this->document_default_fields)){//if it is a default element\n\t\t\t\t\tif($element_name == \"title\"){//switch to inline definition to remove extra tags generated by ckeditor\n\t\t\t\t\t\t$element_editing_type = \" arch-inline_element\";\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\t//document element name\n\t\t\t\t\t$element_name = 'document_'.$element_name.'_'.getCurrentLanguage();\n\t\t\t\t\t\n\t\t\t\t\t//grab tag parser\n\t\t\t\t\trequire_once(constant(\"ARCH_BACK_END_PATH\").'modules/tag_parser.php');\n\n\t\t\t\t\t//variable to hold content with rendered tags filled with content\n\t\t\t\t\t$tag_rendered_content = $this->document[$element_name];\n\t\t\t\t\t//build handler and pass it the content to be rendered\n\t\t\t\t\t$tag_rendered_content_handler = new tagParser($tag_rendered_content, true, true, false);\n\t\t\t\t\t\n\t\t\t\t\t//retrieve the rendered content\n\t\t\t\t\t$tag_rendered_content = $tag_rendered_content_handler->getContent();\n\t\t\n\t\t\t\t\tob_start();\n\t\t\t\t\t//evaluate string as php append closing and open php tags to comply with expected php eval format\n\t\t\t\t\t//http://php.net/eval\n eval(\"?>\".$tag_rendered_content.\"<?\");\n\t\t\t\t\t$evaluated_content = ob_get_clean();\n\t\t\t\t\t\n\t\t\t\t\t$element_content = $evaluated_content;\n\t\t\t\t}else{//if it is not a default element\n\t\t\t\t\t$field_id = mysql_query('SELECT additional_field_ID \n\t\t\t\t\t\t\t\t\t\t\tFROM tbl_additional_fields\n\t\t\t\t\t\t\t\t\t\t\tWHERE additional_field_name = \"'.clean($element_name).'\"\n\t\t\t\t\t\t\t\t\t\t\tLIMIT 1');\n\t\t\t\t\t\n\t\t\t\t\tif(mysql_num_rows($field_id) > 0){//if the field exsists\n\t\t\t\t\t\t$field_id = mysql_fetch_assoc($field_id);\n\t\t\t\t\t\t$field_id = $field_id['additional_field_ID'];\n\t\t\t\t\t\t\n\t\t\t\t\t\t$field_value = mysql_query('SELECT additional_field_value_'.getCurrentLanguage().'\n\t\t\t\t\t\t\t\t\t\t\t\t\tFROM tbl_additional_field_values\n\t\t\t\t\t\t\t\t\t\t\t\t\tWHERE additional_field_value_additional_field_FK = \"'.clean($field_id).'\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tAND additional_field_value_document_FK = \"'.clean($this->document['document_ID']).'\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tLIMIT 1');\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(mysql_num_rows($field_value) > 0){//if the field has value\n\t\t\t\t\t\t\t$field_value = mysql_fetch_assoc($field_value);\n\t\t\t\t\t\t\t$field_value = $field_value['additional_field_value_'.getCurrentLanguage()];\n\n\t\t\t\t\t\t\t$element_content = $field_value;\n\t\t\t\t\t\t}else{//the field has no value\n\t\t\t\t\t\t\t$element_content = '';\n\t\t\t\t\t\t}\n\t\t\t\t\t}else{//field dosn't exsist\n\t\t\t\t\t\t$element_content = '';\n\t\t\t\t\t}\n\t\t\t\t}//end non default element\n\n\t\t\t\tif($this->edit_mode == true){//check for editing mode\n\t\t\t\t\tif(trim($element_content) == ''){//check for empty elements in edit mode\n\t\t\t\t\t\t$element_content = $element;\n\t\t\t\t\t}\n\t\t\t\t\t$element_content = '<div class=\"arch-content_element'.$element_editing_type.'\" id=\"'.$element_name.'\" style=\"display:inline;\" contenteditable=\"true\">'.$element_content.'</div>';\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//grab content for element out of the database and replace it in the block\n\t\t\t\t$block_content = preg_replace(\"{\".$element.\"}\", $element_content, $block_content, 1);\n\t\t\t\t//echo $block_content;\n\t\t\t}\n\t\t\t\n\t\t\t//clean out document start and end tags\n\t\t\t$block_content = str_replace(\"{arch:document}\", \"\", $block_content);\n\t\t\t$block_content = str_replace(\"{/arch:document}\", \"\", $block_content);\n\t\t\t\n\t\t\t//preform actual replacement\n\t\t\t$content = preg_replace(\"{\".$block.\"}\", $block_content, $content, 1);\n\t\t}//end document block parsing\n\t\t\n\t\treturn $content;\n\t}" ]
[ "0.68843627", "0.6877512", "0.66639394", "0.63604546", "0.63433844", "0.63251114", "0.6258956", "0.62072825", "0.61760503", "0.6145185", "0.61429864", "0.6140924", "0.6083305", "0.6077037", "0.60602266", "0.60174286", "0.59553254", "0.59407175", "0.5915327", "0.5850912", "0.5850268", "0.5850268", "0.5850268", "0.5835852", "0.5784456", "0.5777015", "0.5730106", "0.56982386", "0.5654256", "0.55826753", "0.5570623", "0.5506992", "0.5486795", "0.5458603", "0.5455886", "0.5443936", "0.5439662", "0.5434027", "0.5409893", "0.54074", "0.54071176", "0.5405544", "0.5394505", "0.5388739", "0.53676957", "0.5290323", "0.5272862", "0.52108413", "0.515476", "0.51457304", "0.51373005", "0.51097757", "0.5096174", "0.5081215", "0.5081203", "0.5076872", "0.5076161", "0.5060853", "0.50376564", "0.50279737", "0.5024414", "0.50017214", "0.4992263", "0.49909207", "0.49834564", "0.49728075", "0.4960474", "0.49497476", "0.49407074", "0.49396232", "0.49309492", "0.49240303", "0.49181318", "0.49064338", "0.4887741", "0.48870733", "0.48673558", "0.4861966", "0.4858491", "0.48501572", "0.48490486", "0.48472917", "0.4835958", "0.48093912", "0.4808736", "0.48001164", "0.47998893", "0.47920525", "0.47905296", "0.47869653", "0.47743446", "0.47741205", "0.47675848", "0.47675833", "0.4766944", "0.4765719", "0.47471786", "0.47465873", "0.47445482", "0.47432506", "0.47222024" ]
0.0
-1
Saves the start line number.
private final function parseStartLine(Stream $tokenStream) { $token = $tokenStream->current(); $this->startLine = $token[2]; $this->startPosition = $tokenStream->key(); return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setLine(int $newLine): void\n {\n $this->node->start_lineno = $newLine;\n }", "private function setStartRecord($start){\n\t\t$this->startRecord = $start;\n\t}", "public function setEndLine(int $newLine): void\n {\n $this->node->end_lineno = $newLine;\n }", "public function getStartLine(): int\n {\n return $this->node->getAttribute('startLine');\n }", "public function getStartLine(): int\n {\n return $this->node->getStartLine();\n }", "public function getNewLineNo(): int\n {\n return intval($this->newLineNo);\n }", "public function getLine(): int\n {\n return $this->node->start_lineno;\n }", "public function getStartLine()\n\t{\n\t\treturn $this->startLine;\n\t}", "public function setStart($intStart);", "public function getOriginalLineNo(): int\n {\n return intval($this->originalLineNo);\n }", "public function setLine($line);", "public function start()\n {\n $this->_marks = array();\n $this->mark('__start');\n }", "public function setFilePos($pos) {\n\t\t$this->linepointer = $pos;\n\t\treturn $this->linepointer;\n\t}", "public function getLineNumber();", "public function getLineNumber();", "public function setStart ($value)\r\n\t{\r\n\t\t$this->start = $value;\r\n\t}", "public function setStart($number)\n {\n parent::setAttr(\"start\", $number);\n }", "public function getLineNr()\n {\n return $this->lineNr;\n }", "public function setLineId(int $lineId): void\n {\n $this->lineId = $lineId;\n }", "function SetUpStartRec() {\n\t\tglobal $archv_finished;\n\t\tif ($this->lDisplayRecs == 0)\n\t\t\treturn;\n\t\tif ($this->IsPageRequest()) { // Validate request\n\t\t\tif (@$_GET[EW_TABLE_START_REC] <> \"\") { // Check for \"start\" parameter\n\t\t\t\t$this->lStartRec = $_GET[EW_TABLE_START_REC];\n\t\t\t\t$archv_finished->setStartRecordNumber($this->lStartRec);\n\t\t\t} elseif (@$_GET[EW_TABLE_PAGE_NO] <> \"\") {\n\t\t\t\t$this->nPageNo = $_GET[EW_TABLE_PAGE_NO];\n\t\t\t\tif (is_numeric($this->nPageNo)) {\n\t\t\t\t\t$this->lStartRec = ($this->nPageNo-1)*$this->lDisplayRecs+1;\n\t\t\t\t\tif ($this->lStartRec <= 0) {\n\t\t\t\t\t\t$this->lStartRec = 1;\n\t\t\t\t\t} elseif ($this->lStartRec >= intval(($this->lTotalRecs-1)/$this->lDisplayRecs)*$this->lDisplayRecs+1) {\n\t\t\t\t\t\t$this->lStartRec = intval(($this->lTotalRecs-1)/$this->lDisplayRecs)*$this->lDisplayRecs+1;\n\t\t\t\t\t}\n\t\t\t\t\t$archv_finished->setStartRecordNumber($this->lStartRec);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$this->lStartRec = $archv_finished->getStartRecordNumber();\n\n\t\t// Check if correct start record counter\n\t\tif (!is_numeric($this->lStartRec) || $this->lStartRec == \"\") { // Avoid invalid start record counter\n\t\t\t$this->lStartRec = 1; // Reset start record counter\n\t\t\t$archv_finished->setStartRecordNumber($this->lStartRec);\n\t\t} elseif (intval($this->lStartRec) > intval($this->lTotalRecs)) { // Avoid starting record > total records\n\t\t\t$this->lStartRec = intval(($this->lTotalRecs-1)/$this->lDisplayRecs)*$this->lDisplayRecs+1; // Point to last page first record\n\t\t\t$archv_finished->setStartRecordNumber($this->lStartRec);\n\t\t} elseif (($this->lStartRec-1) % $this->lDisplayRecs <> 0) {\n\t\t\t$this->lStartRec = intval(($this->lStartRec-1)/$this->lDisplayRecs)*$this->lDisplayRecs+1; // Point to page boundary\n\t\t\t$archv_finished->setStartRecordNumber($this->lStartRec);\n\t\t}\n\t}", "public function newLine() {\n\t\t$this->_section=0;\n\t\t$this->_lineNumber++;\n\t\t$this->_text[$this->_lineNumber]=array();\n\t\t$this->_text[$this->_lineNumber][0]['text']='';\n\t\t$this->_text[$this->_lineNumber][0]['encoding']='';\n\t\t$this->_text[$this->_lineNumber][0]['font']=$this->_font;\n\t\t$this->_text[$this->_lineNumber][0]['fontSize']=$this->_fontSize;\n\t\t$this->_text[$this->_lineNumber][0]['width']=0;\n\n\t\t\n\t\t$this->_initializeLine();\n\t\t\n\t\t$this->_text[$this->_lineNumber]['alignment']=$this->_text[$this->_lineNumber-1]['alignment'];\n\t\t//add the last cell's height to the auto height if we have an auto-height box.\n\t\tif ($this->isAutoHeight()) {\n\t\t\t$this->_autoHeight+=$this->_text[$this->_lineNumber-1]['height'];\n\t\t}\n\t}", "public function moveToStartOfNextLine() {}", "public function moveToStartOfNextLine() {}", "protected function _saveTry()\n {\n $this->_history[] = $this->_number;\n }", "function SetUpStartRec() {\n\t\tglobal $scholarship_package;\n\t\tif ($this->lDisplayRecs == 0)\n\t\t\treturn;\n\t\tif ($this->IsPageRequest()) { // Validate request\n\t\t\tif (@$_GET[EW_TABLE_START_REC] <> \"\") { // Check for \"start\" parameter\n\t\t\t\t$this->lStartRec = $_GET[EW_TABLE_START_REC];\n\t\t\t\t$scholarship_package->setStartRecordNumber($this->lStartRec);\n\t\t\t} elseif (@$_GET[EW_TABLE_PAGE_NO] <> \"\") {\n\t\t\t\t$this->nPageNo = $_GET[EW_TABLE_PAGE_NO];\n\t\t\t\tif (is_numeric($this->nPageNo)) {\n\t\t\t\t\t$this->lStartRec = ($this->nPageNo-1)*$this->lDisplayRecs+1;\n\t\t\t\t\tif ($this->lStartRec <= 0) {\n\t\t\t\t\t\t$this->lStartRec = 1;\n\t\t\t\t\t} elseif ($this->lStartRec >= intval(($this->lTotalRecs-1)/$this->lDisplayRecs)*$this->lDisplayRecs+1) {\n\t\t\t\t\t\t$this->lStartRec = intval(($this->lTotalRecs-1)/$this->lDisplayRecs)*$this->lDisplayRecs+1;\n\t\t\t\t\t}\n\t\t\t\t\t$scholarship_package->setStartRecordNumber($this->lStartRec);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$this->lStartRec = $scholarship_package->getStartRecordNumber();\n\n\t\t// Check if correct start record counter\n\t\tif (!is_numeric($this->lStartRec) || $this->lStartRec == \"\") { // Avoid invalid start record counter\n\t\t\t$this->lStartRec = 1; // Reset start record counter\n\t\t\t$scholarship_package->setStartRecordNumber($this->lStartRec);\n\t\t} elseif (intval($this->lStartRec) > intval($this->lTotalRecs)) { // Avoid starting record > total records\n\t\t\t$this->lStartRec = intval(($this->lTotalRecs-1)/$this->lDisplayRecs)*$this->lDisplayRecs+1; // Point to last page first record\n\t\t\t$scholarship_package->setStartRecordNumber($this->lStartRec);\n\t\t} elseif (($this->lStartRec-1) % $this->lDisplayRecs <> 0) {\n\t\t\t$this->lStartRec = intval(($this->lStartRec-1)/$this->lDisplayRecs)*$this->lDisplayRecs+1; // Point to page boundary\n\t\t\t$scholarship_package->setStartRecordNumber($this->lStartRec);\n\t\t}\n\t}", "function SetUpStartRec() {\n\t\tglobal $scholarship_package;\n\t\tif ($this->lDisplayRecs == 0)\n\t\t\treturn;\n\t\tif ($this->IsPageRequest()) { // Validate request\n\t\t\tif (@$_GET[EW_TABLE_START_REC] <> \"\") { // Check for \"start\" parameter\n\t\t\t\t$this->lStartRec = $_GET[EW_TABLE_START_REC];\n\t\t\t\t$scholarship_package->setStartRecordNumber($this->lStartRec);\n\t\t\t} elseif (@$_GET[EW_TABLE_PAGE_NO] <> \"\") {\n\t\t\t\t$this->nPageNo = $_GET[EW_TABLE_PAGE_NO];\n\t\t\t\tif (is_numeric($this->nPageNo)) {\n\t\t\t\t\t$this->lStartRec = ($this->nPageNo-1)*$this->lDisplayRecs+1;\n\t\t\t\t\tif ($this->lStartRec <= 0) {\n\t\t\t\t\t\t$this->lStartRec = 1;\n\t\t\t\t\t} elseif ($this->lStartRec >= intval(($this->lTotalRecs-1)/$this->lDisplayRecs)*$this->lDisplayRecs+1) {\n\t\t\t\t\t\t$this->lStartRec = intval(($this->lTotalRecs-1)/$this->lDisplayRecs)*$this->lDisplayRecs+1;\n\t\t\t\t\t}\n\t\t\t\t\t$scholarship_package->setStartRecordNumber($this->lStartRec);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$this->lStartRec = $scholarship_package->getStartRecordNumber();\n\n\t\t// Check if correct start record counter\n\t\tif (!is_numeric($this->lStartRec) || $this->lStartRec == \"\") { // Avoid invalid start record counter\n\t\t\t$this->lStartRec = 1; // Reset start record counter\n\t\t\t$scholarship_package->setStartRecordNumber($this->lStartRec);\n\t\t} elseif (intval($this->lStartRec) > intval($this->lTotalRecs)) { // Avoid starting record > total records\n\t\t\t$this->lStartRec = intval(($this->lTotalRecs-1)/$this->lDisplayRecs)*$this->lDisplayRecs+1; // Point to last page first record\n\t\t\t$scholarship_package->setStartRecordNumber($this->lStartRec);\n\t\t} elseif (($this->lStartRec-1) % $this->lDisplayRecs <> 0) {\n\t\t\t$this->lStartRec = intval(($this->lStartRec-1)/$this->lDisplayRecs)*$this->lDisplayRecs+1; // Point to page boundary\n\t\t\t$scholarship_package->setStartRecordNumber($this->lStartRec);\n\t\t}\n\t}", "public function setLine($line) {\n $this->line = $line;\n }", "public function getLineNumber()\n\t{\n\t\treturn $this->lineNumber;\n\t}", "public function getLine(): int\n {\n return $this->line;\n }", "public function getLine(): int\n {\n return $this->line;\n }", "public function setLocation(FileDescriptor $file, int $line = 0): void;", "function saveLine($a_dbc, $a_sheetID)\n\t{\n\t}", "public function saveStart($dc)\n\t{\n\t\tif($dc->activeRecord->start)\n\t\t{\n\t\t\t\\Database::getInstance()\n\t\t\t\t->prepare('UPDATE tl_workflow_step %s WHERE pid=? AND id!=?')\n\t\t\t\t->set(array('start' => ''))\n\t\t\t\t->execute($dc->activeRecord->pid, $dc->activeRecord->id);\n\t\t}\n\t}", "public function reset_pos() {\n\t\tFile::save( $this->_resetfile, time() , true );\n\n\t\t$this->_summary[ 'is_running' ] = 0;\n\t\tself::save_summary();\n\t}", "public function getStartLine()\n\t{\n\t\treturn null;\n\t}", "public function savePosition() {}", "protected function saveStepPointer()\n {\n if (!$this->listingID) {\n return;\n }\n\n $update = array(\n 'fields' => array('Last_step' => $this->step),\n 'where' => array('ID' => $this->listingID),\n );\n $GLOBALS['rlDb']->update($update, 'listings');\n }", "public function getLineId(): int\n {\n return $this->lineId;\n }", "public function incCurrentPathNumber() {\r\n return ++$this->num_path_current;\r\n }", "function SetUpStartRec() {\n\t\tif ($this->DisplayRecs == 0)\n\t\t\treturn;\n\t\tif ($this->IsPageRequest()) { // Validate request\n\t\t\tif (@$_GET[EW_TABLE_START_REC] <> \"\") { // Check for \"start\" parameter\n\t\t\t\t$this->StartRec = $_GET[EW_TABLE_START_REC];\n\t\t\t\t$this->setStartRecordNumber($this->StartRec);\n\t\t\t} elseif (@$_GET[EW_TABLE_PAGE_NO] <> \"\") {\n\t\t\t\t$PageNo = $_GET[EW_TABLE_PAGE_NO];\n\t\t\t\tif (is_numeric($PageNo)) {\n\t\t\t\t\t$this->StartRec = ($PageNo-1)*$this->DisplayRecs+1;\n\t\t\t\t\tif ($this->StartRec <= 0) {\n\t\t\t\t\t\t$this->StartRec = 1;\n\t\t\t\t\t} elseif ($this->StartRec >= intval(($this->TotalRecs-1)/$this->DisplayRecs)*$this->DisplayRecs+1) {\n\t\t\t\t\t\t$this->StartRec = intval(($this->TotalRecs-1)/$this->DisplayRecs)*$this->DisplayRecs+1;\n\t\t\t\t\t}\n\t\t\t\t\t$this->setStartRecordNumber($this->StartRec);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$this->StartRec = $this->getStartRecordNumber();\n\n\t\t// Check if correct start record counter\n\t\tif (!is_numeric($this->StartRec) || $this->StartRec == \"\") { // Avoid invalid start record counter\n\t\t\t$this->StartRec = 1; // Reset start record counter\n\t\t\t$this->setStartRecordNumber($this->StartRec);\n\t\t} elseif (intval($this->StartRec) > intval($this->TotalRecs)) { // Avoid starting record > total records\n\t\t\t$this->StartRec = intval(($this->TotalRecs-1)/$this->DisplayRecs)*$this->DisplayRecs+1; // Point to last page first record\n\t\t\t$this->setStartRecordNumber($this->StartRec);\n\t\t} elseif (($this->StartRec-1) % $this->DisplayRecs <> 0) {\n\t\t\t$this->StartRec = intval(($this->StartRec-1)/$this->DisplayRecs)*$this->DisplayRecs+1; // Point to page boundary\n\t\t\t$this->setStartRecordNumber($this->StartRec);\n\t\t}\n\t}", "function SetUpStartRec() {\n\t\tif ($this->DisplayRecs == 0)\n\t\t\treturn;\n\t\tif ($this->IsPageRequest()) { // Validate request\n\t\t\tif (@$_GET[EW_TABLE_START_REC] <> \"\") { // Check for \"start\" parameter\n\t\t\t\t$this->StartRec = $_GET[EW_TABLE_START_REC];\n\t\t\t\t$this->setStartRecordNumber($this->StartRec);\n\t\t\t} elseif (@$_GET[EW_TABLE_PAGE_NO] <> \"\") {\n\t\t\t\t$PageNo = $_GET[EW_TABLE_PAGE_NO];\n\t\t\t\tif (is_numeric($PageNo)) {\n\t\t\t\t\t$this->StartRec = ($PageNo-1)*$this->DisplayRecs+1;\n\t\t\t\t\tif ($this->StartRec <= 0) {\n\t\t\t\t\t\t$this->StartRec = 1;\n\t\t\t\t\t} elseif ($this->StartRec >= intval(($this->TotalRecs-1)/$this->DisplayRecs)*$this->DisplayRecs+1) {\n\t\t\t\t\t\t$this->StartRec = intval(($this->TotalRecs-1)/$this->DisplayRecs)*$this->DisplayRecs+1;\n\t\t\t\t\t}\n\t\t\t\t\t$this->setStartRecordNumber($this->StartRec);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$this->StartRec = $this->getStartRecordNumber();\n\n\t\t// Check if correct start record counter\n\t\tif (!is_numeric($this->StartRec) || $this->StartRec == \"\") { // Avoid invalid start record counter\n\t\t\t$this->StartRec = 1; // Reset start record counter\n\t\t\t$this->setStartRecordNumber($this->StartRec);\n\t\t} elseif (intval($this->StartRec) > intval($this->TotalRecs)) { // Avoid starting record > total records\n\t\t\t$this->StartRec = intval(($this->TotalRecs-1)/$this->DisplayRecs)*$this->DisplayRecs+1; // Point to last page first record\n\t\t\t$this->setStartRecordNumber($this->StartRec);\n\t\t} elseif (($this->StartRec-1) % $this->DisplayRecs <> 0) {\n\t\t\t$this->StartRec = intval(($this->StartRec-1)/$this->DisplayRecs)*$this->DisplayRecs+1; // Point to page boundary\n\t\t\t$this->setStartRecordNumber($this->StartRec);\n\t\t}\n\t}", "function SetUpStartRec() {\n\t\tif ($this->DisplayRecs == 0)\n\t\t\treturn;\n\t\tif ($this->IsPageRequest()) { // Validate request\n\t\t\tif (@$_GET[EW_TABLE_START_REC] <> \"\") { // Check for \"start\" parameter\n\t\t\t\t$this->StartRec = $_GET[EW_TABLE_START_REC];\n\t\t\t\t$this->setStartRecordNumber($this->StartRec);\n\t\t\t} elseif (@$_GET[EW_TABLE_PAGE_NO] <> \"\") {\n\t\t\t\t$PageNo = $_GET[EW_TABLE_PAGE_NO];\n\t\t\t\tif (is_numeric($PageNo)) {\n\t\t\t\t\t$this->StartRec = ($PageNo-1)*$this->DisplayRecs+1;\n\t\t\t\t\tif ($this->StartRec <= 0) {\n\t\t\t\t\t\t$this->StartRec = 1;\n\t\t\t\t\t} elseif ($this->StartRec >= intval(($this->TotalRecs-1)/$this->DisplayRecs)*$this->DisplayRecs+1) {\n\t\t\t\t\t\t$this->StartRec = intval(($this->TotalRecs-1)/$this->DisplayRecs)*$this->DisplayRecs+1;\n\t\t\t\t\t}\n\t\t\t\t\t$this->setStartRecordNumber($this->StartRec);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$this->StartRec = $this->getStartRecordNumber();\n\n\t\t// Check if correct start record counter\n\t\tif (!is_numeric($this->StartRec) || $this->StartRec == \"\") { // Avoid invalid start record counter\n\t\t\t$this->StartRec = 1; // Reset start record counter\n\t\t\t$this->setStartRecordNumber($this->StartRec);\n\t\t} elseif (intval($this->StartRec) > intval($this->TotalRecs)) { // Avoid starting record > total records\n\t\t\t$this->StartRec = intval(($this->TotalRecs-1)/$this->DisplayRecs)*$this->DisplayRecs+1; // Point to last page first record\n\t\t\t$this->setStartRecordNumber($this->StartRec);\n\t\t} elseif (($this->StartRec-1) % $this->DisplayRecs <> 0) {\n\t\t\t$this->StartRec = intval(($this->StartRec-1)/$this->DisplayRecs)*$this->DisplayRecs+1; // Point to page boundary\n\t\t\t$this->setStartRecordNumber($this->StartRec);\n\t\t}\n\t}", "function SetUpStartRec() {\n\t\tif ($this->DisplayRecs == 0)\n\t\t\treturn;\n\t\tif ($this->IsPageRequest()) { // Validate request\n\t\t\tif (@$_GET[EW_TABLE_START_REC] <> \"\") { // Check for \"start\" parameter\n\t\t\t\t$this->StartRec = $_GET[EW_TABLE_START_REC];\n\t\t\t\t$this->setStartRecordNumber($this->StartRec);\n\t\t\t} elseif (@$_GET[EW_TABLE_PAGE_NO] <> \"\") {\n\t\t\t\t$PageNo = $_GET[EW_TABLE_PAGE_NO];\n\t\t\t\tif (is_numeric($PageNo)) {\n\t\t\t\t\t$this->StartRec = ($PageNo-1)*$this->DisplayRecs+1;\n\t\t\t\t\tif ($this->StartRec <= 0) {\n\t\t\t\t\t\t$this->StartRec = 1;\n\t\t\t\t\t} elseif ($this->StartRec >= intval(($this->TotalRecs-1)/$this->DisplayRecs)*$this->DisplayRecs+1) {\n\t\t\t\t\t\t$this->StartRec = intval(($this->TotalRecs-1)/$this->DisplayRecs)*$this->DisplayRecs+1;\n\t\t\t\t\t}\n\t\t\t\t\t$this->setStartRecordNumber($this->StartRec);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$this->StartRec = $this->getStartRecordNumber();\n\n\t\t// Check if correct start record counter\n\t\tif (!is_numeric($this->StartRec) || $this->StartRec == \"\") { // Avoid invalid start record counter\n\t\t\t$this->StartRec = 1; // Reset start record counter\n\t\t\t$this->setStartRecordNumber($this->StartRec);\n\t\t} elseif (intval($this->StartRec) > intval($this->TotalRecs)) { // Avoid starting record > total records\n\t\t\t$this->StartRec = intval(($this->TotalRecs-1)/$this->DisplayRecs)*$this->DisplayRecs+1; // Point to last page first record\n\t\t\t$this->setStartRecordNumber($this->StartRec);\n\t\t} elseif (($this->StartRec-1) % $this->DisplayRecs <> 0) {\n\t\t\t$this->StartRec = intval(($this->StartRec-1)/$this->DisplayRecs)*$this->DisplayRecs+1; // Point to page boundary\n\t\t\t$this->setStartRecordNumber($this->StartRec);\n\t\t}\n\t}", "function SetUpStartRec() {\n\t\tif ($this->DisplayRecs == 0)\n\t\t\treturn;\n\t\tif ($this->IsPageRequest()) { // Validate request\n\t\t\tif (@$_GET[EW_TABLE_START_REC] <> \"\") { // Check for \"start\" parameter\n\t\t\t\t$this->StartRec = $_GET[EW_TABLE_START_REC];\n\t\t\t\t$this->setStartRecordNumber($this->StartRec);\n\t\t\t} elseif (@$_GET[EW_TABLE_PAGE_NO] <> \"\") {\n\t\t\t\t$PageNo = $_GET[EW_TABLE_PAGE_NO];\n\t\t\t\tif (is_numeric($PageNo)) {\n\t\t\t\t\t$this->StartRec = ($PageNo-1)*$this->DisplayRecs+1;\n\t\t\t\t\tif ($this->StartRec <= 0) {\n\t\t\t\t\t\t$this->StartRec = 1;\n\t\t\t\t\t} elseif ($this->StartRec >= intval(($this->TotalRecs-1)/$this->DisplayRecs)*$this->DisplayRecs+1) {\n\t\t\t\t\t\t$this->StartRec = intval(($this->TotalRecs-1)/$this->DisplayRecs)*$this->DisplayRecs+1;\n\t\t\t\t\t}\n\t\t\t\t\t$this->setStartRecordNumber($this->StartRec);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$this->StartRec = $this->getStartRecordNumber();\n\n\t\t// Check if correct start record counter\n\t\tif (!is_numeric($this->StartRec) || $this->StartRec == \"\") { // Avoid invalid start record counter\n\t\t\t$this->StartRec = 1; // Reset start record counter\n\t\t\t$this->setStartRecordNumber($this->StartRec);\n\t\t} elseif (intval($this->StartRec) > intval($this->TotalRecs)) { // Avoid starting record > total records\n\t\t\t$this->StartRec = intval(($this->TotalRecs-1)/$this->DisplayRecs)*$this->DisplayRecs+1; // Point to last page first record\n\t\t\t$this->setStartRecordNumber($this->StartRec);\n\t\t} elseif (($this->StartRec-1) % $this->DisplayRecs <> 0) {\n\t\t\t$this->StartRec = intval(($this->StartRec-1)/$this->DisplayRecs)*$this->DisplayRecs+1; // Point to page boundary\n\t\t\t$this->setStartRecordNumber($this->StartRec);\n\t\t}\n\t}", "function SetUpStartRec() {\n\t\tif ($this->DisplayRecs == 0)\n\t\t\treturn;\n\t\tif ($this->IsPageRequest()) { // Validate request\n\t\t\tif (@$_GET[EW_TABLE_START_REC] <> \"\") { // Check for \"start\" parameter\n\t\t\t\t$this->StartRec = $_GET[EW_TABLE_START_REC];\n\t\t\t\t$this->setStartRecordNumber($this->StartRec);\n\t\t\t} elseif (@$_GET[EW_TABLE_PAGE_NO] <> \"\") {\n\t\t\t\t$PageNo = $_GET[EW_TABLE_PAGE_NO];\n\t\t\t\tif (is_numeric($PageNo)) {\n\t\t\t\t\t$this->StartRec = ($PageNo-1)*$this->DisplayRecs+1;\n\t\t\t\t\tif ($this->StartRec <= 0) {\n\t\t\t\t\t\t$this->StartRec = 1;\n\t\t\t\t\t} elseif ($this->StartRec >= intval(($this->TotalRecs-1)/$this->DisplayRecs)*$this->DisplayRecs+1) {\n\t\t\t\t\t\t$this->StartRec = intval(($this->TotalRecs-1)/$this->DisplayRecs)*$this->DisplayRecs+1;\n\t\t\t\t\t}\n\t\t\t\t\t$this->setStartRecordNumber($this->StartRec);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$this->StartRec = $this->getStartRecordNumber();\n\n\t\t// Check if correct start record counter\n\t\tif (!is_numeric($this->StartRec) || $this->StartRec == \"\") { // Avoid invalid start record counter\n\t\t\t$this->StartRec = 1; // Reset start record counter\n\t\t\t$this->setStartRecordNumber($this->StartRec);\n\t\t} elseif (intval($this->StartRec) > intval($this->TotalRecs)) { // Avoid starting record > total records\n\t\t\t$this->StartRec = intval(($this->TotalRecs-1)/$this->DisplayRecs)*$this->DisplayRecs+1; // Point to last page first record\n\t\t\t$this->setStartRecordNumber($this->StartRec);\n\t\t} elseif (($this->StartRec-1) % $this->DisplayRecs <> 0) {\n\t\t\t$this->StartRec = intval(($this->StartRec-1)/$this->DisplayRecs)*$this->DisplayRecs+1; // Point to page boundary\n\t\t\t$this->setStartRecordNumber($this->StartRec);\n\t\t}\n\t}", "function SetUpStartRec() {\n\t\tif ($this->DisplayRecs == 0)\n\t\t\treturn;\n\t\tif ($this->IsPageRequest()) { // Validate request\n\t\t\tif (@$_GET[EW_TABLE_START_REC] <> \"\") { // Check for \"start\" parameter\n\t\t\t\t$this->StartRec = $_GET[EW_TABLE_START_REC];\n\t\t\t\t$this->setStartRecordNumber($this->StartRec);\n\t\t\t} elseif (@$_GET[EW_TABLE_PAGE_NO] <> \"\") {\n\t\t\t\t$PageNo = $_GET[EW_TABLE_PAGE_NO];\n\t\t\t\tif (is_numeric($PageNo)) {\n\t\t\t\t\t$this->StartRec = ($PageNo-1)*$this->DisplayRecs+1;\n\t\t\t\t\tif ($this->StartRec <= 0) {\n\t\t\t\t\t\t$this->StartRec = 1;\n\t\t\t\t\t} elseif ($this->StartRec >= intval(($this->TotalRecs-1)/$this->DisplayRecs)*$this->DisplayRecs+1) {\n\t\t\t\t\t\t$this->StartRec = intval(($this->TotalRecs-1)/$this->DisplayRecs)*$this->DisplayRecs+1;\n\t\t\t\t\t}\n\t\t\t\t\t$this->setStartRecordNumber($this->StartRec);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$this->StartRec = $this->getStartRecordNumber();\n\n\t\t// Check if correct start record counter\n\t\tif (!is_numeric($this->StartRec) || $this->StartRec == \"\") { // Avoid invalid start record counter\n\t\t\t$this->StartRec = 1; // Reset start record counter\n\t\t\t$this->setStartRecordNumber($this->StartRec);\n\t\t} elseif (intval($this->StartRec) > intval($this->TotalRecs)) { // Avoid starting record > total records\n\t\t\t$this->StartRec = intval(($this->TotalRecs-1)/$this->DisplayRecs)*$this->DisplayRecs+1; // Point to last page first record\n\t\t\t$this->setStartRecordNumber($this->StartRec);\n\t\t} elseif (($this->StartRec-1) % $this->DisplayRecs <> 0) {\n\t\t\t$this->StartRec = intval(($this->StartRec-1)/$this->DisplayRecs)*$this->DisplayRecs+1; // Point to page boundary\n\t\t\t$this->setStartRecordNumber($this->StartRec);\n\t\t}\n\t}", "function SetUpStartRec() {\n\t\tglobal $t_tinbai_mainsite;\n\t\tif ($this->lDisplayRecs == 0)\n\t\t\treturn;\n\t\tif ($this->IsPageRequest()) { // Validate request\n\t\t\tif (@$_GET[EW_TABLE_START_REC] <> \"\") { // Check for \"start\" parameter\n\t\t\t\t$this->lStartRec = $_GET[EW_TABLE_START_REC];\n\t\t\t\t$t_tinbai_mainsite->setStartRecordNumber($this->lStartRec);\n\t\t\t} elseif (@$_GET[EW_TABLE_PAGE_NO] <> \"\") {\n\t\t\t\t$this->nPageNo = $_GET[EW_TABLE_PAGE_NO];\n\t\t\t\tif (is_numeric($this->nPageNo)) {\n\t\t\t\t\t$this->lStartRec = ($this->nPageNo-1)*$this->lDisplayRecs+1;\n\t\t\t\t\tif ($this->lStartRec <= 0) {\n\t\t\t\t\t\t$this->lStartRec = 1;\n\t\t\t\t\t} elseif ($this->lStartRec >= intval(($this->lTotalRecs-1)/$this->lDisplayRecs)*$this->lDisplayRecs+1) {\n\t\t\t\t\t\t$this->lStartRec = intval(($this->lTotalRecs-1)/$this->lDisplayRecs)*$this->lDisplayRecs+1;\n\t\t\t\t\t}\n\t\t\t\t\t$t_tinbai_mainsite->setStartRecordNumber($this->lStartRec);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$this->lStartRec = $t_tinbai_mainsite->getStartRecordNumber();\n\n\t\t// Check if correct start record counter\n\t\tif (!is_numeric($this->lStartRec) || $this->lStartRec == \"\") { // Avoid invalid start record counter\n\t\t\t$this->lStartRec = 1; // Reset start record counter\n\t\t\t$t_tinbai_mainsite->setStartRecordNumber($this->lStartRec);\n\t\t} elseif (intval($this->lStartRec) > intval($this->lTotalRecs)) { // Avoid starting record > total records\n\t\t\t$this->lStartRec = intval(($this->lTotalRecs-1)/$this->lDisplayRecs)*$this->lDisplayRecs+1; // Point to last page first record\n\t\t\t$t_tinbai_mainsite->setStartRecordNumber($this->lStartRec);\n\t\t} elseif (($this->lStartRec-1) % $this->lDisplayRecs <> 0) {\n\t\t\t$this->lStartRec = intval(($this->lStartRec-1)/$this->lDisplayRecs)*$this->lDisplayRecs+1; // Point to page boundary\n\t\t\t$t_tinbai_mainsite->setStartRecordNumber($this->lStartRec);\n\t\t}\n\t}", "protected function get_line() { \n\t\t$line = $this->lines[$this->cursor]; \n\t\t$this->cursor++; return $line; \n\t}", "function SetUpStartRec() {\r\n\t\tif ($this->DisplayRecs == 0)\r\n\t\t\treturn;\r\n\t\tif ($this->IsPageRequest()) { // Validate request\r\n\t\t\tif (@$_GET[EW_TABLE_START_REC] <> \"\") { // Check for \"start\" parameter\r\n\t\t\t\t$this->StartRec = $_GET[EW_TABLE_START_REC];\r\n\t\t\t\t$this->setStartRecordNumber($this->StartRec);\r\n\t\t\t} elseif (@$_GET[EW_TABLE_PAGE_NO] <> \"\") {\r\n\t\t\t\t$PageNo = $_GET[EW_TABLE_PAGE_NO];\r\n\t\t\t\tif (is_numeric($PageNo)) {\r\n\t\t\t\t\t$this->StartRec = ($PageNo-1)*$this->DisplayRecs+1;\r\n\t\t\t\t\tif ($this->StartRec <= 0) {\r\n\t\t\t\t\t\t$this->StartRec = 1;\r\n\t\t\t\t\t} elseif ($this->StartRec >= intval(($this->TotalRecs-1)/$this->DisplayRecs)*$this->DisplayRecs+1) {\r\n\t\t\t\t\t\t$this->StartRec = intval(($this->TotalRecs-1)/$this->DisplayRecs)*$this->DisplayRecs+1;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t$this->setStartRecordNumber($this->StartRec);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t$this->StartRec = $this->getStartRecordNumber();\r\n\r\n\t\t// Check if correct start record counter\r\n\t\tif (!is_numeric($this->StartRec) || $this->StartRec == \"\") { // Avoid invalid start record counter\r\n\t\t\t$this->StartRec = 1; // Reset start record counter\r\n\t\t\t$this->setStartRecordNumber($this->StartRec);\r\n\t\t} elseif (intval($this->StartRec) > intval($this->TotalRecs)) { // Avoid starting record > total records\r\n\t\t\t$this->StartRec = intval(($this->TotalRecs-1)/$this->DisplayRecs)*$this->DisplayRecs+1; // Point to last page first record\r\n\t\t\t$this->setStartRecordNumber($this->StartRec);\r\n\t\t} elseif (($this->StartRec-1) % $this->DisplayRecs <> 0) {\r\n\t\t\t$this->StartRec = intval(($this->StartRec-1)/$this->DisplayRecs)*$this->DisplayRecs+1; // Point to page boundary\r\n\t\t\t$this->setStartRecordNumber($this->StartRec);\r\n\t\t}\r\n\t}", "function SetUpStartRec() {\r\n\t\tif ($this->DisplayRecs == 0)\r\n\t\t\treturn;\r\n\t\tif ($this->IsPageRequest()) { // Validate request\r\n\t\t\tif (@$_GET[EW_TABLE_START_REC] <> \"\") { // Check for \"start\" parameter\r\n\t\t\t\t$this->StartRec = $_GET[EW_TABLE_START_REC];\r\n\t\t\t\t$this->setStartRecordNumber($this->StartRec);\r\n\t\t\t} elseif (@$_GET[EW_TABLE_PAGE_NO] <> \"\") {\r\n\t\t\t\t$PageNo = $_GET[EW_TABLE_PAGE_NO];\r\n\t\t\t\tif (is_numeric($PageNo)) {\r\n\t\t\t\t\t$this->StartRec = ($PageNo-1)*$this->DisplayRecs+1;\r\n\t\t\t\t\tif ($this->StartRec <= 0) {\r\n\t\t\t\t\t\t$this->StartRec = 1;\r\n\t\t\t\t\t} elseif ($this->StartRec >= intval(($this->TotalRecs-1)/$this->DisplayRecs)*$this->DisplayRecs+1) {\r\n\t\t\t\t\t\t$this->StartRec = intval(($this->TotalRecs-1)/$this->DisplayRecs)*$this->DisplayRecs+1;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t$this->setStartRecordNumber($this->StartRec);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t$this->StartRec = $this->getStartRecordNumber();\r\n\r\n\t\t// Check if correct start record counter\r\n\t\tif (!is_numeric($this->StartRec) || $this->StartRec == \"\") { // Avoid invalid start record counter\r\n\t\t\t$this->StartRec = 1; // Reset start record counter\r\n\t\t\t$this->setStartRecordNumber($this->StartRec);\r\n\t\t} elseif (intval($this->StartRec) > intval($this->TotalRecs)) { // Avoid starting record > total records\r\n\t\t\t$this->StartRec = intval(($this->TotalRecs-1)/$this->DisplayRecs)*$this->DisplayRecs+1; // Point to last page first record\r\n\t\t\t$this->setStartRecordNumber($this->StartRec);\r\n\t\t} elseif (($this->StartRec-1) % $this->DisplayRecs <> 0) {\r\n\t\t\t$this->StartRec = intval(($this->StartRec-1)/$this->DisplayRecs)*$this->DisplayRecs+1; // Point to page boundary\r\n\t\t\t$this->setStartRecordNumber($this->StartRec);\r\n\t\t}\r\n\t}", "function SetUpStartRec() {\r\n\t\tif ($this->DisplayRecs == 0)\r\n\t\t\treturn;\r\n\t\tif ($this->IsPageRequest()) { // Validate request\r\n\t\t\tif (@$_GET[EW_TABLE_START_REC] <> \"\") { // Check for \"start\" parameter\r\n\t\t\t\t$this->StartRec = $_GET[EW_TABLE_START_REC];\r\n\t\t\t\t$this->setStartRecordNumber($this->StartRec);\r\n\t\t\t} elseif (@$_GET[EW_TABLE_PAGE_NO] <> \"\") {\r\n\t\t\t\t$PageNo = $_GET[EW_TABLE_PAGE_NO];\r\n\t\t\t\tif (is_numeric($PageNo)) {\r\n\t\t\t\t\t$this->StartRec = ($PageNo-1)*$this->DisplayRecs+1;\r\n\t\t\t\t\tif ($this->StartRec <= 0) {\r\n\t\t\t\t\t\t$this->StartRec = 1;\r\n\t\t\t\t\t} elseif ($this->StartRec >= intval(($this->TotalRecs-1)/$this->DisplayRecs)*$this->DisplayRecs+1) {\r\n\t\t\t\t\t\t$this->StartRec = intval(($this->TotalRecs-1)/$this->DisplayRecs)*$this->DisplayRecs+1;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t$this->setStartRecordNumber($this->StartRec);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t$this->StartRec = $this->getStartRecordNumber();\r\n\r\n\t\t// Check if correct start record counter\r\n\t\tif (!is_numeric($this->StartRec) || $this->StartRec == \"\") { // Avoid invalid start record counter\r\n\t\t\t$this->StartRec = 1; // Reset start record counter\r\n\t\t\t$this->setStartRecordNumber($this->StartRec);\r\n\t\t} elseif (intval($this->StartRec) > intval($this->TotalRecs)) { // Avoid starting record > total records\r\n\t\t\t$this->StartRec = intval(($this->TotalRecs-1)/$this->DisplayRecs)*$this->DisplayRecs+1; // Point to last page first record\r\n\t\t\t$this->setStartRecordNumber($this->StartRec);\r\n\t\t} elseif (($this->StartRec-1) % $this->DisplayRecs <> 0) {\r\n\t\t\t$this->StartRec = intval(($this->StartRec-1)/$this->DisplayRecs)*$this->DisplayRecs+1; // Point to page boundary\r\n\t\t\t$this->setStartRecordNumber($this->StartRec);\r\n\t\t}\r\n\t}", "function SetUpStartRec() {\r\n\t\tif ($this->DisplayRecs == 0)\r\n\t\t\treturn;\r\n\t\tif ($this->IsPageRequest()) { // Validate request\r\n\t\t\tif (@$_GET[EW_TABLE_START_REC] <> \"\") { // Check for \"start\" parameter\r\n\t\t\t\t$this->StartRec = $_GET[EW_TABLE_START_REC];\r\n\t\t\t\t$this->setStartRecordNumber($this->StartRec);\r\n\t\t\t} elseif (@$_GET[EW_TABLE_PAGE_NO] <> \"\") {\r\n\t\t\t\t$PageNo = $_GET[EW_TABLE_PAGE_NO];\r\n\t\t\t\tif (is_numeric($PageNo)) {\r\n\t\t\t\t\t$this->StartRec = ($PageNo-1)*$this->DisplayRecs+1;\r\n\t\t\t\t\tif ($this->StartRec <= 0) {\r\n\t\t\t\t\t\t$this->StartRec = 1;\r\n\t\t\t\t\t} elseif ($this->StartRec >= intval(($this->TotalRecs-1)/$this->DisplayRecs)*$this->DisplayRecs+1) {\r\n\t\t\t\t\t\t$this->StartRec = intval(($this->TotalRecs-1)/$this->DisplayRecs)*$this->DisplayRecs+1;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t$this->setStartRecordNumber($this->StartRec);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t$this->StartRec = $this->getStartRecordNumber();\r\n\r\n\t\t// Check if correct start record counter\r\n\t\tif (!is_numeric($this->StartRec) || $this->StartRec == \"\") { // Avoid invalid start record counter\r\n\t\t\t$this->StartRec = 1; // Reset start record counter\r\n\t\t\t$this->setStartRecordNumber($this->StartRec);\r\n\t\t} elseif (intval($this->StartRec) > intval($this->TotalRecs)) { // Avoid starting record > total records\r\n\t\t\t$this->StartRec = intval(($this->TotalRecs-1)/$this->DisplayRecs)*$this->DisplayRecs+1; // Point to last page first record\r\n\t\t\t$this->setStartRecordNumber($this->StartRec);\r\n\t\t} elseif (($this->StartRec-1) % $this->DisplayRecs <> 0) {\r\n\t\t\t$this->StartRec = intval(($this->StartRec-1)/$this->DisplayRecs)*$this->DisplayRecs+1; // Point to page boundary\r\n\t\t\t$this->setStartRecordNumber($this->StartRec);\r\n\t\t}\r\n\t}", "function SetUpStartRec() {\r\n\t\tif ($this->DisplayRecs == 0)\r\n\t\t\treturn;\r\n\t\tif ($this->IsPageRequest()) { // Validate request\r\n\t\t\tif (@$_GET[EW_TABLE_START_REC] <> \"\") { // Check for \"start\" parameter\r\n\t\t\t\t$this->StartRec = $_GET[EW_TABLE_START_REC];\r\n\t\t\t\t$this->setStartRecordNumber($this->StartRec);\r\n\t\t\t} elseif (@$_GET[EW_TABLE_PAGE_NO] <> \"\") {\r\n\t\t\t\t$PageNo = $_GET[EW_TABLE_PAGE_NO];\r\n\t\t\t\tif (is_numeric($PageNo)) {\r\n\t\t\t\t\t$this->StartRec = ($PageNo-1)*$this->DisplayRecs+1;\r\n\t\t\t\t\tif ($this->StartRec <= 0) {\r\n\t\t\t\t\t\t$this->StartRec = 1;\r\n\t\t\t\t\t} elseif ($this->StartRec >= intval(($this->TotalRecs-1)/$this->DisplayRecs)*$this->DisplayRecs+1) {\r\n\t\t\t\t\t\t$this->StartRec = intval(($this->TotalRecs-1)/$this->DisplayRecs)*$this->DisplayRecs+1;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t$this->setStartRecordNumber($this->StartRec);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t$this->StartRec = $this->getStartRecordNumber();\r\n\r\n\t\t// Check if correct start record counter\r\n\t\tif (!is_numeric($this->StartRec) || $this->StartRec == \"\") { // Avoid invalid start record counter\r\n\t\t\t$this->StartRec = 1; // Reset start record counter\r\n\t\t\t$this->setStartRecordNumber($this->StartRec);\r\n\t\t} elseif (intval($this->StartRec) > intval($this->TotalRecs)) { // Avoid starting record > total records\r\n\t\t\t$this->StartRec = intval(($this->TotalRecs-1)/$this->DisplayRecs)*$this->DisplayRecs+1; // Point to last page first record\r\n\t\t\t$this->setStartRecordNumber($this->StartRec);\r\n\t\t} elseif (($this->StartRec-1) % $this->DisplayRecs <> 0) {\r\n\t\t\t$this->StartRec = intval(($this->StartRec-1)/$this->DisplayRecs)*$this->DisplayRecs+1; // Point to page boundary\r\n\t\t\t$this->setStartRecordNumber($this->StartRec);\r\n\t\t}\r\n\t}", "function SetUpStartRec() {\n\t\tglobal $planilla;\n\t\tif ($this->lDisplayRecs == 0)\n\t\t\treturn;\n\t\tif ($this->IsPageRequest()) { // Validate request\t\t\t\n\t\t\tif (@$_GET[EW_TABLE_START_REC] <> \"\") { // Check for \"start\" parameter\n\t\t\t\t$this->lStartRec = $_GET[EW_TABLE_START_REC];\n\t\t\t\t$planilla->setStartRecordNumber($this->lStartRec);\n\t\t\t} elseif (@$_GET[EW_TABLE_PAGE_NO] <> \"\") {\n\t\t\t\t$this->nPageNo = $_GET[EW_TABLE_PAGE_NO];\n\t\t\t\tif (is_numeric($this->nPageNo)) {\n\t\t\t\t\t$this->lStartRec = ($this->nPageNo-1)*$this->lDisplayRecs+1;\n\t\t\t\t\tif ($this->lStartRec <= 0) {\n\t\t\t\t\t\t$this->lStartRec = 1;\n\t\t\t\t\t} elseif ($this->lStartRec >= intval(($this->lTotalRecs-1)/$this->lDisplayRecs)*$this->lDisplayRecs+1) {\n\t\t\t\t\t\t$this->lStartRec = intval(($this->lTotalRecs-1)/$this->lDisplayRecs)*$this->lDisplayRecs+1;\n\t\t\t\t\t}\n\t\t\t\t\t$planilla->setStartRecordNumber($this->lStartRec);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$this->lStartRec = $planilla->getStartRecordNumber();\n\n\t\t// Check if correct start record counter\n\t\tif (!is_numeric($this->lStartRec) || $this->lStartRec == \"\") { // Avoid invalid start record counter\n\t\t\t$this->lStartRec = 1; // Reset start record counter\n\t\t\t$planilla->setStartRecordNumber($this->lStartRec);\n\t\t} elseif (intval($this->lStartRec) > intval($this->lTotalRecs)) { // Avoid starting record > total records\n\t\t\t$this->lStartRec = intval(($this->lTotalRecs-1)/$this->lDisplayRecs)*$this->lDisplayRecs+1; // Point to last page first record\n\t\t\t$planilla->setStartRecordNumber($this->lStartRec);\n\t\t} elseif (($this->lStartRec-1) % $this->lDisplayRecs <> 0) {\n\t\t\t$this->lStartRec = intval(($this->lStartRec-1)/$this->lDisplayRecs)*$this->lDisplayRecs+1; // Point to page boundary\n\t\t\t$planilla->setStartRecordNumber($this->lStartRec);\n\t\t}\n\t}", "public function getCurrentLine()\n {\n return $this->lineno;\n }", "function SetUpStartRec() {\n\t\tglobal $patient_detail;\n\t\tif ($this->lDisplayRecs == 0)\n\t\t\treturn;\n\t\tif ($this->IsPageRequest()) { // Validate request\t\t\t\n\t\t\tif (@$_GET[EW_TABLE_START_REC] <> \"\") { // Check for \"start\" parameter\n\t\t\t\t$this->lStartRec = $_GET[EW_TABLE_START_REC];\n\t\t\t\t$patient_detail->setStartRecordNumber($this->lStartRec);\n\t\t\t} elseif (@$_GET[EW_TABLE_PAGE_NO] <> \"\") {\n\t\t\t\t$this->nPageNo = $_GET[EW_TABLE_PAGE_NO];\n\t\t\t\tif (is_numeric($this->nPageNo)) {\n\t\t\t\t\t$this->lStartRec = ($this->nPageNo-1)*$this->lDisplayRecs+1;\n\t\t\t\t\tif ($this->lStartRec <= 0) {\n\t\t\t\t\t\t$this->lStartRec = 1;\n\t\t\t\t\t} elseif ($this->lStartRec >= intval(($this->lTotalRecs-1)/$this->lDisplayRecs)*$this->lDisplayRecs+1) {\n\t\t\t\t\t\t$this->lStartRec = intval(($this->lTotalRecs-1)/$this->lDisplayRecs)*$this->lDisplayRecs+1;\n\t\t\t\t\t}\n\t\t\t\t\t$patient_detail->setStartRecordNumber($this->lStartRec);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$this->lStartRec = $patient_detail->getStartRecordNumber();\n\n\t\t// Check if correct start record counter\n\t\tif (!is_numeric($this->lStartRec) || $this->lStartRec == \"\") { // Avoid invalid start record counter\n\t\t\t$this->lStartRec = 1; // Reset start record counter\n\t\t\t$patient_detail->setStartRecordNumber($this->lStartRec);\n\t\t} elseif (intval($this->lStartRec) > intval($this->lTotalRecs)) { // Avoid starting record > total records\n\t\t\t$this->lStartRec = intval(($this->lTotalRecs-1)/$this->lDisplayRecs)*$this->lDisplayRecs+1; // Point to last page first record\n\t\t\t$patient_detail->setStartRecordNumber($this->lStartRec);\n\t\t} elseif (($this->lStartRec-1) % $this->lDisplayRecs <> 0) {\n\t\t\t$this->lStartRec = intval(($this->lStartRec-1)/$this->lDisplayRecs)*$this->lDisplayRecs+1; // Point to page boundary\n\t\t\t$patient_detail->setStartRecordNumber($this->lStartRec);\n\t\t}\n\t}", "public function save()\n {\n $this->savePayment();\n \n foreach ($this->paymentLines as $line) {\n $line->save($this->payId);\n }\n \n return $this->payId;\n }", "function SetupStartRec() {\n\t\tif ($this->DisplayRecs == 0)\n\t\t\treturn;\n\t\tif ($this->IsPageRequest()) { // Validate request\n\t\t\tif (@$_GET[EW_TABLE_START_REC] <> \"\") { // Check for \"start\" parameter\n\t\t\t\t$this->StartRec = $_GET[EW_TABLE_START_REC];\n\t\t\t\t$this->setStartRecordNumber($this->StartRec);\n\t\t\t} elseif (@$_GET[EW_TABLE_PAGE_NO] <> \"\") {\n\t\t\t\t$PageNo = $_GET[EW_TABLE_PAGE_NO];\n\t\t\t\tif (is_numeric($PageNo)) {\n\t\t\t\t\t$this->StartRec = ($PageNo-1)*$this->DisplayRecs+1;\n\t\t\t\t\tif ($this->StartRec <= 0) {\n\t\t\t\t\t\t$this->StartRec = 1;\n\t\t\t\t\t} elseif ($this->StartRec >= intval(($this->TotalRecs-1)/$this->DisplayRecs)*$this->DisplayRecs+1) {\n\t\t\t\t\t\t$this->StartRec = intval(($this->TotalRecs-1)/$this->DisplayRecs)*$this->DisplayRecs+1;\n\t\t\t\t\t}\n\t\t\t\t\t$this->setStartRecordNumber($this->StartRec);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$this->StartRec = $this->getStartRecordNumber();\n\n\t\t// Check if correct start record counter\n\t\tif (!is_numeric($this->StartRec) || $this->StartRec == \"\") { // Avoid invalid start record counter\n\t\t\t$this->StartRec = 1; // Reset start record counter\n\t\t\t$this->setStartRecordNumber($this->StartRec);\n\t\t} elseif (intval($this->StartRec) > intval($this->TotalRecs)) { // Avoid starting record > total records\n\t\t\t$this->StartRec = intval(($this->TotalRecs-1)/$this->DisplayRecs)*$this->DisplayRecs+1; // Point to last page first record\n\t\t\t$this->setStartRecordNumber($this->StartRec);\n\t\t} elseif (($this->StartRec-1) % $this->DisplayRecs <> 0) {\n\t\t\t$this->StartRec = intval(($this->StartRec-1)/$this->DisplayRecs)*$this->DisplayRecs+1; // Point to page boundary\n\t\t\t$this->setStartRecordNumber($this->StartRec);\n\t\t}\n\t}", "function SetupStartRec() {\n\t\tif ($this->DisplayRecs == 0)\n\t\t\treturn;\n\t\tif ($this->IsPageRequest()) { // Validate request\n\t\t\tif (@$_GET[EW_TABLE_START_REC] <> \"\") { // Check for \"start\" parameter\n\t\t\t\t$this->StartRec = $_GET[EW_TABLE_START_REC];\n\t\t\t\t$this->setStartRecordNumber($this->StartRec);\n\t\t\t} elseif (@$_GET[EW_TABLE_PAGE_NO] <> \"\") {\n\t\t\t\t$PageNo = $_GET[EW_TABLE_PAGE_NO];\n\t\t\t\tif (is_numeric($PageNo)) {\n\t\t\t\t\t$this->StartRec = ($PageNo-1)*$this->DisplayRecs+1;\n\t\t\t\t\tif ($this->StartRec <= 0) {\n\t\t\t\t\t\t$this->StartRec = 1;\n\t\t\t\t\t} elseif ($this->StartRec >= intval(($this->TotalRecs-1)/$this->DisplayRecs)*$this->DisplayRecs+1) {\n\t\t\t\t\t\t$this->StartRec = intval(($this->TotalRecs-1)/$this->DisplayRecs)*$this->DisplayRecs+1;\n\t\t\t\t\t}\n\t\t\t\t\t$this->setStartRecordNumber($this->StartRec);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$this->StartRec = $this->getStartRecordNumber();\n\n\t\t// Check if correct start record counter\n\t\tif (!is_numeric($this->StartRec) || $this->StartRec == \"\") { // Avoid invalid start record counter\n\t\t\t$this->StartRec = 1; // Reset start record counter\n\t\t\t$this->setStartRecordNumber($this->StartRec);\n\t\t} elseif (intval($this->StartRec) > intval($this->TotalRecs)) { // Avoid starting record > total records\n\t\t\t$this->StartRec = intval(($this->TotalRecs-1)/$this->DisplayRecs)*$this->DisplayRecs+1; // Point to last page first record\n\t\t\t$this->setStartRecordNumber($this->StartRec);\n\t\t} elseif (($this->StartRec-1) % $this->DisplayRecs <> 0) {\n\t\t\t$this->StartRec = intval(($this->StartRec-1)/$this->DisplayRecs)*$this->DisplayRecs+1; // Point to page boundary\n\t\t\t$this->setStartRecordNumber($this->StartRec);\n\t\t}\n\t}", "function SetupStartRec() {\n\t\tif ($this->DisplayRecs == 0)\n\t\t\treturn;\n\t\tif ($this->IsPageRequest()) { // Validate request\n\t\t\tif (@$_GET[EW_TABLE_START_REC] <> \"\") { // Check for \"start\" parameter\n\t\t\t\t$this->StartRec = $_GET[EW_TABLE_START_REC];\n\t\t\t\t$this->setStartRecordNumber($this->StartRec);\n\t\t\t} elseif (@$_GET[EW_TABLE_PAGE_NO] <> \"\") {\n\t\t\t\t$PageNo = $_GET[EW_TABLE_PAGE_NO];\n\t\t\t\tif (is_numeric($PageNo)) {\n\t\t\t\t\t$this->StartRec = ($PageNo-1)*$this->DisplayRecs+1;\n\t\t\t\t\tif ($this->StartRec <= 0) {\n\t\t\t\t\t\t$this->StartRec = 1;\n\t\t\t\t\t} elseif ($this->StartRec >= intval(($this->TotalRecs-1)/$this->DisplayRecs)*$this->DisplayRecs+1) {\n\t\t\t\t\t\t$this->StartRec = intval(($this->TotalRecs-1)/$this->DisplayRecs)*$this->DisplayRecs+1;\n\t\t\t\t\t}\n\t\t\t\t\t$this->setStartRecordNumber($this->StartRec);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$this->StartRec = $this->getStartRecordNumber();\n\n\t\t// Check if correct start record counter\n\t\tif (!is_numeric($this->StartRec) || $this->StartRec == \"\") { // Avoid invalid start record counter\n\t\t\t$this->StartRec = 1; // Reset start record counter\n\t\t\t$this->setStartRecordNumber($this->StartRec);\n\t\t} elseif (intval($this->StartRec) > intval($this->TotalRecs)) { // Avoid starting record > total records\n\t\t\t$this->StartRec = intval(($this->TotalRecs-1)/$this->DisplayRecs)*$this->DisplayRecs+1; // Point to last page first record\n\t\t\t$this->setStartRecordNumber($this->StartRec);\n\t\t} elseif (($this->StartRec-1) % $this->DisplayRecs <> 0) {\n\t\t\t$this->StartRec = intval(($this->StartRec-1)/$this->DisplayRecs)*$this->DisplayRecs+1; // Point to page boundary\n\t\t\t$this->setStartRecordNumber($this->StartRec);\n\t\t}\n\t}", "function SetupStartRec() {\n\t\tif ($this->DisplayRecs == 0)\n\t\t\treturn;\n\t\tif ($this->IsPageRequest()) { // Validate request\n\t\t\tif (@$_GET[EW_TABLE_START_REC] <> \"\") { // Check for \"start\" parameter\n\t\t\t\t$this->StartRec = $_GET[EW_TABLE_START_REC];\n\t\t\t\t$this->setStartRecordNumber($this->StartRec);\n\t\t\t} elseif (@$_GET[EW_TABLE_PAGE_NO] <> \"\") {\n\t\t\t\t$PageNo = $_GET[EW_TABLE_PAGE_NO];\n\t\t\t\tif (is_numeric($PageNo)) {\n\t\t\t\t\t$this->StartRec = ($PageNo-1)*$this->DisplayRecs+1;\n\t\t\t\t\tif ($this->StartRec <= 0) {\n\t\t\t\t\t\t$this->StartRec = 1;\n\t\t\t\t\t} elseif ($this->StartRec >= intval(($this->TotalRecs-1)/$this->DisplayRecs)*$this->DisplayRecs+1) {\n\t\t\t\t\t\t$this->StartRec = intval(($this->TotalRecs-1)/$this->DisplayRecs)*$this->DisplayRecs+1;\n\t\t\t\t\t}\n\t\t\t\t\t$this->setStartRecordNumber($this->StartRec);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$this->StartRec = $this->getStartRecordNumber();\n\n\t\t// Check if correct start record counter\n\t\tif (!is_numeric($this->StartRec) || $this->StartRec == \"\") { // Avoid invalid start record counter\n\t\t\t$this->StartRec = 1; // Reset start record counter\n\t\t\t$this->setStartRecordNumber($this->StartRec);\n\t\t} elseif (intval($this->StartRec) > intval($this->TotalRecs)) { // Avoid starting record > total records\n\t\t\t$this->StartRec = intval(($this->TotalRecs-1)/$this->DisplayRecs)*$this->DisplayRecs+1; // Point to last page first record\n\t\t\t$this->setStartRecordNumber($this->StartRec);\n\t\t} elseif (($this->StartRec-1) % $this->DisplayRecs <> 0) {\n\t\t\t$this->StartRec = intval(($this->StartRec-1)/$this->DisplayRecs)*$this->DisplayRecs+1; // Point to page boundary\n\t\t\t$this->setStartRecordNumber($this->StartRec);\n\t\t}\n\t}", "function SetupStartRec() {\n\t\tif ($this->DisplayRecs == 0)\n\t\t\treturn;\n\t\tif ($this->IsPageRequest()) { // Validate request\n\t\t\tif (@$_GET[EW_TABLE_START_REC] <> \"\") { // Check for \"start\" parameter\n\t\t\t\t$this->StartRec = $_GET[EW_TABLE_START_REC];\n\t\t\t\t$this->setStartRecordNumber($this->StartRec);\n\t\t\t} elseif (@$_GET[EW_TABLE_PAGE_NO] <> \"\") {\n\t\t\t\t$PageNo = $_GET[EW_TABLE_PAGE_NO];\n\t\t\t\tif (is_numeric($PageNo)) {\n\t\t\t\t\t$this->StartRec = ($PageNo-1)*$this->DisplayRecs+1;\n\t\t\t\t\tif ($this->StartRec <= 0) {\n\t\t\t\t\t\t$this->StartRec = 1;\n\t\t\t\t\t} elseif ($this->StartRec >= intval(($this->TotalRecs-1)/$this->DisplayRecs)*$this->DisplayRecs+1) {\n\t\t\t\t\t\t$this->StartRec = intval(($this->TotalRecs-1)/$this->DisplayRecs)*$this->DisplayRecs+1;\n\t\t\t\t\t}\n\t\t\t\t\t$this->setStartRecordNumber($this->StartRec);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$this->StartRec = $this->getStartRecordNumber();\n\n\t\t// Check if correct start record counter\n\t\tif (!is_numeric($this->StartRec) || $this->StartRec == \"\") { // Avoid invalid start record counter\n\t\t\t$this->StartRec = 1; // Reset start record counter\n\t\t\t$this->setStartRecordNumber($this->StartRec);\n\t\t} elseif (intval($this->StartRec) > intval($this->TotalRecs)) { // Avoid starting record > total records\n\t\t\t$this->StartRec = intval(($this->TotalRecs-1)/$this->DisplayRecs)*$this->DisplayRecs+1; // Point to last page first record\n\t\t\t$this->setStartRecordNumber($this->StartRec);\n\t\t} elseif (($this->StartRec-1) % $this->DisplayRecs <> 0) {\n\t\t\t$this->StartRec = intval(($this->StartRec-1)/$this->DisplayRecs)*$this->DisplayRecs+1; // Point to page boundary\n\t\t\t$this->setStartRecordNumber($this->StartRec);\n\t\t}\n\t}", "function SetUpStartRec() {\r\n\t\tglobal $rekeningju;\r\n\t\tif ($this->DisplayRecs == 0)\r\n\t\t\treturn;\r\n\t\tif ($this->IsPageRequest()) { // Validate request\r\n\t\t\tif (@$_GET[EW_TABLE_START_REC] <> \"\") { // Check for \"start\" parameter\r\n\t\t\t\t$this->StartRec = $_GET[EW_TABLE_START_REC];\r\n\t\t\t\t$rekeningju->setStartRecordNumber($this->StartRec);\r\n\t\t\t} elseif (@$_GET[EW_TABLE_PAGE_NO] <> \"\") {\r\n\t\t\t\t$PageNo = $_GET[EW_TABLE_PAGE_NO];\r\n\t\t\t\tif (is_numeric($PageNo)) {\r\n\t\t\t\t\t$this->StartRec = ($PageNo-1)*$this->DisplayRecs+1;\r\n\t\t\t\t\tif ($this->StartRec <= 0) {\r\n\t\t\t\t\t\t$this->StartRec = 1;\r\n\t\t\t\t\t} elseif ($this->StartRec >= intval(($this->TotalRecs-1)/$this->DisplayRecs)*$this->DisplayRecs+1) {\r\n\t\t\t\t\t\t$this->StartRec = intval(($this->TotalRecs-1)/$this->DisplayRecs)*$this->DisplayRecs+1;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t$rekeningju->setStartRecordNumber($this->StartRec);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t$this->StartRec = $rekeningju->getStartRecordNumber();\r\n\r\n\t\t// Check if correct start record counter\r\n\t\tif (!is_numeric($this->StartRec) || $this->StartRec == \"\") { // Avoid invalid start record counter\r\n\t\t\t$this->StartRec = 1; // Reset start record counter\r\n\t\t\t$rekeningju->setStartRecordNumber($this->StartRec);\r\n\t\t} elseif (intval($this->StartRec) > intval($this->TotalRecs)) { // Avoid starting record > total records\r\n\t\t\t$this->StartRec = intval(($this->TotalRecs-1)/$this->DisplayRecs)*$this->DisplayRecs+1; // Point to last page first record\r\n\t\t\t$rekeningju->setStartRecordNumber($this->StartRec);\r\n\t\t} elseif (($this->StartRec-1) % $this->DisplayRecs <> 0) {\r\n\t\t\t$this->StartRec = intval(($this->StartRec-1)/$this->DisplayRecs)*$this->DisplayRecs+1; // Point to page boundary\r\n\t\t\t$rekeningju->setStartRecordNumber($this->StartRec);\r\n\t\t}\r\n\t}", "public function save_start_info($start_data){\n $this->db->insert('tbl_personal_info',$start_data);\n }", "public function getStart(): int;", "public function getStart(): int\n {\n return $this->start;\n }", "public function getStart(): int\n {\n return $this->start;\n }", "public function getStart(): int\n {\n return $this->start;\n }", "public function setSequence(?int $value): void {\n $this->getBackingStore()->set('sequence', $value);\n }", "public function getFilePos() {\n\t\treturn $this->linepointer;\n\t}", "function incrementFile() {\n \treturn $this->adjustPosition(1);\n }", "function SetUpStartRec() {\n\tglobal $nDisplayRecs, $nStartRec, $nTotalRecs, $nPageNo, $dpp_proveedores;\n\tif ($nDisplayRecs == 0) return;\n\n\t// Check for a START parameter\n\tif (@$_GET[EW_TABLE_START_REC] <> \"\") {\n\t\t$nStartRec = $_GET[EW_TABLE_START_REC];\n\t\t$dpp_proveedores->setStartRecordNumber($nStartRec);\n\t} elseif (@$_GET[EW_TABLE_PAGE_NO] <> \"\") {\n\t\t$nPageNo = $_GET[EW_TABLE_PAGE_NO];\n\t\tif (is_numeric($nPageNo)) {\n\t\t\t$nStartRec = ($nPageNo-1)*$nDisplayRecs+1;\n\t\t\tif ($nStartRec <= 0) {\n\t\t\t\t$nStartRec = 1;\n\t\t\t} elseif ($nStartRec >= intval(($nTotalRecs-1)/$nDisplayRecs)*$nDisplayRecs+1) {\n\t\t\t\t$nStartRec = intval(($nTotalRecs-1)/$nDisplayRecs)*$nDisplayRecs+1;\n\t\t\t}\n\t\t\t$dpp_proveedores->setStartRecordNumber($nStartRec);\n\t\t} else {\n\t\t\t$nStartRec = $dpp_proveedores->getStartRecordNumber();\n\t\t}\n\t} else {\n\t\t$nStartRec = $dpp_proveedores->getStartRecordNumber();\n\t}\n\n\t// Check if correct start record counter\n\tif (!is_numeric($nStartRec) || $nStartRec == \"\") { // Avoid invalid start record counter\n\t\t$nStartRec = 1; // Reset start record counter\n\t\t$dpp_proveedores->setStartRecordNumber($nStartRec);\n\t} elseif (intval($nStartRec) > intval($nTotalRecs)) { // Avoid starting record > total records\n\t\t$nStartRec = intval(($nTotalRecs-1)/$nDisplayRecs)*$nDisplayRecs+1; // Point to last page first record\n\t\t$dpp_proveedores->setStartRecordNumber($nStartRec);\n\t} elseif (($nStartRec-1) % $nDisplayRecs <> 0) {\n\t\t$nStartRec = intval(($nStartRec-1)/$nDisplayRecs)*$nDisplayRecs+1; // Point to page boundary\n\t\t$dpp_proveedores->setStartRecordNumber($nStartRec);\n\t}\n}", "public function getCurrentLineNumber()\n {\n try {\n $li = $this->getMostRecentLineIndex();\n return $this->_model['lines'][$li]['number'];\n } catch (\\Exception $e) {\n return null;\n }\n }", "private function _initializeLine() {\n\t\t$this->_text[$this->_lineNumber]['x']=0;\n\t\t$this->_text[$this->_lineNumber]['width']=0;\n\t\t$this->_text[$this->_lineNumber]['height']=0;\n\t\t$this->_text[$this->_lineNumber]['alignment']=null;\n\t}", "public function setStartPosition($value) {\r\n $this->startPosition = $this->setDoubleProperty($this->startPosition, $value);\r\n }", "public function getLineNumber(){\n if( $this->index ){\n return substr_count($this->input, \"\\n\", 0, $this->index) + 1;\n }\n return 1;\n }", "public function setOutputLine($lineNumber, $line);", "public function save() {\n $keys = $this->requirement->snid ? array('snid') : array();\n return drupal_write_record('course_outline', $this->requirement, $keys);\n }", "public function lastLine()\n {\n $this->line()->application->cursor->previousLine();\n }", "function SetUpStartRec() {\n\t\tglobal $tbl_slide;\n\t\tif ($this->lDisplayRecs == 0)\n\t\t\treturn;\n\t\tif ($this->IsPageRequest()) { // Validate request\n\t\t\tif (@$_GET[EW_TABLE_START_REC] <> \"\") { // Check for \"start\" parameter\n\t\t\t\t$this->lStartRec = $_GET[EW_TABLE_START_REC];\n\t\t\t\t$tbl_slide->setStartRecordNumber($this->lStartRec);\n\t\t\t} elseif (@$_GET[EW_TABLE_PAGE_NO] <> \"\") {\n\t\t\t\t$this->nPageNo = $_GET[EW_TABLE_PAGE_NO];\n\t\t\t\tif (is_numeric($this->nPageNo)) {\n\t\t\t\t\t$this->lStartRec = ($this->nPageNo-1)*$this->lDisplayRecs+1;\n\t\t\t\t\tif ($this->lStartRec <= 0) {\n\t\t\t\t\t\t$this->lStartRec = 1;\n\t\t\t\t\t} elseif ($this->lStartRec >= intval(($this->lTotalRecs-1)/$this->lDisplayRecs)*$this->lDisplayRecs+1) {\n\t\t\t\t\t\t$this->lStartRec = intval(($this->lTotalRecs-1)/$this->lDisplayRecs)*$this->lDisplayRecs+1;\n\t\t\t\t\t}\n\t\t\t\t\t$tbl_slide->setStartRecordNumber($this->lStartRec);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$this->lStartRec = $tbl_slide->getStartRecordNumber();\n\n\t\t// Check if correct start record counter\n\t\tif (!is_numeric($this->lStartRec) || $this->lStartRec == \"\") { // Avoid invalid start record counter\n\t\t\t$this->lStartRec = 1; // Reset start record counter\n\t\t\t$tbl_slide->setStartRecordNumber($this->lStartRec);\n\t\t} elseif (intval($this->lStartRec) > intval($this->lTotalRecs)) { // Avoid starting record > total records\n\t\t\t$this->lStartRec = intval(($this->lTotalRecs-1)/$this->lDisplayRecs)*$this->lDisplayRecs+1; // Point to last page first record\n\t\t\t$tbl_slide->setStartRecordNumber($this->lStartRec);\n\t\t} elseif (($this->lStartRec-1) % $this->lDisplayRecs <> 0) {\n\t\t\t$this->lStartRec = intval(($this->lStartRec-1)/$this->lDisplayRecs)*$this->lDisplayRecs+1; // Point to page boundary\n\t\t\t$tbl_slide->setStartRecordNumber($this->lStartRec);\n\t\t}\n\t}", "public function get_footnotes_generated_start() {\n return $this->footnotes_generated_start;\n }", "public function setStart($start)\n\t{\n\t\t$this->start\t\t= $start;\n\t}", "public function startSectionEdit($start, $type, $title = null) {\n $this->sectionedits[] = array(++$this->lastsecid, $start, $type, $title);\n return 'sectionedit'.$this->lastsecid;\n }", "public function getLineId()\n {\n return $this->line_id;\n }", "protected static function makeLineNumbers($code, $start, $split = \"\\n\") {\n\t\t//$code = StringUtil::trim($code);\n\t\t$lines = explode($split, $code);\t\n\t\t\n\t\t$lineNumbers = '';\n\t\tfor ($i = 0, $j = count($lines); $i < $j; $i++) {\n\t\t\t$lineNumbers .= ($i + $start) . \"\\n\";\n\t\t}\n\t\treturn $lineNumbers;\t\n\t}", "public function updateRootline() {}", "public function getLine():int {\n\t\t\treturn $this->line;\n\t\t}", "public function setStartBeginning($startbeginning);", "public function start(int $start): void;", "function setNumPageLinePol(&$fp, $numLine) {\n\n fwrite($fp, chr(27).\"C\".chr($numLine));\n }", "public function saveScore()\n {\n $this->savedScore += $this->score;\n $this->score = 0;\n $this->points -= 5;\n }", "function SetUpStartRec() {\r\n\t\tglobal $fs_multijoin_v;\r\n\t\tif ($this->lDisplayRecs == 0)\r\n\t\t\treturn;\r\n\t\tif ($this->IsPageRequest()) { // Validate request\r\n\t\t\tif (@$_GET[EW_TABLE_START_REC] <> \"\") { // Check for \"start\" parameter\r\n\t\t\t\t$this->lStartRec = $_GET[EW_TABLE_START_REC];\r\n\t\t\t\t$fs_multijoin_v->setStartRecordNumber($this->lStartRec);\r\n\t\t\t} elseif (@$_GET[EW_TABLE_PAGE_NO] <> \"\") {\r\n\t\t\t\t$this->nPageNo = $_GET[EW_TABLE_PAGE_NO];\r\n\t\t\t\tif (is_numeric($this->nPageNo)) {\r\n\t\t\t\t\t$this->lStartRec = ($this->nPageNo-1)*$this->lDisplayRecs+1;\r\n\t\t\t\t\tif ($this->lStartRec <= 0) {\r\n\t\t\t\t\t\t$this->lStartRec = 1;\r\n\t\t\t\t\t} elseif ($this->lStartRec >= intval(($this->lTotalRecs-1)/$this->lDisplayRecs)*$this->lDisplayRecs+1) {\r\n\t\t\t\t\t\t$this->lStartRec = intval(($this->lTotalRecs-1)/$this->lDisplayRecs)*$this->lDisplayRecs+1;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t$fs_multijoin_v->setStartRecordNumber($this->lStartRec);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t$this->lStartRec = $fs_multijoin_v->getStartRecordNumber();\r\n\r\n\t\t// Check if correct start record counter\r\n\t\tif (!is_numeric($this->lStartRec) || $this->lStartRec == \"\") { // Avoid invalid start record counter\r\n\t\t\t$this->lStartRec = 1; // Reset start record counter\r\n\t\t\t$fs_multijoin_v->setStartRecordNumber($this->lStartRec);\r\n\t\t} elseif (intval($this->lStartRec) > intval($this->lTotalRecs)) { // Avoid starting record > total records\r\n\t\t\t$this->lStartRec = intval(($this->lTotalRecs-1)/$this->lDisplayRecs)*$this->lDisplayRecs+1; // Point to last page first record\r\n\t\t\t$fs_multijoin_v->setStartRecordNumber($this->lStartRec);\r\n\t\t} elseif (($this->lStartRec-1) % $this->lDisplayRecs <> 0) {\r\n\t\t\t$this->lStartRec = intval(($this->lStartRec-1)/$this->lDisplayRecs)*$this->lDisplayRecs+1; // Point to page boundary\r\n\t\t\t$fs_multijoin_v->setStartRecordNumber($this->lStartRec);\r\n\t\t}\r\n\t}", "public function startRow(): int \n {\n return 2;\n }", "private function _incrementEntryPointer()\n\t{\n\t\t$this->_setEntryPointer($this->_getEntryPointer() + 1);\n\t}", "private function setSequence(): void\n {\n $this->sequence = $this->getSequence();\n }", "public function saveScore()\n {\n $this->savedScore += $this->score;\n $this->score = 0;\n }", "protected function getStepNumber() {\n return $this->curStep;\n }", "public function newLine()\n {\n\n $stock = $this->getStock();\n $randomIndexStock = mt_rand(0, (count($stock)-1));\n $this->line = array_values(array_slice($stock, $randomIndexStock, 1, true));\n unset($stock[$randomIndexStock]);\n $this->stock = array_values($stock);\n }", "public function setCompleteStepsCount(?int $value): void {\n $this->getBackingStore()->set('completeStepsCount', $value);\n }", "function pushOffset() {\n log::trace(\"Path offset pushed\");\n $this->sectionOffset++;\n $this->pageOffset++;\n }", "function putCount() {\n $datei = fopen(dirname(__FILE__) . DIRECTORY_SEPARATOR .\"countlog.data\", \"r\");\n $count = fgets($datei, 1000);\n fclose($datei);\n // Opens countlog.data to change new hit number\n $datei = fopen(dirname(__FILE__) . DIRECTORY_SEPARATOR .\"countlog.data\", \"w\");\n fwrite($datei, $count + 1);\n fclose($datei);\n return true;\n }" ]
[ "0.660137", "0.56953603", "0.5662785", "0.5653351", "0.55580974", "0.5496048", "0.54558676", "0.542607", "0.5360534", "0.5352484", "0.5316201", "0.52806777", "0.5280533", "0.525002", "0.525002", "0.5232864", "0.52053624", "0.52008873", "0.51882523", "0.5181648", "0.5164733", "0.5160664", "0.5160664", "0.51515716", "0.51502883", "0.51502883", "0.5148842", "0.5136261", "0.5130026", "0.5130026", "0.5111378", "0.51090044", "0.5096772", "0.5084605", "0.5074548", "0.50733805", "0.5069858", "0.5047329", "0.50248706", "0.50109464", "0.50109464", "0.50109464", "0.50109464", "0.50109464", "0.50109464", "0.50109464", "0.49981508", "0.49849543", "0.49846646", "0.49846646", "0.49846646", "0.49846646", "0.49846646", "0.49833152", "0.49698517", "0.49548212", "0.49422532", "0.49393436", "0.49393436", "0.49393436", "0.49393436", "0.49393436", "0.49343225", "0.4927489", "0.49265003", "0.49117887", "0.49117887", "0.49117887", "0.49104208", "0.49088824", "0.49071836", "0.4898779", "0.4887242", "0.48823133", "0.4880137", "0.48757216", "0.4862154", "0.48617283", "0.48575407", "0.4842039", "0.48282418", "0.48225817", "0.4818686", "0.48061374", "0.47954237", "0.47946286", "0.4789068", "0.47832116", "0.4781184", "0.47802988", "0.4773221", "0.47732124", "0.47657275", "0.47505426", "0.4749896", "0.4746997", "0.47324377", "0.47261128", "0.4722852", "0.47137284", "0.47084674" ]
0.0
-1
Saves the end line number.
private final function parseEndLine(Stream $tokenStream) { $token = $tokenStream->current(); $this->endLine = $token[2]; $this->endPosition = $tokenStream->key(); return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setEndLine(int $newLine): void\n {\n $this->node->end_lineno = $newLine;\n }", "public function getEndLine(): int\n {\n return $this->node->end_lineno;\n }", "public function getEndLine() {\n\t\treturn $this->end_line;\n\t}", "public function getEndLine(): int\n {\n return $this->node->getAttribute('endLine');\n }", "public function getEndLine()\n\t{\n\t\treturn $this->endLine;\n\t}", "public function getEndLine(): int\n {\n return $this->node->getEndLine();\n }", "public function lastLine()\n {\n $this->line()->application->cursor->previousLine();\n }", "public function setEndOfLine(string $endOfLine): void\n {\n $this->endOfLine = $endOfLine;\n }", "public function getEndLine()\n\t{\n\t\treturn null;\n\t}", "public function setEndPosition($value) {\r\n $this->endPosition = $this->setDoubleProperty($this->endPosition, $value);\r\n }", "function saveLine($a_dbc, $a_sheetID)\n\t{\n\t}", "public function newLineWritten();", "function set_end($end)\n {\n $this->set_default_property(self :: PROPERTY_END, $end);\n }", "public function newLine() {\n\t\t$this->_section=0;\n\t\t$this->_lineNumber++;\n\t\t$this->_text[$this->_lineNumber]=array();\n\t\t$this->_text[$this->_lineNumber][0]['text']='';\n\t\t$this->_text[$this->_lineNumber][0]['encoding']='';\n\t\t$this->_text[$this->_lineNumber][0]['font']=$this->_font;\n\t\t$this->_text[$this->_lineNumber][0]['fontSize']=$this->_fontSize;\n\t\t$this->_text[$this->_lineNumber][0]['width']=0;\n\n\t\t\n\t\t$this->_initializeLine();\n\t\t\n\t\t$this->_text[$this->_lineNumber]['alignment']=$this->_text[$this->_lineNumber-1]['alignment'];\n\t\t//add the last cell's height to the auto height if we have an auto-height box.\n\t\tif ($this->isAutoHeight()) {\n\t\t\t$this->_autoHeight+=$this->_text[$this->_lineNumber-1]['height'];\n\t\t}\n\t}", "public function getEnd(): int\n {\n return $this->end;\n }", "public function setLine(int $newLine): void\n {\n $this->node->start_lineno = $newLine;\n }", "private function terminateLine()\n {\n if ($this->isInline) {\n $this->isInline = false;\n $this->writeToFile('<br>');\n }\n }", "public function getEnd(): int;", "public function getEndRow(): int\n {\n return $this->end;\n }", "public function save()\n {\n $this->savePayment();\n \n foreach ($this->paymentLines as $line) {\n $line->save($this->payId);\n }\n \n return $this->payId;\n }", "public function getEndIndex()\n {\n return $this->end_index;\n }", "protected function saveStepPointer()\n {\n if (!$this->listingID) {\n return;\n }\n\n $update = array(\n 'fields' => array('Last_step' => $this->step),\n 'where' => array('ID' => $this->listingID),\n );\n $GLOBALS['rlDb']->update($update, 'listings');\n }", "public function write(): void\n {\n $this->writeAndReturnAffectedNumber();\n }", "public function getLastLine()\n {\n return $this->lastLine;\n }", "function setEnd($end) {\n\t\t\t$this->end = $end;\n\t\t\treturn TRUE;\n\t\t}", "public function getEndPosition() {\r\n return $this->endPosition;\r\n }", "protected function _saveTry()\n {\n $this->_history[] = $this->_number;\n }", "public function getEndPosition()\n\t{\n\t\treturn $this->endPosition;\n\t}", "public function getNewLineNo(): int\n {\n return intval($this->newLineNo);\n }", "public function getEndLocation()\n {\n return $this->end_location;\n }", "public function newLinesWritten();", "function saveLine($a_dbc, $a_sheetID)\n\t{\n\t\t// if this is an existing line...\n\t\tif($this->sheetID){\n\t\t\t$sql = \"UPDATE `externalbidsheetline`\n\t\t\t\tSET `WorkDescription`=$this->workDescription, `Amount`=$this->amount\n\t\t\t\tWHERE `LineID`=$this->lineID\";\n\n\t\t} else if ( $this->amount != 0 || $this->workDescription != \"\" ) { // new line with content.\n\t\t\t$sql = \"INSERT INTO `externalbidsheetline` (SheetID, WorkDescription, Amount)\n\t\t\t\tVALUES ('$a_sheetID', '$this->workDescription', '$this->amount')\";\n\t\t}\n\n\t\t// update the database\n\t\t$result_form_project = @mysqli_query($a_dbc, $sql);\n\n\t\t// check how many rows were impacted. If 0, it failed.\n\t\tif (@mysqli_num_rows($result_form_project) == 0)\n\t\t \treturn false;\n\t\telse\n\t\t\treturn true;\n\t}", "public function savePosition() {}", "public function getEndPosition()\n\t{\n\t\treturn -1;\n\t}", "function getEnd() {\n\t\t\treturn $this->end;\n\t\t}", "public function GoToEnd()\n {\n $this->setItemPointer(($this->Length() - 1));\n }", "function setEol($eol)\n\t{\n\t\t$this->eol = $eol;\n\t}", "public function saveScore()\n {\n $this->savedScore += $this->score;\n $this->score = 0;\n $this->points -= 5;\n }", "public function getEndOfLine()\n {\n return $this->endOfLine;\n }", "public function newLine()\n {\n\n $stock = $this->getStock();\n $randomIndexStock = mt_rand(0, (count($stock)-1));\n $this->line = array_values(array_slice($stock, $randomIndexStock, 1, true));\n unset($stock[$randomIndexStock]);\n $this->stock = array_values($stock);\n }", "public function setEnd($var)\n {\n GPBUtil::checkInt32($var);\n $this->end = $var;\n\n return $this;\n }", "public function getEndLine() {\n if ( $this->reflectionSource instanceof ReflectionFunction ) {\n return $this->reflectionSource->getEndLine();\n } else {\n return parent::getEndLine();\n }\n }", "public function save() {\n $keys = $this->requirement->snid ? array('snid') : array();\n return drupal_write_record('course_outline', $this->requirement, $keys);\n }", "protected function _getNewLineCode()\n {\n return count($this->_lines) + 1;\n }", "public function saveScore()\n {\n $this->savedScore += $this->score;\n $this->score = 0;\n }", "function saveLine($a_dbc, $a_sheetID)\n\t{\n\t\t// if this is an existing line...\n\t\tif($this->sheetID){\n\t\t\t$sql = \"UPDATE `internalbidsheetline`\n\t\t\t\tSET `TaskID`=$this->taskcID, `Amount`=$this->amount, `SubcontractorBidUsed`=$this->subcontractorBidUsed, `GeneralNotes`=$this->generalNotes\n\t\t\t\tWHERE `LineID`=$this->lineID\";\n\n\t\t} else if ( $this->generalNotes != \"\" || $this->subcontractorBidUsed != \"\" || $this->Amount != 0 || $this->taskID !=0) { // new line with content.\n\t\t\t$sql = \"INSERT INTO `internalbidsheetline` (SheetID, TaskID, Amount, SubcontractorBidUsed, GeneralNotes)\n\t\t\t\tVALUES ('$a_sheetID', '$this->taskID', '$this->amount', '$this->subcontractorBidUsed', '$this->generalNotes')\";\n\t\t}\n\n\t\t// update the database\n\t\t$result_form_project = @mysqli_query($a_dbc, $sql);\n\n\t\t// check how many rows were impacted. If 0, it failed.\n\t\tif (@mysqli_num_rows($result_form_project) == 0)\n\t\t \treturn false;\n\t\telse\n\t\t\treturn true;\n\t}", "public function lastLine(){\n return $this->file[array_key_last($this->file)] ?? '';\n }", "public function getEnd();", "public function setEndString($endl='rn') {\n\t\tif($endl='rn') {\n\t\t\t$this->_endString = \"\\r\\n\"; \n\t\t}\n\t\telseif($endl='n') {\n\t\t\t$this->_endString = \"\\n\";\n\t\t}\n\t\telseif($endl='r') {\n\t\t\t$this->_endString = \"\\r\";\n\t\t}\n\t\telse {\n\t\t\t$this->_endString = \"\\r\\n\";\n\t\t}\n\t}", "public function setLastStepPosition(int $lastStepPosition): void\n {\n if ($lastStepPosition < $this->lastStepPosition) {\n throw new Exception(\n sprintf(\n <<<TEXT\nThe new last step number \"%d\" must be greater or equal than the last one %s.\nTEXT,\n $lastStepPosition,\n $this->lastStepPosition\n )\n );\n }\n\n $this->lastStepPosition = $lastStepPosition;\n }", "public function end($end);", "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 getEndColumn()\n {\n return $this->end_column;\n }", "function set_eol(){\n\t\tif(strtolower(substr(PHP_OS, 0, 3)) == 'win'){\n\t\t\t$this->eol = \"\\r\\n\";\n\t\t}elseif(strtolower(substr(PHP_OS, 0, 3)) == 'mac'){\n\t\t\t$this->eol = \"\\r\";\n\t\t}else{\n\t\t\t$this->eol = \"\\n\";\n\t\t}\n\t}", "public function getEnd()\n {\n return $this->end;\n }", "public function getEnd()\n {\n return $this->end;\n }", "public function getEnd()\n {\n return $this->end;\n }", "public function getEnd()\n {\n return $this->end;\n }", "public function getEnd()\n {\n return $this->end;\n }", "public function getEnd()\n {\n return $this->end;\n }", "public function getEnd(): ?int\n {\n return $this->end;\n }", "public function getEnd(): ?int\n {\n return $this->end;\n }", "public function incrementLastBuildNumber() {\n $this->lastBuildNumber++;\n $this->save();\n }", "public function fileEnd(): void;", "public function SetLastRecord($record){$this->_lastrecord = $record;}", "private function increase_last_number() {\n\t\t$this->settings['last_number'] ++;\n\t\t$this->update_settings();\n\t}", "function saveLine($a_dbc, $a_sheetID)\n\t{\n\t\t// if this is an existing line...\n\t\tif($this->sheetID){\n\t\t\t// should do something with deleted lines. However, don't want to delete them. Rather flag them.\n\t\t\tif(1) { //$this->text != \"\"){\n\t\t\t\t$sql = \"UPDATE `projectdescriptionline`\n\t\t\t\t\tSET `Text`=$this->text\n\t\t\t\t\tWHERE `LineID`=$this->lineID\";\n\t\t\t}\n\t\t} else if( $this->text != \"\" ) { // new line with content\n\t\t\t$sql = \"INSERT INTO `projectdescriptionline` (`SheetID`, `Text`)\n\t\t\t\tVALUES ('$a_sheetID', '$this->text')\";\n\t\t}\n\n\t\t// update the database\n\t\t$result_form_project = @mysqli_query($a_dbc, $sql);\n\n\t\t// check how many rows were impacted. If 0, it failed.\n\t\tif (@mysqli_num_rows($result_form_project) == 0)\n\t\t \treturn false;\n\t\telse\n\t\t\treturn true;\n\t}", "public function setEnd($var)\n {\n GPBUtil::checkInt64($var);\n $this->end = $var;\n\n return $this;\n }", "public function setEnd(?int $end): self\n {\n $this->end = $end;\n\n return $this;\n }", "public function getEnd()\n\t{\n\t\treturn $this->End;\n\t}", "public function setEnd($end) {\n\t\t$this->attributes['end'] = $end;\n\t\t$this->end = $end;\n\t\treturn $this;\n\t}", "protected function end() {\n // must have space after it\n return 'END ';\n }", "public function setEnd($var)\n {\n GPBUtil::checkDouble($var);\n $this->end = $var;\n\n return $this;\n }", "public function getEndCursor()\n {\n return $this->end_cursor;\n }", "public function getEndBat()\n {\n return $this->get(self::_END_BAT);\n }", "public function getEnd() {}", "public function saveAddedLines( mixed $lines );", "public final function save()\n {\n }", "public function endPath() {}", "public function setEnd(Point $end)\n {\n $this->end = $end;\n }", "public function get_end_batch(): string\n {\n return $this->end_batch;\n }", "public function save() {\n $this->lastModified = new \\DateTime();\n parent::save();\n }", "public function clearEndOfLine(): void\n {\n if (!$this->canClearEndOfLine()) {\n throw new \\RuntimeException('Clear end of line is unavailable.');\n }\n\n $this->output->write($this->configuration->get('clr_eol'));\n }", "public function end()\n {\n parent::end();\n if ($this->_createTrigger) {\n $this->_base->createAutoincrementTrigger($this->_name, $this->_createTrigger);\n }\n }", "public function save() {\n\t\t$this->data[] = $this->current();\n\t}", "function out_line($f) {\n\tglobal $line_no, $executor_file;\n\n\tfputs($f,\"#line \".($line_no+1).\" \\\"\".$executor_file.\"\\\"\\n\");\n\t++$line_no;\n}", "public final function save() {\n }", "public function setLastRowInsert($row){\r\n $this->lastRowInsert = $row;\r\n }", "public function setEnd($val)\n {\n $this->_propDict[\"end\"] = $val;\n return $this;\n }", "public function getOriginalLineNo(): int\n {\n return intval($this->originalLineNo);\n }", "function update_end()\n {\n }", "private function setNewLine() {\n $extension = pathinfo($this->path, PATHINFO_EXTENSION);\n if ($extension === Lexer::LINUX_FILE_EXTENSION) {\n $this->newLine = \"\\n\";\n } else {\n $this->newLine = \"\\r\\n\";\n }\n }", "public function setLastLine($lastLine = null)\n {\n $this->lastLine = $lastLine;\n\n return $this;\n }", "public function setEndText($a_txt)\n\t{\n\t\t$this->end_text = $a_txt;\n\t}", "protected function new_line()\n {\n }", "protected function recordLastTransactionID()\n {\n }", "public function close() {\n $time_end = $this->time_end;\n if (!$time_end) {\n $time_end = time();\n }\n $this->time_end = $time_end;\n \n $this->save(); //duration will be calculated on save\n }", "public function EndOB() {\n if ($this->counter < 1) {\n return;\n }\n\n echo '</urlset>';\n $ob_content = ob_get_contents();\n ob_end_flush();\n // Add the file name sequence, Get the new file name\n $this->file_nameseq++;\n $filename = \"./\" . self::GetSitemapFilename($this->file_nameprefix, $this->file_nameseq);\n // Write the file. Any existing file will be overwritten.\n file_put_contents($filename, $ob_content);\n }", "public function save() \n {\n $j = 0;\n foreach($this->records as $rec) {\n $rec->save();\n $j++;\n } \n // now go through and remove any records\n // that were previously marked as a zombie by the \n // delete process\n $this->removeDeletedRecords();\n return $j;\n }", "public\tfunction\tsave()\n\t\t{\n\t\t}", "public function setEndAt($end_at)\n {\n $this->end_at = $end_at;\n }" ]
[ "0.69950587", "0.6336653", "0.6319775", "0.62493426", "0.6249063", "0.6150501", "0.612661", "0.567296", "0.56569695", "0.56465846", "0.5643967", "0.56046903", "0.5580293", "0.5563762", "0.5549083", "0.551916", "0.54981786", "0.5468014", "0.54381", "0.5411395", "0.5385234", "0.5381887", "0.5375754", "0.5360263", "0.5334973", "0.5324601", "0.531568", "0.52972627", "0.5279425", "0.52286583", "0.52237606", "0.52091557", "0.5203676", "0.51993686", "0.5197896", "0.5191304", "0.51886976", "0.5179144", "0.5171647", "0.51481205", "0.5147688", "0.51394165", "0.511283", "0.5104683", "0.5104385", "0.5094482", "0.50935304", "0.5090302", "0.5088921", "0.50762385", "0.50531477", "0.5044838", "0.5024375", "0.50237215", "0.5009751", "0.5009751", "0.5009751", "0.5009751", "0.5009751", "0.5009751", "0.500957", "0.500957", "0.50088745", "0.50005937", "0.49985337", "0.49900156", "0.4989281", "0.49700314", "0.49622697", "0.49604297", "0.49507824", "0.49506462", "0.49244118", "0.4913814", "0.4904767", "0.49047533", "0.48899165", "0.4888015", "0.48853374", "0.4884256", "0.4878469", "0.48706055", "0.48609608", "0.4843613", "0.48431826", "0.48407418", "0.4826315", "0.48226318", "0.48147035", "0.48115858", "0.4810035", "0.48064423", "0.47978675", "0.47974253", "0.47970334", "0.4786503", "0.47851056", "0.47834072", "0.47810313", "0.47792447", "0.4778311" ]
0.0
-1
Parses reflected element metadata from the token stream.
abstract protected function parse(Stream $tokenStream, IReflection $parent);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function readMeta()\n {\n $xr = $this->xmlReader;\n \n $insideFieldOrder = FALSE;\n $fieldsNames = NULL;\n \n while ($xr->read())\n {\n // Begin: /meta/fieldOrder\n if ($xr->nodeType == XMLReader::ELEMENT &&\n $xr->name === 'fieldOrder')\n {\n $insideFieldOrder = TRUE;\n $fieldsNames = array();\n }\n \n // Read: /meta/fieldOrder/field/[TEXT]\n if ($insideFieldOrder &&\n $xr->nodeType == XMLReader::TEXT)\n {\n $fieldsNames[] = $xr->value;\n }\n \n // End: /meta/fieldOrder\n if ($xr->nodeType == XMLReader::END_ELEMENT &&\n $xr->name === 'fieldOrder')\n {\n return new Splunk_ResultsFieldOrder($fieldsNames);\n }\n }\n \n throw new Exception('Syntax error in <meta> element.');\n }", "final protected function parseStream(Stream $tokenStream, IReflection $parent = null)\n\t{\n\t\t$this->fileName = $tokenStream->getFileName();\n\n\t\t$this\n\t\t\t->processParent($parent, $tokenStream)\n\t\t\t->parseStartLine($tokenStream)\n\t\t\t->parseDocComment($tokenStream, $parent)\n\t\t\t->parse($tokenStream, $parent)\n\t\t\t->parseChildren($tokenStream, $parent)\n\t\t\t->parseEndLine($tokenStream);\n\t}", "protected function parse()\n {\n\t$event_lines = explode(HCAL_LINE_SPLITER, $this->_Content);\n\n\tforeach ($event_lines as $line)\n\t{\n\t $result = $this->parseProperty($line);\n\t $this->_Properties[$result['name']] = $result['value'];\n\t}\n }", "public function analyzeMetadata(): void\n {\n try {\n $favicon = $this->filter('link[rel=\"icon\"]')->first()->attr('href');\n } catch (\\InvalidArgumentException $e) {\n $favicon = '';\n }\n $this->installation->setFavicon($this->getBaseHref().$favicon);\n\n // fetch title when different\n $title = $this->filter('title')->text();\n $this->installation->setTitle($title);\n\n // fetch theme color\n try {\n $themeColor = trim($this->filter('meta[name=\"theme-color\"]')->attr('content')) ?? '';\n\n // white is not visible on white background, fallback is defined in frontend\n if ($themeColor === '#ffffff') {\n $themeColor = '';\n }\n } catch (\\InvalidArgumentException $e) {\n $themeColor = '';\n }\n $this->installation->setThemeColor($themeColor);\n }", "abstract protected function parseName(Stream $tokenStream);", "public function parseMetadata(ResponseInterface $response): array;", "public function getElementManifest()\n\t{\n\t\t$manifest = array (\n\t\t\t'name' \t\t=> 'metadata',\n\t\t\t'type' \t\t=> 'metadata',\n\t\t\t'label'\t\t=> 'Metadata',\n\t\t\t'about'\t\t=> '<p>Please fill out metadata</p>',\n\t\t\t'adminTips'\t=> '',\n\t\t\t'params' \t=> array (\n\t\t\t\t'required' \t\t=> 0,\n\t\t\t\t'aliasmap' \t\t=> 'meta',\n\t\t\t\t'field' \t\t=> 'metadata',\n\t\t\t\t'input' \t\t=> 'editor',\n\t\t\t\t'placeholder'\t=> 'Type text',\n\t\t\t\t'default'\t\t=> '',\n\t\t\t\t'maxlength' \t=> '3000',\n\t\t\t\t'cols'\t\t\t=> '50',\n\t\t\t\t'rows'\t\t\t=> '6'\n\t\t\t)\n\t\t);\n\t\treturn json_decode(json_encode($manifest), false);\n\t}", "public function parseStringForCmsElementInfo($string);", "public function decode ()\n {\n $magicBytes = $this->nextBytes(4);\n if (Utils::byteArray2String($magicBytes) === \"meta\") {\n $this->version = hexdec(Utils::bytesToHex($this->nextBytes(1)));\n if (!empty($this->metadataVersion[$this->version])) {\n $metadata[\"metadata\"] = $this->process($this->metadataVersion[$this->version]);\n $metadata[\"magicNumber\"] = $this->process(\"u32\", new ScaleBytes($magicBytes));\n $metadata[\"metadata_version\"] = $this->version;\n return $metadata;\n } else {\n throw new InvalidArgumentException(sprintf('only support metadata v12,v13,14'));\n }\n } else {\n throw new InvalidArgumentException(sprintf('decode runtime metadata fail'));\n }\n }", "private function _readValue($token) {}", "private function parseFields(): void\n {\n foreach ($this->reflect->getProperties() as $item) {\n $name = $item->getName();\n if (in_array($name, self::SKIP_FIELDS, true)) {\n continue;\n }\n\n $docblock = $item->getDocComment();\n $defType = $this->getFieldType($name, $docblock);\n $varType = $this->getVarType($name, $docblock);\n $isRequired = $this->isRequired($name, $docblock);\n $storage = &$this->fieldsBuffer[$defType];\n\n switch ($defType) {\n case self::FIELD_SIMPLE_TYPE:\n $storage[] = $this->processSimpleField($name, $varType, $isRequired);\n break;\n case self::FIELD_DATE_TYPE:\n $storage[] = $this->processDateField($name, $varType, $isRequired);\n break;\n case self::FIELD_MO_TYPE:\n $storage[] = $this->processManyToOneField($name, $varType, $isRequired);\n break;\n case self::FIELD_OM_TYPE:\n $storage[] = $this->processOneToManyField($name);\n break;\n }\n }\n\n unset($storage);\n }", "abstract protected function getMetaFromFormatNode(\\DOMNode $formatNode);", "function wp_kses_attr_parse($element)\n {\n }", "public function deserialize($strToken);", "protected function loadMetaData() {}", "function _readMeta($fp){\n $line = fgets($fp, 8192);\n $arr = explode(\"|\", trim($line));\n $ret = array(\n \"hash\" => strval($arr[0]),\n \"created\" => intval($arr[1]),\n \"expired\" => intval($arr[2]),\n );\n return $ret;\n }", "public function readToken() {}", "function getInfo ()\n\t{\n\t\t$node = $this->getElementsByTagname(\"MetaData\");\n\n\t\tif($node !== false)\n\t\t{\n\t\t\t$childs = $node[0]->child_nodes();\n\n\t\t\tforeach ($childs as $child)\n\t\t\t{\n\t\t\t\t\tif (($child->node_type() == XML_ELEMENT_NODE) && ($child->tagname == \"General\"))\n\t\t\t\t\t{\n\t\t\t\t\t\t$childs2 = $child->child_nodes();\n\n\t\t\t\t\t\tforeach ($childs2 as $child2)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif (($child2->node_type() == XML_ELEMENT_NODE) && ($child2->tagname == \"Title\" || $child2->tagname == \"Description\"))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$arr[$child2->tagname] = $child2->get_content();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// General-tag was found. Stop foreach-loop\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// for compatibility reasons:\n\t\t$arr[\"title\"] = $arr[\"Title\"];\n\t\t$arr[\"desc\"] = $arr[\"Description\"];\n\n\t\treturn $arr;\n\t}", "public function parse()\n {\n $this->initProps();\n $this->initParams();\n $this->load();\n }", "protected function _parseDescTag() {}", "private function parse() {\n $doc_comment = $this->reflection_method->getDocComment();\n\n $factory = DocBlockFactory::createInstance();\n\n $reader = $factory->create($doc_comment);\n {\n $tags = $reader->getTagsByName('report_column');\n if (empty($tags))\n throw new exception\\InvalidColumnFormatException('COLUMN_WITHOUT_NAME');\n\n $this->name = strval($tags[0]);\n }\n\n\n }", "public function getMetaData(): array {\n\t\treturn $this->content['metadata'] ?? [];\n\t}", "protected function parse(): void\n {\n $lines = preg_split('/\\r\\n|\\r|\\n/', $this->content);\n\n foreach ($lines as $line) {\n if (mb_strlen(trim($line)) && ! (mb_strpos(trim($line), '#') === 0)) {\n [$key, $value] = explode('=', (string) $line);\n $this->variables[$key] = $this->formatValue($value);\n }\n }\n }", "protected function readMetaData(&$xmlArr) {\n parent::readMetaData($xmlArr);\n $this->dateFormat = isset($xmlArr[\"ATTRIBUTES\"][\"DATEFORMAT\"]) ? $xmlArr[\"ATTRIBUTES\"][\"DATEFORMAT\"] : null;\n }", "private function buildClassMeta()\n {\n // Search meta informations before going to reflection and then, ast parsing\n foreach ($this->data as $line) {\n $line = trim($line);\n\n // Namespace search\n if (preg_match(self::NAMESPACE_PATTERN, $line, $matches) === 1) {\n $this->context->setCurrentNamespace(trim($matches[1]));\n continue;\n }\n\n // Class name\n if (preg_match(self::DEFINITION_PATTERN, $line, $matches) === 1) {\n $this->context->setClassName(trim($matches[1]));\n break; // Stop after class found, let the reflection do the next job\n }\n\n // Uses\n if (preg_match(self::USE_PATTERN, $line, $matches) === 1) {\n $this->context->addUse($matches[1]);\n continue;\n }\n }\n }", "protected function parse(string $token): void\n {\n $this->tokenParts = explode('.', $token);\n $this->header = $this->parseEncodedTokenPart($this->tokenParts[0]);\n $this->payload = $this->parseEncodedTokenPart($this->tokenParts[1] ?? '');\n $this->signature = $this->base64UrlDecode($this->tokenParts[2] ?? '') ?: '';\n }", "protected function parse() {}", "private function getMetaData ()\n\t\t{\n\t\t\t$data = file_get_contents (\"META.inf\");\n\t\t\t$o = json_decode ($data,true);\n\t\t\treturn $o;\t\n\t\t}", "public function getMetadata();", "public function getMetadata();", "public function getMetadata();", "public function parse(): void\n {\n $compression = $this->file->readShort();\n $this->parseImageData($compression);\n }", "public function parse()\n {\n $contents = file_get_contents($this->uploadPath);\n if ($contents === false)\n {\n throw new Exception(\"SYSTEM: Can't read temp file\");\n }\n\n $comments = array();\n $css = array();\n $fontFamilies = array();\n $colors = array();\n\n // store and remove comments - found this regex on official CSS 2.1 spec page\n preg_match_all('|\\/\\*[^*]*\\*+([^/*][^*]*\\*+)*\\/|',$contents, $comments, PREG_SET_ORDER);\n $contents = preg_replace('|\\/\\*[^*]*\\*+([^/*][^*]*\\*+)*\\/|','',$contents);\n\n // strip newlines\n $contents = preg_replace('/\\n/','',$contents);\n\n // can't take credit for this regex, found on stackexchange\n preg_match_all('/([^{]+)\\s*\\{\\s*([^}]+)\\s*}/',$contents, $css, PREG_SET_ORDER);\n\n // also can't take credit for this regex\n preg_match_all('/font-family\\s*?:.*?(;|(?=\"\"|\\'|;))/',$contents, $fontFamilies, PREG_SET_ORDER);\n\n // a couple more random data points\n preg_match_all('/color\\s*?:.*?(;|(?=\"\"|\\'|;))/',$contents, $colors, PREG_SET_ORDER);\n\n\n $this->parsedData['comments'] = $comments;\n $this->parsedData['css'] = $css;\n $this->parsedData['font_families'] = $fontFamilies;\n $this->parsedData['colors'] = $colors;\n\n }", "public function parse() {\n // we'll be using these a lot, aliasing it in makes it a wee bit faster\n $reader = $this->reader;\n $cache = $this->cache;\n\n $module = new Module;\n $module->name = $this->module;\n $module->version = $this->version;\n $module->authors = $this->authors;\n\n // Loop our data and fill our objects\n while($reader->read()) {\n\n // package element - for pkg config\n if($reader->nodeType == XMLReader::ELEMENT && $reader->name == 'package') {\n $module->pkgname = $reader->getAttribute('name');\n }\n\n // c:include element\n elseif($reader->nodeType == XMLReader::ELEMENT && $reader->name == 'c:include') {\n $module->headers[] = $reader->getAttribute('name');\n }\n\n // include element - module deps\n elseif ($reader->nodeType == XMLReader::ELEMENT && $reader->name == 'include') {\n $module->dep[$reader->getAttribute('name')] = $reader->getAttribute('version');\n }\n\n // namespace element\n elseif ($reader->nodeType == XMLReader::ELEMENT && $reader->name == 'namespace') {\n $module->namespaces[] = $package = new Package;\n $package->name = $reader->getAttribute('name');\n $package->version = $reader->getAttribute('version');\n\n // oddly enough, shared-library info is here in namespace, not in overall module\n $temp = $reader->getAttribute('shared-library');\n $temp = explode(',', $temp);\n $module->libs += $temp;\n }\n\n // constant element\n elseif ($reader->nodeType == XMLReader::ELEMENT && $reader->name == 'constant') {\n $package->constant[] = $constant = new Constant;\n $constant->name = $reader->getAttribute('name');\n $constant->def = $reader->getAttribute('c:type');\n\n do {\n if($reader->nodeType == XMLReader::ELEMENT && $reader->name == 'type') {\n $constant->type = $reader->getAttribute('c:type');\n break;\n }\n } while($reader->read());\n }\n\n // Unions\n elseif ($reader->nodeType == XMLReader::ELEMENT && $reader->name == 'union' && $reader->isEmptyElement == false) {\n $this->parseUnion();\n }\n\n // Struct fake objects\n elseif ($reader->nodeType == XMLReader::ELEMENT && $reader->name == 'record' && $reader->isEmptyElement == false) {\n $package->classes[] = $this->parseStructClass();\n }\n }\n\n return $module;\n }", "protected function getMetaData()\n {\n return stream_get_meta_data($this->stream);\n }", "private function parseInfo() : void\n {\n if (!$this->steamId) {\n return;\n }\n\n if (!$this->apiKey) {\n throw new Exception(\"The Steam API key is missing, please set it in administration.\");\n }\n\n $response = $this->guzzleClient->request('GET', sprintf(self::STEAM_INFO_URL, $this->apiKey, $this->steamId));\n $jsonResponse = json_decode($response->getBody(), true);\n $this->steamInfo = new Fluent($jsonResponse['response']['players'][0]);\n }", "protected function loadMetaInformation()\n {\n try {\n $logger = new Logger('exiftool');\n $reader = BookReader::create($logger);\n $metadataBag = $reader->files($this->file->getRealPath())->first();\n foreach ($metadataBag as $meta) {\n $tagName = $meta->getTag()->getName();\n if (0 === strcasecmp($tagName, 'MIMEType')) {\n $this->mime = $meta->getValue()->asString();\n }\n if (0 === strcasecmp($tagName, 'FileType')) {\n $this->ext = strtolower($meta->getValue()->asString());\n }\n if ($this->ext && $this->mime) {\n break;\n }\n }\n } catch (\\Exception $e) {\n $logger->addNotice($e->getMessage());\n }\n finally {\n $this->mime = empty($this->mime) ? $this->file->getMimeType() : $this->mime;\n $this->ext = empty($this->ext) ? $this->file->guessExtension(): $this->ext;\n }\n }", "protected function validateTokenStructure(): void\n {\n foreach (['header', 'payload'] as $prop) {\n if (empty($this->$prop) || !is_array($this->$prop)) {\n throw new OidcInvalidTokenException(\"Could not parse out a valid {$prop} within the provided token\");\n }\n }\n\n if (empty($this->signature) || !is_string($this->signature)) {\n throw new OidcInvalidTokenException('Could not parse out a valid signature within the provided token');\n }\n }", "protected function readElementNode()\n {\n $this->element = $this->createVirtualElement();\n\n if ($this->reader->hasAttributes) {\n foreach ($this->readElementAttributes() as $attribute => $value) {\n $this->element->put($attribute, $value);\n }\n }\n }", "public function getMetadata()\n {\n if (isset($this->raw->metadata)) {\n if (is_object($this->raw->metadata)) {\n return (array) $this->raw->metadata;\n }\n\n return $this->raw->metadata;\n }\n\n return null;\n }", "public function parse( $contents );", "public function getMetadata() {}", "public function getMetadata() {}", "function fetchMeta($metadata)\n {\n $languages = $this->getLanguages();\n $attribname = $this->fieldName().(!$this->isMlNode()?'_'.$languages[0]:'');\n $this->m_size = min($metadata[$attribname]['len'], $this->maxInputSize());\n $this->m_searchsize = min($metadata[$attribname]['len'], 20);\n $this->m_maxsize = $metadata[$attribname]['len'];\n }", "private function parseMeta( $data ) {\n $regex = $this->regex;\n \n // Extract\n preg_match($regex['meta'], $data, $match);\n \n // Save the raw data.\n $this->raw = $raw = $match[0];\n \n // Remove data boundaries, and create a basic array from the data.\n $raw = preg_split($regex['break'], trim(preg_replace($regex['bound'], '', $raw)));\n \n // Interpret the raw data.\n $raw = array_map(function($pair) use ($regex){\n \n $array = array_map('trim', preg_split($regex['data'], $pair, 2));\n\n return $array;\n \n }, array_filter($raw, function($item){\n \n return isset($item);\n \n }));\n \n // Format the raw data.\n foreach( $raw as &$meta ) { \n \n $meta[1] = $this->formatMeta( $meta[1] );\n \n }\n \n // Reduce the raw data.\n for( $i = count($raw) - 1; $i > -1; $i-- ) { \n \n $meta = $raw[$i];\n \n $raw[$meta[0]] = $meta[1];\n \n unset($raw[$i]);\n \n }\n\n // Return the real meta data.\n return array_merge( $raw );\n \n }", "private function _readValue($token, $expectedType = null) {}", "protected function load()\n {\n if ($this->contentLoaded) {\n return;\n }\n\n $content = file_get_contents($this->path);\n\n if (!$content) {\n $this->contentLoaded = true;\n return;\n }\n\n preg_match_all('/\\@([a-z]+)\\s([^\\r\\n\\@]+)/i', $content, $matches, PREG_SET_ORDER);\n\n foreach ($matches as $match) {\n $fullMatch = $match[0];\n $variable = $match[1];\n $value = $match[2];\n\n $content = str_replace($fullMatch, '', $content);\n $this->metadata[$variable] = $value;\n }\n\n $this->content = trim($content, \"\\r\\n\");\n $this->contentLoaded = true;\n }", "protected function parse()\n {\n if($this->isRelationalKey()){\n $this->parsedValue = $this->makeRelationInstruction();\n } \n else {\n $this->parsedValue = $this->parseFlatValue($this->value);\n } \n }", "private function get_file_element_meta($file_content)\n {\n $meta = array();\n $comments = FileHelper::get_file_doc_comments($file_content);\n\n foreach ($comments as $comment)\n {\n $comment_lines = explode(\"\\n\", $comment);\n\n foreach($comment_lines as $comment_line)\n {\n if (preg_match('/@Description (.*)/', $comment_line, $match))\n {\n $meta['description'] = trim($match[1]);\n }\n if (preg_match('/@Icon (.*)/', $comment_line, $match))\n {\n $meta['icon'] = trim($match[1]);\n }\n }\n }\n\n return $meta;\n }", "public function parse()\n {\n list($header, $payload, $signature) = explode('.', $this->token);\n\n return collect([\n 'header' => json_decode(base64_decode($header)),\n 'payload' => json_decode(base64_decode($payload)),\n 'signature' => $signature\n ]);\n }", "protected function scanAttributes()\n {\n if ('(' === $this->input[0]) {\n $index = $this->getDelimitersIndex('(', ')');\n $input = mb_substr($this->input, 1, $index - 1);\n $token = $this->takeToken('attributes', $input);\n $attributes = preg_split('/ *, *(?=[\\'\"\\w-]+ *[:=]|[\\w-]+ *$)/', $token->value);\n $this->consumeInput($index + 1);\n $token->attributes = array();\n\n foreach ($attributes as $i => $pair) {\n $pair = preg_replace('/^ *| *$/', '', $pair);\n $colon = mb_strpos($pair, ':');\n $equal = mb_strpos($pair, '=');\n\n $sbrac = mb_strpos($pair, '\\'');\n $dbrac = mb_strpos($pair, '\"');\n if ($sbrac < 1) {\n $sbrac = false;\n }\n if ($dbrac < 1) {\n $dbrac = false;\n }\n if ((false !== $sbrac && $colon > $sbrac) || (false !== $dbrac && $colon > $dbrac)) {\n $colon = false;\n }\n if ((false !== $sbrac && $equal > $sbrac) || (false !== $dbrac && $equal > $dbrac)) {\n $equal = false;\n }\n\n if (false === $colon && false === $equal) {\n $key = $pair;\n $value = true;\n } else {\n $splitter = false !== $colon ? $colon : $equal;\n\n if (false !== $colon && $colon < $equal) {\n $splitter = $colon;\n }\n\n $key = mb_substr($pair, 0, $splitter);\n $value = preg_replace('/^ *[\\'\"]?|[\\'\"]? *$/', '', mb_substr($pair, ++$splitter, mb_strlen($pair)));\n\n if ('true' === $value) {\n $value = true;\n } elseif (empty($value) || 'null' === $value || 'false' === $value) {\n $value = false;\n }\n }\n\n $token->attributes[preg_replace(array('/^ +| +$/', '/^[\\'\"]|[\\'\"]$/'), '', $key)] = $value;\n }\n\n return $token;\n }\n }", "private function parseElement(): void\n {\n if ($this->node->nodeName!=='fileset')\n {\n throw new ConfigException('Expecting a fileset at %s:%s', $this->path, $this->node->getLineNo());\n }\n\n foreach ($this->node->attributes as $name => $value)\n {\n switch ($name)\n {\n case 'dir':\n $this->dir = $value->value;\n break;\n\n default:\n throw new ConfigException(\"Unexpected attribute '%s' at %s:%s'\", $name, $this->path, $this->node->getLineNo());\n }\n }\n\n if ($this->dir===null)\n {\n throw new ConfigException(\"Mandatory attribute 'dir' not set %s:%s'\", $this->path, $this->node->getLineNo());\n }\n }", "private function loadMetadata() {\n\t\t$this->pMeta = $this->em->getClassMetadata('OcProduct');\n\t\t$this->pdMeta = $this->em->getClassMetadata('OcProductDescription');\n\t}", "public function onMetaParsed(&$meta)\n {\n $meta['tags'] = PicoTags::parseTags($meta['tags']);\n $meta['filter'] = PicoTags::parseTags($meta['filter']);\n }", "public function parse(tokenise $tokens) : void {\n\t\t$types = ['attribute', 'quotes'];\n\t\t$content = [];\n\t\twhile (($token = $tokens->next()) !== null && $token['type'] !== 'tagopenend') {\n\t\t\tif (in_array($token['type'], $types, true)) {\n\t\t\t\t$content[] = \\html_entity_decode(\\ltrim($token['value']));\n\t\t\t}\n\t\t}\n\t\t$this->content = $content;\n\t}", "public function parse() {\n $pointers = apply_filters( 'bc-pointers-manager-pointers', $this->pointers );\n\n $this->pointers = array();\n\n foreach( $pointers as $i => $pointer ) {\n $pointer['id'] = \"{$this->prefix}{$this->version}_{$i}\";\n $this->pointers[ $pointer['id'] ] = (object) $pointer;\n }\n\n }", "public function getMetaData();", "public function extractAllMeta(): array\n {\n $uploadMetaData = $this->request->headers->get('Upload-Metadata');\n\n if (empty($uploadMetaData)) {\n return [];\n }\n\n $uploadMetaDataChunks = explode(',', $uploadMetaData);\n\n $result = [];\n foreach ($uploadMetaDataChunks as $chunk) {\n $pieces = explode(' ', trim($chunk));\n\n $key = $pieces[0];\n $value = $pieces[1] ?? '';\n\n $result[$key] = base64_decode($value);\n }\n\n return $result;\n }", "protected function parse($token)\n {\n // TODO: Put guard here to make sure that we got a token.\n $this->setExpiration($token['expiration']);\n $this->password = $token['privateKey'];\n $this->username = $token['publicKey'];\n }", "public function deserialize($param)\n {\n if ($param === null) {\n return;\n }\n if (array_key_exists(\"HeadSet\",$param) and $param[\"HeadSet\"] !== null) {\n $this->HeadSet = [];\n foreach ($param[\"HeadSet\"] as $key => $value){\n $obj = new MediaInputInfo();\n $obj->deserialize($value);\n array_push($this->HeadSet, $obj);\n }\n }\n\n if (array_key_exists(\"TailSet\",$param) and $param[\"TailSet\"] !== null) {\n $this->TailSet = [];\n foreach ($param[\"TailSet\"] as $key => $value){\n $obj = new MediaInputInfo();\n $obj->deserialize($value);\n array_push($this->TailSet, $obj);\n }\n }\n }", "private function parseModMetaData($meta_data_path)\n {\n $meta_file = fopen($meta_data_path, 'r');\n\n //The first 4 bytes contains the total amount of key->value pairs which is used to build our array\n $raw_total_pairs = fread($meta_file, 4);\n $total_pairs = current(unpack('i', $raw_total_pairs));\n \n //Here we parse through each key->value pair and write it to $this->mod_meta_data\n for ($i = 0; $i < $total_pairs; $i++) {\n $key = $this->read_ue4_string($meta_file);\n $value = $this->read_ue4_string($meta_file);\n\n empty($key) ? $key = '' : FALSE;\n empty($value) ? $value = '' : FALSE;\n $this->mod_meta_data[$key] = $value;\n }\n }", "function read($token);", "public function getMetadata(): array;", "public function parse(array &$tokens) {\n\t\t$token = current($tokens);\n\t\t$this->content = substr($token['value'], 4, -3);\n\t}", "public function parse()\n {\n }", "public function parse()\n {\n }", "public function parse()\n {\n }", "public function parse()\n {\n }", "function parseXMLResult($doc, &$result) {\n\tglobal $gbRepeatView;\n\n\t$result = array();\n\t$median = $doc->getElementsByTagName('median')->item(0); // This is the block of info representing ALL the data of the \"median\" run.\n\tif ( ! $median ) {\n\t\treturn;\n\t}\n\t$pageview = $median->getElementsByTagName( $gbRepeatView ? 'repeatView' : 'firstView' )->item(0); // change this to 'repeatView' for primed cache\n\tif ( ! $pageview ) {\n\t\treturn;\n\t}\n\n\t$result['medianRun'] = (int)$pageview->getElementsByTagName('run')->item(0)->nodeValue;\n}", "public function parse();", "public function parse();", "public function parse();", "public function getMetaData()\n {\n return stream_get_meta_data($this->_stream_handle);\n }", "protected function parseParameter() {\n $reader = $this->reader; // alias in local\n\n $param = new Param;\n $param->name = $reader->getAttribute('name');\n $param->transfer = $reader->getAttribute('transfer-ownership');\n // get rid of \"floating\" transfer\n if($param->transfer == 'floating') {\n $param->transfer == 'none';\n }\n if($dir = $reader->getAttribute('direction')) {\n $param->direction = $dir;\n }\n\n do {\n if($reader->nodeType == XMLReader::ELEMENT && $reader->name == 'array') {\n $param->container = $reader->getAttribute('c:type');\n } elseif($reader->nodeType == XMLReader::ELEMENT && $reader->name == 'type') {\n $param->nativeType = $reader->getAttribute('c:type');\n $param->type = $reader->getAttribute('name');\n $this->mapType($param);\n } elseif($reader->nodeType == XMLReader::ELEMENT && $reader->name == 'doc') {\n $param->doc = $reader->readString();\n // this will ALWAYS stop our loop\n } elseif($reader->nodeType == XMLReader::END_ELEMENT && $reader->name == 'parameter') {\n break;\n }\n } while($reader->read());\n\n return $param;\n }", "function getTrackMetaData($dom) {\n $output = getArtistAndTrackname($dom);\n ##TODO - need to get supporting artists (array)\n $output['featuring'] = getFeaturedArtists($dom);\n return $output;\n}", "function getTrackMetaData($dom) {\n $output = getArtistAndTrackname($dom);\n ##TODO - need to get supporting artists (array)\n $output['featuring'] = getFeaturedArtists($dom);\n return $output;\n}", "protected function _parseMetaFile($file_path) { \n\t\t$ser = new XML_Unserializer();\n\t\t//$ser->setOption('complexType', 'object');\n\t\t$ser->unserialize($file_path, TRUE);\n\t\t$result = $ser->getUnserializedData();\n\t\t//var_dump($result);\n\t\treturn $result;\n\t}", "public function prepareMetaData() {\n if ($this->mt instanceof folksoPageDataMeta) {\n return $this->mt;\n }\n\n if (! $this->ptags instanceof folksoPagetags) {\n $this->ptags = new folksoPagetags($this->loc, $this->url);\n }\n\n\n $this->mt = $this->ptags->buildMeta();\n if (! $this->e13 instanceof folksoEanList) {\n $this->e13 = new folksoEanList($this->loc, $this->url);\n }\n // this is supposed to be a reference. it had better be!\n $this->mt->e13 = $this->e13;\n return $this->mt;\n }", "protected function _getNextToken() {}", "protected function _getNextToken() {}", "private function _parseClass()\n {\n // check which interfaces are implemented\n $interfaces = $this->_reflectionClass->getInterfaceNames();\n foreach ($interfaces as $i) {\n if ($i == 'Webiny\\Component\\Rest\\Interfaces\\AccessInterface') {\n $this->_parsedClass->accessInterface = true;\n }\n\n if ($i == 'Webiny\\Component\\Rest\\Interfaces\\CacheKeyInterface') {\n $this->_parsedClass->cacheKeyInterface = true;\n }\n }\n }", "static private function parse_file($path)\n\t{\n\t\t$tokens = token_get_all(file_get_contents($path));\n\t\t$namespace = null;\n\t\t$update_constructors = [];\n\n\t\tfor ($i = 0, $j = count($tokens) ; $i < $j ; $i++)\n\t\t{\n\t\t\t$token = $tokens[$i];\n\n\t\t\tif (!is_array($token))\n\t\t\t{\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tlist($token_id, $value, $line) = $token;\n\n\t\t\tswitch ($token_id)\n\t\t\t{\n\t\t\t\tcase \\T_NAMESPACE:\n\n\t\t\t\t\t$namespace = self::parser_resolve_namespace($tokens, $i);\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \\T_CLASS:\n\n\t\t\t\t\t$class_name_token = $tokens[$i + 2];\n\t\t\t\t\t$class_name = $class_name_token[1];\n\n\t\t\t\t\t$class_annotation_token = $tokens[$i - 2];\n\n\t\t\t\t\tif (!is_array($class_annotation_token))\n\t\t\t\t\t{\n\t\t\t\t\t\techo \"Missing annotation for class $class_name\\n\";\n\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\n\t\t\t\t\t$class_annotation = $class_annotation_token[1];\n\n\t\t\t\t\t$update_constructors[] = new UpdateDescriptor($namespace . '\\\\' . $class_name, $class_annotation, $path, $line);\n\t\t\t}\n\t\t}\n\n\t\treturn $update_constructors;\n\t}", "protected function next() : ?Node\n {\n // is the current element associative?\n $associativeArray = $this->nextToken() && $this->nextToken()->isType(T::TOKEN_ASSIGN);\n $associativeKeyName = null;\n\n // if yes, we parse the key first\n if ($associativeArray) \n { \n $keyToken = $this->currentToken();\n\n // the key can be an identifier token and will \n // be used as a simple string\n if ($keyToken->isType(T::TOKEN_IDENTIFIER))\n {\n $associativeKeyName = $keyToken->getValue();\n }\n // string or numbers\n elseif ($keyToken->isType(T::TOKEN_STRING) || $keyToken->isType(T::TOKEN_NUMBER))\n {\n $associativeKeyName = ValueNode::fromToken($keyToken)->getRawValue();\n }\n\n $this->skipToken(2); // skip the key & assign token\n\n // there might be a linebreak between the key and value\n $this->skipTokenOfType([T::TOKEN_LINE]);\n }\n\n // placeholder for the elements value\n $elementValue = null;\n\n // value token\n $token = $this->currentToken();\n\n // check for nested array\n if ($token->isType(T::TOKEN_SCOPE_OPEN)) \n {\n $elementValue = $this->parseChild(\n ArrayParser::class, \n $this->getTokensUntilClosingScope(\n false, \n T::TOKEN_SCOPE_OPEN, \n T::TOKEN_SCOPE_CLOSE\n ), \n false\n );\n }\n\n // is a parameter reference \n elseif ($token->isValue()) \n {\n $elementValue = ValueNode::fromToken($token);\n }\n\n elseif ($token->isType(T::TOKEN_PARAMETER)) \n {\n $elementValue = $this->parseChild(ReferenceParser::class);\n }\n\n // is a service reference\n elseif ($token->isType(T::TOKEN_DEPENDENCY)) \n {\n $elementValue = $this->parseChild(ReferenceParser::class);\n }\n\n // just a linebreak\n elseif ($token->isType(T::TOKEN_LINE)) \n {\n $this->skipToken(); return null;\n }\n\n // anything else?\n else \n {\n throw $this->errorUnexpectedToken($token);\n }\n\n if (!($elementValue instanceof AssignableNode)) {\n throw $this->errorParsing(\"Trying to assign nonassignable to array.\");\n }\n\n // update our array node\n if ($associativeArray) {\n $this->array->addElement(new ArrayElementNode($associativeKeyName, $elementValue));\n } else {\n $this->array->push($elementValue);\n }\n\n // skip the value token\n $this->skipToken();\n\n // now ther might follow a seperator indicating another argument\n if (!$this->parserIsDone() && $this->currentToken()->isType(T::TOKEN_SEPERATOR)) \n {\n $this->skipToken();\n }\n\n return null;\n }", "public function getMetaData() {\n\t\treturn $this->arrMetadata;\n\t}", "function &extractMetadata(&$metadataSchema) {\n\t\t$metadataDescription = null;\n\t\t$metadataSchemaName = $metadataSchema->getClassName();\n\t\t$extractionAdapters =& $this->getSupportedExtractionAdapters();\n\t\tif(isset($extractionAdapters[$metadataSchemaName])) {\n\t\t\t// Get the meta-data adapter that supports the\n\t\t\t// given meta-data description's schema.\n\t\t\t$metadataAdapter =& $extractionAdapters[$metadataSchemaName];\n\n\t\t\t// Use adapter filter to convert from a data object\n\t\t\t// to a meta-data description.\n\t\t\t$metadataDescription =& $metadataAdapter->execute($this);\n\t\t}\n\t\treturn $metadataDescription;\n\t}", "private function extractProperties(): array\n {\n $tokens = $this->tokens->findFirstCurlyParenthesizedBlock();\n $tokens = $tokens->withoutBlocks();\n\n preg_match_all('/(?<docblock>T_DOC_COMMENT )?(?<qualifiers>(T_VAR |T_PUBLIC |T_PROTECTED |T_PRIVATE |T_STATIC ))+(?<type>T_STRING )?(?<name>T_VARIABLE )(= (?<value>(?:(?!; ).)+))?; /',\n $tokens->asString(),\n $matches,\n PREG_OFFSET_CAPTURE | PREG_SET_ORDER);\n\n $properties = [];\n foreach ($matches as $match)\n {\n $propertyTokens = TokenMatchHelper::codeBlock($match, $tokens, $this->tokens);\n $lines = $propertyTokens->lines();\n\n $properties[] = ['docblock' => TokenMatchHelper::docblockDetails($match, $tokens),\n 'type' => TokenMatchHelper::code('type', $match, $tokens),\n 'visibility' => TokenMatchHelper::visibility($match),\n 'is_static' => TokenMatchHelper::isStatic($match),\n 'name' => TokenMatchHelper::code('name', $match, $tokens),\n 'value' => TokenMatchHelper::code('value', $match, $tokens),\n 'start' => $lines['start'],\n 'end' => $lines['end'],\n 'tokens' => $propertyTokens];\n }\n\n return $properties;\n }", "public static function readMetadata($value, $types = false, &$offset = 0){\n\t\t$offset = 0;\n\t\t$m = [];\n\t\t$b = ord($value{$offset});\n\t\t++$offset;\n\t\twhile($b !== 127 and isset($value{$offset})){\n\t\t\t$bottom = $b & 0x1F;\n\t\t\t$type = $b >> 5;\n\t\t\tswitch($type){\n\t\t\t\tcase 0:\n\t\t\t\t\t$r = self::readByte($value{$offset});\n\t\t\t\t\t++$offset;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 1:\n\t\t\t\t\t$r = self::readLShort(substr($value, $offset, 2));\n\t\t\t\t\t$offset += 2;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\t$r = self::readLInt(substr($value, $offset, 4));\n\t\t\t\t\t$offset += 4;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3:\n\t\t\t\t\t$r = self::readLFloat(substr($value, $offset, 4));\n\t\t\t\t\t$offset += 4;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 4:\n\t\t\t\t\t$len = self::readLShort(substr($value, $offset, 2));\n\t\t\t\t\t$offset += 2;\n\t\t\t\t\t$r = substr($value, $offset, $len);\n\t\t\t\t\t$offset += $len;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 5:\n\t\t\t\t\t$r = [];\n\t\t\t\t\t$r[] = self::readLShort(substr($value, $offset, 2));\n\t\t\t\t\t$offset += 2;\n\t\t\t\t\t$r[] = ord($value{$offset});\n\t\t\t\t\t++$offset;\n\t\t\t\t\t$r[] = self::readLShort(substr($value, $offset, 2));\n\t\t\t\t\t$offset += 2;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 6:\n\t\t\t\t\t$r = [];\n\t\t\t\t\tfor($i = 0; $i < 3; ++$i){\n\t\t\t\t\t\t$r[] = self::readLInt(substr($value, $offset, 4));\n\t\t\t\t\t\t$offset += 4;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 8:\n\t\t\t\t\t$r = self::readLLong(substr($value, $offset, 4));\n\t\t\t\t\t$offset += 8;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\treturn [];\n\n\t\t\t}\n\t\t\tif($types === true){\n\t\t\t\t$m[$bottom] = [$r, $type];\n\t\t\t}else{\n\t\t\t\t$m[$bottom] = $r;\n\t\t\t}\n\t\t\t$b = ord($value{$offset});\n\t\t\t++$offset;\n\t\t}\n\n\t\treturn $m;\n\t}", "public function parse()\n\t{\n\t\t$this->parseGroups();\n\t\t$this->parseBadges();\n\t}", "public function read_meta( &$object );", "public function parse()\n {\n $this->data = parse_ini_file($this->fileName);\n }", "public function parseFromArray()\n {\n $this->value = $this->reader->next();\n }", "public function elementsList()\n {\n $failed = false;\n $startTokenIndex = $this->index(); // get current token position\n if (true === $this->isSpeculating() && true === $this->alreadyParsedRule($this->listMemo)) {\n return;\n }\n // must not have previously parsed list at tokenIndex; parse it\n try {\n $this->_elementsList();\n } catch (RecognitionException $e) {\n $failed = true;\n throw $e;\n } finally {\n if (true === $this->isSpeculating()) {\n $this->memoize($this->listMemo, $startTokenIndex, $failed);\n }\n }\n }", "public function token()\n {\n return $this->metadata();\n }", "function contents($parser, $data){\n global $current_tag, $xml_picture_key, /*$xml_name_key, $xml_size_key,*/ $xml_link_key, $counter, $featured_array;\n switch($current_tag){\n case $xml_picture_key:\n $featured_array[$counter]->picture = $data;\n break;\n /*case $xml_name_key:\n $featured_array[$counter]->name = $data;\n break;\n\t\t\tcase $xml_size_key:\n $featured_array[$counter]->size = $data;\n break;*/\n case $xml_link_key:\n $featured_array[$counter]->link = $data;\n $counter++;\n break;\n }\n }", "public function getMetadata(string $key = '')\n {\n $meta_data = stream_get_meta_data($this->stream);\n if ('' === trim($key)) {\n return $meta_data;\n }\n return $meta_data[$key] ?? null;\n }", "protected function _extractAndParse()\n {\n if (isset($this->_params['cache'])) {\n $result = $this->_params['cache']->get('horde_timezone',\n $this->_params['cachettl']);\n if ($result) {\n $this->_zones = $result['zones'];\n $this->_rules = $result['rules'];\n $this->_links = $result['links'];\n return;\n }\n }\n\n if (!$this->_tmpfile) {\n $this->_download();\n }\n $tar = new Archive_Tar($this->_tmpfile);\n foreach ($tar->listContent() as $file) {\n if ($file['typeflag'] != 0) {\n continue;\n }\n $this->_parse($tar->extractInString($file['filename']));\n }\n\n if (isset($this->_params['cache'])) {\n $this->_params['cache']->set('horde_timezone',\n array('zones' => $this->_zones,\n 'rules' => $this->_rules,\n 'links' => $this->_links),\n $this->_params['cachettl']);\n }\n }", "private function processAttrs(){\n\n\t\t$start = strlen($this->tag)+1;\n\t\t$temp = substr($this->raw,$start);\n\n\t\t//echo $temp . \"\\n\";\n\n\t\t$i=0;\n\t\tfor(; $i < strlen($temp); ){\n\t\t\tif($temp[$i] == '>') break;\n\t\t\t\t\n\t\t\t$pos = $this->skipWs($temp, $i);\n\t\t\t\t\n\t\t\t//echo \"should be r-{$temp[$pos]}\\n\";\n\t\t\t\t\n\t\t\t$pos2 = $this->skipToEqualOrWs($temp, $pos);\n\t\t\t\t\n\t\t\t//echo \"should be =-{$temp[$pos2]}\\n\";\n\t\t\t\t\n\t\t\t$attr = trim(substr($temp, $pos, $pos2 - $pos));\n\t\t\t\t\n\t\t\t//echo \"Got attribute-$attr\\n\";\n\t\t\t\t\n\t\t\tif(!empty($attr) && $pos2 < strlen($temp) && $temp[$pos2] == '='){\n\n\t\t\t\t//skip =\n\t\t\t\t$pos2++;\n\n\t\t\t\t$pos = $this->skipWs($temp, $pos2); //should be ' or \"\n\n\t\t\t\tif($temp[$pos] != '\"' && $temp[$pos] != \"'\"){\n\t\t\t\t\t//echo \"FAILED-{$temp[$pos]}\";\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\t$pos++; //skip the ' or \"\n\n\t\t\t\t$pos2 = $this->skipToQuote($temp, $pos, $temp[$pos-1]);\n\n\t\t\t\t$val = trim(substr($temp, $pos, $pos2-$pos),'\\'\"');\n\n\t\t\t\t$pos2++; //get past ' or \"\n\n\t\t\t\t$this->attributes[$attr] = $val;\n\n\t\t\t\t//echo \"$attr:$val\\n\";\n\t\t\t}\n\t\t\t$i = $pos2;\n\t\t}\n\t\t$this->textStart = $i+$start+1;\n\t}", "protected function readMetaData(&$xmlArr)\n {\n parent::readMetaData($xmlArr);\n $this->myPrivateImg = isset($xmlArr[\"ATTRIBUTES\"][\"MYPRIVATEIMG\"]) ? $xmlArr[\"ATTRIBUTES\"][\"MYPRIVATEIMG\"] : \"{OPENBIZ_RESOURCE_URL}/common/images/icon_data_private.gif\";\n $this->mySharedImg = isset($xmlArr[\"ATTRIBUTES\"][\"MYSHAREDIMG\"]) ? $xmlArr[\"ATTRIBUTES\"][\"MYSHAREDIMG\"] : \"{OPENBIZ_RESOURCE_URL}/common/images/icon_data_shared.gif\";\n $this->myAssignedImg = isset($xmlArr[\"ATTRIBUTES\"][\"MYASSIGNEDIMG\"]) ? $xmlArr[\"ATTRIBUTES\"][\"MYASSIGNEDIMG\"] : \"{OPENBIZ_RESOURCE_URL}/common/images/icon_data_assigned.gif\";\n $this->myDistributedImg = isset($xmlArr[\"ATTRIBUTES\"][\"MYDISTRIBUTEDIMG\"]) ? $xmlArr[\"ATTRIBUTES\"][\"MYDISTRIBUTEDIMG\"] : \"{OPENBIZ_RESOURCE_URL}/common/images/icon_data_distributed.gif\";\n $this->groupSharedImg = isset($xmlArr[\"ATTRIBUTES\"][\"GROUPSHAREDIMG\"]) ? $xmlArr[\"ATTRIBUTES\"][\"GROUPSHAREDIMG\"] : \"{OPENBIZ_RESOURCE_URL}/common/images/icon_data_shared_group.gif\";\n $this->otherSharedImg = isset($xmlArr[\"ATTRIBUTES\"][\"OTHERSHAREDIMG\"]) ? $xmlArr[\"ATTRIBUTES\"][\"OTHERSHAREDIMG\"] : \"{OPENBIZ_RESOURCE_URL}/common/images/icon_data_shared_other.gif\";\n $this->defaultImg = isset($xmlArr[\"ATTRIBUTES\"][\"DEFAULTIMG\"]) ? $xmlArr[\"ATTRIBUTES\"][\"DEFAULTIMG\"] : \"{OPENBIZ_RESOURCE_URL}/common/images/icon_data_shared_other.gif\";\n\n $this->recordCreatorId = isset($xmlArr[\"ATTRIBUTES\"][\"CREATORID\"]) ? $xmlArr[\"ATTRIBUTES\"][\"CREATORID\"] : null;\n $this->recordOwnerId = isset($xmlArr[\"ATTRIBUTES\"][\"OWNERID\"]) ? $xmlArr[\"ATTRIBUTES\"][\"OWNERID\"] : null;\n $this->recordGroupId = isset($xmlArr[\"ATTRIBUTES\"][\"GROUPID\"]) ? $xmlArr[\"ATTRIBUTES\"][\"GROUPID\"] : null;\n $this->recordGroupPerm = isset($xmlArr[\"ATTRIBUTES\"][\"GROUPPERM\"]) ? $xmlArr[\"ATTRIBUTES\"][\"GROUPPERM\"] : null;\n $this->recordOtherPerm = isset($xmlArr[\"ATTRIBUTES\"][\"OTHERPERM\"]) ? $xmlArr[\"ATTRIBUTES\"][\"OTHERPERM\"] : null;\n\n $this->recordOwnerId_AutoLoad = isset($xmlArr[\"ATTRIBUTES\"][\"OWNERID\"]) ? false : true;\n $this->recordGroupId_AutoLoad = isset($xmlArr[\"ATTRIBUTES\"][\"GROUPID\"]) ? false : true;\n $this->recordGroupPerm_AutoLoad = isset($xmlArr[\"ATTRIBUTES\"][\"GROUPPERM\"]) ? false : true;\n $this->recordOtherPerm_AutoLoad = isset($xmlArr[\"ATTRIBUTES\"][\"OTHERPERM\"]) ? false : true;\n }", "public function testParseProcessAnnotationElement(): void\n {\n $sch = $this->sut->parse($this->getXs('annotation_0002.xsd'));\n \n self::assertElementNamespaceDeclarations(\n [\n 'xs' => 'http://www.w3.org/2001/XMLSchema', \n ], \n $sch\n );\n self::assertSchemaElementHasNoAttribute($sch);\n self::assertCount(1, $sch->getElements());\n \n $attr = $sch->getAttributeElements()[0];\n self::assertElementNamespaceDeclarations([], $attr);\n self::assertAttributeElementHasNoAttribute($attr);\n self::assertCount(1, $attr->getElements());\n \n $ann = $attr->getAnnotationElement();\n self::assertElementNamespaceDeclarations([], $ann);\n self::assertAnnotationElementHasNoAttribute($ann);\n self::assertSame([], $ann->getElements());\n }", "private function readMetaConfig(){\r\n\t\tif($this->CI->config->item('zt_head_meta')){\r\n\t\t\t$metaTags = $this->CI->config->item('zt_head_meta');\r\n\t\t\t$meta = null;\r\r\n\t\t\tforeach($metaTags as $metaTag){\r\n\t\t\t\tif(isset($metaTag[\"type\"])){\r\t\t\t\t\tif(isset($metaTag[\"lang\"]) && $metaTag[\"lang\"] && !empty($this->langService)){\r\t\t\t\t\t\t$meta = new Meta($metaTag[\"type\"], $metaTag[\"name\"], $this->langService->GetPrimaryWithSubLangCode());\t\r\t\t\t\t\t} else {\r\t\t\t\t\t\t$meta = new Meta($metaTag[\"type\"], $metaTag[\"name\"], $metaTag[\"content\"]);\t\r\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$meta = new Meta(Meta::TYPE_NAME, $metaTag[\"name\"], $metaTag[\"content\"]);\r\n\t\t\t\t}\r\r\n\t\t\t\t$this->head->AddMetaTag($meta);\r\n\t\t\t}\r\n\t\t}\r\r\n\t}" ]
[ "0.52903205", "0.5061871", "0.49294597", "0.4902892", "0.48521817", "0.4791522", "0.47749147", "0.47483802", "0.4719229", "0.46841294", "0.4637466", "0.46305868", "0.46181214", "0.46143946", "0.45909807", "0.45863897", "0.4583754", "0.4582439", "0.45792928", "0.45606565", "0.45479938", "0.45370805", "0.45357487", "0.4524079", "0.4521069", "0.4512177", "0.45077136", "0.45076302", "0.44965622", "0.44965622", "0.44965622", "0.4486359", "0.44399056", "0.44333708", "0.44272795", "0.44249532", "0.44236192", "0.44151467", "0.44105235", "0.4406158", "0.4405398", "0.43968222", "0.43968222", "0.43910468", "0.43850607", "0.43754637", "0.43417868", "0.4320526", "0.43204644", "0.4317332", "0.43064186", "0.42954153", "0.42774326", "0.42768624", "0.42759058", "0.42739606", "0.42649725", "0.42638057", "0.42420146", "0.42195833", "0.42176116", "0.42056563", "0.4205049", "0.41930464", "0.4184589", "0.4184589", "0.41836292", "0.41826335", "0.4180838", "0.41746968", "0.41746968", "0.41746968", "0.41561544", "0.4155873", "0.41553593", "0.41553593", "0.41447133", "0.41374758", "0.4136014", "0.4136014", "0.41294366", "0.4123929", "0.41146207", "0.4106419", "0.41046", "0.4092471", "0.409179", "0.40901482", "0.4089645", "0.4085918", "0.4084384", "0.40843314", "0.40839654", "0.4083327", "0.4083161", "0.40783057", "0.40782598", "0.40724793", "0.40702274", "0.4068927" ]
0.59163034
0
Parses the reflection object name.
abstract protected function parseName(Stream $tokenStream);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function parseClassName()\n {\n $type = $this->tokenizer->peek();\n \n if ($this->isClassName($type)) {\n $name = $this->consumeToken($type)->image;\n if(isset($GLOBALS['api_proxy'])) {\n if($name === $GLOBALS['api_proxy']) {\n $tokenName = $this->tokenizer->peekToken(3);\n \t $realName = trim($tokenName, \"'\");\n $realName = trim($realName, \"\\\"\");\n\t\t return $name.\",\".$realName;\n }\n }\n return $name;\n } else if ($type === self::T_EOF) {\n throw new PHP_Depend_Parser_TokenStreamEndException($this->tokenizer);\n }\n \n throw new PHP_Depend_Parser_UnexpectedTokenException(\n $this->tokenizer->next(),\n $this->tokenizer->getSourceFile()\n );\n }", "public function objectAsName($object);", "private function getCleanReflectionName(): string\n {\n return \\str_replace(\"\\x00\", '', $this->refl->getName());\n }", "public function forName();", "public function testGetName()\n {\n $reflectedProperty = new PropertyReflection('TRex\\Reflection\\resources\\Foo', 'foo');\n $this->assertSame('foo', $reflectedProperty->getName());\n }", "public function resolveName();", "public function extractName($name, $object = null)\n {\n if ($this->hasNamingStrategy()) {\n $name = $this->getNamingStrategy()->extract($name, $object);\n }\n return $name;\n }", "protected function parseName($name = null)\n {\n if (!$name)\n $name = $this->name;\n\n return $parsed = array(\n '{{namespace}}' => $this->getNamespace(),\n '{{modelNamespace}}' => $this->getModelNamespace(),\n '{{pluralCamel}}' => str_plural(camel_case($name)),\n '{{pluralSlug}}' => str_plural(str_slug($name)),\n '{{pluralSnake}}' => str_plural(snake_case($name)),\n '{{pluralClass}}' => str_plural(studly_case($name)),\n '{{singularCamel}}' => str_singular(camel_case($name)),\n '{{singularSlug}}' => str_singular(str_slug($name)),\n '{{singularSnake}}' => str_singular(snake_case($name)),\n '{{singularClass}}' => str_singular(studly_case($name)),\n );\n }", "public function get_object_name() : string ;", "public function getObjectName($object){\n\t\t$parts = explode('\\\\', get_class($object));\n\t\treturn strtolower(array_pop($parts));\n\t}", "public function testGetNameFull()\n {\n $reflectedProperty = new PropertyReflection('TRex\\Reflection\\resources\\Foo', 'foo');\n $this->assertSame('TRex\\Reflection\\resources\\Foo::foo', $reflectedProperty->getName(true));\n }", "function parse($resourceName);", "static function findBaseName($object)\n {\n $reflect = new \\ReflectionClass($object);\n \n return $reflect->getShortName();\n }", "function parseObject($objectToken) {\n\n # remove bounding braces\n $objectToken = substr($objectToken, 1, -1);\n\n # split on fields\n $fieldTokens = $this->splitTokens($objectToken);\n\n # field will be mapped as array of key => value\n $params = array();\n foreach ($fieldTokens as $fieldToken) {\n $pos = strpos($fieldToken, ':'); # ERROR_SYNTAX if FALSE\n $key = substr($fieldToken, 0, $pos);\n $key = $this->processParameter($key);\n $valueToken = substr($fieldToken, $pos + 1);\n $value = $this->parseValue($valueToken);\n $params[$key] = $value;\n }\n return $params;\n }", "public function typParsera($name){\n if ($name==\"PokerStars\"){ return \"pokerstars\"; }\n if ($name==\"PartyPoker\"){ return \"partypoker\"; }\n if ($name==\"HoldemManager\"){ return \"holdemmanager\"; }\n return $name;\n }", "function getPropertyName() ;", "private function retrieveClassName($name)\r\n {\r\n switch($name){\r\n case self::LABEL:\r\n case self::INPUT:\r\n case self::SUBIMIT:\r\n return 'Model\\\\Form\\\\Field' . ucfirst($name);\r\n default:\r\n throw new \\InvalidArgumentException(\"The $name field type does not exists\");\r\n }\r\n }", "public function getPropertyName();", "public function getPropertyName();", "public function __get($_name);", "public function getName() {\n $path = explode('\\\\', get_class($this->object[\"data\"]));\n return array_pop($path);\n }", "public function getPropertyName() {}", "public function getPropertyName() {}", "public function getPropertyName() {}", "public function getInternalName();", "public function getClassNameByObjectName($objectName)\n {\n if (!isset($this->objects[$objectName])) {\n return class_exists($objectName) ? $objectName : false;\n }\n return $this->objects[$objectName]['c'] ?? $objectName;\n }", "protected function initializeReflection() {}", "function parseTypeName($typeName) {\n\t\t$splitName = $this->splitClassName($typeName);\n\t\tif ($splitName === false) return false;\n\t\tlist($this->_packageName, $this->_className) = $splitName;\n\n\t\t// FIXME: Validate package and class to reduce the risk of\n\t\t// code injection, e.g. check that the package is within given limits/folders,\n\t\t// don't allow empty package parts, etc.\n\n\t\treturn true;\n\t}", "abstract public function getTypeName();", "public function __get(string $name)\n {\n if (isset(self::$variables[$name])) {\n return self::$variables[$name];\n }\n\n // By default return is empty\n $object = '';\n\n try {\n\n // Set class name as namespace\n $class = $this->namespace . '\\\\' . $this->snakeToPascal($name);\n\n // Try to create object by name\n $object = new $class($this->config);\n\n } catch (ErrorException | ClientException $e) {\n echo $e->getMessage();\n }\n\n // If object is not created\n if (!is_object($object)) {\n throw new BadMethodCallException(\"Class $class could not to be loaded\");\n }\n\n return $object;\n }", "abstract function normalizedName();", "public abstract function getObjectMemberName(object $oRow):string;", "function wpt_class_shortname( $object )\n{\n return is_object($object) ? (new \\ReflectionObject($object))->getShortName() : '';\n}", "function fieldNameToArrayPath($name) {\n\t\tpreg_match_all('/[^\\\\[\\\\]]+/', $name, $result, PREG_PATTERN_ORDER);\n\t\treturn $result = $result[0];\n\t}", "function parseName()\r\n\t{\r\n\t\t$buf = '';\t\r\n\t\t$ch = $this->reader->peekChar();\r\n\t\t$chOrd = ord($ch);\r\n\t\t// [A-Za-z:_]\r\n\t\tif (($chOrd >= 66 && $chOrd <= 90) || ($chOrd >= 97 && $chOrd <= 122) || $chOrd == 58 || $chOrd == 95)\r\n\t\t{\r\n\t\t\t$buf .= $ch;\r\n\t\t\t$this->reader->nextChar();\r\n\t\t\t$ch = $this->reader->peekChar();\r\n\t\t\t$chOrd = ord($ch);\r\n\t\t\t// [A-Za-z:_-\\.]\r\n\t\t\twhile (($chOrd >= 66 && $chOrd <= 90) || ($chOrd >= 97 && $chOrd <= 122) || ($chOrd >= 48 && $chOrd <= 57) || $chOrd == 58 || $chOrd == 95 || $chOrd == 46 || $chOrd == 45)\r\n\t\t\t{\r\n\t\t\t\t$buf .= $ch;\r\n\t\t\t\t$this->reader->nextChar();\r\n\t\t\t\t$ch = $this->reader->peekChar();\r\n\t\t\t\t$chOrd = ord($ch);\r\n\t\t\t}\r\n\r\n\t\t\treturn $buf;\r\n\t\t}\r\n\r\n\t\treturn null;\r\n\t}", "public function parse($name) {\n // only ask service if connected\n if ($this->m_connected) {\n // prepare query for service\n $query = trim($name) . \"\\n\";\n\n // Send the query to the nameParser service\n socket_write($this->m_socket, $query);\n $response = socket_read($this->m_socket, 4096, PHP_NORMAL_READ);\n $response = json_decode($response, true);\n\n // check for valid response\n if (is_array($response) &&\n isset($response['scientificName']) &&\n is_array($response['scientificName'])\n ) {\n // check if name was successfully parsed\n if ($response['scientificName']['parsed'] == true) {\n return $response['scientificName'];\n }\n }\n }\n\n // return NULL if parsing is not possible\n return NULL;\n }", "function getFieldNameHeadName($name) {\n\t\tif (preg_match('/\\\\[([^\\\\[\\\\]]+)\\\\]$/', $name, $regs)) {\n\t\t\t$name = $regs[1];\n\t\t}\t\n\t\treturn $name;\n\t}", "function _name_check($str){\n }", "public function tryToDefineName($content)\n\t{\n\t\tif(isset($content[$this -> name_field]) && $content[$this -> name_field])\n\t\t{\n\t\t\t$type = $this -> elements[$this -> name_field] -> getType();\n\t\t\t$name = \"\";\n\t\t\t$fields = array($this -> name_field => $type);\n\t\t\t\n\t\t\tif($this -> name_field_extra && isset($content[$this -> name_field_extra]) && $content[$this -> name_field_extra])\n\t\t\t\t $fields[$this -> name_field_extra] = $this -> elements[$this -> name_field_extra] -> getType();\n\t\t\t\t\t\n\t\t\tforeach($fields as $field => $type)\n\t\t\t\tif($type == 'enum')\n\t\t\t\t{\n\t\t\t\t\tif($this -> elements[$field] -> getProperty('foreign_key'))\n\t\t\t\t\t\t$data = $this -> elements[$field] -> getDataOfForeignKey();\n\t\t\t\t\telse\n\t\t\t\t\t\t$data = $this -> elements[$field] -> getValuesList();\n\t\t\t\t\t\n\t\t\t\t\tif(isset($data[$content[$field]]))\n\t\t\t\t\t\t$name .= $data[$content[$field]].\" \";\n\t\t\t\t}\n\t\t\t\telse if($type == 'text' && $this -> elements[$field] -> getProperty(\"show_in_admin\"))\n\t\t\t\t\t$name = Service :: cutText($content[$field], $this -> elements[$field] -> getProperty(\"show_in_admin\"), \" ...\").\" \";\n\t\t\t\telse if(($type == 'date' || $type == 'date_time') && preg_match(\"/^\\d{4}-\\d{2}-\\d{2}/\", $content[$field]))\n\t\t\t\t\t$name .= I18n :: dateFromSQL($content[$field]).\" \";\n\t\t\t\telse if(!in_array($type, array(\"file\", \"image\", \"multi_images\", \"many_to_one\", \"many_to_many\", \"password\")))\n\t\t\t\t\t$name .= $content[$field].\" \";\n\t\t\t\n\t\t\tif($name)\n\t\t\t\treturn trim($name);\n\t\t}\n\t\t\n\t\t//If we have char type field with name 'name'\n\t\tforeach($this -> elements as $name => $object)\n\t\t\tif($name == 'name' && $object -> getType() == 'char' && isset($content[$name]) && $content[$name])\n\t\t\t\treturn $content[$name];\n\n\t\t//Any email field\n\t\tforeach($this -> elements as $name => $object)\n\t\t\tif($object -> getType() == 'email' && isset($content[$name]) && $content[$name])\n\t\t\t\treturn $content[$name];\n\t\t\n\t\t//Any char field\n\t\tforeach($this -> elements as $name => $object)\n\t\t\tif($object -> getType() == 'char' && isset($content[$name]) && $content[$name])\n\t\t\t\treturn $content[$name];\n\t\t\t\t\n\t\treturn isset($content['id']) ? I18n :: locale('record').\" \".$content['id'] : '-';\n\t}", "public function getMatchingTypeName();", "abstract public function parseNamedParameters($parameters);", "private function parseName($name)\n {\n $rootNamespace = $this->laravel->getNamespace();\n\n if (starts_with($name, $rootNamespace)) {\n return $name;\n }\n\n if (str_contains($name, '/')) {\n $name = str_replace('/', '\\\\', $name);\n }\n\n return $this->parseName($this->getDefaultNamespace(trim($rootNamespace, '\\\\')) . '\\\\' . $name);\n }", "public function getObjectTypeName() \n\t{\n\t\treturn self::$object_type[$this->object_type];\n\t}", "abstract protected function getName();", "abstract protected function getName();", "public function getRealName() {}", "static public function decodeObjRef($value)\r\n\t{\r\n\t\t$parts = explode(\":\", $value);\r\n\t\tif (count($parts)>1)\r\n\t\t{\r\n\t\t\t$ret = array(\r\n\t\t\t\t'obj_type' => $parts[0],\r\n\t\t\t\t'id' => null,\r\n\t\t\t\t'name' => null,\r\n\t\t\t);\r\n\r\n // Was encoded with obj_type:id:name (new)\r\n if (count($parts) === 3)\r\n {\r\n $ret['id'] = $parts[1];\r\n $ret['name'] = $parts[2];\r\n }\r\n else\r\n {\r\n // Check for full name added after bar '|' (old)\r\n $parts2 = explode(\"|\", $parts[1]);\r\n if (count($parts2)>1)\r\n {\r\n $ret['id'] = $parts2[0];\r\n $ret['name'] = $parts2[1];\r\n }\r\n else\r\n {\r\n $ret['id'] = $parts[1];\r\n }\r\n }\r\n\r\n\t\t\treturn $ret;\r\n\t\t}\r\n\t\telse\r\n\t\t\treturn false;\r\n\t}", "function getFieldName(DataProperty &$property)\n {\n if (!is_object($property)) debug($property); // <-- this throws an exception\n // support [database.]table.field syntax\n if (preg_match('/^(.+)\\.(\\w+)$/', $property->source, $matches)) {\n $table = $matches[1];\n $field = $matches[2];\n return $field;\n }\n }", "public static function isPropertyName($token) {\n\t\t\treturn is_string($token) && ($token != ''); // && preg_match('/^[a-z_][a-z0-9_]*$/i', $token);\n\t\t}", "public function getObjectNameByClassName($className)\n {\n if (isset($this->objects[$className]) && (!isset($this->objects[$className]['c']) || $this->objects[$className]['c'] === $className)) {\n return $className;\n }\n\n foreach ($this->objects as $objectName => $information) {\n if (isset($information['c']) && $information['c'] === $className) {\n return $objectName;\n }\n }\n if ($className[0] === '\\\\') {\n throw new \\InvalidArgumentException('Class names must not start with a backslash (\"' . $className . '\")', 1270826088);\n }\n\n return false;\n }", "protected function getNameInstance()\n {\n return new Name($this->reflection->getShortName());\n }", "abstract protected function getName($name);", "public function getNameParser()\n {\n if (!class_exists('FullNameParser')) {\n require_once dirname(__FILE__) . '/../library/parser.php';\n }\n\n return new FullNameParser();\n }", "public function getClassNameByObjectName($objectName) {\n\t\treturn $this->objectContainer->getClassNameByObjectName($objectName);\n\n\t}", "function readNamePath()\r\n {\r\n $result='';\r\n\r\n if ($this->Name!='')\r\n {\r\n $result=$this->Name;\r\n\r\n if ($this->readOwner()!=null)\r\n {\r\n $s=$this->readOwner()->readNamePath();\r\n if ($s!=\"\")\r\n {\r\n $result = $s . \".\" . $result;\r\n }\r\n\r\n }\r\n }\r\n else\r\n {\r\n $result=$this->className();\r\n\r\n if ($this->readOwner()!=null)\r\n {\r\n $s=$this->readOwner()->readNamePath();\r\n if ($s!=\"\")\r\n {\r\n $result = $s . \".\" . $result;\r\n }\r\n\r\n }\r\n }\r\n\r\n return($result);\r\n\r\n //return($this->_name);\r\n }", "function getName() ;", "function getName() ;", "function getName() ;", "function getName() ;", "protected function parseModelName($name)\n {\n $rootNamespace = $this->laravel->getNamespace();\n\n if (Str::startsWith($name, $rootNamespace)) {\n return $name;\n }\n\n if (Str::contains($name, '/')) {\n $name = str_replace('/', '\\\\', $name);\n }\n\n return $this->parseModelName(trim($rootNamespace, '\\\\').'\\\\'.$name);\n }", "function getName();", "function getName();", "function getName();", "function getName();", "function getName();", "function getName();", "function getName();", "public function name($name);", "public static function get_name() : string ;", "public static function get_name() : string ;", "abstract public function get_name();", "abstract public function get_name();", "abstract public function get_name();", "public function testInstantiate()\n {\n $reflectedProperty = PropertyReflection::instantiate(\n new \\ReflectionProperty('TRex\\Reflection\\resources\\Foo', 'foo')\n );\n $this->assertInstanceOf('TRex\\Reflection\\PropertyReflection', $reflectedProperty);\n $this->assertSame('TRex\\Reflection\\resources\\Foo::foo', $reflectedProperty->getName(true));\n }", "function readNamePath()\r\n {\r\n $result=$this->className();\r\n\r\n if ($this->readOwner()!=null)\r\n {\r\n $s=$this->readOwner()->readNamePath();\r\n\r\n if ($s!=\"\") $result = $s . \".\" . $result;\r\n\r\n }\r\n\r\n return($result);\r\n }", "public function parse($string)\n {\n // names can be separated either by 'and' and by semicolons\n $state = 'default';\n\n foreach ($tokens as $token) {\n\n switch (true) {\n case 'Jr':\n case 'Jr.':\n case 'Junior':\n case 'Sr':\n case 'Sr.':\n case 'Senior':\n case 'II':\n case 'III':\n break;\n\n }\n }\n\n // if there is only one word, it is taken as the Last part, even if it\n // starts with a lower letter\n\n // the von part takes as many words as possible, provided that its first\n // and last words begin with a lowercase letter,\n // however the Last part cannot be empty\n\n // if all the words begin with an uppercase letter, the last word is the\n // Last component, and the First part groups the other words\n\n // first, von, last, suffix\n\n // Suffix Jr/Sr/II/III/MD\n\n // von part starts with lower letters\n // handle tilde\n // first1 first2 first3 last\n // if single letter -> next word after single letter is expected to be either\n // another single letter, or von part or last name\n // if multiple last names\n // { <- starts a single token } <- ends single token\n\n // et al, and others\n }", "function tf_parse_name($name)\r\n {\r\n if (empty($name)) {\r\n $ret = array();\r\n $ret['first'] = null;\r\n $ret['last'] = null;\r\n $ret['middle'] = null;\r\n }\r\n else {\r\n # guessing\r\n $part = explode(' ', $name);\r\n switch (count($part)) {\r\n case 1:\r\n $ret = array();\r\n $ret['first'] = null;\r\n $ret['last'] = $part[0];\r\n $ret['middle'] = null;\r\n break;\r\n case 2:\r\n $ret = array();\r\n $ret['first'] = $part[0];\r\n $ret['last'] = $part[1];\r\n $ret['middle']= null;\r\n break;\r\n default:\r\n $ret = array();\r\n $ret['first'] = $part[0];\r\n $ret['last'] = $part[count($part)-1];\r\n $ret['middle'] = implode(' ', array_slice($part, 1, -1));\r\n break;\r\n }\r\n }\r\n $ret[0] = $ret['first'];\r\n $ret[1] = $ret['last'];\r\n $ret[2] = $ret['middle'];\r\n return $ret;\r\n }", "public function getName(): string\n {\n if (static::NAME) {\n return (string) static::NAME;\n } elseif ($shortName = (new ReflectionClass($this))->getShortName()) {\n if (substr($shortName, -6) === 'Format') {\n return strtolower(substr($shortName, 0, strlen($shortName) - 6));\n }\n }\n\n // If made it here...\n throw new RuntimeException(sprintf(\n 'Could not automatically derive format name from class: %s',\n get_called_class()\n ));\n }", "function name()\n {\n \n return new StringWrapper(get_class($this->object).'#'.$this->id());\n \n }", "public function __get($name) {\n\t\t\tif (isset($this->object->$name)) {\n\t\t\t\t\\uri\\generate::scheme($this->object);\n\t\t\t\t\\uri\\generate::authority($this->object);\n\t\t\t\treturn $this->object->$name;\n\t\t\t} else {\n\t\t\t\t$this->_err('UNDEFINED', debug_backtrace(), $name);\n\t\t\t\treturn NULL;\n\t\t\t}\n\t\t}", "public function getObjectParser ()\n {\n $members = $this->getStub('\\vc\\Parser\\Object\\Members');\n $members->expects( $this->once() )->method( \"parseMembers\" )\n ->with(\n $this->isInstanceOf('\\vc\\Data\\Type\\Cls'),\n $this->isInstanceOf('\\vc\\Tokens\\Access')\n );\n\n return new \\vc\\Parser\\Object\\Header(\n new \\vc\\Parser\\Path,\n new \\vc\\Parser\\PathList(\n new \\vc\\Parser\\Path\n ),\n $members\n );\n }", "private function reworkClassName() {\n $className = $this->className;\n\n if ( (is_array($className) && (count($className) == 0)) || (is_string($className) && (strlen($className) == 0)) ) {\n $this->className = array();\n return;\n }\n\n $arr = self::goodSplit($className, '::');\n // If this array > 2 elements: it's a subclass [example: OmsEvent::Account::Account]\n $this->className = $arr;\n if ( count($this->className) > 1 ) {\n $this->functionName = array_pop($this->className);\n }\n }", "abstract function getName();", "public function getName(){ return $this->getField('name'); }", "public static function fromName(string $fullname): Type\n {\n $parts = Vector::new(explode('\\\\', $fullname))\n ->skipWhile(fn($x) => $x === ''); // First element will be empty if leading '\\' given.\n return new Type($parts->skipLast(1), $parts->last());\n }", "public function getFieldName() {}", "protected function normalizeName($name) {\n\t\tif ($name instanceof PHPParser_Node_Name) {\n\t\t\treturn $name;\n\t\t} else {\n\t\t\treturn new PHPParser_Node_Name ( $name );\n\t\t}\n\t}", "protected function detectObjectKeyFromRoute()\n {\n $request = $this->requestStack->getCurrentRequest();\n Return $request ? Objects::normalizeObjectKey($request->attributes->get('_jarves_object')) : '';\n }", "function InputObjectTypeDefinition($string)\n{\n [$description, $substr] = Description($string);\n [$input, $substr] = Keyword($substr, 'input');\n if ($input !== 'input') {\n return [null, $string];\n }\n\n [$name, $substr] = Name($substr);\n if ($name === null) {\n Parser::throwSyntax('Name', $substr);\n }\n\n [$directives, $substr] = DirectivesConst($substr, 'INPUT_OBJECT');\n [$fields, $substr] = InputFieldsDefinition($substr);\n if ($fields === null) {\n Parser::throwInvalid(\n \"`input $name` must define one or more input fields.\",\n $substr\n );\n }\n\n $definition = [];\n\n if ($description !== null) {\n $definition['description'] = $description;\n }\n\n if ($directives !== null) {\n $definition['directives'] = $directives;\n }\n\n if ($fields !== null) {\n $definition['fields'] = $fields;\n }\n\n $definition['name'] = $name;\n $definition['type'] = 'input';\n return [$definition, $substr];\n}", "private static function _getPrivateProp($obj, $name)\n {\n $arraized = (array)$obj;\n foreach ($arraized as $k => $v) {\n if (substr($k, -strlen($name)) === $name) {\n return $v;\n }\n }\n throw new Exception\\CMS(\n \"Cannot find $name property in \\Zend_Cache_Backend_Memcached; properties are: \" \n . array_map('addslashes', array_keys($arraized))\n );\n }", "function get_object_name()\n {\n return $this->_object_name;\n }", "protected function getFormObjectName() {}", "public function getObjectName($objectId)\n {\n $image = $this->nextGenGallery->getImage($objectId);\n return is_object($image) ? $image->filename : '';\n }", "public function getObject(): mixed\n {\n // how can i derive this class from a string?\n if (!$object = call_user_func('App\\\\'.ucfirst($this->object_type).'::find', $this->object_id)) {\n return $object;\n }\n\n return null;\n }", "public abstract function objectsClassName();", "public function parseFunctionName()\n {\n $type = $this->tokenizer->peek();\n switch ($type) {\n\n case PHP_Depend_TokenizerI::T_CLONE:\n case PHP_Depend_TokenizerI::T_STRING:\n case PHP_Depend_TokenizerI::T_USE:\n case PHP_Depend_TokenizerI::T_GOTO:\n case PHP_Depend_TokenizerI::T_NULL:\n case PHP_Depend_TokenizerI::T_SELF:\n case PHP_Depend_TokenizerI::T_TRUE:\n case PHP_Depend_TokenizerI::T_FALSE:\n case PHP_Depend_TokenizerI::T_NAMESPACE:\n case PHP_Depend_TokenizerI::T_DIR:\n case PHP_Depend_TokenizerI::T_NS_C:\n case PHP_Depend_TokenizerI::T_PARENT:\n return $this->consumeToken($type)->image;\n\n case PHP_Depend_TokenizerI::T_EOF:\n throw new PHP_Depend_Parser_TokenStreamEndException($this->tokenizer);\n }\n throw new PHP_Depend_Parser_UnexpectedTokenException(\n $this->tokenizer->next(),\n $this->tokenizer->getSourceFile()\n );\n }", "public function resolve(string $className): object;", "function fieldToPath($object, $path) {\n if (!is_object($object)) {\n throw new Exception('Object not found');\n }\n $parts = explode('_', $path);\n if (count($parts) < 1) {\n throw new Exception('No path is given');\n }\n foreach ($parts as $method) {\n try {\n $object = $object->$method();\n } catch (Exception $ex) {\n throw new Exception(\"Method $method Doesn't Exist\");\n }\n }\n return $object;\n}", "private function parseInterfaceName()\n {\n if (!$this->module || !$this->namespace || !$this->entityName) {\n $interface = ltrim($this->interface, '\\\\');\n $parts = explode('\\\\', $interface);\n if (count($parts) < 5) {\n throw new \\InvalidArgumentException(\"Interface name does not comply with the Magento standards\");\n }\n $basename = $parts[count($parts) - 1];\n if (substr($basename, -strlen('Interface')) !== 'Interface') {\n throw new \\InvalidArgumentException(\"Interface name must end with the string 'Interface'\");\n }\n $this->namespace = $parts[0];\n $this->module = $parts[1];\n $entityName = substr($basename, 0, strlen($basename) - strlen('Interface'));\n $this->entityName = strtolower(\n trim(\n preg_replace(\n '/([A-Z]|[0-9]+)/',\n \"_$1\",\n $entityName\n ),\n '_'\n )\n );\n }\n }", "private function parseTemplateName($template, $object)\n {\n foreach ([\n 'POST_TYPE',\n 'POST_NAME',\n 'USER_NICENAME',\n 'ID',\n 'SLUG',\n 'TERM_ID',\n 'TERM_TAXONOMY',\n 'PAGENAME',\n ] as $placeholder) {\n $variable = strtolower($placeholder);\n\n if ($placeholder == 'PAGENAME') {\n $variable = 'post_name';\n }\n\n if (preg_match(\"/\\[\" . $placeholder . \"\\]/\", $template) and isset($object->query_var)) {\n $template = str_replace(\"[{$placeholder}]\", $object->query_var, $template);\n }\n\n if (preg_match(\"/\\[\" . $placeholder . \"\\]/\", $template) and isset($object->$variable)) {\n $template = str_replace(\"[{$placeholder}]\", $object->$variable, $template);\n break;\n }\n }\n\n if (preg_match(\"/\\[ATTACHMENT_TYPE\\]/\", $template) and isset($object->post_mime_type)) {\n if (strpos($object->post_mime_type, '/')) {\n list($type, $subtype) = explode('/', $object->post_mime_type);\n } else {\n list($type, $subtype) = array($object->post_mime_type, '');\n }\n\n $template = str_replace(\n ['ATTACHMENT_TYPE','ATTACHMENT_SUBTYPE'],\n [$type, $subtype],\n $template\n );\n }\n\n return $template;\n }" ]
[ "0.5802275", "0.5501752", "0.54108125", "0.5397806", "0.53741467", "0.5369286", "0.5352439", "0.52680653", "0.52236485", "0.514755", "0.508375", "0.5054798", "0.5023116", "0.49690482", "0.49490222", "0.4940984", "0.49369556", "0.48798388", "0.48798388", "0.4877567", "0.48564443", "0.48527262", "0.48527262", "0.48527262", "0.48453045", "0.48398328", "0.4814363", "0.47831738", "0.4769108", "0.47494894", "0.47344607", "0.47342917", "0.47321776", "0.47291738", "0.47234756", "0.47176343", "0.470673", "0.46890587", "0.46866953", "0.46750438", "0.46725854", "0.4666254", "0.46467045", "0.46417803", "0.46417803", "0.46376744", "0.46246296", "0.4615797", "0.46146733", "0.46073034", "0.4604585", "0.46043682", "0.46041924", "0.45978954", "0.4590778", "0.4582533", "0.4582533", "0.4582533", "0.4582533", "0.45666155", "0.4557194", "0.4557194", "0.4557194", "0.4557194", "0.4557194", "0.4557194", "0.4557194", "0.45555606", "0.45541424", "0.45541424", "0.45526972", "0.45526972", "0.45526972", "0.45474583", "0.45461908", "0.45232067", "0.45207673", "0.45138323", "0.45137146", "0.44937086", "0.44912073", "0.44883543", "0.44815093", "0.44699004", "0.4466832", "0.4463988", "0.44557387", "0.44482344", "0.4443877", "0.44426277", "0.4433486", "0.44328415", "0.4422052", "0.44194043", "0.4418788", "0.44169018", "0.44157052", "0.44148305", "0.44129276", "0.44033706" ]
0.5818876
0
Parses child reflection objects from the token stream.
protected function parseChildren(Stream $tokenStream, IReflection $parent) { // To be defined in child classes return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract protected function parse(Stream $tokenStream, IReflection $parent);", "final protected function parseStream(Stream $tokenStream, IReflection $parent = null)\n\t{\n\t\t$this->fileName = $tokenStream->getFileName();\n\n\t\t$this\n\t\t\t->processParent($parent, $tokenStream)\n\t\t\t->parseStartLine($tokenStream)\n\t\t\t->parseDocComment($tokenStream, $parent)\n\t\t\t->parse($tokenStream, $parent)\n\t\t\t->parseChildren($tokenStream, $parent)\n\t\t\t->parseEndLine($tokenStream);\n\t}", "protected function initializeReflection() {}", "private function parseFields(): void\n {\n foreach ($this->reflect->getProperties() as $item) {\n $name = $item->getName();\n if (in_array($name, self::SKIP_FIELDS, true)) {\n continue;\n }\n\n $docblock = $item->getDocComment();\n $defType = $this->getFieldType($name, $docblock);\n $varType = $this->getVarType($name, $docblock);\n $isRequired = $this->isRequired($name, $docblock);\n $storage = &$this->fieldsBuffer[$defType];\n\n switch ($defType) {\n case self::FIELD_SIMPLE_TYPE:\n $storage[] = $this->processSimpleField($name, $varType, $isRequired);\n break;\n case self::FIELD_DATE_TYPE:\n $storage[] = $this->processDateField($name, $varType, $isRequired);\n break;\n case self::FIELD_MO_TYPE:\n $storage[] = $this->processManyToOneField($name, $varType, $isRequired);\n break;\n case self::FIELD_OM_TYPE:\n $storage[] = $this->processOneToManyField($name);\n break;\n }\n }\n\n unset($storage);\n }", "function parse() {\n while (true) {\n $object = $this->readObject();\n\n if (!$object) {\n break;\n }\n\n if (!$object->ischild) {\n $this->objects[] = $object;\n }\n }\n\n return $this->objects;\n }", "private function _parseClass()\n {\n // check which interfaces are implemented\n $interfaces = $this->_reflectionClass->getInterfaceNames();\n foreach ($interfaces as $i) {\n if ($i == 'Webiny\\Component\\Rest\\Interfaces\\AccessInterface') {\n $this->_parsedClass->accessInterface = true;\n }\n\n if ($i == 'Webiny\\Component\\Rest\\Interfaces\\CacheKeyInterface') {\n $this->_parsedClass->cacheKeyInterface = true;\n }\n }\n }", "protected function processParent(IReflection $parent, Stream $tokenStream)\n\t{\n\t\t// To be defined in child classes\n\t\treturn $this;\n\t}", "public static function parse($stream)\n {\n $parent = new self();\n\n $parent->setIndex(substr($stream, 0, strpos($stream, ' ')));\n $stream = str_replace($parent->getIndex() . ' 0 obj', '[{parent_index}] 0 obj', $stream);\n\n // Determine the kids count.\n $matches = [];\n preg_match('/\\/Count\\s\\d*/', $stream, $matches);\n $count = $matches[0];\n $count = str_replace('/Count ', '', $count);\n $stream = str_replace('Count ' . $count, 'Count [{count}]', $stream);\n\n // Determine the kids object indices.\n $kids = trim(substr($stream, (strpos($stream, '/Kids') + 5)));\n $kids = (substr($kids, 0, 1) == '[') ? substr($kids, 0, strpos($kids, ']') + 1) :\n substr($kids, 0, (strpos($kids, ' R') + 2));\n\n $kidIndices = $parent->getDictionaryReferences(substr($stream, (strpos($stream, '/Kids') + 5)));\n\n $parent->setKids($kidIndices);\n $parent->setData(str_replace($kids, '[[{kids}]]', $stream) . \"\\n\");\n\n return $parent;\n }", "private function parseParents(): void\n {\n $key1 = $this->tokens->keyByOrdinal(0);\n $key2 = $this->tokens->findFirstToken('{');\n $tokens = $this->tokens->slice($key1, $key2);\n\n $weight = 0;\n $this->parseParentsExtends($tokens, $weight);\n $this->parseParentsInterfaces($tokens, $weight);\n $this->parseParentsTraits($weight);\n }", "abstract protected function parseName(Stream $tokenStream);", "public function parse()\n {\n $this->initProps();\n $this->initParams();\n $this->load();\n }", "private function buildClassMeta()\n {\n // Search meta informations before going to reflection and then, ast parsing\n foreach ($this->data as $line) {\n $line = trim($line);\n\n // Namespace search\n if (preg_match(self::NAMESPACE_PATTERN, $line, $matches) === 1) {\n $this->context->setCurrentNamespace(trim($matches[1]));\n continue;\n }\n\n // Class name\n if (preg_match(self::DEFINITION_PATTERN, $line, $matches) === 1) {\n $this->context->setClassName(trim($matches[1]));\n break; // Stop after class found, let the reflection do the next job\n }\n\n // Uses\n if (preg_match(self::USE_PATTERN, $line, $matches) === 1) {\n $this->context->addUse($matches[1]);\n continue;\n }\n }\n }", "abstract public function processClass (ReflectionClass $class);", "private function _parseMethods()\n {\n $methods = $this->_reflectionClass->getMethods();\n if (!is_array($methods) || count($methods) < 1) {\n throw new RestException('Parser: The class \"' . $this->_class . '\" doesn\\'t have any methods defined.');\n }\n\n foreach ($methods as $m) {\n if ($m->isPublic()) {\n $methodParser = new MethodParser($this->_class, $m, $this->_normalize);\n $parsedMethod = $methodParser->parse();\n if ($parsedMethod) {\n $this->_parsedClass->addApiMethod($parsedMethod);\n }\n }\n }\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'detectionStatus' => fn(ParseNode $n) => $o->setDetectionStatus($n->getEnumValue(DetectionStatus::class)),\n 'imageFile' => fn(ParseNode $n) => $o->setImageFile($n->getObjectValue([FileDetails::class, 'createFromDiscriminatorValue'])),\n 'mdeDeviceId' => fn(ParseNode $n) => $o->setMdeDeviceId($n->getStringValue()),\n 'parentProcessCreationDateTime' => fn(ParseNode $n) => $o->setParentProcessCreationDateTime($n->getDateTimeValue()),\n 'parentProcessId' => fn(ParseNode $n) => $o->setParentProcessId($n->getIntegerValue()),\n 'parentProcessImageFile' => fn(ParseNode $n) => $o->setParentProcessImageFile($n->getObjectValue([FileDetails::class, 'createFromDiscriminatorValue'])),\n 'processCommandLine' => fn(ParseNode $n) => $o->setProcessCommandLine($n->getStringValue()),\n 'processCreationDateTime' => fn(ParseNode $n) => $o->setProcessCreationDateTime($n->getDateTimeValue()),\n 'processId' => fn(ParseNode $n) => $o->setProcessId($n->getIntegerValue()),\n 'userAccount' => fn(ParseNode $n) => $o->setUserAccount($n->getObjectValue([UserAccount::class, 'createFromDiscriminatorValue'])),\n ]);\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'description' => fn(ParseNode $n) => $o->setDescription($n->getStringValue()),\n 'displayName' => fn(ParseNode $n) => $o->setDisplayName($n->getStringValue()),\n 'members' => fn(ParseNode $n) => $o->setMembers($n->getCollectionOfObjectValues([Identity::class, 'createFromDiscriminatorValue'])),\n ]);\n }", "protected function parseTokens()\n {\n // Recursively traverse the inheritance chain defined by $this->parent\n\n if ($this->parent !== $this) return $this->parent->parseTokens();\n\n // Alias properties to local variables, initialize them\n\n $line =& $this->line; $line = 1;\n $i =& $this->index; $i = 0;\n $inString =& $this->inString; $inString = 0;\n $types =& $this->types; $types = array();\n $texts =& $this->texts; $texts = array('');\n $prevType =& $this->prevType; $prevType = false;\n $penuType =& $this->penuType; $penuType = false;\n $tokens =& $this->tokens;\n $reg =& $this->tokenRegistry;\n\n $j = 0;\n $curly = 0;\n $curlyPool = array();\n\n while (isset($tokens[$i]))\n {\n $t =& $tokens[$i]; // Get the next token\n unset($tokens[$i++]); // Free memory and move $this->index forward\n\n // Set primary type and handle string interpolation context:\n // - tag closing braces as T_CURLY_CLOSE when they are opened with curly braces\n // tagged as T_CURLY_OPEN or T_DOLLAR_OPEN_CURLY_BRACES, to make\n // them easy to separate from regular code \"{\" / \"}\" pairs,\n // - tag arrays' or objects' string indexes as T_STR_STRING.\n\n $priType = 1; // T_SEMANTIC\n\n if (isset($t[1]))\n {\n if ($inString & 1) switch ($t[0])\n {\n case T_VARIABLE:\n case T_STR_STRING:\n case T_CURLY_OPEN:\n case T_CURLY_CLOSE:\n case T_END_HEREDOC:\n case T_ENCAPSED_AND_WHITESPACE:\n case T_DOLLAR_OPEN_CURLY_BRACES: break;\n case T_STRING:\n if ('[' === $prevType || T_OBJECT_OPERATOR === $prevType)\n {\n $t[0] = T_STR_STRING;\n break;\n }\n case T_NUM_STRING: if ('[' === $prevType) break;\n case T_OBJECT_OPERATOR: if (T_VARIABLE === $prevType) break;\n default:\n if ('[' === $prevType && preg_match(\"/^[_a-zA-Z]/\", $t[1][0])) $t[0] = T_STR_STRING;\n else $t[0] = T_ENCAPSED_AND_WHITESPACE;\n }\n else if ('b\"' === $t) $t = array('\"', 'b\"'); // Binary string syntax b\"...\"\n else switch ($t[0])\n {\n case T_WHITESPACE:\n case T_COMMENT:\n case T_DOC_COMMENT:\n case T_BAD_CHARACTER: $priType = 2; // T_NON_SEMANTIC\n }\n }\n else\n {\n $t = array($t, $t);\n\n if ($inString & 1) switch ($t[0])\n {\n case '\"':\n case '`': break;\n case ']': if (T_STR_STRING === $prevType || T_NUM_STRING === $prevType) break;\n case '[': if (T_VARIABLE === $prevType && '[' === $t[0]) break;\n default: $t[0] = T_ENCAPSED_AND_WHITESPACE;\n }\n else if ('}' === $t[0] && !$curly) $t[0] = T_CURLY_CLOSE;\n }\n\n // Trigger callbacks\n\n if (isset($reg[$t[0]]) || isset($reg[$priType]))\n {\n $n = $t[0];\n $t[2] = array($priType => $priType);\n\n if (isset($reg[$priType])) $callbacks = $reg[$priType];\n else $callbacks = array();\n\n for (;;)\n {\n $t[2][$n] = $n;\n\n if (isset($reg[$n]))\n {\n $callbacks += $reg[$n];\n\n // Callback triggers are always ordered:\n // - first by parsers' instanciation order\n // - then by callbacks' registration order\n // - callbacks registered with a tilde prefix\n // are then called in reverse order.\n ksort($callbacks);\n }\n\n foreach ($callbacks as $k => $c)\n {\n unset($callbacks[$k]);\n\n // $t is the current token:\n // $t = array(\n // 0 => token's main type - a single character or a T_* constant,\n // as returned by token_get_all()\n // 1 => token's text - its source code excerpt as a string\n // 2 => an array of token's types and subtypes\n // )\n\n if ($k < 0)\n {\n $n = $c[0]->{$c[1]}($t);\n\n // Non-tilde-prefixed callbacks can return:\n // - false, which cancels the current token\n // - a new token type, which is added to $t[2] and loads the\n // related callbacks in the current callbacks stack\n // - or nothing (null)\n\n if (false === $n) continue 3;\n if ($n && empty($t[2][$n])) continue 2;\n }\n else if (null !== $c[0]->{$c[1]}($t))\n {\n user_error(\"No return value is expected for tilde-registered callback: \" . get_class($c[0]) . '->' . $c[1] . '()', E_USER_NOTICE);\n }\n }\n\n break;\n }\n }\n\n // Commit to $this->texts\n\n $texts[++$j] =& $t[1];\n\n if (2 === $priType) // T_NON_SEMANTIC\n {\n $line += substr_count($t[1], \"\\n\");\n continue;\n }\n\n // For semantic tokens only: populate $this->types, $this->prevType and $this->penuType\n\n $penuType = $prevType;\n $types[$j] = $prevType = $t[0];\n\n // Parsing context analysis related to string interpolation and line numbering\n\n if (isset($prevType[0])) switch ($prevType)\n {\n case '{': ++$curly; break;\n case '}': --$curly; break;\n case '\"':\n case '`': $inString += ($inString & 1) ? -1 : 1;\n }\n else switch ($prevType)\n {\n case T_CONSTANT_ENCAPSED_STRING:\n case T_ENCAPSED_AND_WHITESPACE:\n case T_OPEN_TAG_WITH_ECHO:\n case T_INLINE_HTML:\n case T_CLOSE_TAG:\n case T_OPEN_TAG:\n $line += substr_count($t[1], \"\\n\");\n break;\n\n case T_DOLLAR_OPEN_CURLY_BRACES:\n case T_CURLY_OPEN: $curlyPool[] = $curly; $curly = 0;\n case T_START_HEREDOC: ++$inString; break;\n\n case T_CURLY_CLOSE: $curly = array_pop($curlyPool);\n case T_END_HEREDOC: --$inString; break;\n\n case T_HALT_COMPILER:\n 4 === $this->haltCompilerTail and $this->register('tagHaltCompilerData');\n break;\n }\n }\n\n // Free memory thanks to copy-on-write\n $j = $texts;\n $types = $texts = $tokens = $reg = $this->parents = $this->parent = null;\n return $j;\n }", "private function parseOpenGraphObjects()\n {\n foreach ($this->getOpenGraphObjectTypes() as $objectType => $objectTypeClass) {\n /** @var \\Illuminate\\Support\\Collection $tags */\n $tags = $this->getAllByNamespace($objectType);\n if ($tags->isEmpty()) {\n continue;\n }\n\n $this->openGraph['objects'][$objectType] = new $objectTypeClass($tags);\n }\n }", "static private function parse_file($path)\n\t{\n\t\t$tokens = token_get_all(file_get_contents($path));\n\t\t$namespace = null;\n\t\t$update_constructors = [];\n\n\t\tfor ($i = 0, $j = count($tokens) ; $i < $j ; $i++)\n\t\t{\n\t\t\t$token = $tokens[$i];\n\n\t\t\tif (!is_array($token))\n\t\t\t{\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tlist($token_id, $value, $line) = $token;\n\n\t\t\tswitch ($token_id)\n\t\t\t{\n\t\t\t\tcase \\T_NAMESPACE:\n\n\t\t\t\t\t$namespace = self::parser_resolve_namespace($tokens, $i);\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \\T_CLASS:\n\n\t\t\t\t\t$class_name_token = $tokens[$i + 2];\n\t\t\t\t\t$class_name = $class_name_token[1];\n\n\t\t\t\t\t$class_annotation_token = $tokens[$i - 2];\n\n\t\t\t\t\tif (!is_array($class_annotation_token))\n\t\t\t\t\t{\n\t\t\t\t\t\techo \"Missing annotation for class $class_name\\n\";\n\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\n\t\t\t\t\t$class_annotation = $class_annotation_token[1];\n\n\t\t\t\t\t$update_constructors[] = new UpdateDescriptor($namespace . '\\\\' . $class_name, $class_annotation, $path, $line);\n\t\t\t}\n\t\t}\n\n\t\treturn $update_constructors;\n\t}", "public function deserialize($strToken);", "public function ParseInput() {\n\t\t$actState = self::S_START;\n\t\t$actClass = \"\";\n\t\t$accessModifier = \"private\";\n\t\t$actMethod = \"\";\n\t\t$type = NULL; // Method | atribut type\n\n\t\twhile (!$this->isEOF()) {\n\t\t\t// Zacatek konecneho automatu\n\t\t\tif ($actState == self::S_START) {\n\t\t\t\t$to = $this->whiteSpace;\n\t\t\t\t$this->ReadTo($to);\n\n\t\t\t\t$actState = self::S_CLASS_NAME;\n\t\t\t}\n\t\t\t// Nacteni nazvu tridy\n\t\t\telse if ($actState == self::S_CLASS_NAME) {\n\t\t\t\t$to = array(\"{\", \":\");\n\t\t\t\t$data = $this->ReadTo($to);\n\t\t\t\t$data = preg_replace('/\\s+/', '', $data);\n\n\t\t\t\t// Pridany nazev tridy do objektu\n\t\t\t\t$this->model[$data] = new TemplateClass($data, $this->conflicts);\n\n\t\t\t\t$actClass = $data;\n\t\t\t\t$this->dataTypes[] = $data;\n\t\t\t\t$this->dataTypes[] = \"~\".$data;\n\t\t\t\tif ($this->GetPreviousChar() == \":\")\n\t\t\t\t\t$actState = self::S_INHERITANCE;\n\t\t\t\telse\n\t\t\t\t\t$actState = self::S_BODY;\n\t\t\t}\n\t\t\t// Nacteni trid, ze kterych se dedi\n\t\t\telse if ($actState == self::S_INHERITANCE) {\n\t\t\t\t$to = array(\",\", \"{\");\n\t\t\t\t$data = $this->ReadTo($to);\n\t\t\t\t$data = preg_split('/\\s+/', $data, NULL, PREG_SPLIT_NO_EMPTY);\n\n\t\t\t\t// Ulozeni informaci o tride, ze ktere se dedi\n\t\t\t\t// Osetreni pokud se dedi z nezname tridy\n\t\t\t\tif (count($data) == 2) {\n\t\t\t\t\tif (!array_key_exists($data[1], $this->model))\n\t\t\t\t\t\tthrow new customException(\"Input file error\", self::E_UNKNOWN);\n\n\t\t\t\t\t$this->model[$data[1]]->addChild($actClass);\n\t\t\t\t\t$this->model[$actClass]->CopyClass($this->model[$data[1]], $data[0]);\n\t\t\t\t\t$this->model[$actClass]->AddParentClass($data[0], $data[1]);\n\t\t\t\t} else {\n\t\t\t\t\tif (!array_key_exists($data[0], $this->model))\n\t\t\t\t\t\tthrow new customException(\"Input file error\", self::E_UNKNOWN);\n\n\t\t\t\t\t$this->model[$data[0]]->addChild($actClass);\n\t\t\t\t\t$this->model[$actClass]->CopyClass($this->model[$data[0]], \"private\");\n\t\t\t\t\t$this->model[$actClass]->AddParentClass(\"private\", $data[0]);\n\t\t\t\t}\n\n\t\t\t\tif ($this->GetPreviousChar() == \",\")\n\t\t\t\t\t$actState = self::S_INHERITANCE;\n\t\t\t\telse\n\t\t\t\t\t$actState = self::S_BODY;\n\t\t\t}\n\t\t\t// Nacitavani tela tridy\n\t\t\telse if ($actState == self::S_BODY) {\n\t\t\t\t$this->RemoveWhiteSpace(); // Odstraneni bilych znaku pred ctenim\n\t\t\t\t$data = \"\";\n\t\t\t\t$search = false;\n\n\t\t\t\t// Kontrola na klicove slova\n\t\t\t\t// private|public|protected OR using OR static|virtual OR int,float...\n\t\t\t\twhile (true) {\n\t\t\t\t\t$char = $this->ReadChar();\n\t\t\t\t\t$data .= $char;\n\n\t\t\t\t\t// Pokud je prazdne telo, preskoci se na konec tridy.\n\t\t\t\t\tif ($char == \"}\") {\n\t\t\t\t\t\t$actState = self::S_END_BODY_CLASS;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t// Using\n\t\t\t\t\telse if ($data == \"using\") {\n\t\t\t\t\t\t$actState = self::S_USING_CLASS;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t// Modifikatory pristupu - public|private|protected\n\t\t\t\t\telse if (in_array($data, $this->accessModifiers)) {\n\t\t\t\t\t\t$actState = self::S_ACCESS_MODIFIERS;\n\t\t\t\t\t\t$search = true;\n\t\t\t\t\t}\n\t\t\t\t\t// Typ metody\n\t\t\t\t\telse if (in_array($data, $this->methodType)) {\n\t\t\t\t\t\t$actState = self::S_METHOD_TYPE;\n\t\t\t\t\t\t$search = true;\n\t\t\t\t\t}\n\t\t\t\t\t// Datove typy\n\t\t\t\t\telse if (in_array($data, $this->dataTypes)) {\n\t\t\t\t\t\t$actState = self::S_DATA_TYPE_AND_NAME;\n\t\t\t\t\t\t$search = true;\n\t\t\t\t\t} else if ($char == \";\")\n\t\t\t\t\t\tthrow new customException(\"Input file error.\", self::E_UNKNOWN);\n\n\t\t\t\t\t// Posun ukazatele v souboru na stav pred zacatkem nacitavani\n\t\t\t\t\tif ($search) {\n\t\t\t\t\t\t$this->ReturnCharToFile(strlen($data));\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\t// Zpracovani konce tridy\n\t\t\telse if ($actState == self::S_END_BODY_CLASS) {\n\t\t\t\t$to = array(\";\");\n\t\t\t\t$this->ReadTo($to);\n\n\t\t\t\tif ($this->GetPreviousChar() == \";\")\n\t\t\t\t\t$actState = self::S_START;\n\n\t\t\t\tif ($this->model[$actClass]->CheckClass())\n\t\t\t\t\t$this->conflictClass[] = $actClass;\n\n\t\t\t\t$accessModifier = \"private\";\n\t\t\t}\n\t\t\t// Zpracovani modifikatoru pristupu\n\t\t\telse if ($actState == self::S_ACCESS_MODIFIERS) {\n\t\t\t\t$to = array(\":\");\n\t\t\t\t$data = $this->ReadTo($to);\n\n\t\t\t\t$accessModifier = $data;\n\t\t\t\t$actState = self::S_BODY;\n\t\t\t}\n\t\t\t// Zpracovani typu metody|atributu - virtual|static\n\t\t\telse if ($actState == self::S_METHOD_TYPE) {\n\t\t\t\t$to = $this->whiteSpace;\n\t\t\t\t$type = $this->ReadTo($to);\n\n\t\t\t\t$actState = self::S_BODY;\n\t\t\t}\n\t\t\t// Zpracovani datoveho typu a nazvu promenne/metody\n\t\t\telse if ($actState == self::S_DATA_TYPE_AND_NAME) {\n\t\t\t\t$to = array(\";\", \"(\");\n\t\t\t\t$data = $this->parseMethodArg($this->ReadTo($to));\n\n\t\t\t\tif ($this->GetPreviousChar() == \"(\") {\n\t\t\t\t\t$this->model[$actClass]->addClassMethod($accessModifier, $type, $data[0], $data[1]);\n\t\t\t\t\t$actState = self::S_METHOD_ARGV;\n\t\t\t\t} else {\n\t\t\t\t\t$this->model[$actClass]->addAttributeClass($accessModifier, $type, $data[0], $data[1]);\n\t\t\t\t\t$actState = self::S_BODY;\n\t\t\t\t}\n\t\t\t\t$actMethod = $data[1];\n\t\t\t\t$type = NULL;\n\t\t\t}\n\t\t\t// Prechod do zpristupneni metody|atributu\n\t\t\telse if ($actState == self::S_USING_CLASS) {\n\t\t\t\t$to = array(\";\");\n\t\t\t\t$data = $this->ReadTo($to);\n\t\t\t\t$data = str_replace(\"::\", \" \", $data);\n\t\t\t\t$data = preg_split('/\\s+/', $data, NULL, PREG_SPLIT_NO_EMPTY);\n\n\t\t\t\t$this->model[$actClass]->addUsing($this->model[$data[0]], $data[1], $accessModifier);\n\n\t\t\t\t$actState = self::S_BODY;\n\t\t\t}\n\t\t\t// Zpracovani argumentu metody\n\t\t\telse if ($actState == self::S_METHOD_ARGV) {\n\t\t\t\t$to = array(\",\", \")\");\n\n\t\t\t\t$data =$this->parseMethodArg($this->ReadTo($to));\n\n\t\t\t\t$this->model[$actClass]->addMethodArg($actMethod, $data[0], $data[1]);\n\n\t\t\t\tif ($this->GetPreviousChar() == \",\" && count($data) != 0)\n\t\t\t\t\t$actState = self::S_METHOD_ARGV;\n\t\t\t\telse\n\t\t\t\t\t$actState = self::S_ABSTRACT_METHOD;\n\t\t\t}\n\t\t\t// Zpracovani abstraktni metody\n\t\t\telse if ($actState == self::S_ABSTRACT_METHOD) {\n\t\t\t\t$to = array(\";\", \"}\");\n\t\t\t\t$data = $this->ReadTo($to);\n\t\t\t\t$data = preg_replace('/\\s+/', '', $data);\n\n\t\t\t\tif ($data == \"=0\")\n\t\t\t\t\t$this->model[$actClass]->setVirtualPure();\n\n\t\t\t\t$actState = self::S_BODY;\n\t\t\t}\n\t\t\telse\n\t\t\t\t$actState = self::S_BODY;\n\t\t}\n\t}", "protected function parse() {}", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'currentLabel' => fn(ParseNode $n) => $o->setCurrentLabel($n->getObjectValue([CurrentLabel::class, 'createFromDiscriminatorValue'])),\n 'discoveredSensitiveTypes' => fn(ParseNode $n) => $o->setDiscoveredSensitiveTypes($n->getCollectionOfObjectValues([DiscoveredSensitiveType::class, 'createFromDiscriminatorValue'])),\n ]);\n }", "protected function parse()\n {\n\t$event_lines = explode(HCAL_LINE_SPLITER, $this->_Content);\n\n\tforeach ($event_lines as $line)\n\t{\n\t $result = $this->parseProperty($line);\n\t $this->_Properties[$result['name']] = $result['value'];\n\t}\n }", "function _postProcess() {\r\n $item = current($this->_struct);\r\n \r\n $ret = array('_name'=>$item['tag'], '_attributes'=>array(), '_value'=>null);\r\n\r\n if (isset($item['attributes']) && count($item['attributes'])>0) {\r\n foreach ($item['attributes'] as $key => $data) {\r\n if (!is_null($data)) {\r\n $item['attributes'][$key] = str_replace($this->_replaceWith, $this->_replace, $item['attributes'][$key]);\r\n }\r\n }\r\n $ret['_attributes'] = $item['attributes'];\r\n if ($this->attributesDirectlyUnderParent)\r\n $ret = array_merge($ret, $item['attributes']);\r\n }\r\n\r\n if (isset($item['value']) && $item['value'] != null)\r\n $item['value'] = str_replace($this->_replaceWith, $this->_replace, $item['value']);\r\n \r\n switch ($item['type']) {\r\n case 'open':\r\n $children = array();\r\n while (($child = next($this->_struct)) !== FALSE ) {\r\n if ($child['level'] <= $item['level'])\r\n break;\r\n \r\n $subItem = $this->_postProcess();\r\n \r\n if (isset($subItem['_name'])) {\r\n if (!isset($children[$subItem['_name']]))\r\n $children[$subItem['_name']] = array();\r\n \r\n $children[$subItem['_name']][] = $subItem;\r\n }\r\n else {\r\n foreach ($subItem as $key=>$value) {\r\n if (isset($children[$key])) {\r\n if (is_array($children[$key]))\r\n $children[$key][] = $value;\r\n else\r\n $children[$key] = array($children[$key], $value);\r\n }\r\n else {\r\n $children[$key] = $value;\r\n }\r\n }\r\n }\r\n }\r\n \r\n if ($this->childTagsDirectlyUnderParent)\r\n $ret = array_merge($ret, $this->_condenseArray($children));\r\n else\r\n $ret['_value'] = $this->_condenseArray($children);\r\n \r\n break;\r\n case 'close':\r\n break;\r\n case 'complete':\r\n if (count($ret['_attributes']) > 0) {\r\n if (isset($item['value']))\r\n $ret['_value'] = $item['value'];\r\n }\r\n else {\r\n\t\t\tif (isset($item['value'])) {\r\n\t\t\t\t$ret = array($item['tag']=> $item['value']);\r\n\t\t\t} else {\r\n\t\t\t\t$ret = array($item['tag']=> \"\");\r\n\t\t\t}\r\n }\r\n break;\r\n }\r\n\r\n //added by Dan Coulter\r\n\r\n \r\n /*\r\n foreach ($ret as $key => $data) {\r\n if (!is_null($data) && !is_array($data)) {\r\n $ret[$key] = str_replace($this->_replaceWith, $this->_replace, $ret[$key]);\r\n }\r\n }\r\n */\r\n return $ret;\r\n }", "private static function fromStdClass(\\stdClass $token, array $aliases = array())\n {\n\n // iterate over the tokens values to process them recursively\n foreach ($token->values as $name => $value) {\n // query whether we've an array\n if (is_array($value)) {\n // iterate over all values of the array an process them recursively\n foreach ($value as $key => $val) {\n // query whether we've a nested annotation\n if (is_object($val)) {\n $token->values[$name][$key] = ReflectionAnnotation::fromStdClass($val, $aliases);\n }\n }\n }\n\n // query whether we've a nested annotation\n if (is_object($value)) {\n $token->values[$name] = ReflectionAnnotation::fromStdClass($value, $aliases);\n }\n }\n\n // initialize and return the reflection annotation\n return new ReflectionAnnotation($token->name, $token->values);\n }", "final public static function getValueDefinition(array $tokens, ReflectionBase $reflection)\n\t{\n\t\tif ($reflection instanceof ReflectionConstant || $reflection instanceof ReflectionFunction) {\n\t\t\t$namespace = $reflection->getNamespaceName();\n\t\t} elseif ($reflection instanceof ReflectionParameter) {\n\t\t\t$namespace = $reflection->getDeclaringFunction()->getNamespaceName();\n\t\t} elseif ($reflection instanceof ReflectionProperty || $reflection instanceof ReflectionMethod) {\n\t\t\t$namespace = $reflection->getDeclaringClass()->getNamespaceName();\n\t\t} else {\n\t\t\tthrow new Exception\\Runtime(sprintf('Invalid reflection object given: \"%s\" (\"%s\")', get_class($reflection), $reflection->getName()), Exception\\Runtime::INVALID_ARGUMENT);\n\t\t}\n\n\t\t$source = self::getSourceCode($tokens);\n\n\t\t$constants = self::findConstants($tokens, $reflection);\n\t\tif (!empty($constants)) {\n\t\t\t$replacements = array();\n\t\t\tforeach ($constants as $constant) {\n\t\t\t\ttry {\n\t\t\t\t\tif (0 === stripos($constant, 'self::') || 0 === stripos($constant, 'parent::')) {\n\t\t\t\t\t\t// handle self:: and parent:: definitions\n\n\t\t\t\t\t\tif ($reflection instanceof ReflectionConstant) {\n\t\t\t\t\t\t\tthrow new Exception\\Runtime('Constants cannot use self:: and parent:: references.', Exception\\Runtime::INVALID_ARGUMENT);\n\t\t\t\t\t\t} elseif ($reflection instanceof ReflectionParameter && null === $reflection->getDeclaringClassName()) {\n\t\t\t\t\t\t\tthrow new Exception\\Runtime('Function parameters cannot use self:: and parent:: references.', Exception\\Runtime::INVALID_ARGUMENT);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (0 === stripos($constant, 'self::')) {\n\t\t\t\t\t\t\t$className = $reflection->getDeclaringClassName();\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$declaringClass = $reflection->getDeclaringClass();\n\t\t\t\t\t\t\t$className = $declaringClass->getParentClassName() ?: self::CONSTANT_NOT_FOUND;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t$constantName = $className . substr($constant, strpos($constant, '::'));\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$constantName = self::resolveClassFQN($constant, $reflection->getNamespaceAliases(), $namespace);\n\t\t\t\t\t\tif ($cnt = strspn($constant, '\\\\')) {\n\t\t\t\t\t\t\t$constantName = str_repeat('\\\\', $cnt) . $constantName;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t$reflection = $reflection->getBroker()->getConstant($constantName);\n\t\t\t\t\t$value = $reflection->getValue();\n\t\t\t\t} catch (Exception\\Runtime $e) {\n\t\t\t\t\t$value = self::CONSTANT_NOT_FOUND;\n\t\t\t\t}\n\n\t\t\t\t$replacements[$constant] = var_export($value, true);\n\t\t\t}\n\t\t\tuksort($replacements, function($a, $b) {\n\t\t\t\t$ca = strspn($a, '\\\\');\n\t\t\t\t$cb = strspn($b, '\\\\');\n\t\t\t\treturn $ca === $cb ? strcasecmp($b, $a) : $cb - $ca;\n\t\t\t});\n\n\t\t\t$source = strtr($source, $replacements);\n\t\t}\n\n\t\treturn eval(sprintf('return %s;', $source));\n\t}", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'clientContext' => fn(ParseNode $n) => $o->setClientContext($n->getStringValue()),\n 'resultInfo' => fn(ParseNode $n) => $o->setResultInfo($n->getObjectValue([ResultInfo::class, 'createFromDiscriminatorValue'])),\n 'status' => fn(ParseNode $n) => $o->setStatus($n->getEnumValue(OperationStatus::class)),\n ]);\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return [\n 'attributeMappings' => fn(ParseNode $n) => $o->setAttributeMappings($n->getCollectionOfObjectValues([AttributeMapping::class, 'createFromDiscriminatorValue'])),\n 'enabled' => fn(ParseNode $n) => $o->setEnabled($n->getBooleanValue()),\n 'flowTypes' => fn(ParseNode $n) => $o->setFlowTypes($n->getEnumValue(ObjectFlowTypes::class)),\n 'metadata' => fn(ParseNode $n) => $o->setMetadata($n->getCollectionOfObjectValues([ObjectMappingMetadataEntry::class, 'createFromDiscriminatorValue'])),\n 'name' => fn(ParseNode $n) => $o->setName($n->getStringValue()),\n '@odata.type' => fn(ParseNode $n) => $o->setOdataType($n->getStringValue()),\n 'scope' => fn(ParseNode $n) => $o->setScope($n->getObjectValue([Filter::class, 'createFromDiscriminatorValue'])),\n 'sourceObjectName' => fn(ParseNode $n) => $o->setSourceObjectName($n->getStringValue()),\n 'targetObjectName' => fn(ParseNode $n) => $o->setTargetObjectName($n->getStringValue()),\n ];\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'events' => fn(ParseNode $n) => $o->setEvents($n->getCollectionOfObjectValues([VirtualEvent::class, 'createFromDiscriminatorValue'])),\n 'webinars' => fn(ParseNode $n) => $o->setWebinars($n->getCollectionOfObjectValues([VirtualEventWebinar::class, 'createFromDiscriminatorValue'])),\n ]);\n }", "public function parse()\n\t{\n\t\t$this->parseGroups();\n\t\t$this->parseBadges();\n\t}", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'completionDateTime' => fn(ParseNode $n) => $o->setCompletionDateTime($n->getDateTimeValue()),\n 'creationDateTime' => fn(ParseNode $n) => $o->setCreationDateTime($n->getDateTimeValue()),\n 'error' => fn(ParseNode $n) => $o->setError($n->getObjectValue([ClassificationError::class, 'createFromDiscriminatorValue'])),\n 'lastUpdatedDateTime' => fn(ParseNode $n) => $o->setLastUpdatedDateTime($n->getDateTimeValue()),\n 'startDateTime' => fn(ParseNode $n) => $o->setStartDateTime($n->getDateTimeValue()),\n ]);\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'content' => fn(ParseNode $n) => $o->setContent($n->getBinaryContent()),\n 'dateTime' => fn(ParseNode $n) => $o->setDateTime($n->getDateTimeValue()),\n 'extension' => fn(ParseNode $n) => $o->setExtension($n->getStringValue()),\n 'extractedTextContent' => fn(ParseNode $n) => $o->setExtractedTextContent($n->getBinaryContent()),\n 'mediaType' => fn(ParseNode $n) => $o->setMediaType($n->getStringValue()),\n 'name' => fn(ParseNode $n) => $o->setName($n->getStringValue()),\n 'otherProperties' => fn(ParseNode $n) => $o->setOtherProperties($n->getObjectValue([StringValueDictionary::class, 'createFromDiscriminatorValue'])),\n 'processingStatus' => fn(ParseNode $n) => $o->setProcessingStatus($n->getEnumValue(FileProcessingStatus::class)),\n 'senderOrAuthors' => function (ParseNode $n) {\n $val = $n->getCollectionOfPrimitiveValues();\n if (is_array($val)) {\n TypeUtils::validateCollectionValues($val, 'string');\n }\n /** @var array<string>|null $val */\n $this->setSenderOrAuthors($val);\n },\n 'size' => fn(ParseNode $n) => $o->setSize($n->getIntegerValue()),\n 'sourceType' => fn(ParseNode $n) => $o->setSourceType($n->getEnumValue(SourceType::class)),\n 'subjectTitle' => fn(ParseNode $n) => $o->setSubjectTitle($n->getStringValue()),\n ]);\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return [\n 'cameraMake' => fn(ParseNode $n) => $o->setCameraMake($n->getStringValue()),\n 'cameraModel' => fn(ParseNode $n) => $o->setCameraModel($n->getStringValue()),\n 'exposureDenominator' => fn(ParseNode $n) => $o->setExposureDenominator($n->getFloatValue()),\n 'exposureNumerator' => fn(ParseNode $n) => $o->setExposureNumerator($n->getFloatValue()),\n 'fNumber' => fn(ParseNode $n) => $o->setFNumber($n->getFloatValue()),\n 'focalLength' => fn(ParseNode $n) => $o->setFocalLength($n->getFloatValue()),\n 'iso' => fn(ParseNode $n) => $o->setIso($n->getIntegerValue()),\n '@odata.type' => fn(ParseNode $n) => $o->setOdataType($n->getStringValue()),\n 'orientation' => fn(ParseNode $n) => $o->setOrientation($n->getIntegerValue()),\n 'takenDateTime' => fn(ParseNode $n) => $o->setTakenDateTime($n->getDateTimeValue()),\n ];\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'preFetchMedia' => fn(ParseNode $n) => $o->setPreFetchMedia($n->getCollectionOfObjectValues([MediaInfo::class, 'createFromDiscriminatorValue'])),\n ]);\n }", "protected function parse()\n {\n if($this->isRelationalKey()){\n $this->parsedValue = $this->makeRelationInstruction();\n } \n else {\n $this->parsedValue = $this->parseFlatValue($this->value);\n } \n }", "public function parse()\n {\n $raw = $this->getRaw();\n $count = count($raw);\n for ($i = 7; $i < $count; $i++) {\n $line = $raw[$i];\n\n $process = new Process(\n $line[11],\n $line[0],\n floatval($line[8]),\n floatval($line[9])\n );\n\n $this->processes[] = $process;\n }\n }", "public function reflect(string $file): ReflectionHierarchy;", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'createdDateTime' => fn(ParseNode $n) => $o->setCreatedDateTime($n->getDateTimeValue()),\n 'description' => fn(ParseNode $n) => $o->setDescription($n->getStringValue()),\n 'displayName' => fn(ParseNode $n) => $o->setDisplayName($n->getStringValue()),\n 'parentSiteId' => fn(ParseNode $n) => $o->setParentSiteId($n->getStringValue()),\n 'scope' => fn(ParseNode $n) => $o->setScope($n->getEnumValue(TermGroupScope::class)),\n 'sets' => fn(ParseNode $n) => $o->setSets($n->getCollectionOfObjectValues([Set::class, 'createFromDiscriminatorValue'])),\n ]);\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'callEventType' => fn(ParseNode $n) => $o->setCallEventType($n->getEnumValue(TeamworkCallEventType::class)),\n 'callId' => fn(ParseNode $n) => $o->setCallId($n->getStringValue()),\n 'initiator' => fn(ParseNode $n) => $o->setInitiator($n->getObjectValue([IdentitySet::class, 'createFromDiscriminatorValue'])),\n ]);\n }", "protected function resolveChildren()\n {\n foreach ($this->unresolvedChildren as $name => $info) {\n $this->children[$name] = $this->create($name, $info['type'], $info['init_options'], $info['exec_options']);\n }\n\n $this->unresolvedChildren = array();\n }", "private function process_line($line)\n\t{\n\t\tswitch($this->_state)\n\t\t{\n\t\t\tcase self::START:\n\t\t\t\tif(preg_match('/<h1>Class[ \\t]+(.+?)<\\/h1>/', $line, $matches))\n\t\t\t\t{\n\t\t\t\t\t$this->log(2, \" Class \".$matches[1]);\n\t\t\t\t\t$this->_cur_class = new ClassDef($matches[1]);\n\t\t\t\t\t$this->_state = self::IN_CLASS;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase self::IN_CLASS:\n\t\t\t\tif(preg_match('/Extends:.*<a ext:cls=\\\"(.+?)\\\"/', $line, $matches))\n\t\t\t\t{\n\t\t\t\t\t$this->log(2, \" :: Extends \".$matches[1]);\n\t\t\t\t\t$this->_cur_class->set_parent_class_name($matches[1]);\n\t\t\t\t}\n\t\t\t\telse if(preg_match('/<h2>(Config Options|Public Properties)<\\/h2>/', $line, $matches))\t\t\n\t\t\t\t{\n\t\t\t\t\t$this->_state = self::IN_PROPERTIES;\t\t\t\t\t\n\t\t\t\t}\t\t\n\t\t\t\tbreak;\n\t\t\tcase self::IN_PROPERTIES:\n\t\t\t\t// TODO Differentiate between:\n\t\t\t\t// - Config Options\n\t\t\t\t// - Public Properties\n\t\t\t\tif(preg_match('/<b>(.+)<\\/b>[ \\t]*:[ \\t]*([A-Za-z0-9\\.\\/]+?)[ \\t]*<div class=\\\"mdesc\\\">/', $line, $matches))\n\t\t\t\t{\n\t\t\t\t\t$this->log(3, \" Property: \".$matches[1].\" (\".$matches[2].\")\");\n\t\t\t\t\t// TODO Handle default\n\t\t\t\t\t$class_name_parts = explode('.', $this->_cur_class->get_name());\t\t\t\t\t\n\t\t\t\t\t$property_name = &$matches[1];\n\t\t\t\t\t$static_property = false;\n\t\t\t\t\tif(false !== strpos($property_name, '.'))\n\t\t\t\t\t{\n\t\t\t\t\t\t$property_name_parts = explode('.', $property_name);\n\t\t\t\t\t\t$c_c_n_p = count($class_name_parts);\n\t\t\t\t\t\t$c_p_n_p = count($property_name_parts);\n\t\t\t\t\t\t$offset = ($class_name_parts[0]=='Ext' ? 1 : 0);\n\t\t\t\t\t\tfor($i=0;$i<$c_c_n_p-$offset; $i++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif($class_name_parts[$i+$offset] == $property_name_parts[0])\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$offset += $i;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif($c_c_n_p-$offset < $c_p_n_p)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$static_property = true;\n\t\t\t\t\t\t\tfor($i=0; $i<$c_c_n_p-$offset; $i++)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif($class_name_parts[$i+$offset] != $property_name_parts[$i])\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t$static_property = false;\n\t\t\t\t\t\t\t\t\tbreak;\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\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t$this->_cur_class->set_property($property_name, '', $static_property, $matches[2]);\n\t\t\t\t}\n\t\t\t\telse if(preg_match('/<h2>Public Methods<\\/h2>/', $line, $matches))\t\t\n\t\t\t\t{\n\t\t\t\t\t$this->_state = self::IN_METHODS;\t\t\t\t\t\n\t\t\t\t}\t\t\n\t\t\t\tbreak;\n\t\t\tcase self::IN_METHODS:\n\t\t\t\tif(preg_match('/<b>(.+)<\\/b>(.+)[ \\t]*<div class=\\\"mdesc\\\">/', $line, $matches))\n\t\t\t\t{\n\t\t\t\t\t// Extract parameters\n\t\t\t\t\t$raw_parameters_array = explode(',', $matches[2]);\n\t\t\t\t\t$method_name = $matches[1];\n\t\t\t\t\t$this->log(3, \" Method: \".$matches[1]);\n\t\t\t\t\t$args = array();\n\t\t\t\t\tforeach($raw_parameters_array as $raw_parameter)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(preg_match(\"/(\\[*)<code>([A-Za-z0-9\\.\\/]+)[ \\t]+(.+)<\\/code>/\", $raw_parameter, $matches))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$this->log(4, \" \".$matches[2].\": \".$matches[1].$matches[3]);\n\t\t\t\t\t\t\tif(false !== strpos($matches[3], 'etc.'))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t// TODO Handle variable number of arguments\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\tif(!ctype_alnum($matches[3][0]))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t$arg_type = $this->normalize_arg_type($matches[3]);\n\t\t\t\t\t\t\t\t\t$matches[3] = $matches[2];\n\t\t\t\t\t\t\t\t\t$matches[2] = $arg_type;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif(false !== strpos($matches[3], '.'))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t// FIXME This assumes that we are only using internal consts...tssk tssk\n\t\t\t\t\t\t\t\t\t// On 2nd thought: ORLY?\n\t\t\t\t\t\t\t\t\tlist(, $arg_name) = explode('.', $matches[3]);\n\t\t\t\t\t\t\t\t\t$matches[3] = 'const_'.$arg_name;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t// Reserved keywords\n\t\t\t\t\t\t\t\tif(in_array($matches[3], self::$RESERVED))\n\t\t\t\t\t\t\t\t\t$matches[3] = self::PREFIX.$matches[3];\n\t\t\t\t\t\t\t\t$args[$matches[3]] = new ArgDef($matches[3], $matches[2], ($matches[1]=='['));\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t$class_name_parts = explode('.', $this->_cur_class->get_name());\n\t\t\t\t\t// Build constructor comparison object and compare\n\t\t\t\t\t$constructor = false;\n\t\t\t\t\t$method_name_parts = explode('.', $method_name);\n\t\t\t\t\t$c_c_n_p = count($class_name_parts);\n\t\t\t\t\t$c_m_n_p = count($method_name_parts);\n\t\t\t\t\tif($c_m_n_p <= $c_c_n_p)\n\t\t\t\t\t{\n\t\t\t\t\t\t$constructor = true;\n\t\t\t\t\t\tfor($i=1; $i<=$c_m_n_p; $i++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif($class_name_parts[$c_c_n_p-$i] != $method_name_parts[$c_m_n_p-$i])\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$constructor = false;\n\t\t\t\t\t\t\t\tbreak;\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\tif($constructor)\n\t\t\t\t\t{\n\t\t\t\t\t\t$this->_cur_class->set_constructor_args($args);\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$static_method = false;\n\t\t\t\t\t\t$offset = ($class_name_parts[0]=='Ext' ? 1 : 0);\n\t\t\t\t\t\tfor($i=0;$i<$c_c_n_p-$offset; $i++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif($class_name_parts[$i+$offset] == $method_name_parts[0])\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$offset += $i;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif($c_c_n_p-$offset < $c_m_n_p)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$static_method = true;\n\t\t\t\t\t\t\tfor($i=0; $i<$c_c_n_p-$offset; $i++)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif($class_name_parts[$i+$offset] != $method_name_parts[$i])\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t$static_method = false;\n\t\t\t\t\t\t\t\t\tbreak;\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\t\t\t\n\n\t\t\t\t\t\tif($c_m_n_p>1)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif($class_name_parts[$c_c_n_p-1] == $method_name_parts[0])\n\t\t\t\t\t\t\t\t$static_method = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(!$static_method) $static_method = $this->is_special_case_static($method_name);\n\t\t\t\t\t\t$this->_cur_class->set_method($method_name, $args, $static_method);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if(preg_match('/<h2>Public Events<\\/h2>/', $line, $matches))\t\t\n\t\t\t\t{\n\t\t\t\t\t// TODO Hmm this is dirty.\n\t\t\t\t\t$this->_classes[$this->_cur_class->get_name()] = $this->_cur_class;\n\t\t\t\t\t$this->_cur_class = null;\n\t\t\t\t\t$this->_state = self::START;\t\t\t\t\t\n\t\t\t\t}\t\t\n\t\t\t\tbreak;\n\t\t}\n\t}", "private function parse()\n {\n if ($this->isError()) {\n // error parsing\n if (empty($this->body) || !isset($this->body['errors'])) {\n // response body isn't an error object, return a custom one\n $error = new Entity\\Error();\n $error->message = \"Error $this->http_status\";\n $error->name = \"INVALID REQUEST\";\n $error->at = \"\";\n $this->objects[] = $error;\n } else {\n // parse error\n $errors = $this->body['errors'];\n foreach ($errors as $error) {\n $this->objects[] = Entity\\Error::parse($error);\n }\n }\n } else if (isset($this->body['card'])) {\n // card parsing\n $cards = $this->body['card'];\n foreach ($cards as $card) {\n $this->objects[] = Entity\\Card::parse($card);\n }\n } else if (isset($this->body['paymentmethod'])) {\n // payment parsing\n $this->objects[] = Entity\\Payment::parse($this->body);\n if (isset($this->body['subscription_plan'])) {\n // subscription also found, payment is a subscription\n $this->objects[] = Entity\\Subscription::parse($this->body['subscription_plan']);\n }\n } else if (isset($this->body['vendor'])) {\n // vendor parsing\n $this->objects[] = Entity\\Vendor::parse($this->body['vendor']);\n } else if (isset($this->body['item'])) {\n // item parsing\n $this->objects[] = Entity\\Item::parse($this->body['item']);\n } else if (isset($this->body['refunded'])) {\n // refund parsing, same as payment\n $this->objects[] = Entity\\Payment::parse($this->body);\n } else if (isset($this->body['subscription_plan'])) {\n // subscription parsing\n $this->objects[] = Entity\\Subscription::parse($this->body['subscription_plan']);\n } else if (isset($this->body['deleted'])) {\n // nothing to return\n } else {\n throw new \\RuntimeException('Could not recognize response type');\n }\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'comment' => fn(ParseNode $n) => $o->setComment($n->getStringValue()),\n 'createdBy' => fn(ParseNode $n) => $o->setCreatedBy($n->getObjectValue([IdentitySet::class, 'createFromDiscriminatorValue'])),\n 'createdDateTime' => fn(ParseNode $n) => $o->setCreatedDateTime($n->getDateTimeValue()),\n 'items' => fn(ParseNode $n) => $o->setItems($n->getCollectionOfObjectValues([DocumentSetVersionItem::class, 'createFromDiscriminatorValue'])),\n 'shouldCaptureMinorVersion' => fn(ParseNode $n) => $o->setShouldCaptureMinorVersion($n->getBooleanValue()),\n ]);\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'mobileAppIdentifier' => fn(ParseNode $n) => $o->setMobileAppIdentifier($n->getObjectValue([MobileAppIdentifier::class, 'createFromDiscriminatorValue'])),\n 'version' => fn(ParseNode $n) => $o->setVersion($n->getStringValue()),\n ]);\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'bold' => fn(ParseNode $n) => $o->setBold($n->getBooleanValue()),\n 'color' => fn(ParseNode $n) => $o->setColor($n->getStringValue()),\n 'italic' => fn(ParseNode $n) => $o->setItalic($n->getBooleanValue()),\n 'name' => fn(ParseNode $n) => $o->setName($n->getStringValue()),\n 'size' => fn(ParseNode $n) => $o->setSize($n->getFloatValue()),\n 'underline' => fn(ParseNode $n) => $o->setUnderline($n->getStringValue()),\n ]);\n }", "protected function readAllAnnotationsFor($reflection)\n {\n // Construct Method to be used for reading.\n $methodName = $this->constructReadMethod();\n\n // Read, Collect and return annotations.\n return collect($this->reader->{$methodName}($reflection));\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'deletedChats' => fn(ParseNode $n) => $o->setDeletedChats($n->getCollectionOfObjectValues([DeletedChat::class, 'createFromDiscriminatorValue'])),\n 'deletedTeams' => fn(ParseNode $n) => $o->setDeletedTeams($n->getCollectionOfObjectValues([DeletedTeam::class, 'createFromDiscriminatorValue'])),\n 'devices' => fn(ParseNode $n) => $o->setDevices($n->getCollectionOfObjectValues([TeamworkDevice::class, 'createFromDiscriminatorValue'])),\n 'teamsAppSettings' => fn(ParseNode $n) => $o->setTeamsAppSettings($n->getObjectValue([TeamsAppSettings::class, 'createFromDiscriminatorValue'])),\n 'teamTemplates' => fn(ParseNode $n) => $o->setTeamTemplates($n->getCollectionOfObjectValues([TeamTemplate::class, 'createFromDiscriminatorValue'])),\n 'workforceIntegrations' => fn(ParseNode $n) => $o->setWorkforceIntegrations($n->getCollectionOfObjectValues([WorkforceIntegration::class, 'createFromDiscriminatorValue'])),\n ]);\n }", "protected function traverseFields(): void\n {\n $columns = $this->definition->tca['columns'] ?? [];\n foreach ($this->definition->data as $fieldName => $value) {\n if (! is_array($columns[$fieldName])) {\n continue;\n }\n \n $this->registerHandlerDefinitions($fieldName, $columns[$fieldName], [$fieldName]);\n \n // Handle flex form fields\n if (isset($columns[$fieldName]['config']['type']) && $columns[$fieldName]['config']['type'] === 'flex') {\n $this->flexFormTraverser->initialize($this->definition, [$fieldName])->traverse();\n }\n }\n }", "public function getReflectionParameters(): array;", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'email' => fn(ParseNode $n) => $o->setEmail($n->getStringValue()),\n 'identity' => fn(ParseNode $n) => $o->setIdentity($n->getObjectValue([CommunicationsUserIdentity::class, 'createFromDiscriminatorValue'])),\n 'presenterDetails' => fn(ParseNode $n) => $o->setPresenterDetails($n->getObjectValue([VirtualEventPresenterDetails::class, 'createFromDiscriminatorValue'])),\n ]);\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'description' => fn(ParseNode $n) => $o->setDescription($n->getStringValue()),\n 'displayName' => fn(ParseNode $n) => $o->setDisplayName($n->getStringValue()),\n 'effectiveRules' => fn(ParseNode $n) => $o->setEffectiveRules($n->getCollectionOfObjectValues([UnifiedRoleManagementPolicyRule::class, 'createFromDiscriminatorValue'])),\n 'isOrganizationDefault' => fn(ParseNode $n) => $o->setIsOrganizationDefault($n->getBooleanValue()),\n 'lastModifiedBy' => fn(ParseNode $n) => $o->setLastModifiedBy($n->getObjectValue([Identity::class, 'createFromDiscriminatorValue'])),\n 'lastModifiedDateTime' => fn(ParseNode $n) => $o->setLastModifiedDateTime($n->getDateTimeValue()),\n 'rules' => fn(ParseNode $n) => $o->setRules($n->getCollectionOfObjectValues([UnifiedRoleManagementPolicyRule::class, 'createFromDiscriminatorValue'])),\n 'scopeId' => fn(ParseNode $n) => $o->setScopeId($n->getStringValue()),\n 'scopeType' => fn(ParseNode $n) => $o->setScopeType($n->getStringValue()),\n ]);\n }", "public function getReflectionData()\n {\n return $this->_reflectionData;\n }", "public function parse()\n {\n /*\n * Determine if valid.\n */\n if( count( $this->parts ) < 5 ) {\n throw new Exception\\NotFound( );\n }\n\n /*\n * Extract the mode\n */\n if( in_array( $this->parts[0], array( 'api', 'view' ), true ) ) {\n throw new Exception\\NotFound( );\n }\n $this->mode = $this->parts[0];\n\n /*\n * Extract the module\n */\n $this->module = $this->parts[1];\n\n /*\n * Extract the group\n */\n $this->group = $this->parts[2];\n\n /*\n * Extract the class\n */\n $this->class = $this->parts[3];\n\n /*\n * Extract the method\n */\n $this->method = $this->parts[4];\n\n /*\n * Extract the params\n */\n $this->params = array_slice( $this->parts, 5 );\n\n /*\n * Extract the domain\n */\n $this->domain = null;//TODO: Make this work\n\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'file' => fn(ParseNode $n) => $o->setFile($n->getBinaryContent()),\n 'sensitiveTypeIds' => function (ParseNode $n) {\n $val = $n->getCollectionOfPrimitiveValues();\n if (is_array($val)) {\n TypeUtils::validateCollectionValues($val, 'string');\n }\n /** @var array<string>|null $val */\n $this->setSensitiveTypeIds($val);\n },\n ]);\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'classification' => fn(ParseNode $n) => $o->setClassification($n->getEnumValue(PermissionClassificationType::class)),\n 'permissionId' => fn(ParseNode $n) => $o->setPermissionId($n->getStringValue()),\n 'permissionName' => fn(ParseNode $n) => $o->setPermissionName($n->getStringValue()),\n ]);\n }", "protected function parseContents($contents) {\n // Extract a potential namespace.\n $namespace = FALSE;\n if (preg_match('@^\\s*namespace ([^ ;]+)@m', $contents, $matches)) {\n $namespace = $matches[1];\n }\n $test_list = [];\n // Extract all class names. Abstract classes are excluded on purpose.\n preg_match_all('@^\\s*(?!abstract\\s+)(?:final\\s+|\\s*)class ([^ ]+)@m', $contents, $matches);\n if (!$namespace) {\n $test_list = $matches[1];\n }\n else {\n foreach ($matches[1] as $class_name) {\n $namespace_class = $namespace . '\\\\' . $class_name;\n $test_list[] = $namespace_class;\n }\n }\n return $test_list;\n }", "private function readTypes() {\n $files = $this->path->read();\n\n foreach ($files as $file) {\n if ($file->isDirectory()) {\n continue;\n }\n\n $this->readType($file->getName());\n }\n }", "protected function parse()\n {\n // [square] ..... visible comments (don't count as words for sorting, don't act as keywords)\n // (round) ....... for optional parts (count as words for sorting, act as keywords)\n // {curly} ........ word class definitions (use word class field instead, except for gender tags like {f}, {pl}, ...)\n\n while (($line = fgets($this->handle)) !== false) {\n if (strpos($line, '#') === 0) {\n continue;\n }\n\n if (trim($line) === '') {\n continue;\n }\n\n $data = preg_split('/[\\t]+/', $line);\n\n $headword = trim($data[0]);\n $translation = trim($data[1]);\n $wordclass = '';\n $subject = '';\n\n if (count($data) > 2) {\n $wordclass = trim($data[2]);\n }\n\n if (count($data) > 3) {\n $subject = trim($data[3]);\n }\n\n $entry = new Entry();\n\n $entry->directionId = $this->directionId;\n $entry->headword = $headword;\n $entry->translation = $translation;\n $entry->wordclass = $wordclass;\n\n $entry->subjects = $entry->getParsedSubjects($subject);\n $entry->parseHeadword();\n $entry->parseTranslation();\n\n yield $entry->jsonSerialize();\n }\n }", "private function parseMethods(\\ReflectionClass $reflection, HaxeClass $haxeClass)\n {\n // Retrieves information about methods\n foreach ($reflection->getMethods() as $method) {\n // Inherited method not write there.\n if ($method->getDeclaringClass()->getName() != $this->context->getFullClassName()) {\n continue;\n }\n\n $code = $this->data;\n $astParser = new AstParser(array_splice(\n $code,\n $method->getStartLine(),\n $method->getEndLine() - $method->getStartLine()\n ));\n\n $haxeMethod = new HaxeMethod();\n $haxeMethod\n ->setName($method->getName() != '__construct' ? $method->getName() : 'new') // new in haxe\n ->setIsStatic($method->isStatic())\n ->setVisibility($method->isPrivate()\n ? HaxeMethod::METHOD_VISIBILITY_PRIVATE\n : HaxeMethod::METHOD_VISIBILITY_PUBLIC\n )\n ;\n\n // Default context that contains everything needed for the code parsing\n $defaultParseContext = [\n 'method_name' => $method->getName(),\n 'variables' => []\n ];\n\n $this->parseArguments($method, $haxeMethod, $defaultParseContext);\n\n try {\n $haxeMethod->setBody($astParser->process($defaultParseContext));\n } catch (ParserException $ex) {\n $this->errors = array_merge($this->errors, $ex->getErrors());\n }\n\n $haxeMethod->setReturnType($method->hasReturnType()\n ? HaxeMapping::getHaxeType($method->getReturnType())\n : ($astParser->getHasReturn() ? Context::DEFAULT_TYPE : Context::NO_TYPE)\n );\n\n $haxeClass->addMethod($haxeMethod);\n }\n }", "public function parse() {\n $pointers = apply_filters( 'bc-pointers-manager-pointers', $this->pointers );\n\n $this->pointers = array();\n\n foreach( $pointers as $i => $pointer ) {\n $pointer['id'] = \"{$this->prefix}{$this->version}_{$i}\";\n $this->pointers[ $pointer['id'] ] = (object) $pointer;\n }\n\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'assignments' => fn(ParseNode $n) => $o->setAssignments($n->getCollectionOfObjectValues([DeviceHealthScriptAssignment::class, 'createFromDiscriminatorValue'])),\n 'createdDateTime' => fn(ParseNode $n) => $o->setCreatedDateTime($n->getDateTimeValue()),\n 'description' => fn(ParseNode $n) => $o->setDescription($n->getStringValue()),\n 'detectionScriptContent' => fn(ParseNode $n) => $o->setDetectionScriptContent($n->getBinaryContent()),\n 'detectionScriptParameters' => fn(ParseNode $n) => $o->setDetectionScriptParameters($n->getCollectionOfObjectValues([DeviceHealthScriptParameter::class, 'createFromDiscriminatorValue'])),\n 'deviceHealthScriptType' => fn(ParseNode $n) => $o->setDeviceHealthScriptType($n->getEnumValue(DeviceHealthScriptType::class)),\n 'deviceRunStates' => fn(ParseNode $n) => $o->setDeviceRunStates($n->getCollectionOfObjectValues([DeviceHealthScriptDeviceState::class, 'createFromDiscriminatorValue'])),\n 'displayName' => fn(ParseNode $n) => $o->setDisplayName($n->getStringValue()),\n 'enforceSignatureCheck' => fn(ParseNode $n) => $o->setEnforceSignatureCheck($n->getBooleanValue()),\n 'highestAvailableVersion' => fn(ParseNode $n) => $o->setHighestAvailableVersion($n->getStringValue()),\n 'isGlobalScript' => fn(ParseNode $n) => $o->setIsGlobalScript($n->getBooleanValue()),\n 'lastModifiedDateTime' => fn(ParseNode $n) => $o->setLastModifiedDateTime($n->getDateTimeValue()),\n 'publisher' => fn(ParseNode $n) => $o->setPublisher($n->getStringValue()),\n 'remediationScriptContent' => fn(ParseNode $n) => $o->setRemediationScriptContent($n->getBinaryContent()),\n 'remediationScriptParameters' => fn(ParseNode $n) => $o->setRemediationScriptParameters($n->getCollectionOfObjectValues([DeviceHealthScriptParameter::class, 'createFromDiscriminatorValue'])),\n 'roleScopeTagIds' => function (ParseNode $n) {\n $val = $n->getCollectionOfPrimitiveValues();\n if (is_array($val)) {\n TypeUtils::validateCollectionValues($val, 'string');\n }\n /** @var array<string>|null $val */\n $this->setRoleScopeTagIds($val);\n },\n 'runAs32Bit' => fn(ParseNode $n) => $o->setRunAs32Bit($n->getBooleanValue()),\n 'runAsAccount' => fn(ParseNode $n) => $o->setRunAsAccount($n->getEnumValue(RunAsAccountType::class)),\n 'runSummary' => fn(ParseNode $n) => $o->setRunSummary($n->getObjectValue([DeviceHealthScriptRunSummary::class, 'createFromDiscriminatorValue'])),\n 'version' => fn(ParseNode $n) => $o->setVersion($n->getStringValue()),\n ]);\n }", "public function parse()\n {\n }", "public function parse()\n {\n }", "public function parse()\n {\n }", "public function parse()\n {\n }", "public function testFromReflectionClass()\n {\n\n // initialize the annotation aliases\n $aliases = array(Stateful::ANNOTATION => Stateful::__getClass());\n\n // create the reflection class\n $reflectionClass = new ReflectionClass(__CLASS__, array(), $aliases);\n\n // check that the descriptor has been initialized\n $this->assertSame($this->descriptor, $this->descriptor->fromReflectionClass($reflectionClass));\n $this->assertSame('StatefulSessionBeanDescriptorTest', $this->descriptor->getName());\n $this->assertSame('AppserverIo\\Description\\StatefulSessionBeanDescriptorTest', $this->descriptor->getClassName());\n $this->assertCount(0, $this->descriptor->getEpbReferences());\n $this->assertCount(0, $this->descriptor->getResReferences());\n $this->assertCount(0, $this->descriptor->getReferences());\n $this->assertCount(1, $this->descriptor->getPreAttachCallbacks());\n $this->assertCount(1, $this->descriptor->getPostDetachCallbacks());\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return [\n '@odata.type' => fn(ParseNode $n) => $o->setOdataType($n->getStringValue()),\n 'response' => fn(ParseNode $n) => $o->setResponse($n->getEnumValue(ResponseType::class)),\n 'time' => fn(ParseNode $n) => $o->setTime($n->getDateTimeValue()),\n ];\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'isRegistrationRequired' => fn(ParseNode $n) => $o->setIsRegistrationRequired($n->getBooleanValue()),\n 'targetType' => fn(ParseNode $n) => $o->setTargetType($n->getEnumValue(AuthenticationMethodTargetType::class)),\n ]);\n }", "function parseObject($objectToken) {\n\n # remove bounding braces\n $objectToken = substr($objectToken, 1, -1);\n\n # split on fields\n $fieldTokens = $this->splitTokens($objectToken);\n\n # field will be mapped as array of key => value\n $params = array();\n foreach ($fieldTokens as $fieldToken) {\n $pos = strpos($fieldToken, ':'); # ERROR_SYNTAX if FALSE\n $key = substr($fieldToken, 0, $pos);\n $key = $this->processParameter($key);\n $valueToken = substr($fieldToken, $pos + 1);\n $value = $this->parseValue($valueToken);\n $params[$key] = $value;\n }\n return $params;\n }", "protected function processSourceTree () {\n\t\t$this->processFileTree();\n\t\tforeach (get_declared_interfaces() as $interface) {\n\t\t$ref = new ReflectionClass($interface);\n\t\t\tif ($ref->isUserDefined()) {\n\t\t\t\t$this->classes[] = $ref;\n\t\t\t}\n\t\t}\n\t\tforeach (get_declared_classes() as $class) {\n\t\t\t$ref = new ReflectionClass($class);\n\t\t\tif ($ref->isUserDefined() && !preg_match('/^Spd/', $class)) {\n\t\t\t\t$this->classes[] = $ref;\n\t\t\t}\n\t\t}\n\t}", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'categoryDescription' => fn(ParseNode $n) => $o->setCategoryDescription($n->getStringValue()),\n 'childCategoryIds' => function (ParseNode $n) {\n $val = $n->getCollectionOfPrimitiveValues();\n if (is_array($val)) {\n TypeUtils::validateCollectionValues($val, 'string');\n }\n /** @var array<string>|null $val */\n $this->setChildCategoryIds($val);\n },\n 'description' => fn(ParseNode $n) => $o->setDescription($n->getStringValue()),\n 'displayName' => fn(ParseNode $n) => $o->setDisplayName($n->getStringValue()),\n 'helpText' => fn(ParseNode $n) => $o->setHelpText($n->getStringValue()),\n 'name' => fn(ParseNode $n) => $o->setName($n->getStringValue()),\n 'parentCategoryId' => fn(ParseNode $n) => $o->setParentCategoryId($n->getStringValue()),\n 'platforms' => fn(ParseNode $n) => $o->setPlatforms($n->getEnumValue(DeviceManagementConfigurationPlatforms::class)),\n 'rootCategoryId' => fn(ParseNode $n) => $o->setRootCategoryId($n->getStringValue()),\n 'settingUsage' => fn(ParseNode $n) => $o->setSettingUsage($n->getEnumValue(DeviceManagementConfigurationSettingUsage::class)),\n 'technologies' => fn(ParseNode $n) => $o->setTechnologies($n->getEnumValue(DeviceManagementConfigurationTechnologies::class)),\n ]);\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'distributeForStudentWork' => fn(ParseNode $n) => $o->setDistributeForStudentWork($n->getBooleanValue()),\n 'resource' => fn(ParseNode $n) => $o->setResource($n->getObjectValue([EducationResource::class, 'createFromDiscriminatorValue'])),\n ]);\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'accessRecommendation' => fn(ParseNode $n) => $o->setAccessRecommendation($n->getStringValue()),\n 'accessReviewId' => fn(ParseNode $n) => $o->setAccessReviewId($n->getStringValue()),\n 'appliedBy' => fn(ParseNode $n) => $o->setAppliedBy($n->getObjectValue([UserIdentity::class, 'createFromDiscriminatorValue'])),\n 'appliedDateTime' => fn(ParseNode $n) => $o->setAppliedDateTime($n->getDateTimeValue()),\n 'applyResult' => fn(ParseNode $n) => $o->setApplyResult($n->getStringValue()),\n 'justification' => fn(ParseNode $n) => $o->setJustification($n->getStringValue()),\n 'reviewedBy' => fn(ParseNode $n) => $o->setReviewedBy($n->getObjectValue([UserIdentity::class, 'createFromDiscriminatorValue'])),\n 'reviewedDateTime' => fn(ParseNode $n) => $o->setReviewedDateTime($n->getDateTimeValue()),\n 'reviewResult' => fn(ParseNode $n) => $o->setReviewResult($n->getStringValue()),\n ]);\n }", "public function parseChildren($context)\n\t{\n\t\t$children=[];\n\t\tforeach ($this->children as $child) {\n\t\t\t# child could be a Literal /or/ Node\n\t\t\t$kid= method_exists($child, 'parse')\n\t\t\t\t? $child->parse($context)\n\t\t\t\t: [$child];\n\t\t\t$children=array_merge($children, $kid);\n\t\t\t}\n\n\t\treturn $children;\n\t}", "public function getObjectParser ()\n {\n $members = $this->getStub('\\vc\\Parser\\Object\\Members');\n $members->expects( $this->once() )->method( \"parseMembers\" )\n ->with(\n $this->isInstanceOf('\\vc\\Data\\Type\\Cls'),\n $this->isInstanceOf('\\vc\\Tokens\\Access')\n );\n\n return new \\vc\\Parser\\Object\\Header(\n new \\vc\\Parser\\Path,\n new \\vc\\Parser\\PathList(\n new \\vc\\Parser\\Path\n ),\n $members\n );\n }", "protected function extractClasses(array $structLines) {\n\t\t$this->classes = [];\n\t\t$heading = '';\n\t\tforeach ($structLines as $line) {\n\t\t\tif (!$heading) {\n\t\t\t\t$bits = explode(' ', $line);\n\t\t\t\tif (count($bits) == 2) {\n\t\t\t\t\t// variable size\n\t\t\t\t\t$bits[] = 'size';\n\t\t\t\t\t$bits[] = 0;\n\t\t\t\t}\n\t\t\t\tlist($struct, $heading, $size, $hex) = $bits;\n\t\t\t\t$hex = ($hex === 0) ? 0 : str_replace(')', '', $hex);\n\n\t\t\t\t$this->classes[$heading] = [\n\t\t\t\t\t'name' => $heading,\n\t\t\t\t\t'size' => $hex,\n\t\t\t\t\t'props' => [],\n\t\t\t\t\t'funcs' => [],\n\t\t\t\t];\n\n\t\t\t\t$this->lengthLookup[$heading] = $hex;\n\t\t\t} elseif ($line == '{' || $line == '}') {\n\t\t\t\tcontinue;\n\t\t\t} elseif (!$line) {\n\t\t\t\t$heading = '';\n\t\t\t} else {\n\t\t\t\t$bits = preg_split('/\\s+/', $line, 5);\n\t\t\t\tif (count($bits) < 4) {\n\t\t\t\t\t$bits[] = \"UNNAMED VARIABLE\";\n\t\t\t\t}\n\t\t\t\t$rest = count($bits) === 5 ? $bits[4] : '';\n\t\t\t\tlist(, $offset, $type, $name) = $bits;\n\n\t\t\t\t$prop = ['name' => $name];\n\t\t\t\t$l = $this->typeToLength($type, $this->lengthLookup);\n\n\t\t\t\t// an array type like Event[EventsLength] or String[4]\n\t\t\t\tif (strpos($type, '[')) {\n\t\t\t\t\t$type = str_replace(']', '', $type);\n\t\t\t\t\t$bits = explode('[', $type);\n\n\t\t\t\t\tlist($type, $count) = $bits;\n\n\t\t\t\t\t// if not numeric, assume something like Event[EventsLength] that refers to a previously defined variable\n\t\t\t\t\tif ($count && !is_numeric($count)) {\n\t\t\t\t\t\tif (substr($count, -2, 2) === '()') {\n\t\t\t\t\t\t\t$this->classes[$heading]['funcs'][] = $count;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (strpos($count, '-')) {\n\t\t\t\t\t\t\tlist($a, $b) = explode('-', $count);\n\t\t\t\t\t\t\t$count = $this->getPropertyExp($b, $a);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t$count = $this->getPropertyExp($count);\n\t\t\t\t\t}\n\t\t\t\t\t$prop['count'] = $count;\n\t\t\t\t}\n\t\t\t\t// a length parameter like CHAR<12>\n\t\t\t\tif (strpos($type, '<')) {\n\t\t\t\t\t$typen = str_replace('>', '<', $type);\n\t\t\t\t\t$bits = explode('<', $typen);\n\t\t\t\t\tlist(, $size) = $bits;\n\n\t\t\t\t\t// if not numeric, assume something like CHAR<Length()> which refers to a defined function\n\t\t\t\t\tif ($size && !is_numeric($size)) {\n\t\t\t\t\t\tif (substr($size, -2, 2) === '()') {\n\t\t\t\t\t\t\t$this->classes[$heading]['funcs'][] = $size;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t$l = $this->getPropertyExp($size);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t$prop = array_merge($prop, [\n\t\t\t\t\t'offset' => $offset,\n\t\t\t\t\t'type' => $type,\n\t\t\t\t\t'size' => $l,\n\t\t\t\t\t'pv' => FALSE,\n\t\t\t\t\t'debug' => $this->getPropertyExp($name),\n\t\t\t\t]);\n\n\t\t\t\tif (strpos($rest, '(enum') !== FALSE) {\n\t\t\t\t\t$enum = str_replace(['(enum', ')', ' '], '', $rest);\n\t\t\t\t\t$prop['enum'] = $enum ? $enum : $name;\n\t\t\t\t\t$rest = '';\n\t\t\t\t\t$prop['debug'] = $this->getEnumLabelExp($name);\n\t\t\t\t} elseif ($type === 'BYTE') {\n\t\t\t\t\t// $prop['debug'] = false;\n\t\t\t\t}\n\n\t\t\t\tif ($offset == 'PV') {\n\t\t\t\t\t$prop['pv'] = TRUE;\n\t\t\t\t\t$prop['offset'] = $this->getVariableExp('offset');\n\t\t\t\t}\n\n\t\t\t\tif ($rest) {\n\t\t\t\t\t$prop['comment'] = $this->getComment($rest);\n\t\t\t\t} else {\n\t\t\t\t\t$prop['comment'] = '';\n\t\t\t\t}\n\n\t\t\t\t$this->classes[$heading]['props'][] = $prop;\n\t\t\t}\n\t\t}\n\t}", "private function extractObjects(&$data){\n\t\tif(!preg_match_all($this->patObject, $data, $matches)){\n\t\t\tthrow new Exception(\"No objects found\"); \n\t\t} else {\n\t\t\t// Trim the results, because \\R in regex assertion (lookback) causes problems.\n\t\t\tforeach($matches[0] as $key => $match){\n\t\t\t\t$newObject = new pdfObject(trim($match));\n\t\t\t\t$this->objects[$newObject->objectNumber] = $newObject;\n\t\t\t}\n\t\t\treturn $this->objects;\n\t\t}\n\t}", "public function getFieldDeserializers(): array {\n $o = $this;\n return [\n 'kerberosSignOnSettings' => fn(ParseNode $n) => $o->setKerberosSignOnSettings($n->getObjectValue([KerberosSignOnSettings::class, 'createFromDiscriminatorValue'])),\n '@odata.type' => fn(ParseNode $n) => $o->setOdataType($n->getStringValue()),\n 'singleSignOnMode' => fn(ParseNode $n) => $o->setSingleSignOnMode($n->getEnumValue(SingleSignOnMode::class)),\n ];\n }", "abstract public function parse();", "abstract public function parse();", "abstract public function parse();", "abstract public function parse();", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'additionalInformation' => fn(ParseNode $n) => $o->setAdditionalInformation($n->getStringValue()),\n 'creationDateTime' => fn(ParseNode $n) => $o->setCreationDateTime($n->getDateTimeValue()),\n 'expirationDateTime' => fn(ParseNode $n) => $o->setExpirationDateTime($n->getDateTimeValue()),\n 'referenceKey' => fn(ParseNode $n) => $o->setReferenceKey($n->getStringValue()),\n 'referenceSystem' => fn(ParseNode $n) => $o->setReferenceSystem($n->getStringValue()),\n 'requestorId' => fn(ParseNode $n) => $o->setRequestorId($n->getStringValue()),\n 'requestorName' => fn(ParseNode $n) => $o->setRequestorName($n->getStringValue()),\n 'requestType' => fn(ParseNode $n) => $o->setRequestType($n->getStringValue()),\n 'roleId' => fn(ParseNode $n) => $o->setRoleId($n->getStringValue()),\n 'roleName' => fn(ParseNode $n) => $o->setRoleName($n->getStringValue()),\n 'tenantId' => fn(ParseNode $n) => $o->setTenantId($n->getStringValue()),\n 'userId' => fn(ParseNode $n) => $o->setUserId($n->getStringValue()),\n 'userMail' => fn(ParseNode $n) => $o->setUserMail($n->getStringValue()),\n 'userName' => fn(ParseNode $n) => $o->setUserName($n->getStringValue()),\n ]);\n }", "private function possibleFieldsReflections(object $resource): array\n {\n $objRef = new ReflectionObject($resource);\n\n return array_merge(\n [$objRef],\n $objRef->getMethods(ReflectionMethod::IS_STATIC | ReflectionMethod::IS_PUBLIC),\n $objRef->getProperties(ReflectionProperty::IS_STATIC | ReflectionProperty::IS_PUBLIC),\n );\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'appliesTo' => fn(ParseNode $n) => $o->setAppliesTo($n->getCollectionOfObjectValues([DirectoryObject::class, 'createFromDiscriminatorValue'])),\n 'definition' => function (ParseNode $n) {\n $val = $n->getCollectionOfPrimitiveValues();\n if (is_array($val)) {\n TypeUtils::validateCollectionValues($val, 'string');\n }\n /** @var array<string>|null $val */\n $this->setDefinition($val);\n },\n 'isOrganizationDefault' => fn(ParseNode $n) => $o->setIsOrganizationDefault($n->getBooleanValue()),\n ]);\n }", "private function readMeta()\n {\n $xr = $this->xmlReader;\n \n $insideFieldOrder = FALSE;\n $fieldsNames = NULL;\n \n while ($xr->read())\n {\n // Begin: /meta/fieldOrder\n if ($xr->nodeType == XMLReader::ELEMENT &&\n $xr->name === 'fieldOrder')\n {\n $insideFieldOrder = TRUE;\n $fieldsNames = array();\n }\n \n // Read: /meta/fieldOrder/field/[TEXT]\n if ($insideFieldOrder &&\n $xr->nodeType == XMLReader::TEXT)\n {\n $fieldsNames[] = $xr->value;\n }\n \n // End: /meta/fieldOrder\n if ($xr->nodeType == XMLReader::END_ELEMENT &&\n $xr->name === 'fieldOrder')\n {\n return new Splunk_ResultsFieldOrder($fieldsNames);\n }\n }\n \n throw new Exception('Syntax error in <meta> element.');\n }", "protected function __resolve_parse($value)\n {\n $value = is_string($value) ? ['file' => $value] : $value;\n $value += [\n 'is_object' => true,\n 'is_root' => true,\n ];\n\n $parsed = $this->parseLater($value['file'], 'file', false);\n\n return\n $value['is_object']\n ? [$value['is_root'] ? '$newRoot' : '$new' => $parsed]\n : $parsed\n ;\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return [\n 'clickAction' => fn(ParseNode $n) => $o->setClickAction($n->getStringValue()),\n 'clickDateTime' => fn(ParseNode $n) => $o->setClickDateTime($n->getDateTimeValue()),\n 'id' => fn(ParseNode $n) => $o->setId($n->getStringValue()),\n '@odata.type' => fn(ParseNode $n) => $o->setOdataType($n->getStringValue()),\n 'sourceId' => fn(ParseNode $n) => $o->setSourceId($n->getStringValue()),\n 'uriDomain' => fn(ParseNode $n) => $o->setUriDomain($n->getStringValue()),\n 'verdict' => fn(ParseNode $n) => $o->setVerdict($n->getStringValue()),\n ];\n }", "protected function readSpecificAnnotationFor($reflection)\n {\n // Construct Method to be used for reading.\n $methodName = $this->constructReadMethod();\n\n // Read, Collect and return annotations.\n return collect($this->reader->{$methodName}($reflection, $this->annotationName));\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'displayName' => fn(ParseNode $n) => $o->setDisplayName($n->getStringValue()),\n 'number' => fn(ParseNode $n) => $o->setNumber($n->getStringValue()),\n 'type' => fn(ParseNode $n) => $o->setType($n->getEnumValue(PhoneType::class)),\n ]);\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'check32BitOn64System' => fn(ParseNode $n) => $o->setCheck32BitOn64System($n->getBooleanValue()),\n 'detectionType' => fn(ParseNode $n) => $o->setDetectionType($n->getEnumValue(Win32LobAppFileSystemDetectionType::class)),\n 'detectionValue' => fn(ParseNode $n) => $o->setDetectionValue($n->getStringValue()),\n 'fileOrFolderName' => fn(ParseNode $n) => $o->setFileOrFolderName($n->getStringValue()),\n 'operator' => fn(ParseNode $n) => $o->setOperator($n->getEnumValue(Win32LobAppDetectionOperator::class)),\n 'path' => fn(ParseNode $n) => $o->setPath($n->getStringValue()),\n ]);\n }", "public function parse( $contents );", "protected function parseMethod() {\n $reader = $this->reader; // alias in local\n\n $method = new Method;\n $method->name = $this->mangleMethodName($reader->getAttribute('name'));\n $method->identifier = $reader->getAttribute('c:identifier');\n if($reader->getAttribute('throws')) {\n $method->throws = 1;\n }\n\n do {\n // parameter handling goes here\n if($reader->nodeType == XMLReader::ELEMENT && $reader->name == 'parameter') {\n $method->args[] = $this->parseParameter();\n // if return-type name == the class name this is a constructor\n } elseif($reader->nodeType == XMLReader::ELEMENT && $reader->name == 'return-value') {\n $method->returnValue = $this->parseReturn();\n // this will get a doc node if it exists\n } elseif($reader->nodeType == XMLReader::ELEMENT && $reader->name == 'doc') {\n $method->doc = $reader->readString();\n // this will ALWAYS stop our loop\n } elseif($reader->nodeType == XMLReader::END_ELEMENT && $reader->name == 'method') {\n break;\n }\n } while($reader->read());\n\n /* if the name of the method is ONLY free or destroy - this is a free */\n if (empty($method->args) && $method->name === 'free' || $method->name === 'destroy') {\n $e = new FreeObjectHandlerException();\n $e->method = $method;\n throw $e;\n }\n\n return $method;\n }", "private function parseMethods(): void\n {\n $methods = $this->extractMethods();\n\n foreach ($methods as $method)\n {\n if ($method['docblock']===null)\n {\n $docId = null;\n }\n else\n {\n $docId = PhpAutoDoc::$dl->padDocblockInsertDocblock($method['docblock']['doc_line_start'],\n $method['docblock']['doc_line_end'],\n $method['docblock']['doc_docblock']);\n }\n\n $mthId = PhpAutoDoc::$dl->padClassInsertMethod($this->clsId,\n $docId,\n $method['name'],\n Cast::toManInt($method['is_abstract']),\n Cast::toManInt(mb_strtolower($method['name'])=='__construct'),\n Cast::toManInt(mb_strtolower($method['name'])=='__destruct'),\n Cast::toManInt($method['is_final']),\n Cast::toManInt($method['is_static']),\n $method['visibility'],\n $method['start'],\n $method['end']);\n\n $this->parseMethodArguments($mthId, $method['tokens']);\n }\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'activityGroupNames' => function (ParseNode $n) {\n $val = $n->getCollectionOfPrimitiveValues();\n if (is_array($val)) {\n TypeUtils::validateCollectionValues($val, 'string');\n }\n /** @var array<string>|null $val */\n $this->setActivityGroupNames($val);\n },\n 'address' => fn(ParseNode $n) => $o->setAddress($n->getStringValue()),\n 'azureSubscriptionId' => fn(ParseNode $n) => $o->setAzureSubscriptionId($n->getStringValue()),\n 'azureTenantId' => fn(ParseNode $n) => $o->setAzureTenantId($n->getStringValue()),\n 'countHits' => fn(ParseNode $n) => $o->setCountHits($n->getIntegerValue()),\n 'countHosts' => fn(ParseNode $n) => $o->setCountHosts($n->getIntegerValue()),\n 'firstSeenDateTime' => fn(ParseNode $n) => $o->setFirstSeenDateTime($n->getDateTimeValue()),\n 'ipCategories' => fn(ParseNode $n) => $o->setIpCategories($n->getCollectionOfObjectValues([IpCategory::class, 'createFromDiscriminatorValue'])),\n 'ipReferenceData' => fn(ParseNode $n) => $o->setIpReferenceData($n->getCollectionOfObjectValues([IpReferenceData::class, 'createFromDiscriminatorValue'])),\n 'lastSeenDateTime' => fn(ParseNode $n) => $o->setLastSeenDateTime($n->getDateTimeValue()),\n 'riskScore' => fn(ParseNode $n) => $o->setRiskScore($n->getStringValue()),\n 'tags' => function (ParseNode $n) {\n $val = $n->getCollectionOfPrimitiveValues();\n if (is_array($val)) {\n TypeUtils::validateCollectionValues($val, 'string');\n }\n /** @var array<string>|null $val */\n $this->setTags($val);\n },\n 'vendorInformation' => fn(ParseNode $n) => $o->setVendorInformation($n->getObjectValue([SecurityVendorInformation::class, 'createFromDiscriminatorValue'])),\n ]);\n }", "public function parse(TokenStream $stream)\n {\n if ($stream->consume('CREATE TABLE')) {\n $stream->consume('IF NOT EXISTS');\n } else {\n throw new RuntimeException(\"Expected CREATE TABLE\");\n }\n\n $this->name = $stream->expectName();\n $stream->expectOpenParen();\n\n while (true) {\n $hasConstraintKeyword = $stream->consume('CONSTRAINT');\n if ($stream->consume('PRIMARY KEY')) {\n $this->parseIndex($stream, 'PRIMARY KEY');\n } elseif ($stream->consume('KEY') ||\n $stream->consume('INDEX')\n ) {\n if ($hasConstraintKeyword) {\n throw new RuntimeException(\"Bad CONSTRAINT\");\n }\n $this->parseIndex($stream, 'KEY');\n } elseif ($stream->consume('FULLTEXT')) {\n if ($hasConstraintKeyword) {\n throw new RuntimeException(\"Bad CONSTRAINT\");\n }\n $stream->consume('KEY') || $stream->consume('INDEX');\n $this->parseIndex($stream, 'FULLTEXT KEY');\n } elseif ($stream->consume('UNIQUE')) {\n $stream->consume('KEY') || $stream->consume('INDEX');\n $this->parseIndex($stream, 'UNIQUE KEY');\n } elseif ($stream->consume('FOREIGN KEY')) {\n $this->parseIndex($stream, 'FOREIGN KEY');\n } elseif ($hasConstraintKeyword) {\n $constraint = $stream->expectName();\n if ($stream->consume('PRIMARY KEY')) {\n $this->parseIndex($stream, 'PRIMARY KEY', $constraint);\n } elseif ($stream->consume('UNIQUE')) {\n $stream->consume('KEY') || $stream->consume('INDEX');\n $this->parseIndex($stream, 'UNIQUE KEY', $constraint);\n } elseif ($stream->consume('FOREIGN KEY')) {\n $this->parseIndex($stream, 'FOREIGN KEY', $constraint);\n } elseif ($stream->consume('CHECK')) {\n $this->parseCheck($stream, $constraint);\n } else {\n throw new RuntimeException(\"Bad CONSTRAINT\");\n }\n } else {\n $this->parseColumn($stream);\n }\n $token = $stream->nextToken();\n if ($token->eq(Token::SYMBOL, ',')) {\n continue;\n } elseif ($token->eq(Token::SYMBOL, ')')) {\n break;\n } else {\n throw new RuntimeException(\"Expected ',' or ')'\");\n }\n }\n\n $this->processTimestamps();\n $this->processIndexes();\n $this->processAutoIncrement();\n $this->parseTableOptions($stream);\n $this->processColumnCollations();\n }", "public function reflections()\n {\n return $this->_reflections;\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'appDisplayName' => fn(ParseNode $n) => $o->setAppDisplayName($n->getStringValue()),\n 'dataType' => fn(ParseNode $n) => $o->setDataType($n->getStringValue()),\n 'isMultiValued' => fn(ParseNode $n) => $o->setIsMultiValued($n->getBooleanValue()),\n 'isSyncedFromOnPremises' => fn(ParseNode $n) => $o->setIsSyncedFromOnPremises($n->getBooleanValue()),\n 'name' => fn(ParseNode $n) => $o->setName($n->getStringValue()),\n 'targetObjects' => function (ParseNode $n) {\n $val = $n->getCollectionOfPrimitiveValues();\n if (is_array($val)) {\n TypeUtils::validateCollectionValues($val, 'string');\n }\n /** @var array<string>|null $val */\n $this->setTargetObjects($val);\n },\n ]);\n }", "public function getFieldDeserializers(): array {\n $o = $this;\n return array_merge(parent::getFieldDeserializers(), [\n 'expirationDateTime' => fn(ParseNode $n) => $o->setExpirationDateTime($n->getDateTimeValue()),\n 'fingerprint' => fn(ParseNode $n) => $o->setFingerprint($n->getStringValue()),\n 'firstSeenDateTime' => fn(ParseNode $n) => $o->setFirstSeenDateTime($n->getDateTimeValue()),\n 'issueDateTime' => fn(ParseNode $n) => $o->setIssueDateTime($n->getDateTimeValue()),\n 'issuer' => fn(ParseNode $n) => $o->setIssuer($n->getObjectValue([SslCertificateEntity::class, 'createFromDiscriminatorValue'])),\n 'lastSeenDateTime' => fn(ParseNode $n) => $o->setLastSeenDateTime($n->getDateTimeValue()),\n 'relatedHosts' => fn(ParseNode $n) => $o->setRelatedHosts($n->getCollectionOfObjectValues([Host::class, 'createFromDiscriminatorValue'])),\n 'serialNumber' => fn(ParseNode $n) => $o->setSerialNumber($n->getStringValue()),\n 'sha1' => fn(ParseNode $n) => $o->setSha1($n->getStringValue()),\n 'subject' => fn(ParseNode $n) => $o->setSubject($n->getObjectValue([SslCertificateEntity::class, 'createFromDiscriminatorValue'])),\n ]);\n }" ]
[ "0.76170295", "0.6352521", "0.55044204", "0.5451456", "0.5326603", "0.53111947", "0.5231721", "0.51540357", "0.50099224", "0.49927232", "0.49663645", "0.49632", "0.48506925", "0.48148397", "0.47891048", "0.477524", "0.4734729", "0.47301874", "0.46779975", "0.46415284", "0.46317363", "0.46063587", "0.45799136", "0.45678025", "0.45401713", "0.45101628", "0.45073867", "0.45028433", "0.44977483", "0.44971818", "0.44948038", "0.4494083", "0.44900775", "0.44869813", "0.44803542", "0.44617993", "0.44504872", "0.44457936", "0.44201344", "0.4411233", "0.44104588", "0.44059643", "0.44000426", "0.4385541", "0.4363511", "0.43597278", "0.4352813", "0.43507087", "0.43472755", "0.43413278", "0.4336068", "0.43339717", "0.4327884", "0.43223882", "0.43201047", "0.43157366", "0.43121302", "0.4304208", "0.42953503", "0.42943528", "0.4291758", "0.42893332", "0.42857566", "0.42857566", "0.4284448", "0.4283836", "0.42836472", "0.42830333", "0.42830062", "0.42798057", "0.42790517", "0.42764428", "0.42711228", "0.426977", "0.42632318", "0.42599362", "0.42572188", "0.42532676", "0.42526743", "0.4247076", "0.4247076", "0.4247076", "0.4247076", "0.4246258", "0.42357695", "0.42335793", "0.42232314", "0.42198828", "0.4218944", "0.42150167", "0.42141086", "0.42105725", "0.4208305", "0.42060292", "0.42046097", "0.4199099", "0.41919613", "0.41893905", "0.41830397", "0.4178803" ]
0.6610244
1
Return an instance of the class
public function __construct(string $slug, $data) { $this->slug = $slug; $this->data = $data; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function instance();", "function get_instance($class)\n {\n }", "abstract public function get_instance();", "public static function inst()\n {\n return static::get_one(__CLASS__);\n }", "public function getInstance(): object;", "abstract public function instance();", "public static function instance() {\n\t\treturn new self;\n\t}", "protected function instantiate()\n\t{\n\t\t$class = get_class($this);\n\t\t$model = new $class(null);\n\t\treturn $model;\n\t}", "public static function instance()\n {\n global $container;\n return $container->getByType(self::class);\n }", "public function newInstance(): object\n {\n return $this->instantiator->instantiate($this->name);\n }", "public function getInstance(/* ... */)\n {\n $reflection = new ReflectionClass($this->getClass());\n return $reflection->newInstanceArgs(func_get_args());\n }", "public function create(){\r\n\treturn new $this->class();\r\n }", "public static function instance() {\n\t\tif (!Registry::exists($class=get_called_class())) {\n\t\t\t$ref=new \\Reflectionclass($class);\n\t\t\t$args=func_get_args();\n\t\t\tRegistry::set($class,\n\t\t\t\t$args?$ref->newinstanceargs($args):new $class);\n\t\t}\n\t\treturn Registry::get($class);\n\t}", "public function getInstance(): mixed;", "public function newInstance(): object;", "public static function instance() {\n // Get an instance of Class\n \tif( is_null( self::$instance ) ) self::$instance = new self();\n\n // Return the instance\n \treturn self::$instance;\n }", "public static function instance() {\n\t if ( !isset( self::$instance ) ) {\n\t $className = __CLASS__;\n\t self::$instance = new $className;\n\t }\n\t return self::$instance;\n\t }", "public static function get_instance() {\n\t\tif (is_null(self::$instance)) {\n\t\t\t$className = __CLASS__;\n self::$instance = new $className;\n\t\t}\n\t\treturn self::$instance;\n\t}", "public static function getInstance()\n {\n return GeneralUtility::makeInstance(__CLASS__);\n }", "public static function newInstance()\n {\n $instance = new self;\n return $instance;\n }", "public function instance() {\n\t\n\t\treturn $this;\n\t\n\t}", "public static function instance();", "public static function GetInstance(){\n if (!isset(self::$instance)) {\n $c = __CLASS__;\n self::$instance = new $c;\n }\n\n return self::$instance;\n }", "public static function fetch()\n {\n if (!isset(self::$instance)) {\n $c = __CLASS__;\n self::$instance = new $c;\n }\n\n return self::$instance;\n }", "public static function instance() {\n\t\tif ( ! isset( self::$instance ) ) {\n\t\t\t$className = __CLASS__;\n\t\t\tself::$instance = new $className;\n\t\t}\n\t\treturn self::$instance;\n\t}", "public static function instance()\n\t{\n\t\t$class = get_called_class();\n\t\tif (! isset(self::$_instances[$class]))\n\t\t{\n\t\t\tself::$_instances[$class] = new $class();\n\t\t}\n\t\treturn self::$_instances[$class];\n\t}", "public static function instance() {\n\t\tif ( !isset( self::$instance ) ) {\n\t\t\t$class_name = __CLASS__;\n\t\t\tself::$instance = new $class_name;\n\t\t}\n\t\treturn self::$instance;\n\t}", "public static function instance() {\n\t\tif ( ! isset( self::$instance ) ) {\n\t\t\t$class_name = __CLASS__;\n\t\t\tself::$instance = new $class_name;\n\t\t}\n\t\treturn self::$instance;\n\t}", "static function get_instance() {\n\t\tstatic $instance;\n\t\t$class = __CLASS__;\n\t\tif ( ! is_a( $instance, $class ) ) {\n\t\t\t$instance = new $class;\n\t\t}\n\t\treturn $instance;\n\t}", "protected function getInstance($class)\n\t{\n\t\treturn tap(new $class, function ($instance) {\n return $instance;\n });\n\t}", "public function newInstance()\n {\n return new self();\n }", "public static final function of($class) {\n return self::typeOf($class)->newInstance();\n }", "public static function getInstance() {\n\t\treturn parent::getInstance(__CLASS__); \n\t}", "public static function newInstance() {\n if (!self::$instance instanceof self) {\n self::$instance = new self;\n }\n return self::$instance;\n }", "public static function getInstance()\n {\n return GeneralUtility::makeInstance(self::class);\n }", "public static function getInstance()\n {\n return GeneralUtility::makeInstance(self::class);\n }", "public static function getInstance()\n {\n static $instance;\n if ( $instance )\n\n return $instance;\n $class = get_called_class();\n # echo \"new $class\\n\";\n\n return $instance = new $class;\n }", "public static function getInstance() {\n\t\treturn parent::getInstance(__CLASS__);\n\t}", "public static function getInstance() {\n return new self();\n }", "public static function get_instance()\n {\n }", "public static function get_instance()\n {\n }", "public static function get_instance()\n {\n }", "public static function get_instance()\n {\n }", "public static function get_instance()\n {\n }", "public static function get_instance()\n {\n }", "public static function get_instance() {\n $self = __CLASS__;\n\n if ( is_null( $self::$instance ) ) {\n $self::$instance = new $self;\n }\n\n return $self::$instance;\n }", "public static function getInstance()\n {\n return new self();\n }", "public function newInstance();", "public function newInstance();", "public function getInstance()\n {\n return $this;\n }", "public function &create()\n {\n $obj = null;\n\n if (class_exists($this->_class_name)) {\n // Assigning the return value of new by reference\n $obj = new $this->_class_name();\n }\n\n return $obj;\n }", "public static function getInstance(): object\n {\n if (!isset(static::$instance[static::$class])) {\n static::$instance[static::$class] = new static::$class(...func_get_args());\n }\n\n return static::$instance[static::$class];\n }", "public static function get_instance($classname = __CLASS__){\n\t\treturn parent::get_instance($classname);\n\t}", "public function get_instance()\n\t{\n\t\treturn $this;\n\t}", "public function get_instance()\n\t{\n\t\treturn $this;\n\t}", "public static function instance()\n {\n return new static();\n }", "public static function instance()\n {\n return new static();\n }", "public static function instance()\n\t{\n\t\tif (!isset(self::$_instance)) \n\t\t{\n\t\t\t$class = __CLASS__;\n\t\t\tself::$_instance = new $class;\n\t\t}\n\n\t\treturn self::$_instance;\n\t}", "public static function instance() {\n return new static();\n }", "public static function getInstance()\n {\n if (self::$instance == null) {\n \n //make new istance of this class and save it to field for next usage\n $class = __class__;\n self::$instance = new $class();\n }\n\n return self::$instance;\n }", "public function getInstance()\n\t{\n\t\tif($this->classname === null) {\n\t\t\tthrow new BuildException('The classname attribute must be specified');\n\t\t}\n\t\t\n\t\tif($this->instance === null) {\n\t\t\ttry {\n\t\t\t\tPhing::import($this->classname, $this->classpath);\n\t\t\t}\n\t\t\tcatch (BuildException $be) {\n\t\t\t\t/* Cannot import the file. */\n\t\t\t\tthrow new BuildException(sprintf('Object from class %s cannot be instantiated', $this->classname), $be);\n\t\t\t}\n\t\t\t\n\t\t\t$class = $this->classname;\n\t\t\t$this->instance = new $class();\n\t\t}\n\t\treturn $this->instance;\n\t}", "public static function instance()\n {\n if (!isset(self::$_instance)) {\n $c = __CLASS__;\n self::$_instance = new $c;\n }\n return self::$_instance;\n }", "public function instance() {\n\t\t\n\t}", "public static function getInstance()\n {\n $object = __CLASS__;\n self::$instance = new $object();\n return self::$instance;\n }", "public static function getInstance()\n {\n $object = __CLASS__;\n self::$instance = new $object();\n return self::$instance;\n }", "public static function getInstance() {\n\n static $instance;\n //If the class was already instantiated, just return it\n if (isset($instance))\n return $instance;\n\n $instance = new self;\n\n return $instance;\n }", "public static function getInstance(): self;", "public static function getInstance()\n{\n\t$class_name = get_called_class();\n\tif (empty(self::$instances[$class_name]))\n\t{\n\t\tself::$instances[$class_name] = new $class_name();\n\t}\n\treturn self::$instances[$class_name];\n}", "private static function _instantiateThisObject() {\r\n $className = get_called_class();\r\n return new $className();\r\n }", "public function get_instance() {\r\n\t\treturn $this->obj;\r\n\t}", "public static function instance()\n {\n return new static;\n }", "public static function instance()\n {\n return new static;\n }", "public static function getInstance () {\n\t\tif(!isset(self::$oInstance)){\n\t\t\t$sClass = __CLASS__;\n\t\t\tself::$oInstance = new $sClass();\n\t\t}\n\t\treturn self::$oInstance;\n\t}", "public function getInstance(): object\n {\n }", "public static function inst()\n {\n return new static();\n }", "public static function get_instance() {\n\t\tif( ! is_object( self::$instance ) ) {\n\t\t\t$c = __CLASS__;\n\t\t\tself::$instance = new $c();\n\t\t}\n\t\treturn self::$instance;\n\t}", "function get_instance()\r\n{\r\n\t\r\n}", "public static function getInstance(){\n if (!self::$_instance){\n $class = __CLASS__;\n self::$_instance = new $class();\n }\n return self::$_instance;\n }", "public static function get_instance() {\n\n if ( ! self::$instance instanceof self ) {\n self::$instance = new self;\n }\n\n return self::$instance;\n\n }", "public function getInstance(): self\n {\n return $this;\n }", "public static function instance()\n {\n if (!isset(self::$instance)) {\n $c = __CLASS__;\n self::$instance = new $c();\n }\n\n return self::$instance;\n }", "public static function get_instance ();", "public static function getInstance()\n {\n static $instance;\n if (!isset($instance)) {\n $class = __CLASS__;\n $instance = new $class();\n }\n return $instance;\n }", "public static function get_instance() {\n\t\tif ( !is_a( self::$instance, __CLASS__ ) ) {\n\t\t\tself::$instance = new self();\n\t\t}\n\t\treturn self::$instance;\n\t}", "public static function getInstance()\n {\n if (!(isset(self::$instance) && is_object(self::$instance))) {\n $c = __class__;\n self::$instance = new $c();\n }\n return self::$instance;\n }", "public static function getInstance()\n {\n static $instance;\n if (!isset($instance)) {\n $class = __CLASS__;\n $instance = new $class();\n }\n\n return $instance;\n }", "public static function getInstance(){\n\t\treturn parent::_getInstance(get_class());\n\t}", "public static function getInstance()\n {\n $class = get_called_class();\n if (array_key_exists($class, self::$instances) === false) {\n self::$instances[$class] = new $class();\n }\n\n return self::$instances[$class];\n }", "public static function instance () {\n\t\tif ( is_null( self::$_instance ) )\n\t\t\tself::$_instance = new self();\n\t\treturn self::$_instance;\n\t}", "public static function getInstance() {\n\t\tif (!isset(self::$instance)) {\n\t\t\t$class = __CLASS__;\n\t\t\tself::$instance = new $class;\n\t\t}\n\t\treturn self::$instance;\n\t}", "function getInstance($class) {\n\n\t\tif (!isset($this->$class)) {\n\t\t\t$this->$class = new $class($this);\n\t\t}\n\t\treturn $class;\n\t}", "public static function getInstance() {}", "public static function getInstance() {}", "public static function getInstance() {}", "public static function getInstance() {}", "public static function getInstance() {}", "public static function getInstance() {}", "public static function getInstance() {}", "public static function getInstance() {}", "public static function getInstance() {}", "public static function getInstance() {}" ]
[ "0.77422017", "0.7725855", "0.7694598", "0.7677301", "0.76665413", "0.7635633", "0.7617418", "0.7598036", "0.7589488", "0.7572104", "0.75211763", "0.7507213", "0.7498987", "0.74323475", "0.7430936", "0.742533", "0.74144495", "0.73957247", "0.7378565", "0.737316", "0.73469836", "0.7345984", "0.7323744", "0.7314157", "0.7302514", "0.73016745", "0.72935367", "0.72876203", "0.7278543", "0.726864", "0.72661316", "0.7260508", "0.72604066", "0.7260309", "0.72589296", "0.72589296", "0.72575444", "0.72492343", "0.72292995", "0.7227136", "0.7227136", "0.7227136", "0.7227136", "0.72267836", "0.72267", "0.72192216", "0.72106576", "0.7204681", "0.7204681", "0.7199886", "0.7193273", "0.7186023", "0.7175479", "0.71647024", "0.71647024", "0.71593773", "0.71593773", "0.7155718", "0.7149526", "0.71348995", "0.7134196", "0.71294326", "0.7122002", "0.71138877", "0.71138877", "0.7112839", "0.7108865", "0.7107294", "0.7094712", "0.7092784", "0.70778805", "0.70778805", "0.70748687", "0.7068085", "0.7067341", "0.7065624", "0.7050463", "0.7046604", "0.7041449", "0.7035091", "0.70204395", "0.7019238", "0.7018255", "0.70044476", "0.70018", "0.6997491", "0.69863796", "0.69798344", "0.6979499", "0.6973711", "0.6971388", "0.69713867", "0.69713867", "0.69713867", "0.6971002", "0.6971002", "0.6971002", "0.6971002", "0.6970327", "0.6970327", "0.6970327" ]
0.0
-1
Get transient data and return new class instance
public static function get(string $slug) : Api { $data = Option::active($slug) ? (new Transient($slug))->get() : []; return new Api($slug, $data); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function _construct(){\n\t\treturn $this->data;\n\t}", "public function _construct(){\n\t\treturn $this->data;\n\t}", "private function instanciate($class)\n {\n if (($entity = $this->getFromPersistant($class))) {\n return $entity;\n }\n\n return $this->persist($this->getInstance($class)->resolveDependency());\n }", "function data2Object($data) { \n\t\t\t$class_object = new getData($data); \n\t\t\treturn $class_object; \n\t\t}", "public function load()\n {\n $raw = $this->_getBackend()->load($this->_id);\n return unserialize($raw);\n }", "private function get_data() {\n\t\t$this->set_data();\n\t\t\n\t\treturn $this;\n\t}", "public static function getInstanceData($data) {\n return parent::getInstance($data, __CLASS__);\n }", "public static function getInstanceData($data) {\n return parent::getInstance($data, __CLASS__);\n }", "abstract public function retrieve();", "public static function fetch()\n {\n if (!isset(self::$instance)) {\n $c = __CLASS__;\n self::$instance = new $c;\n }\n\n return self::$instance;\n }", "function get_transient($transient)\n {\n }", "abstract protected function getPersistableDataArray();", "private function tinydb_get_serializable_data()\n {\n $serializable_array = array();\n\n // Add database data\n foreach ($this->tinydb_rowdata as $field => $val) {\n if ($this->tinydb_access_manager->get_publicity($field) === T_PUBLIC) {\n $serializable_array[$field] = $val;\n }\n }\n\n // Add other misc object data\n foreach ($this->tinydb_get_reflector()->getProperties(\\ReflectionProperty::IS_PUBLIC) as $prop) {\n $k = $prop->getName();\n $v = $this->$k;\n $serializable_array[$k] = $v;\n }\n\n // Add data from magic getters and setters\n foreach ($this->tinydb_get_reflector()->getMethods(\\ReflectionProperty::IS_PUBLIC) as $meth) {\n $name = $meth->getName();\n if (preg_match('/^get_[a-zA-Z_\\x7f-\\xff][a-zA-Z0-9_\\x7f-\\xff]*$/D', $name) && !in_array($name, $this->tinydb_defined_methods)) {\n $serializable_array[substr($name, 4)] = $this->$name();\n }\n }\n\n ksort($serializable_array);\n\n return $serializable_array;\n return (object)$serializable_array;\n }", "public function __invoke() {\n return (object) $this->data;\n }", "public static function get() {\n if (null === static::$dataCreator) {\n static::$dataCreator = new static();\n }\n\n return static::$dataCreator;\n }", "function newDataObject() {\n\t\t$ofrPlugin =& PluginRegistry::getPlugin('generic', $this->parentPluginName);\n\t\t$ofrPlugin->import('classes.ReviewObjectMetadata');\n\t\treturn new ReviewObjectMetadata();\n\t}", "protected function getNewEntity()\n {\n $entityName = $this->getEntityName();\n\n $instantiator = new Instantiator();\n return $instantiator->instantiate($entityName);\n }", "protected function getPersistableDataArray() {}", "protected function getPersistableDataArray() {}", "protected function getPersistableDataArray() {}", "protected function getPersistableDataArray() {}", "function instance_wrapper($data) {\n return array_map(function($parameters){\n $attributes = $parameters[count($parameters)-1];\n $instance = new SimpleEntity();\n $reflection = new \\ReflectionObject($instance);\n $__attributes = $reflection->getProperty('__attributes');\n $__attributes->setAccessible(true);\n $__attributes->setValue($instance, $attributes);\n $parameters[] = $instance;\n\n return $parameters;\n }, $data);\n }", "abstract protected function getPersistableDataArray() ;", "public function load() : Persistable;", "public function get_data() {\n $data = parent::get_data();\n if ($data !== null) {\n }\n return $data;\n }", "protected function _getEntity($data) {\n\t\treturn new Entity($data);\n\t}", "public function & get($class) {\n\t\t# Create object if not already created\n\t\tif (!isset($this->objects[$class])) {\n\t\t\t# Caching and Creating object\n\t\t\t$this->objects[$class] = $this->create($class);\n\t\t}\n\t\t# Return object\n\t\treturn $this->objects[$class];\n\t}", "function getMeta()\n {\n if (!$this->meta)\n $this->meta = new DataEntity;\n\n return $this->meta;\n }", "public function getDataRequest()\n {\n /** @var Core_Entity_Request $dataRequest */\n $dataRequest = $this->_requestClass;\n return new $dataRequest(\n array(\n Core_Entity_Model_Abstract::CONSTRUCT_STORAGE => $this->getStorage()\n )\n );\n }", "abstract public function hydrate($data);", "public function metaReLoad()\n {\n return $this->meta = $this->meta()->get();\n }", "private function getInstance($class)\n {\n $entity = new EntityClass($class, $this->getAttributes($class));\n return $this->store($class, $entity);\n }", "public function _loadRealInstance() {}", "public function copy()\n\t\t{\n\t\t\treturn unserialize(serialize($this)); \n\t\t}", "public function persist( $class, $data){\n\n \t$model = ( isset($data['id']) ) ? $class::find( $data['id'] ) : new $class ;\n\n\t $model->fill( $data );\n\n\t $model->save();\n\n\t return $model;\n }", "final public function __get($class) {\n\t\treturn $this->getObject($class);\n\t}", "public function load()\n {\n if (!$this->loaded) {\n $searchData = [];\n foreach (persistableCollection::getInstance($this->resourceName)->getPrimaryFields() as $fieldName) {\n $searchData[$fieldName] = $this->$fieldName;\n }\n $result = persistableCollection::getInstance($this->resourceName)->loadObject($searchData);\n $this->persisted = true;\n $this->loaded = true;\n return $result;\n }\n return $this;\n }", "public static function create($data) {\n\t\t$className = get_called_class();\n\t\t$object = new $className($data);\n\t\t$object->save();\n\t\treturn $object;\n\t}", "public abstract function getInstanceData($parameters);", "public function getDataClass();", "public function load() {\n $response = Gallery3_Helper::request(\"get\", $this->url, $this->token);\n $this->data = $response;\n $this->original_entity = isset($response->entity) ? (array)$response->entity : null;\n return $this;\n }", "abstract protected function getNewEntityInstance();", "public function __clone()\n {\n foreach ($this as $key => $val)\n {\n if (is_object($val) || is_array($val))\n $this->{$key} = unserialize(serialize($val));\n }\n }", "public function __wakeup() {\r\n\t\t_doing_it_wrong( __FUNCTION__, esc_html__( 'Unserializing instances of this class is forbidden.', 'wc_name_your_price' ), '3.0.0' );\r\n\t}", "public function __wakeup()\n\t{\n\t\tthrow new DomainException(\"Can't unserialize singleton\");\n\t}", "public function build()\n {\n return new EntityDataObject(\n $this->name,\n $this->type,\n $this->data,\n $this->linkedEntities,\n null,\n $this->vars\n );\n }", "function getCopyOfArticle() {\n\t\t$newArticle = new PolarBear_Article($this->id);\n\t\t$newArticle->prepareForCopy();\n\t\t$newArticle->save();\n\t\treturn $newArticle;\n\t}", "protected function getNewContainerObject()\n {\n return new AllPublicModelState();\n }", "public function getModel()\n {\n $model = new $this->versionable_type();\n $model->unguard();\n $model->fill(unserialize($this->model_data));\n $model->exists = true;\n $model->reguard();\n return $model;\n }", "protected function loadData()\n {\n if (($data = file_get_contents(__DIR__ . self::DATA_FILE))) {\n if (($data = unserialize($data))) {\n $this->data = $data;\n }\n }\n\n return $this;\n }", "private function load(): self\n\t{\n\t\t$val = (new \\App\\Db\\Query())->select(['value'])->from(self::TABLE_NAME)->where(['key' => $this->key])->scalar();\n\t\t$this->value = false === $val ? null : $val;\n\t\treturn $this;\n\t}", "function getData()\n\t{\n\t\tstatic $data;\n\t\tif (!is_object($data)) {\n\t\t\t$data = $this->_buildDataObject();\n\t\t}\n\t\treturn $data;\n\t}", "function newDataObject() {\n\t\treturn new Monograph();\n\t}", "protected function getDataHandlerInstance() {\n\t\t$dataHandler = GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\DataHandling\\DataHandler');\n\t\t$dataHandler->stripslashes_values = 0;\n\t\t$dataHandler->copyTree = $this->parentObject->copyTree;\n\t\t$dataHandler->cachedTSconfig = $this->parentObject->cachedTSconfig;\n\t\t$dataHandler->dontProcessTransformations = 1;\n\t\treturn $dataHandler;\n\t}", "public function create(){\r\n\treturn new $this->class();\r\n }", "public function __clone()\n\t{\n\t\tforeach ($this as $k => $v)\n\t\t{\n\t\t\tif ((is_object($v)) || is_array($v)) {\n\t\t\t\t$this->{$k} = unserialize(serialize($v));\n\t\t\t}\n\t\t}\n\t}", "public function __clone()\n\t{\n\t\tforeach ($this as $k => $v)\n\t\t{\n\t\t\tif ((is_object($v)) || is_array($v)) {\n\t\t\t\t$this->{$k} = unserialize(serialize($v));\n\t\t\t}\n\t\t}\n\t}", "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 __clone()\n\t{\n\t\tforeach ($this as $k => $v)\n\t\t{\n\t\t\tif (is_object($v) || is_array($v))\n\t\t\t{\n\t\t\t\t$this->{$k} = unserialize(serialize($v));\n\t\t\t}\n\t\t}\n\t}", "private function getFromPersistant($class)\n {\n if (System::isPersisted($class)) {\n return $this->store($class, System::getPersistent($class));\n }\n return false;\n }", "public function getModel()\n {\n $modelData = is_resource($this->model_data)\n ? stream_get_contents($this->model_data,-1,0)\n : $this->model_data;\n\n $className = self::getActualClassNameForMorph($this->versionable_type);\n $model = new $className();\n $model->unguard();\n $model->fill(unserialize($modelData));\n $model->exists = true;\n $model->reguard();\n return $model;\n }", "abstract public function setTransient($transient);", "public function create($data = null) {\n\t\t$class = $this->type->getModelClassname();\n\t\t$object = new $class($data);\n\t\t$object->setModelStorage($this->type->getStorage());\n\t\treturn $object;\n\t}", "function &getData()\r\n\t{\r\n\r\n\t\tif ($this->_loadData())\r\n\t\t{\r\n\r\n\t\t}\r\n\t\telse $this->_initData();\r\n\r\n\t\treturn $this->_data;\r\n\t}", "public function getObject($class, $data, $strict = false)\n {\n if (!class_exists($class, true)) {\n throw new Exception(\"Unknown class: `{$class}`\");\n }\n\n $object = new $class;\n \n foreach ($data as $field => $value) {\n $field = $this->converter->encode($this->ns, $field);\n if (method_exists($object, $method = 'set'.ucfirst($field))) {\n $object->{$method}($value);\n } elseif (property_exists($object, $field)) {\n $object->{$field} = $value;\n } elseif ($strict) {\n throw new Exception(\"Can't fill object field `{$field}`\");\n }\n }\n \n return $object;\n }", "public static function createInstance()\n {\n return new Persistor('ISerializable', '');\n }", "function get_data() {\r\n return $this->data;\r\n }", "public function construct()\n {\n return $this->object;\n }", "public function getEntity()\n\t{\n\t\treturn new $this->entity();\n\t}", "abstract public function getData(): object;", "public function __wakeup()\n\t{\n\t\t$codeigniter =& get_instance();\n\t\t$codeigniter->benchmark->mark('Model\\Data\\Settings_class___wakeup_start');\n\t\t\n\t\t// Initialize class by raw data\n\t\t$class = $this->initialize();\n\t\t\n\t\t// Saving instance reference\n\t\tself::$instance = $this;\n\t\t\n\t\t$codeigniter->benchmark->mark('Model\\Data\\Settings_class___wakeup_end');\n\t}", "public function save() {\n\t\t$serial = $this->getSerialized($this);\n\t\t//var_export($shallow);\n\t\t$client = $this\n\t\t->getClient();\n\n\t\t$endpoint = static::getResourcePath()\n\t\t->getPath();\n\n\t\t// var_export($shallow);\n\n\t\t$response = $client->doPut($endpoint, $serial);\n\t\t$constructedEntity = $this->makeEntityFromResponse($response);\n\n\t\treturn $constructedEntity;\n\t}", "public static function load($version_id) {\n\t\t$data = DB::table(Version::getVersionsTable())->where_id($version_id)->first();\n\t\t$data->data = json_decode($data->data);\n\t\treturn new $data->object_table($data->data);\n\t}", "public function reload()\n {\n return new static($this->ensureData(null), ['query'=>$this->query]);\n }", "protected function __wakeup() {\n trigger_error('Cannot deserialize instance of Singleton pattern ...', E_USER_ERROR);\n }", "function __data() {\n\t\tif ($data = $this->Session->read('data')) {\n\t\t\tforeach ($data as $k => $i) {\n\t\t\t\t$obj = ClassRegistry::init($k);\n\t\t\t\t$this->data[$k] = $i;\n\t\t\t}\n\t\t\t$this->Session->write('data', null);\n\t\t}\n\t\t// attempts to remember identity of commentor and prefill fields\n\t\tif (empty($this->data['Comment']) && $data = $this->Cookie->read('CommentUser')) {\n\t\t\t$this->data['Comment'] = $data;\n\t\t}\n\t}", "public function loadTheInstance();", "public function setTransient($transient) {\n if (empty($transient->checked)) {\n return $transient;\n }\n\n $this->retrieveCurrentPluginData();\n if (!$this->repository || empty($this->repositoryData['version']) || empty($this->repositoryData['package'])) {\n return $transient;\n }\n\n $updateAvailable = version_compare($this->repositoryData['version'], $transient->checked[$this->pluginSlug]) ? true : false;\n if ($updateAvailable) {\n $obj = new \\stdClass();\n $obj->slug = $this->pluginSlug;\n $obj->new_version = $this->repositoryData['version'];\n $obj->url = $this->pluginData['PluginURI'];\n $obj->package = $this->buildUrl($this->repositoryData['package']);\n\n $obj->icons = [];\n $pluginFolder = WP_PLUGIN_DIR . DIRECTORY_SEPARATOR . dirname($this->pluginSlug);\n if (is_readable($pluginFolder . '/assets/icon-256x256.png')) {\n $obj->icons['default'] = plugins_url('assets/icon-256x256.png', $this->pluginFile);\n }\n\n $transient->response[$this->pluginSlug] = $obj;\n }\n return $transient;\n }", "public function new(): Country\n {\n $serializedNewObj = \\serialize($this->newCountry);\n \n return \\unserialize($serializedNewObj);\n }", "public function getData()\n {\n $data = parent::getData();\n\n return $data;\n }", "public function getCurrentObjectData() {}", "public function testSerializationDeserialization()\n {\n $obj = new LookupDataEntry(self::getJson());\n $this->assertNotNull($obj);\n $this->assertNotNull($obj->getKey());\n $this->assertNotNull($obj->getValue());\n $this->assertEquals(self::getJson(), $obj->toJson());\n return $obj;\n }", "public function __wakeup()\n {\n $this->__construct();\n }", "public function __wakeup()\n {\n $this->__construct();\n }", "private function __wakeup() { /* ... @return Singleton */ }", "public function get_test_persistent_object_cache()\n {\n }", "function getFromCookies() {\r\n\t\t//Data stored in cache as a cookie.\r\n\t\t$this->phone_number = $_COOKIE['phoneNumber'];\r\n\t\t$this->email = $_COOKIE['email'];\r\n\t}", "public function newInstance(): object\n {\n return $this->instantiator->instantiate($this->name);\n }", "public function __construct($data) { \n foreach ($data as $key => $value) {\n if (array_key_exists($key, $this->data)) $this->data[$key] = $value;\n }\n}", "public function current() {\t\t\n\t\treturn new $this->object_class($this->storage);\n\t}", "public function getObject() {}", "public function getObject() {}", "private function cacheFetch() {\n //$data = cache_get($this->id, 'cache');;\n $data = NULL;\n if ($data) {\n foreach ($this->properties as $prop) {\n if (isset($data->data[$prop]) && !empty($data->data[$prop])) {\n $this->$prop = $data->data[$prop];\n }\n }\n }\n }", "protected function meta() {\n if (!$this->_meta) {\n // Initialize at first call\n $this->_meta = new \\stdClass();\n if (!$this->isNewRecord && $this->{static::meta_id_field()}) {\n foreach ($this->meta as $meta_row) {\n $this->_meta->{static::meta_prefix() . $meta_row->meta_key} = $meta_row->meta_value;\n }\n }\n }\n return $this->_meta;\n }", "function fetch_data_new()\n\t{\n\t\treturn $this->data_new;\n\t}", "public static function __set_state($data)\n {\n $foobar = new self();\n $foobar->data = $data;\n \n return $foobar;\n }", "public function create()\n {\n return new PersonData($this);\n }", "public function __construct()\n {\n if (!self::$instance) {\n self::$instance = $this;\n //echo \"Create new object\";\n return self::$instance;\n } else {\n //echo \"Return old object\";\n return self::$instance;\n }\n }", "abstract public function get();", "abstract public function get();", "abstract public function get();" ]
[ "0.65516156", "0.65516156", "0.5967883", "0.59563905", "0.58352274", "0.5832349", "0.58143866", "0.58143866", "0.5809703", "0.57781637", "0.56862557", "0.5656312", "0.5655261", "0.5646846", "0.56332856", "0.5623893", "0.56169385", "0.5616439", "0.5616439", "0.5615879", "0.5614139", "0.5610246", "0.5607683", "0.5603653", "0.55751985", "0.557434", "0.55404496", "0.55317557", "0.5526556", "0.55118585", "0.55107754", "0.5506896", "0.55026287", "0.548762", "0.5482173", "0.54731697", "0.54505587", "0.54370683", "0.5435396", "0.54318523", "0.54287136", "0.5428026", "0.54265034", "0.54229695", "0.5419424", "0.5415637", "0.5409996", "0.5406399", "0.5394983", "0.53792405", "0.5372591", "0.53658706", "0.5357662", "0.53564376", "0.5352137", "0.53479666", "0.53479666", "0.5346792", "0.5320715", "0.5318304", "0.53131384", "0.53082216", "0.5307491", "0.5298399", "0.52880836", "0.52683115", "0.5261692", "0.5260639", "0.52605593", "0.52549905", "0.5248421", "0.5241847", "0.5231466", "0.5230585", "0.5222839", "0.52142364", "0.5209373", "0.5207445", "0.5204478", "0.5194545", "0.5192813", "0.51822925", "0.5179412", "0.5179412", "0.5177264", "0.5166866", "0.5159093", "0.5157531", "0.51373345", "0.5133884", "0.5132039", "0.5132039", "0.5124871", "0.51236165", "0.5123096", "0.51135826", "0.5111242", "0.51111174", "0.51063615", "0.51063615", "0.51063615" ]
0.0
-1
Set where 'clause' for filtering results, this only works on arrays of data
public function where(string $key, ...$params) : Api { [0 => $comparator, 1 => $values] = $this->setParams($params); if (is_array($this->data)) { $this->data = array_filter($this->data, function($object) use ($key, $comparator, $values) { return $this->hasMatchingProperty($object, $key, $comparator, $values); }); } return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function user_where_clause() {}", "protected function getWhereClause() {}", "abstract public function where(array $where);", "public static function where(array $where);", "public function where($arr){//ex of $arr : ['name' => 'LIKE A%','email' => '= test@test.com']\n $c = \"\";\n $x = 0;\n foreach($arr as $key => $v){//for each param, translate to SQL language\n if($x != 0){\n $c .= \" AND\";\n }\n $x++;\n $c .= \" $key $v\";\n }\n $this->params[\"WHERE\"] = $c;//adding the conditions to the query\n return $this;\n }", "protected function getGeneralWhereClause() {}", "public function whereArray($wheres){\r\n\t\tforeach($wheres as $k => $v){\r\n\t\t\t$this->where(\"`$k`=?\", $v);\r\n\t\t}\r\n\t}", "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}", "protected function where(array $filter){\n if (array_key_exists(\"order\", $filter)){\n $order = $filter[\"order\"];\n unset($filter[\"order\"]);\n if (gettype($order) != \"array\")\n $order = [$order];\n }\n\n if (array_key_exists(\"limit\", $filter)){\n $limit = $filter[\"limit\"];\n unset($filter[\"limit\"]);\n if (gettype($limit) != \"integer\")\n throw new appException(\"This is off-limits, literally\");\n }\n\n if (!empty($filter)){\n $query = \" WHERE \";\n\n foreach ($filter as $k => $v){\n if (gettype($v) == \"array\"){\n $query .= $this->genTableVar($k) . \" IN ( \";\n $query .= join(\", \", array_fill(0, count($v), \"?\"));\n $query .= \") AND \";\n }\n else if (gettype($v) == \"object\" && get_class($v) == \"dbContains\"){\n $query .= $v->genSql($this->genTableVar($k)) . \" AND \";\n }\n else {\n $query .= $this->genTableVar($k) . \" = ? AND \";\n }\n $this->args[] = $v;\n }\n\n $query = substr($query, 0, -4);\n\n $this->query .= $query;\n }\n\n if (isset($order))\n $this->orderBy($order);\n\n if (isset($limit))\n $this->limit($limit);\n }", "public function where() {\r\n\t\t$args = func_get_args();\r\n\t\treturn call_user_func_array(array($this, 'andWhere'), $args);\r\n\t}", "public function getValueAsWhereClause(): ?array;", "protected function setWhereFilters() : ApiGetService\n {\n if(count($this->where_filters) === 0){\n return $this;\n }\n\n // Traverse prepared filters\n foreach($this->where_filters as $column => $value){\n // {column}:{operator} = {value}\n $column_operator = preg_split('/[:\\s]+/', $column);\n\n // Split value by \" , \"\n $splited_value = preg_split('/[,]+/', $value);\n\n //... and if {value} is not scalar\n if(count($splited_value) > 1){\n // ... we know that we will have SQL IN operator in WHERE\n $in_operator = true;\n }\n // ... else we are good with simple \" = \"\n else{\n $in_operator = false;\n }\n\n // Depending on $in_operator, we know if we are using IN or =\n $this->builder\n ->when($in_operator ,\n // If it is true, we are using IN\n function ($query) use($column_operator, $splited_value){\n if(isset($column_operator[1]) && $column_operator[1] == \"eq\"){\n\n return $query->whereIn($column_operator[0], $splited_value);\n\n }elseif(isset($column_operator[1]) && $column_operator[1] == \"ne\"){\n\n return $query->whereNotIn($column_operator[0], $splited_value);\n\n }else{\n\n return $query->whereIn($column_operator[0], $splited_value);\n }\n },\n // Else, we are using scalar operators...\n function ($query) use($column_operator, $splited_value) {\n\n return $query->where($column_operator[0],\n ((isset($column_operator[1]) && $column_operator[1] != \"\") ? $this->api_operators[$column_operator[1]] : \"=\"),\n $splited_value[0]);\n });\n }\n\n return $this;\n }", "public function where($where_col_array = NULL, $value = NULL)\n {\n if(isset($where_col_array))\n {\n if (!is_array($where_col_array) && is_null($value)) {\n $this->_database->where(array($this->table.'.'.$this->primary => $where_col_array));\n } elseif (isset($value) && !is_array($value)) {\n $this->_database->where($where_col_array, $value);\n }\n elseif (isset($value) && is_array($value))\n {\n $this->_database->where_in($where_col_array,$value);\n }\n elseif (is_array($where_col_array)) {\n $this->_database->where($where_col_array);\n }\n }\n if($this->soft_deletes===TRUE)\n {\n $this->_where_trashed();\n }\n return $this;\n }", "protected function construct_where_clause() {\n\t\t\t$whereclause = $this->get_where_clause();\n\t\t\tif ( '' !== $whereclause ) {\n\t\t\t\t$this->where = '' === $this->where ? \" where ($whereclause) \" : \" {$this->where} and ($whereclause) \";\n\t\t\t}\n\t\t}", "function MyMod_Data_Fields_Sql_Where($data,$value)\n {\n $where=array();\n if (!empty($this->SqlWhere[ $data ]))\n {\n $where[ $data ]=$this->SqlWhere[ $data ];\n }\n return $where;\n }", "private function buildWhere ($array) {\n\n // Only do anything if the array contains anything\n if($array){ \n\n // Loop through the array where $key is the column name and $value are the \n // array containing the operator [0] and values [1]\n foreach($array as $key => $value){ \n\n // We set each element of the where clause to $this->where before setting it to\n // $this->show_where. If it already exists we must have already have something\n // in the where clause so set $preSql to ' AND ' otherwise set it to ' WHERE '\n $preSql = (isset($this->where)) ? ' AND ' : ' WHERE ';\n\n // As we need different ways of building the where clause elements, depending on\n // the operator ($value[0]), we run a switch statement to call the function to\n // build the correct type of element, passing in the field name ($key) and the\n // operator and criteria ($value array)\n switch($value[0]) {\n case '>':\n case '<':\n case '=':\n case '<=':\n case '>=':\n case '!=':\n case '<>':\n case 'LIKE':\n $this->where = $this->whereElementStandard ($key, $value);\n break;\n\n case 'IN':\n $this->where = $this->whereElementIn ($key, $value); \n break;\n\n case 'BETWEEN':\n $this->where = $this->whereElementBetween ($key, $value); \n break;\n case 'NULL':\n case 'NOT NULL':\n $this->where = $this->whereElementNull ($key, $value); \n break;\n\n default:\n $this->where = $this->whereElementStandard ($key, $value);\n break;\n } // End switch\n\n \n // Add the created where clause elements to $this->show_where\n $this->show_where .= $preSql.$this->where;\n } // End foreach\n } // End if $array\n }", "public function where()\n {\n $args = func_get_args();\n $count = count($args);\n \n if ($count == 1) {\n if (is_array($args[0])) {\n # This is expected to be a column => value associated array.\n # In this case, the array is stored as is.\n $this->where[] = $args[0];\n } else {\n # This is expected to be a string.\n $this->where[] = $args[0];\n }\n } elseif ($count) {\n # Case: $query->where(\"foo\", true, \"bar_baz\", $bar);\n if ($count >= 2 && is_int($count / 2) && (!is_array($args[1]) || Toolbox\\ArrayTools::isIndexed($args[1])) && is_bool(strpos($args[0], ' '))) {\n $where = [];\n foreach ($args as $key => $value) {\n $key++;\n if ($key && !($key % 2)) {\n $where[$next_key] = $value;\n } else {\n $next_key = $value;\n }\n }\n $this->where[] = $where;\n } else {\n $this->where[] = array_shift($args);\n \n # Case: $query->where('foo => :foo', ['foo' => $foo]);\n if ($count == 2 && is_array($args[0]) && !Toolbox\\ArrayTools::isIndexed($args[0]))\n $args = $args[0];\n \n if ($args)\n $this->where_params = array_merge($this->where_params, $args);\n }\n }\n return $this;\n }", "public function where($where=array())\n\t\t{\n\t\t\tif( is_array($where) && !empty($where)){\n\n\t\t\t\tforeach( $where as $k => $val ){\n\n\t\t\t\t\t// name = 'jack'\n\t\t\t\t\t// id > 1\n\t\t\t\t\t if( is_array($val) ){\n\n\t\t\t\t\t \t$type = $val[0];\n\n\t\t\t\t\t \tswitch($type){\n\t\t\t\t\t \t\tcase 'lt':\n\t\t\t\t\t \t\t\t$result[] = \"{$k} < {$val[1]} \";\n\t\t\t\t\t \t\t\tbreak;\n\t\t\t\t\t \t\tcase 'gt':\n\t\t\t\t\t \t\t\t$result[] = \"{$k} > {$val[1]} \";\n\t\t\t\t\t \t\t\tbreak;\n\t\t\t\t\t \t}\n\t\t\t\t\t \t\n\t\t\t\t\t }else{\n\n\t\t\t\t\t \t$result[] = \"{$k} = '{$val}'\";\n\t\t\t\t\t }\n\t\t\t\t}\n\n\t\t\t\t$this->where = 'where '.implode(' and ', $result);\n\t\t\t}\n\t\t\t\n\t\t\treturn $this;\n\t\t}", "abstract protected function getWhereForRow($data);", "public function get_where()\n {\n }", "public function get_where()\n {\n }", "public function where( array $value )\n {\n $this->query('where', $value);\n }", "public function where($table,$column,$data = \"\");", "public function where($whereData,$optionalData = null)\n {\n \t if (is_array($whereData)) {\n $dt = $whereData;\n \t }else if (is_string($whereData)){\n if ($optionalData != null) {\n $dt[$this->clean($whereData)] = $this->clean($optionalData);\n }\n }\n \n foreach ($dt as $key => $val) {\n if(!in_array($key, $this->_where)){\n $this->_where[$this->clean($key)] = $this->clean($val);\n }\n }\n \n \t return $this;\n }", "private function _set_where($params) {\n if (count($params) == 1) {\n if (!is_array($params[0]) && !strstr($params[0], \"'\")) {\n $this->db->where($this->primary_key, $params[0]); // 1.\n } else {\n $this->db->where($params[0]); // 2.\n }\n } elseif (count($params) == 2) {\n if (is_array($params[1])) {\n $this->db->where_in($params[0], $params[1]); // 4.\n } else {\n $this->db->where($params[0], $params[1]); // 3.\n }\n }\n }", "public function setWhere($whereArray)\n {\n $this->where = $whereArray;\n }", "public function where($where, $data=null) {\n\t\treturn parent::where($where, $data);\n\t}", "private function appendWhere()\n\t{\n\t\t$whereCount = count($this->where);\n\n\t\tfor($i = 0; $i < $whereCount; $i++)\n\t\t{\n\t\t\t$where = $this->where[$i];\n\n\t\t\tif($i == 0)\n\t\t\t{\n\t\t\t\t$this->queryString .= self::WHERE;\n\t\t\t}\n\n\t\t\t$this->queryString .= $where->getCondition();\n\n\t\t\tif($i < $whereCount-1)\n\t\t\t{\n\t\t\t\t$this->queryString .= \" \" . $where->getOperator() . \" \";\n\t\t\t}\n\t\t}\n\t}", "abstract public function filterWhere(Builder $dataSource);", "public static function createWhereStatement($arr_filter) {\n\n\n\t\t/**\n\t\t * @var $ilDB \\ilDBInterface\n\t\t */\n\t\t$ilDB = $GLOBALS['DIC']->database();\n\t\t$where = array();\n\n\n\t\t$where[] = '(question.assisted_exercise_id = ' . $ilDB->quote($arr_filter['obj_id'], 'integer') . ')';\n\n\t\tif(!empty($arr_filter['firstname'])) {\n\t\t\t$where[] = $ilDB->like(\"usr.firstname\", \"text\", \"%\"\n\t\t\t\t. $arr_filter['firstname']\t. \"%\");\n\n\t\t}\n\n\t\tif(!empty($arr_filter['lastname'])) {\n\t\t\t$where[] = $ilDB->like(\"usr.lastname\", \"text\", \"%\"\n\t\t\t\t. $arr_filter['lastname']\t. \"%\");\n\t\t}\n\n\t\tif(!empty($arr_filter['title'])) {\n\t\t\t$where[] = $ilDB->like(\"question.title\", \"text\", \"%\"\n\t\t\t\t. $arr_filter['title']\t. \"%\");\n\n\t\t}\n\n\n\t\tif($arr_filter['isassessed'] == 1) {\n\t\t\t$where[] = '(answer.is_assessed = ' . $ilDB->quote(0, 'integer') . ' OR answer.is_assessed is Null)';\n\t\t}\n\t\tif($arr_filter['isassessed'] == 2) {\n\t\t\t$where[] = '(answer.is_assessed = ' . $ilDB->quote(1, 'integer') . ')';\n\t\t}\n\n\n\n\t\tif (!empty($where)) {\n\t\t\treturn ' WHERE ' . implode(' AND ', $where) . ' ';\n\t\t} else {\n\t\t\treturn '';\n\t\t}\n\t}", "function tck_admin_list_where($where) {\n if ( isset($_GET['custom_filter']) ) {\n $mode = $_GET['custom_filter'];\n \n if ( $mode == 1 ) $where .= ' AND `' . TCK_COLUMN . '` = 0';\n if ( $mode == 2 ) $where .= ' AND `' . TCK_COLUMN . '` = 1';\n }\n \n return $where;\n }", "public function where($clause, array $params);", "public function whereWrap()\n {\n $where = $this->_dqlParts['where'];\n\n if (count($where) > 0)\n {\n array_unshift($where, '(');\n array_push($where, ')');\n\n $this->_dqlParts['where'] = $where;\n }\n\n return $this;\n }", "function where(array $data, array $whereOptions) : array\n{\n if (count($whereOptions) !== 3) {\n return $data;\n }\n\n $columnData = array_column($data, $whereOptions['coloana']);\n\n if ($whereOptions['semn'] === '<>') {\n foreach ($columnData as $key => $value) {\n if ($value == $whereOptions['valoare']) {\n unset($data[$key]);\n }\n\n }\n }\n if ($whereOptions['semn'] === '=') {\n foreach ($columnData as $key => $value) {\n if ($value <> $whereOptions['valoare']) {\n unset($data[$key]);\n }\n\n }\n }\n if ($whereOptions['semn'] === '>') {\n foreach ($columnData as $key => $value) {\n if ($value < $whereOptions['valoare']) {\n unset($data[$key]);\n }\n\n }\n }\n if ($whereOptions['semn'] === '<') {\n foreach ($columnData as $key => $value) {\n if ($value > $whereOptions['valoare']) {\n unset($data[$key]);\n }\n\n }\n }\n\n return array_values($data);\n}", "public function whereComplex()\n {\n return $this->addComplexCondition('and', $this->conditions);\n }", "public function where()\n {\n $args = func_get_args();\n $num_args = count($args);\n \n // Custom queries\n if ( $num_args == 2 && is_array($args[1]) )\n {\n $this->where = $args[0];\n $this->params = $args[1];\n }\n else\n {\n // AND equality condition\n if ( $num_args == 2 )\n {\n list($field, $value) = $args;\n $op = '=';\n }\n // AND with custom operation condition\n else\n {\n list($field, $op, $value) = $args;\n }\n $this->appendWhere('AND', $field, $op, $value); \n }\n return $this;\n }", "function getColumnFilter ( &$where = array(),\n $table,\n $column,\n $columnLogicOpr,\n $minOper,\n $minValue,\n $rangeLogicOper,\n $maxOper,\n $maxValue ) {\n if ( ($minOper != \"\" and $minValue != \"\") and ( $maxValue == \"\" )) {\n $where[] = \"$columnLogicOpr \".self::getTableAlias( $table ).\".$column \".self::assignSymbol( $minOper ).\" $minValue\";\n }\n // Assign just the max limit\n if ( ($maxOper != \"\" and $maxValue != \"\") and ( $minValue == \"\") ) {\n $where[] = \"$columnLogicOpr \". self::getTableAlias ($table) . \".$column \".self::assignSymbol($maxOper).\" $maxValue\";\n }\n\t// Assign both min and max limit\n if ( ($maxOper != \"\" and $maxValue != \"\") and ($minOper != \"\" and $minValue != \"\") ) {\n $where[] = \"$columnLogicOpr ( \".self::getTableAlias( $table ).\".$column \".self::assignSymbol( $minOper ).\" $minValue $rangeLogicOper \".\n self::getTableAlias ($table) . \".$column \".self::assignSymbol($maxOper).\" $maxValue )\";\n }\n }", "public function createWhere() {\n\t\tlist($where, $joins) = parent::createWhere();\n\t\tif (!($this->parent->parent instanceof QuerySet))\n\t\t\t$where = \" WHERE \" . $where;\n\t\telse\n\t\t\t$where = \" AND \" . $where;\n\t \n\t\treturn array($where, $joins);\n\t}", "public function getWhereClause() {\n\n\tif (isset($this->filters) && !empty($this->filters)) {\n\t\t// $aClause = array();\n\t\t// $aOperators = array();\n\t\t$sClause = '';\n\t switch ($this->type) {\n\t\tcase 0:\n\t\tcase 4:\n\t\tdefault:\n\t\t \n\t\t $aWhere = $this->getFilter($this->filters);\n\t\t if ($aWhere) {\n\t\t \t$i = 1;\n\t\t\t\tforeach ($aWhere as $key => $value) {\n\t\t\t\t // $this->model->where($key, $value);\n\t\t\t\t $sClause .= $key . ' = ' . $value . (count($aWhere) == $i++ ? '' : ' OR ');\n\t\t\t\t}\n\t\t }\n\t\t break;\n\t\tcase 1:\n\t\t $aWhere = $this->getLikeFilter($this->filters);\n\t\t if ($aWhere) {\n\t\t \t$i = 1;\n\t\t\t\tforeach ($aWhere as $key => $value) {\n\t\t\t\t // $this->model->where_like($key, $value);\n\t\t\t\t $sClause .= $key . ' LIKE ' . $value . (count($aWhere) == $i++ ? '' : ' OR ');\n\t\t\t\t}\n\t\t }\n\t\t break;\n\t\tcase 2:\n\t\t $aWhere = $this->getRangeFilter($this->filters);\n\t\t if ($aWhere) {\n\t\t \t$i = 1;\n\t\t\t\tforeach ($aWhere as $key => $value) {\n\t\t\t\t // $this->model->where_raw($key, $value);\n\t\t\t\t\t$sClause .= vsprintf(str_replace('?','%s',$key),$value) . (count($aWhere) == $i++ ? '' : ' OR ');\n\t\t\t\t}\n\t\t }\n\t\t break;\n\t\tcase 3:\n\t\t $aWhere = $this->getInFilter($this->filters);\n\t\t if ($aWhere) {\n\t\t \t$i = 1;\n\t\t\t\tforeach ($aWhere as $key => $value) {\n\t\t\t\t\t$sClause .= $key . ' IN (' . implode(',',$value) . ')' . (count($aWhere) == $i++ ? '' : ' OR ');\n\t\t\t\t // $this->model->where_in($key, $value);\n\t\t\t\t}\n\t\t }\n\t\t break;\n\t\tcase 5:\n\t\t $aWhere = $this->getInRawFilter($this->filters);\n\t\t if ($aWhere) {\n\t\t \t$i = 1;\n\t\t\t\tforeach ($aWhere as $key => $value) {\n\t\t\t\t // $this->model->where_raw($key, $value);\n\t\t\t\t\t$sClause .= vsprintf(str_replace('?','%s',$key),$value) . (count($aWhere) == $i++ ? '' : ' OR ');\n\t\t\t\t}\n\t\t }\n\t\t break;\n\t\tcase 6:\n\t\t $aWhere = $this->getDependendFilter($this->filters);\n\t\t if ($aWhere) {\n\t\t \t$i = 1;\n\t\t\t\tforeach ($aWhere as $key => $value) {\n\t\t\t\t // $this->model->where_raw($value, array());\n\t\t\t\t $sClause .= $value . (count($aWhere) == $i++ ? '' : ' OR ');\n\t\t\t\t}\n\t\t }\n\t\t break;\n\t }\n\t}\n\treturn $sClause;\n\t// return $this->model;\n }", "public function set_where(array $params) {\n $where = '';\n foreach ($params as $field_name => $field_value) {\n $where .= '`' . $field_name . '` = \\'' . $field_value . '\\' AND ';\n }\n\n $where = rtrim($where, ' AND ');\n $this->where = ' WHERE ' . $where;\n }", "private function sql_whereAllItems()\n {\n $where = '1 ' .\n $this->sql_whereAnd_pidList() .\n $this->sql_whereAnd_enableFields() .\n $this->sql_whereAnd_Filter() .\n $this->sql_whereAnd_fromTS() .\n $this->sql_whereAnd_sysLanguage();\n // Get WHERE statement\n // RETURN WHERE statement without a WHERE\n return $where;\n }", "public function orWhere($table,$column,$data = \"\");", "function getWhereClause($local = array()) {\n global $whereFilter;\n\n $where = array_merge($local, $whereFilter);\n if (count($where) > 0) {\n $output = \" where \" . implode(\" and \", $where) . \" \";\n return $output;\n } else {\n return \"\";\n }\n}", "function where($s)\n{\n\t$this->tryModify();\n\tif(!isset($this->query['where'])) $this->query['where'] = array();\n\t$this->query['where'][] = $this->setWhereParams($s, func_get_args(), 1);\n\treturn $this;\n}", "protected abstract function getWhereClause(array $conditions);", "private function buildWhere()\n {\n $query = array();\n\n // Make sure there's something to do\n if (isset($this->query['where']) and count($this->query['where'])) {\n foreach ($this->query['where'] as $group => $conditions) {\n $group = array(); // Yes, because the $group above is not used, get over it.\n foreach ($conditions as $condition => $value) {\n // Get column name\n $cond = explode(\" \", $condition);\n $column = str_replace('`', '', $cond[0]);\n $safeColumn = $this->columnName($column);\n\n // Make the column name safe\n $condition = str_replace($column, $safeColumn, $condition);\n\n // Add value to the bind queue\n $valueBindKey = str_replace(array('.', '`'), array('_', ''), $safeColumn);\n\n if (!empty($value) or $value !== null) {\n $this->valuesToBind[$valueBindKey] = $value;\n }\n\n // Add condition to group\n $group[] = str_replace(\"?\", \":{$valueBindKey}\", $condition);\n }\n\n // Add the group\n $query[] = \"(\" . implode(\" AND \", $group) . \")\";\n }\n\n // Return\n return \"WHERE \" . implode(\" OR \", $query);\n }\n }", "abstract function get_sql_filter($data);", "public function where(array $array = array(), $operator = 'and') {\n $where = '';\n $counter = 0;\n foreach ($array as $key => $value) {\n $this->placeHolder[\":$key\"] = $value;\n if ($counter > 0) {\n $where.=\" $operator `$key`=:$key\";\n } else {\n $where.=\"`$key`=:$key\";\n }\n $counter++;\n }\n // $where = trim($where, $operator);\n $this->sql.=\" WHERE \" . $where;\n }", "public function updateWhere(Array $query, Array $data)\r\n {\r\n }", "function where($callback,$strict = false){\r\n \treturn Arr::where($callback, $this, $strict);\r\n }", "protected function setFilterArray() {\n $primary_keys = getPrimaryKeys($this->table_name);\n foreach ($primary_keys as $pk) {\n if (isset($_GET[$pk])) {\n $this->filter[$pk] = Mysql::SQLValue($_GET[$pk]);\n }\n }\n }", "public function getWhereSQL()\n {\n return \" AND \" . $this->field_where_name . \" LIKE '%\" . $this->field_row->criteria . \"%' \";\n \n }", "public function where(array $params)\n {\n }", "protected function getWhereClauseForEnabledFields() {}", "function SetArray($arrWhere)\r\n\t{\r\n\t\t$this->_arrWhere = $arrWhere;\r\n\t}", "private function prepareWhereCondition($where)\n {\n list($attribute, $value, $boost) = array_pad($where, 3, null);\n $subFilter = new Term();\n $subFilter->setTerm($attribute, $value, $boost);\n $this->filter->addMust($subFilter);\n }", "protected function _buildWhere(array $filter_data = array())\n {\n\t\t$where = \"1\";\n \t\n \tif( isset($filter_data['category']) && $filter_data['category'] )\n\t\t{\n\t\t\t$where .= \" AND {$this->c_table}.category_id=\".intval($filter_data['category']);\n\t\t}\n\t\t\n\t\treturn $where;\n }", "public function where(array $whereClause): self\n {\n $this->fetchData[self::WHERE_CLAUSE] = $whereClause;\n\n return $this;\n }", "public function testWhere() {\n\t\t$array = array(\n\t\t\tarray('a' => 1, 'b' => 'testing'),\n\t\t\tarray('a' => 2, 'b' => 'testing'),\n\t\t\tarray('a' => 3, 'b' => 'one'),\n\t\t\tarray('a' => 2, 'b' => 'two'),\n\t\t\tarray('a' => 4, 'b' => 'three'),\n\t\t);\n\t\t$result = _::where($array);\n\t\t$this->assertInternalType('array', $result);\n\t\t$this->assertCount(0, $result);\n\n\t\t// test matching a single field in an array\n\t\t$result = _::where($array, array('b' => 'testing'));\n\t\t$this->assertInternalType('array', $result);\n\t\t$this->assertCount(2, $result);\n\t\t$this->assertEquals(1, $result[0]['a']);\n\t\t$this->assertEquals('testing', $result[0]['b']);\n\t\t$this->assertEquals(2, $result[1]['a']);\n\t\t$this->assertEquals('testing', $result[1]['b']);\n\n\t\t// test finding the first element by a single field in an array\n\t\t$result = _::where($array, array('b' => 'testing'), true);\n\t\t$this->assertInternalType('array', $result);\n\t\t$this->assertCount(2, $result);\n\t\t$this->assertEquals(1, $result['a']);\n\t\t$this->assertEquals('testing', $result['b']);\n\n\t\t// test matching objects in an array\n\t\tforeach ($array as $i => $item) {\n\t\t\t$array[$i] = (object)$item;\n\t\t}\n\t\t$result = _::where($array, array('a' => 2));\n\t\t$this->assertInternalType('array', $result);\n\t\t$this->assertCount(2, $result);\n\t\t$this->assertEquals(2, $result[1]->a);\n\t\t$this->assertEquals('testing', $result[1]->b);\n\t\t$this->assertEquals(2, $result[3]->a);\n\t\t$this->assertEquals('two', $result[3]->b);\n\t}", "protected function where($data, $conditional = false) {\n\n\t \t$fields = count($data);\n\t\t\t$i = 0;\n\n\t\t\t$this->_where = ' WHERE ';\n\n\t\t\tforeach ($data as $key => $value) {\n\t\t\t\t$newKey = ':'.$key;\n\t\t\t\tif ( $fields == 1) {\n\t\t\t\t\t$this->_where .= $key . ' = ' . $newKey;\n\t\t\t\t\t$this->_params[$newKey] = $value;\n\t\t\t\t\tbreak;\n\t\t\t\t} else {\n\t\t\t\t\t$this->_params[$newKey] = $value;\n\t\t\t\t\tif ( $i+1 == $fields) {\n\t\t\t\t\t\t$this->_where .= $key . ' = ' . $newKey;\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$cond = ($conditional) ? $conditional[$i] : 'AND';\n\t\t\t\t\t\t$this->_where .= $key . ' = ' . $newKey . ' ' . $cond . ' ';\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$i++;\n\t\t\t}\n\t }", "function generate_where($field,$array)\n{\n\tfor ($i=0;$i<sizeof($array);$i++)\n\t{\n\t\t$where=$where.\" \".$field.\" like \".$array[$i];\n\t\tif ($i<sizeof($array)-1)\n\t\t\t$where=$where.\" or\";\n\t}\n\tif (!isset($where))\n\t{\n\t\t$where = 0;\n\t}\n\tif (!isset($where))\n\t{\n\t\t$where=\"'0'\";\n\t}\n\treturn $where;\n}", "public function searchWhere(array $data)\n {\n $this->populateEntity($data);\n\n $where = array();\n\n foreach($data as $key => $value){\n if(strripos($key , '_begin')){\n $dateColumn = str_replace('_begin' , '', $key);\n $dateBegin = $key;\n } else if(strripos($key , '_end')) {\n $dateEnd = $key;\n }\n }\n\n if($dateBegin && $dateEnd && !empty($data[$dateBegin]) && !empty($data[$dateEnd])){\n $dataWhere[] = \" ({$dateColumn} BETWEEN TO_DATE('{$data[$dateBegin]}' , 'DD/MM/YYYY') AND TO_DATE('{$data[$dateEnd]}' , 'DD/MM/YYYY'))\";\n }\n\n foreach($this->entity as $nameColumn => $entity){\n if(!empty($entity['value']) ){\n if($entity['type'] == 'integer' || $entity['type'] == 'numeric'){\n $dataWhere[] = \"{$nameColumn} = '{$entity['value']}'\";\n } else if ($entity['type'] == 'date' || $entity['type'] == 'timestamp with time zone'){\n $dataWhere[] = \"TO_CHAR({$nameColumn} , 'DD/MM/YYYY') = '{$entity['value']}'\";\n } else {\n $dataWhere[] = \"{$nameColumn} ILIKE '%{$entity['value']}%'\";\n }\n }\n }\n\n if( $dataWhere && count($dataWhere) > 0 ) {\n $where = implode(' AND ' , $dataWhere );\n } else {\n $where = '';\n }\n\n $this->clearEntity();\n\n return $where;\n }", "function plain_where($base) {\r\n for($i=1; $i<=$this->conditions; $i++) {\r\n ## Only create conditions for used input fields\r\n if ($GLOBALS[$base][\"input_\".$i] == \"\")\r\n continue;\r\n\r\n ## If necessary, add conjunction\r\n if ($q != \"\")\r\n $q .= sprintf(\" %s \", $GLOBALS[$base][\"conj_\".$i]);\r\n \r\n ## Handle \"like\"\r\n if ($GLOBALS[$base][\"comp_\".$i] == \"like\")\r\n $v = \"%\".$GLOBALS[$base][\"input_\".$i].\"%\";\r\n else\r\n $v = $GLOBALS[$base][\"input_\".$i];\r\n\r\n ## Create subcondition\r\n $q .= sprintf(\"%s %s '%s'\",\r\n $GLOBALS[$base][\"sel_\".$i],\r\n $GLOBALS[$base][\"comp_\".$i],\r\n $v);\r\n }\r\n \r\n if (!$q) {\r\n $q = \"1=0\";\r\n }\r\n \r\n return \"( $q )\";\r\n }", "function setWhereArray() {\t\t\n\t\tif(isset($_GET['searchSubmit']) || empty(session()->get('warray'))) {\n\t\t\t$this->addToWhereArray('searchLoc','city','like');\n\t\t\t$this->addToWhereArray('searchSizeMin','size','>');\n\t\t\t$this->addToWhereArray('searchSizeMax','size','<');\n\t\t\t$this->addToWhereArray('rentOrSell','rentOrSell','=');\n\n\t\t\tsession()->put('warray',$this->whereArray);\t\t\n\t\t} else {\t\t\t\t\n\t\t\t$this->whereArray = session()->get('warray');\n\t\t}\n\t}", "function OrWhereClause() {\n\t\t$this->clauses = func_get_args();\n\t}", "function AndWhereClause() {\n\t\t$this->clauses = func_get_args();\n\t}", "public function filter()\n\t{\n\t\treturn implode( ' AND ', array_map( function( $col ) { return \"$col=?\"; }, array_keys( $this->_id ) ) );\n\t}", "protected function _buildWhere(&$query)\n {\n\n return $query;\n }", "public function andWhere() {\r\n\t\t$args = func_get_args();\r\n\t\t$statement = array_shift($args);\r\n\t\t//if ( (count($args) == 1) && (is_null($args[0])) ) {\r\n\t\t//\t$this->_wheres = array();\r\n\t\t//\treturn null;\r\n\t\t//}\r\n\t\t$criteria = new Dbi_Sql_Criteria($this, new Dbi_Sql_Expression($statement, $args));\r\n\t\t$this->_wheres[] = $criteria;\r\n\t\treturn $criteria;\r\n\t}", "public function sectionTableWhere() {}", "public function sectionTableWhere() {}", "private function filter() {\r\n $globalSearch = array();\r\n $columnSearch = array();\r\n\r\n $columns = $this->resource->setDatatableFields(TRUE);\r\n\r\n $dtColumns = $this->pluck($columns, 'dt');\r\n\r\n if (isset($this->resource->requestData['search']) && $this->resource->requestData['search']['value'] != '') {\r\n\r\n $str = $this->resource->requestData['search']['value'];\r\n\r\n for ($i = 0, $ien = count($this->resource->requestData['columns']); $i < $ien; $i++) {\r\n $requestColumn = $this->resource->requestData['columns'][$i];\r\n $columnIdx = array_search($requestColumn['data'], $dtColumns);\r\n $column = $columns[$columnIdx];\r\n if ($requestColumn['searchable'] == 'true') {\r\n\r\n $binding = '%' . $str . '%';\r\n\r\n if (strpos($column['db'], \".\") !== FALSE) {\r\n\r\n $fld = explode('.', $column['db']);\r\n $globalSearch[] = $this->adapter->platform->quoteIdentifierChain([$fld[0], $fld[1]]) . \" LIKE \" . $this->adapter->platform->quoteValue($binding);\r\n } else {\r\n $globalSearch[] = $this->adapter->platform->quoteIdentifier($column['db']) . \" LIKE \" . $this->adapter->platform->quoteValue($binding);\r\n }\r\n }\r\n }\r\n }\r\n // Individual column filtering\r\n if (isset($this->resource->requestData['columns'])) {\r\n for ($i = 0, $ien = count($this->resource->requestData['columns']); $i < $ien; $i++) {\r\n $requestColumn = $this->resource->requestData['columns'][$i];\r\n $columnIdx = array_search($requestColumn['data'], $dtColumns);\r\n $column = $columns[$columnIdx];\r\n $str = $requestColumn['search']['value'];\r\n if ($requestColumn['searchable'] == 'true' &&\r\n $str != '') {\r\n\r\n $binding = '%' . $str . '%';\r\n\r\n if (strpos($column['db'], \".\") !== FALSE) {\r\n\r\n $fld = explode('.', $column['db']);\r\n $columnSearch[] = $this->adapter->platform->quoteIdentifierChain([$fld[0], $fld[1]]) . \" LIKE \" . $this->adapter->platform->quoteValue($binding);\r\n } else {\r\n $columnSearch[] = $this->adapter->platform->quoteIdentifier($column['db']) . \" LIKE \" . $this->adapter->platform->quoteValue($binding);\r\n }\r\n }\r\n }\r\n }\r\n // Combine the filters into a single string\r\n $where = '';\r\n if (count($globalSearch)) {\r\n $where = '(' . implode(' OR ', $globalSearch) . ')';\r\n }\r\n if (count($columnSearch)) {\r\n $where = $where === '' ?\r\n implode(' AND ', $columnSearch) :\r\n $where . ' AND ' . implode(' AND ', $columnSearch);\r\n }\r\n\r\n return $where;\r\n }", "public function filter(array $data, $exact = false)\n {\n $query = 'SELECT * FROM ' . $this->connection->quoteIdentifier($this->table) . ' ';\n $where = array();\n\n foreach ($data as $key => $value) {\n $value = trim($value);\n\n if ($exact) {\n $where[] = $this->connection->quoteIdentifier($key) . ' = ' . $this->connection->quote($value);\n } else {\n $where[] = $this->connection->quoteIdentifier($key) .\n ' LIKE ' . $this->connection->quote('%' . $value . '%');\n }\n }\n\n\n return $this->connection->fetchAll($query . implode(' AND ', $where));\n }", "function start_group_where($key,$value=NULL,$escape=TRUE,$type=\"AND\")\n {\n $this->open_bracket($type); \n return parent::_where($key, $value,'',$escape); \n }", "private function sql_whereWiHits()\n {\n // Get WHERE statement\n $where = $this->pObj->objSqlInit->statements[ 'listView' ][ 'where' ] .\n $this->sql_whereAnd_Filter() .\n $this->sql_whereAnd_fromTS();\n // Localise the WHERE statement\n $where = $this->sql_whereWiHitsLL( $where );\n // RETURN WHERE statement without a WHERE\n return $where;\n }", "protected function constructWhere($where)\n {\n if (is_array($where)) {\n $equals = array();\n \n foreach ($where as $column => $value) {\n $equals[] = new Equal($column, $value);\n }\n\n $this->where = new Where(new AndOperator($equals));\n } else {\n $this->where = new Where($where);\n }\n }", "public function where()\n {\n $bindings = func_get_args();\n $sql = array_shift($bindings);\n\n $this->addToBindings($bindings);\n $this->wheres[] = $sql;\n\n return $this;\n }", "public function modifyWhere(&$sql, $table = 'listings')\n {\n if (!$this->geo_filter_data['applied_location']\n || !$this->geo_filter_data['is_filtering']\n ) {\n return;\n }\n\n if (!$sql) {\n $sql = &$GLOBALS['sql'];\n }\n\n $data_key = $table == 'accounts' ? 'location_account_fields' : 'location_listing_fields';\n $data = $this->geo_filter_data[$data_key];\n\n // Return if location search already performed from the search form\n if (strpos($sql, key($this->geo_filter_data[$data_key]))) {\n return;\n }\n\n foreach ($data as $field => $value) {\n if ($value) {\n $sql .= \"AND `T1`.`{$field}` = '{$value}' \";\n }\n }\n }", "public function where($sql)\n {\n $this->where[] = call_user_func_array('self::clause', func_get_args());\n return $this;\n }", "protected function _buildWhere(&$query)\r\n {\r\n\r\n\r\n \t//if($this->_checkin!=null)\r\n \t//{\r\n \t//\t$query->where('ltap.ltap_qdatu = \"'.$this->_confdate.'\"');\r\n \t//}\r\n return $query;\r\n }", "private function sql_where($filter, $structure) {\n\t\t$pool_class = $structure['class'] . 'Pool_Model';\n\t\t$visitor = new $this->sql_builder_visitor_class_name(array($pool_class, \"map_name_to_backend\"));\n\t\t$sql = \" WHERE \".$filter->visit($visitor, false);\n\t\treturn $sql;\n\t}", "private function mergeWhere(){\n $wheres = $this->wheres;\n if (count($wheres) == 1)\n return $wheres[0];\n $whereString = \"\";\n foreach ($wheres as $where){\n $whereString .= $where.\" AND \";\n }\n return rtrim($whereString, \" AND \");\n }", "private function generateWhereString($array){\n\t\t$str = \" WHERE \";\n\t\tforeach($array as $k => $v){\n\t\t\t$str .= \" $k = $v\";\n\t\t}\n\t\treturn $str;\n\t}", "public function andWhere($col, $operator = self::NO_OPERATOR, $value = self::NO_VALUE);", "private function where($where, &$params) {\n if (!isset($where)) {\n return false;\n }\n $rwhere = '';\n if (is_array($where)) {\n $rwhere = 'WHERE ';\n foreach ($where as $k => $v) {\n $v = trim($v);\n if (substr($v, 0, 1) == '\"' || substr($v, 0, 1) == \"'\" || substr($v, 0, 2) == 'fn') {\n $s = $v;\n } else {\n $va = ':w_' . $k;\n $params[$va] = empty($v) ? null : $v;\n $s = $va;\n }\n $rwhere .= \" `\" . $k . \"` = \" . $s . \" AND\";\n }\n $rwhere = substr($rwhere, 0, -4);\n } else {\n $rwhere = $where;\n }\n\n return $rwhere;\n }", "public function where($clause, $value = null, $type = PDO::PARAM_STR)\n\t{\n\t\t$this->wheres[] = array(\n\t\t\t'clause' => $clause,\n\t\t\t'value' => $value,\n\t\t\t'type' => $type\n\t\t);\n\t}", "public function andWhereArray(array $where)\n\t{\n\t\treturn $this->whereArray($where, 'and');\n\t}", "function where($sql, $params = []) {\n\t\tif (gettype($sql) == 'array') {\n\t\t\t$cols = array();\n\t\t\tforeach ($sql as $col => $val) {\n\t\t\t\t$cols[] = \"`$col` = ?\";\n\t\t\t\t$params[] = $val;\n\t\t\t}\n\t\t\t$sql = implode($cols, \" AND \");\n\t\t}\n\t\t\n\t\tisset($this->stmts['where']) ? $sql = \"AND $sql\" : $sql = \"WHERE $sql\";\n\t\treturn $this->appendStmt('where', $sql, $params);\n\t}", "private function __where_restraint($rest, $clause){\r\n $objKey = (sizeof($rest) === 3?2:1);\r\n $value = $rest[$objKey];\r\n\r\n $valueType = \"%s\";\r\n\r\n if($value instanceof \\DateTime){\r\n $value = $value->format(\"Y-m-d H:i:s\");\r\n }else if(is_integer($value)){\r\n $valueType = \"%i\";\r\n }else if(is_double($value)){\r\n $valueType=\"%d\";\r\n }\r\n\r\n $what = $rest[0].(sizeof($rest) === 3?$rest[1]:\"=\").$valueType;\r\n $clause->add($what, $value);\r\n\r\n unset($objKey);\r\n unset($operation);\r\n unset($what);\r\n unset($value);\r\n unset($valueType);\r\n\r\n return $this;\r\n }", "public function where()\r\n {\r\n $arguments = func_get_args();\r\n $columnName = array_shift($arguments);\r\n $column = $this->getColName($columnName);\r\n if(isset($arguments[2]))\r\n {\r\n $namedCondition = $arguments[2];\r\n unset($arguments[2]);\r\n }\r\n else\r\n {\r\n $namedCondition = null;\r\n }\r\n list($value, $comparison) = self::getValueAndComparisonFromArguments($arguments);\r\n $this->addCondition('and', $column, $comparison, $value, $namedCondition);\r\n \r\n return $this;\r\n }", "function dbWhereVars() {\n\n foreach ($this->fields() as $f) {\n if ($this->$f === false) continue;\n $this->db->where($this->model.'.'.$f,$this->$f);\n }\n\n }", "public function loadDefaultWhere()\n {\n if ($this->data) {\n if (static::$primaryKey === null) {\n return $this;\n }\n $primaryKey = is_array(static::$primaryKey) ? static::$primaryKey : [static::$primaryKey];\n $cond = '';\n $values = [];\n foreach ($primaryKey as $field) {\n $cond .= ($cond !== '' ? ' AND ' : '') . $field . ' = ?';\n $values[] = $this->data[$field] ?? null;\n }\n $this->where($cond, $values);\n }\n return $this;\n }", "protected function filterQuery(&$query) {\n foreach($this->filter_params as $filter) {\n if(Input::has($filter)) {\n $val = Input::get($filter);\n $query->where($filter, '=', $val);\n }\n }\n }", "protected static function whereFormat($where){\n $whereArray = array();\n\n $operate = ' AND ';\n\n foreach ($where as $key => $set){\n if(is_string($set)){\n if(count($where) == 2){\n list($filed,$value) = $where;\n $whereArray[] = $filed . ' = ' . $value;\n }\n if(count($where) == 3){\n list($filed,$exp,$value) = $where;\n if(in_array($exp, array('=','<=','<>','>=')) && $value){\n $whereArray[] = $filed . \" $exp \" . $value;\n }\n if(in_array($exp, array('in','not in')) && $value){\n $value = implode(',', $value);\n $whereArray[] = $filed . \" $exp \" . \" ($value)\";\n }\n }\n break;\n }elseif(is_array($set)){\n if(count($set) == 2){\n list($filed,$value) = $set;\n $whereArray[] = $filed . ' = ' . $value;\n }\n if(count($set) == 3){\n list($filed,$exp,$value) = $set;\n if(in_array($exp, array('=','<=','<>','>=')) && $value){\n $whereArray[] = $filed . \" $exp \" . $value;\n }\n if(in_array($exp, array('in','not in')) && $value){\n $value = implode(',', $value);\n $whereArray[] = $filed . \" $exp \" . \" ($value)\";\n }\n }\n }\n\n }\n return implode($operate, $whereArray);\n }", "private function _where($whereData) \n\t{\n\t\t// record the where data inside the object statement data for further use.\n\t\t$this->_stmtData = $whereData;\n\t\t\n\t\t// Fetch the field names\n\t\t$fields = array_keys ( $whereData );\n\t\t\n\t\t// initiating the where clause\n\t\t$where_clause = ' WHERE ';\n\t\t\n\t\t// setting up a counter\n\t\t$count = 1;\n\t\t\n\t\tforeach ( $fields as $field ) {\n\t\t\t$where_clause .= $field . \"=:\" . $field;\n\t\t\t\n\t\t\t// For all iterations besides the last one add an AND operator\n\t\t\tif ($count < count ( $fields )) {\n\t\t\t\t$count ++;\n\t\t\t\t$where_clause .= ' AND ';\n\t\t\t}\n\t\t}\n\t\t\n\t\t$this->_query .= $where_clause;\n\t}", "public function whereOR()\n {\n $this->where_clause .= \" OR \";\n }", "function MyMod_Search_Vars_Pre_Where()\n {\n $searchvars=array();\n foreach ($this->MyMod_Search_Vars() as $data)\n {\n $wheres=array();\n if ($this->MyMod_Data_Access($data)>=1)\n {\n $rdata=$this->MyMod_Search_CGI_Name($data);\n $value=$this->MyMod_Search_CGI_Value($data);\n\n if (!empty($value))\n {\n $where=$this->MyMod_Search_Var_Where($data,$value);\n if (!empty($where))\n {\n array_push($wheres,$where);\n }\n\n $searchjoined=$this->ItemData($data,\"Search_Joined\");\n\n if (is_array($searchjoined))\n {\n foreach ($searchjoined as $rdata)\n {\n if (!empty($this->ItemData[ $rdata ]))\n {\n array_push\n (\n $wheres,\n $this->MyMod_Search_Var_Where($data,$value,$rdata)\n );\n }\n }\n }\n\n $searchvars[ $data ]=\"(\".join(\" OR \",$wheres).\")\";\n }\n }\n \n }\n\n return $searchvars;\n }", "protected function _setWhere(&$sql, $where, $whereValues) {\n\t\t\n\t\tif (!is_null($where)) $sql.= ' WHERE ' . $where;\n\t}", "function _where ($identifier_array, $o = TRUE) {\n\t\t$statement = '';\n\t\tif ( !isset($identifier_array) || !$identifier_array ) {\n\t\t\treturn $statement;\n\t\t}\n\t\t$statement .= $o ? ' WHERE ' : ' ';\n\t\tforeach ($identifier_array as $query_array) {\n\t\t\t$sub_stmt = '(';\n\t\t\tif ( isset($query_array['name']) && ! is_array($query_array['value']) ) {\n\t\t\t\t$regex = isset($query_array['regex']) ? $query_array['regex'] : '@';\n\t\t\t\t$sub_stmt .= '`' . $query_array['name'] . '` ';\n\t\t\t\t$sub_stmt .= (isset($query_array['ctype']) ? $query_array['ctype'] : '=') . ' ';\n\t\t\t\t$sub_stmt .= $this->escape($query_array['value'], $regex, FALSE);\n\t\t\t} else {\n\t\t\t\t// Incoming value is an array.\n\t\t\t\t$sub_stmt .= $this->_where($query_array['value'], FALSE);\n\t\t\t}\n\t\t\t$sub_stmt .= ')';\n\t\t\t$sub_stmt .= (isset($query_array['atype']) ? (' ' . $query_array['atype']).' ' : '');\n\t\t\t$statement .= $sub_stmt;\n\t\t}\n\t\treturn $statement; \n\t}", "private function setCustomWhere()\n\t{\n\t\tif ($this->customQuery->where) {\n\t\t\t$this->where = array_merge_recursive($this->customQuery->where, $this->where);\n\t\t}\n\n\t\treturn $this;\n\t}", "function array_to_where_clause($a_vars) {\n\tglobal $mysqli;\n\n\t$a_where = array();\n\tforeach($a_vars as $k=>$v) {\n\t\t\t$k = $mysqli->real_escape_string($k);\n\t\t\t$v = $mysqli->real_escape_string($v);\n\t\t\t$a_where[] = \"`$k`='$v'\";\n\t}\n\t$s_where = implode(' AND ', $a_where);\n\treturn $s_where;\n}" ]
[ "0.75756407", "0.7161281", "0.70864636", "0.7028656", "0.7005858", "0.6789415", "0.67739147", "0.6722282", "0.67026776", "0.66404605", "0.6587209", "0.6579491", "0.65438855", "0.6516076", "0.64650655", "0.640804", "0.64033073", "0.63973254", "0.63862914", "0.6373616", "0.6373616", "0.63569033", "0.6313284", "0.6302999", "0.6277666", "0.62548566", "0.62425786", "0.6239066", "0.62356883", "0.6231955", "0.62190324", "0.62069315", "0.62040174", "0.61614674", "0.61560565", "0.61526436", "0.61445504", "0.6141793", "0.6133564", "0.61239797", "0.60974187", "0.6089058", "0.6073975", "0.60723627", "0.60504025", "0.6035846", "0.6024437", "0.60229415", "0.6020565", "0.6018453", "0.60183936", "0.6004326", "0.59992504", "0.5995961", "0.59766763", "0.5975409", "0.5972855", "0.5958452", "0.59362185", "0.5933438", "0.5932773", "0.5928899", "0.59247994", "0.59215605", "0.5919682", "0.59121615", "0.59083426", "0.5906669", "0.5902381", "0.5897083", "0.5897083", "0.5896905", "0.58900607", "0.58847684", "0.5876999", "0.58769643", "0.58654034", "0.5861534", "0.58594763", "0.58551306", "0.5852927", "0.5837616", "0.58359414", "0.58349544", "0.5830126", "0.5810958", "0.5807229", "0.5804691", "0.57998025", "0.57955486", "0.57949954", "0.57926327", "0.5781705", "0.5778965", "0.57657534", "0.5759097", "0.5756776", "0.5741797", "0.571777", "0.57159173", "0.57120067" ]
0.0
-1
Alias for where method
public function and(string $key, ...$arguments) : Api { return $this->where($key, ...$arguments); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function user_where_clause() {}", "abstract public function where(array $where);", "public function where() {\r\n\t\t$args = func_get_args();\r\n\t\treturn call_user_func_array(array($this, 'andWhere'), $args);\r\n\t}", "protected function getWhereClause() {}", "public function get_where()\n {\n }", "public function get_where()\n {\n }", "public static function where(array $where);", "public function where($where, $data=null) {\n\t\treturn parent::where($where, $data);\n\t}", "function where($callback,$strict = false){\r\n \treturn Arr::where($callback, $this, $strict);\r\n }", "protected function getGeneralWhereClause() {}", "public function where($table,$column,$data = \"\");", "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 where()\n {\n return $this->query; \n }", "public function where()\n {\n $args = func_get_args();\n $num_args = count($args);\n \n // Custom queries\n if ( $num_args == 2 && is_array($args[1]) )\n {\n $this->where = $args[0];\n $this->params = $args[1];\n }\n else\n {\n // AND equality condition\n if ( $num_args == 2 )\n {\n list($field, $value) = $args;\n $op = '=';\n }\n // AND with custom operation condition\n else\n {\n list($field, $op, $value) = $args;\n }\n $this->appendWhere('AND', $field, $op, $value); \n }\n return $this;\n }", "public function getWhere() {\n return $this->_where ?: new Predicate(Predicate::ALSO);\n }", "public function getWhere($where, Database_Config $databaseConfig = NULL);", "function getWhere() {\n return $this->where;\n }", "public function getTableWhere() {}", "public function getWhere()\n {\n return $this->where;\n }", "public function where($column, $operator, $value);", "public function where()\r\n {\r\n $arguments = func_get_args();\r\n $columnName = array_shift($arguments);\r\n $column = $this->getColName($columnName);\r\n if(isset($arguments[2]))\r\n {\r\n $namedCondition = $arguments[2];\r\n unset($arguments[2]);\r\n }\r\n else\r\n {\r\n $namedCondition = null;\r\n }\r\n list($value, $comparison) = self::getValueAndComparisonFromArguments($arguments);\r\n $this->addCondition('and', $column, $comparison, $value, $namedCondition);\r\n \r\n return $this;\r\n }", "public function where(callable $predicate);", "public function where()\n {\n $bindings = func_get_args();\n $sql = array_shift($bindings);\n\n $this->addToBindings($bindings);\n $this->wheres[] = $sql;\n\n return $this;\n }", "abstract protected function getWhereForRow($data);", "public function where(array $params)\n {\n }", "function get_where($where = array(), $limit = NULL, $offset = NULL)\r\n\t{\r\n\t\t$this->where($where);\r\n\r\n\t\treturn $this->get($limit, $offset);\r\n\t}", "public function where($col, $operator = self::NO_OPERATOR, $value = self::NO_VALUE);", "public function getWhere() {\r\n return $this->_where;\r\n }", "final public function whereTable()\n {\n $return = null;\n $attr = $this->attributes();\n\n if(is_array($attr) && array_key_exists('where',$attr))\n {\n $return = $attr['where'];\n\n if(!empty($return) && static::isCallable($return))\n $return = $return($this);\n }\n\n return $return;\n }", "public function where($clause, array $params);", "public function find(array $where);", "public function getWhere($name = null)\n {\n return $this->_get('_where', $name);\n }", "public function Where()\n {\n return $this->where;\n }", "function where($s)\n{\n\t$this->tryModify();\n\tif(!isset($this->query['where'])) $this->query['where'] = array();\n\t$this->query['where'][] = $this->setWhereParams($s, func_get_args(), 1);\n\treturn $this;\n}", "public function where(): Where\n {\n if (!isset($this->where)){\n $this->where = new Query\\Where($this, $this->driver, $this->topQuery);\n }\n return $this->where; \n }", "public function where($column, $value, $operator = '=')\n {\n }", "private function sql_whereWiHits()\n {\n // Get WHERE statement\n $where = $this->pObj->objSqlInit->statements[ 'listView' ][ 'where' ] .\n $this->sql_whereAnd_Filter() .\n $this->sql_whereAnd_fromTS();\n // Localise the WHERE statement\n $where = $this->sql_whereWiHitsLL( $where );\n // RETURN WHERE statement without a WHERE\n return $where;\n }", "public function where(string $key, $value);", "public function findBy(array $where = []);", "public function where()\n {\n $args = func_get_args();\n $count = count($args);\n \n if ($count == 1) {\n if (is_array($args[0])) {\n # This is expected to be a column => value associated array.\n # In this case, the array is stored as is.\n $this->where[] = $args[0];\n } else {\n # This is expected to be a string.\n $this->where[] = $args[0];\n }\n } elseif ($count) {\n # Case: $query->where(\"foo\", true, \"bar_baz\", $bar);\n if ($count >= 2 && is_int($count / 2) && (!is_array($args[1]) || Toolbox\\ArrayTools::isIndexed($args[1])) && is_bool(strpos($args[0], ' '))) {\n $where = [];\n foreach ($args as $key => $value) {\n $key++;\n if ($key && !($key % 2)) {\n $where[$next_key] = $value;\n } else {\n $next_key = $value;\n }\n }\n $this->where[] = $where;\n } else {\n $this->where[] = array_shift($args);\n \n # Case: $query->where('foo => :foo', ['foo' => $foo]);\n if ($count == 2 && is_array($args[0]) && !Toolbox\\ArrayTools::isIndexed($args[0]))\n $args = $args[0];\n \n if ($args)\n $this->where_params = array_merge($this->where_params, $args);\n }\n }\n return $this;\n }", "public function hasWhere()\n {\n return $this->_has('_where');\n }", "public function whereWrap()\n {\n $where = $this->_dqlParts['where'];\n\n if (count($where) > 0)\n {\n array_unshift($where, '(');\n array_push($where, ')');\n\n $this->_dqlParts['where'] = $where;\n }\n\n return $this;\n }", "function dbWhereVars() {\n\n foreach ($this->fields() as $f) {\n if ($this->$f === false) continue;\n $this->db->where($this->model.'.'.$f,$this->$f);\n }\n\n }", "public function where($field, $operator, $value);", "static function where(){\r\n\t\t$arr = func_get_args();\r\n\t\t// tao ra lop static \r\n\t\t$model = new static();\r\n\t\t$tb = call_user_func_array(array($model->mask(), 'where'), $arr);\r\n\r\n\t\treturn $model;\r\n\t}", "public function where($column, $operator = null, $value = null, $boolean = 'and');", "protected function getWhereAttribute()\n {\n return $this->fetchData[self::WHERE_CLAUSE];\n }", "public function where($where=array())\n\t\t{\n\t\t\tif( is_array($where) && !empty($where)){\n\n\t\t\t\tforeach( $where as $k => $val ){\n\n\t\t\t\t\t// name = 'jack'\n\t\t\t\t\t// id > 1\n\t\t\t\t\t if( is_array($val) ){\n\n\t\t\t\t\t \t$type = $val[0];\n\n\t\t\t\t\t \tswitch($type){\n\t\t\t\t\t \t\tcase 'lt':\n\t\t\t\t\t \t\t\t$result[] = \"{$k} < {$val[1]} \";\n\t\t\t\t\t \t\t\tbreak;\n\t\t\t\t\t \t\tcase 'gt':\n\t\t\t\t\t \t\t\t$result[] = \"{$k} > {$val[1]} \";\n\t\t\t\t\t \t\t\tbreak;\n\t\t\t\t\t \t}\n\t\t\t\t\t \t\n\t\t\t\t\t }else{\n\n\t\t\t\t\t \t$result[] = \"{$k} = '{$val}'\";\n\t\t\t\t\t }\n\t\t\t\t}\n\n\t\t\t\t$this->where = 'where '.implode(' and ', $result);\n\t\t\t}\n\t\t\t\n\t\t\treturn $this;\n\t\t}", "public function where($column, $operator = null, $value = null, $boolean = 'and')\n {\n return parent::where(...Factory::resolve(func_get_args()));\n }", "function whereCheck($where){\n\tif ($where==null){\n\t\treturn $where;\n\t} else {\n\t\t// append the where postfix\n\t\t$where = \"WHERE $where\";\n\t\treturn $where;\n\t}\n}", "public static function where($column, $value, $operator = '=');", "public abstract function getCriteriaWhere($criteria);", "public function findWhere(String $column, $value, String $operator = '=');", "function _where($key, $value = NULL, $type = 'AND ', $escape = NULL)\r\n\t{\r\n\t\tif ( ! is_array($key))\r\n\t\t{\r\n\t\t\t$key = array($key => $value);\r\n\t\t}\r\n\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\tforeach ($key as $k => $v)\r\n\t\t\t{\r\n\t\t\t\t$key[$this->table . '.' . $k] = $v;\r\n\t\t\t\tunset($key[$k]);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t$this->db->_where($key, $value, $type, $escape);\r\n\r\n\t\t// For method chaining\r\n\t\treturn $this;\r\n\t}", "public function whereComplex()\n {\n return $this->addComplexCondition('and', $this->conditions);\n }", "public function where($field, $value) {\n\t$this->parseQuery->where($field, $value);\n }", "public function where($where_col_array = NULL, $value = NULL)\n {\n if(isset($where_col_array))\n {\n if (!is_array($where_col_array) && is_null($value)) {\n $this->_database->where(array($this->table.'.'.$this->primary => $where_col_array));\n } elseif (isset($value) && !is_array($value)) {\n $this->_database->where($where_col_array, $value);\n }\n elseif (isset($value) && is_array($value))\n {\n $this->_database->where_in($where_col_array,$value);\n }\n elseif (is_array($where_col_array)) {\n $this->_database->where($where_col_array);\n }\n }\n if($this->soft_deletes===TRUE)\n {\n $this->_where_trashed();\n }\n return $this;\n }", "public function orWhere($table,$column,$data = \"\");", "public function sectionTableWhere() {}", "public function sectionTableWhere() {}", "public function andWhere() {\r\n\t\t$args = func_get_args();\r\n\t\t$statement = array_shift($args);\r\n\t\t//if ( (count($args) == 1) && (is_null($args[0])) ) {\r\n\t\t//\t$this->_wheres = array();\r\n\t\t//\treturn null;\r\n\t\t//}\r\n\t\t$criteria = new Dbi_Sql_Criteria($this, new Dbi_Sql_Expression($statement, $args));\r\n\t\t$this->_wheres[] = $criteria;\r\n\t\treturn $criteria;\r\n\t}", "public function where($conditions = null, $overwrite = false);", "function where($base, $incr = 1) {\r\n if (isset($GLOBALS[$base][\"less_0\"]))\r\n $this->conditions -= $incr;\r\n \r\n if (isset($GLOBALS[$base][\"more_0\"]))\r\n $this->conditions += $incr;\r\n \r\n if ($this->conditions < 1)\r\n $this->conditions = 1;\r\n \r\n return $this->plain_where($base);\r\n }", "public function andWhere($col, $operator = self::NO_OPERATOR, $value = self::NO_VALUE);", "public function getValueAsWhereClause(): ?array;", "public function where($whereData,$optionalData = null)\n {\n \t if (is_array($whereData)) {\n $dt = $whereData;\n \t }else if (is_string($whereData)){\n if ($optionalData != null) {\n $dt[$this->clean($whereData)] = $this->clean($optionalData);\n }\n }\n \n foreach ($dt as $key => $val) {\n if(!in_array($key, $this->_where)){\n $this->_where[$this->clean($key)] = $this->clean($val);\n }\n }\n \n \t return $this;\n }", "function get_where($table_name,$where){\n\t\t$CI = &get_instance();\n\t\treturn $CI->db->get_where($table_name,$where)->result_array();\n\t}", "public function where($field, $value, $comparison = '==', $logical = 'and');", "function where($key, $value = NULL, $escape = TRUE)\r\n\t{\r\n\t\treturn $this->_where($key, $value, 'AND ', $escape);\r\n\t}", "public function where($cond){\n\t$this->where.=\"WHERE(\".$cond.\")\";\n\t\treturn $this;\n\t}", "public function getWhere()\n\t{\n\t\tif(empty($this->sWhere))\n\t\t{\n\t\t\treturn 'TRUE';\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn $this->sWhere;\n\t\t}\n\t}", "public function findAllWhere(string $column, string $operator, $value, array $with = []);", "public function where($field, $predicate): self;", "public function andWhere(){\r\n\t\t$tb = call_user_func_array(array($this->mask(), 'where'), func_get_args());\r\n\t\treturn $this;\r\n\t}", "abstract public function filterWhere(Builder $dataSource);", "public function whereId($id);", "public function testWhere() {\n\t\t$array = array(\n\t\t\tarray('a' => 1, 'b' => 'testing'),\n\t\t\tarray('a' => 2, 'b' => 'testing'),\n\t\t\tarray('a' => 3, 'b' => 'one'),\n\t\t\tarray('a' => 2, 'b' => 'two'),\n\t\t\tarray('a' => 4, 'b' => 'three'),\n\t\t);\n\t\t$result = _::where($array);\n\t\t$this->assertInternalType('array', $result);\n\t\t$this->assertCount(0, $result);\n\n\t\t// test matching a single field in an array\n\t\t$result = _::where($array, array('b' => 'testing'));\n\t\t$this->assertInternalType('array', $result);\n\t\t$this->assertCount(2, $result);\n\t\t$this->assertEquals(1, $result[0]['a']);\n\t\t$this->assertEquals('testing', $result[0]['b']);\n\t\t$this->assertEquals(2, $result[1]['a']);\n\t\t$this->assertEquals('testing', $result[1]['b']);\n\n\t\t// test finding the first element by a single field in an array\n\t\t$result = _::where($array, array('b' => 'testing'), true);\n\t\t$this->assertInternalType('array', $result);\n\t\t$this->assertCount(2, $result);\n\t\t$this->assertEquals(1, $result['a']);\n\t\t$this->assertEquals('testing', $result['b']);\n\n\t\t// test matching objects in an array\n\t\tforeach ($array as $i => $item) {\n\t\t\t$array[$i] = (object)$item;\n\t\t}\n\t\t$result = _::where($array, array('a' => 2));\n\t\t$this->assertInternalType('array', $result);\n\t\t$this->assertCount(2, $result);\n\t\t$this->assertEquals(2, $result[1]->a);\n\t\t$this->assertEquals('testing', $result[1]->b);\n\t\t$this->assertEquals(2, $result[3]->a);\n\t\t$this->assertEquals('two', $result[3]->b);\n\t}", "function find_where($where, $order = NULL, $select = '*', $limit = NULL) {\n\t\t$select = (empty($select) ? $this->select : $select);\n\t\t$where = (empty($where) ? \"true\": $where);\n\t\t$order = (empty($order) ? \"\" : \" ORDER BY \" . replace_semicolon($order));\n\t\t$limit = (empty($limit) ? \"\" : \" LIMIT \" . replace_semicolon($limit));\n\t\t$sql = \"\n\t\t\tSELECT\n\t\t\t\t\" . $select . \"\n\t\t\tFROM\n\t\t\t\t\" . $this->schema . '.' . $this->tableName . \"\n\t\t\tWHERE\n\t\t\t\t\" . $where . \"\n\t\t\t\" . $order . \"\n\t\t\t\" . $limit . \"\n\t\t\";\n\t\t$this->debug->show('find_where sql: ' . $sql, false);\n\t\t$query = pg_query($this->database->dbConn, $sql);\n\t\t$result = array();\n\t\twhile($this->data = pg_fetch_assoc($query)) {\n\t\t\t$result[] = clone $this;\n\t\t}\n\t\treturn $result;\n\t}", "protected function getWhereClauseForEnabledFields() {}", "public function where($column, $value = null)\n {\n if (!isset($this->query['where'])) {\n $this->query['where'] = array();\n }\n\n // Are we merging this with the previous?\n // This is used when coming out of Model.\n if ($this->mergeNextWhere and count($this->query['where']) > 0) {\n $this->mergeNextWhere = false;\n return $this->_and($column, $value);\n }\n\n // Array? too easy\n if (is_array($column)) {\n $this->query['where'][] = $column;\n } else {\n $this->query['where'][] = array($column => $value);\n }\n\n return $this;\n }", "public function findOne(array $where);", "public function getWhere( $where, $array = false ) {\n \n // Prepara a query\n $this->db->select( '*' )\n ->from( $this->table() )\n ->where( $where );\n\n // Executa a query\n $query = $this->db->get();\n\n // Verifica se existem resultados\n if ( $query->num_rows() > 0 ) {\n return $array ? $query->result_array() : $query->result_array()[0];\n } else return null;\n }", "public function where($where) \n {\n if ($where == null) {\n throw new DataSetException(\"null not allowed for where clause\");\n } \n $this->where = $where;\n return $this;\n }", "public function andWhere($where): QueryBuilderInterface;", "public function where($sql)\n {\n $this->where[] = call_user_func_array('self::clause', func_get_args());\n return $this;\n }", "public function findWhere(array $conditions);", "public function where($column, $operator = null, $value = null , $boolean = 'and'){\n\n $value = func_num_args() === 2 ? $operator : $value;\n $operator = func_num_args() === 2 ? '=' : $operator;\n\n //add value and operator to the where's array\n $this->wheres = compact(\"operator\",\"value\",\"column\");\n\n return $this;\n\n }", "public function where($where, $val = null, $val2 = null)\n {\n if (!empty($val) && !empty($val2)) {\n // Support for classic eloquent where's (\"field\", \">\", \"10\")\n\n if (is_array($val2)) {\n $val2 = implode(\"||\", $val2);\n }\n\n $where = [$where => $val . \" \" . $val2];\n } else if (!empty($val)) {\n // Value set for normal where condition\n $where = [$where => $val];\n } else if (is_array($where)) {\n $where = [];\n // Separate multiple where's\n foreach ($where as $k => $v) {\n $this->wheres[] = [$k => $v];\n }\n // Already return because already added items\n return $this;\n }\n\n // Support for simple text\n if (!is_array($where)) {\n $where = [$where];\n }\n\n $this->wheres[] = $where;\n return $this;\n }", "public function where(...$bindings): self\n {\n $sql = array_shift($bindings);\n\n $this->addToBindings($bindings);\n\n $this->wheres[] = $sql;\n\n return $this;\n }", "function _where($conditions = array(), $operator)\n {\n $where_clauses = array();\n // If conditions is not an array, make it one\n if (!is_array($conditions)) {\n $conditions = array($conditions);\n } elseif (!empty($conditions) && !is_array($conditions[0])) {\n // Just a single condition was passed, but with a bind\n $conditions = array($conditions);\n }\n // Iterate through each condition\n foreach ($conditions as $condition) {\n if (is_string($condition)) {\n $clause = $this->object->_parse_where_clause($condition);\n if ($clause) {\n $where_clauses[] = $clause;\n }\n } else {\n $clause = array_shift($condition);\n $clause = $this->object->_parse_where_clause($clause, $condition);\n if ($clause) {\n $where_clauses[] = $clause;\n }\n }\n }\n // Add where clause to query\n if ($where_clauses) {\n $this->object->_add_where_clause($where_clauses, $operator);\n }\n return $this->object;\n }", "public function whereall() {\n\t\t\treturn 'id=id';\n\t\t}", "public static function where($config)\n\t{\n\t\treturn self::new_instance_records()->where($config);\n\t}", "protected abstract function getWhereClause(array $conditions);", "public function where($parameters)\n {\n $this->where = $parameters;\n return $this;\n }", "function posts_where($where, $wp_query)\n {\n }", "public function where($arr){//ex of $arr : ['name' => 'LIKE A%','email' => '= test@test.com']\n $c = \"\";\n $x = 0;\n foreach($arr as $key => $v){//for each param, translate to SQL language\n if($x != 0){\n $c .= \" AND\";\n }\n $x++;\n $c .= \" $key $v\";\n }\n $this->params[\"WHERE\"] = $c;//adding the conditions to the query\n return $this;\n }", "public function getWhereClause()\n {\n return $this->where_clause;\n }", "private function setCustomWhere()\n\t{\n\t\tif ($this->customQuery->where) {\n\t\t\t$this->where = array_merge_recursive($this->customQuery->where, $this->where);\n\t\t}\n\n\t\treturn $this;\n\t}", "public function where( array $value )\n {\n $this->query('where', $value);\n }", "public function where($column, $operator = null, $value = null, $boolean = 'and')\n {\n if ($column === '_id') {\n $column = $this->grammar->getMetaIdExpression($this);\n }\n\n return parent::where($column, $operator, $value, $boolean);\n }", "public function loadDefaultWhere()\n {\n if ($this->data) {\n if (static::$primaryKey === null) {\n return $this;\n }\n $primaryKey = is_array(static::$primaryKey) ? static::$primaryKey : [static::$primaryKey];\n $cond = '';\n $values = [];\n foreach ($primaryKey as $field) {\n $cond .= ($cond !== '' ? ' AND ' : '') . $field . ' = ?';\n $values[] = $this->data[$field] ?? null;\n }\n $this->where($cond, $values);\n }\n return $this;\n }" ]
[ "0.80263203", "0.7655022", "0.75761867", "0.74723417", "0.738766", "0.738766", "0.71550727", "0.7151723", "0.71102387", "0.70424443", "0.7037519", "0.7025884", "0.6992011", "0.69543105", "0.69513875", "0.692288", "0.6780603", "0.6756387", "0.6746875", "0.672648", "0.67261475", "0.6724501", "0.67233145", "0.67129624", "0.6706235", "0.66958725", "0.6670215", "0.66653436", "0.6664036", "0.6663234", "0.6615931", "0.6602729", "0.6579944", "0.656412", "0.65614283", "0.6548114", "0.6546222", "0.653448", "0.6528273", "0.6508331", "0.6495021", "0.6468174", "0.6456593", "0.6456456", "0.64344835", "0.6430323", "0.6424146", "0.6394423", "0.6366281", "0.63407964", "0.633976", "0.63307947", "0.63240796", "0.6321114", "0.6278396", "0.62644523", "0.62602055", "0.6244627", "0.62424535", "0.62424535", "0.62391555", "0.6222055", "0.62132794", "0.62106174", "0.6197986", "0.6180542", "0.6178497", "0.6177624", "0.6161615", "0.61472493", "0.6139097", "0.6133303", "0.61249", "0.61239225", "0.61203855", "0.6095898", "0.6089232", "0.60601336", "0.60259736", "0.59959596", "0.59912705", "0.598918", "0.5988486", "0.5983864", "0.5970115", "0.59662396", "0.5963528", "0.5949404", "0.5944358", "0.5937041", "0.59312737", "0.5926712", "0.5925487", "0.5924514", "0.59209454", "0.5917723", "0.59154534", "0.59094083", "0.5905174", "0.59010834", "0.5899685" ]
0.0
-1
Only return properties matching the supplied keys
public function with($keys = []) : Api { if (! is_array($this->data)) { $this->data = $this->withProperties($this->data, $keys); } else { $this->data = array_map(function ($object) use ($keys) { return $this->withProperties($object, $keys); }, $this->data); } return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function only(...$keys): self;", "public function only($keys)\n\t{\n\t\treturn array_filter($this->toArray(), function ($value, $key) use ($keys) {\n\t\t\treturn in_array($key, $keys);\n\t\t}, ARRAY_FILTER_USE_BOTH);\n\t}", "public function intersectKeys(...$keys): Collection;", "public function only($keys): array\n\t{\n\t\t$keys = is_array($keys) ? $keys : func_get_args();\n\t\t$results = [];\n\t\t$input = $this->all();\n\n\t\tforeach ($keys as $key) {\n\t\t\tArr::set($results, $key, Data::get($input, $key));\n\t\t}\n\n\t\treturn $results;\n\t}", "public function only($keys)\n {\n if ($keys === null) {\n return new static($this->objects);\n }\n\n $keys = is_array($keys) ? $keys : func_get_args();\n\n return new static(array_intersect_key($this->objects, array_flip($keys)));\n }", "public function only(array $keys, $key = null)\n {\n $items = (null !== $key) ? $this->get($key) : $this->items;\n\n return array_intersect_key((array)$items, array_flip($keys));\n }", "function getProperties($properties);", "final public function gets(...$keys)\n {\n return $this->onPrepareReturns(Base\\Arrs::gets($this->prepareKeys(...$keys),$this->arr(),$this->isSensitive()));\n }", "public function toArray($keyCase = self::KEY_NATURAL)\n {\n if (count($p = $this->getReflectedProperties())) {\n $properties = array();\n foreach ($p as $propertyName) {\n if ($this->$propertyName instanceof Zood_Entity_Null) {\n continue;\n }\n $properties[$propertyName] = $this->$propertyName;\n }\n } else {\n return array();\n }\n\n $filters = array();\n\n switch ($keyCase) {\n case self::KEY_LOWER :\n $properties = array_change_key_case($properties, CASE_LOWER);\n if (count($filters) > 0) {\n $filters = array_change_key_case($filters, CASE_LOWER);\n return array_diff_key($properties, $filters);\n } else {\n return $properties;\n }\n break;\n\n case self::KEY_UPPER :\n $properties = array_change_key_case($properties, CASE_UPPER);\n if (count($filters) > 0) {\n $filters = array_change_key_case($filters, CASE_UPPER);\n return array_diff_key($properties, $filters);\n } else {\n return $properties;\n }\n break;\n\n case self::KEY_NATURAL :\n if (count($filters) > 0) {\n return array_diff_key($properties, $filters);\n } else {\n return $properties;\n }\n break;\n\n default : // KEY_AUTO\n if (count($filters) > 0) {\n $filters = array_change_key_case($filters, CASE_LOWER);\n while (list($key, ) = each($properties)) {\n if (array_key_exists(strtolower($key), $filters)) {\n unset($properties[$key]);\n }\n }\n }\n return $properties;\n break;\n }\n }", "public function findByPoperty($properties, $all=false)\r\n\t{\r\n\t\tif (empty($properties)) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t\t$sql = \"Select * From \" . $this->table_name . \" Where \";\r\n\t\t$keys = array_keys($properties);\r\n\t\t$first = true;\r\n\t\tforeach ($keys as $key) {\r\n\t\t\t$sql .= ($first == false ? \" and \" : \"\") . $key . \" = '\" . $properties[$key] . \"' \";\r\n\t\t\t$first = false;\r\n\t\t}\r\n\t\t$req = Database::getBdd()->prepare($sql);\r\n\t\t$req->execute();\r\n\t\tif($all){\r\n\t\t\treturn $req->fetchAll(PDO::FETCH_ASSOC);\r\n\t\t}\r\n\t\treturn $req->fetch(PDO::FETCH_ASSOC);\r\n\t}", "public function only( $keys )\n\t{\n\t\t$dictionary = Arr::only( $this->getDictionary(), $keys );\n\n\t\treturn new static( array_values( $dictionary ) );\n\t}", "public function parseProperties($keys, $merge)\n {\n if (empty($keys)) {\n return false;\n }\n\n // If merging : do not keep keys that already have a value\n if ($merge) {\n foreach ($keys as $key => $value) {\n if (!empty($this->$key)) {\n unset($keys[$key]);\n }\n\n }\n }\n\n // Il callable : execute it\n foreach ($keys as $key => $value) {\n if (is_callable($value) && !is_string($value)) {\n $keys[$key] = $value($this);\n }\n }\n\n return $keys;\n }", "public function get_property_keys() {\n $data = $this->get_data();\n $data_keys = $this->get_data_keys();\n\n foreach ( $data_keys as $data_key ) {\n if ( isset( $data[$data_key] ) && is_array( $data[$data_key] ) ) {\n $data_key_index = array_search( $data_key, $data_keys );\n if ( $data_key_index !== false ) {\n unset( $data_keys[$data_key_index] );\n }\n }\n }\n\n $include_db_keys = false;\n if ( has_filter( \"nwsi_include_order_item_keys_from_database\" ) ) {\n $include_db_keys = (bool) apply_filters( \"nwsi_include_order_item_keys_from_database\" );\n }\n\n if ( $include_db_keys ) {\n // combine with order meta keys from the database\n require_once( NWSI_DIR_PATH . \"includes/controllers/core/class-nwsi-db.php\" );\n $db = new NWSI_DB();\n $keys = array_merge( $data_keys, $db->get_order_item_meta_keys() );\n } else {\n $keys = $data_keys;\n }\n\n $unique_keys = array_unique( $keys );\n sort( $unique_keys, SORT_STRING );\n\n if ( has_filter( \"nwsi_order_item_property_keys\" ) ) {\n $unique_keys = (array) apply_filters( \"nwsi_order_item_property_keys\", $unique_keys );\n }\n\n return $unique_keys;\n }", "public function only($keys, $data)\n {\n # code...\n $placeholder = new stdClass;\n $results = [];\n\n foreach ($data as $d) {\n foreach ($keys as $key) {\n $value = data_get($d, $key, $placeholder);\n if ($value !== $placeholder) {\n $arr[$key] = $value;\n }\n }\n array_push($results, $arr);\n }\n\n return $results;\n }", "public function only() {\n $args = func_get_args();\n $result = array();\n foreach($args as $arg) {\n $result[$arg] = $this->get($arg);\n }\n\n return $result;\n }", "public function except($keys)\n\t{\n\t\treturn array_filter($this->toArray(), function ($value, $key) use ($keys) {\n\t\t\treturn ! in_array($key, $keys);\n\t\t}, ARRAY_FILTER_USE_BOTH);\n\t}", "public static function getPropertyKeys()\n {\n return array('id', 'title', 'pic');\n }", "public function filterByPrimaryKeys($keys)\n\t{\n\t\treturn $this->addUsingAlias(SettingPeer::ID, $keys, Criteria::IN);\n\t}", "private function __keys() {\n $vars = get_object_vars($this);\n $vars = array_filter($vars, function ($x) {\n return $x[0] !== '_';\n }, ARRAY_FILTER_USE_KEY);\n return $vars;\n }", "private function filterProperties($properties, $propertiesToFilterList): array\n {\n return array_diff_key($properties, ...$propertiesToFilterList);\n }", "public static function only() {\n $args = func_get_args();\n if(count($args) == 0) {\n throw new Exception(\"Must to supply at least one key\", 1);\n\n }\n $filteredInputs = [];\n foreach ($args as $key) {\n if(self::has($key)) {\n $filteredInputs[$key] = $_REQUEST[$key];\n }\n }\n return $filteredInputs;\n }", "public function only(array $keys)\n {\n return new static(array_intersect_key($this->parameters, array_flip($keys)));\n }", "public function filterByPrimaryKeys($keys)\n {\n\n return $this->addUsingAlias(memberProfilePeer::ID, $keys, Criteria::IN);\n }", "public function getItems(array $keys = []);", "public function filterByPrimaryKeys($keys)\n\t{\n\t\treturn $this->addUsingAlias(ClubMeetingsPeer::ID, $keys, Criteria::IN);\n\t}", "public function testFilterByKeys()\n {\n $array = ['bar' => 'baz', 'controller' => 'Groups', 'action' => 'index'];\n $allowed = ['plugin', 'controller', 'action'];\n $expected = ['plugin' => null, 'controller' => 'Groups', 'action' => 'index'];\n\n $result = Hash::filterByKeys($array, $allowed);\n $this->assertEquals($expected, $result);\n }", "public function filterByPrimaryKeys($keys)\n\t{\n\t\treturn $this->addUsingAlias(GoodsInSalePeer::ID, $keys, Criteria::IN);\n\t}", "public static function only($array, $keys)\n {\n \n return array_intersect_key($array, array_flip((array)$keys));\n \n }", "function filter_by_keys($values, array $allowed)\n {\n if (is_object($values) && method_exists($values, 'toArray')) {\n $values = $values->toArray();\n } else if ($values instanceof \\stdClass) {\n $values = (array) $values;\n }\n\n return array_filter(\n $values,\n function ($key) use ($allowed) {\n return in_array($key, $allowed);\n },\n ARRAY_FILTER_USE_KEY\n );\n }", "public function only( $keys )\n\t{\n\t\t$keys = is_array($keys)? $keys: func_get_args();\n\t\t$queries = [];\n\n\t\tforeach( $this->request->only($keys) as $key => $value )\n\t\t{\n\t\t\t$queries[$key] = new Inquiry($key, $value);\n\t\t}\n\n\t\treturn $queries;\n\t}", "public function filterByPrimaryKeys($keys)\n\t{\n\t\tif (empty($keys)) {\n\t\t\treturn $this->add(null, '1<>1', Criteria::CUSTOM);\n\t\t}\n\t\tforeach ($keys as $key) {\n\t\t\t$cton0 = $this->getNewCriterion(Oops_Db_CustomizationPeer::ID_CUSTOMIZATION, $key[0], Criteria::EQUAL);\n\t\t\t$cton1 = $this->getNewCriterion(Oops_Db_CustomizationPeer::ID_CART, $key[1], Criteria::EQUAL);\n\t\t\t$cton0->addAnd($cton1);\n\t\t\t$cton2 = $this->getNewCriterion(Oops_Db_CustomizationPeer::ID_PRODUCT, $key[2], Criteria::EQUAL);\n\t\t\t$cton0->addAnd($cton2);\n\t\t\t$this->addOr($cton0);\n\t\t}\n\n\t\treturn $this;\n\t}", "public function getAllWhereKeysNotIn(array $keys): CollectionInterface;", "function array_keys_whitelist( array $array, array $keys ) {\n return array_intersect_key( $array, array_flip( $keys ) );\n}", "public function filter(array $keys)\n {\n $this->parameters = array_intersect_key($this->parameters, array_flip($keys));\n\n return $this;\n }", "function findPropertiesBy(array $criteria);", "public function filterByPrimaryKeys($keys)\n\t{\n\t\treturn $this->addUsingAlias(InviteDetailPeer::ID, $keys, Criteria::IN);\n\t}", "public function except($keys): array\n\t{\n\t\t$keys = is_array($keys) ? $keys : func_get_args();\n\t\t$results = $this->all();\n\n\t\tArr::forget($results, $keys);\n\n\t\treturn $results;\n\t}", "protected function _verifyKeyProps(array $params)\n {\n foreach($params as $prop => $value){\n $propParts = explode('.', $prop);\n if(count($propParts) == 1){\n //is a field prop\n $result = $this->_verifyProps(\n array($propParts[0]), false);\n } else {\n //is a assoc prop\n $result = $this->_verifyProps(\n array($propParts[0] => array($propParts[1])), false);\n }\n }\n return $params;\n }", "protected function get_properties()\n\t{\n\t\t$schema = $this->module->model->extended_schema;\n\t\t$fields = $schema['fields'];\n\t\t$request = $this->request;\n\t\t$properties = array_intersect_key($request->params, $fields);\n\n\t\tforeach ($fields as $identifier => $definition)\n\t\t{\n\t\t\t$type = $definition['type'];\n\n\t\t\tif ($type == 'boolean')\n\t\t\t{\n\t\t\t\tif (!empty($definition['null']) && ($request[$identifier] === null || $request[$identifier] === ''))\n\t\t\t\t{\n\t\t\t\t\t$properties[$identifier] = null;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif (empty($properties[$identifier]))\n\t\t\t\t\t{\n\t\t\t\t\t\t$properties[$identifier] = false;\n\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\n\t\t\t\t\t$properties[$identifier] = filter_var($properties[$identifier], FILTER_VALIDATE_BOOLEAN);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if ($type == 'varchar')\n\t\t\t{\n\t\t\t\tif (empty($properties[$identifier]) || !is_string($properties[$identifier]))\n\t\t\t\t{\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\t$properties[$identifier] = trim($properties[$identifier]);\n\t\t\t}\n\t\t}\n\n\t\treturn $properties;\n\t}", "public function filterByPrimaryKeys($keys)\n\t{\n\t\treturn $this->addUsingAlias(RepositoryPeer::ID, $keys, Criteria::IN);\n\t}", "public function filterByPrimaryKeys($keys)\n\t{\n\t\treturn $this->addUsingAlias(RepositoryPeer::ID, $keys, Criteria::IN);\n\t}", "static function only(array $array, $keys) {\n return array_intersect_key($array, array_flip((array) $keys));\n }", "public function filterByPrimaryKeys($keys)\n\t{\n\t\treturn $this->addUsingAlias(UnitPeer::ID, $keys, Criteria::IN);\n\t}", "function arrayFilterByKeys($array, $allowedKeys)\n{\n if (version_compare(PHP_VERSION, '5.6.0', '<')) {\n return array_intersect_key($array, array_flip($allowedKeys));\n } else {\n return array_filter(\n $array,\n function($k) use ($allowedKeys) {\n return in_array($k, $allowedKeys);\n },\n ARRAY_FILTER_USE_KEY\n );\n }\n}", "public function filterByPrimaryKeys($keys)\n\t{\n\t\treturn $this->addUsingAlias(RegistrationPeer::ID, $keys, Criteria::IN);\n\t}", "public function filterByPrimaryKeys($keys)\n {\n\n return $this->addUsingAlias(PhotosPeer::ID, $keys, Criteria::IN);\n }", "public function filterByPrimaryKeys($keys)\n\t{\n\t\treturn $this->addUsingAlias(MenuPersonaPeer::ID_MENU_PERSONA, $keys, Criteria::IN);\n\t}", "function pick(array $keys, iterable $items) : iterable\n{\n $indexMatch = function($value, $key) use($keys) {\n return in_array($key, $keys);\n };\n return pickBy($indexMatch, $items);\n}", "public function filterByPrimaryKeys($keys)\n\t{\n\t\treturn $this->addUsingAlias(PersonaPeer::ID_PERSONA, $keys, Criteria::IN);\n\t}", "public static function filter($results, array $keys): array\n {\n $resultReturnArray = [];\n if (is_iterable($results)) {\n\n foreach ($results as $key => $objectOrArray) {\n if ($objectOrArray instanceof AbstractEntity) {\n $resultReturnArray[] = self::getPropertiesFromObject($objectOrArray, $keys);\n } else if (is_array($objectOrArray)) {\n $resultReturnArray[] = self::getPropertiesFromArray($objectOrArray, $keys);\n }\n }\n }\n\n if ($results instanceof AbstractEntity) {\n $resultReturnArray = self::getPropertiesFromObject($results, $keys);\n }\n\n return $resultReturnArray;\n }", "public function filterByPrimaryKeys($keys)\n {\n if (empty($keys)) {\n return $this->add(null, '1<>1', Criteria::CUSTOM);\n }\n foreach ($keys as $key) {\n $cton0 = $this->getNewCriterion(GsMedischeHulpmiddelenPeer::MEDISCH_HULPMIDDELKODE, $key[0], Criteria::EQUAL);\n $cton1 = $this->getNewCriterion(GsMedischeHulpmiddelenPeer::SOORT_HULPMIDDELKODE, $key[1], Criteria::EQUAL);\n $cton0->addAnd($cton1);\n $this->addOr($cton0);\n }\n\n return $this;\n }", "public static function only($array, $keys)\n {\n return array_intersect_key($array, array_flip((array) $keys));\n }", "public static function only($array, $keys)\n {\n return array_intersect_key($array, array_flip((array) $keys));\n }", "public static function only($array, $keys)\n {\n return array_intersect_key($array, array_flip((array) $keys));\n }", "public function filterByPrimaryKeys($keys)\n\t{\n\t\treturn $this->addUsingAlias(DomainCheckPeer::ID, $keys, Criteria::IN);\n\t}", "public function filterByPrimaryKeys($keys)\n {\n return $this->addUsingAlias(CollectorProfileArchivePeer::ID, $keys, Criteria::IN);\n }", "function array_only($array, $keys)\n\t{\n\t\treturn array_intersect_key($array, array_flip((array) $keys));\n\t}", "public function getPropertiesByKeys(NodeInterface $node, $properties)\n {\n return $this->keyValuesIntersect($node->getProperties(), $properties);\n }", "public function filterByPrimaryKeys($keys)\n\t{\n\t\treturn $this->addUsingAlias(Oops_Db_ProductPeer::ID_PRODUCT, $keys, Criteria::IN);\n\t}", "public function filterByPrimaryKeys($keys)\n\t{\n\t\tif (empty($keys)) {\n\t\t\treturn $this->add(null, '1<>1', Criteria::CUSTOM);\n\t\t}\n\t\tforeach ($keys as $key) {\n\t\t\t$cton0 = $this->getNewCriterion(DropboxPersonPeer::FILE_ID, $key[0], Criteria::EQUAL);\n\t\t\t$cton1 = $this->getNewCriterion(DropboxPersonPeer::USER_ID, $key[1], Criteria::EQUAL);\n\t\t\t$cton0->addAnd($cton1);\n\t\t\t$this->addOr($cton0);\n\t\t}\n\t\t\n\t\treturn $this;\n\t}", "public function filterByPrimaryKeys($keys)\n\t{\n\t\treturn $this->addUsingAlias(ProductoPeer::ID_PRODUCTO, $keys, Criteria::IN);\n\t}", "private function filterProperties(): array\n {\n return array_filter(\n [\n $this->host,\n $this->name,\n $this->user,\n $this->password,\n $this->port\n ],\n function ($item) {\n return !empty($item);\n }\n );\n }", "public function filterByPrimaryKeys($keys)\n {\n throw new LogicException('The Map object has no primary key');\n }", "public function filterByPrimaryKeys($keys)\n\t{\n\t\treturn $this->addUsingAlias(RoleactionPeer::ID, $keys, Criteria::IN);\n\t}", "public function filterByPrimaryKeys($keys)\n\t{\n\t\treturn $this->addUsingAlias(afGuardUserPeer::ID, $keys, Criteria::IN);\n\t}", "public function get(string $keys): mixed;", "public function checkProperties($conditions);", "public function allowAllPropertiesExcept() {}", "public function getRequiredProperties();", "public function filterByPrimaryKeys($keys)\n {\n\n return $this->addUsingAlias(ContactPeer::ID, $keys, Criteria::IN);\n }", "static function pick($src, $props){\n\t\t$props = Arrays::from($props);\n\t\t$dest = [];\n\t\tforeach($props as $prop){\n\t\t\tif(self::is_set($src, $prop)){\n\t\t\t\t$dest[$prop] = $src[$prop];\n\t\t\t}\n\t\t}\n\t\treturn $dest;\n\t}", "static function ensure_keys($src, $props, $fill_on_missing=null){\n\t\t$props = Arrays::from($props);\n\t\tforeach($props as $prop){\n\t\t\tif(!self::is_set($src, $prop)){\n\t\t\t\t$src[$prop] = $fill_on_missing;\n\t\t\t}\n\t\t}\n\t\treturn $src;\n\t}", "public function getItems(array $keys = []): array;", "public function getProperties() {\n $modifiable_properties = [];\n $fields = $this->getFields();\n foreach (Framework::instance()->entityProperties($this->getEntity()) as $property => $info) {\n if (!in_array($property, array_keys($fields)) && $this->filter($property)) {\n $this->addModifier($modifiable_properties, 'property', $property);\n }\n }\n return $modifiable_properties;\n }", "public function filterByPrimaryKeys($keys)\r\n\t{\r\n\t\treturn $this->addUsingAlias(PersonaCastingPeer::ID, $keys, Criteria::IN);\r\n\t}", "function testPropertyResourcesGetKeys() {\n\t\t// initialize the factory\n\t\t$factory = new TechDivision_Resources_PropertyResourcesFactory();\n\t\t// load the resources\n\t\t$propertyResources = $factory->getResources(\n\t\t new TechDivision_Lang_String(\"TestResources\"),\n\t\t new TechDivision_Lang_String(\"resources/data/testresources\")\n\t\t);\n\t\t// iterate over the keys and check the values\n\t\tforeach ($propertyResources->getKeys() as $key) {\n\t\t\t// check the correct values to load\n\t\t\t$this->assertEquals(\"test.key\", $key);\n\t\t}\n\t\t// release the resources\n\t\t$factory->release();\n\t}", "public function only($keys)\n {\n if (is_null($keys)) {\n return new static($this->items);\n }\n\n $keys = is_array($keys) ? $keys : func_get_args();\n\n return new static(Arr::only($this->items, $keys));\n }", "public function testUnfilteredProperties()\n {\n $this->visit('/properties')\n ->see('Victorian townhouse')\n ->see('Five bedroom mill conversion')\n ->see('Shack in the desert');\n }", "public function exists(...$keys)\n {\n $keys = collect($keys)->map(function ($key) {\n return $this->applyPrefix($key);\n });\n\n return $keys->reduce(function ($carry, $key) {\n return $carry + $this->client->exists($key);\n });\n }", "private function visibleProperties() : array\n {\n $properties = array_keys($this->_properties);\n $properties = array_merge($properties, $this->_virtual);\n\n return array_diff($properties, $this->_hidden);\n }", "public function filterByPrimaryKeys($keys)\n {\n\n return $this->addUsingAlias(sfGuardUserPeer::ID, $keys, Criteria::IN);\n }", "public function filterByPrimaryKeys($keys)\n\t{\n\t\treturn $this->addUsingAlias(RespuestaItemPeer::ID, $keys, Criteria::IN);\n\t}", "public function getAllWhereKeysIn(array $keys): CollectionInterface;", "public function filterByPrimaryKeys($keys)\n {\n if (empty($keys)) {\n return $this->add(null, '1<>1', Criteria::CUSTOM);\n }\n foreach ($keys as $key) {\n $cton0 = $this->getNewCriterion(GsGpkprkhpkWijzigingenPeer::GENERIEKEPRODUCTCODE, $key[0], Criteria::EQUAL);\n $cton1 = $this->getNewCriterion(GsGpkprkhpkWijzigingenPeer::PRKCODE, $key[1], Criteria::EQUAL);\n $cton0->addAnd($cton1);\n $cton2 = $this->getNewCriterion(GsGpkprkhpkWijzigingenPeer::HANDELSPRODUKTKODE, $key[2], Criteria::EQUAL);\n $cton0->addAnd($cton2);\n $cton3 = $this->getNewCriterion(GsGpkprkhpkWijzigingenPeer::DATUM_WIJZIGINGOPSPLITSING_OP_DDMMJJJJ, $key[3], Criteria::EQUAL);\n $cton0->addAnd($cton3);\n $this->addOr($cton0);\n }\n\n return $this;\n }", "public function filterByPrimaryKeys($keys)\n\t{\n\t\tif (empty($keys)) {\n\t\t\treturn $this->add(null, '1<>1', Criteria::CUSTOM);\n\t\t}\n\t\tforeach ($keys as $key) {\n\t\t\t$cton0 = $this->getNewCriterion(PedidoProductoPeer::PEDIDO_ID, $key[0], Criteria::EQUAL);\n\t\t\t$cton1 = $this->getNewCriterion(PedidoProductoPeer::PRODUCTO_ID, $key[1], Criteria::EQUAL);\n\t\t\t$cton0->addAnd($cton1);\n\t\t\t$this->addOr($cton0);\n\t\t}\n\n\t\treturn $this;\n\t}", "public function getProperties(array &$properties);", "public function filter(array $keys): array\n {\n return array_filter($keys, function ($key) {\n return is_string($key) && !empty($key);\n });\n }", "public static function only( $array, $keys )\n {\n return array_intersect_key( $array, array_flip( (array)$keys ) );\n }", "public function has_prop($key)\n {\n }", "public function getAll($keysOnly = false, $className = null) {}", "public function filterByPrimaryKeys($keys)\n\t{\n\t\treturn $this->addUsingAlias(CalendarPeer::ID, $keys, Criteria::IN);\n\t}", "public function filterByPrimaryKeys($keys)\n {\n if (empty($keys)) {\n return $this->add(null, '1<>1', Criteria::CUSTOM);\n }\n foreach ($keys as $key) {\n $cton0 = $this->getNewCriterion(ROperationStatusRequiredOptionsPeer::R_OPERATION_STATUS_REQUIRED_OPTIONS_R_OPERATION_STATUS_OS_ID, $key[0], Criteria::EQUAL);\n $cton1 = $this->getNewCriterion(ROperationStatusRequiredOptionsPeer::R_OPERATION_STATUS_REQUIRED_OPTIONS_R_OPERATION_OPTION_ID, $key[1], Criteria::EQUAL);\n $cton0->addAnd($cton1);\n $this->addOr($cton0);\n }\n\n return $this;\n }", "function removekeys($src, $keys){\n return array_diff_key($src, array_flip($keys));\n}", "public function skipUnknownProperties() {}", "public function filterByPrimaryKeys($keys)\n\t{\n\t\treturn $this->addUsingAlias(ActividadPeer::ID, $keys, Criteria::IN);\n\t}", "public function getItems(array $keys = array())\n {\n }", "public function filterByPrimaryKeys($keys)\n {\n\n return $this->addUsingAlias(UsuarioHorarioPeer::ID, $keys, Criteria::IN);\n }", "abstract protected function getProperties();", "public function filterByPrimaryKeys($keys)\n\t{\n\t\treturn $this->addUsingAlias(LpPeer::ID, $keys, Criteria::IN);\n\t}", "public function filterByPrimaryKeys($keys)\n {\n\n return $this->addUsingAlias(UsuarioPerfilPeer::ID, $keys, Criteria::IN);\n }", "public function filterByPrimaryKeys($keys)\n\t{\n\t\treturn $this->addUsingAlias(PeliculaPeer::ID, $keys, Criteria::IN);\n\t}" ]
[ "0.7126107", "0.644371", "0.62503695", "0.611135", "0.6001101", "0.59502184", "0.5928746", "0.58959776", "0.58920956", "0.583594", "0.5790207", "0.57770187", "0.57386166", "0.57186556", "0.5709939", "0.57051367", "0.56967586", "0.5660311", "0.56478167", "0.5632102", "0.560732", "0.56068695", "0.5605699", "0.55926555", "0.5583927", "0.5568573", "0.55597436", "0.55436593", "0.55280447", "0.5523418", "0.5521949", "0.55122393", "0.55036074", "0.5502245", "0.54726565", "0.5451869", "0.54483473", "0.5448299", "0.54298687", "0.54198474", "0.54198474", "0.5414942", "0.5412951", "0.54025906", "0.53970647", "0.5383557", "0.5383124", "0.5379291", "0.53768796", "0.5374729", "0.5370222", "0.53671944", "0.53671944", "0.53671944", "0.5366509", "0.53655946", "0.5363634", "0.53628874", "0.53547823", "0.5343289", "0.5341085", "0.5337782", "0.5337493", "0.5334993", "0.53259146", "0.53228533", "0.53155553", "0.5311195", "0.5290517", "0.52799153", "0.5277234", "0.52769744", "0.52766305", "0.5276006", "0.5275148", "0.5261354", "0.5257741", "0.52558666", "0.52551264", "0.5254753", "0.5253421", "0.5248687", "0.5246317", "0.5245453", "0.52352446", "0.5230556", "0.5226381", "0.5224576", "0.52239335", "0.5222082", "0.52199376", "0.5214272", "0.5214086", "0.5213581", "0.52113175", "0.5209106", "0.51959634", "0.51934767", "0.5190132", "0.51893234", "0.51885957" ]
0.0
-1
Return the first x items from an array with optional offset
public function first(int $limit = 10, int $offset = 0) { return is_array($this->data) ? array_slice($this->data, $offset, $limit) : $this->data; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getFirstItemsOfArray($array, $numberOfItemsToReturn) {\r\n\t\t$outArray = array();\r\n\t\tforeach($array as $key => $value) {\r\n\t\t\tif($count++ < $numberOfItemsToReturn) {\r\n\t\t\t\t$outArray[$key] = $value;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn $outArray;\r\n\t}", "public function getAtOffset(Array $offset = []);", "public static function offset($offset);", "public function offset($offset);", "function sliced($anarray,$entries){\n$count_until_end = count($anarray) - $entries;\n$sliced = array_slice($anarray,$count_until_end);\nreturn $sliced;\n}", "public function slice($array, $n, $position = null): static;", "public static function skip(array $array, int $offset): array\n {\n return array_slice($array, $offset);\n }", "public function get($offset);", "function offsetGet(/*. mixed .*/ $offset){}", "function slice(int $start, $length, iterable $items) : iterable\n{\n return _arrayOrIterator($items, function($items) use($start, $length) {\n $i = 0;\n foreach ($items as $key => $value) {\n if ($i++ < $start) {\n continue;\n }\n yield $key => $value;\n if ($i >= $start + $length) {\n break;\n }\n }\n });\n}", "public function getItemsAt($offset)\n {\n return $this->get(self::_ITEMS, $offset);\n }", "public function getItemsAt($offset)\n {\n return $this->get(self::_ITEMS, $offset);\n }", "public function getItemsAt($offset)\n {\n return $this->get(self::_ITEMS, $offset);\n }", "public function getItemsAt($offset)\n {\n return $this->get(self::_ITEMS, $offset);\n }", "public function getItemsAt($offset)\n {\n return $this->get(self::_ITEMS, $offset);\n }", "public function getItemsAt($offset)\n {\n return $this->get(self::_ITEMS, $offset);\n }", "public function getItemsAt($offset)\n {\n return $this->get(self::_ITEMS, $offset);\n }", "public function getItemsAt($offset)\n {\n return $this->get(self::_ITEMS, $offset);\n }", "public function getItemsAt($offset)\n {\n return $this->get(self::_ITEMS, $offset);\n }", "public function getItemsAt($offset)\n {\n return $this->get(self::_ITEMS, $offset);\n }", "public function getItemsAt($offset)\n {\n return $this->get(self::_ITEMS, $offset);\n }", "public function getItemsAt($offset)\n {\n return $this->get(self::_ITEMS, $offset);\n }", "public function getItemsAt($offset)\n {\n return $this->get(self::_ITEMS, $offset);\n }", "public function slice(int $offset, ?int $length = null): self\n {\n return Factory::create(\\array_slice($this->items, $offset, $length, true));\n }", "public function offset(?int $offset): self;", "public function preceding(int $offset): mixed;", "function getSlicedRandomArray ($array,$offset,$length) {\n // shuffle\n while (count($array) > 0) {\n $val = array_rand($array);\n $new_arr[$val] = $array[$val];\n unset($array[$val]);\n }\n $result=$new_arr;\n \n // slice\n $result2 = array();\n $i = 0;\n if($offset < 0)\n $offset = count($result) + $offset;\n if($length > 0)\n $endOffset = $offset + $length;\n else if($length < 0)\n $endOffset = count($result) + $length;\n else\n $endOffset = count($result);\n \n // collect elements\n foreach($result as $key=>$value)\n {\n if($i >= $offset && $i < $endOffset)\n $result2[$key] = $value;\n $i++;\n }\n return $result2;\n }", "public function skip($offset)\n {\n $this->dataToArray();\n\n return new self(array_slice($this->data, $offset));\n }", "function get_images_at_begining($image_array){\n $images = array();\n if(count($image_array) > 7 ){\n for($i=0;$i<7;$i++){\n $images[$i] = $image_array[$i];\n }\n return $images;\n }\n else{\n return $image_array;\n }\n }", "function take(iterable $iterable, int $n): Iterator\n{\n /** @psalm-suppress DeprecatedFunction */\n return slice($iterable, 0, $n);\n}", "public function slice($offset, $length = null)\r\n {\r\n return new static(array_slice($this->items, $offset, $length, true));\r\n }", "public function offsetGet($offset);", "public function offsetGet($offset);", "public function slice(int $offset, int|null $length = null): array;", "public function slice($start, $amount);", "public function offsetGet($offset) {\n return $this->_items[$offset];\n }", "public function select(?int $limit = null, ?int $offset = null): array\n {\n $copy = $this->array;\n if ($limit !== null && $offset !== null) {\n return array_splice($copy, $offset, $limit);\n } elseif ($offset !== null) {\n return array_splice($copy, $offset);\n } elseif ($limit !== null) {\n return array_splice($copy, 0, $limit);\n }\n return $copy;\n\n }", "public function slice($offset, $length = null)\n {\n return new static(array_slice($this->items, $offset, $length, true));\n }", "public function offsetGet($offset) { \n if (!$this->offsetExists($offset)) {\n return null;\n }\n \n $result = $this->itemsCollection()->findOne(array(), array(\n self::ITEMS_OBJECT_NAME => array(\n '$slice' => array($offset, 1)\n )\n ));\n \n return $result[self::ITEMS_OBJECT_NAME][0];\n }", "public function slice($offset, $length=null, $preserveKeys=false)\n {\n $class = $this->instance();\n \n $length = is_numeric($length) ? $length : $this->count() - $offset;\n \n return new $class(array_slice($this->_data, $offset, $length,\n $preserveKeys));\n }", "public function first()\n {\n if($this->length()>0)\n {\n return $this->getAt(0);\n }\n throw new \\OutOfBoundsException();\n }", "function expression_function_take($collection, $number)\n{\n if (is_array($collection)) {\n return array_slice($collection, 0, $number, true);\n } else if ($collection instanceof \\Iterator) {\n return new \\LimitIterator($collection, 0, $number);\n } else {\n throw new \\InvalidArgumentException('Collection must be an array or an Iterator');\n }\n}", "protected function slice(array $items, $start = null, int $length = null): array\n\t{\n\t\t$result = [];\n\t\t$i = 0;\n\n\t\tforeach ($items as $index => $item) {\n\t\t\tif ($i === $length) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tif ($index >= $start) {\n\t\t\t\t$result[$index] = $item;\n\t\t\t\t$i++;\n\t\t\t}\n\t\t}\n\n\t\treturn $result;\n\t}", "abstract public function slice($offset, $length = null, $preserveKeys = false);", "public function slice($offset, $length = null, $preserveKeys = true);", "function expression_function_skip($collection, $number)\n{\n if (is_array($collection)) {\n return array_slice($collection, $number, null, true);\n } else if ($collection instanceof \\Iterator) {\n return new \\LimitIterator($collection, $number);\n } else {\n throw new \\InvalidArgumentException('Collection must be an array or an Iterator');\n }\n}", "public function take($size = 1, $from = 0);", "function delist(array $items, int $offset = 0): array\n {\n return array_slice(array_values($items), $offset);\n }", "public function offsetGet($offset) {}", "public function offsetGet($offset) {}", "public function offsetGet($offset) {}", "function minimize_collection_data($raw_collections, $how_many = 0, $offset = 0)\n{\n if ($how_many > 0) {\n $limited_collections = array_slice($raw_collections, $offset, $how_many);\n }\n\n return $limited_collections;\n}", "public function slice(int $offset, ?int $length = null): CollectionInterface;", "function head($count = 10)\n\t{\n\t\treturn array_slice($this->_data, 0, $count);\n\t}", "public function firstItem();", "public function nth($step, $offset = 0)\n {\n $new = [];\n\n $position = 0;\n\n foreach ($this->items as $item) {\n if ($position % $step === $offset) {\n $new[] = $item;\n }\n\n $position++;\n }\n\n return new static($new);\n }", "public function slice($offset, $length = null, $preserveKeys = false)\n {\n return new static(array_slice($this->elements, $offset, $length, $preserveKeys));\n }", "public function offsetGet($offset)\n {\n return $this->item[$offset];\n }", "public function skip($offset = 0);", "public function offset(?int $offset = null) : int;", "public function getStartIndex();", "public function getFirstItem();", "#[\\ReturnTypeWillChange]\n public function offsetGet($offset) {\n return $this->_items[$offset];\n }", "function chunk(?array $array, int $number): array\n{\n if ($number < 1) {\n return [];\n }\n\n return \\array_chunk($array ?? [], $number, false);\n}", "public function offsetGet($offset): mixed;", "public static function slice(array $array, int $offset, int $limit): array\n {\n return array_slice($array, $offset, $limit);\n }", "public function everyNth(int $n, int $position_of_first_nth_item = 0): CollectionInterface;", "function _first($ar){\n\treturn array_shift(array_values($ar));\t\n}", "public function extractFirst(): array\n {\n if (!$this->keyTotal) {\n return [];\n }\n\n $this->keyTotal--;\n\n return array_splice($this->keys, 0, 1);\n }", "public function offsetGet($offset)\n\t{\n\t\treturn $this->itemAt($offset);\n\t}", "#[\\ReturnTypeWillChange]\n public function offsetGet($offset)\n {\n return $this->items()[$offset];\n }", "public function offsetGet(mixed $offset): mixed\n {\n if (array_key_exists($offset, $this->items)) {\n return $this->items[$offset];\n }\n return null;\n }", "public function getFirstItem() {}", "public function getFirstItem() {}", "public static function take(array $array, int $limit): array\n {\n return array_slice($array, 0, $limit);\n }", "public function firstPosition($needle,$offset = 0)\n {\n return $this->provider->firstPosition($needle,$offset);\n }", "public function offsetGet($offset)\n {\n return $this->part($offset);\n }", "public function keyByOffset($offset) {\n\t\tif (1==1) {\n\t\t\n\t\t}\n\t\t$keys = array_keys($this->elems);\n\t\treturn $keys[$offset];\n\t}", "public function offsetGet($offset)\n {\n return $this->elements[$offset];\n }", "public function slice(int $index, int $length = null): Sequence;", "static function head(array $array) {\n return reset($array);\n }", "function drop(iterable $iterable, int $n): Iterator\n{\n /** @psalm-suppress DeprecatedFunction */\n return slice($iterable, $n);\n}", "public function getNewsItemByIndex($offset=0)\n\t{\n\t\tglobal\t$gMysql;\n\n\t\tif\t(($news_data\t=\t$gMysql->queryRow(\"select * from sm_post where status='A' order by published desc limit $offset,1\",__FILE__,__LINE__)) != NULL)\n\t\t{\n\t\t\t$html\t=\t$this->prepareHTMLSmall($news_data);\n\n\t\t\treturn $html;\n\t\t}\n\t}", "public function first()\n {\n $copy = $this->array;\n return reset($copy);\n }", "public function getItemAt($offset)\n {\n return $this->get(self::ITEM, $offset);\n }", "public function FirstItem()\n {\n return ($start = $this->getPageStart()) ? $start + 1 : 1;\n }", "function array_first($array)\n {\n return arr::first($array);\n }", "public function slice($offset, $length = null, $preserve = true) {\n\t\tif (!$length && $length !== 0) {\n\t\t\t$length = abs($offset);\n\t\t}\n\n\t\treturn array_slice($this->_value, (int) $offset, (int) $length, $preserve);\n\t}", "function ArrayPagination($AArray, $APage, $AAMountPerPage, $AWithModulo = false){\n $count = count($AArray);\n $page = $APage;\n\n $numberOfPage = round($count / $AAMountPerPage);\n $modulo = $count % $AAMountPerPage;\n if ($page > $numberOfPage) $page = $numberOfPage;\n $offset = (($page-1) * $AAMountPerPage);\n if ($AWithModulo) if ($page==$numberOfPage) $AAMountPerPage += $modulo; // additional modulo\n return array_slice( $AArray, $offset, $AAMountPerPage );\n}", "function head(array $list)\n{\n return array_shift($list);\n}", "function array_insert(&$array, $value, $offset)\r\n{\r\n if (is_array($array)) {\r\n $array = array_values($array);\r\n $offset = intval($offset);\r\n if ($offset < 0 || $offset >= count($array)) {\r\n array_push($array, $value);\r\n } elseif ($offset == 0) {\r\n array_unshift($array, $value);\r\n } else {\r\n $temp = array_slice($array, 0, $offset);\r\n array_push($temp, $value);\r\n $array = array_slice($array, $offset);\r\n $array = array_merge($temp, $array);\r\n }\r\n } else {\r\n $array = array($value);\r\n }\r\n return count($array);\r\n}", "public function offsetGet(mixed $offset): mixed {\n $value = null;\n if ($this->offsetExists($offset)) {\n $value = $this->items[$offset];\n }\n return $value;\n }", "function init(array $list): array\n{\n return array_slice($list, 0, -1);\n}", "public function slice(int $offset, int $length = null): self;", "public function get($offset, $default = null);", "public function getSlice($offset, $length)\n\t{\n\t\treturn $this->collection->slice($offset, $length);\n\t}", "public function offsetGet($offset)\n {\n }", "protected function getOffsetAndLimit($param)\n\t{\n\t\t$index = $param->getNewPageIndex();\n\t\t$pageSize = $this->getPageSize();\n\t\treturn $index < 1 ? array($index, $pageSize*2) : array(($index-1)*$pageSize, $pageSize*3);\n\t}", "public function firstN($expression, $n): static;", "public function offsetGet($offset)\n {\n return $this->array[$offset];\n }" ]
[ "0.65467", "0.64784783", "0.62437135", "0.6231879", "0.59955436", "0.59479254", "0.59395564", "0.5900297", "0.5889738", "0.5818833", "0.5766692", "0.57657593", "0.57657593", "0.57657593", "0.57657593", "0.57657593", "0.57657593", "0.57657593", "0.57657593", "0.57657593", "0.57657593", "0.57657593", "0.57657593", "0.57633114", "0.576101", "0.57375926", "0.5715371", "0.57009065", "0.5677307", "0.5625805", "0.5583859", "0.557055", "0.557055", "0.5542664", "0.55316615", "0.5529314", "0.55245763", "0.5519962", "0.54881656", "0.54878944", "0.54818654", "0.5476928", "0.5476082", "0.5473227", "0.54469234", "0.5442296", "0.5440257", "0.54217035", "0.54161566", "0.54161566", "0.54145694", "0.5412432", "0.53800356", "0.53723055", "0.53687775", "0.53640455", "0.53409785", "0.5321106", "0.53153723", "0.5308934", "0.5295689", "0.52870834", "0.52802825", "0.5264828", "0.5261861", "0.5255093", "0.52428627", "0.5237744", "0.5229851", "0.5222629", "0.5219355", "0.5212281", "0.52025807", "0.5201618", "0.5195293", "0.51766586", "0.5176487", "0.51762706", "0.5174651", "0.5162205", "0.5153084", "0.51518106", "0.5146614", "0.51397735", "0.5132819", "0.5131284", "0.5130324", "0.5110476", "0.5104282", "0.5094699", "0.5074331", "0.5049865", "0.5048093", "0.504586", "0.5044767", "0.5038271", "0.5034504", "0.5033192", "0.50058335", "0.4989871" ]
0.62981147
2
Return the last x items from an array with optional offset
public function last(int $limit = 10, int $offset = 0) { return is_array($this->data) ? array_slice($this->data, -($offset + $limit), $limit) : $this->data; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function sliced($anarray,$entries){\n$count_until_end = count($anarray) - $entries;\n$sliced = array_slice($anarray,$count_until_end);\nreturn $sliced;\n}", "public function last()\n {\n if($this->length()>0)\n {\n return $this->getAt(($this->length()-1));\n }\n throw new \\OutOfBoundsException();\n }", "function tail(array $list)\n{\n return array_slice($list, 1);\n}", "public function takeLast($howMany);", "public function last()\n {\n return $this->fixedArray->offsetGet($this->currentSize - 1);\n }", "function array_last($array)\n {\n return arr::last($array);\n }", "public function slice($array, $n, $position = null): static;", "function last(iterable $items)\n{\n if (is_array($items)) {\n return $items[count($items) - 1];\n }\n else {\n foreach ($items as $last);\n return $last;\n }\n}", "public function getLastItem() {}", "public function getLastItem() {}", "function tail($count = 10)\n\t{\n\t\treturn array_slice($this->_data, 0 - $count);\n\t}", "function trailing($count = 10)\n\t{\n\t\treturn array_slice($this->_data, 0 - $count);\n\t}", "public static function LastItem(array $array) {\n\n\t\t\t// Anything?\n\t\t\tif (count($array) == 0) {\n\t\t\t\treturn null;\n\t\t\t}\n\n\t\t\t// Return it\n\t\t\treturn $array[count($array) - 1];\n\n\t\t}", "function array_last($array, $callback, $default = null)\n\t{\n\t\treturn array_first(array_reverse($array), $callback, $default);\n\t}", "public function getAndRemoveLastItem();", "public function testLast() {\n\t\t$array = array(1, 2, 3, 4, 5);\n\t\t$result = _::last($array);\n\t\t$this->assertEquals(5, $result);\n\n\t\t// test getting the last three elements\n\t\t$result = _::last($array, 3);\n\t\t$this->assertInternalType('array', $result);\n\t\t$this->assertCount(3, $result);\n\t\t$this->assertEquals(3, $result[0]);\n\t\t$this->assertEquals(4, $result[1]);\n\t\t$this->assertEquals(5, $result[2]);\n\t}", "function delist(array $items, int $offset = 0): array\n {\n return array_slice(array_values($items), $offset);\n }", "function last(array $list)\n{\n return array_pop($list);\n}", "static function last(array $array) {\n return end($array);\n }", "public function extractLast(): array\n {\n if (!$this->keyTotal) {\n return [];\n }\n\n $this->keyTotal--;\n\n return array_splice($this->keys, -1);\n }", "function array_last($array)\n{\n if( is_array($array) )\n {\n $keys = array_keys($array);\n if( isset($keys[count($keys)-1]) )\n return $array[$keys[count($keys)-1]];\n }\n return null;\n}", "function array_last($array, $callback, $default = null)\n {\n return Arr::last($array, $callback, $default);\n }", "public function last($array)\n {\n return end($array);\n }", "public function lastItem();", "public function slice(int $offset, ?int $length = null): self\n {\n return Factory::create(\\array_slice($this->items, $offset, $length, true));\n }", "public function last() { \t\n try{\n if (!is_array($this->Items)) return $this->Items; \t\n if (!count($this->Items)) return null; \t\n end($this->Items); \t\n return $this->Items[key($this->Items)]; \n }catch(Exception $e){\n throw $e;\n }\n }", "function getSlicedRandomArray ($array,$offset,$length) {\n // shuffle\n while (count($array) > 0) {\n $val = array_rand($array);\n $new_arr[$val] = $array[$val];\n unset($array[$val]);\n }\n $result=$new_arr;\n \n // slice\n $result2 = array();\n $i = 0;\n if($offset < 0)\n $offset = count($result) + $offset;\n if($length > 0)\n $endOffset = $offset + $length;\n else if($length < 0)\n $endOffset = count($result) + $length;\n else\n $endOffset = count($result);\n \n // collect elements\n foreach($result as $key=>$value)\n {\n if($i >= $offset && $i < $endOffset)\n $result2[$key] = $value;\n $i++;\n }\n return $result2;\n }", "public function slice(int $offset, int|null $length = null): array;", "public function LastItem()\n {\n $pageLength = $this->getPageLength();\n if (!$pageLength) {\n return $this->getTotalItems();\n } elseif ($start = $this->getPageStart()) {\n return min($start + $pageLength, $this->getTotalItems());\n } else {\n return min($pageLength, $this->getTotalItems());\n }\n }", "function array_last($array, callable $callback = null, $default = null)\n {\n return Arr::last($array, $callback, $default);\n }", "public function last()\n {\n $copy = $this->array;\n return end($copy);\n }", "public static function last($array) {\n if (count($array) == 0) {\n return null;\n }\n $keys = array_keys($array);\n return $array[$keys[count($keys) - 1]];\n }", "public function offset($offset);", "public static function skip(array $array, int $offset): array\n {\n return array_slice($array, $offset);\n }", "function init(array $list)\n{\n return take(\\count($list) - 1)($list);\n}", "public function getAtOffset(Array $offset = []);", "function twig_last(Twig_Environment $env, $item)\n{\n $elements = twig_slice($env, $item, -1, 1, false);\n return is_string($elements) ? $elements[0] : current($elements);\n}", "public function last()\n {\n return Arr::last($this->items);\n }", "function asdb_last($array)\n\t{\n\t\treturn end($array);\n\t}", "function dropLastWhile(callable $perdicate)\n{\n return function (array $arr) use ($perdicate) {\n\n $isAssoc = isAssoc($arr);\n\n $arrToTraverse = reverse($arr);\n\n $i = 0;\n\n foreach ($arrToTraverse as $key => $value) {\n if (!$perdicate($value, $key)) {\n if ($isAssoc) return take(\\count($arr) - $i)($arr);\n else return take(\\count($arr) - $key)($arr);\n }\n\n if ($isAssoc) $i += 1;\n }\n\n return \\array_slice($arr, 0);\n };\n}", "public function getLast()\n {\n $k = count($this);\n if ($k > 0) {\n return $this[$k - 1];\n }\n }", "public static function offset($offset);", "public function last() {\n if ($this->count >= 1) {\n return $this->items[count($this->items) - 1];\n }\n else\n return null;\n }", "public function getLastIndex()\n {\n return $this->index - 1;\n }", "public function last() {\n\t\t$result = $this->get_result();\n\n\t\treturn array_pop( $result );\n\t}", "function arr_end($val = [])\n{\n return end($val);\n}", "abstract public function slice($offset, $length = null, $preserveKeys = false);", "public function getPreviousItems($count = 3)\n {\n return array_reverse( array_slice($this->items, -($count+1), $count) );\n }", "function drop(iterable $iterable, int $n): Iterator\n{\n /** @psalm-suppress DeprecatedFunction */\n return slice($iterable, $n);\n}", "function last($n=1) \n {\n //if we have a valid element, return it\n if ($this->count - $n >= 0) \n return $this->stack[$this->count-$n];\n //otherwise, return null\n else\n return null;\n }", "public function testLastIndexOf() {\n\t\t$array = array(1, 2, 3, 1, 2, 3, 1, 2, 3);\n\t\t$result = _::lastIndexOf($array, 3);\n\t\t$this->assertEquals(8, $result);\n\n\t\t// test not finding index of last occurence of an element\n\t\t$result = _::lastIndexOf($array, 4);\n\t\t$this->assertEquals(-1, $result);\n\n\t\t// test finding index of last occurence of an element,\n\t\t// using a \"from\" value\n\t\t$array = array(1, 2, 3, 1, 2, 3, 1, 2, 3);\n\t\t$result = _::lastIndexOf($array, 3, 6);\n\t\t$this->assertEquals(5, $result);\n\t}", "public function slice($offset, $length = null)\r\n {\r\n return new static(array_slice($this->items, $offset, $length, true));\r\n }", "public function slice($offset, $length=null, $preserveKeys=false)\n {\n $class = $this->instance();\n \n $length = is_numeric($length) ? $length : $this->count() - $offset;\n \n return new $class(array_slice($this->_data, $offset, $length,\n $preserveKeys));\n }", "public function slice($offset, $length = null, $preserveKeys = true);", "public function slice($offset, $length = null, $preserve = true) {\n\t\tif (!$length && $length !== 0) {\n\t\t\t$length = abs($offset);\n\t\t}\n\n\t\treturn array_slice($this->_value, (int) $offset, (int) $length, $preserve);\n\t}", "function init(array $list): array\n{\n return array_slice($list, 0, -1);\n}", "function last(array $array): mixed\n{\n return $array ? end($array) : null; // No falses.\n}", "public static function last($array, $callback = NULL, $default = NULL)\n {\n if (is_null($callback)) {\n \n if (empty($array)) {\n return $default;\n }\n \n return end($array);\n \n }\n \n return static::first(array_reverse($array, true), $callback, $default);\n \n }", "function slice(int $start, $length, iterable $items) : iterable\n{\n return _arrayOrIterator($items, function($items) use($start, $length) {\n $i = 0;\n foreach ($items as $key => $value) {\n if ($i++ < $start) {\n continue;\n }\n yield $key => $value;\n if ($i >= $start + $length) {\n break;\n }\n }\n });\n}", "function array_shift_over($array, $index) {\n\n $size = sizeof($array);\n if($index >= $size || $index < 0) {\n return $array;\n } else {\n for($i=$index;$i<$size;$i++) {\n if($i === ($size-1)) {\n unset($array[$i]);\n } else {\n $array[$i] = $array[$i+1];\n }\n }\n }\n return $array;\n}", "public function slice($offset, $length = null)\n {\n return new static(array_slice($this->items, $offset, $length, true));\n }", "function rd_kafka_offset_tail(int $cnt): int\n{\n\n}", "function expression_function_skip($collection, $number)\n{\n if (is_array($collection)) {\n return array_slice($collection, $number, null, true);\n } else if ($collection instanceof \\Iterator) {\n return new \\LimitIterator($collection, $number);\n } else {\n throw new \\InvalidArgumentException('Collection must be an array or an Iterator');\n }\n}", "public function slice(int $offset, ?int $length = null): CollectionInterface;", "function tail(iterable $collection): array\n{\n return asList(TailOperation::of($collection)());\n}", "public function offset() {\n return ($this->current_page - 1) * $this->per_page;\n }", "public function limit($count, $offset);", "public function last()\n {\n return end($this->items);\n }", "public function rest() {\n return new LazySeq(\n function( $x ) { return $x; },\n array_slice( $this->items, 1 )\n );\n }", "public function last(int $n = 0) {\n $keys = array_keys($this);\n if (sizeof($keys) <= $n) return null;\n return $this[$keys[sizeof($keys) - 1 - $n]];\n }", "public function last()\r\n\t{\r\n\t\treturn end($this->_items);\r\n\t}", "function tail() {\r\n return new self(array_slice($this->list, 1));\r\n }", "public function peekLast();", "public static function last(array $array)\n {\n return !empty($array) ? end($array): null;\n }", "public function getLast ()\n {\n return reset ( $this->_list ) ;\n }", "public function getLastPage();", "public static function getLastIndex(array $array)\n {\n $length = count($array);\n return $length > 0 ? (int) ($length - 1) : null;\n }", "public function array_last($array, callable $callback = null, $default = null)\n {\n return Arr::last($array, $callback, $default);\n }", "protected function slice(array $items, $start = null, int $length = null): array\n\t{\n\t\t$result = [];\n\t\t$i = 0;\n\n\t\tforeach ($items as $index => $item) {\n\t\t\tif ($i === $length) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tif ($index >= $start) {\n\t\t\t\t$result[$index] = $item;\n\t\t\t\t$i++;\n\t\t\t}\n\t\t}\n\n\t\treturn $result;\n\t}", "public function lastItem() {\n\t\treturn $this->fastForward()->current();\n\t}", "function last ()\n {\n return $this->A ? array_slice ($this->A, -1)[0] : null;\n }", "public function slice(int $index, int $length = null): Sequence;", "public function select(?int $limit = null, ?int $offset = null): array\n {\n $copy = $this->array;\n if ($limit !== null && $offset !== null) {\n return array_splice($copy, $offset, $limit);\n } elseif ($offset !== null) {\n return array_splice($copy, $offset);\n } elseif ($limit !== null) {\n return array_splice($copy, 0, $limit);\n }\n return $copy;\n\n }", "function getLastItem() { return $this->m_lastItem; }", "public static function take(array $array, int $limit): array\n {\n return array_slice($array, 0, $limit);\n }", "public function slice(int $offset, int $length = null): self;", "function offsetGet(/*. mixed .*/ $offset){}", "public function findLastFiveArticles(): ?iterable\n {\n /*\n * TODO : Voir le Tri par date\n */\n return $this->iterateOverSources('findLastFiveArticles')\n ->slice(-5);\n }", "public function getLastItem()\n {\n if ($this->valid() === false) {\n return null;\n }\n return $this->getRow($this->count() - 1);\n }", "public static function slice(array $array, int $offset, int $limit): array\n {\n return array_slice($array, $offset, $limit);\n }", "function getLast3Liked(){\n global $USER;\n $query = dbQuery(\"SELECT liked FROM user_interests WHERE user_id= '\".$USER['id'].\"'\");\n\n while($row = mysql_fetch_array($query)){\n $allLikes = unserialize($row['liked']);\n }\n if (!$allLikes)\n $allLikes = array();\n $last3 = array_splice($allLikes, -3, 3);\n return $last3;\n}", "function minimize_collection_data($raw_collections, $how_many = 0, $offset = 0)\n{\n if ($how_many > 0) {\n $limited_collections = array_slice($raw_collections, $offset, $how_many);\n }\n\n return $limited_collections;\n}", "function last()\r\n {\r\n if ($this->count()>=1)\r\n {\r\n return($this->items[count($this->items)-1]);\r\n }\r\n else\r\n {\r\n return(null);\r\n }\r\n }", "public static function trimTail(array $array, int $limit): array\n {\n return self::slice($array, 0, -$limit);\n }", "public function get($offset);", "public function lastPosition($needle,$offset)\n {\n return $this->provider->lastPosition($needle,$offset);\n }", "public static function last($array, callable $callback, $default = null)\n {\n return static::first(array_reverse($array), $callback, $default);\n }", "public static function last($array, callable $callback, $default = null)\n {\n return static::first(array_reverse($array), $callback, $default);\n }", "function getArrayLastIndex($arr) {\n\t$result = '';\n\tforeach ($arr as $key => $value) {\n\t\t$result = $key;\n\t}\n\treturn $result;\n}", "function expression_function_take($collection, $number)\n{\n if (is_array($collection)) {\n return array_slice($collection, 0, $number, true);\n } else if ($collection instanceof \\Iterator) {\n return new \\LimitIterator($collection, 0, $number);\n } else {\n throw new \\InvalidArgumentException('Collection must be an array or an Iterator');\n }\n}" ]
[ "0.6779264", "0.6410539", "0.6393248", "0.62520367", "0.6052166", "0.59840596", "0.59711546", "0.5955139", "0.59469444", "0.59469444", "0.5917732", "0.58761364", "0.58286226", "0.5823988", "0.5809355", "0.5791899", "0.5778745", "0.577486", "0.5753579", "0.57184106", "0.5687116", "0.5675975", "0.5656496", "0.56522655", "0.5612922", "0.55980563", "0.5590726", "0.55877656", "0.5562061", "0.5550098", "0.553941", "0.5531509", "0.55265325", "0.5519373", "0.55049974", "0.55023724", "0.54990417", "0.5498567", "0.5488416", "0.5483729", "0.54722965", "0.5462725", "0.54405653", "0.5414075", "0.54134923", "0.54085624", "0.5363245", "0.5356253", "0.53371423", "0.53361434", "0.5331418", "0.53160083", "0.5311343", "0.5307721", "0.5285377", "0.5280949", "0.52731335", "0.526752", "0.5264833", "0.52623045", "0.52569824", "0.52509296", "0.52464116", "0.52427226", "0.5240118", "0.52353907", "0.5233894", "0.52297807", "0.52295524", "0.5225161", "0.52248335", "0.52187824", "0.52125347", "0.5210995", "0.5204818", "0.5198418", "0.519447", "0.5194278", "0.5188321", "0.51786333", "0.5175413", "0.5149217", "0.5148095", "0.51420987", "0.5139546", "0.51286566", "0.5120327", "0.51168835", "0.51120913", "0.5109171", "0.5102814", "0.50995404", "0.5085298", "0.5080859", "0.5075938", "0.50707346", "0.5068335", "0.5068335", "0.50677097", "0.50643873" ]
0.65498656
1
Set params, i.e. set the default comparator to 'is' if need be
private function setParams(array $params) : array { if (count($params) === 1) { array_unshift($params, 'is'); } return $params; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract protected function setUpComparator();", "protected function _setSortingParameters()\n {\n $sSortingParameters = $this->getViewParameter('sorting');\n if ($sSortingParameters) {\n list($sSortBy, $sSortDir) = explode('|', $sSortingParameters);\n $this->setItemSorting($this->getSortIdent(), $sSortBy, $sSortDir);\n }\n }", "public function setParams($params);", "public function setParams($params);", "function set_params($params)\r\n\t{\r\n\t\t$this->parameters = $params;\r\n\t}", "function setParams($params) {\n $params = array_change_key_case($params);\n \n if (isset($params['localStatus'])) $this -> _localStatus = $params['localstatus'];\n if (isset($params['peerStatus'])) $this -> _peerStatus = $params['peerstatus'];\n if (isset($params['interconID'])) $this -> _interconID = $params['interconid']; \n }", "public function setParameters(array $params)\n {\n $this->params = array_filter($params);\n $this->processFilters();\n }", "public function setParams($params)\n {\n $this->params = $params;\n $this->conditions = self::makeConditions($this->params, $this->filterables);\n return $this;\n }", "public function set_default_params($params)\n {\n }", "function setParams($params) {\n $this->params = $params;\n }", "public function setParameter($params)\r\n\t{\r\n\t\tif (is_array($params))\r\n\t\t\t$this->params = array_merge($this->defaultParams(), $params);\r\n\t\telse\r\n\t\t\t$this->params = $this->defaultParams();\r\n\t}", "protected function setDefaultParams()\n {\n foreach ($this->allowedParams as $param => $options) {\n $this->params[$param] = null;\n if (! empty($options['arguments'])) {\n $this->params[$param] = array();\n foreach ($options['arguments'] as $arg => $opts) {\n if (! empty($opts['default'])) {\n $cast = ! empty($opts['cast']) ? $opts['cast'] : 'string';\n $this->params[$param][$arg] = $this->castValue($cast, $opts['default']);\n }\n }\n } elseif (! empty($options['default'])) {\n $cast = ! empty($options['cast']) ? $options['cast'] : 'string';\n $this->params[$param] = $this->castValue($cast, $options['default']);\n }\n }\n }", "private function setParams($params)\n\t{\n\t\t$this->params = $params;\n\t}", "public function setParameters()\n {\n $params = array();\n $associations = array();\n foreach ($this->datatablesModel->getColumns() as $key => $data) {\n // if a function or a number is used in the data property\n // it should not be considered\n if( !preg_match('/^(([\\d]+)|(function)|(\\s*)|(^$))$/', $data['data']) ) {\n $fields = explode('.', $data['data']);\n $params[$key] = $data['data'];\n $associations[$key] = array('containsCollections' => false);\n\n if (count($fields) > 1) {\n $this->setRelatedEntityColumnInfo($associations[$key], $fields);\n } else {\n $this->setSingleFieldColumnInfo($associations[$key], $fields[0]);\n }\n }\n }\n\n $this->parameters = $params;\n // do not reindex new array, just add them\n $this->associations = $associations + $this->associations;\n }", "private function _setParams($params)\n {\n $this->_params = array();\n foreach ($params as $paramKey => $paramValue) {\n $this->_params[$paramKey] = $paramValue;\n }\n }", "protected final function setParams ($params)\n\t{\n\t\t/// This method is restricted (cannot be used by descendants).\n\t}", "public function setParams($params){\r\n $this->params=$params;\r\n }", "public function setParams($params)\n {\n $this->_params = $params;\n }", "public function setParams($params)\n {\n $this->_params = $params;\n }", "public function initParams()\n {\n foreach ($this->cmds as $key => $parseValues) {\n $this->params[$key] = array();\n }\n }", "protected function populateParams()\n\t{\n\t\tparent::populateParams();\n\t\t$acl = ZefaniabibleHelper::getAcl();\n\t\tif (!isset($this->_data))\n\t\t\treturn;\n\t\t// Convert the parameter fields into objects.\n\t\tforeach ($this->_data as &$item)\n\t\t{\n\t\t\tif ($acl->get('core.edit.state')\n\t\t\t\t|| (bool)$item->publish)\n\t\t\t\t$item->params->set('access-view', true);\n\t\t\tif ($acl->get('core.edit'))\n\t\t\t\t$item->params->set('access-edit', true);\n\t\t\tif ($acl->get('core.delete'))\n\t\t\t\t$item->params->set('access-delete', true);\n\t\t}\n\t}", "public function setParams( $params )\r\n\t{\r\n\t\t$this->params = $params;\r\n\t}", "public function setDefaultParams(array $params);", "protected function setParamsFilters()\n {\n if ($this->arParams['IBLOCK_TYPE'])\n {\n $this->filterParams['IBLOCK_TYPE'] = $this->arParams['IBLOCK_TYPE'];\n }\n\n if ($this->arParams['IBLOCK_ID'])\n {\n $this->filterParams['IBLOCK_ID'] = $this->arParams['IBLOCK_ID'];\n }\n\n if ($this->arParams['SECTION_CODE'])\n {\n $this->filterParams['SECTION_CODE'] = $this->arParams['SECTION_CODE'];\n }\n elseif ($this->arParams['SECTION_ID'])\n {\n $this->filterParams['SECTION_ID'] = $this->arParams['SECTION_ID'];\n }\n\n if ($this->arParams['INCLUDE_SUBSECTIONS'] === 'Y')\n {\n $this->filterParams['INCLUDE_SUBSECTIONS'] = 'Y';\n }\n\n if ($this->arParams['ELEMENT_CODE'])\n {\n $this->filterParams['CODE'] = $this->arParams['ELEMENT_CODE'];\n }\n elseif ($this->arParams['ELEMENT_ID'])\n {\n $this->filterParams['ID'] = $this->arParams['ELEMENT_ID'];\n }\n\n if ($this->arParams['CHECK_PERMISSIONS'])\n {\n $this->filterParams['CHECK_PERMISSIONS'] = $this->arParams['CHECK_PERMISSIONS'];\n }\n\n if (!isset($this->filterParams['ACTIVE']))\n {\n $this->filterParams['ACTIVE'] = 'Y';\n }\n\n if (strlen($this->arParams['EX_FILTER_NAME']) > 0\n && preg_match(\"/^[A-Za-z_][A-Za-z01-9_]*$/\", $this->arParams['EX_FILTER_NAME'])\n && is_array($GLOBALS[$this->arParams['EX_FILTER_NAME']])\n )\n {\n $this->filterParams = array_merge_recursive($this->filterParams, $GLOBALS[$this->arParams['EX_FILTER_NAME']]);\n\n $this->addCacheAdditionalId($GLOBALS[$this->arParams['EX_FILTER_NAME']]);\n }\n }", "public function setParams(array $params);", "public function setParams(array $params);", "public function setParams(array $params);", "public function setParams($params) {\n\t\t$this->params = array();\n\t\t$this->addParams($params);\n\t}", "public function setParams($params) {\n $this->params = $params;\n }", "protected function populateParams()\n\t{\n\n\t\tparent::populateParams();\n\t\t//$acl = ZefaniabibleHelper::getAcl();\n\t\t$mdl_acl = new ZefaniabibleHelper;\n\t\t$acl = $mdl_acl->getAcl();\n\t\tif (!isset($this->_data))\n\t\t\treturn;\n\n\t\t// Convert the parameter fields into objects.\n\t\tforeach ($this->_data as &$item)\n\t\t{\n\n\t\t\tif ($acl->get('core.edit.state')\n\t\t\t\t|| (bool)$item->publish)\n\t\t\t\t$item->params->set('access-view', true);\n\n\t\t\tif ($acl->get('core.edit'))\n\t\t\t\t$item->params->set('access-edit', true);\n\n\t\t\tif ($acl->get('core.delete'))\n\t\t\t\t$item->params->set('access-delete', true);\n\n\n\t\t}\n\n\t}", "public function setParams($params)\n {\n $this->params = $params;\n }", "public function setParams(array $params){\n \tif(is_array($params)){\n $this->_params = $this->filterParams($params);\n \treturn $this->_params;\n \t}\n\n }", "function setParams(&$reporter) {\n\t\tif ($reporter->params['app']) {\n\t\t\t$this->appTest = true;\n\t\t}\n\n\t\tif ($reporter->params['group']) {\n\t\t\t$this->groupTest = true;\n\t\t}\n\n\t\tif ($reporter->params['plugin']) {\n\t\t\t$this->pluginTest = Inflector::underscore($reporter->params['plugin']);\n\t\t}\n\t}", "public function setSorting($arrSorting);", "public function loadParams()\r\n\t{\r\n\t\tforeach ($this->param_names as $param_name)\r\n\t\t{\r\n\t\t\t$funcname = 'set'.$param_name;\r\n\t\t\tif (_PS_VERSION_ < '1.5')\r\n\t\t\t\t$this->$funcname(Configuration::get('CERTISSIM_'.Tools::strtoupper($param_name)));\r\n\t\t\telse\r\n\t\t\t\t$this->$funcname(Configuration::get('CERTISSIM_'.Tools::strtoupper($param_name), null, null, $this->getIdshop()));\r\n\t\t}\r\n\t}", "public function set_params( $params )\n\t{\n\t\tif ( ! is_array( $params ) ) {\n\t\t\tparse_str( $params, $params );\n\t\t}\n\n\t\t$this->params = $params;\n\t}", "private function setParams()\n\t\t{\n\t\t\t/**\n\t\t\t* Remove do $this->_separetor os dois primeiros valores\n\t\t\t* referentes ao controller e action, deixando os demais valores\n\t\t\t* que serão usados para formarem os parametros, indices e valores\n\t\t\t*/\n\t\t\tunset($this->_separetor[1], $this->_separetor[2]);\n\t\t\t\n\t\t\t/**\n\t\t\t* Caso o ultimo item do $this->_separetor seja vazio\n\t\t\t* o mesmo é removido\n\t\t\t*/\n\t\t\tif ( end($this->_separetor) == null ) {\n\t\t\t\tarray_pop($this->_separetor);\n\t\t\t}\n\n\t\t\t\n\t\t\t/**\n\t\t\t* Se a $this->_separetor estivar vazia,\n\t\t\t* então os parametros serão definidos como vazios\n\t\t\t*/\n\t\t\tif ( !empty($this->_separetor) ) {\n\t\t\t\t/**\n\t\t\t\t* Percorre o array $this->_separetor, verificando os indices\n\t\t\t\t* se for impar, então seu valor será o indice do parametro.\n\t\t\t\t* Se for par, seu valor será o valor do paremetro\n\t\t\t\t*/\n\t\t\t\tforeach ($this->_separetor as $key => $value) {\n\t\t\t\t\tif ($key % 2 == 0) {\n\t\t\t\t\t\t$param_value[] = $value;\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$param_indice[] = $value;\n\t\t\t\t\t}\t\t\t\t\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$param_value = array();\n\t\t\t\t$param_indice = array();\n\t\t\t}\n\n\n\t\t\t/**\n\t\t\t* Verifica se os indices e valores dos parametros\n\t\t\t* não são vazios e possuem a mesma quantidade\n\t\t\t* Então vaz um \"array_combine\" para juntar os dois arrays\n\t\t\t* formando um indice->valor para o parametro\n\t\t\t*/\n\t\t\tif ( !empty($param_indice) \n\t\t\t\t&& !empty($param_value)\n\t\t\t\t&& count($param_indice)\n\t\t\t\t== count($param_value)\n\t\t\t) {\n\t\t\t\t$this->_params = array_combine($param_indice, $param_value);\n\t\t\t} else {\n\t\t\t\t$this->_params = array();\n\t\t\t}\n\t\t}", "protected function handleSortParams() {\n switch($this->sortParam) {\n case 'date':\n $this->sortField = 'date';\n break;\n\n case 'institution':\n $this->sortField = 'institution';\n break;\n\n case 'type':\n $this->sortField = 'document_type';\n break;\n\n default:\n $this->sortField = 'title';\n break;\n }\n\n\n // make sure we only use valid sort directions\n if($this->sortDirection != 'asc' && $this->sortDirection != 'desc') {\n $this->sortDirection = 'asc';\n }\n }", "private function setParams($statment, $params = array()){\n foreach ($params as $key => $value) {\n $this->setParam($statment, $key, $value);\n }\n }", "private function loadParams() {\r\n foreach ($this->_param_names as $param_name)\r\n\t{\r\n\t\t$funcname = 'set'.$param_name;\r\n\t\tif (_PS_VERSION_ < '1.5')\r\n\t\t\t$this->$funcname(Configuration::get('KWIXO_'.strtoupper($param_name)));\r\n\t\telse\r\n\t\t\t$this->$funcname(Configuration::get('KWIXO_'.strtoupper($param_name), null, null, $this->getIdshop()));\r\n\t}\r\n }", "protected function _loadParams()\n {\n if(isset($this->_params['module'])) {\n $this->_module = $this->_params['module'];\n }\n if(isset($this->_params['controller'])) {\n $this->_controller = $this->_params['controller'];\n }\n if(isset($this->_params['action'])) {\n $this->_action = $this->_params['action'];\n }\n\n foreach($this->_params as $key => $value) {\n\n if($key == 'sort') {\n\n $sort = explode('-', $value, 2);\n $columnName = $sort[0];\n $order = isset($sort[1]) ? strtolower($sort[1]) : self::ASC_ORDER;\n if(array_key_exists($columnName, $this->_columns)) {\n if($order == self::ASC_ORDER || $order == self::DESC_ORDER) {\n $this->_currentSortedColumn = $columnName;\n $this->_currentSort = $order;\n $column = $this->_columns[$columnName];\n $column->setSorted(true)->setCurrentSortedOrder($order);\n }\n else {\n throw new Datagrid_Exception('Invalid order provided in params');\n }\n }\n else {\n throw new Datagrid_Exception(\"Unknown column provided in order param: $columnName\");\n }\n\n }\n }\n\n return $this;\n }", "private function setFilter()\n\t{\n\t\t// get filter values\n\t\t$this->filter['language'] = ($this->getParameter('language', 'array') != '') ? $this->getParameter('language', 'array') : BL::getWorkingLanguage();\n\t\t$this->filter['application'] = $this->getParameter('application');\n\t\t$this->filter['module'] = $this->getParameter('module');\n\t\t$this->filter['type'] = $this->getParameter('type', 'array');\n\t\t$this->filter['name'] = $this->getParameter('name');\n\t\t$this->filter['value'] = $this->getParameter('value');\n\n\t\t// build query for filter\n\t\t$this->filterQuery = BackendLocaleModel::buildURLQueryByFilter($this->filter);\n\t}", "public function set($params) {}", "function __construct($params = null) {\n // Do the setting override or initial settings.\n //\n if ($params != null) {\n foreach ($params as $name => $sl_value) {\n $this->$name = $sl_value;\n }\n }\n }", "private function setQueryParams()\n {\n if (empty($this->generator->types[CustomsInterface::CUSTOM_TYPES_QUERY_PARAMS][ApiInterface::RAML_PROPS]) === false) {\n $queryParams = $this->generator->types[CustomsInterface::CUSTOM_TYPES_QUERY_PARAMS][ApiInterface::RAML_PROPS];\n $this->openEntity(ConfigInterface::QUERY_PARAMS);\n foreach ($this->queryParams as $param) {\n if (empty($queryParams[$param][ApiInterface::RAML_KEY_DEFAULT]) === false) {\n $this->setParam($param, $queryParams[$param][ApiInterface::RAML_TYPE], $queryParams[$param][ApiInterface::RAML_KEY_DEFAULT], 2);\n }\n }\n $this->closeEntities();\n }\n }", "public function setParameters($params) {\n\t\t$defaultParams = $this->params;\n\t\t$allParams = array_merge($defaultParams, $params);\n\n\t\t$this->validateParameters($allParams);\n\n\t\t// Save parameters as they were\n\t\t$this->params = $allParams;\n\n\t\t// Update request URLs from the new parameters\n\t\t$this->urlRaw = $this->build();\n\t\t$this->url = $this->build(true);\n\t}", "private function setDefaultParameterValues()\n {\n $this->setDefaultParameterValue(self::CRYPTOGRAPHY, 'DependencyInjection\\CryptUtils\\SeclibCryptography');\n $this->setDefaultParameterValue(self::CRYPTUTILS, 'DependencyInjection\\CryptUtils\\CryptUtilImpl');\n $this->setDefaultParameterValue(self::TRANSPORTWRAPPER, 'DependencyInjection\\Transporter\\LamiaHttpClientWrapper');\n $this->setDefaultParameterValue(self::TRANSPORTATION, 'Transport\\TransportImpl');\n $this->setDefaultParameterValue(self::RESPONSE_CONVERTER, 'Converter\\Response\\ArrayResponseConverter');\n $this->setDefaultParameterValue(self::REQUEST_CONVERTER, 'Converter\\Request\\ArrayConverter');\n $this->setDefaultParameterValue(self::FIELD_CONFIGURATION, 'Configuration\\FieldConfigImpl');\n $this->setDefaultParameterValue(self::FRONTEND_RESPONSE_CONVERTER, 'Converter\\Response\\FrontendServiceResponseConverter');\n $this->setDefaultParameterValue(self::DISABLE_RSA_BLINDING, false);\n }", "public function setParams( $params )\n\t{\n\t\tif ( ! is_array( $params ) ) {\n\t\t\t$params = parse_str( $params );\n\t\t}\n\t\t$this->params = $params;\n\t}", "public function setParams($params) {\n\t\t$this->data['params'] = $params;\n\t}", "private function _parseParams() {\n if(!is_array($this->_params)) {\n return false;\n }\n foreach($this->_params as $param) {\n $param = strtolower($param);\n if(is_string($param) && ($param == 'asc' || $param == 'desc')) {\n $this->_orderDirection = $param;\n continue;\n }\n $this->_limit = intval($param);\n }\n }", "public function setParams($params = null)\n {\n self::clearParams();\n if($params && is_array($params)){\n foreach($params as $key => $value){\n if(!$key || trim($key) == ''){\n continue;\n }\n\n $this->params[$key] = $value;\n }\n }\n }", "protected function setup_filters()\n\t{\n\t\t$this->orderby = ( !empty($_GET['orderby']) ? $_GET['orderby'] : 'timestamp' );\n\t\t$order = ( !empty($_GET['order']) ? $_GET['order'] : 'asc' );\n\t\t\n\t\tswitch( $order )\n\t\t{\n\t\t\tcase 'asc': case 'desc': break;\n\t\t\tdefault: $order = null; break;\n\t\t}\n\n\t\tswitch( $this->orderby )\n\t\t{\n\t\t\tcase 'timestamp':\n\t\t\t\tif( !$order ) $order = 'asc';\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\t$this->orderby = 'timestamp';\n\t\t\t\tif( !$order ) $order = 'asc';\n\t\t\t\tbreak;\n\t\t}\n\t\t\n\n\t\tif( !isset($_GET) ) $_GET = array();\n\t\t$_GET['orderby'] = $this->orderby;\n\t\t$_GET['order'] = $order;\n\t\t\n\t\t$this->orderby .= ' '.$order;\n\t}", "public function set_query_params($params)\n {\n }", "public function setParams(array $params, $reset = true) {}", "protected function setParamConfig()\n {\n $this->paramConfig = ArrayManipulation::deepMerge($this->paramConfig, array(\n 'placeholder' => array(\n 'name' => 'Platzhalter Text',\n 'type' => 'textfield'\n ),\n 'rows' => array(\n 'name' => 'Anzahl Zeilen',\n 'type' => 'textfield'\n ),\n 'maxlength' => array(\n 'name' => 'Maximale Anzahl Zeichen (optional)',\n 'type' => 'textfield'\n )\n ));\n }", "protected function setParams($params)\n {\n // endpoint\n if (isset($params['Endpoint'])) {\n $this->setEndPoint($params['Endpoint']);\n unset($params['Endpoint']);\n } else {\n $this->setEndPoint();\n }\n\n // service\n if (isset($params['Service'])) {\n $this->setService($params['Service']);\n unset($params['Service']);\n } else {\n $this->setService();\n }\n\n // remaining\n if (is_array($params)) {\n $this->params = array_merge($this->params, $params);\n }\n }", "public function setParams(array $params){\n\t\t$this->params = $params;\n\t}", "private function _setParams()\n\t{\n\t\tforeach ($_GET as $key => $value) {\n\t\t\t$this->_params[$key] = $this->_sanitize($value);\n\t\t}\n\n\t\tforeach ($_POST as $key => $value) {\n\t\t\t$_POST[$key] = $this->_sanitize($value);\n\t\t}\n\n\t\t$nbElements = count($this->_requestVars);\n\t\tif ($nbElements > 3) {\n\t\t\t$i = 2;\n\t\t\twhile ($i < $nbElements and $i + 1 < $nbElements) {\n\t\t\t\tif (ctype_digit($this->_requestVars[$i])) {\n\t\t\t\t\t$i += 2;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\t$this->_params[$this->_requestVars[$i]] = $this->_sanitize($this->_requestVars[$i + 1]);\n\t\t\t\t$i += 2;\n\t\t\t}\n\t\t}\n\n\t\tif ($nbElements > 2) {\n\t\t\t$i = 2;\n\t\t\twhile ($i < $nbElements) {\n\t\t\t\t$this->_params[$i - 2] = $this->_sanitize($this->_requestVars[$i]);\n\t\t\t\t$i++;\n\t\t\t}\n\t\t}\n\n\t\treturn $this;\n\t}", "public function setParams(array $params) :void;", "final protected function _setParameters(array $params)\n\t{\n\t\tforeach ($params as $key => $value) {\n\t\t\t$this->setParameter($key, $value);\n\t\t}\n\t}", "protected static function setValidSortTypes()\r\n {\r\n }", "function params(array $params) {\n\t\t$this->_params = $params;\n\t}", "protected function set_params($limit = FALSE)\n\t{\n\t\t$public_vars = get_class_vars(__CLASS__);\n\n\t\t// restrict to specified keys\n\t\tif ($limit !== FALSE)\n\t\t{\n\t\t\t$public_vars = array_intersect_key($public_vars, array_flip($limit));\n\t\t}\n\n\t\t// prep parameters\n\t\tforeach ($this->EE->TMPL->tagparams as $key => $var)\n\t\t{\n\t\t\tif ( array_key_exists($key, $public_vars) )\n\t\t\t{\n\t\t\t\t// the final parameter value\n\t\t\t\t$value = '';\n\n\t\t\t\t// booleans\n\t\t\t\tif ( preg_match('/^[1|on|yes|y|0|off|no|n]/i', $var))\n\t\t\t\t{\n\t\t\t\t\t$value = (bool) preg_match('/1|on|yes|y/i', $var);\n\t\t\t\t}\n\n\t\t\t\t// arrays\n\t\t\t\telseif ( preg_match('/\\||=/', $var))\n\t\t\t\t{\n\t\t\t\t\t// indexed array\n\t\t\t\t\t$value = explode('|', $var);\n\n\t\t\t\t\t// remove whitepace from array values\n\t\t\t\t\t$value = array_filter(array_map('trim', $value));\n\n\t\t\t\t\t// associative arrays\n\t\t\t\t\tif ( preg_match('/=/', $var))\n\t\t\t\t\t{\n\t\t\t\t\t\t$param = array();\n\n\t\t\t\t\t\tforeach ($value as $v)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$nested = explode('=', $v);\n\t\t\t\t\t\t\tif (isset($nested[1]))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$param[trim($nested[0])] = trim($nested[1]);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$value = $param;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// integers\n\t\t\t\telseif( preg_match('/^\\d+/', $var))\n\t\t\t\t{\n\t\t\t\t\t$value = (int) $var;\n\t\t\t\t}\n\n\t\t\t\t// strings\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$value = (string) $var;\n\t\t\t\t}\n\n\t\t\t\t// Check that the types match and assign.\n\t\t\t\t// Commented out because some properties have mixed types.\n\t\t\t\t/*\n\t\t\t\tif ( gettype($this->$key) === gettype($value) )\n\t\t\t\t{\n\t\t\t\t\t$this->$key = $value;\n\t\t\t\t}\n\t\t\t\t*/\n\t\t\t\t$this->$key = $value;\n\t\t\t}\n\t\t}\n\n\t}", "public function setParam($params)\n {\n $this->m_params = $params;\n }", "public function setComparator(ComparatorInterface $comparator)\n {\n $this->comparator = $comparator;\n }", "function buildOrderParams() \n\t{\n\t\tif ($this->sortByGroup === false && $this->sortField != \"\"){\n\t\t\t$this->strOrderBy = \"Order by \".$this->sortField;\n\t\t\tif ($this->sortOrder == \"A\")\n\t\t\t\t$this->strOrderBy .= \" asc\";\n\t\t\telse \n\t\t\t\t$this->strOrderBy .= \" desc\";\n\t\t}\n\t}", "protected function filterParams()\n {\n }", "protected function setDefaultParameters() {\n // Vendor token of the business that done the request.\n $this->setParameter('vendor_token', $this->getLydiaVendorToken()) ;\n\n // UUID of the remote payment request.\n $this->setParameter('request_uuid', $this->requestUUID) ;\n }", "public function setParams(array $params) {\n\t\t$this->params = $params;\n\t}", "public function setParameter(array $arr){\r\n $this->_parametros = $arr;\r\n\t\t// $this->_parametros = array_merge($this->_parametros, $arr);\r\n }", "public function setSort($value)\n {\n if (is_array($value)) {\n $config = ['class' => Sort::className()];\n if ($this->id !== null) {\n $config['sortParam'] = $this->id . '-sort';\n }\n $this->_sort = Yii::createObject(array_merge($config, $value));\n } elseif ($value instanceof Sort || $value === false) {\n $this->_sort = $value;\n } else {\n throw new InvalidParamException('Only Sort instance, configuration array or false is allowed.');\n }\n }", "public function setParams(array $params)\n\t{\n\t\t$this->_params = array_merge($this->_params, $params);\n\t}", "public function setParams ($params) {\n\t\t$this->params = $params;\n\t\treturn $this;\t\n\t}", "function setParameters($parameters);", "protected function get_parameter_order()\n {\n }", "private function _setParams ()\n {\n $endpoint = $this->_endpoint->getData();\n if (count($endpoint) > 0) {\n \n $method = $this->_endpoint->getUrl();\n $methodname = 'setParameter' . ucfirst($method['method']);\n \n $this->_httpclient->{$methodname}('access_token', \n $this->_accesstoken);\n $this->_httpclient->{$methodname}('api_secret', $this->_apisecret);\n \n foreach ($endpoint as $param => $value) {\n $this->_httpclient->{$methodname}($param, $value);\n }\n }\n }", "public function setParams(array $params)\n\t{\n\t\t$this->params = $params;\n\t}", "public function testSetShouldSort(): void\n {\n $parser = new IniParser('');\n\n // Test the default value\n self::assertFalse($parser->shouldSort());\n\n // Test setting it to true\n $parser->setShouldSort(true);\n self::assertTrue($parser->shouldSort());\n\n // Test setting it back to false\n $parser->setShouldSort(false);\n self::assertFalse($parser->shouldSort());\n }", "public function setParams(array $params): void;", "public static function initParam($paramName, $type, $isRequired = false, $regexp = '', $default = null, $isPost = false) { // ak je regexp posielany sem v dvojitych uvodzovkach, musia sa escape znaky este raz escapovat !\n\n global $_PARAMS;\n\n $tmp = self::getParamByName($paramName, $type, $isRequired, $regexp, $default, $isPost);\n\n $_PARAMS[$paramName] = $tmp;\n }", "public function init($params)\n {\n }", "public function SetSort()\n\t\t{\n\t\t\tif (!isset($_GET['sort']) || empty($_GET['sort'])) {\n\t\t\t\t$_GET['sort'] = \"priceasc\";\n\t\t\t}\n\n\t\t\tswitch ($_GET['sort']) {\n\t\t\t\tcase \"featured\": {\n\t\t\t\t\t$GLOBALS['SortFeaturedSelected'] = 'selected=\"selected\"';\n\t\t\t\t\t$this->SetSortField(\"p.prodsortorder desc\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcase \"newest\": {\n\t\t\t\t\t$GLOBALS['SortNewestSelected'] = 'selected=\"selected\"';\n\t\t\t\t\t$this->SetSortField(\"p.productid desc\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcase \"bestselling\": {\n\t\t\t\t\t$GLOBALS['SortBestSellingSelected'] = 'selected=\"selected\"';\n\t\t\t\t\t$this->SetSortField(\"p.prodnumsold desc\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcase \"alphaasc\": {\n\t\t\t\t\t$GLOBALS['SortAlphaAsc'] = 'selected=\"selected\"';\n\t\t\t\t\t$this->SetSortField(\"p.prodname asc\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcase \"alphadesc\": {\n\t\t\t\t\t$GLOBALS['SortAlphaDesc'] = 'selected=\"selected\"';\n\t\t\t\t\t$this->SetSortField(\"p.prodname desc\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcase \"avgcustomerreview\": {\n\t\t\t\t\t$GLOBALS['SortAvgReview'] = 'selected=\"selected\"';\n\t\t\t\t\t$this->SetSortField(\"prodavgrating desc\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcase \"pricedesc\": {\n\t\t\t\t\t$GLOBALS['SortPriceDesc'] = 'selected=\"selected\"';\n\t\t\t\t\t$this->SetSortField(\"p.prodcalculatedprice desc\");\n\t\t\t\t\tbreak;\n\n\t\t\t\t}\n\t\t\t\tcase \"priceasc\":\n\t\t\t\tdefault:\n\t\t\t\t{\n\t\t\t\t\t$GLOBALS['SortPriceAsc'] = 'selected=\"selected\"';\n\t\t\t\t\t$this->SetSortField(\"p.prodcalculatedprice asc\");\n\t\t\t\t\t$_GET['sort'] = \"priceasc\";\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$this->_pricesort = $_GET['sort'];\n\t\t}", "public function setControllerParams(&$params) {\n $this->params = $params;\n // Make a reference to the form data so we can get to it easier.\n if (isset($this->params['post']['data'])) {\n $this->postData = & $this->params['post']['data'];\n }\n if (isset($this->params['post'])) {\n $this->post = & $this->params['post'];\n }\n if (isset($this->params['get'])) {\n $this->get = & $this->params['get'];\n }\n }", "protected function setParamConfig()\n {\n $this->paramConfig = ArrayManipulation::deepMerge($this->paramConfig, array(\n 'compact' => array(\n 'name' => 'Kompakte Anordnung der Auswahlfelder',\n 'type' => 'radio',\n 'values' => array(\n 'ja' => 'Ja',\n 'nein' => 'Nein'\n )\n ),\n 'multicolumn' => array(\n 'name' => 'Datenspeicher: Trennung in Spalten',\n 'type' => 'radio',\n 'help' => '\n Normalerweise wird für dieses Feld im Datenspeicher eine Spalte erstellt, in welchem die getroffene Auswahl mit Komma separiert wird.\n Sofern diese Einstellung aktiviert wird, erscheint im Datenspeicher und Export eine Spalte pro getroffener Auswahl.\n ',\n 'values' => array(\n 'ja' => 'Ja',\n 'nein' => 'Nein'\n )\n ),\n 'multicolumn_label_prefix' => array(\n 'name' => 'Feld-Beschriftung pro Spalte voranstellen',\n 'type' => 'radio',\n 'help' => 'Damit die Spalten eindeutiger sind, kann der Feldname als Prefix vor jede generierte Spalte im Datenspeicher vorangestellt werden.',\n 'values' => array(\n 'ja' => 'Ja',\n 'nein' => 'Nein'\n )\n ),\n 'content' => array(\n 'name' => 'Auswahlmöglichkeiten',\n 'type' => 'textfieldArray',\n 'help' => 'Bitte geben Sie eine oder mehrere Möglichkeiten an.',\n 'separator' => Base::MULTI_ITEM_VALUES_SEPARATOR\n )\n ));\n\n // Set defaults for new fields\n $this->params['compact'] = 'nein';\n $this->params['multicolumn'] = 'nein';\n }", "public function __construct($params) {\n foreach($params as $key => $value) {\n $this->$key = $value;\n }\n }", "public function setParams()\n {\n $argc = func_num_args();\n $argv = func_get_args();\n if (0 == $argc) {\n return;\n }\n\n if ((1 == $argc) && is_array($argv[0])) {\n $params = [];\n $types = [];\n $wellFormed = true;\n foreach ($argv[0] as $arg) {\n if (!is_array($arg) || !isset($arg['value'])) {\n $wellFormed = false;\n break;\n }\n $params[] = $arg['value'];\n\n if (!isset($arg['type'])) {\n $xmlRpcValue = Zend_XmlRpc_Value::getXmlRpcValue($arg['value']);\n $arg['type'] = $xmlRpcValue->getType();\n }\n $types[] = $arg['type'];\n }\n if ($wellFormed) {\n $this->_xmlRpcParams = $argv[0];\n $this->_params = $params;\n $this->_types = $types;\n } else {\n $this->_params = $argv[0];\n $this->_types = [];\n $xmlRpcParams = [];\n foreach ($argv[0] as $arg) {\n if ($arg instanceof Zend_XmlRpc_Value) {\n $type = $arg->getType();\n } else {\n $xmlRpcValue = Zend_XmlRpc_Value::getXmlRpcValue($arg);\n $type = $xmlRpcValue->getType();\n }\n $xmlRpcParams[] = ['value' => $arg, 'type' => $type];\n $this->_types[] = $type;\n }\n $this->_xmlRpcParams = $xmlRpcParams;\n }\n return;\n }\n\n $this->_params = $argv;\n $this->_types = [];\n $xmlRpcParams = [];\n foreach ($argv as $arg) {\n if ($arg instanceof Zend_XmlRpc_Value) {\n $type = $arg->getType();\n } else {\n $xmlRpcValue = Zend_XmlRpc_Value::getXmlRpcValue($arg);\n $type = $xmlRpcValue->getType();\n }\n $xmlRpcParams[] = ['value' => $arg, 'type' => $type];\n $this->_types[] = $type;\n }\n $this->_xmlRpcParams = $xmlRpcParams;\n }", "protected function populateParams() {\r\n $this->pageNum = isset($_GET['p']) ? (int)$_GET['p'] : 0;\r\n $this->status = isset($_GET['status']) ? (int)$_GET['status'] : 0;\r\n if ($this->pageNum < 1) {\r\n $this->pageNum = 1;\r\n }\r\n }", "public function setParams(array $params)\n {\n $this->_params = $params;\n }", "public function testSetParams(): void\n {\n $set = $this->class->setParams([$this->value]);\n\n self::assertTrue($set instanceof Command);\n }", "public function setParams(array $params)\n\t{\n foreach ($params as $param => $value) {\n\t\t\t$this->_setSmartyParams($param, $value);\n }\n\t}", "private function parseParams($params)\n {\n if (is_array($params)) {\n foreach ($params as $key => $param) {\n if (array_key_exists($key, $this->map)) {\n $setter = 'set'.ucfirst(($this->map[$key]));\n $this->$setter($param);\n }\n }\n }\n return $this;\n }", "public function SetMatchedParams ($matchedParams = []);", "protected function initCommonListParamOptions()\n {\n \n $this->restRequest = $this->getController()->restRequest;\n $this->restRequest->setParam($this->limit, $this->restRequest->getParam($this->limit, 30));\n $this->restRequest->setParam($this->offset, $this->restRequest->getParam($this->offset, 0));\n $this->restRequest->setParam($this->order, $this->restRequest->getParam($this->order, null));\n \n \n\n }", "public static function setParams(propertysInterface $params)\n {\n if(isset($params) && !empty($params)){\n if(!isset(self::$params)){\n self::$params = $params;\n return;\n }\n self::getParams()->add((array) $params);\n }\n }", "public function _clean_by_params($params = [])\n {\n }", "public function init($params)\n {\n \t$this->_config_mapper($params);\n }", "public function __construct($params = null) {\n\n if ($params == null) {\n return;\n }\n\n // Loop thought all values and create the values\n foreach ($params as $key => $value) {\n $this->$key = $value;\n\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 setParams($params, $sanitize = false)\n {\n if ($sanitize) {\n $params = PMA_Message::sanitize($params);\n }\n $this->_params = $params;\n }", "public function setParameters(array $params)\n {\n $this->params = $params;\n }" ]
[ "0.63245267", "0.6157621", "0.6067499", "0.6067499", "0.60157293", "0.60058564", "0.5985326", "0.59285665", "0.5864336", "0.5814907", "0.5812187", "0.57998013", "0.5786863", "0.57852936", "0.57526404", "0.57471603", "0.57199144", "0.570435", "0.570435", "0.56859183", "0.56854945", "0.5682305", "0.56687444", "0.5655582", "0.5654218", "0.5654218", "0.5654218", "0.5652446", "0.56454015", "0.56348974", "0.5629203", "0.56278753", "0.56208867", "0.56157166", "0.5614065", "0.5611468", "0.56097126", "0.5596148", "0.5595938", "0.5590787", "0.55818236", "0.5572707", "0.5565807", "0.5565001", "0.5554794", "0.55387354", "0.5538265", "0.5524382", "0.5517371", "0.550496", "0.54975736", "0.546931", "0.54642785", "0.54471916", "0.54467607", "0.5435026", "0.53800356", "0.5359697", "0.5353232", "0.53528774", "0.53521216", "0.5348118", "0.53444535", "0.534313", "0.53424793", "0.53407115", "0.5323586", "0.52950925", "0.5290749", "0.52907205", "0.52763844", "0.5271007", "0.52702093", "0.5254384", "0.5245705", "0.5244798", "0.5241906", "0.52402586", "0.5239965", "0.5217698", "0.52094096", "0.5208809", "0.5205885", "0.52037376", "0.5196905", "0.5193208", "0.51890576", "0.5187433", "0.5183018", "0.5161677", "0.51590824", "0.5158628", "0.51527905", "0.51498395", "0.51466817", "0.51455706", "0.5142102", "0.51344347", "0.5129838", "0.51274467" ]
0.53632015
57
Check if an objects property matches supplied values
private function hasMatchingProperty($data, string $key, string $comparator, $values) : bool { if (! property_exists($data, $key) || is_object($data->{$key}) || is_array($data->{$key})) { return false; } if ($comparator === 'is' || $comparator === 'not') { $intersection = (bool) count(array_intersect((array) $data->{$key}, (array) $values)); return $comparator === 'is' ? $intersection : ! $intersection; } return $this->numericComparator($comparator, $data->{$key}, $values); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function checkProperties($conditions);", "function isPropertyInArray($id, $name, $array)\n{\n // The array is going to be an array of objects, so let's go through\n // each element object and see if it has a $name property with an $id attribute\n $rValue = false;\n foreach ($array as $object) {\n if ($object[$name] == $id)\n $rValue = true;\n }\n return $rValue;\n}", "private function has_that_properties($bookProperties){\n\t\t$bookClassProperty = get_object_vars($this);\n\t\t// to get value as a boolean true:false value use \n\t\treturn array_key_exists($bookProperties, $bookClassProperty); // check is there any property ($bookProperties) are available inside $bookClassProperty or not\n\t\t\n\t}", "function _valid_match($field, $param = array())\r\n\t{\r\n\t\treturn in_array($this->{$field}, $param);\r\n\t}", "abstract protected function propertyExists($name);", "protected function matches($other): bool\n {\n if ($this->value === null) {\n return isset($other[$this->name]);\n } else {\n return isset($other[$this->name]) && in_array($this->value, $other[$this->name], true);\n }\n }", "public function matches(array $objectAndAttr): bool {\n\t\t[$object, $attr] = $objectAndAttr;\n\n\t\tif(!is_object($object)) {\n\t\t\tthrow new InvalidArgumentException(\"the 'object' to match was not an object type\");\n\t\t}\n\n\t\tif(!is_string($attr)) {\n\t\t\tthrow new InvalidArgumentException(\"the name of the attribute to match was not a string\");\n\t\t}\n\n\t\tif(empty($attr)) {\n\t\t\tthrow new InvalidArgumentException(\"cannot test for an empty attribute name\");\n\t\t}\n\n\t\ttry {\n\t\t\t$refAttr = new ReflectionProperty(get_class($object), $attr);\n\t\t}\n\t\tcatch(ReflectionException $err) {\n\t\t\tthrow new InvalidArgumentException(\"the property {$attr} does not exist in class \" . get_class($object));\n\t\t}\n\n\t\tif(!$refAttr->isPublic()) {\n\t\t\t$refAttr->setAccessible(true);\n\t\t}\n\n\t\treturn is_int($refAttr->getValue($object));\n\t}", "abstract public function matches($object) : bool;", "public function testHas() {\n\t\t$array = array('one' => 1, 'two' => 2, 'three' => 3);\n\t\t$result = _::has($array, 'two');\n\t\t$this->assertTrue($result);\n\n\t\t// test that an object has a property\n\t\t$object = (object)$array;\n\t\t$result = _::has($object, 'two');\n\t\t$this->assertTrue($result);\n\n\t\t// test that an object does not have a property\n\t\t$result = _::has($object, 'four');\n\t\t$this->assertFalse($result);\n\t}", "private function has_the_attribute($the_attribute){\n \n $object_properties = get_object_vars($this); //Function get_object_vars\n \n return array_key_exists($the_attribute, $object_properties);\n }", "function objinarray($obj, $array, $field = \"id\", $objcompare = true) {\r\n foreach ($array as $o) {\r\n if ($objcompare) {\r\n if ($o->get_prop($field) === $obj->get_prop($field) && get_class($o) === get_class($obj)) {\r\n return true;\r\n }\r\n } else {\r\n if ($o != null) {\r\n if ($o->get_prop($field) === $obj) {\r\n return true;\r\n }\r\n }\r\n }\r\n }\r\n return false;\r\n}", "public function is(...$values): bool;", "public function hasProperty($field);", "static private function assertRequirementsObject($object, $requirements) {\n if (empty($requirements)) {\n // No requirements, everybody wins!\n return TRUE;\n }\n // Innocent until proven guilty\n $match = TRUE;\n foreach ($requirements as $key => $value) {\n if (isset($object->$key) && $object->$key === $value) {\n $match = TRUE;\n }\n else {\n $match = FALSE;\n }\n }\n return $match;\n }", "function is_equal_of(mixed $value, mixed ...$values): bool\n{\n $search_value = $value;\n foreach ($values as $value) {\n if ($search_value === $value) {\n return true;\n }\n }\n return false;\n}", "abstract protected function isValid(\\stdClass $data): bool;", "public function contains(...$values): bool;", "public function has($property);", "function fiftyone_degrees_is_needed_property($property) {\n global $_fiftyone_degrees_needed_properties;\n $is_set = isset($_fiftyone_degrees_needed_properties);\n return $is_set === FALSE || ($is_set === TRUE\n && in_array($property['name'], $_fiftyone_degrees_needed_properties));\n}", "protected function hasProperty($name)\n {\n return in_array($name, $this->getProperties());\n }", "function valExistence_check($postedID, $watuObj) {\r\n\r\n $errorVal = true;\r\n $valDoesExist = true;\r\n\r\n $valExistence = ['', '', '']; //might not work\r\n $valExistence[0] = get_post_meta($postedID, 'wpsl_certification_url1', true);\r\n $valExistence[1] = get_post_meta($postedID, 'wpsl_certification_url2', true);\r\n $valExistence[2] = get_post_meta($postedID, 'wpsl_certification_url3', true);\r\n\r\n if (!empty($valExistence[0]) || !empty($valExistence[1]) || !empty($valExistence[2])) {\r\n $valDoesExist = true;\r\n foreach ($watuObj as $val) {\r\n if (!in_array($val, $valExistence)) {\r\n if (empty($valExistence[0])) {\r\n if (($valExistence[1] != $val) && ($valExistence[2] != $val)) {\r\n $errorVal = update_post_meta($postedID, 'wpsl_certification_url1', $val);\r\n }\r\n } elseif (empty($valExistence[1])) {\r\n if (($valExistence[0] != $val) && ($valExistence[2] != $val)) {\r\n $errorVal = update_post_meta($postedID, 'wpsl_certification_url2', $val);\r\n }\r\n } elseif (empty($valExistence[2])) {\r\n if (($valExistence[0] != $val) && ($valExistence[1] != $val)) {\r\n $errorVal = update_post_meta($postedID, 'wpsl_certification_url3', $val);\r\n }\r\n }\r\n }\r\n }\r\n } else {\r\n $valDoesExist = false;\r\n }\r\n\r\n return $valDoesExist;\r\n}", "private function has_the_key($key){\n $object_properties = get_object_vars($this);\n\n // if the key exist in the array, its going to return true \n return array_key_exists($key,$object_properties);\n\n }", "public function hasProperty($name)\n\t{\n\t\treturn array_key_exists($name, $this->_properties);\t\t\n\t}", "public function canIterateOverProperties()\n {\n $object0 = $this->getMock('ATM_Config_Abstract', array('getName'));\n $object1 = $this->getMock('ATM_Config_Comment', array(), array('comment'));\n $this->object->append($object0);\n $this->object->append($object1);\n $this->object->append($object0);\n $this->object->iterateOn('objIds');\n $expect = $this->object->getArrayCopy();\n foreach ($this->object as $position=>$objectId) {\n $this->assertInternalType('string', $objectId);\n $this->assertEquals($expect[$position], $objectId);\n }\n $this->assertEquals(2, $position);\n }", "public function attribute($name, $object)\n {\n return \\property_exists($object, $name);\n }", "public function propertyCheck($object, $propertyName){\r\n return $this->propertyExists($object, $propertyName);\r\n }", "function matchField($value, $params = array()) {\n\t\tif ($this->data[$this->name][$params['field1']] != $this->data[$this->name][$params['field2']]) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "public function canHaveACopyOfProperties()\n {\n $object0 = $this->getMock('ATM_Config_Abstract', array('getName'));\n $object1 = $this->getMock('ATM_Config_Comment', array(), array('comment'));\n $this->object->append($object0);\n $this->object->append($object1);\n $this->object->append($object0);\n $properties = array('content', 'objIds', 'names', 'classes');\n foreach ($properties as $property) {\n $this->object->iterateOn($property);\n $expect = $this->object->getArrayCopy();\n $this->assertAttributeEquals($expect, $property, $this->object);\n }\n }", "public function validate(){\n\t\t$valid = true;\n\t\t$ref = new ReflectionObject($this);\n\t\tforeach($ref->getProperties() as $prop){\n\t\t\tif(isset($this->_atributosMetadata[$prop->getName()])){\n\t\t\t\t$propMetadata = $this->_atributosMetadata[$prop->getName()];\n\t\t\t\tif($propMetadata->needValidate){\n\t\t\t\t\t$propMetadata->Validate($prop->getValue($this));\n\t\t\t\t\tif($propMetadata->isValid){\n\t\t\t\t\t\t$valid = $valid && $propMetadata->isValid; \n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn $valid;\t\t\n\t}", "protected function checkProperty(/**\n * File upload validation.\n *\n * If a $_FILES array is found in the request data,\n * iterate over all requested files and validate each\n * single file.\n */\n$value, /**\n * File upload validation.\n *\n * If a $_FILES array is found in the request data,\n * iterate over all requested files and validate each\n * single file.\n */\n$validators, /**\n * File upload validation.\n *\n * If a $_FILES array is found in the request data,\n * iterate over all requested files and validate each\n * single file.\n */\n$propertyName) {}", "private function customPropertyExists($object,$propertyName){\r\n $exists = property_exists($object, $propertyName);\r\n if (!$exists) {\r\n $objectInstance = new ReflectionClass($object);\r\n $exists = $objectInstance->hasProperty($propertyName);\r\n }\r\n return $exists;\r\n }", "public function equals()\n {\n $this->assertTrue($this->stubRefProperty->equals($this->stubRefProperty));\n $stubRefProperty1 = new stubReflectionProperty('stubTestProperty1', 'property');\n $stubRefProperty2 = new stubReflectionProperty('stubTestProperty1', 'anotherProperty');\n $this->assertTrue($this->stubRefProperty->equals($stubRefProperty1));\n $this->assertTrue($stubRefProperty1->equals($this->stubRefProperty));\n $this->assertFalse($this->stubRefProperty->equals($stubRefProperty2));\n $this->assertFalse($this->stubRefProperty->equals('foo'));\n $this->assertFalse($stubRefProperty2->equals($this->stubRefProperty));\n }", "function validateAllowed($fields, $allowed_prop, $objectsArray_prop=array()){\n \n $valid_fields=array();\n foreach($fields as $field){\n if(strpos($field,'.')!==false){ //por ej: provider.name.@value\n $sub_fields=explode('.',$field); \n $is_valid=1;\n $cant = count($sub_fields);\n $i=0;\n foreach($sub_fields as $sub_field){\n if(!in_array($sub_field,$allowed_prop)){\n $is_valid=0;\n break;\n }\n $i +=1;\n //si la prop es array de obj y tiene subprop se agrega [*], ej: label.@language => label[*].@language \n if($i<$cant AND in_array($sub_field, $objectsArray_prop)){\n $sub_fields[$i-1] .= '[*]'; \n $field = implode('.', $sub_fields);\n }\n }\n if($is_valid AND !in_array($field,$valid_fields)){\n $valid_fields[] = $field; \n }\n } \n else{\n if(in_array($field,$allowed_prop) AND !in_array($field,$valid_fields)){\n $valid_fields[] = $field; \n }\n \n }\n }\n return $valid_fields;\n}", "public function assertQueryTrue($prop, ...$props)\n {\n global $wp_query;\n $all = array(\n 'is_404',\n 'is_admin',\n 'is_archive',\n 'is_attachment',\n 'is_author',\n 'is_category',\n 'is_comment_feed',\n 'is_date',\n 'is_day',\n 'is_embed',\n 'is_feed',\n 'is_front_page',\n 'is_home',\n 'is_month',\n 'is_page',\n 'is_paged',\n 'is_post_type_archive',\n 'is_posts_page',\n 'is_preview',\n 'is_robots',\n 'is_search',\n 'is_single',\n 'is_singular',\n 'is_tag',\n 'is_tax',\n 'is_time',\n 'is_trackback',\n 'is_year',\n );\n\n $props = array_merge((array)$prop, ...$props);\n\n foreach ($props as $true_thing) {\n $this->assertContains($true_thing, $all, \"{$true_thing}() is not handled by assertQueryTrue().\");\n }\n\n $passed = true;\n $not_false = $not_true = array(); // properties that were not set to expected values\n\n foreach ($all as $query_thing) {\n $result = is_callable($query_thing) ? $query_thing() : $wp_query->$query_thing;\n\n if (in_array($query_thing, $props, true)) {\n if (!$result) {\n $not_true[] = $query_thing;\n $passed = false;\n }\n } elseif ($result) {\n $not_false[] = $query_thing;\n $passed = false;\n }\n }\n\n $message = '';\n if (count($not_true)) {\n $message .= implode(', ', $not_true) . ' is expected to be true. ';\n }\n if (count($not_false)) {\n $message .= implode(', ', $not_false) . ' is expected to be false.';\n }\n $this->assertTrue($passed, $message);\n }", "public function named(string $name){\n return $this->porperty == $name ;\n }", "private function has_attribute($attribute){\n // (including private ones) as the keys and their current values as the value\n $object_vars = get_object_vars($this);\n\n // We don't care about the value, we just want to know if the key exists\n // does $attribute(key) exist in $object_vars\n // Will return true or false\n return array_key_exists($attribute, $object_vars);\n }", "public function _hasProperty($name) {\n if (isset($this->translation[$name])) {\n $name = $this->translation[$name];\n }\n return array_key_exists($name, $this->_magicProperties);\n }", "public function hasProperty($propertyName): bool;", "protected function verifyProperty($obj, $name, $value)\n {\n $propName = $name;\n $propGetter = \"get\" . ucfirst($name);\n\n $this->assertEquals($obj->$propGetter(), $obj->$propName);\n $this->assertEquals($obj->$propGetter(), $value);\n }", "public function equals($obj): bool;", "public function validate($value, array $args): bool\r\n {\r\n $field = $args[0];\r\n $necessaryValue = $args[1];\r\n\r\n foreach ($value as $item) {\r\n if ($item[$field] == $necessaryValue) {\r\n return true;\r\n }\r\n }\r\n\r\n return false;\r\n }", "private function changelog_validate_object () {\n\t\t# set valid objects\n\t\t$objects = array(\n\t\t\t\t\t\t\"ip_addr\",\n\t\t\t\t\t\t\"subnet\",\n\t\t\t\t\t\t\"section\"\n\t\t\t\t\t\t);\n\t\t# check\n\t\treturn in_array($this->object_type, $objects) ? true : false;\n\t}", "public function isValidProperty(string $property) : bool;", "static function checkExistingPropertyMembership(){\n\t global $mainframe,$configClass;\n $available_plans = self::getAllPlans();\n if(count($available_plans) > 0){\n foreach ($available_plans as $plan){\n $params = new JRegistry() ;\n $params->loadString($plan->params);\n $isOsproperty = $params->get('isospplugin',0);\n if($isOsproperty == 1){\n return true;\n }\n }\n }\n return false;\n }", "public abstract function matches($value);", "public function isValid($value, $context = null)\n {\n if (!$this->useContext) {\n $context = (array) $value;\n } else {\n $value = (array) $context;\n }\n\n $value = $this->cleanSearchValue($value);\n $match = $this->objectRepository->findOneBy($value);\n\n if (!is_object($match)) {\n return true;\n }\n\n $expectedIdentifiers = $this->getExpectedIdentifiers($context);\n $foundIdentifiers = $this->getFoundIdentifiers($match);\n\n foreach ($foundIdentifiers as $key => $idField) {\n if (is_object($idField)) {\n try {\n $classMeta = $this->objectManager->getClassMetadata(get_class($idField));\n $idValue = $classMeta->getIdentifierValues($idField);\n $idValue = array_pop($idValue);\n $foundIdentifiers[$key] = $idValue;\n } catch (MappingException $e) {\n //not an object managed by doctrine\n continue;\n }\n }\n }\n\n if (count(array_diff_assoc($expectedIdentifiers, $foundIdentifiers)) == 0) {\n return true;\n }\n\n $this->error(self::ERROR_OBJECT_NOT_UNIQUE, $value);\n return false;\n }", "public function testMatchAttributeValues()\n {\n $config = array(\n\t\t'eduPersonAffiliation' => array('member')\n );\n\n $result = self::processFilter($config, self::$request);\n $attributes = $result['Attributes'];\n $this->assertCount(1, $attributes);\n $this->assertArrayHasKey('eduPersonAffiliation', $attributes);\n $this->assertEquals($attributes['eduPersonAffiliation'], array('member'));\n\n $config = array(\n\t\t'eduPersonAffiliation' => array('member','staff')\n );\n\n $result = self::processFilter($config, self::$request);\n $attributes = $result['Attributes'];\n $this->assertCount(1, $attributes);\n $this->assertArrayHasKey('eduPersonAffiliation', $attributes);\n $this->assertEquals($attributes['eduPersonAffiliation'], array('member'));\n\n $config = array(\n\t\t'eduPersonAffiliation' => array('student')\n );\n $result = self::processFilter($config, self::$request);\n $attributes = $result['Attributes'];\n $this->assertCount(0, $attributes);\n\n $config = array(\n\t\t'eduPersonAffiliation' => array('student','staff')\n );\n $result = self::processFilter($config, self::$request);\n $attributes = $result['Attributes'];\n $this->assertCount(0, $attributes);\n }", "public function testIsValidSuccessWithInvokedSetter()\n {\n $this->_object->expects($this->once())->method('hasDataChanges')->will($this->returnValue(true));\n $this->_object->expects($this->once())->method('getData')->with('attr1')->will($this->returnValue(1));\n $this->_object->expects($this->once())->method('getOrigData')->with('attr1')->will($this->returnValue(1));\n\n $validator = new \\Magento\\Framework\\Validator\\Entity\\Properties();\n $validator->setReadOnlyProperties(['attr1']);\n $this->assertTrue($validator->isValid($this->_object));\n }", "public function has_the_attribute($the_attribute){\n\t\t$object_properties = get_object_vars($this); \n\t\treturn array_key_exists($the_attribute,$object_properties);\n\t }", "private function has_attribute($attribute){\r\n //(incl.private ones!) as the keys and their current values as the value\r\n $object_vars = $this->attributes();\r\n //we dont care about the value, we just want to know if the key exists\r\n //will return true or false\r\n return array_key_exists($attribute, $object_vars);\r\n }", "public function hasValue($name);", "public function checkValues(array $compareValues): bool\n {\n foreach ($compareValues as $key => $value) {\n if ($this->keyExists($key) && $this->$key !== $value) {\n return false;\n }\n }\n\n return true;\n }", "private function propertyExists($object, $propertyName){\r\n if($this->customPropertyExists($object, $this->propertyFormat($propertyName)) &&\r\n $this->existsGetterAndSetter($object, $this->propertyFormat($propertyName))){\r\n return true;\r\n }\r\n new CradleCoreException( $this->propertyFormat($propertyName) . ' is not a valid property name or does not has getter/setter functions');\r\n Logger::debug(' .... [ERROR] ' . $this->propertyFormat($propertyName) . ' is not a valid property name or does not has getter/setter functions');\r\n return false;\r\n }", "function is($prop){\n \treturn $this->get_property($prop)==1?true:false;\n }", "private function has_attribute($attribute){\n\t\t//(inlcuding private ones) as keys and current values as value.\n\t\t\n\t\t$object_vars = $this->attributes();\n\t\t//want to check key exists, dont care about value here\n\t\t//returns true or false\t\n\t\t\n\t\treturn array_key_exists($attribute, $object_vars);\n\t}", "public function has_prop($key)\n {\n }", "public function testAssertObjectPropertiesEqual()\n {\n $object = new stdClass;\n $object->first = 'first value';\n $object->second = 'second value';\n $this->assertObjectPropertiesEqual(['first', 'second'], $object);\n $this->assertObjectPropertiesEqual(['second', 'first'], $object);\n\n $this->expectException(AssertionFailedError::class);\n $this->assertObjectPropertiesEqual(['first'], $object);\n }", "protected function _match()\n {\n // SMART/TNT\n $smart = $this->_smart();\n if( $this->name == 'smart' ) return in_array($this->args, $smart) ? true : false;\n // GLOBE/TM\n $globe = $this->_globe();\n if( $this->name == 'globe' ) return in_array($this->args, $globe) ? true : false;\n // SUN\n $sun = $this->_sun();\n if( $this->name == 'sun' ) return in_array($this->args, $sun) ? true : false;\n }", "function rest_are_values_equal($value1, $value2)\n {\n }", "public function equals($arg);", "private function has_attribute($attribute){\r\n\t // (incl. private ones!) as the keys and their current values as the value\r\n\t $object_vars = get_object_vars($this);\r\n\t // We don't care about the value, we just want to know if the key exists\r\n\t // Will return true or false\r\n\t return array_key_exists($attribute, $object_vars);\r\n }", "protected function assertObjectHasAttributes()\n {\n $args = func_get_args();\n $object = array_shift($args);\n\n foreach ($args as $attribute) {\n\n $this ->assertObjectHasAttribute($attribute, $object);\n\n }\n }", "public function testValid(): void\n {\n $validator = new PropertyValidator('foo');\n $result = $validator->validate((object)[\n 'foo' => 'bar',\n ]);\n\n $this->assertTrue($result->isValid());\n }", "protected function doesMatch( $dataSet ) {\n\t\tif ( !is_array( $this->getValue() ) ) {\n\t\t\t// TODO: Warning\n\t\t\treturn true;\n\t\t}\n\t\t$fieldValues = $dataSet->get( $this->getField() );\n\t\tif ( empty( $fieldValues ) ) {\n\t\t\treturn false;\n\t\t}\n\t\tif ( is_string( $fieldValues ) ) {\n\t\t\t$fieldValues = [ $fieldValues ];\n\t\t}\n\n\t\t$intersection = array_intersect( $fieldValues, $this->getValue() );\n\n\t\tif ( $this->getComparison() === static::COMPARISON_CONTAINS\n\t\t\t|| $this->getComparison() === static::COMPARISON_IN ) {\n\t\t\tif ( empty( $intersection ) ) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\tif ( $this->getComparison() === static::COMPARISON_NOT_CONTAINS && !empty( $intersection ) ) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "public function getList(){\n foreach ($this as $property => $value) {\n if(is_object($this->{$property})){\n return true;\n }\n }\n }", "function rest_find_matching_pattern_property_schema($property, $args)\n {\n }", "public function testGet(array $values) {\n $permission = new GroupPermission($values);\n foreach ($values as $property => $value) {\n $this->assertEquals($value, $permission->get($property));\n }\n }", "function isValid($dtoInfo)\n{\n return property_exists($dtoInfo, 'name')\n && property_exists($dtoInfo, 'namespace')\n && property_exists($dtoInfo, 'vars')\n && count($dtoInfo->vars) > 0;\n}", "public function matchAttrs($attrs) {\r\n\t\tforeach($attrs as $key => $attr) {\r\n\t\t\tif(!isset($attr['comparator'])) continue;\r\n\t\t\tswitch($attr['comparator']) {\r\n\t\t\t\tcase '=':\r\n\t\t\t\t\tif (@$this->$key != $attr['value']) {\r\n\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase '!=':\r\n\t\t\t\tcase '<>':\r\n\t\t\t\t\tif (@$this->$key == $attr['value']) {\r\n\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase '^=':\r\n\t\t\t\t\tif (strpos(@$this->$key, $attr['value']) !== 0) {\r\n\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase '*=':\r\n\t\t\t\t\tif (strpos(@$this->$key, $attr['value']) === FALSE) {\r\n\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "private function filterAndValidate(array $property, $propertyName, &$value)\n {\n // assume empty string is a null value for properties\n // that are marked as optionally-null\n if ($property['null'] && empty($value)) {\n $value = null;\n\n return true;\n }\n\n // validate\n list($valid, $value) = $this->validate($property, $propertyName, $value);\n\n // unique?\n if ($valid && $property['unique'] && ($this->_id === false || $value != $this->ignoreUnsaved()->$propertyName)) {\n $valid = $this->checkUniqueness($property, $propertyName, $value);\n }\n\n return $valid;\n }", "public function check(object $subject): bool;", "public function has_changes() {\n\t\t\t$properties = array_keys(get_object_vars($this));\n\t\t\t$order = SalesOrderEdit::load($this->sessionid, $this->orderno);\n\n\t\t\tforeach ($properties as $property) {\n\t\t\t\tif ($this->$property != $order->$property) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn false;\n\t\t}", "public function has ($value);", "public function GCheck (\\stdClass $param);", "public function hasProperty($resource, $property, $value = null)\n {\n $this->checkResourceParam($resource);\n $this->checkSinglePropertyParam($property, $inverse);\n $this->checkValueParam($value);\n\n // Use the reverse index if it is an inverse property\n if ($inverse) {\n $index = &$this->revIndex;\n } else {\n $index = &$this->index;\n }\n\n if (isset($index[$resource][$property])) {\n if (is_null($value)) {\n return true;\n } else {\n foreach ($index[$resource][$property] as $v) {\n if ($v == $value) {\n return true;\n }\n }\n }\n }\n\n return false;\n }", "public function containsValue($value);", "public function isValid(array $arrPropertiesToIgnore)\n {\n foreach ($this->arrFieldsMapping as $strFieldInputName => $arrProperties){\n\n // Checks if the required flag is set to true and if the value is provided.\n if (isset($arrProperties['required']) && $arrProperties['required'] === true && $this->$arrProperties['property_name'] === \"\"\n || $this->$arrProperties['property_name'] === null){\n $this->_arrValidationErrors[$strFieldInputName] = \"No value provided for {$strFieldInputName}\";\n\n continue;\n }\n\n // Checks if the property value is set, if it not , it require no validation\n if (!isset($this->$arrProperties['property_name']) || is_null($this->$arrProperties['property_name'])\n || in_array($arrProperties['property_name'], $arrPropertiesToIgnore)){\n\n continue;\n }\n\n switch ($arrProperties['type']) {\n\n case 'integer' :\n\n if (!$this->isInteger($this->$arrProperties['property_name'])){\n $this->_arrValidationErrors[$strFieldInputName] = \"Invalid numeric value provided for {$strFieldInputName}\";\n }\n break;\n\n case 'string' :\n\n if (!$this->isString($this->$arrProperties['property_name'])){\n $this->_arrValidationErrors[$strFieldInputName] = \"Invalid string value provided for {$strFieldInputName}\";\n }\n break;\n default :\n $this->_arrValidationErrors[] = 'An unknown property type was received';\n continue;\n break;\n\n }\n\n // Validate minimum length\n if (isset($arrProperties['min_length'])){\n if (!$this->isMinLengthValid($this->$arrProperties['property_name'], $arrProperties['min_length'])){\n $this->_arrValidationErrors[$strFieldInputName] = \"{$strFieldInputName} must be at least {$arrProperties['min_length']} character long\";\n }\n\n }\n\n // Validate maximum length\n if (isset($arrProperties['max_length'])){\n if (!$this->isMaxLengthValid($this->$arrProperties['property_name'], $arrProperties['min_length'])){\n $this->_arrValidationErrors[$strFieldInputName] = \"{$strFieldInputName} exceed maximum character length\";\n }\n }\n\n }\n\n if ($this->hasError()){\n return false;\n }\n\n return true;\n\n }", "public static function check($params, $names)\n\t\t{\n\t\t\t\tif( ! is_array($params) )\n\t\t\t\t{\n\t\t\t\t\t\t$param = array();\n\t\t\t\t\t\tif( isset($params) )\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$param[$names] = $params;\n\t\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t\t$total = count($names);\n\n\t\t\t\t\t\t$i = 0;\n\t\t\t\t\t\t$param = array();\n\t\t\t\t\t\tforeach($params as $param_value)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$param[$names[$i]] = $param_value;\n\t\t\t\t\t\t\t\tif($i+1 == $total)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t$i++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif(count($param) < $total)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t}\n\t\t\t\t}\n\n\n\t\t\t\t$object = new stdClass;\n\t\t\t\tforeach($param as $key => $value)\n\t\t\t\t{\n\t\t\t\t\t\t$object->{$key} = $value;\n\t\t\t\t}\n\n\t\t\t\treturn $object;\n\t\t}", "function isEqualTo ( &$anObject ) {\n \t\treturn ($this === $anObject);\n \t}", "public function hasProductsUsingPropValues(Property $property) {\r\n /* @var $propertyValue \\US\\CatalogBundle\\Entity\\PropertyValue */\r\n foreach ($property->getPropertyValues() as $propertyValue) {\r\n if ($propertyValue->getProducts()->count()) {\r\n return true;\r\n }\r\n }\r\n\r\n return false;\r\n }", "private function has_attribute($attribute)\n {\n //including priate ones as the keys and their current values are the value\n $object_vars = $this->attributes();\n\n //here i do not care what the specific values are but just interested if they exist\n return array_key_exists($attribute, $object_vars);\n }", "public function equals(EnumerableValueObjectInterface $valueObject): bool;", "protected function has_property( array $mf_array, $propname ) {\n\t\treturn ! empty( $mf_array['properties'][ $propname ] ) && is_array( $mf_array['properties'][ $propname ] );\n\t}", "private static function satisfies($item, $by, $value = null): bool\n {\n $callable = isCallable($by);\n\n Assert::true(\n $callable && is_null($value)\n || is_string($by),\n '$by must be a property/column with provided $value, or it must be a callable without $value.'\n );\n\n Assert::true(\n $callable || !isScalar($item),\n '$by can be only callable if the $item is scalar or null.'\n );\n\n if ($callable) {\n return ($by)($item);\n }\n\n $propValue = self::getProperty($item, $by);\n\n return (is_null($value) && is_null($propValue)) || $propValue == $value;\n }", "public function isValid(): bool\n {\n return count($this->filterProperties()) === 5;\n }", "public function equals($matches){\n return in_array($this->name, (array) $matches);\n }", "public static function has_prop( array $mf, $propname ) {\n\t\treturn ! empty( $mf['properties'][ $propname ] ) && is_array( $mf['properties'][ $propname ] );\n\t}", "public function hasValue(string $field): bool;", "public function containsProperty($propertyName): bool\n {\n return $this->list->contains('property', '=', $propertyName);\n }", "public function hasProperty($key)\n\t{\n\t\treturn array_key_exists($key, $this->properties);\n\t}", "public function valid()\n {\n return !!current($this->properties);\n }", "function isValid($value)\r\n\t{\r\n\t\tstatic $combined = null;\r\n\t\tif ($combined === null) {\r\n\t\t\t$combined = array_combine($this->members, $this->members);\r\n\t\t}\r\n\t\treturn isset($combined[$value]);\r\n\t}", "public function testMatchAttributeValuesNotArray()\n {\n $config = array(\n );\n\n $request = array(\n 'Attributes' => array(\n 'eduPersonTargetedID' => array('eptid@example.org'),\n 'eduPersonAffiliation' => array('member'),\n 'cn' => array('user name'),\n 'mail' => array('user@example.org'),\n 'discardme' => array('somethingiswrong'),\n ),\n 'Destination' => array(\n 'attributes' => array('eduPersonAffiliation' => 'student'),\n ),\n 'Source' => array(\n ),\n );\n\n\n $result = self::processFilter($config, $request);\n }", "public function matches(array $values, bool $strict = false): bool\n {\n if (empty($values)) {\n return false;\n }\n\n $claims = $this->getClaims();\n\n foreach ($values as $key => $value) {\n if (!$claims->has($key) || !$claims->get($key)->matches($value, $strict)) {\n return false;\n }\n }\n\n return true;\n }", "public function valid()\n {\n $map = $this->__getSerialisablePropertyMap();\n $mapKeys = array_keys($map);\n return isset($mapKeys[$this->iteratorPosition]);\n }", "public function containsOr()\n\t{\n\t\t$args = (new static(func_get_args()))->flattenIt();\n\n\t\t$found = $args->detect(function($value) {\n\t\t\treturn in_array($value, $this->attributes);\n\t\t});\n\n\t\treturn !is_null($found);\n\t}", "public function isValid(array $property)\n {\n if (( ! isset($property['property']))\n || ( ! isset($property['target']))\n ) {\n return false;\n }\n\n return !boolval(\n count(\n array_diff(\n array_keys($property),\n [\n 'target',\n 'property',\n 'transformer',\n 'group',\n ]\n )\n )\n );\n }", "public static function check_statvals_exist($args= array())\n {\n extract($args);\n if( isset($stats_id) && \n isset($users_id) && \n isset($teams_id) && \n isset($statval) &&\n isset($statdate) &&\n isset($games_id) &&\n isset($stat_contexts_id) )\n { \n $exists_obj = ORM::factory('Stats_Vals')\n ->where('stats_id', '=', $stats_id)\n ->and_where('users_id', '=', $users_id)\n ->and_where('teams_id', '=', $teams_id)\n ->and_where('statval', '=', $statval)\n ->and_where('statdate', '=', $statdate)\n ->and_where('games_id', '=', $games_id)\n ->and_where('stat_contexts_id', '=', $stat_contexts_id)\n ->find();\n \n if (!$exists_obj->loaded())\n return true;\n else\n return false; \n }else\n {\n return true;\n } \n }", "public function equals($value);", "function match($field, $value);" ]
[ "0.6258233", "0.61174375", "0.6044385", "0.6010923", "0.59383124", "0.5905783", "0.58944714", "0.5883278", "0.57693005", "0.5763717", "0.57231796", "0.5719994", "0.5714629", "0.5700511", "0.56948894", "0.56867725", "0.56334597", "0.5609593", "0.5606096", "0.55912507", "0.5571032", "0.55574185", "0.5552463", "0.55462205", "0.5531791", "0.5525601", "0.5499771", "0.5490903", "0.5482906", "0.5481132", "0.5480308", "0.54796016", "0.54722106", "0.54696876", "0.54625314", "0.54541755", "0.54464847", "0.5429543", "0.54066086", "0.540159", "0.53903496", "0.53863776", "0.5385947", "0.5374118", "0.5368506", "0.53611475", "0.53523284", "0.53522396", "0.5338062", "0.5325166", "0.5320133", "0.5316151", "0.5310365", "0.53074795", "0.5306064", "0.52961713", "0.52942973", "0.5287712", "0.5287175", "0.528221", "0.527672", "0.52739865", "0.52701354", "0.52639544", "0.526111", "0.52590805", "0.52547467", "0.52509683", "0.5242956", "0.5241973", "0.5235555", "0.5220395", "0.51881737", "0.51858884", "0.5184476", "0.51739043", "0.51682174", "0.51679975", "0.51620656", "0.51525134", "0.51504254", "0.5148986", "0.51420224", "0.5133932", "0.51288986", "0.5126523", "0.5125717", "0.51235133", "0.5114942", "0.5113213", "0.51124483", "0.51121134", "0.51026684", "0.51001143", "0.5098104", "0.5096868", "0.5086559", "0.5084031", "0.5083969", "0.508367" ]
0.56067526
18
Create object with only the supplied keys
private function withProperties($object, $keys) : \stdClass { $obj = new \stdClass(); foreach ((array) $keys as $key) { $obj->{$key} = property_exists($object, $key) ? $object->{$key} : null; } return $obj; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function only($keys)\n {\n if ($keys === null) {\n return new static($this->objects);\n }\n\n $keys = is_array($keys) ? $keys : func_get_args();\n\n return new static(array_intersect_key($this->objects, array_flip($keys)));\n }", "public function only( $keys )\n\t{\n\t\t$dictionary = Arr::only( $this->getDictionary(), $keys );\n\n\t\treturn new static( array_values( $dictionary ) );\n\t}", "public function only(array $keys)\n {\n return new static(array_intersect_key($this->parameters, array_flip($keys)));\n }", "public function only($keys)\n {\n if (is_null($keys)) {\n return new static($this->items);\n }\n\n $keys = is_array($keys) ? $keys : func_get_args();\n\n return new static(Arr::only($this->items, $keys));\n }", "public function only(...$keys): self;", "public function except( $keys )\n\t{\n\t\t$dictionary = Arr::except( $this->getDictionary(), $keys );\n\n\t\treturn new static( array_values( $dictionary ) );\n\t}", "public function __construct(array $keys = array())\n {\n $this->keys = array();\n if ($keys) {\n $this->addKeys($keys);\n }\n }", "public function __construct(array $keys = [])\n {\n $this->keys = $keys;\n }", "public function createObjKeyArray(array $keyArray){\n\tif (isset($keyArray[\"id\"])) $this->id = $keyArray[\"id\"];\n\tif (isset($keyArray[\"codice_categoria\"])) $this->codice_categoria = $keyArray[\"codice_categoria\"];\n\tif (isset($keyArray[\"codice\"])) $this->codice = $keyArray[\"codice\"];\n\tif (isset($keyArray[\"descrizione\"])) $this->descrizione = $keyArray[\"descrizione\"];\n}", "public function __construct ( $keyvalues ) \n\t{\t\t\t\n\t\t$this->keyvalues = $keyvalues;\t\t\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 parent::__construct();\n $this->keys = array_keys(self::KEYS);\n $this->uniqueKeys = array_keys(array_filter(self::KEYS, function ($key) {\n return $key;\n }));\n }", "public function withKey($keys)\n {\n if (is_array($keys)) {\n $this->keys = $keys;\n }\n\n if (is_string($keys)) {\n $this->keys = [$keys];\n }\n\n return $this;\n }", "public function __construct(array $keyValues)\n {\n $this->keyValues = $keyValues;\n }", "public function setClonableObjectsKeys(array $keys)\n {\n $this->_clonableObjectsKeys = array_unique($keys);\n return $this;\n }", "public function __construct($keys, $columns) {\n $this->mapping = array();\n if (count($keys) <= count($columns)) {\n for ($i = 0; $i < count($keys); $i++) {\n $this->mapping[$keys[$i]] = $columns[$i];\n }\n }\n }", "static function ensure_keys($src, $props, $fill_on_missing=null){\n\t\t$props = Arrays::from($props);\n\t\tforeach($props as $prop){\n\t\t\tif(!self::is_set($src, $prop)){\n\t\t\t\t$src[$prop] = $fill_on_missing;\n\t\t\t}\n\t\t}\n\t\treturn $src;\n\t}", "static function createWith($fields) {\r\n return static::make($fields)->create();\r\n }", "public function create(array $properties = []);", "public function addClonableObjectsKeys(array $keys)\n {\n $this->_clonableObjectsKeys = array_unique(array_merge($this->_clonableObjectsKeys, $keys));\n return $this;\n }", "public function filter(array $keys)\n {\n $this->parameters = array_intersect_key($this->parameters, array_flip($keys));\n\n return $this;\n }", "public static function createDictionary() {}", "public function setExplicitKeys(array $keys): MenuPresenceInterface\n {\n // Filter out any keys that don't belong in this object\n $keys = array_intersect($keys, [\n 'action',\n 'children',\n 'html',\n 'icon',\n 'id',\n 'label',\n 'label_translated',\n 'mode',\n 'parameters',\n 'permissions',\n 'type',\n ]);\n\n $this->setAttribute('explicit_keys', $keys);\n\n return $this;\n }", "static function createIgnoreWith($fields) {\r\n return static::make($fields)->createIgnore();\r\n }", "public function __construct(){\n\t\t\tparent::__construct(array(), \\ArrayObject::STD_PROP_LIST);\n\t\t\t$values = func_get_args();\n\t\t\tif(is_array($values) === true){\n\t\t\t\tforeach($values as $k => $v){\n\t\t\t\t\t$this[$k] = $v;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "public function ensureDefaultKeys() {}", "public function create($propertyValues = []);", "function setExtraVarKeys($extra_keys)\n\t{\n\t\tif(!is_array($extra_keys) || count($extra_keys) < 1)\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\tforeach($extra_keys as $val)\n\t\t{\n\t\t\t$obj = new ExtraItem($val->module_srl, $val->idx, $val->name, $val->type, $val->default, $val->desc, $val->is_required, $val->search, $val->value, $val->eid);\n\t\t\t$this->keys[$val->idx] = $obj;\n\t\t}\n\t}", "public static function create($key = null, $props = array()) {\n\t\treturn new static($key, $props);\n\t}", "public function setKeys($keys)\n {\n $this->keys = $keys;\n\n return $this;\n }", "public function Make($key);", "public function __construct(array $fields = array()) {\n\t\t/* Initialise everything as blank to avoid tripping up the permissions fitlers */\n\t\t$this -> id = '';\n\t\t$this -> name = '';\n\n\t\tif(isset($fields['key_status.id'])) {\n\t\t\t$this -> set_id($fields['key_status.id']);\n\t\t}\n\t\tif(isset($fields['key_status.name'])) {\n\t\t\t$this -> set_name($fields['key_status.name']);\n\t\t}\n\n\t\t$this -> model_variables_changed = array();\n\t\t$this -> list_doorkey = array();\n\t\t$this -> list_key_history = array();\n\t}", "public function clean($keys = [])\n {\n if (is_null($keys)) {\n $this->cleanKeys = null;\n\n return $this;\n }\n\n $this->cleanKeys = is_array($keys) ? $keys : func_get_args();\n\n return $this->setData($this->getData(true));\n }", "function createDictionary($items = [])\n {\n return new \\Phanda\\Dictionary\\Dictionary($items);\n }", "public function setKeys(array $keys)\n\t{\n\t\t$this->apiSid = $keys['key'];\n\n $this->apiDomain = $keys['domain'];\n\n\t\t$this->apiAuthToken = (! empty($keys['token'])) ? $keys['token'] : '';\n\n return $this;\n\t}", "public function __construct(array $parameterKeys)\n {\n $this->parameterKeys = $parameterKeys;\n }", "function __construct($key, $keyName, $keyType=null, $key2 = null, $key2Name = null, $key2Type = null) {\n $this->key = JWKFactory::createFromKey($key, null, array('kid' => $keyName));\n $this->keyName = $keyName;\n $this->keys = new JWKSet();\n $this->keys = $this->keys->addKey($this->key);\n if ($key2) {\n $this->key2 = JWKFactory::createFromKey($key2, null, array('kid' => $key2Name));\n $this->key2Name = $key2Name;\n $this->keys = $this->keys->addKey($this->key2);\n }\n }", "public static function requiredKeys($arr_input, $keys)\r\n {\r\n $error_fields = [];\r\n $arr = Validator::cleanInput($arr_input, $keys);\r\n foreach ($keys as $key => $value) {\r\n if (!array_key_exists($key, $arr) || empty($arr[$key])) {\r\n $error_fields[] = $key;\r\n }\r\n }\r\n //Check if ok validation\r\n $ok = (count($error_fields) != 0)? false : true;\r\n return (object)['ok'=> $ok, 'errors'=> $error_fields, 'data'=> (object)$arr];\r\n }", "public function notEmpty(string ...$keys)\n {\n foreach ($keys as $key){\n $value = $this->getValue($key);\n if(is_null($value) || empty($value)){\n $this->addError($key,'empty');\n }\n }\n return $this;\n }", "public static function cleanInput($input, $keys)\r\n { \r\n \r\n $array = array_intersect_key($input, $keys); \r\n //ignoreInput and accept default values\r\n foreach ($keys as $key => $value) {\r\n if(!empty($value)) {\r\n $array[$key] = $value;\r\n }\r\n }\r\n\r\n return $array; \r\n }", "public function __construct($name, $prefix = '', $options = [], $keys = []) {\n $this->name = $name;\n $this->prefix = $prefix;\n\n foreach ($options as $field => $params) {\n $this->addField(\n $field,\n isset($params->type) ? $params->type : '',\n isset($params->null) ? $params->null : '',\n isset($params->default) ? $params->default : null,\n isset($params->auto_increment) ? $params->auto_increment : false\n );\n }\n\n foreach ($keys as $key => $item) {\n $this->addKey(\n $key,\n isset($item->type) ? $item->type : '',\n isset($item->fields) ? $item->fields : [],\n isset($item->references) ? $item->references : (object) []\n );\n }\n }", "public function extractKeys($keys) {\n $Configuration = new MOC_Configuration();\n foreach ($keys as $key => $value) {\n if (is_numeric($key)) {\n $key = $value;\n }\n\n $Configuration->set($key, $this->get($value));\n }\n return $Configuration;\n }", "public function __construct($_key = NULL,$_versionId = NULL,$_isLatest = NULL,$_lastModified = NULL,$_owner = NULL)\r\n\t{\r\n\t\tparent::__construct(array('Key'=>$_key,'VersionId'=>$_versionId,'IsLatest'=>$_isLatest,'LastModified'=>$_lastModified,'Owner'=>$_owner));\r\n\t}", "public function createNewKeyPair() {}", "public function createNewKeyPair() {}", "public function with($keys = []) : Api\n {\n if (! is_array($this->data)) {\n $this->data = $this->withProperties($this->data, $keys);\n } else {\n $this->data = array_map(function ($object) use ($keys) {\n return $this->withProperties($object, $keys);\n }, $this->data);\n }\n\n return $this;\n }", "public function fakeCustomerKey($customerKeyFields = [])\n {\n return new CustomerKey($this->fakeCustomerKeyData($customerKeyFields));\n }", "public function __construct($object) {\n foreach ($object as $key => $value) :\n $k = \"_$key\";\n $this->$k = $value;\n endforeach;\n }", "function alist($args){\n return array_fill_keys(array_keys($args), array());\n}", "public function testRequiredKeys()\n {\n $this->expectException(InvalidArgumentException::class);\n $this->expectExceptionMessage('Cannot create a SmartwaiverSignatures with missing field: waiverId');\n\n $signatures = SmartwaiverTypes::createSignatures();\n unset($signatures['waiverId']);\n\n $swSignatures = new SmartwaiverSignatures($signatures);\n }", "abstract public function prepare_new_object(array $args);", "public function testFilterByKeysDefault()\n {\n $array = ['bar' => 'baz', 'controller' => 'Groups', 'action' => 'index'];\n $allowed = ['plugin', 'controller', 'action', 0];\n $expected = ['plugin' => null, 'controller' => 'Groups', 'action' => 'index', 0 => null];\n\n $result = Hash::filterByKeys($array, $allowed);\n $this->assertEquals($expected, $result);\n }", "public function __construct($fromArray) {\n $this->id = $fromArray['id'];\n $this->firstname = $fromArray['firstname'];\n $this->lastname = $fromArray['lastname'];\n $this->shortname = $fromArray['shortname'];\n $this->gender = $fromArray['gender'];\n $this->fatmethod = $fromArray['fatmethod'];\n $this->birthdate = $fromArray['birthdate'];\n $this->ispublic = $fromArray['ispublic'];\n $this->publickey = $fromArray['publickey'];\n }", "public function __construct(){\n\t\t\tparent::__construct(array(), \\ArrayObject::STD_PROP_LIST);\n\t\t\t$values = func_get_args();\n\t\t\tif(is_array($values) === true && count($values) > 0 && is_array($values[0])){\n\t\t\t\t$values = current($values);\n\t\t\t\tforeach($values as $k => $v){\n\t\t\t\t\t$this[$k] = $v;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "protected abstract function loadKeys(array $keys);", "abstract public function createNewKeyPair() ;", "abstract protected function prepareKeys($models);", "public function createKeyArray(){\n\t$keyArray = array();\n\tif (isset($this->id)) $keyArray[\"id\"] = $this->id;\n\tif (isset($this->codice_categoria)) $keyArray[\"codice_categoria\"] = $this->codice_categoria;\n\tif (isset($this->codice)) $keyArray[\"codice\"] = $this->codice;\n\tif (isset($this->descrizione)) $keyArray[\"descrizione\"] = $this->descrizione;\n\treturn $keyArray;\n}", "public function removeQueryPairsByKey(string ...$keys): static\n {\n $query = Query::fromUri($this->uri);\n $newQuery = $query->withoutPairByKey(...$keys)->value();\n\n return match (true) {\n $query->value() === $newQuery => $this,\n default => new static($this->uri->withQuery(static::normalizeComponent($newQuery, $this->uri))),\n };\n }", "public function create($data = array()) { \r\n \tforeach(array_keys($data) as $name) {\r\n \t\t$this->_checkAttributesValue($data, $name);\r\n \t}\r\n \t\r\n \treturn $entity = new $this->_entityClass($this, $this->_getPrimary(), $data);\r\n }", "public function unique( $key = null )\n\t{\n\t\tif ( !is_null( $key ) )\n\t\t{\n\t\t\treturn parent::unique( $key );\n\t\t}\n\n\t\treturn new static( array_values( $this->getDictionary() ) );\n\t}", "public function removeParams(string ...$keys): static\n {\n return $this->removeQueryParameters(...$keys);\n }", "public static function createFromObject(ArrayAccess $elements)\n {\n $array = new static();\n\n foreach ($elements as $key => $value) {\n $array[$key] = $value;\n }\n\n return $array;\n }", "public static function create( $key, $values, $names, $query = null, $obj = null, $id = null, $class = null, $default = null ,$title=null,$multiple=null) {\n\t\treturn new x_select( $key, $values, $names, $query, $obj, $id, $class, $default,$title,$multiple);\n\t}", "public function __construct($data = array()) {\n \n if(!is_array($data)){\n return;\n }\n \n foreach ($data as $key => $value) {\n $key = $this->_getKey($key);\n if(!$key) {\n continue;\n }\n \n $this->$key = $value;\n }\n }", "public function makeCustomerKey($customerKeyFields = [])\n {\n /** @var CustomerKeyRepository $customerKeyRepo */\n $customerKeyRepo = App::make(CustomerKeyRepository::class);\n $theme = $this->fakeCustomerKeyData($customerKeyFields);\n return $customerKeyRepo->create($theme);\n }", "public function __construct(array $_aKey) {\n $this->fnInit($_aKey); // plain array, non associated\n }", "public static function fill_Keys($keys, $value){\n return self::fillKeys($keys, $value);\n }", "public function testCreateWithOnlyRequiredFields(): void\n {\n $this->doTestCreate('createWithOnlyRequiredFields.json');\n }", "public function filterByPrimaryKeys($keys)\n\t{\n\t\tif (empty($keys)) {\n\t\t\treturn $this->add(null, '1<>1', Criteria::CUSTOM);\n\t\t}\n\t\tforeach ($keys as $key) {\n\t\t\t$cton0 = $this->getNewCriterion(Oops_Db_CustomizationPeer::ID_CUSTOMIZATION, $key[0], Criteria::EQUAL);\n\t\t\t$cton1 = $this->getNewCriterion(Oops_Db_CustomizationPeer::ID_CART, $key[1], Criteria::EQUAL);\n\t\t\t$cton0->addAnd($cton1);\n\t\t\t$cton2 = $this->getNewCriterion(Oops_Db_CustomizationPeer::ID_PRODUCT, $key[2], Criteria::EQUAL);\n\t\t\t$cton0->addAnd($cton2);\n\t\t\t$this->addOr($cton0);\n\t\t}\n\n\t\treturn $this;\n\t}", "public function removeQueryParameters(string ...$keys): static\n {\n $query = Query::fromUri($this->uri);\n $newQuery = $query->withoutParameters(...$keys)->value();\n\n return match (true) {\n $query->value() === $newQuery => $this,\n default => new static($this->uri->withQuery(static::normalizeComponent($newQuery, $this->uri))),\n };\n }", "public function setItemKeys(array $keys)\n {\n $this->itemKeys = $keys;\n\n return $this;\n }", "function c_kv($arr)\n {\n if ( ! array_has($arr, ['k', 'v', 'ins_name', 'ins_id']))\n return ee(2);\n $ins = M($arr['ins_name'], 'kv');\n $r = $ins->create($arr);\n return $r ? ss($ins) : ee(1);\n }", "function _mn_slingshot_keyauth_key_default() {\n $export = array();\n $keyauth_keys = new stdClass;\n $keyauth_keys->disabled = FALSE; /* Edit this to true to make a default keyauth_keys disabled initially */\n $keyauth_keys->api_version = 1;\n $keyauth_keys->title = 'Slingshot';\n $keyauth_keys->public_key = 'acf8b2bb295ccb58c1ad4e3a376a81cb';\n $keyauth_keys->private_key = 'cdb9381bfde2d9a14acf62c42345da5907b7aa14';\n\n $export['acf8b2bb295ccb58c1ad4e3a376a81cb'] = $keyauth_keys;\n return $export;\n}", "public function keysOnlyUsedDuringCreation()\n {\n \treturn $this->keysOnlyUsedDuringCreation;\n }", "function __construct() {\n if($this->Fields) {\n foreach($this->Fields as $key => $value) {\n $this->$key = null;\n if($value['extra'] === \"auto_increment\") $this->Id = $key;\n if($value['extra'] === \"ref\") $this->Ref = $key;\n }\n }\n }", "public function dontTouch(string ...$keys): self\n {\n $this->dontTouchKeys = [...$this->dontTouchKeys, ...$keys];\n return $this;\n }", "public static function fromFields(array $fields)\n {\n return static::makeWith($fields);\n }", "public function diffKeys($items)\n {\n return new static(array_diff_key($this->items, $items));\n }", "public static function create(array $attributes = []);", "public static function create(array $attributes = []);", "private function setKeys($keys)\n {\n return array('consumer_key'=>$keys[0],\n 'consumer_secret'=>$keys[1],\n 'oauth_access_token' =>$keys[2],\n 'oauth_access_token_secret' =>$keys[3]\n );\n }", "private function createShortHash($input, $keysOnly = false)\n {\n if ($keysOnly === true && (is_array($input) || is_object($input))) {\n $input = array_keys($input);\n }\n\n if (is_array($input) || is_object($input)) {\n $input = substr(base_convert(md5(serialize($input)), 16, 32), 0, 12);\n return $input;\n }\n\n $input = substr(base_convert(md5($input), 16, 32), 0, 12);\n return $input;\n }", "protected function _createKey() {\n return new PapayaDatabaseRecordKeyFields(\n $this,\n $this->_tableName,\n array('source_id', 'target_id')\n );\n }", "abstract protected function createFields();", "public static function makeNew(iterable $items=[], bool $preserve_keys=true): CollectionInterface;", "public function assertGraphQLValidationKeys(array $keys): self\n {\n return $this;\n }", "public function only(string ...$fieldNames): self\n {\n $instance = clone $this;\n $instance->only = $fieldNames;\n return $instance;\n }", "public function copyAttributesToKey()\n\t{\n\t\t$primarykey = $this->factory->getPrimarykey ;\n\t\tforeach( $primarykey->fields as $n=>$field )\n\t\t{\n\t\t\t$this->key[$field] = $this->$field ;\n\t\t}\n\t}", "public static function make(array $fields): self\n {\n return new static($fields);\n }", "public function __construct($key = null, $props = array()) {\n\t\t$this->setKey($key);\n\t\t$this->update($props);\n\t}", "static function copy($source, &$destination, $keys)\n\t{\n\t\tif(is_object($source))\n\t\t{\n\t\t\tforeach ($keys as $key)\n\t\t\t\tif (isset($source->$key))\n\t\t\t\t\t$destination->$key = $source->$key;\t\n\t\t\t\t\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\tforeach ($keys as $key)\n\t\t\tif (isset($source[$key]))\n\t\t\t\t$destination[$key] = $source[$key];\n\t}", "public static function create(array $values = []);", "public function keys(array $keys)\n {\n $prefix = $this->containsSQLParts('keys') ? self::LIST_DELIMITER : '';\n $keys = $prefix . implode(self::LIST_DELIMITER, General::array_map(function ($key, $options) {\n return $this->buildKeyDefinitionFromArray($key, $options);\n }, $keys));\n $this->unsafeAppendSQLPart('keys', $keys);\n return $this;\n }", "static function createOrReplaceWith($fields) {\r\n return static::make($fields)->createOrReplace();\r\n }", "function __construct(Key $key = null, Value $value = null)\n {\n $this->key = $key ?? new Key();\n $this->value = $value ?? new Value();\n }", "public function removeKey( ...$keys )\n\t{\n\n\t\tforeach ( $keys as $key )\n\t\t\tunset( $this->items[ $key ] );\n\n\t\treturn $this;\n\t}", "function init($keys=array())\n\t{\n\t\t$this->data = array();\n\n\t\t$this->db2data();\n\n\t\t$this->data_merge($keys);\n\n\t\treturn $this->data;\n\t}", "public function __construct($key)\n {\n parent::__construct($key);\n }", "function set_keys($keys)\n\t{\n\t\tif(!is_array($keys)) $keys = explode(',', $keys);\n\t\tforeach($keys as $key) $this->set_key($key);\n\t}", "public function createValidObject() : object {\n\t\treturn (object) [\"tweetContent\" => bin2hex(random_bytes(12))];\n\t}" ]
[ "0.7205579", "0.68330353", "0.68192184", "0.6486741", "0.63837874", "0.61112565", "0.6062251", "0.6043967", "0.5997891", "0.5861941", "0.5674128", "0.5665787", "0.5537503", "0.55014384", "0.54936355", "0.54873276", "0.54707336", "0.53675264", "0.53413284", "0.53141874", "0.5303997", "0.529384", "0.5221608", "0.52201694", "0.5210523", "0.52099955", "0.5204632", "0.5204477", "0.5194588", "0.5194384", "0.5184308", "0.51773274", "0.51675755", "0.51419336", "0.5134941", "0.5108628", "0.51076853", "0.51020736", "0.50976694", "0.5094508", "0.50921834", "0.50851125", "0.5065723", "0.50514156", "0.5049585", "0.5009311", "0.50066555", "0.49962583", "0.4993522", "0.4986399", "0.4966372", "0.49632788", "0.49544865", "0.49531713", "0.4950683", "0.49462798", "0.49421138", "0.49369618", "0.49359852", "0.49219656", "0.49215925", "0.49188504", "0.4915288", "0.49150136", "0.4908792", "0.49024463", "0.49000922", "0.4886354", "0.48838013", "0.48833027", "0.48796865", "0.4876408", "0.4874508", "0.48736966", "0.48709202", "0.48460582", "0.4845048", "0.48371106", "0.4833894", "0.4831237", "0.4831237", "0.48264226", "0.48149058", "0.481353", "0.4810078", "0.48080477", "0.48059255", "0.47941846", "0.47879344", "0.47849244", "0.47810778", "0.4774731", "0.47534168", "0.47419924", "0.47407252", "0.47404355", "0.47378242", "0.47351286", "0.47273338", "0.47211018", "0.47195205" ]
0.0
-1
Check the supplied value against the provide match
private function numericComparator(string $comparator, int $value, int $match) : bool { switch ($comparator) { case 'gt': return $value > $match; break; case 'gte': return $value >= $match; break; case 'lt': return $value < $match; break; case 'lte': return $value <= $match; break; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function match($value);", "public abstract function matches($value);", "public function match(mixed $value);", "abstract protected function checkValue( &$value );", "function exact_value ( $str, $val )\n\t{\n\t\tif ( strcmp( strval( $str ), strval( $val ) ) !== 0 ) return FALSE;\n\t\treturn TRUE;\n\t}", "public function containsValue($value);", "public function check(string $key, $value);", "abstract protected function isValidValue($value);", "function matchField($value, $params = array()) {\n\t\tif ($this->data[$this->name][$params['field1']] != $this->data[$this->name][$params['field2']]) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "abstract protected function validateValue($value);", "function match($field, $value);", "function value_check($value, $check){\r\n\tif(is_string($value) && ((is_array($check) && in_array($value, $check)) || (is_string($check) && $value == $check))){\r\n\t\treturn $value;\r\n\t}else{\r\n\t\treturn NULL;\r\n\t}\r\n}", "public function check($value): bool;", "function matchesCriterium ($criterium, $value) {\r\n return false;\r\n }", "public function __invoke($value) {\n return $this->isValid($value);\n }", "public function isValid($value);", "public function isValid($value);", "private function checkMatch($value, $message, $match)\n {\n if($value !== $match)\n {\n $this->errors [] = $message;\n return false;\n } else {\n return true;\n }\n }", "public function validateValue($value)\n {\n }", "public function validateValue()\n {\n return (preg_match('/' . $this->preference->value . '/', $this->value) == 1 ? true : false);\n }", "function check( $value, $type='text' )\n {\n return Pgg_Validate::is( $value, $type );\n }", "abstract public function getIsValidValue($value);", "public function isValid($value) {\n return parent::isValid($value) || preg_match($this->_pattren, $value);\n }", "public function containsValue($value) : bool;", "public function validate($value);", "public function validate($value);", "function testIfmatch(){\n\t\t#mdx:ifmatch\n\t\tParam::get('name')\n\t\t\t->filters()\n\t\t\t->ifmatch('/\\d/', 'Name cannot contain digits');\n\n\t\t$error = Param::get('name')->process(['name'=>'M4ry'])->error;\n\t\t#/mdx var_dump($error)\n\t\t$this->assertEquals(\"Name cannot contain digits\", $error);\n\n\t}", "public static function validate($value);", "public function match(/*int */$type, /*string */$value = null) //: bool\n {\n return $this->getCurrent()->match($type, $value);\n }", "public function containsValue(mixed $value): bool;", "public static function valueIsValid($_value)\n\t{\n\t\treturn in_array($_value,array(self::VALUE_CONTACT,self::VALUE_REGISTERED,self::VALUE_CUSTOMCODE));\n\t}", "public static function valueIsValid($_value)\n\t{\n\t\treturn in_array($_value,array(self::VALUE_REPLACEMENTWARRANTY,self::VALUE_DEALERWARRANTY,self::VALUE_MANUFACTURERWARRANTY,self::VALUE_CUSTOMCODE));\n\t}", "public function check( $name, $value )\n\t{\n\t\t$v = $this->get($name);\n\t\t$va = explode(',', $v);\n\t\tif (is_array($va)) {\n\t\t\treturn (in_array($value, $va));\n\t\t}\n\t\treturn false;\n\t}", "function _valid_match($field, $param = array())\r\n\t{\r\n\t\treturn in_array($this->{$field}, $param);\r\n\t}", "public function passes($attribute, $value)\n {\n if(str_contains($value, '*'))\n {\n // checking for * postal code block is free\n $f_var = explode(\"*\", $value);\n $salesManInfo = SalesManInfo::where('postalCode', 'like', $f_var[0].'%')->get();\n\n if(count($salesManInfo) > 0)\n { \n Session::flash('conflictList', $salesManInfo);\n return false;\n }\n } \n else {\n\n // checking for existing postal code\n $salesManInfo = SalesManInfo::where('postalCode', $value)->get();\n \n if(count($salesManInfo) > 0)\n {\n Session::flash('conflictList', $salesManInfo);\n return false;\n }\n\n // checking the * block is free or not\n $salesManInfoWithRange = SalesManInfo::where('postalCode', 'like', '%*%')->get();\n\n foreach($salesManInfoWithRange as $info)\n {\n $i_var = explode(\"*\", $info->postalCode);\n $i_var2 = $i_var[0];\n $sNumber = str_pad($i_var2, 5, \"0\"); \n $eNumber = str_pad($i_var2, 5, \"9\"); \n \n if(($sNumber <= $value) && ($value <= $eNumber))\n {\n Session::flash('conflictList', $salesManInfoWithRange->where('postalCode', $info->postalCode));\n return false;\n }\n }\n\n }\n\n return true;\n \n }", "public abstract function isValid(string $value): bool;", "private function doesMatchArg($pos, $value) {\n $argVal= $this->args[$pos];\n if ($argVal instanceof IArgumentMatcher) {\n return $argVal->matches($value);\n } else {\n return Objects::equal($argVal, $value);\n }\n }", "public static function valueIsValid($_value)\n\t{\n\t\treturn in_array($_value,array(self::VALUE_WARRANTYOFFERED,self::VALUE_CUSTOMCODE));\n\t}", "private function evalequal($value, $data){\n\t\t\treturn (bool) $passed = ($data == $value) ? true : false;\n\t\t}", "public function containsValue($value): bool;", "abstract public function verify($value): void;", "function validate_value($valid, $value, $field, $input)\n {\n }", "function validate_value($valid, $value, $field, $input)\n {\n }", "function validate_value($valid, $value, $field, $input)\n {\n }", "function validate_value($valid, $value, $field, $input)\n {\n }", "protected function checkValue() {\n if($this->required) {\n if($this->regularExpression) {\n if(preg_match($this->regularExpression, $this->value)) {\n $returnValue = TRUE;\n } else {\n $returnValue = FALSE;\n $this->error = TRUE;\n }\n } elseif($this->callBack) {\n if(call_user_func($this->callBack, $this->value)) {\n $returnValue = TRUE;\n } else {\n $returnValue = FALSE;\n $this->error = TRUE;\n }\n } elseif(!(bool)$this->value) {\n $returnValue = FALSE;\n } else {\n $returnValue = TRUE;\n }\n } else {\n $returnValue = TRUE;\n }\n\n return $returnValue;\n }", "public function match($field_name, $value, $params)\n {\n try {\n $query = 'SELECT * FROM '.$params[0].' WHERE '.$params[1].' = \"'.$value.'\"';\n $query .= ' AND '.$params[2].' = \"'.md5($params[3]).'\";';\n\n $result = Connection::getInstance()->query($query);\n if ($result->rowCount() > 0) {\n return true;\n }\n } catch (Exception $e) {\n echo \"Error Details: \".$e->getMessage();\n }\n return ucfirst($field_name).' and it\\'s combination does not exist in our data.';\n }", "public static function valueIsValid($_value)\n\t{\n\t\treturn in_array($_value,array(self::VALUE_ASKSELLERQUESTION,self::VALUE_RESPONSETOASQQUESTION,self::VALUE_CONTACTEBAYMEMBER,self::VALUE_CONTACTTRANSACTIONPARTNER,self::VALUE_RESPONSETOCONTACTEBAYMEMBER,self::VALUE_CONTACTEBAYMEMBERVIACOMMUNITYLINK,self::VALUE_CUSTOMCODE,self::VALUE_ALL,self::VALUE_CONTACTMYBIDDER,self::VALUE_CONTACTEBAYMEMBERVIAANONYMOUSEMAIL,self::VALUE_CLASSIFIEDSCONTACTSELLER,self::VALUE_CLASSIFIEDSBESTOFFER));\n\t}", "public function check($value)\n {\n $checkResult = ['passed' => true, 'message' => \"has value '$value'\"];\n if ($this->nullable && $value === null) {\n $checkResult['passed'] = true;\n $checkResult['message'] = \"has value '$value'\";\n } elseif (!$this->nullable && $value === null) {\n $checkResult['passed'] = false;\n $checkResult['message'] = 'value is null';\n } elseif (!is_string($value) ) {\n $checkResult['passed'] = false;\n $checkResult['message'] = \"value '$value' is not string\";\n } elseif ($this->min && strlen($value) < $this->min) {\n $checkResult['passed'] = false;\n $checkResult['message'] = \"string length of '$value' is less then minimum length $this->min\";\n } elseif ($this->max && strlen($value) > $this->max) {\n $checkResult['passed'] = false;\n $checkResult['message'] = \"string length of '$value' is greater then maximum length $this->max\";\n } elseif ($this->regex && preg_match($this->regex, $value) !== 1) {\n $checkResult['passed'] = false;\n $checkResult['message'] = \"string '$value' does not matches to pattern '$this->regex'\";\n } elseif (count($this->enum) > 0 && !in_array($value, $this->enum)) {\n $checkResult['passed'] = false;\n $enumAsString = implode(',', $this->enum);\n $checkResult['message'] = \"string '$value' is not in set of possible values '$enumAsString'\";\n }\n return $checkResult;\n }", "public function test($input)\n\t{\n\t\tif(count($this->dictionary) > 0)\n\t\t{\n\t\t\tif(!in_array($input, $this->dictionary))\n\t\t\t{\n\t\t\t\t$this->error = \"Value is not valid.\";\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "function test($value) {\n\t\t// php doesn't have g modifier so we remove it if it's there and call preg_match_all()\n\t\tif(strpos($this->modifiers, 'g') !== false){\n\t\t\t$this->modifiers = str_replace('g', '', $this->modifiers);\n\t\t\treturn preg_match_all($this->getRegex(), $value);\n\t\t}\n\t\treturn preg_match($this->getRegex(), $value);\n\t}", "public static function match($valueA, $valueB) {\n\t\ttry {\n\t\t\t// Check Values\n\t\t\t$result = $valueA === $valueB;\n\t\t\treturn $result;\n\t\t}\n\t\tcatch(\\Exception $ex) {\n\t\t\t\\Bedrock\\Common\\Logger::exception($ex);\n\t\t}\n\t}", "public function contains($value);", "public function is($value) {\n return ($this->code === $value || $this->value === $value);\n }", "static function validate($val) {\n\t\t$res = false;\n\t\tif (isset($val) && ($val != \"\")){\n\t\t\t$res = true;\n\t\t}\n\t\treturn ($res);\n\t}", "public function check($value, $hashedValue, array $options = []);", "public function equals($value);", "function my_acf_validate_value( $valid, $value, $field, $input ){\n\tif( !$valid ) {\n\t\treturn $valid;\n\t}\n $value_1 = $_POST['acf']['field_5a79e721d5c28'];\n $value_2 = $_POST['acf']['field_5a79e72cd5c29'];\n\tif ($value_1 != $value_2 ) {\n $valid = 'As senhas não são iguais';\n }\n\t// return\n\treturn $valid;\n\n}", "function check_value($value) {\n\tif((@count($value)>0 and !@empty($value) and @isset($value)) || $value=='0') {\n\t\treturn true;\n\t}\n}", "public function validate($value): bool\n {\n if (!array_key_exists($this->password, $this->data)) {\n return false;\n }\n if ($this->data[$this->password] !== $value) {\n return false;\n }\n return true;\n }", "protected function fails($param, $value) {\r\n\t\treturn isset($this->options[$param]) && !preg_match('/' . $this->options[$param] . '/', $value);\r\n\t}", "public function passes($attribute, $value)\n {\n $flag = 0;\n if (isEmpty($value)) {\n $flag = 1;\n } else {\n $flag = preg_match(\"(^98|97\\d{8}$)\", $value);\n }\n return $flag;\n }", "public static function valueIsValid($_value)\n\t{\n\t\treturn in_array($_value,array(self::VALUE_JPG,self::VALUE_GIF,self::VALUE_CUSTOMCODE));\n\t}", "public function test($value): bool\n {\n if (strpos($this->modifiers, 'g') !== false) {\n $this->modifiers = str_replace('g', '', $this->modifiers);\n $matches = array();//because it's not optional in <5.4\n return preg_match_all($this->getRegex(), $value, $matches);\n }\n\n return (bool)preg_match($this->getRegex(), $value);\n }", "abstract public function validate(\n $value\n ): bool;", "public function checkValue()\r\n\t{\r\n\t\treturn $this->_v('checkValue', 'xsdfsdfdsfdsfsf');\r\n\t}", "function __invoke($value)\n {\n if(!$this->hasValue($value)){\n return true;\n }\n return strlen($value) > $this->minLength;\n }", "private function evalexists($value, $data){\n\n\t\t\treturn (bool) $passed = (array_key_exists($value, $data)) ? true : false;\n\t\t}", "function validate($data) {\n if (is_string($this->paramtype)) {\n if (preg_match($this->paramtype, $data)) {\n return true;\n } else {\n return get_string('validateerror', 'admin');\n }\n\n } else if ($this->paramtype === PARAM_RAW) {\n return true;\n\n } else {\n $cleaned = stripslashes(clean_param(addslashes($data), $this->paramtype));\n if (\"$data\" == \"$cleaned\") { // implicit conversion to string is needed to do exact comparison\n return true;\n } else {\n return get_string('validateerror', 'admin');\n }\n }\n }", "public function hasValue($name);", "public function matchDataType($value, $type) {\n $match = FALSE;\n\n // Type is an array, then a list of acceptable value must be checked.\n if (is_array($type)) {\n $options = $type;\n $type = 'options';\n }\n\n switch($type) {\n case 'int':\n // Single value, of type integer. Including 0.\n if (is_numeric($value) && $value >= 0) {\n // Paging starts at 0, include 0.\n $match = TRUE;\n }\n\n break;\n\n case 'text':\n // Single value, text value.\n if (is_string($value)) {\n $match = TRUE;\n\n if ($match && !empty($value)) {\n // See if text is longer than 15 chars.\n $match = FALSE;\n\n if (strlen($value) <= 150) {\n $match = TRUE;\n }\n }\n }\n\n break;\n\n case 'year':\n // Four digit year YYYY.\n if (preg_match('/^[0-9]{4}$/', $value)) {\n // ie: 1979, 2000\n $match = TRUE;\n }\n\n break;\n\n case 'boolean':\n // Boolean true or false only.\n if (id_bool($value)) {\n // TRUE or FALSE.\n $match = TRUE;\n }\n\n break;\n\n case 'hash-code':\n // Single value, alphanumeric value matching a pattern.\n if (preg_match('/^\\w{5}-{1}\\w{5}-{1}\\w{5}-{1}\\w{5}-{1}\\w{5}$/', $value)) {\n // ie: ZovDs-BCDB9-P5QSP-6DSDx-Myisv\n $match = TRUE;\n }\n\n break;\n\n case 'array-text':\n // Array of string, where each element is of type text.\n if (is_array($value)) {\n $match = TRUE;\n foreach($value as $i => $item) {\n if (is_array($item)) {\n foreach($item as $item_value) {\n // Use the text condition of this method.\n $is_valid = $this->matchDataType($item_value, 'text');\n if ($is_valid) {\n $match = FALSE;\n break 2;\n }\n }\n }\n }\n }\n\n break;\n\n case 'array-int':\n // Array of string, where each element is of type integer.\n if (is_array($value)) {\n $match = TRUE;\n foreach($value as $i => $item) {\n if (is_array($item)) {\n foreach($item as $item_value) {\n // Use the int condition of this method.\n $is_valid = $this->matchDataType($item_value, 'int');\n if ($is_valid) {\n $match = FALSE;\n break 2;\n }\n }\n }\n }\n }\n\n break;\n\n case 'asc/desc':\n // Sort order asc for ascending order and desc for descending order.\n if ($value == 'asc' || $value == 'desc') {\n $match = TRUE;\n }\n\n break;\n\n case 'options':\n // Value must be one of the enumerated values.\n if (in_array($value, $options)) {\n $match = TRUE;\n }\n\n break;\n\n case 'datetime':\n // Value must be a date and time YYYY-MM-DD 00:00\n if (preg_match('/^([0-9]{4})-([0-9]{2})-([0-9]{2}) ([0-9]{2}):([0-9]{2})$/', $value, $x)) {\n $match = TRUE;\n }\n\n break;\n }\n\n return $match;\n }", "public function validate($value) {\n return $value == $this->filter($value) ? $value : Filter::ERR_INVALID;\n }", "protected function validateEqualTo($value, $parameters){\n\t\treturn $value == $this->getValue($parameters[0]);\n\t}", "public function isValid($value)\n\t{\n\n\t\t/**\n\t\t * @var BaseService\n\t\t */\n\t\t$res = $this->options['service']->findBy(array(\n\t\t\t$this->options['fields'] => $value,\n\t\t\t'user' => $this->options['user']\n\t\t));\n\n\t\tif(empty($res)) {\n\t\t\treturn true;\n\t\t}\n\n\t\t//TODO THE EXCEPT SHIT IS MESSED UP!\n\t\tif(array_key_exists('except', $this->options)) {\n\t\t\tif(($res) ? 'true' : 'false' == $this->options['except']) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\tif(isset($this->options['values']['id']) and $res[0]->getId() === $this->options['values']['id']) {\n\t\t\treturn true;\n\t\t}\n\n\t\tif(!empty($res)) {\n\t\t\t$this->error(self::EXISTS);\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}", "public function val_match($var, $match, $case = 'i') {\n if ($case === 'i') {\n return (strtolower($var) === strtolower($match));\n } else {\n return ($var === $match);\n }\n unset($var, $match, $case);\n }", "abstract public function isValid(mixed $value): bool;", "function is_equal_of(mixed $value, mixed ...$values): bool\n{\n $search_value = $value;\n foreach ($values as $value) {\n if ($search_value === $value) {\n return true;\n }\n }\n return false;\n}", "private function CheckData($value, $pattern = 0, $params = 0){\n if($value && $pattern){\n $this->name = $value;\n $this->pattern = $pattern;\n\n if ($params){\n $this->array_of_params = $params;\n //print_r($this->array_of_params);\n }\n\n //$result = $this->Check($this->pattern); //проверяю паттерн на соответствие правилам\n\n //print_r(\"Pattern:\".$result); //Результат проверки паттерна. All right\n\n /*if($result){\n $checkname = $this->CheckName($this->name, $this->pattern);//здесь я проверяю валидность введенного имени\n //var_dump($checkname);\n return $checkname;\n }*/\n return 0;\n }\n\n return 0;\n }", "public static function valueIsValid($_value)\n\t{\n\t\treturn in_array($_value,array(self::VALUE_NYSE,self::VALUE_NASDAQCM,self::VALUE_NASDAQGM,self::VALUE_NASDAQGS,self::VALUE_AMEX,self::VALUE_PINKSHEETS,self::VALUE_OTCBB,self::VALUE_INDUSTRYGROUPS,self::VALUE_INDICES,self::VALUE_AMSTERDAM,self::VALUE_ASX,self::VALUE_BERLIN,self::VALUE_BREMEN,self::VALUE_BRUSSELS,self::VALUE_COPENHAGEN,self::VALUE_DUSSELDORF,self::VALUE_FRANKFURT,self::VALUE_HAMBURG,self::VALUE_HANOVER,self::VALUE_HELSINKI,self::VALUE_HONGKONG,self::VALUE_ICELAND,self::VALUE_INDIA,self::VALUE_LISBON,self::VALUE_LSE,self::VALUE_MUMBAI,self::VALUE_MUNICH,self::VALUE_OSLO,self::VALUE_PARIS,self::VALUE_PRAGUE,self::VALUE_RIGA,self::VALUE_RTSRUB,self::VALUE_RTSUSD,self::VALUE_SINGAPORE,self::VALUE_STOCKHOLM,self::VALUE_STUTTGART,self::VALUE_TALLINN,self::VALUE_TOKYO,self::VALUE_TSX,self::VALUE_TSXV,self::VALUE_VILNIUS,self::VALUE_XETRA));\n\t}", "public function check(?string $value): bool\n {\n if ($value === null)\n {\n return false;\n }\n \n $response = $this->request($value);\n\n $this->onResponse($response);\n\n return $response->successful() && $response->json()['success'];\n }", "public function contains(mixed $value): bool\n {\n return $this->isOk() && $this->value == $value;\n }", "abstract public function validate($value, Result $result);", "public function validate($value, array $args): bool\r\n {\r\n $field = $args[0];\r\n $necessaryValue = $args[1];\r\n\r\n foreach ($value as $item) {\r\n if ($item[$field] == $necessaryValue) {\r\n return true;\r\n }\r\n }\r\n\r\n return false;\r\n }", "public static function valueIsValid($_value)\n\t{\n\t\treturn in_array($_value,array(self::VALUE_UNDEFINED,self::VALUE_PRIVATE,self::VALUE_COMMERCIAL,self::VALUE_CUSTOMCODE));\n\t}", "public function isMatch(string $variable): bool;", "public static function valueIsValid($_value)\n\t{\n\t\treturn in_array($_value,array(self::VALUE_HIGH,self::VALUE_LOW,self::VALUE_CUSTOMCODE));\n\t}", "public function isValidRuleCriteria($value){\n if(strcmp($value,\"Weight\")\n || strcmp($value,\"Price\")\n ) {\n return true;\n }\n return false;\n }", "public function isValid($value)\r\n {\r\n return true;\r\n }", "abstract function validate(mixed $value) : bool;", "public static function valueIsValid($_value)\r\n\t{\r\n\t\treturn in_array($_value,array(PayPalEnumUnitCodeType::VALUE_KG,PayPalEnumUnitCodeType::VALUE_LBS,PayPalEnumUnitCodeType::VALUE_OZ,PayPalEnumUnitCodeType::VALUE_CM,PayPalEnumUnitCodeType::VALUE_INCHES,PayPalEnumUnitCodeType::VALUE_FT,PayPalEnumUnitCodeType::VALUE_CUSTOMCODE));\r\n\t}", "protected final function __validateValue($name, $value) {\n\t\tif(array_key_exists($name, $this->attributes)) {\n\t\t\t$datatype = $this->__getAttributeByName($name)->getType();\n\t\t}\n\t\t\n\t\t// check if the attribute is required\n\t\t$required = $this->__getAttributeByName($name)->isRequired();\n\n\t\t// if the value is empty and not required return a success\n\t\tif(!$required && (strlen($value) == 0)) {\n\t\t\treturn true;\n\t\t}\n\n\t\t// if the value is required and empty return a fault\n\t\tif($required && (strlen($value) == 0)) {\n\t\t\treturn false;\n\t\t}\n\n\t\tif($datatype == \"UNDEFINED\") {\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\t// check if the value is valid for the attribute\n\t\treturn preg_match(WAT_OP_AttributeTypes::getRegex($datatype), $value);\n\t}", "public static function valueIsValid($_value)\n\t{\n\t\treturn in_array($_value,array(self::VALUE_SUCCESS,self::VALUE_PENDING,self::VALUE_INVALIDURL,self::VALUE_INVALIDPROTOCOL,self::VALUE_INVALIDFILE,self::VALUE_SERVERDOWN,self::VALUE_IMAGENONEXISTENT,self::VALUE_IMAGEREADTIMEOUT,self::VALUE_INVALIDFILEFORMAT,self::VALUE_IMAGEPROCESSINGERROR,self::VALUE_CUSTOMCODE));\n\t}", "public static function valueIsValid($_value)\n\t{\n\t\treturn in_array($_value,array(self::VALUE_VALID,self::VALUE_NOLONGERVALID,self::VALUE_CUSTOMCODE));\n\t}", "public function getIsValidValue($value)\r\n {\r\n return true;\r\n }", "public function passes($attribute, $value)\n {\n// dd($value, $attribute);\n $phoneUtil = \\libphonenumber\\PhoneNumberUtil::getInstance();\n try {\n $phoneUtil->parse($value);\n return true;\n } catch (\\libphonenumber\\NumberParseException $e) {\n return false;\n }\n }", "public static function valueIsValid($_value)\n\t{\n\t\treturn in_array($_value,array(self::VALUE_NOTCOMPLETE,self::VALUE_COMPLETE));\n\t}", "public static function valueIsValid($_value)\n\t{\n\t\treturn in_array($_value,array(self::VALUE_FEDEXSTANDARDLIST,self::VALUE_FEDEXCOUNTER,self::VALUE_CUSTOMCODE));\n\t}", "public function validate($name, $value) {\n if(in_array($name, $this->strings)) {\n if(is_string($value)) {\n return true;\n }\n } else if(in_array($name, $this->booleans)) {\n if(is_bool($value)) {\n return true;\n }\n } else if(in_array($name, $this->integers)) {\n if(is_numeric($value)) {\n return true;\n }\n }\n return false;\n }", "public static function valueIsValid($_value)\n\t{\n\t\treturn in_array($_value,array(self::VALUE_TOPIC,self::VALUE_AUTHOR,self::VALUE_SOURCE,self::VALUE_COLLECTIONCODE,self::VALUE_KEYWORDS,self::VALUE_AFFILIATION,self::VALUE_DATE));\n\t}", "public static function valueIsValid($_value)\n\t{\n\t\treturn in_array($_value,array(self::VALUE_ALL,self::VALUE_SEC,self::VALUE_BUSINESSWIRE,self::VALUE_PRNEWSWIRE,self::VALUE_MARKETWIRE,self::VALUE_CNW));\n\t}", "public function passes($attribute, $value)\n {\n // if ($this->id != NULL) {\n // @$phoneUser = User::where('phone', $this->phone)->first();\n // @$phoneCustomer = Customer::where('phone', $this->phone)->first();\n\n // if ($phoneUser or $phoneCustomer) {\n // @$dbuser = @$phoneUser->id;\n // @$dbcust = @$phoneCustomer->id;\n \n // if (($this->id != @$dbuser) or ($this->id != @$dbcust)) {\n\n // return $this->fail(\"Phone number already exist.\".@$dbuser.','.@$dbcust);\n // }\n \n // }\n \n \n // }\n\n\n if (strlen($this->phone) < 10) {\n\n return $this->fail(\"Phone number must be exactly 10 digits.\");\n\n }\n\n if( preg_match(\"#\\W+#\", $this->phone) ) {\n\n return $this->fail(\"Phone number must not include a symbol!\");\n\n }\n\n if( preg_match(\"#[a-z]+#\", $this->phone) ) {\n\n return $this->fail(\"Phone number must not include a letter!\");\n\n }\n\n if( preg_match(\"#[A-Z]+#\", $this->phone) ) {\n\n return $this->fail(\"Phone number must not include a letter!\");\n\n }\n\n return true;\n }" ]
[ "0.768703", "0.73858905", "0.71478957", "0.6970302", "0.6752566", "0.6722659", "0.6716878", "0.66429245", "0.66121215", "0.6595651", "0.65841115", "0.6535868", "0.6529452", "0.65179724", "0.64966047", "0.6487393", "0.6487393", "0.64780486", "0.64280945", "0.6424232", "0.6396126", "0.63325375", "0.6274414", "0.6272427", "0.6254813", "0.6254813", "0.6245973", "0.62109", "0.61662024", "0.6164629", "0.6154189", "0.61361057", "0.6109114", "0.6098487", "0.60880554", "0.6086881", "0.6085552", "0.6071865", "0.6069305", "0.60688996", "0.6048582", "0.6043199", "0.6043199", "0.6043199", "0.6043199", "0.6042772", "0.60388464", "0.6019544", "0.599576", "0.59650946", "0.5952708", "0.59417814", "0.59403104", "0.5940153", "0.59388447", "0.59320915", "0.5931408", "0.5910645", "0.59082603", "0.5906707", "0.59020144", "0.58950144", "0.5876437", "0.5873393", "0.58486706", "0.5839943", "0.58323115", "0.5830255", "0.5824447", "0.58043987", "0.5783899", "0.5780034", "0.5779383", "0.5777886", "0.5774917", "0.576796", "0.57650495", "0.576333", "0.57620174", "0.5761461", "0.5750134", "0.5749738", "0.5743479", "0.573095", "0.57306564", "0.5730426", "0.5726132", "0.57175285", "0.571745", "0.57106096", "0.57068753", "0.5705422", "0.5702457", "0.56997204", "0.56949306", "0.5691578", "0.56915736", "0.56891984", "0.5688992", "0.56883985", "0.5682487" ]
0.0
-1
/ Initialize action controller here
public function init() { $this->dbAdapter = Zend_Db_Table::getDefaultAdapter(); $this->currdate = date("Y-m-d H:i:s");//$date->toString('Y-m-d H:m:s'); $auth = Zend_Auth::getInstance(); $authStorage = $auth->getStorage(); if(isset($authStorage->read()->WebLoginID)){ $this->WebLoginID = $authStorage->read()->WebLoginID; $users = new Application_Model_Users(); $logout_details = $users->getUserLoginDetailByWebLoginCode($this->WebLoginID); $this->view->last_login = $logout_details['login_time']; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function init()\n {\n /* Initialize action controller here */\n }", "public function init()\n {\n /* Initialize action controller here */\n }", "protected function initializeController() {}", "protected function initializeAction() {}", "protected function initializeAction() {}", "protected function initializeAction() {}", "protected function initAction()\n {\n }", "protected function initializeAction() {\n\t\t/* Merge flexform and setup settings\n\t\t * \n\t\t */\n\t\t$this->settings['action'] = $this->actionMethodName;\n\t}", "public function initializeAction() {}", "public function initializeAction() {}", "public function initializeAction() {}", "public function initializeAction() {}", "public function initializeAction() {}", "public function initializeAction() {\n\n\t}", "public function __construct(){\r\n $app = Application::getInstance();\r\n $this->_controller = $app->getController();\r\n }", "protected function initializeAction() {\n\t\t$this->akismetService->setCurrentRequest($this->request->getHttpRequest());\n\t}", "public function __construct($controller,$action) {\n\t\tparent::__construct($controller, $action);\n\t\t\n\t}", "public function init()\n {\n $controller = $this->router->getController();\n $action = $this->router->getAction();\n $params = $this->router->getParams();\n\n $objController = registerObject($controller);\n\n call_user_func_array([$objController, $action], $params);\n }", "public function __construct($controller, $action) {\n parent::__construct($controller, $action); //parent is Controller.php\n }", "protected function initAction()\r\n {\r\n $return = false;\r\n\r\n // parse request URI\r\n $parts_url = parse_url(strtolower(trim($_SERVER['REQUEST_URI'], '/')));\r\n // @TODO: fix\r\n $parts_url_array = explode('/', $parts_url['path']);\r\n list($this->controllerName, $this->itemId) = $parts_url_array;\r\n\r\n // parse method\r\n $this->requestMethod = strtolower($_SERVER['REQUEST_METHOD']);\r\n\r\n switch ($this->requestMethod) {\r\n case 'get':\r\n // default actions for GET\r\n if ($this->controllerName == 'login' || $this->controllerName == 'logout') {\r\n $this->actionName = $this->controllerName;\r\n $this->controllerName = 'users';\r\n } elseif (is_null($this->itemId)) {\r\n $this->actionName = 'index';\r\n } else {\r\n $this->actionName = 'view';\r\n }\r\n break;\r\n case 'post':\r\n // default action for POST\r\n $this->actionName = 'add';\r\n break;\r\n case 'put':\r\n // default action for PUT\r\n $this->actionName = 'edit';\r\n break;\r\n case 'delete':\r\n // default action for DELETE\r\n $this->actionName = 'delete';\r\n break;\r\n }\r\n\r\n if (!$this->controllerName) {\r\n $this->controllerName = 'main';\r\n }\r\n if (!$this->actionName) {\r\n $this->actionName = 'index';\r\n }\r\n\r\n // get, check & requre class\r\n $className = sprintf('mob%s', ucfirst($this->controllerName));\r\n $className = 'pages\\\\' . $className;\r\n \r\n if (class_exists($className)) {\r\n //create a instance of the controller\r\n $this->controller = new $className();\r\n\r\n //check if the action exists in the controller. if not, throw an exception.\r\n $actionName = sprintf('action%s', ucfirst($this->actionName));\r\n if (method_exists($this->controller, $actionName) !== false) {\r\n $this->action = $actionName;\r\n // set request params\r\n if ($this->itemId) {\r\n $this->controller->setParams(array('id' => $this->itemId));\r\n }\r\n $this->controller->setRequestParams($this->requestMethod);\r\n\r\n $return = true;\r\n } else {\r\n $this->controller->httpStatusCode = HTTP_STATUS_METHOD_NOT_ALLOWED;\r\n// throw new \\Exception('Action is invalid.');\r\n }\r\n } else {\r\n $this->controller = new clsMobController();\r\n $this->controller->httpStatusCode = HTTP_STATUS_NOT_FOUND;\r\n// throw new \\Exception('Controller class is invalid.');\r\n }\r\n\r\n return $return;\r\n }", "public function __construct()\n {\n // Prepare the action for execution, leveraging constructor injection.\n }", "public function __construct() {\n // filter controller, action and params\n $url = filter_input(INPUT_GET, 'url', FILTER_SANITIZE_URL); // $_GET['url']\n $params = explode('/', trim($url, '/'));\n\n // store first and seccond params, removing them from params list\n $controller_name = ucfirst(array_shift($params)); // uppercase classname\n $action_name = array_shift($params);\n\n require_once APP . 'config.php';\n\n // default controller and action\n if (empty($controller_name)) {\n $controller_name = AppConfig::DEFAULT_CONTROLLER;\n }\n if (empty($action_name)) {\n $action_name = AppConfig::DEFAULT_ACTION;\n }\n\n // load requested controller\n if (file_exists(APP . \"Controller/$controller_name.php\")) {\n require CORE . \"Controller.php\";\n require CORE . \"Model.php\";\n require APP . \"Controller/$controller_name.php\";\n $controller = new $controller_name();\n\n // verify if action is valid\n if (method_exists($controller, $action_name)) {\n call_user_func_array(array($controller, $action_name), $params);\n $controller->render(\"$controller_name/$action_name\"); // skipped if already rendered\n } else {\n // action not found\n $this->notFound();\n }\n } else {\n // controller not found\n $this->notFound();\n }\n }", "public static function init() {\n\t\tself::setup_actions();\n\t}", "protected function initializeAction()\n\t{\n\t\tparent::init('Form');\n\t}", "public function initController()\n {\n $this->model = new AliveSettingServiceMeta();\n\n $this->middleware([\n\n ]);\n }", "public function init() {\n\n $this->jobs = new Hb_Jobs();\n if ($this->_request->getActionName() == 'view') {\n\n $this->_request->setActionName('index');\n }\n\n $this->searchParams = $this->_request->getParams();\n $this->view->searchParams = $this->searchParams;\n\n $this->view->actionName = $this->_request->getActionName();\n }", "protected function initializeAction()\n {\n $this->extKey = GeneralUtility::camelCaseToLowerCaseUnderscored('BwrkOnepage');\n /** @var LanguageAspect $languageAspect */\n $languageAspect = GeneralUtility::makeInstance(Context::class)->getAspect('language');\n $this->languageUid = $languageAspect->getId();\n }", "protected function initializeAction()\n {\n parent::initializeAction();\n $this->customer = SubjectResolver::get()\n ->forClassName(Customer::class)\n ->forPropertyName('user')\n ->resolve();\n }", "public function initialize()\n {\n parent::initialize();\n $this->loadComponent('RequestHandler');\n $this->loadComponent('Flash');\n $this->loadComponent('Cookie');\n $this->cors();\n\n $currentController = $this->request->getParam('controller');\n // pr($currentController); die();\n if($currentController == 'Tenants'){\n $currentController = 'TenantUsers';\n }\n if($currentController == 'CorporateClients'){\n $currentController = 'CorporateClientUsers';\n // pr($currentController);die();\n }\n // $currentController = $this->request->params['controller'];\n $loginAction = $this->Cookie->read('loginAction');\n if(!$loginAction){\n $loginAction = ['controller' => $currentController,'action' => 'login'];\n }\n // pr($loginAction);die;\n $this->loadComponent('Auth',[\n 'loginAction' => ['controller' => $currentController,'action' => 'login'],\n 'authenticate' => [\n 'Form' =>\n [\n 'userModel' => $currentController,\n 'fields' => ['username' => 'email', 'password' => 'password']\n ]\n ],\n 'authorize'=> ['Controller'],\n 'loginAction' => $loginAction,\n 'loginRedirect' => $loginAction,\n 'logoutRedirect' => $loginAction \n\n ]);\n // $this->loadComponent('Auth', [\n\n // 'unauthorizedRedirect' => false,\n // 'checkAuthIn' => 'Controller.initialize',\n\n // // If you don't have a login action in your application set\n // // 'loginAction' to false to prevent getting a MissingRouteException.\n // 'loginAction' => false\n // ]);\n /*\n * Enable the following components for recommended CakePHP security settings.\n * see https://book.cakephp.org/3.0/en/controllers/components/security.html\n */\n }", "public function init() {\n\t\t$this->load_actions();\n\t}", "public function init()\r\n {\r\n\r\n /* Initialize action controller here */\r\n\r\n //=====================================must add in all Controller class constructor ===================================//\r\n if(defined('SITEURL')) $this->site_url = SITEURL;\r\n if(defined('SITEASSET')) $this->site_asset = SITEASSET;\r\n $this->view->site_url = $this->site_url;\r\n $this->view->site_asset = $this->site_asset;\r\n Zend_Loader::loadClass('Signup');\r\n Zend_Loader::loadClass('User');\r\n Zend_Loader::loadClass('Request');\r\n //Zend_Loader::loadClass('mailerphp');\r\n\t\t//Zend_Loader::loadClass('Permission');\r\n\r\n\r\n //-----------------------------------------------authenticate logged in user---------------------------------------------//\r\n Zend_Loader::loadClass('LoginAuth');\r\n $this->view->ob_LoginAuth = $this->sessionAuth = new LoginAuth();\r\n\r\n $this->sessionAuth->login_user_check();\r\n\r\n $this->sessionAuth->cookie_check();\r\n $this->view->server_msg = $this->sessionAuth->msg_centre();\r\n\r\n //-----------------------------------------------authenticate logged in user---------------------------------------------//\r\n unset($_SESSION['tranzgo_session']['export_list']);\r\n $this->view->ControllerName = $this->_request->getControllerName();\r\n $this->view->page_id = ($_SESSION['tranzgo_session']['role_id']==1)?'5':'7';\r\n //______________________________________must add in all Controller class constructor _____________________________________//\r\n\r\n\r\n }", "public function __construct() {\n\t\t\t$this->init_globals();\n\t\t\t$this->init_actions();\n\t\t}", "public function __construct()\n\t{\n\t\t$this->actionable = \"\";\n\t\t$this->action_taken = \"\";\n\t\t$this->action_summary = \"\";\n\t\t$this->resolution_summary = \"\";\n\t\t\n\t\t// Hook into routing\n\t\tEvent::add('system.pre_controller', array($this, 'add'));\n\t}", "public function __init()\n\t{\n\t\t// This code will run before your controller's code is called\n\t}", "function __construct()\n\t\t{\n\t\t\tparent::__construct();\n\t\t\t$this->_actionModel = new Action_Model();//khoi tao class\n\t\t}", "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}", "protected function initializeAction() {\t\n\t\t$this->persdataRepository = t3lib_div::makeInstance('Tx_PtConference_Domain_Repository_persdataRepository');\n\t}", "public function __construct()\n\t{\n\t\t$this->actionable = \"\";\n\t\t$this->action_taken = \"\";\n\t\t$this->action_summary = \"\";\n\t\t$this->media_values = array(\n\t\t\t101 => Kohana::lang('ui_main.all'),\n\t\t\t102 => Kohana::lang('actionable.actionable'),\n\t\t\t103 => Kohana::lang('actionable.urgent'),\n\t\t\t104 => Kohana::lang('actionable.action_taken')\n\t\t);\n\t\t// Hook into routing\n\t\tEvent::add('system.pre_controller', array($this, 'add'));\n\t}", "public function __construct() {\n\n list($null,$controller, $action, $id) = explode(\"/\", $_SERVER['PATH_INFO']);\n \n $this->urlValues['base'] = \"http://\" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];\n $this->urlValues['controller'] = $controller ? $controller : \"home\";\n $this->urlValues['action'] = $action;\n $this->urlValues['id'] = $id;\n\n $this->controllerName = strtolower($this->urlValues['controller']);\n $this->controllerClass = ucfirst(strtolower($this->urlValues['controller'])) . \"Controller\";\n\n if ($this->urlValues['action'] == \"\") {\n $this->action = \"index\";\n } else {\n $this->action = $this->urlValues['action'];\n }\n }", "protected function _initControllers()\n\t{\n\t\treturn;\n\t}", "public function init()\n {\n $this->vars['CRUD']['Object'] = $this;\n $this->kernel = kernel();\n\n // Dynamic initialization\n if (! $this->modelName) {\n $modelRefl = new ReflectionClass($this->modelClass);\n $this->modelName = $modelRefl->getShortName();\n }\n\n\n if (! $this->crudId) {\n $this->crudId = \\Phifty\\Inflector::getInstance()->underscore($this->modelName);;\n }\n if (! $this->templateId) {\n $this->templateId = $this->crudId;\n }\n\n // Derive options from request\n if ($request = $this->getRequest()) {\n if ($useFormControls = $request->param('_form_controls')) {\n $this->actionViewOptions['submit_btn'] = true;\n $this->actionViewOptions['_form_controls'] = true;\n }\n }\n\n $this->reflect = new ReflectionClass($this);\n $this->namespace = $ns = $this->reflect->getNamespaceName();\n\n // XXX: currently we use FooBundle\\FooBundle as the main bundle class.\n $bundleClass = \"$ns\\\\$ns\";\n if (class_exists($bundleClass)) {\n $this->bundle = $this->vars['Bundle'] = $bundleClass::getInstance($this->kernel);\n } else {\n $bundleClass = \"$ns\\\\Application\";\n $this->bundle = $this->vars['Bundle'] = $bundleClass::getInstance($this->kernel);\n }\n\n $this->vars['Handler'] = $this;\n $this->vars['Controller'] = $this;\n\n // anyway, we have the model classname, and the namespace, \n // we should be able to registerRecordAction automatically, so we don't have to write the code.\n if ($this->registerRecordAction) {\n $self = $this;\n $this->kernel->event->register('phifty.before_action',function() use($self) {\n $self->kernel->action->registerAction('RecordActionTemplate', array(\n 'namespace' => $self->namespace,\n 'model' => $self->modelName,\n 'types' => (array) $self->registerRecordAction\n ));\n });\n }\n\n\n $this->initPermissions();\n\n /*\n * TODO: Move this to before render CRUD page, keep init method simple\n\n if ( $this->isI18NEnabled() ) {\n $this->primaryFields[] = 'lang';\n }\n */\n $this->initNavBar();\n }", "public function _initialize()\n {\n $this->cate=CONTROLLER_NAME;\n }", "protected function initializeActionEntries() {}", "protected function initializeAction() {\n\t\t$this->feusers = $this->feusersRepository->findByUid( $GLOBALS['TSFE']->fe_user->user['uid'] ) ;\n\t\t$this->schule = $this->feusers->getSchule();\n\t\n\t\t$this->extKey = $this->request->getControllerExtensionKey();\n\t\t$this->extPath = t3lib_extMgm::extPath($this->extKey);\n\t\n\t\t$this->importClassFile = $this->extPath.'Classes/tmp/class.importtext.php';\n\t\t$this->importClass = 'ImportText';\n\t \n\t\tif ( $this->settings[pidAjaxContainerKlassenuebersicht] > 0) $this->pidAjaxContainerKlassenuebersicht = (int) $this->settings[pidAjaxContainerKlassenuebersicht];\n\t\n\t}", "public function init(){\r\n\t$this->_helper->_acl->allow('public',NULL);\r\n\t$this->_flashMessenger = $this->_helper->getHelper('FlashMessenger');\r\n\t$this->_contexts = array('xml','json');\r\n\t$this->_helper->contextSwitch()\r\n\t\t->setAutoDisableLayout(true)\r\n\t\t->addActionContext('oneto50k',$this->_contexts)\r\n\t\t->addActionContext('index',$this->_contexts)\r\n\t\t->initContext();\r\n\t}", "private function loadController() : void\n\t{\n\t\t$this->controller = new $this->controllerName($this->request);\n\t}", "public function initBaseController();", "public function init() {\n $this->_flashMessenger = $this->_helper->getHelper('FlashMessenger');\n\t\t$this->_helper->acl->allow('public',null);\n\t\t$this->_helper->contextSwitch()\n\t\t\t ->setAutoDisableLayout(true)\n\t\t\t ->addActionContext('index', array('xml','json'))\n ->initContext();\n\t}", "public function __construct()\n {\n // Call the CI_Controller constructor\n parent::__construct();\n }", "public function __construct()\n\t{\t\t\n\t\t// Hook into routing\n\t\tEvent::add('system.pre_controller', array($this, 'add'));\n\t}", "public function initAction() : object\n {\n /**\n * Show all movies.\n */\n $response = $this->app->response;\n return $response->redirect(\"cms/posts\");\n }", "protected function initializeAction() {\n\t\t$this->frontendUserRepository = t3lib_div::makeInstance('Tx_GrbFeusermanager_Domain_Repository_FrontendUserRepository');\n\t}", "public function contentControllerInit()\n\t{\n\t}", "protected function initializeAction()\n {\n parent::initializeAction();\n\n $query = GeneralUtility::_GET('q');\n if ($query !== null) {\n $this->request->setArgument('q', $query);\n }\n }", "public function __construct()\n {\n $this->setAction('index', array('idle', 'toggleEnabled', 'expunge'));\n }", "public static function init() {\n\t\t$_GET = App::filterGET();\n\t\t\n\t\t// Checken of er params zijn meegegeven\n\t\ttry {\n\t\t\tif (count($_GET) == 0) {\n\t\t\t\t$_GET[0] = '';\n\t\t\t}\n\t\t\t\n\t\t\t// Is de eerste param een controller ? Anders een pageView\n\t\t\tif (self::isController($_GET[0])) {\n\t\t\t\t$controllerName = self::formatAsController($_GET[0]);\n\t\t\t\t$controller = self::loadController($controllerName);\n\t\t\t}\n\t\t\telse {\n\t\t\t\t// Er is sprake van een pageview\n\t\t\t\t$controllerName = 'PagesController';\n\t\t\t\t$controller = self::loadController($controllerName);\n\t\t\t}\n\t\t\t\n\t\t\t$action = self::getAction($controller);\n\t\t\t$controller->setAction($action);\n\n\t\t\t// Try to exec the action\n\t\t\ttry {\n\t\t\t\tself::dispatchAction($controller, $action);\n\t\t\t}\n\t\t\tcatch(ActionDoesNotExistException $ex) {\n\n\t\t\t\techo $action;\n\t\t\t\t// Action bestaat niet\n\t\t\t\t$controller = self::loadController('ErrorController');\n\t\t\t\t\n\t\t\t\t// Als development is ingeschakeld, dan de ware error tonen, anders een 404 pagina\n\t\t\t\tif (Config::DEVELOPMENT)\n\t\t\t\t\t$action = self::formatAsAction('invalidAction');\n\t\t\t\telse\n\t\t\t\t\t$action = self::formatAsAction('notFound');\n\t\t\t\t\t\n\t\t\t\t$controller->setAction($action);\n\t\t\t\tself::dispatchAction($controller, $action);\n\t\t\t}\n\t\t\tcatch(MissingArgumentsException $ex) {\n\t\t\t\t$controller = self::loadController('ErrorController');\n\t\t\t\t\n\t\t\t\t// Als development is ingeschakeld, dan de ware error tonen, anders een 404 pagina\n\t\t\t\tif (Config::DEVELOPMENT)\n\t\t\t\t\t$action = self::formatAsAction('missingArguments');\n\t\t\t\telse\n\t\t\t\t\t$action = self::formatAsAction('notFound');\n\t\t\t\t\t\n\t\t\t\t$controller->setAction($action);\n\t\t\t\tself::dispatchAction($controller, $action);\n\t\t\t}\n\t\t\t\n\t\t\t// Try to render the view\n\t\t\ttry {\n\t\t\t\t$controller->render();\n\t\t\t}\n\t\t\tcatch(ViewDoesNotExistException $ex) {\n\t\t\t\t// View bestaat niet\n\t\t\t\t$controller = self::loadController('ErrorController');\n\t\t\t\tif (Config::DEVELOPMENT)\n\t\t\t\t\t$action = self::formatAsAction('invalidView');\n\t\t\t\telse\n\t\t\t\t\t$action = self::formatAsAction('notFound');\n\t\t\t\t\n\t\t\t\t$controller->setAction($action);\n\t\t\t\tself::dispatchAction($controller, $action);\n\t\t\t\t\n\t\t\t\t$controller->render();\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tcatch(NoValidTemplateException $ex) {\n\t\t\techo 'Invalid template';\n\t\t}\n\t\tcatch(IsNotControllerException $ex) {\n\t\t\techo 'Controller not found';\n\t\t}\n\t}", "public function init()\r\n { \r\n //date_default_timezone_set('America/Phoenix');\r\n $ajaxContext = $this->_helper->getHelper('AjaxContext');\r\n\t$ajaxContext->addActionContext('list', 'html')\r\n ->addActionContext('edit', 'html')\r\n ->addActionContext('dashboard', 'html')\r\n ->addActionContext('handler', 'html')\r\n ->initContext();\r\n $auth = Zend_Auth::getInstance();\r\n $action = Zend_Controller_Front::getInstance()->getRequest()->getActionName();\r\n $type = $this->getRequest()->getParam('type');\r\n if (!$auth->hasIdentity() && $action!='handler') {\r\n //echo \"THIS IS AN ERROR: \".$action;\r\n $this->_redirect('login', array('UseBaseUrl' => true));\r\n }\r\n }", "public function __construct()\n {\n $this->model = new MainModel();\n $this->params[\"pagination\"][\"totalItemsPerPage\"] = 5;\n view()->share ('controllerName', $this->controllerName);//đặt controllerName cho all action\n }", "public function __construct()\n\t{\t\n\t\t// Hook into routing\n\t\tEvent::add('system.pre_controller', array($this, 'add'));\n\t}", "public function __construct()\n\t{\t\n\t\t// Hook into routing\n\t\tEvent::add('system.pre_controller', array($this, 'add'));\n\t}", "public function init() {\n $this->_temporizador = new Trf1_Admin_Timer ();\n $this->_temporizador->Inicio();\n\n /* Initialize action controller here */\n $this->view->titleBrowser = 'e-Sisad';\n }", "public function __construct()\n\t{\n\t\t// Hook into routing\n\t\tEvent::add('system.pre_controller', array($this, 'add'));\n\t}", "function __construct()\n {\n parent::Controller();\n }", "public function controller()\n\t{\n\t\n\t}", "public function init() {\n\t\t\t\t\t\t$this->view->controller = $this->_request->getParam ( 'controller' );\n\t\t\t\t\t\t$this->view->action = $this->_request->getParam ( 'action' );\n\t\t\t\t\t\t$this->getLibBaseUrl = new Zend_View_Helper_BaseUrl ();\n\t\t\t\t\t\t$this->GetModelOrganize = new Application_Model_ModOrganizeDb ();\n\t\t\t\t\t\t$this->_helper->ajaxContext->addActionContext('deleteOrganisme1','json')->initContext();\n\t\t\t\t\t\t// call function for dynamic sidebar\n\t\t\t\t\t\t$this->_Categories = new Application_Model_ModCatTerm ();\n\t\t\t\t\t\t$parent_id = $this->_getParam ( 'controller' );\n\t\t\t\t\t\t$this->view->secondSideBar = $this->_Categories->showCateParent ( $parent_id );\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t}", "public function initializeAction() {\t\t\n\t\t$this->contactRepository = t3lib_div::makeInstance('Tx_Addresses_Domain_Repository_ContactRepository');\t\n\t}", "public function init() {\n\t$this->_flashMessenger = $this->_helper->getHelper('FlashMessenger');\n\t$this->_helper->acl->allow('public',null);\n\t$this->_helper->contextSwitch()\n\t\t->setAutoDisableLayout(true)\n\t\t->addActionContext('index', array('xml','json'))\n\t\t->addActionContext('mint', array('xml','json'))\n\t\t->initContext();\n }", "public function __construct()\n {\n if (get_called_class() != 'ApplicationController') {\n $this->_set_default_layout();\n $this->_vars = new stdClass();\n $this->_init();\n }\n }", "public function initializeAction() {\n parent::initializeAction();\n $this->umDiv = new Tx_Magenerator_Domain_UserManagement_Div();\n }", "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 }", "public function actionInit()\n {\n $this->initRoles($this->roles);\n $this->initPermissions($this->permissions);\n $this->initDependencies($this->dependencies);\n }", "public function getControllerAction() {}", "public function __construct($action = '') {\n\t\t$this->app = Application::app();\n\t\t$this->setAction($action);\n\t}", "function initialize(Controller $controller) {\n $this->controller=&$controller;\n \t}", "public function __construct($controller, $action) {\n parent::__construct($controller, $action);\n $this->loadModel('Baskets');\n $this->loadModel('Orders');\n $this->loadModel('Messages');\n $this->loadModel('Products');\n\n if(Session::exists(BUYER_SESSION_NAME)) {\n $this->view->totalProductInBasket = $this->BasketsModel->countProductInBasket();\n $this->view->totalOrders = $this->OrdersModel->countSentOrder();\n $this->view->msgCount = $this->MessagesModel->unReadMessages();\n } elseif(Session::exists(STORE_SESSION_NAME)) {\n $this->view->msgCount = $this->MessagesModel->unReadMessages();\n $this->view->newOrders = $this->OrdersModel->newOrders(Session::get(STORE_SESSION_NAME));\n }\n\n $this->view->setLayout('details');\n }", "function initialize(Controller $controller) {\n $this->controller = $controller;\n }", "public function __construct() {\n if (isset($_GET['rc'])) {\n $this->url = rtrim($_GET['rc'], '/'); // We don't want no empty arg\n $this->args = explode('/', $this->url);\n }\n \n // Load index controller by default, or first arg if specified\n $controller = ($this->url === null) ? 'null' : array_shift($this->args);\n $this->controllerName = ucfirst($controller);\n\n // Create controller and call method\n $this->route();\n // Make the controller display something\n $this->controllerClass->render();\n }", "public function __construct() {\r\n\t\t\r\n\t\tSession::init();\n\t\tif (!Session::get('local'))\n\t\t\tSession::set('local', DEFAULT_LANGUAGE);\r\n\t\t\r\n\t\t$this->getUrl();\r\n\t\t\r\n\t\t//No controller is specified.\r\n\t\tif (empty($this->url[0])) {\r\n\t\t\t$this->loadDefaultController();\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t$this->loadCurrentController();\r\n\t\t$this->callControllerMethod();\r\n\r\n\t}", "public function __construct() {\n $this->urlValues = $_GET;\n if (!isset($this->urlValues['c'])) {\n $this->controllerName = \"home\";\n $this->controllerClass = \"HomeController\";\n } else {\n $this->controllerName = strtolower($this->urlValues['c']);\n $this->controllerClass = ucfirst(strtolower($this->urlValues['c'])) . \"Controller\";\n }\n \n if (!isset($this->urlValues['a'])) {\n $this->action = \"index\";\n } else {\n $this->action = $this->urlValues['a']; \n }\n }", "public function preAction() {\n $this->apiBrowser = new ApiBrowser();\n\n $basePath = $this->request->getBasePath();\n $this->namespaceAction = $basePath . '/namespace/';\n $this->classAction = $basePath . '/class/';\n $this->searchAction = $basePath . '/search';\n }", "function __construct($controller, $action)\n {\n global $inflect;\n\n $this->renderPage = true;\n $this->renderHeader = true;\n \t\n\t\t$this->requireUser = false;\n\t\t \n $this->_controller = ucfirst($controller);\n $this->_action = $action;\n \n $model = ucfirst($inflect->singularize($controller));\n $this->$model = new $model;\n\n $this->_template = new Template($controller, $action);\n }", "public function init()\n {\n $this->ctrlModel = new Admin_Model_Acl_ControllersActions();\n $this->dbCtrl = new Admin_Model_DbTable_Acl_ModuleController();\n }", "public function setup_actions() {}", "public function init(){\r\n\t\t$this->_data = $this->_request->getParams();\r\n $controller = $this->_data['controller']; //Get controller\r\n $action = $this->_data['action']; //Get action\r\n \r\n $loadfunction = new Default_Model_Common();\r\n foreach($loadfunction->loadFunction($controller) as $value){\r\n if($action == $value['action']){\r\n $load = new $value['model_load']();\r\n $this->view->$value['varname'] = $load->$value['function_load']();\r\n }\r\n }\r\n\r\n $this->view->lang = Zend_Registry::get(\"lang\"); //load language\r\n \r\n //List menu\r\n $listmenu = Zend_Registry::get(\"listmenu\");\r\n $this->view->listmenu = $listmenu;\r\n \r\n $this->view->selectaccount = ' class=\"selected\"';\r\n }", "function __construct() {\n\t\t\n\t\tparent::__construct();\n\t\t\n\t\t// skip the timestamp check for this app\n\t\tSession::check(true);\n\t\t$this->data[\"showActions\"] = true;\n\t\t$this->data[\"csrfToken\"] = CSRF::generateToken();\n\t\t\n\t}", "abstract public function getControllerAction();", "public function _construct($controller,$view){\r\n $this->controller = $controller;\r\n }", "public function initialize()\n { $model= new \\Yabasi\\ModelController();\n $this->setSchema($model->model());\n $this->setSource(\"notification\");\n }", "protected function __construct() {\n\t\t\tadd_action( 'init', array( $this, 'action__init' ), 11 );\n\t\t}", "public function init()\n {\n $this->ctrlActionModel = new Admin_Model_Acl_ControllersActions();\n $this->dbController = new Admin_Model_DbTable_Acl_ModuleController();\n $this->dbAction = new Admin_Model_DbTable_Acl_Action();\n }", "public function init()\n {\n $this->projectController->init();\n }", "function __construct() {\n\t\t\t$this->register_actions();\t\t\n\t\t\t$this->register_filters();\n\t\t}", "public function __construct() {\n // Call Module constructur\n parent::__construct();\n\n // Add additional route\n $this->_actions['GET']['/people/:id'] = 'people';\n }", "public function initialize()\n {\n $model= new \\Yabasi\\ModelController();\n $this->setSchema($model->model());\n $this->setSource(\"refund\");\n }", "function Controller()\n\t{\t\t\n\t\t$this->method = \"showView\";\n\t\tif (array_key_exists(\"method\", $_REQUEST))\n\t\t\t$this->method = $_REQUEST[\"method\"];\n\t\t\t\t\n\t\t$this->icfTemplating = new IcfTemplating();\n\t\t$this->tpl =& $this->icfTemplating->getTpl();\n\t\t$this->text =& $this->icfTemplating->getText();\t\t\n\t\t$this->controllerMessageArray = array();\n\t\t$this->pageTitle = \"\";\n\t\t$this->dateFormat = DateFormatFactory::getDateFormat();\n\t\t$this->controllerData =& $this->newControllerData();\n\t}", "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}", "function __construct($module,$controller,$action) {\n\t\t$this->action = $action;\n\t\t$this->controller = preg_replace('%Controller$%','',$controller);\n\t\t$this->module = $module;\n\n\t\t$jadeCacheDir = J::path(\"App/Cache/Jade/$this->module/$this->controller\");\n\t\t(is_dir($jadeCacheDir)) || mkdir($jadeCacheDir,0777,true);\n\t\t$this->cacheFile = J::path(\"$jadeCacheDir/$this->action.php\");\n\t\t$this->viewFile = J::path(\"App/Modules/$this->module/Views/$this->controller/$this->action.jade\");\n\t}", "public function __construct()\n {\n $url = $this->getUrl();\n // Look in controllers folder for first value and ucwords(); will capitalise first letter \n if (isset($url[0]) && file_exists('../app/controllers/' . ucwords($url[0]) . '.php')) {\n $this->currentController = ucwords($url[0]); // Setting the current controllers name to the name capitilised first letter\n unset($url[0]); \n }\n\n // Require the controller\n require_once '../app/controllers/' . $this->currentController . '.php';\n // Taking the current controller and instantiating the controller class \n $this->currentController = new $this->currentController;\n // This is checking for the second part of the URL\n if (isset($url[1])) {\n if (method_exists($this->currentController, $url[1])) { // Checking the seond part of the url which is the corresponding method from the controller class\n $this->currentMethod = $url[1];\n unset($url[1]);\n }\n }\n\n // Get params, if no params, keep it empty\n $this->params = $url ? array_values($url) : []; \n\n // Call a callback with array of params\n call_user_func_array([$this->currentController, $this->currentMethod], $this->params);\n }", "public function __construct() {\n\t\tparent::__construct();\n\t\t$this->view = new ViewController();\t\t\n\t}", "public function __construct()\n {\n $this->controller = new Controller;\n $this->error_message = 'bad request or duplicate data';\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 }" ]
[ "0.89566046", "0.89566046", "0.82057846", "0.80040884", "0.80040884", "0.8004028", "0.7928566", "0.7802862", "0.7750365", "0.7750365", "0.7750365", "0.7750365", "0.7750365", "0.7741994", "0.76497424", "0.7542271", "0.7541656", "0.7458589", "0.7430627", "0.7382884", "0.73493266", "0.73307425", "0.7321889", "0.73055863", "0.7295852", "0.7274981", "0.72531754", "0.7246773", "0.7212456", "0.72057885", "0.71661454", "0.71535975", "0.7130195", "0.7116122", "0.70873964", "0.7080964", "0.7078719", "0.70654655", "0.7053619", "0.7048942", "0.7036025", "0.7028192", "0.6996098", "0.69914645", "0.6983108", "0.69822043", "0.6978827", "0.69710267", "0.69653803", "0.6934731", "0.69341296", "0.6926329", "0.692468", "0.69113386", "0.6909758", "0.6896174", "0.68904704", "0.6874338", "0.68700373", "0.68700373", "0.6862786", "0.6847179", "0.6844484", "0.68443036", "0.68056643", "0.6804595", "0.68018633", "0.67917275", "0.6769771", "0.676602", "0.6765842", "0.67582476", "0.67257833", "0.6721477", "0.6721169", "0.67196625", "0.67082113", "0.6707143", "0.6706214", "0.67023355", "0.6700337", "0.669937", "0.6695276", "0.66930395", "0.6692887", "0.6688026", "0.66866106", "0.66839683", "0.6674853", "0.6667438", "0.6658782", "0.66509074", "0.6642763", "0.66400504", "0.6634305", "0.6610988", "0.6610453", "0.66071516", "0.66062886", "0.6600459", "0.6599095" ]
0.0
-1
changePassword() method is used to admin chnage the password
public function changePasswordAction() { $this->checklogin(); // get adapter $dbAdapter = $this->dbAdapter; $users = new Application_Model_Users(); $form = new Application_Form_Password(); $errorMessage = ""; $successMessage = ""; $this->view->form = $form; if($this->getRequest()->isPost()){ if($form->isValid($_POST)){ $data = $form->getValues(); $old_pass = $data['old_pass']; $password = $data['password']; $cpassword = $data['cpassword']; //Admin session data $auth = Zend_Auth::getInstance(); $authStorage = $auth->getStorage(); $id = $authStorage->read()->id; $WebLoginID = $authStorage->read()->WebLoginID; $user_password = $authStorage->read()->Password; if($old_pass != $user_password) { $this->view->errorMessage = "Old password does not match"; } if($password != $cpassword) { $this->view->errorMessage = "Confirm password does not match with new password"; } if($password == $cpassword && $old_pass == $user_password) { $updateData = array(); $updateData['Password'] = $password; $where = array('LoginID = ?'=>$LoginID); $result = $users->updateChangePasswordByStaffCode($updateData,$where); Zend_Auth::getInstance()->getStorage()->write( $authStorage->read(), array('Password' => $password) ); $authStorage->read()->Password = $password; $this->view->successMessage = "Password has been changed successfully."; } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function changePassword() {}", "public function changeUserPassword($uid,$newPassword);", "public function setPassword($newPassword){\n\t}", "public function setPassword($newPassword);", "function regiomino_user_change_password($account, $password) {\r\n\t//watchdog('pwdaction', '@password', array('@password' => $password));\r\n $edit['pass'] = $password;\r\n user_save($account, $edit);\r\n}", "private function changePassword()\n {\n try\n {\n global $userquery; \n\n $request = $_REQUEST;\n\n if(!userid())\n throw_error_msg(\"Please login to perform this action\");\n\n if(!isset($request['old_pass']) || $request['old_pass']==\"\")\n throw_error_msg(\"provide old_pass\");\n\n //new_pass\n if(!isset($request['new_pass']) || $request['new_pass']==\"\")\n throw_error_msg(\"provide new_pass\");\n\n //c_new_pass\n if(!isset($request['c_new_pass']) || $request['c_new_pass']==\"\")\n throw_error_msg(\"provide c_new_pass\");\n\n if($request['c_new_pass']!=$request['c_new_pass'])\n throw_error_msg(\"new password and confirm password do not match\");\n\n $request['userid'] = userid();\n $userquery->change_password($request);\n\n if( error() )\n {\n throw_error_msg(error('single')); \n }\n else\n {\n $data = array('code' => \"204\", 'status' => \"success\", \"msg\" => \"success\", \"data\" => \"password has been changed successfully\");\n $this->response($this->json($data)); \n } \n\n }\n catch(Exception $e)\n {\n $this->getExceptionDelete($e->getMessage());\n }\n }", "public function change(string $password): void;", "public function change_password()\n\t{\n\t\t$this->load->model('admin_user_model', 'admin_users');\n\t\t$updated = $this->admin_users->change_password($this->mUser->id, $this->input->post('new_password'));\n\n\t\tif ($updated)\n\t\t{\n\t\t\tset_alert('success', 'Successfully changed password.');\n\t\t}\n\t\telse\n\t\t{\n\t\t\tset_alert('danger', 'Failed to changed password.');\n\t\t}\n\n\t\tredirect('admin/account');\n\t}", "public function changeAdminUserPassword() {\n\t\t$data = $this->request->data['User'];\n\n\t\t$this->User->id = $userId = $data['id'];\n\t\tif ($this->User->saveField('password', $data['new_password'])) {\n\t\t\t$isPasswordChanged = ($data['current_password'] !== $data['new_password']) ? true : false;\n\t\t\tif ($isPasswordChanged && ($userId !== $this->Auth->User('id'))) {\n\t\t\t\t$this->__sendPasswordChangedEmail($data);\n\t\t\t}\n\t\t\t$this->Session->setFlash(__('Password changed successfully.'), 'success');\n\t\t} else {\n\t\t\t$this->Session->setFlash(__('Could not change the password due a server problem, try again later.'), 'error');\n\t\t}\n\n\t\t$this->redirect('/admin/users/editAdmin/' . $userId);\n\t}", "public function changePassword($username, $password);", "public function changePassword(User $user, string $newPassword): void;", "Public Function changePassword($NewPassword)\n\t{\n\t\t$this->_db->exec(\"UPDATE bevomedia_user SET Password = md5('$NewPassword') WHERE ID = $this->id\");\n\t}", "protected function changePassword()\n {\n if (empty($this->password)) {\n return;\n }\n $this->validateOnly('password', ['password' => 'min:8|confirmed']);\n $this->user->update([\n 'password' => Hash::make($this->password),\n ]);\n $this->password = null;\n $this->password_confirmation = null;\n }", "public function change_password()\n {\n $view_data = [\n 'form_errors' => []\n ];\n // Check input data\n if ($this->input->is_post()) {\n\n // Call API to register for parent\n $res = $this->_api('user')->change_password($this->input->post());\n\n if ($res['success'] && !isset($res['invalid_fields'])) {\n $this->_flash_message('パスワードを変更しました');\n redirect('setting');\n return;\n }\n // Show error if form is incorrect\n $view_data['form_errors'] = $res['invalid_fields'];\n $view_data['post'] = $this->input->post();\n }\n\n $this->_render($view_data);\n }", "public function change_password() {\n\t\tif (!empty($this->request->data)) {\n\t\t\t$this->request->data['User']['id'] = $this->Auth->user('id');\n\t\t\tif ($this->User->changePassword($this->request->data)) {\n\t\t\t\t$this->Session->setFlash(__('Password changed.', true));\n\t\t\t\t$this->redirect('/');\n\t\t\t}\n\t\t}\n\t}", "private function __changePassword() {\n\t\t$data = $this->request->data['User'];\n\t\t$this->User->id = $this->Auth->user('id');\n\t\tif ($this->User->saveField('password', $data['new_password'])) {\n\t\t\t$this->Session->setFlash(__('Your password changed successfully.'), 'success');\n\t\t\t$this->redirect($this->referer());\n\t\t} else {\n\t\t\t$this->Session->setFlash(__('Could not change your password due to a server problem, try again later.'), 'error');\n\t\t}\n\t}", "public function changePassword()\n {\n if( ! Session::isLoggedIn() )\n {\n SCMUtility::frontRedirectTo('?page=scmCourseModule&state=Front&action=myAccount');\n return;\n }\n\n $user = User::find(Session::getCurrentUserID());\n\n View::make('templates/front/change-password.php',array());\n }", "public function changePassword()\n {\n $breadCrumb = $this->userEngine->breadcrumbGenerate('change-password');\n\n return $this->loadPublicView('user.change-password', $breadCrumb['data']);\n }", "public function change_password()\n {\n $currentPassword = $this->input->post('currentPassword');\n $newPassword = $this->input->post('newPassword');\n\n $isPasswordChanged = $this->CustomModel->changePassword(\n $_SESSION['u_id'], $currentPassword, $newPassword\n );\n\n if ($isPasswordChanged) {\n echo 'success';\n }\n }", "public function account_change_password()\n\t{\n\t\t$data = array('password' => $this->input->post('new_password'));\n\t\tif ($this->ion_auth->update($this->mUser->id, $data))\n\t\t{\n\t\t\t$messages = $this->ion_auth->messages();\n\t\t\t$this->system_message->set_success($messages);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$errors = $this->ion_auth->errors();\n\t\t\t$this->system_message->set_error($errors);\n\t\t}\n\n\t\tredirect('admin/panel/account');\n\t}", "public function changePassword()\n {\n $this->validateOnly('password', [\n 'password' => 'bail|nullable|required_with:password_confirmation|string|confirmed',\n 'current_password' => 'bail|required',\n ]);\n\n if (!Hash::check($this->current_password, $this->user->password)) {\n $this->addError('current_password', 'Your current password is incorrect.');\n return;\n }\n\n $this->user->password = bcrypt($this->password);\n $this->user->save();\n $this->toast('Password has been changed!', 'success');\n $this->emit('password-updated');\n $this->reset(['password', 'password_confirmation', 'current_password']);\n }", "public function change_pass()\n\t{\n\t\t$form = array();\n\n\t\t$form['validation']['params'] = array('password_old', 'password', 'password_confirm');\n\n\t\t$form['submit'] = function ($params) {\n\t\t\treturn $this->_change_pass_submit();\n\n\n\t\t};\n\n\t\t$form['form'] = function () {\n\t\t\tpage_info('title', lang('title_change_pass'));\n\n\t\t\t$this->_display();\n\t\t};\n\n\t\t$this->_form($form);\n\t}", "public function actionChangePassword()\n {\n $username = $this->prompt(Console::convertEncoding(Yii::t('app', 'Username')) . ':', ['required' => true]);\n $model = $this->findModel($username);\n $model->setPassword($this->prompt(Console::convertEncoding(Yii::t('app', 'New password')) . ':', [\n 'required' => true,\n 'pattern' => '#^.{4,255}$#i',\n 'error' => Console::convertEncoding(Yii::t('app', 'More than {:number} symbols', [':number' => 4])),\n ]));\n $this->log($model->save());\n }", "public function Change_user_password() {\n\t\t$this->load->helper('pass');\n\t\t$user = $this->administration->getMyUser($this->user_id);\n\t\t//password\n\t\t$old_pass = $this->input->post('oldPassword');\n\t\t$newPass = $this->input->post('newPassword');\n\t\t$confirmNewPass = $this->input->post('confirmNewPassword');\n\t\tif($newPass == $confirmNewPass) {\n\t\t\t//check if old password is corrent\n\t\t\t$verify = $this->members->validateUser($user->Username,$old_pass);\n\t\t\tif($verify) {\n\t\t\t\t//validate if the password is in the correct format\n\t\t\t\t$valid_new_pass = checkPasswordCharacters($newPass);\n\t\t\t\tif($valid_new_pass) {\n\t\t\t\t\t$change_pass = $this->members->simple_pass_change($user->ID,$newPass);\n\t\t\t\t\tif($change_pass) {\n\t\t\t\t\t\techo '1';\n\t\t\t\t\t}else {\n\t\t\t\t\t\techo '6';\t\n\t\t\t\t\t}\n\t\t\t\t}else {\n\t\t\t\t\techo '7';\t\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\techo '8';\t\n\t\t\t}\n\t\t}else {\n\t\t\techo '9';\t\n\t\t}\n\t}", "function change_password($password){\n\t\tif( isset($_POST[$password]) ){\n\t\t\t$new_password = $_POST[$password];\n\n\t\t\t$result = user::change_password($new_password);\n\t\t}\n\t}", "public function actionchangePassword() {\n if (isset($_POST['password'])) {\n\n $userid = Yii::app()->user->getState('userid');\n $model = HhUsers::model()->findByPk($userid);\n if ($model->password == md5($_POST['password'])) {\n\n $model->password = md5($_POST['newpassword']);\n if ($model->save()) {\n $this->redirect('index');\n }\n }\n }\n $this->render('changePassword');\n }", "public function change_password($password)\n\t{\n\t\t$password = $this->_hash($password);\n\n\t\t$this->CI->db->where('admin_id', $this->CI->session->userdata('id'))\n\t\t\t\t\t ->set('password', $password)\n\t\t\t\t\t ->update('admin');\n\n\t\t$this->_delete_hash();\n\t}", "public function account_change_password()\n\t{\n\t\t$user_session = $this->session->all_userdata();\n\t\t$user_id = $user_session['user_id'];\n\t\t\n\t\t// print_r($user_id);\n\t\t// die;\n\n\t\t$new_password = $this->input->post('new_password');\n\t\t$retype_password = $this->input->post('retype_password');\n\n\t\tif ($new_password != $retype_password)\n\t\t{\n\t\t\t$this->system_message->set_error(\"Password Miss Match\");\n\n\t\t}\n\t\telse{\n\t\t\t$data = array('password' => $this->input->post('new_password'));\n\t\t\tif (!empty($new_password) && !empty($retype_password))\n\t\t\t{\n\t\t\t\tif ($this->ion_auth->update($this->mUser->id, $data))\n\t\t\t\t{\n\t\t\t\t\t$this->custom_model->my_update(array('password_show'=>$new_password),array('id' => $user_id),'admin_users');\n\t\t\t\t\techo \"success\"; die;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\techo \"error\"; die;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\techo \"error\"; die;\n\t\t\t}\n\t\t}\n\t\t\n\t}", "function change_password()\n {\n if ($user = $this->authorized(USER))\n {\n $descriptive_names = array(\n 'current_password' => 'Current Password',\n 'new_password' => 'New Password',\n 'new_password_confirm' => 'Confirm Password'\n );\n\n $rules = array(\n 'current_password' => ($user['group_id']==0)?'clean':'required|clean',\n 'new_password' => 'required|clean',\n 'new_password_confirm' => 'required|clean'\n );\n\n $this->loadLibrary('form.class');\n $form = new Form();\n\n $form->dependencies['title'] = \"Change Password\";\n $form->dependencies['form'] = 'application/views/change-password.php';\n $form->dependencies['admin_reset'] = false;\n $form->dependencies['client_id'] = $user['id'];\n $form->form_fields = $_POST;\n $form->descriptive_names = $descriptive_names;\n $form->view_to_load = 'form';\n $form->rules = $rules;\n\n if ($fields = $form->process_form())\n {\n\n $this->loadModel('UserAuthentication');\n\n\n if ($this->UserAuthentication->change_password($user['id'], $fields['current_password'], $fields['new_password'], $fields['new_password_confirm']))\n {\n $this->alert(\"Password Updated\", \"success\");\n $this->redirect(\"portal/home\");\n }\n else\n {\n $this->alert(\"Error: Password Not Updated\", \"error\");\n $this->redirect(\"portal/home\");\n }\n }\n }\n }", "public function change_password()\n\t{\n\t \n\t \n \t\t/* Breadcrumb Setup Start */\n\t\t\n\t\t$link = breadcrumb();\n\t\t\n\t\t$data['breadcrumb'] = $link;\n\t\t\n\t\t/* Breadcrumb Setup End */\n\t\n\t\t$data['page_content']\t=\t$this->load->view('changepwd',$data,true);\n\t\t$this->load->view('page_layout',$data);\n\t}", "function changepassword() \n\t{\n // on the action being rendered\n $this->viewData['navigationPath'] = $this->getNavigationPath('users');\n $this->viewData['hash'] =User::userid();\n // Render the action with template\n $this->renderWithTemplate('users/changepassword', 'AdminPageBaseTemplate');\n }", "public function changePasswordAction()\n {\n $form = new Form\\Password();\n if ($this->getRequest()->isPost() && $form->isValid($this->getRequest()->getPost())) {\n $userModel = new Model\\Users();\n $identity = $this->_auth ->getIdentity();\n $userId = $identity->getId();\n $user = $userModel->getUser($userId);\n $result = $userModel->savePassword($user, $form->getValue('new_password'), $form->getValue('password'));\n\n if ($result) {\n $this->_helper->getHelper('FlashMessenger')->addMessage('Your password was changed.'); \n } else {\n $this->_helper->getHelper('FlashMessenger')->addMessage('Your password was NOT changed.');\n }\n $this->_redirect($this->getRequest()->getRequestUri());\n }\n $this->view->passwordForm = $form;\n }", "public function changePasswordAction()\r\n\t{\r\n\t\t$this->_view->_title = 'Thay đổi mật khẩu';\r\n\r\n\t\tif ($this->_arrParam['form']['token'] > 0) {\r\n\r\n\t\t\t$new = $this->_arrParam['form']['new-password'];\r\n\t\t\t$enter = $this->_arrParam['form']['enter-password'];\r\n\r\n\t\t\tif ($new != $enter) {\r\n\t\t\t\t$this->_view->error = 'Mật khẩu không khớp. Xin kiểm tra lại';\r\n\t\t\t} else {\r\n\r\n\t\t\t\t$this->_model->changePassword($this->_arrParam);\r\n\t\t\t}\r\n\t\t}\r\n\t\t// URL::redirect($this->_arrParam['module'], $this->_controller, 'index');\r\n\r\n\r\n\r\n\t\t$this->_view->render(\"{$this->_controller}/change_password\");\r\n\t}", "function admin_change_password() {\n\t\t\n\t\tConfigure::write('debug', 0);\n\t\t$this->layout = \"admin\";\n\t\t$this->set(\"changepassword\", \"selected\"); //set main navigation class\n\t\t$this->set('manageClass', 'selected');\n\t\t$uid = $this->Session->read('Admin.id');\n\t\t$email = $this->Session->read('Admin.email');\n\t\t$userdata = $this->Member->find('first', array(\n\t\t\t'conditions' => array(\n\t\t\t\t'Member.id' => $this->Session->read('Admin.id'),\n\t\t\t\t'Member.email' => $email\n\t\t\t)\n\t\t));\n\t\t\n\t\tif ($userdata) {\n\t\t\tif (!empty($this->data)) {\n\t\t\t\t$this->Member->updateAll(array(\n\t\t\t\t\t'Member.pwd' => \"'\" . md5($this->data['Member']['pwd']) . \"'\",\n\t\t\t\t\t'Member.email' => \"'\" . $this->data['Member']['email'] . \"'\"\n\t\t\t\t), array(\n\t\t\t\t\t'Member.email' => $email,\n\t\t\t\t\t'Member.id' => $this->Session->read('Admin.id')\n\t\t\t\t) //(conditions) where userid=schoolid\n\t\t\t\t\t);\n\t\t\t\t\n\t\t\t\t$this->Session->setFlash('Password changed successfully');\n\t\t\t\t$this->redirect(array(\n\t\t\t\t\t'action' => 'change_password',\n\t\t\t\t\t'admin' => true\n\t\t\t\t));\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\telse {\n\t\t}\n\t\t\n\t}", "public function changePassword() {\n\t\t//assign public class values to function variable\n\t\t$data = $this->data;\n\t\t$data['common_data'] = $this->common_data;\n\t\t$data['page'] = 'change_password';\n\t\t$data['pageName'] = 'Change Password';\n\t\tif($data['common_data']['user_data']['role'] == INACTIVE_STATUS_ID){\n\t\t\theader(\"Location: \".ROUTE_PROFILE);\n\t\t\tdie();\n\t\t}\n\t\tif($data['common_data']['user_data']['account_type'] == FACEBOOK_ACCOUNT_TYPE){\n\t\t\theader(\"Location: \".ROUTE_ERROR_PAGE);\n\t\t\tdie();\n\t\t}\n\n\t\t$data['tutor_details'] = $this->profile_model->getTutorDetailsById($data['common_data']['user_id']);\n\t\t//Getting all payment details\n\t\t$data['payment_details'] = $this->payment_model->getPaymentDetailsById($data['common_data']['user_id']);\n\t\t$data['tutor_badges'] = $this->user_model->getTutorBadges($data['common_data']['user_id']);\n\t\t$data['badges'] = $this->user_model->getBadges();\n\n\t\t$template['body_content'] = $this->load->view('frontend/profile/change-password', $data, true);\t\n\t\t$this->load->view('frontend/layouts/template', $template, false);\n\t}", "public function changePasswordAction()\n {\n $errors = [];\n if(!empty($_POST)){\n $user = Auth::getUser();\n\n $userValidation = new UserValidation($_POST, ['password']);\n $errors = $userValidation->getNamedErrors();\n\n if(empty($errors)){\n if(password_verify($_POST['oldpass'], $user->password)){\n $user->changePassword($_POST['password']);\n Extra::setMessageCookie(\"Password changed successfully.\");\n $this->redirect(\"/manage-account/\");\n }\n $errors['oldpass'] = \"Password you entered is incorrect.\";\n }\n }\n View::renderTemplate(\"LoggedUser/change-password.html\", [\n 'errors' => $errors\n ]);\n }", "public function setPassword(){\n\t}", "public function changePassword() {\n $this->form_validation->set_rules('email', 'Email', 'required');\n $this->form_validation->set_rules('password', 'Altes Passwort', 'required');\n $this->form_validation->set_rules('new_password', 'Neues Passwort', 'required');\n\n if ($this->form_validation->run() === FALSE) {\n \t$this->error(400, 'Validation error');\n }\n \n $this->loadUser();\n \n\t\tif (!password_verify(\n\t\t\t$this->input->post('password'),\n\t\t\t$this->user_model->getValue('hashed_password'))) \n\t\t{\n\t\t\t$this->error(404, 'Verification error');\n\t\t}\n\t\t\n\t\t/*\n \tif ($this->user_model->getValue('confirmed') == 0) {\n \t\t$this->error(402, 'Account not confirmed');\n \t}\n \t*/\n \t\n \t$this->user_model->setValue(\n \t\t'hashed_password',\n \t\tpassword_hash($this->input->post('new_password'), PASSWORD_DEFAULT));\n \t\t\n \tif (! $this->user_model->updatePassword()) {\n \t\t$this->error(400, 'Password could not be updated');\n \t}\n \t\n $data['new password'] = 'set';\n $this->response($data);\n }", "function admin_change_password() {\n\t\t/*\techo '<pre>';\n\t\tprint_r($this->data);\n\t\tdie;*/\n\t\t\n\t\tConfigure::write('debug', 0);\n\t\t$this->layout = \"admin\";\n\t\t$this->set(\"changepassword\", \"selected\"); //set main navigation class\n\t\t$this->set('manageClass', 'selected');\n\t\t$uid = $this->Session->read('Admin.id');\n\t\t$email = $this->Session->read('Admin.email');\n\t\t$userdata = $this->Member->find('first', array(\n\t\t\t'conditions' => array(\n\t\t\t\t'Member.id' => $this->Session->read('Admin.id'),\n\t\t\t\t'Member.email' => $email\n\t\t\t)\n\t\t));\n\t\t\n\t\tif ($userdata) {\n\t\t\tif (!empty($this->data)) {\n\t\t\t\t$this->Member->updateAll(array(\n\t\t\t\t\t'Member.pwd' => \"'\" . md5($this->data['Member']['pwd']) . \"'\",\n\t\t\t\t\t'Member.email' => \"'\" . $this->data['Member']['email'] . \"'\"\n\t\t\t\t), array(\n\t\t\t\t\t'Member.email' => $email,\n\t\t\t\t\t'Member.id' => $this->Session->read('Admin.id')\n\t\t\t\t) //(conditions) where userid=schoolid\n\t\t\t\t\t);\n\t\t\t\t\n\t\t\t\t$this->Session->setFlash('Password changed successfully');\n\t\t\t\t$this->redirect(array(\n\t\t\t\t\t'action' => 'change_password',\n\t\t\t\t\t'admin' => true\n\t\t\t\t));\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\telse {\n\t\t}\n\t\t\n\t}", "function update_password()\n {\n }", "public function changePassword() {\r\n $this->loadModel('CreateGroup');\r\n $key = 'iznWsaal5lKhOKu4f7f0YagKW81ClEBXqVuTjrFovrXXtOggrqHdDJqkGXsQpHf';\r\n $groupId = trim($this->request->data['group_id']);\r\n $password = trim($this->request->data['password']);\r\n $cpassword = trim($this->request->data['c_password']);\r\n $encrypted_password = Security::cipher($password, $key);\r\n if ($password == $cpassword) {\r\n if ($this->CreateGroup->updateAll(array('password' => \"'$encrypted_password'\"), array('user_id' => $groupId))) {\r\n $this->Session->write('pcmessage', 'password changed successfully');\r\n $this->redirect('../Admin/change_password');\r\n } else {\r\n $this->Session->write('pcmessage', 'Password not changed');\r\n $this->redirect('../Admin/change_password');\r\n }\r\n } else {\r\n $this->Session->write('pcmessage', 'password and confirm pasword different');\r\n $this->redirect('../Admin/change_password');\r\n }\r\n }", "public function change_password() {\n $flash = null;\n // if the user has tried logging in\n if(isset($_POST['login'])){\n // try verifying the user\n if($this->User->login($_POST['username'], $_POST['old_pass'])) {\n if($_POST['new_pass']==$_POST['new_pass_verify']){\n $this->User->setPassword($User->getId(), $_POST['new_pass']);\n session_write_close();\n header(\"Location: \".app::site_url(''));\n exit(0);\n } else {\n $flash = \"I'm sorry, but the new passwords did not match.\";\n }\n } else {\n $flash = \"That username and/or password is not valid.\";\n }\n }\n return array('flash' => $flash);\n }", "public function changePwd(){\n $uesr_id=$_SESSION['admin_id'];\n\t\t$sql=\"select * from users where id='$uesr_id'\";\n\t\t$query = mysqli_query($this->connrps, $sql);\n\t\twhile ($row = mysqli_fetch_array($query)) {\n\t\t\t$username = $row['username'];\n\t\t\t$password = $row['password'];\n\t\t}\n\t\t$cur_password=base64_encode($_POST['currentPassword']);\n\t\t$new_pwd=base64_encode($_POST['newPassword']);\n\t\t$confirm_pwd=base64_encode($_POST['confirmPassword']);\n\t\tif ($cur_password != $password) {\n\t\t\t$message= \"Current password does not matched.\";\n\t\t\t$_SESSION['error_msg'] = $message;\n\t\t\treturn 0;\n\t\t}else if ($new_pwd != $confirm_pwd) {\n\t\t\t$message= \"Confirm password does not matched\";\n\t\t\t$_SESSION['error_msg'] = $message;\n\t\t\treturn 0;\n\t\t}else {\n\t\t\t$query_updt = \"UPDATE users SET password = '$new_pwd' WHERE id='$uesr_id'\";\n\t\t\t$query_updt = mysqli_query($this->connrps, $query_updt);\n\t\t\t$message= \"New password has been updated successfully\";\n\t\t\t$_SESSION['succ_msg'] = $message;\n\t\t\treturn 1;\n\t\t}\n\t}", "public function c_changepass(){\n\t\t\n\t\t$this->getC();\n\t\t$this->layout = false;\n\t\tif ($this->request->is('post')) {\n\t\t\t$customers = $this->Customers->get($this->request->session()->read('id'), [\n\t\t\t\t'contain' => []\n\t\t\t]);\n\t\t\t$pass = $this->request->data['data']['Customers']['oldpassword'];\n\t\t\t$new = $this->request->data['data']['Customers']['password'];\n\t\t\tif(!empty($customers)){\n\t\t\t\n\t\t\t\tif($this->request->data['data']['Customers']['cpassword']==$this->request->data['data']['Customers']['oldpassword']){\n\t\t\t\t\t$this->request->data['password']=$new;\n\t\t\t\t\t$customer = $this->Customers->patchEntity($customers, $this->request->data);\n\t\t\t\t\t\n\t\t\t\t\tif ($this->Customers->save($customer)) {\n\t\t\t\t\t\t$this->Flash->success('Password has been successfully updated.');\n\t\t\t\t\t\treturn $this->redirect(['action' => 'c_index']);\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\t$this->Flash->success('Wrong Password. Please try again.');\n\t\t\t\t\treturn $this->redirect(['action' => 'c_index']);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}else{\n\t\t\t\t$this->Flash->success('Wrong Password. Please try again.');\n\t\t\t\treturn $this->redirect(['action' => 'c_index']);\n\t\t\t}\n\t\t}\n\t}", "public function actionChangePassword()\n {\n \t$user = UserAdmin::findOne(Yii::$app->request->get('id'));\n \t$model = new ChangeForcePasswordForm($user);\n \tif ($model->load(Yii::$app->request->post()) && $model->applyChanges()) \n \t{\n \t\tYii::$app->getSession()->setFlash('success', \n \t\t\t\"The user password has been changed\"\n \t\t);\n \t\treturn $this->redirect([\"/admin/crud/user-admin/view\", 'id' => $user->id]);\n \t}\n \t\n \t$this->layout = '@app/layouts/layout-popup-sm';\n \treturn $this->render('change-password', ['model' => $model]);\n }", "public function changePasswordAction()\n {\n $form = new ChangePasswordForm();\n\n if ($this->request->isPost()) {\n\n if (!$form->isValid($this->request->getPost())) {\n\n foreach ($form->getMessages() as $message) {\n $this->flash->error($message);\n }\n } else {\n\n $user = $this->auth->getUser();\n\n $user->password = $this->security->hash($this->request->getPost('password'));\n $user->mustChangePassword = 'N';\n\n $passwordChange = new PasswordChanges();\n $passwordChange->user = $user;\n $passwordChange->ipAddress = $this->request->getClientAddress();\n $passwordChange->userAgent = $this->request->getUserAgent();\n\n if (!$passwordChange->save()) {\n $this->flash->error($passwordChange->getMessages());\n } else {\n\n $this->flash->success('Your password was successfully changed');\n\n Tag::resetInput();\n }\n }\n }\n\n $this->view->form = $form;\n }", "public function changePasswordAction(){\n $data = $this->getRequestData();\n $user = Object_User::getById($this->getDeviceSession()->getUserId());\n if(isset($data['password']) && isset($data['repeat_password'])){\n if($data['password'] === $data['repeat_password']){\n $user->setPassword($data['password']);\n } else {\n $this->setErrorResponse('password and repeat_password should match!');\n }\n } else {\n $this->setErrorResponse('password and repeat_password is mandatory fields!');\n }\n $this->_helper->json(array('updated' => true));\n }", "public function password_change()\n\t{\n\t\t$data['title'] = \"Change Password\";\n\t\t$this->load->view('admin/user/_header');\n\t\t$this->load->view('admin/user/_left_sideber');\n\t\t$this->load->view('admin/user/view_change_password');\n\t\t$this->load->view('admin/user/_footer');\n\t\t\t\n\t}", "public function actionChangepassword()\n\t{\n\t\t// using the default layout 'protected/views/layouts/main.php'\n\t\t\n\t\t\n\t\t$this->checkUser();\n\t\t\n\t\t$record = SiteUser::model()->findByAttributes(array('id'=> Yii::app()->user->id));\n\t\n\t\tif(isset($_POST['SiteUser']))\n\t\t{\t\n\t\t\tif(trim($_POST['SiteUser']['password']) != '') {\n\t\t\t\t$record->password = $_POST['SiteUser']['password'];\n\t\t\t\t\n\t\t\t} \t\t\n\t\t\tif(trim($_POST['SiteUser']['password']) == trim($_POST['SiteUser']['repeat_password'])) {\n\t\t\t\t$record->repeat_password = $record->password;\n\t\t\t}\t\n\t\t\t\n\t\t\tif($record->validate()) {\n\t\t\t\t$record->repeat_password = $record->password = crypt($record->password);\n\t\t\t\tif($record->save())\n\t\t\t\t\t$this->redirect(array('personal'));\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$record->repeat_password = $record->password = '';\n\t\t\t}\n\n\t\t}\t\n\n\t\t$this->render('changepassword',array('record'=>$record));\n\t}", "function changePass() {\n\t\t$id = $this->AuthExt->User('id');\n\t\tif (!$id && empty($this->data)) {\n\t\t\t$this->Session->setFlash(__('Invalid user', true));\n\t\t\t$this->redirect(array('action' => 'index'));\n\t\t}\n\t\t\n\t\tif (!empty($this->data)) {\n\t\t\t//don't allow hidden variables tweaking get the group and username \n\t\t\t//form the system in case an override occured from the hidden fields\n\t\t\t$this->data['User']['role_id'] = $this->AuthExt->User('role_id');\n\t\t\t$this->data['User']['username'] = $this->AuthExt->User('username');\n\t\t\tif ($this->User->save($this->data)) {\n\t\t\t\t$this->Session->setFlash('The password change has been saved', 'flash_success');\n\t\t\t\t$this->redirect(array('action' => 'index', 'controller' => ''));\n\t\t\t} else {\n\t\t\t\tprint_r($this->data);\n\t\t\t\t$this->data = $this->User->read(null, $id);\n\t\t\t\t$this->data['User']['password'] = null;\n\t\t\t\t$this->data['User']['confirm_passwd'] = null;\n\t\t\t\t$this->Session->setFlash('The password could not be saved. Please, try again.', 'flash_failure');\n\t\t\t}\n\t\t}\n\t\tif (empty($this->data)) {\n\t\t\t$this->data = $this->User->read(null, $id);\n\t\t\t$this->data['User']['password'] = null;\n\t\t}\n\t\t$roles = $this->User->Role->find('list');\n\t\t$this->set(compact('roles'));\n\t}", "public function change_password() {\n\t\treturn view( 'provider.profile.change_password' );\n\t}", "public function changePassword($newPWD){\r\n\t\tif($this::isLoggedIn()){\r\n\r\n\t\t\tdefined(\"INCLUDING\") or\r\n\t\t\t\tdefine(\"INCLUDING\", 'TRUE');\r\n\t\t\trequire_once \"./database.php\";\r\n\t\t\t\r\n\t\t\t$db = Database::getInstance();\r\n\t\t\t$mysqli = $db->getConnection();+\r\n\t\t\t\r\n\t\t\t$new_password = password_hash($newPWD, PASSWORD_DEFAULT);\r\n\t\t\t\r\n\t\t\t$sql = \"UPDATE UTENTI SET PWD=? WHERE ID=?\";\r\n\t\t\t$q = $mysqli->prepare($sql);\r\n\t\t\t$q->bind_param('si', $new_password,$this->id);\r\n\t\t\tif($q->execute()){\r\n\t\t\t\tif($q->get_result()){\r\n\t\t\t\t\treturn true;}\r\n\t\t\t\telse return false;\r\n\t\t\t}\r\n\t\t\telse throw new Exception(\"Impossibile cambiare password\");\r\n\t\r\n\t\t}\t\r\n\r\n\t}", "public function postChangepassword() {\n if ($this->_adminUserRepository->updatePassword ()) {\n return redirect ( 'users/changepassword' )->withSuccess ( trans ( 'user::adminuser.changepassword.success' ) );\n } else {\n return redirect ( 'users/changepassword' )->withErrors ( trans ( 'user::adminuser.changepassword.incorrect' ) );\n }\n }", "function change_passwd($Username, $old_Password, $new_Password){\n $new_Password = encrypt_pwd($new_Password);\n $SQL = \"UPDATE User SET Password = '$new_Password' WHERE Username='$Username'\";\n mysqli_query($this->db_link, $SQL);\n }", "function change_pwd_update_register(){\n\t\tglobal $CFG;\n\t\t$old_password = $this->My_addslashes(md5($_POST[\"old_password\"]));\n\t\t \n\t\t$new_password = md5($_POST[\"new_password\"]);\n\t \n\t\tif($this->chkPasswordInAdmin($old_password,$_SESSION['adminid'])){\n\t\t\t\t$UpQuery = \"UPDATE \".$CFG['table']['admin'].\" SET password = '\".$this->filterInput($new_password).\"' WHERE admin_id = \". $this->filterInput($_SESSION['adminid']);\n\t\t\t\t$UpResult = mysql_query($UpQuery) or die($this->mysql_error($UpQuery));\n\t\t\t}\n\t\telse{\t\n\t\t\techo \"Invalid_Old_Pwd\";\t\t\t\n\t\t\texit();\n\t\t\t}\n\t}", "public function actionChangePassword()\n {\n $this->render('changePassword');\n }", "public function changePasswordAction()\n {\n $message = array();\n $message['success'] = \"\";\n $message['verify'] = $this->customerVerify($_SESSION['userName'], $_POST['currentPass']);\n if (!$message['verify']) {\n $message['confirm'] = $this->checkConfirm($_POST['newPass'], $_POST['confirmPass']);\n if (!$message['confirm']) {\n $this->model->chagePass($_SESSION['userName'], password_hash($_POST['newPass'], PASSWORD_DEFAULT));\n $message['success'] = \"Your password has been changed\";\n }\n }\n echo json_encode($message);\n }", "public function changePasswordAction()\n {\n $user = $this->get('security.context')->getToken()->getUser();\n if (!is_object($user) || !$user instanceof UserInterface) {\n $this->createAccessDeniedException('This user does not have access to this section.');\n }\n\n $this->page = $this->getDoctrine()->getRepository('PageBundle:Page')->findOneByAlias($this::PASSWORD_CHANGE_PAGE_ALIAS);\n\n if (!$this->page) {\n return $this->get('bardiscms_page.services.show_error_page')->errorPageAction(Page::ERROR_404);\n }\n\n // Simple publishing ACL based on publish state and user Allowed Publish States\n $accessAllowedForUserRole = $this->get('bardiscms_page.services.helpers')->isUserAccessAllowedByRole(\n $this->page->getPublishState(),\n $this->publishStates\n );\n\n if (!$accessAllowedForUserRole) {\n return $this->get('bardiscms_page.services.show_error_page')->errorPageAction(Page::ERROR_401);\n }\n\n $this->page = $this->get('bardiscms_settings.set_page_settings')->setPageSettings($this->page);\n\n $form = $this->get('fos_user.change_password.form');\n $formHandler = $this->get('fos_user.change_password.form.handler');\n\n $process = $formHandler->process($user);\n if ($process) {\n $this->setFlash('fos_user_success', 'change_password.flash.success');\n\n return $this->redirect($this->getRedirectionUrl($user));\n }\n\n $pageData = array(\n 'page' => $this->page,\n 'mobile' => $this->serveMobile,\n 'logged_username' => $this->userName,\n 'form' => $form->createView(),\n );\n\n // Render Password change page\n $response = $this->render('SonataUserBundle:ChangePassword:changePassword.html.twig', $pageData);\n\n return $response;\n }", "public function changePassword()\n {\n // validate the info, create rules for the inputs\n $rules = array(\n 'current_password' => 'required|check_password:'.Input::get('current_password'),\n 'password' => 'required|min:4|confirmed',\n 'password_confirmation' => 'required|min:4'\n );\n\n // run the validation rules on the inputs from the form\n $validator = Validator::make(Input::all(), $rules);\n\n // if the validator fails, redirect back to the form\n if ($validator->fails()) {\n // redirect to list page\n Session::flash('danger', UNABLE_TO_SAVE);\n return Redirect::back()\n ->withErrors($validator)\n ->withInput();\n\n } else {\n if (Hash::check(Input::get('current_password'), Auth::user()->password)) {\n $user = User::find(Auth::user()->id);\n \n $user->password = Hash::make(Input::get('password'));\n $user->save();\n }\n \n #echo\"<pre>\";print_r(Input::all());echo Auth::user()->password;echo\"</pre>\";exit;\n \n \n }\n\n // redirect to list page\n Session::flash('success', SUCCESS_UPDATE);\n return Redirect::to('my_account/password');\n }", "function change_password()\n\t{\n\t\tif($this->session->userdata('admin_login') != 1)redirect(base_url() , 'refresh');\n\t\t\n\t\tif($_POST)\n\t\t{\n\t\t\t$query\t=\t$this->db->get_where('admin' , array('password' => $this->input->post('password_old')));\n\t\t\t\n\t\t\tif($query->num_rows()>0 && $this->input->post('password_new') == $this->input->post('password_re'))\n\t\t\t{\n\t\t\t\t$this->db->update('admin' , array('password' => $this->input->post('password_new')));\n\t\t\t\t$this->session->set_flashdata('change_password_message', 'Password Updated successfully!');\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$this->session->set_flashdata('change_password_message', 'Password Updated failed!');\n\t\t\t}\n\t\t\t\t\t\t\n\t\t\tredirect(base_url().'index.php/admin/change_password/' , 'refresh');\t\t\t\n\t\t}\n\t\t$page_data['page_info']\t=\t'Change password';\n\t\t$page_data['page_name']\t=\t'admin/change_password';\n\t\t$page_data['page_title']=\t'Change admin password';\n\t\t$this->load->view('index' , $page_data);\n\t}", "public function changePassword(){\n $user=User::find(auth()->id());\n $user->password=bcrypt(request('new_password'));\n $user->save();\n return response()->json('Password Updated Successfully');\n }", "function changePassword($password, $userid){\n $query = \"UPDATE users_account SET password = ? WHERE userid = ?\";\n $paramType = \"si\";\n $paramValue = array(\n $password,\n $userid\n );\n $this->db_handle->update($query, $paramType, $paramValue);\n }", "function changePassword($userid, $password, $mode = null)\n\t{\n\t\trequire_once $_SERVER['DOCUMENT_ROOT'] . '/Connections/MyDBConnector.php';\n\t\t$pdo = (new MyDBConnector())->getPDO();\n\t\t$sql = \"UPDATE staff_directory SET `pswd` = '\" . password_hash($password, PASSWORD_BCRYPT) . \"' WHERE staffId = \" . $userid;\n\t\t$stmt = $pdo->prepare($sql, array(PDO::ATTR_CURSOR => PDO::CURSOR_SCROLL));\n\t\t$chk = $stmt->execute();\n\t\tif ($chk) {\n\t\t\treturn 'success';\n\t\t} else {\n\t\t\treturn 'error';\n\t\t}\n\t}", "public function changePasswordAction()\n {\n if ($this->request->isPost()) {\n // Request data\n $data = $this->request->getPost();\n\n $formValidator = $this->createValidator([\n 'input' => [\n 'source' => $data,\n 'definition' => [\n 'password' => new Pattern\\Password,\n 'confirmation' => new Pattern\\PasswordConfirmation($data['password'])\n ]\n ]\n ]);\n\n if ($formValidator->isValid()) {\n // Update current password\n $userService = $this->getModuleService('userService');\n $userService->updatePasswordById($this->getUserId(), $data['password']);\n\n $this->flashBag->set('success', 'Your password has been updated successfully');\n return 1;\n\n } else {\n return $formValidator->getErrors();\n }\n \n } else {\n // Just render empty form\n return $this->view->render('settings/change-password');\n }\n }", "function changePassword($newpass) {\n\t\tif ($this->id == null || $this->id == 0) return false;\n\n\t\t$db = getDb();\n\n\t\t$update_query = \"UPDATE user_table SET\n\t\tuser_password = $newpass\n\t\tWHERE user_id = '$this->id';\";\n\n\t\t$result = mysqli_query($db, $update_query);\n\n\t\tmysqli_close($db);\n\n\t\tif (!$result) return false;\n\n\t\treturn true;\n\n\t}", "public function actionUpdatePassword(){\r\n //common view data\r\n $mainCategories = $this->mainCategories;\r\n $brands = $this->brands;\r\n \r\n $errors = [];\r\n $success = null;\r\n \r\n //check if the user is logged in and get User $user properties from the database\r\n $userID = $this->checkLogged();\r\n $success = null;\r\n \r\n //check if the form has been submitted and process form data\r\n if($_SERVER['REQUEST_METHOD'] == 'POST') {\r\n $currentPassword = filter_input(INPUT_POST, 'currentPassword', FILTER_SANITIZE_SPECIAL_CHARS);\r\n $newPassword = filter_input(INPUT_POST, 'newPassword', FILTER_SANITIZE_SPECIAL_CHARS);\r\n $confirmNewPassword = filter_input(INPUT_POST, 'confirmNewPassword', FILTER_SANITIZE_SPECIAL_CHARS);\r\n \r\n $model = new ChangePasswordForm($userID, $currentPassword, $newPassword, $confirmNewPassword);\r\n \r\n if(!$model->validate()) {\r\n $errors = $model->errors;\r\n } else if(!$model->verifyPassword()) {\r\n $errors['currentPassword'][0] = 'Incorrect password';\r\n } else {\r\n $success = $model->updatePassword() ? 'PASSWORD SUCCESSFULLY UPDATED' : 'ERROR UPDATING PASSWORD';\r\n }\r\n }\r\n \r\n include_once ROOT . '/views/profile/changepass.php';\r\n \r\n }", "public function editPassword($pword)\n\t\t{\n\t\t\tglobal $password;\n\t\t\tglobal $user_id;\n\t\t\n\t\t\t$pword = addslashes($pword);\n\n\t\t\tif(strlen($pword) <= 32)\n\t\t\t{\n\t\t\t$qry = 'UPDATE admin_table SET password = \"' . $pword . '\" WHERE user_id = '. $user_id;\n\t\t\t$result = mysql_query($qry, $GLOBALS['connection']);\n\t\t\t}\n\t\t\n\t\t\t$password = $pword;\n\t\t}", "public function selfChangePassword()\n\t{\n\t\tif (!$this->userService->changePassword(Input::all()))\n\t\t{\n\t\t\treturn Redirect::route('user-profile', array('tab' => 'account'))->withErrors($this->userService->errors())->withInput();\n\t\t}\n\n\t\tAlert::success('Your password has been successfully changed.')->flash();\n\n\t\treturn Redirect::route('user-profile', array('tab' => 'account'));\n\t}", "public function post_changePassword() {\n //try to change the password\n $status = AuxUser::changePassword();\n if ($status[0]) {\n //if the password change process worked, redirect to the profile page\n echo '<script>alert(\"Password Changed\");</script>';\n Response::redirect('/profile');\n } else {\n //if not, print the error message\n echo '<script>alert(\"'.$status[1].'\");</script>';\n Response::redirect('/profile');\n }\n }", "public function actionPasswordChange() {\n\n\t\t$userId = User::checkLogged();\n\t\t$user = User::getUserById($userId);\n\t\t$old_password = \"\";\n\t\t$password = \"\";\n\t\t$password_confirmation = \"\";\n\t\t$result = false;\n\n\t\tif (isset($_POST['submit'])) {\n\t\t\t$old_password = $_POST['old_password'];\n\t\t\t$password = $_POST['password'];\n\t\t\t$password_confirmation = $_POST['password_confirmation'];\n\n\t\t\t$errors = array();\n\n\t\t\tif (User::passwordCheck($userId, $old_password)) {\n\t\t\t\tif (Validator::checkPassword($password)) $errors['password'] = Validator::checkPassword($password);\n\t\t\t\tif (Validator::checkPasswordConfirmation($password, $password_confirmation)) $errors['password_confirmation'] =\n\t\t\t\t\tValidator::checkPasswordConfirmation($password, $password_confirmation);\n\t\t\t} else $errors['old_password'] = \"Wrong old password\";\n\n\t\t\tif (empty($errors)) {\n\t\t\t\t$result = User::passwordChange($userId, $password);\n\t\t\t}\n\t\t}\n\t\t$pageTitle = \"Password Change\";\n\t\trequire_once(ROOT . '/views/account/password_change.php');\n\n\t\treturn true;\n\t}", "public function actionUpdatePassword()\n\t{\n\t\t$emp_id=isset($_POST['emp_id'])?$_POST['emp_id']:'';\n\t\t$old_password=isset($_POST['old_password'])?$_POST['old_password']:'';\n\t\t$new_password=isset($_POST['password'])?$_POST['password']:'';\n\t\tif($emp_id)\n\t\t{\n\t\t\t$model=$this->loadModel($emp_id);\t\n\t\t}\n\t\t\n\t\tif(md5($old_password)==$model->password)\n\t\t{\n\t\t\t$model->password=md5($new_password);\n\t\t\tif($model->save())\n\t\t\t\techo 1;\n\t\t}\n\t\telse{\n\t\t echo 2;\t\n\t\t}\n\t\t\n\t\t}", "function changePassword($data){\r\n if(!empty($this->user_id) || $this->matchPasswordForUsername($data['userName'],$data['code'])){\r\n if(!empty($this->user_id)){\r\n $data['userName'] = $this->user_profile['username'];\r\n }\r\n if($data['newpwd']==$data['newpwdagn']){\r\n\r\n\t\t\t// check if the password is strong\r\n\t\t\tif(!$this->isPasswordStrong($data['newpwd'])){\r\n\t\t\t\t$this->setStdError('weak_password');\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n // if the password is one of last n passwords\r\n if($this->isOneOfLastNPasswords($data['newpwd'])){\r\n $this->setError('Your password is one of last '.$this->app_config['password_no_repeat'].' passwords.');\r\n return false;\r\n }\r\n\r\n global $pdo;\r\n try{\r\n $update=$pdo->prepare(\"UPDATE users SET `password`=?, `status` = 1 WHERE id= ?\");\r\n $userid = $this->getUserIdFromUsername($data['userName']);\r\n $update->execute(array($this->getPasswordHashOfUser($data['userName'],$data['newpwd']), $userid));\r\n //update the password log\r\n if(empty($this->user_id)){\r\n $this->user_id = $userid;\r\n }\r\n $this->updatePasswordLog($this->getPasswordHashOfUser($data['userName'],$data['newpwd']));\r\n\r\n $this->updatePasswordResetQueue($userid);\r\n\t\t\t\t\t$log = debug_backtrace();\r\n\t\t\t\t\t$this->createActionLog($log);\r\n return true;\r\n }\r\n catch(PDOException $e){\r\n $this->setError($e->getMessage());\r\n return false;\r\n }\r\n\r\n }else{\r\n $this->setError(\"Passwords entered do not match. Please check and type again.\");\r\n return false;\r\n }\r\n }\r\n else{\r\n $this->setError(\"Password was not reset.\");\r\n return false;\r\n }\r\n }", "public function setPassword($password)\n {\n $this->new_password = $password;\n $this->pass = Yii::$app->security->generatePasswordHash($password);\n }", "public function change_password() {\n header('Content-Type: application/json');\n $this->autoRender = false;\n $this->User->recursive = -1;\n if ($this->request->is('post')) {\n $user = $this->User->findByEmail($this->request->data['User']['email'], array('User.id', 'User.email', 'User.password'));\n if (!empty($user)) {\n $oldPassword = AuthComponent::password($this->request->data['User']['old_password']);\n if ($user['User']['password'] == $oldPassword) {\n $newPassword = $this->request->data['User']['new_password'];\n $data = array(\n 'id' => $user['User']['id'],\n 'password' => AuthComponent::password($newPassword)\n );\n $this->User->save($data);\n die(json_encode(array('success' => true, 'msg' => 'Succeed to change password')));\n \n } else \n die(json_encode(array('success' => false, 'msg' => 'Wrong old password')));\n \n } else\n die(json_encode(array('success' => false, 'msg' => 'Email address not found.')));\n }\n }", "public function change_password($data, $user_id) {\r\n\r\n // Start Backend Validation\r\n if (empty($data['old-pwd'])) {\r\n $this->errors['old-pwd'] = 'رجاء لا تترك هذا الحقل فارغا';\r\n }\r\n\r\n if (empty($data['new-pwd'])) {\r\n $this->errors['new-pwd'] = 'رجاء لا تترك هذا الحقل فارغا';\r\n } elseif (strlen($data['new-pwd']) < 8) {\r\n $this->errors['new-pwd'] = 'يجب على كلمة السر أن تتكون من 8 أحرف فأكثر';\r\n }\r\n\r\n if ($data['confirm-pwd'] != $data['new-pwd']) {\r\n $this->errors['confirm-pwd'] = 'كلمتا السر غير متطابقتان';\r\n }\r\n\r\n if (empty($this->errors)) {\r\n // Sanitize Data\r\n $old_pwd = sha1(filter_var($data['old-pwd'], FILTER_SANITIZE_STRING));\r\n $new_pwd = sha1(filter_var($data['new-pwd'], FILTER_SANITIZE_STRING));\r\n\r\n $user = $this->select('users', 'id', $user_id)->fetch_assoc();\r\n\r\n if ($user['password'] === $old_pwd) { // If Passwords Are Mached\r\n $connection = DB::connect();\r\n\r\n // Update The Password\r\n $stmt = \"UPDATE users SET password = '$new_pwd' WHERE id = '$user_id'\";\r\n $result = $connection->query($stmt);\r\n\r\n // Redirect To Profile Page\r\n $profile_url = DB::MAIN_URL . 'profile.php';\r\n header('location: ' . $profile_url);\r\n\r\n } else {\r\n $this->errors['old-pwd'] = 'كلمة السر غير صحيحة';\r\n }\r\n\r\n }\r\n\r\n }", "function change_password()\n\t\t{\n\t\t\tif ($this->input->post('change_password'))\n\t\t\t{\n\t\t\t\t$this->form_validation->set_rules('old_password', 'above', 'required');\n\t\t\t\t$this->form_validation->set_rules('password', 'above', 'required|min_length[' . $this->config->item('min_password_length', 'ion_auth') . ']|max_length[' . $this->config->item('max_password_length', 'ion_auth') . ']|matches[password_confirm]');\n\t\t\t\t$this->form_validation->set_rules('password_confirm', 'above', 'required');\n\n\n\t\t\t\tif ($this->form_validation->run())\n\t\t\t\t{\n\t\t\t\t\t$identity = $this->session->userdata('identity');\n\t\t\t\t\t$old_pass = $this->input->post('old_password');\n\t\t\t\t\t$new_pass = $this->input->post('password');\n\n\t\t\t\t\tif ($this->ion_auth->change_password($identity, $old_pass, $new_pass))\n\t\t\t\t\t{\n\t\t\t\t\t\t$this->flexi_cart->set_status_message($this->ion_auth->messages(), 'public', TRUE);\n\t\t\t\t\t\t// Logout so the user can re-login.\n\t\t\t\t\t\t$this->logout();\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$this->flexi_cart->set_error_message($this->ion_auth->errors(), 'public', TRUE);\n\t\t\t\t\t\tredirect(current_url());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$this->data['min_password_length'] = $this->config->item('min_password_length', 'ion_auth');\n\t\t\t$this->load->view('public/dashboard/change_password', $this->data);\n\t\t}", "public function update()\n {\n $new_password = $this->input->post('inputNewPassword');\n if ($this->authentication->change_password($new_password))\n {\n $this->flash_message('Password Akun Berhasil di Update');\n } else {\n $this->flash_message('Password Akun Gagal di Update');\n }\n redirect($this->data['user'].'/editPassword');\n }", "public function password(){\r\n\r\n\t\t\t$user_info = Helper_User::get_user_by_id($this->user_id);\r\n\r\n\t\t\tif($_POST){\r\n\r\n\t\t\t\t$formdata = form_post_data(array(\"old_password\", \"new_password\", \"repeat_new_password\"));\r\n\t\t\t\t\r\n\t\t\t\t$old_password = trim($formdata[\"old_password\"]);\r\n\t\t\t\t$new_password = trim($formdata[\"new_password\"]);\r\n\t\t\t\t$repeat_new_password = trim($formdata[\"repeat_new_password\"]);\r\n\r\n\t\t\t\t$error_flag = false;\r\n\r\n\t\t\t\tif(strlen($old_password) <= 0){\r\n\t\t\t\t\t$error_flag = true;\r\n\t\t\t\t\tTemplate::notify(\"error\", \"Please enter the old password\");\r\n\t\t\t\t} else {\r\n\r\n\t\t\t\t\tif(strlen($new_password) > 0 && strlen($repeat_new_password) > 0){\r\n\t\t\t\t\t\t// if both fields are not empty\r\n\r\n\t\t\t\t\t\tif(strlen($new_password) < 6){\r\n\t\t\t\t\t\t\t// the password cannot be less than 6 characters\r\n\t\t\t\t\t\t\t$error_flag = true;\r\n\t\t\t\t\t\t\tTemplate::notify(\"error\", \"Too short password. Password must be at least 6 characters long.\");\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t// now compare the two new passwords\r\n\t\t\t\t\t\t\tif(strcmp($new_password, $repeat_new_password) !== 0){\r\n\t\t\t\t\t\t\t\t// both passwords are not same\r\n\t\t\t\t\t\t\t\t$error_flag = true;\r\n\t\t\t\t\t\t\t\tTemplate::notify(\"error\", \"New Passwords do not match. Please try again.\");\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tTemplate::notify(\"error\", \"Please enter the new password\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif(!$error_flag){\r\n\t\t\t\t\t// means there are no any errors\r\n\t\t\t\t\t// get the current user account from the database\r\n\t\t\t\t\t// if the old password matches with the one that the user entered\r\n\t\t\t\t\t// change the password, else throw an error\r\n\r\n\t\t\t\t\t$old_password_hash = Config::hash($old_password);\r\n\r\n\t\t\t\t\tif(strcmp($old_password_hash, trim($user_info->password)) === 0){\r\n\r\n\t\t\t\t\t\t\tif($this->change_password($new_password, $user_info)){\r\n\t\t\t\t\t\t\t\tTemplate::notify(\"success\", \"Password changed successfully\");\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tredirect(Config::url(\"account\"));\r\n\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tTemplate::notify(\"error\", \"Wrong Old Password. Please try again\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tConfig::set(\"active_link\", \"password\");\r\n\t\t\tConfig::set(\"page_title\", \"Change Account Password\");\r\n\r\n\t\t\t$view_data[\"user_info\"] = $user_info;\r\n\r\n\t\t\tTemplate::setvar(\"page\", \"account/password\");\r\n\t\t\tTemplate::set(\"account/template\", $view_data);\r\n\t\t}", "function update_password() {\n\t\t$old_password = $_POST['old_password'];\n\t\t$new_password = $_POST['new_password'];\n\t\tif (!empty($old_password) && !empty($new_password)) {\n\t\t\t$admin_records = $this -> conn -> get_table_row_byidvalue('pg_track_admin', 'admin_password', md5($old_password));\n\t\t\tif (!empty($admin_records)) {\n\t\t\t\t$data['admin_password'] = md5($new_password);\n\t\t\t\t$update_toekn = $this -> conn -> updatetablebyid('pg_track_admin', 'admin_status', 1, $data);\n\t\t\t\t$post = array(\"status\" => \"true\", \"message\" => \"Password changed successfully\");\n\t\t\t} else {\n\t\t\t\t$post = array(\"status\" => \"false\", \"message\" => \"Invalid Old Password\");\n\t\t\t}\n\t\t} else {\n\t\t\t$post = array(\"status\" => \"false\", \"message\" => \"Missing parameter\", 'old_password' => $old_password, 'new_password' => $new_password);\n\t\t}\n\t\techo $this -> json($post);\n\t}", "function user_changed_password($user_id, $new_password) {\n \n }", "public function actionPassword()\n {\n $id = Yii::$app->user->id;\n\t\t$model = $this->findModel($id);\n\t\t$model->scenario = 'password';\n if ($model->load(Yii::$app->request->post())) {\t\n\t\t\tif(!Yii::$app->security->validatePassword($model->old_password, Yii::$app->user->identity->password_hash)){\n\t\t\t\tYii::$app->getSession()->setFlash('error', 'Old password not match with current password');\n\t\t\t}\n\t\t\telse{\n\t\t\t\t$model->password = $model->new_password;\n\t\t\t\tif($model->save()) {\n\t\t\t\t\tYii::$app->getSession()->setFlash('success', 'Password have changed.');\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tYii::$app->getSession()->setFlash('error', 'Password is not change.');\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn $this->redirect(['password']);\n } else {\n return $this->render('password', [\n 'model' => $model,\n ]);\n }\n }", "public function change_admin_password_form() {\n\t if ($this->lang->line('admin_menu_change_password') != '') \n\t\t$this->data['heading']= stripslashes($this->lang->line('admin_menu_change_password')); \n\t\telse $this->data['heading'] = 'Change Password';\n if ($this->checkLogin('A') == '') {\n redirect(ADMIN_ENC_URL);\n } else {\n \n $this->load->view(ADMIN_ENC_URL.'/templates/header.php', $this->data);\n $this->load->view(ADMIN_ENC_URL.'/adminsettings/changepassword.php', $this->data);\n $this->load->view(ADMIN_ENC_URL.'/templates/footer.php', $this->data);\n }\n }", "function admin_change_password() {\r\n\r\n $this->layout = 'default';\r\n\r\n $this->checklogin();\r\n\r\n// echo ' e10adc39491e240';\r\n// echo \"<br>\".$new = $this->encrypt_data(123456);\r\n// echo \"<br>old \".$old = $this->decrypt_data($new);\r\n\r\n if(!empty($this->data))\r\n {\r\n //$this->pre($this->data);\r\n //exit;\r\n\r\n $errorarray = array();\r\n\r\n if (isset($this->data['User']['oldpwd']) && (trim($this->data['User']['oldpwd']) == '' || trim($this->data['User']['oldpwd']=='Password'))) {\r\n $errorarray['enter_oldpwd'] = ENTER_OLD_PASSWORD;\r\n }\r\n else\r\n {\r\n $check_len_pass = strlen(trim($this->data['User']['oldpwd']));\r\n\r\n if($check_len_pass<5)\r\n $errorarray['oldpwd_minlen'] = PASSWORD_LENGTH;\r\n else\r\n {\r\n $check_user = $this->User->find('first', array('conditions' => array('status' => 0, 'password'=>md5($this->data['User']['oldpwd']) ,'id'=>$this->Session->read(md5(SITE_TITLE).'USERID'))));\r\n\r\n// $this->pre($check_user);\r\n// exit;\r\n if(empty($check_user))\r\n {\r\n $errorarray['pass_not_match'] = OLDNOTMATCH;\r\n }\r\n }\r\n }\r\n\r\n if (isset($this->data['User']['newpwd']) && (trim($this->data['User']['newpwd']) == '' || trim($this->data['User']['newpwd']=='Password'))) {\r\n $errorarray['newpass'] = ENTER_NEW_PASSWORD;\r\n }\r\n else\r\n {\r\n $check_len_pass = strlen(trim($this->data['User']['newpwd']));\r\n\r\n if($check_len_pass<5)\r\n $errorarray['newpass_minlen'] = NEW_PASSWORD_LENGTH;\r\n }\r\n if (isset($this->data['User']['confirmpwd']) && (trim($this->data['User']['confirmpwd']) == '' || trim($this->data['User']['confirmpwd']) == 'Password')) {\r\n $errorarray['confpass'] = ENTER_CONFPASS;\r\n }\r\n else\r\n {\r\n $check_len_confpass = strlen(trim($this->data['User']['confirmpwd']));\r\n\r\n if($check_len_confpass<5)\r\n $errorarray['confpass_minlen'] = CONF_PASSWORD_LENGTH;\r\n }\r\n\r\n if (trim($this->data['User']['newpwd']) != '' && trim($this->data['User']['confirmpwd']) != '' && strlen(trim($this->data['User']['newpwd']))>=5 && strlen(trim($this->data['User']['confirmpwd']))>=5 && trim($this->data['User']['newpwd']) != trim($this->data['User']['confirmpwd'])) {\r\n $errorarray['conflict'] = NEWCONFPASS;\r\n }\r\n\r\n\r\n $this->set('errorarray',$errorarray);\r\n\r\n if(empty($errorarray))\r\n {\r\n// $this->pre($errorarray);\r\n// exit;\r\n\r\n $update_user_dtl['User']['id'] = $this->Session->read(md5(SITE_TITLE).'USERID');\r\n $update_user_dtl['User']['password'] = md5($this->data['User']['newpwd']);\r\n $update_user_dtl['User']['encrypt_password'] = $this->encrypt_pass($this->data['User']['newpwd']);\r\n\r\n //$this->pre($this->Session->read());\r\n\r\n $name = $this->Session->read(md5(SITE_TITLE).'USERNAME');\r\n $email = $this->Session->read(md5(SITE_TITLE).'USEREMAIL');\r\n $new_pass = $this->data['User']['newpwd'];\r\n\r\n //$this->email_client_changepassword($name,$email,$new_pass);\r\n// $this->pre($update_user_dtl);\r\n// exit;\r\n\r\n $this->User->save($update_user_dtl);\r\n $this->redirect(DEFAULT_ADMINURL . 'users/change_password/succhange');\r\n }\r\n// $this->pre($errorarray);\r\n// exit;\r\n }\r\n }", "public function changePassword(PasswordChangeForm $form, User $user);", "function changePassword( $name, $pw ) {\n $d = loadDB();\n \n $found = false;\n foreach ($d['users'] as &$user) {\n if ($name == $user['name'] || $name == $user['email']) {\n $user[\"password\"] = $pw;\n saveDB( $d );\n $found = true;\n break;\n }\n }\n if (!$found)\n return FALSE;\n audit( \"changePassword done\", $name );\n return TRUE;\n }", "public function changeUserPassword($changeUserPassword) {\n $this->load->model('actions_model');\n if (isset($changeUserPassword['adminuser_id'])) {\n $this->db->set('password', $changeUserPassword['new_password']);\n $this->db->where('id', $changeUserPassword['adminuser_id']);\n $this->db->update('users');\n// generate history\n $log_report = array(\n 'action' => 'Updated Password',\n 'table' => 'users',\n 'who_did_it' => $this->session->userdata('objSystemUser')->userid,\n 'on_account' => $this->session->userdata('objSystemUser')->accountid,\n 'when' => date('Y-m-d H:i:s', time()),\n 'to_what' => $changeUserPassword['adminuser_id'],\n );\n $this->actions_model->logOne($log_report);\n return 1;\n } else {\n return False;\n }\n }", "function User_Changepass(){\r\n\t\tif( ($token = Str_filter($_POST['token'])) && ($old_password = Str_filter($_POST['old_password'])) && ($new_password = Str_filter($_POST['new_password'])) ){\r\n\t\t\tif($username = AccessToken_Getter($token)){\r\n\t\t\t\tif($user = Mongodb_Reader(\"todo_users\",array(\"username\" => $username),1)){\t\t\t\t\r\n\t\t\t\t\tif(md5($old_password) == $user['password']){\r\n\t\t\t\t\t\tMongodb_Updater(\"todo_users\",array(\"username\" => $username),array(\"password\" => md5($new_password)));\r\n\t\t\t\t\t\t$res = Return_Error(false,0,\"修改成功\",array(\"username\" => $username));\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\t$res = Return_Error(true,6,\"密码不正确\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}else{\r\n\t\t\t\t\t$res = Return_Error(true,5,\"该用户不存在\");\r\n\t\t\t\t}\r\n\t\t\t}else{\r\n\t\t\t\t$res = Return_Error(true,7,\"token无效或登录超时\");\r\n\t\t\t}\r\n\t\t}else{\r\n\t\t\t$res = Return_Error(true,4,\"提交的数据为空\");\r\n\t\t}\r\n\t\techo $res;\r\n\t}", "public function setPassword() {\n if ($this->Password) {\n $this->Password = \\app\\components\\Utilities::setHashedValue($this->Password);\n }\n }", "function change_pwd()\r\n {\r\n include 'database/session.php';\r\n $OldPwd = htmlspecialchars($_POST['OldPwd']);\r\n $NewPwd1 = htmlspecialchars($_POST['NewPwd1']);\r\n $NewPwd2 = htmlspecialchars($_POST['NewPwd2']);\r\n \r\n if ($NewPwd1!=$NewPwd2) return false;\r\n \r\n return(changePassword($OldPwd, $NewPwd1));\r\n }", "public static function setPassword(string $newPassword): void\n {\n self::writeConfiguration(['password' => password_hash($newPassword, PASSWORD_DEFAULT)]);\n }", "public function userPasswordUpdate() {\n $password = Hash::make($this->request->input(\"new_password\"));\n $updateArray = [\n \"password\" => $password\n ];\n $whereArray = [\n [\"user_id\", '=', $this->request->input(\"user_id\")]\n ];\n $this->usersModel->setTableName(\"cvd_users\");\n $this->usersModel->setInsertUpdateData($updateArray);\n $this->usersModel->setWhere($whereArray);\n $this->usersModel->updateData();\n }", "protected function _change_pass_submit()\n\t{\n\t\t$user = user_get_account_info();\n\t\t$password = $this->input->post('password');\n\t\t$password = mod('user')->encode_password($password, $user->email);\n\n\n\t\t$data['password'] = $password;\n\t\tt('session')->set_userdata('change_password', $data);\n\t\t$user_security_type = setting_get('config-user_security_change_password');\n\t\tif (in_array($user_security_type, config('types', 'mod/user_security'))) {\n\t\t\tmod('user_security')->send('change_password');\n\t\t\t$location = $this->_url('confirm/change_password');\n\t\t} else {\n\n\t\t\tmodel('user')->update($user->id, compact('password'));\n\t\t\tset_message(lang('notice_update_success'));\n\t\t\t$location = $this->_url('change_pass');\n\n\t\t}\n\n\t\treturn $location;\n\t}", "public function setPassword($value);", "public function changePassword($newPassword) {\n\t\t$username = LDAP_ADMIN_USER;\n\t\t$password = LDAP_ADMIN_PASS;\n\n\t\t$ldap_handle = $this->connect();\n\n\t\tldap_bind($ldap_handle, 'cn='.$username.',dc=chalmers,dc=it', $password);\n\n\t\t$replace = array('userpassword' => $this->generatePassword($newPassword));\n\t\t$result = ldap_modify($ldap_handle, 'uid='.$this->user.',ou=people,dc=chalmers,dc=it', $replace);\n\n\t\tldap_unbind($ldap_handle);\n\t\treturn $result;\n\t}", "public function changePassword($data){\n\t\tif(isset($data['User']['current_password']) && isset($data['User']['id'])){\n\t\t\tif($this->checkPassword($data['User']['id'], $data['User']['current_password'])){\n\t\t\t\tunset($data['User']['current_password']);\n\t\t\t\treturn $this->save($data);\n\t\t\t}\telse {\n\t\t\t\t$this->invalidate('current_password', 'Your current password is not correct.');\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public function change_passwords($tablename,$oldPassword,$newPassword)\n{\n\tif(!empty($tablename) and !empty($oldPassword) and !empty($newPassword)){\n\t$this->data = $this->get_admin_details($tablename,1);\n\t$oldPassword = md5($oldPassword);\n\t$newPassword = md5($newPassword);\n\tif($this->data[0]['password'] == $oldPassword)\n\t{\n\t$data = array('password'=>$newPassword);\n\t$this->db->where('user_id', $this->data[0]['user_id']);\n\t$this->db->update($tablename, $data);\n\treturn TRUE;\n\t}else{\n\treturn FALSE;\n\t}\n\t}else{\n\treturn FALSE;\n\t}\n}", "public function updatePassword($password)\n {\n $this->password = password_hash($password, PASSWORD_DEFAULT);\n }", "public function actionPassword()\n {\n if (is_null($this->password)) {\n self::log('Password required ! (Hint -p=)');\n return ExitCode::NOUSER;\n }\n\n if (is_null($this->email) && is_null($this->id)) {\n self::log('User ID or Email required ! (Hint -e= or -i=)');\n return ExitCode::DATAERR;\n }\n\n $model = User::find()->where([\n 'OR',\n [\n 'email' => $this->email\n ],\n [\n 'id' => $this->id\n ]\n ])->one();\n\n if (is_null($model)) {\n\n self::log('User not found');\n\n return ExitCode::NOUSER;\n }\n\n $validator = new TPasswordValidator();\n\n $model->password = $this->password;\n\n $validator->validateAttribute($model, \"password\");\n\n if ($model->errors) {\n\n self::log($model->errorsString);\n\n return ExitCode::DATAERR;\n }\n\n $model->setPassword($this->password);\n\n if (! $model->save()) {\n\n self::log('Password not changed ');\n\n return ExitCode::DATAERR;\n }\n\n self::log($this->email . ' = Password successfully changed !');\n\n return ExitCode::OK;\n }", "public function changePassword() {\n if ($this->passwordChangeValidator()->fails()) {\n $errors[\"status\"] = false;\n $errors[\"message\"] = $this->passwordChangeValidator()->errors()->all();\n return $errors;\n }\n //$responseMessage = array();\n $userId = $this->request->session()->get('user_id');\n $where = [[\"users.user_id\", \"=\", $userId]];\n $this->usersModel->setWhere($where);\n $user = $this->usersModel->getUsers();\n\n if ($user == null) {\n return false;\n }\n\n $oldPassword = $this->request->input(\"old_password\");\n $oldHashedPassword = $user[0]->password;\n $status = Hash::check($oldPassword, $oldHashedPassword);\n if ($status) {\n //change to new password\n $password = Hash::make($this->request->input(\"new_password\"));\n $updateArray = [\n \"password\" => $password\n ];\n $whereArray = [\n [\"user_id\", '=', $userId]\n ];\n $this->usersModel->setTableName(\"cvd_users\");\n $this->usersModel->setInsertUpdateData($updateArray);\n $this->usersModel->setWhere($whereArray);\n $this->usersModel->updateData();\n } else {\n $errors[\"status\"] = false;\n $errors[\"message\"] = [\"Invalid Password\"];\n return $errors;\n }\n return true;\n }", "public function setPassword ( $newPassword ) {\n $this->hashedPassword = $newPassword;\n }" ]
[ "0.90758055", "0.832145", "0.8295203", "0.8258011", "0.81839144", "0.8181409", "0.81577724", "0.8104604", "0.8076766", "0.8050483", "0.8035458", "0.8004595", "0.7994734", "0.7987483", "0.7985381", "0.79764634", "0.79656893", "0.79376245", "0.7937446", "0.7935774", "0.7933692", "0.793351", "0.79312414", "0.7917933", "0.7905796", "0.7901204", "0.788738", "0.7867368", "0.7842995", "0.7838046", "0.78311336", "0.7821714", "0.78157943", "0.7806494", "0.7800462", "0.77722675", "0.7716783", "0.7716028", "0.7702878", "0.76907635", "0.7687725", "0.7670748", "0.76078176", "0.76042926", "0.7601695", "0.75962996", "0.7593714", "0.75883496", "0.758573", "0.757322", "0.75717956", "0.7553998", "0.7548512", "0.7546342", "0.75452423", "0.7544987", "0.75388914", "0.75248116", "0.7495707", "0.74939924", "0.7493877", "0.749028", "0.7486753", "0.74865717", "0.7485128", "0.7473826", "0.7463244", "0.7462248", "0.7459549", "0.7444647", "0.7438596", "0.74318135", "0.7426894", "0.7424678", "0.74218965", "0.7406475", "0.7406451", "0.7406337", "0.73944706", "0.7383162", "0.73827875", "0.73824674", "0.736935", "0.73553437", "0.7324893", "0.7323375", "0.731847", "0.7314332", "0.7312025", "0.7310735", "0.7304413", "0.72982866", "0.72893864", "0.727647", "0.7256517", "0.72512275", "0.7248541", "0.72430634", "0.7241844", "0.72297007" ]
0.748616
64
forgotpassword() method is used to all users forgot password
public function forgotpasswordAction() { // get adapter $dbAdapter = $this->dbAdapter; $users = new Application_Model_Users(); $form = new Application_Form_IndexForgot(); $errorMessage = ""; $this->view->form = $form; if($this->getRequest()->isPost()){ if($form->isValid($_POST)){ $data = $form->getValues(); $phone = $data['phone']; $result = $users->getAllUserDetailsByPhone($phone); if($result){ $StaffName = $result['StaffName']; $EMail = trim($result['EMail']); $LoginID = $result['LoginID']; $role = $result['role']; $from_email = $StaffName."@acme.com"; if($role=="national_head") { $roletype_name = "National head"; } else if($role=="zone_head") { $roletype_name = "Zone head"; } else if($role=="regional_head") { $roletype_name = "Regional head"; } else if($role=="circle_head") { $roletype_name = "Circle head"; } else if($role=="service_manager") { $roletype_name = "Service manager"; } else if($role=="cluster_incharge") { $roletype_name = "Cluster incharge"; } $subject = "$roletype_name forgot password email"; $message .= "Here is your $roletype_name login details:<br><br>"; $message .= "Email: $EMail <br>"; $message .= "Username: $StaffName <br>"; $message .= "Login ID: $LoginID <br><br>"; $message .= "Thanks,<br>"; $message .= "ACME Team"; $confobj = new Application_Model_Fsr(); $confArr = $confobj->getSmtpMailServerSettings(); $config = $confArr['config']; $server = $confArr['server']; $fromemailconf = $confArr['fromemailconf']; $transport = new Zend_Mail_Transport_Smtp($server, $config); Zend_Mail::setDefaultTransport($transport); //echo $EMail;die; try{ $mail = new Zend_Mail(); $mail->setSubject($subject); $mail->setFrom($fromemailconf['fromemail'], $fromemailconf['fromname']); $mail->addTo($EMail, $StaffName); $mail->setBodyHtml($message); $mail->send($transport); $this->view->errorMessage = "Email has been sent successfully."; } catch (Exception $e) { $this->view->errorMessage = "Error in sending email."; // echo '<pre>'; //echo $e->getMessage();die; //print_r($e); } //echo 'dsfds';die; } else { $this->view->errorMessage = "Invalid mobile number. Please try again."; } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static function password_forgot() {\n $model = \\Auth::$model;\n\n # hash GET param exists\n if (!$hash = data('hash'))\n go('/');\n\n # user hash exists\n $user = $model::first(array(\n 'fields' => 'id, email, name',\n 'where' => \"hash_password_forgot = '$hash'\"\n ));\n\n if (empty($user))\n go('/');\n\n # POST passwords sent\n if ($model::data()) {\n $user->password = $model::data('password');\n $user->password_confirm = $model::data('password_confirm');\n\n # validate passwords\n if ($user->validate()) {\n $user->password = auth_encrypt($user->password);\n $user->hash_password_forgot = '';\n\n $user->edit() ?\n flash('Sua senha foi alterada com sucesso.') :\n flash('Algo ocorreu errado. Entre em contrato com a empresa.', 'error');\n\n go('/');\n }\n }\n\n globals('user', $user);\n }", "public function do_forgot_password()\n {\n if( Confide::forgotPassword( Input::get( 'email' ) ) )\n {\n $notice_msg = Lang::get('confide::confide.alerts.password_forgot');\n return Redirect::action('UserController@login')\n ->with( 'notice', $notice_msg );\n }\n else\n {\n $error_msg = Lang::get('confide::confide.alerts.wrong_password_forgot');\n return Redirect::action('UserController@forgot_password')\n ->withInput()\n ->with( 'error', $error_msg );\n }\n }", "public function forgotPassword(){\r\n\r\n fn_logged_in();\r\n\r\n $view = \"forgot_password\";\r\n $data = array(\r\n \"page_title\" => \"Forgot Password\"\r\n );\r\n $this->render_page($view, $data);\r\n }", "function forgot_password()\n\t{\n\t\tif ($this->tank_auth->is_logged_in()) {\t\t\t\t\t\t\t\t\t// logged in\n\t\t\tredirect('');\n\n\t\t} elseif ($this->tank_auth->is_logged_in(FALSE)) {\t\t\t\t\t\t// logged in, not activated\n\t\t\tredirect('/auth/send_again/');\n\n\t\t} else {\n\t\t\t$this->form_validation->set_rules('email', 'Email', 'trim|required|xss_clean|valid_email');\n\n\t\t\t$data['errors'] = array();\n\n\t\t\tif ($this->form_validation->run()) {\t\t\t\t\t\t\t\t// validation ok\n\t\t\t\tif (!is_null($data = $this->tank_auth->forgot_password(\n\t\t\t\t\t\t$this->form_validation->set_value('email')))) {\n\n\t\t\t\t\t$data['site_name'] = $this->config->item('website_name', 'tank_auth');\n\n\t\t\t\t\t// Send email with password activation link\n\t\t\t\t\t$this->_send_email('forgot_password', $data['email'], $data);\n\n\t\t\t\t\t$this->_show_message($this->lang->line('auth_message_new_password_sent'));\n\n\t\t\t\t} else {\n\t\t\t\t\t$errors = $this->tank_auth->get_error_message();\n\t\t\t\t\tforeach ($errors as $k => $v)\t$data['errors'][$k] = $this->lang->line($v);\n\t\t\t\t}\n\t\t\t}\n\t\t\t//$this->load->view('auth/forgot_password_form', $data);\n\t\t\tdisplay('forgot_password', $data);\n\t\t}\n\t}", "static function password_forgot() {\n parent::password_forgot();\n view_var('user', globals('user'));\n }", "public function forgotPassword()\n { \n $siteUrl = ($this->request->type)?env('WEB_SITE_AUDIO_URL'):env('WEB_SITE_URL');\n $this->setRules([ 'email' => 'required|exists:customers,email' ]);\n $this->setMessages('email.exists', trans('customer::customer.email_not_registered'));\n $this->_validate();\n $newPassword = str_random(8);\n $user = $this->_customer->where('email', $this->request->email)->first();\n $user->forgot_password = $newPassword;\n $user->save();\n if (!empty($user) && count($user->toArray()) > 0) {\n $this->email = $this->email->fetchEmailTemplate('forgot_password');\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, $siteUrl.'reset-password' . '/' . $user->forgot_password ], $this->email->content);\n $this->notification->email($user, $this->email->subject, $this->email->content);\n }\n return true;\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 forgot()\n\t{\n\t\t/**\n\t\t* Intilize Url class for post and get request\n\t\t**/\n\t\t$email = $this->url->post('mail');\n\t\t/** \n\t\t* Check submit is POST request \n\t\t* Validate input field\n **/\n\t\tif (!isset($_POST['forgot']) || !$this->validateForgot($email)) {\n\t\t\t$this->session->data['error'] = 'Warning: Please enter valid data in input box.';\n\t\t\t$this->url->redirect('forgot');\n\t\t}\n\n\t\t$token = $this->url->post('_token');\n\t\t$token_check = hash('sha512', TOKEN . TOKEN_SALT);\n\t\tif (hash_equals($token_check, $token) === false ) {\n\t\t\t$this->session->data['error'] = 'Warning: Invalid token. Please try again.';\n\t\t\t$this->url->redirect('forgot');\n\t\t}\n\n\t\t/** \n\t\t* If the user exists\n\t\t* Check his account and login attempts\n\t\t* Get user data \n **/\n\t\t$this->loginModel = new Login();\n\t\tif ($user = $this->loginModel->checkUserEmail($email)) {\n\t\t\t/** \n\t\t\t* Check Login attempt\n\t\t\t* The account is locked From too many login attempts \n **/\n\t\t\tif (!$this->checkLoginAttempts($email)) {\n\t\t\t\t$this->session->data['error'] = 'Warning: Your account has exceeded allowed number of login attempts. Please try again in 1 hour.';\n\t\t\t\t$this->url->redirect('forgot');\n\t\t\t} elseif ( $user['status'] != \"1\" ) {\n\t\t\t\t$data['hash'] = md5(uniqid(mt_rand(), true));\n\t\t\t\t$data['email'] = $email;\n\t\t\t\t$data['name'] = $user['name'];\n\t\t\t\t$this->loginModel->editHash($data);\n\t\t\t\t$this->forgotMail($data);\n\t\t\t\t$this->session->data['success'] = 'Success: Reset instruction sent to your E-mail address.';\n\t\t\t\t$this->url->redirect('login');\n\t\t\t} else {\n\t \t/** \n\t \t* If account is disabled by admin \n\t\t * Then Show error to user\n\t\t **/\n\t \t$this->session->data['success'] = 'Success: Your account has disabled by admin, For more info contact us.';\n\t \t$this->url->redirect('login');\n\t }\n\n\t\t\t/** \n\t\t\t* User exists now We check if\n\t\t\t* Send Mail to user for reset password\n **/\n\n\t\t} else {\n\t\t\t$this->session->data['error'] = 'Warning: Account does not exists.';\n\t\t\t$this->url->redirect('forgot');\n\t\t}\n\t}", "public function resetPassword();", "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 }", "private function forgotPassword()\n {\n try\n {\n $request = $_POST;\n\n if( !isset($request['username']) || $request['username']==\"\" )\n throw_error_msg(\"user name not provided\");\n\n global $userquery; \n $userquery->reset_password(1,$request['username']);\n\n if(error())\n {\n throw_error_msg(error('single'));\n }\n else\n { \n $data = array('code' => \"200\", 'status' => \"success\", \"msg\" => 'success', \"data\" => \"An Email Has Been Sent To You. Please Follow the Instructions there to Reset Your Password\");\n $this->response($this->json($data));\n }\n\n }\n catch(Exception $e)\n {\n $this->getExceptionDelete($e->getMessage());\n }\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 }", "function forgot_password()\n {\n if ($this->tank_auth->is_logged_in()) {\t\t\t\t\t\t\t\t\t// logged in\n redirect('');\n\n\n\n } elseif ($this->tank_auth->is_logged_in(FALSE)) {\t\t\t\t\t\t// logged in, not activated\n redirect('/auth/send_again/');\n\n } else {\n $this->form_validation->set_rules('login', 'Email or login', 'trim|required|xss_clean');\n\n $data['errors'] = array();\n\n if ($this->form_validation->run()) {\t\t\t\t\t\t\t\t// validation ok\n if (!is_null($data = $this->tank_auth->forgot_password(\n $this->form_validation->set_value('login')))) {\n\n $data['site_name'] = $this->config->item('website_name', 'tank_auth');\n\n // Send email with password activation link\n\n $this->_send_email('forgot_password', $data['email'], $data);\n\n $this->_show_message($this->lang->line('auth_message_new_password_sent'));\n\n\n\n } else {\n $errors = $this->tank_auth->get_error_message();\n foreach ($errors as $k => $v)\t$data['errors'][$k] = $this->lang->line($v);\n }\n }\n $this->load->view('auth/forgot_password_form', $data);\n }\n }", "public function forgotten_password() {\n $email = $this->input->post('email');\n if (!$this->users_model->fields(array('id'))->where('email', $email)->limit(1)->get()) {\n return $this->send_error('NOT_REGISTERED');\n }\n $this->load->helper('string');\n $this->load->library('email');\n $token = random_string('sha1');\n if (!$this->users_model->where('email', $email)->update(array('forgotten_password_code' => $token, 'forgotten_password_time' => time()))) {\n return $this->send_error('ERROR');\n }\n $this->email->from(config_item('email_from'), config_item('email_from_name'))\n ->to($email)\n ->subject('Passwrod reset | Go4Slam app')\n ->message('Hello, <br><br> Press the link below to set a new password. <br><br><a href=\"' . base_url() . 'user/reset_password/' . urlencode($email) . '/' . urlencode($token) . '\">Click here</a>')\n ->set_mailtype('html');\n if (!$this->email->send()) {\n return $this->send_error('UNABLE_TO_SEND_EMAIL');\n }\n return $this->send_success();\n }", "public function forgotpassword() {\n\n\t\t$login_box_visiblity = '';\n\t\t$forgot_box_visiblity = 'visible';\n\n\t\t$this->JQValidator->addValidation('User', $this->User->validate, 'UserLoginForm');\n\t\t$this->JQValidator->addValidation('ForgotPasswordForm', $this->ForgotPasswordForm->validate, 'ForgotPasswordForm');\n\n\t\t$this->set(compact('login_box_visiblity', 'forgot_box_visiblity'));\n\n\t\tif (array_key_exists('ForgotPasswordForm', $this->data)) {\n\t\t\t$flag = $this->ForgotPassword->sendMail($this->data['ForgotPasswordForm'], 'admin');\n\n\t\t\tif ($flag) {\n\t\t\t\t$this->redirect('login');\n\t\t\t}\n\t\t} else {\n\t\t\t$this->login();\n\t\t}\n\t}", "public function forgot_password() {\n if ($this->Auth->login()) {\n return $this->redirect($this->Auth->redirectUrl());\n }\n $this->layout = 'GtwUsers.users';\n if ($this->request->is('post')) {\n $arrResponse = $this->User->ForgotPasswordEmail($this->request->data['User']['email']);\n if (!empty($arrResponse)) {\n if ($arrResponse['status'] == 'fail') {\n $this->Session->setFlash($arrResponse['message'], 'alert', array(\n 'plugin' => 'BoostCake',\n 'class' => 'alert-danger'\n ));\n } else {\n $this->Session->setFlash($arrResponse['message'], 'alert', array(\n 'plugin' => 'BoostCake',\n 'class' => 'alert-success'\n ));\n return $this->redirect($this->Auth->redirectUrl());\n }\n }\n }\n }", "public function forgotPassword()\n\t{\n\t\tif($this->session->userdata('VB_USER_ID') <> ''):\n\t\t\tredirect(base_url().'my-profile');\n\t\tendif;\n\n\t\t$data['error'] \t\t\t\t\t\t= \t'';\n\t\t\n\t\tif($this->input->post('mobile_number')):\n\t\t\t$mobile_number \t=\ttrim($this->input->post('mobile_number'));\n\t\t\t$result \t\t=\t$this->common_model->getAllData('vb_users','mobile_number',$mobile_number,'','','single');\n\t\t\tif($result):\t\n\t\t\t\tif($result['status'] != 'A'):\t\n\t\t\t\t\techo \"blocked\";die;\n\t\t\t\telse:\t\n\t\t\t\t\t$param['user_password_otp']\t\t=\t4321;/*generateRandomString(4,'n');*/\n\t\t\t\t\t$this->common_model->editData('vb_users',$param,'user_id',$result['user_id']);\n\t\t\t\t\t$this->session->set_userdata('VB_FORGOT_USER_PHONE',$result['mobile_number']);\n\t\t\t\t\techo \"success\";die;\n\t\t\t\tendif;\n\t\t\telse:\n\t\t\t\techo \"noaccount\";die;\n\t\t\tendif;\n\t\tendif;\n\t\t\n\t\t$this->layouts->set_title(stripcslashes('Forgot Password | VBloggers'));\n\t\t$this->layouts->set_keyword(stripcslashes('Forgot Password | VBloggers'));\n\t\t$this->layouts->set_description(stripcslashes('Forgot Password | VBloggers'));\n\t\t\n\t\t$this->layouts->login_view('user/forgotpassword',array(),$data);\n\t}", "function forgot_password()\n\t{\n\t\tif ($this->tank_auth->is_logged_in()) {\t\t\t\t\t\t\t\t\t// logged in\n\t\t\tredirect('');\n\n\t\t} elseif ($this->tank_auth->is_logged_in(FALSE)) {\t\t\t\t\t\t// logged in, not activated\n\t\t\tredirect('/auth/send_again/');\n\n\t\t} else {\n\t\t\t$this->form_validation->set_rules('login', 'Email or Username', 'trim|required|xss_clean');\n\n\t\t\t$data['errors'] = array();\n\n\t\t\tif ($this->form_validation->run()) {\t\t\t\t\t\t\t\t// validation ok\n\t\t\t\tif (!is_null($data = $this->tank_auth->forgot_password(\n\t\t\t\t\t\t$this->form_validation->set_value('login')))) {\n\n\t\t\t\t\t$data['site_name'] = config_item('company_name');\n\n\t\t\t\t\t// Send email with password activation link\n\t\t\t\t\t$this->_send_email('forgot_password', $data['email'], $data);\n\t\t\t\t\t$this->session->set_flashdata('message',$this->lang->line('auth_message_new_password_sent'));\n\t\t\t\t\t//$this->_show_message($this->lang->line('auth_message_new_password_sent'));\n\t\t\t\t\tredirect('login');\n\n\t\t\t\t} else {\n\t\t\t\t\t$errors = $this->tank_auth->get_error_message();\n\t\t\t\t\tforeach ($errors as $k => $v)\t$data['errors'][$k] = $this->lang->line($v);\n\t\t\t\t}\n\t\t\t}\n\t$this->load->module('layouts');\n\t$this->load->library('template');\n\t$this->template->title('Forgot Password - '.config_item('company_name'));\n\t$this->template\n\t->set_layout('login')\n\t->build('auth/forgot_password_form',isset($data) ? $data : NULL);\n\t\t\t//$this->load->view('auth/forgot_password_form', $data);\n\t\t}\n\t}", "public function postForgotPw(){\n\t\t//find user where email = input email\n\t\t$user = User::where('email','=',Str::lower(Input::get('email')));\n\n\t\t//if user found\n\t\tif($user->count()){\n\n\t\t\t//if match found\n\t\t\t$user \t\t\t\t\t= $user->first();\n\n\t\t\t//generate new activate code and new password\n\t\t\t$code \t\t\t\t\t= str_random(60);\n\t\t\t$password \t\t\t\t= str_random(10);\n\n\t\t\t//update value in db\n\t\t\t$user->activate_code\t= $code;\n\t\t\t$user->password_temp\t= Hash::make($password);\n\n\t\t\t//save to db\n\t\t\tif($user->save()){\n\n\t\t\t\t//send email to user with new password and activate link\n\t\t\t\tMail::send('emails.auth.forgot_mail',array('link' => URL::route('account-recover', $code), 'name' => $user->last_name, 'password'=>$password), function($message) use ($user){\n\t\t\t\t\t$message->to($user->email, $user->last_name)->subject(\"It's ok, it happens. Here is yours...\");\n\t\t\t\t});\t\t\t\t\n\t\t\t\t\n\t\t\t\t//return to forgot-pw page\n\t\t\t\treturn Redirect::route('account-forgot-pw')\n\t\t\t\t\t\t->with('global','<div class=\"alert alert-success\" role=\"alert\">\n\t\t\t\t\t\t\t\t\t\t\t<span class=\"glyphicon glyphicon-envelope\" aria-hidden=\"true\"></span>\n\t\t\t\t\t\t\t\t\t\t\tNew password has been sent. Please check your mail.\n\t\t\t\t\t\t\t\t\t\t</div>');\n\t\t\t}\n\n\t\t}else{\n\n\t\t\t//return error msg wrong old password\n\t\t\treturn Redirect::route('account-forgot-pw')\n\t\t\t\t\t->with('global','<div class=\"alert alert-danger\" role=\"alert\">\n\t\t\t\t\t\t\t\t\t\t<span class=\"glyphicon glyphicon-exclamation-sign\" aria-hidden=\"true\"></span>\n\t\t\t\t\t\t\t\t\t\t<span class=\"sr-only\">Error:</span>\n\t\t\t\t\t\t\t\t\t\tIncorrect Email Address. Please try again.\n\t\t\t\t\t\t\t\t\t</div>');\n\t\t}\n\t}", "public function forgottenPassword()\n {\n\t\t// Load helpers and libraries\n\t\thelper(['form', 'url']);\n\t\t$M_User = new M_User();\n\n\t\t// Default return\n\t\t$ret = redirect()->to(base_url());\n\n $options = [\n\t\t\t'action' => 'Users/forgottenPassword' // Route\n ];\n \n\t\t$request = $this->request;\n \n\t\t// Retrieving the current step of the process\n\t\t$step = $request->getPostGet('step');\n\n switch ($step){\n\t\t\tcase 1:\n\t\t\t\t// Step 1: Display email form\n\t\t\t\t$ret = json_encode(view(FORM_FORGOTTEN_PWD_STEP_1, $options));\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\t// Step 2: Send the email\n\t\t\t\t$postData = $request->getPostGet('forgottenPwd');\n\n\t\t\t\t$options['alert'] = 'Un problème est survenu lors de l\\'envoi de l\\'email.';\n\t\t\t\t$options['type'] = 'danger';\n\n\t\t\t\t$ret = json_encode(view(FORM_FORGOTTEN_PWD_STEP_1, $options));\n\n\t\t\t\tif(is_array($postData))\n {\n\t\t\t\t\t$email = $postData['email'];\n\t\t\t\t\t// Everything went well : sending the password reset email\n\t\t\t\t\tif ($M_User->sendPwdResetEmail($email) == SC_SUCCESS) {\n\t\t\t\t\t\t$options['alert'] = 'Un email vient de vous être envoyé. Merci de cliquer sur le lien qu\\'il contient.';\n $options['type'] = 'success';\n\t\t\t\t\t\t$ret = json_encode(view(FORM_FORGOTTEN_PWD_STEP_2, $options));\n }\n\t\t\t\t\t// TODO - User not found\n }\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\t// Step 3 : Token verification\n\t\t\t\t$token = $request->getPostGet('token');\n\n\t\t\t\t$options = [\n\t\t\t\t\t'action' => 'Users/forgottenPassword', // Route\n\t\t\t\t\t'token' => $token, // Security token\n\t\t\t\t\t'script' => self::ENCRYPTION_URL // Script URL for SHA256 encryption\n\t\t\t\t];\n\n\t\t\t\tif ($M_User->findOneBy('securityToken', $token) != null) {\n\t\t\t\t\t// A corresponding security token has been found in the DB\n\t\t\t\t\t$ret = render(FORM_FORGOTTEN_PWD_STEP_3, $options);\n }\n\t\t\t\t// TODO - Token expired\n\t\t\t\t// TODO - Invalid Token\n\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\t// Step 4 : Updating User password\n\t\t\t\t$postData = $request->getPostGet('pwdReset');\n\t\t\t\tif (is_array($postData)){\n\t\t\t\t\tif ($M_User->resetPassword($postData['token'],$postData['password']) != SC_SUCCESS){\n\t\t\t\t\t\t$options = [\n\t\t\t\t\t\t\t'action' => 'Users/forgottenPassword', // Route\n\t\t\t\t\t\t\t'token' => $postData['token'], // Security token\n\t\t\t\t\t\t\t'alert' => 'Une erreur interne est survenue', // Alert message\n\t\t\t\t\t\t\t'type' => 'danger' // Alert type\n\t\t\t\t\t\t];\n\n\t\t\t\t\t\t$ret = render(FORM_FORGOTTEN_PWD_STEP_3, $options);\n } \n }\n\t\t\t\tbreak;\n }\n \n\n return $ret;\n\t}", "public function forgotAction()\n {\n if (Zend_Auth::getInstance()->hasIdentity()) {\n $this->_helper->redirector->gotoRoute(array(), 'default', true);\n return;\n }\n\n $realm = $this->_getParam('realm', null);\n\n if (is_null($realm)) {\n throw new Ot_Exception_Input('msg-error-realmNotFound');\n }\n\n // Set up the auth adapter\n $authAdapter = new Ot_Model_DbTable_AuthAdapter();\n $adapter = $authAdapter->find($realm);\n\n if (is_null($adapter)) {\n\n throw new Ot_Exception_Data(\n $this->view->translate('ot-login-signup:realmNotFound', array('<b>' . $realm . '</b>'))\n );\n }\n\n if ($adapter->enabled == 0) {\n throw new Ot_Exception_Access('msg-error-authNotSupported');\n }\n\n $className = (string)$adapter->class;\n $auth = new $className();\n\n if (!$auth->manageLocally()) {\n throw new Ot_Exception_Access('msg-error-authNotSupported');\n }\n\n $form = new Ot_Form_ForgotPassword();\n\n if ($this->_request->isPost()) {\n if ($form->isValid($_POST)) {\n\n $account = new Ot_Model_DbTable_Account();\n\n $userAccount = $account->getByUsername($form->getValue('username'), $realm);\n\n if (!is_null($userAccount)) {\n $loginOptions = array();\n $loginOptions = Zend_Registry::get('applicationLoginOptions');\n\n // Generate key\n $text = $userAccount->username . '@' . $userAccount->realm . '-' . time();\n $key = $loginOptions['forgotpassword']['key'];\n $iv = $loginOptions['forgotpassword']['iv'];\n $cipher = $loginOptions['forgotpassword']['cipher'];\n\n $code = bin2hex(mcrypt_encrypt($cipher, $key, $text, MCRYPT_MODE_CBC, $iv));\n\n $this->_helper->messenger->addSuccess('msg-info-passwordResetRequest');\n\n $loggerOptions = array('attributeName' => 'accountId', 'attributeId' => $userAccount->accountId);\n\n $this->_helper->log(Zend_Log::INFO, 'User ' . $userAccount->username . ' sent a password reset request.', $loggerOptions);\n\n $dt = new Ot_Trigger_Dispatcher();\n $dt->setVariables(array(\n 'firstName' => $userAccount->firstName,\n 'lastName' => $userAccount->lastName,\n 'emailAddress' => $userAccount->emailAddress,\n 'username' => $userAccount->username,\n 'resetUrl' => Zend_Registry::get('siteUrl') . '/login/password-reset/?key=' . $code,\n 'loginMethod' => $userAccount->realm,\n ));\n\n $dt->dispatch('Login_Index_Forgot');\n\n $this->_helper->redirector->gotoRoute(array('realm' => $realm), 'login', true);\n } else {\n $this->_helper->messenger->addError('msg-error-userAccountNotFound');\n }\n } else {\n $this->_helper->messenger->addError('msg-error-invalidFormInfo');\n }\n }\n\n $this->_helper->pageTitle('ot-login-forgot:title');\n $this->view->assign(array(\n 'form' => $form,\n ));\n }", "public function actionForgotPassword() {\n //validate webservice\n $requiredParams = ['email'];\n try {\n CommonApiHelper::validateRequestParameters($requiredParams);\n\n $response = [];\n $post = Yii::$app->request->bodyParams;\n $post = array_map('trim', $post);\n //Fetch user details\n $userdata = Users::findOne(['email' => $post['email'], 'status' => '1']);\n if (!empty($userdata)) {\n $userdata->password_reset_token = Yii::$app->security->generateRandomString() . '_' . time();\n if ($userdata->save(false)) {\n Users::sendPasswordResetEmail($userdata);\n }\n return CommonApiHelper::return_success_response(\"Reset Password link has been sent to your registered email id.\", \"\", []);\n } else {\n return CommonApiHelper::return_error_response(\"Failed:\", \"Email id is not registered or User is inactive.\", \"2\");\n }\n } catch (\\Exception $e) {\n return CommonApiHelper::return_error_response(\"Sorry, Please try again.\");\n }\n }", "public function forgot()\n {\n // Form Processing\n $result = $this->forgotPasswordForm->forgot( Input::all() );\n\n if( $result['success'] )\n {\n Event::fire('backend.user.forgot', array(\n 'email' => $result['mailData']['email'],\n 'userId' => $result['mailData']['userId'],\n 'resetCode' => $result['mailData']['resetCode']\n ));\n\n // Success!\n Session::flash('success', $result['message']);\n return Redirect::route('home');\n } \n else \n {\n Session::flash('error', $result['message']);\n return Redirect::route('forgotPasswordForm')\n ->withInput()\n ->withErrors( $this->forgotPasswordForm->errors() );\n }\n }", "public function doForgotPassword()\r\n {\r\n if (Confide::forgotPassword(Input::get('email'))) {\r\n $notice_msg = Lang::get('confide::confide.alerts.password_forgot');\r\n Session::flash('systemMessages', ['notice' => [$notice_msg]]);\r\n } else {\r\n $error_msg = Lang::get('pages.login.errors.wrong_password_forgot');\r\n Session::flash('systemMessages', ['errors' => [[$error_msg]]]);\r\n }\r\n\r\n return Redirect::action('UserController@login');\r\n }", "public function forgot_password()\n {\n if (post()) {\n return forgot();\n }\n\n return view('auth/forgot-password');\n }", "function userForgotPassword($userData)\n\t\t{\n\t\t\tif(isset($userData['email']) && !empty($userData['email']))\n\t\t\t{\n\t\t\t\t//get values from email id\n\t\t\t\t$user = $this->manageContent->getValue_where('user_credentials','*','email_id',$userData['email']);\n\t\t\t\tif(!empty($user[0]))\n\t\t\t\t{\n\t\t\t\t\t//set password\n\t\t\t\t\t$password = uniqid();\n\t\t\t\t\t//update the password\n\t\t\t\t\t$update_pass = $this->manageContent->updateValueWhere('user_credentials','password',md5($password),'email_id',$userData['email']);\n\t\t\t\t\t//mail to user\n\t\t\t\t\t$mailsent = $this->mailSent->forgotPasswordMail($user[0]['email_id'], $user[0]['username'], $password);\n\t\t\t\t\tif($mailsent == 1)\n\t\t\t\t\t{\n\t\t\t\t\t\t$_SESSION['success'] = 'Password is sent to your mail';\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$_SESSION['warning'] = 'Mail sending unsuccessfull';\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$_SESSION['warning'] = 'Invalid EmailId';\n\t\t\t\t}\n\t\t\t}\n\t\t}", "public function forgotPasswordAction()\n {\n $form = new ForgotPasswordForm();\n\n if ($this->request->isPost())\n {\n if($this->security->checkToken())\n {\n // Send emails only is config value is set to true\n if ($this->getDI()->get('config')->useMail) {\n\n if ($form->isValid($this->request->getPost()) == false) {\n foreach ($form->getMessages() as $message) {\n $this->flash->error($message);\n }\n } else {\n\n $user = Users::findFirstByEmail($this->request->getPost('email'));\n if (!$user) {\n $this->flash->success('There is no account associated to this email');\n } else {\n\n $resetPassword = new ResetPasswords();\n $resetPassword->usersId = $user->id;\n if ($resetPassword->save()) {\n // $this->flash->success('Success! Please check your messages for an email reset password');\n $this->flashSess->success(\"Success! Please check your messages for an email reset password\");\n $this->view->disable();\n return $this->response->redirect('');\n } else {\n foreach ($resetPassword->getMessages() as $message) {\n $this->flash->error($message);\n }\n }\n }\n }\n } else {\n $this->flash->warning('Emails are currently disabled. Change config key \"useMail\" to true to enable emails.');\n }\n }\n else {\n $this->flash->error('CSRF Validation is Failed');\n }\n }\n $this->view->form = $form;\n }", "public function postForgot()\n {\n if( Confide::forgotPassword( Input::get( 'email' ) ) )\n {\n $notice_msg = Lang::get('confide::confide.alerts.password_forgot');\n return Redirect::to('user/login')\n ->with( 'notice', $notice_msg );\n }\n else\n {\n $error_msg = Lang::get('confide::confide.alerts.wrong_password_forgot');\n return Redirect::to('user/forgot')\n ->withInput()\n ->with( 'error', $error_msg );\n }\n }", "function update_forgot_password($user, $token, $expires);", "public function resetUserPassword()\n\t{\n\t\t# make the call to the API\n\t\t$response = App::make('ApiClient')->post('user/password?forgotten=true', Input::only('email'));\t\n\n\t\t# if the call was successful we'll want to give some feedback to the user\n\t\tif(isset($response['success'])) \n\t\t{\n\t\t\tSession::flash('success', $response['success']['data']);\n\t\t}\n\t\t# similarly if it failed, but this time also show the previous form data\n\t\telse {\n\t\t\t# save the API response to some flash data\n\t\t\tSession::flash('reset-errors', getErrors($response));\n\n\t\t\t# also flash the input so we can replay it out onto the reg form again\n\t\t\tInput::flash();\n\t\t}\t\t\n\n\t\t# ... and show the reset form again\n\t\treturn Redirect::to('forgotten-password');\n\t}", "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 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 }", "public function forgotPassword()\n {\n $breadCrumb = $this->userEngine\n ->breadcrumbGenerate('forgot-password');\n\n return $this->loadPublicView('user.forgot-password', $breadCrumb['data']);\n }", "public function Forgotpassword()\n\t{\n\t\t$login = get_cookie(sha1('besaf'));\n\t\tif ($login) {\n\t\t\t//! cek login\n\t\t\tif ($this->session->userdata('role_id') == 1) {\n\t\t\t\t// user\n\t\t\t\tredirect('user');\n\t\t\t} elseif ($this->session->userdata('role_id') == 2) {\n\t\t\t\t// admin\n\t\t\t\tredirect('admin');\n\t\t\t}\n\t\t} elseif (!$login) {\n\t\t\t//! cek login\n\t\t\tif ($this->session->userdata('role_id') == 1) {\n\t\t\t\t// user\n\t\t\t\tredirect('user');\n\t\t\t} elseif ($this->session->userdata('role_id') == 2) {\n\t\t\t\t// admin\n\t\t\t\tredirect('admin');\n\t\t\t}\n\t\t}\n\n\t\t$this->session->set_userdata(['reset' => true]);\n\n\t\t$this->load->view('Front/template/header');\n\t\t$this->load->view('Front/Forgot_password');\n\t\t$this->load->view('Front/template/footer');\n\t}", "function forgot_password() {\n $datos['titulo'] = \"Restablecer Contraseña\";\n $this->render_page('usuarios/forgot_password', $datos);\n }", "public function forgotpasswordAction()\n {\n $user_service = $this->getServiceLocator()->get('user');\n $email_sent = false;\n\n if ($this->getRequest()->isPost())\n {\n $data = $this->getRequest()->getPost();\n\n $email = trim($data['email']);\n $email = strtolower($email);\n $user_service->emailPassword($email);\n $email_sent = true;\n }\n\n return ['email_sent' => $email_sent];\n }", "public function forgotPassword()\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 View::make('templates/front/forgot-password.php',array());\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}", "function forgot_password() {\r\n\r\n $this->layout = 'default';\r\n\r\n if(!empty($this->data))\r\n {\r\n\r\n\r\n $errorarray = array();\r\n if (isset($this->data['User']['email']) && (trim($this->data['User']['email']) == '' || trim($this->data['User']['email'])=='Type here')) {\r\n $errorarray['enter_email'] = ENTER_EMAIL;\r\n }\r\n else\r\n {\r\n // For check valid email or not\r\n if($this->IsEmail($this->data['User']['email'])==0)\r\n $errorarray['valid_email'] = ENTER_VALIDEMAIL;\r\n else\r\n {\r\n $check_email = $this->User->find('all', array('conditions' => array('email like'=>$this->data['User']['email'],'user_type like'=>'user','status LIKE'=>0)));\r\n\r\n if(empty($check_email))\r\n {\r\n $errorarray['email_not_match'] = EMAIL_NOTFOUND;\r\n }\r\n }\r\n }\r\n\r\n $this->set('errorarray',$errorarray);\r\n\r\n if(empty($errorarray))\r\n {\r\n $new_pass = $this->generatePassword(PASSWORD_LIMIT);\r\n\r\n $name = trim($check_email[0]['User']['name']);\r\n $email = trim($check_email[0]['User']['email']);\r\n\r\n //$this->email_client_forgetpass($name,$email,$new_pass);\r\n\r\n $update_user['User']['password'] = md5($new_pass);\r\n $update_user['User']['encrypt_password'] = $this->encrypt_pass($new_pass);\r\n $update_user['User']['id'] = $check_email[0]['User']['id'];\r\n\r\n// $this->pre($update_user);\r\n// $this->pre($this->data);\r\n// exit;\r\n\r\n $this->User->save($update_user);\r\n //$this->redirect(DEFAULT_ADMINURL . 'users/forgot_password/succhange');\r\n }\r\n }\r\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 }", "public function forgotPassword()\n {\n $email = $this->input->post('email');\n $token = bin2hex(random_bytes(25));\n\n $user_id = $this->authentication_helper->checkEmail($email);\n\n if (isset($user_id) && !empty($user_id)) \n {\n $status = $this->authentication_worker->createToken($token, $user_id);\n if ($status) {\n $to_email = $email;\n $subject = \"Redefina sua senha\";\n $url = site_url('authentication/resetNewPassword' . \"?token=\" . $token);\n $message = \"Redefina sua senha da ZZjober clicando no link<br/><a href='\" . $url. \"'>\".$url.\"</a>\";\n $this->sendMail($to_email, $subject, $message);\n $this->session->set_flashdata('success_msg', 'Verifique seu e-mail para redefinir sua nova senha através do link');\n redirect('home/Entrar');\n }\n } else {\n $this->session->set_flashdata('error_msg', 'E-mail não encontrado');\n redirect('home/Entrar');\n }\n\n }", "function forgot_password()\n\t\t{\n\t\t\t// setting validation rules by checking whether identity is email\n\t\t $this->form_validation->set_rules('identity', 'Email', 'required|valid_email');\n\n\t\t\tif ($this->form_validation->run() == false)\n\t\t\t{\n\t\t\t\t$this->data['type'] = $this->config->item('identity','ion_auth');\n\n\t\t\t\t// Get any status message that may have been set.\n\t\t\t\t$this->data['message'] = $this->session->flashdata('message');\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$identity = $this->ion_auth->where('email', $this->input->post('identity'))->users()->row();\n\n\t\t\t\tif(empty($identity)) {\n\n\t \t\tif($this->config->item('identity', 'ion_auth') != 'email')\n\t \t{\n\t\t $this->data['message'] = 'No record of that username';\n\t \t}\n\t \telse\n\t \t{\n\t\t $this->data['message'] = 'No record of that email address';\n\t \t}\n\n\t \t\t}\n\t \t\telse\n\t \t\t{\n\t\t\t\t\t// run the forgotten password method to email an activation code to the user\n\t\t\t\t\t$forgotten = $this->ion_auth->forgotten_password($identity->{$this->config->item('identity', 'ion_auth')});\n\n\t\t\t\t\tif ($forgotten)\n\t\t\t\t\t{\n\t\t\t\t\t\t// if there were no errors\n\t\t\t\t\t\t$this->session->set_flashdata('message', $this->ion_auth->messages());\n\t\t\t\t\t\tredirect(\"login\", 'refresh'); //we should display a confirmation page here instead of the login page\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$this->session->set_flashdata('message', $this->ion_auth->errors());\n\t\t\t\t\t\tredirect(current_url(), 'refresh');\n\t\t\t\t\t}\n\t \t\t}\n\t\t\t}\n\t\t\t$this->load->view('public/auth/forgot_password', $this->data);\n\t\t}", "public function doForgotPass(ForgotPassRequest $request)\n { \n try {\n $data = $request->all();\n if (!empty($data)) {\n $new_pwd = str_random(16);\n DB::table('users')->where('e_mail', $data['email'])->update(['password' => md5($new_pwd)]);\n //send mail\n Mail::to($data['email'])\n ->queue(new ForgotPass($new_pwd));\n return redirect('/forgotpasssuccess');\n }\n return redirect('/forgotpass');\n } catch(Exception $e) {\n return redirect('/forgotpass')->with('error', 'ユーザー名とパスワードが違います。');\n }\n \n }", "public function forgot_pwd()\r\n {\r\n //provided the correct combination of user name and email address\r\n\r\n $username = htmlspecialchars($_POST['username']);\r\n $email = htmlspecialchars($_POST['email']);\r\n\r\n require_once 'database/profile.php';\r\n require_once 'database/session.php';\r\n\r\n $usernameId = getUserId($username);\r\n if (!$usernameId) {\r\n return \"Username does not exist.\";\r\n }\r\n\r\n $userInfo = getProfile($usernameId);\r\n if ($userInfo[\"email\"] != $email) {\r\n return \"Email doesn't match the one we have on file.\";\r\n }\r\n\r\n $password = getPassword($userId);\r\n return $this->send_forgotten_pwd($username, $password, $email);\r\n \r\n }", "public function forgotpass($stat=0) {\n\t\t$this->layout = \"adminloginLayout\";\n\t\t$this->loadModel('User');\n\t\t\n\t\tif ($this->request->is('post')) {\n\t\t\t$useremail = $this->request->data['txtEmails'];\n\t\t\t//unbind user model\n\t\t\t$this->User->unbindModel(array(\n\t\t\t\t'hasMany'=>array('UserCreditDetail','CustomerRide','DriverRide'),\n\t\t\t\t'hasOne'=>array('CustomerCustom','DriverCustom','VehicleDetail')\n\t\t\t));\n\t\t\t$findEmail = $this->User->find('first',array(\n\t\t\t\t'conditions'=> array('User.email'=>$useremail,'User.user_type'=>'1')\n\t\t\t));\n\n\t\t\tif (is_array($findEmail) && count($findEmail)>0){\n\t\t\t\t$id=$findEmail['User']['id']; \n\t\t\t\t$email = $findEmail['User']['email'];\n\t\t\t\t$name = ucwords($findEmail['User']['f_name'].\" \".$findEmail['User']['l_name']);\n\t\t\t\t\n\t\t\t\t$encriptbase= md5(\"Txc-\".rand(9999,99999).\"-\".$id);\n\t\t\t\t//unbind the user model\n\t\t\t\t$this->User->unbindModel(array(\n\t\t\t\t\t'hasMany'=>array('UserCreditDetail','CustomerRide','DriverRide'),\n\t\t\t\t\t'hasOne'=>array('CustomerCustom','DriverCustom','VehicleDetail')\n\t\t\t\t));\n\t\t\t\t\n\t\t\t\t$this->User->updateAll(array('User.passretrivestr'=>\"'\".$encriptbase.\"'\"),array('User.id'=>$id));\n\t\t\t\t//get encripted string\n\t\t\t\t$encriptlink = $this->encriptlinkstr($email,$encriptbase);\n\t\t\t\t$resetpasslink = FULL_BASE_URL.$this->base.'/users/resetpassword/'.$encriptlink;\n\t\t\t\t\n\t\t\t\t/*\n\t\t\t\t$userpass= 'Taxicel-'.rand(999,99999);\n\t\t\t\t$id= $findEmail['User']['id']; \n\t\t\t\t\n\t\t\t\t$this->User->updateAll(array('User.pass'=>\"'\".md5($userpass).\"'\"),array('User.id'=>$id));\n\t\t\t\t\n\t\t\t\t$email = $findEmail['User']['email'];\n\t\t\t\t$name = $findEmail['User']['username'];\n\t\t\t\t*/\n\t\t\t\t$serverIsLocalHost = $this->serverDetect();\n\t\t\t\tif(!$serverIsLocalHost){\n\t\t\t\t\t//EMAIL TO USER\n\t\t\t\t\t$Email = new CakeEmail();\n\t\t\t\t\t$Email->template('forgot_pass','complaint_email');\n\t\t\t\t\t$Email->viewVars(array(\n\t\t\t\t\t\t\t'useremail' \t=> $email,\n\t\t\t\t\t\t\t'username' \t=> $name,\n\t\t\t\t\t\t\t'password' \t=> $resetpasslink\n\t\t\t\t\t));\n\t\t\t\t\t$Email->emailFormat('html');\n\t\t\t\t\t$Email->from(array($this->adminFromEmail));\n\t\t\t\t\t$Email->to($email);\n\t\t\t\t\t$Email->subject('Password Reset Link');\n\t\t\t\t\t$Email->send();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$this->redirect(array('action' => 'driver_login',3,'driver' => true));\n\t\t\t\t//$this->Session->setFlash(__('Password send successfully to your email. '));\n\t\t\t\t\n\t\t\t\t// End OF EMAIL\n\t\t\t\t\t\n\t\t\t}\n\t\t\telse{\n\t\t\t\t$this->redirect(array('action' => 'driver_login',4,'driver' => true));\n\t\t\t\t//$this->Session->setFlash(__('Invalid Email id. Please, try again', true)); \n\t\t\t}\n\t\t}\n\t\t$this->redirect(array('action' => 'driver_login',0,'driver' => true));\n\t\t$this->set('stat',$stat);\n\t}", "public function forgotPassword($postValues){\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 forgot(Request $request) {\n\t\t$user = Auth::user();\n\n\t\tif ($user)\n\t\t\treturn redirect()->intended('/');\n\n\t\tif ( $request->isMethod('post') ) {\n\n\t\t\t$validator = Validator::make($request->all(), ['email' => 'required|email']);\n\n\t\t\t$email = $request->input('email');\n\t\t\tif ( $validator->fails() ) {\n\t\t\t\tadd_message( $validator->errors()->first('email'), 'danger' );\n\n\t\t\t\treturn view('pages.auth.forgot', [\n\t\t\t\t\t'page' => 'auth.forgot',\n\t\t\t\t\t'email' => $email,\n\t\t\t\t]);\n\t\t\t}\n\n\t\t\t$user = User::where('email', $email)\n\t\t\t\t\t\t->orWhere('username', $email)\n\t\t\t\t\t\t->first();\n\t\t\t\t\t\t\n\t\t\tif ( !$user ) {\n\t\t\t\tadd_message( trans('page.auth.forgot.invalid_email'), 'danger' );\n\t\t\t\treturn view('pages.auth.forgot', [\n\t\t\t\t\t'page' => 'auth.forgot',\n\t\t\t\t\t'email' => $email,\n\t\t\t\t]);\n\t\t\t} elseif ($user && $user->isSuspended()) {\n\t\t\t\tadd_message( trans('page.auth.forgot.suspended_account'), 'danger' );\n\t\t\t\treturn view('pages.auth.forgot', [\n\t\t\t\t\t'page' => 'auth.forgot',\n\t\t\t\t\t'email' => $email,\n\t\t\t\t]);\n\n\t\t\t} else {\n\t\t\t\t$token = $user->generateToken(UserToken::TYPE_FORGOT_PASSWORD);\n\n\t\t\t\tif ( $token ) {\n\t\t\t\t\t$reset_url = route('forgot.reset', ['token' => $token]);\n\n\t\t\t\t\tEmailTemplate::send($user, 'FORGOT_PASSWORD', 0, [\n\t\t\t\t\t\t'URL' => $reset_url,\n\t\t\t\t\t\t'USER' => $user->fullname()\n\t\t\t\t\t]);\n\n\t\t\t\t\tadd_message( trans('page.auth.forgot.submit_get_new_password'), 'success' );\n\t\t\t\t} else {\n\t\t\t\t\tadd_message( trans('page.auth.forgot.failed_get_new_password'), 'danger' );\n\t\t\t\t}\n\n\t\t\t\treturn view('pages.auth.forgot', [\n\t\t\t\t\t'page' => 'auth.forgot',\n\t\t\t\t\t'email' => $email,\n\t\t\t\t]);\n\t\t\t}\n\t\t\t\n\t\t}\n\n\t\treturn view('pages.auth.forgot', [\n\t\t\t'page' => 'auth.forgot'\n\t\t]);\n\t}", "public function post_forgotpassword() {\n try {\n $i = Input::post();\n\n $auth = new \\Craftpip\\OAuth\\Auth();\n $users = $auth->getByUsernameEmail($i['email']);\n if (!$users) {\n throw new \\Craftpip\\Exception('Email/Username not registered with us.');\n }\n\n $mail = new \\Craftpip\\Mail($users['id']);\n $mail->template_forgotpassword();\n $mail->send();\n\n $response = array(\n 'status' => true,\n 'message' => 'asdsa',\n );\n } catch (Exception $e) {\n $e = new \\Craftpip\\Exception($e->getMessage(), $e->getCode());\n $response = array(\n 'status' => false,\n 'reason' => $e->getMessage(),\n );\n }\n\n echo json_encode($response);\n }", "public function reset_password()\n {\n \n }", "public function actionForgottenPassword() {\n\n $model = new ForgottenPasswordForm();\n\n if (isset($_POST['ForgottenPasswordForm'])) {\n\n $model->attributes = $_POST['ForgottenPasswordForm'];\n\n if ($model->validate()) {\n\n $person = DBServices::getPerson($model->email);\n\n if ($person != null) {\n\n $newPassword = DBServices::resetPassword($person);\n\n if (Emails::sendPerson_ResetPasswordEmail($person, $newPassword)) {\n\n Yii::app()->user->setFlash('success', Yii::t('texts', 'FLASH_EMAIL_SUCCESSFULLY_SENT'));\n } else {\n Yii::app()->user->setFlash('error', Yii::t('texts', 'FLASH_ERROR_SENDING_EMAIL'));\n }\n } else {\n Yii::app()->user->setFlash('error', Yii::t('texts', 'FLASH_ERROR_EMAIL_DOES_NOT_EXIST'));\n }\n }\n }\n\n $this->render('forgottenPassword', array('model' => $model));\n }", "function forgot()\n\t{\n\t\t$email_count = DB::table('users')\n ->where('email',Input::get('email'))\n ->count();\n\t\t\tif ($email_count == 1) {\t\t\n\n\t\t\t\t/* send email for password reset link */\n\t\t\t\t$resetLink = $this->generateResetPasswordLink(Input::get('email'));\t\n\t\t\t\t$resetLink_url = 'http://' . $_SERVER['SERVER_NAME'] . $resetLink;\n\t\t\t\t//return Redirect::to($resetLink);\n\n\t\t\t\t$to_email = Input::get('email');\n\t\t\t\t$subject = \"Nobleman password reset link.\";\n\t\t\t\t$passwordreset_link = 'http://localhost/nobleman';\n\t\t\t\t$message_body = '<html><body>\n\t\t\t\t\t\t\t\t<p>Hi,</p>\n\t\t\t\t\t\t\t\t<P></p>\n\t\t\t\t\t\t\t\t<p>Here is your password reset link:</p>\n\t\t\t\t\t\t\t\t<P>Link : <a href=\"'.$resetLink_url.'\">'.$resetLink_url.'</a></p>\n\t\t\t\t\t\t\t\t<P></p>\n\t\t\t\t\t\t\t\t</body></html>';\n\t\t\t\t$nb_email = \"nan.kalayar@innov8te.com.sg\";\t\n\n\t\t\t $headers = 'From: '.$nb_email.'' . \"\\r\\n\" .\n\t\t\t 'Reply-To: '.$nb_email.'' . \"\\r\\n\" .\n\t\t\t \"Content-Type: text/html; charset=ISO-8859-1\\r\\n\" .\n\t\t\t 'X-Mailer: PHP/' . phpversion();\n\t\t\t \n\t\t\t mail($to_email, $subject, $message_body, $headers);\n\n\t\t\t Session::flash('sendmessage', 'Reset password link has been sent to your email address.Please check your email!');\n\t\t\t\treturn Redirect::to('/login');\n\n\t\t\t}else{\n\t\t\t\tSession::flash('message', 'Invalid User Email!');\n\t\t\t\treturn Redirect::to('/login');\n\t\t\t}\n\t}", "function resetPassword($userEmail){\n\n}", "public function forgotPassword1Action(){\n\n $params = array();\n $params['title'] = _(\"Forgot your password?\");\n $params['loginUsername'] = \"\";\n\n //handle forgot 1 form\n if (!empty($_POST)){\n\n $error = true;\n\n $loginUsername = $_POST['loginUsername'];\n $params['loginUsername'] = $loginUsername;\n\n //validation\n $validator = new CustomValidator();\n\n $validator->validateLoginUsername($loginUsername);\n\n //if valid\n if ($validator->isValid()){\n\n //find user from db\n $userManager = new UserManager();\n $user = $userManager->findByEmailOrUsername($loginUsername);\n\n //if user found\n if($user){\n\n $error = false;\n \n //send a message\n $mailer = new Mailer();\n $mailerResult = $mailer->sendPasswordRecovery($user);\n }\n }\n\n if($error){\n $params['error']['global'] = _(\"This email or username is not valid.\");\n }\n else {\n $params['message'] = _(\"Please check your emails!\");\n $view = new View(\"success.php\", $params);\n $view->setLayout(\"../View/layouts/modal.php\");\n $view->send(true);\n }\n }\n\n $view = new View(\"forgot_password.php\", $params);\n $view->setLayout(\"../View/layouts/modal.php\");\n $view->send(true);\n }", "function forgotten_password()\n {\t\n \t$data['heading'] = $this->lang->line('FAL_forgotten_password_label');\n \t$data['fal'] = $this->fal_front->forgotten_password();\n\t\t$this->load->view($this->_container, $data); \n\t\t$this->output->enable_profiler(TRUE);\n }", "public function forgetpassword()\n \t{\n \t\t$this->data['title'] = 'Forgot Password';\n\t\t$this->show_viewFrontInner('forget-password', $this->data);\n \t}", "public function sendForgotPasswordLink(){\n return $this->repository->sendForgotPasswordLink();\n }", "function forgotten_password() {\n $this->load->library('form_validation');\n\n $this->form_validation->set_rules('forgot_password_identity', 'Identity (Email / Login)', 'required');\n\n // Run the validation.\n if ($this->form_validation->run()) {\n // The 'forgotten_password()' function will verify the users identity exists and automatically send a 'Forgotten Password' email.\n $response = $this->ez_auth->forgotten_password($this->input->post('forgot_password_identity'));\n\n // Save any public status or error messages (Whilst suppressing any admin messages) to CI's flash session data.\n $this->session->set_flashdata('message', $this->ez_auth->get_messages());\n\n // Redirect user.\n redirect();\n }\n else {\n // Set validation errors.\n $this->data['message'] = validation_errors('<p class=\"error_msg\">', '</p>');\n\n return FALSE;\n }\n }", "public function forgotPasswordAction()\n {\n $form = new ForgotPasswordForm();\n\n if ($this->request->isPost()) {\n\n if ($form->isValid($this->request->getPost()) == false) {\n foreach ($form->getMessages() as $message) {\n $this->flash->error($message);\n }\n } else {\n\n $user = Users::findFirstByEmail($this->request->getPost('email'));\n if (!$user) {\n $this->flash->success('There is no account associated to this email');\n } else {\n\n $resetPassword = new ResetPasswords();\n $resetPassword->usersId = $user->id;\n if ($resetPassword->save()) {\n $this->flash->success('Success! Please check your messages for an email reset password');\n } else {\n foreach ($resetPassword->getMessages() as $message) {\n $this->flash->error($message);\n }\n }\n }\n }\n }\n\n $this->view->form = $form;\n }", "public function forgotPasswordAction()\n {\n $form = new ForgotPasswordForm();\n\n if ($this->request->isPost()) {\n\n if ($form->isValid($this->request->getPost()) == false) {\n foreach ($form->getMessages() as $message) {\n $this->flash->error($message);\n }\n } else {\n\n $user = Users::findFirstByEmail($this->request->getPost('email'));\n if (!$user) {\n $this->flash->success('There is no account associated to this email');\n } else {\n\n $resetPassword = new ResetPasswords();\n $resetPassword->usersId = $user->id;\n if ($resetPassword->save()) {\n $this->flash->success('Success! Please check your messages for an email reset password');\n } else {\n foreach ($resetPassword->getMessages() as $message) {\n $this->flash->error($message);\n }\n }\n }\n }\n }\n\n $this->view->form = $form;\n }", "public function forgot_password_post()\n\t{\n\t\t$array['username'] = strtolower($this->post('username'));\n\n\t\t$error = [];\n\n\t\tif (filter_var($array['username'], FILTER_VALIDATE_EMAIL) \n\t\t\tOR preg_match('/^[A-Za-z][A-Za-z0-9]{5,100}$/', $array['username'])) {\n\n\t\t\tif (empty($array['username'])) {\n\t\t\t\t$this->response(['status' => FALSE, 'error' => 'Username is empty'], REST_Controller::HTTP_BAD_REQUEST);\n\t\t\t} else {\n\t\t\t\t$validate_user = $this->api_model->validate_user($array['username'], $array['username']);\n\t\t\t\t\n\t\t\t\tif ($validate_user) {\n\t\t\t\t\t$new_password = $this->get_random_string();\n\t\t\t\t\t$update_user = $this->api_model->update_password($validate_user, $new_password);\n\t\t\t\t\tif ($update_user) {\n\t\t\t\t\t\t$send_email = $this->send_email($validate_user['email'], $new_password);\n\t\t\t\t\t\tif ($send_email) {\n\t\t\t\t\t\t\t$this->response(['status' => TRUE, 'message' => 'New password sent to email'], REST_Controller::HTTP_OK);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$this->response(['status' => FALSE, 'error' => ['Something went wrong']], REST_Controller::HTTP_BAD_REQUEST);\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$this->response(['status' => FALSE, 'error' => ['Password update failed']], REST_Controller::HTTP_BAD_REQUEST);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t$this->response(['status' => FALSE, 'error' => ['Username or email is incorrect']], REST_Controller::HTTP_BAD_REQUEST);\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\t$error[] = 'Invalid username format.';\n\t\t\t$this->response(['status' => FALSE, 'error' => $error], REST_Controller::HTTP_BAD_REQUEST);\n\t\t}\n\t}", "private function user_reset_password(){\n\t\t\tif($this->get_request_method() != \"POST\"){\n\t\t\t\t$this->response('',406);\n\t\t\t}\n\n\t\t\tif(!isset($_POST['password']) ) {\n\t\t\t\t$error = array('status' => \"Failed\", \"msg\" => \"Parameter password is require\");\n\t\t\t\t$this->response($this->json($error), 200);\n\t\t\t}\n\t\t\tif(!isset($_POST['confirm_password']) ) {\n\t\t\t\t$error = array('status' => \"Failed\", \"msg\" => \"Parameter confirm_password are require\");\n\t\t\t\t$this->response($this->json($error), 200);\n\t\t\t}\n\n\t\t\t$user_id = $this->_request['table_doctor_id'];\n\t\t\t$password = $this->_request['password'];\n\t\t\t$cpassword = $this->_request['confirm_password'];\n\n\t\t\tif(!empty($password) && !empty($cpassword) ) {\n\n\t\t\t\tif($password!=$cpassword) {\n\t\t\t\t\t$error = array('status' => \"Failed\", \"msg\" => \"Password and Confirm password is not matched\");\n\t\t\t\t\t$this->response($this->json($error), 200);\n\n\t\t\t\t} else{\n\t\t\t\t\t\t$hashed_password = sha1($password);\n\t\t\t\t\t\t$sql = \"UPDATE table_user SET user_password='\".$hashed_password.\"' WHERE user_id='\".$user_id.\"' \";\n\t\t\t\t\t\t$stmt = $this->db->prepare($sql);\n\t\t\t\t\t\t$update = $stmt->execute();\n\t\t\t\t\t\t$fetchData = $stmt->fetchAll(PDO::FETCH_ASSOC);\n\n\t\t\t\t\t\tif(count($update)==1){\n\t\t\t\t\t\t\t$error = array('status' => \"Success\", \"msg\" => \"Profile Updated\");\n\t\t\t\t\t\t\t$this->response($this->json($error), 200);\n\t\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\t\t}", "function sendUserForgotPassword($argArrPOST) {\n\n @extract($argArrPost);\n $objValid = new Validate_fields;\n $objCore = new Core();\n $objValid->check_4html = true;\n\n $objValid->add_text_field('Email', strip_tags($argArrPOST['frmUserLoginEmail']), 'email', 'y');\n\n if ($objValid->validation()) {\n $errorMsgFirst = 'Please enter valid email address!';\n } else {\n $errorMsg = $objValid->create_msg();\n }\n if ($errorMsg) {\n $objCore->setErrorMsg($errorMsg);\n return false;\n } else {\n $arrUserFlds = array('pkUserID', 'UserFirstName', 'UserEmail', 'UserPassword');\n $varUserWhere = ' 1 AND UserEmail = \\'' . trim($argArrPOST['frmUserLoginEmail']) . '\\'';\n $arrUserList = $this->select(TABLE_USERS, $arrUserFlds, $varUserWhere);\n if ($arrUserList) {\n //update the random key in the database\n\n $varRandomPassword = $this->generate_random_string(5); //die;\n\n\n $varRandomKey = md5(uniqid(microtime()));\n $arrUpdateArray = array('UserAuthorizationToken' => $varRandomKey, 'UserPassword' => md5($varRandomPassword));\n $varaffectedRecord = $this->update(TABLE_USERS, $arrUpdateArray, $varUserWhere);\n\n\n\n $argUserName = $arrUserList[0]['UserEmail'];\n //$argPassword = $arrUserList[0]['UserPassword'];\n $argPassword = $varRandomPassword;\n $argFirstName = $arrUserList[0]['UserFirstName'];\n\n //Send forget Password To User\n $varPath = '<img src=\"' . SITE_ROOT_URL . 'common/images/logo2.png' . '\"/>';\n\n $varToUser = $argArrPOST['frmUserLoginEmail'];\n $varFromUser = SITE_NAME . '<' . SITE_EMAIL_ADDRESS . '>';\n $varSubject = 'Venueset:Login Details';\n $varResetPasswordlink = '<a href=\"' . SITE_ROOT_URL . 'reset_password.php?userId=' . $arrUserList[0]['pkUserID'] . '&authorizationToken=' . base64_encode($varRandomKey) . '\">Reset Password</a>';\n $varOutput = file_get_contents(SITE_ROOT_URL . 'common/email_template/html/user_forget_password.html');\n $varUnsubscribeLink = 'Click <a href=\"' . SITE_ROOT_URL . 'unsubscribe.php?user=' . md5(trim($argArrPOST['frmUserLoginEmail'])) . '\" target=\"_blank\">here</a> to unsubscribe.';\n\n $arrBodyKeywords = array('{USER_FIRST_NAME}', '{USER_NAME}', '{USER_PASSWORD}', '{IMAGE_PATH}', '{SITE_NAME}', '{RESET_PASSWORD_LINK}', '{UNSUBSCRIBE_LINK}');\n\n $arrBodyKeywordsValues = array($argFirstName, $argUserName, $argPassword, $varPath, SITE_NAME, $varResetPasswordlink, $varUnsubscribeLink);\n $varBody = str_replace($arrBodyKeywords, $arrBodyKeywordsValues, $varOutput);\n //echo $varBody;die;\n $objCore->sendMail($varToUser, $varFromUser, $varSubject, $varBody);\n $objCore->setSuccessMsg(FRON_END_USER_FORGET_PASSWORD_SEND);\n return true;\n } else {\n $objCore->setErrorMsg(FRON_END_USER_EMAIL_EXIST_ERROR);\n return false;\n }\n }\n }", "public function postForgotPassword()\n\t{\n\t\t$rules = ['email' => 'required|email'];\n\t\t$validator = Validator::make(Input::only('email'), $rules);\n\t\tif ($validator->fails()) return Redirect::back()->withInput()->withErrors($validator);\n\n\t\tif ( ! PasswordReminder::canSendReminderEmail(Input::get('email')))\n\t\t{\n\t\t\treturn Redirect::back()->withInput()\n\t\t\t\t->withError('A reminder email has already been sent for this email address.');\n\t\t}\n\n\t\tswitch ($response = Password::remind(Input::only('email'), function($message)\n\t\t{\n\t\t\t$message->subject('WebCMS Password Reminder');\n\t\t}))\n\t\t{\n\t\t\tcase Password::REMINDER_SENT:\n\t\t\t\treturn Redirect::back()->withSuccess(Lang::get($response));\n\n\t\t\tdefault:\n\t\t\t\treturn Redirect::back()->withError(Lang::get($response));\n\t\t}\n\t}", "protected function changePassword() {}", "public function forgotPassword(){\n\t\ttry{\n\t\t\t$data\t= array();\n\t\t\t$postData\t= $this->input->post();\n\t\t\t$message\t= \"\";$status\t= \"Failed\";\n\t\t\tif(!empty($postData)){\n\t\t\t\t$this->load->library('form_validation');\n\t\t\t\t$this->form_validation->set_rules('email', 'Email', 'trim|valid_email|min_length[3]|max_length[100]|required',array('required' => 'You must provide a %s.'));\n\t\t\t\tif ($this->form_validation->run() == true) {\n\t\t\t\t\t$email\t= $postData['email'];\n\t\t\t\t\t$userInfo\t= getUserInfoByEmail($email);\n\t\t\t\t\tif(!empty($userInfo)){\n\t\t\t\t\t\t$userId\t= $userInfo->id;\n\t\t\t\t\t\t$this->load->helper('mail_helper');\n\t\t\t\t\t\t$forgotPasswordCode\t= $userId.'-'.mt_rand();\n\t\t\t\t\t\t$updateForgotpassword\t= updateUserInfo($userId,array('forget_password_code'=>$forgotPasswordCode));\n\t\t\t\t\t\tif($updateForgotpassword){\n\t\t\t\t\t\t\t$link\t= base_url('frontend/reset/index/'.base64_encode($userId.'__'.$forgotPasswordCode));\n\t\t\t\t\t\t\t$sendMail\t= sendAdminResetPasswordMail(array('email'=>$email,'link'=>$link));\n\t\t\t\t\t\t\tif($sendMail){\n\t\t\t\t\t\t\t\t$this->session->set_flashdata('resetSuccess','Forgot password link sent on provided emai id');\n\t\t\t\t\t\t\t\tredirect('login');\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t$message= \"Unable to update forgot password \";$status\t= \"Failed\";\n\t\t\t\t\t\t}\n\t\t\t\t\t}else{\n\t\t\t\t\t\t$message= \"Provided Email Id Not Exists \";$status\t= \"Failed\";\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\t$message= validation_errors(); $status\t= \"Failed\";\n\t\t\t\t}\n\t\t\t}\n\t\t\t$this->session->set_flashdata('message',$message);\n\t\t\t$data['status']\t= $status;\n\t\t\t$this->load->view('frontend/forgot_pass', $data);\n\t\t}catch(Exception\t$ex){\n\t\t\tlog_message('error','Unable to send a mail provided by user email');\n\t\t}\n\t}", "function forgotPassword(){\n\t\t\t$this->__dataDecode();\n\t\t\tif(!empty($this->data)){\n\t\t\t$data = $this->data;\n\t\t\t$username = $data['User']['userName'];\n\t\t\t$userDetail = $this->User->find('first',array('conditions'=>array(\"User.username \"=> $username)));\n\t\t\tif($username==null){\n\t\t\t\techo $username;\n\t\t\t\t$response['error']\t\t\t= 1;\n\t\t\t\t$response['response']['result'] \t= 'failure';\n\t\t\t\t$response['response']['message']\t= 'please Enter userName';\n\t\t\t\t$this->set('response', $response);\n\t\t\t\techo json_encode($response);\n\t\t\t\tdie();\n\t\t\t}\n\t\t\telse{ \n\t\t\t\t$userID = $userDetail['User']['id'];\n\t\t\t\t$data = $this->data;\n\t\t\t\t$email_to = $userDetail['User']['email'];\n\t\t\t\tif($userDetail['User']['username'] == ($username)){\n\t\t\t\t\t$password= $this->createRandomPassword();\n\t\t\t\t\t$new_password=md5($password);\n\t\t\t\t\t$this->User->id = $userID;\n\t\t\t\t\t$this->data['User']['password'] = trim($new_password);\n\t\t\t\t\tunset($this->User->validate['password']);\n \t\t\t\t\tunset($this->User->validate['confirm_password']);\n\t\t\t\t\tif($this->User->save($this->data)){\n\t\t\t\t\t\t//Default Mail component is called, to send mail. We are setting the variables for sending email\n\t\t\t\t\t\t$this->Email->to = $email_to;\n\t\t\t\t\t\t//$this->Email->bcc = array($adminEmail);\n\t\t\t\t\t\t$this->Email->subject = 'Your password here';\n\t\t\t\t\t\t$this->Email->replyTo = EMAIL_REPLY;\n\t\t\t\t\t\t$this->Email->from = \"iWrestled admin <\".EMAIL_REPLY.\">\";\n\t\t\t\t\t\t//Here, the element in /views/elements/email/html/ is called to create the HTML body\n\t\t\t\t\t\t$this->Email->template = 'simple_message'; // note no '.ctp'\n\t\t\t\t\t\t//Send as 'html', 'text' or 'both' (default is 'text')\n\t\t\t\t\t\t$this->Email->sendAs = 'both'; // because we like to send pretty mail\n\t\t\t\t\t\t//Set view variables as normal\n\t\t\t\t\t\t$this->set('userDetail', $userDetail);\n\t\t\t\t\t\t$this->set(\"password\", $password);\n\t\t\t\t\t\t//Do not pass any args to send()\n\t\t\t\t\t\tif($this->Email->send()){\n\t\t\t\t\t\t\t$response['error']\t\t\t= 0;\n\t\t\t\t\t\t\t$response['response']['result'] \t= 'success';\n\t\t\t\t\t\t\t$response['response']['message']\t= 'Password send to your email id';\n\t\t\t\t\t\t\t$this->set('response', $response);\n\t\t\t\t\t\t\techo json_encode($response);\n\t\t\t\t\t\t\tdie();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse{ \n\t\t\t\t\t$response['error']\t\t\t= 1;\n\t\t\t\t\t\t\t$response['response']['result'] \t= 'failure';\n\t\t\t\t\t\t\t$response['response']['message']\t= 'Password Enter valid email id';\n\t\t\t\t\t\t\t$this->set('response', $response);\n\t\t\t\t\t\t\techo json_encode($response);\n\t\t\t\t\t\t\tdie();\n\t\t\t\t}\n\t\t\t}\n\t\t} \n\t}", "public function forgetPass($email){\n \n if($email!=''){\n $password_token = str_random(10);\n $fake_token_one = str_random(2);\n $fake_token_two = str_random(3);\n\n $update_user_data = DB::table('users')->where('email',$email)->where('user_type','W')\n ->update(array('forget_token' => $password_token));\n\n $useremail = DB::table('users')\n ->where('email', $email)->where('user_type','W')\n ->select('*')->first();\n if(!$useremail){\n Session::flash('message','Please Enter Valid Email');\n return redirect('forgetPassword');\n }else if($useremail->login_type == 'F' || $useremail->login_type == 'G'){\n \n Session::flash('message','Sorry This Account has been linked through Social Media');\n return redirect('forgetPassword');\n }else{\n $userid = $useremail->id;\n $base_url = url('/'); \n $content =\"<p>We have received your request for change password.</p>\n <p>Please <a href='\".$base_url.\"/resetPasswordForm/$fake_token_one-$fake_token_two-$userid-$password_token'>\n Click here </a> to change your password.</p><br/><br/>Thanks<br/>Active Distribution\";\n \n\n Mail::send(array(), array(), function ($message) use ($content,$email) {\n $from = 'info@active-distribution.com';\n $message->to($email ,'Forgot Password')\n ->subject('Request for change password')\n ->setBody($content, 'text/html');\n });\n\n Session::flash('message','Please check your mail address to reset your password');\n return redirect('forgetPassword');\n }\n }else{\n Session::flash('message','Please Enter Email Address');\n return redirect('forgetPassword');\n }\n }", "public function forgotPass()\n {\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}", "public function forgot_password()\n\t{\n\t\t$this->load->view('admin/forgot_password/forgot_password_form');\n\t}", "public function reset_pass() {\n \t\t$email = $this->input->post('email');\n\n\t $pass = $this->generate_pass(16);\n\t $hash = password_hash($pass, B_CRYPT); // http://php.net/manual/en/function.password-hash.php\n\n\t $this->load->model('users_table');\n\t $this->users_table->update_password($email, $hash);\n\n\t $this->send_email($email, $pass, \"2\");\n \t}", "public function forgotPassword($user)\r\n {\r\n //The users id\r\n $id = $user->getUserid();\r\n //Generate random token\r\n $token = uniqid();\r\n // Hash the token\r\n $hashedToken = password_hash($token, PASSWORD_DEFAULT);\r\n //Set the hashed token for the user in the database\r\n $this->setSqlQuery(\"UPDATE users SET token='$hashedToken' WHERE id='$id'\");\r\n $statement = $this->_dbHandle->prepare($this->sqlQuery); // prepare a PDO statement\r\n $statement->execute(); // execute the PDO statement\r\n //Create the reset password link\r\n $resetPasswordLink = 'http://'.$_SERVER['HTTP_HOST'].'/updatepassword.php?token='.$token.'&id='.$user->getUserid();\r\n\r\n $emailMessage = \"\r\n <html>\r\n <body>\r\n <h3>Forgot your password!</h3>\r\n <hr>\r\n <br>\r\n <p>Hi \". $user->getName() .\"!, press the link below to reset your password!</p>\r\n <br>\r\n <p style='font-weight: bold'><a href='$resetPasswordLink'>Reset Password!</a></p>\r\n \r\n <br>\r\n <p style='font-size: 12px; color: red'>* If you haven't forgot your password then please click <a href=''>here</a></p>\r\n </body>\r\n </html>\r\n \";\r\n\r\n $mailer = new Mail($user->getEmail(), 'Forgot your password!', $emailMessage);\r\n $mailer->sendMail();\r\n }", "public function forgotUser($data) {\n $this->load->database();\n $email = $data->email;\n $sql = \"select * from app_users where email='$email'\";\n\n $query = $this->db->query($sql);\n if ($query->num_rows() > 0) {\n $userData = $query->_fetch_object();\n $seed = str_split('abcdefghijklmnopqrstuvwxyz' . 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' . '0123456789!@#$%^&*()'); // and any other characters\n shuffle($seed);\n $rand = '';\n foreach (array_rand($seed, 5) as $k)\n $rand .= $seed[$k];\n\n $pass = $rand;\n $password = md5($rand);\n $data = array(\n 'password' => $password,\n );\n\n $this->db->where('id', $userData->id);\n $query = $this->db->update('users', $data);\n $to = $userData->email;\n $username = $userData->username;\n $subject = \"password Change request\";\n $message = \"Hello $username. Your new password is $pass\";\n $from = \"info@60degree.com\";\n $headers = \"From:\" . $from;\n mail($to, $subject, $message, $headers);\n $image = $userData->image;\n\n $this->trueResponse(\"Password has been sent to your email address\");\n } else {\n $this->falseResponse(\"No response\");\n }\n die;\n }", "public function forgot() {\n\n\n $credentials = request()->validate(['email' => 'required|email']);\n\n $sendResetLink = Password::sendResetLink($credentials);\n\n \n\n return $this->respondWithMessage('Reset password link sent on your email id.');\n }", "public function forgotten_password($email)\n\t{\n\t\t$query=\"SELECT * FROM \".parent::SUFFIX.\"user_details where email='\".$email.\"'\";\n\t\t$resultpassword= mysql_query($query);\n\t\t$resultfetchquery=mysql_fetch_object($resultpassword); \n\t\t//$link=\"<a href='\".AbstractDB::SITE_PATH.\"sign_in_new.php'>Clcik here</a>\";\n\t\t$cnf=$this->automailCls->send_automail_user('forgot_password',\n\t\tarray(\n\t\t\t\t\t'first_name'=>$resultfetchquery->first_name,\n\t\t\t\t\t'last_name'=>$resultfetchquery->last_name,\n\t\t\t\t\t'email'=>$resultfetchquery->email,\n\t\t\t\t\t'username'=>$resultfetchquery->username,\n\t\t\t\t\t'password'=>base64_decode($resultfetchquery->password),\n\t\t\t\t\t'link'=>$link),\n\t\t\t\t\tarray($resultfetchquery->email));\n\t\t\t\t\t\n\t\treturn $cnf;\t\t\t\n\t}", "public function forgotpassword()\n\t\t{\n\t\t\tif(Auth::check()) {\n\t\t\t\tSession::flash('errorMessage', 'Dude! You\\'re alredy logged in!');\n\t\t\t\treturn Redirect::action('UsersController@index');\n\t\t\t} else {\n\t\t\t\treturn View::make('forgotpassword');\n\t\t\t}\n\t\t}", "public function actionForgotPassword() {\n $model = new User();\n // if it is ajax validation request\n if (isset($_POST['ajax']) && $_POST['ajax'] === 'forgotpassword-form') {\n echo CActiveForm::validate($model);\n Yii::app()->end();\n }\n\n if (isset($_POST['User'])) {\n\n $model = User::model()->find('email=:email', array(':email' => $_POST['User']['email']));\n if($model)\n {\n if ($model->forgotPassword()) {\n $model = new User;\n Yii::app()->user->setFlash('success', 'Your password has been resetted. Please check your mails!');\n // $this->render('register', array('model' => $model));\n $this->redirect(array('site/login'));\n }\n }\n else\n {\n Yii::app()->user->setFlash('success', 'No user with this e-mail registered yet!');\n $this->redirect(array('user/forgotpassword'));\n }\n } else {\n $this->render('forgotpassword', array('model' => $model));\n }\n }", "public function doForgetPassword(){\n $email = Input::get('email');\n $result = 0;\n\n if(!empty($email)){\n $token = User::createAccountToken();\n \tUser::where('email', '=',$email)->update(array('account_token' => $token));\n\n\t\t\t$user = User::getByEmail($email);\n if (!empty($user)) {\n $link_reset = URL::to('/').'/forgetPassword?email='.$email.'&token='.$token;\n\n $data = array(\n 'link_reset' => $link_reset,\n 'user' => $user->toArray()\n );\n\n Mail::send('emails.reset_password', $data, function($message) use($email) {\n $message->to($email, Config::get('constants.website_name'))\n ->subject('【'.Config::get('constants.website_name').'】Cấp lại mật khẩu!');\n });\n\n $result = 1;\n }\n }\n return json_encode($result);\n }", "public function resetPassword(){\n $input = Input::all();\n $password = Input::get('password');\n\n \t$input = Input::all();\n $v = User::validate_forget_password($input);\n\n if( !empty($v) && $v->passes()){\n User::where('email', '=' ,$input['email'])\n ->update(array('password' => Hash::make($input['password']), 'account_token' => User::createAccountToken()));\n return Redirect::to('/');\n }\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 }", "public function post_forgot_password() {\n $fields = array(\n 'code' => Input::get('code'), \n 'email' => Input::get('email'),\n );\n\n $account = Account::where_code(Input::get('code', 0))->first();\n $account_id = 0;\n if(!is_null($account)) {\n $account_id = $account->id;\n }\n \n $rules = array(\n 'code' => 'required|exists:accounts',\n 'email' => 'required|email|exists_in_account:users,email,'.$account_id,\n );\n \n $validation = Validator::make($fields, $rules);\n \n if( $validation->fails() ) {\n Input::flash();\n return Redirect::to_action('login@forgot_password')->with_errors($validation);\n //return $this->get_forgot_password()->with('errors', $validation);\n } else {\n $user = User::where('account_id', '=', $account_id)->where_email(Input::get('email'))->first();\n $new_password = Str::random(6, 'alnum');\n $user->change_password_request = 'Y';\n $user->password = $new_password;\n $user->save();\n \n //------------------------------------------------------------------------------------\n // Send email with the confirmation links\n $mailer = IoC::resolve('mailer');\n $message_body = Response::view('user.emails.password-reset', array('user' => $user, 'password' => $new_password))->render();\n\n // Construct the message\n $message = Swift_Message::newInstance('Password Reset')\n ->setFrom(array('no-reply@test.com'=>'test'))\n ->setTo(array($user->email => $user->name))\n ->setBody($message_body,'text/html');\n\n // Send the email\n $mailer->send($message);\n $this->warnings[] = \"An email with the new password has been sent to your email. Don't forget to check your junk/bulk/spam folder if it doesn't arrive in your inbox.\";\n //------------------------------------------------------------------------------------\n\n return $this->get_forgot_password()\n ->with('warnings', $this->warnings);\n\n }\n \n }", "public function get_forgot_password() {\n return View::make('login.forgot-password');\n }", "function reset_password($user, $new_pass)\n {\n }", "public function remind_password($email){\n\t\t $sql=\"SELECT * FROM waf_users WHERE email='\".$this->db->Q($email,1).\"'\";\n\t\t$result=$this->db->ROW_Q($sql);\n\t\tif($result)\n\t\t{\n\t\t $mdkey=md5(rand(10000,time()));\n\t\t \n\t\t \n\t\t $sql1=\"UPDATE waf_users SET rmn_pass='\".$mdkey.\"' WHERE id=\".$this->db->Q($result['id']);\n\t\t $this->db->QUERY($sql1);\n\t\t\n\t\t $link=(isset($_SERVER['HTTPS'] )?'https':'http').\"://\".$_SERVER['SERVER_NAME'].$this->web_root.\"reset_password.php?key=\".$mdkey;\n\t\t $msg=\"Some body try reset your password.\"\n\t\t\t\t\t.\"If you forget password \"\n\t\t\t\t\t.\"<a href='\".$link.\"'>click link</a>\"\n\t\t\t\t\t.\"W.A.F. System\";\n\t\t\n\t\t mail($result['email'],$subject,$msg);\n\t\t header(\"Location:?sended=1\");\n\t\t}else{\n\t\t return 'Guru you never know';\n\t\t}\n\t}", "public function actionForgotPassword() {\n\t\tif (!\\Yii::$app->user->isGuest) {\n\t\t\treturn $this->redirect( Url::to(['users/myprofile']) );\n\t\t}\n\t\t$model = new PasswordResetRequestForm();\n\t\tif ($model->load(Yii::$app->request->post()) && $model->validate()) {\n if ($model->sendEmail()) {\n Yii::$app->session->setFlash('item', Yii::t('yii','Password reset link has been sent to your email address.'));\n\t\t\t\treturn $this->redirect( Url::to(['site/login']) );\n } else {\n Yii::$app->session->setFlash('item', Yii::t('yii','Sorry, We are unable to reset the password for the email provided.'));\n return $this->redirect( Url::to(['site/login']) );\n }\n }\n return $this->render('requestPasswordResetToken', [\n 'model' => $model,\n ]);\n }", "public function passwordForgotAction()\n {\n // get the view vars\n $errors = $this->view->errors;\n\n $this->processInput( null, null, $errors );\n\n // check if there were any errors\n if ( $errors->hasErrors() ) {\n return $this->renderPage( 'errors' );\n }\n\n return $this->renderPage( 'authPasswordForgot' );\n }", "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 resetPassword()\n\t{\n\t\tif($this->session->userdata('VB_USER_ID') <> ''):\n\t\t\tredirect(base_url().'my-profile');\n\t\tendif;\n\t\t$data['error'] \t\t\t\t\t\t= \t'';\n\t\tif($this->input->post('otp')): \n\t\t\t$userData\t\t=\t$this->common_model->checkOTP(trim($this->session->userdata('VB_FORGOT_USER_PHONE')),trim($this->input->post('otp')),'users','user_password_otp');\n\t\t\tif($userData <> \"\"): \n\t\t\t\tif($userData['status'] == 'A'):\n\t\t\t\t\t$param['user_phone_otp']\t\t=\t'';\n\t\t\t\t\t$param['password']\t\t\t\t=\t$this->common_model->encriptPassword(trim($this->input->post('password')));\n\t\t\t\t\t$this->common_model->editData('vb_users',$param,'user_id',$userData['user_id']);\n\t\t\t\t\t$this->session->unset_userdata('VB_FORGOT_USER_PHONE');\n\t\t\t\t\techo \"success\";die;\n\t\t\t\telse:\n\t\t\t\t\techo \"blocked\";die;\n\t\t\t\tendif;\n\t\t\telse:\n\t\t\t\techo \"wrongotp\";die;\n\t\t\tendif;\n\t\tendif;\n\t\t$this->layouts->set_title(stripcslashes('Reset Password | VBloggers'));\n\t\t$this->layouts->set_keyword(stripcslashes('Reset Password | VBloggers'));\n\t\t$this->layouts->set_description(stripcslashes('Reset Password | VBloggers'));\n\t\t\n\t\t$this->layouts->login_view('user/resetpassword',array(),$data);\n\t}", "public function doResetPassword()\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 $userID = SCMUtility::cleanText($_POST['userID']);\n $userNewPassword = SCMUtility::stripTags($_POST['new_reset_password']);\n\n // validate\n $validator = Validator::make(array('password'=>$userNewPassword),User::$rulesPasswordChange,User::$rulesMessages);\n\n if($validator->fails())\n {\n SCMUtility::setFlashMessage('Password reset failed. Error: '.$validator->messages()->first(),'danger');\n SCMUtility::frontRedirectTo('?page=scmCourseModule&state=Front&action=myAccount');\n return;\n }\n\n // update user password\n $user = User::find($userID);\n\n if( ! $user )\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 $user->password = $userNewPassword;\n $user->save();\n\n SCMUtility::setFlashMessage('Your password have been reset. You can now login using your new password.','success');\n SCMUtility::frontRedirectTo('?page=scmCourseModule&state=Front&action=myAccount');\n return;\n }", "public function actionForgot()\n {\n $model = new UserForgotForm();\n\n /* if form is submitted */\n if ($model->load(request()->post())) {\n if($model->sendEmail()) {\n notify()->addSuccess(t('app', 'Please check your email for confirmation!'));\n }\n return $this->redirect(['admin/index']);\n }\n\n /* view params */\n $this->setViewParams([\n 'pageTitle' => view_param('pageTitle') . ' | ' . t('app', 'Forgot password'),\n ]);\n\n app()->view->title = t('app', 'Forgot Password') . ' - ' . options()->get('app.settings.common.siteName', 'EasyAds');\n\n /* custom body class */\n $this->view->params['bodyClasses'] .= ' login-page';\n\n /* render the view */\n return $this->render('forgot', [\n 'model' => $model,\n ]);\n }", "public function resetpassAction()\n\t{\n\t\t$email='neerajbwr89@gmail.com';\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 post_forgotpasswordconfirmed() {\n try {\n $i = Input::post();\n\n $user = new \\Craftpip\\OAuth\\Auth($i['user_id']);\n $key = $user->getAttr('forgotpassword_key');\n if ($key != $i['key']) {\n throw new Exception('Sorry, the token has expired.');\n }\n\n if (!(strlen($i['password']) > 5 && strlen($i['password']) < 12)) throw new Exception('Sorry, something went wrong.');\n\n $user->setPassword($i['password']);\n $user->removeAttr('forgotpassword_key');\n $user->setAttr('verified', true); // because password reset happened via email.\n if ($user->existAttr('verify_key')) $user->removeAttr('verify_key');\n $user->force_login($user->user_id);\n\n $response = array(\n 'status' => true,\n 'message' => 'Password has been changed successfully.',\n );\n } catch (Exception $e) {\n $response = array(\n 'status' => false,\n 'reason' => $e->getMessage(),\n );\n }\n echo json_encode($response);\n }", "public function handleForgottenPassword()\n {\n if (\\Confide::forgotPassword(\\Input::get('email'))) {\n \\Notification::success(\\Notification::message(\\Lang::get('users::app.reset.email.sent'))->flash());\n\n return \\Redirect::route('app.session.login');\n } else {\n \\Notification::error(\n \\Notification::message(\\Lang::get('users::app.error_occurred_try_again'))->flash()\n );\n\n return \\Redirect::route('app.users.forgot.password');\n }\n }", "public function changePassword() {\n $validator = \\Validator::make(\n \\Input::only([\"password\", \"id\", \"reset_code\"]),\n [\n \"id\" => \"required\",//|exists:users,id\",\n \"reset_code\" => \"required\",//|exists:users,reset_code\",\n \"password\" => \"required\"\n ]\n );\n\n if($validator->fails()) {\n $user = User::whereId(intval(\\Input::get(\"id\")))->whereResetCode(\\Input::get(\"reset_code\"))->first();\n if(!$user) {\n return \\View::make(\"admin.nice-error\", [\n \"title\" => \"Password change failed\",\n \"message\" => $validator->messages()->first()\n ]);\n } else {\n return \\View::make(\"admin.forgot\")->with(\"user\", $user)->withErrors($validator->errors());\n }\n } else {\n $user = User::findOrFail(intval(\\Input::get(\"id\")));\n $user->password = \\Hash::make(\\Input::get(\"password\"));\n $user->reset_code = \"\";\n $user->save();\n return \\Redirect::route(\"dashboard.login\")->with(\"relogin\", true);\n }\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($m)\n {\n $c = new Message('{\"action\": \"load\", \"urn\": \"urn:Actor:User:System\"}');\n $c->email = $m->email;\n $user = $c->deliver();\n if (count($user)) {\n // generate password\n if (SIMPLEPASSWORDS === true) {\n $newpassword = Security::generateSimplePassword();\n } else {\n $newpassword = Security::generatePassword();\n }\n // HASH user password with sha1\n $update_user = new Message();\n $update_user->action = \"update\";\n $update_user->urn = $user->urn;\n $dynamicsalt = mt_rand(1, 2147483647);\n $update_user->dynamicsalt = $dynamicsalt;\n $hashedSaltedPassword = sha1($dynamicsalt . $newpassword . SECURITY_SALT_STATIC);\n $update_user->password = $hashedSaltedPassword;\n $update_user->deliver();\n\n $user->newpassword = $newpassword;\n\n // send email, update related passworded (ftp etc)\n Broker::instance()->send($user, \"MANAGERS\", \"user.onforgot\");\n $m = new Message(array(\"notify\" => \"Password sent\"));\n if (ENV == 'DEVELOPMENT') {\n $m->newpassword = $newpassword;\n }\n return $m;\n } else {\n return new Message(array(\"error\" => \"email not registered\"));\n }\n }", "public function displayForgotPassword()\n {\n $this->render('forgot-password', ['head'=>['title'=>'Mot de passe oublié', 'meta_description'=>'']]);\n }", "public function user_reset_password_submit()\n {\n $passwords = Input::all();\n $user_details = User::where(\"forgot_password_code\",\"=\",Input::get('vfcode'))->first();\n\n if(!empty($user_details) > 0)\n {\n // Get passwords from the user's input\n $npass = Input::get('password');\n $cpass = Input::get('cpassword');\n // test input password against the existing one\n if ($npass == $cpass)\n {\n $user_details->password = Hash::make($npass);\n $user_details->forgot_password_code = '';\n // save the new password\n if($user_details->save())\n {\n return Redirect::route('reset_password_msg', array(str_replace(\"/\",\"\",PW_RESET_SUCCESS)));\n }\n } \n else\n {\n return Redirect::route('reset_password_msg', array(str_replace(\"/\",\"\",PW_RESET_ERROR)));\n }\n } \n else\n {\n return Redirect::route('reset_password_msg', array(str_replace(\"/\",\"\",PW_RESET_ERROR)));\n }\n }", "public function forgottenpasswordTest(FunctionalTester $I){\n $user = HelperController::common_login($I, $this->name, $this->email, $this->password);\n HelperController::logout($I);\n $I->amOnPage( route('auth.password.reset') );\n $I->fillField('.email_form', 'nonregistered email');\n $I->click( trans('text.send_password_reset_link') );\n $I->see( 'The email must be a valid email address.' );\n\n $I->fillField('.email_form', 'some@gibberish.com');\n $I->click( trans('text.send_password_reset_link') );\n $I->see( trans('passwords.user') );\n\n $I->fillField('.email_form', $this->email);\n $I->click( trans('text.send_password_reset_link') );\n $I->see( trans('passwords.sent') );\n\n # check email\n $token = DB::table('password_resets')->where('email', $this->email)->first()->token;\n $log_path = storage_path('logs/laravel.log');\n $match = preg_grep( \"/$token/\" , file($log_path));\n $match = implode('|', $match);\n\n preg_match('#href=\"(.*)\"#', $match, $url);\n $url = $url[1];\n\n # follow email\n $I->amOnPage($url);\n\n $I->see( trans('text.reset_password') );\n $I->click( '.reset_password_button' );\n $I->see( trans('validation.filled', ['attribute' => 'password']) );\n $I->fillField('password', $this->new_password);\n $I->click( '.reset_password_button' );\n $I->see( trans('validation.confirmed', ['attribute' => 'password']) );\n \n # change password\n $I->fillField('password', $this->new_password);\n $I->fillField('password_confirmation', $this->new_password);\n $I->click( '.reset_password_button' );\n\n # see index page\n \n $I->click('.logged_user');\n }" ]
[ "0.82712907", "0.8236956", "0.80545014", "0.80289316", "0.7950795", "0.7896822", "0.7892777", "0.78891206", "0.7881085", "0.7872052", "0.7859159", "0.78310525", "0.7829021", "0.7817446", "0.7806442", "0.7799071", "0.7782567", "0.7762034", "0.77325225", "0.77280545", "0.7672854", "0.7654323", "0.761811", "0.7616787", "0.75961226", "0.75960296", "0.75932443", "0.7588694", "0.7585419", "0.75670755", "0.7555479", "0.75438535", "0.75432044", "0.7538637", "0.7535686", "0.7514512", "0.75017375", "0.74801576", "0.7473215", "0.746489", "0.7457773", "0.74458", "0.7442137", "0.7439234", "0.7431709", "0.74209857", "0.7420754", "0.740003", "0.73966414", "0.7391515", "0.7387868", "0.7384468", "0.73791635", "0.73502165", "0.7339474", "0.73353523", "0.73240304", "0.7320042", "0.7310089", "0.7310089", "0.7288107", "0.7276773", "0.7273141", "0.7265548", "0.72475326", "0.72388417", "0.7238694", "0.7235832", "0.7220414", "0.7219243", "0.7205191", "0.7175796", "0.71565884", "0.7154673", "0.71541697", "0.71407586", "0.71401244", "0.7138378", "0.713793", "0.71346", "0.71303546", "0.71247333", "0.7116794", "0.71143746", "0.7101293", "0.7087486", "0.7083334", "0.7081359", "0.7073478", "0.7072834", "0.7068423", "0.70663685", "0.7064492", "0.7061885", "0.7060489", "0.70579356", "0.70565367", "0.70502037", "0.7034795", "0.70317703" ]
0.72353125
68
$content = $this>get('templating')>render('OCPlatformBundle:Advert:index.html.twig', array('nom' => 'Martin'));
public function viewAction($id) { return new Response('La variable donnée est '.$id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function indexAction()\n {\n// $content = $this->get('templating')->render('OCPlatformBundle:Advert:index.html.twig');\n// return new Response($content);\n\n return $this->render(\n 'OCPlatformBundle:Advert:index.html.twig',\n array()\n );\n }", "public function contextAction()\n {\n \n return $this\n ->render('sfTblogBlogBundle:Homepage:context.html.twig',\n array('title' => \"контекстная реклама\"));\n }", "public function sobre()\n\t\t{\n\t\t\t$loader = new \\Twig\\Loader\\FilesystemLoader('app/view');\n\t\t\t$twig = new \\Twig\\Environment($loader, [\n\t\t\t 'cache' => 'app/cache',\n\t\t\t 'auto_reload' => true\n\t\t\t]);\n\t\t\t$template = $twig->load('Sobre-Nós.html');\n\t\t\t$parametros = array();\n\n\t\t\t#URL QUE ESTÁ NAS VIEWS\n\t\t\t$parametros['url'] = \"http://radiocampusapi.com.br/\";\n\t\t\n\t\t\t$conteudo = $template->render($parametros);\n\t\t\techo $conteudo;\n\t\t}", "public function exo01()\n {\n //je declare 2 variables\n $display = true;\n $vin = 'a boire avec moderation';\n\n// je compile la page exo01.html.twig\n return $this->render(\"exo01.html.twig\",\n [\n// je cree deux variable twig a afficher dans ma vue\n 'display'=>$display,\n 'vin'=>$vin\n ]\n );\n\n }", "public function indexAction()\n {\n // and use it as \"echo $twig->render('index', ['name' => 'Fabien']);\"\n include (\"App/View/Home.php\");\n }", "function blog_view($context) {\n Timber::render('category/blog.twig', $context);\n}", "public function indexAction($id, $name)\n {\n //\n //\n // $tab = array(\n // array(\n // 'title' => 'Recherche développpeur Symfony',\n // 'id' => 1,\n // 'author' => 'Alexandre',\n // 'content' => 'Nous recherchons un développeur Symfony débutant sur Lyon. Blabla…',\n // 'date' => new \\Datetime()),\n // array(\n // 'title' => 'Mission de webmaster',\n // 'id' => 2,\n // 'author' => 'Hugo',\n // 'content' => 'Nous recherchons un webmaster capable de maintenir notre site internet. Blabla…',\n // 'date' => new \\Datetime()),\n // array(\n // 'title' => 'Offre de stage webdesigner',\n // 'id' => 3,\n // 'author' => 'Mathieu',\n // 'content' => 'Nous proposons un poste pour webdesigner. Blabla…',\n // 'date' => new \\Datetime())\n // );\n $repository = $this->getDoctrine()->getManager()->getRepository('TROISWAPlatfomBundle:Advert');\n\n $tab = $repository->findAll();\n\n $content = $this->get('templating')->render('TROISWAPlatfomBundle:Advert:index.html.twig', [\"nom\" => $name, \"id\" => $id, 'tab' => $tab]);\n\n return new Response($content);\n\n\n\n }", "public function hello()\n {\n // rendu du fichizer qui construit le html\n // contenu dans la page\n // Chemin à partri de la racine du repetoire templates\n return $this->render('index/hello.html.twig');\n }", "public function partnamber()\n\t\t{\n\t\t\t\n\n\t\t\t$loader = new \\Twig\\Loader\\FilesystemLoader('app/view');\n\t\t\t$twig = new \\Twig\\Environment($loader);\n\t\t\t$template = $twig->load('cadastro_partnamber.html');\n\t\t\n\t\t\t$parametros = array();\n\t\t\t\t\t\n\t\t\t\t\t// $parametros ['produtos'] = $estoque;\n\n\t\t\t$conteudo = $template->render($parametros);\n\n\t\t\t\t\t// var_dump($parametros);\n\t\t\techo $conteudo;\n\n\t\t}", "public function index(){\n $this->viewManager->renderTemplate(\"index.twig.html\");\n\n }", "public function indexAction()\n {\n $url = $this->generateUrl(\n 'oc_platform_home', // 1er argument : le nom de la route\n array('id' => 5),\n true // 2e argument : les valeurs des paramètres\n );\n // $url vaut « /platform/advert/5 »\n\n return new Response(\"L'URL de l'annonce d'id 5 est : \".$url);\n\t\t\t\t\t\n\t\t\t\t// exo précédent\n//\t\t\t La convention pour le nom du template est la même que pour le nom du contrôleur,\n//\t\t\t souvenez-vous : NomDuBundle:NomDuContrôleur:NomDeLAction.\n// $content = $this\n//\t\t\t\t\t\t->get('templating')\n//\t\t\t\t\t\t->render('OCPlatformBundle:Advert:index.html.twig', array (\n//\t\t\t\t\t\t\t\t'nom'\t=>\t'Antoine'\n//\t\t\t\t\t\t)\n//\t\t);\n// return new Response($content);\n }", "public function indexAction()\n {\n return $this->render('reserva/reserva.html.twig');\n }", "public function helloAction(){\n return $this->render('AcmeDemoBundle:Demo:hello.html.twig', array(\n 'name' => 'Billy Shen',\n ));\n }", "function getAccueil($sub_path = 'portfolio') {\r\n include 'models/bdd.php';\r\n include 'models/twig.php';\r\n $retour_projets = $bdd->query(\"SELECT id, nom, img_desktop, contributeurs, description FROM projets\");\r\n $retour_data = $bdd->query('SELECT nom FROM projets');\r\n echo $twig->render(\r\n \"accueil.html.twig\", \r\n [\r\n \"data\" => $retour_data,\r\n \"projets\" => $retour_projets,\r\n 'sub_path' => $sub_path\r\n ]\r\n );\r\n}", "public function index()\n {\n return $this->render('base.html.twig');\n }", "public function jeu(): Response\n {\n\n return $this->render('jeu.html.twig');\n }", "public function cadastro()\n\t\t{\n\t\t\t$loader = new \\Twig\\Loader\\FilesystemLoader('app/view');\n\t\t\t$twig = new \\Twig\\Environment($loader, [\n\t\t\t 'cache' => 'app/cache',\n\t\t\t 'auto_reload' => true\n\t\t\t]);\n\t\t\t$template = $twig->load('Inscrever-se.html');\n\t\t\t$parametros = array();\n\n\t\t\t#URL QUE ESTÁ NAS VIEWS\n\t\t\t$parametros['url'] = \"http://radiocampusapi.com.br/\";\n\t\t\n\t\t\t$conteudo = $template->render($parametros);\n\t\t\techo $conteudo;\n\t\t}", "function __toString(){\n\n $contenu = file_get_contents($this->template.\"/index.twig\");\n \n //foreach($this->personnalisations as $key=>$value){\n // $contenu = str_replace(\"{{ $key }}\",$value, $contenu);\n //}\n\n //on a pas besoin de sortir du dossier classes car il prend le html a la source\n\n return $contenu;\n\n }", "#[Route(path: '/', name: 'lsitem_index', methods: ['GET'])]\n public function index(): Response\n {\n return $this->render('framework/ls_item/index.html.twig', []);\n }", "public function limatv(Request $request, Response $response, $args)\n{\n //Variables\n $datin=Array();\n /*validando los argumentos que recibimos*/\n if(isset($args['idPadre'])) $idPadre = $args['idPadre'];\n if(isset($args['idContenido'])) $idContenido = $args['idContenido'];\n if(isset($args['idHijo'])) $idHijo = $args['idHijo'];\n \n $servicio=\"limatv\";\n $tituloservicio=\"LIMA TV\";\n $datin=MunlimaControlador::plantillaUno($args,$servicio,$tituloservicio);\n\n $this->view->render($response, \"weblima/limatv.twig\", $datin);\n return $response;\n}", "public function contato() {\n $this->load_template('contato');\n }", "#[IsGranted('ROLE_SEPULTURE_ADMIN')]\n #[Route(path: '/', name: 'commentaire', methods: ['GET'])]\n public function index(): Response\n {\n $entities = $this->commentaireRepository->findAll();\n\n return $this->render(\n '@Sepulture/commentaire/index.html.twig',\n [\n 'entities' => $entities,\n ]\n );\n }", "public function indexAction()\n {\n return $this->render('EquipoBundle:CaracteristicasEquipo:index.html.twig');\n }", "public function indexAction()\n {\n return $this->twig->render('index.html.twig');\n }", "public function indexAction()\n {\n return $this->render('tienda/solicitud/index.html.twig', ['title' => 'Tienda']);\n }", "public function articles(){\n\n//j apelle ma constante depuis Service/ArticleHelper\n $articles = ArticlesHelper::articles;\n\n return $this->render(\"articles.html.twig\",[\n\n \"articles\"=> $articles\n ]);\n }", "public function indexAction()\n {\n // replace this example code with whatever you need\n return $this->render('FrontBundle:Home:index.html.twig', []);\n }", "public function cultura(Request $request, Response $response, $args)\n{\n //Variables\n $datin=Array();\n /*validando los argumentos que recibimos*/\n if(isset($args['idPadre'])) $idPadre = $args['idPadre'];\n if(isset($args['idContenido'])) $idContenido = $args['idContenido'];\n if(isset($args['idHijo'])) $idHijo = $args['idHijo'];\n \n $servicio=\"cultura\";\n $tituloservicio=\"CULTURA\";\n $datin=MunlimaControlador::plantillaUno($args,$servicio,$tituloservicio);\n\n $this->view->render($response, \"weblima/cultura.twig\", $datin);\n return $response;\n}", "public function atencion(Request $request, Response $response, $args)\n{\n //Variables\n $datin=Array();\n /*validando los argumentos que recibimos*/\n if(isset($args['idPadre'])) $idPadre = $args['idPadre'];\n if(isset($args['idContenido'])) $idContenido = $args['idContenido'];\n if(isset($args['idHijo'])) $idHijo = $args['idHijo'];\n \n $servicio=\"atencion\";\n $tituloservicio=\"ATENCIÓN AL CIUDADANO\";\n $datin=MunlimaControlador::plantillaUno($args,$servicio,$tituloservicio);\n\n $this->view->render($response, \"weblima/extras.twig\", $datin);\n return $response;\n}", "public function renderTemplate();", "public function ciudad(Request $request, Response $response, $args)\n{\n //Variables\n $datin=Array();\n /*validando los argumentos que recibimos*/\n if(isset($args['idPadre'])) $idPadre = $args['idPadre'];\n if(isset($args['idContenido'])) $idContenido = $args['idContenido'];\n if(isset($args['idHijo'])) $idHijo = $args['idHijo'];\n \n $servicio=\"ciudad\";\n $tituloservicio=\"LIMA\";\n $datin=MunlimaControlador::plantillaUno($args,$servicio,$tituloservicio);\n\n $this->view->render($response, \"weblima/ciudad.twig\", $datin);\n return $response;\n}", "public function exampleAction() {\n //return 'tatata' // erreur : retour non valide car chaîne de caractères retournée. On doit retourner un objet de type réponse\n $res = new Response(\"tatata\"); //on transite par un objet pour pouvoir retourner une châine de caractères.\n $res2 = new Response(\"<h1>tadaaam</h1>\");\n $res3 = new Response($this->getMessage());\n //$res4 = new Response($this->fruits); erreur : on ne peut pas renvoyer au client une structure de données PHP non convertible en string. Si un boléen est facilement convertible, ce n'est pas le cas des tableaux.\n\n return $this->render('test/example.html.twig', array(\n 'fruits' => $this->fruits3\n ));\n }", "public function tutti()\n {\n\n $utentiDao = new AutoreDao();\n $res = $utentiDao->read();\n\n $view = new ViewCore();\n echo $view->render(\n 'gestione_utenti\\tutti_gli_utenti.html',\n ['autori' => $res]\n );\n\n\n\n //print_r($twig);\n }", "public function extras(Request $request, Response $response, $args)\n{\n //Variables\n $datin=Array();\n /*validando los argumentos que recibimos*/\n if(isset($args['idPadre'])) $idPadre = $args['idPadre'];\n if(isset($args['idContenido'])) $idContenido = $args['idContenido'];\n if(isset($args['idHijo'])) $idHijo = $args['idHijo'];\n \n $servicio=\"extras\";\n $tituloservicio=\"EXTRAS\";\n $datin=MunlimaControlador::plantillaUno($args,$servicio,$tituloservicio);\n\n $this->view->render($response, \"weblima/extras.twig\", $datin);\n return $response;\n}", "public function getTemplate()\n {\n return 'Components/renderRapport.html.twig';\n }", "public function index(): Response\n {\n return $this->render(\"home/index.html.twig\");\n }", "public function indexAction(): string\n {\n return $this->getTemplateEngine()->render('/templates/cms/templates/index');\n }", "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $titulares = $em->getRepository('AppBundle:Titular')->findAll();\n\n return $this->render('titular/index.html.twig', array(\n 'titulares' => $titulares,\n ));\n }", "public function consultasenlinea(Request $request, Response $response, $args)\n{\n //Variables\n $datin=Array();\n /*validando los argumentos que recibimos*/\n if(isset($args['idPadre'])) $idPadre = $args['idPadre'];\n if(isset($args['idContenido'])) $idContenido = $args['idContenido'];\n if(isset($args['idHijo'])) $idHijo = $args['idHijo'];\n \n $servicio=\"consultasenlinea\";\n $tituloservicio=\"CONSULTAS EN LÍNEA\";\n $datin=MunlimaControlador::plantillaUno($args,$servicio,$tituloservicio);\n\n $this->view->render($response, \"weblima/consultasenlinea.twig\", $datin);\n return $response;\n}", "public function connexionAction()\n {\n return $this->render('PPEGSBBundle:Default:ap_connexion.html.twig');\n }", "public function menuAction()\n\n {\n $listAdverts = array(\n array('id' => 2, 'title' => 'Recherche développeur Symfony2'),\n array('id' => 5, 'title' => 'Mission de webmaster'),\n array('id' => 1, 'title' => 'Offre de stage webdesigner'),\n );\n\n return $this->render(\n 'OCPlatformBundle:Advert:menu.html.twig',\n array('listAdverts' => $listAdverts)\n );\n\n }", "public function article(): Response \n {\n $bdd_article = $this->getDoctrine()->getRepository(Article::class)->findAll();\n \n return $this->render('article/article.html.twig', [\n 'articles'=>$bdd_article\n ]);\n }", "public function getindex() {\n return $this->render('mantenimiento/paises/index.twig',[\n 'company_name' => $this->config['company_name'],\n 'company_name_min' => $this->config['company_name_min'],\n 'title' => 'Listado de Paises',\n 'paises' => (new PaisRepository())->Listar()\n ]);\n }", "public function index()\n {\n return $this->render('home/index.html.twig');\n }", "public function indexAction()\n {\n return $this->render('default/index.html.twig');\n }", "public function indexAction()\n {\n return $this->render('default/index.html.twig');\n }", "public function indexAction()\n {\n return $this->render('default/index.html.twig');\n }", "#[Route('/', name: self::INDEX_ACTION)]\n public function index()\n {\n return $this->render('search/index.html.twig', [\n 'regions' => $this->getRegions(),\n 'departments' => $this->getDepartments()\n ]);\n }", "public function index()\n\t\t{\n\t\t \t//$requests = Adm::selecionaRequ\n\t\t \t$loader = new \\Twig\\Loader\\FilesystemLoader('app/view');\n\t\t \t$twig = new \\Twig\\Environment($loader, [\n\t\t \t 'cache' => 'app/cache',\n\t\t \t 'auto_reload' => true\n\t\t \t]);\n\t\t \t$template = $twig->load('index.html');\n\t\t \t$parametros = array();\n\n\t\t \t#URL QUE ESTÁ NAS VIEWS\n\t\t \t$parametros['url'] = \"http://radiocampusapi.com.br/\";\n\n\t\t \t\n\t\t \t$conteudo = $template->render($parametros);\n\t\t \techo $conteudo;\n\t\t}", "public function servicio(Request $request, Response $response, $args)\n{\n //Variables\n $datin=Array();\n /*validando los argumentos que recibimos*/\n if(isset($args['idPadre'])) $idPadre = $args['idPadre'];\n\tif(isset($args['idContenido'])) $idContenido = $args['idContenido'];\n\tif(isset($args['idHijo'])) $idHijo = $args['idHijo'];\n \n $servicio=\"servicio\";\n $datin=MunlimaControlador::plantillaDos($args,$servicio);\n\n $this->view->render($response, \"weblima/servicio.twig\", $datin);\n return $response;\n}", "public function indexAction()\n {\n $listAdverts = array(\n array(\n 'title' => 'Recherche développpeur Symfony',\n 'id' => 1,\n 'author' => 'Alexandre',\n 'content' => 'Nous recherchons un développeur Symfony débutant sur Lyon. Blabla…',\n 'date' => new \\Datetime()),\n array(\n 'title' => 'Mission de webmaster',\n 'id' => 2,\n 'author' => 'Hugo',\n 'content' => 'Nous recherchons un webmaster capable de maintenir notre site internet. Blabla…',\n 'date' => new \\Datetime()),\n array(\n 'title' => 'Offre de stage webdesigner',\n 'id' => 3,\n 'author' => 'Mathieu',\n 'content' => 'Nous proposons un poste pour webdesigner. Blabla…',\n 'date' => new \\Datetime())\n );\n\n\n return $this->render('OCCoreBundle:Default:index.html.twig', array(\n 'listAdverts' => $listAdverts\n ));\n }", "public function home():Response {\n // $url = $this->generateUrl( 'app_bien_biensactifs', ['noproj'=>143]);\n // var_dump ($url); die ('test generateUrl');\n\n // recup du repository des biens\n $bienrep = $this->getDoctrine()->getRepository(Bien::class);\n // recup des biens\n $biens = $bienrep->findAll();\n\n\n return $this->render('Bien/listeBiens.html.twig', [ 'biens'=>$biens]);\n }", "static function render($twig,$templatePath,$content)\n {\n\n $template = $twig->loadTemplate($templatePath);\n echo $template->render($content);\n return false;\n }", "public function libroreclamaciones(Request $request, Response $response, $args)\n{\n //Variables\n $datin=Array();\n /*validando los argumentos que recibimos*/\n if(isset($args['idPadre'])) $idPadre = $args['idPadre'];\n if(isset($args['idContenido'])) $idContenido = $args['idContenido'];\n if(isset($args['idHijo'])) $idHijo = $args['idHijo'];\n \n $servicio=\"libroreclamaciones\";\n $tituloservicio=\"LIBRO DE RECLAMACIONES\";\n $datin=MunlimaControlador::plantillaUno($args,$servicio,$tituloservicio);\n\n $this->view->render($response, \"weblima/libroreclamaciones.twig\", $datin);\n return $response;\n}", "function studentResources(){\n // show the student resources page\n echo Template::instance()->render('views/studentResources.php');\n}", "public function indexAction()\n {\n return $this->render('@AppBundle/admin/parameter/administrator/index.html.twig');\n }", "#[Route('/', name: 'homepage')]\n public function index(): Response\n {\n if($this->getUser()){\n $fullPath = $this->getParameter('userRoot').explode('.',$this->getUser()->getUsername())[0].'/';\n }\n\n\n\n return $this->render('default/index.html.twig', [\n\n ]);\n }", "public function indexAdminAction()\n {\n\n $variable = \"page d accueil de l'admin\";\n\n\n return $this->render(\"@App/pages/accueilAdmin.html.twig\",\n [\n 'variable' => $variable\n ]\n\n );\n }", "function display(string $template, int $status = 200, array $headers = [])\n{\n $content = app('twig')->render('templates' . DS . $template);\n response($content, $status, $headers);\n}", "public function indexAction()\n {\n return $this->render('PixellaryInhouseBundle:Default:index.html.twig');\n }", "public function home()\n {\n //var_dump($date);\n return $this->render('home.html.twig');\n }", "public static function renderTemplate($template, $argumentos = array()) {\n \n if(self::$twig === null) {\n $loader = new \\Twig_Loader_Filesystem(VISTAS_PATH);\n self::$twig = new \\Twig_Environment($loader);\n }\n \n echo self::$twig->render($template, $argumentos);\n }", "function view(string $render, array $params = [], int $status = 200, array $headers = [])\n{\n $content = app(\"twig\")->render(\"renders\" . DS . $render, $params);\n response($content, $status, $headers);\n}", "public function indexAction()\n {\n return $this->render('CostoSystemBundle:Home:index.html.twig');\n }", "protected function _content_template() {\n \n }", "public function indexAction()\r\n {\r\n return $this->render('BoutiqueGestionStockBundle:Home:index.html.twig');\r\n }", "#[Route(path: '/', name: 'bottin_admin_demande', methods: ['GET'])]\n public function index(): Response\n {\n $demandes = $this->demandeRepository->search();\n\n return $this->render(\n '@AcMarcheBottin/admin/demande/index.html.twig',\n [\n 'demandes' => $demandes,\n ]\n );\n }", "public function get()\n\t\t{\n\t\t\t\n\t\t\techo $this->twig->render(\"index.html\",array(\n\t\t\t\t\"title\"=>\"BookFace\",\n\t\t\t\t\"message\"=>array(\"Hello World\",\"namaste\")\t\n\t\t\t\t));\n\t\t}", "public function indexAction()\n {\n $advertRepository = $this->getDoctrine()->getRepository('AppBundle:Advert');\n $listAdvert = $advertRepository->findAll();\n\n\n return $this->render('@App/Site/index.html.twig', array(\n\n 'listAdvert' => $listAdvert,\n ));\n }", "public function renderContent() {}", "public function indexAction()\n {\n return $this->render('MySecurityBundle:MyProfile:index.html.twig');\n }", "public function render(Request $request);", "public function myAccount() {\n return $this->render('user/index.html.twig', [\n 'user' => $this->getUser()\n ]);\n }", "public function indexAction()\n {\n return $this->render('ToDoListBundle:Default:index.html.twig');\n }", "public function index()\n {\n\n return $this->twig->render('Home/index.html.twig');\n }", "public function create(){\n echo $this->render('devices/create.html.twig');\n }", "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n// $entities = $em->getRepository('uniRecetasBundle:ingrediente')->findAll();\n $entities = $em->getRepository('uniRecetasBundle:ingrediente')->findBy(\n array(), \n array('nombre' => 'ASC')\n );\n\n return $this->render('uniRecetasBundle:ingrediente:index.html.twig', array(\n 'entities' => $entities,\n ));\n }", "public function render()\n {\n $page = $this->twig->load($this->template);\n $this->prepareFlashMessages();\n $html = $page->render($this->vars);\n Router::sendResponse($html);\n }", "public function testContent() {\n \n $content = [\n '#theme' => 'twigTest',\n '#test_var' => $this->t('Example of a page'),\n '#test_var2' => $this->t('implemented with Vuejs'),\n '#attached' => [\n 'library' => [\n 'drupal_vuejs/vuejs',\n 'drupal_vuejs/appvuejs',\n ]\n ],\n '#cache' => array(\n 'max-age' => 0,\n ),\n ];\n \n return $content;\n }", "public function cargaInicialAction(){\n return $this->render('AdminBundle:Refrenda:carga_inicial.html.twig');\n }", "public function actionGetTemplate(){\n $post = Yii::$app->getRequest()->post();\n echo file_get_contents(dirname(\\Yii::getAlias('@webroot')).'/frontend/views/templates/'.$post['template']);\n }", "public function municipalidad(Request $request, Response $response, $args)\n{\n //Variables\n $datin=Array();\n /*validando los argumentos que recibimos*/\n if(isset($args['idPadre'])) $idPadre = $args['idPadre'];\n\tif(isset($args['idContenido'])) $idContenido = $args['idContenido'];\n\tif(isset($args['idHijo'])) $idHijo = $args['idHijo'];\n \n $servicio=\"municipalidad\";\n $tituloservicio=\"MUNICIPALIDAD\";\n $datin=MunlimaControlador::plantillaUno($args,$servicio,$tituloservicio);\n\n $this->view->render($response, \"weblima/municipalidad.twig\", $datin);\n return $response;\n}", "protected function _content_template()\n {\n\n }", "public function showAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n //recupérer le repo\n $repository = $em->getRepository('InsatGl2Bundle:Personne');\n\n $personnes = $repository->findAll();\n\n\n return $this->render('@InsatGl2\\Personne\\show.html.twig',\n array(\n 'personnes'=> $personnes\n ));\n }", "public function aboutAction()\n {\n return $this->render('TodoCerdoTodoCerdoBundle:Page:about.html.twig');\n }", "protected function content_template() {}", "protected function content_template() {}", "public function viewAction()\n {\n $em = $this->getDoctrine()->getManager();\n $repository = $this\n ->getDoctrine()\n ->getManager()\n ->getRepository('MoezBackBundle:paquet');\n $listePaquets=$repository->FindPaquetExpirired();\n foreach ($listePaquets as $paquet)\n {\n $paquet->setEtat(\"fini\");\n\n $em->flush();\n }\n\n $paquets = $em->getRepository('MoezBackBundle:paquet')->findAll();\n\n return $this->render('@MoezBack/paquet/v.html.twig', array(\n 'paquets' => $paquets,\n ));\n }", "public function indexAction()\n {\n return $this->templating->renderResponse('ProcessingBundle:Index:index.html.twig');\n }", "public function ActeurAction($acteurid){\n #Attention, nom entre parenthèses doit etre pareil que dans routing\n \n $em = $this -> getDoctrine() -> getManager();\n\n $acteur = $em -> getRepository('TroiswaPublicBundle:Acteur') -> find($acteurid); //Find pour récupérer un seul élément, et prend en argument l'id\n\n return $this->render('TroiswaPublicBundle:Acteur:acteur.html.twig', array('acteur' => $acteur ));\n #Envoyer des infos dans la vue - tableau associatif\n\n //die(Debug::dump($film));\n\n}", "public function pageInscription(){\n\n $token = bin2hex(random_bytes(32));\n $_SESSION['token'] = $token;\n return $this->twig->render('User/inscription.html.twig',[\n 'inscrit'=>1\n ,'token' => $token\n ]);\n\n }", "public function view(){\r\n\r\n\t$this->registry->template->blog_heading = 'This is the blog heading';\r\n\t$this->registry->template->blog_content = 'This is the blog content';\r\n\t$this->registry->template->show('blog_view');\r\n}", "public function indexAction() {\n // on récupère l'entity manager à l'aide du service Doctrine\n $em = $this->getDoctrine()->getManager();\n\n // on récupère le repository de Article et on lui demande \n // tous les articles\n $entities = $em->getRepository('HBBlogBundle:Article')->findAll();\n\n // on transmet la liste d'article au template en la nommant entities\n return array(\n 'entities' => $entities,\n );\n }", "public function index()\n {\n $entityManager = $this->getDoctrine()->getManager();\n // obtenemos todas las apuestas\n $noticias = $entityManager->getRepository(Noticia::class)->findAll();\n return $this->render('blog/index.html.twig', array(\n 'noticias' => $noticias,\n ));\n }", "public function content_template()\n {\n }", "public function content_template()\n {\n }", "public function content_template()\n {\n }", "public function content_template()\n {\n }", "public function content_template()\n {\n }", "public function content_template()\n {\n }", "public function content_template()\n {\n }" ]
[ "0.73515135", "0.6949666", "0.67935723", "0.67870593", "0.6755844", "0.67407703", "0.67097664", "0.6699719", "0.66692436", "0.66637397", "0.6662571", "0.666096", "0.6622441", "0.6620662", "0.6618362", "0.65796375", "0.65705407", "0.65615815", "0.65417635", "0.65262175", "0.65179956", "0.64937234", "0.64818347", "0.6480982", "0.6479626", "0.64636236", "0.6460005", "0.6437748", "0.6435376", "0.6404852", "0.63864374", "0.63815826", "0.63744754", "0.6358751", "0.63472545", "0.6335531", "0.63171065", "0.63161457", "0.63157165", "0.63056356", "0.62837017", "0.62731034", "0.6270723", "0.62660724", "0.625976", "0.625976", "0.625976", "0.6251066", "0.62462646", "0.62379026", "0.6237641", "0.62303823", "0.6217389", "0.621644", "0.62149507", "0.6212561", "0.62113434", "0.62110454", "0.6209418", "0.62041587", "0.61902434", "0.61750174", "0.6172863", "0.61686856", "0.61656034", "0.6165564", "0.6156407", "0.6154608", "0.6140183", "0.6135877", "0.6122677", "0.61193013", "0.6113976", "0.6113948", "0.6095762", "0.609438", "0.60873073", "0.6080678", "0.6078271", "0.6071622", "0.60681665", "0.6062176", "0.60619915", "0.6057707", "0.6053187", "0.60444045", "0.60444045", "0.6041156", "0.6040637", "0.6038811", "0.6036477", "0.6021191", "0.60210794", "0.60120714", "0.6009505", "0.6009505", "0.6009505", "0.6009505", "0.6009505", "0.6009505", "0.6009505" ]
0.0
-1
$content = $this>get('templating')>render('OCPlatformBundle:Advert:index.html.twig', array('nom' => 'Martin'));
public function viewSlugAction($year, $slug, $format) { return new Response( "On pourrait afficher l'annonce correspondant au slug '".$slug."', créée en ".$year." et au format ".$format."." ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function indexAction()\n {\n// $content = $this->get('templating')->render('OCPlatformBundle:Advert:index.html.twig');\n// return new Response($content);\n\n return $this->render(\n 'OCPlatformBundle:Advert:index.html.twig',\n array()\n );\n }", "public function contextAction()\n {\n \n return $this\n ->render('sfTblogBlogBundle:Homepage:context.html.twig',\n array('title' => \"контекстная реклама\"));\n }", "public function sobre()\n\t\t{\n\t\t\t$loader = new \\Twig\\Loader\\FilesystemLoader('app/view');\n\t\t\t$twig = new \\Twig\\Environment($loader, [\n\t\t\t 'cache' => 'app/cache',\n\t\t\t 'auto_reload' => true\n\t\t\t]);\n\t\t\t$template = $twig->load('Sobre-Nós.html');\n\t\t\t$parametros = array();\n\n\t\t\t#URL QUE ESTÁ NAS VIEWS\n\t\t\t$parametros['url'] = \"http://radiocampusapi.com.br/\";\n\t\t\n\t\t\t$conteudo = $template->render($parametros);\n\t\t\techo $conteudo;\n\t\t}", "public function exo01()\n {\n //je declare 2 variables\n $display = true;\n $vin = 'a boire avec moderation';\n\n// je compile la page exo01.html.twig\n return $this->render(\"exo01.html.twig\",\n [\n// je cree deux variable twig a afficher dans ma vue\n 'display'=>$display,\n 'vin'=>$vin\n ]\n );\n\n }", "public function indexAction()\n {\n // and use it as \"echo $twig->render('index', ['name' => 'Fabien']);\"\n include (\"App/View/Home.php\");\n }", "function blog_view($context) {\n Timber::render('category/blog.twig', $context);\n}", "public function indexAction($id, $name)\n {\n //\n //\n // $tab = array(\n // array(\n // 'title' => 'Recherche développpeur Symfony',\n // 'id' => 1,\n // 'author' => 'Alexandre',\n // 'content' => 'Nous recherchons un développeur Symfony débutant sur Lyon. Blabla…',\n // 'date' => new \\Datetime()),\n // array(\n // 'title' => 'Mission de webmaster',\n // 'id' => 2,\n // 'author' => 'Hugo',\n // 'content' => 'Nous recherchons un webmaster capable de maintenir notre site internet. Blabla…',\n // 'date' => new \\Datetime()),\n // array(\n // 'title' => 'Offre de stage webdesigner',\n // 'id' => 3,\n // 'author' => 'Mathieu',\n // 'content' => 'Nous proposons un poste pour webdesigner. Blabla…',\n // 'date' => new \\Datetime())\n // );\n $repository = $this->getDoctrine()->getManager()->getRepository('TROISWAPlatfomBundle:Advert');\n\n $tab = $repository->findAll();\n\n $content = $this->get('templating')->render('TROISWAPlatfomBundle:Advert:index.html.twig', [\"nom\" => $name, \"id\" => $id, 'tab' => $tab]);\n\n return new Response($content);\n\n\n\n }", "public function hello()\n {\n // rendu du fichizer qui construit le html\n // contenu dans la page\n // Chemin à partri de la racine du repetoire templates\n return $this->render('index/hello.html.twig');\n }", "public function partnamber()\n\t\t{\n\t\t\t\n\n\t\t\t$loader = new \\Twig\\Loader\\FilesystemLoader('app/view');\n\t\t\t$twig = new \\Twig\\Environment($loader);\n\t\t\t$template = $twig->load('cadastro_partnamber.html');\n\t\t\n\t\t\t$parametros = array();\n\t\t\t\t\t\n\t\t\t\t\t// $parametros ['produtos'] = $estoque;\n\n\t\t\t$conteudo = $template->render($parametros);\n\n\t\t\t\t\t// var_dump($parametros);\n\t\t\techo $conteudo;\n\n\t\t}", "public function index(){\n $this->viewManager->renderTemplate(\"index.twig.html\");\n\n }", "public function indexAction()\n {\n $url = $this->generateUrl(\n 'oc_platform_home', // 1er argument : le nom de la route\n array('id' => 5),\n true // 2e argument : les valeurs des paramètres\n );\n // $url vaut « /platform/advert/5 »\n\n return new Response(\"L'URL de l'annonce d'id 5 est : \".$url);\n\t\t\t\t\t\n\t\t\t\t// exo précédent\n//\t\t\t La convention pour le nom du template est la même que pour le nom du contrôleur,\n//\t\t\t souvenez-vous : NomDuBundle:NomDuContrôleur:NomDeLAction.\n// $content = $this\n//\t\t\t\t\t\t->get('templating')\n//\t\t\t\t\t\t->render('OCPlatformBundle:Advert:index.html.twig', array (\n//\t\t\t\t\t\t\t\t'nom'\t=>\t'Antoine'\n//\t\t\t\t\t\t)\n//\t\t);\n// return new Response($content);\n }", "public function indexAction()\n {\n return $this->render('reserva/reserva.html.twig');\n }", "public function helloAction(){\n return $this->render('AcmeDemoBundle:Demo:hello.html.twig', array(\n 'name' => 'Billy Shen',\n ));\n }", "function getAccueil($sub_path = 'portfolio') {\r\n include 'models/bdd.php';\r\n include 'models/twig.php';\r\n $retour_projets = $bdd->query(\"SELECT id, nom, img_desktop, contributeurs, description FROM projets\");\r\n $retour_data = $bdd->query('SELECT nom FROM projets');\r\n echo $twig->render(\r\n \"accueil.html.twig\", \r\n [\r\n \"data\" => $retour_data,\r\n \"projets\" => $retour_projets,\r\n 'sub_path' => $sub_path\r\n ]\r\n );\r\n}", "public function index()\n {\n return $this->render('base.html.twig');\n }", "public function jeu(): Response\n {\n\n return $this->render('jeu.html.twig');\n }", "public function cadastro()\n\t\t{\n\t\t\t$loader = new \\Twig\\Loader\\FilesystemLoader('app/view');\n\t\t\t$twig = new \\Twig\\Environment($loader, [\n\t\t\t 'cache' => 'app/cache',\n\t\t\t 'auto_reload' => true\n\t\t\t]);\n\t\t\t$template = $twig->load('Inscrever-se.html');\n\t\t\t$parametros = array();\n\n\t\t\t#URL QUE ESTÁ NAS VIEWS\n\t\t\t$parametros['url'] = \"http://radiocampusapi.com.br/\";\n\t\t\n\t\t\t$conteudo = $template->render($parametros);\n\t\t\techo $conteudo;\n\t\t}", "function __toString(){\n\n $contenu = file_get_contents($this->template.\"/index.twig\");\n \n //foreach($this->personnalisations as $key=>$value){\n // $contenu = str_replace(\"{{ $key }}\",$value, $contenu);\n //}\n\n //on a pas besoin de sortir du dossier classes car il prend le html a la source\n\n return $contenu;\n\n }", "#[Route(path: '/', name: 'lsitem_index', methods: ['GET'])]\n public function index(): Response\n {\n return $this->render('framework/ls_item/index.html.twig', []);\n }", "public function limatv(Request $request, Response $response, $args)\n{\n //Variables\n $datin=Array();\n /*validando los argumentos que recibimos*/\n if(isset($args['idPadre'])) $idPadre = $args['idPadre'];\n if(isset($args['idContenido'])) $idContenido = $args['idContenido'];\n if(isset($args['idHijo'])) $idHijo = $args['idHijo'];\n \n $servicio=\"limatv\";\n $tituloservicio=\"LIMA TV\";\n $datin=MunlimaControlador::plantillaUno($args,$servicio,$tituloservicio);\n\n $this->view->render($response, \"weblima/limatv.twig\", $datin);\n return $response;\n}", "public function contato() {\n $this->load_template('contato');\n }", "#[IsGranted('ROLE_SEPULTURE_ADMIN')]\n #[Route(path: '/', name: 'commentaire', methods: ['GET'])]\n public function index(): Response\n {\n $entities = $this->commentaireRepository->findAll();\n\n return $this->render(\n '@Sepulture/commentaire/index.html.twig',\n [\n 'entities' => $entities,\n ]\n );\n }", "public function indexAction()\n {\n return $this->twig->render('index.html.twig');\n }", "public function indexAction()\n {\n return $this->render('EquipoBundle:CaracteristicasEquipo:index.html.twig');\n }", "public function indexAction()\n {\n return $this->render('tienda/solicitud/index.html.twig', ['title' => 'Tienda']);\n }", "public function articles(){\n\n//j apelle ma constante depuis Service/ArticleHelper\n $articles = ArticlesHelper::articles;\n\n return $this->render(\"articles.html.twig\",[\n\n \"articles\"=> $articles\n ]);\n }", "public function indexAction()\n {\n // replace this example code with whatever you need\n return $this->render('FrontBundle:Home:index.html.twig', []);\n }", "public function cultura(Request $request, Response $response, $args)\n{\n //Variables\n $datin=Array();\n /*validando los argumentos que recibimos*/\n if(isset($args['idPadre'])) $idPadre = $args['idPadre'];\n if(isset($args['idContenido'])) $idContenido = $args['idContenido'];\n if(isset($args['idHijo'])) $idHijo = $args['idHijo'];\n \n $servicio=\"cultura\";\n $tituloservicio=\"CULTURA\";\n $datin=MunlimaControlador::plantillaUno($args,$servicio,$tituloservicio);\n\n $this->view->render($response, \"weblima/cultura.twig\", $datin);\n return $response;\n}", "public function atencion(Request $request, Response $response, $args)\n{\n //Variables\n $datin=Array();\n /*validando los argumentos que recibimos*/\n if(isset($args['idPadre'])) $idPadre = $args['idPadre'];\n if(isset($args['idContenido'])) $idContenido = $args['idContenido'];\n if(isset($args['idHijo'])) $idHijo = $args['idHijo'];\n \n $servicio=\"atencion\";\n $tituloservicio=\"ATENCIÓN AL CIUDADANO\";\n $datin=MunlimaControlador::plantillaUno($args,$servicio,$tituloservicio);\n\n $this->view->render($response, \"weblima/extras.twig\", $datin);\n return $response;\n}", "public function renderTemplate();", "public function ciudad(Request $request, Response $response, $args)\n{\n //Variables\n $datin=Array();\n /*validando los argumentos que recibimos*/\n if(isset($args['idPadre'])) $idPadre = $args['idPadre'];\n if(isset($args['idContenido'])) $idContenido = $args['idContenido'];\n if(isset($args['idHijo'])) $idHijo = $args['idHijo'];\n \n $servicio=\"ciudad\";\n $tituloservicio=\"LIMA\";\n $datin=MunlimaControlador::plantillaUno($args,$servicio,$tituloservicio);\n\n $this->view->render($response, \"weblima/ciudad.twig\", $datin);\n return $response;\n}", "public function exampleAction() {\n //return 'tatata' // erreur : retour non valide car chaîne de caractères retournée. On doit retourner un objet de type réponse\n $res = new Response(\"tatata\"); //on transite par un objet pour pouvoir retourner une châine de caractères.\n $res2 = new Response(\"<h1>tadaaam</h1>\");\n $res3 = new Response($this->getMessage());\n //$res4 = new Response($this->fruits); erreur : on ne peut pas renvoyer au client une structure de données PHP non convertible en string. Si un boléen est facilement convertible, ce n'est pas le cas des tableaux.\n\n return $this->render('test/example.html.twig', array(\n 'fruits' => $this->fruits3\n ));\n }", "public function tutti()\n {\n\n $utentiDao = new AutoreDao();\n $res = $utentiDao->read();\n\n $view = new ViewCore();\n echo $view->render(\n 'gestione_utenti\\tutti_gli_utenti.html',\n ['autori' => $res]\n );\n\n\n\n //print_r($twig);\n }", "public function extras(Request $request, Response $response, $args)\n{\n //Variables\n $datin=Array();\n /*validando los argumentos que recibimos*/\n if(isset($args['idPadre'])) $idPadre = $args['idPadre'];\n if(isset($args['idContenido'])) $idContenido = $args['idContenido'];\n if(isset($args['idHijo'])) $idHijo = $args['idHijo'];\n \n $servicio=\"extras\";\n $tituloservicio=\"EXTRAS\";\n $datin=MunlimaControlador::plantillaUno($args,$servicio,$tituloservicio);\n\n $this->view->render($response, \"weblima/extras.twig\", $datin);\n return $response;\n}", "public function getTemplate()\n {\n return 'Components/renderRapport.html.twig';\n }", "public function index(): Response\n {\n return $this->render(\"home/index.html.twig\");\n }", "public function indexAction(): string\n {\n return $this->getTemplateEngine()->render('/templates/cms/templates/index');\n }", "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $titulares = $em->getRepository('AppBundle:Titular')->findAll();\n\n return $this->render('titular/index.html.twig', array(\n 'titulares' => $titulares,\n ));\n }", "public function consultasenlinea(Request $request, Response $response, $args)\n{\n //Variables\n $datin=Array();\n /*validando los argumentos que recibimos*/\n if(isset($args['idPadre'])) $idPadre = $args['idPadre'];\n if(isset($args['idContenido'])) $idContenido = $args['idContenido'];\n if(isset($args['idHijo'])) $idHijo = $args['idHijo'];\n \n $servicio=\"consultasenlinea\";\n $tituloservicio=\"CONSULTAS EN LÍNEA\";\n $datin=MunlimaControlador::plantillaUno($args,$servicio,$tituloservicio);\n\n $this->view->render($response, \"weblima/consultasenlinea.twig\", $datin);\n return $response;\n}", "public function connexionAction()\n {\n return $this->render('PPEGSBBundle:Default:ap_connexion.html.twig');\n }", "public function menuAction()\n\n {\n $listAdverts = array(\n array('id' => 2, 'title' => 'Recherche développeur Symfony2'),\n array('id' => 5, 'title' => 'Mission de webmaster'),\n array('id' => 1, 'title' => 'Offre de stage webdesigner'),\n );\n\n return $this->render(\n 'OCPlatformBundle:Advert:menu.html.twig',\n array('listAdverts' => $listAdverts)\n );\n\n }", "public function article(): Response \n {\n $bdd_article = $this->getDoctrine()->getRepository(Article::class)->findAll();\n \n return $this->render('article/article.html.twig', [\n 'articles'=>$bdd_article\n ]);\n }", "public function getindex() {\n return $this->render('mantenimiento/paises/index.twig',[\n 'company_name' => $this->config['company_name'],\n 'company_name_min' => $this->config['company_name_min'],\n 'title' => 'Listado de Paises',\n 'paises' => (new PaisRepository())->Listar()\n ]);\n }", "public function index()\n {\n return $this->render('home/index.html.twig');\n }", "public function indexAction()\n {\n return $this->render('default/index.html.twig');\n }", "public function indexAction()\n {\n return $this->render('default/index.html.twig');\n }", "public function indexAction()\n {\n return $this->render('default/index.html.twig');\n }", "#[Route('/', name: self::INDEX_ACTION)]\n public function index()\n {\n return $this->render('search/index.html.twig', [\n 'regions' => $this->getRegions(),\n 'departments' => $this->getDepartments()\n ]);\n }", "public function index()\n\t\t{\n\t\t \t//$requests = Adm::selecionaRequ\n\t\t \t$loader = new \\Twig\\Loader\\FilesystemLoader('app/view');\n\t\t \t$twig = new \\Twig\\Environment($loader, [\n\t\t \t 'cache' => 'app/cache',\n\t\t \t 'auto_reload' => true\n\t\t \t]);\n\t\t \t$template = $twig->load('index.html');\n\t\t \t$parametros = array();\n\n\t\t \t#URL QUE ESTÁ NAS VIEWS\n\t\t \t$parametros['url'] = \"http://radiocampusapi.com.br/\";\n\n\t\t \t\n\t\t \t$conteudo = $template->render($parametros);\n\t\t \techo $conteudo;\n\t\t}", "public function indexAction()\n {\n $listAdverts = array(\n array(\n 'title' => 'Recherche développpeur Symfony',\n 'id' => 1,\n 'author' => 'Alexandre',\n 'content' => 'Nous recherchons un développeur Symfony débutant sur Lyon. Blabla…',\n 'date' => new \\Datetime()),\n array(\n 'title' => 'Mission de webmaster',\n 'id' => 2,\n 'author' => 'Hugo',\n 'content' => 'Nous recherchons un webmaster capable de maintenir notre site internet. Blabla…',\n 'date' => new \\Datetime()),\n array(\n 'title' => 'Offre de stage webdesigner',\n 'id' => 3,\n 'author' => 'Mathieu',\n 'content' => 'Nous proposons un poste pour webdesigner. Blabla…',\n 'date' => new \\Datetime())\n );\n\n\n return $this->render('OCCoreBundle:Default:index.html.twig', array(\n 'listAdverts' => $listAdverts\n ));\n }", "public function servicio(Request $request, Response $response, $args)\n{\n //Variables\n $datin=Array();\n /*validando los argumentos que recibimos*/\n if(isset($args['idPadre'])) $idPadre = $args['idPadre'];\n\tif(isset($args['idContenido'])) $idContenido = $args['idContenido'];\n\tif(isset($args['idHijo'])) $idHijo = $args['idHijo'];\n \n $servicio=\"servicio\";\n $datin=MunlimaControlador::plantillaDos($args,$servicio);\n\n $this->view->render($response, \"weblima/servicio.twig\", $datin);\n return $response;\n}", "public function home():Response {\n // $url = $this->generateUrl( 'app_bien_biensactifs', ['noproj'=>143]);\n // var_dump ($url); die ('test generateUrl');\n\n // recup du repository des biens\n $bienrep = $this->getDoctrine()->getRepository(Bien::class);\n // recup des biens\n $biens = $bienrep->findAll();\n\n\n return $this->render('Bien/listeBiens.html.twig', [ 'biens'=>$biens]);\n }", "static function render($twig,$templatePath,$content)\n {\n\n $template = $twig->loadTemplate($templatePath);\n echo $template->render($content);\n return false;\n }", "public function libroreclamaciones(Request $request, Response $response, $args)\n{\n //Variables\n $datin=Array();\n /*validando los argumentos que recibimos*/\n if(isset($args['idPadre'])) $idPadre = $args['idPadre'];\n if(isset($args['idContenido'])) $idContenido = $args['idContenido'];\n if(isset($args['idHijo'])) $idHijo = $args['idHijo'];\n \n $servicio=\"libroreclamaciones\";\n $tituloservicio=\"LIBRO DE RECLAMACIONES\";\n $datin=MunlimaControlador::plantillaUno($args,$servicio,$tituloservicio);\n\n $this->view->render($response, \"weblima/libroreclamaciones.twig\", $datin);\n return $response;\n}", "function studentResources(){\n // show the student resources page\n echo Template::instance()->render('views/studentResources.php');\n}", "public function indexAction()\n {\n return $this->render('@AppBundle/admin/parameter/administrator/index.html.twig');\n }", "#[Route('/', name: 'homepage')]\n public function index(): Response\n {\n if($this->getUser()){\n $fullPath = $this->getParameter('userRoot').explode('.',$this->getUser()->getUsername())[0].'/';\n }\n\n\n\n return $this->render('default/index.html.twig', [\n\n ]);\n }", "public function indexAdminAction()\n {\n\n $variable = \"page d accueil de l'admin\";\n\n\n return $this->render(\"@App/pages/accueilAdmin.html.twig\",\n [\n 'variable' => $variable\n ]\n\n );\n }", "function display(string $template, int $status = 200, array $headers = [])\n{\n $content = app('twig')->render('templates' . DS . $template);\n response($content, $status, $headers);\n}", "public function indexAction()\n {\n return $this->render('PixellaryInhouseBundle:Default:index.html.twig');\n }", "public function home()\n {\n //var_dump($date);\n return $this->render('home.html.twig');\n }", "public static function renderTemplate($template, $argumentos = array()) {\n \n if(self::$twig === null) {\n $loader = new \\Twig_Loader_Filesystem(VISTAS_PATH);\n self::$twig = new \\Twig_Environment($loader);\n }\n \n echo self::$twig->render($template, $argumentos);\n }", "function view(string $render, array $params = [], int $status = 200, array $headers = [])\n{\n $content = app(\"twig\")->render(\"renders\" . DS . $render, $params);\n response($content, $status, $headers);\n}", "public function indexAction()\n {\n return $this->render('CostoSystemBundle:Home:index.html.twig');\n }", "public function indexAction()\r\n {\r\n return $this->render('BoutiqueGestionStockBundle:Home:index.html.twig');\r\n }", "protected function _content_template() {\n \n }", "#[Route(path: '/', name: 'bottin_admin_demande', methods: ['GET'])]\n public function index(): Response\n {\n $demandes = $this->demandeRepository->search();\n\n return $this->render(\n '@AcMarcheBottin/admin/demande/index.html.twig',\n [\n 'demandes' => $demandes,\n ]\n );\n }", "public function get()\n\t\t{\n\t\t\t\n\t\t\techo $this->twig->render(\"index.html\",array(\n\t\t\t\t\"title\"=>\"BookFace\",\n\t\t\t\t\"message\"=>array(\"Hello World\",\"namaste\")\t\n\t\t\t\t));\n\t\t}", "public function indexAction()\n {\n $advertRepository = $this->getDoctrine()->getRepository('AppBundle:Advert');\n $listAdvert = $advertRepository->findAll();\n\n\n return $this->render('@App/Site/index.html.twig', array(\n\n 'listAdvert' => $listAdvert,\n ));\n }", "public function renderContent() {}", "public function indexAction()\n {\n return $this->render('MySecurityBundle:MyProfile:index.html.twig');\n }", "public function render(Request $request);", "public function myAccount() {\n return $this->render('user/index.html.twig', [\n 'user' => $this->getUser()\n ]);\n }", "public function indexAction()\n {\n return $this->render('ToDoListBundle:Default:index.html.twig');\n }", "public function index()\n {\n\n return $this->twig->render('Home/index.html.twig');\n }", "public function create(){\n echo $this->render('devices/create.html.twig');\n }", "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n// $entities = $em->getRepository('uniRecetasBundle:ingrediente')->findAll();\n $entities = $em->getRepository('uniRecetasBundle:ingrediente')->findBy(\n array(), \n array('nombre' => 'ASC')\n );\n\n return $this->render('uniRecetasBundle:ingrediente:index.html.twig', array(\n 'entities' => $entities,\n ));\n }", "public function render()\n {\n $page = $this->twig->load($this->template);\n $this->prepareFlashMessages();\n $html = $page->render($this->vars);\n Router::sendResponse($html);\n }", "public function testContent() {\n \n $content = [\n '#theme' => 'twigTest',\n '#test_var' => $this->t('Example of a page'),\n '#test_var2' => $this->t('implemented with Vuejs'),\n '#attached' => [\n 'library' => [\n 'drupal_vuejs/vuejs',\n 'drupal_vuejs/appvuejs',\n ]\n ],\n '#cache' => array(\n 'max-age' => 0,\n ),\n ];\n \n return $content;\n }", "public function cargaInicialAction(){\n return $this->render('AdminBundle:Refrenda:carga_inicial.html.twig');\n }", "public function actionGetTemplate(){\n $post = Yii::$app->getRequest()->post();\n echo file_get_contents(dirname(\\Yii::getAlias('@webroot')).'/frontend/views/templates/'.$post['template']);\n }", "public function municipalidad(Request $request, Response $response, $args)\n{\n //Variables\n $datin=Array();\n /*validando los argumentos que recibimos*/\n if(isset($args['idPadre'])) $idPadre = $args['idPadre'];\n\tif(isset($args['idContenido'])) $idContenido = $args['idContenido'];\n\tif(isset($args['idHijo'])) $idHijo = $args['idHijo'];\n \n $servicio=\"municipalidad\";\n $tituloservicio=\"MUNICIPALIDAD\";\n $datin=MunlimaControlador::plantillaUno($args,$servicio,$tituloservicio);\n\n $this->view->render($response, \"weblima/municipalidad.twig\", $datin);\n return $response;\n}", "protected function _content_template()\n {\n\n }", "public function showAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n //recupérer le repo\n $repository = $em->getRepository('InsatGl2Bundle:Personne');\n\n $personnes = $repository->findAll();\n\n\n return $this->render('@InsatGl2\\Personne\\show.html.twig',\n array(\n 'personnes'=> $personnes\n ));\n }", "public function aboutAction()\n {\n return $this->render('TodoCerdoTodoCerdoBundle:Page:about.html.twig');\n }", "protected function content_template() {}", "protected function content_template() {}", "public function viewAction()\n {\n $em = $this->getDoctrine()->getManager();\n $repository = $this\n ->getDoctrine()\n ->getManager()\n ->getRepository('MoezBackBundle:paquet');\n $listePaquets=$repository->FindPaquetExpirired();\n foreach ($listePaquets as $paquet)\n {\n $paquet->setEtat(\"fini\");\n\n $em->flush();\n }\n\n $paquets = $em->getRepository('MoezBackBundle:paquet')->findAll();\n\n return $this->render('@MoezBack/paquet/v.html.twig', array(\n 'paquets' => $paquets,\n ));\n }", "public function indexAction()\n {\n return $this->templating->renderResponse('ProcessingBundle:Index:index.html.twig');\n }", "public function ActeurAction($acteurid){\n #Attention, nom entre parenthèses doit etre pareil que dans routing\n \n $em = $this -> getDoctrine() -> getManager();\n\n $acteur = $em -> getRepository('TroiswaPublicBundle:Acteur') -> find($acteurid); //Find pour récupérer un seul élément, et prend en argument l'id\n\n return $this->render('TroiswaPublicBundle:Acteur:acteur.html.twig', array('acteur' => $acteur ));\n #Envoyer des infos dans la vue - tableau associatif\n\n //die(Debug::dump($film));\n\n}", "public function pageInscription(){\n\n $token = bin2hex(random_bytes(32));\n $_SESSION['token'] = $token;\n return $this->twig->render('User/inscription.html.twig',[\n 'inscrit'=>1\n ,'token' => $token\n ]);\n\n }", "public function indexAction() {\n // on récupère l'entity manager à l'aide du service Doctrine\n $em = $this->getDoctrine()->getManager();\n\n // on récupère le repository de Article et on lui demande \n // tous les articles\n $entities = $em->getRepository('HBBlogBundle:Article')->findAll();\n\n // on transmet la liste d'article au template en la nommant entities\n return array(\n 'entities' => $entities,\n );\n }", "public function view(){\r\n\r\n\t$this->registry->template->blog_heading = 'This is the blog heading';\r\n\t$this->registry->template->blog_content = 'This is the blog content';\r\n\t$this->registry->template->show('blog_view');\r\n}", "public function index()\n {\n $entityManager = $this->getDoctrine()->getManager();\n // obtenemos todas las apuestas\n $noticias = $entityManager->getRepository(Noticia::class)->findAll();\n return $this->render('blog/index.html.twig', array(\n 'noticias' => $noticias,\n ));\n }", "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $datos = $em->getRepository('AppBundle:Personal')->findAll();\n \n $cabecera=array('Registro','Nombre','Apellido1','Apellido2','Nacionalidad'\n ,'Telefono Fijo','Movil','Email','Direccion','Poblacion','Fecha de nacimiento');\n \n $campos=array('idremesa','Nombre','Apellido1','Apellido2','Nacionalidad'\n ,'Telefonofijo','Movil','Email','Direccion','Poblacion','Fechanacimiento');\n $tipos=array('','','','','','','','','','d');\n \n return $this->render('muestratabla.html.twig', array(\n 'datos' => $datos,\n 'cabeceras'=>$cabecera,\n 'campos'=>$campos,\n 'campoclave'=>$campos[0],\n 'titulo'=>'Personal',\n 'nombreruta'=>'personal', \n 'nombreparametro'=>$campos[0],\n 'tipos'=>$tipos, \n ));\n /* \n return $this->render('personal/index.html.twig', array(\n 'personals' => $personals,\n ));\n \n */\n }", "public function content_template()\n {\n }", "public function content_template()\n {\n }", "public function content_template()\n {\n }", "public function content_template()\n {\n }", "public function content_template()\n {\n }", "public function content_template()\n {\n }" ]
[ "0.73527354", "0.69492996", "0.67926794", "0.6785563", "0.6756817", "0.6741111", "0.6709549", "0.66998357", "0.66687316", "0.666545", "0.6662405", "0.66616845", "0.6621935", "0.6620254", "0.6620038", "0.6579944", "0.65702164", "0.656094", "0.65426266", "0.65261763", "0.65163684", "0.64941734", "0.6482226", "0.64820826", "0.6479968", "0.6464483", "0.6460851", "0.6437935", "0.6435143", "0.64053947", "0.6386728", "0.6380405", "0.63733125", "0.63584423", "0.63490164", "0.63369626", "0.6317802", "0.6316018", "0.63156104", "0.63044834", "0.6284788", "0.62738496", "0.62711877", "0.626751", "0.6260547", "0.6260547", "0.6260547", "0.6252477", "0.62460655", "0.6238709", "0.6238149", "0.6229965", "0.6217824", "0.6216245", "0.62140596", "0.62131226", "0.6211751", "0.621097", "0.62094736", "0.6204849", "0.6191346", "0.61761796", "0.6174705", "0.6169466", "0.61662704", "0.616357", "0.6156235", "0.6154888", "0.6141615", "0.61347616", "0.61235887", "0.611981", "0.6115368", "0.6114361", "0.6097374", "0.6094199", "0.6087645", "0.6082445", "0.6078465", "0.6071516", "0.60687447", "0.60622895", "0.60598373", "0.60574305", "0.6052438", "0.60425335", "0.60425335", "0.6041347", "0.6041292", "0.6037838", "0.6036558", "0.6021505", "0.6020451", "0.6012009", "0.600843", "0.60074383", "0.60074383", "0.60074383", "0.60074383", "0.60074383", "0.60074383" ]
0.0
-1
Returns the display label.
public function label();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDisplayLabel();", "public function get_label();", "public function get_label();", "public function getLabel()\n {\n return !empty($this->label) ? $this->label : '';\n }", "public function getLabel()\n {\n return $this->label ?: $this->getName();\n }", "public function label()\n {\n return $this->label;\n }", "public function label()\n {\n return $this->label ?? class_basename($this);\n }", "public function getDisplayLabel()\n {\n $build = [];\n foreach ($this->parentWalker() as $location) {\n $build[] = $location->getLabel();\n }\n\n return implode(' - ', array_reverse($build));\n }", "public function get_label() {\n\t\treturn $this->label;\n\t}", "public function getLabel()\n {\n return $this->sLabel;\n }", "public function getLabel(): string\n {\n return $this->label;\n }", "public function getLabel(): string\n {\n return $this->label;\n }", "public function getLabel(): string\n {\n return $this->label;\n }", "public function getLabel(): string\n {\n return $this->label;\n }", "public function getLabel(): string\n {\n return $this->_label;\n }", "public function getLabel()\n\t{\n\t\treturn $this->get('label');\n\t}", "public function get_label()\n\t{\n\t\treturn $this->_label;\n\t}", "public function label()\n {\n if ($this->label_translated) {\n return cms_trans($this->label_translated);\n }\n\n if ($this->label) {\n return $this->label;\n }\n\n return ucfirst(str_replace('_', ' ', snake_case($this->source)));\n }", "public function getLabel(): string {\n return $this->label;\n }", "public function getLabel()\n\t{\t\t\t\n\t\treturn $this->label;\n\t}", "public final function getLabel(){\n $config = $this->getLocalConfiguration();\n\n if(array_key_exists('label',$config)){\n return $config['label'];\n }\n\n return $this->getConfiguration()['__title'];\n }", "public function getLabel()\n {\n return $this->label;\n }", "public function getLabel()\n {\n return $this->label;\n }", "public function getLabel()\n {\n return $this->label;\n }", "public function getLabel()\n {\n return $this->label;\n }", "public function getLabel()\n {\n return $this->label;\n }", "public function getLabel()\n {\n return $this->label;\n }", "public function getLabel()\n {\n return $this->label;\n }", "public function getLabel()\n {\n return $this->label;\n }", "public function getLabel()\n {\n return $this->label;\n }", "public function getLabel()\n {\n return $this->label;\n }", "public function getLabel()\n {\n return $this->label;\n }", "public function getLabel()\n {\n return $this->label;\n }", "public function getLabel()\n {\n return $this->label;\n }", "public function getLabel()\n {\n return $this->label;\n }", "public function getLabel()\n {\n return $this->getData(self::LABEL);\n }", "public function get_label() {\n return $this->_label;\n }", "function getLabel()\n\t{\n\t\treturn '';\n\t}", "public function getBoardLabel()\n {\n return Mage::helper('mbiz_advancedreports')->__($this->getCurrentBoard()->getLabel());\n }", "public function getLabel() {\n\t\treturn $this->label;\n\t}", "public function getLabel() {\n\t\treturn $this->label;\n\t}", "public function getLabel() {\n\t\treturn $this->label;\n\t}", "public function getLabel() {\n\t\treturn $this->label;\n\t}", "public function getLabel(): string\n {\n return $this->name;\n }", "public function getFrontendLabel();", "public function get_label() {\n\n\t\t/**\n\t\t * Filters the screen label.\n\t\t *\n\t\t * @since 2.0.0\n\t\t *\n\t\t * @param string $label screen label, for display\n\t\t */\n\t\treturn (string) apply_filters( 'wc_facebook_admin_settings_' . $this->get_id() . '_screen_label', $this->label, $this );\n\t}", "public function getLabel() {\n return $this->label;\n }", "public function getLabel() {\n return $this->label;\n }", "public function getLabel() {\n\t\treturn \\Extension\\Templavoila\\Utility\\GeneralUtility::getLanguageService()->sL($this->label);\n\t}", "public function getLabel()\n {\n return $this->label ? : ucwords(str_replace(array('-', '_', '.'), ' ', $this->name));\n }", "public function getLabel()\n\t{\n\t\treturn $this->_label;\n\t}", "public function getLabel()\n {\n return $this->_label;\n }", "public function getLabel()\n {\n return $this->_label;\n }", "public function getLabel() {\n return $this->label;\n }", "public function getLabel() {\n return $this->label;\n }", "public function get_label() {\n\t\t\treturn __( 'Costumapi', 'text-domain' );\n\t\t}", "public function getLabel()\n {\n return Translation::get(($this->label ? : $this->name));\n }", "public function getLabel() {\n\t\t$label = '';\n\t\tif($this->registration) {\n\t\t\t$label = $this->registration->competition->getFullName().', '.Yii::$app->formatter->asDate($this->registration->competition->start_date);\n\t\t\t$golfer_str = $this->player->name.' ('.$this->player->handicap.')';\n\t\t\t$label .= ' — '.$golfer_str;\n\t\t} else {\n\t\t\t$label = $this->practice->course->getFullName();\n\t\t\t$golfer_str = $this->player->name.' ('.$this->player->handicap.')';\n\t\t\t$label .= ' — '.$golfer_str;\n\t\t}\n\t\treturn $label;\n\t}", "public function getLabel()\n {\n return $this->_label;\n }", "public function label()\n\t{\n\t\treturn \"$this->merk $this->jenis\";\n\t}", "function label() {\n return \"<label>\".$this->label.\": </label>\";\n }", "function getLabel() \n {\n return $this->getValueByFieldName( 'label_label' );\n }", "public function getLabel() {\n return $this->getAttribute('label');\n }", "public function getLabel() {\n return $this->Title;\n }", "public function label()\n {\n return self::GAME_LABEL;\n }", "public function label()\n {\n return self::GAME_LABEL;\n }", "function getLabel(): string;", "public static function label()\n {\n return Str::singular(class_basename(get_called_class()));\n }", "public function getLabel(): string;", "public function getLabel(): string;", "public function GetLabel();", "public function menu_label()\n\t{\n\t\t$label = $this->p('menu_label')->text();\n\t\t$label = $this->render($label);\n\n\t\tif ( ! $label && $p = $this->p('title') ) {\n\t\t\t$label = $p->text();\n\t\t}\n\n\t\tif ( ! $label && $p = $this->p('name') ) {\n\t\t\t$label = $p->text();\n\t\t}\n\n\t\treturn $label;\n\t}", "function getLabel() {\r\n\t\treturn $this->requiredBold&&$this->isRequired()?div::htm_bold(ucfirst($this->label)):ucfirst($this->label);\r\n\t}", "function getLabel(){\r\n\t\treturn $this->label;\r\n\t}", "protected function getLabel()\n\t{\n\t\treturn str_replace($this->id, $this->id . '_id', parent::getLabel());\n\t}", "public function label() {\n return $this->getPluginId();\n }", "public static function label()\n {\n return 'Bukeri';\n }", "public function get_label(): ?String {\n return $this->label;\n }", "public function getLabel() {}", "public function getLabel() {}", "public function getLabel();", "public function getLabel();", "public function getLabel();", "public function getLabel();", "public function getLabel();", "public function getLabel();", "public function getLabel();", "public function getLabel();", "public function getLabel();", "public function getLabel();", "public function getLabel();", "public function getLabel();", "public function getLabel();", "public function getLabel();", "public function getLabel();", "public static function label()\n {\n return Str::plural(class_basename(get_called_class()));\n }", "public static function label()\n {\n return Str::plural(class_basename(get_called_class()));\n }", "public function getLabel() {\n\t}", "function getLabel() {\n global $Language;\n if ($this->isLabelMustBeLocalized()) {\n return $Language->getText('plugin_tracker_common_fieldset', $this->label);\n } else {\n return $this->label;\n }\n }", "public function getLabel()\n\t{\n\t\t$label = parent::getLabel();\n\t\t$label->for = $this->getId();\n\t\treturn $label;\n\t}", "function getLabel(){\n\t\t\n\t\ttry{\n\t\tglobal $system;\n\t\t$language=$system[\"config\"][\"mluse\"][\"language\"];\n\t\tinclude_once 'tablero/SecurityActionLabelPeer.php';\n\t\t$language='eng';\n\t\t$actionLabelInfo=SecurityActionLabelPeer::getByActionAndLanguage($this->GetAction(),$language);\n\t\treturn $actionLabelInfo->getLabel();\n\t\t}catch (PropelException $e) {}\n\t}" ]
[ "0.90215176", "0.8152127", "0.8152127", "0.8140015", "0.80826354", "0.80702937", "0.8055617", "0.8039163", "0.8038699", "0.8029842", "0.8027895", "0.8027895", "0.8027895", "0.8027895", "0.7997142", "0.797992", "0.79473245", "0.79323536", "0.79278624", "0.7915433", "0.79113615", "0.7907425", "0.7907425", "0.7907425", "0.7907425", "0.7907425", "0.7907425", "0.7907425", "0.7907425", "0.7907425", "0.7907425", "0.7907425", "0.7907425", "0.7907425", "0.7907425", "0.78982395", "0.7894453", "0.78892577", "0.7877039", "0.787088", "0.787088", "0.787088", "0.787088", "0.78702027", "0.78633726", "0.7836335", "0.7827507", "0.7827507", "0.7822121", "0.7796703", "0.7794862", "0.779331", "0.779331", "0.77678925", "0.77678925", "0.77566326", "0.7708255", "0.76792794", "0.76448536", "0.76436865", "0.7618365", "0.75909686", "0.759087", "0.75894755", "0.7581036", "0.7581036", "0.7568284", "0.7567352", "0.7566345", "0.7566345", "0.7558918", "0.7550199", "0.75442004", "0.75184447", "0.7484456", "0.74817824", "0.74580425", "0.7452966", "0.7406365", "0.7406365", "0.7398077", "0.7398077", "0.7398077", "0.7398077", "0.7398077", "0.7398077", "0.7398077", "0.7398077", "0.7398077", "0.7398077", "0.7398077", "0.7398077", "0.7398077", "0.7398077", "0.7398077", "0.7389182", "0.7389182", "0.7379218", "0.7347307", "0.73304904", "0.73217756" ]
0.0
-1
Gets list of fields provided by this plugin.
public function providedFields();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function fields() {\n // The fields are passed to the constructor for this plugin.\n return $this->fields;\n }", "function get_fields( ) {\n\t\treturn $this->fields_list;\n\t\t}", "public function get_fields() {\n return $this->fields;\n }", "public function getListFields();", "public function get_fields() {\r\n\t\treturn $this->fields;\r\n\t}", "public function get_fields() {\n\t\treturn $this->fields;\n\t}", "static public function getFieldsList () {\n return self::_getInstance()->_fieldsList;\n }", "private function fields() {\n $fields = array();\n include($this->directories['plugin']['var']['dir'].'/fields.php');\n return $fields;\n }", "public function getAllFields()\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 getFieldsList(){\n return $this->_get(1);\n }", "protected function getFields()\n {\n return $this->fields;\n }", "protected function getFields()\n {\n return $this->fields;\n }", "public function getFields()\r\n {\r\n return $this->fields;\r\n }", "public function getFieldList()\n {\n return $this->_fieldList;\n }", "public function getFields() {\n $field = $this->get('field');\n return null !== $field ? $field : array();\n }", "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 getFields() {\n\t\treturn $this->fields;\n\t}", "public function getFields() {\n\t\treturn $this->fields;\n\t}", "public static function getFields() {\n return self::$fields;\n }", "public function getFields();", "public function getFields();", "public function getFields();", "public function getFields();", "public function getFields();", "public function getFields();", "public function getFields()\n {\n return $this->_fields;\n }", "public function getFields()\n {\n return $this->_fields;\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}", "public function getFields()\n\t\t{\n\t\t\treturn $this->fields;\n\t\t}", "public function getFields(): array\n {\n return $this->fields;\n }", "public function getFields(): array\n {\n return $this->fields;\n }", "public function getFields() : array {\n\t\treturn $this->fields;\n\t}", "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()\r\n {\r\n return $this->fields;\r\n }", "public static function getFields(){\n\t\treturn self::$fields;\n\t}", "public function getFields() {\n\t\treturn array(\n\t\t\tself::FIELD_ID,\n\t\t\tself::FIELD_NAME,\n\t\t\tself::FIELD_CREATED_AT,\n\t\t);\n\t}", "public function fields() {\n return $this->fields;\n }", "public static function get_fields()\n {\n }", "public function getFields()\n\t{\n\t\treturn [];\n\t}", "public function get_fields() {\n\t\treturn apply_filters( 'wpcd_get_custom_fields', $this->custom_fields );\n\t}", "public function getFields() {\n\t\treturn array(\n\t\t\tself::FIELD_ID,\n\t\t\tself::FIELD_PHRASE_ID,\n\t\t\tself::FIELD_LANGUAGE_ID,\n\t\t\tself::FIELD_TRANSLATION,\n\t\t\tself::FIELD_CREATED_AT,\n\t\t\tself::FIELD_USER_ID,\n\t\t);\n\t}", "protected function getFields()\n {\n return $this->Fields;\n }", "public function getFields() {}", "public function getFields() {}", "public function getFields() {}", "protected function getFields() {\n return $this->getConfiguration()['settings']['fields'];\n }", "function fields()\n\t{\n\t\treturn $this->_fields;\n\t}", "final public function getAllFields()\r\n {\r\n return array($this->_field);\r\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 }", "public function fields() : DeepList {\n return $this->_fields;\n }", "public function listFields()\n {\n return array_keys($this->fields);\n }", "public function getFieldsForExport()\n {\n return $this->fields;\n }", "public function getFieldsForExport()\n {\n return $this->fields;\n }", "public function getFields() {\n return $this->program->getFields();\n }", "public function getFields(){\n\t\treturn $this->Fields;\n\t}", "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 list_fields() {\n return $this->db->list_fields($this->_table());\n }", "function getFields();", "function GetFieldsList()\n\t{\n\t\tglobal $dal_info;\n\t\treturn array_keys( $dal_info[ $this->infoKey ] );\n\t}", "public function get_fields()\n {\n $catalogue_name = get_param_string('catalogue_name', '');\n if ($catalogue_name == '') {\n return array();\n }\n return $this->_get_fields($catalogue_name);\n }", "public function getFields()\n {\n return $this->content->getFields();\n }", "public function getFields()\n {\n return $this->getForm()->getFields();\n }", "public function getAllFields();", "protected function getFields()\n {\n return array(\n 'user_id',\n 'name',\n 'oauth_user_id',\n 'username',\n 'pic_url',\n 'oauth_provider',\n 'token',\n 'secret'\n );\n }", "public function getFields()\n {\n return $this->arr_defined_fields;\n }", "public function fields(){\n\t\treturn array();\n\t}", "public static function available_fields()\n {\n return self::$available_fields;\n }", "protected function _fields()\n\t{\n\t\treturn array(\n\t\t\t\t'name',\n\t\t\t 'intro', 'sort_order',\n\t\t\t 'status', 'feature',\n\t\t);\n\t}", "public function getShopFields()\n {\n return $this->config->pluginFields;\n }", "public function listFields()\n\t{\n\t\treturn array('id' => 'ID', 'title' => 'Title', 'estimated' => 'Estimated', 'status' => 'Status', 'getPercentageComplete' => 'Percentage Complete');\n\t}", "public function getFields() {\n return array_keys($this->fields);\n }", "public function &getFields() { return $this->fields; }", "public function getFieldsList()\n {\n return $this->table_fields_names;\n }", "protected function get_fields() {\n\t\treturn rwmb_get_registry( 'field' )->get_by_object_type( 'post' );\n\t}", "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 getFieldList()\n {\n $sObjectName = $this->getShopObjectName();\n\n if ($sObjectName) {\n $oShopObject = oxNew($sObjectName);\n } else {\n $oShopObject = oxNew('oxbase');\n $oShopObject->init($this->getTableName());\n }\n\n if ($oShopObject instanceof oxI18n) {\n $oShopObject->setLanguage(0);\n $oShopObject->setEnableMultilang(false);\n }\n\n $sViewName = $oShopObject->getViewName();\n $sFields = str_ireplace('`' . $sViewName . \"`.\", \"\", strtoupper($oShopObject->getSelectFields()));\n $sFields = str_ireplace(array(\" \", \"`\"), array(\"\", \"\"), $sFields);\n $this->_aFieldList = explode(\",\", $sFields);\n\n return $this->_aFieldList;\n }", "public function &getFields();", "public function getFields()\n {\n return array_keys($this->fields);\n }", "public function fields()\n {\n return [ \n ];\n }", "public function getFields()\r\n {\r\n return array_keys($this->fields);\r\n }", "public function getFields() {\n return array_keys($this->_fields);\n }", "public function getFields()\n {\n /** @var WebApplication|ConsoleApplication $this */\n return $this->get('fields');\n }", "public function getFields()\n {\n return isset($this->Fields) ? $this->Fields : null;\n }" ]
[ "0.8415976", "0.8336995", "0.80864495", "0.8082112", "0.80792445", "0.8063436", "0.8046762", "0.79928225", "0.7957314", "0.7912877", "0.7912877", "0.7912877", "0.7912877", "0.7912877", "0.7912877", "0.7912877", "0.7912877", "0.7912877", "0.7912877", "0.7912877", "0.7904227", "0.79036", "0.79036", "0.7895653", "0.78946626", "0.78832185", "0.7879202", "0.78680944", "0.78680944", "0.78574747", "0.7842493", "0.7842493", "0.7842493", "0.7842493", "0.7842493", "0.7842493", "0.7836762", "0.7836762", "0.7826666", "0.7826666", "0.7794544", "0.77896607", "0.77896607", "0.7785856", "0.77646166", "0.77558076", "0.77558076", "0.77485055", "0.7744783", "0.77303463", "0.77252764", "0.77048934", "0.7700755", "0.7696901", "0.7687907", "0.7662675", "0.7648502", "0.7648502", "0.7648502", "0.7641778", "0.7638462", "0.7636905", "0.76300776", "0.762071", "0.760512", "0.75796574", "0.75796574", "0.7548191", "0.750735", "0.7504565", "0.7504565", "0.7504565", "0.7504565", "0.7504565", "0.7483549", "0.7468035", "0.74638575", "0.7460291", "0.7442134", "0.74269557", "0.74245495", "0.7418367", "0.7403831", "0.74021566", "0.73832273", "0.73827887", "0.73716664", "0.7359064", "0.73523235", "0.7351585", "0.7349921", "0.73428625", "0.7335", "0.7328763", "0.73210645", "0.73128074", "0.73085356", "0.73064524", "0.73017544", "0.72920877", "0.72912097" ]
0.0
-1
Gets a multibannerrelated field/value.
public function getField(MultibannerInterface $multibanner, $name);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getMultiple()\n {\n return $this->multiple;\n }", "public function get_field(/* .... */)\n {\n return $this->_field;\n }", "public function getField();", "public function getField();", "public function getField();", "function get_value_metaext($the_ID, $name, $single = true) {\r\n\t\t$retVal = get_post_meta($the_ID, $name, $single);\r\n\t\tif (!$retVal || $retVal == '')\r\n\t\t\t$retVal = null;\r\n\t\treturn $retVal;\r\n\t}", "function GetMultifield($value)\r\n\t{\r\n\t\t$ValsArr = explode(\"|::|\", $value);\r\n\t\t$RetArr = array();\r\n\t\tforeach($ValsArr as $field)\r\n\t\t{\r\n\t\t\tif($field!=\"\")\r\n\t\t\t{\r\n\t\t\t\t$DataField = explode(\"|++|\", $field);\r\n\t\t\t\t$FTitle = $DataField[0]; // field title\r\n\t\t\t\t$FTtype = $DataField[1]; // field type\r\n\t\t\t\t$FValue = $DataField[2]; // field value\r\n\t\t\t\t$FinalVal = $this->GetTrueValue($FValue, $FTtype);\r\n\t\t\t\t$RetArr[''.$FTitle.''] = $FinalVal;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn $RetArr;\r\n\t}", "function getFieldValue($field);", "public function getFieldValue()\n {\n return $this->value;\n }", "public function getField()\n {\n return $this->_field;\n }", "public function getField(){\n return $this->field;\n }", "function getField(){\n\t\treturn $this->Field;\n\t}", "public function get( $meta_name, $single = true ) {\r\n\t\t$meta_name = '_campaign_' . $meta_name;\r\n\t\treturn get_post_meta( $this->post->ID, $meta_name, $single );\r\n\t}", "function getValueFromField()\n {\n return $this->current_row[ key( $this->mapping ) ];\n }", "public function fetchField();", "public function getValue()\n {\n return $this->_fields['Value']['FieldValue'];\n }", "public function get_meta( $result, $post, $key, $default, $field ) {\n\n\t\t\t$relation = isset( $this->_active_relations[ $key ] ) ? $this->_active_relations[ $key ] : false;\n\n\t\t\tif ( ! $relation ) {\n\t\t\t\treturn $result;\n\t\t\t}\n\n\t\t\t$meta = get_post_meta( $post->ID, $key, false );\n\t\t\t$meta = array_filter( $meta );\n\t\t\t$meta = array_values( $meta );\n\n\t\t\tif ( ! isset( $field['multiple'] ) || ! $field['multiple'] ) {\n\t\t\t\t$meta = isset( $meta[0] ) ? $meta[0] : null;\n\t\t\t}\n\n\t\t\tif ( ! empty( $meta ) ) {\n\t\t\t\treturn $meta;\n\t\t\t} else {\n\t\t\t\treturn null;\n\t\t\t}\n\n\t\t}", "public function getField() {\n\t\treturn $this->field; \n\t}", "public function get_meta( $key = '', $single = false );", "private function get_meta( $key, $single = true ) {\n\t\treturn get_post_meta( $this->get_id(), $key, $single );\n\t}", "public function getField() {\n\t\treturn $this->_field;\n\t}", "public function getField($name) { return $this->fields[$name]; }", "public function getField() {\n\t\treturn $this->field;\n\t}", "public function get_value(Entities\\Item_Metadata_Entity $item_metadata) {\n $unique = ! $item_metadata->is_multiple();\n \n $field_type = $item_metadata->get_field()->get_field_type_object();\n if ($field_type->core) {\n $item = $item_metadata->get_item();\n \n $get_method = 'get_' . $field_type->related_mapped_prop;\n return $item->$get_method();\n \n } else {\n return get_post_meta($item_metadata->item->get_id(), $item_metadata->field->get_id(), $unique);\n }\n \n }", "function getValueFromField()\r\n\t{\r\n\t\treturn $this->row[ key( $this->mapping ) ];\r\n\t}", "public function getField()\n {\n return $this->field;\n }", "public function getField()\n {\n return $this->field;\n }", "public function getField()\n {\n return $this->field;\n }", "public function getField()\n {\n return $this->field;\n }", "public function get_value() {\r\n\t\tif ( $this->key === 'job_title' ) {\r\n\t\t\treturn $this->listing->get_name();\r\n\t\t}\r\n\r\n\t\tif ( $this->key === 'job_description' ) {\r\n\t\t\treturn $this->listing->get_data('post_content');\r\n\t\t}\r\n\r\n\t\t// othewise, retrieve from wp_postmeta\r\n\t\treturn get_post_meta( $this->listing->get_id(), '_'.$this->key, true );\r\n\t}", "public function getEmbeddedField()\n {\n return $this->get(self::EMBEDDED_FIELD);\n }", "public abstract function FetchField();", "public function getFieldValues()\n {\n if($this->isNewRecord){\n return []; //TODO: LOAD DEFAULT FIELDS OF TYPE\n }\n\n //pull meta values from DB\n $table = self::tablePrefix().'cms_post_field';\n $strSql = \"SELECT id, field_id, value \n\t\t\t\t\tFROM {$table}\n\t\t\t\t\tWHERE post_id = :pid\n\t\t\t\t \";\n $cmd = self::getDb()->createCommand($strSql);\n $cmd->bindValue(\":pid\",$this->id,\\PDO::PARAM_STR);\n $arrResults = $cmd->queryAll();\n\n return ArrayHelper::index($arrResults, 'id', 'field_id');\n }", "function getExtrafieldvalue($fieldid, $version = 0)\r\n\t{\r\n\t\t$query = 'SELECT value'\r\n\t\t\t\t.(($version<=0)?' FROM #__flexicontent_fields_item_relations AS fv':' FROM #__flexicontent_items_versions AS fv')\r\n\t\t\t\t.' WHERE fv.item_id = ' . (int)$this->_id\r\n\t\t\t\t.' AND fv.field_id = ' . (int)$fieldid\r\n\t\t\t\t.(($version>0)?' AND fv.version='.((int)$version):'')\r\n\t\t\t\t.' ORDER BY valueorder'\r\n\t\t\t\t;\r\n\t\t$this->_db->setQuery($query);\r\n\t\t$field_value = $this->_db->loadResultArray();\r\n\t\tforeach($field_value as $k=>$value) {\r\n\t\t\tif($unserialized_value = @unserialize($value)) {\r\n\t\t\t\treturn $unserialized_value;\r\n\t\t\t} else {\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn $field_value;\r\n\t}", "public function getField()\n {\n $value = $this->name;\n if (null != $this->field) {\n $value = $this->field;\n }\n return $value;\n }", "public function __get ($field) {\n return $this->__fields[$field]['data'];\n }", "function getFieldValues()\n {\n $myvalues = $this->m_oPageHelper->getFieldValues($this->m_protocol_shortname);\n return $myvalues;\n }", "public function getValue(): mixed\n {\n return $this->field?->getValue();\n }", "function get_field($key, $page_id = 0) { /// get_field é para somente pegar o valor do que quero\n $id = $page_id !== 0 ? $page_id : get_the_ID();\n return get_post_meta($id, $key, true);\n }", "public function __get($name)\n {\n if(array_key_exists($name, $this->extraFields)){\n return $this->extraFields[$name]->getValue();\n }\n return parent::__get($name);\n }", "function get_value() {return $this->get();}", "public function getField()\n\t{\n\t\t// this Fldsrc is not related to the target-table\n\t\treturn null;\n\t}", "function affwp_get_referral_meta( $referral_id, $meta_key = '', $single = false ) {\n\treturn affiliate_wp()->referral_meta->get_meta( $referral_id, $meta_key, $single );\n}", "function fieldValues() {\n\t\n\t\tif (isset($this->fieldValues)) {\n\t\t\treturn $this->fieldValues;\n\t\t}\n\n\t\t// fieldvalues fanns inte.\n\t\t// kolla preload först och om inte där så ladda in\n\t\t$preloader = pb_query_preloader::getInstance();\n\t\t$preloadRows = $preloader->getPreloadFieldsRows($this->id);\n\t\tif ($preloadRows === false) {\n\t\t\t#echo \"<br>nah, no preload row for field, article: $this->id \";\n\t\t\t// no preload for this articles field, fetch them from db\n\t\t\tglobal $polarbear_db;\t\t\n\t\t\t$sql = \"\n\t\t\t\tSELECT \n\t\t\t\t\tfv.fieldID, fv.articleID, fv.value, fv.numInSet,\n\t\t\t\t\tf.name as fieldName, f.type as fieldType\n\t\t\t\tFROM \" . POLARBEAR_DB_PREFIX . \"_fields_values as fv\n\t\t\t\tINNER JOIN \" . POLARBEAR_DB_PREFIX . \"_fields as f ON f.id = fv.fieldID\n\t\t\t\tWHERE articleID = '$this->id' ORDER BY fieldID ASC, numInSet ASC\";\n\t\t\t$rows = $polarbear_db->get_results($sql);\n\t\t} else {\n\t\t\t#echo \"<br>got preload row for field, article: $this->id\";\n\t\t\t// horay! we got the field values preloaded\n\t\t\t$rows = $preloadRows;\n\t\t}\n\t\n\t\t$arrFieldValues = array();\n\t\t$arrFieldCount = array();\n\t\tif (is_array($rows)) {\n\t\t\tforeach ($rows as $oneRow) {\n\t\t\t\tif (!isset($arrFieldValues[$oneRow->fieldID])) {\n\t\t\t\t\t$arrFieldValues[$oneRow->fieldID] = array();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t/*\n\t\t\t\t\ttodo: om det är en fil/bild ska det kanske finnas\n\t\t\t\t\tlink, downloadLink, imageSrc osv.\n\t\t\t\t*/\n\t\t\t\t$arrFieldValues[$oneRow->fieldID][] = array(\n\t\t\t\t\t\"fieldID\" => $oneRow->fieldID,\n\t\t\t\t\t\"articleID\" => $oneRow->articleID,\n\t\t\t\t\t\"value\" => $oneRow->value,\n\t\t\t\t\t\"numInSet\" => $oneRow->numInSet,\n\t\t\t\t\t// and some useful \"extras\" too\n\t\t\t\t\t\"valueEscaped\" => htmlspecialchars ($oneRow->value, ENT_COMPAT, \"UTF-8\"),\n\t\t\t\t\t\"valueNoTags\" => strip_tags($oneRow->value),\n\t\t\t\t\t\"fieldName\" => $oneRow->fieldName,\n\t\t\t\t\t\"fieldType\" => $oneRow->fieldType\n\t\t\t\t);\n\t\t\t\tif (!isset($arrFieldCount[$oneRow->fieldID])) {\n\t\t\t\t\t$arrFieldCount[$oneRow->fieldID]=0;\n\t\t\t\t}\n\t\t\t\t$arrFieldCount[$oneRow->fieldID]++;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// update count\n\t\tforeach ($arrFieldCount as $fieldID => $fieldCount) {\n\t\t\tfor ($i=0; $i<sizeof($arrFieldValues[$fieldID]); $i++) {\n\t\t\t\t$arrFieldValues[$fieldID][$i][\"fieldSetCount\"] = $fieldCount;\n\t\t\t}\n\t\t}\n\t\t\n\t\t#pb_pqp_log_speed(\"article fieldValues()\");\n\t\t\n\t\t$this->fieldValues = $arrFieldValues;\n\t\treturn $this->fieldValues;\n\t}", "function get_value($post_id, $field)\n\t{\n\t\t// get value\n\t\t$value = parent::get_value($post_id, $field);\n\t\t\n\t\t// format value\n\t\t\n\t\t// return value\n\t\treturn $value;\t\t\n\t}", "public function getFieldValue(Field $field, $model);", "public function get($field) {\r\n\t\treturn $this -> fields[$field];\r\n\t}", "public function getField($name) {\n\t\treturn $this->fields[$name];\n\t}", "public function value() {\n if ($this->_m_value !== null)\n return $this->_m_value;\n $this->_m_value = $this->lookupTable()[($this->tag() - 213)];\n return $this->_m_value;\n }", "function get_value_for_api($post_id, $field){\n\t\t// get value\n\t\t$value = $this->get_value($post_id, $field);\n\t\t\n\t\t// return value\n if( !empty($value) ) {\n\t\t return new ACF_Link_Field_Value($value);\n } else {\n return '';\n } \n\n\t}", "public abstract function GetCurrentField();", "function news_get_field( $p_news_id, $p_field_name ) {\r\n\t\t$row = news_get_row( $p_news_id );\r\n\t\treturn ( $row[$p_field_name] );\r\n\t}", "public function getMultiple() {}", "function acf_get_value($post_id = 0, $field)\n{\n}", "public function getField($name) {\n return $this->getFields()[$name];\n }", "public function field($key)\n {\n $field = $this->metas()->where('key', $key)->select('value')->first();\n\n if($field == null) return '';\n \n return is_array(json_decode($field->value)) \n ? json_decode($field->value) \n : $field->value;\n }", "public function getMeta($meta_key = \"\", $multiple = false)\n {\n }", "public function getField($name) {\n return $this->body->getField($name);\n }", "function get_field($selector, $post_id = \\false, $format_value = \\true)\n{\n}", "function get_fields() {\n global $Tainacan_Item_Metadata;\n return $Tainacan_Item_Metadata->fetch($this, 'OBJECT');\n\n }", "public function getField($name)\n {\n return $this->fields[$name];\n }", "public function getValue(){\n return $this->value2 ? $this->value2 : $this->value1;\n }", "public function __get($key) {\n return $this->_fields[$key];\n }", "public function retrieveFieldValue(Field $field, $model);", "function getValue(int $field);", "public function __get($field){\n if ($field == 'ENTIDAD_ID'){\n return $this->codigo;\n }\n else{\n return $this->fields;\n }\n }", "public function __get($name)\n\t{\n\t\tif ($field = $this->_meta->field($name))\n\t\t{\n\t\t\treturn $this->get($name);\n\t\t}\n\t}", "function get_field_object($selector, $post_id = \\false, $format_value = \\true, $load_value = \\true)\n{\n}", "public function getValue(){\n return $this->_value;\n }", "protected function getCompleteFieldInformation() {}", "function getValue(){\r\n\t\treturn $this->value;\r\n\t}", "public function getField($fieldKey){\n $fields = $this->getFields();\n return $fields->{$fieldKey};\n }", "public function getValue() {\n\t\t$db = Loader::db();\n\t\t$value = $db->GetOne('select value from atDefault where avID = ?', array($this->getAttributeValueID()));\n\t\t\n\t\t$jsonHelper = Loader::helper('json');\n\t\treturn $jsonHelper->decode($value);\n\t}", "public function getField($field_name);", "function getfield($field){\n\n\t\treturn($this->record[$field]);\n\t}", "public function getMeta($meta_key = \"\", $multiple = false)\n {\n return get_user_meta($this->getID(), $meta_key, !$multiple);\n }", "function pms_get_post_meta( $post_id, $key = '', $single = false ) {\r\n\r\n if( empty( $key ) ) {\r\n $post_meta = get_post_meta( $post_id );\r\n\r\n foreach( $post_meta as $key => $value ) {\r\n $post_meta[$key] = $value[0];\r\n }\r\n\r\n return $post_meta;\r\n }\r\n\r\n return get_post_meta( $post_id, $key, $single );\r\n\r\n }", "public function getValue() {\n\t\treturn $this -> value;\n\t}", "public function getMediaFieldValue()\n {\n return $this->isBinary() ? base64_encode($this->{$this->getMediaField()}) : $this->{$this->getMediaField()};\n }", "public function getValue(){\n \treturn $this->value;\n }", "protected function getValue() {\r\n return $this->_value;\r\n }", "public function getValue($fieldname, $raw = true);", "public function value($field) {\n if ($field instanceof FormExtension)\n return $field->getValue($this->record);\n else if (isset($this->record)) {\n if (strpos($field, '.') !== false) {\n $elements = explode('.', $field);\n $value = $this->record;\n foreach ($elements as $element)\n $value = $value[$element];\n return $value;\n }\n return $this->record->$field;\n }\n else if (isset($this->data[$field])) {\n if (strpos($field, '.') !== false) {\n $elements = explode('.', $field);\n $value = $this->data;\n foreach ($elements as $element)\n $value = $value[$element];\n return $value;\n }\n return $this->data[$field];\n }\n return null;\n }", "function get_value_db()\n\t{\n\t\treturn $this->value;\n\t}", "function getValue() {\n return $this->value;\n }", "public function get($field, $flatten = False) {\n foreach ($this->responses as $response) {\n if ($response['field'] == $field) {\n if (is_array($response['value'])) {\n return implode(', ', $response['value']);\n } else {\n return $response['value'];\n }\n }\n }\n\n return null;\n }", "public function __get(string $field)\n\t{\n\t\treturn $this->getValue($field);\n\t}", "public function __get($name)\n\t{\t\n\t\t// Alias the field to its actual name. We must do this now\n\t\t// so that any aliases will be cached under the real fields\n\t\t// name, rather than under its alias name\n\t\t$name = $this->field($name, TRUE);\n\t\t\n\t\tif (!array_key_exists($name, $this->_retrieved))\n\t\t{\n\t\t\t$value = $this->get($name);\n\t\t\t\n\t\t\t// Auto-load relations\n\t\t\tif ($value instanceof Jelly && !$value->_loaded)\n\t\t\t{\n\t\t\t\t$this->_retrieved[$name] = $value->load();\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$this->_retrieved[$name] = $value;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn $this->_retrieved[$name];\n\t}", "public function getField($name)\n {\n return $this->fields[$name] ?: $this->addField($name);\n }", "public function &getValue()\n {\n return $this->getChildren()->getControl($this->name . '_items', true)->getValue();\n }", "function getValue() { return $this->readText(); }", "public function get($value, $field='', $field_type='') {\r\n\t \tglobal $wpdb;\r\n\t \t\r\n\t \tif ($field=='')\r\n\t \t\t$field = 'id';\r\n\t \t\t\r\n\t \tif ($field_type=='') // %d\r\n\t \t\t$result = $wpdb->get_row( $wpdb->prepare( \"SELECT * from `$this->table` WHERE `$field` = %d\", $value ) );\r\n\t \telse // %s\r\n\t \t\t$result = $wpdb->get_row( $wpdb->prepare( \"SELECT * from `$this->table` WHERE `$field` = %s\", $value ) );\r\n\t \t\r\n\t \tif ($result==NULL)\r\n\t \t\treturn NULL;\r\n\r\n\t \t// Parse returned fields to strip slashes\r\n\t \t$result = (array) $result;\r\n\t \t$parsed_result = WPPostsRateKeys_Validator::parse_array_output($result);\r\n\t \t$parsed_result = (object) $parsed_result;\r\n\t \t// End: Parse returned fields to strip slashes\r\n\t \t\t\r\n\t \treturn $parsed_result;\r\n\t }", "abstract public function getMediaField($name, $value = null, array $data = array());", "function __get( $key )\n {\n \t//Kint::dump($this->fields);\n return $this->fields[ $key ];\n }", "public function getValue()\n {\n if ($this->isArrayField()) {\n return json_decode($this->value);\n }\n return $this->value;\n }", "public function getValue()\n {\n return $this->_value;\n }", "public function getValue()\n {\n return $this->_value;\n }", "public function getValue()\n {\n return $this->_value;\n }", "public function get()\n\t{\n\t\treturn $this->_value;\n\t}", "function getValue()\n\t{\n\t\treturn $this->value;\n\t}" ]
[ "0.60771173", "0.59964013", "0.5966855", "0.5966855", "0.5966855", "0.5964899", "0.5944854", "0.5915641", "0.58872414", "0.58800584", "0.58561504", "0.58487546", "0.5847549", "0.58289593", "0.5828862", "0.5806817", "0.5786253", "0.5783406", "0.57781106", "0.57644886", "0.57613444", "0.5739576", "0.57357687", "0.57308006", "0.57049096", "0.57048786", "0.57048786", "0.57048786", "0.57048786", "0.56313425", "0.5623714", "0.56195927", "0.56097305", "0.5600726", "0.559838", "0.55902123", "0.5585167", "0.55654967", "0.5559034", "0.5542942", "0.55143106", "0.5512373", "0.55056447", "0.5492233", "0.5489204", "0.54760563", "0.5471699", "0.54359376", "0.54326147", "0.5428671", "0.542694", "0.5420065", "0.5419542", "0.541542", "0.5412479", "0.53855777", "0.5374493", "0.5365101", "0.5360135", "0.5358582", "0.5354428", "0.5354092", "0.5351879", "0.5347699", "0.534379", "0.53113973", "0.5309519", "0.52967215", "0.5293087", "0.5292784", "0.5291555", "0.52867377", "0.52827555", "0.52744454", "0.5265974", "0.5262237", "0.52463734", "0.52446496", "0.5243434", "0.52410895", "0.5234082", "0.52248406", "0.52227426", "0.5220891", "0.5214323", "0.5213541", "0.5213135", "0.52083176", "0.52035886", "0.5203094", "0.51994133", "0.5198837", "0.5197055", "0.5196302", "0.51960754", "0.519555", "0.519555", "0.519555", "0.5191866", "0.5191511" ]
0.63062215
0
Attaches typespecific constraints to multibanner.
public function attachConstraints(MultibannerInterface $multibanner);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addConstraints()\n {\n if (static::$constraints) {\n parent::addConstraints();\n\n $this->query->where($this->getQualifiedFirstKeyType(), $this->morphClass);\n }\n }", "function template_preprocess_multibanner(&$variables) {\n /** @var \\Drupal\\multibanner\\MultibannerInterface $multibanner */\n $multibanner = $variables['elements']['#multibanner'];\n\n $variables['name'] = $multibanner->label();\n\n // Helpful $content variable for templates.\n foreach (Element::children($variables['elements']) as $key) {\n $variables['content'][$key] = $variables['elements'][$key];\n }\n\n $variables['attributes']['class'][] = 'multibanner';\n $variables['attributes']['class'][] = Html::getClass('multibanner-' . $multibanner->bundle());\n if (!$multibanner->isPublished()) {\n $variables['attributes']['class'][] = 'unpublished';\n }\n if ($variables['elements']['#view_mode']) {\n $variables['attributes']['class'][] = Html::getClass('view-mode-' . $variables['elements']['#view_mode']);\n }\n\n // Banner layout vars.\n $variables['layout'] = 'default';\n if ($node = \\Drupal::routeMatch()->getParameter('node')) {\n if ($node->hasField('field_multibanner_layout')) {\n $variables['layout'] = $node->get('field_multibanner_layout')->getValue()[0]['value'];\n }\n }\n}", "public function SetConstraints ($constraints = []);", "function template_preprocess_views_view_multibanner(&$variables) {\n $handler = $variables['view']->style_plugin;\n\n // Fetch classes from handler options.\n if ($handler->options['class']) {\n $class = explode(' ', $handler->options['class']);\n $class = array_map('\\Drupal\\Component\\Utility\\Html::cleanCssIdentifier', $class);\n $variables['list']['attributes'] = new Attribute(array('class' => $class));\n }\n\n // Fetch wrapper classes from handler options.\n if ($handler->options['wrapper_class']) {\n $wrapper_class = explode(' ', $handler->options['wrapper_class']);\n $variables['attributes']['class'] = array_map('\\Drupal\\Component\\Utility\\Html::cleanCssIdentifier', $wrapper_class);\n } else {\n $variables['attributes']['class'] = array();\n }\n\n // Banner layout vars.\n $variables['layout'] = 'default';\n if ($node = \\Drupal::routeMatch()->getParameter('node')) {\n if ($node->hasField('field_multibanner_layout')) {\n $variables['layout'] = $node->get('field_multibanner_layout')->getValue()[0]['value'];\n }\n }\n\n // Banner count class vars.\n $banner_count = count($variables['view']->result);\n $variables['banner_count'] = $banner_count;\n $variables['attributes']['class'][] = 'multibanner';\n $variables['attributes']['class'][] = 'multibanner-total-'. $banner_count;\n\n // Finish rendering.\n template_preprocess_views_view_unformatted($variables);\n}", "private function _createDefaultAnnotationTypes()\n {\n $elementTable = $this->_db->getTable('Element');\n \n //setting up some annotation types\n $vertellerType = new AnnotationType;\n $vertellerType->item_type_id = 12;\n $vertellerType->collection_id = 4;\n $vertellerType->display_name = 'Verteller';\n $vertellerType->file_permissions = 'Allowed';\n $vertellerType->save();\n\n //setting up some annotation types\n $verzamelaarType = new AnnotationType;\n $verzamelaarType->item_type_id = 12;\n $verzamelaarType->collection_id = 9;\n $verzamelaarType->display_name = 'Verzamelaar';\n $verzamelaarType->file_permissions = 'Allowed';\n $verzamelaarType->save();\n\n $verhaaltypeType = new AnnotationType;\n $verhaaltypeType->item_type_id = 19;\n $verhaaltypeType->collection_id = 3;\n $verhaaltypeType->display_name = 'Volksverhaaltype';\n $verhaaltypeType->file_permissions = 'Allowed';\n $verhaaltypeType->save();\n\n $storyType = new AnnotationType;\n $storyType->item_type_id = 18;\n $storyType->collection_id = 1;\n $storyType->display_name = 'Volksverhaal';\n $storyType->file_permissions = 'Allowed';\n $storyType->tags_tool_id = 8;\n $storyType->save();\n\n $lexiconType = new AnnotationType;\n $lexiconType->item_type_id = 20;\n $lexiconType->collection_id = 2;\n $lexiconType->display_name = 'Lexicon Item';\n $lexiconType->file_permissions = 'Allowed';\n $lexiconType->tags_tool_id = 8;\n $lexiconType->save();\n \n //setting up some tools\n $toolExtreme = new AnnotationTool;\n $toolExtreme->display_name = \"Extreme waarde detector\";\n $toolExtreme->description = \"Detecteert extreme waarden in tekst\";\n $toolExtreme->command = \"http://bookstore.ewi.utwente.nl:24681/extreme\";\n $toolExtreme->get_arguments = \"\";\n //WARNING: STRONG DUTCH PROFANITY BELOW\n $toolExtreme->post_arguments = '{\n \"extreme_terms\":\n {\n \"not_allowed\":[\n \"cock\", \"cocks\", \"lul\", \"pik\", \"piemel\", \"piemels\", \"kut\", \"neuk\", \"neuken\", \"rampetampen\", \"beffen\", \"dildo\", \"dildo\\'s\", \"vibrator\", \n \"vibrators\", \"masturberen\", \"masturbatie\", \"vingeren\", \"kloten\", \"kloot\", \"hoer\", \"hoeren\", \"bordeel\", \"bordelen\", \"temeier\", \"verkracht\", \n \"verkrachten\", \"pedo\", \"pedofiel\", \"homo\", \"homo\\'s\", \"cock sucker\", \"homofiel\", \"faggot\", \"faggots\", \"castreren\", \"castratie\", \"tampeloerus\", \n \"sperma\", \"fist\", \"fuck\", \"plompzakken\", \"pis\", \"pissen\", \"gemecht\", \"gemacht\", \"cum\", \"bdsm\", \" sm \", \"masochisme\", \"sadisme\", \"bondage\", \n \"bruinwerk\", \"bruinwerker\", \"flikkers\", \"orgie\", \"sodom\", \"dp \", \"deep throat\", \"tieten\", \"druiper\", \"herpes\", \"soa\", \"klaarkomen\", \"orgasme\", \n \"travestiet\", \"memmen\", \"godverdomme\", \"kanker\", \"tering\", \"tyfus\", \"hoer\", \"mongool\", \"debiel\", \"jostie\", \"klootzak\", \"nazi\", \"nikker\", \"neger\", \n \"neger.\", \"nigger\", \"niggers\", \"vuile turk\", \"kutmarokkaan\", \"spleetoog\", \"spleetogen\", \"jappen\", \"roodhuiden\", \"roodhuid\", \"zwartjoekel\", \"zwartje\", \n \"zandneger\", \"zandnegers\", \"spaghettivreter\", \"spaghettivreters\", \"chink\", \"chicks\", \"olijfkakker\", \"olijfkakkers\", \"Hitler\", \"dom blond\", \n \"dom blondje\", \"optieften\", \"optyfen\", \"opgetieft\", \"opgetyft\", \"opzouten\", \"opkankeren\", \"opgekankerd\", \"oprotten\", \"opgerot\", \"Parkinson\"\n ], \n \"combinatory\":[\n \"trekken\", \"rukken\", \"naaien\", \"pompen\", \"paal\", \"castreren\", \"castratie\", \"zeik\", \"stront\", \"zaad\", \"sperma\", \"fist\", \"fuck\", \"pis\", \"naaien\", \n \"tongzoen\", \"gemecht\", \"gemacht\", \"pijpen\", \"sadisme\", \"binden\", \"bindt vast\", \"naad\", \"spleet\", \"poot\", \"poten\", \"kont\", \"reet\", \"ballen\", \n \"spuit\", \"fluit\", \"bevredigen\", \"tongen\", \"Tongzoen\", \"flikker\", \"godverdomme\", \"kanker\", \"tering\", \"tyfus\", \"hoer\", \"schijt\", \"stront\", \"kak\", \n \"mongool\", \".mongool\", \"debiel\", \"jostie\", \"klootzak\", \"nazi\", \"nikker\", \"neger\", \"spleetoog\", \"jappen\", \"roodhuiden\", \"roodhuid\", \"spleetogen\", \n \"zwartjoekel\", \"Turk\", \"Turk\", \"Turken\", \"Marokkaan\", \"Marokkanen\", \"Antilliaan\", \"Antillianen\", \"Surinamer\", \"Surinamers\", \"mocro\", \"mocro\\'s\", \n \"jood\", \"joods\", \"joden\", \"luie\", \"vuile\", \"smerige\", \"dief\", \"dieven\", \"crimineel\", \"criminelen\", \"stelen\", \"steelt\", \"fiets\", \"kliko\", \"vuilnisbelt\", \n \"afval\", \"moordenaar\", \"gevangenis\", \"Nederlander\", \"Belg\", \"Duitser\", \"buitenlander\", \"allochtoon\", \"allochtonen\", \"dom\", \"vies\", \"verkrachting\", \n \"werkloos\", \"ww\", \"GAK\", \"moe\", \"uitkering\", \"zwartjoekel\", \"zwartje\", \"gore\", \"sodemieter\", \"gastarbeider\", \"gas\", \"concentratiekamp\", \"douche\", \n \"Hitler\", \"Ethiopië\", \"triatlon\", \"hardlopen\", \"rennen\", \"wijf\", \"keuken\", \"mokkel\", \"slet\", \".slet\", \"aanrecht\", \"ketting\", \"dom blond\", \"koning\", \n \"prins\", \"vuilnisbakken\", \"vuilnisbak\", \"vuilnis\", \"optieften\", \"optyfen\", \"opzouten\", \"opkankeren\", \"oprotten\", \"zakkenvuller\", \"belasting\", \n \"Juliana\", \"Bernhard\", \"Beatrix\", \"Claus\", \"Willem-Alexander\", \"Maxima\", \"president\", \"Amalia\", \"Mabel\", \"depressie\", \"God\", \"Allah\", \"Mohammed\", \n \"pedo\", \"varken\", \"ziek\", \"sex\", \"gas\", \"mongool\", \".mongool\"\n ]\n }\n }'; //send a list of extreme words?\n $toolExtreme->output_format = \"json\";\n $toolExtreme->jsonxml_value_node = \"annotation.value\";\n $toolExtreme->jsonxml_score_node = \"score\";\n $toolExtreme->jsonxml_score_sub_node = \"\";\n $toolExtreme->jsonxml_value_sub_node = \"\";\n $toolExtreme->jsonxml_idx_sub_node = \"\";\n $toolExtreme->save();\n\n $toolCountclass = new AnnotationTool;\n $toolCountclass->display_name = \"Word count class\";\n $toolCountclass->description = \"Telt het aantal woorden in de tekst, en bepaalt een klasse\";\n $toolCountclass->command = \"http://bookstore.ewi.utwente.nl:24681/wordcountclass\";\n $toolCountclass->get_arguments = \"\";\n $toolCountclass->post_arguments = \"\";\n $toolCountclass->output_format = \"json\";\n $toolCountclass->jsonxml_value_node = \"annotation.value\";\n $toolCountclass->jsonxml_score_sub_node = \"\";\n $toolCountclass->jsonxml_value_sub_node = \"\";\n $toolCountclass->jsonxml_idx_sub_node = \"\";\n $toolCountclass->save();\n\n $toolDescription = new AnnotationTool;\n $toolDescription->display_name = \"Summary\";\n $toolDescription->description = \"Maakt een samenvatting van de tekst\";\n $toolDescription->command = \"http://bookstore.ewi.utwente.nl:24681/summary\";\n $toolDescription->get_arguments = \"\";\n $toolDescription->post_arguments = \"\";\n $toolDescription->output_format = \"json\";\n $toolDescription->jsonxml_value_node = \"annotation.summary\";\n $toolDescription->jsonxml_score_sub_node = \"score\";\n $toolDescription->jsonxml_value_sub_node = \"sentence\";\n $toolDescription->jsonxml_idx_sub_node = \"idx\";\n $toolDescription->save();\n \n $toolCount = new AnnotationTool;\n $toolCount->display_name = \"Word count\";\n $toolCount->description = \"Telt het aantal woorden in de tekst\";\n $toolCount->command = \"http://bookstore.ewi.utwente.nl:24681/wordcount\";\n $toolCount->get_arguments = \"\";\n $toolCount->post_arguments = \"\";\n $toolCount->output_format = \"json\";\n $toolCount->jsonxml_value_node = \"annotation.value\";\n $toolCount->jsonxml_score_sub_node = \"\";\n $toolCount->jsonxml_value_sub_node = \"\";\n $toolCount->jsonxml_idx_sub_node = \"\";\n $toolCount->save();\n\n $toolThree = new AnnotationTool;\n $toolThree->display_name = \"Language detection\";\n $toolThree->description = \"Detecteert de taal van de tekst\";\n $toolThree->command = \"http://bookstore.ewi.utwente.nl:24681/language\";\n $toolThree->get_arguments = \"\";\n $toolThree->post_arguments = \"\";\n $toolThree->output_format = \"json\";\n $toolThree->jsonxml_value_node = \"annotation.language\"; \n $toolThree->jsonxml_score_sub_node = \"\";\n $toolThree->jsonxml_value_sub_node = \"\";\n $toolThree->jsonxml_idx_sub_node = \"\";\n $toolThree->save();\n\n $toolFour = new AnnotationTool;\n $toolFour->display_name = \"Subgenre detection\";\n $toolFour->description = \"Detecteert het subgenre van de tekst\";\n $toolFour->command = \"http://bookstore.ewi.utwente.nl:24681/subgenre\";\n $toolFour->get_arguments = \"\";\n $toolFour->post_arguments = \"\";\n $toolFour->output_format = \"json\";\n $toolFour->jsonxml_value_node = \"annotation.subgenre\"; \n $toolFour->jsonxml_score_sub_node = \"\";\n $toolFour->jsonxml_value_sub_node = \"\";\n $toolFour->jsonxml_idx_sub_node = \"\";\n $toolFour->save();\n\n //summary\n //annotation.summary consists of array [score, idx, sentence]\n $toolFive = new AnnotationTool;\n $toolFive->display_name = \"Summary generation\";\n $toolFive->description = \"Maakt een samenvatting van de tekst\";\n $toolFive->command = \"http://bookstore.ewi.utwente.nl:24681/summary\";\n $toolFive->get_arguments = \"\";\n $toolFive->post_arguments = \"\";\n $toolFive->output_format = \"json\";\n $toolFive->jsonxml_value_node = \"annotation.summary\";\n $toolFive->jsonxml_score_sub_node = \"score\";\n $toolFive->jsonxml_value_sub_node = \"sentence\";\n $toolFive->jsonxml_idx_sub_node = \"idx\";\n $toolFive->save();\n\n $toolSix = new AnnotationTool;\n $toolSix->display_name = \"Keywords/Tags generation\";\n $toolSix->description = \"Maakt lijst trefwoorden van de tekst\";\n $toolSix->command = \"http://bookstore.ewi.utwente.nl:24681/keywords\";\n $toolSix->get_arguments = \"\";\n $toolSix->post_arguments = \"\";\n $toolSix->output_format = \"json\";\n $toolSix->jsonxml_value_node = \"annotation.keywords\";\n $toolSix->jsonxml_score_sub_node = \"score\";\n $toolSix->jsonxml_value_sub_node = \"keyword\";\n $toolSix->jsonxml_idx_sub_node = \"\";\n $toolSix->save();\n\n $toolSeven = new AnnotationTool;\n $toolSeven->display_name = \"Named Entities other\";\n $toolSeven->description = \"Maakt lijst met named entities zonder locaties\";\n $toolSeven->command = \"http://bookstore.ewi.utwente.nl:24681/nerother\";\n $toolSeven->get_arguments = \"\";\n $toolSeven->post_arguments = \"\";\n $toolSeven->output_format = \"json\";\n $toolSeven->jsonxml_value_node = \"annotation.entities\";\n $toolSeven->jsonxml_score_sub_node = \"score\";\n $toolSeven->jsonxml_value_sub_node = \"keyword\";\n $toolSeven->jsonxml_idx_sub_node = \"\";\n $toolSeven->save();\n \n $toolEight = new AnnotationTool;\n $toolEight->display_name = \"Named Entities locations\";\n $toolEight->description = \"Maakt lijst named entities locaties uit de tekst\";\n $toolEight->command = \"http://bookstore.ewi.utwente.nl:24681/nerlocations\";\n $toolEight->get_arguments = \"\";\n $toolEight->post_arguments = \"\";\n $toolEight->output_format = \"json\";\n $toolEight->jsonxml_value_node = \"annotation.entities\";\n $toolEight->jsonxml_score_sub_node = \"score\";\n $toolEight->jsonxml_value_sub_node = \"keyword\";\n $toolEight->jsonxml_idx_sub_node = \"\";\n $toolEight->save();\n \n $toolNine = new AnnotationTool;\n $toolNine->display_name = \"Story type\";\n $toolNine->description = \"Deze tool bepaalt het verhaaltype\";\n $toolNine->command = \"http://bookstore.ewi.utwente.nl:24681/storytype\";\n $toolNine->get_arguments = \"\";\n $toolNine->post_arguments = \"\";\n $toolNine->output_format = \"json\";\n $toolNine->jsonxml_value_node = \"annotation.storytypes\";\n $toolNine->jsonxml_score_sub_node = \"score\";\n $toolNine->jsonxml_value_sub_node = \"storytype\";\n $toolNine->jsonxml_idx_sub_node = \"\";\n $toolNine->save();\n \n //input type elements:\n //Folktale\n $textElement = new AnnotationTypeElement;\n $textElement->type_id = $storyType->id;\n $textElement->element_id = 1;\n $textElement->prompt = 'Voer de originele tekst in';\n $textElement->english_name = 'text';\n $textElement->order = 1;\n $textElement->tool_id = false;\n $textElement->score_slider = false;\n $textElement->long_text = true;\n $textElement->html = false;\n $textElement->repeated_field = false;\n $textElement->date_picker = false;\n $textElement->date_range_picker = false;\n $textElement->autocomplete = false;\n $textElement->autocomplete_main_id = false;\n $textElement->autocomplete_extra_id = false;\n $textElement->autocomplete_itemtype_id = false;\n $textElement->autocomplete_collection_id = false;\n $textElement->field_scroll = true;\n $textElement->save();\n \n $textElement = new AnnotationTypeElement;\n $textElement->type_id = $storyType->id;\n $textElement->element_id = 41;\n $textElement->prompt = 'De samenvatting van de tekst';\n $textElement->english_name = 'description';\n $textElement->order = 20;\n $textElement->tool_id = $toolDescription->id;\n $textElement->score_slider = true;\n $textElement->long_text = true;\n $textElement->html = false;\n $textElement->repeated_field = false;\n $textElement->date_picker = false;\n $textElement->date_range_picker = false;\n $textElement->autocomplete = false;\n $textElement->autocomplete_main_id = false;\n $textElement->autocomplete_extra_id = false;\n $textElement->autocomplete_itemtype_id = false;\n $textElement->autocomplete_collection_id = false;\n $textElement->field_scroll = false;\n $textElement->save();\n \n $textElement = new AnnotationTypeElement;\n $textElement->type_id = $storyType->id;\n $textElement->element_id = 62; //$dcTitleElement->id;\n $textElement->prompt = 'Extreme values in text';\n $textElement->english_name = 'extreme';\n $textElement->order = 26;\n $textElement->tool_id = $toolExtreme->id;\n $textElement->score_slider = false;\n $textElement->long_text = false;\n $textElement->html = false;\n $textElement->repeated_field = false;\n $textElement->date_picker = false;\n $textElement->date_range_picker = false;\n $textElement->autocomplete = false;\n $textElement->autocomplete_main_id = false;\n $textElement->autocomplete_extra_id = false;\n $textElement->autocomplete_itemtype_id = false;\n $textElement->autocomplete_collection_id = false;\n $textElement->field_scroll = false;\n $textElement->save();\n\n $textElement = new AnnotationTypeElement;\n $textElement->type_id = $storyType->id;\n $textElement->element_id = 61;\n $textElement->prompt = 'Literary text';\n $textElement->english_name = 'literary';\n $textElement->order = 25;\n $textElement->tool_id = false;\n $textElement->score_slider = false;\n $textElement->long_text = false;\n $textElement->html = false;\n $textElement->repeated_field = false;\n $textElement->date_picker = false;\n $textElement->date_range_picker = false;\n $textElement->autocomplete = false;\n $textElement->autocomplete_main_id = false;\n $textElement->autocomplete_extra_id = false;\n $textElement->autocomplete_itemtype_id = false;\n $textElement->autocomplete_collection_id = false;\n $textElement->field_scroll = false;\n $textElement->save();\n\n $textElement = new AnnotationTypeElement;\n $textElement->type_id = $storyType->id;\n $textElement->element_id = 43;\n $textElement->prompt = 'Het identificatienummer';\n $textElement->english_name = 'identifier';\n $textElement->order = 8;\n $textElement->tool_id = false;\n $textElement->score_slider = false;\n $textElement->long_text = false;\n $textElement->html = false;\n $textElement->repeated_field = false;\n $textElement->date_picker = false;\n $textElement->date_range_picker = false;\n $textElement->autocomplete = false;\n $textElement->autocomplete_main_id = false;\n $textElement->autocomplete_extra_id = false;\n $textElement->autocomplete_itemtype_id = false;\n $textElement->autocomplete_collection_id = false;\n $textElement->field_scroll = false;\n $textElement->save();\n\n $textElement = new AnnotationTypeElement;\n $textElement->type_id = $storyType->id;\n $textElement->element_id = 40;\n $textElement->prompt = 'Voer de datum in. Over het algemeen de datum van vertellen. Klik 2 datums aan voor een correcte invoer. Als de maand is aangegeven, klik dan de desbetreffende maand aan. Voor fragmenten van jaren of eeuwen, kijk in de selectieboxjes onderaan.';\n $textElement->english_name = 'date';\n $textElement->order = 4;\n $textElement->tool_id = false;\n $textElement->score_slider = false;\n $textElement->long_text = false;\n $textElement->html = false;\n $textElement->repeated_field = true;\n $textElement->date_picker = false;\n $textElement->date_range_picker = true;\n $textElement->autocomplete = false;\n $textElement->autocomplete_main_id = false;\n $textElement->autocomplete_extra_id = false;\n $textElement->autocomplete_itemtype_id = false;\n $textElement->autocomplete_collection_id = false;\n $textElement->field_scroll = false;\n $textElement->save();\n\n $textElement = new AnnotationTypeElement;\n $textElement->type_id = $storyType->id;\n $textElement->element_id = 60;\n $textElement->prompt = 'De verzamelaar van het verhaal';\n $textElement->english_name = 'collector';\n $textElement->order = 2; \n $textElement->tool_id = false; //no tool for auto annotation\n $textElement->score_slider = false; //we're not making any text\n $textElement->long_text = false; //a small field will do\n $textElement->html = false;\n $textElement->repeated_field = true; //there can be multiple collectors\n $textElement->date_picker = false; //this is no date\n $textElement->date_range_picker = false; //this is no date\n $textElement->autocomplete = true; //automplete, yes please\n $textElement->autocomplete_main_id = 50; //look in titles\n $textElement->autocomplete_extra_id = false; //and nowhere else\n $textElement->autocomplete_itemtype_id = false; //dont' restrict to certain item type\n $textElement->autocomplete_collection_id = 9; //but only look in collection verzamelaars\n $textElement->field_scroll = false;\n $textElement->save();\n \n $textElement = new AnnotationTypeElement;\n $textElement->type_id = $storyType->id;\n $textElement->element_id = 39;\n $textElement->prompt = 'De verteller van het verhaal';\n $textElement->english_name = 'creator';\n $textElement->order = 3;\n $textElement->tool_id = false;\n $textElement->score_slider = false;\n $textElement->long_text = false;\n $textElement->html = false;\n $textElement->repeated_field = true;\n $textElement->date_picker = false;\n $textElement->date_range_picker = false;\n $textElement->autocomplete = true; //automplete, yes please\n $textElement->autocomplete_main_id = 50; //look in titles\n $textElement->autocomplete_extra_id = false; //and nowhere else\n $textElement->autocomplete_itemtype_id = false; //dont' restrict to certain item type\n $textElement->autocomplete_collection_id = 4; //but only look in collection vertellers\n $textElement->field_scroll = false;\n $textElement->save();\n\n/* $textElement = new AnnotationTypeElement;\n $textElement->type_id = $storyType->id;\n $textElement->element_id = 37;\n $textElement->prompt = 'De medewerker die het verhaal in de verhalenbank invoert (overbodig)';\n $textElement->english_name = 'contributor';\n $textElement->order = 9;\n $textElement->tool_id = false;\n $textElement->score_slider = false;\n $textElement->long_text = false;\n $textElement->html = false;\n $textElement->repeated_field = true;\n $textElement->date_picker = false;\n $textElement->date_range_picker = false;\n $textElement->autocomplete = false;\n $textElement->autocomplete_main_id = false;\n $textElement->autocomplete_extra_id = false;\n $textElement->autocomplete_itemtype_id = false;\n $textElement->autocomplete_collection_id = false;\n $textElement->field_scroll = true;\n $textElement->save();\n*/ \n $textElement = new AnnotationTypeElement;\n $textElement->type_id = $storyType->id;\n $textElement->element_id = 50;\n $textElement->prompt = 'De titel van het verhaal';\n $textElement->english_name = 'title';\n $textElement->order = 9;\n $textElement->tool_id = false;\n $textElement->score_slider = false;\n $textElement->long_text = false;\n $textElement->html = false;\n $textElement->repeated_field = false;\n $textElement->date_picker = false;\n $textElement->date_range_picker = false;\n $textElement->autocomplete = false;\n $textElement->autocomplete_main_id = false;\n $textElement->autocomplete_extra_id = false;\n $textElement->autocomplete_itemtype_id = false;\n $textElement->autocomplete_collection_id = false;\n $textElement->field_scroll = false;\n $textElement->save();\n \n $textElement = new AnnotationTypeElement;\n $textElement->type_id = $storyType->id;\n $textElement->element_id = 48;\n $textElement->prompt = 'De bron van het verhaal';\n $textElement->english_name = 'source';\n $textElement->order = 5;\n $textElement->tool_id = false;\n $textElement->score_slider = false;\n $textElement->long_text = false;\n $textElement->html = false;\n $textElement->repeated_field = true;\n $textElement->date_picker = false;\n $textElement->date_range_picker = false;\n $textElement->autocomplete = false;\n $textElement->autocomplete_main_id = false;\n $textElement->autocomplete_extra_id = false;\n $textElement->autocomplete_itemtype_id = false;\n $textElement->autocomplete_collection_id = false;\n $textElement->field_scroll = false;\n $textElement->save();\n\n $textElement = new AnnotationTypeElement;\n $textElement->type_id = $storyType->id;\n $textElement->element_id = 51;\n $textElement->prompt = 'Het type bron van het verhaal (keuze)';\n $textElement->english_name = 'type';\n $textElement->order = 6;\n $textElement->tool_id = false;\n $textElement->score_slider = false;\n $textElement->long_text = false;\n $textElement->html = false;\n $textElement->repeated_field = true;\n $textElement->date_picker = false;\n $textElement->date_range_picker = false;\n $textElement->autocomplete = true;\n $textElement->autocomplete_main_id = 51;\n $textElement->autocomplete_extra_id = false;\n $textElement->autocomplete_itemtype_id = false;\n $textElement->autocomplete_collection_id = 1;\n $textElement->field_scroll = false;\n $textElement->save();\n\n $textElement = new AnnotationTypeElement;\n $textElement->type_id = $storyType->id;\n $textElement->element_id = 47;\n $textElement->prompt = 'Heeft het Meertens de rechten van dit verhaal?';\n $textElement->english_name = 'rights';\n $textElement->order = 7;\n $textElement->tool_id = false;\n $textElement->score_slider = false;\n $textElement->long_text = false;\n $textElement->html = false;\n $textElement->repeated_field = false;\n $textElement->date_picker = false;\n $textElement->date_range_picker = false;\n $textElement->autocomplete = false;\n $textElement->autocomplete_main_id = false;\n $textElement->autocomplete_extra_id = false;\n $textElement->autocomplete_itemtype_id = false;\n $textElement->autocomplete_collection_id = false;\n $textElement->field_scroll = false;\n\t\t$textElement->save();\n\n $textElement = new AnnotationTypeElement;\n $textElement->type_id = $storyType->id;\n $textElement->element_id = 53;\n $textElement->prompt = 'Overig commentaar of informatie over de tekst, of de manier waarop deze verkregen is.';\n $textElement->english_name = 'commentary';\n $textElement->order = 40;\n $textElement->tool_id = false;\n $textElement->score_slider = false;\n $textElement->long_text = true;\n $textElement->html = false;\n $textElement->repeated_field = true;\n $textElement->date_picker = false;\n $textElement->date_range_picker = false;\n $textElement->autocomplete = false;\n $textElement->autocomplete_main_id = false;\n $textElement->autocomplete_extra_id = false;\n $textElement->autocomplete_itemtype_id = false;\n $textElement->autocomplete_collection_id = false;\n $textElement->field_scroll = false;\n $textElement->save();\n \n $textElement = new AnnotationTypeElement;\n $textElement->type_id = $storyType->id;\n $textElement->element_id = 44;\n $textElement->prompt = 'De taal waarin het verhaal verteld is';\n $textElement->english_name = 'language';\n $textElement->order = 24;\n $textElement->tool_id = $toolThree->id;\n $textElement->score_slider = false;\n $textElement->long_text = false;\n $textElement->html = false;\n $textElement->repeated_field = true;\n $textElement->date_picker = false;\n $textElement->date_range_picker = false;\n $textElement->autocomplete = false;\n $textElement->autocomplete_main_id = false;\n $textElement->autocomplete_extra_id = false;\n $textElement->autocomplete_itemtype_id = false;\n $textElement->autocomplete_collection_id = false;\n $textElement->field_scroll = false;\n $textElement->save();\n \n $textElement = new AnnotationTypeElement;\n $textElement->type_id = $storyType->id;\n $textElement->element_id = 58;\n $textElement->prompt = 'Het subgenre van het verhaal';\n $textElement->english_name = 'subgenre';\n $textElement->order = 22;\n $textElement->tool_id = $toolFour->id;\n $textElement->score_slider = false;\n $textElement->long_text = false;\n $textElement->html = false;\n $textElement->repeated_field = true;\n $textElement->date_picker = false;\n $textElement->date_range_picker = false;\n $textElement->autocomplete = false;\n $textElement->autocomplete_main_id = false;\n $textElement->autocomplete_extra_id = false;\n $textElement->autocomplete_itemtype_id = false;\n $textElement->autocomplete_collection_id = false;\n $textElement->field_scroll = false;\n $textElement->save();\n\n $textElement = new AnnotationTypeElement;\n $textElement->type_id = $storyType->id;\n $textElement->element_id = 49;\n $textElement->prompt = 'Het verhaaltype of verhaaltypen. ATU, AT, Brunvand of TM nummer.';\n $textElement->english_name = 'subject';\n $textElement->order = 21;\n $textElement->tool_id = $toolNine->id; //add tool when available\n $textElement->score_slider = false;\n $textElement->long_text = false;\n $textElement->html = false;\n $textElement->repeated_field = true;\n $textElement->date_picker = false;\n $textElement->date_range_picker = false;\n $textElement->autocomplete = true; //automplete, yes please\n $textElement->autocomplete_main_id = 43; //look in identifiers\n $textElement->autocomplete_extra_id = 50; //and show the titles (and show titles as well?)\n $textElement->autocomplete_itemtype_id = false; //dont' restrict to certain item type\n $textElement->autocomplete_collection_id = 3; //but only look in collection verhaaltypen\n $textElement->field_scroll = false;\n $textElement->save();\n\n $textElement = new AnnotationTypeElement;\n $textElement->type_id = $storyType->id;\n $textElement->element_id = 52;\n $textElement->prompt = 'De motieven die gevonden kunnen worden in de tekst';\n $textElement->english_name = 'motif';\n $textElement->order = 23;\n $textElement->tool_id = false; //add tool when available\n $textElement->score_slider = false;\n $textElement->long_text = false;\n $textElement->html = false;\n $textElement->repeated_field = true;\n $textElement->date_picker = false;\n $textElement->date_range_picker = false;\n $textElement->autocomplete = true; //automplete, yes please\n $textElement->autocomplete_main_id = 43; //look in identifiers\n $textElement->autocomplete_extra_id = 50; //and show the titles\n $textElement->autocomplete_itemtype_id = false; //dont' restrict to certain item type\n $textElement->autocomplete_collection_id = 3; //but only look in collection verhaaltypen\n $textElement->field_scroll = false;\n $textElement->save();\n \n $textElement = new AnnotationTypeElement;\n $textElement->type_id = $storyType->id;\n $textElement->element_id = 63;\n $textElement->prompt = 'De namen (niet locaties) die gevonden kunnen worden in de tekst';\n $textElement->english_name = 'named entity';\n $textElement->order = 27;\n $textElement->tool_id = 9; //add tool when available\n $textElement->score_slider = false;\n $textElement->long_text = false;\n $textElement->html = false;\n $textElement->repeated_field = true;\n $textElement->date_picker = false;\n $textElement->date_range_picker = false;\n $textElement->autocomplete = true; //automplete, yes please\n $textElement->autocomplete_main_id = 63; //look in identifiers\n $textElement->autocomplete_extra_id = 0; //and show the titles\n $textElement->autocomplete_itemtype_id = 18; //dont' restrict to certain item type\n $textElement->autocomplete_collection_id = 1; //but only look in collection volksverhalen\n $textElement->field_scroll = false;\n $textElement->save();\n \n $textElement = new AnnotationTypeElement;\n $textElement->type_id = $storyType->id;\n $textElement->element_id = 93;\n $textElement->prompt = 'De namen van locaties die gevonden kunnen worden in de tekst';\n $textElement->english_name = 'named entity location';\n $textElement->order = 28;\n $textElement->tool_id = 10; //add tool when available\n $textElement->score_slider = false;\n $textElement->long_text = false;\n $textElement->html = false;\n $textElement->repeated_field = true;\n $textElement->date_picker = false;\n $textElement->date_range_picker = false;\n $textElement->autocomplete = true; //automplete, yes please\n $textElement->autocomplete_main_id = 93; //look in identifiers\n $textElement->autocomplete_extra_id = 0; //and show the titles\n $textElement->autocomplete_itemtype_id = 18; //don't restrict to certain item type\n $textElement->autocomplete_collection_id = 1; //but only look in collection volksverhalen\n $textElement->field_scroll = false;\n $textElement->save();\n\n $textElement = new AnnotationTypeElement;\n $textElement->type_id = $storyType->id;\n $textElement->element_id = 65;\n $textElement->prompt = 'De hoofdlocatie waar te tekst zich afspeelt, of over gaat';\n $textElement->english_name = 'place of action';\n $textElement->order = 29;\n $textElement->tool_id = false; //add tool when available\n $textElement->score_slider = false;\n $textElement->long_text = false;\n $textElement->html = false;\n $textElement->repeated_field = true;\n $textElement->date_picker = false;\n $textElement->date_range_picker = false;\n $textElement->autocomplete = true; //automplete, yes please\n $textElement->autocomplete_main_id = 65; //look in identifiers\n $textElement->autocomplete_extra_id = 0; //and show the titles\n $textElement->autocomplete_itemtype_id = 18; //restrict to certain item type\n $textElement->autocomplete_collection_id = 1; //but only look in collection volksverhalen\n $textElement->field_scroll = false;\n $textElement->save();\n\n $textElement = new AnnotationTypeElement;\n $textElement->type_id = $storyType->id;\n $textElement->element_id = 68;\n $textElement->prompt = 'De kloekecode van waar het verhaal vandaan komt';\n $textElement->english_name = 'kloeke georeference';\n $textElement->order = 30;\n $textElement->tool_id = false; //add tool when available\n $textElement->score_slider = false;\n $textElement->long_text = false;\n $textElement->html = false;\n $textElement->repeated_field = false;\n $textElement->date_picker = false;\n $textElement->date_range_picker = false;\n $textElement->autocomplete = true; //automplete, yes please\n $textElement->autocomplete_main_id = 30; //look in other kloekecodes for now\n $textElement->autocomplete_extra_id = 0; //nope\n $textElement->autocomplete_itemtype_id = 0; //don't restrict to certain item type\n $textElement->autocomplete_collection_id = 0; //no collection\n $textElement->field_scroll = false;\n $textElement->save();\n \n $textElement = new AnnotationTypeElement;\n $textElement->type_id = $storyType->id;\n $textElement->element_id = 94;\n $textElement->prompt = 'De hoeveelheid woorden in de tekst';\n $textElement->english_name = 'word count';\n $textElement->order = 32;\n $textElement->tool_id = $toolCount->id;\n $textElement->score_slider = false;\n $textElement->long_text = false;\n $textElement->html = false;\n $textElement->repeated_field = false;\n $textElement->date_picker = false;\n $textElement->date_range_picker = false;\n $textElement->autocomplete = false;\n $textElement->autocomplete_main_id = false;\n $textElement->autocomplete_extra_id = false;\n $textElement->autocomplete_itemtype_id = false;\n $textElement->autocomplete_collection_id = false;\n $textElement->field_scroll = false;\n $textElement->save();\n \n $textElement = new AnnotationTypeElement;\n $textElement->type_id = $storyType->id;\n $textElement->element_id = 95;\n $textElement->prompt = 'De klasse van de hoeveelheid woorden in de tekst';\n $textElement->english_name = 'word count group';\n $textElement->order = 33;\n $textElement->tool_id = $toolCountclass->id;\n $textElement->score_slider = false;\n $textElement->long_text = false;\n $textElement->html = false;\n $textElement->repeated_field = false;\n $textElement->date_picker = false;\n $textElement->date_range_picker = false;\n $textElement->autocomplete = false;\n $textElement->autocomplete_main_id = false;\n $textElement->autocomplete_extra_id = false;\n $textElement->autocomplete_itemtype_id = false;\n $textElement->autocomplete_collection_id = false;\n $textElement->field_scroll = false;\n $textElement->save();\n \n// Volksverhaaltype type elements\n $vvtElement = new AnnotationTypeElement;\n $vvtElement->type_id = $verhaaltypeType->id;\n $vvtElement->element_id = 38;\n $vvtElement->prompt = 'Coverage';\n $vvtElement->english_name = 'coverage';\n $vvtElement->order = 6;\n $vvtElement->tool_id = false;\n $vvtElement->score_slider = false;\n $vvtElement->long_text = false;\n $vvtElement->html = false;\n $vvtElement->repeated_field = false;\n $vvtElement->date_picker = false;\n $vvtElement->date_range_picker = false;\n $vvtElement->autocomplete = false;\n $vvtElement->autocomplete_main_id = false;\n $vvtElement->autocomplete_extra_id = false;\n $vvtElement->autocomplete_itemtype_id = false;\n $vvtElement->autocomplete_collection_id = false;\n $vvtElement->field_scroll = false;\n $vvtElement->save();\n \n $vvtElement = new AnnotationTypeElement;\n $vvtElement->type_id = $verhaaltypeType->id;\n $vvtElement->element_id = 39;\n $vvtElement->prompt = 'De bedenker van dit verhaaltype';\n $vvtElement->english_name = 'creator';\n $vvtElement->order = 5;\n $vvtElement->tool_id = false;\n $vvtElement->score_slider = false;\n $vvtElement->long_text = false;\n $vvtElement->html = false;\n $vvtElement->repeated_field = false;\n $vvtElement->date_picker = false;\n $vvtElement->date_range_picker = false;\n $vvtElement->autocomplete = true;\n $vvtElement->autocomplete_main_id = 39;\n $vvtElement->autocomplete_extra_id = false;\n $vvtElement->autocomplete_itemtype_id = 19;\n $vvtElement->autocomplete_collection_id = 3;\n $vvtElement->field_scroll = false;\n $vvtElement->save();\n \n $vvtElement = new AnnotationTypeElement;\n $vvtElement->type_id = $verhaaltypeType->id;\n $vvtElement->element_id = 43;\n $vvtElement->prompt = 'Identificatienummer. Autocomplete is om te kijken of het nummer al bestaat. Kies een nummer dat niet in de lijst voorkomt!';\n $vvtElement->english_name = 'identifier';\n $vvtElement->order = 2;\n $vvtElement->tool_id = false;\n $vvtElement->score_slider = false;\n $vvtElement->long_text = false;\n $vvtElement->html = false;\n $vvtElement->repeated_field = false;\n $vvtElement->date_picker = false;\n $vvtElement->date_range_picker = false;\n $vvtElement->autocomplete = true;\n $vvtElement->autocomplete_main_id = 43;\n $vvtElement->autocomplete_extra_id = false;\n $vvtElement->autocomplete_itemtype_id = 19;\n $vvtElement->autocomplete_collection_id = 3;\n $vvtElement->field_scroll = false;\n $vvtElement->save();\n \n/* $vvtElement = new AnnotationTypeElement;\n $vvtElement->type_id = $verhaaltypeType->id;\n $vvtElement->element_id = 49;\n $vvtElement->prompt = 'Het onderwerp van het verhaaltype';\n $vvtElement->english_name = 'subject';\n $vvtElement->order = 4;\n $vvtElement->tool_id = false;\n $vvtElement->score_slider = false;\n $vvtElement->long_text = false;\n $vvtElement->html = false;\n $vvtElement->repeated_field = false;\n $vvtElement->date_picker = false;\n $vvtElement->date_range_picker = false;\n $vvtElement->autocomplete = false;\n $vvtElement->autocomplete_main_id = false;\n $vvtElement->autocomplete_extra_id = false;\n $vvtElement->autocomplete_itemtype_id = false;\n $vvtElement->autocomplete_collection_id = false;\n $vvtElement->field_scroll = false;\n $vvtElement->save();\n*/ \n $vvtElement = new AnnotationTypeElement;\n $vvtElement->type_id = $verhaaltypeType->id;\n $vvtElement->element_id = 50;\n $vvtElement->prompt = 'Titel';\n $vvtElement->english_name = 'Title';\n $vvtElement->order = 3;\n $vvtElement->tool_id = false;\n $vvtElement->score_slider = false;\n $vvtElement->long_text = false;\n $vvtElement->html = false;\n $vvtElement->repeated_field = false;\n $vvtElement->date_picker = false;\n $vvtElement->date_range_picker = false;\n $vvtElement->autocomplete = false;\n $vvtElement->autocomplete_main_id = false;\n $vvtElement->autocomplete_extra_id = false;\n $vvtElement->autocomplete_itemtype_id = false;\n $vvtElement->autocomplete_collection_id = false;\n $vvtElement->field_scroll = false;\n $vvtElement->save();\n \n $vvtElement = new AnnotationTypeElement;\n $vvtElement->type_id = $verhaaltypeType->id;\n $vvtElement->element_id = 52;\n $vvtElement->prompt = 'Motief';\n $vvtElement->english_name = 'motif';\n $vvtElement->order = 7;\n $vvtElement->tool_id = false;\n $vvtElement->score_slider = false;\n $vvtElement->long_text = false;\n $vvtElement->html = false;\n $vvtElement->repeated_field = true;\n $vvtElement->date_picker = false;\n $vvtElement->date_range_picker = false;\n $vvtElement->autocomplete = false;\n $vvtElement->autocomplete_main_id = false;\n $vvtElement->autocomplete_extra_id = false;\n $vvtElement->autocomplete_itemtype_id = false;\n $vvtElement->autocomplete_collection_id = false;\n $vvtElement->field_scroll = false;\n $vvtElement->save();\n \n $vvtElement = new AnnotationTypeElement;\n $vvtElement->type_id = $verhaaltypeType->id;\n $vvtElement->element_id = 53;\n $vvtElement->prompt = 'Commentaar';\n $vvtElement->english_name = 'comments';\n $vvtElement->order = 8;\n $vvtElement->tool_id = false;\n $vvtElement->score_slider = false;\n $vvtElement->long_text = true;\n $vvtElement->html = false;\n $vvtElement->repeated_field = true;\n $vvtElement->date_picker = false;\n $vvtElement->date_range_picker = false;\n $vvtElement->autocomplete = false;\n $vvtElement->autocomplete_main_id = false;\n $vvtElement->autocomplete_extra_id = false;\n $vvtElement->autocomplete_itemtype_id = false;\n $vvtElement->autocomplete_collection_id = false;\n $vvtElement->field_scroll = false;\n $vvtElement->save();\n \n $vvtElement = new AnnotationTypeElement;\n $vvtElement->type_id = $verhaaltypeType->id;\n $vvtElement->element_id = 54;\n $vvtElement->prompt = 'Combinaties';\n $vvtElement->english_name = 'combinations';\n $vvtElement->order = 9;\n $vvtElement->tool_id = false;\n $vvtElement->score_slider = false;\n $vvtElement->long_text = false;\n $vvtElement->html = false;\n $vvtElement->repeated_field = true;\n $vvtElement->date_picker = false;\n $vvtElement->date_range_picker = false;\n $vvtElement->autocomplete = false;\n $vvtElement->autocomplete_main_id = false;\n $vvtElement->autocomplete_extra_id = false;\n $vvtElement->autocomplete_itemtype_id = false;\n $vvtElement->autocomplete_collection_id = false;\n $vvtElement->field_scroll = false;\n $vvtElement->save();\n \n $vvtElement = new AnnotationTypeElement;\n $vvtElement->type_id = $verhaaltypeType->id;\n $vvtElement->element_id = 55;\n $vvtElement->prompt = 'Origineel verhaaltype';\n $vvtElement->english_name = 'original Tale Type';\n $vvtElement->order = 10;\n $vvtElement->tool_id = false;\n $vvtElement->score_slider = false;\n $vvtElement->long_text = false;\n $vvtElement->html = false;\n $vvtElement->repeated_field = false;\n $vvtElement->date_picker = false;\n $vvtElement->date_range_picker = false;\n $vvtElement->autocomplete = false;\n $vvtElement->autocomplete_main_id = false;\n $vvtElement->autocomplete_extra_id = false;\n $vvtElement->autocomplete_itemtype_id = false;\n $vvtElement->autocomplete_collection_id = false;\n $vvtElement->field_scroll = false;\n $vvtElement->save();\n \n $vvtElement = new AnnotationTypeElement;\n $vvtElement->type_id = $verhaaltypeType->id;\n $vvtElement->element_id = 56;\n $vvtElement->prompt = 'Category';\n $vvtElement->english_name = 'category';\n $vvtElement->order = 11;\n $vvtElement->tool_id = false;\n $vvtElement->score_slider = false;\n $vvtElement->long_text = false;\n $vvtElement->html = false;\n $vvtElement->repeated_field = false;\n $vvtElement->date_picker = false;\n $vvtElement->date_range_picker = false;\n $vvtElement->autocomplete = true;\n $vvtElement->autocomplete_main_id = 56;\n $vvtElement->autocomplete_extra_id = false;\n $vvtElement->autocomplete_itemtype_id = 19;\n $vvtElement->autocomplete_collection_id = false;\n $vvtElement->field_scroll = false;\n $vvtElement->save();\n \n $vvtElement = new AnnotationTypeElement;\n $vvtElement->type_id = $verhaaltypeType->id;\n $vvtElement->element_id = 57;\n $vvtElement->prompt = 'Subcategory';\n $vvtElement->english_name = 'subcategory';\n $vvtElement->order = 12;\n $vvtElement->tool_id = false;\n $vvtElement->score_slider = false;\n $vvtElement->long_text = false;\n $vvtElement->html = false;\n $vvtElement->repeated_field = false;\n $vvtElement->date_picker = false;\n $vvtElement->date_range_picker = false;\n $vvtElement->autocomplete = true;\n $vvtElement->autocomplete_main_id = 57;\n $vvtElement->autocomplete_extra_id = false;\n $vvtElement->autocomplete_itemtype_id = 19;\n $vvtElement->autocomplete_collection_id = false;\n $vvtElement->field_scroll = false;\n $vvtElement->save();\n \n $vvtElement = new AnnotationTypeElement;\n $vvtElement->type_id = $verhaaltypeType->id;\n $vvtElement->element_id = 58;\n $vvtElement->prompt = 'Subgenre';\n $vvtElement->english_name = 'subgenre';\n $vvtElement->order = 13;\n $vvtElement->tool_id = false;\n $vvtElement->score_slider = false;\n $vvtElement->long_text = false;\n $vvtElement->html = false;\n $vvtElement->repeated_field = false;\n $vvtElement->date_picker = false;\n $vvtElement->date_range_picker = false;\n $vvtElement->autocomplete = false;\n $vvtElement->autocomplete_main_id = false;\n $vvtElement->autocomplete_extra_id = false;\n $vvtElement->autocomplete_itemtype_id = false;\n $vvtElement->autocomplete_collection_id = false;\n $vvtElement->field_scroll = false;\n $vvtElement->save();\n \n $vvtElement = new AnnotationTypeElement;\n $vvtElement->type_id = $verhaaltypeType->id;\n $vvtElement->element_id = 59;\n $vvtElement->prompt = 'Datum van invullen';\n $vvtElement->english_name = 'entry Date';\n $vvtElement->order = 15;\n $vvtElement->tool_id = false;\n $vvtElement->score_slider = false;\n $vvtElement->long_text = false;\n $vvtElement->html = false;\n $vvtElement->repeated_field = false;\n $vvtElement->date_picker = true;\n $vvtElement->date_range_picker = false;\n $vvtElement->autocomplete = false;\n $vvtElement->autocomplete_main_id = false;\n $vvtElement->autocomplete_extra_id = false;\n $vvtElement->autocomplete_itemtype_id = false;\n $vvtElement->autocomplete_collection_id = false;\n $vvtElement->field_scroll = false;\n $vvtElement->save();\n \n $vvtElement = new AnnotationTypeElement;\n $vvtElement->type_id = $verhaaltypeType->id;\n $vvtElement->element_id = 64;\n $vvtElement->prompt = 'Literatuur';\n $vvtElement->english_name = 'literature';\n $vvtElement->order = 14;\n $vvtElement->tool_id = false;\n $vvtElement->score_slider = false;\n $vvtElement->long_text = false;\n $vvtElement->html = false;\n $vvtElement->repeated_field = true;\n $vvtElement->date_picker = false;\n $vvtElement->date_range_picker = false;\n $vvtElement->autocomplete = false;\n $vvtElement->autocomplete_main_id = false;\n $vvtElement->autocomplete_extra_id = false;\n $vvtElement->autocomplete_itemtype_id = false;\n $vvtElement->autocomplete_collection_id = false;\n $vvtElement->field_scroll = false;\n $vvtElement->save();\n \n //verzamelaar\n $verzamelaarElement = new AnnotationTypeElement;\n $verzamelaarElement->type_id = $verzamelaarType->id;\n $verzamelaarElement->element_id = 50;\n $verzamelaarElement->prompt = 'De naam van de verzamelaar. [VOORNAAM ACHTERNAAM]';\n $verzamelaarElement->english_name = 'title';\n $verzamelaarElement->order = 1;\n $verzamelaarElement->tool_id = false;\n $verzamelaarElement->score_slider = false;\n $verzamelaarElement->long_text = false;\n $verzamelaarElement->html = false;\n $verzamelaarElement->repeated_field = false;\n $verzamelaarElement->date_picker = false;\n $verzamelaarElement->date_range_picker = false;\n $verzamelaarElement->autocomplete = false;\n $verzamelaarElement->autocomplete_main_id = false;\n $verzamelaarElement->autocomplete_extra_id = false;\n $verzamelaarElement->autocomplete_itemtype_id = false;\n $verzamelaarElement->autocomplete_collection_id = false;\n $verzamelaarElement->field_scroll = false;\n $verzamelaarElement->save();\n \n $verzamelaarElement = new AnnotationTypeElement;\n $verzamelaarElement->type_id = $verzamelaarType->id;\n $verzamelaarElement->element_id = 84;\n $verzamelaarElement->prompt = 'Geslacht van de verzamelaar';\n $verzamelaarElement->english_name = 'gender';\n $verzamelaarElement->order = 2;\n $verzamelaarElement->tool_id = false;\n $verzamelaarElement->score_slider = false;\n $verzamelaarElement->long_text = false;\n $verzamelaarElement->html = false;\n $verzamelaarElement->repeated_field = false;\n $verzamelaarElement->date_picker = false;\n $verzamelaarElement->date_range_picker = false;\n $verzamelaarElement->autocomplete = false;\n $verzamelaarElement->autocomplete_main_id = false;\n $verzamelaarElement->autocomplete_extra_id = false;\n $verzamelaarElement->autocomplete_itemtype_id = false;\n $verzamelaarElement->autocomplete_collection_id = false;\n $verzamelaarElement->field_scroll = false;\n $verzamelaarElement->save();\n \n $verzamelaarElement = new AnnotationTypeElement;\n $verzamelaarElement->type_id = $verzamelaarType->id;\n $verzamelaarElement->element_id = 32;\n $verzamelaarElement->prompt = 'In welke plaats deze verzamelaar geboren is';\n $verzamelaarElement->english_name = 'birthplace';\n $verzamelaarElement->order = 3;\n $verzamelaarElement->tool_id = false;\n $verzamelaarElement->score_slider = false;\n $verzamelaarElement->long_text = false;\n $verzamelaarElement->html = false;\n $verzamelaarElement->repeated_field = false;\n $verzamelaarElement->date_picker = false;\n $verzamelaarElement->date_range_picker = false;\n $verzamelaarElement->autocomplete = false;\n $verzamelaarElement->autocomplete_main_id = 32;\n $verzamelaarElement->autocomplete_extra_id = false;\n $verzamelaarElement->autocomplete_itemtype_id = 12;\n $verzamelaarElement->autocomplete_collection_id = false;\n $verzamelaarElement->field_scroll = false;\n $verzamelaarElement->save();\n \n $verzamelaarElement = new AnnotationTypeElement;\n $verzamelaarElement->type_id = $verzamelaarType->id;\n $verzamelaarElement->element_id = 31;\n $verzamelaarElement->prompt = 'De geboortedatum van deze verzamelaar';\n $verzamelaarElement->english_name = 'birth date';\n $verzamelaarElement->order = 4;\n $verzamelaarElement->tool_id = false;\n $verzamelaarElement->score_slider = false;\n $verzamelaarElement->long_text = false;\n $verzamelaarElement->html = false;\n $verzamelaarElement->repeated_field = false;\n $verzamelaarElement->date_picker = true;\n $verzamelaarElement->date_range_picker = false;\n $verzamelaarElement->autocomplete = false;\n $verzamelaarElement->autocomplete_main_id = false;\n $verzamelaarElement->autocomplete_extra_id = false;\n $verzamelaarElement->autocomplete_itemtype_id = false;\n $verzamelaarElement->autocomplete_collection_id = false;\n $verzamelaarElement->field_scroll = false;\n $verzamelaarElement->save();\n \n $verzamelaarElement = new AnnotationTypeElement;\n $verzamelaarElement->type_id = $verzamelaarType->id;\n $verzamelaarElement->element_id = 33;\n $verzamelaarElement->prompt = 'De datum van eventueel overlijden';\n $verzamelaarElement->english_name = 'death date';\n $verzamelaarElement->order = 5;\n $verzamelaarElement->tool_id = false;\n $verzamelaarElement->score_slider = false;\n $verzamelaarElement->long_text = false;\n $verzamelaarElement->html = false;\n $verzamelaarElement->repeated_field = false;\n $verzamelaarElement->date_picker = true;\n $verzamelaarElement->date_range_picker = false;\n $verzamelaarElement->autocomplete = false;\n $verzamelaarElement->autocomplete_main_id = false;\n $verzamelaarElement->autocomplete_extra_id = false;\n $verzamelaarElement->autocomplete_itemtype_id = false;\n $verzamelaarElement->autocomplete_collection_id = false;\n $verzamelaarElement->field_scroll = false;\n $verzamelaarElement->save();\n \n $verzamelaarElement = new AnnotationTypeElement;\n $verzamelaarElement->type_id = $verzamelaarType->id;\n $verzamelaarElement->element_id = 85;\n $verzamelaarElement->prompt = 'Straatnaam en nummer';\n $verzamelaarElement->english_name = 'address';\n $verzamelaarElement->order = 6;\n $verzamelaarElement->tool_id = false;\n $verzamelaarElement->score_slider = false;\n $verzamelaarElement->long_text = false;\n $verzamelaarElement->html = false;\n $verzamelaarElement->repeated_field = false;\n $verzamelaarElement->date_picker = false;\n $verzamelaarElement->date_range_picker = false;\n $verzamelaarElement->autocomplete = false;\n $verzamelaarElement->autocomplete_main_id = false;\n $verzamelaarElement->autocomplete_extra_id = false;\n $verzamelaarElement->autocomplete_itemtype_id = false;\n $verzamelaarElement->autocomplete_collection_id = false;\n $verzamelaarElement->field_scroll = false;\n $verzamelaarElement->save();\n \n $verzamelaarElement = new AnnotationTypeElement;\n $verzamelaarElement->type_id = $verzamelaarType->id;\n $verzamelaarElement->element_id = 71;\n $verzamelaarElement->prompt = 'Woonplaats (ook in geolocatie gedeelte beneden)';\n $verzamelaarElement->english_name = 'place of residence';\n $verzamelaarElement->order = 7;\n $verzamelaarElement->tool_id = false;\n $verzamelaarElement->score_slider = false;\n $verzamelaarElement->long_text = false;\n $verzamelaarElement->html = false;\n $verzamelaarElement->repeated_field = false;\n $verzamelaarElement->date_picker = false;\n $verzamelaarElement->date_range_picker = false;\n $verzamelaarElement->autocomplete = true;\n $verzamelaarElement->autocomplete_main_id = 71;\n $verzamelaarElement->autocomplete_extra_id = false;\n $verzamelaarElement->autocomplete_itemtype_id = false;\n $verzamelaarElement->autocomplete_collection_id = false;\n $verzamelaarElement->field_scroll = false;\n $verzamelaarElement->save();\n \n $verzamelaarElement = new AnnotationTypeElement;\n $verzamelaarElement->type_id = $verzamelaarType->id;\n $verzamelaarElement->element_id = 72;\n $verzamelaarElement->prompt = 'Woonplaats sinds';\n $verzamelaarElement->english_name = 'place of residence since date';\n $verzamelaarElement->order = 8;\n $verzamelaarElement->tool_id = false;\n $verzamelaarElement->score_slider = false;\n $verzamelaarElement->long_text = false;\n $verzamelaarElement->html = false;\n $verzamelaarElement->repeated_field = false;\n $verzamelaarElement->date_picker = true;\n $verzamelaarElement->date_range_picker = false;\n $verzamelaarElement->autocomplete = false;\n $verzamelaarElement->autocomplete_main_id = false;\n $verzamelaarElement->autocomplete_extra_id = false;\n $verzamelaarElement->autocomplete_itemtype_id = false;\n $verzamelaarElement->autocomplete_collection_id = false;\n $verzamelaarElement->field_scroll = false;\n $verzamelaarElement->save();\n \n $verzamelaarElement = new AnnotationTypeElement;\n $verzamelaarElement->type_id = $verzamelaarType->id;\n $verzamelaarElement->element_id = 73;\n $verzamelaarElement->prompt = 'Vorige woonplaats';\n $verzamelaarElement->english_name = 'previous place of residence';\n $verzamelaarElement->order = 9;\n $verzamelaarElement->tool_id = false;\n $verzamelaarElement->score_slider = false;\n $verzamelaarElement->long_text = false;\n $verzamelaarElement->html = false;\n $verzamelaarElement->repeated_field = false;\n $verzamelaarElement->date_picker = false;\n $verzamelaarElement->date_range_picker = false;\n $verzamelaarElement->autocomplete = true;\n $verzamelaarElement->autocomplete_main_id = 71;\n $verzamelaarElement->autocomplete_extra_id = false;\n $verzamelaarElement->autocomplete_itemtype_id = false;\n $verzamelaarElement->autocomplete_collection_id = false;\n $verzamelaarElement->field_scroll = false;\n $verzamelaarElement->save();\n \n $verzamelaarElement = new AnnotationTypeElement;\n $verzamelaarElement->type_id = $verzamelaarType->id;\n $verzamelaarElement->element_id = 34;\n $verzamelaarElement->prompt = 'Beroep';\n $verzamelaarElement->english_name = 'occupation';\n $verzamelaarElement->order = 10;\n $verzamelaarElement->tool_id = false;\n $verzamelaarElement->score_slider = false;\n $verzamelaarElement->long_text = false;\n $verzamelaarElement->html = false;\n $verzamelaarElement->repeated_field = false;\n $verzamelaarElement->date_picker = false;\n $verzamelaarElement->date_range_picker = false;\n $verzamelaarElement->autocomplete = true;\n $verzamelaarElement->autocomplete_main_id = 34;\n $verzamelaarElement->autocomplete_extra_id = false;\n $verzamelaarElement->autocomplete_itemtype_id = false;\n $verzamelaarElement->autocomplete_collection_id = false;\n $verzamelaarElement->field_scroll = false;\n $verzamelaarElement->save();\n \n $verzamelaarElement = new AnnotationTypeElement;\n $verzamelaarElement->type_id = $verzamelaarType->id;\n $verzamelaarElement->element_id = 70;\n $verzamelaarElement->prompt = 'Geloof';\n $verzamelaarElement->english_name = 'religion';\n $verzamelaarElement->order = 11;\n $verzamelaarElement->tool_id = false;\n $verzamelaarElement->score_slider = false;\n $verzamelaarElement->long_text = false;\n $verzamelaarElement->html = false;\n $verzamelaarElement->repeated_field = false;\n $verzamelaarElement->date_picker = false;\n $verzamelaarElement->date_range_picker = false;\n $verzamelaarElement->autocomplete = true;\n $verzamelaarElement->autocomplete_main_id = 70;\n $verzamelaarElement->autocomplete_extra_id = false;\n $verzamelaarElement->autocomplete_itemtype_id = false;\n $verzamelaarElement->autocomplete_collection_id = false;\n $verzamelaarElement->field_scroll = false;\n $verzamelaarElement->save();\n \n $verzamelaarElement = new AnnotationTypeElement;\n $verzamelaarElement->type_id = $verzamelaarType->id;\n $verzamelaarElement->element_id = 89;\n $verzamelaarElement->prompt = 'Privacy gewenst';\n $verzamelaarElement->english_name = 'privacy required';\n $verzamelaarElement->order = 12;\n $verzamelaarElement->tool_id = false;\n $verzamelaarElement->score_slider = false;\n $verzamelaarElement->long_text = false;\n $verzamelaarElement->html = false;\n $verzamelaarElement->repeated_field = false;\n $verzamelaarElement->date_picker = false;\n $verzamelaarElement->date_range_picker = false;\n $verzamelaarElement->autocomplete = false;\n $verzamelaarElement->autocomplete_main_id = false;\n $verzamelaarElement->autocomplete_extra_id = false;\n $verzamelaarElement->autocomplete_itemtype_id = false;\n $verzamelaarElement->autocomplete_collection_id = false;\n $verzamelaarElement->field_scroll = false;\n $verzamelaarElement->save();\n \n $verzamelaarElement = new AnnotationTypeElement;\n $verzamelaarElement->type_id = $verzamelaarType->id;\n $verzamelaarElement->element_id = 82;\n $verzamelaarElement->prompt = 'Datum gevisiteerd';\n $verzamelaarElement->english_name = 'date visited';\n $verzamelaarElement->order = 13;\n $verzamelaarElement->tool_id = false;\n $verzamelaarElement->score_slider = false;\n $verzamelaarElement->long_text = false;\n $verzamelaarElement->html = false;\n $verzamelaarElement->repeated_field = false;\n $verzamelaarElement->date_picker = true;\n $verzamelaarElement->date_range_picker = false;\n $verzamelaarElement->autocomplete = false;\n $verzamelaarElement->autocomplete_main_id = false;\n $verzamelaarElement->autocomplete_extra_id = false;\n $verzamelaarElement->autocomplete_itemtype_id = false;\n $verzamelaarElement->autocomplete_collection_id = false;\n $verzamelaarElement->field_scroll = false;\n $verzamelaarElement->save();\n \n $verzamelaarElement = new AnnotationTypeElement;\n $verzamelaarElement->type_id = $verzamelaarType->id;\n $verzamelaarElement->element_id = 74;\n $verzamelaarElement->prompt = 'Naam moeder (liefst [ACHTERNAAM, VOORNAAM])';\n $verzamelaarElement->english_name = 'name mother';\n $verzamelaarElement->order = 14;\n $verzamelaarElement->tool_id = false;\n $verzamelaarElement->score_slider = false;\n $verzamelaarElement->long_text = false;\n $verzamelaarElement->html = false;\n $verzamelaarElement->repeated_field = false;\n $verzamelaarElement->date_picker = false;\n $verzamelaarElement->date_range_picker = false;\n $verzamelaarElement->autocomplete = false;\n $verzamelaarElement->autocomplete_main_id = false;\n $verzamelaarElement->autocomplete_extra_id = false;\n $verzamelaarElement->autocomplete_itemtype_id = false;\n $verzamelaarElement->autocomplete_collection_id = false;\n $verzamelaarElement->field_scroll = false;\n $verzamelaarElement->save();\n \n $verzamelaarElement = new AnnotationTypeElement;\n $verzamelaarElement->type_id = $verzamelaarType->id;\n $verzamelaarElement->element_id = 75;\n $verzamelaarElement->prompt = 'Geboorteplaats moeder';\n $verzamelaarElement->english_name = 'birthplace mother';\n $verzamelaarElement->order = 15;\n $verzamelaarElement->tool_id = false;\n $verzamelaarElement->score_slider = false;\n $verzamelaarElement->long_text = false;\n $verzamelaarElement->html = false;\n $verzamelaarElement->repeated_field = false;\n $verzamelaarElement->date_picker = false;\n $verzamelaarElement->date_range_picker = false;\n $verzamelaarElement->autocomplete = true;\n $verzamelaarElement->autocomplete_main_id = 32;\n $verzamelaarElement->autocomplete_extra_id = false;\n $verzamelaarElement->autocomplete_itemtype_id = false;\n $verzamelaarElement->autocomplete_collection_id = false;\n $verzamelaarElement->field_scroll = false;\n $verzamelaarElement->save();\n \n $verzamelaarElement = new AnnotationTypeElement;\n $verzamelaarElement->type_id = $verzamelaarType->id;\n $verzamelaarElement->element_id = 91;\n $verzamelaarElement->prompt = 'Geboortedatum moeder';\n $verzamelaarElement->english_name = 'birthdate mother';\n $verzamelaarElement->order = 16;\n $verzamelaarElement->tool_id = false;\n $verzamelaarElement->score_slider = false;\n $verzamelaarElement->long_text = false;\n $verzamelaarElement->html = false;\n $verzamelaarElement->repeated_field = false;\n $verzamelaarElement->date_picker = true;\n $verzamelaarElement->date_range_picker = false;\n $verzamelaarElement->autocomplete = false;\n $verzamelaarElement->autocomplete_main_id = false;\n $verzamelaarElement->autocomplete_extra_id = false;\n $verzamelaarElement->autocomplete_itemtype_id = false;\n $verzamelaarElement->autocomplete_collection_id = false;\n $verzamelaarElement->field_scroll = false;\n $verzamelaarElement->save();\n \n $verzamelaarElement = new AnnotationTypeElement;\n $verzamelaarElement->type_id = $verzamelaarType->id;\n $verzamelaarElement->element_id = 76;\n $verzamelaarElement->prompt = 'Beroep moeder';\n $verzamelaarElement->english_name = 'occupation mother';\n $verzamelaarElement->order = 17;\n $verzamelaarElement->tool_id = false;\n $verzamelaarElement->score_slider = false;\n $verzamelaarElement->long_text = false;\n $verzamelaarElement->html = false;\n $verzamelaarElement->repeated_field = false;\n $verzamelaarElement->date_picker = false;\n $verzamelaarElement->date_range_picker = false;\n $verzamelaarElement->autocomplete = true;\n $verzamelaarElement->autocomplete_main_id = 34;\n $verzamelaarElement->autocomplete_extra_id = false;\n $verzamelaarElement->autocomplete_itemtype_id = false;\n $verzamelaarElement->autocomplete_collection_id = false;\n $verzamelaarElement->field_scroll = false;\n $verzamelaarElement->save();\n \n $verzamelaarElement = new AnnotationTypeElement;\n $verzamelaarElement->type_id = $verzamelaarType->id;\n $verzamelaarElement->element_id = 77;\n $verzamelaarElement->prompt = 'Naam vader';\n $verzamelaarElement->english_name = 'name father';\n $verzamelaarElement->order = 18;\n $verzamelaarElement->tool_id = false;\n $verzamelaarElement->score_slider = false;\n $verzamelaarElement->long_text = false;\n $verzamelaarElement->html = false;\n $verzamelaarElement->repeated_field = false;\n $verzamelaarElement->date_picker = false;\n $verzamelaarElement->date_range_picker = false;\n $verzamelaarElement->autocomplete = false;\n $verzamelaarElement->autocomplete_main_id = false;\n $verzamelaarElement->autocomplete_extra_id = false;\n $verzamelaarElement->autocomplete_itemtype_id = false;\n $verzamelaarElement->autocomplete_collection_id = false;\n $verzamelaarElement->field_scroll = false;\n $verzamelaarElement->save();\n \n $verzamelaarElement = new AnnotationTypeElement;\n $verzamelaarElement->type_id = $verzamelaarType->id;\n $verzamelaarElement->element_id = 78;\n $verzamelaarElement->prompt = 'Geboorteplaats vader';\n $verzamelaarElement->english_name = 'birthplace father';\n $verzamelaarElement->order = 19;\n $verzamelaarElement->tool_id = false;\n $verzamelaarElement->score_slider = false;\n $verzamelaarElement->long_text = false;\n $verzamelaarElement->html = false;\n $verzamelaarElement->repeated_field = false;\n $verzamelaarElement->date_picker = false;\n $verzamelaarElement->date_range_picker = false;\n $verzamelaarElement->autocomplete = true;\n $verzamelaarElement->autocomplete_main_id = 32;\n $verzamelaarElement->autocomplete_extra_id = false;\n $verzamelaarElement->autocomplete_itemtype_id = false;\n $verzamelaarElement->autocomplete_collection_id = false;\n $verzamelaarElement->field_scroll = false;\n $verzamelaarElement->save();\n \n $verzamelaarElement = new AnnotationTypeElement;\n $verzamelaarElement->type_id = $verzamelaarType->id;\n $verzamelaarElement->element_id = 79;\n $verzamelaarElement->prompt = 'Geboortedatum vader';\n $verzamelaarElement->english_name = 'birthdate father';\n $verzamelaarElement->order = 20;\n $verzamelaarElement->tool_id = false;\n $verzamelaarElement->score_slider = false;\n $verzamelaarElement->long_text = false;\n $verzamelaarElement->html = false;\n $verzamelaarElement->repeated_field = false;\n $verzamelaarElement->date_picker = true;\n $verzamelaarElement->date_range_picker = false;\n $verzamelaarElement->autocomplete = false;\n $verzamelaarElement->autocomplete_main_id = false;\n $verzamelaarElement->autocomplete_extra_id = false;\n $verzamelaarElement->autocomplete_itemtype_id = false;\n $verzamelaarElement->autocomplete_collection_id = false;\n $verzamelaarElement->field_scroll = false;\n $verzamelaarElement->save();\n \n $verzamelaarElement = new AnnotationTypeElement;\n $verzamelaarElement->type_id = $verzamelaarType->id;\n $verzamelaarElement->element_id = 80;\n $verzamelaarElement->prompt = 'Het beroep van de vader';\n $verzamelaarElement->english_name = 'occupation father';\n $verzamelaarElement->order = 21;\n $verzamelaarElement->tool_id = false;\n $verzamelaarElement->score_slider = false;\n $verzamelaarElement->long_text = false;\n $verzamelaarElement->html = false;\n $verzamelaarElement->repeated_field = true;\n $verzamelaarElement->date_picker = false;\n $verzamelaarElement->date_range_picker = false;\n $verzamelaarElement->autocomplete = true;\n $verzamelaarElement->autocomplete_main_id = 34;\n $verzamelaarElement->autocomplete_extra_id = false;\n $verzamelaarElement->autocomplete_itemtype_id = false;\n $verzamelaarElement->autocomplete_collection_id = false;\n $verzamelaarElement->field_scroll = false;\n $verzamelaarElement->save();\n \n $verzamelaarElement = new AnnotationTypeElement;\n $verzamelaarElement->type_id = $verzamelaarType->id;\n $verzamelaarElement->element_id = 83;\n $verzamelaarElement->prompt = 'Overige familie relaties';\n $verzamelaarElement->english_name = 'family relations';\n $verzamelaarElement->order = 22;\n $verzamelaarElement->tool_id = false;\n $verzamelaarElement->score_slider = false;\n $verzamelaarElement->long_text = false;\n $verzamelaarElement->html = false;\n $verzamelaarElement->repeated_field = true;\n $verzamelaarElement->date_picker = false;\n $verzamelaarElement->date_range_picker = false;\n $verzamelaarElement->autocomplete = false;\n $verzamelaarElement->autocomplete_main_id = false;\n $verzamelaarElement->autocomplete_extra_id = false;\n $verzamelaarElement->autocomplete_itemtype_id = false;\n $verzamelaarElement->autocomplete_collection_id = false;\n $verzamelaarElement->field_scroll = false;\n $verzamelaarElement->save();\n \n $verzamelaarElement = new AnnotationTypeElement;\n $verzamelaarElement->type_id = $verzamelaarType->id;\n $verzamelaarElement->element_id = 90;\n $verzamelaarElement->prompt = 'Is getrouwd met ...';\n $verzamelaarElement->english_name = 'married to';\n $verzamelaarElement->order = 23;\n $verzamelaarElement->tool_id = false;\n $verzamelaarElement->score_slider = false;\n $verzamelaarElement->long_text = false;\n $verzamelaarElement->html = false;\n $verzamelaarElement->repeated_field = true;\n $verzamelaarElement->date_picker = false;\n $verzamelaarElement->date_range_picker = false;\n $verzamelaarElement->autocomplete = false;\n $verzamelaarElement->autocomplete_main_id = false;\n $verzamelaarElement->autocomplete_extra_id = false;\n $verzamelaarElement->autocomplete_itemtype_id = false;\n $verzamelaarElement->autocomplete_collection_id = false;\n $verzamelaarElement->field_scroll = false;\n $verzamelaarElement->save();\n \n $verzamelaarElement = new AnnotationTypeElement;\n $verzamelaarElement->type_id = $verzamelaarType->id;\n $verzamelaarElement->element_id = 86;\n $verzamelaarElement->prompt = 'Naam van de partner (bij ongetrouwd)';\n $verzamelaarElement->english_name = 'name partner';\n $verzamelaarElement->order = 24;\n $verzamelaarElement->tool_id = false;\n $verzamelaarElement->score_slider = false;\n $verzamelaarElement->long_text = false;\n $verzamelaarElement->html = false;\n $verzamelaarElement->repeated_field = true;\n $verzamelaarElement->date_picker = false;\n $verzamelaarElement->date_range_picker = false;\n $verzamelaarElement->autocomplete = false;\n $verzamelaarElement->autocomplete_main_id = false;\n $verzamelaarElement->autocomplete_extra_id = false;\n $verzamelaarElement->autocomplete_itemtype_id = false;\n $verzamelaarElement->autocomplete_collection_id = false;\n $verzamelaarElement->field_scroll = false;\n $verzamelaarElement->save();\n \n $verzamelaarElement = new AnnotationTypeElement;\n $verzamelaarElement->type_id = $verzamelaarType->id;\n $verzamelaarElement->element_id = 87;\n $verzamelaarElement->prompt = 'Geboorteplaats van de partner';\n $verzamelaarElement->english_name = 'birthplace partner';\n $verzamelaarElement->order = 25;\n $verzamelaarElement->tool_id = false;\n $verzamelaarElement->score_slider = false;\n $verzamelaarElement->long_text = false;\n $verzamelaarElement->html = false;\n $verzamelaarElement->repeated_field = true;\n $verzamelaarElement->date_picker = false;\n $verzamelaarElement->date_range_picker = false;\n $verzamelaarElement->autocomplete = false;\n $verzamelaarElement->autocomplete_main_id = false;\n $verzamelaarElement->autocomplete_extra_id = false;\n $verzamelaarElement->autocomplete_itemtype_id = false;\n $verzamelaarElement->autocomplete_collection_id = false;\n $verzamelaarElement->field_scroll = false;\n $verzamelaarElement->save();\n \n $verzamelaarElement = new AnnotationTypeElement;\n $verzamelaarElement->type_id = $verzamelaarType->id;\n $verzamelaarElement->element_id = 92;\n $verzamelaarElement->prompt = 'Geboortedatum van de partner';\n $verzamelaarElement->english_name = 'birthdate partner';\n $verzamelaarElement->order = 26;\n $verzamelaarElement->tool_id = false;\n $verzamelaarElement->score_slider = false;\n $verzamelaarElement->long_text = false;\n $verzamelaarElement->html = false;\n $verzamelaarElement->repeated_field = true;\n $verzamelaarElement->date_picker = true;\n $verzamelaarElement->date_range_picker = false;\n $verzamelaarElement->autocomplete = false;\n $verzamelaarElement->autocomplete_main_id = false;\n $verzamelaarElement->autocomplete_extra_id = false;\n $verzamelaarElement->autocomplete_itemtype_id = false;\n $verzamelaarElement->autocomplete_collection_id = false;\n $verzamelaarElement->field_scroll = false;\n $verzamelaarElement->save();\n \n $verzamelaarElement = new AnnotationTypeElement;\n $verzamelaarElement->type_id = $verzamelaarType->id;\n $verzamelaarElement->element_id = 88;\n $verzamelaarElement->prompt = 'Beroep van de partner';\n $verzamelaarElement->english_name = 'occupation partner';\n $verzamelaarElement->order = 27;\n $verzamelaarElement->tool_id = false;\n $verzamelaarElement->score_slider = false;\n $verzamelaarElement->long_text = false;\n $verzamelaarElement->html = false;\n $verzamelaarElement->repeated_field = true;\n $verzamelaarElement->date_picker = false;\n $verzamelaarElement->date_range_picker = false;\n $verzamelaarElement->autocomplete = true;\n $verzamelaarElement->autocomplete_main_id = 34;\n $verzamelaarElement->autocomplete_extra_id = false;\n $verzamelaarElement->autocomplete_itemtype_id = false;\n $verzamelaarElement->autocomplete_collection_id = false;\n $verzamelaarElement->field_scroll = false;\n $verzamelaarElement->save();\n \n $verzamelaarElement = new AnnotationTypeElement;\n $verzamelaarElement->type_id = $verzamelaarType->id;\n $verzamelaarElement->element_id = 53;\n $verzamelaarElement->prompt = 'Overig commentaar bij deze persoon';\n $verzamelaarElement->english_name = 'comments';\n $verzamelaarElement->order = 28;\n $verzamelaarElement->tool_id = false;\n $verzamelaarElement->score_slider = false;\n $verzamelaarElement->long_text = true;\n $verzamelaarElement->html = false;\n $verzamelaarElement->repeated_field = true;\n $verzamelaarElement->date_picker = false;\n $verzamelaarElement->date_range_picker = false;\n $verzamelaarElement->autocomplete = false;\n $verzamelaarElement->autocomplete_main_id = false;\n $verzamelaarElement->autocomplete_extra_id = false;\n $verzamelaarElement->autocomplete_itemtype_id = false;\n $verzamelaarElement->autocomplete_collection_id = false;\n $verzamelaarElement->field_scroll = false;\n $verzamelaarElement->save();\n \n $verzamelaarElement = new AnnotationTypeElement;\n $verzamelaarElement->type_id = $verzamelaarType->id;\n $verzamelaarElement->element_id = 67;\n $verzamelaarElement->prompt = 'Het corpus waar deze persoon aan heeft bijgedragen';\n $verzamelaarElement->english_name = 'corpus';\n $verzamelaarElement->order = 29;\n $verzamelaarElement->tool_id = false;\n $verzamelaarElement->score_slider = false;\n $verzamelaarElement->long_text = false;\n $verzamelaarElement->html = false;\n $verzamelaarElement->repeated_field = true;\n $verzamelaarElement->date_picker = false;\n $verzamelaarElement->date_range_picker = false;\n $verzamelaarElement->autocomplete = false;\n $verzamelaarElement->autocomplete_main_id = false;\n $verzamelaarElement->autocomplete_extra_id = false;\n $verzamelaarElement->autocomplete_itemtype_id = false;\n $verzamelaarElement->autocomplete_collection_id = false;\n $verzamelaarElement->field_scroll = false;\n $verzamelaarElement->save();\n \n $verzamelaarElement = new AnnotationTypeElement;\n $verzamelaarElement->type_id = $verzamelaarType->id;\n $verzamelaarElement->element_id = 81;\n $verzamelaarElement->prompt = 'Nummers verslagen b65';\n $verzamelaarElement->english_name = 'nummers verslagen b65';\n $verzamelaarElement->order = 30;\n $verzamelaarElement->tool_id = false;\n $verzamelaarElement->score_slider = false;\n $verzamelaarElement->long_text = false;\n $verzamelaarElement->html = false;\n $verzamelaarElement->repeated_field = true;\n $verzamelaarElement->date_picker = false;\n $verzamelaarElement->date_range_picker = false;\n $verzamelaarElement->autocomplete = true;\n $verzamelaarElement->autocomplete_main_id = 81;\n $verzamelaarElement->autocomplete_extra_id = false;\n $verzamelaarElement->autocomplete_itemtype_id = false;\n $verzamelaarElement->autocomplete_collection_id = false;\n $verzamelaarElement->field_scroll = false;\n $verzamelaarElement->save();\n \n $verzamelaarElement = new AnnotationTypeElement;\n $verzamelaarElement->type_id = $verzamelaarType->id;\n $verzamelaarElement->element_id = 36;\n $verzamelaarElement->prompt = 'De bibiolografie van deze persoon';\n $verzamelaarElement->english_name = 'bibliography';\n $verzamelaarElement->order = 31;\n $verzamelaarElement->tool_id = false;\n $verzamelaarElement->score_slider = false;\n $verzamelaarElement->long_text = true;\n $verzamelaarElement->html = false;\n $verzamelaarElement->repeated_field = false;\n $verzamelaarElement->date_picker = false;\n $verzamelaarElement->date_range_picker = false;\n $verzamelaarElement->autocomplete = false;\n $verzamelaarElement->autocomplete_main_id = false;\n $verzamelaarElement->autocomplete_extra_id = false;\n $verzamelaarElement->autocomplete_itemtype_id = false;\n $verzamelaarElement->autocomplete_collection_id = false;\n $verzamelaarElement->field_scroll = false;\n $verzamelaarElement->save();\n\n //verteller\n $vertellerElement = new AnnotationTypeElement;\n $vertellerElement->type_id = $vertellerType->id;\n $vertellerElement->element_id = 50;\n $vertellerElement->prompt = 'De naam van de verteller. [ACHTERNAAM, VOORNAAM]';\n $vertellerElement->english_name = 'title';\n $vertellerElement->order = 1;\n $vertellerElement->tool_id = false;\n $vertellerElement->score_slider = false;\n $vertellerElement->long_text = false;\n $vertellerElement->html = false;\n $vertellerElement->repeated_field = false;\n $vertellerElement->date_picker = false;\n $vertellerElement->date_range_picker = false;\n $vertellerElement->autocomplete = false;\n $vertellerElement->autocomplete_main_id = false;\n $vertellerElement->autocomplete_extra_id = false;\n $vertellerElement->autocomplete_itemtype_id = false;\n $vertellerElement->autocomplete_collection_id = false;\n $vertellerElement->field_scroll = false;\n $vertellerElement->save();\n\n $vertellerElement = new AnnotationTypeElement;\n $vertellerElement->type_id = $vertellerType->id;\n $vertellerElement->element_id = 84;\n $vertellerElement->prompt = 'Geslacht van de verteller';\n $vertellerElement->english_name = 'gender';\n $vertellerElement->order = 2;\n $vertellerElement->tool_id = false;\n $vertellerElement->score_slider = false;\n $vertellerElement->long_text = false;\n $vertellerElement->html = false;\n $vertellerElement->repeated_field = false;\n $vertellerElement->date_picker = false;\n $vertellerElement->date_range_picker = false;\n $vertellerElement->autocomplete = false;\n $vertellerElement->autocomplete_main_id = false;\n $vertellerElement->autocomplete_extra_id = false;\n $vertellerElement->autocomplete_itemtype_id = false;\n $vertellerElement->autocomplete_collection_id = false;\n $vertellerElement->field_scroll = false;\n $vertellerElement->save();\n\n $vertellerElement = new AnnotationTypeElement;\n $vertellerElement->type_id = $vertellerType->id;\n $vertellerElement->element_id = 32;\n $vertellerElement->prompt = 'In welke plaats deze verteller geboren is';\n $vertellerElement->english_name = 'birthplace';\n $vertellerElement->order = 3;\n $vertellerElement->tool_id = false;\n $vertellerElement->score_slider = false;\n $vertellerElement->long_text = false;\n $vertellerElement->html = false;\n $vertellerElement->repeated_field = false;\n $vertellerElement->date_picker = false;\n $vertellerElement->date_range_picker = false;\n $vertellerElement->autocomplete = false;\n $vertellerElement->autocomplete_main_id = 32;\n $vertellerElement->autocomplete_extra_id = false;\n $vertellerElement->autocomplete_itemtype_id = 12;\n $vertellerElement->autocomplete_collection_id = false;\n $vertellerElement->field_scroll = false;\n $vertellerElement->save();\n\n $vertellerElement = new AnnotationTypeElement;\n $vertellerElement->type_id = $vertellerType->id;\n $vertellerElement->element_id = 31;\n $vertellerElement->prompt = 'De geboortedatum van deze verteller';\n $vertellerElement->english_name = 'birth date';\n $vertellerElement->order = 4;\n $vertellerElement->tool_id = false;\n $vertellerElement->score_slider = false;\n $vertellerElement->long_text = false;\n $vertellerElement->html = false;\n $vertellerElement->repeated_field = false;\n $vertellerElement->date_picker = true;\n $vertellerElement->date_range_picker = false;\n $vertellerElement->autocomplete = false;\n $vertellerElement->autocomplete_main_id = false;\n $vertellerElement->autocomplete_extra_id = false;\n $vertellerElement->autocomplete_itemtype_id = false;\n $vertellerElement->autocomplete_collection_id = false;\n $vertellerElement->field_scroll = false;\n $vertellerElement->save();\n\n $vertellerElement = new AnnotationTypeElement;\n $vertellerElement->type_id = $vertellerType->id;\n $vertellerElement->element_id = 33;\n $vertellerElement->prompt = 'De datum van eventueel overlijden';\n $vertellerElement->english_name = 'death date';\n $vertellerElement->order = 5;\n $vertellerElement->tool_id = false;\n $vertellerElement->score_slider = false;\n $vertellerElement->long_text = false;\n $vertellerElement->html = false;\n $vertellerElement->repeated_field = false;\n $vertellerElement->date_picker = true;\n $vertellerElement->date_range_picker = false;\n $vertellerElement->autocomplete = false;\n $vertellerElement->autocomplete_main_id = false;\n $vertellerElement->autocomplete_extra_id = false;\n $vertellerElement->autocomplete_itemtype_id = false;\n $vertellerElement->autocomplete_collection_id = false;\n $vertellerElement->field_scroll = false;\n $vertellerElement->save();\n\n $vertellerElement = new AnnotationTypeElement;\n $vertellerElement->type_id = $vertellerType->id;\n $vertellerElement->element_id = 85;\n $vertellerElement->prompt = 'Straatnaam en nummer';\n $vertellerElement->english_name = 'address';\n $vertellerElement->order = 6;\n $vertellerElement->tool_id = false;\n $vertellerElement->score_slider = false;\n $vertellerElement->long_text = false;\n $vertellerElement->html = false;\n $vertellerElement->repeated_field = false;\n $vertellerElement->date_picker = false;\n $vertellerElement->date_range_picker = false;\n $vertellerElement->autocomplete = false;\n $vertellerElement->autocomplete_main_id = false;\n $vertellerElement->autocomplete_extra_id = false;\n $vertellerElement->autocomplete_itemtype_id = false;\n $vertellerElement->autocomplete_collection_id = false;\n $vertellerElement->field_scroll = false;\n $vertellerElement->save();\n\n $vertellerElement = new AnnotationTypeElement;\n $vertellerElement->type_id = $vertellerType->id;\n $vertellerElement->element_id = 71;\n $vertellerElement->prompt = 'Woonplaats (ook via geolocatie functie onderaan)';\n $vertellerElement->english_name = 'place of residence';\n $vertellerElement->order = 7;\n $vertellerElement->tool_id = false;\n $vertellerElement->score_slider = false;\n $vertellerElement->long_text = false;\n $vertellerElement->html = false;\n $vertellerElement->repeated_field = false;\n $vertellerElement->date_picker = false;\n $vertellerElement->date_range_picker = false;\n $vertellerElement->autocomplete = true;\n $vertellerElement->autocomplete_main_id = 71;\n $vertellerElement->autocomplete_extra_id = false;\n $vertellerElement->autocomplete_itemtype_id = false;\n $vertellerElement->autocomplete_collection_id = false;\n $vertellerElement->field_scroll = false;\n $vertellerElement->save();\n\n $vertellerElement = new AnnotationTypeElement;\n $vertellerElement->type_id = $vertellerType->id;\n $vertellerElement->element_id = 72;\n $vertellerElement->prompt = 'Woonplaats sinds';\n $vertellerElement->english_name = 'place of residence since date';\n $vertellerElement->order = 8;\n $vertellerElement->tool_id = false;\n $vertellerElement->score_slider = false;\n $vertellerElement->long_text = false;\n $vertellerElement->html = false;\n $vertellerElement->repeated_field = false;\n $vertellerElement->date_picker = true;\n $vertellerElement->date_range_picker = false;\n $vertellerElement->autocomplete = false;\n $vertellerElement->autocomplete_main_id = false;\n $vertellerElement->autocomplete_extra_id = false;\n $vertellerElement->autocomplete_itemtype_id = false;\n $vertellerElement->autocomplete_collection_id = false;\n $vertellerElement->field_scroll = false;\n $vertellerElement->save();\n\n $vertellerElement = new AnnotationTypeElement;\n $vertellerElement->type_id = $vertellerType->id;\n $vertellerElement->element_id = 73;\n $vertellerElement->prompt = 'Vorige woonplaats';\n $vertellerElement->english_name = 'previous place of residence';\n $vertellerElement->order = 9;\n $vertellerElement->tool_id = false;\n $vertellerElement->score_slider = false;\n $vertellerElement->long_text = false;\n $vertellerElement->html = false;\n $vertellerElement->repeated_field = false;\n $vertellerElement->date_picker = false;\n $vertellerElement->date_range_picker = false;\n $vertellerElement->autocomplete = true;\n $vertellerElement->autocomplete_main_id = 71;\n $vertellerElement->autocomplete_extra_id = false;\n $vertellerElement->autocomplete_itemtype_id = false;\n $vertellerElement->autocomplete_collection_id = false;\n $vertellerElement->field_scroll = false;\n $vertellerElement->save();\n\n $vertellerElement = new AnnotationTypeElement;\n $vertellerElement->type_id = $vertellerType->id;\n $vertellerElement->element_id = 34;\n $vertellerElement->prompt = 'Beroep';\n $vertellerElement->english_name = 'occupation';\n $vertellerElement->order = 10;\n $vertellerElement->tool_id = false;\n $vertellerElement->score_slider = false;\n $vertellerElement->long_text = false;\n $vertellerElement->html = false;\n $vertellerElement->repeated_field = false;\n $vertellerElement->date_picker = false;\n $vertellerElement->date_range_picker = false;\n $vertellerElement->autocomplete = true;\n $vertellerElement->autocomplete_main_id = 34;\n $vertellerElement->autocomplete_extra_id = false;\n $vertellerElement->autocomplete_itemtype_id = false;\n $vertellerElement->autocomplete_collection_id = false;\n $vertellerElement->field_scroll = false;\n $vertellerElement->save();\n\n $vertellerElement = new AnnotationTypeElement;\n $vertellerElement->type_id = $vertellerType->id;\n $vertellerElement->element_id = 70;\n $vertellerElement->prompt = 'Geloof';\n $vertellerElement->english_name = 'religion';\n $vertellerElement->order = 11;\n $vertellerElement->tool_id = false;\n $vertellerElement->score_slider = false;\n $vertellerElement->long_text = false;\n $vertellerElement->html = false;\n $vertellerElement->repeated_field = false;\n $vertellerElement->date_picker = false;\n $vertellerElement->date_range_picker = false;\n $vertellerElement->autocomplete = true;\n $vertellerElement->autocomplete_main_id = 70;\n $vertellerElement->autocomplete_extra_id = false;\n $vertellerElement->autocomplete_itemtype_id = false;\n $vertellerElement->autocomplete_collection_id = false;\n $vertellerElement->field_scroll = false;\n $vertellerElement->save();\n\n $vertellerElement = new AnnotationTypeElement;\n $vertellerElement->type_id = $vertellerType->id;\n $vertellerElement->element_id = 89;\n $vertellerElement->prompt = 'Privacy gewenst';\n $vertellerElement->english_name = 'privacy required';\n $vertellerElement->order = 12;\n $vertellerElement->tool_id = false;\n $vertellerElement->score_slider = false;\n $vertellerElement->long_text = false;\n $vertellerElement->html = false;\n $vertellerElement->repeated_field = false;\n $vertellerElement->date_picker = false;\n $vertellerElement->date_range_picker = false;\n $vertellerElement->autocomplete = false;\n $vertellerElement->autocomplete_main_id = false;\n $vertellerElement->autocomplete_extra_id = false;\n $vertellerElement->autocomplete_itemtype_id = false;\n $vertellerElement->autocomplete_collection_id = false;\n $vertellerElement->field_scroll = false;\n $vertellerElement->save();\n\n $vertellerElement = new AnnotationTypeElement;\n $vertellerElement->type_id = $vertellerType->id;\n $vertellerElement->element_id = 82;\n $vertellerElement->prompt = 'Datum gevisiteerd';\n $vertellerElement->english_name = 'date visited';\n $vertellerElement->order = 13;\n $vertellerElement->tool_id = false;\n $vertellerElement->score_slider = false;\n $vertellerElement->long_text = false;\n $vertellerElement->html = false;\n $vertellerElement->repeated_field = false;\n $vertellerElement->date_picker = true;\n $vertellerElement->date_range_picker = false;\n $vertellerElement->autocomplete = false;\n $vertellerElement->autocomplete_main_id = false;\n $vertellerElement->autocomplete_extra_id = false;\n $vertellerElement->autocomplete_itemtype_id = false;\n $vertellerElement->autocomplete_collection_id = false;\n $vertellerElement->field_scroll = false;\n $vertellerElement->save();\n\n $vertellerElement = new AnnotationTypeElement;\n $vertellerElement->type_id = $vertellerType->id;\n $vertellerElement->element_id = 74;\n $vertellerElement->prompt = 'Naam moeder';\n $vertellerElement->english_name = 'name mother';\n $vertellerElement->order = 14;\n $vertellerElement->tool_id = false;\n $vertellerElement->score_slider = false;\n $vertellerElement->long_text = false;\n $vertellerElement->html = false;\n $vertellerElement->repeated_field = false;\n $vertellerElement->date_picker = false;\n $vertellerElement->date_range_picker = false;\n $vertellerElement->autocomplete = false;\n $vertellerElement->autocomplete_main_id = false;\n $vertellerElement->autocomplete_extra_id = false;\n $vertellerElement->autocomplete_itemtype_id = false;\n $vertellerElement->autocomplete_collection_id = false;\n $vertellerElement->field_scroll = false;\n $vertellerElement->save();\n\n $vertellerElement = new AnnotationTypeElement;\n $vertellerElement->type_id = $vertellerType->id;\n $vertellerElement->element_id = 75;\n $vertellerElement->prompt = 'Geboorteplaats moeder';\n $vertellerElement->english_name = 'birthplace mother';\n $vertellerElement->order = 15;\n $vertellerElement->tool_id = false;\n $vertellerElement->score_slider = false;\n $vertellerElement->long_text = false;\n $vertellerElement->html = false;\n $vertellerElement->repeated_field = false;\n $vertellerElement->date_picker = false;\n $vertellerElement->date_range_picker = false;\n $vertellerElement->autocomplete = true;\n $vertellerElement->autocomplete_main_id = 32;\n $vertellerElement->autocomplete_extra_id = false;\n $vertellerElement->autocomplete_itemtype_id = false;\n $vertellerElement->autocomplete_collection_id = false;\n $vertellerElement->field_scroll = false;\n $vertellerElement->save();\n\n $vertellerElement = new AnnotationTypeElement;\n $vertellerElement->type_id = $vertellerType->id;\n $vertellerElement->element_id = 91;\n $vertellerElement->prompt = 'Geboortedatum Mother';\n $vertellerElement->english_name = 'birthdate mother';\n $vertellerElement->order = 16;\n $vertellerElement->tool_id = false;\n $vertellerElement->score_slider = false;\n $vertellerElement->long_text = false;\n $vertellerElement->html = false;\n $vertellerElement->repeated_field = false;\n $vertellerElement->date_picker = true;\n $vertellerElement->date_range_picker = false;\n $vertellerElement->autocomplete = false;\n $vertellerElement->autocomplete_main_id = false;\n $vertellerElement->autocomplete_extra_id = false;\n $vertellerElement->autocomplete_itemtype_id = false;\n $vertellerElement->autocomplete_collection_id = false;\n $vertellerElement->field_scroll = false;\n $vertellerElement->save();\n\n $vertellerElement = new AnnotationTypeElement;\n $vertellerElement->type_id = $vertellerType->id;\n $vertellerElement->element_id = 76;\n $vertellerElement->prompt = 'Beroep Mother';\n $vertellerElement->english_name = 'occupation mother';\n $vertellerElement->order = 17;\n $vertellerElement->tool_id = false;\n $vertellerElement->score_slider = false;\n $vertellerElement->long_text = false;\n $vertellerElement->html = false;\n $vertellerElement->repeated_field = false;\n $vertellerElement->date_picker = false;\n $vertellerElement->date_range_picker = false;\n $vertellerElement->autocomplete = true;\n $vertellerElement->autocomplete_main_id = 34;\n $vertellerElement->autocomplete_extra_id = false;\n $vertellerElement->autocomplete_itemtype_id = false;\n $vertellerElement->autocomplete_collection_id = false;\n $vertellerElement->field_scroll = false;\n $vertellerElement->save();\n\n $vertellerElement = new AnnotationTypeElement;\n $vertellerElement->type_id = $vertellerType->id;\n $vertellerElement->element_id = 77;\n $vertellerElement->prompt = 'Naam Vader';\n $vertellerElement->english_name = 'name father';\n $vertellerElement->order = 18;\n $vertellerElement->tool_id = false;\n $vertellerElement->score_slider = false;\n $vertellerElement->long_text = false;\n $vertellerElement->html = false;\n $vertellerElement->repeated_field = false;\n $vertellerElement->date_picker = false;\n $vertellerElement->date_range_picker = false;\n $vertellerElement->autocomplete = false;\n $vertellerElement->autocomplete_main_id = false;\n $vertellerElement->autocomplete_extra_id = false;\n $vertellerElement->autocomplete_itemtype_id = false;\n $vertellerElement->autocomplete_collection_id = false;\n $vertellerElement->field_scroll = false;\n $vertellerElement->save();\n\n $vertellerElement = new AnnotationTypeElement;\n $vertellerElement->type_id = $vertellerType->id;\n $vertellerElement->element_id = 78;\n $vertellerElement->prompt = 'Birthplace Father';\n $vertellerElement->english_name = 'birthplace father';\n $vertellerElement->order = 19;\n $vertellerElement->tool_id = false;\n $vertellerElement->score_slider = false;\n $vertellerElement->long_text = false;\n $vertellerElement->html = false;\n $vertellerElement->repeated_field = false;\n $vertellerElement->date_picker = false;\n $vertellerElement->date_range_picker = false;\n $vertellerElement->autocomplete = true;\n $vertellerElement->autocomplete_main_id = 32;\n $vertellerElement->autocomplete_extra_id = false;\n $vertellerElement->autocomplete_itemtype_id = false;\n $vertellerElement->autocomplete_collection_id = false;\n $vertellerElement->field_scroll = false;\n $vertellerElement->save();\n\n $vertellerElement = new AnnotationTypeElement;\n $vertellerElement->type_id = $vertellerType->id;\n $vertellerElement->element_id = 79;\n $vertellerElement->prompt = 'Birthdate Father';\n $vertellerElement->english_name = 'birthdate father';\n $vertellerElement->order = 20;\n $vertellerElement->tool_id = false;\n $vertellerElement->score_slider = false;\n $vertellerElement->long_text = false;\n $vertellerElement->html = false;\n $vertellerElement->repeated_field = false;\n $vertellerElement->date_picker = true;\n $vertellerElement->date_range_picker = false;\n $vertellerElement->autocomplete = false;\n $vertellerElement->autocomplete_main_id = false;\n $vertellerElement->autocomplete_extra_id = false;\n $vertellerElement->autocomplete_itemtype_id = false;\n $vertellerElement->autocomplete_collection_id = false;\n $vertellerElement->field_scroll = false;\n $vertellerElement->save();\n\n $vertellerElement = new AnnotationTypeElement;\n $vertellerElement->type_id = $vertellerType->id;\n $vertellerElement->element_id = 80;\n $vertellerElement->prompt = 'Het beroep van de vader';\n $vertellerElement->english_name = 'occupation father';\n $vertellerElement->order = 21;\n $vertellerElement->tool_id = false;\n $vertellerElement->score_slider = false;\n $vertellerElement->long_text = false;\n $vertellerElement->html = false;\n $vertellerElement->repeated_field = true;\n $vertellerElement->date_picker = false;\n $vertellerElement->date_range_picker = false;\n $vertellerElement->autocomplete = true;\n $vertellerElement->autocomplete_main_id = 34;\n $vertellerElement->autocomplete_extra_id = false;\n $vertellerElement->autocomplete_itemtype_id = false;\n $vertellerElement->autocomplete_collection_id = false;\n $vertellerElement->field_scroll = false;\n $vertellerElement->save();\n\n $vertellerElement = new AnnotationTypeElement;\n $vertellerElement->type_id = $vertellerType->id;\n $vertellerElement->element_id = 83;\n $vertellerElement->prompt = 'Overige familie relaties';\n $vertellerElement->english_name = 'family relations';\n $vertellerElement->order = 22;\n $vertellerElement->tool_id = false;\n $vertellerElement->score_slider = false;\n $vertellerElement->long_text = false;\n $vertellerElement->html = false;\n $vertellerElement->repeated_field = true;\n $vertellerElement->date_picker = false;\n $vertellerElement->date_range_picker = false;\n $vertellerElement->autocomplete = false;\n $vertellerElement->autocomplete_main_id = false;\n $vertellerElement->autocomplete_extra_id = false;\n $vertellerElement->autocomplete_itemtype_id = false;\n $vertellerElement->autocomplete_collection_id = false;\n $vertellerElement->field_scroll = false;\n $vertellerElement->save();\n\n $vertellerElement = new AnnotationTypeElement;\n $vertellerElement->type_id = $vertellerType->id;\n $vertellerElement->element_id = 90;\n $vertellerElement->prompt = 'Is getrouwd met ...';\n $vertellerElement->english_name = 'married to';\n $vertellerElement->order = 23;\n $vertellerElement->tool_id = false;\n $vertellerElement->score_slider = false;\n $vertellerElement->long_text = false;\n $vertellerElement->html = false;\n $vertellerElement->repeated_field = true;\n $vertellerElement->date_picker = false;\n $vertellerElement->date_range_picker = false;\n $vertellerElement->autocomplete = false;\n $vertellerElement->autocomplete_main_id = false;\n $vertellerElement->autocomplete_extra_id = false;\n $vertellerElement->autocomplete_itemtype_id = false;\n $vertellerElement->autocomplete_collection_id = false;\n $vertellerElement->field_scroll = false;\n $vertellerElement->save();\n\n $vertellerElement = new AnnotationTypeElement;\n $vertellerElement->type_id = $vertellerType->id;\n $vertellerElement->element_id = 86;\n $vertellerElement->prompt = 'Naam van de partner (bij ongetrouwd)';\n $vertellerElement->english_name = 'name partner';\n $vertellerElement->order = 24;\n $vertellerElement->tool_id = false;\n $vertellerElement->score_slider = false;\n $vertellerElement->long_text = false;\n $vertellerElement->html = false;\n $vertellerElement->repeated_field = true;\n $vertellerElement->date_picker = false;\n $vertellerElement->date_range_picker = false;\n $vertellerElement->autocomplete = false;\n $vertellerElement->autocomplete_main_id = false;\n $vertellerElement->autocomplete_extra_id = false;\n $vertellerElement->autocomplete_itemtype_id = false;\n $vertellerElement->autocomplete_collection_id = false;\n $vertellerElement->field_scroll = false;\n $vertellerElement->save();\n\n $vertellerElement = new AnnotationTypeElement;\n $vertellerElement->type_id = $vertellerType->id;\n $vertellerElement->element_id = 87;\n $vertellerElement->prompt = 'Geboorteplaats van de partner';\n $vertellerElement->english_name = 'birthplace partner';\n $vertellerElement->order = 25;\n $vertellerElement->tool_id = false;\n $vertellerElement->score_slider = false;\n $vertellerElement->long_text = false;\n $vertellerElement->html = false;\n $vertellerElement->repeated_field = true;\n $vertellerElement->date_picker = false;\n $vertellerElement->date_range_picker = false;\n $vertellerElement->autocomplete = false;\n $vertellerElement->autocomplete_main_id = false;\n $vertellerElement->autocomplete_extra_id = false;\n $vertellerElement->autocomplete_itemtype_id = false;\n $vertellerElement->autocomplete_collection_id = false;\n $vertellerElement->field_scroll = false;\n $vertellerElement->save();\n\n $vertellerElement = new AnnotationTypeElement;\n $vertellerElement->type_id = $vertellerType->id;\n $vertellerElement->element_id = 92;\n $vertellerElement->prompt = 'Geboortedatum van de partner';\n $vertellerElement->english_name = 'birthdate partner';\n $vertellerElement->order = 26;\n $vertellerElement->tool_id = false;\n $vertellerElement->score_slider = false;\n $vertellerElement->long_text = false;\n $vertellerElement->html = false;\n $vertellerElement->repeated_field = true;\n $vertellerElement->date_picker = true;\n $vertellerElement->date_range_picker = false;\n $vertellerElement->autocomplete = false;\n $vertellerElement->autocomplete_main_id = false;\n $vertellerElement->autocomplete_extra_id = false;\n $vertellerElement->autocomplete_itemtype_id = false;\n $vertellerElement->autocomplete_collection_id = false;\n $vertellerElement->field_scroll = false;\n $vertellerElement->save();\n\n $vertellerElement = new AnnotationTypeElement;\n $vertellerElement->type_id = $vertellerType->id;\n $vertellerElement->element_id = 88;\n $vertellerElement->prompt = 'Beroep van de partner';\n $vertellerElement->english_name = 'occupation partner';\n $vertellerElement->order = 27;\n $vertellerElement->tool_id = false;\n $vertellerElement->score_slider = false;\n $vertellerElement->long_text = false;\n $vertellerElement->html = false;\n $vertellerElement->repeated_field = true;\n $vertellerElement->date_picker = false;\n $vertellerElement->date_range_picker = false;\n $vertellerElement->autocomplete = true;\n $vertellerElement->autocomplete_main_id = 34;\n $vertellerElement->autocomplete_extra_id = false;\n $vertellerElement->autocomplete_itemtype_id = false;\n $vertellerElement->autocomplete_collection_id = false;\n $vertellerElement->field_scroll = false;\n $vertellerElement->save();\n\n $vertellerElement = new AnnotationTypeElement;\n $vertellerElement->type_id = $vertellerType->id;\n $vertellerElement->element_id = 53;\n $vertellerElement->prompt = 'Overig commentaar bij deze persoon';\n $vertellerElement->english_name = 'comments';\n $vertellerElement->order = 28;\n $vertellerElement->tool_id = false;\n $vertellerElement->score_slider = false;\n $vertellerElement->long_text = true;\n $vertellerElement->html = false;\n $vertellerElement->repeated_field = true;\n $vertellerElement->date_picker = false;\n $vertellerElement->date_range_picker = false;\n $vertellerElement->autocomplete = false;\n $vertellerElement->autocomplete_main_id = false;\n $vertellerElement->autocomplete_extra_id = false;\n $vertellerElement->autocomplete_itemtype_id = false;\n $vertellerElement->autocomplete_collection_id = false;\n $vertellerElement->field_scroll = false;\n $vertellerElement->save();\n\n $vertellerElement = new AnnotationTypeElement;\n $vertellerElement->type_id = $vertellerType->id;\n $vertellerElement->element_id = 67;\n $vertellerElement->prompt = 'Het corpus waar deze persoon aan heeft bijgedragen';\n $vertellerElement->english_name = 'corpus';\n $vertellerElement->order = 29;\n $vertellerElement->tool_id = false;\n $vertellerElement->score_slider = false;\n $vertellerElement->long_text = false;\n $vertellerElement->html = false;\n $vertellerElement->repeated_field = true;\n $vertellerElement->date_picker = false;\n $vertellerElement->date_range_picker = false;\n $vertellerElement->autocomplete = false;\n $vertellerElement->autocomplete_main_id = false;\n $vertellerElement->autocomplete_extra_id = false;\n $vertellerElement->autocomplete_itemtype_id = false;\n $vertellerElement->autocomplete_collection_id = false;\n $vertellerElement->field_scroll = false;\n $vertellerElement->save();\n\n $vertellerElement = new AnnotationTypeElement;\n $vertellerElement->type_id = $vertellerType->id;\n $vertellerElement->element_id = 81;\n $vertellerElement->prompt = 'nummers verslagen b65';\n $vertellerElement->english_name = 'nummers verslagen b65';\n $vertellerElement->order = 30;\n $vertellerElement->tool_id = false;\n $vertellerElement->score_slider = false;\n $vertellerElement->long_text = false;\n $vertellerElement->html = false;\n $vertellerElement->repeated_field = true;\n $vertellerElement->date_picker = false;\n $vertellerElement->date_range_picker = false;\n $vertellerElement->autocomplete = true;\n $vertellerElement->autocomplete_main_id = 81;\n $vertellerElement->autocomplete_extra_id = false;\n $vertellerElement->autocomplete_itemtype_id = false;\n $vertellerElement->autocomplete_collection_id = false;\n $vertellerElement->field_scroll = false;\n $vertellerElement->save();\n\n $vertellerElement = new AnnotationTypeElement;\n $vertellerElement->type_id = $vertellerType->id;\n $vertellerElement->element_id = 36;\n $vertellerElement->prompt = 'De bibiolografie van deze persoon';\n $vertellerElement->english_name = 'bibliography';\n $vertellerElement->order = 31;\n $vertellerElement->tool_id = false;\n $vertellerElement->score_slider = false;\n $vertellerElement->long_text = true;\n $vertellerElement->html = false;\n $vertellerElement->repeated_field = false;\n $vertellerElement->date_picker = false;\n $vertellerElement->date_range_picker = false;\n $vertellerElement->autocomplete = false;\n $vertellerElement->autocomplete_main_id = false;\n $vertellerElement->autocomplete_extra_id = false;\n $vertellerElement->autocomplete_itemtype_id = false;\n $vertellerElement->autocomplete_collection_id = false;\n $vertellerElement->field_scroll = false;\n $vertellerElement->save();\n \n //Lexicon\n $lexiconElement = new AnnotationTypeElement;\n $lexiconElement->type_id = $lexiconType->id;\n $lexiconElement->element_id = 1;\n $lexiconElement->prompt = 'Voer de originele tekst in';\n $lexiconElement->english_name = 'text';\n $lexiconElement->order = 3;\n $lexiconElement->tool_id = false;\n $lexiconElement->score_slider = false;\n $lexiconElement->long_text = true;\n $lexiconElement->html = false;\n $lexiconElement->repeated_field = false;\n $lexiconElement->date_picker = false;\n $lexiconElement->date_range_picker = false;\n $lexiconElement->autocomplete = false;\n $lexiconElement->autocomplete_main_id = false;\n $lexiconElement->autocomplete_extra_id = false;\n $lexiconElement->autocomplete_itemtype_id = false;\n $lexiconElement->autocomplete_collection_id = false;\n $lexiconElement->field_scroll = true;\n $lexiconElement->save();\n \n $lexiconElement = new AnnotationTypeElement;\n $lexiconElement->type_id = $lexiconType->id;\n $lexiconElement->element_id = 39;\n $lexiconElement->prompt = 'De schrijver van de tekst';\n $lexiconElement->english_name = 'creator';\n $lexiconElement->order = 4;\n $lexiconElement->tool_id = false;\n $lexiconElement->score_slider = false;\n $lexiconElement->long_text = false;\n $lexiconElement->html = true; //Lexicon items can be styled\n $lexiconElement->repeated_field = true;\n $lexiconElement->date_picker = false;\n $lexiconElement->date_range_picker = false;\n $lexiconElement->autocomplete = true; //automplete, yes please\n $lexiconElement->autocomplete_main_id = 50; //look in titles\n $lexiconElement->autocomplete_extra_id = false; //and nowhere else\n $lexiconElement->autocomplete_itemtype_id = false; //dont' restrict to certain item type\n $lexiconElement->autocomplete_collection_id = 4; //but only look in collection vertellers\n $lexiconElement->field_scroll = false;\n $lexiconElement->save();\n\n $lexiconElement = new AnnotationTypeElement;\n $lexiconElement->type_id = $lexiconType->id;\n $lexiconElement->element_id = 50;\n $lexiconElement->prompt = 'De titel van het verhaal';\n $lexiconElement->english_name = 'title';\n $lexiconElement->order = 1;\n $lexiconElement->tool_id = false;\n $lexiconElement->score_slider = false;\n $lexiconElement->long_text = false;\n $lexiconElement->html = false;\n $lexiconElement->repeated_field = false;\n $lexiconElement->date_picker = false;\n $lexiconElement->date_range_picker = false;\n $lexiconElement->autocomplete = false;\n $lexiconElement->autocomplete_main_id = false;\n $lexiconElement->autocomplete_extra_id = false;\n $lexiconElement->autocomplete_itemtype_id = false;\n $lexiconElement->autocomplete_collection_id = false;\n $lexiconElement->field_scroll = false;\n $lexiconElement->save();\n\n $lexiconElement = new AnnotationTypeElement;\n $lexiconElement->type_id = $lexiconType->id;\n $lexiconElement->element_id = 53;\n $lexiconElement->prompt = 'Overig commentaar of informatie over de tekst, of de manier waarop deze verkregen is.';\n $lexiconElement->english_name = 'commentary';\n $lexiconElement->order = 6;\n $lexiconElement->tool_id = false;\n $lexiconElement->score_slider = false;\n $lexiconElement->long_text = true;\n $lexiconElement->html = false;\n $lexiconElement->repeated_field = true;\n $lexiconElement->date_picker = false;\n $lexiconElement->date_range_picker = false;\n $lexiconElement->autocomplete = false;\n $lexiconElement->autocomplete_main_id = false;\n $lexiconElement->autocomplete_extra_id = false;\n $lexiconElement->autocomplete_itemtype_id = false;\n $lexiconElement->autocomplete_collection_id = false;\n $lexiconElement->field_scroll = false;\n $lexiconElement->save();\n \n $lexiconElement = new AnnotationTypeElement;\n $lexiconElement->type_id = $lexiconType->id;\n $lexiconElement->element_id = 49;\n $lexiconElement->prompt = 'Het verhaaltype of verhaaltypen. ATU, AT, Brunvand of TM nummer.';\n $lexiconElement->english_name = 'subject';\n $lexiconElement->order = 21;\n $lexiconElement->tool_id = $toolNine->id; //add tool when available\n $lexiconElement->score_slider = false;\n $lexiconElement->long_text = false;\n $lexiconElement->html = false;\n $lexiconElement->repeated_field = true;\n $lexiconElement->date_picker = false;\n $lexiconElement->date_range_picker = false;\n $lexiconElement->autocomplete = true; //automplete, yes please\n $lexiconElement->autocomplete_main_id = 43; //look in identifiers\n $lexiconElement->autocomplete_extra_id = 50; //and show the titles (and show titles as well?)\n $lexiconElement->autocomplete_itemtype_id = false; //dont' restrict to certain item type\n $lexiconElement->autocomplete_collection_id = 3; //but only look in collection verhaaltypen\n $lexiconElement->field_scroll = false;\n $lexiconElement->save();\n\n $lexiconElement = new AnnotationTypeElement;\n $lexiconElement->type_id = $lexiconType->id;\n $lexiconElement->element_id = 52;\n $lexiconElement->prompt = 'De motieven die gevonden kunnen worden in de tekst';\n $lexiconElement->english_name = 'motif';\n $lexiconElement->order = 23;\n $lexiconElement->tool_id = false; //add tool when available\n $lexiconElement->score_slider = false;\n $lexiconElement->long_text = false;\n $lexiconElement->html = false;\n $lexiconElement->repeated_field = true;\n $lexiconElement->date_picker = false;\n $lexiconElement->date_range_picker = false;\n $lexiconElement->autocomplete = true; //automplete, yes please\n $lexiconElement->autocomplete_main_id = 43; //look in identifiers\n $lexiconElement->autocomplete_extra_id = 50; //and show the titles\n $lexiconElement->autocomplete_itemtype_id = false; //dont' restrict to certain item type\n $lexiconElement->autocomplete_collection_id = 3; //but only look in collection verhaaltypen\n $lexiconElement->field_scroll = false;\n $lexiconElement->save();\n \n $lexiconElement = new AnnotationTypeElement;\n $lexiconElement->type_id = $lexiconType->id;\n $lexiconElement->element_id = 63;\n $lexiconElement->prompt = 'De namen (niet locaties) die gevonden kunnen worden in de tekst';\n $lexiconElement->english_name = 'named entity';\n $lexiconElement->order = 27;\n $lexiconElement->tool_id = 9; //add tool when available\n $lexiconElement->score_slider = false;\n $lexiconElement->long_text = false;\n $lexiconElement->html = false;\n $lexiconElement->repeated_field = true;\n $lexiconElement->date_picker = false;\n $lexiconElement->date_range_picker = false;\n $lexiconElement->autocomplete = true; //automplete, yes please\n $lexiconElement->autocomplete_main_id = 63; //look in identifiers\n $lexiconElement->autocomplete_extra_id = 0; //and show the titles\n $lexiconElement->autocomplete_itemtype_id = 18; //dont' restrict to certain item type\n $lexiconElement->autocomplete_collection_id = 1; //but only look in collection volksverhalen\n $lexiconElement->field_scroll = false;\n $lexiconElement->save();\n \n $lexiconElement = new AnnotationTypeElement;\n $lexiconElement->type_id = $lexiconType->id;\n $lexiconElement->element_id = 93;\n $lexiconElement->prompt = 'De namen van locaties die gevonden kunnen worden in de tekst';\n $lexiconElement->english_name = 'named entity location';\n $lexiconElement->order = 28;\n $lexiconElement->tool_id = 10; //add tool when available\n $lexiconElement->score_slider = false;\n $lexiconElement->long_text = false;\n $lexiconElement->html = false;\n $lexiconElement->repeated_field = true;\n $lexiconElement->date_picker = false;\n $lexiconElement->date_range_picker = false;\n $lexiconElement->autocomplete = true; //automplete, yes please\n $lexiconElement->autocomplete_main_id = 93; //look in identifiers\n $lexiconElement->autocomplete_extra_id = 0; //and show the titles\n $lexiconElement->autocomplete_itemtype_id = 18; //don't restrict to certain item type\n $lexiconElement->autocomplete_collection_id = 1; //but only look in collection volksverhalen\n $lexiconElement->field_scroll = false;\n $lexiconElement->save();\n\n $lexiconElement = new AnnotationTypeElement;\n $lexiconElement->type_id = $lexiconType->id;\n $lexiconElement->element_id = 65;\n $lexiconElement->prompt = 'De hoofdlocatie waar te tekst zich afspeelt, of over gaat';\n $lexiconElement->english_name = 'place of action';\n $lexiconElement->order = 29;\n $lexiconElement->tool_id = false; //add tool when available\n $lexiconElement->score_slider = false;\n $lexiconElement->long_text = false;\n $lexiconElement->html = false;\n $lexiconElement->repeated_field = true;\n $lexiconElement->date_picker = false;\n $lexiconElement->date_range_picker = false;\n $lexiconElement->autocomplete = true; //automplete, yes please\n $lexiconElement->autocomplete_main_id = 65; //look in identifiers\n $lexiconElement->autocomplete_extra_id = 0; //and show the titles\n $lexiconElement->autocomplete_itemtype_id = 18; //restrict to certain item type\n $lexiconElement->autocomplete_collection_id = 1; //but only look in collection volksverhalen\n $lexiconElement->field_scroll = false;\n $lexiconElement->save();\n\n $lexiconElement = new AnnotationTypeElement;\n $lexiconElement->type_id = $lexiconType->id;\n $lexiconElement->element_id = 94;\n $lexiconElement->prompt = 'De hoeveelheid woorden in de tekst';\n $lexiconElement->english_name = 'word count';\n $lexiconElement->order = 32;\n $lexiconElement->tool_id = $toolCount->id;\n $lexiconElement->score_slider = false;\n $lexiconElement->long_text = false;\n $lexiconElement->html = false;\n $lexiconElement->repeated_field = false;\n $lexiconElement->date_picker = false;\n $lexiconElement->date_range_picker = false;\n $lexiconElement->autocomplete = false;\n $lexiconElement->autocomplete_main_id = false;\n $lexiconElement->autocomplete_extra_id = false;\n $lexiconElement->autocomplete_itemtype_id = false;\n $lexiconElement->autocomplete_collection_id = false;\n $lexiconElement->field_scroll = false;\n $lexiconElement->save();\n \n $lexiconElement = new AnnotationTypeElement;\n $lexiconElement->type_id = $lexiconType->id;\n $lexiconElement->element_id = 95;\n $lexiconElement->prompt = 'De klasse van de hoeveelheid woorden in de tekst';\n $lexiconElement->english_name = 'word count group';\n $lexiconElement->order = 33;\n $lexiconElement->tool_id = $toolCountclass->id;\n $lexiconElement->score_slider = false;\n $lexiconElement->long_text = false;\n $lexiconElement->html = false;\n $lexiconElement->repeated_field = false;\n $lexiconElement->date_picker = false;\n $lexiconElement->date_range_picker = false;\n $lexiconElement->autocomplete = false;\n $lexiconElement->autocomplete_main_id = false;\n $lexiconElement->autocomplete_extra_id = false;\n $lexiconElement->autocomplete_itemtype_id = false;\n $lexiconElement->autocomplete_collection_id = false;\n $lexiconElement->field_scroll = false;\n $lexiconElement->save();\n }", "protected function initializeMandatoryTypes()\n {\n $this->mandatoryTypes = array(Type::TARRAY, Type::OBJECT);\n }", "public function defineTypo3RequestTypes() {}", "protected abstract function joinTypes();", "public function canAddFieldsToAllTCATypesAfterExistingOnes() {}", "function limitToTypes($types) {\r\n $this->typesLimit = array();\r\n }", "public function setup_types()\n {\n }", "public function manage_linked_taxonomy_caps() {\n\t\tforeach ( $this->linked_types as $post_type => $tax ) {\n\t\t\tif ( ! empty( $tax ) ) {\n\t\t\t\tif ( is_array( $tax ) ) {\n\t\t\t\t\tforeach ( $tax as $tax_slug ) {\n\t\t\t\t\t\t$this->set_capabilities( $tax_slug );\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t$this->set_capabilities( $tax );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public function setAllowMult($allowMult) {}", "function register_core_block_types_from_metadata()\n {\n }", "abstract protected function initializeMappedTypes();", "function setMixedAttributeTypes ($mixedAttributeTypes) {\r\n $this->_mixedAttributeTypes = (bool)$mixedAttributeTypes;\r\n }", "public function setSubtypeAsRequired()\n {\n $this->subtypeRequired = true;\n }", "public function extends()\n {\n $this->addRule('check_type', function($attr, $value){\n if(!$value) return false;\n $types = array_merge(['url','route'], array_keys($this->refTypes));\n return in_array($value, $types);\n });\n\n /* kiem tra route */\n $this->addRule('check_route', function($attr, $value){\n if(!$value) return false;\n if(Router::getByName($value)) return true;\n return false;\n });\n\n // kiem tra ref id\n $this->addRule('check_ref_id', function($attr, $value){\n if(!$value) return false;\n if(array_key_exists($this->type, $this->refTypes)){\n $result = app($this->refTypes[$this->type])->First(['id' => $value]);\n return $result ? true : false;\n }\n return false;\n });\n }", "abstract protected function are_skills_compatible(array $attArray, array $defArray);", "protected function bootTypes()\n {\n $configTypes = config('graphql.types');\n foreach ($configTypes as $name => $type) {\n if (is_numeric($name)) {\n $this->app['graphql']->addType($type);\n } else {\n $this->app['graphql']->addType($type, $name);\n }\n }\n }", "private function addTypes(ContainerBuilder $container)\n {\n if (!$container->has('prezent_grid.extension.bundle')) {\n return;\n }\n\n $types = [];\n foreach ($container->findTaggedServiceIds('prezent_grid.element_type') as $id => $tags) {\n $types[] = new Reference($id);\n }\n\n $extensions = [];\n foreach ($container->findTaggedServiceIds('prezent_grid.element_type_extension') as $id => $tags) {\n $extensions[] = new Reference($id);\n }\n\n $container\n ->findDefinition('prezent_grid.extension.bundle')\n ->replaceArgument(0, $types)\n ->replaceArgument(1, $extensions);\n }", "function tbx_add_custom_types( $query ) {\n if( is_category() || is_tag() && empty( $query->query_vars['suppress_filters'] ) ) {\n $query->set( 'post_type', array(\n 'post', 'lesson', 'source'\n\t\t));\n\t return $query;\n\t}\n}", "public function canAddFieldsToTCATypeAndReplaceExistingOnes() {}", "private function installMultipleCustomPostTypes()\n {\n if (! file_exists($this->rootPath.'/config/types/')) {\n return;\n }\n\n $files = glob($this->rootPath.'/config/types/*.json');\n foreach ($files as $file) {\n $type = JSONParser::parse(file_get_contents($file));\n $name = (isset($type['name'])) ? $type['name'] : null;\n register_post_type($name, $type);\n }\n\n $files = glob($this->rootPath.'/config/types/*.php');\n foreach ($files as $file) {\n $type = include $file;\n $name = (isset($type['name'])) ? $type['name'] : null;\n register_post_type($name, $type);\n }\n }", "protected function registerAdditionalNodeTypesFromConfiguration() {}", "protected function traverseTypes(): void\n {\n if (isset($this->definition->tca['types']) && is_array($this->definition->tca['types'])) {\n foreach ($this->definition->tca['types'] as $type => $def) {\n $this->registerHandlerDefinitions($this->definition->tableName, $def);\n }\n }\n }", "function net_liggitt_add_mime_types($mimes) {\n $mimes = array_merge($mimes, array(\n 'epub|mobi' => 'application/octet-stream'\n ));\n return $mimes;\n}", "public function getConstraintTypes() {}", "public function addMatchTypes($matchTypes)\n {\n $this->matchTypes = Arrayify::merge($this->matchTypes,$matchTypes);\n }", "function set_attributes_data_types(&$table, $attributes)\n{\n\tforeach($attributes as $key_attr => $attribute)\n\t{\n\t\t$key_attr = mb_strtolower($key_attr, 'UTF-8');\n\n\t\tif(isset($table[$key_attr]))\n\t\t\t$table[$key_attr] = compare_data_type($table[$key_attr], recognize_data_type($attribute)); //if there already is set data type compare old and now to get the highest one\n\t\telse\n\t\t\t$table[$key_attr] = recognize_data_type($attribute); // if data type not set, recognize it\n\n\t\tif($table[$key_attr] == \"NTEXT\") // setting an attributes data type requires a conversion of ntext type to nvarchar\n\t\t\t$table[$key_attr] = \"NVARCHAR\";\n\t}\n}", "public function addConstraints(): void\n\t{\n\t\tif (static::$constraints) {\n\t\t\t$this->addEagerConstraints([$this->getParent()]);\n\t\t}\n\t}", "public function testIsMultiTypeInvalid()\n {\n $this->assertFalse($this->annotation->isMultiValuedType(Field::TYPE_BOOLEAN));\n }", "public function canAddFieldsToAllTCATypesBeforeExistingOnes() {}", "public function addConstraints()\n {\n $this->setJoin ()->setWhere ();\n }", "function wp_apply_typography_support($block_type, $block_attributes)\n {\n }", "public function canAddFieldsToAllTCATypesRespectsPalettes() {}", "private function registerAttributeCastingList(): void\n {\n // Loops through all the class' methods, and loads the necessary ones in\n // the corresponding containers.\n foreach (\\get_class_methods($this) as $method) {\n // Loads casting mutators.\n if (\\strpos($method, self::$CASTPREFIX) === 0 && \\strlen($method) > \\strlen(self::$CASTPREFIX)) {\n $this->castList[] = $method;\n }\n }\n }", "public function register_post_types() {\n\n\t}", "public function canAddFieldsToTCATypeAfterExistingOnes() {}", "function wp_apply_alignment_support($block_type, $block_attributes)\n {\n }", "abstract protected function configureDataConstraints(): array;", "public function setDefaultTypeData(){\n if(\n is_object($this->source) &&\n is_object($this->target)\n ){\n if(\n $this->source->isAbyss() ||\n $this->target->isAbyss()\n ){\n $this->scope = 'abyssal';\n $this->type = ['abyssal'];\n }else{\n $routeController = new Route();\n $route = $routeController->searchRoute($this->source->systemId, $this->target->systemId, 1);\n\n if($route['routePossible']){\n $this->scope = 'stargate';\n $this->type = ['stargate'];\n }else{\n $this->scope = 'wh';\n $this->type = ['wh_fresh'];\n }\n }\n }\n }", "public function addPostTypeSuport( $posttype=array()){\n\t\tif( is_array($posttype) ){\n\t\t\t$this->posttype = $posttype;\n\t\t}\n\t}", "public function install_pt_fieldtypes()\n {\n // Run all the time, make sure these tables are updated.\n $field_types = array('matrix', 'playa', 'assets');\n\n require_once PATH_THIRD .'publisher/libraries/Publisher/Publisher_fieldtype.php';\n\n foreach ($field_types as $field_type)\n {\n $class_name = 'Publisher_'. $field_type;\n\n // Initialize the fieldtype class, and set necessary properties\n require_once PATH_THIRD .'publisher/libraries/Publisher/fieldtypes/'. $class_name .'.php';\n ee()->$class_name = new $class_name();\n ee()->$class_name->install();\n }\n\n ee()->session->set_flashdata('message_success', lang('publisher_install_pt_success'));\n ee()->publisher_helper_url->redirect(ee()->publisher_helper_cp->mod_link('settings'));\n }", "function wp_register_alignment_support($block_type)\n {\n }", "public function setTypes(){\n $this->var = false;\n $this->symb = false;\n $this->label = false;\n $type = '';\n \n //Ulozi postupne do jednotlivych promennych jestli dany argument odpovida nejakemu danemu vzoru a pote v podminkach rozhodneme typ argumentu (ktery na konci funkce ulozime do typu) a take jestli je argument var, symb, label nebo type\n $var = preg_match(\"/^(TF|LF|GF)@((\\p{L}|-|[_$&%*!?])(\\p{L}|-|[_$&%*!?]|[0-9])*)$/u\", $this->arg);\n $int = preg_match(\"/^int@([\\+\\-])?([0-9])*$/u\", $this->arg);\n $bool = preg_match(\"/^bool@(true|false)$/u\", $this->arg);\n $string = preg_match(\"/^string@(\\p{L}|[^(\\w\\\\\\)]|\\d|[_]|\\\\\\\\([0-9][0-9][0-9]))*$/u\", $this->arg);\n $nil = preg_match(\"/^nil@nil$/u\", $this->arg);\n $label = preg_match(\"/^((\\p{L}|[_$&%*!?])(\\p{L}|-|[_$&%*!?]|[0-9])*)$/u\", $this->arg);\n if($var){\n $type = \"var\";\n $this->var = true;\n $this->symb = true;\n }\n if($int){\n $type = \"int\";\n $this->symb = true;\n }\n if($bool){\n $type = \"bool\";\n $this->symb = true;\n }\n if($string){\n $type = \"string\";\n $this->symb = true;\n }\n if($nil){\n $type = \"nil\";\n $this->symb = true;\n }\n if($label){\n if(preg_match(\"/^(int|bool|string)$/u\", $this->arg)){\n $this->type_type = true;\n }\n $type = \"label\";\n $this->label = true; \n }\n if(!($var||$int||$bool||$string||$nil||$label)){\n fwrite(STDERR, \"CHYBA \".ERROR_23.\" - spatny argument\\n\");\n exit(ERROR_23);\n }\n $this->setType($type);\n }", "private function _createBannerTypes() {\n $types = [\n [\n 'width' => 200,\n 'height' => 200\n ],\n [\n 'width' => 240,\n 'height' => 400\n ],\n [\n 'width' => 250,\n 'height' => 250\n ],\n [\n 'width' => 250,\n 'height' => 360\n ],\n [\n 'width' => 300,\n 'height' => 250\n ],\n [\n 'width' => 336,\n 'height' => 280\n ],\n [\n 'width' => 120,\n 'height' => 600\n ],\n [\n 'width' => 160,\n 'height' => 600\n ],\n [\n 'width' => 300,\n 'height' => 1050\n ],\n [\n 'width' => 468,\n 'height' => 60\n ],\n [\n 'width' => 728,\n 'height' => 90\n ],\n [\n 'width' => 930,\n 'height' => 180\n ],\n [\n 'width' => 970,\n 'height' => 90\n ],\n [\n 'width' => 980,\n 'height' => 120\n ]\n ];\n\n foreach ($types as $type) {\n $typeModel = new BannerType;\n $typeModel->fill($type);\n $typeModel->save();\n }\n }", "public function __construct()\n {\n parent::__construct();\n $this->setType('smile_virtualcategories/rule_condition_combine');\n }", "abstract public function setConstraints($objConstraints);", "function add_bustype($text)\n {\n $query=$this->db2->query(\"INSERT INTO buses_type VALUES ('','$text')\");\n if($query)\n return 1;\n else\n return 0;\n }", "public static function doTypesOverlap(\\GraphQL\\Type\\Schema $schema, \\GraphQL\\Type\\Definition\\CompositeType $typeA, \\GraphQL\\Type\\Definition\\CompositeType $typeB)\n {\n }", "public function installCustomPostTypes()\n {\n $this->installCustomPostTypesFromJSON();\n $this->installCustomPostTypesFromPHP();\n $this->installMultipleCustomPostTypes();\n }", "protected function addForeignKeyConstraints()\n {\n \n \n }", "function theme_add_custom_types_to_tax( $query ) {\n\tif( is_category() || is_tag() && empty( $query->query_vars['suppress_filters'] ) ) {\n\n\t// Get all your post types\n\t$post_types = get_post_types();\n\n\t$query->set( 'post_type', $post_types );\n\t\treturn $query;\n\t}\n}", "function register_post_types(){\n\t\t\trequire('lib/custom-types.php');\n\t\t}", "public function registerPostTypes()\n {\n // Get the post types from the config.\n $postTypes = config('post-types');\n\n $translater = new Translater($postTypes, 'post-types');\n $postTypes = $translater->translate([\n '*.label',\n '*.labels.*',\n '*.names.singular',\n '*.names.plural',\n ]);\n\n // Iterate over each post type.\n collect($postTypes)->each(function ($item, $key) {\n\n // Check if names are set, if not keep it as an empty array\n $names = $item['names'] ?? [];\n\n // Unset names from item\n unset($item['names']);\n\n // Register the extended post type.\n register_extended_post_type($key, $item, $names);\n });\n }", "private function registerTypes(ContainerInterface $container): void\n {\n if (self::$areTypesRegistered) {\n return;\n }\n\n $applicationConfig = $container->has('config') ? $container->get('config') : [];\n $typesConfig = $applicationConfig['doctrine']['types'] ?? [];\n self::$areTypesRegistered = true;\n\n foreach ($typesConfig as $name => $className) {\n if (Type::hasType($name)) {\n Type::overrideType($name, $className);\n continue;\n }\n\n Type::addType($name, $className);\n }\n }", "function register_post_types() {\n\t}", "function register_post_types() {\n\t}", "private function setRequirements()\n {\n if (! $this->iataClassification == self::IATA_NONE) {\n $this->setBatteryDecRequired();\n }\n\n // Set the appropriate sticker for chemistry\n if ($this->isLiIonClass()) {\n $this->setStickerLiIonRequired();\n } else if ($this->isLiMetalClass()) {\n $this->setStickerLimetalRequired();\n }\n\n // Lithium metal batteries on their own require additional stickers\n if ($this->isLiMetalOnlyClass()) {\n $this->setStickerForbiddenRequired();\n $this->setStickerCargoOnlyRequired();\n }\n\n // Large batteries require class 9 hazard stickers\n if ($this->isHazardClass()) {\n $this->setStickerHazardRequired();\n }\n }", "public function addModuleTypeRule($mt){\n\t\t$rule = new category_module_type();\n\t\t$rule->create($this->getID(), $mt);\n\t\t$rule->save();\n\t\t$this->rules['module_types'][] = $rule;\n\t}", "private function SetMessageType() {\n\t if(count($this->attachment) < 1 && strlen($this->AltBody) < 1) {\n\t $this->message_type = 'plain';\n\t } else {\n\t if(count($this->attachment) > 0) {\n\t $this->message_type = 'attachments';\n\t }\n\t if(strlen($this->AltBody) > 0 && count($this->attachment) < 1) {\n\t $this->message_type = 'alt';\n\t }\n\t if(strlen($this->AltBody) > 0 && count($this->attachment) > 0) {\n\t $this->message_type = 'alt_attachments';\n\t }\n\t }\n \t}", "public function attributeTypes(): TypeCollection;", "public function initPostType(){\n\t\tforeach( $this->posttype as $pt ){\n\t\t\t$pt = WPO_FRAMEWORK_POSTTYPE.$pt.'.php';\n\t\t\tif( is_file($pt) ){\n\t\t\t\trequire_once($pt);\n\t\t\t}\n\t\t}\n\t}", "public function enableTypeChecks() {\n $this->doTypeChecks = true;\n }", "public function registerMediaCollections()\n {\n $this->addMediaCollection('vendor_kit')->singleFile();\n $this->addMediaCollection('banner');\n }", "public function setTypes($types){\n\t\tif(!is_array($types)) return;\n\t\t\n\t\tforeach($types as $field_name => $type){\n\t\t\tif(isset($this->Fields[$field_name])){\n\t\t\t\t$this->Fields[$field_name]->type = $type;\n\t\t\t}\n\t\t}\n\t}", "public function registerMediaCollections()\n {\n \tCollection::make($this->medias)->each(function($config, $name) { \n tap($this->addMediaCollection($name), function($collection) use ($config) {\n $collection->useDisk($config['disk'] ?? 'armin.file');\n $collection->useFallbackUrl(schema_placeholder('main'));\n\n if(! isset($config['multiple']) || $config['multiple'] === false) {\n $collection->singleFile();\n }\n\n $collection->registerMediaConversions(function(Media $media) use ($config) {\n $this->schemas($config['schemas'] ?? '*')->each([\n $this, 'registerSchemaConversion'\n ]); \n });\n }); \n \t});\n }", "public static function register_post_types() {}", "function namespace_add_custom_types( $query ) {\n\t// if( is_category() || is_tag() && empty( $query->query_vars['suppress_filters'] ) ) {\n\tif ( is_category() || is_tag() ) {\n\t\t$query->set( 'post_type', array( 'post', 'forums', 'author' ) );\n\t\treturn $query;\n\t}\n}", "function register_post_types()\n {\n }", "function add_custom_types_to_tax( $query ) {\nif( is_category() || is_tag() && empty( $query->query_vars['suppress_filters'] ) ) {\n\n// Get all your post types\n$post_types = get_post_types();\n\n$query->set( 'post_type', $post_types );\nreturn $query;\n}\n}", "abstract public function register_type();", "function any_ptype_on_tag($request) {\n if ( isset($request['tag']) )\n $request['post_type'] = 'any';\n\n return $request;\n}", "function register_post_types(){\n\t\trequire('lib/custom-types.php');\n\t}", "protected function AssignPageTypeFields() {\n $this->AddField('showmap', self::DT_BOOLEAN, true);\n $this->AddField('mapaddress', self::DT_STRING);\n }", "function register_post_types(){\n }", "function register_post_types(){\n }", "public function addVirtualAttributesTypes(Varien_Event_Observer $observer)\n {\n $response = $observer->getEvent()->getResponse();\n $types = $response->getTypes();\n $attributes = Mage::getConfig()->getNode('global/virtual_attributes_types')->asArray();\n\n foreach ($attributes as $attributeCode => $attributeOptions) {\n $types[] = array(\n 'value' => $attributeCode,\n 'label' => Mage::helper('smile_virtualattributes')->__($attributeOptions['label']),\n 'hide_fields' => isset($attributeOptions['hide_fields']) ? array_keys($attributeOptions['hide_fields']) : array(),\n 'disabled_types' => isset($attributeOptions['disabled_types']) ? array_keys($attributeOptions['disabled_types']) : array()\n );\n }\n\n $response->setTypes($types);\n }", "function add_custom_types_to_tax( $query ) {\n\tif( is_category() || is_tag() && empty( $query->query_vars['suppress_filters'] ) ) {\n\t\t// Get all your post types\n\t\t$post_types = get_post_types();\n\t\t$query->set( 'post_type', $post_types );\n\t\treturn $query;\n\t}\n}", "public function register_post_types() {\n\n\t\t// FAQ\n\t\tif (!MKB_Options::option('disable_faq')) {\n\t\t\t$this->register_faq_cpt();\n\t\t\t$this->register_faq_taxonomy();\n\t\t}\n\t}", "public function get_desired_types();", "public function addConstraints()\n {\n $throughValue = $this->farChild[$this->secondKey];\n\n $this->performJoin();\n\n if (static::$constraints) {\n $this->query->where($this->getQualifiedSecondOwnerKeyName(), '=', $throughValue);\n }\n\n }", "private function applyTypesToParams(array &$words): void\n {\n $rules = $this->rules;\n $field = &$words[\\key($words)];\n\n //needed\n $number = new Number();\n\n //word variable need reference for point to value\n foreach ($field as &$word) {\n $types = $rules[$word[0]]['args_type'];\n\n foreach ($types as $key => $type) {\n $param = &$word[$key + 1];\n\n if ($type === 'number') {\n $number->sanitize($param);\n continue;\n }\n\n \\settype($param, $type);\n }\n }\n }", "abstract protected function initDataTypes();", "public function canAddFieldsToTCATypeBeforeExistingOnes() {}", "public function testGenericPlusGeneric(): void\n {\n $this->assertEquals(\n $this->createGenericArray(),\n $this->unify(\n $this->createGenericArray(),\n $this->createGenericArray(),\n )\n );\n }", "function template_preprocess_multibanner_add_list(&$variables) {\n $variables['bundles'] = [];\n if (!empty($variables['content'])) {\n foreach ($variables['content'] as $bundle) {\n /** @var \\Drupal\\multibanner\\MultibannerBundleInterface $bundle */\n $variables['bundles'][$bundle->id()] = [\n 'type' => $bundle->id(),\n 'add_link' => Link::createFromRoute($bundle->label(), 'multibanner.add', ['multibanner_bundle' => $bundle->id()]),\n 'description' => [\n '#markup' => $bundle->getDescription(),\n ],\n ];\n }\n }\n}", "public function setEncTypeMultipart($flag = false){\n\t\tif ($flag){\n\t\t\t$this->setAttrib('enctype', Zend_Form::ENCTYPE_MULTIPART);\n\t\t}\n\t}", "function acf_parse_types($array)\n{\n}", "protected function attachAll($disposition_type, $boundary)\n {\n }", "public function addType($type);", "private function registerDirectives()\n {\n $directives = require base_path('/Neputer/Supports/directives.php');\n\n collect($directives)->each(function ($item, $key) {\n Blade::directive($key, $item);\n });\n }", "private function setupBlades()\n {\n $directives = [\n 'Alert',\n 'Selected',\n ];\n\n foreach ($directives as $directive) {\n Blade::directive(strtolower($directive), ['App\\Support\\Blades\\\\' . $directive, 'callback']);\n }\n }", "public function register_union_type(string $type_name, array $config)\n {\n }", "public function registerTypeAbbreviation(string $abbreviation, string $schemaName, string $typeName): void\n {\n $this->typeAbbreviations[$abbreviation] = [$schemaName, $typeName];\n }", "public function checkType() {\n\t\t//Because the DB gave us a string for the card type, we must\n\t\t//ensure that they are strings and compare accordingly.\n\t\tif (strcmp($this->getTypeAsStr(), \"aspect\")==0) {\n\t\t\t$this->boostInfo = 0;\n\t\t\t$this->magnitude = 0;\n\t\t}\n\t}", "abstract protected function listensTo($typeName);", "public function wpe_bsp_post_interface(){\n\t\t$this->post_types = get_post_types(array('public' => true), 'names');\n\t\tforeach ( $this->post_types as $screen ) {\n\t\t\tadd_meta_box( \n\t\t\t'wpe-bsp-inline-box',\n\t\t\t'BSP Inline Script & Styles',\n\t\t\tarray($this, 'wpe_bsp_inline_post_box'),\n\t\t\t$screen,\n\t\t\t'advanced',\n\t\t\t'high'\n\t\t\t);\n\t\t\tadd_meta_box( \n\t\t\t'wpe-bsp-qi-box',\n\t\t\t'Blog Styles Pro Quick Insert',\n\t\t\tarray($this, 'wpe_bsp_quick_insert_menu'),\n\t\t\t$screen,\n\t\t\t'side',\n\t\t\t'high'\n\t\t\t);\n\t\t}\n\t}", "public function registerMediaCollections()\n {\n parent::registerMediaCollections();\n $this->addMediaCollection('illustrations')\n ->singleFile()\n ->acceptsMimeTypes(['image/jpeg', 'image/png'])\n ->registerMediaConversions(function (Media $media = null) {\n $this->addMediaConversion('cover')\n ->fit(Manipulations::FIT_CROP, 1140, 500)\n ->withResponsiveImages()\n ->keepOriginalImageFormat();\n $this->addMediaConversion('card')\n ->fit(Manipulations::FIT_CROP, 350, 250)\n ->keepOriginalImageFormat();\n });\n }" ]
[ "0.53010297", "0.47957143", "0.478128", "0.47369063", "0.47246414", "0.46746337", "0.46347138", "0.46068615", "0.45682663", "0.45575887", "0.45329982", "0.45073593", "0.44973552", "0.44582602", "0.44324362", "0.44234106", "0.4404387", "0.440422", "0.44008136", "0.43852946", "0.4371426", "0.4354642", "0.43477955", "0.43307015", "0.43261334", "0.43253282", "0.4321361", "0.43027174", "0.43012258", "0.4264971", "0.42552215", "0.42487714", "0.4247347", "0.42303863", "0.42122427", "0.42082396", "0.41785535", "0.41779163", "0.41776022", "0.41775903", "0.41756314", "0.41585356", "0.41521057", "0.4147869", "0.41392502", "0.41341445", "0.41335526", "0.41257873", "0.4108147", "0.41038874", "0.41001558", "0.40959188", "0.40844908", "0.40803698", "0.40800133", "0.4075831", "0.40700585", "0.4056939", "0.4056939", "0.4055823", "0.4052467", "0.40412125", "0.40294683", "0.4022161", "0.40214542", "0.4020891", "0.40175664", "0.40150675", "0.40121084", "0.40104", "0.40056106", "0.4003683", "0.39994785", "0.39905903", "0.3990005", "0.39887825", "0.39811596", "0.39714247", "0.3968277", "0.39664203", "0.39571276", "0.39546207", "0.39529303", "0.39495435", "0.39458534", "0.39419955", "0.39398068", "0.39392054", "0.3936511", "0.39308155", "0.39193535", "0.39192367", "0.39150763", "0.39147732", "0.39102712", "0.3905896", "0.39048046", "0.3903894", "0.39036408", "0.39009658" ]
0.72743404
0
Gets thumbnail image. Multibanner type plugin is responsible for returning URI of the generic thumbnail if no other is available. This functions should always return a valid URI.
public function thumbnail(MultibannerInterface $multibanner);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getThumbnail()\n {\n if ($this->getThumbnailUrl() !== false) {\n $url = $this->getThumbnailUrl();\n } else {\n $url = Path::child('/img/no-thumb.jpg');\n }\n\n return $url;\n }", "public function getThumbnailUrl();", "public function resolveThumbnailUrl();", "public function getThumbnailImg()\n\t{\n\t\t$this->thumbail_img_id = intval( get_post_thumbnail_id( $this->post->ID ) );\n\t\treturn has_post_thumbnail($this->post->ID) ? new Cltvo_Img( $this->thumbail_img_id) : NULL;\n\t}", "public function thumbnail()\n {\n if (null !== $this->_image) {\n return $this->_createImgTag($this->_image->thumbnail);\n }\n }", "public function getThumbnail() {\n return Mage::helper('landingpage/image')->getImageUrl($this->getData('thumbnail'));\n }", "public function getThumbnail($type = 'default')\n {\n $this->initialRequest();\n if (isset($this->item['snippet']['thumbnails'][$type]['url'])) {\n return $this->item['snippet']['thumbnails'][$type]['url'];\n }\n else {\n $this->onApiBadInterpretation(\"snippet.thumbnails.$type.url not found\");\n }\n }", "public function getMediumThumbnailImage()\n {\n return $this->getFilterImage(MediumThumbnail::identifier());\n }", "public function thumbnail()\n {\n return optional($this->thumb);\n }", "public function getThumbnail(){\n\t\tif($this->imagickSupport){\n\t\t\t//Generate thumbnail as Imagick library\n\t\t\t$this->generateThumbnailImagick(/* ARGS */);\n\t\t}else if($this->imagickCmdSupport){\n\t\t\t//Generate thumbnail as ImageMagick program\n\t\t\t$this->generateThumbnailCmd(/* ARGS */);\n\t\t}else if($this->gdSupport){\n\t\t\t//Generate thumbnail as GD library\n\t\t\t$this->generateThumbnailGD();\n\t\t}else{\n\t\t\t/* Fail! */\n\t\t\treturn false;\n\t\t}\n\t}", "private function get_thumbnail( $id = null ) {\n\n\tif( $id ) {\n\t $current_img = wp_get_attachment_image_src( intval( $id ), 'thumbnail' );\n\t if( $current_img ) {\n return $current_img[0];\n }\n if( has_post_thumbnail() ) {\n return $this->get_post_thumbnail_url( get_the_ID() );\n /*\n\t\t$thumbnail_id = get_post_thumbnail_id( get_the_ID() );\n if( $thumbnail_id ) {\n $thumbnail = wp_get_attachment_image_src( $thumbnail_id , 'thumbnail' );\n return $thumbnail[0];\n }\n */\n }\n }\n return BASEPACK_PLUGIN_URL . '/assets/images/image.png';\n }", "public function getThumbnailUrl()\n {\n if (has_post_thumbnail($this->id)) {\n return $this->thumbnail = wp_get_attachment_url(get_post_thumbnail_id($this->id));\n }\n\n return false;\n }", "public function get_thumbnail()\n {\n }", "public function getThumbnail() {\r return $this->Image()->CMSThumbnail();\r }", "public function getDefaultThumbnail();", "public function getThumbnailAttribute()\n {\n /** @var Photo $thumbPhoto */\n try {\n $thumbPhoto = ($this->cover_id != null) ? Photo::find($this->cover_id) : $this->first_related_destination->avatar;\n\n return $thumbPhoto->src;\n } catch (\\Exception $e) {\n return Photo::samplePhotoUrl();\n }\n }", "public function getThumbnailResource() {\n\t\treturn $this->thumbnailResource;\n\t}", "public function thumbnail()\n {\n return $this->media->where('id', $this->thumbnail_id)->first();\n }", "abstract public function get_thumbnail_source_path();", "public function getThumbnail()\n {\n return $this->formattedData['thumbnail'];\n }", "public function thumbnail()\n\t{\n\t\treturn $this->media()->where('id', $this->thumbnail_id)->first();\n\t}", "public function getImageUrl()\n {\n return $this->info->thumbnail_url ? $this->info->thumbnail_url : null;\n }", "public function get_Thumbnail () {\r\n\t\t$id = $this->id;\r\n\t\t// Some images may not exist according to the resolution\r\n\t\treturn array(\r\n\t\t\t0 => \"http://img.youtube.com/vi/\".$id.\"/maxresdefault.jpg\", // High Definition (1920×1080 pixels)\r\n\t\t\t1 => \"http://img.youtube.com/vi/\".$id.\"/hqdefault.jpg\", // Standard Definition (640×480 pixels)\r\n\t\t\t\r\n\t\t\t2 => \"http://img.youtube.com/vi/\".$id.\"/0.jpg\", // Thumbnail (480×360 pixels)\r\n\t\t\t\r\n\t\t\t3 => \"http://img.youtube.com/vi/\".$id.\"/mqdefault.jpg\", // Medium quality (320×180 pixels)\r\n\t\t\t4 => \"http://img.youtube.com/vi/\".$id.\"/default.jpg\", // Normal quality (120×90 pixels)\r\n\t\t\t\r\n\t\t\t5 => \"http://img.youtube.com/vi/\".$id.\"/1.jpg\", // First image (120×90 pixels)\r\n\t\t\t6 => \"http://img.youtube.com/vi/\".$id.\"/2.jpg\", // 2nd image (120×90 pixels)\r\n\t\t\t7 => \"http://img.youtube.com/vi/\".$id.\"/3.jpg\", // Last image (120×90 pixels)\r\n\t\t);\r\n\t}", "private function thumb()\n {\n $preview = array('png', 'jpg', 'gif', 'bmp');\n\n $publicBaseUrl = 'packages/spescina/mediabrowser/src/img/icons/';\n\n if ($this->folder)\n {\n if ($this->back)\n {\n $icon = 'back';\n }\n else\n {\n $icon = 'folder';\n }\n\n $url = $publicBaseUrl . $icon . '.png';\n }\n else\n {\n if (in_array($this->extension, $preview))\n {\n $url = $this->path;\n }\n else\n {\n $url = $publicBaseUrl . $this->extension . '.png';\n }\n }\n\n return $url;\n }", "function wgom_post_thumbnail_url() {\n\tif (has_post_thumbnail()) {\n\t\t$post = get_post(null);\n\t\t$post_thumbnail_id = get_post_thumbnail_id($post);\n\t\t$size = apply_filters('post_thumbnail_size', 'post-thumbnail', $post->ID);\n\t\tif ($post_thumbnail_id) {\n\t\t\t$image_src = wp_get_attachment_image_src($post_thumbnail_id, $size, false);\n\t\t\tif ($image_src) {\n\t\t\t\t$image_url = $image_src[0];\n\t\t\t\treturn $image_url;\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t\t// This is the WGOM extension part.\n\t\t$image_src = wgom_video_post_featured_image(false);\n\t\treturn $image_src;\n\t}\n\treturn \"\";\n}", "abstract public function get_custom_thumbnail( $size = 'thumb' );", "public function getThumbnailUrl()\n\t{\n if ($about = $this->getAbout()) {\n \t$ci =& get_instance();\n $ci->load->config('dir');\n $upload_path = $ci->config->item('upload_dir');\n\n\t\t\t$path = $upload_path . 'media/thumbnails/' . $about->photo; \n\n if (!file_exists($path) || $about->photo == '') {\n $url = base_url().BASE_IMG . 'user-photo.jpg';\n } else {\n $url = site_url($path);\n }\n }\t\n\n return $url;\n\t}", "function getThumbUrl($size,$post_id) {\n if (!isset($size)) {\n $size = 'full';\n }\n $thumb = wp_get_attachment_image_src(get_post_thumbnail_id($post_id), $size);\n if($thumb[0] != \"\") {\n return $thumb[0];\n }\n}", "function getThumbnail()\n\t{\n\t\t$id= FormUtil :: getPassedValue('id', isset ($args['id']) ? $args['id'] : null, 'GET');\n\t\t$width= FormUtil :: getPassedValue('width', isset ($args['width']) ? $args['width'] : null, 'GET');\n\t\tif (!SecurityUtil :: checkPermission('crpLicense::License', '::', ACCESS_READ))\n\t\t\tpnShutDown();\n\n\t\t$file= $this->dao->getFile($id, 'image', true);\n\t\t$modifiedDate= $this->dao->getLicenseDate($id, 'lu_date');\n\n\t\tif (!(is_numeric($width) && $width > 0))\n\t\t\t$width= pnModGetVar('crpLicense', 'image_width');\n\t\t$params['width']= $width; //\t$params['append_ghosted']=1;\n\t\t$params['modifiedDate']= $modifiedDate;\n\n\t\tcrpLicense :: imageGetThumbnail($file['binary_data'], $file['name'], $file['content_type'], $params);\n\t}", "public function getThumbnail() {\n\n if (file_exists($this->getUploadDir() . '/min_' . $this->path)){\n return $this->getUploadDir() . '/min_' . $this->path;\n }else{\n return $this->getWebPath();\n }\n }", "function get_thumb_urlfull ($postID) {\n\n$image_id = get_post_thumbnail_id($post); \n\n$image_url = wp_get_attachment_image_src($image_id,'large'); \n\n$image_url = $image_url[0]; \n\nreturn $image_url;\n\n}", "public function handleThumbnail($type, $code = null) {\n switch ($type) {\n\n //YOUTUBE\n case \"1\":\n //https://i.ytimg.com/vi/Y75eFjjgAEc/default.jpg\n return \"https://i.ytimg.com/vi/$code/default.jpg\";\n\n //VIMEO\n case \"2\":\n //MEDIUM THUMBNAIL\n $data = simplexml_load_file(\"http://vimeo.com/api/v2/video/\" . $code . \".xml\");\n $thumbnail = $data->video->thumbnail_medium;\n return $thumbnail;\n }\n }", "public function getThumbnail()\n {\n return Kuler_Api::getThemeThumbnail((int) $this->ID);\n }", "function _getimage($thumb) {\n\tglobal $mg2;\n\n\t$ext\t= strrchr(trim($thumb), '.');\n\t$name = basename($thumb, $ext);\n\tif (substr($name, -6) === '_thumb') {\n\t\t$filename = substr($name, 0, -6) . $ext;\n\t\t$imageRC = $mg2->select($filename, $mg2->all_images, 6);\n\t}\n\treturn ((int)$imageRC[0][0])? (int)$imageRC[0][0]:-1;\t// -1. random image as icon\n}", "function get_post_thumbnail_url( $size = 'full', $post_id = false, $icon = false ) {\n if ( ! $post_id ) {\n $post_id = get_the_ID();\n }\n\n $thumb_url_array = wp_get_attachment_image_src(\n get_post_thumbnail_id( $post_id ), $size, $icon\n );\n return $thumb_url_array[0];\n}", "function get_post_thumbnail_url( $thumbnail = 'thumbnail', $post_id = null, $use_default = true ) {\n\tglobal $post;\n\n\tif ( ! $post_id )\n\t\t$post_id = $post->ID;\n\n\tif ( has_post_thumbnail() ) {\n\t\t$src = wp_get_attachment_image_src( get_post_thumbnail_id( $post_id ), $thumbnail );\n\t\treturn $src[0];\n\n\t} else {\n\t\treturn apply_filters( 'get_post_thumbnail_url', get_template_directory_uri() . '/post-thumbnail.png' );\n\n\t}\n\n}", "function get_video_thumbnail( $video_uri ) {\n\t$thumbnail_uri = '';\n\t// determine the type of video and the video id\n\t$video = parse_video_uri( $video_uri );\n\t// get youtube thumbnail\n\tif ( $video['type'] == 'youtube' )\n\t\t$thumbnail_uri = 'https://i.ytimg.com/vi/' . $video['id'] . '/maxresdefault.jpg';\n\t// get vimeo thumbnail\n\tif( $video['type'] == 'vimeo' )\n\t\t$thumbnail_uri = get_vimeo_thumbnail_uri( $video['id'] );\n\t// get default/placeholder thumbnail\n\tif( empty( $thumbnail_uri ) || is_wp_error( $thumbnail_uri ) )\n\t\t$thumbnail_uri = '';\n\t//return thumbnail uri\n\treturn $thumbnail_uri;\n}", "function wp_get_attachment_thumb_url($post_id = 0)\n {\n }", "function get_templ_image($post_id,$size='thumbnail') {\r\n\r\n\tglobal $post;\r\n\t/*get the thumb image*/\t\r\n\t$thumbnail = wp_get_attachment_image_src ( get_post_thumbnail_id ( $post_id ), $size ) ;\t\r\n\tif($thumbnail[0]!='')\r\n\t{\r\n\t\t$image_src=$thumbnail[0];\t\t\r\n\t}else\r\n\t{\r\n\t\t$post_img_thumb = bdw_get_images_plugin($post_id,$size); \r\n\t\t$image_src = $post_img_thumb[0]['file'];\r\n\t}\t\r\n\treturn $image_src;\r\n}", "abstract public function get_thumbnail( $variant = '', $size = 'thumb' );", "public function thumbnailURLProvider()\n {\n return [[\"a string\"]];\n }", "function _getThumbnail($sUrl, $aOptions) {\n // create cache directory if it doesn't exist\n $this->_createCacheDirectory();\n\n $aArgs = $this->_generateRequestArgs($aOptions);\n\n // Try to grab the thumbnail\n $iCacheDays = $this->cache_days + 0;\n if ($iCacheDays >= 0 && isset($aOptions['Embedded']) && $aOptions['Embedded'] != 1) {\n $aArgs['stwurl'] = $sUrl;\n $sImageUrl = $this->_getCachedThumbnail($aArgs);\n } else {\n // Get raw image data\n unset($aArgs['stwu']); // ONLY on \"Advanced\" method requests!! (not allowed on embedded)\n $aArgs['stwembed'] = 1;\n $aArgs['stwurl'] = $sUrl;\n $sImageUrl = urldecode(\"http://images.shrinktheweb.com/xino.php?\".http_build_query($aArgs,'','&'));\n }\n\n return $sImageUrl;\n }", "function thumb( ){\r\n\t\t// check if we need to find out what it is first\r\n\t\tif( $this->thumb == null ){\r\n\t\t\tif( $this->thumb_id == 0 ){\r\n\t\t\t\t// thumbnail not set, use random\r\n\t\t\t\t$items = $this->items();\r\n\t\t\t\tif( count( $items ) == 0 )\r\n\t\t\t\t\treturn null;\r\n\r\n\t\t\t\tshuffle( $items );\r\n\t\t\t\t$this->thumb = $items[0];\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\t$this->thumb = $this->getItem( $this->thumb_id );\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn $this->thumb;\r\n\t}", "function cws_get_image_url() {\n\n\tglobal $post;\n\n\t$thumbnail_url = wp_get_attachment_thumb_url( get_post_thumbnail_id( $post->ID ) );\n\t$image_url = print( $thumbnail_url );\n\n\treturn $image_url;\n\n}", "public function getThumbnail() {\r\n \r\n $mime = explode(\"/\", $this->mime); \r\n $thumbnail = sprintf(\"%s.thumbnail.jpg\", $this->filepath);\r\n \r\n if (file_exists(RP_DOWNLOAD_DIR . $thumbnail)) {\r\n $info = getimagesize(RP_DOWNLOAD_DIR . $thumbnail);\r\n \r\n return array(\r\n \"file\" => $thumbnail,\r\n \"width\" => $info[0],\r\n \"height\" => $info[1],\r\n \"size\" => filesize(RP_DOWNLOAD_DIR . $thumbnail)\r\n );\r\n }\r\n \r\n switch ($mime[0]) {\r\n case \"video\" : \r\n $avlib = self::getAVLib();\r\n \r\n exec(sprintf(\"%s -i %s%s -vsync 1 -r 1 -an -y -vframes 1 '%s%s'\", $avlib, RP_DOWNLOAD_DIR, $this->filepath, RP_DOWNLOAD_DIR, $thumbnail), $return);\r\n \r\n $info = getimagesize(RP_DOWNLOAD_DIR . $thumbnail);\r\n \r\n return array(\r\n \"file\" => $thumbnail,\r\n \"width\" => $info[0],\r\n \"height\" => $info[1],\r\n \"size\" => filesize(RP_DOWNLOAD_DIR . $thumbnail)\r\n );\r\n \r\n case \"image\" :\r\n $info = getimagesize(RP_DOWNLOAD_DIR . $this->filepath);\r\n \r\n return array(\r\n \"file\" => $this->filepath,\r\n \"width\" => $info[0],\r\n \"height\" => $info[1],\r\n \"size\" => filesize(RP_DOWNLOAD_DIR . $this->filepath)\r\n );\r\n }\r\n \r\n switch ($this->mime) {\r\n \r\n case \"application/pdf\" :\r\n case \"application/x-pdf\" : \r\n exec(\r\n sprintf(\r\n \"convert -thumbnail 800 -background white -alpha remove '%s%s'[0] %s%s\", \r\n RP_DOWNLOAD_DIR, \r\n $this->filepath, \r\n RP_DOWNLOAD_DIR, \r\n $thumbnail\r\n ), \r\n $return\r\n ); \r\n \r\n $info = getimagesize(RP_DOWNLOAD_DIR . $thumbnail);\r\n \r\n return array(\r\n \"file\" => $thumbnail,\r\n \"width\" => $info[0],\r\n \"height\" => $info[1],\r\n \"size\" => filesize(RP_DOWNLOAD_DIR . $thumbnail)\r\n );\r\n \r\n }\r\n \r\n return false;\r\n }", "public function getThumb($uri){\n $thumbs = $this->getThumbs($uri, 1);\n if(count($thumbs) == 0){\n return \"\";\n }else{\n return $thumbs[0];\n }\n }", "public function getThumbnailMedium() {\n if (file_exists($this->getUploadDir() . '/medium_' . $this->path)){\n return $this->getUploadDir() . '/medium_' . $this->path;\n }else{\n return $this->getWebPath();\n }\n }", "public function get_image($type, $identifier) { // type is the flag to realize whether it is course, category or user image. For course, user image Identifier is id but for category Identifier is image name\n\t\tif ($type == 'user_image') {\n\t\t\t// code...\n\t\t}elseif($type == 'course_thumbnail' ){\n\t\t\t$course_media_placeholders = themeConfiguration(get_frontend_settings('theme'), 'course_media_placeholders');\n\t\t\tif (file_exists('uploads/thumbnails/course_thumbnails/course_thumbnail_'.get_frontend_settings('theme').'_'.$identifier.'.jpg')){\n\t\t\t\treturn base_url().'uploads/thumbnails/course_thumbnails/course_thumbnail_'.get_frontend_settings('theme').'_'.$identifier.'.jpg';\n\t\t\t}else{\n\t\t\t\treturn base_url().$course_media_placeholders['course_thumbnail_placeholder'];\n\t\t\t}\n\t\t}elseif ($type == 'category_thumbnail') {\n\t\t\tif (file_exists('uploads/thumbnails/category_thumbnails/'.$identifier) && $identifier != \"\"){\n\t\t\t\treturn base_url().'uploads/thumbnails/category_thumbnails/'.$identifier;\n\t\t\t}else{\n\t\t\t\treturn base_url().'uploads/thumbnails/category_thumbnails/category-thumbnail.png';\n\t\t\t}\n\t\t}\n\t}", "public function getThumbSrc($params)\n {\n if ($apiResponse = $this->_getApiResponse($params)) {\n $thumbImg = (int)$params->get('rutube_thumb', 1);\n\n if ($thumbImg == self::THUMB_SMALL) {\n $thumbImg = 's';\n } elseif ($thumbImg == self::THUMB_MEDIUM) {\n $thumbImg = 'm';\n } elseif ($thumbImg == self::THUMB_LARGE) {\n $thumbImg = 'l';\n }\n\n $thumbUrl = $apiResponse->thumbnail_url;\n $thumbUrl = preg_replace('/\\?.*/', '', $thumbUrl);\n $thumbUrl .= '?size=' . $thumbImg;\n\n return $thumbUrl;\n }\n\n return false;\n }", "function get_correct_image_link_thumb($thumb_id='', $size='large'){\n\n if ($thumb_id != '') {\n $imagepermalink = wp_get_attachment_image_src($thumb_id, $size, true);\n } else {\n $imagepermalink[0] = get_stylesheet_directory_uri() . '/images/cover.jpg';\n }\n return $imagepermalink[0];\n}", "function get_thumb_src($post_id, $size = 'full'){\n\t$img_src = wp_get_attachment_image_src(get_post_thumbnail_id($post_id), $size);\n\tif ($img_src)\n\t\treturn $img_src[0];\n\telse\n\t\treturn false;\n}", "function getImageThumbnails( $pParamHash ) {\n\t\tglobal $gBitSystem, $gThumbSizes;\n\t\t$ret = NULL;\n\t\tif( !empty( $pParamHash['image_file_name'] )) {\n\t\t\t$thumbHash = array(\n\t\t\t\t'mime_image' => FALSE,\n\t\t\t\t'source_file' => $pParamHash['image_file_name']\n\t\t\t);\n\t\t\t$ret = liberty_fetch_thumbnails( $thumbHash );\n\t\t\t$ret['original'] = BIT_ROOT_URL.$pParamHash['image_file_name'];\n\t\t}\n\t\treturn $ret;\n\t}", "function psa_get_the_post_thumbnail_src( $size = 'thumbnail' ) {\n\tglobal $post;\n\t$image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), $size );\n\treturn $image[0];\n}", "function get_thumb ( $post_ID, $size = 'thumb-small' ){\n if ( function_exists( 'has_post_thumbnail' ) && has_post_thumbnail( $post_ID ) ) {\n return get_the_post_thumbnail( $post_ID, $size );\n } else {\n $thumbargs = array(\n 'post_type' => 'attachment',\n 'numberposts' => 1,\n 'post_status' => null,\n 'post_parent' => $post_ID,\n );\n $thumb = get_posts( $thumbargs );\n if ($thumb)\n return wp_get_attachment_image( $thumb[0]->ID, $size );\n }\n}", "function get_thumbnail($args) \n\t{\t\n\t\tglobal $post;\n\t\t\tif (has_post_thumbnail( $post->ID )):\n\t\t\t\treturn the_post_thumbnail($args);\n\t\t\telse:\n\t\t\t\techo '<img src=\"http://dummyimage.com/'.$args[0].'x'.$args[1].'/cccccc/686a82.gif&text='.$args[0].' x '.$args[1].'\" alt=\"placeholder+image\">';\n\t\t\tendif;\n\n\t}", "public function getImageUrl()\n {\n $baseUrl = $this->getBaseImageUrl();\n if ($baseUrl) {\n $dimensions = $this->getImageDimensions();\n $imageData = $this->getImageData();\n $width = Kwf_Media_Image::getResponsiveWidthStep($dimensions['width'],\n Kwf_Media_Image::getResponsiveWidthSteps($dimensions, $imageData['file']));\n $ret = str_replace('{width}', $width, $baseUrl);\n $ev = new Kwf_Component_Event_CreateMediaUrl($this->getData()->componentClass, $this->getData(), $ret);\n Kwf_Events_Dispatcher::fireEvent($ev);\n return $ev->url;\n }\n return null;\n }", "function get_default_thumb($size = NULL) {\n if ($size == \"small\" && file_exists(TEMPLATEDIR . '/images/thumbs/group_thumb-small.png')) {\n return TEMPLATEURL . '/images/thumbs/group_thumb-small.png';\n } elseif (file_exists(TEMPLATEDIR . '/images/thumbs/group_thumb.png') && !$size) {\n return TEMPLATEURL . '/images/thumbs/group_thumb.png';\n } else {\n if ($size == 'small')\n $this->get_default_thumb = GP_THUMB_URL . '/no_thumb-small.png';\n else\n $this->get_default_thumb = GP_THUMB_URL . '/no_thumb.png';\n return $this->get_default_thumb;\n }\n }", "function get_the_post_thumbnail_url( $post = null, $size = 'post-thumbnail' ) {\n\t$post_thumbnail_id = get_post_thumbnail_id( $post );\n\tif ( ! $post_thumbnail_id ) {\n\t\treturn false;\n\t}\n\treturn wp_get_attachment_image_url( $post_thumbnail_id, $size );\n}", "public function renderUri() {\n\t\tif ($this->isThumbnailPossible($this->getFile()->getExtension())) {\n\t\t\t$this->processedFile = $this->getFile()->process($this->getProcessingType(), $this->getConfiguration());\n\t\t\t$result = $this->processedFile->getPublicUrl(TRUE);\n\n\t\t\t// Update time stamp of processed image at this stage. This is needed for the browser to get new version of the thumbnail.\n\t\t\tif ($this->processedFile->getProperty('originalfilesha1') != $this->getFile()->getProperty('sha1')) {\n\t\t\t\t$this->processedFile->updateProperties(array('tstamp' => $this->getFile()->getProperty('tstamp')));\n\t\t\t}\n\t\t} else {\n\t\t\t$result = $this->getIcon($this->getFile()->getExtension());\n\t\t}\n\t\treturn $result;\n\t}", "function pl_the_thumbnail_url( $post_id, $size = false ){\n\t\n\tif( has_post_thumbnail($post_id) ){\n\t\t\n\t\t$img_data = wp_get_attachment_image_src( get_post_thumbnail_id( $post_id ), $size, false);\n\n\t\t$a['img'] = ($img_data[0] != '') ? $img_data[0] : '';\n\n\t\treturn $a['img'];\n\t\t\n\t} else\n\t\treturn false;\n}", "static function get_post_thumbnail( $size ) {\n\t\tglobal $post;\n\t\tif ( has_post_thumbnail() ) {\n\t\t\t$image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), $size );\n\t\t\treturn $image[0];\n\t\t} elseif ( get_field( 'no_thumbnail', 'option' ) ) {\n\t\t\t$image = get_field( 'no_thumbnail', 'option' );\n\t\t\treturn $image['sizes'][ $size ];\n\t\t}\n\t}", "public function APIGetThumbnailSrc($size='') {\n if(!empty($this->thumbnail)) {\n return URL::to('/').base64_decode($this->thumbnail);\n }\n }", "function dt_get_thumb_img( $opts = array() ) {\n\tglobal $post;\n\n\t$default_image = presscore_get_default_image();\n\n\t$defaults = array(\n\t\t'wrap' => '<a %HREF% %CLASS% %TITLE% %CUSTOM%><img %SRC% %IMG_CLASS% %SIZE% %ALT% %IMG_TITLE% /></a>',\n\t\t'class' => '',\n\t\t'alt' => '',\n\t\t'title' => '',\n\t\t'custom' => '',\n\t\t'img_class' => '',\n\t\t'img_title' => '',\n\t\t'img_description' => '',\n\t\t'img_caption' => '',\n\t\t'href' => '',\n\t\t'img_meta' => array(),\n\t\t'img_id' => 0,\n\t\t'options' => array(),\n\t\t'default_img' => $default_image,\n\t\t'prop' => false,\n\t\t'lazy_loading' => false,\n\t\t'lazy_class' => 'lazy-load',\n\t\t'lazy_bg_class' => 'layzr-bg',\n\t\t'echo' => true,\n\t);\n\t$opts = wp_parse_args( $opts, $defaults );\n\t$opts = apply_filters('dt_get_thumb_img-args', $opts);\n\n\t$original_image = null;\n\tif ( $opts['img_meta'] ) {\n\t\t$original_image = $opts['img_meta'];\n\t} elseif ( $opts['img_id'] ) {\n\t\t$original_image = wp_get_attachment_image_src( $opts['img_id'], 'full' );\n\t}\n\n\tif ( !$original_image ) {\n\t\t$original_image = $opts['default_img'];\n\t}\n\n\t// proportion\n\tif ( $original_image && !empty($opts['prop']) && ( empty($opts['options']['h']) || empty($opts['options']['w']) ) ) {\n\t\t$_prop = $opts['prop'];\n\t\t$_img_meta = $original_image;\n\n\t\tif ( $_prop > 1 ) {\n\t\t\t$h = (int) floor((int) $_img_meta[1] / $_prop);\n\t\t\t$w = (int) floor($_prop * $h );\n\t\t} else if ( $_prop < 1 ) {\n\t\t\t$w = (int) floor($_prop * $_img_meta[2]);\n\t\t\t$h = (int) floor($w / $_prop );\n\t\t} else {\n\t\t\t$w = $h = min($_img_meta[1], $_img_meta[2]);\n\t\t}\n\n\t\tif ( !empty($opts['options']['w']) && $w ) {\n\t\t\t$__prop = $h / $w;\n\t\t\t$w = intval($opts['options']['w']);\n\t\t\t$h = intval(floor($__prop * $w));\n\t\t} else if ( !empty($opts['options']['h']) && $h ) {\n\t\t\t$__prop = $w / $h;\n\t\t\t$h = intval($opts['options']['h']);\n\t\t\t$w = intval(floor($__prop * $h));\n\t\t}\n\n\t\t$opts['options']['w'] = $w;\n\t\t$opts['options']['h'] = $h;\n\t}\n\n\t$src = '';\n\t$hd_src = '';\n\t$resized_image = $resized_image_hd = array();\n\n\tif ( $opts['options'] ) {\n\n\t\t$resized_image = dt_get_resized_img( $original_image, $opts['options'], true, false );\n\t\t$resized_image_hd = dt_get_resized_img( $original_image, $opts['options'], true, true );\n\n\t\t$hd_src = $resized_image_hd[0];\n\t\t$src = $resized_image[0];\n\n\t\tif ( $resized_image_hd[0] === $resized_image[0] ) {\n\t\t\t$resized_image_hd = array();\n\t\t}\n\n\t} else {\n\t\t$resized_image = $original_image;\n\t\t$src = $resized_image[0];\n\t}\n\n\tif ( $img_id = absint( $opts['img_id'] ) ) {\n\n\t\tif ( '' === $opts['alt'] ) {\n\t\t\t$opts['alt'] = get_post_meta( $img_id, '_wp_attachment_image_alt', true );\n\t\t}\n\n\t\tif ( '' === $opts['img_title'] ) {\n\t\t\t$opts['img_title'] = get_the_title( $img_id );\n\t\t}\n\t}\n\n\t$href = $opts['href'];\n\tif ( !$href ) {\n\t\t$href = $original_image[0];\n\t}\n\n\t$_width = $resized_image[1];\n\t$_height = $resized_image[2];\n\n\tif ( empty($resized_image[3]) || !is_string($resized_image[3]) ) {\n\t\t$size = image_hwstring( $_width, $_height );\n\t} else {\n\t\t$size = $resized_image[3];\n\t}\n\n\t$lazy_loading_src = \"data:image/svg+xml,%3Csvg%20xmlns%3D&#39;http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg&#39;%20viewBox%3D&#39;0%200%20{$_width}%20{$_height}&#39;%2F%3E\";\n\n\t$lazy_loading = ! empty( $opts['lazy_loading'] );\n\t$srcset_tpl = '%s %dw';\n\n\tif ( $lazy_loading ) {\n\t\t$src = str_replace( array(' '), array('%20'), $src );\n\t\t$hd_src = str_replace( array(' '), array('%20'), $hd_src );\n\n\t\t$esc_src = esc_attr( $src );\n\t\t$src_att = sprintf( $srcset_tpl, $esc_src, $resized_image[1] );\n\t\tif ( $resized_image_hd ) {\n\t\t\t$src_att .= ', ' . sprintf( $srcset_tpl, esc_attr( $hd_src ), $resized_image_hd[1] );\n\t\t}\n\t\t$src_att = 'src=\"' . $lazy_loading_src . '\" data-src=\"' . $esc_src . '\" data-srcset=\"' . $src_att . '\"';\n\t\t$opts['img_class'] .= ' ' . $opts['lazy_class'];\n\t\t$opts['class'] .= ' ' . $opts['lazy_bg_class'];\n\t} else {\n\t\t$src_att = sprintf( $srcset_tpl, $src, $resized_image[1] );\n\t\tif ( $resized_image_hd ) {\n\t\t\t$src_att .= ', ' . sprintf( $srcset_tpl, $hd_src, $resized_image_hd[1] );\n\t\t}\n\t\t$src_sizes = $resized_image[1] . 'px';\n\t\t$src_att = 'src=\"' . esc_attr( $src ) . '\" srcset=\"' . esc_attr( $src_att ) . '\" sizes=\"' . esc_attr( $src_sizes ) . '\"';\n\t}\n\n\t$class = empty( $opts['class'] ) ? '' : 'class=\"' . esc_attr( trim($opts['class']) ) . '\"';\n\t$title = empty( $opts['title'] ) ? '' : 'title=\"' . esc_attr( trim($opts['title']) ) . '\"';\n\t$img_title = empty( $opts['img_title'] ) ? '' : 'title=\"' . esc_attr( trim($opts['img_title']) ) . '\"';\n\t$img_class = empty( $opts['img_class'] ) ? '' : 'class=\"' . esc_attr( trim($opts['img_class']) ) . '\"';\n\n\t$output = str_replace(\n\t\tarray(\n\t\t\t'%HREF%',\n\t\t\t'%CLASS%',\n\t\t\t'%TITLE%',\n\t\t\t'%CUSTOM%',\n\t\t\t'%SRC%',\n\t\t\t'%IMG_CLASS%',\n\t\t\t'%SIZE%',\n\t\t\t'%ALT%',\n\t\t\t'%IMG_TITLE%',\n\t\t\t'%RAW_TITLE%',\n\t\t\t'%RAW_ALT%',\n\t\t\t'%RAW_IMG_TITLE%',\n\t\t\t'%RAW_IMG_DESCRIPTION%',\n\t\t\t'%RAW_IMG_CAPTION%'\n\t\t),\n\t\tarray(\n\t\t\t'href=\"' . esc_url( $href ) . '\"',\n\t\t\t$class,\n\t\t\t$title,\n\t\t\tstrip_tags( $opts['custom'] ),\n\t\t\t$src_att,\n\t\t\t$img_class,\n\t\t\t$size,\n\t\t\t'alt=\"' . esc_attr( $opts['alt'] ) . '\"',\n\t\t\t$img_title,\n\t\t\tesc_attr( $opts['title'] ),\n\t\t\tesc_attr( $opts['alt'] ),\n\t\t\tesc_attr( $opts['img_title'] ),\n\t\t\tesc_attr( $opts['img_description'] ),\n\t\t\tesc_attr( $opts['img_caption'] )\n\t\t),\n\t\t$opts['wrap']\n\t);\n\n\t$output = apply_filters( 'dt_get_thumb_img-output', $output, $opts );\n\n\tif ( $opts['echo'] ) {\n\t\techo $output;\n\t\treturn '';\n\t}\n\n\treturn $output;\n}", "public function getThumbs($uri, $limit = 5){\n \n $validator = new \\Zend\\Validator\\Uri(array(\n 'allowRelative' => false\n ));\n $return = array();\n \n if ($validator->isValid($uri)) {\n $parseInfo = parent::parse($uri);\n \n switch ($parseInfo->host){\n // Youtube.com\n case \"www.youtube.com\":\n $queryArray = array();\n parse_str($parseInfo->query, $queryArray);\n if(isset($queryArray['v'])){\n $return = array(\n \"http://img.youtube.com/vi/\" . $queryArray['v'] . \"/0.jpg\",\n \"http://img.youtube.com/vi/\" . $queryArray['v'] . \"/1.jpg\",\n \"http://img.youtube.com/vi/\" . $queryArray['v'] . \"/2.jpg\",\n \"http://img.youtube.com/vi/\" . $queryArray['v'] . \"/3.jpg\"\n );\n }\n break;\n\n // Dailymotion.com\n case \"www.dailymotion.com\":\n if(strpos($parseInfo->path, \"/video\") !== false){\n $return = array(\n 'http://www.dailymotion.com/thumbnail'. $parseInfo->path\n );\n }\n break;\n\n // Vimeo.com\n case \"vimeo.com\":\n $id = str_replace(\"/\", \"\", $parseInfo->path);\n $data = \\Zend\\Json\\Json::decode(file_get_contents(\"http://vimeo.com/api/v2/video/$id.json\"));\n $return = array(\n $data[0]->thumbnail_medium\n );\n break;\n\n // others webpage\n default:\n\n /**\n * Credit to http://www.bitrepository.com\n * http://www.bitrepository.com/extract-images-from-an-url.html\n */\n\n // Fetch page\n $string = $this->fetchPage($uri);\n $out = array();\n\n // Regex for SRC Value\n $image_regex_src_url = '/<img[^>]*'. 'src=[\\\"|\\'](.*)[\\\"|\\']/Ui';\n preg_match_all($image_regex_src_url, $string, $out, PREG_PATTERN_ORDER);\n\n $return = $out[1];\n\n for ($i=0 ; $i<count($return) ; $i++){\n $tUri = new Uri();\n $parseInfoThumb = $tUri->parse($return[$i]);\n if(!$parseInfoThumb->isAbsolute()){\n $return[$i] = $parseInfo->scheme . \"://\" . $parseInfo->host . \"\" . $return[$i];\n }\n }\n }\n }\n \n // check && return\n return array_slice($return, 0, $limit);\n }", "function _getCachedThumbnail($aArgs = null) {\n $aArgs = is_array($aArgs) ? $aArgs : array();\n\n // Use arguments to work out the target filename\n $sFilename = $this->_generateHash($aArgs).'.jpg';\n $sFile = $this->thumbnail_dir . $sFilename;\n\n $sReturnName = false;\n // Work out if we need to update the cached thumbnail\n $iForceUpdate = $aArgs['stwredo'] ? true : false;\n if ($iForceUpdate || $this->_cacheFileExpired($sFile)) {\n // if bandwidth limit has reached return the BANDWIDTH_IMAGE\n if ($this->_checkLimitReached($this->thumbnail_dir . $this->bandwidth_image)) {\n $sFilename = $this->bandwidth_image;\n // if quota limit has reached return the QUOTA_IMAGE\n } else if ($this->_checkLimitReached($this->thumbnail_dir . $this->quota_image)) {\n $sFilename = $this->quota_image;\n\t\t\t// if WAY OVER the limits (i.e. request is ignored by STW) return the NO_RESPONSE_IMAGE\n } else if ($this->_checkLimitReached($this->thumbnail_dir . $this->no_response_image)) {\n $sFilename = $this->no_response_image;\n } else {\n // check if the thumbnail was captured\n $aImage = $this->_checkWebsiteThumbnailCaptured($aArgs);\n switch ($aImage['status']) {\n case 'save': // download the image to local path\n $this->_downloadRemoteImageToLocalPath($aImage['url'], $sFile);\n break;\n\n case 'nosave': // dont save the image but return the url\n return $aImage['url'];\n break;\n\n case 'quota_exceed': // download the image to local path for locking requests\n $sFilename = $this->quota_image;\n $sFile = $this->thumbnail_dir . $sFilename;\n $this->_downloadRemoteImageToLocalPath($aImage['url'], $sFile);\n break;\n\n case 'bandwidth_exceed': // download the image to local path for locking requests\n $sFilename = $this->bandwidth_image;\n $sFile = $this->thumbnail_dir . $sFilename;\n $this->_downloadRemoteImageToLocalPath($aImage['url'], $sFile);\n break;\n\n default: // otherwise return the status\n return $aImage['status'];\n }\n }\n }\n\n $sFile = $this->thumbnail_dir . $sFilename;\n // Check if file exists\n if (file_exists($sFile)) {\n $sReturnName = $this->thumbnail_uri . $sFilename;\n }\n\n return $sReturnName;\n }", "function get_the_post_thumbnail($post = \\null, $size = 'post-thumbnail', $attr = '')\n {\n }", "function get_the_post_thumbnail_url($post = \\null, $size = 'post-thumbnail')\n {\n }", "function sld_get_post_thumbnail( $postid, $size='thumbnail' ) {\n\tif ( has_post_thumbnail( $postid ) ) {\n\t\treturn get_the_post_thumbnail( $postid, $size );\n\t} else {\n\t\t// echo 'has no thumbnail';\n\t\t$post = get_post( $postid );\n\t\tif ( preg_match_all( '/<img [^>]class=[\"|\\'][^\"|\\']*wp-image-([\\d]+)/i', $post->post_content, $matches) ) {\n\t\t\t$img_id = @$matches[1][0];\n\t\t\treturn wp_get_attachment_image( $img_id, $size );\n\t\t} else if ( preg_match_all( '/<img [^>]*src=[\"|\\']([^\"|\\']+)/i', $post->post_content, $matches) ) {\n\t\t\t// get sizes dimensions from wp\n\t\t\t$img = @$matches[1][0];\n\t\t\treturn '<img src=\"'.$img.'\">';\n\t\t}\t\t\n\n\t}\n}", "function get_category_thumbnail( $cat = '', $args = '' ) {\n\treturn Category_Thumbnail::get_category_thumbnail( $cat, $args );\n\t\n}", "function sld_get_post_thumbnail_src( $postid, $size='thumbnail' ) {\n\tif ( has_post_thumbnail( $postid ) ) {\n\t\t$id = get_post_thumbnail_id( $postid );\n\t\t$image = wp_get_attachment_image_src( $id, $size );\n\t\treturn $image[0];\n\t} else {\n\t\t// echo 'has no thumbnail';\n\t\t$post = get_post( $postid );\n\t\tif ( preg_match_all( '/<img [^>]class=[\"|\\'][^\"|\\']*wp-image-([\\d]+)/i', $post->post_content, $matches) ) {\n\t\t\t$img_id = @$matches[1][0];\n\t\t\treturn wp_get_attachment_image_src( $img_id, $size );\n\t\t} else if ( preg_match_all( '/<img [^>]*src=[\"|\\']([^\"|\\']+)/i', $post->post_content, $matches) ) {\n\t\t\t// todo: get sizes dimensions from wp\n\t\t\t$img = @$matches[1][0];\n\t\t\treturn $img;\n\t\t}\t\t\n\t}\n}", "public function getPicture($thumbnail = false)\n\t{\n\t\t$picture = URL::asset('assets/images/display-pic-default.png');\n\n\t\tif (!$thumbnail)\n\t\t\t$file = config('auth.path_picture').config('auth.filename_picture');\n\t\telse\n\t\t\t$file = config('auth.path_picture_thumbnail').config('auth.filename_picture_thumbnail');\n\n\t\t$file = str_replace(':userId', $this->id, $file);\n\n\t\tif (is_file($file))\n\t\t\t$picture = URL::to($file);\n\n\t\treturn $picture;\n\t}", "static function get_post_thumbnail_src($post_id,$size=null){\n\t\t$post_thumbnail_id = get_post_thumbnail_id($post_id);\n\t\t$thumbnail = wp_get_attachment_image_src($post_thumbnail_id,$size);\n\t\tif(isset($thumbnail[0])){\n\t\t\treturn $thumbnail[0];\n\t\t}\n\t\treturn false;\n\t}", "function get_the_post_thumbnail( $post = null, $size = 'post-thumbnail', $attr = '' ) {\n\t$post = get_post( $post );\n\tif ( ! $post ) {\n\t\treturn '';\n\t}\n\t$post_thumbnail_id = get_post_thumbnail_id( $post );\n\n\t/**\n\t * Filters the post thumbnail size.\n\t *\n\t * @since 2.9.0\n\t * @since 4.9.0 Added the `$post_id` parameter.\n\t *\n\t * @param string|array $size The post thumbnail size. Image size or array of width and height\n\t * values (in that order). Default 'post-thumbnail'.\n\t * @param int $post_id The post ID.\n\t */\n\t$size = apply_filters( 'post_thumbnail_size', $size, $post->ID );\n\n\tif ( $post_thumbnail_id ) {\n\n\t\t/**\n\t\t * Fires before fetching the post thumbnail HTML.\n\t\t *\n\t\t * Provides \"just in time\" filtering of all filters in wp_get_attachment_image().\n\t\t *\n\t\t * @since 2.9.0\n\t\t *\n\t\t * @param int $post_id The post ID.\n\t\t * @param string $post_thumbnail_id The post thumbnail ID.\n\t\t * @param string|array $size The post thumbnail size. Image size or array of width\n\t\t * and height values (in that order). Default 'post-thumbnail'.\n\t\t */\n\t\tdo_action( 'begin_fetch_post_thumbnail_html', $post->ID, $post_thumbnail_id, $size );\n\t\tif ( in_the_loop() )\n\t\t\tupdate_post_thumbnail_cache();\n\t\t$html = wp_get_attachment_image( $post_thumbnail_id, $size, false, $attr );\n\n\t\t/**\n\t\t * Fires after fetching the post thumbnail HTML.\n\t\t *\n\t\t * @since 2.9.0\n\t\t *\n\t\t * @param int $post_id The post ID.\n\t\t * @param string $post_thumbnail_id The post thumbnail ID.\n\t\t * @param string|array $size The post thumbnail size. Image size or array of width\n\t\t * and height values (in that order). Default 'post-thumbnail'.\n\t\t */\n\t\tdo_action( 'end_fetch_post_thumbnail_html', $post->ID, $post_thumbnail_id, $size );\n\n\t} else {\n\t\t$html = '';\n\t}\n\t/**\n\t * Filters the post thumbnail HTML.\n\t *\n\t * @since 2.9.0\n\t *\n\t * @param string $html The post thumbnail HTML.\n\t * @param int $post_id The post ID.\n\t * @param string $post_thumbnail_id The post thumbnail ID.\n\t * @param string|array $size The post thumbnail size. Image size or array of width and height\n\t * values (in that order). Default 'post-thumbnail'.\n\t * @param string $attr Query string of attributes.\n\t */\n\treturn apply_filters( 'post_thumbnail_html', $html, $post->ID, $post_thumbnail_id, $size, $attr );\n}", "public function getRootThumbnailPath()\n {\n return \"{$this->thumbnail}\";\n }", "public function getPhotoUrl($type = null)\r\n\t{\r\n\t\t$field = 'photo_id';\r\n\t\tif ($type == 'thumb.large')\r\n\t\t{\r\n\t\t\t$field = 'large_photo_id';\r\n\t\t}\r\n\t\tif (empty($this -> $field))\r\n\t\t{\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t\t$file = Engine_Api::_() -> getItemTable('storage_file') -> getFile($this -> $field, $type);\r\n\t\tif (!$file)\r\n\t\t{\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t\treturn $file -> map();\r\n\t}", "function get_category_thumbnail_object( $cat = '' ) {\n\treturn Category_Thumbnail::get_category_thumbnail_object( $cat );\n\t\n}", "function getThumbUrl($image, $options = [])\n{\n if (!array_key_exists('webp', $options) && !empty($_SERVER['HTTP_ACCEPT']) && strpos($_SERVER['HTTP_ACCEPT'], 'image/webp') !== false) {\n $options['webp'] = true;\n }\n\n // Resize in seperate process\n $thumbUrl = Helper::getThumbUrl($image, $options);\n if (substr($thumbUrl, 0, 4) != 'http') {\n $thumbUrl = './webroot/thumbnails' . $thumbUrl;\n }\n\n // Resize now\n //\t\t\t\t\t$thumbPath = Thumb::resize($image, $options);\n //\t\t\t\t\t$thumbUrl = str_replace('E:\\\\GitHub\\\\php-thumb\\\\demo\\\\', './', $thumbPath);\n //\t\t\t\t\t$thumbUrl = str_replace('\\\\', '/', $thumbUrl);\n\n // Return thumbnail URL\n return $thumbUrl;\n}", "function cah_news_get_thumbnail($post, $sizes=['medium_large', 'medium','large']) {\r\n if (isset($post->_embedded->{'wp:featuredmedia'}[0]->media_details->sizes->thumbnail->source_url))\r\n {\r\n $media_sizes = $post->_embedded->{'wp:featuredmedia'}[0]->media_details->sizes;\r\n foreach($sizes as $size) {\r\n if ( isset($media_sizes->{$size}->source_url) ) {\r\n return $media_sizes->{$size}->source_url; \r\n }\r\n }\r\n }\r\n return false; \r\n}", "public function getThumbnail($item)\n\t{\n // Load the HWD thumbnails library.\n hwdMediaShareFactory::load('thumbnails');\n if ($thumbnail = hwdMediaShareThumbnails::getElementThumbnail($item, 2))\n {\n return $thumbnail;\n }\n else\n {\n return false;\n }\n\t}", "public function getImageUrl()\n {\n try {\n $product = $this->itemResolver->getFinalProduct($this->itemOptionsLocator->getOptions($this->getItem()));\n $imageUrl = $this->imageHelper->getDefaultPlaceholderUrl('thumbnail');\n if ($product !== null) {\n $imageUrl = $this->imageHelper->init($product, 'product_thumbnail_image')->getUrl();\n }\n return $imageUrl;\n } catch (\\Magento\\Framework\\Exception\\NoSuchEntityException $e) {\n return null;\n }\n }", "function getThumbUrl () {\n return link::thumb($this->dir, $this->file);\n }", "abstract public function getThumbnailUrl(ImageFile $file, $x, $y);", "function faculty_get_photo( $id = null ) {\n $thumbnail_id = get_post_thumbnail_id( $id );\n\n if ( $thumbnail_id ) {\n return wp_get_attachment_url( $thumbnail_id );\n }\n\n return get_stylesheet_directory_uri() . '/static/img/knight.png';\n}", "public function getThumbnail($instance=false){\n if ($instance && !is_object($this->_data['thumbnail'])){\n $this->setThumbnail('',array('required'=>false));\n }\n return $this->_data['thumbnail'];\n }", "function get_thumb ($post_ID){\n $thumbargs = array(\n 'post_type' => 'attachment',\n 'numberposts' => 1,\n 'post_status' => null,\n 'post_parent' => $post_ID\n );\n $thumb = get_posts($thumbargs);\n if ($thumb) {\n return wp_get_attachment_image($thumb[0]->ID);\n }\n}", "function get_the_image_by_post_thumbnail( $args = array() ) {\n\n\t/* Check for a post image ID (set by WP as a custom field). */\n\t$post_thumbnail_id = get_post_thumbnail_id( $args['post_id'] );\n\n\t/* If no post image ID is found, return false. */\n\tif ( empty( $post_thumbnail_id ) )\n\t\treturn false;\n\n\t/* Apply filters on post_thumbnail_size because this is a default WP filter used with its image feature. */\n\t$size = apply_filters( 'post_thumbnail_size', $args['size'] );\n\n\t/* Get the attachment image source. This should return an array. */\n\t$image = wp_get_attachment_image_src( $post_thumbnail_id, $size );\n\n\t/* Get the attachment alt text. */\n\t$alt = trim( strip_tags( get_post_meta( $post_thumbnail_id, '_wp_attachment_image_alt', true ) ) );\n\n\t/* Get the attachment caption. */\n\t$caption = get_post_field( 'post_excerpt', $post_thumbnail_id );\n\n\t/* Return both the image URL and the post thumbnail ID. */\n\treturn array( 'src' => $image[0], 'post_thumbnail_id' => $post_thumbnail_id, 'alt' => $alt, 'caption' => $caption );\n}", "public function image()\n {\n if (isset($this->object->entities->media) && ! empty($this->object->entities->media)) {\n return $this->object->entities->media[0]->media_url;\n }\n }", "function acf_get_post_thumbnail($post = \\null, $size = 'thumbnail')\n{\n}", "public function getImageUrl();", "function featuredURL($size = 'full'){\n $thumb = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), $size );\n $url = $thumb['0'];\n echo $url;\n}", "function featuredURL($size = 'full'){\n $thumb = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), $size );\n $url = $thumb['0'];\n echo $url;\n}", "public function thumb(){\n\t\tif( $this->thumb ) {\n\t\t\treturn $this->thumb;\n\t\t}//end if\n\n\t\treturn $this->thumb = $this->server.'/'.$this->dir.'thumbs/'.preg_replace( '/\\.([^\\.]+)$/', '.thumb.\\1', $this->file );\n\t}", "function get_post_thumbnail_id($post = \\null)\n {\n }", "public function getAvatarThumbUrlAttribute(): ?string\n {\n return $this->getFirstMediaUrl('avatar', 'thumb_150') ?: null;\n }", "function get_category_thumbnail_object( $cat = '' ) {\n\t\tglobal $wp_taxonomies;\n\t\t\n\t\tif ( is_object( $cat ) )\n\t\t\t$cat_id = $cat->term_id;\n\t\t\n\t\tif ( is_numeric( $cat ) )\n\t\t\t$cat_id = (int) $cat;\n\t\t\n\t\tif ( '' == $cat )\n\t\t\t$cat_id = get_category( get_query_var( 'cat' ) )->term_id;\n\t\t\n\t\t\n\t\t$image = get_option( 'category_thumbnail_image' );\n\t\t\n\t\tif ( is_array( $image ) && array_key_exists( $cat_id, $image ) ) {\n\t\t\t$image = $image[ $cat_id ];\n\t\t\t$image = wp_get_attachment_image_src( (int) $image );\n\t\t\t\n\t\t\t$return = new stdClass;\n\t\t\t$return->url = $image[0];\n\t\t\t$return->width = $image[1];\n\t\t\t$return->height = $image[2];\n\t\t\t\n\t\t\treturn $return;\n\t\t\n\t\t}\n\t\t\n\t\treturn false;\n\t\t\n\t}", "public function mainImageURL()\n {\n if ($this->image) {\n $imageLocation = $this->image->location;\n } else {\n // If the image cannot be displayed, show a generic image.\n $imageLocation = 'generic/generic1.jpg';\n }\n\n return Storage::url($imageLocation);\n }", "function cultiv8_getImage( $post_id = null, $size = 'large' ){\n\tif( null == $post_id ) {\n\t\tglobal $post;\t\n\t\t$post_id = $post -> ID;\n\t}\t\n\t\n\t// Check for a CTC image\n\t$img = get_post_meta( $post_id, '_ctc_image' , true ); \n\t\n\t// Fall back to the post thumbnail\n\tif( empty( $img ) ) {\n\t\t$thumbnail = wp_get_attachment_image_src( get_post_thumbnail_id( $post_id ), $size );\n\t\tif( $thumbnail ) $img = $thumbnail[0];\n\t}\n\t\n\t// Fall back to the site feed logo\n\tif( empty( $img ) )\n\t\t$img = get_theme_mod( 'cultiv8_feed_logo', '' );\n\t\n\t// Fall back to the site logo\n\tif( empty( $img ) )\n\t\t$img = cultiv8_get_site_logo();\n\t\t\t\n\treturn $img;\n\t\n}", "public function getThumbnail($thumbnailType)\n {\n return ThumbnailPeer::retrieveByTypeAndAssetId($thumbnailType, $this->getId(), get_class($this));\n }", "function ts_get_resized_post_thumbnail($post_id,$size, $alt = '', $class = '')\r\n{\r\n\t$image = wp_get_attachment_url( get_post_thumbnail_id( $post_id ));\t\t\t\t\t\t\r\n\treturn ts_get_resized_image_by_size($image, $size, $alt, $class);\r\n}", "function get_thumbnail($image_name)\n{\n $pieces=explode('.',$image_name);\n\n return $pieces[0].'_thumb.'.$pieces[1];\n}" ]
[ "0.7616833", "0.754805", "0.74242574", "0.73301256", "0.72712266", "0.7235377", "0.7133751", "0.71275985", "0.70648324", "0.7055105", "0.7004789", "0.7002767", "0.6980274", "0.69373584", "0.6891087", "0.68881476", "0.6870809", "0.68652284", "0.68591744", "0.6848682", "0.6841968", "0.6817887", "0.68058926", "0.67989373", "0.6736261", "0.6734572", "0.6617045", "0.66060317", "0.6598269", "0.6586797", "0.6565609", "0.6562433", "0.6558814", "0.6545606", "0.6507138", "0.65065724", "0.65063214", "0.65027434", "0.649599", "0.649362", "0.6486491", "0.64713734", "0.6458799", "0.64382035", "0.6429325", "0.6416092", "0.6409924", "0.63975865", "0.63947433", "0.6378466", "0.6375701", "0.637169", "0.63615143", "0.63573307", "0.6354238", "0.6349895", "0.63399684", "0.6335804", "0.6334205", "0.63285583", "0.63199556", "0.6318341", "0.63065153", "0.63065076", "0.63054776", "0.62906235", "0.6287367", "0.62860584", "0.6275683", "0.62606144", "0.623552", "0.6234436", "0.62110734", "0.6201222", "0.6192925", "0.61869687", "0.6181113", "0.6176148", "0.6171048", "0.61641884", "0.61627847", "0.6161834", "0.6159873", "0.61514086", "0.6148028", "0.6143453", "0.61394364", "0.6138583", "0.613774", "0.61327136", "0.61327136", "0.6101324", "0.6099586", "0.60982597", "0.6088141", "0.60861707", "0.6076363", "0.6072858", "0.60681987", "0.60594106" ]
0.6213205
72
Gets the default thumbnail image.
public function getDefaultThumbnail();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDefaultImage();", "function get_default_thumb($size = NULL) {\n if ($size == \"small\" && file_exists(TEMPLATEDIR . '/images/thumbs/group_thumb-small.png')) {\n return TEMPLATEURL . '/images/thumbs/group_thumb-small.png';\n } elseif (file_exists(TEMPLATEDIR . '/images/thumbs/group_thumb.png') && !$size) {\n return TEMPLATEURL . '/images/thumbs/group_thumb.png';\n } else {\n if ($size == 'small')\n $this->get_default_thumb = GP_THUMB_URL . '/no_thumb-small.png';\n else\n $this->get_default_thumb = GP_THUMB_URL . '/no_thumb.png';\n return $this->get_default_thumb;\n }\n }", "public function getThumbnail()\n {\n if ($this->getThumbnailUrl() !== false) {\n $url = $this->getThumbnailUrl();\n } else {\n $url = Path::child('/img/no-thumb.jpg');\n }\n\n return $url;\n }", "public function getThumbnailImg()\n\t{\n\t\t$this->thumbail_img_id = intval( get_post_thumbnail_id( $this->post->ID ) );\n\t\treturn has_post_thumbnail($this->post->ID) ? new Cltvo_Img( $this->thumbail_img_id) : NULL;\n\t}", "function get_the_image_by_default( $args = array() ) {\n\treturn array( 'src' => $args['default_image'] );\n}", "private function get_thumbnail( $id = null ) {\n\n\tif( $id ) {\n\t $current_img = wp_get_attachment_image_src( intval( $id ), 'thumbnail' );\n\t if( $current_img ) {\n return $current_img[0];\n }\n if( has_post_thumbnail() ) {\n return $this->get_post_thumbnail_url( get_the_ID() );\n /*\n\t\t$thumbnail_id = get_post_thumbnail_id( get_the_ID() );\n if( $thumbnail_id ) {\n $thumbnail = wp_get_attachment_image_src( $thumbnail_id , 'thumbnail' );\n return $thumbnail[0];\n }\n */\n }\n }\n return BASEPACK_PLUGIN_URL . '/assets/images/image.png';\n }", "public function thumbnail()\n {\n if (null !== $this->_image) {\n return $this->_createImgTag($this->_image->thumbnail);\n }\n }", "public function getMediumThumbnailImage()\n {\n return $this->getFilterImage(MediumThumbnail::identifier());\n }", "public function thumbnail()\n {\n return optional($this->thumb);\n }", "protected function _getDefaultImage()\n {\n $path = $this->_getImageBasePath(false)\n . self::USER_DEFAULT_IMAGE;\n\n return $path;\n }", "public function getDefaultImagePath()\n {\n return $this->defaultImagePath;\n }", "public function getThumbnail()\n {\n return Kuler_Api::getThemeThumbnail((int) $this->ID);\n }", "public function getImageUrl()\n {\n return $this->info->thumbnail_url ? $this->info->thumbnail_url : null;\n }", "public function get_thumbnail()\n {\n }", "function get_default_photo( $id, $type )\n\t{\n\t\t$default_photo = \"\";\n\n\t\t// get all images\n\t\t$img = $this->CI->Image->get_all_by( array( 'img_parent_id' => $id, 'img_type' => $type ))->result();\n\n\t\tif ( count( $img ) > 0 ) {\n\t\t// if there are images for wallpaper,\n\t\t\t\n\t\t\t$default_photo = $img[0];\n\t\t} else {\n\t\t// if no image, return empty object\n\n\t\t\t$default_photo = $this->CI->Image->get_empty_object();\n\t\t}\n\n\t\treturn $default_photo;\n\t}", "public function getThumbnail() {\n\n if (file_exists($this->getUploadDir() . '/min_' . $this->path)){\n return $this->getUploadDir() . '/min_' . $this->path;\n }else{\n return $this->getWebPath();\n }\n }", "public function getDefaultFileUrl()\n { \n return $this->baseUrl.'/default_image.png';\n }", "public static function get_default_image($thumb = '-thumbnail', $size_w = 100, $size_h = 100 ) {\r\n\t\t$wrap = '<img %IMG_CLASS% %SRC% %SIZE% %IMG_TITLE% %ALT% />';\r\n\t\t$default_img = SWLABSCORE_ASSET_URI . '/images/noimage' . $thumb . '.jpg';\r\n\t\t$output = str_replace(\r\n\t\t\t\tarray(\r\n\t\t\t\t\t'%SRC%',\r\n\t\t\t\t\t'%IMG_CLASS%',\r\n\t\t\t\t\t'%SIZE%',\r\n\t\t\t\t\t'%ALT%',\r\n\t\t\t\t\t'%IMG_TITLE%'\r\n\t\t\t\t),\r\n\t\t\t\tarray(\r\n\t\t\t\t\t'src=\"' . $default_img . '\"',\r\n\t\t\t\t\t'class=\"attachment-100x100 wp-post-image\"',\r\n\t\t\t\t\t'width=\"' . $size_w . '\" height=\"' . $size_h . '\"',\r\n\t\t\t\t\t'',\r\n\t\t\t\t\t''\r\n\t\t\t\t),\r\n\t\t\t\t$wrap\r\n\t\t);\r\n\t\treturn $output;\r\n\t}", "function acitpo_get_default_header_image() {\n\n\t// Get default from Discussion Settings.\n\t$default = get_option( 'avatar_default', 'mystery' ); // Mystery man default\n\tif ( 'mystery' == $default )\n\t\t$default = 'mm';\n\telseif ( 'gravatar_default' == $default )\n\t\t$default = '';\n\n\t$protocol = ( is_ssl() ) ? 'https://secure.' : 'http://';\n\t$url = sprintf( '%1$sgravatar.com/avatar/%2$s/', $protocol, md5( get_option( 'admin_email' ) ) );\n\t$url = add_query_arg( array(\n\t\t's' => 120,\n\t\t'd' => urlencode( $default ),\n\t), $url );\n\n\treturn esc_url_raw( $url );\n}", "public function getThumbnailUrl();", "function be_schema_default_image($graph_piece)\n{\n $use_default = false;\n if (has_post_thumbnail()) {\n $image_src = wp_get_attachment_image_src(get_post_thumbnail_id(), 'full');\n if (empty($image_src[1]) || 1199 > $image_src[1])\n $use_default = true;\n } else {\n $use_default = true;\n }\n\n if ($use_default) {\n $graph_piece['image']['@id'] = home_url('#logo');\n }\n return $graph_piece;\n}", "public function getThumbnail() {\r return $this->Image()->CMSThumbnail();\r }", "public function getRootThumbnailPath()\n {\n return \"{$this->thumbnail}\";\n }", "private function resolveResourceThumbnail($defaultImage)\n {\n $baseFolder = $this->getBaseFolder();\n $iconUrl = $baseFolder.DIRECTORY_SEPARATOR.'default_thumbnail.png';\n foreach ($this->getThumbnailBaseFolderPaths() as $path) {\n $imageFilePath = $path.DIRECTORY_SEPARATOR.$defaultImage;\n\n if (file_exists($imageFilePath) && is_readable($imageFilePath)) {\n $iconUrl = $baseFolder.DIRECTORY_SEPARATOR.$defaultImage;\n break;\n }\n }\n\n return $iconUrl;\n }", "public static function getImage($id) {\n if (!$img = get_the_post_thumbnail_url($id, 'thumbnail')) {\n $url = BaseController::getPluginUrl();\n $img = $url . 'assets/images/default-badge.png';\n }\n\n return $img;\n }", "function get_post_thumbnail_url( $thumbnail = 'thumbnail', $post_id = null, $use_default = true ) {\n\tglobal $post;\n\n\tif ( ! $post_id )\n\t\t$post_id = $post->ID;\n\n\tif ( has_post_thumbnail() ) {\n\t\t$src = wp_get_attachment_image_src( get_post_thumbnail_id( $post_id ), $thumbnail );\n\t\treturn $src[0];\n\n\t} else {\n\t\treturn apply_filters( 'get_post_thumbnail_url', get_template_directory_uri() . '/post-thumbnail.png' );\n\n\t}\n\n}", "public function getThumbnail()\n {\n return $this->formattedData['thumbnail'];\n }", "public function getThumbnail() {\n return Mage::helper('landingpage/image')->getImageUrl($this->getData('thumbnail'));\n }", "public function default()\n {\n return set_post_thumbnail_size(\n $this->getArgument('size')[0],\n $this->getArgument('size')[1],\n $this->getArgument('crop')\n );\n }", "public function getThumbnailResource() {\n\t\treturn $this->thumbnailResource;\n\t}", "function faculty_get_photo( $id = null ) {\n $thumbnail_id = get_post_thumbnail_id( $id );\n\n if ( $thumbnail_id ) {\n return wp_get_attachment_url( $thumbnail_id );\n }\n\n return get_stylesheet_directory_uri() . '/static/img/knight.png';\n}", "public function get_Thumbnail () {\r\n\t\t$id = $this->id;\r\n\t\t// Some images may not exist according to the resolution\r\n\t\treturn array(\r\n\t\t\t0 => \"http://img.youtube.com/vi/\".$id.\"/maxresdefault.jpg\", // High Definition (1920×1080 pixels)\r\n\t\t\t1 => \"http://img.youtube.com/vi/\".$id.\"/hqdefault.jpg\", // Standard Definition (640×480 pixels)\r\n\t\t\t\r\n\t\t\t2 => \"http://img.youtube.com/vi/\".$id.\"/0.jpg\", // Thumbnail (480×360 pixels)\r\n\t\t\t\r\n\t\t\t3 => \"http://img.youtube.com/vi/\".$id.\"/mqdefault.jpg\", // Medium quality (320×180 pixels)\r\n\t\t\t4 => \"http://img.youtube.com/vi/\".$id.\"/default.jpg\", // Normal quality (120×90 pixels)\r\n\t\t\t\r\n\t\t\t5 => \"http://img.youtube.com/vi/\".$id.\"/1.jpg\", // First image (120×90 pixels)\r\n\t\t\t6 => \"http://img.youtube.com/vi/\".$id.\"/2.jpg\", // 2nd image (120×90 pixels)\r\n\t\t\t7 => \"http://img.youtube.com/vi/\".$id.\"/3.jpg\", // Last image (120×90 pixels)\r\n\t\t);\r\n\t}", "function getThumbnail($actual_filename)\n{\n\tif(trim($actual_filename)== \"\")\n\t{\n\t\t$actual_filename = \"default.jpg\"; \t\n\t}\n\treturn $actual_filename;\n}", "public function getdefaultImage(){\n\t\t\n\t\treturn Mage::Helper('brand')->brandDefaultLogourl();\n\t}", "public static function get_default_avatar( $type = null ) {\n\t\tif ( ! $type ) {\n\t\t\t$type = get_option( 'avatar_default', 'mystery' );\n\t\t}\n\t\tswitch ( $type ) {\n\t\t\tcase 'mm':\n\t\t\tcase 'mystery':\n\t\t\tcase 'mysteryman':\n\t\t\t\treturn plugin_dir_url( dirname( __FILE__ ) ) . 'img/mm.jpg';\n\t\t}\n\t\treturn apply_filters( 'semantic_linkbacks_default_avatar', $type );\n\t}", "public static function defaultImage()\n {\n return asset('img/default-image.svg');\n }", "function default_thumbnail($url)\n{\n\tif($url == 'url' ){\n\t\treturn \"holder.js/300x300\";\n\t} else {\n\t\treturn \"<img data-src='holder.js/300x300' />\";\n\t}\n}", "public function thumbnail()\n {\n return $this->media->where('id', $this->thumbnail_id)->first();\n }", "public function getItemDefaultImage($item_id,$poster_image_source,$image_size='large') {\n\t\t##\n\t\t##\tPARAMETERS\n\t\t##\t\t@item_id\n\t\t##\t\t@poster_image_source\n\t\t##\t\t@image_size\n\t\t##\n\t\t##\tRETURN\n\t\t##\t\tThe image url string if it exists (and the poster_image_source if it doesn't)\n\t\t##\n\t\t$sql = <<<EOD\n\t\tSELECT\n\t\t\t{$this->wpdb->prefix}topspin_items_images.{$image_size}_url\n\t\tFROM {$this->wpdb->prefix}topspin_items_images\n\t\tWHERE\n\t\t\t{$this->wpdb->prefix}topspin_items_images.item_id = '%d'\n\t\t\tAND {$this->wpdb->prefix}topspin_items_images.source_url = '%s'\nEOD;\n\t\t$image = $this->wpdb->get_var($this->wpdb->prepare($sql,array($item_id,$poster_image_source)));\n\t\treturn ($image) ? $image : $poster_image_source;\n\t}", "public function thumbnail()\n\t{\n\t\treturn $this->media()->where('id', $this->thumbnail_id)->first();\n\t}", "function psa_get_the_post_thumbnail_src( $size = 'thumbnail' ) {\n\tglobal $post;\n\t$image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), $size );\n\treturn $image[0];\n}", "function get_default_photo_for_gallery( $id, $type )\n\t{\n\t\t$default_photo = \"\";\n\t\t$conds['img_parent_id'] = $id;\n\t\t$conds['img_type'] = $type;\n\n\t\t// get all images\n\t\t$img = $this->CI->Image->get_all_by($conds)->result();\n\t\t\n\t\tif ( count( $img ) == 1 ) {\n\t\t\t// if there are images for gallery,\n\t\t\t$default_photo = $img[0];\n\t\t\t\n\t\t} elseif ( count( $img ) > 1 ) {\n\t\t\t$conds['is_default'] = \"1\";\n\t\t\t$image = $this->CI->Image->get_all_by($conds)->result();\n\t\t\t// if there are images for gallery,\n\t\t\tif(count($image) != 0) {\n\t\t\t\t$default_photo = $image[0];\n\t\t\t} else {\n\t\t\t\t$default_photo = $img[0];\n\t\t\t}\n\n\t\t} else {\n\t\t\t// if no image, return empty object\n\t\t\t$default_photo = $this->CI->Image->get_empty_object();\n\t\t}\n\n\t\treturn $default_photo;\n\t}", "public function getPicture($thumbnail = false)\n\t{\n\t\t$picture = URL::asset('assets/images/display-pic-default.png');\n\n\t\tif (!$thumbnail)\n\t\t\t$file = config('auth.path_picture').config('auth.filename_picture');\n\t\telse\n\t\t\t$file = config('auth.path_picture_thumbnail').config('auth.filename_picture_thumbnail');\n\n\t\t$file = str_replace(':userId', $this->id, $file);\n\n\t\tif (is_file($file))\n\t\t\t$picture = URL::to($file);\n\n\t\treturn $picture;\n\t}", "public function getRecentThumb()\n {\n return $this->recentThumb;\n }", "public function getThumbnailAttribute()\n {\n /** @var Photo $thumbPhoto */\n try {\n $thumbPhoto = ($this->cover_id != null) ? Photo::find($this->cover_id) : $this->first_related_destination->avatar;\n\n return $thumbPhoto->src;\n } catch (\\Exception $e) {\n return Photo::samplePhotoUrl();\n }\n }", "public function getDefaultImageAttribute()\n {\n return $this->images->where('is_default', true);\n }", "protected function init_default_image() {\n if( file_exists($this->config['default_image']))\n {\n $this->default_image = $this->config['default_image'];\n }\n }", "function thumb( ){\r\n\t\t// check if we need to find out what it is first\r\n\t\tif( $this->thumb == null ){\r\n\t\t\tif( $this->thumb_id == 0 ){\r\n\t\t\t\t// thumbnail not set, use random\r\n\t\t\t\t$items = $this->items();\r\n\t\t\t\tif( count( $items ) == 0 )\r\n\t\t\t\t\treturn null;\r\n\r\n\t\t\t\tshuffle( $items );\r\n\t\t\t\t$this->thumb = $items[0];\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\t$this->thumb = $this->getItem( $this->thumb_id );\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn $this->thumb;\r\n\t}", "public function getDefaultLogo()\n {\n return $this->stickerTemplateDir . 'default_logo.png';\n }", "static function get_post_thumbnail( $size ) {\n\t\tglobal $post;\n\t\tif ( has_post_thumbnail() ) {\n\t\t\t$image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), $size );\n\t\t\treturn $image[0];\n\t\t} elseif ( get_field( 'no_thumbnail', 'option' ) ) {\n\t\t\t$image = get_field( 'no_thumbnail', 'option' );\n\t\t\treturn $image['sizes'][ $size ];\n\t\t}\n\t}", "public function getDefaultAvatar()\n\t{\n\t\t$event = new Event('onApplicationGetDefaultAvatar');\n\t\tFactory::getDispatcher()->triggerEvent($event);\n\n\t\treturn $event->getArgument('avatar', false);\n\t}", "function first_thumbnail( $post_id ) {\n\t$attachments = get_attached_media( 'image', $post_id );\n\n\tif ( $attachments ) {\n\t\t$attachment = reset( $attachments );\n\t\t$image_attributes = wp_get_attachment_image_src( $attachment->ID, 'thumb' );\n\t\treturn $image_attributes;\n\t}\n\treturn '';\n}", "function default_thumb()\r\n{\r\n if(file_exists(TEMPLATEDIR.'/images/thumbs/processing.png'))\r\n {\r\n return TEMPLATEURL.'/images/thumbs/processing.png';\r\n }elseif(file_exists(TEMPLATEDIR.'/images/thumbs/processing.jpg'))\r\n {\r\n return TEMPLATEURL.'/images/thumbs/processing.jpg';\r\n }else\r\n return BASEURL.'/files/thumbs/processing.jpg';\r\n}", "public function getThumbnailImageType()\r\n\t{\r\n\t\treturn 'home'; // change this to 'home_default' if images don't show in Prestashop 1.5\r\n\t}", "public function featured_img() {\n\n $featured_img = wp_get_attachment_image_src(\n get_post_thumbnail_id( get_the_ID() ), 'large'\n );\n\n return $featured_img[0];\n }", "function get_templ_image($post_id,$size='thumbnail') {\r\n\r\n\tglobal $post;\r\n\t/*get the thumb image*/\t\r\n\t$thumbnail = wp_get_attachment_image_src ( get_post_thumbnail_id ( $post_id ), $size ) ;\t\r\n\tif($thumbnail[0]!='')\r\n\t{\r\n\t\t$image_src=$thumbnail[0];\t\t\r\n\t}else\r\n\t{\r\n\t\t$post_img_thumb = bdw_get_images_plugin($post_id,$size); \r\n\t\t$image_src = $post_img_thumb[0]['file'];\r\n\t}\t\r\n\treturn $image_src;\r\n}", "public function getThumbnailMedium() {\n if (file_exists($this->getUploadDir() . '/medium_' . $this->path)){\n return $this->getUploadDir() . '/medium_' . $this->path;\n }else{\n return $this->getWebPath();\n }\n }", "public function getThumbnailUrl()\n {\n if (has_post_thumbnail($this->id)) {\n return $this->thumbnail = wp_get_attachment_url(get_post_thumbnail_id($this->id));\n }\n\n return false;\n }", "public function getPhoto() {\n if(isset($this->photo) && !empty($this->photo)) {\n return Yii::getAlias('@web'). '/' . $this->photo;\n }\n return Yii::$app->params['defaultProfileImage'];\n }", "public function getImage()\n {\n if($this->image == null){\n return \"https://place-hold.it/50x50\";\n }\n else return IMG_PATH.\"/\".$this->image;\n }", "static function get_post_thumbnail_src($post_id,$size=null){\n\t\t$post_thumbnail_id = get_post_thumbnail_id($post_id);\n\t\t$thumbnail = wp_get_attachment_image_src($post_thumbnail_id,$size);\n\t\tif(isset($thumbnail[0])){\n\t\t\treturn $thumbnail[0];\n\t\t}\n\t\treturn false;\n\t}", "public function getPlaceholderImage(){\n $objectManager = \\Magento\\Framework\\App\\ObjectManager::getInstance ();\n $storeManager = $objectManager->get(\"\\Magento\\Store\\Model\\StoreManagerInterface\");\n $mediaUrl = $storeManager->getStore()->getBaseUrl(\\Magento\\Framework\\UrlInterface::URL_TYPE_MEDIA );\n return $mediaUrl.'catalog/product/placeholder/'.\\Magento\\Framework\\App\\ObjectManager::getInstance()\n ->get('Magento\\Framework\\App\\Config\\ScopeConfigInterface')\n ->getValue('catalog/placeholder/thumbnail_placeholder');\n }", "public function get_image() {\n\n return $this->image_id !== null ? $this->image->full_src() : null;\n }", "function get_the_post_thumbnail($post = \\null, $size = 'post-thumbnail', $attr = '')\n {\n }", "function wgom_post_thumbnail_url() {\n\tif (has_post_thumbnail()) {\n\t\t$post = get_post(null);\n\t\t$post_thumbnail_id = get_post_thumbnail_id($post);\n\t\t$size = apply_filters('post_thumbnail_size', 'post-thumbnail', $post->ID);\n\t\tif ($post_thumbnail_id) {\n\t\t\t$image_src = wp_get_attachment_image_src($post_thumbnail_id, $size, false);\n\t\t\tif ($image_src) {\n\t\t\t\t$image_url = $image_src[0];\n\t\t\t\treturn $image_url;\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t\t// This is the WGOM extension part.\n\t\t$image_src = wgom_video_post_featured_image(false);\n\t\treturn $image_src;\n\t}\n\treturn \"\";\n}", "public function getThumbnailPath()\n {\n return $this->getThumbnailsFolder() . '/' . $this->getRootThumbnailPath();\n }", "static function post_first_image() {\n\t\tglobal $post, $posts;\n\t\t$first_img = '';\n\t\tpreg_match_all( '/<img.+src=[\\'\"]([^\\'\"]+)[\\'\"].*>/i', $post->post_content, $matches );\n\t\t$first_img = $matches[1][0];\n\n\t\t// define a default image\n\t\tif ( empty( $first_img ) ) {\n\t\t\t$first_img = \"\";\n\t\t}\n\n\t\treturn $first_img;\n\t}", "public function getImageUrl()\n {\n try {\n $product = $this->itemResolver->getFinalProduct($this->itemOptionsLocator->getOptions($this->getItem()));\n $imageUrl = $this->imageHelper->getDefaultPlaceholderUrl('thumbnail');\n if ($product !== null) {\n $imageUrl = $this->imageHelper->init($product, 'product_thumbnail_image')->getUrl();\n }\n return $imageUrl;\n } catch (\\Magento\\Framework\\Exception\\NoSuchEntityException $e) {\n return null;\n }\n }", "function get_post_thumbnail_url( $size = 'full', $post_id = false, $icon = false ) {\n if ( ! $post_id ) {\n $post_id = get_the_ID();\n }\n\n $thumb_url_array = wp_get_attachment_image_src(\n get_post_thumbnail_id( $post_id ), $size, $icon\n );\n return $thumb_url_array[0];\n}", "function _getimage($thumb) {\n\tglobal $mg2;\n\n\t$ext\t= strrchr(trim($thumb), '.');\n\t$name = basename($thumb, $ext);\n\tif (substr($name, -6) === '_thumb') {\n\t\t$filename = substr($name, 0, -6) . $ext;\n\t\t$imageRC = $mg2->select($filename, $mg2->all_images, 6);\n\t}\n\treturn ((int)$imageRC[0][0])? (int)$imageRC[0][0]:-1;\t// -1. random image as icon\n}", "protected function getProfileImage()\n {\n $path = $this->_getImageBasePath() . $this->_getImageName();\n\n if(!file_exists($this->_getFullImagePath($path))) {\n //reszise and return path to new resized image\n //@todo resize\n $originImage = $this->_getImageName(false);\n if(file_exists($this->_getFullImagePath($originImage))) {\n //resize it and return path to resized image\n //if it can't resized, return default image\n } else {\n return $this->_getDefaultImage();\n }\n } else {\n return $path;\n }\n\n\n }", "function getThumbUrl($size,$post_id) {\n if (!isset($size)) {\n $size = 'full';\n }\n $thumb = wp_get_attachment_image_src(get_post_thumbnail_id($post_id), $size);\n if($thumb[0] != \"\") {\n return $thumb[0];\n }\n}", "function get_correct_image_link_thumb($thumb_id='', $size='large'){\n\n if ($thumb_id != '') {\n $imagepermalink = wp_get_attachment_image_src($thumb_id, $size, true);\n } else {\n $imagepermalink[0] = get_stylesheet_directory_uri() . '/images/cover.jpg';\n }\n return $imagepermalink[0];\n}", "abstract public function get_custom_thumbnail( $size = 'thumb' );", "public function getThumbnail($type = 'default')\n {\n $this->initialRequest();\n if (isset($this->item['snippet']['thumbnails'][$type]['url'])) {\n return $this->item['snippet']['thumbnails'][$type]['url'];\n }\n else {\n $this->onApiBadInterpretation(\"snippet.thumbnails.$type.url not found\");\n }\n }", "public function getImage() {\n if ($this->item_image == null) {\n return Yii::app()->request->baseUrl . \"/images/box/default.jpg\";\n } else {\n return Yii::app()->request->baseUrl . \"/images/box/\" . $this->item_image;\n }\n }", "function get_image_attachment_src($attachmentID, $size = 'thumbnail')\n{\n $imageSrc = get_template_directory_uri() . '/images/default-'. $size .'.png';\n\n if( wp_attachment_is_image( $attachmentID ) ) {\n $imageInfo = wp_get_attachment_image_src( $attachmentID, $size);\n $imageSrc = $imageInfo[0];\n }\n\n return $imageSrc;\n}", "public function getThumbnail(){\n\t\tif($this->imagickSupport){\n\t\t\t//Generate thumbnail as Imagick library\n\t\t\t$this->generateThumbnailImagick(/* ARGS */);\n\t\t}else if($this->imagickCmdSupport){\n\t\t\t//Generate thumbnail as ImageMagick program\n\t\t\t$this->generateThumbnailCmd(/* ARGS */);\n\t\t}else if($this->gdSupport){\n\t\t\t//Generate thumbnail as GD library\n\t\t\t$this->generateThumbnailGD();\n\t\t}else{\n\t\t\t/* Fail! */\n\t\t\treturn false;\n\t\t}\n\t}", "public function get_thumbnail($key = 0)\n {\n }", "function get_representative_images() {\n global $post;\n $images = array('http://www.heyreverb.com/wp-content/themes/spiegelmagazine-pro/images/logo.png');\n if ( has_post_thumbnail($post->ID) ) { // check if the post has a Post Thumbnail assigned to it.\n $image_url = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'thumbnail');\n array_unshift($images, $image_url[0]);\n }\n return $images;\n}", "function fumseck_default_image( $post_type ) {\n\t\n\tif ( ($post_type == 'post') or ($post_type == 'page') ) {\n\t\t\n\t\t$output = '<img class=\"img-responsive\" width=\"760\" height=\"247\" '\n\t\t\t\t\t. 'alt=\"Vitruve Man\" '\n\t\t\t\t\t. 'src=\"' . get_template_directory_uri() . '/images/default-picture-760.jpg' . '\"></img>';\n\t\techo $output;\n\t}\n}", "private function thumb()\n {\n $preview = array('png', 'jpg', 'gif', 'bmp');\n\n $publicBaseUrl = 'packages/spescina/mediabrowser/src/img/icons/';\n\n if ($this->folder)\n {\n if ($this->back)\n {\n $icon = 'back';\n }\n else\n {\n $icon = 'folder';\n }\n\n $url = $publicBaseUrl . $icon . '.png';\n }\n else\n {\n if (in_array($this->extension, $preview))\n {\n $url = $this->path;\n }\n else\n {\n $url = $publicBaseUrl . $this->extension . '.png';\n }\n }\n\n return $url;\n }", "function get_thumb ( $post_ID, $size = 'thumb-small' ){\n if ( function_exists( 'has_post_thumbnail' ) && has_post_thumbnail( $post_ID ) ) {\n return get_the_post_thumbnail( $post_ID, $size );\n } else {\n $thumbargs = array(\n 'post_type' => 'attachment',\n 'numberposts' => 1,\n 'post_status' => null,\n 'post_parent' => $post_ID,\n );\n $thumb = get_posts( $thumbargs );\n if ($thumb)\n return wp_get_attachment_image( $thumb[0]->ID, $size );\n }\n}", "public function getThumbnailLocation() {\n\t\treturn Images::BLIZZARD_PATH . $this->thumbnail;\n\t}", "function wpseed_the_post_thumbnail_url($size, $postid) {\n echo wp_get_attachment_image_src( get_post_thumbnail_id($postid), $size )['0'];\n }", "function get_category_thumbnail_object( $cat = '' ) {\n\treturn Category_Thumbnail::get_category_thumbnail_object( $cat );\n\t\n}", "public function picture()\n {\n if ($this->image->exists()) {\n return resource_url('images/users/' .basename($this->image->path));\n }\n\n // Fallback to AdminLTE's default image.\n return vendor_url('dist/img/avatar5.png', 'almasaeed2010/adminlte');\n }", "function get_category_thumbnail( $cat = '', $args = '' ) {\n\treturn Category_Thumbnail::get_category_thumbnail( $cat, $args );\n\t\n}", "function main_image_alma() {\n\talma_get_first_image( 'portfolio-thumbnail' );\n}", "abstract public function get_thumbnail_source_path();", "function the_post_thumbnail( $size = 'post-thumbnail', $attr = '' ) {\n\techo get_the_post_thumbnail( null, $size, $attr );\n}", "public function resolveThumbnailUrl();", "function get_the_post_thumbnail_url($post = \\null, $size = 'post-thumbnail')\n {\n }", "function get_thumbnail($args) \n\t{\t\n\t\tglobal $post;\n\t\t\tif (has_post_thumbnail( $post->ID )):\n\t\t\t\treturn the_post_thumbnail($args);\n\t\t\telse:\n\t\t\t\techo '<img src=\"http://dummyimage.com/'.$args[0].'x'.$args[1].'/cccccc/686a82.gif&text='.$args[0].' x '.$args[1].'\" alt=\"placeholder+image\">';\n\t\t\tendif;\n\n\t}", "public function getThumbnailUrl()\n\t{\n if ($about = $this->getAbout()) {\n \t$ci =& get_instance();\n $ci->load->config('dir');\n $upload_path = $ci->config->item('upload_dir');\n\n\t\t\t$path = $upload_path . 'media/thumbnails/' . $about->photo; \n\n if (!file_exists($path) || $about->photo == '') {\n $url = base_url().BASE_IMG . 'user-photo.jpg';\n } else {\n $url = site_url($path);\n }\n }\t\n\n return $url;\n\t}", "function image($url = false, $default = null)\n {\n // no image\n if (!$url) {\n return ($default) ?: config('helpers.default_image');\n }\n\n // pass through\n return '/' . ltrim($url, '/');\n }", "function cultiv8_getImage( $post_id = null, $size = 'large' ){\n\tif( null == $post_id ) {\n\t\tglobal $post;\t\n\t\t$post_id = $post -> ID;\n\t}\t\n\t\n\t// Check for a CTC image\n\t$img = get_post_meta( $post_id, '_ctc_image' , true ); \n\t\n\t// Fall back to the post thumbnail\n\tif( empty( $img ) ) {\n\t\t$thumbnail = wp_get_attachment_image_src( get_post_thumbnail_id( $post_id ), $size );\n\t\tif( $thumbnail ) $img = $thumbnail[0];\n\t}\n\t\n\t// Fall back to the site feed logo\n\tif( empty( $img ) )\n\t\t$img = get_theme_mod( 'cultiv8_feed_logo', '' );\n\t\n\t// Fall back to the site logo\n\tif( empty( $img ) )\n\t\t$img = cultiv8_get_site_logo();\n\t\t\t\n\treturn $img;\n\t\n}", "function getThumbnail()\n\t{\n\t\t$id= FormUtil :: getPassedValue('id', isset ($args['id']) ? $args['id'] : null, 'GET');\n\t\t$width= FormUtil :: getPassedValue('width', isset ($args['width']) ? $args['width'] : null, 'GET');\n\t\tif (!SecurityUtil :: checkPermission('crpLicense::License', '::', ACCESS_READ))\n\t\t\tpnShutDown();\n\n\t\t$file= $this->dao->getFile($id, 'image', true);\n\t\t$modifiedDate= $this->dao->getLicenseDate($id, 'lu_date');\n\n\t\tif (!(is_numeric($width) && $width > 0))\n\t\t\t$width= pnModGetVar('crpLicense', 'image_width');\n\t\t$params['width']= $width; //\t$params['append_ghosted']=1;\n\t\t$params['modifiedDate']= $modifiedDate;\n\n\t\tcrpLicense :: imageGetThumbnail($file['binary_data'], $file['name'], $file['content_type'], $params);\n\t}", "function get_the_post_thumbnail_url( $post = null, $size = 'post-thumbnail' ) {\n\t$post_thumbnail_id = get_post_thumbnail_id( $post );\n\tif ( ! $post_thumbnail_id ) {\n\t\treturn false;\n\t}\n\treturn wp_get_attachment_image_url( $post_thumbnail_id, $size );\n}", "public function defaultImage($size = 'md', $field = 'image')\n {\n $image = $this->$field;\n $config = $this->config;\n\n if (!is_array($image) || empty($image)) {\n return 'img/default/' . $size . '.jpg';\n }\n\n if (in_array($field, $this->uploads['single'])) {\n return \"image/{$size}/{$config}/\" . folder_encode($image['folder']) . '/' . $image['file'];\n }\n\n $image = $image[0];\n\n return \"image/{$size}/{$config}/\" . folder_encode($image['folder']) . '/' . $image['file'];\n }" ]
[ "0.77785933", "0.7442538", "0.73303837", "0.7287951", "0.7278868", "0.7197321", "0.71946657", "0.7190268", "0.718512", "0.71349937", "0.7132017", "0.70982015", "0.70058584", "0.69721127", "0.6971632", "0.69685394", "0.6940211", "0.69304025", "0.6889806", "0.6845507", "0.6841917", "0.68097574", "0.68095237", "0.68059015", "0.68049264", "0.6788734", "0.67411494", "0.6727347", "0.67069566", "0.67053616", "0.6688779", "0.6676613", "0.66706115", "0.66578156", "0.6649074", "0.6624124", "0.66061246", "0.6589918", "0.6549331", "0.65132236", "0.65087533", "0.65054965", "0.64849734", "0.6471619", "0.64713746", "0.64637643", "0.6449276", "0.64486396", "0.6432956", "0.6404387", "0.6403928", "0.64027894", "0.639477", "0.6390817", "0.63592553", "0.63472784", "0.6331813", "0.632688", "0.6324058", "0.63209116", "0.6269521", "0.6249237", "0.6247878", "0.6231357", "0.6226769", "0.622648", "0.6222544", "0.62113965", "0.62055326", "0.61964923", "0.619316", "0.61923957", "0.6183919", "0.6182271", "0.618131", "0.6166353", "0.61611205", "0.6155591", "0.61481863", "0.61454123", "0.61434746", "0.6138096", "0.6129809", "0.61276656", "0.61247253", "0.61241364", "0.6120738", "0.611719", "0.6108991", "0.61085194", "0.61032045", "0.6101832", "0.6100719", "0.60920817", "0.6089004", "0.6078173", "0.60766715", "0.60750365", "0.6073946", "0.6073106" ]
0.871069
0
Provide a default name for the multibanner. Plugins defining multibanner bundles are suggested to override this method and provide a default name, to be used when there is no userdefined label available.
public function getDefaultName(MultibannerInterface $multibanner);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function defaultName() { return \"Enter the category name...\"; }", "function get_default_name()\n\t{\n\t\treturn 'Cuboid Blog Skin';\n\t}", "public function getDefaultName(): string\n {\n return self::$DEFAULT_NAME;\n }", "public function getDefaultName(): string\n {\n return self::$DEFAULT_NAME;\n }", "public function getDefaultTypeName();", "public function setDefaultLabel($label_name) {\n $this->default_label = $label_name;\n }", "public function label()\n {\n return $this->label ?? class_basename($this);\n }", "public function get_default_names() {\n\t\treturn apply_filters( 'wampum_content_default_names', array(\n\t\t\t'wampum_program' => array(\n\t\t\t\t'singular' => _x( 'Program', 'wampum' ),\n\t\t\t\t'plural' => _x( 'Programs', 'wampum' ),\n\t\t\t\t'slug' => _x( 'programs', 'wampum' ),\n\t\t\t)\n\t\t) );\n\t}", "public function getLabel()\n {\n return $this->label ?: $this->getName();\n }", "public function get_name() {\n if(get_config(constants::M_COMPONENT,'customname')){\n return get_config(constants::M_COMPONENT,'customname');\n }else {\n return get_string('pluginname', constants::M_COMPONENT);\n }\n }", "protected static function default_name(): mixed\n\t{\n\t\treturn self::$query->default_name;\n\t}", "private function getBundleName()\n {\n return 'NaonedEdnaoClientBundle';\n }", "public static function getDefaultName($biomarker) {\n\t\tforeach ($biomarker['BiomarkerName'] as $name) {\n\t\t\tif ($name['isPrimary'] == 1) {return $name['name'];}\n\t\t}\n\t\treturn \"unknown\";\n\t}", "public function useAlternativeName(): void\n {\n $this->useAlternateName = true;\n }", "public function getFrontendLabel();", "function getDisplayName() {\n\t\treturn __('plugins.themes.default.name');\n\t}", "public static function label()\n {\n return 'Multimedia';\n }", "function getDisplayName() {\r\n\t\treturn __('plugins.generic.markup.displayName');\r\n\t}", "protected function get_label(): string {\n\t\treturn 'You need to override the get_label() method in your class.';\n\t}", "public function getName()\n {\n return 'ic_core_field.twig.extension.aliasToLabel';\n }", "public function getLabel(): string\n {\n return $this->name;\n }", "function getDisplayName() {\n\t\treturn Locale::translate('plugins.generic.issuecarousel.displayName');\n\t}", "public function get_name() {\n return get_string('pluginname', 'local_createreassessmentmoodlegroup');\n }", "public function get_label();", "public function get_label();", "public static function get_default_labels()\n {\n }", "public static function get_default_labels()\n {\n }", "public function getName ()\n {\n return $this->getLabel();\n }", "public static function label()\n {\n return Str::singular(class_basename(get_called_class()));\n }", "public static function defaultSelectionLabel(): string\n {\n return Craft::t('app', 'Select organization');\n }", "public function getLabel($name);", "protected function getDefaultStubName()\n {\n return 'model';\n }", "public function getName()\n {\n return \"loki_characterbundle_specialization\";\n }", "function _getDefaultTagname($parent)\n {\n if (is_string($this->options[XML_SERIALIZER_OPTION_DEFAULT_TAG])) {\n return $this->options[XML_SERIALIZER_OPTION_DEFAULT_TAG];\n }\n if (isset($this->options[XML_SERIALIZER_OPTION_DEFAULT_TAG][$parent])) {\n return $this->options[XML_SERIALIZER_OPTION_DEFAULT_TAG][$parent];\n } elseif (isset($this->options[XML_SERIALIZER_OPTION_DEFAULT_TAG]\n ['#default'])\n ) {\n return $this->options[XML_SERIALIZER_OPTION_DEFAULT_TAG]['#default'];\n } elseif (isset($this->options[XML_SERIALIZER_OPTION_DEFAULT_TAG]\n ['__default'])\n ) {\n // keep this for BC\n return $this->options[XML_SERIALIZER_OPTION_DEFAULT_TAG]['__default'];\n }\n return 'XML_Serializer_Tag';\n }", "public function defaultLabel()\n {\n return 'Preview';\n }", "public static function label()\n {\n return 'Bukeri';\n }", "public function getDefaultTitle(): string;", "public function label() {\n return $this->getPluginId();\n }", "protected function getDefaultShareName()\n {\n return _(\"Notes\");\n }", "public static function getName()\n {\n }", "protected function get_default_title() {\n\n\t\treturn __( 'TeleCheck', 'woocommerce-gateway-firstdata' );\n\t}", "static function getTypeName($nb = 0) {\n return __('Knowledge base');\n }", "protected function getDefaultName()\n {\n $name = str_replace(\n ['-', '_'],\n ' ',\n $this->getCurrentDir()\n );\n\n return ucwords($name);\n }", "public function getDefaultManagerName()\n {\n // TODO: Implement getDefaultManagerName() method.\n }", "public function get_name() {\n return get_string('pluginname', 'local_assessmentextensions');\n }", "function getNameHelper(){\n\treturn 'Ejercicio de aprendizaje';\n}", "abstract protected function singularLabel(): string;", "public function getAssignmentDefaultName(): string;", "public function labels($key = null, $default = '');", "public function getLabel() {\n\t}", "public function getName()\n {\n return '';\n }", "public function getName()\n {\n return '';\n }", "public function getDefaultNameById($biomarker_id) {\n\t\t$q = \"SELECT `name` FROM `biomarker_names` WHERE `biomarker_id`='{$biomarker_id}' AND `isPrimary`='1'\";\n\t\t$results = $this->query($q);\n\n\t\tif (count($results) > 0) {\n\t\t\treturn $results[0]['biomarker_names']['name'];\n\t\t} else {\n\t\t\treturn \"unknown\";\n\t\t}\n\t}", "public function getName()\n\t{\n\t\treturn $this->getSettings()->pluginName;\n\t}", "public function getNameWithFallbackAttribute()\n {\n return $this->translateOrNew($this->locale())->name\n ?? $this->translateOrNew($this->getFallbackLocale())->name;\n }", "public function get_name() {\n return get_string('pluginname', 'local_assessmentsettings');\n }", "public final function getLabel(){\n $config = $this->getLocalConfiguration();\n\n if(array_key_exists('label',$config)){\n return $config['label'];\n }\n\n return $this->getConfiguration()['__title'];\n }", "public function setLabel() {\n }", "public function getName(): string\n {\n return 'Jibit';\n }", "public function name($name = null)\n {\n $name = isset($this->config['name'])\n ? $this->config['name']\n : $name;\n\n return parent::name($name);\n }", "public static function singularLabel()\n {\n return __('Template');\n }", "public function setControllerName()\n {\n $this->name = \"tagui\";\n }", "public function get_plugin_name()\n {\n }", "public function setLabel($name, $label);", "public function plugin_name() {\n\t\treturn 'All In One SEO Pack';\n\t}", "public function get_name() {\n return get_string('pluginname', 'forumngtype_' . $this->get_id());\n }", "public function GetLabel();", "public function getManageFormTypeName()\n {\n return 'default';\n }", "public static function singularLabel()\n {\n return 'Buker';\n }", "public function get_name() {\r\n\t\treturn '';\r\n\t}", "public function getBundleName()\n {\n return $this->sBundleName;\n }", "public function setLabel();", "public abstract function get_amd_name();", "function getDisplayName() {\n\t\treturn __('plugins.block.keywordCloud.displayName');\n\t}", "public static function getLabels()\n {\n return [\n 'singular' => 'Website',\n 'multiple' => 'Websites'\n ];\n }", "public function autoLabelNeeded();", "public function getName()\n {\n switch ($this->queriedContext) {\n case $this->i8n('context-keyword'):\n return $this->i8n('bridge-name') . ' - ' . $this->i8n('title-keyword') . ' : ' . $this->getInput('q');\n break;\n case $this->i8n('context-group'):\n return $this->i8n('bridge-name') . ' - ' . $this->i8n('title-group') . ' : ' . $this->getKey('group');\n break;\n case $this->i8n('context-talk'):\n return $this->i8n('bridge-name') . ' - ' . $this->i8n('title-talk') . ' : ' . $this->getTalkTitle();\n break;\n default: // Return default value\n return static::NAME;\n }\n }", "public function _getLabel($name) {\n\t$lbl = $this->_client->makeLabel($name);\n\treturn $lbl;\n }", "public function getLabel($label, $default_only=false) {\n\t\t\tglobal $db, $site;\n\t\t\tif ($_SESSION['treeline_language']) $lang = $_SESSION['treeline_language'];\n\t\t\telse if ($_SESSION['treeline_user_language']) $lang = $_SESSION['treeline_user_language'];\n\t\t\t\n\t\t\tif ($lang && $label) {\n\t\t\t\tif ($row = $db->get_row(\"SELECT id, longname FROM labels WHERE shortname='$label'\")) {\n\t\t\t\t\t$label_id = $row->id;\n\t\t\t\t\t$english = $row->longname;\n\t\t\t\t\t$query = \"SELECT longname FROM labels_default WHERE label_id = $label_id AND lang = '$lang'\";\n\t\t\t\t\t//print \"$query<br>\\n\";\n\t\t\t\t\t$default = $db->get_var($query);\n\t\t\t\t\tif (!$default_only) {\n\t\t\t\t\t\t$query = \"SELECT longname FROM labels_translations WHERE label_id = $label_id AND msv=\".$site->id;\n\t\t\t\t\t\t//print \"$query<br>\\n\";\n\t\t\t\t\t\t$sitelabel = $db->get_var($query);\n\t\t\t\t\t}\n\t\t\t\t\t$r = $sitelabel?$sitelabel:($default?$default:($english?$english:$label));\n\t\t\t\t\t//print \"return $r<br>\\n\";\n\t\t\t\t\treturn $r;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn 0;\n\t\t}", "public abstract function getName();", "protected static function get_default_description()\n {\n }", "abstract protected function label(): string;", "public function getLocalizedName();", "public function getLabel()\n {\n }", "public function getLabel()\n {\n }", "function getLabel()\n\t{\n\t\treturn '';\n\t}", "public function getLabel()\n {\n return Translation::get(($this->label ? : $this->name));\n }", "public function getName() {\n\t}", "public function getName() {\n\t\treturn null;\n\t}", "public function getName() {\n\t\treturn null;\n\t}", "public function get_label(): ?String {\n return $this->label;\n }", "public function get_name() {\n\t\treturn get_string('pluginname', 'assignsubmission_sketchfab');\n\t}", "public function getName ();", "public function getDefaultDefinition(): string;", "public function get_name() {\r\n return get_string('pluginname', 'assignsubmission_codehandin');\r\n }", "public function get_name() {\n return get_string('pluginname', 'local_categorycreate');\n }", "abstract protected function getDefaultPrefix(): string;", "public function getName()\r\n {\r\n }", "public function label()\n {\n if ($this->label_translated) {\n return cms_trans($this->label_translated);\n }\n\n if ($this->label) {\n return $this->label;\n }\n\n return ucfirst(str_replace('_', ' ', snake_case($this->source)));\n }", "public function defaultLabels(): array;" ]
[ "0.6349013", "0.6325951", "0.62280744", "0.62280744", "0.6079408", "0.5932225", "0.5916978", "0.5903926", "0.58890915", "0.5853725", "0.57624245", "0.57436985", "0.56907237", "0.5678745", "0.56722534", "0.56697017", "0.5661491", "0.5660112", "0.5652011", "0.5645503", "0.56420237", "0.5593521", "0.5580072", "0.55768037", "0.55768037", "0.55705297", "0.55705297", "0.55696505", "0.55561507", "0.5551078", "0.5549581", "0.5520539", "0.5512046", "0.5509401", "0.55086195", "0.5492594", "0.54823565", "0.5477261", "0.54612374", "0.5461013", "0.5457673", "0.54467356", "0.543545", "0.5428602", "0.5427567", "0.5416502", "0.5407491", "0.5405202", "0.5405186", "0.54042727", "0.540197", "0.540197", "0.53976315", "0.5394795", "0.5386454", "0.53841907", "0.5382241", "0.5381875", "0.5381263", "0.5375835", "0.5375085", "0.537258", "0.5364337", "0.5359636", "0.53588724", "0.5350735", "0.53507143", "0.53498274", "0.5349091", "0.5347727", "0.5340771", "0.53267825", "0.5326065", "0.5323311", "0.53207034", "0.5317748", "0.5310169", "0.531006", "0.5308514", "0.52948344", "0.52886456", "0.5268774", "0.52663434", "0.5264817", "0.5264817", "0.5261395", "0.525529", "0.5254604", "0.5252988", "0.5252988", "0.52526766", "0.5251678", "0.5251333", "0.5249349", "0.5248467", "0.52448773", "0.524146", "0.5236753", "0.52346796", "0.523406" ]
0.8011783
0
Handles the output from downstream requests.
public static function response($req, $out) { $chunksize = 65520; do { if (strlen($out) > $chunksize) { while (($ol = strlen($out)) > 0) { $l = min($chunksize, $ol); if (static::sendChunk($req, substr($out, 0, $l)) === false) { fwrite(STDOUT, "send response failed.\n"); break 2; } $out = substr($out, $l); } } elseif (static::sendChunk($req, $out) === false) { fwrite(STDOUT, "send response failed.\n"); break; } } while (false); static::endRequest($req, 0, 0); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function _handleResponse(){\n $this->_results[] = array(\n 'http_code' => $this->getInfoHTTPCode(),\n 'response' => $this->getResponse(),\n 'server' => $this->getUrl()\n );\n }", "private function responseHandle() {\n // call hook function\n is_callable(config('hooks.onResponse')) && call_user_func(config('hooks.onResponse'), $this);\n // response data\n $this->responder->output();\n }", "public function processOutput() {}", "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()\n {\n $this->send_status();\n $this->send_headers();\n $this->send_content();\n exit(0);\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 }", "abstract public function handle_request();", "protected function _output($data) {}", "public function getResponseOutput() {\n // Empty, to be overridden\n }", "public function run()\n {\n // dispatch all routes [between events]\n $this->trigger('horus.dispatch.before');\n\n // execute/disptach all routes relates to current request\n if ( isset($this->router) && $this->router instanceof Horus_Router )\n {\n if($this->router->state == false)\n $this->e404();\n else\n $this->output .= $this->router->output;\n }\n\n // trigger after router exec events\n $this->trigger('horus.dispatch.after');\n\n // get the output\n // prepare then only send if the request is not head\n $this->output .= ob_get_clean();\n\n // trigger before output events\n $this->trigger('horus.output.before', array($this));\n\n // trigger output filters\n $this->output = $this->trigger('horus.output.filter', $this->output, $this->output);\n\n // only send output if not HEAD request\n (strtoupper($_SERVER['REQUEST_METHOD']) == 'HEAD') || (print $this->output);\n\n // trigger after output events\n $this->trigger('horus.output.after', array($this));\n\n // end\n @ob_end_flush(); exit;\n }", "function process() {\n\t\t\t$response = $this->response();\n\t\t\t$this->setSuccess($response);\n\t\t\treturn $this->responseVar;\n\t\t}", "public static function process_http_request()\n {\n }", "public function handleRequest() {}", "protected abstract function handleRequest();", "public function requests()\n\t{\n\t\t$this->checkRequest();\n\t\t$this->getResponse();\n\t}", "protected function process_response() {\n\t\t\t$this->response['response']['Message'] = isset($this->response['response']['Message']) ? $this->response['response']['Message'] : '';\n\t\t\t$this->response['response']['error'] = (strpos(strtolower($this->response['response']['Message']), 'invalid') !== false) ? true : $this->response['response']['error'];\n\t\t\t$this->response['response']['error'] = (strpos(strtolower($this->response['response']['Message']), 'the item code was specified more than once') !== false) ? true : $this->response['response']['error'];\n\t\t\t$this->response['response']['Level1Code'] = $this->request['Level1Code'];\n\t\t\t\n\t\t\tif (!$this->response['response']['error']) { // IF Error is False\n\t\t\t\tif (in_array($this->response['server']['http_code'], array('200', '201', '202', '204'))) {\n\t\t\t\t\t$this->log_sendlogitem($this->request['Level1Code']);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$this->log_error($this->response['response']['Message']);\n\t\t\t}\n\t\t}", "abstract public function processRequest();", "public function process_request() {\n if(!empty($this->POST)) {\n return $this->handlePOST();\n } else {\n return $this->handleGET();\n }\n }", "private function requestProcessor() {\n try {\n\n if (empty($this->uri))\n throw new \\Exception(\"Undefined url\");\n\n $ReqHandle = curl_init($this->uri);\n\n $body = json_encode([]);\n if( sizeof($this->data) > 0 )\n $body = json_encode($this->data);\n\n $returnTransfer = 0;\n if( $this->hasResponseToReturn )\n $returnTransfer = 1;\n\n $isPost = 0;\n if( $this->method != 'GET')\n $isPost = 1;\n\n\n if($isPost == 1){\n curl_setopt($ReqHandle,CURLOPT_POST, $isPost);\n curl_setopt($ReqHandle, CURLOPT_POSTFIELDS, $body);\n }\n \n curl_setopt_array($ReqHandle, [\n CURLOPT_RETURNTRANSFER => $returnTransfer,\n CURLOPT_HTTPHEADER => $this->headersToBeUsed\n ]);\n\n\n $result = curl_exec($ReqHandle);\n\n if(curl_errno($ReqHandle)){\n\n return curl_error($ReqHandle);\n }\n\n if($returnTransfer == 1)\n return json_decode($result);\n\n\n\n } catch (\\Throwable $t) {\n new ErrorTracer($t);\n }\n }", "public function handleRequest();", "public function handleRequest();", "public function handleRequest();", "public function processRequest() {\n $this->server->service($GLOBALS['HTTP_RAW_POST_DATA']);\n }", "protected function _response() {}", "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 processRequest();", "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 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 }", "public function run()\n\t{\n\t\t// Proxy requests, write headers, and then render response\n\t\treturn $this\n\t\t\t->request()\n\t\t\t->response()\n\t\t;\n\t}", "protected function processing()\n {\n $this->response = $this->response->withStatus(203);\n $this->jsonBody($this->payload->getOutput());\n }", "function handleRequest() ;", "public abstract function processRequest();", "abstract public function response();", "final public function handle()\n {\n \n $this->_preHandle();\n \n if ($this->_request->getActionName() == null) {\n throw new ZendL_Tool_Endpoint_Exception('Endpoint failed to setup the action name.');\n }\n\n if ($this->_request->getProviderName() == null) {\n throw new ZendL_Tool_Endpoint_Exception('Endpoint failed to setup the provider name.');\n }\n \n ob_start();\n \n try {\n $dispatcher = new ZendL_Tool_Rpc_Endpoint_Dispatcher();\n $dispatcher->setRequest($this->_request)\n ->setResponse($this->_response)\n ->dispatch();\n \n } catch (Exception $e) {\n //@todo implement some sanity here\n die($e->getMessage());\n //$this->_response->setContent($e->getMessage());\n return;\n }\n \n if (($content = ob_get_clean()) != '') {\n $this->_response->setContent($content);\n }\n \n $this->_postHandle();\n }", "public function run()\n {\n // dispatch all routes [between events]\n $this->trigger('horus.dispatch.before');\n if(($o = $this->router->exec()) !== false) echo $o;\n else $this->e404();\n $this->trigger('horus.dispatch.after');\n\n // get the output\n // prepare then only send if the request is not head\n $this->output .= ob_get_clean();\n $this->trigger('horus.output.before', array($this));\n $this->output = $this->trigger('horus.output.filter', $this->output, $this->output);\n (strtoupper($_SERVER['REQUEST_METHOD']) == 'HEAD') or print $this->output;\n $this->trigger('horus.output.after', array($this));\n\n // end\n ob_get_level() < 1 or ob_end_flush(); exit;\n }", "public function process_queue()\r\n {\r\n error_reporting(0);\r\n\r\n // TODO: Prefill information is stored in this array. It's nasty, but it works for now.\r\n // This will need to be cleaned up somehow, later.\r\n $this->prefillRequests = array();\r\n\r\n $this->parseResponses();\r\n\r\n // Array of keys that need to be included in the response.\r\n $include = array('request', 'class', 'hit');\r\n $responseQuery = [];\r\n foreach($this->messageQuery as $response) {\r\n // Switch all keys to lower case to prevent possible case errors.\r\n $responseArr = array_change_key_case($response, CASE_LOWER);\r\n // returns an array that intersects with the keys from the $include array\r\n $responseQuery[] = array_intersect_key($responseArr, array_flip($include));\r\n }\r\n\r\n $requestSummary = $this->ArchiveResponse->ArchiveRequest->Request->getSummary(\r\n $this->CurrentAgency->agencyId,\r\n $this->CurrentDevice->agencyDeviceId);\r\n\r\n $summary = array(\r\n 'requests' => $requestSummary,\r\n 'response' => $responseQuery,\r\n 'prefill' => $this->prefillRequests\r\n );\r\n $this->set('summary', $summary);\r\n }", "protected function handleResultRequest() {\n\t\t// no longer letting people in without these things. If this is\n\t\t// preventing you from doing something, you almost certainly want to be\n\t\t// somewhere else.\n\t\t$deadSession = false;\n\t\tif ( !$this->adapter->session_hasDonorData() ) {\n\t\t\t$deadSession = true;\n\t\t}\n\t\t$oid = $this->adapter->getData_Unstaged_Escaped( 'order_id' );\n\n\t\t$request = $this->getRequest();\n\t\t$referrer = $request->getHeader( 'referer' );\n\t\t$liberated = false;\n\t\tif ( $this->adapter->session_getData( 'order_status', $oid ) === 'liberated' ) {\n\t\t\t$liberated = true;\n\t\t}\n\n\t\t// XXX need to know whether we were in an iframe or not.\n\t\tglobal $wgServer;\n\t\tif ( $this->isReturnFramed() && ( strpos( $referrer, $wgServer ) === false ) && !$liberated ) {\n\t\t\t$sessionOrderStatus = $request->getSessionData( 'order_status' );\n\t\t\t$sessionOrderStatus[$oid] = 'liberated';\n\t\t\t$request->setSessionData( 'order_status', $sessionOrderStatus );\n\t\t\t$this->logger->info( \"Resultswitcher: Popping out of iframe for Order ID \" . $oid );\n\t\t\t$this->getOutput()->allowClickjacking();\n\t\t\t$this->getOutput()->addModules( 'iframe.liberator' );\n\t\t\treturn;\n\t\t}\n\n\t\t$this->setHeaders();\n\t\t$userAgent = $request->getHeader( 'User-Agent' );\n\t\tif ( !$userAgent ) {\n\t\t\t$userAgent = 'Unknown';\n\t\t}\n\n\t\tif ( $this->isRepeatReturnProcess() ) {\n\t\t\t$this->logger->warning(\n\t\t\t\t'Donor is trying to process an already-processed payment. ' .\n\t\t\t\t\"Adapter Order ID: $oid.\\n\" .\n\t\t\t\t\"Cookies: \" . print_r( $_COOKIE, true ) . \"\\n\" .\n\t\t\t\t\"User-Agent: \" . $userAgent\n\t\t\t);\n\t\t\t$this->displayThankYouPage( 'repeat return processing' );\n\t\t\treturn;\n\t\t}\n\n\t\tif ( $deadSession ) {\n\t\t\tif ( $this->adapter->isReturnProcessingRequired() ) {\n\t\t\t\twfHttpError( 403, 'Forbidden', wfMessage( 'donate_interface-error-http-403' )->text() );\n\t\t\t\tthrow new RuntimeException(\n\t\t\t\t\t'Resultswitcher: Request forbidden. No active donation in the session. ' .\n\t\t\t\t\t\"Adapter Order ID: $oid.\\n\" .\n\t\t\t\t\t\"Cookies: \" . print_r( $_COOKIE, true ) . \"\\n\" .\n\t\t\t\t\t\"User-Agent: \" . $userAgent\n\t\t\t\t);\n\t\t\t}\n\t\t\t// If it's possible for a donation to go through without our\n\t\t\t// having to do additional processing in the result switcher,\n\t\t\t// we don't want to falsely claim it failed just because we\n\t\t\t// lost the session data. We also don't want to give any\n\t\t\t// information to scammers hitting this page with no session,\n\t\t\t// so we always show the thank you page. We don't want to do\n\t\t\t// any post-processing if we're not sure whether we actually\n\t\t\t// originated this attempt, so we return right after.\n\t\t\t$this->logger->warning(\n\t\t\t\t'Resultswitcher: session is dead, but the ' .\n\t\t\t\t'donor may have made a successful payment.'\n\t\t\t);\n\t\t\t$this->displayThankYouPage( 'dead session' );\n\t\t\treturn;\n\t\t}\n\t\t$this->logger->info( \"Resultswitcher: OK to process Order ID: \" . $oid );\n\n\t\tif ( $this->adapter->checkTokens() ) {\n\t\t\t// feed processDonorReturn all the GET and POST vars\n\t\t\t$requestValues = $this->getRequest()->getValues();\n\t\t\t$result = $this->adapter->processDonorReturn( $requestValues );\n\t\t\t$this->markReturnProcessed();\n\t\t\t$this->renderResponse( $result );\n\t\t\treturn;\n\t\t} else {\n\t\t\t$this->logger->error( \"Resultswitcher: Token Check Failed. Order ID: $oid\" );\n\t\t}\n\t\t$this->displayFailPage();\n\t}", "protected function found()\n {\n $this->response = $this->response->withStatus(200);\n $this->jsonBody($this->payload->getOutput());\n }", "public function run()\n { \n $output = (string) $this->get('router')->dispatch();\n $response = $this->get('response');\n $response->setBody($output);\n $response->send();\n\n }", "protected function handleResultRequest() {\n\t\t//no longer letting people in without these things. If this is\n\t\t//preventing you from doing something, you almost certainly want to be\n\t\t//somewhere else.\n\t\t$deadSession = false;\n\t\tif ( !$this->adapter->session_hasDonorData() ) {\n\t\t\t$deadSession = true;\n\t\t}\n\t\t$oid = $this->adapter->getData_Unstaged_Escaped( 'order_id' );\n\n\t\t$request = $this->getRequest();\n\t\t$referrer = $request->getHeader( 'referer' );\n\t\t$liberated = false;\n\t\tif ( $this->adapter->session_getData( 'order_status', $oid ) === 'liberated' ) {\n\t\t\t$liberated = true;\n\t\t}\n\n\t\t// XXX need to know whether we were in an iframe or not.\n\t\tglobal $wgServer;\n\t\tif ( $this->isReturnFramed() && ( strpos( $referrer, $wgServer ) === false ) && !$liberated ) {\n\t\t\t$sessionOrderStatus = $request->getSessionData( 'order_status' );\n\t\t\t$sessionOrderStatus[$oid] = 'liberated';\n\t\t\t$request->setSessionData( 'order_status', $sessionOrderStatus );\n\t\t\t$this->logger->info( \"Resultswitcher: Popping out of iframe for Order ID \" . $oid );\n\t\t\t$this->getOutput()->allowClickjacking();\n\t\t\t$this->getOutput()->addModules( 'iframe.liberator' );\n\t\t\treturn;\n\t\t}\n\n\t\t$this->setHeaders();\n\n\t\tif ( $deadSession ){\n\t\t\tif ( $this->adapter->isReturnProcessingRequired() ) {\n\t\t\t\twfHttpError( 403, 'Forbidden', wfMessage( 'donate_interface-error-http-403' )->text() );\n\t\t\t\tthrow new RuntimeException(\n\t\t\t\t\t'Resultswitcher: Request forbidden. No active donation in the session. ' .\n\t\t\t\t\t\"Adapter Order ID: $oid\"\n\t\t\t\t);\n\t\t\t}\n\t\t\t// If it's possible for a donation to go through without our\n\t\t\t// having to do additional processing in the result switcher,\n\t\t\t// we don't want to falsely claim it failed just because we\n\t\t\t// lost the session data. We also don't want to give any\n\t\t\t// information to scammers hitting this page with no session,\n\t\t\t// so we always show the thank you page. We don't want to do\n\t\t\t// any post-processing if we're not sure whether we actually\n\t\t\t// originated this attempt, so we return right after.\n\t\t\t$this->logger->warning(\n\t\t\t\t'Resultswitcher: session is dead, but the ' .\n\t\t\t\t'donor may have made a successful payment.'\n\t\t\t);\n\t\t\t$this->displayThankYouPage( 'dead session' );\n\t\t\treturn;\n\t\t}\n\t\t$this->logger->info( \"Resultswitcher: OK to process Order ID: \" . $oid );\n\n\t\tif ( $this->adapter->checkTokens() ) {\n\t\t\t$this->getOutput()->allowClickjacking();\n\t\t\t// FIXME: do we really need this again?\n\t\t\t$this->getOutput()->addModules( 'iframe.liberator' );\n\t\t\t// processResponse expects some data, so let's feed it all the\n\t\t\t// GET and POST vars\n\t\t\t$response = $this->getRequest()->getValues();\n\t\t\t// TODO: run the whole set of getResponseStatus, getResponseErrors\n\t\t\t// and getResponseData first. Maybe do_transaction with a\n\t\t\t// communication_type of 'incoming' and a way to provide the\n\t\t\t// adapter the GET/POST params harvested here.\n\t\t\t$this->adapter->processResponse( $response );\n\t\t\t$status = $this->adapter->getFinalStatus();\n\t\t\tswitch ( $status ) {\n\t\t\tcase FinalStatus::COMPLETE:\n\t\t\tcase FinalStatus::PENDING:\n\t\t\t\t$this->displayThankYouPage( $status );\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t$this->logger->info( \"Displaying fail page for final status $status\" );\n\t\t} else {\n\t\t\t$this->logger->error( \"Resultswitcher: Token Check Failed. Order ID: $oid\" );\n\t\t}\n\t\t$this->displayFailPage();\n\t}", "protected function handle_request() {\r\n global $wp;\r\n $film_query = $wp->query_vars['films'];\r\n \r\n if (!$film_query) { // send all films\r\n $raw_data = $this->get_all_films();\r\n }\r\n else if ($film_query == \"featured\") { // send featured films\r\n $raw_data = $this->get_featured_films();\r\n }\r\n else if (is_numeric($film_query)) { // send film of id\r\n $raw_data = $this->get_film_by_id($film_query);\r\n }\r\n else { // input error\r\n $this->send_response('Bad Input');\r\n }\r\n\r\n $all_data = $this->get_acf_data($raw_data);\r\n $this->send_response('200 OK', $all_data);\r\n }", "public function response(){\r\n\t\t// register event on_shutdown\r\n\t\tregister_shutdown_function(function(){\r\n\t\t\t// on_shutdown\r\n\t\t\t\\M::get('event')->trigger('system.on_shutdown');\r\n\r\n\t\t\t// debug\r\n\t\t\t\\M::get('debug')->exception_fatal();\r\n\t\t});\r\n\r\n\t\tob_start();\r\n\t\t\t// load default config & controller core\r\n\t\t\trequire_once APP_PATH . 'config.php';\r\n\t\t\trequire_once SYSTEM_PATH . 'controller.php';\r\n\r\n\t\t\t// on load\r\n\t\t\t\\M::get('event')->trigger('system.on_load', DOMAIN);\r\n\r\n\t\t\t// parser url\r\n\t\t\t$this->parser_url();\r\n\t\t\t// load module\r\n\t\t\t$this->load_module(input('module', 'str', 'get'));\r\n\t\t\t// load extend module\r\n\t\t\t$this->load_extend(input('extend_module', 'str', 'get'));\r\n\t\t\t// load group controller & controller\r\n\t\t\tlist($lib, $instance) = $this->load_controller(input('group_controller', 'str', 'get'), input('controller', 'str', 'get'));\r\n\t\t\t// load action\r\n\t\t\t$this->load_action($lib, $instance);\r\n\t\t$html = ob_get_clean();\r\n\r\n\t\t// on response\r\n\t\tob_start();\r\n\t\t\\M::get('event')->change('system.on_response', $html);\r\n\r\n\t\t// display html & end all script\r\n\t\tdie($html);\r\n\t}", "protected function sendResponse() {}", "public function processResponses() {\n\t\t$receivedResponses = $this->receivedResponseMapper->findAll();\n\t\tforeach ($receivedResponses as $receivedResponse) {\n\t\t\t$requestId = $receivedResponse->getRequestId();\n\t\t\t$answer = $receivedResponse->getAnswer();\n\t\t\n\t\t\t$queuedRequest = $this->queuedRequestMapper->find($requestId);\n\t\t\tif ($queuedRequest) {\n\t\t\t\t$type = $queuedRequest->getRequestType();\n\t\t\t\t$field1 = $queuedRequest->getField1();\n\t\t\t}\n\t\t\telse {\n\t\t\t\t//request no longer exists, so just delete response\n\t\t\t\t$this->receivedResponseMapper->delete($receivedResponse);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\tswitch ($type) {\n\t\t\t\tcase Request::USER_EXISTS:\n\t\t\t\t\tif ($answer !== \"1\" AND $answer !== \"0\") {\n\t\t\t\t\t\t$this->api->log(\"ReceivedResponse for Request USER_EXISTS, request_id = {$receivedResponse->getId()} had invalid response = {$answer}\"); \n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tif ($answer === \"0\") {\n\t\t\t\t\t\t$friendships = $this->friendshipMapper->findAllByUser($field1);\n\t\t\t\t\t\tforeach ($friendships as $friendship) {\n\t\t\t\t\t\t\t$this->friendshipMapper->delete($friendship);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t$this->api->beginTransaction();\n\t\t\t\t\t//Don't need destination for delete since they should all be this instance\n\t\t\t\t\t$this->receivedResponseMapper->delete($receivedResponse);\n \t\t\t\t\t$this->queuedRequestMapper->delete($receivedResponse);\n\t\t\t\t\t$this->api->commit();\n\t\t\t\t\tbreak;\n\t\t\t\tcase Request::FETCH_USER: \n\t\t\t\t\tif ($answer !== \"1\" AND $answer !== \"0\") {\n\t\t\t\t\t\t$this->api->log(\"ReceivedResponse for Request FETCH_USER, request_id = {$receivedResponse->getId()} had invalid response = {$answer}\"); \n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\n\t\t\t\t\t$this->api->beginTransaction();\n\t\t\t\t\t//Don't need destination for delete since they should all be this instance\n\t\t\t\t\t$this->receivedResponseMapper->delete($receivedResponse);\n \t\t\t\t\t$this->queuedRequestMapper->delete($receivedResponse);\n\t\t\t\t\t$this->api->commit();\n\t\t\t\t\t\n\t\t\t\t\tbreak;\t\n\t\t\t\tdefault:\n\t\t\t\t\t$this->api->log(\"Invalid request_type {$type} for request id {$requestId}\");\n\t\t\t\t\tcontinue;\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "protected function _handle()\n {\n return $this\n ->_addData('post', $_POST)\n ->_addData('get', $_GET)\n ->_addData('server', $_SERVER)\n ->_handleRequestRoute();\n }", "public function serveRequest()\n {\n $msg = $this->connection->read();\n if (!$msg) return;\n $this->connection->acknowledge($msg);\n \n $replyMsg = $this->act($msg);\n\n // write correlation id\n $replyMsg->setHeader(\"correlation-id\", $msg->getId());\n\n $this->connection->send($msg->getReplyTo(), $replyMsg);\t\t\n }", "private function handleDiagnosticsRequest()\n {\n $statusApiConfigurator = new Webinterpret_Connector_StatusApi_StatusApiConfigurator(Mage::app(), Mage::getConfig());\n\n $statusApi = $statusApiConfigurator->getExtendedStatusApi();\n\n $json = $statusApi->getJsonTestResults();\n header('Content-Type: application/json');\n header('Content-Length: '.strlen($json));\n echo $json;\n }", "abstract public function processResponse($response);", "function main()\r\n {\r\n $this->setOutput();\r\n }", "public function emit()\n {\n $this->sendHeaders();\n $this->sendBody();\n }", "public function get_output()\n {\n }", "public function handle()\n {\n\t //PROCESS FOR QUESTION 4:\n //Single request with error handling:\n \n //Create handler with curl\n $curl = new CurlMultiHandler;\n\t\t$handler = HandlerStack::create($curl);\n\t\t\n\t\t//create client and set custom handler\n\t\t$client = new Client(['handler' => $handler]);\n\t\t\n\t\t$promise = $client->requestAsync('POST', 'https://atomic.incfile.com/fakepost');\n\t\t$promise->then(\n\t\t function (ResponseInterface $result) {\n\t\t\t //Handle success here\n\t\t\t \n\t\t Log::info(\"Correct request\");\n\t\t },\n\t\t function (RequestException $exception) {\n\t\t //Handle error here\n\t\t \n\t\t $error_status_code = \"There was an error with status code: \" . $exception->getResponse()->getStatusCode();\n\t\t\t\t$error_description = \", the error was: \\n\\n\" . $exception->getMessage();\n\t\t\t\t\n\t\t\t\t$error_complete_msg = $error_status_code . $error_description;\n\t\t \n\t\t Log::error($error_complete_msg);\n\t\t }\n\t\t);\n\t\t\n\t\t//this will ensure the reliable delivery of the request\n\t\twhile ($promise->getState() === 'pending') {\n\t\t $curl->tick();\n\t\t \n\t\t //do stuff\n\t\t}\n\t\t\n\t\t//This next line loses kind of a little bit the point of \"asynchrousness\" for only one request: $promise->wait();\n\t\t\n\t\t\n\t\t\n\t\t//------------------------------//\n\t\t\n\t\t\n\t\t//PROCESS FOR QUESTION 5:\n\t\t//Multiple requests with error handling:\n\t\t\n\t\t//This is the number of requests, here you would put the 100k requests\n\t\t$total = 50;\n\t\t$client = new Client();\t\n\t\t\n\t\t//Segment the number of requests in order to not overload the server\n\t\t$concurrency = 10;\n\t\t\n\t\t$pool = new Pool($client, $this->requestGenerator($total), [\n\t\t 'concurrency' => $concurrency,\n\t\t 'fulfilled' => function (Response $response, $index) {\n\t\t\t //Handle success here\n\t\t\t \n\t\t Log::info(\"Correct request\");\n\t\t },\n\t\t 'rejected' => function (RequestException $exception, $index) {\n\t\t\t //Handle error here\n\t\t\t \n\t\t\t\t$error_index = \"There was an error in the request number: \" . ($index + 1) . \", \";\n\t\t\t\t$error_status_code = \"with status code: \" . $exception->getResponse()->getStatusCode();\n\t\t\t\t$error_description = \", the error was: \\n\\n\" . $exception->getMessage();\n\t\t\t\t$error_separator = \"\\n ------------- \\n\";\n\t\t\t\t\n\t\t\t\t$error_complete_msg = $error_index . $error_status_code . $error_description . $error_separator;\n\t\t\t \n\t\t\t\tLog::error($error_complete_msg);\n\t\t\t\t\n\t\t },\n\t\t]);\n\t\t\n\t\t// Start transfers and create promise\n\t\t$promise = $pool->promise();\n\t\t\n\t\t// Force ALL requests to complete.\n\t\t$promise->wait();\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t/*\n\t\t\tYou could also dispatch a queued job for this question 5, \n\t\t\tbut I think that for this case that involves sending HTTP requests (sending email would be a better use, for example), \n\t\t\tqueuing this process loses a bit of sense because the requests are being sent in the\n\t\t\tabove code asynchronously already, so I'll be running an asynchronous process ( the promise ) in an asynchronous way ( queue ):\n\t\t*/\n\t\t\n\t\t\n\t\t//Job sent to a queue called \"requests\", in this case, I'll be using database driver:\n\t\tSendRequests::dispatch()->onQueue('requests');\n\t\t\n\t\t\n }", "public function handle(): void\n {\n $globals = $_SERVER;\n //$SlimPsrRequest = ServerRequestFactory::createFromGlobals();\n //it doesnt matters if the Request is of different class - no need to create Guzaba\\Http\\Request\n $PsrRequest = ServerRequestFactory::createFromGlobals();\n //the only thing that needs to be fixed is the update the parsedBody if it is NOT POST & form-fata or url-encoded\n\n\n //$GuzabaPsrRequest =\n\n //TODO - this may be reworked to reroute to a new route (provided in the constructor) instead of providing the actual response in the constructor\n $DefaultResponse = $this->DefaultResponse;\n //TODO - fix the below\n// if ($PsrRequest->getContentType() === ContentType::TYPE_JSON) {\n// $DefaultResponse->getBody()->rewind();\n// $structure = ['message' => $DefaultResponse->getBody()->getContents()];\n// $json_string = json_encode($structure, JSON_UNESCAPED_SLASHES);\n// $StreamBody = new Stream(null, $json_string);\n// $DefaultResponse = $DefaultResponse->\n// withBody($StreamBody)->\n// withHeader('Content-Type', ContentType::TYPES_MAP[ContentType::TYPE_JSON]['mime'])->\n// withHeader('Content-Length', (string) strlen($json_string));\n// }\n\n $FallbackHandler = new RequestHandler($DefaultResponse);//this will produce 404\n $QueueRequestHandler = new QueueRequestHandler($FallbackHandler);//the default response prototype is a 404 message\n foreach ($this->middlewares as $Middleware) {\n $QueueRequestHandler->add_middleware($Middleware);\n }\n $PsrResponse = $QueueRequestHandler->handle($PsrRequest);\n $this->emit($PsrResponse);\n\n }", "public function _output($output)\n\t{\n\t\t$output = (string)$output;\n\n\t\tci('router')->onResponse($output);\n\n\t\techo $output;\n\t}", "public function handleRequests() {\r\n $response = null;\r\n try {\r\n $urlArray = $this->uri->uri_to_assoc(3);\r\n if (array_key_exists('login', $urlArray)) {\r\n $response = self::postLogin();\r\n } else {\r\n $login = self::clientLogin();\r\n $response = self::instantiateRequestedClass($urlArray, $login);\r\n }\r\n } catch (Exception $ex) {\r\n $response = $this->apiv1_core->errorResponse($ex->getCode(), $ex->getMessage());\r\n }\r\n\r\n $httpcode = substr($response['code'], 0, 3);\r\n\r\n $name = '';\r\n foreach ($urlArray as $key => $value) {\r\n $this->$key = $value;\r\n $name = ucfirst($key);\r\n }\r\n $method = strtolower($this->input->server('REQUEST_METHOD')) . $name;\r\n $reqParam = $this->input->get() ? $this->input->get() : file_get_contents(\"php://input\");\r\n\r\n $msg = array(\r\n 'resourceURL' => $this->uri->assoc_to_uri($urlArray),\r\n 'className' => $response['className'],\r\n 'methodName' => $method,\r\n 'requestJSON' => json_encode($reqParam),\r\n 'responseHTTP' => $httpcode,\r\n 'responseJSON' => ($response['message']) ? json_encode($response) : json_encode($response['res']),\r\n );\r\n\r\n $logCid = isset($urlArray['account']) ? $urlArray['account'] : NULL;\r\n dblog_message(LOG_LEVEL_INFO, LOG_TYPE_API, \"API: \" . \r\n $this->input->server('REQUEST_METHOD') . \" \" .\r\n $this->uri->assoc_to_uri($urlArray) . \"\\n\" . print_r($msg, TRUE), $logCid);\r\n\r\n header(\"Content-Type: application/json\");\r\n header(\"HTTP/1.1 $httpcode\", true, $httpcode);\r\n\r\n if ($response['message']) {\r\n echo json_encode($response);\r\n } else {\r\n echo json_encode($response['res']);\r\n }\r\n return;\r\n }", "public function output() {}", "public function fetch()\n\t{\n\t\t$this->context = null;\n\t\t\n\t\tif (!$this->output) {\n\t\t\t$this->perform();\n\t\t}\n\t\t\n\t\treturn $this->getOutput();\n\t}", "public function run()\n\t{\n\t\t$response = $this->dispatch($this['request']);\n\n\t\t$response->send();\n\n\t\t$this->callFinishMiddleware($response);\n\t}", "public function postHandler(&$output)\n {\n // Fail silently if this ever recieves a POST request.\n $this->badRequest('');\n }", "protected function processMessages()\n {\n while ($done = curl_multi_info_read($this->multiHandle)) {\n $request = $this->resourceHash[(int)$done['handle']];\n $this->processResponse($request, $this->handles[$request], $done);\n }\n }", "public function process()\n {\n parent::process();\n $data = $this->getBody();\n if (!isset($data)) {\n $data = array();\n }\n\n try {\n if ($this->_validateSchema()) {\n $resultSet = $this->_processLookup($data);\n $customer = $resultSet['customer'];\n if (!is_null($customer)) {\n $response = array(\n 'customer' => $customer,\n 'destination_id' => $this->getPublisherPseudonym(),\n 'correlation_id' => $this->getCorrelationId(),\n );\n $this->_sendSuccess($response);\n }\n if (sizeof($resultSet['errors']) > 0) {\n $response = array(\n 'errors' => $resultSet['errors'],\n 'destination_id' => $this->getPublisherPseudonym(),\n 'correlation_id' => $this->getCorrelationId(),\n );\n $this->_sendFailure($response);\n }\n }\n } catch (Exception $ex) {\n Mage::logException($ex);\n\n\n $errorResponse = array(\n 'id' => $data['id'],\n 'errors' => array(\n array(\n 'code' => empty($code) ? '-1' : '' . $code,\n 'message' => $ex->getMessage(),\n 'parameters' => null\n )\n ),\n 'destination_id' => $this->getPublisherPseudonym(),\n 'correlation_id' => $this->getCorrelationId(),\n );\n $this->_sendFailure($errorResponse);\n }\n return $this;\n }", "function _handler_response(&$app, &$c) {\n\t\t$c->param('app.view_http.response.status', $this->_http->getResponseCode());\n\t\t$c->param('app.view_http.response.body', $this->_http->getResponseBody());\n\t\t$c->param('app.view_http.response.headers', $this->_http->getResponseHeader());\n\t}", "public function handleRequest($request)\n {\n list ($route, $params) = $request->resolve();\n $this->requestedRoute = $route;\n $result = $this->runAction($route, $params);\n\n if ($result instanceof Response) {\n return $result;\n } elseif ($result instanceof Looper){\n $result->loop();\n\n $response = $this->getResponse();\n $response->exitStatus = 0;\n\n return $response;\n } else {\n $response = $this->getResponse();\n $response->exitStatus = $result;\n\n return $response;\n }\n }", "public function handle()\n {\n // 4. Ensure reliable delivery\n $client = new GuzzleClient([\n 'base_uri' => 'https://atomic.incfile.com/',\n ]);\n \n try {\n $response = $client->request('POST', 'fakepost');\n $code = $response->getStatusCode();\n } catch (ClientException $e) {\n $code = $e->getCode();\n \\Log::error($e);\n }\n\n $success = $this->_handleStatusCode($code);\n\n if ($success) {\n $this->info(\"The request reached destination and had a successful response\");\n } else {\n $this->info(\"The request had a failed response\");\n }\n // 4. End Ensure reliable delivery\n\n\n // 5. Handle 100K requests \n $requests = function ($total) {\n $uri = 'https://atomic.incfile.com/fakepost';\n for ($i = 0; $i < $total; $i++) {\n yield new Request('GET', $uri);\n }\n };\n\n $totalRequests = 100000;\n $successRequests = 0;\n $failedRequests = 0;\n\n $pool = new Pool($client, $requests($totalRequests), [\n 'concurrency' => 100,\n 'fulfilled' => function ($response, $index) use (& $successRequests) {\n // this is delivered each successful response\n $successRequests++;\n },\n 'rejected' => function ($reason, $index) use (& $failedRequests) {\n // this is delivered each failed request\n $failedRequests++;\n },\n ]);\n\n // Initiate the transfers and create a promise\n $promise = $pool->promise();\n\n // Force the pool of requests to complete.\n $promise->wait();\n \n $this->info(\"Total Requests: $totalRequests\");\n $this->info(\"Success Requests: $successRequests\");\n $this->info(\"Failed Requests: $failedRequests\");\n // 5. End Handle 100K requests \n\n }", "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 }", "protected function outputSpecificStep() {}", "public function execute()\n {\n $data = [];\n foreach ($this->getRequest()->getParams() as $key => $post) {\n $data[$key] = filter_var($post, FILTER_SANITIZE_STRING);\n }\n\n $originZip = isset($data['origin_zip']) ? $data['origin_zip'] : '';\n\n if ($originZip) {\n $mapResult = $this->googleApiCurl($originZip, EnConstants::GOOGLE_URL);\n $error = $this->errorChecking($mapResult);\n\n if (empty($error)) {\n $addressArray = $this->addressArray($mapResult);\n } else {\n $addressArray = $error;\n }\n } else {\n $addressArray = $this->dataHelper->generateResponse();\n }\n\n $this->getResponse()->setHeader('Content-type', 'application/json');\n /** @var array $addressArray */\n $this->getResponse()->setBody(json_encode($addressArray));\n }", "function deliver_response(){\n\n // --- Step 1: Initialize variables and functions\n //\n // Deliver HTTP Response\n // The desired HTTP response content type: [json, html, xml]\n // The desired HTTP response data\n\n\n header('HTTP/1.1 '.$this->response['status'] . // Set HTTP Response\n ' '.$this->http_response_code[$this->response['status'] ]);\n header('Content-Type: application/json; charset=utf-8'); // Set HTTP Response Content Type\n $json_response = json_encode($this->response['data']); // Format data into a JSON response\n echo $json_response; // Deliver formatted data\n }", "protected function _handle_query()\n\t{\t\n\t\t$this->_http_query = $this->_request;\n\t\t$response_object = $this->payments->gateway_request($this->_api_endpoint, $this->_http_query, 'application/x-www-form-urlencoded');\n\t\treturn $this->_parse_response($response_object);\n\t}", "public function serve_request()\n {\n }", "abstract protected function doHandle(ContextInterface $context, $output): void;", "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 }", "abstract protected function handleResult();", "public function handleRequest ()\n\t{\n\t\t$this->version = '1.0';\n\t\t$this->id = NULL;\n\n\t\tif ($this->getProperty(self::PROPERTY_ENABLE_EXTRA_METHODS))\n\t\t\t$this->publishExtraMethods();\n\n\t\tif ($_SERVER['REQUEST_METHOD'] == 'POST')\n\t\t{\n\n\t\t\t$json = file_get_contents('php://input');\n\t\t\t$request = \\json_decode($json);\n\n\t\t\tif (is_array($request))\n\t\t\t{\n\t\t\t\t// Multicall\n\t\t\t\t$this->version = '2.0';\n\n\t\t\t\t$response = array();\n\t\t\t\tforeach ($request as $singleRequest)\n\t\t\t\t{\n\t\t\t\t\t$singleResponse = $this->handleSingleRequest($singleRequest, TRUE);\n\t\t\t\t\tif ($singleResponse !== FALSE)\n\t\t\t\t\t\t$response[] = $singleResponse;\n\t\t\t\t}\n\n\t\t\t\t// If all methods in a multicall are notifications, we must not return an empty array\n\t\t\t\tif (count($response) == 0)\n\t\t\t\t\t$response = FALSE;\n\t\t\t}\n\t\t\telse if (is_object($request))\n\t\t\t{\n\t\t\t\t$this->version = $this->getRpcVersion($request);\n\t\t\t\t$response = $this->handleSingleRequest($request);\n\t\t\t}\n\t\t\telse\n\t\t\t\t$response = $this->formatError(self::ERROR_INVALID_REQUEST);\n\t\t}\n\t\telse if ($_SERVER['PATH_INFO'] != '')\n\t\t{\n\t\t\t$this->version = '1.1';\n\t\t\t$this->id = NULL;\n\n\t\t\t$method = substr($_SERVER['PATH_INFO'], 1);\n\t\t\t$params = $this->convertFromRpcEncoding($_GET);\n\n\t\t\tif (!$this->hasMethod($method))\n\t\t\t\t$response = $this->formatError(self::ERROR_METHOD_NOT_FOUND);\n\t\t\telse\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tRpcResponse::setWriter(new JsonRpcResponseWriter($this->version, $this->id));\n\t\t\t\t\t$res = $this->invoke($method, $params);\n\t\t\t\t\tif ($res instanceof JsonRpcResponseWriter)\n\t\t\t\t\t{\n\t\t\t\t\t\t$res->finalize();\n\t\t\t\t\t\t$resposne = FALSE;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\t$response = $this->formatResult($res);\n\t\t\t\t}\n\t\t\t\tcatch (\\Exception $exception)\n\t\t\t\t{\n\t\t\t\t\t$response = $this->formatException($exception);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$response = $this->formatError(self::ERROR_PARSE_ERROR);\n\t\t}\n\n\t\tif (!headers_sent())\n\t\t{\n\t\t\theader('Content-Type: application/json', TRUE);\n\t\t\theader('Cache-Control: nocache', TRUE);\n\t\t\theader('Pragma: no-cache', TRUE);\n\t\t}\n\n\t\tif ($response !== FALSE)\n\t\t{\n\t\t\t$result = \\json_encode($this->convertToRpcEncoding($response));\n\n\t\t\tif ($result === FALSE)\n\t\t\t\terror_log(var_export($response, TRUE));\n\t\t\telse\n\t\t\t\techo($result);\n\t\t}\n\t}", "public function requestOut($r, $s) {\n\t}", "protected function processGetRequest()\n {\n $this->ajaxDie(json_encode([\n 'success' => true,\n 'operation' => 'get'\n ]));\n }", "public function handleRequest()\n\t{\n\t\t$fp = $this->fromRequest();\n\t\treturn $fp->render();\n\t}", "function output($output) {\n http_response_code(200);\n echo json_encode($output);\n}", "function handle_output($serverOutput, $function)\n{\n $response = json_decode($serverOutput);\n $message = key($response);\n $response = isset($response->$message) ? $response->$message : null;\n //$parts = explode(':', $serverOutput, 2);\n //This will simply kill the script if EE returns with an error\n //This is to avoid foulups, and to simplify the code checking above\n if ($message == 'COUNTRY_IS_DEAD') {\n out(\"Country is Dead!\");\n\n return false;\n } elseif ($message == 'OWNED') {\n out(\"Trying to sell more than owned!\");\n\n return false;\n } elseif (expected_result($function) && $message != expected_result($function)) {\n out(\"\\n\\nUnexpected Result for '$function': \".$message.':'.$response.\"\\n\\n\");\n\n return false;\n } elseif (!expected_result($function)) {\n out($message);\n out_data($response);\n return false;\n }\n\n return $response;\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 respond() {\n\t\thttp_response_code($this->code);\n\n\t\t// Additional headers\n\t\tforeach ($this->head as $header) {\n\t\t\theader($header);\n\t\t}\n\n\t\t// Write the body\n\t\tforeach ($this->body as $toStringable) {\n\t\t\techo $toStringable;\n\t\t}\n\t}", "public function handle()\n {\n $client = new Client();\n $res = $client->request('POST', 'http://projects.knmi.nl/klimatologie/daggegevens/getdata_dag.cgi', \n [\n 'post-data' => [\n 'vars' => 'PRCP', 'stns' => '833'\n ]\n ]\n );\n\n $this->line($res->getStatusCode());\n $this->line($res->getHeader('content-type'));\n var_dump($res->getBody());\n var_dump($res);\n $this->line('imported!');\n // 'start' => '', 'end' => '',\n }", "function respond($output) {\n\n\t/*\n\t\tstandard response:\n\t\n\t\t\tapiName\n\t\t\tversion\n\t\t\tstatus\n\t\t\terror\n\t\t\tmsg \n\t\t\tresults\n\n\t*/\n\n\techo json_encode($output);\n}", "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 process()\n {\n \t$client = $this->client->getClient();\n\n \ttry {\n $response = $client->get($this->buildUrl());\n return new ResponseJson((string)$response->getBody(), true);\n } catch (RequestException $e) {\n return new ResponseJson((string)$e->getResponse()->getBody(), false);\n }\n }", "public function handle()\n {\n /** @var $responses AbstractResponse[] */\n $responses = [];\n try {\n $result = $this->requestFactory->forge();\n $requests = $result[0];\n $isBatch = $result[1];\n } catch (JsonRpcException $e) {\n $responses[] = new ErrorResponse(null, $e);\n $isBatch = false;\n }\n if (isset($requests)) {\n foreach ($requests as $request) {\n if ($request instanceof Request) {\n $error = null;\n try {\n foreach ($this->middlewares as $callable) {\n $callable($request);\n }\n $result = call_user_func_array([$this->app, $request->getMethod()], $request->getParams());\n if ($request->getId() !== false) {\n $responses[] = new SuccessResponse($request->getId(), $result);\n }\n } catch (\\BadMethodCallException $e) {\n $error = new MethodNotFoundException($e->getMessage());\n } catch (JsonRpcException $e) {\n $error = $e;\n } catch (\\Exception $e) {\n $error = new InternalException($e->getMessage());\n }\n if ($error !== null) {\n $responses[] = new ErrorResponse($request->getId(), $error);\n }\n } else {\n $responses[] = new ErrorResponse(null, $request);\n }\n }\n }\n if (!empty($responses) && isset($isBatch)) {\n if (sizeof($responses) == 1 && $isBatch === false) {\n $output = $responses[0]->jsonify();\n } else {\n $responses = array_map(\n function (AbstractResponse $response) {\n return $response->jsonify();\n },\n $responses\n );\n $output = sprintf('[%s]', implode(',', $responses));\n }\n }\n\n return isset($output) ? $output : null;\n }", "function dispatch() {\n\t\t$this->header();\n\n\t\t$step = empty( $_GET['step'] ) ? 0 : (int) $_GET['step'];\n\t\tswitch ( $step ) {\n\t\t\tcase 0:\n\t\t\t\t$this->analyze();\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\tcheck_admin_referer('woo_jigo_converter');\n\t\t\t\t$this->woo_import_jigo_orders();\n\t\t\t\tbreak;\n\t\t}\n\n\t\t$this->footer();\n\t}", "public function process()\n {\n synapse()->brain->topic()->triggers()->each(function ($data, $trigger) {\n $this->searchTriggers($trigger);\n\n if ($this->output !== 'Error: Response could not be determined.') {\n return false;\n }\n });\n\n return $this->output;\n }", "public function run()\n {\n $this->requestId = uniqid();\n $this->startTime = microtime();\n\n try {\n // Generate a Request object from the data available in the\n // current running environment.\n try {\n $requestFactory = new Requests\\Factories\\Http;\n $request = $requestFactory->get($this);\n // Set the application locale from the request.\n // TODO: Move into the Request constructor?\n $this->setLocale($request->getLocale());\n // Run the process of responding to the request.\n $this->issueResponse($request);\n } catch (\\Throwable $throwable) {\n // There was an error somewhere during the request\n // creation, or somewhere during the response building\n // process.\n $errorRequest = new Requests\\Http\\Error;\n $errorRequest->setThrowable($throwable);\n $this->issueResponse($errorRequest, $throwable);\n }\n } catch (\\Exception $exception) {\n // There was an error while trying to fail gracefully.\n // Little else can be done now.\n $this->fail($exception);\n }\n\n Logger::get()->info($this->getStats());\n\n // Since the application is being run in an HTTP context, and\n // PHP is the scripting language it is, the application cycle\n // just finishes after the response is done with its tasks.\n }", "public function handleResponse($data)\n {\n // Retrieve the specific request data\n $requestData = current($data->getReturnsArray());\n \n // Initialize the inventory response\n $inventoryResponse = new GetInventoryResponse();\n\n // Unmarshall the response\n $inventoryResponse->read($requestData);\n\n $this->setData($inventoryResponse);\n }", "protected function handleRequest() {\n\t\t// TODO: remove conditional when we have a dedicated error render\n\t\t// page and move addModule to Mustache#getResources\n\t\tif ( $this->adapter->getFormClass() === 'Gateway_Form_Mustache' ) {\n\t\t\t$modules = $this->adapter->getConfig( 'ui_modules' );\n\t\t\tif ( !empty( $modules['scripts'] ) ) {\n\t\t\t\t$this->getOutput()->addModules( $modules['scripts'] );\n\t\t\t}\n\t\t\tif ( $this->adapter->getGlobal( 'LogClientErrors' ) ) {\n\t\t\t\t$this->getOutput()->addModules( 'ext.donationInterface.errorLog' );\n\t\t\t}\n\t\t\tif ( !empty( $modules['styles'] ) ) {\n\t\t\t\t$this->getOutput()->addModuleStyles( $modules['styles'] );\n\t\t\t}\n\t\t}\n\t\t$this->handleDonationRequest();\n\t}", "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(){\n // server response object \n $requestMethod = $this->requestBuilder->getRequestMethod();\n $this->response = new Response($requestMethod);\n\n try{\n $route = $this->router->validateRequestedRoute($this->requestBuilder);\n\n // serve request object\n $this->requestBuilder->setQuery();\n $this->requestBuilder->setBody();\n $requestParams = $this->requestBuilder->getParam();\n $requestQuery = $this->requestBuilder->getQuery();\n $requestBody = $this->requestBuilder->getBody(); \n $this->request = new Request($requestParams, $requestQuery, $requestBody);\n\n $callback = $route->getCallback();\n $callback($this->request, $this->response);\n }catch(RouteNotImplementedException $e){\n $this->response->statusCode(404)->json($e->getMessage()); \n }\n \n }", "public function handle_result() {\n\t\t\t\tif ( ! isset( $_REQUEST['order-id'] ) || empty( $_REQUEST['order-id'] ) ) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\t$response = file_get_contents( 'php://input' );\n\t\t\t\t$jsonResponse = json_decode( $response );\n\t\t\t\t$responseArray = json_decode($response,true);\n\t\t\t\t\n\t\t\t\t$order = wc_get_order( $_REQUEST['order-id'] );\n\t\t\t\t\n\t\t\t $order->add_order_note( $this->generateTable($responseArray),'success' );\n\t\t\t // Only Log when test mode is enabled\n\t\t\t if( 'yes' == $this->get_option( 'test_enabled' ) ) {\n\t\t\t \t$order->add_order_note( $response );\n\t\t\t }\n\t\t\t \n\n\t\t\t\tif ( isset( $jsonResponse->transactionStatus ) && 'APPROVED' == $jsonResponse->transactionStatus ) {\n\t\t\t\t\t\t// Complete this order, otherwise set it to another status as per configurations\n\t\t\t\t\t\t$order->payment_complete();\n\t\t\t\t\t\t$order->update_status( $this->get_option( 'success_payment_status' ), __( 'Havano Payment was Successful.', 'havanao' ) );\t\n\t\t\t\t} else {\n\t\t\t\t\t$order->update_status( $this->get_option( 'errored_payment_status' ), __( 'Havano Payment was Successful.', 'havanao' ) );\t\n\t\t\t\t}\n\t\t\t}", "public function output() {\n // Add output listeners\n $oc = new OutputController();\n $oc->listen();\n // Create matcher\n $matcher = new UrlMatcher(Routing::get()->routes(), new RequestContext());\n // Subscribe a route listener to the events\n $this->serviceContainer->get('events')\n ->addSubscriber(new RouterListener($matcher, new RequestStack()));\n // Create kernel object\n $kernel = new HttpKernel(\n $this->serviceContainer->get('events'), new ControllerResolver(), new RequestStack(), new ArgumentResolver()\n );\n\n $response = $kernel->handle($this->getRequest());\n $response->send();\n\n $kernel->terminate($this->getRequest(), $response);\n \n if($this->inDevelopment()) {\n // Execute any queries left behind\n Db::flushAll();\n }\n\n return $this;\n }", "function process(&$input, &$output)\n {\n if (SGL_Config::get('site.maintenanceMode')) {\n // allow admin to access and to connect if provided a key\n $rid = SGL_Session::getRoleId();\n $adminMode = SGL_Session::get('adminMode');\n if ($rid != SGL_ADMIN && !$adminMode && !SGL::runningFromCLI()) {\n $req = $input->getRequest();\n // show mtnce page for browser requests\n if ($req->getType() == SGL_REQUEST_BROWSER) {\n SGL::displayMaintenancePage($output);\n }\n }\n }\n\n $this->processRequest->process($input, $output);\n }", "public function process_interac_response()\n\t{\n\t\t$idebit_merchantdata = strtolower(ee()->input->get_post('IDEBIT_MERCHDATA'));\n\t\tif($idebit_merchantdata)\n\t\t{\n\t\t\t$transaction = ee()->db->select('store_notify_url')->from('store_beanstream_interac')->where('interac_merchant_data', $idebit_merchantdata)->get();\n\t\t\tif($transaction->num_rows() == 1)\n\t\t\t{\n\t\t\t\t$_POST['funded'] = $_GET['funded'];\n\t\t\t\t$url = $transaction->row('store_notify_url').'&'.http_build_query($_POST);\n\t\t\t\tee()->functions->redirect($url);\n\t\t\t}\n\t\t}\n\t}", "public function fetch()\n\t{\n\t\t// Send the HTTP headers\n\t\t$this->sendHeaders();\n\t\t\n\t\t// Start output-buffering, catch it in the output variable\n\t\tob_start();\n\t\t$this->display();\n\t\t$output = ob_get_clean();\n\t\t\n\t\treturn $output;\n\t}", "public function processAction(): Response\n {\n // 1. Transform Request to Query.\n /** @var GetOneQuery $query */\n $query = $this->queryAdapter->buildQueryFromRequest($this->queryRequest);\n\n // 2. Business work thanks to the Query.\n $entity = $this->queryHandler->process($query);\n\n // 3. Format using the business work and return the Response.\n $body = $this->prepareSuccess($entity);\n return $this->responseHandler->create($body)->getResponse();\n }", "public function call()\n {\n $this->dispatchRequest($this['request'], $this['response']);\n }", "public function handle()\n {\n $browser = $this->createBrowser();\n try {\n if ($this->proxy_query->getMethod() === Utils::$METHOD_POST) {\n if ($this->proxy_query->getContent() !== null) {\n $content = $this->proxy_query->getContent();\n } else {\n $content = $this->proxy_query->getPostQueryString();\n }\n $headers = Utils::prepareHeadersForRequest($this->proxy_query->getHeaders(), $this->headerBlackList,\n $this->headerWhiteList);\n $headers['User-Agent'] = $this->userAgent;\n if ($this->logger !== null) {\n $this->logger->debug(\"CommonProxy->handle POST:\" . $this->proxy_query->getGetUrl());\n $this->logger->debug(\"CommonProxy->handle Headers: \" . print_r($this->proxy_query->getHeaders(), true));\n }\n $browserResponse = $browser->post($this->proxy_query->getGetUrl(), $headers, $content);\n } else if ($this->proxy_query->getMethod() === Utils::$METHOD_GET) {\n $headers = Utils::prepareHeadersForRequest($this->proxy_query->getHeaders(), $this->headerBlackList,\n $this->headerWhiteList);\n $headers['User-Agent'] = $this->userAgent;\n if ($this->logger !== null) {\n $this->logger->debug(\"CommonProxy->handle GET:\" . $this->proxy_query->getGetUrl());\n $this->logger->debug(\"CommonProxy->handle Headers: \" . print_r($this->proxy_query->getHeaders(), true));\n }\n $browserResponse = $browser->get($this->proxy_query->getGetUrl(), $headers);\n }\n } catch (\\Exception $e) {\n if ($this->logger !== null) {\n $this->logger->err(\"CommonProxy->handle :\" . $e->getMessage());\n }\n throw new HTTPStatus502Exception($e->getMessage(), 502);\n }\n return $browserResponse;\n }" ]
[ "0.6491831", "0.6489103", "0.6400746", "0.6316907", "0.62929046", "0.62597436", "0.6249635", "0.61858785", "0.60678804", "0.6021351", "0.60177827", "0.5994404", "0.59671426", "0.5956429", "0.58960825", "0.5878664", "0.58575076", "0.5837835", "0.58287996", "0.58236736", "0.58236736", "0.58236736", "0.5812294", "0.58096355", "0.57988155", "0.5782948", "0.5772899", "0.5772788", "0.5765368", "0.5762233", "0.57367563", "0.5735567", "0.5733422", "0.5708111", "0.5680509", "0.56489885", "0.56472784", "0.56454545", "0.56411296", "0.5639522", "0.5636384", "0.56341755", "0.5630124", "0.5626108", "0.56194496", "0.55978477", "0.55967784", "0.5594187", "0.55787337", "0.5569463", "0.55648065", "0.5561642", "0.5545218", "0.5544385", "0.55381703", "0.5497383", "0.54917186", "0.5487332", "0.5481306", "0.54557", "0.54530686", "0.5439779", "0.5433458", "0.5432542", "0.5426908", "0.5424573", "0.5419011", "0.54110634", "0.5400148", "0.53867745", "0.53674346", "0.53663486", "0.5362226", "0.5359319", "0.534949", "0.53463274", "0.5345927", "0.5345647", "0.5340347", "0.53347045", "0.531716", "0.5314892", "0.5312417", "0.5310901", "0.5310533", "0.5308945", "0.530598", "0.53015065", "0.5296549", "0.5293709", "0.52888376", "0.5282899", "0.52808946", "0.527875", "0.527629", "0.5274866", "0.52723944", "0.52674806", "0.52652514", "0.52649534", "0.5256638" ]
0.0
-1
Handles the output from downstream requests.
public static function endRequest($req, $appStatus = 0, $protoStatus = 0) { $content = pack('NC', $appStatus, $protoStatus) // app status, protocol status . "\x00\x00\x00"; $paddingLength = 8 - strlen($content) % 8; $payload = "\x01" // protocol version . "\x03" // record type (END_REQUEST) . pack('nnC', $req->id, strlen($content), $paddingLength) // id, content length, padding length . "\x00" // reserved . $content // content . str_repeat("\0", $paddingLength); static::send($req->fd, $payload); $req->destoryTempFiles(); if ($protoStatus === -1 || !($req->attrs->flags & static::$FCGI_KEEP_CONN)) { static::closeConnection($req->fd); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function _handleResponse(){\n $this->_results[] = array(\n 'http_code' => $this->getInfoHTTPCode(),\n 'response' => $this->getResponse(),\n 'server' => $this->getUrl()\n );\n }", "private function responseHandle() {\n // call hook function\n is_callable(config('hooks.onResponse')) && call_user_func(config('hooks.onResponse'), $this);\n // response data\n $this->responder->output();\n }", "public function processOutput() {}", "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()\n {\n $this->send_status();\n $this->send_headers();\n $this->send_content();\n exit(0);\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 }", "abstract public function handle_request();", "protected function _output($data) {}", "public function getResponseOutput() {\n // Empty, to be overridden\n }", "public function run()\n {\n // dispatch all routes [between events]\n $this->trigger('horus.dispatch.before');\n\n // execute/disptach all routes relates to current request\n if ( isset($this->router) && $this->router instanceof Horus_Router )\n {\n if($this->router->state == false)\n $this->e404();\n else\n $this->output .= $this->router->output;\n }\n\n // trigger after router exec events\n $this->trigger('horus.dispatch.after');\n\n // get the output\n // prepare then only send if the request is not head\n $this->output .= ob_get_clean();\n\n // trigger before output events\n $this->trigger('horus.output.before', array($this));\n\n // trigger output filters\n $this->output = $this->trigger('horus.output.filter', $this->output, $this->output);\n\n // only send output if not HEAD request\n (strtoupper($_SERVER['REQUEST_METHOD']) == 'HEAD') || (print $this->output);\n\n // trigger after output events\n $this->trigger('horus.output.after', array($this));\n\n // end\n @ob_end_flush(); exit;\n }", "function process() {\n\t\t\t$response = $this->response();\n\t\t\t$this->setSuccess($response);\n\t\t\treturn $this->responseVar;\n\t\t}", "public static function process_http_request()\n {\n }", "public function handleRequest() {}", "protected abstract function handleRequest();", "public function requests()\n\t{\n\t\t$this->checkRequest();\n\t\t$this->getResponse();\n\t}", "protected function process_response() {\n\t\t\t$this->response['response']['Message'] = isset($this->response['response']['Message']) ? $this->response['response']['Message'] : '';\n\t\t\t$this->response['response']['error'] = (strpos(strtolower($this->response['response']['Message']), 'invalid') !== false) ? true : $this->response['response']['error'];\n\t\t\t$this->response['response']['error'] = (strpos(strtolower($this->response['response']['Message']), 'the item code was specified more than once') !== false) ? true : $this->response['response']['error'];\n\t\t\t$this->response['response']['Level1Code'] = $this->request['Level1Code'];\n\t\t\t\n\t\t\tif (!$this->response['response']['error']) { // IF Error is False\n\t\t\t\tif (in_array($this->response['server']['http_code'], array('200', '201', '202', '204'))) {\n\t\t\t\t\t$this->log_sendlogitem($this->request['Level1Code']);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$this->log_error($this->response['response']['Message']);\n\t\t\t}\n\t\t}", "abstract public function processRequest();", "public function process_request() {\n if(!empty($this->POST)) {\n return $this->handlePOST();\n } else {\n return $this->handleGET();\n }\n }", "private function requestProcessor() {\n try {\n\n if (empty($this->uri))\n throw new \\Exception(\"Undefined url\");\n\n $ReqHandle = curl_init($this->uri);\n\n $body = json_encode([]);\n if( sizeof($this->data) > 0 )\n $body = json_encode($this->data);\n\n $returnTransfer = 0;\n if( $this->hasResponseToReturn )\n $returnTransfer = 1;\n\n $isPost = 0;\n if( $this->method != 'GET')\n $isPost = 1;\n\n\n if($isPost == 1){\n curl_setopt($ReqHandle,CURLOPT_POST, $isPost);\n curl_setopt($ReqHandle, CURLOPT_POSTFIELDS, $body);\n }\n \n curl_setopt_array($ReqHandle, [\n CURLOPT_RETURNTRANSFER => $returnTransfer,\n CURLOPT_HTTPHEADER => $this->headersToBeUsed\n ]);\n\n\n $result = curl_exec($ReqHandle);\n\n if(curl_errno($ReqHandle)){\n\n return curl_error($ReqHandle);\n }\n\n if($returnTransfer == 1)\n return json_decode($result);\n\n\n\n } catch (\\Throwable $t) {\n new ErrorTracer($t);\n }\n }", "public function handleRequest();", "public function handleRequest();", "public function handleRequest();", "public function processRequest() {\n $this->server->service($GLOBALS['HTTP_RAW_POST_DATA']);\n }", "protected function _response() {}", "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 processRequest();", "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 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 }", "public function run()\n\t{\n\t\t// Proxy requests, write headers, and then render response\n\t\treturn $this\n\t\t\t->request()\n\t\t\t->response()\n\t\t;\n\t}", "protected function processing()\n {\n $this->response = $this->response->withStatus(203);\n $this->jsonBody($this->payload->getOutput());\n }", "function handleRequest() ;", "public abstract function processRequest();", "abstract public function response();", "final public function handle()\n {\n \n $this->_preHandle();\n \n if ($this->_request->getActionName() == null) {\n throw new ZendL_Tool_Endpoint_Exception('Endpoint failed to setup the action name.');\n }\n\n if ($this->_request->getProviderName() == null) {\n throw new ZendL_Tool_Endpoint_Exception('Endpoint failed to setup the provider name.');\n }\n \n ob_start();\n \n try {\n $dispatcher = new ZendL_Tool_Rpc_Endpoint_Dispatcher();\n $dispatcher->setRequest($this->_request)\n ->setResponse($this->_response)\n ->dispatch();\n \n } catch (Exception $e) {\n //@todo implement some sanity here\n die($e->getMessage());\n //$this->_response->setContent($e->getMessage());\n return;\n }\n \n if (($content = ob_get_clean()) != '') {\n $this->_response->setContent($content);\n }\n \n $this->_postHandle();\n }", "public function run()\n {\n // dispatch all routes [between events]\n $this->trigger('horus.dispatch.before');\n if(($o = $this->router->exec()) !== false) echo $o;\n else $this->e404();\n $this->trigger('horus.dispatch.after');\n\n // get the output\n // prepare then only send if the request is not head\n $this->output .= ob_get_clean();\n $this->trigger('horus.output.before', array($this));\n $this->output = $this->trigger('horus.output.filter', $this->output, $this->output);\n (strtoupper($_SERVER['REQUEST_METHOD']) == 'HEAD') or print $this->output;\n $this->trigger('horus.output.after', array($this));\n\n // end\n ob_get_level() < 1 or ob_end_flush(); exit;\n }", "public function process_queue()\r\n {\r\n error_reporting(0);\r\n\r\n // TODO: Prefill information is stored in this array. It's nasty, but it works for now.\r\n // This will need to be cleaned up somehow, later.\r\n $this->prefillRequests = array();\r\n\r\n $this->parseResponses();\r\n\r\n // Array of keys that need to be included in the response.\r\n $include = array('request', 'class', 'hit');\r\n $responseQuery = [];\r\n foreach($this->messageQuery as $response) {\r\n // Switch all keys to lower case to prevent possible case errors.\r\n $responseArr = array_change_key_case($response, CASE_LOWER);\r\n // returns an array that intersects with the keys from the $include array\r\n $responseQuery[] = array_intersect_key($responseArr, array_flip($include));\r\n }\r\n\r\n $requestSummary = $this->ArchiveResponse->ArchiveRequest->Request->getSummary(\r\n $this->CurrentAgency->agencyId,\r\n $this->CurrentDevice->agencyDeviceId);\r\n\r\n $summary = array(\r\n 'requests' => $requestSummary,\r\n 'response' => $responseQuery,\r\n 'prefill' => $this->prefillRequests\r\n );\r\n $this->set('summary', $summary);\r\n }", "protected function handleResultRequest() {\n\t\t// no longer letting people in without these things. If this is\n\t\t// preventing you from doing something, you almost certainly want to be\n\t\t// somewhere else.\n\t\t$deadSession = false;\n\t\tif ( !$this->adapter->session_hasDonorData() ) {\n\t\t\t$deadSession = true;\n\t\t}\n\t\t$oid = $this->adapter->getData_Unstaged_Escaped( 'order_id' );\n\n\t\t$request = $this->getRequest();\n\t\t$referrer = $request->getHeader( 'referer' );\n\t\t$liberated = false;\n\t\tif ( $this->adapter->session_getData( 'order_status', $oid ) === 'liberated' ) {\n\t\t\t$liberated = true;\n\t\t}\n\n\t\t// XXX need to know whether we were in an iframe or not.\n\t\tglobal $wgServer;\n\t\tif ( $this->isReturnFramed() && ( strpos( $referrer, $wgServer ) === false ) && !$liberated ) {\n\t\t\t$sessionOrderStatus = $request->getSessionData( 'order_status' );\n\t\t\t$sessionOrderStatus[$oid] = 'liberated';\n\t\t\t$request->setSessionData( 'order_status', $sessionOrderStatus );\n\t\t\t$this->logger->info( \"Resultswitcher: Popping out of iframe for Order ID \" . $oid );\n\t\t\t$this->getOutput()->allowClickjacking();\n\t\t\t$this->getOutput()->addModules( 'iframe.liberator' );\n\t\t\treturn;\n\t\t}\n\n\t\t$this->setHeaders();\n\t\t$userAgent = $request->getHeader( 'User-Agent' );\n\t\tif ( !$userAgent ) {\n\t\t\t$userAgent = 'Unknown';\n\t\t}\n\n\t\tif ( $this->isRepeatReturnProcess() ) {\n\t\t\t$this->logger->warning(\n\t\t\t\t'Donor is trying to process an already-processed payment. ' .\n\t\t\t\t\"Adapter Order ID: $oid.\\n\" .\n\t\t\t\t\"Cookies: \" . print_r( $_COOKIE, true ) . \"\\n\" .\n\t\t\t\t\"User-Agent: \" . $userAgent\n\t\t\t);\n\t\t\t$this->displayThankYouPage( 'repeat return processing' );\n\t\t\treturn;\n\t\t}\n\n\t\tif ( $deadSession ) {\n\t\t\tif ( $this->adapter->isReturnProcessingRequired() ) {\n\t\t\t\twfHttpError( 403, 'Forbidden', wfMessage( 'donate_interface-error-http-403' )->text() );\n\t\t\t\tthrow new RuntimeException(\n\t\t\t\t\t'Resultswitcher: Request forbidden. No active donation in the session. ' .\n\t\t\t\t\t\"Adapter Order ID: $oid.\\n\" .\n\t\t\t\t\t\"Cookies: \" . print_r( $_COOKIE, true ) . \"\\n\" .\n\t\t\t\t\t\"User-Agent: \" . $userAgent\n\t\t\t\t);\n\t\t\t}\n\t\t\t// If it's possible for a donation to go through without our\n\t\t\t// having to do additional processing in the result switcher,\n\t\t\t// we don't want to falsely claim it failed just because we\n\t\t\t// lost the session data. We also don't want to give any\n\t\t\t// information to scammers hitting this page with no session,\n\t\t\t// so we always show the thank you page. We don't want to do\n\t\t\t// any post-processing if we're not sure whether we actually\n\t\t\t// originated this attempt, so we return right after.\n\t\t\t$this->logger->warning(\n\t\t\t\t'Resultswitcher: session is dead, but the ' .\n\t\t\t\t'donor may have made a successful payment.'\n\t\t\t);\n\t\t\t$this->displayThankYouPage( 'dead session' );\n\t\t\treturn;\n\t\t}\n\t\t$this->logger->info( \"Resultswitcher: OK to process Order ID: \" . $oid );\n\n\t\tif ( $this->adapter->checkTokens() ) {\n\t\t\t// feed processDonorReturn all the GET and POST vars\n\t\t\t$requestValues = $this->getRequest()->getValues();\n\t\t\t$result = $this->adapter->processDonorReturn( $requestValues );\n\t\t\t$this->markReturnProcessed();\n\t\t\t$this->renderResponse( $result );\n\t\t\treturn;\n\t\t} else {\n\t\t\t$this->logger->error( \"Resultswitcher: Token Check Failed. Order ID: $oid\" );\n\t\t}\n\t\t$this->displayFailPage();\n\t}", "protected function found()\n {\n $this->response = $this->response->withStatus(200);\n $this->jsonBody($this->payload->getOutput());\n }", "public function run()\n { \n $output = (string) $this->get('router')->dispatch();\n $response = $this->get('response');\n $response->setBody($output);\n $response->send();\n\n }", "protected function handleResultRequest() {\n\t\t//no longer letting people in without these things. If this is\n\t\t//preventing you from doing something, you almost certainly want to be\n\t\t//somewhere else.\n\t\t$deadSession = false;\n\t\tif ( !$this->adapter->session_hasDonorData() ) {\n\t\t\t$deadSession = true;\n\t\t}\n\t\t$oid = $this->adapter->getData_Unstaged_Escaped( 'order_id' );\n\n\t\t$request = $this->getRequest();\n\t\t$referrer = $request->getHeader( 'referer' );\n\t\t$liberated = false;\n\t\tif ( $this->adapter->session_getData( 'order_status', $oid ) === 'liberated' ) {\n\t\t\t$liberated = true;\n\t\t}\n\n\t\t// XXX need to know whether we were in an iframe or not.\n\t\tglobal $wgServer;\n\t\tif ( $this->isReturnFramed() && ( strpos( $referrer, $wgServer ) === false ) && !$liberated ) {\n\t\t\t$sessionOrderStatus = $request->getSessionData( 'order_status' );\n\t\t\t$sessionOrderStatus[$oid] = 'liberated';\n\t\t\t$request->setSessionData( 'order_status', $sessionOrderStatus );\n\t\t\t$this->logger->info( \"Resultswitcher: Popping out of iframe for Order ID \" . $oid );\n\t\t\t$this->getOutput()->allowClickjacking();\n\t\t\t$this->getOutput()->addModules( 'iframe.liberator' );\n\t\t\treturn;\n\t\t}\n\n\t\t$this->setHeaders();\n\n\t\tif ( $deadSession ){\n\t\t\tif ( $this->adapter->isReturnProcessingRequired() ) {\n\t\t\t\twfHttpError( 403, 'Forbidden', wfMessage( 'donate_interface-error-http-403' )->text() );\n\t\t\t\tthrow new RuntimeException(\n\t\t\t\t\t'Resultswitcher: Request forbidden. No active donation in the session. ' .\n\t\t\t\t\t\"Adapter Order ID: $oid\"\n\t\t\t\t);\n\t\t\t}\n\t\t\t// If it's possible for a donation to go through without our\n\t\t\t// having to do additional processing in the result switcher,\n\t\t\t// we don't want to falsely claim it failed just because we\n\t\t\t// lost the session data. We also don't want to give any\n\t\t\t// information to scammers hitting this page with no session,\n\t\t\t// so we always show the thank you page. We don't want to do\n\t\t\t// any post-processing if we're not sure whether we actually\n\t\t\t// originated this attempt, so we return right after.\n\t\t\t$this->logger->warning(\n\t\t\t\t'Resultswitcher: session is dead, but the ' .\n\t\t\t\t'donor may have made a successful payment.'\n\t\t\t);\n\t\t\t$this->displayThankYouPage( 'dead session' );\n\t\t\treturn;\n\t\t}\n\t\t$this->logger->info( \"Resultswitcher: OK to process Order ID: \" . $oid );\n\n\t\tif ( $this->adapter->checkTokens() ) {\n\t\t\t$this->getOutput()->allowClickjacking();\n\t\t\t// FIXME: do we really need this again?\n\t\t\t$this->getOutput()->addModules( 'iframe.liberator' );\n\t\t\t// processResponse expects some data, so let's feed it all the\n\t\t\t// GET and POST vars\n\t\t\t$response = $this->getRequest()->getValues();\n\t\t\t// TODO: run the whole set of getResponseStatus, getResponseErrors\n\t\t\t// and getResponseData first. Maybe do_transaction with a\n\t\t\t// communication_type of 'incoming' and a way to provide the\n\t\t\t// adapter the GET/POST params harvested here.\n\t\t\t$this->adapter->processResponse( $response );\n\t\t\t$status = $this->adapter->getFinalStatus();\n\t\t\tswitch ( $status ) {\n\t\t\tcase FinalStatus::COMPLETE:\n\t\t\tcase FinalStatus::PENDING:\n\t\t\t\t$this->displayThankYouPage( $status );\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t$this->logger->info( \"Displaying fail page for final status $status\" );\n\t\t} else {\n\t\t\t$this->logger->error( \"Resultswitcher: Token Check Failed. Order ID: $oid\" );\n\t\t}\n\t\t$this->displayFailPage();\n\t}", "protected function handle_request() {\r\n global $wp;\r\n $film_query = $wp->query_vars['films'];\r\n \r\n if (!$film_query) { // send all films\r\n $raw_data = $this->get_all_films();\r\n }\r\n else if ($film_query == \"featured\") { // send featured films\r\n $raw_data = $this->get_featured_films();\r\n }\r\n else if (is_numeric($film_query)) { // send film of id\r\n $raw_data = $this->get_film_by_id($film_query);\r\n }\r\n else { // input error\r\n $this->send_response('Bad Input');\r\n }\r\n\r\n $all_data = $this->get_acf_data($raw_data);\r\n $this->send_response('200 OK', $all_data);\r\n }", "public function response(){\r\n\t\t// register event on_shutdown\r\n\t\tregister_shutdown_function(function(){\r\n\t\t\t// on_shutdown\r\n\t\t\t\\M::get('event')->trigger('system.on_shutdown');\r\n\r\n\t\t\t// debug\r\n\t\t\t\\M::get('debug')->exception_fatal();\r\n\t\t});\r\n\r\n\t\tob_start();\r\n\t\t\t// load default config & controller core\r\n\t\t\trequire_once APP_PATH . 'config.php';\r\n\t\t\trequire_once SYSTEM_PATH . 'controller.php';\r\n\r\n\t\t\t// on load\r\n\t\t\t\\M::get('event')->trigger('system.on_load', DOMAIN);\r\n\r\n\t\t\t// parser url\r\n\t\t\t$this->parser_url();\r\n\t\t\t// load module\r\n\t\t\t$this->load_module(input('module', 'str', 'get'));\r\n\t\t\t// load extend module\r\n\t\t\t$this->load_extend(input('extend_module', 'str', 'get'));\r\n\t\t\t// load group controller & controller\r\n\t\t\tlist($lib, $instance) = $this->load_controller(input('group_controller', 'str', 'get'), input('controller', 'str', 'get'));\r\n\t\t\t// load action\r\n\t\t\t$this->load_action($lib, $instance);\r\n\t\t$html = ob_get_clean();\r\n\r\n\t\t// on response\r\n\t\tob_start();\r\n\t\t\\M::get('event')->change('system.on_response', $html);\r\n\r\n\t\t// display html & end all script\r\n\t\tdie($html);\r\n\t}", "protected function sendResponse() {}", "public function processResponses() {\n\t\t$receivedResponses = $this->receivedResponseMapper->findAll();\n\t\tforeach ($receivedResponses as $receivedResponse) {\n\t\t\t$requestId = $receivedResponse->getRequestId();\n\t\t\t$answer = $receivedResponse->getAnswer();\n\t\t\n\t\t\t$queuedRequest = $this->queuedRequestMapper->find($requestId);\n\t\t\tif ($queuedRequest) {\n\t\t\t\t$type = $queuedRequest->getRequestType();\n\t\t\t\t$field1 = $queuedRequest->getField1();\n\t\t\t}\n\t\t\telse {\n\t\t\t\t//request no longer exists, so just delete response\n\t\t\t\t$this->receivedResponseMapper->delete($receivedResponse);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\tswitch ($type) {\n\t\t\t\tcase Request::USER_EXISTS:\n\t\t\t\t\tif ($answer !== \"1\" AND $answer !== \"0\") {\n\t\t\t\t\t\t$this->api->log(\"ReceivedResponse for Request USER_EXISTS, request_id = {$receivedResponse->getId()} had invalid response = {$answer}\"); \n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tif ($answer === \"0\") {\n\t\t\t\t\t\t$friendships = $this->friendshipMapper->findAllByUser($field1);\n\t\t\t\t\t\tforeach ($friendships as $friendship) {\n\t\t\t\t\t\t\t$this->friendshipMapper->delete($friendship);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t$this->api->beginTransaction();\n\t\t\t\t\t//Don't need destination for delete since they should all be this instance\n\t\t\t\t\t$this->receivedResponseMapper->delete($receivedResponse);\n \t\t\t\t\t$this->queuedRequestMapper->delete($receivedResponse);\n\t\t\t\t\t$this->api->commit();\n\t\t\t\t\tbreak;\n\t\t\t\tcase Request::FETCH_USER: \n\t\t\t\t\tif ($answer !== \"1\" AND $answer !== \"0\") {\n\t\t\t\t\t\t$this->api->log(\"ReceivedResponse for Request FETCH_USER, request_id = {$receivedResponse->getId()} had invalid response = {$answer}\"); \n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\n\t\t\t\t\t$this->api->beginTransaction();\n\t\t\t\t\t//Don't need destination for delete since they should all be this instance\n\t\t\t\t\t$this->receivedResponseMapper->delete($receivedResponse);\n \t\t\t\t\t$this->queuedRequestMapper->delete($receivedResponse);\n\t\t\t\t\t$this->api->commit();\n\t\t\t\t\t\n\t\t\t\t\tbreak;\t\n\t\t\t\tdefault:\n\t\t\t\t\t$this->api->log(\"Invalid request_type {$type} for request id {$requestId}\");\n\t\t\t\t\tcontinue;\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "protected function _handle()\n {\n return $this\n ->_addData('post', $_POST)\n ->_addData('get', $_GET)\n ->_addData('server', $_SERVER)\n ->_handleRequestRoute();\n }", "public function serveRequest()\n {\n $msg = $this->connection->read();\n if (!$msg) return;\n $this->connection->acknowledge($msg);\n \n $replyMsg = $this->act($msg);\n\n // write correlation id\n $replyMsg->setHeader(\"correlation-id\", $msg->getId());\n\n $this->connection->send($msg->getReplyTo(), $replyMsg);\t\t\n }", "private function handleDiagnosticsRequest()\n {\n $statusApiConfigurator = new Webinterpret_Connector_StatusApi_StatusApiConfigurator(Mage::app(), Mage::getConfig());\n\n $statusApi = $statusApiConfigurator->getExtendedStatusApi();\n\n $json = $statusApi->getJsonTestResults();\n header('Content-Type: application/json');\n header('Content-Length: '.strlen($json));\n echo $json;\n }", "abstract public function processResponse($response);", "function main()\r\n {\r\n $this->setOutput();\r\n }", "public function emit()\n {\n $this->sendHeaders();\n $this->sendBody();\n }", "public function get_output()\n {\n }", "public function handle()\n {\n\t //PROCESS FOR QUESTION 4:\n //Single request with error handling:\n \n //Create handler with curl\n $curl = new CurlMultiHandler;\n\t\t$handler = HandlerStack::create($curl);\n\t\t\n\t\t//create client and set custom handler\n\t\t$client = new Client(['handler' => $handler]);\n\t\t\n\t\t$promise = $client->requestAsync('POST', 'https://atomic.incfile.com/fakepost');\n\t\t$promise->then(\n\t\t function (ResponseInterface $result) {\n\t\t\t //Handle success here\n\t\t\t \n\t\t Log::info(\"Correct request\");\n\t\t },\n\t\t function (RequestException $exception) {\n\t\t //Handle error here\n\t\t \n\t\t $error_status_code = \"There was an error with status code: \" . $exception->getResponse()->getStatusCode();\n\t\t\t\t$error_description = \", the error was: \\n\\n\" . $exception->getMessage();\n\t\t\t\t\n\t\t\t\t$error_complete_msg = $error_status_code . $error_description;\n\t\t \n\t\t Log::error($error_complete_msg);\n\t\t }\n\t\t);\n\t\t\n\t\t//this will ensure the reliable delivery of the request\n\t\twhile ($promise->getState() === 'pending') {\n\t\t $curl->tick();\n\t\t \n\t\t //do stuff\n\t\t}\n\t\t\n\t\t//This next line loses kind of a little bit the point of \"asynchrousness\" for only one request: $promise->wait();\n\t\t\n\t\t\n\t\t\n\t\t//------------------------------//\n\t\t\n\t\t\n\t\t//PROCESS FOR QUESTION 5:\n\t\t//Multiple requests with error handling:\n\t\t\n\t\t//This is the number of requests, here you would put the 100k requests\n\t\t$total = 50;\n\t\t$client = new Client();\t\n\t\t\n\t\t//Segment the number of requests in order to not overload the server\n\t\t$concurrency = 10;\n\t\t\n\t\t$pool = new Pool($client, $this->requestGenerator($total), [\n\t\t 'concurrency' => $concurrency,\n\t\t 'fulfilled' => function (Response $response, $index) {\n\t\t\t //Handle success here\n\t\t\t \n\t\t Log::info(\"Correct request\");\n\t\t },\n\t\t 'rejected' => function (RequestException $exception, $index) {\n\t\t\t //Handle error here\n\t\t\t \n\t\t\t\t$error_index = \"There was an error in the request number: \" . ($index + 1) . \", \";\n\t\t\t\t$error_status_code = \"with status code: \" . $exception->getResponse()->getStatusCode();\n\t\t\t\t$error_description = \", the error was: \\n\\n\" . $exception->getMessage();\n\t\t\t\t$error_separator = \"\\n ------------- \\n\";\n\t\t\t\t\n\t\t\t\t$error_complete_msg = $error_index . $error_status_code . $error_description . $error_separator;\n\t\t\t \n\t\t\t\tLog::error($error_complete_msg);\n\t\t\t\t\n\t\t },\n\t\t]);\n\t\t\n\t\t// Start transfers and create promise\n\t\t$promise = $pool->promise();\n\t\t\n\t\t// Force ALL requests to complete.\n\t\t$promise->wait();\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t/*\n\t\t\tYou could also dispatch a queued job for this question 5, \n\t\t\tbut I think that for this case that involves sending HTTP requests (sending email would be a better use, for example), \n\t\t\tqueuing this process loses a bit of sense because the requests are being sent in the\n\t\t\tabove code asynchronously already, so I'll be running an asynchronous process ( the promise ) in an asynchronous way ( queue ):\n\t\t*/\n\t\t\n\t\t\n\t\t//Job sent to a queue called \"requests\", in this case, I'll be using database driver:\n\t\tSendRequests::dispatch()->onQueue('requests');\n\t\t\n\t\t\n }", "public function handle(): void\n {\n $globals = $_SERVER;\n //$SlimPsrRequest = ServerRequestFactory::createFromGlobals();\n //it doesnt matters if the Request is of different class - no need to create Guzaba\\Http\\Request\n $PsrRequest = ServerRequestFactory::createFromGlobals();\n //the only thing that needs to be fixed is the update the parsedBody if it is NOT POST & form-fata or url-encoded\n\n\n //$GuzabaPsrRequest =\n\n //TODO - this may be reworked to reroute to a new route (provided in the constructor) instead of providing the actual response in the constructor\n $DefaultResponse = $this->DefaultResponse;\n //TODO - fix the below\n// if ($PsrRequest->getContentType() === ContentType::TYPE_JSON) {\n// $DefaultResponse->getBody()->rewind();\n// $structure = ['message' => $DefaultResponse->getBody()->getContents()];\n// $json_string = json_encode($structure, JSON_UNESCAPED_SLASHES);\n// $StreamBody = new Stream(null, $json_string);\n// $DefaultResponse = $DefaultResponse->\n// withBody($StreamBody)->\n// withHeader('Content-Type', ContentType::TYPES_MAP[ContentType::TYPE_JSON]['mime'])->\n// withHeader('Content-Length', (string) strlen($json_string));\n// }\n\n $FallbackHandler = new RequestHandler($DefaultResponse);//this will produce 404\n $QueueRequestHandler = new QueueRequestHandler($FallbackHandler);//the default response prototype is a 404 message\n foreach ($this->middlewares as $Middleware) {\n $QueueRequestHandler->add_middleware($Middleware);\n }\n $PsrResponse = $QueueRequestHandler->handle($PsrRequest);\n $this->emit($PsrResponse);\n\n }", "public function _output($output)\n\t{\n\t\t$output = (string)$output;\n\n\t\tci('router')->onResponse($output);\n\n\t\techo $output;\n\t}", "public function handleRequests() {\r\n $response = null;\r\n try {\r\n $urlArray = $this->uri->uri_to_assoc(3);\r\n if (array_key_exists('login', $urlArray)) {\r\n $response = self::postLogin();\r\n } else {\r\n $login = self::clientLogin();\r\n $response = self::instantiateRequestedClass($urlArray, $login);\r\n }\r\n } catch (Exception $ex) {\r\n $response = $this->apiv1_core->errorResponse($ex->getCode(), $ex->getMessage());\r\n }\r\n\r\n $httpcode = substr($response['code'], 0, 3);\r\n\r\n $name = '';\r\n foreach ($urlArray as $key => $value) {\r\n $this->$key = $value;\r\n $name = ucfirst($key);\r\n }\r\n $method = strtolower($this->input->server('REQUEST_METHOD')) . $name;\r\n $reqParam = $this->input->get() ? $this->input->get() : file_get_contents(\"php://input\");\r\n\r\n $msg = array(\r\n 'resourceURL' => $this->uri->assoc_to_uri($urlArray),\r\n 'className' => $response['className'],\r\n 'methodName' => $method,\r\n 'requestJSON' => json_encode($reqParam),\r\n 'responseHTTP' => $httpcode,\r\n 'responseJSON' => ($response['message']) ? json_encode($response) : json_encode($response['res']),\r\n );\r\n\r\n $logCid = isset($urlArray['account']) ? $urlArray['account'] : NULL;\r\n dblog_message(LOG_LEVEL_INFO, LOG_TYPE_API, \"API: \" . \r\n $this->input->server('REQUEST_METHOD') . \" \" .\r\n $this->uri->assoc_to_uri($urlArray) . \"\\n\" . print_r($msg, TRUE), $logCid);\r\n\r\n header(\"Content-Type: application/json\");\r\n header(\"HTTP/1.1 $httpcode\", true, $httpcode);\r\n\r\n if ($response['message']) {\r\n echo json_encode($response);\r\n } else {\r\n echo json_encode($response['res']);\r\n }\r\n return;\r\n }", "public function output() {}", "public function fetch()\n\t{\n\t\t$this->context = null;\n\t\t\n\t\tif (!$this->output) {\n\t\t\t$this->perform();\n\t\t}\n\t\t\n\t\treturn $this->getOutput();\n\t}", "public function run()\n\t{\n\t\t$response = $this->dispatch($this['request']);\n\n\t\t$response->send();\n\n\t\t$this->callFinishMiddleware($response);\n\t}", "public function postHandler(&$output)\n {\n // Fail silently if this ever recieves a POST request.\n $this->badRequest('');\n }", "protected function processMessages()\n {\n while ($done = curl_multi_info_read($this->multiHandle)) {\n $request = $this->resourceHash[(int)$done['handle']];\n $this->processResponse($request, $this->handles[$request], $done);\n }\n }", "public function process()\n {\n parent::process();\n $data = $this->getBody();\n if (!isset($data)) {\n $data = array();\n }\n\n try {\n if ($this->_validateSchema()) {\n $resultSet = $this->_processLookup($data);\n $customer = $resultSet['customer'];\n if (!is_null($customer)) {\n $response = array(\n 'customer' => $customer,\n 'destination_id' => $this->getPublisherPseudonym(),\n 'correlation_id' => $this->getCorrelationId(),\n );\n $this->_sendSuccess($response);\n }\n if (sizeof($resultSet['errors']) > 0) {\n $response = array(\n 'errors' => $resultSet['errors'],\n 'destination_id' => $this->getPublisherPseudonym(),\n 'correlation_id' => $this->getCorrelationId(),\n );\n $this->_sendFailure($response);\n }\n }\n } catch (Exception $ex) {\n Mage::logException($ex);\n\n\n $errorResponse = array(\n 'id' => $data['id'],\n 'errors' => array(\n array(\n 'code' => empty($code) ? '-1' : '' . $code,\n 'message' => $ex->getMessage(),\n 'parameters' => null\n )\n ),\n 'destination_id' => $this->getPublisherPseudonym(),\n 'correlation_id' => $this->getCorrelationId(),\n );\n $this->_sendFailure($errorResponse);\n }\n return $this;\n }", "function _handler_response(&$app, &$c) {\n\t\t$c->param('app.view_http.response.status', $this->_http->getResponseCode());\n\t\t$c->param('app.view_http.response.body', $this->_http->getResponseBody());\n\t\t$c->param('app.view_http.response.headers', $this->_http->getResponseHeader());\n\t}", "public function handleRequest($request)\n {\n list ($route, $params) = $request->resolve();\n $this->requestedRoute = $route;\n $result = $this->runAction($route, $params);\n\n if ($result instanceof Response) {\n return $result;\n } elseif ($result instanceof Looper){\n $result->loop();\n\n $response = $this->getResponse();\n $response->exitStatus = 0;\n\n return $response;\n } else {\n $response = $this->getResponse();\n $response->exitStatus = $result;\n\n return $response;\n }\n }", "public function handle()\n {\n // 4. Ensure reliable delivery\n $client = new GuzzleClient([\n 'base_uri' => 'https://atomic.incfile.com/',\n ]);\n \n try {\n $response = $client->request('POST', 'fakepost');\n $code = $response->getStatusCode();\n } catch (ClientException $e) {\n $code = $e->getCode();\n \\Log::error($e);\n }\n\n $success = $this->_handleStatusCode($code);\n\n if ($success) {\n $this->info(\"The request reached destination and had a successful response\");\n } else {\n $this->info(\"The request had a failed response\");\n }\n // 4. End Ensure reliable delivery\n\n\n // 5. Handle 100K requests \n $requests = function ($total) {\n $uri = 'https://atomic.incfile.com/fakepost';\n for ($i = 0; $i < $total; $i++) {\n yield new Request('GET', $uri);\n }\n };\n\n $totalRequests = 100000;\n $successRequests = 0;\n $failedRequests = 0;\n\n $pool = new Pool($client, $requests($totalRequests), [\n 'concurrency' => 100,\n 'fulfilled' => function ($response, $index) use (& $successRequests) {\n // this is delivered each successful response\n $successRequests++;\n },\n 'rejected' => function ($reason, $index) use (& $failedRequests) {\n // this is delivered each failed request\n $failedRequests++;\n },\n ]);\n\n // Initiate the transfers and create a promise\n $promise = $pool->promise();\n\n // Force the pool of requests to complete.\n $promise->wait();\n \n $this->info(\"Total Requests: $totalRequests\");\n $this->info(\"Success Requests: $successRequests\");\n $this->info(\"Failed Requests: $failedRequests\");\n // 5. End Handle 100K requests \n\n }", "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 }", "protected function outputSpecificStep() {}", "public function execute()\n {\n $data = [];\n foreach ($this->getRequest()->getParams() as $key => $post) {\n $data[$key] = filter_var($post, FILTER_SANITIZE_STRING);\n }\n\n $originZip = isset($data['origin_zip']) ? $data['origin_zip'] : '';\n\n if ($originZip) {\n $mapResult = $this->googleApiCurl($originZip, EnConstants::GOOGLE_URL);\n $error = $this->errorChecking($mapResult);\n\n if (empty($error)) {\n $addressArray = $this->addressArray($mapResult);\n } else {\n $addressArray = $error;\n }\n } else {\n $addressArray = $this->dataHelper->generateResponse();\n }\n\n $this->getResponse()->setHeader('Content-type', 'application/json');\n /** @var array $addressArray */\n $this->getResponse()->setBody(json_encode($addressArray));\n }", "function deliver_response(){\n\n // --- Step 1: Initialize variables and functions\n //\n // Deliver HTTP Response\n // The desired HTTP response content type: [json, html, xml]\n // The desired HTTP response data\n\n\n header('HTTP/1.1 '.$this->response['status'] . // Set HTTP Response\n ' '.$this->http_response_code[$this->response['status'] ]);\n header('Content-Type: application/json; charset=utf-8'); // Set HTTP Response Content Type\n $json_response = json_encode($this->response['data']); // Format data into a JSON response\n echo $json_response; // Deliver formatted data\n }", "protected function _handle_query()\n\t{\t\n\t\t$this->_http_query = $this->_request;\n\t\t$response_object = $this->payments->gateway_request($this->_api_endpoint, $this->_http_query, 'application/x-www-form-urlencoded');\n\t\treturn $this->_parse_response($response_object);\n\t}", "public function serve_request()\n {\n }", "abstract protected function doHandle(ContextInterface $context, $output): void;", "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 }", "abstract protected function handleResult();", "public function handleRequest ()\n\t{\n\t\t$this->version = '1.0';\n\t\t$this->id = NULL;\n\n\t\tif ($this->getProperty(self::PROPERTY_ENABLE_EXTRA_METHODS))\n\t\t\t$this->publishExtraMethods();\n\n\t\tif ($_SERVER['REQUEST_METHOD'] == 'POST')\n\t\t{\n\n\t\t\t$json = file_get_contents('php://input');\n\t\t\t$request = \\json_decode($json);\n\n\t\t\tif (is_array($request))\n\t\t\t{\n\t\t\t\t// Multicall\n\t\t\t\t$this->version = '2.0';\n\n\t\t\t\t$response = array();\n\t\t\t\tforeach ($request as $singleRequest)\n\t\t\t\t{\n\t\t\t\t\t$singleResponse = $this->handleSingleRequest($singleRequest, TRUE);\n\t\t\t\t\tif ($singleResponse !== FALSE)\n\t\t\t\t\t\t$response[] = $singleResponse;\n\t\t\t\t}\n\n\t\t\t\t// If all methods in a multicall are notifications, we must not return an empty array\n\t\t\t\tif (count($response) == 0)\n\t\t\t\t\t$response = FALSE;\n\t\t\t}\n\t\t\telse if (is_object($request))\n\t\t\t{\n\t\t\t\t$this->version = $this->getRpcVersion($request);\n\t\t\t\t$response = $this->handleSingleRequest($request);\n\t\t\t}\n\t\t\telse\n\t\t\t\t$response = $this->formatError(self::ERROR_INVALID_REQUEST);\n\t\t}\n\t\telse if ($_SERVER['PATH_INFO'] != '')\n\t\t{\n\t\t\t$this->version = '1.1';\n\t\t\t$this->id = NULL;\n\n\t\t\t$method = substr($_SERVER['PATH_INFO'], 1);\n\t\t\t$params = $this->convertFromRpcEncoding($_GET);\n\n\t\t\tif (!$this->hasMethod($method))\n\t\t\t\t$response = $this->formatError(self::ERROR_METHOD_NOT_FOUND);\n\t\t\telse\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tRpcResponse::setWriter(new JsonRpcResponseWriter($this->version, $this->id));\n\t\t\t\t\t$res = $this->invoke($method, $params);\n\t\t\t\t\tif ($res instanceof JsonRpcResponseWriter)\n\t\t\t\t\t{\n\t\t\t\t\t\t$res->finalize();\n\t\t\t\t\t\t$resposne = FALSE;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\t$response = $this->formatResult($res);\n\t\t\t\t}\n\t\t\t\tcatch (\\Exception $exception)\n\t\t\t\t{\n\t\t\t\t\t$response = $this->formatException($exception);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$response = $this->formatError(self::ERROR_PARSE_ERROR);\n\t\t}\n\n\t\tif (!headers_sent())\n\t\t{\n\t\t\theader('Content-Type: application/json', TRUE);\n\t\t\theader('Cache-Control: nocache', TRUE);\n\t\t\theader('Pragma: no-cache', TRUE);\n\t\t}\n\n\t\tif ($response !== FALSE)\n\t\t{\n\t\t\t$result = \\json_encode($this->convertToRpcEncoding($response));\n\n\t\t\tif ($result === FALSE)\n\t\t\t\terror_log(var_export($response, TRUE));\n\t\t\telse\n\t\t\t\techo($result);\n\t\t}\n\t}", "public function requestOut($r, $s) {\n\t}", "protected function processGetRequest()\n {\n $this->ajaxDie(json_encode([\n 'success' => true,\n 'operation' => 'get'\n ]));\n }", "public function handleRequest()\n\t{\n\t\t$fp = $this->fromRequest();\n\t\treturn $fp->render();\n\t}", "function output($output) {\n http_response_code(200);\n echo json_encode($output);\n}", "function handle_output($serverOutput, $function)\n{\n $response = json_decode($serverOutput);\n $message = key($response);\n $response = isset($response->$message) ? $response->$message : null;\n //$parts = explode(':', $serverOutput, 2);\n //This will simply kill the script if EE returns with an error\n //This is to avoid foulups, and to simplify the code checking above\n if ($message == 'COUNTRY_IS_DEAD') {\n out(\"Country is Dead!\");\n\n return false;\n } elseif ($message == 'OWNED') {\n out(\"Trying to sell more than owned!\");\n\n return false;\n } elseif (expected_result($function) && $message != expected_result($function)) {\n out(\"\\n\\nUnexpected Result for '$function': \".$message.':'.$response.\"\\n\\n\");\n\n return false;\n } elseif (!expected_result($function)) {\n out($message);\n out_data($response);\n return false;\n }\n\n return $response;\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 respond() {\n\t\thttp_response_code($this->code);\n\n\t\t// Additional headers\n\t\tforeach ($this->head as $header) {\n\t\t\theader($header);\n\t\t}\n\n\t\t// Write the body\n\t\tforeach ($this->body as $toStringable) {\n\t\t\techo $toStringable;\n\t\t}\n\t}", "public function handle()\n {\n $client = new Client();\n $res = $client->request('POST', 'http://projects.knmi.nl/klimatologie/daggegevens/getdata_dag.cgi', \n [\n 'post-data' => [\n 'vars' => 'PRCP', 'stns' => '833'\n ]\n ]\n );\n\n $this->line($res->getStatusCode());\n $this->line($res->getHeader('content-type'));\n var_dump($res->getBody());\n var_dump($res);\n $this->line('imported!');\n // 'start' => '', 'end' => '',\n }", "function respond($output) {\n\n\t/*\n\t\tstandard response:\n\t\n\t\t\tapiName\n\t\t\tversion\n\t\t\tstatus\n\t\t\terror\n\t\t\tmsg \n\t\t\tresults\n\n\t*/\n\n\techo json_encode($output);\n}", "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 process()\n {\n \t$client = $this->client->getClient();\n\n \ttry {\n $response = $client->get($this->buildUrl());\n return new ResponseJson((string)$response->getBody(), true);\n } catch (RequestException $e) {\n return new ResponseJson((string)$e->getResponse()->getBody(), false);\n }\n }", "public function handle()\n {\n /** @var $responses AbstractResponse[] */\n $responses = [];\n try {\n $result = $this->requestFactory->forge();\n $requests = $result[0];\n $isBatch = $result[1];\n } catch (JsonRpcException $e) {\n $responses[] = new ErrorResponse(null, $e);\n $isBatch = false;\n }\n if (isset($requests)) {\n foreach ($requests as $request) {\n if ($request instanceof Request) {\n $error = null;\n try {\n foreach ($this->middlewares as $callable) {\n $callable($request);\n }\n $result = call_user_func_array([$this->app, $request->getMethod()], $request->getParams());\n if ($request->getId() !== false) {\n $responses[] = new SuccessResponse($request->getId(), $result);\n }\n } catch (\\BadMethodCallException $e) {\n $error = new MethodNotFoundException($e->getMessage());\n } catch (JsonRpcException $e) {\n $error = $e;\n } catch (\\Exception $e) {\n $error = new InternalException($e->getMessage());\n }\n if ($error !== null) {\n $responses[] = new ErrorResponse($request->getId(), $error);\n }\n } else {\n $responses[] = new ErrorResponse(null, $request);\n }\n }\n }\n if (!empty($responses) && isset($isBatch)) {\n if (sizeof($responses) == 1 && $isBatch === false) {\n $output = $responses[0]->jsonify();\n } else {\n $responses = array_map(\n function (AbstractResponse $response) {\n return $response->jsonify();\n },\n $responses\n );\n $output = sprintf('[%s]', implode(',', $responses));\n }\n }\n\n return isset($output) ? $output : null;\n }", "function dispatch() {\n\t\t$this->header();\n\n\t\t$step = empty( $_GET['step'] ) ? 0 : (int) $_GET['step'];\n\t\tswitch ( $step ) {\n\t\t\tcase 0:\n\t\t\t\t$this->analyze();\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\tcheck_admin_referer('woo_jigo_converter');\n\t\t\t\t$this->woo_import_jigo_orders();\n\t\t\t\tbreak;\n\t\t}\n\n\t\t$this->footer();\n\t}", "public function process()\n {\n synapse()->brain->topic()->triggers()->each(function ($data, $trigger) {\n $this->searchTriggers($trigger);\n\n if ($this->output !== 'Error: Response could not be determined.') {\n return false;\n }\n });\n\n return $this->output;\n }", "public function run()\n {\n $this->requestId = uniqid();\n $this->startTime = microtime();\n\n try {\n // Generate a Request object from the data available in the\n // current running environment.\n try {\n $requestFactory = new Requests\\Factories\\Http;\n $request = $requestFactory->get($this);\n // Set the application locale from the request.\n // TODO: Move into the Request constructor?\n $this->setLocale($request->getLocale());\n // Run the process of responding to the request.\n $this->issueResponse($request);\n } catch (\\Throwable $throwable) {\n // There was an error somewhere during the request\n // creation, or somewhere during the response building\n // process.\n $errorRequest = new Requests\\Http\\Error;\n $errorRequest->setThrowable($throwable);\n $this->issueResponse($errorRequest, $throwable);\n }\n } catch (\\Exception $exception) {\n // There was an error while trying to fail gracefully.\n // Little else can be done now.\n $this->fail($exception);\n }\n\n Logger::get()->info($this->getStats());\n\n // Since the application is being run in an HTTP context, and\n // PHP is the scripting language it is, the application cycle\n // just finishes after the response is done with its tasks.\n }", "public function handleResponse($data)\n {\n // Retrieve the specific request data\n $requestData = current($data->getReturnsArray());\n \n // Initialize the inventory response\n $inventoryResponse = new GetInventoryResponse();\n\n // Unmarshall the response\n $inventoryResponse->read($requestData);\n\n $this->setData($inventoryResponse);\n }", "protected function handleRequest() {\n\t\t// TODO: remove conditional when we have a dedicated error render\n\t\t// page and move addModule to Mustache#getResources\n\t\tif ( $this->adapter->getFormClass() === 'Gateway_Form_Mustache' ) {\n\t\t\t$modules = $this->adapter->getConfig( 'ui_modules' );\n\t\t\tif ( !empty( $modules['scripts'] ) ) {\n\t\t\t\t$this->getOutput()->addModules( $modules['scripts'] );\n\t\t\t}\n\t\t\tif ( $this->adapter->getGlobal( 'LogClientErrors' ) ) {\n\t\t\t\t$this->getOutput()->addModules( 'ext.donationInterface.errorLog' );\n\t\t\t}\n\t\t\tif ( !empty( $modules['styles'] ) ) {\n\t\t\t\t$this->getOutput()->addModuleStyles( $modules['styles'] );\n\t\t\t}\n\t\t}\n\t\t$this->handleDonationRequest();\n\t}", "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(){\n // server response object \n $requestMethod = $this->requestBuilder->getRequestMethod();\n $this->response = new Response($requestMethod);\n\n try{\n $route = $this->router->validateRequestedRoute($this->requestBuilder);\n\n // serve request object\n $this->requestBuilder->setQuery();\n $this->requestBuilder->setBody();\n $requestParams = $this->requestBuilder->getParam();\n $requestQuery = $this->requestBuilder->getQuery();\n $requestBody = $this->requestBuilder->getBody(); \n $this->request = new Request($requestParams, $requestQuery, $requestBody);\n\n $callback = $route->getCallback();\n $callback($this->request, $this->response);\n }catch(RouteNotImplementedException $e){\n $this->response->statusCode(404)->json($e->getMessage()); \n }\n \n }", "public function handle_result() {\n\t\t\t\tif ( ! isset( $_REQUEST['order-id'] ) || empty( $_REQUEST['order-id'] ) ) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\t$response = file_get_contents( 'php://input' );\n\t\t\t\t$jsonResponse = json_decode( $response );\n\t\t\t\t$responseArray = json_decode($response,true);\n\t\t\t\t\n\t\t\t\t$order = wc_get_order( $_REQUEST['order-id'] );\n\t\t\t\t\n\t\t\t $order->add_order_note( $this->generateTable($responseArray),'success' );\n\t\t\t // Only Log when test mode is enabled\n\t\t\t if( 'yes' == $this->get_option( 'test_enabled' ) ) {\n\t\t\t \t$order->add_order_note( $response );\n\t\t\t }\n\t\t\t \n\n\t\t\t\tif ( isset( $jsonResponse->transactionStatus ) && 'APPROVED' == $jsonResponse->transactionStatus ) {\n\t\t\t\t\t\t// Complete this order, otherwise set it to another status as per configurations\n\t\t\t\t\t\t$order->payment_complete();\n\t\t\t\t\t\t$order->update_status( $this->get_option( 'success_payment_status' ), __( 'Havano Payment was Successful.', 'havanao' ) );\t\n\t\t\t\t} else {\n\t\t\t\t\t$order->update_status( $this->get_option( 'errored_payment_status' ), __( 'Havano Payment was Successful.', 'havanao' ) );\t\n\t\t\t\t}\n\t\t\t}", "public function output() {\n // Add output listeners\n $oc = new OutputController();\n $oc->listen();\n // Create matcher\n $matcher = new UrlMatcher(Routing::get()->routes(), new RequestContext());\n // Subscribe a route listener to the events\n $this->serviceContainer->get('events')\n ->addSubscriber(new RouterListener($matcher, new RequestStack()));\n // Create kernel object\n $kernel = new HttpKernel(\n $this->serviceContainer->get('events'), new ControllerResolver(), new RequestStack(), new ArgumentResolver()\n );\n\n $response = $kernel->handle($this->getRequest());\n $response->send();\n\n $kernel->terminate($this->getRequest(), $response);\n \n if($this->inDevelopment()) {\n // Execute any queries left behind\n Db::flushAll();\n }\n\n return $this;\n }", "function process(&$input, &$output)\n {\n if (SGL_Config::get('site.maintenanceMode')) {\n // allow admin to access and to connect if provided a key\n $rid = SGL_Session::getRoleId();\n $adminMode = SGL_Session::get('adminMode');\n if ($rid != SGL_ADMIN && !$adminMode && !SGL::runningFromCLI()) {\n $req = $input->getRequest();\n // show mtnce page for browser requests\n if ($req->getType() == SGL_REQUEST_BROWSER) {\n SGL::displayMaintenancePage($output);\n }\n }\n }\n\n $this->processRequest->process($input, $output);\n }", "public function process_interac_response()\n\t{\n\t\t$idebit_merchantdata = strtolower(ee()->input->get_post('IDEBIT_MERCHDATA'));\n\t\tif($idebit_merchantdata)\n\t\t{\n\t\t\t$transaction = ee()->db->select('store_notify_url')->from('store_beanstream_interac')->where('interac_merchant_data', $idebit_merchantdata)->get();\n\t\t\tif($transaction->num_rows() == 1)\n\t\t\t{\n\t\t\t\t$_POST['funded'] = $_GET['funded'];\n\t\t\t\t$url = $transaction->row('store_notify_url').'&'.http_build_query($_POST);\n\t\t\t\tee()->functions->redirect($url);\n\t\t\t}\n\t\t}\n\t}", "public function fetch()\n\t{\n\t\t// Send the HTTP headers\n\t\t$this->sendHeaders();\n\t\t\n\t\t// Start output-buffering, catch it in the output variable\n\t\tob_start();\n\t\t$this->display();\n\t\t$output = ob_get_clean();\n\t\t\n\t\treturn $output;\n\t}", "public function processAction(): Response\n {\n // 1. Transform Request to Query.\n /** @var GetOneQuery $query */\n $query = $this->queryAdapter->buildQueryFromRequest($this->queryRequest);\n\n // 2. Business work thanks to the Query.\n $entity = $this->queryHandler->process($query);\n\n // 3. Format using the business work and return the Response.\n $body = $this->prepareSuccess($entity);\n return $this->responseHandler->create($body)->getResponse();\n }", "public function call()\n {\n $this->dispatchRequest($this['request'], $this['response']);\n }", "public function handle()\n {\n $browser = $this->createBrowser();\n try {\n if ($this->proxy_query->getMethod() === Utils::$METHOD_POST) {\n if ($this->proxy_query->getContent() !== null) {\n $content = $this->proxy_query->getContent();\n } else {\n $content = $this->proxy_query->getPostQueryString();\n }\n $headers = Utils::prepareHeadersForRequest($this->proxy_query->getHeaders(), $this->headerBlackList,\n $this->headerWhiteList);\n $headers['User-Agent'] = $this->userAgent;\n if ($this->logger !== null) {\n $this->logger->debug(\"CommonProxy->handle POST:\" . $this->proxy_query->getGetUrl());\n $this->logger->debug(\"CommonProxy->handle Headers: \" . print_r($this->proxy_query->getHeaders(), true));\n }\n $browserResponse = $browser->post($this->proxy_query->getGetUrl(), $headers, $content);\n } else if ($this->proxy_query->getMethod() === Utils::$METHOD_GET) {\n $headers = Utils::prepareHeadersForRequest($this->proxy_query->getHeaders(), $this->headerBlackList,\n $this->headerWhiteList);\n $headers['User-Agent'] = $this->userAgent;\n if ($this->logger !== null) {\n $this->logger->debug(\"CommonProxy->handle GET:\" . $this->proxy_query->getGetUrl());\n $this->logger->debug(\"CommonProxy->handle Headers: \" . print_r($this->proxy_query->getHeaders(), true));\n }\n $browserResponse = $browser->get($this->proxy_query->getGetUrl(), $headers);\n }\n } catch (\\Exception $e) {\n if ($this->logger !== null) {\n $this->logger->err(\"CommonProxy->handle :\" . $e->getMessage());\n }\n throw new HTTPStatus502Exception($e->getMessage(), 502);\n }\n return $browserResponse;\n }" ]
[ "0.6491831", "0.6489103", "0.6400746", "0.6316907", "0.62929046", "0.62597436", "0.6249635", "0.61858785", "0.60678804", "0.6021351", "0.60177827", "0.5994404", "0.59671426", "0.5956429", "0.58960825", "0.5878664", "0.58575076", "0.5837835", "0.58287996", "0.58236736", "0.58236736", "0.58236736", "0.5812294", "0.58096355", "0.57988155", "0.5782948", "0.5772899", "0.5772788", "0.5765368", "0.5762233", "0.57367563", "0.5735567", "0.5733422", "0.5708111", "0.5680509", "0.56489885", "0.56472784", "0.56454545", "0.56411296", "0.5639522", "0.5636384", "0.56341755", "0.5630124", "0.5626108", "0.56194496", "0.55978477", "0.55967784", "0.5594187", "0.55787337", "0.5569463", "0.55648065", "0.5561642", "0.5545218", "0.5544385", "0.55381703", "0.5497383", "0.54917186", "0.5487332", "0.5481306", "0.54557", "0.54530686", "0.5439779", "0.5433458", "0.5432542", "0.5426908", "0.5424573", "0.5419011", "0.54110634", "0.5400148", "0.53867745", "0.53674346", "0.53663486", "0.5362226", "0.5359319", "0.534949", "0.53463274", "0.5345927", "0.5345647", "0.5340347", "0.53347045", "0.531716", "0.5314892", "0.5312417", "0.5310901", "0.5310533", "0.5308945", "0.530598", "0.53015065", "0.5296549", "0.5293709", "0.52888376", "0.5282899", "0.52808946", "0.527875", "0.527629", "0.5274866", "0.52723944", "0.52674806", "0.52652514", "0.52649534", "0.5256638" ]
0.0
-1
Start the buffering //
public function saveHtmlSave(){ ob_start(); ?> <?php $monthUnderReview = $_POST['monthUnderReview']; $yearUnderReview = $_POST['yearUnderReview']; $taxNo = $_POST['taxNo']; $vatNo = $_POST['vatNo']; $firsTaxOffice = $_POST['firsTaxOffice']; $outputSalesIncome = $_POST['outputSalesIncome']; $exemptedZero = $_POST['exemptedZero']; $totalSuppliesVat = $_POST['totalSuppliesVat']; $outputVat = $_POST['outputVat']; $vatOnLocalSupplies = $_POST['vatOnLocalSupplies']; $vatOnImportedGoods = $_POST['vatOnImportedGoods']; $vatOnSubcontracted = $_POST['vatOnSubcontracted']; $totalInputTaxClaimable = $_POST['totalInputTaxClaimable']; $excessInputVat = $_POST['excessInputVat']; $vatPayableForMonth = $_POST['vatPayableForMonth']; $authorizedSignatory = $_POST['authorizedSignatory']; $designation = $_POST['designation']; $signature = $_POST['signature']; $companyStampAndDate = $_POST['companyStampAndDate']; ?> <style type="text/css"> table, th, td{ text-align: left; } </style> <h2>VAT Report</h2><br/> <table border="1"> <tr> <th>Month under review1</th> <td><?php echo $monthUnderReview; ?></td> </tr> <tr> <th>Year under review</th> <td><?php echo $yearUnderReview; ?></td> </tr> <tr> <th>Tax Identification No.</th> <td><?php echo $taxNo; ?></td> </tr> <tr> <th>Vat No.</th> <td><?php echo $vatNo; ?></td> </tr> <tr> <th>Firs Tax Office</th> <td><?php echo $firsTaxOffice; ?></td> </tr> <tr> <th>Sales / Income for the month on all goods and services sold</th> <td><?php echo $outputSalesIncome; ?></td> </tr> <tr> <th>Exempted / Zero rated sales:</th> <td><?php echo $exemptedZero; ?></td> </tr> <tr> <th>Total supplies subject to VAT</th> <td><?php echo $totalSuppliesVat; ?></td> </tr> <tr> <th>Output VAT for the Month</th> <td><?php echo $outputVat; ?></td> </tr> <tr> <th>VAT paid on local supplies</th> <td><?php echo $vatOnLocalSupplies; ?></td> </tr> <tr> <th>VAT paid on imported goods</th> <td><?php echo $vatOnImportedGoods; ?></td> </tr> <tr> <th>VAT paid on subcontracted services</th> <td><?php echo $vatOnSubcontracted; ?></td> </tr> <tr> <th>Total input Tax claimable</th> <td><?php echo $totalInputTaxClaimable; ?></td> </tr> <tr> <th>Excess input VAT brought forward from previous month</th> <td><?php echo $excessInputVat; ?></td> </tr> <tr> <th>VAT payable for the month</th> <td><?php echo $vatPayableForMonth; ?></td> </tr> <tr> <th>Authorized Signatory</th> <td><?php echo $authorizedSignatory; ?></td> </tr> <tr> <th>Designation</th> <td><?php echo $designation; ?></td> </tr> <tr> <th>Signature</th> <td><?php echo $signature; ?></td> </tr> <tr> <th>Company stamp and date</th> <td><?php echo $companyStampAndDate; ?></td> </tr> </table> <br/><br/> <button onclick="printPage()">Print Results</button> <script> function printPage(){ window.print(); } </script> <?php $rand = rand(90, 1000000); $docName = $rand.".php"; // Get the content that is in the buffer and put it in your file // if(file_put_contents('files/'.$docName, ob_get_contents())){ echo "#".$docName; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function startBuffering(): void {}", "public function startBuffering(): void {}", "public function bufferStart() {\n\t\tob_start( array( $this, 'obCallback' ) );\n\t}", "public function startBuffer(): void {\n\t\tob_start();\n\t}", "public function start_buffer() {\n\t\tob_start();\n\t}", "public function startOutputBuffering() {}", "function start()\n {\n ob_start();\n ob_implicit_flush(0);\n }", "private function load_buffered()\n {\n }", "public function buffered();", "public static function startStream(){\n try{\n //try to change the server functions first\n // Turn off output buffering\n ini_set('output_buffering', 'off');\n // Turn off PHP output compression\n ini_set('zlib.output_compression', false);\n // Implicitly flush the buffer(s)\n ini_set('implicit_flush', true); \n }catch(Exception $e){\n \n } \n //Flush (send) the output buffer and turn off output buffering\n while (@ob_end_flush()); \n ob_implicit_flush(true);\n \n //now add browser tweaks\n echo str_pad(\"\",1024,\" \");\n echo \"<br />\";\n ob_flush();\n flush();\n sleep(1);\n }", "private function _setupBuffering()\n {\n // disable time limit\n @set_time_limit(0);\n \n // prevent buffering\n if (function_exists('apache_setenv')) {\n @apache_setenv('no-gzip', 1);\n }\n\n @ini_set('zlib.output_compression', 0);\n \n // turn on implicity flushing\n @ini_set('implicit_flush', true);\n while (@ob_get_level() !== 0) {\n @ob_end_flush();\n }\n\n @ob_implicit_flush(true);\n }", "public function buffer()\n {\n if ($this->_disabled) {\n return;\n }\n\n if ($this->isTurbo()) {\n return;\n }\n\n ob_start();\n $this->output();\n $this->_html = ob_get_contents();\n ob_end_clean();\n }", "static function send_buffer()\n {\n self::log_debug('Start sending buffer ...');\n\n $requests_sent = 0;\n $buffer_file = self::$log_dir . self::$log_file_buffer;\n $buffer_file_tmp = self::$log_dir . self::$log_file_buffer . '.' . rand(1, 100000) . '.tmp';\n\n try {\n\n if (!is_file($buffer_file)) {\n self::log_debug('Buffer file does not exists, nothing found to sent.');\n return false;\n }\n\n // take the current buffer and put it inside a unique tmp buffer\n rename($buffer_file, $buffer_file_tmp);\n\n // read and process the tmp buffer\n $fh = fopen($buffer_file_tmp, \"r\");\n if ($fh) {\n while (!feof($fh)) {\n $data_serialized = fgets($fh);\n\n if ($data_serialized == false) {\n continue;\n }\n\n $data = unserialize($data_serialized);\n \n if (self::send($data['e'], $data['m'], $data['d'])) {\n $requests_sent++;\n }\n }\n fclose($fh);\n }\n unlink($buffer_file_tmp);\n\n self::log_debug('Queue was sent successfully! Sent ' . $requests_sent . ' requests.');\n } catch (Exception $e) {\n self::log_error($e->getMessage());\n }\n }", "function enableContinuousBuffer()\r\n {\r\n $this->continuousBuffer = true;\r\n }", "public function requestDataSending()\n {\n $this->start();\n }", "public function startContent() {\n ob_start();\n }", "function PREFIX_output_buffering() {\n\tob_clean();\n\tob_start();\n}", "public function set_buffering($on) {\n\t\tself::$core_display->buffering = $on;\n\t\tif (!$this->buffering_on()) {\n\t\t\t$this->flush_buffer();\n\t\t}\n\t}", "function flush_buffers(){\n ob_end_flush();\n ob_flush();\n flush();\n ob_start();\n}", "public static function startStream(): bool\n {\n if(self::$CurrentlyStreaming)\n self::endStream();\n\n ob_start();\n self::$CurrentlyStreaming = true;\n return True;\n }", "public function buffering_on() {\n\t\tif( self::$core_display !== NULL )\n\t\t\treturn self::$core_display->buffering;\n\t\treturn FALSE;\n\t}", "public function captureStart()\n\t{\n\t\t$test = $this;\n\t\t$this->capture = '';\n\t\tob_start(function($buffer) use ($test) {\n\t\t\t$test->capture .= $buffer;\n\t\t});\n\t}", "protected function _flushBuffer() {\n\t\t//@codingStandardsIgnoreStart\n\t\t@flush();\n\t\tif (ob_get_level()) {\n\t\t\t@ob_flush();\n\t\t}\n\t\t//@codingStandardsIgnoreEnd\n\t}", "public function isBuffered();", "public function start(string $name): void\n {\n $this->blocks[$name] = '';\n\n ++$this->bufferLevel;\n\n ob_start();\n }", "public function isBuffered(): bool;", "public static function add_buffering_hooks( $args = [] ) {}", "function qa_initialize_buffering($request = '')\n{\n\tif (headers_sent()) {\n\t\treturn false;\n\t}\n\n\t$useGzip = QA_HTML_COMPRESSION && substr($request, 0, 6) !== 'admin/' && extension_loaded('zlib');\n\tob_start($useGzip ? 'ob_gzhandler' : null);\n\treturn true;\n}", "public function start()\n {\n $this->fStarted = microtime(true);\n $this->iStartMemoryUsage = memory_get_usage();\n }", "public function start();", "public function start();", "public function start();", "public function start();", "public function start();", "public function start();", "public function start();", "public function start();", "public function start();", "public function start();", "public function start();", "public function start();", "function buffer_the_output() {\r\n\tob_start();\r\n}", "public function start()\n {\n $this->_timeStartInMicroSeconds = microtime(true);\n }", "function ob_start_mock($emul, $callback=null,$chunk_size=0,$flags=null)\n{\n\tarray_unshift($emul->output_buffer,\"\");\n\treturn true;\n}", "function start(){\n\t\t$this->time_start = $this->microtime_float();\n\t}", "public function start()\n\t{\n\t\t$this->startTimer = microtime(TRUE);\n\t}", "public function flush_buffer() {\n\t\techo(self::$core_display->buffer);\n\t\tself::$core_display->buffer = '';\n\t}", "public function buffer_end_flush_all() {\n\t\t//if($this->get_setting('showHdrFtr') == 'FWD') {\n\t\t\t$levels = ob_get_level();\n\t\t\tfor ($i=0; $i<$levels; $i++){\n\t\t\t\t$obStatus = ob_get_status();\n\t\t\t\tif (!empty($obStatus['type']) && $obStatus['status']) {\n\t\t\t\t\tob_end_flush();\n\t\t\t\t}\n\t\t\t}\n\t\t//}\n\t}", "function flush() ;", "function flush() ;", "function start();", "function start();", "function start()\n\t{\n\t\tif( ! $this->is_running ){\n\t\t\t$this->is_running = TRUE;\n\t\t\t$this->running_since = self::timeMillisecondsAsFloat();\n\t\t}\n\t}", "public static function outputBuffering() {\r\n switch (substr_count(HTTP_ENCODING, 'gzip')) :\r\n case true:\r\n return ob_start('ob_gzhandler');\r\n default:\r\n return ob_start();\r\n endswitch;\r\n }", "function ob_implicit_flush(int $flag = 1): void {}", "public function streamCallback() {\n $this->_closeSession();\n $this->start = time();\n\n while(!$this->_exitStream()) {\n $this->_writeComment();\n $this->_writeMessage();\n $this->_flushContent();\n \n sleep($this->sleepTime);\n };\n }", "function start() {\n if ($this->isLogging) {\n $this->tStart = gettimeofday();\n $this->tLast = $this->tStart;\n $this->log = \"<h1>Log: \" . $this->name . \"</h1>\\n<pre>Started: \" . gmdate(\"D, d M Y H:i:s T\", $this->tStart['sec']) . \"\\n &#916; Start ; &#916; Last ;\";\n\t\t\t$this->logLine(\"Start\");\n\t\t}\n }", "function ob_start($params=array()){\n\t\t\n\t\t$app =& Dataface_Application::getInstance();\n\t\t$query =& $app->getQuery();\n\t\tif ( in_array($query['-action'], $this->exemptActions) ){\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\tif ( floatval($this->threshold) * floatval(100) > rand(0,100) ){\n\t\t\tregister_shutdown_function(array(&$this, 'cleanCache'));\n\t\t}\n\t\n\t\tif ( isset($params['randomize']) and $params['randomize'] > 1 ){\n\t\t\t$this->randomize = $params['randomize'];\n\t\t\t$numVersions = $this->numCurrentVersions($params);\n\t\t\tif ( $numVersions < $params['randomize'] ){\n\t\t\t\t// We don't have enough versions yet to do a proper randomization.\n\t\t\t\tif ( floatval(100)*floatval($numVersions)/floatval($params['randomize']) > rand(0,100) ){\n\t\t\t\t\t// We will use the cached version\n\t\t\t\t\t$useCache = true;\n\t\t\t\t} else {\n\t\t\t\t\t$useCache = false;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$useCache = true;\n\t\t\t}\n\t\t} else {\n\t\t\t$useCache = true;\n\t\t}\n\t\t\n\t\tif ( $useCache ){\n\t\t\t//echo \"Trying to use cached version\";\n\t\t\t$output = $this->getPage($params);\n\t\t} else {\n\t\t\t//echo \"Not using cached version\";\n\t\t\t$output = null;\n\t\t}\n\t\t\n\t\tif ( isset($output) ){\n\t\t\t//echo \"Using cached version\";\n\t\t\t//$last_modified_time = filemtime($file);\n\t\t\t$etag = md5($output);\n\t\t\theader(\"Last-Modified: \".gmdate(\"D, d M Y H:i:s\", $this->lastModified).\" GMT\");\n\t\t\theader(\"Etag: $etag\");\n\t\t\t\n\t\t\tif (@strtotime($_SERVER['HTTP_IF_MODIFIED_SINCE']) == $this->lastModified ||\n\t\t\t\ttrim($_SERVER['HTTP_IF_NONE_MATCH']) == $etag) {\n\t\t\t\theader(\"HTTP/1.1 304 Not Modified\");\n\t\t\t\texit;\n\t\t\t}\n\t\t\t\n\t\t\t// Send the necessary headers\n\t\t\tif ( function_exists('headers_list')){\n\t\t\t\t$hlist = headers_list();\n\t\t\t\t$harr = array();\n\t\t\t\tforeach ($hlist as $h){\n\t\t\t\t\tlist($hname,$hval) = array_map('trim',explode(':',$h));\n\t\t\t\t\t$harr[$hname] = $hval;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tforeach ( $this->headers as $h){\n\t\t\t\t\tlist($hname,$hval) = array_map('trim',explode(':',$h));\n\t\t\t\t\tif ( !isset($harr[$hname]) ){\n\t\t\t\t\t\theader($hname.': '.$hval);\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\n\t\t\tif ( $this->gzipSupported() and $this->useGzipCompression ){\n\t\t\t\theader(\"Content-Encoding: gzip\");\n\t\t\t\techo $output;\n\t\t\t} else {\n\t\t\t\techo $output;\n\t\t\t}\n\t\t\texit;\n\t\t}\n\t\t\n\t\tob_start(array(&$this, 'ob_flush'));\n\t\tob_implicit_flush(0);\n\t\treturn true;\n\t}", "function cleanBufferOn()\n\t{\n\t\t$this->bCleanBuffer = true;\n\t}", "function flush(){\n\t\tif(!$this->_OutputBuffer_Flush_Started){\n\t\t\t$this->_flushHeaders();\n\t\t}\n\n\t\tif($this->getContentLength()>0){\n\t\t\t$this->_OutputBuffer_Flush_Started = true;\n\t\t\t$this->_OutputBuffer->printOut();\n\t\t\t$this->_OutputBuffer->clear();\n\t\t}\n\t}", "function enableContinuousBuffer()\n {\n parent::enableContinuousBuffer();\n\n if (CRYPT_AES_MODE == CRYPT_AES_MODE_MCRYPT) {\n $this->enbuffer['enmcrypt_init'] = true;\n $this->debuffer['demcrypt_init'] = true;\n }\n }", "public static function resetBuffer()\r\n {\r\n while(@ob_end_clean());\r\n \r\n // create new empty buffer \r\n if (version_compare(PHP_VERSION, '5.4.0', '>=')) \r\n ob_start(null, 0, PHP_OUTPUT_HANDLER_STDFLAGS ^ PHP_OUTPUT_HANDLER_REMOVABLE);\r\n else \r\n ob_start(null, 0, false);\r\n }", "public function getBuffer() {}", "public function benchmarkStart()\n\t{\n\t\t$this->startTime = round(microtime(true) * 1000);\n\t}", "public function run()\n {\n //\n $this->grabData();\n }", "function flush();", "private function flushN()\n {\n echo str_repeat(' ',1024*64);\n // Send output to browser immediately\n flush();\n // Sleep one second so we can see the delay\n //sleep(1);\n }", "public function start() {}", "public function start() {}", "public function start() {}", "public function start() {}", "public function start() {}", "public function start() {}", "public function start() {}", "public function start() {}", "public function start() {}", "public function start() {}", "public function bufferEnd() {\n\t\tob_end_flush();\n\t}", "abstract public function start();", "abstract public function start();", "function run() {\n while ($this->running) {\n $read = $this->readStreams;\n $write = $this->writeStreams;\n $except = null;\n\n if ($read || $write) {\n @stream_select($read, $write, $except, 0, 100);\n\n foreach ($read as $stream) {\n $this->readHandlers[(int) $stream]($stream);\n }\n\n foreach ($write as $stream) {\n $this->writeHandlers[(int) $stream]($stream);\n }\n } else {\n usleep(100);\n }\n }\n }", "function init()\n\t{\n\t\tob_start();\n\t}", "public function __construct($useBuffer = true)\n {\n // parent::__construct();\n\n $this->app = &Registry::getApp();\n $this->config = &Registry::getConfig();\n\n if ($this->useBuffer = $useBuffer) {\n ob_start();\n }\n }", "function stream_set_blocking($stream, $mode)\n{\n}", "final protected function bufferOutput( $boolean=true ) {\n\t\t$this->_bufferOutput = $boolean ? true : false;\n\t}", "function start() {\n // Warns if binary logging is not active\n //$r = $this->q(\"show variables like 'log_bin'\");\n //if (@mysql_fetch_object($r)->Value != 'ON') {\n // Binary log should be used for better data reliability\n // see http://dev.mysql.com/doc/refman/5.0/fr/commit.html\n // and http://dev.mysql.com/doc/refman/5.0/fr/binary-log.html\n // and http://www.cyberciti.biz/faq/what-is-mysql-binary-log/\n //}\n // Manages nested transactions:\n // only issues a BEGIN statement for the first transaction\n if (self::$started_transactions_count < 1) {\n // Backups current autocommit state\n self::$autocommit_state_backup = $this->autocommit();\n // Sets autocommit state to false\n $this->autocommit(false);\n // Begin transaction\n $this->q('BEGIN');\n // Resets internal variables\n self::$started_transactions_count = 0;\n $this->last_insert_id = null;\n $this->results = array();\n $this->exceptions = array();\n }\n // Manages transactions counter\n self::$started_transactions_count++;\n }", "public function start()\n {\n //Start pushing data\n }", "public function flush()\n {\n unset($this->buffer);\n $this->buffer=array();\n }", "public function setBuffer($buffer)\n {\n $this->buffer = $buffer;\n }", "public function setBuffer($buffer)\n {\n $this->buffer = $buffer;\n }", "public function getOutputBuffer()\n {\n }", "public function set_buffer(&$buffer)\r\n\t{\r\n\t\t$this->buffer = $buffer;\r\n\t\t$this->_isExternalBuffer = true;\r\n\t\t$this->buffer->register_var($this->sorting);\r\n\t\t$this->buffer->register_var($this->pagenum);\r\n\t\t$this->buffer->register_var($this->sortdir);\r\n\t}", "public static function flushOutputBuffers() {}", "abstract function start();", "public function prependBuffer(EventBuffer $buf): bool {}", "public function begin() {}", "public function begin() {}", "function ob_implicit_flush_mock($emul,$flag=true)\n{\n\t//TODO:\n}", "public function onRun()\n {\n $this->prepareWallStream();\n }", "function buffer(callable $callback, $is_clean = true)\n{\n\tob_start();\n\t$callback();\n\treturn $is_clean ? ob_get_clean() : ob_get_flush();\n}", "function flush()\n{\n}" ]
[ "0.8704849", "0.8704849", "0.8322394", "0.81505245", "0.80206275", "0.7837037", "0.7400312", "0.72600347", "0.7212128", "0.71674114", "0.7064484", "0.6877768", "0.66955537", "0.66439366", "0.65987283", "0.6532544", "0.6426374", "0.63662255", "0.6297933", "0.6278719", "0.62617195", "0.6256346", "0.6143561", "0.6073611", "0.60389096", "0.60281485", "0.6012358", "0.5975082", "0.59745383", "0.5915814", "0.5915814", "0.5915814", "0.5915814", "0.5915814", "0.5915814", "0.5915814", "0.5915814", "0.5915814", "0.5915814", "0.5915814", "0.5915814", "0.59008574", "0.58985764", "0.58460623", "0.5828185", "0.5798571", "0.57977235", "0.57804203", "0.576021", "0.576021", "0.57512045", "0.57512045", "0.5742421", "0.5719865", "0.5711514", "0.57004124", "0.5698146", "0.567841", "0.566121", "0.5641129", "0.5625022", "0.56234246", "0.5619127", "0.5615884", "0.55999345", "0.55970705", "0.5596935", "0.5578552", "0.5578552", "0.5578491", "0.55783", "0.557701", "0.557701", "0.557701", "0.557701", "0.557701", "0.557701", "0.55609304", "0.55553085", "0.55553085", "0.55098975", "0.5508302", "0.5495817", "0.54866034", "0.5482693", "0.54701954", "0.54654926", "0.5463867", "0.5463844", "0.5463844", "0.54464185", "0.54420114", "0.5440747", "0.54232895", "0.5414467", "0.5394119", "0.5394119", "0.536349", "0.53521526", "0.53514755", "0.5350994" ]
0.0
-1
Start the buffering //
public function saveHtml(){ ob_start(); ?> <?php $monthUnderReview = $_POST['monthUnderReview']; $yearUnderReview = $_POST['yearUnderReview']; $taxNo = $_POST['taxNo']; $vatNo = $_POST['vatNo']; $firsTaxOffice = $_POST['firsTaxOffice']; $outputSalesIncome = $_POST['outputSalesIncome']; $exemptedZero = $_POST['exemptedZero']; $totalSuppliesVat = $_POST['totalSuppliesVat']; $outputVat = $_POST['outputVat']; $vatOnLocalSupplies = $_POST['vatOnLocalSupplies']; $vatOnImportedGoods = $_POST['vatOnImportedGoods']; $vatOnSubcontracted = $_POST['vatOnSubcontracted']; $totalInputTaxClaimable = $_POST['totalInputTaxClaimable']; $excessInputVat = $_POST['excessInputVat']; $vatPayableForMonth = $_POST['vatPayableForMonth']; $authorizedSignatory = $_POST['authorizedSignatory']; $designation = $_POST['designation']; $signature = $_POST['signature']; $companyStampAndDate = $_POST['companyStampAndDate']; ?> <style type="text/css"> table, th, td{ text-align: left; } </style> <h2>VAT Report</h2><br/> <table border="1"> <tr> <th>Month under review1</th> <td><?php echo $monthUnderReview; ?></td> </tr> <tr> <th>Year under review</th> <td><?php echo $yearUnderReview; ?></td> </tr> <tr> <th>Tax Identification No.</th> <td><?php echo $taxNo; ?></td> </tr> <tr> <th>Vat No.</th> <td><?php echo $vatNo; ?></td> </tr> <tr> <th>Firs Tax Office</th> <td><?php echo $firsTaxOffice; ?></td> </tr> <tr> <th>Sales / Income for the month on all goods and services sold</th> <td><?php echo $outputSalesIncome; ?></td> </tr> <tr> <th>Exempted / Zero rated sales:</th> <td><?php echo $exemptedZero; ?></td> </tr> <tr> <th>Total supplies subject to VAT</th> <td><?php echo $totalSuppliesVat; ?></td> </tr> <tr> <th>Output VAT for the Month</th> <td><?php echo $outputVat; ?></td> </tr> <tr> <th>VAT paid on local supplies</th> <td><?php echo $vatOnLocalSupplies; ?></td> </tr> <tr> <th>VAT paid on imported goods</th> <td><?php echo $vatOnImportedGoods; ?></td> </tr> <tr> <th>VAT paid on subcontracted services</th> <td><?php echo $vatOnSubcontracted; ?></td> </tr> <tr> <th>Total input Tax claimable</th> <td><?php echo $totalInputTaxClaimable; ?></td> </tr> <tr> <th>Excess input VAT brought forward from previous month</th> <td><?php echo $excessInputVat; ?></td> </tr> <tr> <th>VAT payable for the month</th> <td><?php echo $vatPayableForMonth; ?></td> </tr> <tr> <th>Authorized Signatory</th> <td><?php echo $authorizedSignatory; ?></td> </tr> <tr> <th>Designation</th> <td><?php echo $designation; ?></td> </tr> <tr> <th>Signature</th> <td><?php echo $signature; ?></td> </tr> <tr> <th>Company stamp and date</th> <td><?php echo $companyStampAndDate; ?></td> </tr> </table> <?php $rand = rand(90, 10000); $docName = $rand.".php"; // Get the content that is in the buffer and put it in your file // if(file_put_contents('files/'.$docName, ob_get_contents())){ echo "#".$docName; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function startBuffering(): void {}", "public function startBuffering(): void {}", "public function bufferStart() {\n\t\tob_start( array( $this, 'obCallback' ) );\n\t}", "public function startBuffer(): void {\n\t\tob_start();\n\t}", "public function start_buffer() {\n\t\tob_start();\n\t}", "public function startOutputBuffering() {}", "function start()\n {\n ob_start();\n ob_implicit_flush(0);\n }", "private function load_buffered()\n {\n }", "public function buffered();", "public static function startStream(){\n try{\n //try to change the server functions first\n // Turn off output buffering\n ini_set('output_buffering', 'off');\n // Turn off PHP output compression\n ini_set('zlib.output_compression', false);\n // Implicitly flush the buffer(s)\n ini_set('implicit_flush', true); \n }catch(Exception $e){\n \n } \n //Flush (send) the output buffer and turn off output buffering\n while (@ob_end_flush()); \n ob_implicit_flush(true);\n \n //now add browser tweaks\n echo str_pad(\"\",1024,\" \");\n echo \"<br />\";\n ob_flush();\n flush();\n sleep(1);\n }", "private function _setupBuffering()\n {\n // disable time limit\n @set_time_limit(0);\n \n // prevent buffering\n if (function_exists('apache_setenv')) {\n @apache_setenv('no-gzip', 1);\n }\n\n @ini_set('zlib.output_compression', 0);\n \n // turn on implicity flushing\n @ini_set('implicit_flush', true);\n while (@ob_get_level() !== 0) {\n @ob_end_flush();\n }\n\n @ob_implicit_flush(true);\n }", "public function buffer()\n {\n if ($this->_disabled) {\n return;\n }\n\n if ($this->isTurbo()) {\n return;\n }\n\n ob_start();\n $this->output();\n $this->_html = ob_get_contents();\n ob_end_clean();\n }", "static function send_buffer()\n {\n self::log_debug('Start sending buffer ...');\n\n $requests_sent = 0;\n $buffer_file = self::$log_dir . self::$log_file_buffer;\n $buffer_file_tmp = self::$log_dir . self::$log_file_buffer . '.' . rand(1, 100000) . '.tmp';\n\n try {\n\n if (!is_file($buffer_file)) {\n self::log_debug('Buffer file does not exists, nothing found to sent.');\n return false;\n }\n\n // take the current buffer and put it inside a unique tmp buffer\n rename($buffer_file, $buffer_file_tmp);\n\n // read and process the tmp buffer\n $fh = fopen($buffer_file_tmp, \"r\");\n if ($fh) {\n while (!feof($fh)) {\n $data_serialized = fgets($fh);\n\n if ($data_serialized == false) {\n continue;\n }\n\n $data = unserialize($data_serialized);\n \n if (self::send($data['e'], $data['m'], $data['d'])) {\n $requests_sent++;\n }\n }\n fclose($fh);\n }\n unlink($buffer_file_tmp);\n\n self::log_debug('Queue was sent successfully! Sent ' . $requests_sent . ' requests.');\n } catch (Exception $e) {\n self::log_error($e->getMessage());\n }\n }", "function enableContinuousBuffer()\r\n {\r\n $this->continuousBuffer = true;\r\n }", "public function requestDataSending()\n {\n $this->start();\n }", "public function startContent() {\n ob_start();\n }", "function PREFIX_output_buffering() {\n\tob_clean();\n\tob_start();\n}", "public function set_buffering($on) {\n\t\tself::$core_display->buffering = $on;\n\t\tif (!$this->buffering_on()) {\n\t\t\t$this->flush_buffer();\n\t\t}\n\t}", "function flush_buffers(){\n ob_end_flush();\n ob_flush();\n flush();\n ob_start();\n}", "public static function startStream(): bool\n {\n if(self::$CurrentlyStreaming)\n self::endStream();\n\n ob_start();\n self::$CurrentlyStreaming = true;\n return True;\n }", "public function buffering_on() {\n\t\tif( self::$core_display !== NULL )\n\t\t\treturn self::$core_display->buffering;\n\t\treturn FALSE;\n\t}", "public function captureStart()\n\t{\n\t\t$test = $this;\n\t\t$this->capture = '';\n\t\tob_start(function($buffer) use ($test) {\n\t\t\t$test->capture .= $buffer;\n\t\t});\n\t}", "protected function _flushBuffer() {\n\t\t//@codingStandardsIgnoreStart\n\t\t@flush();\n\t\tif (ob_get_level()) {\n\t\t\t@ob_flush();\n\t\t}\n\t\t//@codingStandardsIgnoreEnd\n\t}", "public function isBuffered();", "public function start(string $name): void\n {\n $this->blocks[$name] = '';\n\n ++$this->bufferLevel;\n\n ob_start();\n }", "public function isBuffered(): bool;", "public static function add_buffering_hooks( $args = [] ) {}", "function qa_initialize_buffering($request = '')\n{\n\tif (headers_sent()) {\n\t\treturn false;\n\t}\n\n\t$useGzip = QA_HTML_COMPRESSION && substr($request, 0, 6) !== 'admin/' && extension_loaded('zlib');\n\tob_start($useGzip ? 'ob_gzhandler' : null);\n\treturn true;\n}", "public function start()\n {\n $this->fStarted = microtime(true);\n $this->iStartMemoryUsage = memory_get_usage();\n }", "public function start();", "public function start();", "public function start();", "public function start();", "public function start();", "public function start();", "public function start();", "public function start();", "public function start();", "public function start();", "public function start();", "public function start();", "function buffer_the_output() {\r\n\tob_start();\r\n}", "public function start()\n {\n $this->_timeStartInMicroSeconds = microtime(true);\n }", "function ob_start_mock($emul, $callback=null,$chunk_size=0,$flags=null)\n{\n\tarray_unshift($emul->output_buffer,\"\");\n\treturn true;\n}", "function start(){\n\t\t$this->time_start = $this->microtime_float();\n\t}", "public function start()\n\t{\n\t\t$this->startTimer = microtime(TRUE);\n\t}", "public function flush_buffer() {\n\t\techo(self::$core_display->buffer);\n\t\tself::$core_display->buffer = '';\n\t}", "public function buffer_end_flush_all() {\n\t\t//if($this->get_setting('showHdrFtr') == 'FWD') {\n\t\t\t$levels = ob_get_level();\n\t\t\tfor ($i=0; $i<$levels; $i++){\n\t\t\t\t$obStatus = ob_get_status();\n\t\t\t\tif (!empty($obStatus['type']) && $obStatus['status']) {\n\t\t\t\t\tob_end_flush();\n\t\t\t\t}\n\t\t\t}\n\t\t//}\n\t}", "function flush() ;", "function flush() ;", "function start();", "function start();", "function start()\n\t{\n\t\tif( ! $this->is_running ){\n\t\t\t$this->is_running = TRUE;\n\t\t\t$this->running_since = self::timeMillisecondsAsFloat();\n\t\t}\n\t}", "public static function outputBuffering() {\r\n switch (substr_count(HTTP_ENCODING, 'gzip')) :\r\n case true:\r\n return ob_start('ob_gzhandler');\r\n default:\r\n return ob_start();\r\n endswitch;\r\n }", "function ob_implicit_flush(int $flag = 1): void {}", "public function streamCallback() {\n $this->_closeSession();\n $this->start = time();\n\n while(!$this->_exitStream()) {\n $this->_writeComment();\n $this->_writeMessage();\n $this->_flushContent();\n \n sleep($this->sleepTime);\n };\n }", "function start() {\n if ($this->isLogging) {\n $this->tStart = gettimeofday();\n $this->tLast = $this->tStart;\n $this->log = \"<h1>Log: \" . $this->name . \"</h1>\\n<pre>Started: \" . gmdate(\"D, d M Y H:i:s T\", $this->tStart['sec']) . \"\\n &#916; Start ; &#916; Last ;\";\n\t\t\t$this->logLine(\"Start\");\n\t\t}\n }", "function ob_start($params=array()){\n\t\t\n\t\t$app =& Dataface_Application::getInstance();\n\t\t$query =& $app->getQuery();\n\t\tif ( in_array($query['-action'], $this->exemptActions) ){\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\tif ( floatval($this->threshold) * floatval(100) > rand(0,100) ){\n\t\t\tregister_shutdown_function(array(&$this, 'cleanCache'));\n\t\t}\n\t\n\t\tif ( isset($params['randomize']) and $params['randomize'] > 1 ){\n\t\t\t$this->randomize = $params['randomize'];\n\t\t\t$numVersions = $this->numCurrentVersions($params);\n\t\t\tif ( $numVersions < $params['randomize'] ){\n\t\t\t\t// We don't have enough versions yet to do a proper randomization.\n\t\t\t\tif ( floatval(100)*floatval($numVersions)/floatval($params['randomize']) > rand(0,100) ){\n\t\t\t\t\t// We will use the cached version\n\t\t\t\t\t$useCache = true;\n\t\t\t\t} else {\n\t\t\t\t\t$useCache = false;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$useCache = true;\n\t\t\t}\n\t\t} else {\n\t\t\t$useCache = true;\n\t\t}\n\t\t\n\t\tif ( $useCache ){\n\t\t\t//echo \"Trying to use cached version\";\n\t\t\t$output = $this->getPage($params);\n\t\t} else {\n\t\t\t//echo \"Not using cached version\";\n\t\t\t$output = null;\n\t\t}\n\t\t\n\t\tif ( isset($output) ){\n\t\t\t//echo \"Using cached version\";\n\t\t\t//$last_modified_time = filemtime($file);\n\t\t\t$etag = md5($output);\n\t\t\theader(\"Last-Modified: \".gmdate(\"D, d M Y H:i:s\", $this->lastModified).\" GMT\");\n\t\t\theader(\"Etag: $etag\");\n\t\t\t\n\t\t\tif (@strtotime($_SERVER['HTTP_IF_MODIFIED_SINCE']) == $this->lastModified ||\n\t\t\t\ttrim($_SERVER['HTTP_IF_NONE_MATCH']) == $etag) {\n\t\t\t\theader(\"HTTP/1.1 304 Not Modified\");\n\t\t\t\texit;\n\t\t\t}\n\t\t\t\n\t\t\t// Send the necessary headers\n\t\t\tif ( function_exists('headers_list')){\n\t\t\t\t$hlist = headers_list();\n\t\t\t\t$harr = array();\n\t\t\t\tforeach ($hlist as $h){\n\t\t\t\t\tlist($hname,$hval) = array_map('trim',explode(':',$h));\n\t\t\t\t\t$harr[$hname] = $hval;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tforeach ( $this->headers as $h){\n\t\t\t\t\tlist($hname,$hval) = array_map('trim',explode(':',$h));\n\t\t\t\t\tif ( !isset($harr[$hname]) ){\n\t\t\t\t\t\theader($hname.': '.$hval);\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\n\t\t\tif ( $this->gzipSupported() and $this->useGzipCompression ){\n\t\t\t\theader(\"Content-Encoding: gzip\");\n\t\t\t\techo $output;\n\t\t\t} else {\n\t\t\t\techo $output;\n\t\t\t}\n\t\t\texit;\n\t\t}\n\t\t\n\t\tob_start(array(&$this, 'ob_flush'));\n\t\tob_implicit_flush(0);\n\t\treturn true;\n\t}", "function cleanBufferOn()\n\t{\n\t\t$this->bCleanBuffer = true;\n\t}", "function flush(){\n\t\tif(!$this->_OutputBuffer_Flush_Started){\n\t\t\t$this->_flushHeaders();\n\t\t}\n\n\t\tif($this->getContentLength()>0){\n\t\t\t$this->_OutputBuffer_Flush_Started = true;\n\t\t\t$this->_OutputBuffer->printOut();\n\t\t\t$this->_OutputBuffer->clear();\n\t\t}\n\t}", "function enableContinuousBuffer()\n {\n parent::enableContinuousBuffer();\n\n if (CRYPT_AES_MODE == CRYPT_AES_MODE_MCRYPT) {\n $this->enbuffer['enmcrypt_init'] = true;\n $this->debuffer['demcrypt_init'] = true;\n }\n }", "public static function resetBuffer()\r\n {\r\n while(@ob_end_clean());\r\n \r\n // create new empty buffer \r\n if (version_compare(PHP_VERSION, '5.4.0', '>=')) \r\n ob_start(null, 0, PHP_OUTPUT_HANDLER_STDFLAGS ^ PHP_OUTPUT_HANDLER_REMOVABLE);\r\n else \r\n ob_start(null, 0, false);\r\n }", "public function getBuffer() {}", "public function benchmarkStart()\n\t{\n\t\t$this->startTime = round(microtime(true) * 1000);\n\t}", "public function run()\n {\n //\n $this->grabData();\n }", "function flush();", "private function flushN()\n {\n echo str_repeat(' ',1024*64);\n // Send output to browser immediately\n flush();\n // Sleep one second so we can see the delay\n //sleep(1);\n }", "public function start() {}", "public function start() {}", "public function start() {}", "public function start() {}", "public function start() {}", "public function start() {}", "public function start() {}", "public function start() {}", "public function start() {}", "public function start() {}", "public function bufferEnd() {\n\t\tob_end_flush();\n\t}", "abstract public function start();", "abstract public function start();", "function run() {\n while ($this->running) {\n $read = $this->readStreams;\n $write = $this->writeStreams;\n $except = null;\n\n if ($read || $write) {\n @stream_select($read, $write, $except, 0, 100);\n\n foreach ($read as $stream) {\n $this->readHandlers[(int) $stream]($stream);\n }\n\n foreach ($write as $stream) {\n $this->writeHandlers[(int) $stream]($stream);\n }\n } else {\n usleep(100);\n }\n }\n }", "function init()\n\t{\n\t\tob_start();\n\t}", "public function __construct($useBuffer = true)\n {\n // parent::__construct();\n\n $this->app = &Registry::getApp();\n $this->config = &Registry::getConfig();\n\n if ($this->useBuffer = $useBuffer) {\n ob_start();\n }\n }", "function stream_set_blocking($stream, $mode)\n{\n}", "final protected function bufferOutput( $boolean=true ) {\n\t\t$this->_bufferOutput = $boolean ? true : false;\n\t}", "function start() {\n // Warns if binary logging is not active\n //$r = $this->q(\"show variables like 'log_bin'\");\n //if (@mysql_fetch_object($r)->Value != 'ON') {\n // Binary log should be used for better data reliability\n // see http://dev.mysql.com/doc/refman/5.0/fr/commit.html\n // and http://dev.mysql.com/doc/refman/5.0/fr/binary-log.html\n // and http://www.cyberciti.biz/faq/what-is-mysql-binary-log/\n //}\n // Manages nested transactions:\n // only issues a BEGIN statement for the first transaction\n if (self::$started_transactions_count < 1) {\n // Backups current autocommit state\n self::$autocommit_state_backup = $this->autocommit();\n // Sets autocommit state to false\n $this->autocommit(false);\n // Begin transaction\n $this->q('BEGIN');\n // Resets internal variables\n self::$started_transactions_count = 0;\n $this->last_insert_id = null;\n $this->results = array();\n $this->exceptions = array();\n }\n // Manages transactions counter\n self::$started_transactions_count++;\n }", "public function start()\n {\n //Start pushing data\n }", "public function flush()\n {\n unset($this->buffer);\n $this->buffer=array();\n }", "public function setBuffer($buffer)\n {\n $this->buffer = $buffer;\n }", "public function setBuffer($buffer)\n {\n $this->buffer = $buffer;\n }", "public function getOutputBuffer()\n {\n }", "public function set_buffer(&$buffer)\r\n\t{\r\n\t\t$this->buffer = $buffer;\r\n\t\t$this->_isExternalBuffer = true;\r\n\t\t$this->buffer->register_var($this->sorting);\r\n\t\t$this->buffer->register_var($this->pagenum);\r\n\t\t$this->buffer->register_var($this->sortdir);\r\n\t}", "public static function flushOutputBuffers() {}", "abstract function start();", "public function prependBuffer(EventBuffer $buf): bool {}", "public function begin() {}", "public function begin() {}", "function ob_implicit_flush_mock($emul,$flag=true)\n{\n\t//TODO:\n}", "public function onRun()\n {\n $this->prepareWallStream();\n }", "function buffer(callable $callback, $is_clean = true)\n{\n\tob_start();\n\t$callback();\n\treturn $is_clean ? ob_get_clean() : ob_get_flush();\n}", "function flush()\n{\n}" ]
[ "0.8704849", "0.8704849", "0.8322394", "0.81505245", "0.80206275", "0.7837037", "0.7400312", "0.72600347", "0.7212128", "0.71674114", "0.7064484", "0.6877768", "0.66955537", "0.66439366", "0.65987283", "0.6532544", "0.6426374", "0.63662255", "0.6297933", "0.6278719", "0.62617195", "0.6256346", "0.6143561", "0.6073611", "0.60389096", "0.60281485", "0.6012358", "0.5975082", "0.59745383", "0.5915814", "0.5915814", "0.5915814", "0.5915814", "0.5915814", "0.5915814", "0.5915814", "0.5915814", "0.5915814", "0.5915814", "0.5915814", "0.5915814", "0.59008574", "0.58985764", "0.58460623", "0.5828185", "0.5798571", "0.57977235", "0.57804203", "0.576021", "0.576021", "0.57512045", "0.57512045", "0.5742421", "0.5719865", "0.5711514", "0.57004124", "0.5698146", "0.567841", "0.566121", "0.5641129", "0.5625022", "0.56234246", "0.5619127", "0.5615884", "0.55999345", "0.55970705", "0.5596935", "0.5578552", "0.5578552", "0.5578491", "0.55783", "0.557701", "0.557701", "0.557701", "0.557701", "0.557701", "0.557701", "0.55609304", "0.55553085", "0.55553085", "0.55098975", "0.5508302", "0.5495817", "0.54866034", "0.5482693", "0.54701954", "0.54654926", "0.5463867", "0.5463844", "0.5463844", "0.54464185", "0.54420114", "0.5440747", "0.54232895", "0.5414467", "0.5394119", "0.5394119", "0.536349", "0.53521526", "0.53514755", "0.5350994" ]
0.0
-1
Start the buffering //
public function saveHtmlEmail(){ ob_start(); ?> <?php $name = "TaxAssist"; $userEmail = $this->session->userdata('email'); $monthUnderReview = $_POST['monthUnderReview']; $yearUnderReview = $_POST['yearUnderReview']; $taxNo = $_POST['taxNo']; $vatNo = $_POST['vatNo']; $firsTaxOffice = $_POST['firsTaxOffice']; $outputSalesIncome = $_POST['outputSalesIncome']; $exemptedZero = $_POST['exemptedZero']; $totalSuppliesVat = $_POST['totalSuppliesVat']; $outputVat = $_POST['outputVat']; $vatOnLocalSupplies = $_POST['vatOnLocalSupplies']; $vatOnImportedGoods = $_POST['vatOnImportedGoods']; $vatOnSubcontracted = $_POST['vatOnSubcontracted']; $totalInputTaxClaimable = $_POST['totalInputTaxClaimable']; $excessInputVat = $_POST['excessInputVat']; $vatPayableForMonth = $_POST['vatPayableForMonth']; $authorizedSignatory = $_POST['authorizedSignatory']; $designation = $_POST['designation']; $signature = $_POST['signature']; $companyStampAndDate = $_POST['companyStampAndDate']; ?> <style type="text/css"> table, th, td{ text-align: left; } </style> <table border="1"> <tr> <th>Month under review1</th> <td><?php echo $monthUnderReview; ?></td> </tr> <tr> <th>Year under review</th> <td><?php echo $yearUnderReview; ?></td> </tr> <tr> <th>Tax Identification No.</th> <td><?php echo $taxNo; ?></td> </tr> <tr> <th>Vat No.</th> <td><?php echo $vatNo; ?></td> </tr> <tr> <th>Firs Tax Office</th> <td><?php echo $firsTaxOffice; ?></td> </tr> <tr> <th>Sales / Income for the month on all goods and services sold</th> <td><?php echo $outputSalesIncome; ?></td> </tr> <tr> <th>Exempted / Zero rated sales:</th> <td><?php echo $exemptedZero; ?></td> </tr> <tr> <th>Total supplies subject to VAT</th> <td><?php echo $totalSuppliesVat; ?></td> </tr> <tr> <th>Output VAT for the Month</th> <td><?php echo $outputVat; ?></td> </tr> <tr> <th>VAT paid on local supplies</th> <td><?php echo $vatOnLocalSupplies; ?></td> </tr> <tr> <th>VAT paid on imported goods</th> <td><?php echo $vatOnImportedGoods; ?></td> </tr> <tr> <th>VAT paid on subcontracted services</th> <td><?php echo $vatOnSubcontracted; ?></td> </tr> <tr> <th>Total input Tax claimable</th> <td><?php echo $totalInputTaxClaimable; ?></td> </tr> <tr> <th>Excess input VAT brought forward from previous month</th> <td><?php echo $excessInputVat; ?></td> </tr> <tr> <th>VAT payable for the month</th> <td><?php echo $vatPayableForMonth; ?></td> </tr> <tr> <th>Authorized Signatory</th> <td><?php echo $authorizedSignatory; ?></td> </tr> <tr> <th>Designation</th> <td><?php echo $designation; ?></td> </tr> <tr> <th>Signature</th> <td><?php echo $signature; ?></td> </tr> <tr> <th>Company stamp and date</th> <td><?php echo $companyStampAndDate; ?></td> </tr> </table> <?php $rand = rand(900, 1000000); $docName = $rand.".php"; // Get the content that is in the buffer and put it in your file // if(file_put_contents('files/'.$docName, ob_get_contents())){ $sendto = $userEmail; $downloadLink = "http://vi-mtaxassist.com/files/".$docName; $subject = "VAT Calculation Form: ".$name; $headers = "From: " . strip_tags($name) . "\r\n"; $headers .= "Reply-To: ". strip_tags($name) . "\r\n"; $headers .= "MIME-Version: 1.0\r\n"; $headers .= "Content-Type: text/html;charset=utf-8 \r\n"; $msg = "<html><body style='font-family:Arial,sans-serif;'>"; $msg .= "<h2 style='font-weight:bold;border-bottom:1px dotted #ccc;'>VAT Calculation Form</h2>\r\n"; $msg .= "<p><strong>User Email: </strong> ".$userEmail."</p>\r\n\r"; $msg .= "<p><a href='".$downloadLink."' target='_blank'><strong>View my calculation results!</strong></a></p>\r\n"; $msg .= "</body></html>"; $this->load->library('email'); $this->email->from($name, 'TaxAssist'); $this->email->to($sendto); $this->email->subject($subject); $this->email->message($msg); if($this->email->send()){ echo "#".$docName; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function startBuffering(): void {}", "public function startBuffering(): void {}", "public function bufferStart() {\n\t\tob_start( array( $this, 'obCallback' ) );\n\t}", "public function startBuffer(): void {\n\t\tob_start();\n\t}", "public function start_buffer() {\n\t\tob_start();\n\t}", "public function startOutputBuffering() {}", "function start()\n {\n ob_start();\n ob_implicit_flush(0);\n }", "private function load_buffered()\n {\n }", "public function buffered();", "public static function startStream(){\n try{\n //try to change the server functions first\n // Turn off output buffering\n ini_set('output_buffering', 'off');\n // Turn off PHP output compression\n ini_set('zlib.output_compression', false);\n // Implicitly flush the buffer(s)\n ini_set('implicit_flush', true); \n }catch(Exception $e){\n \n } \n //Flush (send) the output buffer and turn off output buffering\n while (@ob_end_flush()); \n ob_implicit_flush(true);\n \n //now add browser tweaks\n echo str_pad(\"\",1024,\" \");\n echo \"<br />\";\n ob_flush();\n flush();\n sleep(1);\n }", "private function _setupBuffering()\n {\n // disable time limit\n @set_time_limit(0);\n \n // prevent buffering\n if (function_exists('apache_setenv')) {\n @apache_setenv('no-gzip', 1);\n }\n\n @ini_set('zlib.output_compression', 0);\n \n // turn on implicity flushing\n @ini_set('implicit_flush', true);\n while (@ob_get_level() !== 0) {\n @ob_end_flush();\n }\n\n @ob_implicit_flush(true);\n }", "public function buffer()\n {\n if ($this->_disabled) {\n return;\n }\n\n if ($this->isTurbo()) {\n return;\n }\n\n ob_start();\n $this->output();\n $this->_html = ob_get_contents();\n ob_end_clean();\n }", "static function send_buffer()\n {\n self::log_debug('Start sending buffer ...');\n\n $requests_sent = 0;\n $buffer_file = self::$log_dir . self::$log_file_buffer;\n $buffer_file_tmp = self::$log_dir . self::$log_file_buffer . '.' . rand(1, 100000) . '.tmp';\n\n try {\n\n if (!is_file($buffer_file)) {\n self::log_debug('Buffer file does not exists, nothing found to sent.');\n return false;\n }\n\n // take the current buffer and put it inside a unique tmp buffer\n rename($buffer_file, $buffer_file_tmp);\n\n // read and process the tmp buffer\n $fh = fopen($buffer_file_tmp, \"r\");\n if ($fh) {\n while (!feof($fh)) {\n $data_serialized = fgets($fh);\n\n if ($data_serialized == false) {\n continue;\n }\n\n $data = unserialize($data_serialized);\n \n if (self::send($data['e'], $data['m'], $data['d'])) {\n $requests_sent++;\n }\n }\n fclose($fh);\n }\n unlink($buffer_file_tmp);\n\n self::log_debug('Queue was sent successfully! Sent ' . $requests_sent . ' requests.');\n } catch (Exception $e) {\n self::log_error($e->getMessage());\n }\n }", "function enableContinuousBuffer()\r\n {\r\n $this->continuousBuffer = true;\r\n }", "public function requestDataSending()\n {\n $this->start();\n }", "public function startContent() {\n ob_start();\n }", "function PREFIX_output_buffering() {\n\tob_clean();\n\tob_start();\n}", "public function set_buffering($on) {\n\t\tself::$core_display->buffering = $on;\n\t\tif (!$this->buffering_on()) {\n\t\t\t$this->flush_buffer();\n\t\t}\n\t}", "function flush_buffers(){\n ob_end_flush();\n ob_flush();\n flush();\n ob_start();\n}", "public static function startStream(): bool\n {\n if(self::$CurrentlyStreaming)\n self::endStream();\n\n ob_start();\n self::$CurrentlyStreaming = true;\n return True;\n }", "public function buffering_on() {\n\t\tif( self::$core_display !== NULL )\n\t\t\treturn self::$core_display->buffering;\n\t\treturn FALSE;\n\t}", "public function captureStart()\n\t{\n\t\t$test = $this;\n\t\t$this->capture = '';\n\t\tob_start(function($buffer) use ($test) {\n\t\t\t$test->capture .= $buffer;\n\t\t});\n\t}", "protected function _flushBuffer() {\n\t\t//@codingStandardsIgnoreStart\n\t\t@flush();\n\t\tif (ob_get_level()) {\n\t\t\t@ob_flush();\n\t\t}\n\t\t//@codingStandardsIgnoreEnd\n\t}", "public function isBuffered();", "public function start(string $name): void\n {\n $this->blocks[$name] = '';\n\n ++$this->bufferLevel;\n\n ob_start();\n }", "public function isBuffered(): bool;", "public static function add_buffering_hooks( $args = [] ) {}", "function qa_initialize_buffering($request = '')\n{\n\tif (headers_sent()) {\n\t\treturn false;\n\t}\n\n\t$useGzip = QA_HTML_COMPRESSION && substr($request, 0, 6) !== 'admin/' && extension_loaded('zlib');\n\tob_start($useGzip ? 'ob_gzhandler' : null);\n\treturn true;\n}", "public function start()\n {\n $this->fStarted = microtime(true);\n $this->iStartMemoryUsage = memory_get_usage();\n }", "public function start();", "public function start();", "public function start();", "public function start();", "public function start();", "public function start();", "public function start();", "public function start();", "public function start();", "public function start();", "public function start();", "public function start();", "function buffer_the_output() {\r\n\tob_start();\r\n}", "public function start()\n {\n $this->_timeStartInMicroSeconds = microtime(true);\n }", "function ob_start_mock($emul, $callback=null,$chunk_size=0,$flags=null)\n{\n\tarray_unshift($emul->output_buffer,\"\");\n\treturn true;\n}", "function start(){\n\t\t$this->time_start = $this->microtime_float();\n\t}", "public function start()\n\t{\n\t\t$this->startTimer = microtime(TRUE);\n\t}", "public function flush_buffer() {\n\t\techo(self::$core_display->buffer);\n\t\tself::$core_display->buffer = '';\n\t}", "public function buffer_end_flush_all() {\n\t\t//if($this->get_setting('showHdrFtr') == 'FWD') {\n\t\t\t$levels = ob_get_level();\n\t\t\tfor ($i=0; $i<$levels; $i++){\n\t\t\t\t$obStatus = ob_get_status();\n\t\t\t\tif (!empty($obStatus['type']) && $obStatus['status']) {\n\t\t\t\t\tob_end_flush();\n\t\t\t\t}\n\t\t\t}\n\t\t//}\n\t}", "function flush() ;", "function flush() ;", "function start();", "function start();", "function start()\n\t{\n\t\tif( ! $this->is_running ){\n\t\t\t$this->is_running = TRUE;\n\t\t\t$this->running_since = self::timeMillisecondsAsFloat();\n\t\t}\n\t}", "public static function outputBuffering() {\r\n switch (substr_count(HTTP_ENCODING, 'gzip')) :\r\n case true:\r\n return ob_start('ob_gzhandler');\r\n default:\r\n return ob_start();\r\n endswitch;\r\n }", "function ob_implicit_flush(int $flag = 1): void {}", "public function streamCallback() {\n $this->_closeSession();\n $this->start = time();\n\n while(!$this->_exitStream()) {\n $this->_writeComment();\n $this->_writeMessage();\n $this->_flushContent();\n \n sleep($this->sleepTime);\n };\n }", "function start() {\n if ($this->isLogging) {\n $this->tStart = gettimeofday();\n $this->tLast = $this->tStart;\n $this->log = \"<h1>Log: \" . $this->name . \"</h1>\\n<pre>Started: \" . gmdate(\"D, d M Y H:i:s T\", $this->tStart['sec']) . \"\\n &#916; Start ; &#916; Last ;\";\n\t\t\t$this->logLine(\"Start\");\n\t\t}\n }", "function ob_start($params=array()){\n\t\t\n\t\t$app =& Dataface_Application::getInstance();\n\t\t$query =& $app->getQuery();\n\t\tif ( in_array($query['-action'], $this->exemptActions) ){\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\tif ( floatval($this->threshold) * floatval(100) > rand(0,100) ){\n\t\t\tregister_shutdown_function(array(&$this, 'cleanCache'));\n\t\t}\n\t\n\t\tif ( isset($params['randomize']) and $params['randomize'] > 1 ){\n\t\t\t$this->randomize = $params['randomize'];\n\t\t\t$numVersions = $this->numCurrentVersions($params);\n\t\t\tif ( $numVersions < $params['randomize'] ){\n\t\t\t\t// We don't have enough versions yet to do a proper randomization.\n\t\t\t\tif ( floatval(100)*floatval($numVersions)/floatval($params['randomize']) > rand(0,100) ){\n\t\t\t\t\t// We will use the cached version\n\t\t\t\t\t$useCache = true;\n\t\t\t\t} else {\n\t\t\t\t\t$useCache = false;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$useCache = true;\n\t\t\t}\n\t\t} else {\n\t\t\t$useCache = true;\n\t\t}\n\t\t\n\t\tif ( $useCache ){\n\t\t\t//echo \"Trying to use cached version\";\n\t\t\t$output = $this->getPage($params);\n\t\t} else {\n\t\t\t//echo \"Not using cached version\";\n\t\t\t$output = null;\n\t\t}\n\t\t\n\t\tif ( isset($output) ){\n\t\t\t//echo \"Using cached version\";\n\t\t\t//$last_modified_time = filemtime($file);\n\t\t\t$etag = md5($output);\n\t\t\theader(\"Last-Modified: \".gmdate(\"D, d M Y H:i:s\", $this->lastModified).\" GMT\");\n\t\t\theader(\"Etag: $etag\");\n\t\t\t\n\t\t\tif (@strtotime($_SERVER['HTTP_IF_MODIFIED_SINCE']) == $this->lastModified ||\n\t\t\t\ttrim($_SERVER['HTTP_IF_NONE_MATCH']) == $etag) {\n\t\t\t\theader(\"HTTP/1.1 304 Not Modified\");\n\t\t\t\texit;\n\t\t\t}\n\t\t\t\n\t\t\t// Send the necessary headers\n\t\t\tif ( function_exists('headers_list')){\n\t\t\t\t$hlist = headers_list();\n\t\t\t\t$harr = array();\n\t\t\t\tforeach ($hlist as $h){\n\t\t\t\t\tlist($hname,$hval) = array_map('trim',explode(':',$h));\n\t\t\t\t\t$harr[$hname] = $hval;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tforeach ( $this->headers as $h){\n\t\t\t\t\tlist($hname,$hval) = array_map('trim',explode(':',$h));\n\t\t\t\t\tif ( !isset($harr[$hname]) ){\n\t\t\t\t\t\theader($hname.': '.$hval);\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\n\t\t\tif ( $this->gzipSupported() and $this->useGzipCompression ){\n\t\t\t\theader(\"Content-Encoding: gzip\");\n\t\t\t\techo $output;\n\t\t\t} else {\n\t\t\t\techo $output;\n\t\t\t}\n\t\t\texit;\n\t\t}\n\t\t\n\t\tob_start(array(&$this, 'ob_flush'));\n\t\tob_implicit_flush(0);\n\t\treturn true;\n\t}", "function cleanBufferOn()\n\t{\n\t\t$this->bCleanBuffer = true;\n\t}", "function flush(){\n\t\tif(!$this->_OutputBuffer_Flush_Started){\n\t\t\t$this->_flushHeaders();\n\t\t}\n\n\t\tif($this->getContentLength()>0){\n\t\t\t$this->_OutputBuffer_Flush_Started = true;\n\t\t\t$this->_OutputBuffer->printOut();\n\t\t\t$this->_OutputBuffer->clear();\n\t\t}\n\t}", "function enableContinuousBuffer()\n {\n parent::enableContinuousBuffer();\n\n if (CRYPT_AES_MODE == CRYPT_AES_MODE_MCRYPT) {\n $this->enbuffer['enmcrypt_init'] = true;\n $this->debuffer['demcrypt_init'] = true;\n }\n }", "public static function resetBuffer()\r\n {\r\n while(@ob_end_clean());\r\n \r\n // create new empty buffer \r\n if (version_compare(PHP_VERSION, '5.4.0', '>=')) \r\n ob_start(null, 0, PHP_OUTPUT_HANDLER_STDFLAGS ^ PHP_OUTPUT_HANDLER_REMOVABLE);\r\n else \r\n ob_start(null, 0, false);\r\n }", "public function getBuffer() {}", "public function benchmarkStart()\n\t{\n\t\t$this->startTime = round(microtime(true) * 1000);\n\t}", "public function run()\n {\n //\n $this->grabData();\n }", "function flush();", "private function flushN()\n {\n echo str_repeat(' ',1024*64);\n // Send output to browser immediately\n flush();\n // Sleep one second so we can see the delay\n //sleep(1);\n }", "public function start() {}", "public function start() {}", "public function start() {}", "public function start() {}", "public function start() {}", "public function start() {}", "public function start() {}", "public function start() {}", "public function start() {}", "public function start() {}", "public function bufferEnd() {\n\t\tob_end_flush();\n\t}", "abstract public function start();", "abstract public function start();", "function run() {\n while ($this->running) {\n $read = $this->readStreams;\n $write = $this->writeStreams;\n $except = null;\n\n if ($read || $write) {\n @stream_select($read, $write, $except, 0, 100);\n\n foreach ($read as $stream) {\n $this->readHandlers[(int) $stream]($stream);\n }\n\n foreach ($write as $stream) {\n $this->writeHandlers[(int) $stream]($stream);\n }\n } else {\n usleep(100);\n }\n }\n }", "function init()\n\t{\n\t\tob_start();\n\t}", "public function __construct($useBuffer = true)\n {\n // parent::__construct();\n\n $this->app = &Registry::getApp();\n $this->config = &Registry::getConfig();\n\n if ($this->useBuffer = $useBuffer) {\n ob_start();\n }\n }", "function stream_set_blocking($stream, $mode)\n{\n}", "final protected function bufferOutput( $boolean=true ) {\n\t\t$this->_bufferOutput = $boolean ? true : false;\n\t}", "function start() {\n // Warns if binary logging is not active\n //$r = $this->q(\"show variables like 'log_bin'\");\n //if (@mysql_fetch_object($r)->Value != 'ON') {\n // Binary log should be used for better data reliability\n // see http://dev.mysql.com/doc/refman/5.0/fr/commit.html\n // and http://dev.mysql.com/doc/refman/5.0/fr/binary-log.html\n // and http://www.cyberciti.biz/faq/what-is-mysql-binary-log/\n //}\n // Manages nested transactions:\n // only issues a BEGIN statement for the first transaction\n if (self::$started_transactions_count < 1) {\n // Backups current autocommit state\n self::$autocommit_state_backup = $this->autocommit();\n // Sets autocommit state to false\n $this->autocommit(false);\n // Begin transaction\n $this->q('BEGIN');\n // Resets internal variables\n self::$started_transactions_count = 0;\n $this->last_insert_id = null;\n $this->results = array();\n $this->exceptions = array();\n }\n // Manages transactions counter\n self::$started_transactions_count++;\n }", "public function start()\n {\n //Start pushing data\n }", "public function flush()\n {\n unset($this->buffer);\n $this->buffer=array();\n }", "public function setBuffer($buffer)\n {\n $this->buffer = $buffer;\n }", "public function setBuffer($buffer)\n {\n $this->buffer = $buffer;\n }", "public function getOutputBuffer()\n {\n }", "public function set_buffer(&$buffer)\r\n\t{\r\n\t\t$this->buffer = $buffer;\r\n\t\t$this->_isExternalBuffer = true;\r\n\t\t$this->buffer->register_var($this->sorting);\r\n\t\t$this->buffer->register_var($this->pagenum);\r\n\t\t$this->buffer->register_var($this->sortdir);\r\n\t}", "public static function flushOutputBuffers() {}", "abstract function start();", "public function prependBuffer(EventBuffer $buf): bool {}", "public function begin() {}", "public function begin() {}", "function ob_implicit_flush_mock($emul,$flag=true)\n{\n\t//TODO:\n}", "public function onRun()\n {\n $this->prepareWallStream();\n }", "function buffer(callable $callback, $is_clean = true)\n{\n\tob_start();\n\t$callback();\n\treturn $is_clean ? ob_get_clean() : ob_get_flush();\n}", "function flush()\n{\n}" ]
[ "0.8704849", "0.8704849", "0.8322394", "0.81505245", "0.80206275", "0.7837037", "0.7400312", "0.72600347", "0.7212128", "0.71674114", "0.7064484", "0.6877768", "0.66955537", "0.66439366", "0.65987283", "0.6532544", "0.6426374", "0.63662255", "0.6297933", "0.6278719", "0.62617195", "0.6256346", "0.6143561", "0.6073611", "0.60389096", "0.60281485", "0.6012358", "0.5975082", "0.59745383", "0.5915814", "0.5915814", "0.5915814", "0.5915814", "0.5915814", "0.5915814", "0.5915814", "0.5915814", "0.5915814", "0.5915814", "0.5915814", "0.5915814", "0.59008574", "0.58985764", "0.58460623", "0.5828185", "0.5798571", "0.57977235", "0.57804203", "0.576021", "0.576021", "0.57512045", "0.57512045", "0.5742421", "0.5719865", "0.5711514", "0.57004124", "0.5698146", "0.567841", "0.566121", "0.5641129", "0.5625022", "0.56234246", "0.5619127", "0.5615884", "0.55999345", "0.55970705", "0.5596935", "0.5578552", "0.5578552", "0.5578491", "0.55783", "0.557701", "0.557701", "0.557701", "0.557701", "0.557701", "0.557701", "0.55609304", "0.55553085", "0.55553085", "0.55098975", "0.5508302", "0.5495817", "0.54866034", "0.5482693", "0.54701954", "0.54654926", "0.5463867", "0.5463844", "0.5463844", "0.54464185", "0.54420114", "0.5440747", "0.54232895", "0.5414467", "0.5394119", "0.5394119", "0.536349", "0.53521526", "0.53514755", "0.5350994" ]
0.0
-1
The main page of the application
public function getIndex() { if ( Auth::check() ) { if (Auth::user()->role == 'admin') return Redirect::to('admin'); if (Auth::user()->role == 'ta') return Redirect::to('ta'); } $week = array( "Sunday" => array(), "Monday" => array(), "Tuesday" => array(), "Wednesday" => array(), "Thursday" => array(), "Friday" => array(), "Saturday" => array() ); $days = array( "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday" ); $start = Settings::get("availability_start_hour")->value; $start = Time::ToNumber($start); $time['start'] = $start; $end = Settings::get("availability_end_hour")->value; $end = Time::ToNumber($end); $time['end'] = $end; $week_start = time() - (date('w') * 24 * 60 * 60); $week_start = date('Y-m-d', $week_start); $week_end = strtotime($week_start) + (6 * 24 * 60 * 60); $week_end = date('Y-m-d', $week_end); $shifts = Shift::between($week_start,$week_end); $assigned = array(); foreach ($shifts as $shift) { for ($i=$shift->start; $i < $shift->end; $i+=50){ $ta = $shift->TA(); if (isset($ta)) { $day = date('l', strtotime($shift->date)); $assigned[$day][$i][] = $ta->name; } } } $courses = Course::all(); return View::make('main') ->with('courses',$courses) ->with('days', $days) ->with('week', $week) ->with('assigned',$assigned) ->with('time', $time); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function main() {\n $this->ControllerView->mainpage();\n }", "public function index()\n {\n $this->main();\n }", "public function index()\n {\n $this->main();\n }", "public function indexAction()\n {\n $this->page = Brightfame_Builder::loadPage(null, 'initialize.xml');\n \n // load the data\n Brightfame_Builder::loadPage(null, 'load_data.xml', $this->page);\n\n // load the view\n Brightfame_Builder::loadPage(null, 'load_view.xml', $this->page, $this->view);\n \n // render the page\n $this->view->page = $this->page;\n $this->view->layout()->page = $this->page->getParam('xhtml');\n }", "public function main()\n {\n // check if user logged if not redirect to login page.\n if(Session::logged() == NULL){\n header(\"location: /\" . ROOT . 'login');\n }\n // if logged only administrator with role owner or manager have access to administration page.\n else if(Session::logged()['role'] == 'manager' || Session::logged()['role'] == 'owner'){\n // creating administration page.\n\n $data = NULL;\n $p = new Page(\"Administration Page\");\n $p->setComponent(\"htmlAdministrator.php\", $data);\n $p->addCss(\"administrator.css\");\n $p->addJs('administrator.js');\n $p->dumpView();\n }\n // not owner or manager trying access to administrator page, redirect to school page.\n else{\n header(\"location: /\" . ROOT . 'school');\n }\n }", "function main()\n\t{\n\t\t//Accedemos al metodo del controlador que nos trae la consulta\n\t\t$fecha = $this->Model->metodo(1);\n\n\t\t$hello \t= \"Hello World!\";\n\n\t\t//Metodo que renderiza la vista\n\t\t$this->view('index/main', compact('hello','fecha'));\n\t}", "public function home()\n {\n $this->privateAccess(true);\n //Set content type as html page\n $this->contentType(\n 'html',\n 'Management Proof',\n [\n $this->_assets_path . 'js/Core/datatables.min.js',\n $this->_assets_path . 'js/Apps/ManagementResults/home.js'\n ], [\n $this->_assets_path . 'css/Core/datatables.min.css'\n ]\n );\n\n //add management subject view\n include 'Apps/ManagementResults/view/home.php';\n\n }", "public function index()\n {\n $this->layout\n ->add('../students/home/index')\n ->launch();\n }", "function index() {\r\n $this->page();\r\n }", "public function index() {\n\n // workflow:\n // load and check whether logged.\n // if logged in: load the console page (need special header?)\n // else load the login page (need separate login page)\n\n\t\tif ($this->_isAuthenticated()) {\n\n \t\t// load the console views\n $this->console();\n\n\t\t} else {\n\n // load the login view\n $this->login();\n\n }\n\n\t}", "public function index() {\n\t\t$this->title = 'Home';\n\t\t$this->pageData['pages'] = Page::getAll();\n\t\t$this->render('index');\n\t}", "public function home()\n\t{\n\t\t$this->sidebar_template = 'news';\n\t\t$this->news = R::dispense('news', 5);\n\t\t$this->render();\n\t}", "private function indexAction()\n {\n $page = isset($_GET['page']) ? substr($_GET['page'],0,-1) : \"home\" ;\n $this->reg->pages->getPageContent(strtolower($page));\n }", "function __handler()\n {\n $this->view('index')->title('Main page');\n }", "public function index() {\n\n\t\t\t$controller = $this->nav->getPageController();\n\t\t\tif(isset($controller) && is_object($controller)) {\n\t\t\t\tassert($controller instanceof \\Toeswade\\IController);\n\n\t\t\t\t$action = $this->nav->getPageAction();\n\t\t\t\t$params = $this->nav->getParams();\n\t\t\t\t\n\t\t\t\tif(isset($action)) {\n\t\t\t\t\t$view = $controller->$action($params);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t$view = $controller->index();\n\t\t\t\t}\n\n\t\t\t\tassert($view instanceof \\Toeswade\\IView);\n\t\t\t\t$main = $view->getHTML();\n\t\t\t\t$title = $view->getTitle();\n\n\t\t\t}\n\n\t\t\telse {\n\t\t\t\t$main = 'default';\n\t\t\t\t$title = $main;\n\t\t\t}\n\t\t\t$this->view->setTitle($title);\n\t\t\t$this->view->setMain($main);\n\t\t\t$this->view->setNav($this->nav->getMainNavigation());\n\n\t\t\t$this->view->render();\n\t\t}", "public function index() {\n\t\t// render the view (/view/main/index.php)\n\t\t$this->view->render(\"main\", \"index\");\n\t}", "public function run()\n {\n $index = App\\Page::create([\n \t'name' => 'Home page',\n\t\t\t'name_short' => 'home',\n\t\t\t'background' => '/img/index.jpg',\n\t\t\t'slide_color' => '#d8a5c4'\n\t\t]);\n\n\t\t$about = App\\Page::create([\n\t\t\t'name' => 'About me',\n\t\t\t'name_short' => 'about',\n\t\t\t'background' => '/img/about.jpg',\n\t\t\t'slide_color' => '#1de9b6'\n\t\t]);\n\n\t\t$books = App\\Page::create([\n\t\t\t'name' => 'Books',\n\t\t\t'name_short' => 'books',\n\t\t\t'background' => '/img/books.jpg',\n\t\t\t'slide_color' => '#ffa726'\n\t\t]);\n\n\t\t$links = App\\Page::create([\n\t\t\t'name' => 'Links',\n\t\t\t'name_short' => 'links',\n\t\t\t'background' => '/img/links.jpg',\n\t\t\t'slide_color' => '#ba68c8'\n\t\t]);\n\n\t\t$contact = App\\Page::create([\n\t\t\t'name' => 'Contact me',\n\t\t\t'name_short' => 'contact',\n\t\t\t'background' => '/img/contact.jpg',\n\t\t\t'slide_color' => '#ec407a'\n\t\t]);\n\n\n }", "public function index()\n {\n \t$this->setTitle($this->app['config']['title']);\n\n $this->useComponent('Header');\n $this->useComponent('Top');\n $this->useComponent('Sidebar');\n $this->useComponent('Footer');\n\n }", "public function index()\n {\n // load function main\n $this->main();\n }", "public function index()\n {\n// $pageData = $this->_pageService->getPage(PageConstant::HOME_PAGE);\n return $this->renderView($this->getView('home.welcome'), [], 'Home');\n }", "public function index()\n\t{\n\t\tif ( $this->auth->check() )\n\t\t{\t\t\n\t\t\t// MUESTRA LA PAGINA\n\t\t\t$this->show_page();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tredirect ( $this->_base_url );\n\t\t}\n\t}", "public function index(){\t\n\t\t// var_dump('vchxhh');\n\n\t\t$page_model = new \\Models\\Page;\n\t\t$page_model->cmsPage();\n\t\t$this->data['page_title'] = \\Models\\Page::$pageName;\n\n\t\t$this->data['pagename'] = \\Models\\Page::$pageName;\n\t\t$this->data['subname'] = \\Models\\Page::$subName;\n\t\t$this->data['pagedetails'] = \\Models\\Page::$pagedetails;\n\n\t\tswitch (\\Models\\Page::$controller) {\n\t\t\tcase 'contact-us':\n\t\t\t\tUrl::redirect('page/contact');\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tdefault:\n\t\t\t\t# code...\n\t\t\t\tbreak;\n\t\t}\n\n\t\tView::renderTemplate('header',$this->data);\n\t\tView::render('page/page.index',$this->data);\n\t\tView::renderTemplate('footer',$this->data);\n\t}", "public function index() \n\t{\n\t\t$this->_render_hod_view('home');\n\t}", "public function indexAction()\n\t{\n\t\t$this->loadLayout();\n\t\t$this->renderLayout();\n\t\t\n\t}", "public function admin_page() {\n echo $this->generateView('main', []);\n }", "public function index(){\n\t\t$data['mainContent'] = 'landingPage/index';\n\t\t$this->landingPageRenderer('landingPage/index', $data);\n\t}", "function index(){\n\n global $wear;\n $template = $this->loadView($wear->front . \"/index\");\n $template->set(\"page\" , SITE_NAME . \" | Home\");\n $template->render(); \n\n }", "public function index() {\n\t\t\n\t\tif($this->secureCheck()){\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t\n\t\t$navBar = $this->navBar();\n\n\t\t$this->generateView ( array (\n\t\t\t\t'navBar' => $navBar\n\t\t) );\n\t}", "public function index()\n\t{\n\t\t$this->layout->render();\n\t}", "public function mainPage()\n {\n return view('welcome');\n }", "public function index() {\n\n\t\t$data['content'] = 'Homepage';\n\t\t$this->flexi->title('Homepage')\n\t\t\t\t\t->make('home', $data);\n\n\t}", "public static function index()\n {\n self::create_view(\"home.view\", [\n \"user\" => Session::retrieve_object(\"user\")\n ]);\n\n exit;\n }", "public function home() {\n require_once($_SERVER['DOCUMENT_ROOT'] . '/../PHPIncludes/pageLinkScriptsCSS.php');\n\n //Make an object of the pageLinkScriptsCSS class for storing the CSS requirements for the header:\n $pageRequirements = new pageLinkScriptsCSS();\n \n $pageRequirements->add(\"css\", ['DashStyles.css','animate.min.css']);\n\n $pageRequirements->add(\"title\", 'DashBorad');\n\n $pageRequirements->add(\"js\", ['assets/JS/dashHome.js']);\n\n\n\n callStructural('header','stdBS2',$pageRequirements);\n\n require_once('views/dash/home.php');\n\n //Render the page footer:\n callStructural(\"footer\", 'stdBS2', $pageRequirements); \n\n\n }", "public function index() {\n $this->html->displayHeaderAndFooter(true);\n $this->load_content();\n }", "public function index() {\n $this->getView('navigation', array('pagename' => 'Welcome'));\n $this->getView('welcome');\n $this->getView('footer');\n }", "public function makePage()\n {\n $db = new DB();\n $page_color = !empty($db->getOptions('page_color')) ? 'style=\"background-color:' . $db->getOptions('page_color') . ';\"' : '';\n $footer_color = !empty($db->getOptions('footer_color')) ? 'style=\"background-color:' . $db->getOptions('footer_color') . ';\"' : '';\n echo '<!DOCTYPE html>\n<html lang=\"en\">\n<head>';\n\n $this->makeMeta();\n $this->setTitle();\n $this->makeStyles();\n $this->makeHeaderScripts();\n echo '<!-- header code -->' . PHP_EOL;\n if (!empty($this->getHeaderCode())) {\n echo $this->getHeaderCode() . PHP_EOL;\n }\n echo '<!-- header code -->' . PHP_EOL;\n echo '</head>\n\n\t\t<body class=\"' . $this->getbodyClass() . '\" ' . $page_color . '>';\n\n echo '<div class=\"main-wrapper\" >';\n if ($this->hasHeader) {\n echo '<header class=\"header\" >';\n if ($this->hasNavbar) {\n require_once 'Navbar.php';\n }\n echo '</header>';\n }\n\n\n//--main content---\n if ($this->hasBreadcrumb) {\n $routes = explode(\"/\", $_SERVER['REQUEST_URI']);\n echo '\n<div class=\"breadcrumb-bar d-print-none\" ' . $footer_color . '>\n\t\t\t\t<div class=\"container-fluid\">\n\t\t\t\t\t<div class=\"row align-items-center\">\n\t\t\t\t\t\t<div class=\"col-md-12 col-12\">\n\t\t\t\t\t\t\t<nav aria-label=\"breadcrumb\" class=\"page-breadcrumb\">\n\t\t\t\t\t\t\t\t<ol class=\"breadcrumb\">\n\t\t\t\t\t\t\t\t\t<li class=\"breadcrumb-item\"><a href=\"' . BASE_PATH . $routes[1] . '/\"><i class=\"bx bx-home-alt\"></i></a></li>';\n\n for ($i = 1; $i < count($routes) - 1; $i++) {\n if ($i != count($routes) - 1) {\n echo '<li class=\"breadcrumb-item\"><a href=\"' . BASE_PATH . $routes[1] . '/' . $routes[$i] . '/\">' . $routes[$i] . '</a></li>';\n } else {\n echo '<li class=\"breadcrumb-item active\">' . $routes[$i] . '</li>';\n }\n }\n echo '\n\t\t\t\t\t\t\t\t</ol>\n\t\t\t\t\t\t\t</nav>\n\t\t\t\t\t\t\t<h2 class=\"breadcrumb-title\">' . $this->getPageTitle() . '</h2>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>';\n }\n echo '<div class=\"content\">';\n echo '<div class=\"container-fluid\">';\n if ($this->isHasContent()) {\n $this->addPageContent($this->getPageContent());\n }\n\n echo '</div></div>';\n\n echo '<!-- above footer code -->' . PHP_EOL;\n\n /*--footer---*/\n if ($this->hasFooter) {\n require_once 'footer.php';\n }\n echo '</div>';\n $this->makeScripts();\n $this->makeFooterScripts();\n if ($this->ishasError()) {\n $this->showPageError();\n }\n\n echo '<!-- footer code -->' . PHP_EOL;\n if (!empty($this->getFooterCode())) {\n echo $this->getFooterCode() . PHP_EOL;\n }\n echo '<!-- footer code -->' . PHP_EOL;\n echo '</body>\n</html>';\n }", "public function index()\n {\n $main = Main::first();\n return view('pages.main',compact('main'));\n }", "public function frontpage() {\n\t\t\n\t\t$this->set('page_title', 'Welcome'); // this is hardcoded for index page\n\t\t$this->render('index');\n\t}", "public function Home()\n {\n $this->template->set('global_setting', $this->global_setting);\n $this->template->set('page', 'home');\n $this->template->set_theme('default_theme');\n $this->template->set_layout('frontend')\n ->title($this->global_setting['site_title'] . ' | Home')\n ->set_partial('header', 'partials/header')\n ->set_partial('footer', 'partials/footer');\n $this->template->build('frontpages/homepage');\n }", "public function index() {\n\t\t$this->landing();\n\t}", "public function page () {\n\t\tinclude _APP_ . '/views/pages/' . $this->_reg->controller . '/' . $this->_page . '.phtml';\n\t}", "public function mainAction(){\n \n $site = new model\\siteModel();\n $site->set_headerTitle(\"Levi DeHaan\");\n \n $site->set_menu(array(\"Home\"=>\"#/home\", \"Projects\"=>\"#/projects\"));\n $site->set_leftTitle(\"Programmer/Sys Admin\");\n $site->set_leftBody(\"Self taught, motivated, leader of silent ninja code assasins and cats.\");\n $site->set_rightTitle(\"Ninjas and Dragons\");\n $site->set_rightBody(\"The Awesome Starts Here\");\n $site->set_body(\"There are words here\");\n $site->set_footer(\"Levi DeHaan\");\n \n \n $this->headerTitle = $site->get_headerTitle();\n $this->menu = $site->get_menu();\n $this->leftTitle = $site->get_leftTitle();\n $this->leftBody = $site->get_leftBody();\n $this->rightTitle = $site->get_rightTitle();\n $this->rightBody = $site->get_rightBody();\n $this->body = $site->get_body();\n $this->footer = $site->get_footer();\n }", "public function index () {\n\n return $this->app->render('home.tpl.php');\n \n }", "public function Main() {\n $DB = DB::getInstance();\n $this->setConf($DB->getConfig());\n $this->setTitle($this->getConf()['title']);\n }", "public function displayPage()\n\t{\n\t\t$this->assign('rightMenu', $this->rightMenu);\n\t\t$this->assign('content', $this->content);\n\t\t$this->display(\"main.tpl\");\n\t}", "public function index()\n {\n $this->render('home/home');\n }", "public static function main_page()\n\t{\n\n\t\tmz_Func::user_has_access();\n\n\t\techo '<div class=\"wrap\">';\n\t\techo '<div id=\"icon-edit-comments\" class=\"icon32\"></div>';\n\n\t\techo '<h2>Mentorz</h2>';\n\n\t\techo '<h3>Welcome to the Mentorz plugin</h3>';\n\t\techo '\n\t\t\t<p>\n\t\t\tIn this plugin you can manage groups and assign mentors ans students to each group.\n\t\t\t</p>';\n\n\t\techo '<h4>Users</h4>\n\t\t\t<p>\n\t\t\tTo add users simply add them to WordPress in the usual manner.<br/>\n\t\t\tEach user must be assigned a \"role\", you will find that there are two new role called \"Mentor\" and \"Student\".<br/>\n\t\t\tEnsure that users have the correct role.\n\t\t\t</p>\n\n\t\t\t<h4>Groups</h4>\n\t\t\t<p>\n\t\t\tIn the \"Groups Administration page you can add edit and delete groups.\"\n\t\t\t</p>\n\n\t\t\t<h4>Assigning mentors and users</h4>\n\t\t\t<p>\n\t\t\t\tIn the \"Users Administration\" page you can add mentors and users to the proper group.\n\t\t\t\tEach mentor group should have a mentor and students assigned to it.<br/>\n\t\t\t</p>\n\t\t\t';\n\n\t\techo '<h2>Plugin Version</h2>';\n\t\techo '<p>The current plugin version is <strong>'.VERSION.'</strong></p>';\n\n\t\techo '<p>'.VERSION_LOG.'</p>';\n\n\n\n\n\t\techo '</div>';\n\n\t}", "public function index( ) {\n $this->carregarDepencias();\n $this->addClasseBody('page-header-fixed page-quick-sidebar-over-content');\n\n\t\t$this->tpl = $this->CarregarTemplate( 'index.tpl.php' );\n\n\t\t$this->tpl->Renderizar();\n\n\t}", "public function index()\n {\n $pages = Posts::where('type', '=', 'page')->get();\n $this->layout->title = 'Page - NCCMS';\n $this->layout->with('script', 'nccms::admin.pages.scripts.index')\n ->with('style', 'nccms::admin.pages.styles.index');\n $this->layout->content = \\View::make('nccms::admin.pages.index')\n ->with('pages', $pages)\n ->with('title', 'Page');\n }", "public function home()\n\t{\n\n\t\tView::show(\"home.php\", \"Accueil Mon MVC !\");\n\t}", "public function run()\n {\n StaticPage::create([\n \"label\" => StaticPageLabels::TERMS,\n 'en' => ['title' => 'Terms & Conditions', \"content\" => \"Content of the page is right here.\"],\n 'ar' => ['title' => 'الشروط والأحكام', \"content\" => \"محتوى صفحة الشروط هنا بالظبط.\"],\n ]);\n\n StaticPage::create([\n \"label\" => StaticPageLabels::PRIVACY,\n 'en' => ['title' => 'Privacy Policy', \"content\" => \"Content of the page is right here.\"],\n 'ar' => ['title' => 'سياسة الخصوصية', \"content\" => \"محتوى صفحة الخصوصية هنا بالظبط.\"],\n ]);\n\n }", "public function main()\n {\n return view('landing.main');\n }", "public function homePage()\n {\n return $this->render(\"homePage.html.twig\");\n }", "public static function view() \n {\n $articleDAO = new ArticleDAO();\n $articles = $articleDAO->load();\n\n $dispatch = new Dispatch();\n $dispatch->render(\n 'main_page', [\n 'articles' => $articles\n ]\n );\n }", "public function mainpage()\n {\n return view('admin.adminmainpage');\n }", "function showPage() \n\t{\n\t\t$this->xt->display($this->templatefile);\n\t}", "public static function showHomePage()\n {\n $vd = new ViewDescriptor();\n $vd->setTitolo(\"SardiniaInFood: Profilo\");\n $vd->setLogoFile(\"../view/in/logo.php\");\n $vd->setMenuFile(\"../view/in/menu_home_azienda.php\");\n $vd->setContentFile(\"../view/in/azienda/home_page_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 index() {\r\n\r\n\t\t$this->event->add(BOARD_LOAD);\r\n\t\t$this->constructMeasurePage();\r\n\t}", "public function showHomePage()\n\t{\n\t\t# call the API\n\t\tif($accessKey = getAccessKey()) {\n\t\t\t$headers = ['accessKey' => $accessKey];\n\t\t}\n\t\telse {\n\t\t\t$headers = [];\n\t\t}\n\n\t\t$response = App::make(\"ApiClient\")->get(\"home\", [], $headers);\n\n\t\t# if we got some data back successfully then do something with it\n\t\tif($response['success'])\n\t\t{\n\t\t\t# short cut the data response\n\t\t\t$data = $response['success']['data'];\n\n\t\t\t# if we don't have the nav stored in the session then store it\n\t\t\tif (! Session::has('nav') ) {\n\t\t\t Session::put('nav', $data['channels']);\n\t\t\t}\n\n\t\t\t# set the browser page title\n\t\t\t$data['pageTitle'] = \"Bristol news, what's on, food and drink, lifestyle\";\n\n\t\t\t# set the pages meta description value\n\t\t\t$data['metaDescription'] = \"Bristol news, comprehensive what's on listings, reviews and special offers online, on mobile, in print - check out our FREE app and monthly magazine\";\n\n\t\t\t# make the view\n\t\t\treturn View::make('home.index', $data);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// do something here!!!\n\t\t}\n\t}", "public function index() {\n\t\t\t$this->render();\n\t\t}", "public function index() {\r\n\t\t$this->show_login_page();\r\n\t}", "public function indexAction() {\r\n\r\n $this->loadLayout();\r\n $this->renderLayout();\r\n }", "public function index()\n\n {\n $main = Main::first();\n return view('pages.main',compact('main'));\n }", "public function home(){\n $itemsHome = $this->itemsModel->listenerItems(); // Recupération des items de ma bdd ( par default les 8 permier items)\n include(\"home.php\"); // Chargement de la view (page home.php)\n }", "public function page() {\n\t\t$this->page = $this->plugin->factory->adminPage;\n\t\t$this->page->show();\n\t}", "function invokeDefaultPage() {\r\n require(\"controllers/IndexController.php\");\r\n $controller = new IndexController();\r\n $controller->index();\r\n }", "public function mainWindowAction(){\n\t\tView::renderTemplate('MenuGlowne/mainWindow.html');\n\t}", "public function index()\n\t{\t\n $page = 'rka/main';\n if ( ! file_exists(APPPATH.'views/pages/'.$page.'.php'))\n {\n // Whoops, we don't have a page for that!\n show_404();\n }\n\n $data['title'] = \"Rencana Kerja Anggaran | MPO 2017\"; // Capitalize the first letter\n\n $this->load->view('templates/header', $data);\n $this->load->view('pages/'.$page, $data);\n $this->load->view('templates/footer', $data);\n\t}", "public function index_action() {\n \\TPL::output('/pl/be/sns/wx/main');\n exit;\n }", "public function start()\n {\n $model = new NewModel();\n $listeNews = $model->getNews();\n\n $this->view->home($listeNews);\n }", "public function main()\n\t{\n\t\treturn View::make('aircraft/main')\n\t\t->with('PageName','Aircraft')\n\t\t->with('active','aircraft')\n\t\t->with('personnel', parent::getPersonnelInfo())\n\t\t->with('dates',parent::dates())\n\t\t->with('months',parent::months())\n\t\t->with('years',parent::years())\n\t\t;\n\t}", "public function index()\r\n {\r\n View::render('home');\r\n }", "public function indexAction()\n {\n $this->loadLayout();\n $this->renderLayout();\n }", "public function mainAction() {\n\t\t$this->setView('include/timer-form.php');\n\t\t$this->view();\n\t}", "public function actionIndex()\n\t{\n\t $this->pageTitle = 'Get Started';\n\t\t$this->render('index');\n\t}", "public function home()\r\n {\r\n\r\n $view = new Template();\r\n echo $view->render('views/home.html');\r\n }", "public function Index() {\n $content = new CMContent();\n $this->views->SetTitle('Page')\n ->AddInclude(__DIR__ . '/index.tpl.php', array(\n 'content' => null,\n ));\n }", "public function home()\n {\n $params = [\n 'name' => 'xEiBi'\n ];\n\n return $this->render('home', $params);\n }", "public function index()\n \t{\n \t\t// load the header\n \t\t$this->displayHeader();\n\n \t\t// load the view\n \t\t$this->displayView(\"chat/index.php\");\n\n \t\t// load the footer\n \t\t$this->displayFooter();\n \t}", "function index(){\n\t\t$data['page_name'] = 'An example of bitrix24 cloud application on REST api';\n\t\t$user_name = $this->model->get_current_user_name();\n\t\tif($user_name){\n\t\t\t$data['user_name'] = $user_name;\n\t\t}\n\t\t$this->html = $this->model->load_view('example', $data);\n\t\t$this->output();\n\t}", "public function indexAction(){\n\t\t$this->loadLayout();\n $this->renderLayout();\r\n\t}", "public function main()\n {\n return view('layouts.master');\n\n }", "public function indexAction() {\n\t\t$this->_initAction()\n\t\t\t->renderLayout();\n\t}", "function controller()\n\t\t{\t\n\t\t\t$this->admin_page_header();\n\t\t\t$this->admin_menu();\n\t\t}", "public function index()\n {\n $this->request->getSession()->write('DialogTitle', 'Yeah Man!!');\n\n // Set the layout\n $this->viewBuilder()->setLayout('empty');\n\n $this->set('csrfToken', $this->request->getAttribute('csrfToken'));\n\n $this->set('jaxonCss', $this->Jaxon->css());\n $this->set('jaxonJs', $this->Jaxon->js());\n $this->set('jaxonScript', $this->Jaxon->script());\n $this->set('pageTitle', \"Cake Framework\");\n $this->set('menuEntries', []);\n $this->set('menuSubdir', '');\n // Jaxon request to the Jaxon\\App\\Test\\Bts controller\n $this->set('bts', $this->Jaxon->request(\\Jaxon\\App\\Test\\Bts::class));\n // Jaxon request to the Jaxon\\App\\Test\\Pgw controller\n $this->set('pgw', $this->Jaxon->request(\\Jaxon\\App\\Test\\Pgw::class));\n $this->render('demo');\n }", "public function index() {\n\t\t$this->display('index');\n\t}", "public function index() {\n\n\t\tif(!empty($_GET['page'])) {\n\t\t\tif($_GET['page'] == 'home') {\n\t\t\t\t(new HomeController)->home();\n\t\t\t} elseif($_GET['page'] == 'about-me') {\n\t\t\t\t(new HomeController)->aboutMe();\n\t\t\t}\n\t\t} else {\n\t\t\t(new HomeController)->home();\n\t\t}\n\t}", "public function home() {\n require_once($_SERVER['DOCUMENT_ROOT'] . '../PHPIncludes/pageLinkScriptsCSS.php');\n\n //Make an object of the pageLinkScriptsCSS class for storing the CSS requirements for the header:\n $pageRequirements = new pageLinkScriptsCSS();\n\n $pageRequirements->add(\"css\", ['screen.css', 'Animate.css']);\n\n $pageRequirements->add(\"title\", 'Skater Wave');\n\n $pageRequirements->add(\"js\", ['assets/JS/js.js' ]);\n\n\n\n callStructural('header','std',$pageRequirements);\n\n\n require_once('models/Devices.php');\n\n require_once('views/pages/home.php');\n\n //Render the page footer:\n callStructural(\"footer\", 'std', $pageRequirements); \n\n\n }", "public function run()\n {\n $langs = LaravelLocalization::getSupportedLocales();\n $this->seedPage('terms-of-use', $langs);\n $this->seedPage('privacy-policy', $langs);\n $this->seedPage('about-us', $langs);\n }", "public function index(){\n \n $this->display();\n }", "function run() {\n\t\t$view = new View();\n\t\t\n\t\t$students = new Student();\n\t\tif ($view->students_tbl = $students->get_students_as_tbl_arr() ) {\n\t\t\t$view->error = $students->get_error();\n\t\t}\n\n\t\t$view->student_desc = $students->get_student_desc();\n\t\t$view->render('main_page.php');\n\t}", "public function Index() {\n $this->Display();\n }", "public function index()\n {\n if (session()->get('logged_in')) {\n \techo render(HOME_PAGE, ['title' => 'Accueil']);\n }\n // Otherwise, the login page is displayed\n else $this->login();\n }", "public static function Index(){\n Output::SetNamespace(\"helloworld\");\n Output::UseSmarty();\n Output::SetTemplate(Storage::Join(\"app.helloworld.shell.tpl\", \"index.tpl\"));\n Output::AppendCSS(Storage::Join(\"app.helloworld.shell.css\", \"index.css\"));\n Output::Send();\n }", "public function show() {\n $this->buildPage();\n echo $this->_page;\n }", "public function index(){\r\n\r\n\t\t$this->masterpage->setMasterPage(get_option('template') );\r\n\r\n\t\t$data = array('logs'=> $this->logs_m->get_last_logs(100) );\r\n\r\n\t\t$this->masterpage->addContentPage('logs', 'contentmain', $data);\r\n\r\n\t\t$this->masterpage->show( );\r\n\t}", "public function index()\n\t{\n\t\t$data['title'] = 'Home | Welcome to AEY';\n\t\t$data ['view_page'] = 'homepage';\n\n\t\t$this->load->view('site', $data);\n\t}", "public function index()\r\n {\r\n\r\n $template_file = DX_ROOT_DIR . $this->views_dir . 'index.php';\r\n\r\n // include_once DX_ROOT_DIR . '/views/layouts/' . $this->layout;\r\n }", "public function homePage() {\n #$this->view->loadTemplate( 'elements_example');\n $this->view->loadTemplate( LNG . '/centercontent');\n $this->commitReplace($this->view->render(), '#two', true);\n }", "public function index() {\n //echo file_get_contents(APP_PATH .\"/views/home/index.html\");\n }", "public function index() {\n\t $this->registry->template->show();\n\t}" ]
[ "0.81841516", "0.754258", "0.754258", "0.7378258", "0.73177636", "0.7262651", "0.7215388", "0.7197055", "0.7191496", "0.7174493", "0.7174124", "0.7144659", "0.71308595", "0.7116802", "0.71128356", "0.7108816", "0.70974815", "0.7088454", "0.7087165", "0.7073601", "0.70682585", "0.7048323", "0.7043162", "0.7017893", "0.70172197", "0.6995869", "0.6982578", "0.6979656", "0.6974158", "0.6969874", "0.6965155", "0.69580233", "0.6941577", "0.6933172", "0.6933156", "0.69302535", "0.69254464", "0.6924349", "0.6923653", "0.6920971", "0.6907843", "0.6906009", "0.68875444", "0.68756366", "0.6872638", "0.6858209", "0.68542385", "0.68506604", "0.68484765", "0.6842468", "0.68398815", "0.683603", "0.68326604", "0.6832085", "0.6829831", "0.67979556", "0.67966443", "0.67952317", "0.679507", "0.67923987", "0.67859787", "0.6783805", "0.67819417", "0.67770797", "0.6770071", "0.67694193", "0.67654127", "0.6762689", "0.6762172", "0.676182", "0.6756732", "0.6748579", "0.6748045", "0.6743912", "0.6742201", "0.672653", "0.6724243", "0.6721082", "0.671841", "0.6716627", "0.6710906", "0.6707091", "0.6701109", "0.669566", "0.66922694", "0.668883", "0.6686032", "0.6682752", "0.6682572", "0.6681778", "0.6679722", "0.6679704", "0.6679652", "0.6671774", "0.6669609", "0.6666073", "0.66592765", "0.66567934", "0.6656588", "0.6656371", "0.6651288" ]
0.0
-1
Fields to be shown on lists
protected function configureListFields(ListMapper $listMapper) { $listMapper ->addIdentifier('code') ->add('name') ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function makeFieldList() {}", "public function getListFields();", "protected function getFieldsFromShowItem() {}", "public function getFieldsList(){\n return $this->_get(1);\n }", "function get_field_list()\r\n\t{\r\n\t\t$fields = array();\r\n\r\n\t\tif (Authority::can('edit', 'admin/item/definition'))\r\n\t\t{\r\n\t\t\t$id_definition = $this->input->post('id_item_definition');\r\n\r\n\t\t\t$fields = $this->extend_field_model->get_lang_list(\r\n\t\t\t\tarray(\r\n\t\t\t\t\t'parent' => 'item',\r\n\t\t\t\t\t'id_parent' => $id_definition\r\n\t\t\t\t),\r\n\t\t\t\tSettings::get_lang('default')\r\n\t\t\t);\r\n\r\n\t\t\t// Set type names\r\n\t\t\tforeach($fields as &$field)\r\n\t\t\t{\r\n\t\t\t\t$field['type_name'] = self::$_TYPE_NAMES[$field['type']];\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t//\r\n\t\t$this->template['id_item_definition'] = $id_definition;\r\n\t\t$this->template['fields'] = $fields;\r\n\r\n\t\t$this->output('item/definition/fields');\r\n\t}", "public function listFields()\n\t{\n\t\treturn array('id' => 'ID', 'title' => 'Title', 'estimated' => 'Estimated', 'status' => 'Status', 'getPercentageComplete' => 'Percentage Complete');\n\t}", "abstract function buildShowFields(): void;", "function get_field_list()\n\t{\n\t\t$fields = array();\n\n\n\t\t$this->xhr_output($fields);\n\t}", "public function fields();", "public function fields();", "public function fields();", "public function fields();", "public function fields();", "function fill_in_additional_list_fields()\r\n\t{\r\n\t}", "public function buildFields()\n {\n $this->addField('name', 'kuma_menu.menu.adminlist.field.name', true);\n }", "public function getFrontendFields();", "public function actionFieldList($id){\n\n $fields= Yii::app()->db->createCommand()\n //->select('*')\n ->select('field_name,field_length,field_type,field_input_type,is_unique,is_required,default_value')\n ->from('cyl_fields')\n ->where('table_id = '.$id)\n ->queryRow();\n\n $field_values = Yii::app()->db->createCommand()\n //->select('field_id,field_name,field_length,field_type,field_input_type,is_unique,is_required,incremental_start,default_value')\n ->select('*')\n ->from('cyl_fields')\n ->where('table_id = '.$id)\n ->queryAll();\n\n foreach ($fields as $key => $field){\n $field_title[] = $key;\n }\n $this->renderPartial('field-list',array('fields'=>$field_title,'fields_value' => $field_values,'id'=>$id));\n }", "function getFields();", "public function buildShowFields()\n {\n $this->addField(\n SharpShowTextField::make('id')\n ->setLabel('Id:')\n )->addField(\n SharpShowTextField::make('name')\n ->setLabel('name:')\n )->addField(\n SharpShowTextField::make('url')\n ->setLabel('url:')\n )->addField(\n SharpShowTextField::make('vendor_id')\n ->setLabel('vendor_id')\n )->addField(\n SharpShowTextField::make('parent_id')\n ->setLabel('parent_id')\n )->addField(\n SharpShowTextField::make('created_at')\n ->setLabel('Created At:')\n )->addField(\n SharpShowTextField::make('updated_at')\n ->setLabel('Updated At:')\n )->addField(\n SharpShowEntityListField::make('products', 'product')\n ->hideFilterWithValue('category', function($instanceId) {\n return $instanceId;\n })\n ->showEntityState(false)\n ->showReorderButton(true)\n ->showCreateButton(false)\n );\n }", "private function getAdditionalListFields(){\n $cols = '';\n\n foreach($this->main->dataset['data'] as $item){\n if($item['list'] && strlen($item['name']) > 0 &&\n ($item['name'] != 'name' && $item['name'] != 'sort' && $item['name'] != 'id' && $item['name'] != 'publish')\n ){\n $cols .= ', `'.DB::quote($item['name']).'`';\n };\n };\n\n return $cols;\n }", "public function getFields();", "public function getFields();", "public function getFields();", "public function getFields();", "public function getFields();", "public function getFields();", "function show_list()\n\t{\n\t\t$out = $this->get_value_list();\n\t\treturn $out;\n\t}", "abstract public function showFieldSets();", "public function getFields() {}", "public function getFields() {}", "public function getFields() {}", "function get_fields( ) {\n\t\treturn $this->fields_list;\n\t\t}", "protected function _fields()\n\t{\n\t\treturn array(\n\t\t\t\t'name',\n\t\t\t 'intro', 'sort_order',\n\t\t\t 'status', 'feature',\n\t\t);\n\t}", "public function getFieldList()\n {\n $sObjectName = $this->getShopObjectName();\n\n if ($sObjectName) {\n $oShopObject = oxNew($sObjectName);\n } else {\n $oShopObject = oxNew('oxbase');\n $oShopObject->init($this->getTableName());\n }\n\n if ($oShopObject instanceof oxI18n) {\n $oShopObject->setLanguage(0);\n $oShopObject->setEnableMultilang(false);\n }\n\n $sViewName = $oShopObject->getViewName();\n $sFields = str_ireplace('`' . $sViewName . \"`.\", \"\", strtoupper($oShopObject->getSelectFields()));\n $sFields = str_ireplace(array(\" \", \"`\"), array(\"\", \"\"), $sFields);\n $this->_aFieldList = explode(\",\", $sFields);\n\n return $this->_aFieldList;\n }", "function GetFieldsList()\n\t{\n\t\tglobal $dal_info;\n\t\treturn array_keys( $dal_info[ $this->infoKey ] );\n\t}", "public function buildFields()\n {\n $this->addField('name', 'media.adminlist.configurator.name', true);\n $this->addField('contentType', 'media.adminlist.configurator.type', true);\n $this->addField('updatedAt', 'media.adminlist.configurator.date', true);\n $this->addField('filesize', 'media.adminlist.configurator.filesize', true);\n }", "public function listRegisterFields(){\n\t\t$this->registerFieldString('name_hld', 'Tipo');\n\t}", "static public function getFieldsList () {\n return self::_getInstance()->_fieldsList;\n }", "function listPage_tableField(){\n $this->data_view['tableField'] = array(\n array('name'=>'id','title'=>'Mã'),\n array('name'=>'image','title'=>'Hình','type'=>'image','linkDetail'=>true),\n array('name'=>'title','title'=>'Tên','linkDetail'=>true),\n array('name'=>'c_title','title'=>'Loại'),\n array('name'=>'price','title'=>'Giá','type'=>'number'),\n array('name'=>'price_promotion','title'=>'Giá giảm','type'=>'number','hidden'=>true),\n array('name'=>'views','title'=>'Lượt xem','type'=>'number'),\n array('name'=>'is_active','title'=>'Trạng thái','type'=>'status'),\n array('name'=>'is_stock','title'=>'Còn hàng','type'=>'status','hidden'=>true),\n array('name'=>'is_special','title'=>'Nổi bật','type'=>'status','hidden'=>true)\n );\n }", "function getFieldList($field_data = false, $type = 'list', $fs_data = false)\n {\n if ($field_data) {\n $txt = new Text($this->language, $this->translation_module_default);\n $result = array();\n $fs_count = 0;\n $prev_fs = 0;\n foreach ($field_data as $data) {\n switch ($type) {\n case 'grid_column':\n $result[] = array(\n 'header' => $txt->display($data['translation'] ? $data['translation'] : $data['field']),\n 'dataIndex' => $data['field'],\n 'sortable' => $data['sortable'] ? true : false,\n 'hidden' => $data['hidden'] ? true : false\n );\n break;\n case 'filters':\n switch ($data['type']) {\n case 1: // textfield\n $result[] = array(\n 'name' => $data['field'],\n 'field_title' => $txt->display($data['translation'] ? $data['translation'] : $data['field']),\n 'type' => 'textfield'\n );\n break;\n case 2: // combobox\n $result[] = array(\n 'name' => $data['field'],\n 'field_title' => $txt->display($data['translation'] ? $data['translation'] : $data['field']),\n 'type' => 'combobox',\n 'emptyText' => $this->getFieldRelationAllPhrase($data['relation_table']),\n 'ds_fields' => array(\n 'id',\n 'name'\n ),\n 'ds_data' => array(\n 0 => '***ASSOC_ARRAY***',\n 1 => $this->getFieldRelationList($data['relation_table'], true)\n )\n );\n break;\n case 3: // checkbox\n // todo ?\n break; \n case 5: // date\n $result[] = array(\n 'name' => $data['field'],\n 'field_title' => $txt->display($data['translation'] ? $data['translation'] : $data['field']),\n 'type' => 'textfield'\n );\n break;\n default:\n break;\n }\n break;\n case 'detail':\n switch ($data['type']) {\n case 1: // textfield\n $result[$data[\"fieldset_id\"]][] = array(\n 'type' => 'textfield',\n 'name' => $data['field'],\n 'tooltip' => $data['tooltip'],\n 'field_title' => $txt->display($data['translation'] ? $data['translation'] : $data['field'])\n );\n break;\n case 2: // combobox\n $result[$data[\"fieldset_id\"]][] = array(\n 'name' => $data['field'],\n 'tooltip' => $data['tooltip'],\n 'field_title' => $txt->display($data['translation'] ? $data['translation'] : $data['field']),\n 'type' => 'combobox',\n //'emptyText' => $this->getFieldRelationAllPhrase($data['relation_table']),\n 'ds_fields' => array(\n 'id',\n 'name'\n ),\n 'ds_data' => array(\n 0 => '***ASSOC_ARRAY***',\n 1 => $this->getFieldRelationList($data['relation_table'], false)\n )\n );\n break;\n case 3: // checkbox\n $result[$data[\"fieldset_id\"]][] = array(\n 'type' => 'checkbox',\n 'name' => $data['field'],\n 'tooltip' => $data['tooltip'],\n 'field_title' => $txt->display($data['translation'] ? $data['translation'] : $data['field'])\n );\n break;\n case 4: // file\n $result[$data[\"fieldset_id\"]][] = array(\n 'type' => 'pic',\n 'name' => $data['field']\n );\n break;\n case 5: // date\n $result[$data[\"fieldset_id\"]][] = array(\n 'type' => 'datefield',\n 'name' => $data['field'],\n 'tooltip' => $data['tooltip'],\n 'field_title' => $txt->display($data['translation'] ? $data['translation'] : $data['field'])\n );\n break;\n default:\n break;\n }\n break;\n default :\n $result[] = array('name' => $data[\"field\"]);\n break;\n }\n }\n\n if ($type == 'detail' && $fs_data) {\n $t_result = array();\n for ($i = 0; $i < sizeof($fs_data); $i++) {\n for ($j = 0; $j < sizeof($fs_data[$i]); $j++) {\n if (!array_key_exists($fs_data[$i][$j]['fieldset_id'], $result)) {\n $result[$fs_data[$i][$j]['fieldset_id']] = false;\n }\n $t_result[$i][$j] = $result[$fs_data[$i][$j]['fieldset_id']];\n }\n }\n $result = $t_result;\n }\n }\n return JsonEncoder::encode($result);\n }", "public function getCurrentDisplayFields(){\n\t\treturn array(\n\t\t\t'Number'=>'Number',\n\t\t\t'Title'=>'Title',\n\t\t\t'ParentName'=>'Flowchart Page'\n\t\t);\n\t}", "public function indexFields()\n {\n return [\n Text::make('ID')\n ->value($this->model->id),\n\n Link::make('Booking')\n ->value('Booking #' . $this->model->booking_id)\n ->url('bookings/' . $this->model->booking_id),\n\n Link::make('Customer')\n ->value($this->model->customer->name)\n ->url('customers/' . $this->model->customer_id),\n\n Text::make('Amount')\n ->value('$'.$this->model->amount),\n ];\n }", "protected function configureListFields(ListMapper $listMapper)\n {\n \t#Here you specify which fields are shown when all models are listed (the addIdentifier() method means that this field will link to the show/edit page of this particular model).\n $listMapper->addIdentifier('username')\n \t\t\t ->addIdentifier('email')\n \t\t\t ->add('roles')\n \t\t\t ->add('enabled')\n\t\t\t ;\n }", "public static function get_fields()\n {\n }", "public function fields()\n {\n $logisticCompany = LogisticCompany::all()->pluck('name', 'id');\n return [\n Repeater::make(__('Shipment'), 'shipment')\n ->addField([\n 'label' => __('Shipment Num'),\n 'placeholder' => __('Shipment Num'),\n 'name' => 'num',\n ])->addField([\n 'label' => __('Logistics company'),\n 'placeholder' => __('Logistics company'),\n 'name' => 'company',\n 'type' => 'select',\n 'options' => $logisticCompany,\n ])->rules('required'),\n ];\n }", "abstract public function fields();", "public function fields()\n {\n return [\n Text::make('Sur-titre','first'),\n Text::make('Sous-titre','third'),\n Text::make('Titre','second'),\n ];\n }", "public function fields()\n {\n return [ \n ];\n }", "abstract protected function displayList($list);", "public function getAllSearchableFieldsFor($listType) {\n \n }", "public function getCMSFields()\n {\n $commentField = $this->AllowHtml ? HTMLEditorField::class : TextareaField::class;\n $fields = new FieldList(\n $this\n ->obj('Created')\n ->scaffoldFormField($this->fieldLabel('Created'))\n ->performReadonlyTransformation(),\n TextField::create('Name', $this->fieldLabel('Name')),\n $commentField::create('Comment', $this->fieldLabel('Comment')),\n EmailField::create('Email', $this->fieldLabel('Email')),\n TextField::create('URL', $this->fieldLabel('URL')),\n FieldGroup::create(array(\n CheckboxField::create('Moderated', $this->fieldLabel('Moderated')),\n CheckboxField::create('IsSpam', $this->fieldLabel('IsSpam')),\n ))\n ->setTitle(_t(__CLASS__ . '.OPTIONS', 'Options'))\n ->setDescription(_t(\n __CLASS__ . '.OPTION_DESCRIPTION',\n 'Unmoderated and spam comments will not be displayed until approved'\n ))\n );\n\n // Show member name if given\n if (($author = $this->Author()) && $author->exists()) {\n $fields->insertAfter(\n 'Name',\n TextField::create('AuthorMember', $this->fieldLabel('Author'), $author->Title)\n ->performReadonlyTransformation()\n );\n }\n\n // Show parent comment if given\n if (($parent = $this->ParentComment()) && $parent->exists()) {\n $fields->push(new HeaderField(\n 'ParentComment_Title',\n _t(__CLASS__ . '.ParentComment_Title', 'This comment is a reply to the below')\n ));\n // Created date\n // FIXME - the method setName in DatetimeField is not chainable, hence\n // the lack of chaining here\n $createdField = $parent\n ->obj('Created')\n ->scaffoldFormField($parent->fieldLabel('Created'));\n $createdField->setName('ParentComment_Created');\n $createdField->setValue($parent->Created);\n $createdField->performReadonlyTransformation();\n $fields->push($createdField);\n\n // Name (could be member or string value)\n $fields->push(\n $parent\n ->obj('AuthorName')\n ->scaffoldFormField($parent->fieldLabel('AuthorName'))\n ->setName('ParentComment_AuthorName')\n ->setValue($parent->getAuthorName())\n ->performReadonlyTransformation()\n );\n\n // Comment body\n $fields->push(\n $parent\n ->obj('EscapedComment')\n ->scaffoldFormField($parent->fieldLabel(self::class))\n ->setName('ParentComment_EscapedComment')\n ->setValue($parent->Comment)\n ->performReadonlyTransformation()\n );\n }\n\n $this->extend('updateCMSFields', $fields);\n return $fields;\n }", "function list_field_views_data($field) {\n $data = field_views_field_default_views_data($field);\n foreach ($data as $table_name => $table_data) {\n foreach ($table_data as $field_name => $field_data) {\n if (isset($field_data['filter']) && $field_name != 'delta') {\n $data[$table_name][$field_name]['filter']['handler'] = 'views_handler_filter_field_list';\n }\n if (isset($field_data['argument']) && $field_name != 'delta') {\n if ($field['type'] == 'list_text') {\n $data[$table_name][$field_name]['argument']['handler'] = 'views_handler_argument_field_list_string';\n }\n else {\n $data[$table_name][$field_name]['argument']['handler'] = 'views_handler_argument_field_list';\n }\n }\n }\n }\n return $data;\n}", "function fields() {\n return array(\n 'title' => 'The title of the content',\n 'fieldname' => t('fieldname'),\n 'title' => t('title'),\n 'label' => t('Label'),\n 'data_type' => t('data type'),\n 'html_type' => t('html_type'),\n );\n }", "public function buildListLayout(): void\n {\n $this->addColumn('name', 3)\n ->addColumn('pseudo', 3)\n ->addColumn('role_id', 3)\n ->addColumn('created_at', 3);\n }", "public function fields(){\n\t\treturn array();\n\t}", "public function entryAdvancedList() {\n $content = [];\n\n $content['message'] = [\n '#markup' => $this->t('A more complex list of entries in the database. Only the entries with name = \"John\" and age older than 18 years are shown, the username of the person who created the entry is also shown.'),\n ];\n\n $headers = [\n $this->t('pid'),\n $this->t('uid'),\n $this->t('studentname'),\n $this->t('studentno'),\n $this->t('chapter'),\n\t $this->t('status'),\n ];\n\n $rows = [];\n foreach ($entries = $this->repository->advancedLoad() as $entry) {\n // Sanitize each entry.\n $rows[] = array_map('Drupal\\Component\\Utility\\Html::escape', $entries);\n }\n $content['table'] = [\n '#type' => 'table',\n '#header' => $headers,\n '#rows' => $rows,\n '#attributes' => ['id' => 'dbtng-example-advanced-list'],\n '#empty' => $this->t('No entries available.'),\n ];\n // Don't cache this page.\n //$content['#cache']['max-age'] = 0;\n return $content;\n }", "function FieldTitleList ( ) { return $this->_FieldTitleList; }", "public function getAllFields();", "public function getDisplayFields(){\n\t\tif(is_array($this->display_fields) && sizeof($this->display_fields) > 0){\n\t\t\t$Fields = array();\n\t\t\tforeach($this->display_fields as $field_name){\n\t\t\t\t$Fields[$field_name] = $this->{$field_name};\n\t\t\t}\n\t\t\t\n\t\t\treturn $Fields;\n\t\t}\n\t\t\n\t\treturn $this->Fields;\n\t}", "protected function initList()\n {\n $this->lang = true;\n $this->addRowAction('edit');\n $this->addRowAction('delete');\n\n $this->fields_list = [\n GamificationsReward::$definition['primary'] => [\n 'title' => $this->l('ID'),\n 'width' => 20,\n 'type' => 'text',\n ],\n 'name' => [\n 'title' => $this->l('Reward name'),\n 'type' => 'text',\n ],\n 'reward_type' => [\n 'title' => $this->l('Reward type'),\n 'type' => 'select',\n 'list' => GamificationsReward::getRewardsTranslations(),\n 'filter_key' => 'a!reward_type',\n ],\n ];\n }", "public function renderListContent() {}", "abstract function fields();", "function FieldNameList ( ) { return $this->_FieldNameList; }", "public function getFieldList()\n {\n return $this->_fieldList;\n }", "public function fieldsList($mode) {\n $output = [];\n $entities = [];\n $includeNotConfigured = ($mode === 'all');\n $this->collector->getEntities($entities);\n\n $output['filter'] = $this->formBuilder()->getForm(GdprFieldFilterForm::class);\n $output['#attached']['library'][] = 'gdpr_fields/field-list';\n\n foreach ($entities as $entityType => $bundles) {\n $output[$entityType] = [\n '#type' => 'details',\n '#title' => $entityType,\n '#open' => TRUE,\n ];\n\n if (\\count($bundles) > 1) {\n foreach ($bundles as $bundle_id) {\n $output[$entityType][$bundle_id] = [\n '#type' => 'details',\n '#title' => $bundle_id,\n '#open' => TRUE,\n ];\n $output[$entityType][$bundle_id]['fields'] = $this->buildFieldTable($entityType, $bundle_id, $includeNotConfigured);\n }\n }\n else {\n // Don't add another collapsible wrapper around single bundle entities.\n $bundle_id = \\reset($bundles);\n $output[$entityType][$bundle_id]['fields'] = $this->buildFieldTable($entityType, $bundle_id, $includeNotConfigured);\n }\n }\n\n return $output;\n }", "private function exampleFields()\n {\n }", "abstract public function getFields();", "abstract public function getFields();", "public function fetchFields();", "public function listFields()\n {\n return array_keys($this->fields);\n }", "public function listDisplayElements();", "static function stdRec_addFieldList($fldList, $flags=0) {\n $fldList[] = 'rKd:KidId';\n $fldList[] = 'rKd:EarliestYearSemester';\n $fldList[] = 'rKd:LatestYearSemester';\n $fldList[] = 'rKd:FirstName';\n $fldList[] = 'rKd:LastName';\n $fldList[] = 'rKd:NickName';\n $fldList[] = 'rKd:Grade'; // adjusted for GradeSchoolYear\n $fldList[] = 'rKd:GradeSchoolYear';\n $fldList[] = 'rKd:NotesForCoach';\n $fldList[] = 'rKd:NotesForSiteLeader';\n $fldList[] = 'rKd:PhotoReleaseStatus';\n return $fldList;\n}", "public function\n\t\tget_display_fields()\n\t{\n\t\tif (!isset($this->display_fields)) {\n\t\t\t$this->display_fields = array();\n\t\t\t\n\t\t\t$sxe = $this->get_simple_xml_element();\n\t\t\t\n\t\t\tforeach ($sxe->table->display->field as $field) {\n\t\t\t\t#print_r($field);\n\t\t\t\t\n\t\t\t\t$display_field['name'] = (string)$field['name'];\n\t\t\t\t\n\t\t\t\tforeach (explode(' ', 'title filter') as $attribute_name) {\n\t\t\t\t\tif (isset($field[$attribute_name])) {\n\t\t\t\t\t\t$display_field[$attribute_name] = (string)$field[$attribute_name];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$this->display_fields[] = $display_field;\n\t\t\t}\n\t\t\t\n\t\t\tif (count($this->display_fields) < 1) {\n\t\t\t\t$this->display_fields = array(\n\t\t\t\t\tarray(\n\t\t\t\t\t\t'name' => 'id'\n\t\t\t\t\t)\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t\t\n\t\t#print_r($this->display_fields);\n\t\t\n\t\treturn $this->display_fields;\n\t}", "public function fields() : DeepList {\n return $this->_fields;\n }", "abstract protected function getFields();", "public function get_display_fields() {\n return $this->displayable_fields;\n }", "function get_fields()\n\t{\n\t\trequire_code('ocf_members');\n\n\t\t$indexes=collapse_2d_complexity('i_fields','i_name',$GLOBALS['FORUM_DB']->query_select('db_meta_indices',array('i_fields','i_name'),array('i_table'=>'f_member_custom_fields'),'ORDER BY i_name'));\n\n\t\t$fields=array();\n\t\tif (has_specific_permission(get_member(),'view_profiles'))\n\t\t{\n\t\t\t$rows=ocf_get_all_custom_fields_match(NULL,1,1);\n\t\t\trequire_code('fields');\n\t\t\tforeach ($rows as $row)\n\t\t\t{\n\t\t\t\tif (!array_key_exists('field_'.strval($row['id']),$indexes)) continue;\n\n\t\t\t\t$ob=get_fields_hook($row['cf_type']);\n\t\t\t\t$temp=$ob->get_search_inputter($row);\n\t\t\t\tif (is_null($temp))\n\t\t\t\t{\n\t\t\t\t\t$type='_TEXT';\n\t\t\t\t\t$special=make_string_tempcode(get_param('option_'.strval($row['id']),''));\n\t\t\t\t\t$display=$row['trans_name'];\n\t\t\t\t\t$fields[]=array('NAME'=>strval($row['id']),'DISPLAY'=>$display,'TYPE'=>$type,'SPECIAL'=>$special);\n\t\t\t\t} else $fields=array_merge($fields,$temp);\n\t\t\t}\n\n\t\t\t$age_range=get_param('option__age_range',get_param('option__age_range_from','').'-'.get_param('option__age_range_to',''));\n\t\t\t$fields[]=array('NAME'=>'_age_range','DISPLAY'=>do_lang_tempcode('AGE_RANGE'),'TYPE'=>'_TEXT','SPECIAL'=>$age_range);\n\t\t}\n\n\t\t$map=has_specific_permission(get_member(),'see_hidden_groups')?array():array('g_hidden'=>0);\n\t\t$group_count=$GLOBALS['FORUM_DB']->query_value('f_groups','COUNT(*)');\n\t\tif ($group_count>300) $map['g_is_private_club']=0;\n\t\tif ($map==array()) $map=NULL;\n\t\t$rows=$GLOBALS['FORUM_DB']->query_select('f_groups',array('id','g_name'),$map,'ORDER BY g_order');\n\t\t$groups=form_input_list_entry('',true,'---');\n\t\t$default_group=get_param('option__user_group','');\n\t\t$group_titles=array();\n\t\tforeach ($rows as $row)\n\t\t{\n\t\t\t$row['text_original']=get_translated_text($row['g_name'],$GLOBALS['FORUM_DB']);\n\n\t\t\tif ($row['id']==db_get_first_id()) continue;\n\t\t\t$groups->attach(form_input_list_entry(strval($row['id']),strval($row['id'])==$default_group,$row['text_original']));\n\t\t\t$group_titles[$row['id']]=$row['text_original'];\n\t\t}\n\t\tif (strpos($default_group,',')!==false)\n\t\t{\n\t\t\t$bits=explode(',',$default_group);\n\t\t\t$combination=new ocp_tempcode();\n\t\t\tforeach ($bits as $bit)\n\t\t\t{\n\t\t\t\tif (!$combination->is_empty()) $combination->attach(do_lang_tempcode('LIST_SEP'));\n\t\t\t\t$combination->attach(escape_html(@$group_titles[intval($bit)]));\n\t\t\t}\n\t\t\t$groups->attach(form_input_list_entry(strval($default_group),true,do_lang_tempcode('USERGROUP_SEARCH_COMBO',escape_html($combination))));\n\t\t}\n\t\t$fields[]=array('NAME'=>'_user_group','DISPLAY'=>do_lang_tempcode('GROUP'),'TYPE'=>'_LIST','SPECIAL'=>$groups);\n\t\tif (has_specific_permission(get_member(),'see_hidden_groups'))\n// $fields[]=array('NAME'=>'_photo_thumb_url','DISPLAY'=>do_lang('PHOTO'),'TYPE'=>'','SPECIAL'=>'','CHECKED'=>false);\n\t\t{\n\t\t\t//$fields[]=array('NAME'=>'_emails_only','DISPLAY'=>do_lang_tempcode('EMAILS_ONLY'),'TYPE'=>'_TICK','SPECIAL'=>'');\tCSV export better now\n\t\t}\n\n\t\treturn $fields;\n\t}", "public function fields()\n\t{\n\t\tif (isset($this->fields))\n\t\t{\n\t\t\treturn $this->fields;\n\t\t}\n\n\t\t$this->fields = $this->ci->db->list_fields('groups');\n\t\treturn $this->fields;\n\t}", "public function fields()\n {\n $series = [];\n for ($i = 1; $i <= 110; $i++) {\n $name = \"第${i}集\";\n $series[$name] = $name;\n }\n return [\n Select::make('剧集', 'name')\n ->options($series)\n ->withMeta([\n 'value' => '第1集',\n 'extraAttributes' => [\n 'placeholder' => '第几集...'],\n ]),\n Text::make(\"播放地址\", 'url', )->withMeta(['extraAttributes' => [\n 'placeholder' => '目前仅支持m3u8播放地址'],\n ]),\n Select::make(\"是否完成求片处理\", 'fixed')->options([\n 0 => '否',\n 1 => '是',\n ])\n ->withMeta(['value' => 0])\n ->displayUsingLabels(),\n ];\n }", "public function build_wcff_fields_lister($_fields) {\r\n \t$it = 1; \t\r\n \t$wccpf_options = wcff()->option->get_options();\r\n \t$supported_locale = isset($wccpf_options[\"supported_lang\"]) ? $wccpf_options[\"supported_lang\"] : array();\r\n \t$is_multilingual = isset($wccpf_options[\"enable_multilingual\"]) ? $wccpf_options[\"enable_multilingual\"] : \"no\";\r\n \t\r\n \tob_start();\r\n \t\r\n \tforeach ($_fields as $key => $field) :\r\n \t\t$field_toggle = isset( $field[\"is_enable\"] ) ? 'data-is_enable=\"'.( $field[\"is_enable\"] ? \"true\" : \"false\" ).'\"' : ''; ?>\r\n \t\t\r\n \t\t<div class=\"wcff-meta-row\" data-key=\"<?php echo esc_attr($key); ?>\" data-type=\"<?php echo $field[\"type\"]; ?>\" data-unremovable=\"<?php echo (isset($field[\"is_unremovable\"]) && $field[\"is_unremovable\"] ? \"true\" : \"false\"); ?>\" <?php echo $field_toggle; ?>>\r\n\t\t\t\t<table class=\"wcff_table\">\r\n\t\t\t\t\t<tbody>\r\n\t\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t\t<td class=\"field-order wcff-sortable\">\r\n\t\t\t\t\t\t\t\t<span class=\"wcff-field-order-number wcff-field-order\"><?php echo $it++; ?></span>\r\n\t\t\t\t\t\t\t</td>\r\n\t\t\t\t\t\t\t<td class=\"field-label\">\r\n \t\t\t\t\t\t\t<label class=\"wcff-field-label\" data-key=\"<?php echo esc_attr($key); ?>\"><?php echo esc_html($field[\"label\"]); ?></label>\r\n \t\t\t\t\t\t\t\r\n \t\t\t\t\t\t\t<?php if($is_multilingual == \"yes\" && count($supported_locale) > 0) : ?>\r\n \t\t\t\t\t\t\t\r\n \t\t\t\t\t\t\t\t<button class=\"wcff-factory-multilingual-label-btn\" title=\"Open Multilingual Panel\"><img src=\"<?php echo (esc_url(wcff()->info[\"assets\"] .\"/img/translate.png\")); ?>\"/></button>\r\n \t\t\t\t\t\t\t\t<div class=\"wcff-factory-locale-label-dialog\"> \t\t\t\t\t\t\t\r\n \t\t\t\t\t\t\t\t<?php \r\n \t\t\t\t\t\t\t\t\t$locales = wcff()->locale->get_locales();\r\n \t\t\t\t\t\t\t\t\tforeach ($supported_locale as $code) : ?> \t\t\t\t\t\t\t\t\r\n \t\t\t\t\t\t\t\t\t<div class=\"wcff-locale-block\" data-param=\"label\">';\r\n \t\t\t\t\t\t\t\t\t\t<label><?php _e( 'Label for', 'wc-fields-factory' ); ?> <?php echo $locales[$code]; ?></label>\r\n \t\t\t\t\t\t\t\t\t\t<input type=\"text\" name=\"wcff-field-type-meta-label-<?php echo $code; ?>\" class=\"wcff-field-type-meta-label-<?php echo $code; ?>\" value=\"\" />\r\n \t\t\t\t\t\t\t\t\t</div> \t\t\t \t\t\t\t\t\r\n \t\t\t \t\t\t\t\t<?php endforeach; ?>\r\n \t\t\t\t\t\t\t\t</div>\r\n \t\t\t\t\t\t\t<?php endif; ?>\r\n \t\t\t\t\t\t</td>\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t<td class=\"field-type\">\r\n\t\t\t\t\t\t\t\t<label class=\"wcff-field-type\"><span style=\"background: url(<?php echo esc_url(wcff()->info[\"assets\"] .'/img/'.$field[\"type\"].'.png'); ?>) no-repeat left;\"></span><?php echo $field[\"type\"]; ?></label>\r\n\t\t\t\t\t\t\t</td>\r\n\t\t\t\t\t\t\t<td class=\"field-actions\">\r\n\t\t\t\t\t\t\t\t<div class=\"wcff-meta-option\">\r\n\t\t\t\t\t\t\t\t\t<?php $checked = \"checked\"; \r\n\t\t\t\t\t\t\t\t\tif (isset($field[\"is_enable\"])) {\r\n\t\t\t\t\t\t\t\t\t\t$checked = $field[\"is_enable\"] ? \"checked\" : \"\"; \r\n\t\t\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t?> \t\t\r\n \t\t\t\t\t\t\t\t<label class=\"wcff-switch\" data-key=\"<?php echo esc_attr($key); ?>\" title=\"Disable this field\"> <input class=\"wcff-toggle-check\" type=\"checkbox\" <?php echo $checked; ?>> <span class=\"slider round\"></span> </label>\r\n \t\t\t\t\t\t\t\t<a href=\"#\" class=\"wcff-field-clone button\" data-key=\"<?php echo esc_attr($key); ?>\" title=\"Clone this Field\"><img src=\"<?php echo esc_url(wcff()->info[\"assets\"] .'/img/clone.png'); ?>\" /></a>\r\n \t\t\t\t\t\t\t\t<?php if (!isset($field[\"is_unremovable\"]) || !$field[\"is_unremovable\"]) : ?> \r\n \t\t\t\t\t\t\t\t<a href=\"#\" data-key=\"<?php echo esc_attr ($key); ?>\" class=\"wcff-field-delete button\" title=\"Delete this field\">x</a>\r\n \t\t\t\t\t\t\t\t<?php endif; ?>\r\n \t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t</td>\r\n\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t</tbody>\r\n\t\t\t\t</table>\r\n\t\t\t\t<input type=\"hidden\" name=\"<?php echo esc_attr($key); ?>_order\" class=\"wcff-field-order-index\" value=\"<?php echo $field[\"order\"]; ?>\" />\r\n\t\t\t</div>\r\n \t<?php \r\n \tendforeach;\r\n \t\r\n \treturn ob_get_clean();\r\n }", "public function set_fields() {\n $this->fields = apply_filters('wpucommentmetas_fields', $this->fields);\n foreach ($this->fields as $id => $field) {\n if (!is_array($field)) {\n $this->fields[$id] = array();\n }\n if (!isset($field['label'])) {\n $this->fields[$id]['label'] = ucfirst($id);\n }\n if (!isset($field['admin_label'])) {\n $this->fields[$id]['admin_label'] = $this->fields[$id]['label'];\n }\n if (!isset($field['type'])) {\n $this->fields[$id]['type'] = 'text';\n }\n if (!isset($field['help'])) {\n $this->fields[$id]['help'] = '';\n }\n if (!isset($field['required'])) {\n $this->fields[$id]['required'] = false;\n }\n if (!isset($field['admin_visible'])) {\n $this->fields[$id]['admin_visible'] = true;\n }\n if (!isset($field['admin_column'])) {\n $this->fields[$id]['admin_column'] = false;\n }\n if (!isset($field['admin_list_visible'])) {\n $this->fields[$id]['admin_list_visible'] = false;\n }\n if (!isset($field['display_hooks'])) {\n $this->fields[$id]['display_hooks'] = array(\n 'comment_form_logged_in_after',\n 'comment_form_after_fields'\n );\n }\n if (!is_array($this->fields[$id]['display_hooks'])) {\n $this->fields[$id]['display_hooks'] = array($this->fields[$id]['display_hooks']);\n }\n }\n }", "public static function getFields() {\n return array(\n new TextField( array(\n 'name' => 'name',\n 'public' => array(\n 'title' => 'Title',\n 'description' => 'The name of the link that the\n element will describe',\n ),\n ) ),\n new TextField( array(\n 'name' => 'blurb',\n 'public' => array(\n 'title' => 'Blurb',\n 'description' => 'Short blurb that can be displayed about\n the nature of the link',\n ),\n ) ),\n new TextField( array(\n 'name' => 'image',\n 'public' => array(\n 'title' => 'Image',\n 'description' => 'The image to be dispalyed on the front.',\n ),\n ) ),\n new TextField( array(\n 'name' => 'link',\n 'public' => array(\n 'title' => 'Link',\n 'description' => 'The actual link clicking the element will\n result in.',\n ),\n ) ),\n );\n }", "public function fieldsettingAction() {\r\n $this->_helper->viewRenderer(\"fieldsetting/list\");\r\n }", "public function print_output() {\r\n foreach($this->customFields as $customField){\r\n if(get_post_meta( get_the_ID(), $customField['name'] , true )): ?>\r\n <li class=\"details-item\">\r\n <strong><?php echo __($customField['title'] , 'ex-list'); ?></strong> <?php echo get_post_meta( get_the_ID(), $customField['name'] , true ); ?>\r\n\t\t\t\t</li>\r\n <?php\r\n endif;\r\n }\r\n }", "abstract protected function fields();", "abstract protected function fields();", "public function xfields() {\n\t\t\n\t\t/* Load Model */\n\t\t$fields = $this->getModel ( 'field' );\n\t\t\n\t\t/* Get all rows */\n\t\t$fields->getAll ( 'form_id = \"' . $this->_getFormId () . '\"' );\n\t\t\n\t\tif (! count ( $fields->rows )) {\n\t\t\t$this->_redirect ( '_newField' );\n\t\t\treturn;\n\t\t}\n\t\t/* set the view file (optional) */\n\t\t$this->setView ( 'fields' );\n\t\t\n\t\t/* set last view into session */\n\t\t$this->session->returnto ( $this->getView () );\n\t}", "public static function getFieldMasterList()\n {\n return [\n 'form_fields' => [\n // LA fields\n 'transaction_type',\n 'type_of_plate',\n 'vin',\n 'vehicle_type',\n 'model_year',\n 'mortgage_fee',\n 'street_address',\n 'zip',\n 'county',\n 'city_limits',\n 'number_of_passengers',\n 'empty_weight',\n 'trailer_weight',\n 'carrying_capacity',\n 'gvw',\n 'gvwr',\n 'sales_price',\n 'rebate_discount',\n 'trade_in_value',\n 'sales_tax_credit',\n 'taxable_value',\n 'date_of_sale',\n\n // TX Fields\n // transaction type -- present\n 'new_or_used',\n // vin -- present\n // model_year -- present\n // dealer_address -- present\n // zip -- present\n 'resident_county',\n 'processing_county',\n // empty_weight -- present\n // trailer_weight -- present\n // carrying_capacity -- present\n // 'gvw', -- present\n // 'gvwr', -- present\n 'inspection_type',\n 'freight',\n 'miscellaneous_fee',\n 'fuel_type',\n // date_of_sale -- present\n\n // Arkansas Fields.\n // transaction type -- present.\n // vin -- present\n // 'vehicle_type',-- present\n // 'model_year',-- present\n // dealer_address -- present\n // zip -- present\n // empty_weight -- present\n // trailer_weight -- present\n // carrying_capacity -- present\n // 'gvw', -- present\n // 'gvwr', -- present\n 'number_of_axles',\n 'accessories',\n 'warranty'\n // rebate_discount -- present\n // trade_in_value -- present\n // taxable_value -- present\n // date_of_sale -- present\n ],\n 'calculator_options' => [\n // Louisiana\n 'no_fees',\n 'temp_tag',\n 'farm_use',\n 'did_pull_a_trailer',\n 'exempt_from_sales_tax',\n 'include_late_fees',\n\n // Texas\n // 'no_fees', -- present\n // 'temp_tag', -- present\n 'is_trade_in_leased',\n 'farm_ranch',\n 'member_of_military',\n 'off_highway_use',\n 'rebuilt_salvage',\n // exempt_from_sales_tax -- present\n // did_pull_a_trailer -- present\n 'include_inspection_fee',\n 'include_vit_tax',\n // include_late_fees -- present\n\n // Arkansas\n // 'no_fees', -- present\n // 'temp_tag', -- present\n // exempt_from_sales_tax -- present\n 'transfer_plate',\n 'vehicle_financed',\n // farm_use -- present\n 'off_road_motorcycle',\n 'add_accessories',\n 'add_warranty',\n // include_late_fees -- present\n ]\n ];\n }", "protected function initFieldNames()\n {\n $this->field_names = new FieldList(['collections.collections_id', 'title', 'inv_no', '`status`'], ['collections_id', 'title', 'inv_no', '`status`']);\n }", "protected function get_registered_fields()\n {\n }", "public function instance_fields() { \n\n\t\t$fields['name'] \t= array('description'=>_('Instance Name'),'type'=>'textbox'); \n\t\t$fields['host'] \t= array('description'=>_('Hostname'),'type'=>'textbox'); \n\t\t$fields['port']\t\t= array('description'=>_('Port'),'type'=>'textbox'); \n\t\t$fields['password']\t= array('description'=>_('Password'),'type'=>'textbox'); \n\n\t\treturn $fields; \n\n\t}", "protected function setupListOperation()\n {\n CRUD::column('key')->label('ID key')->type('text');\n CRUD::column('name')->label('Nom')->type('text')->limit(200);\n }", "protected function setupListOperation()\n {\n $this->crud->addColumns([\n [\n 'name' => 'name',\n 'label' => 'Название',\n ],\n [\n 'name' => 'description',\n 'label' => 'Описание',\n\n ],\n [\n 'name' => 'price',\n 'label' => 'Цена',\n ],\n [\n 'name' => 'time_start',\n 'label' => 'Дата начало',\n 'type' => \"date\",\n ],\n [\n 'name' => 'time_finish',\n 'label' => 'Дата финиша',\n 'type' => \"date\",\n ],\n [\n 'name' => 'car_id',\n 'label' => 'Автомобиль',\n 'type' => 'select',\n 'entity' => 'car',\n 'attribute' => 'register_id',\n 'model' => 'App\\Models\\Car',\n ],\n [\n 'name' => 'employee_id',\n 'label' => 'Сотрудник',\n 'type' => 'select',\n 'entity' => 'employee',\n 'attribute' => 'full_name',\n 'model' => 'App\\Models\\Employee',\n ],\n ]);\n }", "public function include_fields()\n {\n }", "private function getFields()\n {\n return [\n [\n \"field_type\" => \"text\",\n \"field_name\" => \"first_name\",\n \"field_editable\" => rand(0,1000) % 2 === 0 ? true : false,\n \"field_values\" => null,\n ],\n [\n \"field_type\" => \"text\",\n \"field_name\" => \"last_name\",\n \"field_editable\" => rand(0,1000) % 2 === 0 ? true : false,\n \"field_values\" => null,\n ],\n [\n \"field_type\" => \"checkbox\",\n \"field_name\" => \"happy\",\n \"field_editable\" => rand(0,1000) % 2 === 0 ? true : false,\n \"field_values\" => null,\n ],\n [\n \"field_type\" => \"select\",\n \"field_name\" => \"character\",\n \"field_editable\" => rand(0,1000) % 2 === 0 ? true : false,\n \"field_values\" => [\n [\"value\" => \"biff\", \"label\" => \"Biff\"],\n [\"value\" => \"marty\", \"label\" => \"Marty\"],\n [\"value\" => \"doc\", \"label\" => \"Doc Brown\"],\n [\"value\" => \"jennifer\", \"label\" => \"Jennifer\"],\n [\"value\" => \"needles\", \"label\" => \"Needles\"],\n ]\n ],\n [\n \"field_type\" => \"checkbox\",\n \"field_name\" => \"kids\",\n \"field_editable\" => rand(0,1000) % 2 === 0 ? true : false,\n \"field_values\" => null,\n ],\n ];\n }", "public function buildFields() {\n }", "function getListEntry()\n {\n $fields = goService::getListEntry();\n $fields['Message'] = _(\"Spamassassin\");\n#$fields['AllowEdit'] = true;\n return($fields);\n }", "function field(){\n\t\t\t$this->aah->check_access();\n\n\t\t\t$nav_id = $this->aah->get_nav_id(__CLASS__.'/field');\n\t\t\t$read_access = $this->aah->check_privilege('read',$nav_id);\n\t\t\t$add_access = $this->aah->check_privilege('add',$nav_id);\n\n\t\t\tif($read_access)\n\t\t\t{\n\t\t\t\t$this->global_model->reinitialize_dao();\n\t\t\t\t$dao = $this->global_model->get_dao();\n\t\t\t\t$data['active_url'] = str_replace('::','/',__METHOD__);\n\t\t\t\t$data['dt2_rows'] = $dao->execute(0,\"SELECT * FROM ref_dt2 WHERE provinsi_id='\".$this->_SYS_PARAMS[1].\"'\")->result_array();\n\t\t\t\t$data['form_id'] = \"search-school-form\";\n\t\t\t\t$data['active_controller'] = $this->active_controller;\n\t\t\t\t$data['containsTable'] = true;\n\t\t\t\t$data['add_access'] = $add_access;\n\t\t\t\t$this->backoffice_template->render($this->active_controller.'/field/index',$data);\n\t\t\t}else{\n\t\t\t\t$this->error_403();\n\t\t\t}\n\t\t}", "public function setDispFields()\n {\n $backendUser = $this->getBackendUser();\n // Getting from session:\n $dispFields = $backendUser->getModuleData('list/displayFields');\n // If fields has been inputted, then set those as the value and push it to session variable:\n if (is_array($this->displayFields)) {\n reset($this->displayFields);\n $tKey = key($this->displayFields);\n $dispFields[$tKey] = $this->displayFields[$tKey];\n $backendUser->pushModuleData('list/displayFields', $dispFields);\n }\n // Setting result:\n $this->setFields = $dispFields;\n }", "public function getDetailFields()\n {\n // Create Details List:\n \n $details = ArrayList::create();\n \n // Define Details List:\n \n foreach ($this->owner->getDetailFieldsConfig() as $name => $spec) {\n \n if ($spec) {\n \n if (!is_array($spec)) {\n $spec = ['text' => $spec];\n }\n \n foreach ($spec as $item => $value) {\n \n $args = [];\n \n if (is_array($value)) {\n $args = $value;\n $value = array_shift($args);\n }\n \n $spec[$item] = $this->owner->processDetailFieldValue($value, $args);\n \n }\n \n $text = isset($spec['text']) ? $spec['text'] : null;\n \n if ($text) {\n \n if (isset($spec['show']) && !$this->owner->{$spec['show']}) {\n continue;\n }\n \n $details->push(\n ArrayData::create([\n 'Name' => isset($spec['name']) ? $spec['name'] : $name,\n 'Icon' => isset($spec['icon']) ? $spec['icon'] : null,\n 'Text' => $text\n ])\n );\n \n }\n \n }\n \n }\n \n // Answer Details List:\n \n return $details;\n }", "function list_fields()\n\t{\n\t\t$field_names = array();\n\t\twhile ($field = mysqli_fetch_field($this->result_id))\n\t\t{\n\t\t\t$field_names[] = $field->name;\n\t\t}\n\n\t\treturn $field_names;\n\t}" ]
[ "0.7493804", "0.74926674", "0.73992157", "0.73517346", "0.72574997", "0.712018", "0.708437", "0.7078778", "0.7065264", "0.7065264", "0.7065264", "0.7065264", "0.7065264", "0.7033627", "0.6852073", "0.67660683", "0.6677723", "0.6668185", "0.66652226", "0.6654396", "0.6633424", "0.6633424", "0.6633424", "0.6633424", "0.6633424", "0.6633424", "0.6630761", "0.66267246", "0.662065", "0.662065", "0.662065", "0.6608244", "0.66029966", "0.6576639", "0.6551501", "0.6551048", "0.6539429", "0.6536604", "0.6510474", "0.65092295", "0.64890873", "0.6487866", "0.64752144", "0.6470919", "0.6469833", "0.6462147", "0.6446772", "0.6424632", "0.6415609", "0.64127105", "0.64116657", "0.6411391", "0.6410975", "0.6397894", "0.639439", "0.63859415", "0.63827056", "0.63696796", "0.6364661", "0.6323034", "0.6318313", "0.6298181", "0.62663734", "0.6261293", "0.6261113", "0.6232035", "0.62313944", "0.62313944", "0.6229992", "0.6229258", "0.62273836", "0.62247825", "0.6220308", "0.6219667", "0.62162143", "0.6212507", "0.62113047", "0.62024766", "0.61993134", "0.6179093", "0.61777043", "0.6170855", "0.6166197", "0.6155578", "0.61457735", "0.61457735", "0.6145281", "0.6138707", "0.61380786", "0.61359525", "0.6134009", "0.61281073", "0.6128013", "0.61271", "0.61245805", "0.6113321", "0.6113318", "0.6107464", "0.61023575", "0.60999876", "0.6093176" ]
0.0
-1
obtiene la informacion de los expedientes que aun no tienen revision previa
public function indexSinRevision(Request $request){ $criterio = $request->criterio; $buscar = $request->buscar; $b_etapa = $request->b_etapa; $b_manzana = $request->b_manzana; $b_lote = $request->b_lote; $fecha = Carbon::now(); $mytime = $fecha->toTimeString(); $hoy = $fecha->toDateString(); $query = Entrega::join('contratos','entregas.id','contratos.id') ->join('expedientes','contratos.id','expedientes.id') ->join('creditos', 'contratos.id', '=', 'creditos.id') ->join('lotes', 'creditos.lote_id', '=', 'lotes.id') ->join('etapas', 'lotes.etapa_id', '=', 'etapas.id') ->join('licencias', 'lotes.id', '=', 'licencias.id') ->join('clientes', 'creditos.prospecto_id', '=', 'clientes.id') ->join('personal as c', 'clientes.id', '=', 'c.id') ->select('contratos.id as folio', 'contratos.equipamiento', DB::raw("CONCAT(c.nombre,' ',c.apellidos) AS nombre_cliente"), 'etapas.carta_bienvenida', 'creditos.fraccionamiento as proyecto', 'creditos.etapa', 'creditos.manzana', 'creditos.num_lote', 'licencias.avance as avance_lote', 'licencias.visita_avaluo', 'licencias.foto_predial', 'licencias.foto_lic', 'licencias.num_licencia', 'contratos.fecha_status', 'contratos.status', 'contratos.equipamiento', 'expedientes.fecha_firma_esc', 'lotes.fecha_entrega_obra', 'lotes.id as loteId', 'entregas.revision_previa', 'entregas.fecha_program', DB::raw('DATEDIFF(current_date,entregas.fecha_program) as diferencia') ); $contratos = $query ->where('contratos.status', '!=', 0) ->where('contratos.status', '!=', 2) ->where('contratos.entregado', '=', 0) ->where('entregas.fecha_program','!=',NULL); // aun sin fecha programada switch($criterio){ case 'c.nombre':{ if($buscar != '') $contratos = $contratos->where(DB::raw("CONCAT(c.nombre,' ',c.apellidos)"), 'like', '%'. $buscar . '%'); break; } case 'entregas.fecha_program':{ if($buscar != '') $contratos = $contratos->whereBetween($criterio, [$buscar, $b_etapa]); break; } case 'contratos.id':{ if($buscar != '') $contratos = $contratos->where($criterio, '=', $buscar); break; } case 'lotes.fraccionamiento_id':{ if($buscar != '') $contratos = $contratos->where($criterio, '=', $buscar); if($b_etapa != '') $contratos = $contratos->where('lotes.etapa_id', '=', $b_etapa); if($b_lote != '') $contratos = $contratos->where('lotes.num_lote', '=', $b_lote); if($b_manzana != '') $contratos = $contratos->where('lotes.manzana', 'like', '%'. $b_manzana . '%'); break; } } $contratos = $contratos->orderBy('licencias.avance','desc') ->orderBy('lotes.fecha_entrega_obra','desc') ->paginate(8); return [ 'pagination' => [ 'total' => $contratos->total(), 'current_page' => $contratos->currentPage(), 'per_page' => $contratos->perPage(), 'last_page' => $contratos->lastPage(), 'from' => $contratos->firstItem(), 'to' => $contratos->lastItem(), ],'contratos' => $contratos, 'hora' => $mytime, 'hoy' => $hoy, ]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static public function ctrMensajeSinRevisar(){\n\n\t\t\t$tabla = \"mensajes\";\n\n\t\t\t$respuesta = ModeloMensajes::mdlMensajeSinRevisar($tabla);\n\n\t\t\t$sumaRevision = 0;\n\n\t\t\tforeach ($respuesta as $key => $value) {\n\n\t\t\t\tif($value[\"revision\"] == 0){\n\n\t\t\t\t\t++$sumaRevision;\n\n\t\t\t\t\techo '<span class=\"badge badge-danger navbar-badge\">'.$sumaRevision.'</span>';\n\t\t\t\t\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}", "function testRevisionHistory() \r\n\t{\r\n\t\t$dbh = $this->dbh;\r\n\t\t\r\n\t\t$obj = new CAntObject($dbh, \"customer\", null, $this->user);\r\n\t\t$obj->setValue(\"name\", \"My First Revision\");\r\n\t\t$oid = $obj->save();\r\n\r\n\t\t$revid = $dbh->GetValue($dbh->Query(\"select id from object_revisions where object_id='$oid' and object_type_id='\".$obj->object_type_id.\"'\"));\r\n\t\t$this->assertTrue($revid > 0 && $revid !=null);\r\n\t\t//$this->assertEquals($dbh->GetValue($dbh->Query(\"select field_value from object_recurrence where id='\".$rp->id.\"'\")), 0);\r\n\t}", "public function notificacionesExpiradas()\n\t{\n\t\t$fechahoy = Carbon::now()->toDateString();\n\n\t\t$notificaciones = Notificacion::where('expiradate','<', $fechahoy)->orWhere('estatus_visto','=',\"visto\")->get();\n\n\t\treturn $notificaciones;\n\t}", "public function getRevisioned() ;", "function getHistory(){\r\n\t\t// pobranie informacji o poprzedniej erze\r\n\t\t$zapytanie=\"select * from historia_koalicje where nr_ery = (select max(nr_ery) from historia_koalicje) and nazwa='\".$this->getName().\"';\";\r\n\t\t$historia=mysql_query($zapytanie)or Die(\"ups :)\");\r\n\t\tif(mysql_num_rows($historia)>0){\r\n\t\t\t$wiersz_h->dane=mysql_fetch_array($historia);\r\n\t\t\t$wiersz_h->czyJest='ok';\r\n\t\t}else{\r\n\t\t\t$wiersz_h->czyJest=false;\r\n\t\t}\r\n\t\treturn $wiersz_h;\r\n\t}", "public function getRevision() ;", "public function getRevision() {}", "protected function getInfoPrevVersions(): array {\n if (!$this->nodeRevisionManager->hasRevisions($this->node())) {\n return [];\n }\n\n return [\n '#type' => 'container',\n '#weight' => 2,\n '#attributes' => [\n 'class' => [\n 'actions-info--last-update',\n ],\n ],\n 'content' => Link::createFromRoute(\n 'Previous versions',\n 'entity.node.version_history',\n ['node' => $this->node()->id()],\n [\n 'attributes' => [\n 'target' => '_blank',\n 'rel' => 'noopener noreferrer',\n ],\n ]\n )->toRenderable(),\n ];\n }", "public function selectDemoRecs()\n {\n $sql =\n 'select max(version) as version, id as ic_id\n from version_history\n where version_history.status <> $1\n group by id order by id limit 100';\n\n $result = $this->sdb->query($sql, array($this->deleted));\n $all = array();\n while($row = $this->sdb->fetchrow($result))\n {\n $nRow = $this->selectName(array('version' => $row['version'],\n 'ic_id' => $row['ic_id']));\n if (count($nRow) == 0)\n {\n // Yikes, cannot have a constellation with zero names.\n printf(\"\\nError: SQL.php No names for version: %s ic_id: %s\\n\", $row['version'], $row['ic_id']);\n }\n\n /*\n * For now just use the first name returned, whatever that is. selectNameEntry() sorts by\n * preference_score, but that score might not be accurate for all contexts.\n */\n $row['formatted_name'] = $nRow[0]['original'];\n array_push($all, $row);\n }\n return $all;\n }", "function getRecentChanges()\r\n\t{\r\n\t\tinclude_once(\"./Modules/Wiki/classes/class.ilWikiPage.php\");\r\n\t\t$changes = ilWikiPage::getRecentChanges(\"wpg\", $this->wiki_id);\r\n\t\t$this->setDefaultOrderField(\"date\");\r\n\t\t$this->setDefaultOrderDirection(\"desc\");\r\n\t\t$this->setData($changes);\r\n\t}", "public function revisiones($folio)\n {\n $bd = new basedatos();\n $bd->conectar();\n $sql=\"SELECT id, folioTramite, idDepto, fechaEntrada, fechaSalida, idRecibio, idEntrego, infoEstado FROM infotramites WHERE folioTramite=\".$folio;\n $bd->crearComando($sql);\n $bd->ejecutarComando();\n $numRevisiones=$bd->filasEncontradas();\n if($numRevisiones==0)\n {\n $bd->desconectar();\n return false;\n }\n else if($numRevisiones>0)\n {\n //revisiones=infodocumentos \n $revisiones = array ();\n WHILE($revision=$bd->obtenerRegistros())\n {\n $infoDoc = new infodocumento($revision['id'],$revision['folioTramite'],$revision['idDepto']);\n $infoDoc->setFInicio($revision['fechaEntrada']);\n $infoDoc->setFFin($revision['fechaSalida']);\n $infoDoc->setIdRecibio($revision['idRecibio']);\n $infoDoc->setIdEntrego($revision['idEntrego']);\n $infoDoc->setEstado($revision['infoEstado']);\n \n $revisiones[]=$infoDoc;\n }\n $bd->desconectar();\n return $revisiones;\n }\n }", "public function getAllRevisions()\n {\n // Retrieves username associated with an id. \n $this->ui_ids = array();\n\n /**\n * Retrieves list of previous versions of data dictionary.\n */\n $pid = $_GET[\"pid\"];\n $previous_versions = array();\n $sql = \"select p.pr_id, p.ts_approved, p.ui_id_requester, p.ui_id_approver,\n if(l.description = 'Approve production project modifications (automatic)',1,0) as automatic\n from redcap_metadata_prod_revisions p left join redcap_log_event l\n on p.project_id = l.project_id and p.ts_approved*1 = l.ts\n where p.project_id = $pid and p.ts_approved is not null order by p.pr_id\";\n\n if ($result = $this->query($sql))\n {\n // Cycle through results\n $rev_num = 0;\n $num_rows = $result->num_rows;\n while ($row = $result->fetch_object())\n {\n if ($rev_num == 0)\n {\n $previous_versions[] = array(\n \"id\" => $row->pr_id,\n \"label\" => \"Moved to Production\",\n \"requester\" => $this->getUsernameFirstLast($row->ui_id_requester),\n \"approver\" => $this->getUsernameFirstLast($row->ui_id_approver),\n \"automatic_approval\" => $row->automatic,\n \"ts_approved\" => $row->ts_approved,\n );\n }\n else\n {\n $previous_versions[] = array(\n \"id\" => $row->pr_id,\n \"label\" => \"Production Revision #$rev_num\",\n \"requester\" => $this->getUsernameFirstLast($row->ui_id_requester),\n \"approver\" => $this->getUsernameFirstLast($row->ui_id_approver),\n \"automatic_approval\" => $row->automatic,\n \"ts_approved\" => $row->ts_approved\n );\n }\n\n if ($rev_num == $num_rows - 1)\n {\n // Current revision will be mapped to timestamp and approver of last row\n $current_revision_ts_approved = $row->ts_approved;\n $current_revision_approver = $this->getUsernameFirstLast($row->ui_id_approver);\n $current_revision_requester = $this->getUsernameFirstLast($row->ui_id_requester);\n $current_revision_automatic = $row->automatic;\n }\n\n $rev_num++;\n }\n\n $result->close();\n \n // Sort by most recent version.\n $previous_versions = array_reverse($previous_versions);\n }\n\n // Shift timestamps, approvers, requesters, and automatic approval down by one,\n // as the correct info for each one is when the previous version was archived. \n $last_key = null;\n foreach($previous_versions as $key => $version)\n {\n if ($last_key !== null)\n {\n $previous_versions[$last_key][\"ts_approved\"] = $previous_versions[$key][\"ts_approved\"];\n $previous_versions[$last_key][\"requester\"] = $previous_versions[$key][\"requester\"];\n $previous_versions[$last_key][\"approver\"] = $previous_versions[$key][\"approver\"];\n $previous_versions[$last_key][\"automatic_approval\"] = $previous_versions[$key][\"automatic_approval\"];\n }\n $last_key = $key;\n }\n\n // Get correct production timestamp,\n // and the person who moved it to production\n if (!empty($previous_versions))\n {\n // Get correct production timestamp\n $sql = \"select production_time from redcap_projects where project_id = $pid\";\n if ($result = $this->query($sql))\n {\n while ($row = $result->fetch_object()){\n $timestamp = $row->production_time;\n $previous_versions[sizeof($previous_versions)-1][\"ts_approved\"] = $timestamp;\n }\n $result->close();\n }\n\n if (!empty($timestamp))\n {\n // Retrieve person who moved to production, as it's stored separately. \n $sql = \"select u.ui_id from redcap_user_information u, redcap_log_event l\n where u.username = l.user and l.description = 'Move project to production status' and l.project_id = $pid \n and l.ts = '\" . str_replace(array(' ',':','-'), array('','',''), $timestamp) . \"' order by log_event_id desc limit 1\";\n\n if ($result = $this->query($sql))\n {\n while ($row = $result->fetch_object()){\n $previous_versions[sizeof($previous_versions)-1][\"approver\"] = $this->getUsernameFirstLast($row->ui_id);\n }\n $result->close();\n }\n }\n }\n\n // Add current revision\n if (isset($current_revision_approver) && \n isset($current_revision_ts_approved) && \n isset($current_revision_automatic) && \n isset($current_revision_requester))\n {\n array_unshift($previous_versions, array(\n \"id\" => \"current\",\n \"label\" => \"Production Revision #$rev_num <b>(Current Revision)</b>\",\n \"requester\" => $current_revision_requester,\n \"approver\" => $current_revision_approver,\n \"automatic_approval\" => $current_revision_automatic,\n \"ts_approved\" => $current_revision_ts_approved\n ));\n }\n\n return $previous_versions;\n }", "function deletedMissionVersions($quote_id,$version=NULL,$type=NULL)\n\t{\t\t\t\t\t\t\t\n\t\t$quoteMission_obj=new Ep_Quote_QuoteMissions();\n\t\t$deletedMissionVersions=$quoteMission_obj->getDeletedMissionVersionDetails($quote_id,$version,$type);\n\t\tif(!$deletedMissionVersions)\n\t\t\t$deletedMissionVersions=array();\n\n\t\t//getting mission details showing current version deleted missions of final stage too\n\t\tif(!$type)\n\t\t{\n\t\t\t$searchParameters['quote_id']=$quote_id;\n\t\t\t$searchParameters['include_final']='no';\n\n\t\t\t$quoteMission_obj=new Ep_Quote_QuoteMissions();\n\t\t\t$missonDetails=$quoteMission_obj->getMissionDetails($searchParameters);\n\t\t\tif(!$missonDetails)\n\t\t\t\t$missonDetails=array();\n\n\t\t\t$deletedMissionVersions=array_merge($deletedMissionVersions,$missonDetails);\n\t\t}\t\n\n\n\t\t//echo \"<pre>\";print_r($deletedMissionVersions);exit;\n\n\t\tif($deletedMissionVersions && count($deletedMissionVersions)>0)\t\t\n\t\t{\n\t\t\t$d=0;\n\t\t\tforeach($deletedMissionVersions as $dmission)\n\t\t\t{\n\t\t\t\t$deletedMissionVersions[$d]['product_name']=$this->product_array[$dmission['product']];\t\t\t\n\t\t\t\t$deletedMissionVersions[$d]['language_source_name']=$this->getLanguageName($dmission['language_source']);\n\t\t\t\t$deletedMissionVersions[$d]['product_type_name']=$this->producttype_array[$dmission['product_type']];\n\t\t\t\tif($mission['language_dest'])\n\t\t\t\t\t$deletedMissionVersions[$d]['language_dest_name']=$this->getLanguageName($dmission['language_dest']);\n\n\t\t\t\t\n\n\t\t\t\t$deletedMissionVersions[$d]['comment_time']=time_ago($dmission['created_at']);\n\n\t\t\t\t$prodMissionObj=new Ep_Quote_ProdMissions();\n\t\t\t\t\n\t\t\t\t$prodMissionDetails=$prodMissionObj->getProdVersionCostDetails($dmission['identifier'],$version);\n\n\t\t\t\tif(!$prodMissionDetails)\n\t\t\t\t{\n\t\t\t\t\t$prodParams['quote_mission_id']=$dmission['identifier'];\n\t\t\t\t\t$prodMissionDetails=$prodMissionObj->getProdMissionDetails($prodParams);\n\t\t\t\t}\n\t\t\t\t\n\n\t\t\t\tif($prodMissionDetails)\n\t\t\t\t{\t\t\t\t\t\n\t\t\t\t\t$internalcost_details='';\n\t\t\t\t\t$staff_time=array();\n\n\t\t\t\t\tforeach($prodMissionDetails as $prodMission)\n\t\t\t\t\t{\t\t\t\t\t\t\n\t\t\t\t\t\t$internalcost_details.=$this->seo_product_array[$prodMission['product']]. \" : \".zero_cut($prodMission['cost'],2).\" &\".$prodMission['currency'].\";<br>\";\n\t\t\t\t\t}\n\t\t\t\t\t$deletedMissionVersions[$d]['internalcost_details']=$internalcost_details;\n\n\t\t\t\t\t$deletedMissionVersions[$d]['prod_mission_details']=$prodMissionDetails;\t\n\t\t\t\t}\n\n\t\t\t\tif($deletedMissionVersions[$d]['turnover']<=0)\t\t\n\t\t\t\t\t$deletedMissionVersions[$d]['turnover']=($dmission['volume']*$dmission['unit_price']);\n\n\t\t\t\t$d++;\n\t\t\t}\n\t\t}\n\n\t\treturn $deletedMissionVersions;\n\t}", "public function vacation_expired() {\n\t\t$vacaciones = $this->solicitudes_model->getVacacionesExpired();\n\t\tforeach ($vacaciones as $registro) :\n\t\t\t$datos = array(\n\t\t\t\t//'dias_acumulados'=>((int)$registro->dias_acumulados - (int)$registro->dias_uno) + (int)$registro->dias_dos,\n\t\t\t\t'dias_acumulados' => (int)$registro->dias_acumulados - (int)$registro->dias_uno,\n\t\t\t\t'dias_uno' => $registro->dias_dos,\n\t\t\t\t'vencimiento_uno' => $registro->vencimiento_dos,\n\t\t\t\t'dias_dos' => null,\n\t\t\t\t'vencimiento_dos' => null,\n\t\t\t);\n\t\t\t$this->solicitudes_model->actualiza_dias_vacaciones($registro->colaborador,$datos);\n\t\tendforeach;\n\t}", "static function get_dep_habilitada()\n {\n $dni = toba::usuario()->get_parametro(a);\n\n if($dni)\n {\n //--- obtengo la secretaria (estado null por si tiene mas de una entrada en la tabla) ---//\n $sql = \"select n_heredera from public.per_neike where documento = $dni and estado is null\";\n $rs = toba::db()->consultar($sql);\n // '201704030530410'; //-- Mesa de E y S --\n // '201704030534000'; //-- Procuracion --\n\t // '201704030531200'; //-- Gestion --\n /** Obtengo el c01depresu que comienza con 2017 de esa n_heredera, ya q es la q tengo en mi tabla 'dependencias_habilitadas'\n y así poder comparar y determinar a q dependencia pertenece ese empleado **/\n $sql2 = \"select c01depresu from public.scm001_her\n Where n_heredera = '\".$rs[0]['n_heredera'].\"' and c01depresu ilike '20170403%'\";\n $rs2 = toba::db()->consultar($sql2);\n // $rs2[0]['c01depresu'] = '201704030530410';\n /** Busco la posicion 12 en n_heredera q es donde empieza a cambiar la numeracion de una dep a la otra por si el usuario\n se encuentra en una subdependencia, corto ahí la n_heredera y completo con ceros, ya q así está en dep_habilitadas --------*/\n $valor = substr($rs2[0]['c01depresu'],0,12); //-- me devuelve hasta la posicion 12 de la n_heredera --//\n if($valor == '201704030531')\n { //-- se trata de de la dir. de gestion --//\n $rs[0]['n_heredera'] = str_pad(substr($rs2[0]['c01depresu'],0,13),15,'0',STR_PAD_RIGHT);\n }elseif($valor == '201704030534')\n { //-- se trata de de la dir. de procuracion --//\n $rs[0]['n_heredera'] = str_pad(substr($rs2[0]['c01depresu'],0,12),15,'0',STR_PAD_RIGHT);\n }elseif($valor == '201704030530')\n { //-- se trata de del dpto. mesa de e y s, no tiene subdependencias --//\n $rs[0]['n_heredera'] = $rs2[0]['c01depresu'];\n }\n if(((substr($rs2[0]['c01depresu'],0,11)) == '20170403053') AND count($rs2) > 0)\n {\n $sql1 = \"Select id_dep, c01leyen, estado\n From tribunal.dependencias_habilitadas\n Where c01depresu = '\".$rs2[0]['c01depresu'].\"'\";\n $rs1 = toba::db()->consultar($sql1); //-- el resultado es un único registro --//\n\n if(count($rs1) > 0)\n {\n if($rs1[0]['estado'] == 'Activo')\n {\n if($rs1[0]['id_dep'] == 1)\n {\n if(toba::perfil_de_datos()->posee_dimension('gestion','staf') == 1)\n {\n return $rs1[0];\n }\n elseif(toba::perfil_de_datos()->posee_dimension('procuracion','staf') == 1 OR\n toba::perfil_de_datos()->posee_dimension('mesa','staf') == 1)\n { \n throw new toba_error('El Perfil de Datos asignado es incorrecto. Comun&iacute;quese con el administrador. Gracias.');\n }\n }\n elseif($rs1[0]['id_dep'] == 2){\n if(toba::perfil_de_datos()->posee_dimension('gestion','staf') == 1 OR\n toba::perfil_de_datos()->posee_dimension('mesa','staf') == 1)\n {\n throw new toba_error('El Perfil de Datos asignado es incorrecto. Comun&iacute;quese con el administrador. Gracias.');\n }\n elseif(toba::perfil_de_datos()->posee_dimension('procuracion','staf') == 1)\n {\n return $rs1[0];\n }\n }\n elseif($rs1[0]['id_dep'] == 3){\n if(toba::perfil_de_datos()->posee_dimension('gestion','staf') == 1 OR\n toba::perfil_de_datos()->posee_dimension('procuracion','staf') == 1)\n {\n throw new toba_error('El Perfil de Datos asignado es incorrecto. Comun&iacute;quese con el administrador. Gracias.');\n }\n elseif(toba::perfil_de_datos()->posee_dimension('mesa','staf') == 1)\n {\n return $rs1[0];\n }\n }\n }else{\n throw new toba_error('La Dependencia fu&eacute; dada de Baja');\n }\n\n }else{ //-- no pertenece a ninguna de las dep_habilitadas --//\n throw new toba_error('Usuario inv&aacute;lido');\n }\n }else{\n throw new toba_error('Usuario inv&aacute;lido');\n }\n }else{\n throw new toba_error('Solicitar al administrador agregue el par&aacute;metro DNI para poder acceder');\n }\n }", "public function getLastNotices(): array\n {\n return $this->notices;\n }", "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}", "function AtividadesRecentesGeral($logs_descricao = \"\", $logs_id_referencia = 0,$usuarios_nome = \"\", $logs_data = \"\"){\n\n $conexao = new classeConexao();\n\n if($logs_descricao=='atualizou a tarefa') {\n $tarefa = $conexao::fetchuniq(\"SELECT tb_tarefas_nome FROM tb_tarefas WHERE id = \".$logs_id_referencia);\n $item = $tarefa['tb_tarefas_nome'];\n $img = 'fa-edit';\n $label = 'label-warning';\n $url = 'editar/tarefa/';\n }\n else if ($logs_descricao=='completou a tarefa') {\n $tarefa = $conexao::fetchuniq(\"SELECT tb_tarefas_nome FROM tb_tarefas WHERE id = \".$logs_id_referencia);\n $item = $tarefa['tb_tarefas_nome'];\n $img = 'fa-check';\n $label = 'label-success';\n $url = 'editar/tarefa/';\n }\n else if ($logs_descricao=='reativou a tarefa') {\n $tarefa = $conexao::fetchuniq(\"SELECT tb_tarefas_nome FROM tb_tarefas WHERE id = \".$logs_id_referencia);\n $item = $tarefa['tb_tarefas_nome'];\n $img = 'fa-arrow-up';\n $label = 'label-danger';\n $url = 'editar/tarefa/';\n }\n else if ($logs_descricao=='pausou a tarefa') {\n $tarefa = $conexao::fetchuniq(\"SELECT tb_tarefas_nome FROM tb_tarefas WHERE id = \".$logs_id_referencia);\n $item = $tarefa['tb_tarefas_nome'];\n $img = 'fa-pause';\n $label = 'label-primary';\n $url = 'editar/tarefa/';\n }\n else if ($logs_descricao=='aprovou a tarefa') {\n $tarefa = $conexao::fetchuniq(\"SELECT tb_tarefas_nome FROM tb_tarefas WHERE id = \".$logs_id_referencia);\n $item = $tarefa['tb_tarefas_nome'];\n $img = 'fa-check';\n $label = 'label-success';\n $url = 'editar/tarefa/';\n }\n else if ($logs_descricao=='reprovou a tarefa') {\n $tarefa = $conexao::fetchuniq(\"SELECT tb_tarefas_nome FROM tb_tarefas WHERE id = \".$logs_id_referencia);\n $item = $tarefa['tb_tarefas_nome'];\n $img = 'fa-times';\n $label = 'label-danger';\n $url = 'editar/tarefa/';\n }\n else if ($logs_descricao=='enviou para aprovação a tarefa') {\n $tarefa = $conexao::fetchuniq(\"SELECT tb_tarefas_nome FROM tb_tarefas WHERE id = \".$logs_id_referencia);\n $item = $tarefa['tb_tarefas_nome'];\n $img = 'fa-mail-forward';\n $label = 'label-info';\n $url = 'editar/tarefa/';\n }\n else if ($logs_descricao=='cancelou a aprovação da tarefa') {\n $tarefa = $conexao::fetchuniq(\"SELECT tb_tarefas_nome FROM tb_tarefas WHERE id = \".$logs_id_referencia);\n $item = $tarefa['tb_tarefas_nome'];\n $img = 'fa-times';\n $label = 'label-warning';\n $url = 'editar/tarefa/';\n }\n else if ($logs_descricao=='criou a tarefa') {\n $tarefa = $conexao::fetchuniq(\"SELECT tb_tarefas_nome FROM tb_tarefas WHERE id = \".$logs_id_referencia);\n $item = $tarefa['tb_tarefas_nome'];\n $img = 'fa-star';\n $label = 'label-info';\n $url = 'editar/tarefa/';\n }\n\n //$exibeHTML = '<li><div class=\"col1\" style=\"width:98%;\"><div class=\"cont\"><div class=\"cont-col1\"><div class=\"label label-sm '.$label.'\"><i class=\"fa '.$imagem.'\"></i></div></div><div class=\"cont-col2\">';\n //$exibeHTML .= '<div class=\"desc\">O usuário <a href=\"\">'.$usuarios_nome.'</a> '.$logs_descricao.' <a href=\"'.$url.$logs_id_referencia.'\">'.$item.'</a></div></div></div></div><div class=\"col2\">'.'<div class=\"date\">'.DataBrasilSemHoras($logs_data).'</div></div></li>';\n\n //return $exibeHTML;\n\n echo '<li>';\n echo '<div class=\"col1\" style=\"width:98%;\">';\n echo '<div class=\"cont\">';\n echo '<div class=\"cont-col1\">';\n echo '<div class=\"label label-sm '.$label.'\">';\n echo '<i class=\"fa '.$img.'\"></i>';\n echo '</div>';\n echo '</div>';\n echo '<div class=\"cont-col2\">';\n\n\n\n echo '<div class=\"desc\">O usuário <a href=\"\">'.$usuarios_nome.'</a> '.$logs_descricao.' <a href=\"'.$url.$logs_id_referencia.'\">'.$item.'</a>';\n echo '</div>';\n echo '</div>';\n echo '</div>';\n echo '</div>';\n echo '<div class=\"col2\">';\n echo '<div class=\"date\">'.DataBrasilSemHoras($logs_data).'</div>';\n echo '</div>';\n echo '</li>';\n \n}", "public function getEnvoisVers()\n {\n return $this->envoisVers;\n }", "public function getRevision();", "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 }", "public function getRevisionDelta() {\n $currentRevision = $this->owner->getRevision();\n\n if ($currentRevision == null)\n return null;\n\n $currentRevision = $this->owner->getRevision()->Revision;\n\n $publishedRevision = ItemEnvironment::find()->where([\n \"DocumentId\" => $this->owner->getDocumentId()->getId(),\n \"Status\" => Yii::$app->getModule(\"environment\")->getLiveEnvironment(),\n ])->orderBy(\"Revision DESC\")->one();\n\n if ($publishedRevision)\n return $currentRevision - $publishedRevision->Revision;\n\n return 0;\n }", "private function checkExpirated() {\n\n }", "public function getClaseDictamen(){\n\t\treturn \"revision\";\n\t}", "function agendas_evts($id_evenement, $evt_confirme)\r\n{\r\n\t////\tListe des agendas ou est affecté l'événement\r\n\tglobal $AGENDAS_AFFECTATIONS;\r\n\t$tab_agenda = array();\r\n\tforeach(db_colonne(\"SELECT id_agenda FROM gt_agenda_jointure_evenement WHERE id_evenement=\".$id_evenement.\" AND confirme='\".$evt_confirme.\"'\") as $id_agenda){\r\n\t\tif(isset($AGENDAS_AFFECTATIONS[$id_agenda])) $tab_agenda[] = $id_agenda;\r\n\t}\r\n\treturn $tab_agenda;\r\n}", "public function getNumPubRevistasCientifIndexadas()\n {\n return $this->numPubRevistasCientifIndexadas;\n }", "public function get_incomplete_revisions()\n\t{\n\t\t$revisions = array();\n\t\t$time_limit = time() - (3600 * 4);\n\n\t\t// Select revisions that were stopped at one of the submission steps\n\t\t$sql = 'SELECT revision_id, attachment_id\n\t\t\tFROM ' . TITANIA_REVISIONS_TABLE . '\n\t\t\tWHERE revision_submitted = 0\n\t\t\t\tAND revision_time < ' . $time_limit; // Unlikely to happen, but set a time limit to ensure that we don't remove revisions that may be in the process of being submitted.\n\t\t$result = $this->db->sql_query_limit($sql, 25);\n\n\t\twhile ($row = $this->db->sql_fetchrow($result))\n\t\t{\n\t\t\t$revisions[(int) $row['revision_id']] = (int) $row['attachment_id'];\n\t\t}\n\t\t$this->db->sql_freeresult($result);\n\n\t\treturn $revisions;\n\t}", "public function getExcavateHistoryCount()\n {\n return $this->count(self::_EXCAVATE_HISTORY);\n }", "public function getChanges();", "public function getChanges();", "public function getRevisions(): array;", "public function getLastRevision();", "function generar_estado_codigo()\n\t{\n\t\t$this->manejador_interface->mensaje(\"Calculando revisiones {$this->identificador} \" , false);\n\t\t$this->generar_checksum();\n\n\t\t//Esto simplemente se calcula para darle una idea al pobre chango de cual\n\t\t//fue la ultima revision que cargo en la base,util para el revert\n\t\t$svn = new toba_svn();\n\t\tif ($svn->hay_cliente_svn()) {\n\t\t\t$max_rev = 0;\n\t\t\t$revisiones = $svn->get_revisiones_dir_recursivos($this->get_dir_dump());\n\t\t\t$max_rev = 0;\n\t\t\tif (! empty($revisiones)) {\n\t\t\t\tforeach($revisiones as $revision) {\n\t\t\t\t\tif (isset($revision['error'])) {\n\t\t\t\t\t\tthrow new toba_error_def($revision['error']);\n\t\t\t\t\t}\n\t\t\t\t\tif ($max_rev < intval($revision['revision'])) {\n\t\t\t\t\t\t$max_rev = intval($revision['revision']);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t$this->manejador_interface->progreso_avanzar();\n\t\t\t$this->instancia->set_revision_proyecto($this->identificador, $max_rev);\n\t\t}\n\t\t$this->manejador_interface->progreso_fin();\n\t}", "public function hasRevisionsAhead() {\n return $this->_has(2);\n }", "public function getDateRetourPrevue()\n {\n return $this->dateRetourPrevue;\n }", "private function getOldDeposit()\n {\n return $this->collection->items[$this->cart_hash]->deposit;\n }", "public function getVersionLog();", "static public function ctrRemitosVentas(){\n\n\t\t$tabla = \"ventas\";\n\n\t\t$respuesta = ModeloVentas::mdlRemitosVentas($tabla);\n\n\t\treturn $respuesta;\n\t\t\n\t}", "public function testRevisionHistory() {\n $entity = EnhancedEntity::create([\n 'name' => 'rev 1',\n 'type' => 'default',\n ]);\n $entity->save();\n\n $revision = clone $entity;\n $revision->name->value = 'rev 2';\n $revision->setNewRevision(TRUE);\n $revision->isDefaultRevision(FALSE);\n $revision->save();\n\n /** @var \\Symfony\\Component\\HttpKernel\\HttpKernelInterface $http_kernel */\n $http_kernel = $this->container->get('http_kernel');\n $request = Request::create($revision->toUrl('version-history')->toString());\n $response = $http_kernel->handle($request);\n $this->assertEquals(403, $response->getStatusCode());\n\n $role_admin = Role::create(['id' => 'test_role_admin']);\n $role_admin->grantPermission('administer entity_test_enhanced');\n $role_admin->save();\n\n $role = Role::create(['id' => 'test_role']);\n $role->grantPermission('view all entity_test_enhanced revisions');\n $role->grantPermission('administer entity_test_enhanced');\n $role->save();\n\n $user_admin = User::create([\n 'name' => 'Test administrator',\n ]);\n $user_admin->addRole($role_admin->id());\n $user_admin->save();\n $this->container->get('account_switcher')->switchTo($user_admin);\n\n $request = Request::create($revision->toUrl('version-history')->toString());\n $response = $http_kernel->handle($request);\n $this->assertEquals(200, $response->getStatusCode());\n\n $user = User::create([\n 'name' => 'Test editor',\n ]);\n $user->addRole($role->id());\n $user->save();\n $this->container->get('account_switcher')->switchTo($user);\n\n $request = Request::create($revision->toUrl('version-history')->toString());\n $response = $http_kernel->handle($request);\n $this->assertEquals(200, $response->getStatusCode());\n\n // This ensures that the default revision is still the first revision.\n $this->assertTrue(strpos($response->getContent(), 'entity_test_enhanced/1/revisions/2/view') !== FALSE);\n $this->assertTrue(strpos($response->getContent(), 'entity_test_enhanced/1') !== FALSE);\n\n // Publish a new revision.\n $revision = clone $entity;\n $revision->name->value = 'rev 3';\n $revision->setNewRevision(TRUE);\n $revision->isDefaultRevision(TRUE);\n $revision->save();\n\n $request = Request::create($revision->toUrl('version-history')->toString());\n $response = $http_kernel->handle($request);\n $this->assertEquals(200, $response->getStatusCode());\n\n // The first revision row should now include a revert link.\n $this->assertTrue(strpos($response->getContent(), 'entity_test_enhanced/1/revisions/1/revert') !== FALSE);\n }", "function Subir_Historico($Id,$Fecha_Anulacion,$Causa_Anulacion,$Operador_Anulacion)\n{\n // en eventos, calcula el estado y deja el evento que \n // lo pasó a histórico como anulado.\n \n \n $Instruccion = \"SELECT Id_Pedido,Codigo_Evento,Codigo_Pais,Codigo_Institucion,Codigo_Dependencia,Fecha,Observaciones,Operador,Es_Privado,Numero_Paginas,Id_Correo,Id FROM EvHist WHERE Id_Pedido='\".$Id.\"'\";\n $Instruccion .= \" ORDER BY Fecha,Id\";\n $result = mysql_query($Instruccion);\n echo mysql_error();\n while($row = mysql_fetch_row($result))\n { \n // Inserto todos los eventos menos la entrega, cancelación, etc\n\t \n\t $condicion = (Determinar_Estado($row[1])!=Devolver_Estado_Cancelado() && Determinar_Estado($row[1])!=Devolver_Estado_Entregado());\n\t\n\t \n\t if ($row[1]!=Devuelve_Evento_Observado() && $condicion )\n\t {\n\t $Ultimo_Estado = Determinar_Estado ($row[1]);\n\t }\n \n if ($condicion)\n\t {\n if ($row[10]==\"\")\n {\n \t$row[10]=0;\n }\n $Instruccion = \"INSERT INTO Eventos (Id_Pedido,Codigo_Evento,Codigo_Pais,Codigo_Institucion,Codigo_Dependencia,Fecha,Observaciones\"; \n $Instruccion = $Instruccion.\",Operador,Es_Privado,Numero_Paginas,Id_Correo) VALUES ('\".$row[0].\"',\".$row[1].\",\".$row[2].\",\".$row[3].\",\".$row[4].\",'\".$row[5];\n $Instruccion = $Instruccion.\"','\".$row[6].\"',\".$row[7].\",\".$row[8].\",\".$row[9].\",\".$row[10].\")\";\n // echo $Instruccion;\n\t $result2 = mysql_query($Instruccion); \n\t echo mysql_error(); \n }\n\t else\n\t {\n\t // La entrega la inserto como anulada con las causas, fecha y operador de baja\n\t if ($row[10]==\"\")\n {\n \t$row[10]=0;\n }\n $Instruccion = \"INSERT INTO EvAnula (Id_Pedido,Codigo_Evento,Codigo_Pais,Codigo_Institucion,Codigo_Dependencia,Fecha,Observaciones\"; \n $Instruccion = $Instruccion.\",Operador,Es_Privado,Numero_Paginas,Id_Correo,Fecha_Anulacion,Causa_Anulacion,Operador_Anulacion) VALUES ('\".$row[0].\"',\".$row[1].\",\".$row[2].\",\".$row[3].\",\".$row[4].\",'\".$row[5];\n $Instruccion = $Instruccion.\"','\".$row[6].\"',\".$row[7].\",\".$row[8].\",\".$row[9].\",\".$row[10].\",'\".$Fecha_Anulacion.\"','\".$Causa_Anulacion.\"',\".$Operador_Anulacion.\")\";\n $result2 = mysql_query($Instruccion); \n\t echo mysql_error(); \n\t }\n }\n \n \n $expresion = \"SELECT PedHist.Id,PedHist.Codigo_Usuario,Tipo_Pedido,Tipo_Material,Titulo_Libro,Autor_Libro,Editor_Libro\"; \n $expresion = $expresion.\",Anio_Libro,Desea_Indice,Capitulo_Libro,Numero_Patente,Codigo_Pais_Patente,Pais_Patente,Anio_Patente\";\n $expresion = $expresion.\",Autor_Detalle1,Autor_Detalle2,Autor_Detalle3,Codigo_Titulo_Revista\";\n $expresion = $expresion.\",Titulo_Revista,Titulo_Articulo,Volumen_Revista,Numero_Revista,Anio_Revista\";\n $expresion = $expresion.\",Pagina_Desde,Pagina_Hasta,TituloCongreso,Organizador,NumeroLugar,Anio_Congreso\";\n $expresion = $expresion.\",PaginaCapitulo,PonenciaActa,Codigo_Pais_Congreso,Otro_Pais_Congreso,TituloTesis\";\n $expresion = $expresion.\",AutorTesis,DirectorTesis,GradoAccede,Codigo_Pais_Tesis,Otro_Pais_Tesis,Codigo_Institucion_Tesis\";\n $expresion = $expresion.\",Otra_Institucion_Tesis,Codigo_Dependencia_Tesis,Otra_Dependencia_Tesis,Anio_Tesis,PagCapitulo\";\n // Era el 25 ahora es 45\n $expresion = $expresion.\",Fecha_Alta_Pedido,Estado,Biblioteca_Sugerida,Observaciones,Ultimo_Pais_Solicitado,Ultima_Institucion_Solicitado,Ultima_Dependencia_Solicitado,Operador_Corriente\";\n $expresion = $expresion.\",Fecha_Inicio_Busqueda,Fecha_Recepcion,Fecha_Solicitado,Fecha_Entrega,Numero_Paginas\";\n $expresion = $expresion.\",Usuarios.Codigo_Categoria,Tardanza_Atencion,Tardanza_Busqueda,Tardanza_Recepcion\";\n \n // La idea es obtener el origen de los pedidos\n $expresion = $expresion.\",Instituciones.Codigo_Pais,Usuarios.Codigo_Institucion,Usuarios.Codigo_Dependencia,Observado,Archivos_Totales \";\n\n $expresion = $expresion.\" FROM PedHist\";\n $expresion = $expresion.\" LEFT JOIN Usuarios ON Usuarios.Id=PedHist.Codigo_usuario\";\n $expresion = $expresion.\" LEFT JOIN Instituciones ON Usuarios.Codigo_Institucion=Instituciones.Codigo\";\n $expresion = $expresion.\" WHERE PedHist.Id='\".$Id.\"'\";\n\n\n /// echo $expresion;\n $result = mysql_query($expresion);\n $row = mysql_fetch_row($result);\n echo mysql_error();\n \n \n \n\n // Esto se agrega por cuestiones de compatibilidad en relación a los datos\n // Históricos entregados \n \n $row[14]=strtr($row[14],\"'\",\"\\'\");\n $row[15]=strtr($row[15],\"'\",\"\\'\");\n $row[16]=strtr($row[16],\"'\",\"\\'\");\n\t\n $row[18]=strtr($row[18],\"'\",\"\\'\");\n $row[19]=strtr($row[19],\"'\",\"\\'\");\n \n if ($row[59]==\"\") \n {\n $row[59]=0;\n }\n \n if ($row[60]==\"\")\n {\n $row[60]=0;\n }\n \n if ($row[61]==\"\")\n {\n $row[61]=0;\n }\n \n\n // El Estado debería cambiar al anterior antes de anular el evento de entrega\n // que lo dejó en Histórico\n \n \n $Instruccion = \"INSERT INTO Pedidos (Id,Codigo_Usuario,Tipo_Pedido,Tipo_Material,Titulo_Libro,Autor_Libro,Editor_Libro\"; \n $Instruccion = $Instruccion.\",Anio_Libro,Desea_Indice,Capitulo_Libro,Numero_Patente,Codigo_Pais_Patente,Pais_Patente,Anio_Patente\";\n $Instruccion = $Instruccion.\",Autor_Detalle1,Autor_Detalle2,Autor_Detalle3,Codigo_Titulo_Revista\";\n $Instruccion = $Instruccion.\",Titulo_Revista,Titulo_Articulo,Volumen_Revista,Numero_Revista,Anio_Revista\";\n $Instruccion = $Instruccion.\",Pagina_Desde,Pagina_Hasta,TituloCongreso,Organizador,NumeroLugar,Anio_Congreso\";\n $Instruccion = $Instruccion.\",PaginaCapitulo,PonenciaActa,Codigo_Pais_Congreso,Otro_Pais_Congreso,TituloTesis\";\n $Instruccion = $Instruccion.\",AutorTesis,DirectorTesis,GradoAccede,Codigo_Pais_Tesis,Otro_Pais_Tesis,Codigo_Institucion_Tesis\";\n $Instruccion = $Instruccion.\",Otra_Institucion_Tesis,Codigo_Dependencia_Tesis,Otra_Dependencia_Tesis,Anio_Tesis,PagCapitulo\";\n $Instruccion = $Instruccion.\",Fecha_Alta_Pedido,Estado,Biblioteca_Sugerida,Observaciones,Ultimo_Pais_Solicitado,Ultima_Institucion_Solicitado,Ultima_Dependencia_Solicitado,Operador_Corriente\";\n $Instruccion = $Instruccion.\",Fecha_Inicio_Busqueda,Fecha_Recepcion,Fecha_Solicitado\";\n $Instruccion = $Instruccion.\",Tardanza_Atencion,Tardanza_Busqueda,Tardanza_Recepcion,Numero_Paginas,Observado,Archivos_Totales) VALUES (\";\n $Instruccion = $Instruccion.\"'\".$row[0].\"',\".$row[1].\",\".$row[2].\",\".$row[3].\",'\".$row[4].\"','\".$row[5].\"','\".$row[6].\"',\";\n $Instruccion = $Instruccion.\"'\".$row[7].\"',\".$row[8].\",'\".$row[9].\"','\".$row[10].\"',\".$row[11].\",'\".$row[12].\"','\".$row[13].\"',\";\n $Instruccion = $Instruccion.\"'\".$row[14].\"','\".$row[15].\"','\".$row[16].\"','\".$row[17].\"',\";\n $Instruccion = $Instruccion.\"'\".$row[18].\"','\".$row[19].\"','\".$row[20].\"','\".$row[21].\"','\".$row[22].\"',\";\n $Instruccion = $Instruccion.\"'\".$row[23].\"','\".$row[24].\"',\";\n \n // Esto es Titulo Congreso y los agregados de los nuevos pedidos\n \n $Instruccion = $Instruccion.\"'\".$row[25].\"','\".$row[26].\"',\";\n $Instruccion = $Instruccion.\"'\".$row[27].\"','\".$row[28].\"','\".$row[29].\"','\".$row[30].\"',\".$row[31].\",\";\n $Instruccion = $Instruccion.\"'\".$row[32].\"','\".$row[33].\"','\".$row[34].\"','\".$row[35].\"','\".$row[36].\"',\".$row[37].\",\";\n $Instruccion = $Instruccion.\"'\".$row[38].\"',\".$row[39].\",'\".$row[40].\"',\".$row[41].\",'\".$row[42].\"','\".$row[43].\"','\".$row[44].\"',\";\n \n // Estas son las fechas de alta\n \n\n \n $Instruccion = $Instruccion.\"'\".$row[45].\"','\".$Ultimo_Estado.\"'\"; \n $Instruccion = $Instruccion.\",'\".$row[47].\"','\".$row[48].\"',\".$row[49].\",\".$row[50].\",\".$row[51].\",\".$row[52]; \t\n $Instruccion = $Instruccion.\",'\".$row[53].\"','\".$row[54].\"','\".$row[55].\"',\";\n$Instruccion = $Instruccion.$row[59].\",\".$row[60].\",\".$row[61].\",\".$row[57].\",'\".$row[65].\"',\".$row[66].\")\";\n// echo $Instruccion; \t\n $result = mysql_query($Instruccion); \n echo mysql_error(); \n $query = \"UPDATE Archivos_Pedidos SET Permitir_Download = 1 WHERE codigo_pedido = '\".$Id.\"'\";\n\t $resu = mysql_query($query);\n\t echo mysql_error();\n\n // Por ultimo elimina la info de los pedidos y eventos\n $Instruccion = \"DELETE FROM Eventos WHERE Codigo_Evento=\".Devolver_Estado_Download().\" and Id_Pedido='\".$Id.\"'\"; \n $result = mysql_query($Instruccion); \n\n\t \n $Instruccion = \"DELETE FROM PedHist WHERE Id='\".$Id.\"'\"; \n $result = mysql_query($Instruccion); \n\n $Instruccion = \"DELETE FROM EvHist WHERE Id_Pedido='\".$Id.\"'\"; \n $result = mysql_query($Instruccion); \n}", "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 getChangedEntries();", "public function getCierre_menor_inversion()\n {\n return $this->cierre_menor_inversion;\n }", "function obter_todas_noticias_ativas() {\n $this->db->where(array(\"status_noticia\"=>1));\n $this->db->order_by(\"data_noticia\", \"desc\");\n return $this->db->get('noticia');\n }", "protected function obtenerNivelesActivos(){\n $fechahoy=new \\DateTime('now',new \\DateTimeZone('America/El_Salvador'));\n //Para jalar el modulo activo\n $modulo=$this->getDoctrine()->getRepository('AppBundle:Modulo')->verificarModulo($fechahoy);\n return $modulo;\n\n }", "public function getRevisions(): array\n {\n return $this->revs;\n }", "public function getVersion() {\n $logRepo = \\Env::get('em')->getRepository('Cx\\Core\\ContentManager\\Model\\Entity\\LogEntry');\n return $logRepo->getLatestLog($this);\n }", "public function ExpedirAction() {\n\n $objeto = new $this->request['entidad']($this->request['idEntidad']);\n $objeto->expide();\n\n $this->values['errores'] = $objeto->getErrores();\n $this->values['alertas'] = $objeto->getAlertas();\n\n if (!$this->values['errores'])\n $this->values['mensajes'][] = \"El documento \" . $objeto->getNumeroDocumento() . \" ha sido expedido\";\n\n return $this->listAction($this->request['entidad'], $this->request['idEntidad']);\n }", "protected function envelheceErros() {\n\t\t\t$sSQL = \"INSERT INTO aged_rdtb_accounting SELECT * FROM rdtb_accounting WHERE login < date_trunc('day',now() - interval '2 days') AND session_id like 'E:%'\";\n\t\t\t$this->bd->consulta($sSQL,false);\n\t\t\t$sSQL = \"DELETE FROM rdtb_accounting WHERE login < date_trunc('day',now() - interval '2 days') AND session_id like 'E:%'\";\n\t\t\t$this->bd->consulta($sSQL);\n\n\t\t\t$this->vacuum(\"rdtb_accounting\");\n\t\t}", "function getLastchange() {\n\t\treturn $this->get(\"lastchange\");\n\t}", "function wp_ajax_get_revision_diffs()\n {\n }", "public function getOldFileOffenders()\n\t{\n\t $this->load->model('cleanup','',FALSE);\n\t $this->load->model('configuration');\n\t $dbList = $this->configuration->getDBList();\n\t foreach($dbList->result() as $db) {\n\t \t//if($db == \"som\") {\n\t \techo \"Starting Old File Detection For: \".$db->friendlyName;\n\t \techo \"<br />\";\n\t \t$this->cleanup->getOldFiles($db->dbGroup,$db->fullpath,$db->fsInodeNumber,$db->friendlyName);\n\t \techo \"<hr /><br />\";\n\t //}\n\t }\n\t //$this->cleanup->sendNotices(\"oldfile\");\n\t}", "function visites_pre_traitement($prev_visites) {\r\n\r\n\t# pour page hier\r\n\tif (!is_array($prev_visites)) {\r\n\t\treturn;\r\n\t}\r\n\r\n\t$temps = $prev_visites[0];\r\n\t$visites = $prev_visites[1];\r\n\t$visites_a = $prev_visites[2];\r\n\r\n\tif (count($temps)) {\r\n\t\tsort($temps);\r\n\t}\r\n\r\n\t$aff = '';\r\n\tif ($nb_articles = count($visites_a)) {\r\n\t\t$heure_f = date('H\\hi', $temps[0]);\r\n\t\t$date_f = date('d/m/Y', $temps[0]);\r\n\r\n\t\t$aff .= \"<div align='center' class='iconeoff verdana2 bold' style='clear:both;'>\\n\"\r\n\t\t\t. _T('actijour:depuis_date_visites_pg',\r\n\t\t\t\tarray(\r\n\t\t\t\t\t'heure' => $heure_f,\r\n\t\t\t\t\t'date' => $date_f == date('d/m/Y') ? '' : '(' . $date_f . ')',\r\n\t\t\t\t\t'nb_visite' => $visites,\r\n\t\t\t\t\t'nb_articles' => $nb_articles\r\n\t\t\t\t))\r\n\t\t\t. \"\\n</div>\\n\";\r\n\t}\r\n\r\n\treturn $aff;\r\n}", "function revisions_annonces($id_annonce, $c=false) {\n\n// ** Champs normaux **\n\tif ($c === false) {\n\t\t// Si $c a sa valeur par defaut, alors on en fait un tableau,\n\t\t// que l'on remplit avec les nouvelles valeurs des differents champs\n\t\t$c = array();\n\t\tforeach (array(\n\t\t\t// Pour chacun de ces champs,\n\t\t\t'titre', 'lien', 'annonceur', 'peremption',\n\t\t\t'type', 'descriptif', 'source_lien', 'source_nom', 'statut'\n\t\t) as $champ)\n\t\t\t// on en recupere la nouvelle valeur (a condition qu'ils ne soient pas vides),\n\t\t\tif (($a = _request($champ)) !== null)\n\t\t\t\t// que l'on met dans le tableau $c\n\t\t\t\t$c[$champ] = $a;\n\t}\n\n\t// Si l'annonce est publiee, invalider les caches et demander sa reindexation\n\t// (indispensable pour mettre a jour l'annonce du cote public)\n\t// $t est le statut actuel de l'objet, que l'on recupere en premier lieu\n\t$t = sql_getfetsel(\"statut\", \"spip_vu_annonces\", \"id_annonce=$id_annonce\");\n\tif ($t == 'publie') {\n\t\t// Si le statut est publie, alors on indique que cette annonce devra etre invalidee\n\t\t$invalideur = \"id='id_annonce/$id_annonce'\";\n\t\t// et on demande une reindexation\n\t\t$indexation = true;\n\t}\n\t// On charge le fichier qui contient la fonction necessaire...\n\tinclude_spip('inc/modifier');\n\t// ... que l'on execute ensuite avec les parametres definis juste au dessus\n\tmodifier_contenu('annonce', $id_annonce,\n\t\tarray(\n\t\t\t'nonvide' => array('titre' => _T('info_sans_titre')),\n\t\t\t'invalideur' => $invalideur,\n\t\t\t'indexation' => $indexation\n\t\t),\n\t\t$c);\n\n\n// ** Un cas special : changer le statut ? **\n\t// On recupere pour commencer le statut actuel de la breve,\n\t$row = sql_fetsel(\"statut\", \"spip_vu_annonces\", \"id_annonce=$id_annonce\");\n\t// pour ensuite le stocker dans deux variables differentes\n\t$statut_ancien = $statut = $row['statut'];\n\t// Si un nouveau statut est demande, ET qu'il est different de l'actuel, \n\t// ?? a rajouter pour la suite : \"ET que nous avons les autorisations pour le changer\"\n\tif (_request('statut', $c) AND _request('statut', $c) != $statut) {\n\t\t// Alors $statut acquiere sa valeur nouvelle (vu au dessus avec $champs)\n\t\t$statut = $champs['statut'] = _request('statut', $c);\n\t}\n\n// ** Rendre effective la revision **\n\t// Si le tableau contenant les nouvelles valeurs est vide (rien a changer),\n\t// alors c'est termine !\n\tif (!$champs) return;\n\n\t// Si l'etape precedente est passee, alors on a des choses a faire.\n\t// On demande simplement une mise a jour de la table avec les nouvelles valeurs ($champs)\n\tsql_updateq('spip_vu_annonces', $champs, \"id_annonce=$id_annonce\");\n\n// ** Post-modifications **\n\t// Invalider les caches\n\tinclude_spip('inc/invalideur');\n\tsuivre_invalideur(\"id='id_annonce/$id_annonce'\");\n\n}", "public function getRevdate()\n {\n return $this->revdate;\n }", "function find_return_history($retrun_id = 0) {\n $revisions = db_select('commerce_return_revision', 'revision')\n ->fields('revision')\n ->condition( 'return_id', $retrun_id)\n ->orderBy('revision_timestamp')\n ->execute();\n\n $rows = array();\n $statuses = commerce_return_status_options_list();\n $all_status = array();\n foreach ($statuses as $data) {\n $all_status = array_merge($all_status, $data);\n }\n $i = 1;\n $m_statuses = variable_get('return_status_not_merchant', array());\n\n $is_merchant = user_access('return merchent access') && !user_access('return findit access');\n foreach ($revisions as $key => $revision) {\n if ( $is_merchant) {\n if (in_array($revision->status, $m_statuses)) {\n continue;\n }\n }\n $name = t(\"Customer\");\n if ($revision->revision_uid != 0) {\n $account = user_load($revision->revision_uid);\n $name = $account->name;\n }\n $updated_date = date(\"d/m/Y\", $revision->revision_timestamp);\n $updated_time = date(\"H:i\", $revision->revision_timestamp);\n $ret_status = \"<span class=status-$revision->status>\".$all_status[$revision->status].\"</span>\";\n $row = array(\n $updated_date ,\n $updated_time,\n $ret_status,\n $revision->log,\n );\n $i++;\n $rows[] = $row;\n }\n $header = array(\n t('Updated Date'),\n t('Updated Time'),\n t('Status'),\n t('Additional Note'),\n );\n return theme('table', array('rows' => $rows, 'header' => $header));\n}", "public function getLastAudit();", "public function setta_revisione_profili($ids)\n {\n $id_da_notificare = array();\n // crea un array se solo un ID è stato passato\n if (!is_array($ids))\n {\n $ids = array($ids);\n }\n foreach ($ids as $id_profilo)\n {\n $this->db->select('id_stato_profilo')\n ->from('rrtq_profilo')\n ->where('id_profilo', $id_profilo);\n $query = $this->db->get();\n $row = $query->row(0)->id_stato_profilo;\n\n if ((int) $row < 2)\n {\n $this->db->set('id_stato_profilo', 2);\n // NEL CASO IN CUI LO STATO PASSASSE DA PUBBLICATA AD ALTRO SERIALIZZO IL CONTENUTO \n $this->load->model('qualificazione_model');\n $file_qualificazione = $this->qualificazione_model->select_qualificazione($id_profilo);\n $this->db->set('file_qualificazione', serialize($file_qualificazione));\n $this->db->where('id_profilo', $id_profilo);\n $this->db->update('rrtq_profilo');\n $id_da_notificare[] = $id_profilo;\n }\n //Quando lo stato corrente è NON PUBBLICATO e si modifica una qualificazione,\n //lo stato non cambia ma non si attiva il controolo delle modifiche ( In Revisione, etc.). \n //Per evitare che questo avvenga e gestire il processo di validazione delle modifiche\n //la versione corrente dovrebbe passare a \"In revisione\" e settare a NULL \"data_ultima_pubblicazione\"\n // Facendo così il pubblico non visualizza la qualificazione in elenco.\n }\n\n if (count($ids) > 0)\n {\n /* LOG ACTIVITY */\n $this->activity->log('revision', array('id' => implode(\",\", $ids), 'table' => 'Qualificazione'));\n /* END LOG */\n }\n /* MESSAGES NOTIFICATION SYSTEM */\n if ($this->config->item('enable_messages'))\n {\n if (count($id_da_notificare) > 0)\n {\n $this->messaggistica->invia_messaggio('setta_revisione_profili', $this->get_titoli_profilo($id_da_notificare));\n }\n }\n /* END MESSAGES */\n }", "public function get_change_log()\n\t{\n\t\treturn '';\n\t}", "public static function Nueva_Version_Orden($fecha_ingreso, $id_cotizacion, $id_cliente, $id_locacion, $id_actividad, $num_muestras, $id_usuario, $estado, $version, $num_orden, $prioridad, $version_informe)\n {\n // Sentencia INSERT\n $comando = \"INSERT INTO ordenes (fecha_ingreso, id_cotizacion, id_cliente, id_locacion, id_actividad, num_muestras, id_usuario, estado, impreso, version, num_orden, razon_jt, razon_dt, razon_dc, recibido, enviado, prioridad,version_informe) VALUES( ?,?,?,?,?,?,?,?,0,?,?,'','','',0,0,?,? )\";\n\n // Preparar la sentencia\n $sentencia = Database::getInstance()->getDb()->prepare($comando);\n\n return $sentencia->execute(\n array(\n $fecha_ingreso,\n $id_cotizacion,\n $id_cliente, \n $id_locacion,\n $id_actividad,\n $num_muestras,\n $id_usuario,\n $estado,\n $version,\n $num_orden,\n $prioridad,\n $version_informe\n )\n );\n\n }", "public function lastModified(){\n if( $this->modifications ){\n return end( $this->modifications );\n }\n }", "protected function checkPreviousVersion( $previous )\r\n {\r\n if ( !$previous->getClass( ) === $this->getClass( ) ) {\r\n throw new KVDdom_RedactieException ( 'Kan enkel updaten naar een vorige versie van mezelf!' );\r\n }\r\n if ( !$this->isCurrentRecord( ) ) {\r\n throw new KVDdom_RedactieException ( 'Dit object is niet de huidige versie en kan dus niet geupdate worden!');\r\n }\r\n if ( $previous->isCurrentRecord( ) ) {\r\n throw new KVDdom_RedactieException ( 'Er kan enkel geupate worden naar een oude versie van een record, niet naar de huidige! ');\r\n }\r\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 }", "public function getLogHistory() {\n\t\treturn $this->log;\n\t}", "function expedienteUpd() {\n $id = array($this->getIdExpediente());\n $valor = $this->getReqId();\n $this->db->trans_start();\n $baja = $this->db->query(\"delete from tb_sistram_expedienterequisitos where nExpedienteId=?;\", $id);\n foreach ($valor as $v) {\n $v_expediente = array($this->getIdExpediente(), $v);\n $expediente = $this->db->query(\"INSERT INTO tb_sistram_expedienterequisitos(nExpedienteId,nRequisitosId)VALUES(?,?)\", $v_expediente);\n }\n $parametros = array($this->getIdExpediente(), $this->getCExpedienteSumilla(), $this->getPerNombres(), $this->getPerApellidoPaterno(), $this->getPerApellidoMaterno(), $this->getEdeNumeroFolios(), $this->getNTramiteId());\n $query = $this->db->query(\"call USP_S_U_Expediente(?,?,?,?,?,?,?)\", $parametros);\n $this->db->trans_complete();\n if ($this->db->trans_status()) {\n return true;\n } else {\n throw new Exception('error al recuperar datos de la BD');\n }\n }", "public function pendientes($id) {\n $sql = \"SELECT s.id, s.padre,s.hijo,s.id_seguimiento,s.nur, s.nombre_emisor,s.cargo_emisor,\n s.de_oficina,s.fecha_emision as fecha,DATE_FORMAT(s.fecha_recepcion,'%d/%m/%Y %H:%i:%s') as fecha_recepcion, \n a.accion, IF(s.oficial=0,'Copia','Oficial') as oficial, s.hijo, s.proveido,s.adjuntos,s.archivos\n , d.codigo,d.cite_original, d.nombre_destinatario,d.nombre_destinatario, \n d.cargo_destinatario,d.referencia,d.id as id_doc,s.prioridad,DATEDIFF(NOW(),s.fecha_recepcion)AS dias_ahora,\nDATEDIFF(s.fecha_recepcion,s.fecha_emision) AS dias_recepcion\n FROM \n (SELECT *\n FROM seguimiento WHERE derivado_a='$id' and estado='2') as s \n INNER JOIN documentos as d ON s.nur=d.nur\n INNER JOIN acciones a ON s.accion=a.id\n WHERE d.original='1' ORDER BY s.fecha_recepcion DESC\"; //important\n return db::query(Database::SELECT, $sql)->execute();\n }", "public function getLastchange()\n {\n return $this->get(self::_LASTCHANGE);\n }", "public function getRev() : string;", "public function getRecipeHistory()\n {\n $recipe_ids = $this->getAttribute('recipe_history', array());\n return RecipePeer::retrieveByPKs($recipe_ids);\n }", "function getEspecialDisponibilidadPonderada() {\n \t\tglobal $mdb2;\n \t\tglobal $log;\n \t\tglobal $current_usuario_id;\n \t\tglobal $usr;\n\n\t\t//TRAE LAS PONDERACIONES DEL OBJETIVO ESPECIAL\n\t\t$ponderaciones_hora = $this->extra['ponderaciones'];\n\t\t//DATO PARA LA CONSULTA SQL, LISTA LAS HORAS DEL DÍA\n\t\t//SI ES 0 TRAE LAS 24 HORAS\n\t\t$ponderacion = $usr->getPonderacion();\n\n\t\tif ($ponderacion == null) {\n\t\t\t$ponderacion_id = 0;\n\t\t}\n\t\telse {\n\t\t\t$ponderacion_id = $ponderacion->ponderacion_id;\n\t\t}\n\n\t\t$sql = \"SELECT * FROM reporte.disponibilidad_resumen_global_ponderado_poritem(\".\n \t\t\t\tpg_escape_string($current_usuario_id).\",\".\n \t\t\t\tpg_escape_string($this->objetivo_id).\", \".\n \t\t\t\tpg_escape_string($ponderacion_id).\",' \".\n \t\t\t\tpg_escape_string($this->timestamp->getInicioPeriodo()).\"', '\".\n \t\t\t\tpg_escape_string($this->timestamp->getTerminoPeriodo()).\"')\";\n \t\t//echo '<3>'.$sql.'<br>';\n\n \t\t$res = & $mdb2->query($sql);\n \t\tif (MDB2::isError($res)) {\n \t\t\t$log->setError($sql, $res->userinfo);\n \t\t\texit();\n \t\t}\n\n \t\tif($row = $res->fetchRow()){\n \t\t\t$dom = new DomDocument();\n \t\t\t$dom->preserveWhiteSpace = FALSE;\n\t\t\t$dom->loadXML($row[\"disponibilidad_resumen_global_ponderado_poritem\"]);\n \t\t\t$xpath = new DOMXpath($dom);\n\t\t\tunset($row[\"disponibilidad_resumen_global_ponderado_poritem\"]);\n \t\t}\n\n\n \t\t$conf_pasos = $xpath->query(\"/atentus/resultados/propiedades/objetivos/objetivo/paso[@visible=1]\");\n \t\t$conf_eventos = $xpath->query(\"/atentus/resultados/propiedades/eventos/evento\");\n\t\t$conf_ponderaciones = $xpath->query(\"/atentus/resultados/propiedades/ponderaciones/item\");\n\n \t\t//SI NO HAY DATOS MOSTRAR MENSAJE\n \t\tif (!$conf_pasos->length or $xpath->query(\"/atentus/resultados/detalles/detalle/detalles/detalle\")->length == 0) {\n \t\t\t$this->resultado = $this->__generarContenedorSinDatos();\n \t\t\treturn;\n \t\t}\n\t\t//VALIDA QUE NO HAYA MAS DEL 100% DE PONDERACIONES\n\t\tforeach ($ponderaciones_hora as $value) {\n\t\t\t$suma_pond += $value->valor_ponderacion;\n\t\t}\n\n\t\tif (number_format($suma_pond, 2) > 100) {\n\t\t\t$this->resultado = 'EL TOTAL DE LAS PONDERACIONES DEBE SER IGUAL A 100%.<br>ES SUPERIROR AL 100%.';\n\t\t\treturn;\n\t\t}elseif (number_format($suma_pond, 2) < 100) {\n\t\t\t$this->resultado = 'EL TOTAL DE LAS PONDERACIONES DEBE SER IGUAL A 100%.<br>ES MENOR AL 100%.';\n\t\t\treturn;\n \t\t}\n\n \t\t$T =& new Template_PHPLIB(($this->extra[\"imprimir\"])?REP_PATH_PRINTTEMPLATES:REP_PATH_TABLETEMPLATES);\n \t\t$T->setFile('tpl_tabla', 'especial_disponibilidad_resumen.tpl');\n \t\t$T->setBlock('tpl_tabla', 'BLOQUE_EVENTOS_TITULOS', 'bloque_eventos_titulos');\n \t\t$T->setBlock('tpl_tabla', 'BLOQUE_EVENTOS', 'bloque_eventos');\n \t\t$T->setBlock('tpl_tabla', 'BLOQUE_PASOS', 'bloque_pasos');\n \t\t$T->setBlock('tpl_tabla', 'BLOQUE_TITULO_HORARIOS', 'bloque_titulo_horarios');\n \t\t$T->setBlock('tpl_tabla', 'BLOQUE_HORARIOS', 'bloque_horarios');\n\n \t\t$T->setVar('bloque_titulo_horarios', '');\n \t\t$T->setVar('bloque_eventos_titulos', '');\n \t\tforeach ($conf_eventos as $conf_evento) {\n \t\t\t$T->setVar('__evento_nombre', $conf_evento->getAttribute(\"nombre\"));\n \t\t\t$T->parse('bloque_eventos_titulos', 'BLOQUE_EVENTOS_TITULOS', true);\n \t\t}\n\n \t\t$linea = 1;\n \t\tforeach ($conf_pasos as $conf_paso) {\n\t\t\t$array_porcentaje_por_paso = array();\n\t\t\t$tag_paso = $xpath->query(\"//detalles/detalle/detalles/detalle[@paso_orden=\".$conf_paso->getAttribute(\"paso_orden\").\"]\")->item(0);\n \t\t\t$T->setVar('__print_class', ($linea % 2 == 0)?\"celdaIteracion2\":\"celdaIteracion1\");\n \t\t\t$T->setVar('__class', ($linea % 2 == 0)?\"celdanegra15\":\"celdanegra10\");\n \t\t\t$T->setVar('__pasoNombre', $conf_paso->getAttribute(\"nombre\"));\n\n \t\t\t$path_dato = \"//detalles/detalle[@nodo_id=0]/detalles/detalle[@paso_orden=\".$conf_paso->getAttribute(\"paso_orden\").\"]/estadisticas/estadistica/@porcentaje\";\n \t\t\t$diferencia = $xpath->evaluate(\"sum(\".$path_dato.\")\") - 100;\n \t\t\t$maximo = $xpath->evaluate($path_dato.\"[not(. < \".$path_dato.\")][1]\")->item(0)->value;\n\n\t\t\tforeach ($conf_ponderaciones as $conf_ponderacion) {\n\t\t\t\tif ($ponderaciones_hora[$conf_ponderacion->getAttribute('inicio')]->valor_ponderacion == 0) {\n\t\t\t\t\tcontinue;\n \t\t\t\t}\n\n\t\t\t\t$valor=$ponderaciones_hora[$conf_ponderacion->getAttribute('inicio')];\n\n\t\t\t\tforeach ($conf_eventos as $conf_evento) {\n\t\t\t\t\t$tag_dato_item = $xpath->query(\"detalles/detalle[@item_id=\".$conf_ponderacion->getAttribute('item_id').\"]/estadisticas/estadistica[@evento_id=\".$conf_evento->getAttribute(\"evento_id\").\"]\", $tag_paso)->item(0);\n\n\t\t\t\t\t// SE REGISTRAN LOS VALORES POR ITEM.\n\t\t\t\t\tif ($tag_dato_item == null) {\n\t\t\t\t\t\t$porcentaje = 0;\n\t\t\t\t\t}else {\n\t\t\t\t\t\t$porcentaje = $tag_dato_item->getAttribute(\"porcentaje\");\n\t\t\t\t\t}\n\t\t\t\t\t$array_porcentaje_por_paso[$conf_evento->getAttribute(\"evento_id\")] += $porcentaje* ($valor->valor_ponderacion/100);\n \t\t\t\t}\n\n\t\t\t}\n\n\t\t\t$T->setVar('bloque_eventos', '');\n\t\t\tforeach ($conf_eventos as $conf_evento) {\n\n\t\t\t\t$T->setVar('__evento_valor', number_format($array_porcentaje_por_paso[$conf_evento->getAttribute(\"evento_id\")], 2, '.', ''));\n \t\t\t\t$T->setVar('__evento_color', ($conf_evento->getAttribute(\"color\") == \"f0f0f0\")?\"b2b2b2\":$conf_evento->getAttribute(\"color\"));\n \t\t\t\t$T->parse('bloque_eventos', 'BLOQUE_EVENTOS', true);\n \t\t\t}\n\n \t\t\t$T->parse('bloque_pasos', 'BLOQUE_PASOS', true);\n \t\t\t$linea++;\n\n \t\t}\n \t\t$T->parse('bloque_horarios', 'BLOQUE_HORARIOS', true);\n\n \t\t$this->tiempo_expiracion = (strtotime($xpath->query(\"//fecha_expiracion\")->item(0)->nodeValue) - strtotime($xpath->query(\"//fecha\")->item(0)->nodeValue));\n \t\t$this->resultado = $T->parse('out', 'tpl_tabla');\n \t}", "function detect_dispensing_changes($order) {\n\n $day_changes = [];\n $qty_changes = [];\n $mysql = new Mysql_Wc();\n\n //Normall would run this in the update_order_items.php but we want to wait for all the items to change so that we don't rerun multiple times\n foreach ($order as $item) {\n\n //! $updated['order_date_dispensed'] otherwise triggered twice, once one stage: Printed/Processed and again on stage:Dispensed\n if ($item['days_dispensed_default'] != $item['days_dispensed_actual'])\n $day_changes[] = \"rx:$item[rx_number] qty:$item[qty_dispensed_default] >>> $item[qty_dispensed_actual] days:$item[days_dispensed_default] >>> $item[days_dispensed_actual] refills:$item[refills_dispensed_default] >>> $item[refills_dispensed_actual] item:\".json_encode($item);\n\n //! $updated['order_date_dispensed'] otherwise triggered twice, once one stage: Printed/Processed and again on stage:Dispensed\n if ($item['qty_dispensed_default'] != $item['qty_dispensed_actual'] OR (( ! is_null($item['refills_dispensed_actual']) AND $item['refills_dispensed_default']+0) != $item['refills_dispensed_actual']))\n $qty_changes[] = \"rx:$item[rx_number] qty:$item[qty_dispensed_default] >>> $item[qty_dispensed_actual] days:$item[days_dispensed_default] >>> $item[days_dispensed_actual] refills:$item[refills_dispensed_default] >>> $item[refills_dispensed_actual] item:\".json_encode($item);\n\n //! $updated['order_date_dispensed'] otherwise triggered twice, once one stage: Printed/Processed and again on stage:Dispensed\n $sig_qty_per_day_actual = $item['days_dispensed_actual'] ? round($item['qty_dispensed_actual']/$item['days_dispensed_actual'], 1) : 'NULL';\n $mysql->run(\"\n UPDATE gp_rxs_single SET sig_qty_per_day_actual = $sig_qty_per_day_actual WHERE rx_number = $item[rx_number]\n \");\n\n if ($item['days_dispensed_actual'] AND $item['refills_dispensed'] AND ! $item['qty_left'] AND ($item['days_dispensed_actual'] > DAYS_MAX OR $item['days_dispensed_actual'] < DAYS_MIN))\n log_error(\"check days dispensed is not within limits and it's not out of refills: \".DAYS_MIN.\" < $item[days_dispensed_actual] < \".DAYS_MAX, $item);\n else if ($sig_qty_per_day_actual != 'NULL' AND $sig_qty_per_day_actual != round($item['sig_qty_per_day_default'], 1) AND $sig_qty_per_day_actual != round($item['sig_qty_per_day_default']*2, 1)) { // *2 is a hack for \"as needed\" being different right now\n log_error(\"sig parsing error Updating to Actual Qty_Per_Day '$item[sig_actual]' $item[sig_qty_per_day_default] (default) != $sig_qty_per_day_actual $item[qty_dispensed_actual]/$item[days_dispensed_actual] (actual)\", $item);\n }\n }\n\n log_notice(\"update_order_cp detect_dispensing_changes\", ['order' => $order, 'day_changes' => $day_changes, 'qty_changes' => $qty_changes]);\n return ['day_changes' => $day_changes, 'qty_changes' => $qty_changes];\n }", "public function getEntityRenderHistory() {\n if (empty($this->entityRenderHistory)) {\n $this->entityRenderHistory = \\Drupal::service('views_exclude_previous.render_history');\n }\n return $this->entityRenderHistory;\n }", "protected function getGitRevision() {}", "public function getHistory()\n\t{\n\t\t$log = $this->getLog();\n\t\t$history = array($this->initial);\n\t\t/* if our log is empty (or incorrect), then we cannot walk it at all */\n\t\tif (!isset($log[$this->initial]))\n\t\t\treturn $history;\n\t\t$next = $log[$this->initial]->next_action_id;\n\t\t/* log always has the latest entry,\n\t\t\t so build it walking to the next item,\n\t\t\t starting from the initial step */\n\t\twhile (!is_null($next)) {\n\t\t\t$history[] = $next;\n\t\t\tif (isset($log[$next])) {\n\t\t\t\t$next = $log[$next]->next_action_id;\n\t\t\t} else {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn $history;\n\t}", "public function getHistory() {\n if ($this->graded_testcases === null) {\n $this->loadTestcases();\n }\n return $this->history;\n }", "protected function loadRevisions() {\n\t\t$latestRevId = $this->getTitle()->getLatestRevID();\n\n\t\tif ( $latestRevId === 0 ) {\n\t\t\t// XXX: Better message\n\t\t\treturn Status::newFatal( 'missing-article', $this->getTitle()->getPrefixedText(), '' );\n\t\t}\n\n\t\t$latestRevision = Revision::newFromId( $latestRevId );\n\n\t\tif ( !$latestRevId ) {\n\t\t\tthrow new MWException( \"latest revision not found: $latestRevId\" );\n\t\t}\n\n\t\treturn $this->getStatus( $this->getRequest(), $latestRevision );\n\t}", "private function verrouPoser(){\n\t\t$verrou['etat'] = '';\n\t\tself::verrouSupprimer();\n\t\tif($this->formulaire['cle'] != ''){\n\t\t\t$verrou = self::verrouRechercher();\n\t\t\tif(empty($verrou)){\n\t\t\t\t$verrou = self::verrouInserer();\n\t\t\t\t$verrou['etat'] = 'ok';\n\t\t\t}else{\n\t\t\t\t$verrou['etat'] = 'nok';\n\t\t\t\t$verrou['message'] = \"L'enregistrement \".$verrou['ad_ve_cle'].\" est actuellement verrouillé par \".$verrou['ad_ve_nom'].\" depuis le \".$verrou['ad_ve_date'].\".\\nLes modifications, enregistrement et suppression sont donc impossibles sur cet enregistrement.\";\n\t\t\t}//end if\n\t\t}//end if\n\t\treturn $verrou;\n\t}", "public function getPubRevistasCienInIndexadas()\n {\n return $this->pubRevistasCienInIndexadas;\n }", "function _remove_expired_products(){\n\t\t$this->loadModel('Produit');\n\t\t$produits = $this->Produit->Historique->find('all',array('fields'=>array('Historique.date_expiration',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'Historique.produit_id',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'Historique.stock_id',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'sum(Historique.debit) as debit',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'sum(Historique.credit) as credit',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'Produit.*'\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'conditions'=>array(\"Historique.date_expiration <=\"=>date('Y-m-d'),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'Historique.date_expiration !='=>'0000-00-00'\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'group'=>array('Historique.stock_id','Historique.produit_id','Historique.date_expiration')\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t));\n\t\t$counter=0;\n\t\tforeach($produits as $produit){\n\t\t\t$qty=$produit['Historique']['debit']-$produit['Historique']['credit'];\n\t\t\tif($qty>0){\n\t\t\t\t//create la perte\n\t\t\t\t$perte['id']=null;\n\t\t\t\t$perte['stock_id']=$produit['Historique']['stock_id'];\n\t\t\t\t$perte['produit_id']=$produit['Historique']['produit_id'];\n\t\t\t\t$perte['quantite']=$qty;\n\t\t\t\t$perte['PU']=$this->Product->productPrice($produit['Historique']['produit_id']);\n\t\t\t\t$perte['montant']=$perte['PU']*$perte['quantite'];\n\t\t\t\t$perte['date']=date('Y-m-d');\n\t\t\t\t$perte['date_expiration']=$produit['Historique']['date_expiration'];\n\t\t\t\t$perte['nature']='expiration';\n\t\t\t\t$perte['personnel_id']=11; //id de armand\n\t\t\t\t//decreasing the stock level\n\t\t\t\t$perteData['Perte']=$perte;\n\t\t\t\t$this->Product->stock($perteData,'credit',$produit);\n\t\t\t\t//Saving the loss of goods\n\t\t\t\t$this->Produit->Perte->save($perteData);\n\t\t\t\t//increasing the counter\n\t\t\t\t$counter++;\n\t\t\t}\n\t\t}\n\t}", "private function getPreviousVersion() {\n\t\t$query = DB::select()->from('settings')->where('key', '=', 'version');\n\t\t$result = $query->execute();\n\n\t\tif ($result->count() == 0 || (isset($result[0]) && $result[0]['value'] == false)) {\n\t\t\t$this->previous_version = false;\n\t\t\t// reset($this->versions);\n\t\t\t// current($this->versions);\n\t\t\t$this->actual_version = key($this->versions);\n\t\t} else {\n\t\t\t$this->acutal_version = $result[0]['value'];\n\t\t}\n\t}", "public function getAffectedVersions()\n {\n return $this->affectedVersions;\n }", "function edithistory_info()\n{\n\treturn array(\n\t\t\"name\"\t\t\t\t=> \"Edit History Log\",\n\t\t\"description\"\t\t=> \"Allows you to log all edits made to posts.\",\n\t\t\"website\"\t\t\t=> \"http://galaxiesrealm.com/index.php\",\n\t\t\"author\"\t\t\t=> \"Starpaul20\",\n\t\t\"authorsite\"\t\t=> \"http://galaxiesrealm.com/index.php\",\n\t\t\"version\"\t\t\t=> \"1.2.2\",\n\t\t\"guid\"\t\t\t\t=> \"b8223bbc5a67bc02ea405bcc4101a56c\",\n\t\t\"compatibility\"\t\t=> \"16*\"\n\t);\n}", "function grabar_experiencia($datos)\n\t{\n\n\t\tif ($this->exist(\"$this->catalogo.catalogo_proveedor_experiencia\",'EMPRESAREFERENCIA',\" WHERE EMPRESAREFERENCIA ='$datos[EMPRESAREFERENCIA]'\"))\n\t\t{\n\t\t\t$this->update(\"$this->catalogo.catalogo_proveedor_experiencia\",$datos, \" WHERE EMPRESAREFERENCIA ='$datos[EMPRESAREFERENCIA]' \");\n\t\t}\n\t\telse {\n\t\t\t$this->insert_reg(\"$this->catalogo.catalogo_proveedor_experiencia\", $datos);\n\t\t}\n\t\treturn;\n\t}", "public function history()\n\t{\n\t\t$res = $this->hasManyThrough(Revision::class, RevisionSet::class, 'id', 'revision_set_id', 'revision_set_id')\n\t\t\t->where(\n\t\t\t\tfunction ($query) {\n\t\t\t\t\treturn $query->where('revisions.created_at', '<', $this->created_at);\n\t\t\t\t})\n\t\t\t->select('revisions.id', 'revisions.title', 'revisions.created_at', 'revisions.layout_name', 'revisions.layout_version');\n\t\treturn $res;\n\t}", "static public function ctrHistorial(){\n\n\t\t// FACTURAS\n\t\t$tabla = \"cta\";\n\t\t$respuesta = ModeloVentas::mdlHistorial($tabla);\n\t\t\n\n\t\tforeach ($respuesta as $key => $value) {\n\n\t\t\t// veo los items de la factura\n\t\t\t$tabla = \"ctaart\";\n\t\t\t$repuestos = ModeloVentas::mdlHistorialCta_art($tabla,$value['idcta']);\n\t\t\t\n\t\t\t$productos='';\n\n\t\t\tfor($i = 0; $i < count($repuestos)-1; $i++){\n\t\t\t\t\n\t\t\t\t$productos = '{\"id\":\"'.$repuestos[$i][\"idarticulo\"].'\",\n\t\t\t \"descripcion\":\"'.$repuestos[$i][\"nombre\"].'\",\n\t\t\t \"cantidad\":\"'.$repuestos[$i][\"cantidad\"].'\",\n\t\t\t \"precio\":\"'.$repuestos[$i][\"precio\"].'\",\n\t\t\t \"total\":\"'.$repuestos[$i][\"precio\"].'\"},';\n\t\t\t}\n\n\t\t\t$productos = $productos . '{\"id\":\"'.$repuestos[count($repuestos)-1][\"idarticulo\"].'\",\n\t\t\t \"descripcion\":\"'.$repuestos[count($repuestos)-1][\"nombre\"].'\",\n\t\t\t \"cantidad\":\"'.$repuestos[count($repuestos)-1][\"cantidad\"].'\",\n\t\t\t \"precio\":\"'.$repuestos[count($repuestos)-1][\"precio\"].'\",\n\t\t\t \"total\":\"'.$repuestos[count($repuestos)-1][\"precio\"].'\"}';\n\n\t\t\t$productos =\"[\".$productos.\"]\";\n\t\t\t\n\t\t\techo '<pre>'; print_r($productos); echo '</pre>';\n\t\t\t\n\t\t\t// datos para cargar la factura\n\t\t\t$tabla = \"ventas\";\n\t\t\t$datos = array(\"id_vendedor\"=>1,\n\t\t\t\t\t\t \"fecha\"=>$value['fecha'],\n\t\t\t\t\t\t \"id_cliente\"=>$value[\"idcliente\"],\n\t\t\t\t\t\t \"codigo\"=>$key,\n\t\t\t\t\t\t \"nrofc\"=>$value[\"nrofc\"],\n\t\t\t\t\t\t \"detalle\"=>strtoupper($value[\"obs\"]),\n\t\t\t\t\t\t \"productos\"=>$productos,\n\t\t\t\t\t\t \"impuesto\"=>0,\n\t\t\t\t\t\t \"neto\"=>0,\n\t\t\t\t\t\t \"total\"=>$value[\"importe\"],\n\t\t\t\t\t\t \"adeuda\"=>$value[\"adeuda\"],\n\t\t\t\t\t\t \"obs\"=>\"\",\n\t\t\t\t\t\t \"metodo_pago\"=>$value[\"detallepago\"],\n\t\t\t\t\t\t \"fechapago\"=>$value['fecha']);\n\n\t\t\t$respuesta = ModeloVentas::mdlIngresarVenta($tabla, $datos);\n\t\t\t\n\n\t\t}\n\t\t\n\t\treturn $respuesta;\n\n\t\t\n\t\t\n\t}", "public function getLastChange()\n {\n return $this->get(self::_LAST_CHANGE);\n }", "public function getLastChange()\n {\n return $this->get(self::_LAST_CHANGE);\n }", "function\tgetVerOffs() {\n\t\treturn $this->verOffs ;\n\t}", "static function listNextExhibit(){\n\t\t$res = requete_sql(\"SELECT id FROM exhibit WHERE begin_date > now() AND visible = TRUE ORDER BY begin_date ASC\");\n\t\t$res = $res->fetchAll(PDO::FETCH_ASSOC);\n\t\t$list = array();\n\t\tforeach ($res as $exhibit) {\n\t\t\t$exhibit = new Exhibit($exhibit['id']);\n\t\t\tarray_push($list, $exhibit);\n\t\t}\n\t\treturn $list;\n\t}", "public function get_Ecriture_Exercice()\n {\n global $Connexion;\n\n if ((is_null($this->Ecriture_Exercice))&&(!is_null($this->ID_Exercice)))\n {\n $query=\"SELECT * FROM `ecriture` WHERE ID_Exercice = \".$this->ID_Exercice.\" ORDER BY ID_Ecriture\";\n $result=$Connexion->sql_query($query);\n while($row = $Connexion->sql_fetch_object($result,'MyORM\\ecriture'))\n {\n $this->add_Ecriture_Exercice($row);\n }\n }\n return ($this->Ecriture_Exercice);\n }", "function getFileRevision() {\n\t\treturn $this->getData('fileRevision');\n\t}", "public function jurnal_umum_rev()\n\t{\n\t\t$data['container'] = 'transaction/jurnal_umum_rev';\n\t\t$data['current_date'] = $this->format_date_detail($this->current_date(),'id',false,'/');\n\t\t$this->load->view('core',$data);\n\t}", "function test_rev(){\n global $ID,$conf,$REV;\n\n $ID = 'wiki:syntax';\n $filename = $conf['datadir'].'/wiki/syntax.txt';\n $rev = filemtime($filename);\n $REV = $rev - 100;\n\n $info = $this->_get_expected_pageinfo();\n $info['id'] = 'wiki:syntax';\n $info['namespace'] = 'wiki';\n $info['meta'] = p_get_metadata($ID);\n $info['rev'] = $REV;\n $info['currentrev'] = $rev;\n $info['filepath'] = str_replace('pages','attic',substr($filename,0,-3).$REV.'.txt.gz');\n\n $this->assertEquals($info, pageinfo());\n $this->assertEquals($rev-100, $REV);\n }", "public function getLastSaved(){\n return [];\n }", "public function getInfosActualite() {\n $listeInfos = $this->getInfos(\"actualite\");\n return $listeInfos;\n }", "function getLastViewed();", "public function bExamen_e(){\r\n\t\t $c=0;\r\n $sql=\"select * from texamen where descripcion like'$this->descripcion%' and tipo='ESPECIALES' \";\r\n\t\t$cursor=parent::ejecuta_sql($sql);\t\t \r\n\t\tif($row= parent::proxima_tupla($cursor))\r\n\t\t {\r\n\t\t\t DO{\r\n\t\t\t \t$fila[$c][1]=$row[\"id_examen\"];\r\n\t\t\t\t$fila[$c][2]=$row[\"descripcion\"];\r\n\t\t\t\t$fila[$c][3]=$row[\"tipo\"];\r\n\t\t\t\t$c++;\r\n\t\t\t\t}while($row= parent::proxima_tupla($cursor));\r\n\t\t }\t\t\r\n\t\tif ( $fila>0 )\r\n\t\t\treturn $fila;\r\n\t\telse\r\n\t\t\treturn -1;\r\n\t\t\t\r\n\t\t\tparent::cerrar_bd();\r\n }", "public function getRevision()\n {\n return $this->_rev;\n }", "protected function cleanHistory()\n {\n $createdAt = new \\DateTime();\n $logs = $this->instance->getLogs();\n foreach($logs as $log) {\n if(($createdAt->getTimestamp() - $log->getCreatedAt()->getTimestamp()) > $this->expiredTimestamp) {\n $this->instance->removeLog($log);\n }\n }\n }", "public function ConsultarModificaciones(){\n return $this->conexion->affected_rows;\n }", "public function detectChanges()\n {\n return [];\n }" ]
[ "0.6198721", "0.5919873", "0.5760341", "0.5755636", "0.5682704", "0.5631952", "0.56266254", "0.5596618", "0.5556943", "0.5546246", "0.5534228", "0.55054635", "0.5447962", "0.5391425", "0.5381932", "0.5375068", "0.53482026", "0.53439814", "0.5238146", "0.52365464", "0.5226048", "0.52143323", "0.5212244", "0.51818556", "0.51735336", "0.5160596", "0.51426136", "0.5128402", "0.511482", "0.511482", "0.51039755", "0.5092375", "0.5088606", "0.5066916", "0.506488", "0.5050677", "0.50428003", "0.50390387", "0.50384814", "0.50218743", "0.5018479", "0.5015715", "0.5001505", "0.49976882", "0.49975944", "0.4987985", "0.49820995", "0.49818912", "0.49787337", "0.49757808", "0.49696526", "0.49648216", "0.49413225", "0.49300638", "0.49213582", "0.49126905", "0.49082935", "0.49065325", "0.49058285", "0.49044862", "0.48991102", "0.48990855", "0.48967266", "0.4895556", "0.48939922", "0.4891793", "0.48908862", "0.48906347", "0.48865062", "0.48818514", "0.48741618", "0.4871815", "0.48715398", "0.48693946", "0.48679265", "0.486653", "0.48641", "0.4861661", "0.4859898", "0.4858519", "0.4851628", "0.48441577", "0.4837848", "0.4834817", "0.48323002", "0.4820681", "0.48196605", "0.48172873", "0.48121613", "0.47973478", "0.47944906", "0.47867092", "0.4786571", "0.4786507", "0.47846097", "0.4783741", "0.47796676", "0.47785902", "0.47766626", "0.4775274", "0.4774729" ]
0.0
-1
obtiene la informacion de los contratos sin revision por parte de los contratistas
public function indexSinRevisionContratista(Request $request){ $criterio = $request->criterio; $buscar = $request->buscar; $b_etapa = $request->b_etapa; $b_manzana = $request->b_manzana; $b_lote = $request->b_lote; $fecha = Carbon::now(); $mytime = $fecha->toTimeString(); $hoy = $fecha->toDateString(); $query = Entrega::join('contratos','entregas.id', '=','contratos.id') ->join('revisiones_previas','revisiones_previas.id', '=','contratos.id') ->join('expedientes','contratos.id','=','expedientes.id') ->join('creditos', 'contratos.id', '=', 'creditos.id') ->join('lotes', 'creditos.lote_id', '=', 'lotes.id') ->join('licencias', 'lotes.id', '=', 'licencias.id') ->join('etapas', 'lotes.etapa_id', '=', 'etapas.id') ->join('clientes', 'creditos.prospecto_id', '=', 'clientes.id') ->join('personal as c', 'clientes.id', '=', 'c.id') ->select('contratos.id as folio', 'contratos.equipamiento', DB::raw("CONCAT(c.nombre,' ',c.apellidos) AS nombre_cliente"), 'creditos.fraccionamiento as proyecto', 'creditos.etapa', 'creditos.manzana', 'creditos.num_lote', 'contratos.fecha_status', 'contratos.status', 'contratos.equipamiento', 'expedientes.fecha_firma_esc', 'lotes.fecha_entrega_obra', 'lotes.id as loteId', 'entregas.revision_previa', 'entregas.fecha_program', 'revisiones_previas.id_contratista', DB::raw('DATEDIFF(current_date,entregas.fecha_program) as diferencia') ); $contratos = $query ->where('contratos.status', '!=', 0) ->where('contratos.status', '!=', 2) ->where('entregas.fecha_program','!=',NULL) ->where('revisiones_previas.id_contratista','=',Auth::user()->id) // filtra solo por el id ->where('entregas.revision_previa','!=',0); switch($criterio){ // filtros por criterio seleccionado case 'c.nombre':{ if($buscar != '') $contratos = $contratos->where(DB::raw("CONCAT(c.nombre,' ',c.apellidos)"), 'like', '%'. $buscar . '%'); break; } case 'entregas.fecha_program':{ if($buscar != '') $contratos = $contratos->whereBetween($criterio, [$buscar, $b_etapa]); break; } case 'contratos.id':{ if($buscar != '') $contratos = $contratos->where($criterio, '=', $buscar); break; } case 'lotes.fraccionamiento_id':{ if($buscar != '') $contratos = $contratos->where($criterio, '=', $buscar); if($b_etapa != '') $contratos = $contratos->where('lotes.etapa_id', '=', $b_etapa); if($b_lote != '') $contratos = $contratos->where('lotes.num_lote', '=', $b_lote); if($b_manzana != '') $contratos = $contratos->where('lotes.manzana', 'like', '%'. $b_manzana . '%'); break; } } $contratos = $contratos->orderBy('licencias.avance','desc') ->orderBy('lotes.fecha_entrega_obra','desc') ->paginate(8); return [ 'pagination' => [ 'total' => $contratos->total(), 'current_page' => $contratos->currentPage(), 'per_page' => $contratos->perPage(), 'last_page' => $contratos->lastPage(), 'from' => $contratos->firstItem(), 'to' => $contratos->lastItem(), ],'contratos' => $contratos, 'hora' => $mytime, 'hoy' => $hoy, ]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getClaseDictamen(){\n\t\treturn \"revision\";\n\t}", "public function getRevision() ;", "public function getRevision() {}", "public function getRevision();", "static public function ctrMensajeSinRevisar(){\n\n\t\t\t$tabla = \"mensajes\";\n\n\t\t\t$respuesta = ModeloMensajes::mdlMensajeSinRevisar($tabla);\n\n\t\t\t$sumaRevision = 0;\n\n\t\t\tforeach ($respuesta as $key => $value) {\n\n\t\t\t\tif($value[\"revision\"] == 0){\n\n\t\t\t\t\t++$sumaRevision;\n\n\t\t\t\t\techo '<span class=\"badge badge-danger navbar-badge\">'.$sumaRevision.'</span>';\n\t\t\t\t\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}", "public function getRevisioned() ;", "public function revision($id) {\n\t\tif ($this -> request -> is('post') || $this -> request -> is('put')) {\n\t\t\tif ($this -> request -> data['SolicitudesTitulacion']['tipos_especies_valorada_id']) {\n\t\t\t\tif ($this -> SolicitudesTitulacion -> save($this -> request -> data)) {\n\t\t\t\t\t$this -> Session -> setFlash(__('Se registró el cambio'), 'crud/success');\n\t\t\t\t\t$this -> redirect(array('action' => 'index'));\n\t\t\t\t} else {\n\t\t\t\t\t$this -> Session -> setFlash(__('No se pudo registrar el cambio. Por favor, intente de nuevo.'), 'crud/error');\n\t\t\t\t\t$this -> redirect(array('action' => 'index'));\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$this -> Session -> setFlash(__('No se pudo registrar el cambio. Seleccione el tipo de especie valorada. Por favor, intente de nuevo.'), 'crud/error');\n\t\t\t\t$this -> redirect(array('action' => 'index'));\n\t\t\t}\n\t\t} else {\n\t\t\tif (!$id) {\n\n\t\t\t} else {\n\t\t\t\t$this -> loadModel('Archivo');\n\t\t\t\t$archivos = $this -> Archivo -> find('all', array('conditions' => array('Archivo.model' => 'SolicitudesTitulacion', 'Archivo.foreign_key' => $id)));\n\t\t\t\t//$estadosSolicitudesTitulaciones = $this -> SolicitudesTitulacion -> EstadosSolicitudesTitulacion -> find('list');\n\t\t\t\t$estadosSolicitudesTitulaciones = $this -> SolicitudesTitulacion -> EstadosSolicitudesTitulacion -> find(\"list\", array(\"fields\" => array(\"id\", \"est_estado\")));\n\t\t\t\tunset($estadosSolicitudesTitulaciones[4]);\n\t\t\t\t//Quito el estado de refrendado\n\t\t\t\t//debug($estadosSolicitudesTitulaciones);\n\t\t\t\t$tiposEspeciesValoradas = $this -> SolicitudesTitulacion -> TiposEspeciesValorada -> find('list');\n\t\t\t\t$this -> set(compact('estadosSolicitudesTitulaciones', 'tiposEspeciesValoradas'));\n\t\t\t\t$this -> set('archivos', $archivos);\n\t\t\t\t$solicitud = $this -> SolicitudesTitulacion -> read(null, $id);\n\t\t\t\t$this -> request -> data = $solicitud;\n\t\t\t\t//$this -> set('solicitud', $solicitud);\n\t\t\t}\n\t\t}\n\t}", "public function getRev() : string;", "public function getAllRevisions()\n {\n // Retrieves username associated with an id. \n $this->ui_ids = array();\n\n /**\n * Retrieves list of previous versions of data dictionary.\n */\n $pid = $_GET[\"pid\"];\n $previous_versions = array();\n $sql = \"select p.pr_id, p.ts_approved, p.ui_id_requester, p.ui_id_approver,\n if(l.description = 'Approve production project modifications (automatic)',1,0) as automatic\n from redcap_metadata_prod_revisions p left join redcap_log_event l\n on p.project_id = l.project_id and p.ts_approved*1 = l.ts\n where p.project_id = $pid and p.ts_approved is not null order by p.pr_id\";\n\n if ($result = $this->query($sql))\n {\n // Cycle through results\n $rev_num = 0;\n $num_rows = $result->num_rows;\n while ($row = $result->fetch_object())\n {\n if ($rev_num == 0)\n {\n $previous_versions[] = array(\n \"id\" => $row->pr_id,\n \"label\" => \"Moved to Production\",\n \"requester\" => $this->getUsernameFirstLast($row->ui_id_requester),\n \"approver\" => $this->getUsernameFirstLast($row->ui_id_approver),\n \"automatic_approval\" => $row->automatic,\n \"ts_approved\" => $row->ts_approved,\n );\n }\n else\n {\n $previous_versions[] = array(\n \"id\" => $row->pr_id,\n \"label\" => \"Production Revision #$rev_num\",\n \"requester\" => $this->getUsernameFirstLast($row->ui_id_requester),\n \"approver\" => $this->getUsernameFirstLast($row->ui_id_approver),\n \"automatic_approval\" => $row->automatic,\n \"ts_approved\" => $row->ts_approved\n );\n }\n\n if ($rev_num == $num_rows - 1)\n {\n // Current revision will be mapped to timestamp and approver of last row\n $current_revision_ts_approved = $row->ts_approved;\n $current_revision_approver = $this->getUsernameFirstLast($row->ui_id_approver);\n $current_revision_requester = $this->getUsernameFirstLast($row->ui_id_requester);\n $current_revision_automatic = $row->automatic;\n }\n\n $rev_num++;\n }\n\n $result->close();\n \n // Sort by most recent version.\n $previous_versions = array_reverse($previous_versions);\n }\n\n // Shift timestamps, approvers, requesters, and automatic approval down by one,\n // as the correct info for each one is when the previous version was archived. \n $last_key = null;\n foreach($previous_versions as $key => $version)\n {\n if ($last_key !== null)\n {\n $previous_versions[$last_key][\"ts_approved\"] = $previous_versions[$key][\"ts_approved\"];\n $previous_versions[$last_key][\"requester\"] = $previous_versions[$key][\"requester\"];\n $previous_versions[$last_key][\"approver\"] = $previous_versions[$key][\"approver\"];\n $previous_versions[$last_key][\"automatic_approval\"] = $previous_versions[$key][\"automatic_approval\"];\n }\n $last_key = $key;\n }\n\n // Get correct production timestamp,\n // and the person who moved it to production\n if (!empty($previous_versions))\n {\n // Get correct production timestamp\n $sql = \"select production_time from redcap_projects where project_id = $pid\";\n if ($result = $this->query($sql))\n {\n while ($row = $result->fetch_object()){\n $timestamp = $row->production_time;\n $previous_versions[sizeof($previous_versions)-1][\"ts_approved\"] = $timestamp;\n }\n $result->close();\n }\n\n if (!empty($timestamp))\n {\n // Retrieve person who moved to production, as it's stored separately. \n $sql = \"select u.ui_id from redcap_user_information u, redcap_log_event l\n where u.username = l.user and l.description = 'Move project to production status' and l.project_id = $pid \n and l.ts = '\" . str_replace(array(' ',':','-'), array('','',''), $timestamp) . \"' order by log_event_id desc limit 1\";\n\n if ($result = $this->query($sql))\n {\n while ($row = $result->fetch_object()){\n $previous_versions[sizeof($previous_versions)-1][\"approver\"] = $this->getUsernameFirstLast($row->ui_id);\n }\n $result->close();\n }\n }\n }\n\n // Add current revision\n if (isset($current_revision_approver) && \n isset($current_revision_ts_approved) && \n isset($current_revision_automatic) && \n isset($current_revision_requester))\n {\n array_unshift($previous_versions, array(\n \"id\" => \"current\",\n \"label\" => \"Production Revision #$rev_num <b>(Current Revision)</b>\",\n \"requester\" => $current_revision_requester,\n \"approver\" => $current_revision_approver,\n \"automatic_approval\" => $current_revision_automatic,\n \"ts_approved\" => $current_revision_ts_approved\n ));\n }\n\n return $previous_versions;\n }", "public function revisiones($folio)\n {\n $bd = new basedatos();\n $bd->conectar();\n $sql=\"SELECT id, folioTramite, idDepto, fechaEntrada, fechaSalida, idRecibio, idEntrego, infoEstado FROM infotramites WHERE folioTramite=\".$folio;\n $bd->crearComando($sql);\n $bd->ejecutarComando();\n $numRevisiones=$bd->filasEncontradas();\n if($numRevisiones==0)\n {\n $bd->desconectar();\n return false;\n }\n else if($numRevisiones>0)\n {\n //revisiones=infodocumentos \n $revisiones = array ();\n WHILE($revision=$bd->obtenerRegistros())\n {\n $infoDoc = new infodocumento($revision['id'],$revision['folioTramite'],$revision['idDepto']);\n $infoDoc->setFInicio($revision['fechaEntrada']);\n $infoDoc->setFFin($revision['fechaSalida']);\n $infoDoc->setIdRecibio($revision['idRecibio']);\n $infoDoc->setIdEntrego($revision['idEntrego']);\n $infoDoc->setEstado($revision['infoEstado']);\n \n $revisiones[]=$infoDoc;\n }\n $bd->desconectar();\n return $revisiones;\n }\n }", "function generar_estado_codigo()\n\t{\n\t\t$this->manejador_interface->mensaje(\"Calculando revisiones {$this->identificador} \" , false);\n\t\t$this->generar_checksum();\n\n\t\t//Esto simplemente se calcula para darle una idea al pobre chango de cual\n\t\t//fue la ultima revision que cargo en la base,util para el revert\n\t\t$svn = new toba_svn();\n\t\tif ($svn->hay_cliente_svn()) {\n\t\t\t$max_rev = 0;\n\t\t\t$revisiones = $svn->get_revisiones_dir_recursivos($this->get_dir_dump());\n\t\t\t$max_rev = 0;\n\t\t\tif (! empty($revisiones)) {\n\t\t\t\tforeach($revisiones as $revision) {\n\t\t\t\t\tif (isset($revision['error'])) {\n\t\t\t\t\t\tthrow new toba_error_def($revision['error']);\n\t\t\t\t\t}\n\t\t\t\t\tif ($max_rev < intval($revision['revision'])) {\n\t\t\t\t\t\t$max_rev = intval($revision['revision']);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t$this->manejador_interface->progreso_avanzar();\n\t\t\t$this->instancia->set_revision_proyecto($this->identificador, $max_rev);\n\t\t}\n\t\t$this->manejador_interface->progreso_fin();\n\t}", "public function byConsulta_revision($idrevision) {\n $criteria = new CDbCriteria;\n $criteria->addColumnCondition(array('id_revision' => $idrevision));\n $criteria->order = 'fecha_revision ASC';\n $data = self::model()->findAll($criteria);\n return $data;\n }", "function logAllToRevision($log)\n{\n $revisions = array();\n if ($log != \"\" && preg_match_all('/commit\\s+(\\w{40})\\n/i', $log, $matches)) {\n $data = preg_split('/commit\\s+\\w{40}\\n/i', $log);\n foreach ($matches[1] as $k => $match) {\n preg_match('/Author:\\s+([^\\n]+)\\n/i', $data[$k + 1], $author);\n if (isset($author[1])) {\n $author = htmlentities($author[1]);\n $data[$k + 1] = preg_replace('/Author:\\s+[^\\n]+\\n/i', '', $data[$k + 1]);\n } else $author = '';\n\n preg_match('/Date:\\s+([^\\n]+)\\n/i', $data[$k + 1], $date);\n if (isset($date[1])) {\n $date = $date[1];\n $data[$k + 1] = preg_replace('/Date:\\s+[^\\n]+\\n/i', '', $data[$k + 1]);\n } else $date = '';\n\n $comment = trim($data[$k + 1]);\n\n $revisions[$match] = array(\n 'hash' => $match,\n 'author' => $author,\n 'date' => $date, //date('Y-m-d H:i:s', strtotime($date))\n 'comment' => $comment\n );\n }\n }\n return $revisions;\n}", "public function getRevisions(): array;", "public function storeRevision(Request $request){\n if(!$request->ajax() || Auth::user()->rol_id == 11)return redirect('/');\n\n // datos principales de lote a revision \n $datosLote = Entrega::join('contratos','entregas.id','=','contratos.id')\n ->join('creditos','contratos.id','=','creditos.id')\n ->join('lotes','creditos.lote_id','lotes.id')\n ->join('clientes', 'creditos.prospecto_id', '=', 'clientes.id')\n ->join('personal as c', 'clientes.id', '=', 'c.id')\n ->select('contratos.id as folio', 'creditos.modelo','creditos.fraccionamiento',\n 'creditos.etapa','creditos.manzana','creditos.num_lote',\n DB::raw(\"CONCAT(c.nombre,' ',c.apellidos) AS nombre_cliente\"),\n 'c.celular', \n DB::raw(\"CONCAT(lotes.calle,' Num.',lotes.numero) AS direccion\"),\n 'lotes.manzana', 'lotes.aviso','lotes.id as lote_id',\n DB::raw('DATEDIFF(current_date,entregas.fecha_entrega_real) as diferencia'\n )\n ) \n ->where('contratos.id','=',$request->folio)->get(); // solo el folio requerido\n\n $datosContratista = Ini_obra::join('contratistas','ini_obras.contratista_id','=','contratistas.id')\n ->select('contratistas.id','contratistas.nombre')\n ->where('ini_obras.clave','=',$datosLote[0]->aviso)->get(); // se filtra por la lave de aviso \n\n $observacion = $request->observacion; // observaciones que envia el gestor\n $folio = $request->folio;\n $diferencia = $request->diferencia; \n $id_contratista = $datosContratista[0]->id;\n\n // listado de todods los aspectos a revisar \n ///////// COCHERA ////////////\n $mona_cochera = $request->mona_cochera;\n $centro_carga_cochera = $request->centro_carga_cochera;\n $cuadro_hidraulico_cochera = $request->cuadro_hidraulico_cochera;\n $interfon_cochera = $request->interfon_cochera;\n $cisterna_cochera = $request->cisterna_cochera;\n $bomba_cochera = $request->bomba_cochera;\n $tapa_cisterna_cochera = $request->tapa_cisterna_cochera;\n $tapa_registro_cochera = $request->tapa_registro_cochera;\n $acc_electrico_cochera = $request->acc_electrico_cochera;\n $acabado_muros_cochera = $request->acabado_muros_cochera;\n $acabado_plafon_cochera = $request->acabado_plafon_cochera;\n $piso_cochera = $request->piso_cochera;\n $zoclo_cochera = $request->zoclo_cochera;\n //////// Observacion /////////\n $mona_cochera_obs = $request->mona_cochera_obs;\n $centro_carga_cochera_obs = $request->centro_carga_cochera_obs;\n $cuadro_hidraulico_cochera_obs = $request->cuadro_hidraulico_cochera_obs;\n $interfon_cochera_obs = $request->interfon_cochera_obs;\n $cisterna_cochera_obs = $request->cisterna_cochera_obs;\n $bomba_cochera_obs = $request->bomba_cochera_obs;\n $tapa_cisterna_cochera_obs = $request->tapa_cisterna_cochera_obs;\n $tapa_registro_cochera_obs = $request->tapa_registro_cochera_obs;\n $acc_electrico_cochera_obs = $request->acc_electrico_cochera_obs;\n $acabado_muros_cochera_obs = $request->acabado_muros_cochera_obs;\n $acabado_plafon_cochera_obs = $request->acabado_plafon_cochera_obs;\n $piso_cochera_obs = $request->piso_cochera_obs;\n $zoclo_cochera_obs = $request->zoclo_cochera_obs;\n\n ///////// SALA COMEDOR /////////\n $puerta_pric_sala = $request->puerta_pric_sala;\n $chapa_sala = $request->chapa_sala;\n $sello_marco_sala = $request->sello_marco_sala;\n $ventana_sala = $request->ventana_sala;\n $sello_ventana_sala = $request->sello_ventana_sala;\n $vidrio_ventana_sala = $request->vidrio_ventana_sala;\n $mosquitero_sala = $request->mosquitero_sala;\n $cancel_sala = $request->cancel_sala;\n $sello_cancel_sala = $request->sello_cancel_sala;\n $vidrio_cancel_sala = $request->vidrio_cancel_sala;\n $salida_alarma_sala = $request->salida_alarma_sala;\n $acc_electrico_sala = $request->acc_electrico_sala;\n $acabado_muros_sala = $request->acabado_muros_sala;\n $acabado_plafon_sala = $request->acabado_plafon_sala;\n $piso_sala = $request->piso_sala;\n $zoclo_sala = $request->zoclo_sala;\n ////// Observacion ///////\n $puerta_pric_sala_obs = $request->puerta_pric_sala_obs;\n $chapa_sala_obs = $request->chapa_sala_obs;\n $sello_marco_sala_obs = $request->sello_marco_sala_obs;\n $ventana_sala_obs = $request->ventana_sala_obs;\n $sello_ventana_sala_obs = $request->sello_ventana_sala_obs;\n $vidrio_ventana_sala_obs = $request->vidrio_ventana_sala_obs;\n $mosquitero_sala_obs = $request->mosquitero_sala_obs;\n $cancel_sala_obs = $request->cancel_sala_obs;\n $sello_cancel_sala_obs = $request->sello_cancel_sala_obs;\n $vidrio_cancel_sala_obs = $request->vidrio_cancel_sala_obs;\n $salida_alarma_sala_obs = $request->salida_alarma_sala_obs;\n $acc_electrico_sala_obs = $request->acc_electrico_sala_obs;\n $acabado_muros_sala_obs = $request->acabado_muros_sala_obs;\n $acabado_plafon_sala_obs = $request->acabado_plafon_sala_obs;\n $piso_sala_obs = $request->piso_sala_obs;\n $zoclo_sala_obs = $request->zoclo_sala_obs;\n \n ///////////////// COCINA //////////////\n $tarja_cocina = $request->tarja_cocina;\n $puerta_cocina = $request->puerta_cocina;\n $chapa_cocina = $request->chapa_cocina;\n $sello_pv_cocina = $request->sello_pv_cocina;\n $vidrio_pv_cocina = $request->vidrio_pv_cocina;\n $mosquitero_cocina = $request->mosquitero_cocina;\n $salida_alarma_cocina = $request->salida_alarma_cocina;\n $interfon_cocina = $request->interfon_cocina;\n $acc_electrico_cocina = $request->acc_electrico_cocina;\n $centro_carga_cocina = $request->centro_carga_cocina;\n $inst_gas_cocina = $request->inst_gas_cocina;\n $inst_refrigerador_cocina = $request->inst_refrigerador_cocina;\n $barra_cocina = $request->barra_cocina;\n $azulejo_cocina = $request->azulejo_cocina;\n $acabado_muro_cocina = $request->acabado_muro_cocina;\n $acabado_plafon_cocina = $request->acabado_plafon_cocina;\n $piso_cocina = $request->piso_cocina;\n $zoclo_cocina = $request->zoclo_cocina;\n ///////// Observaciones ////////////\n $tarja_cocina_obs = $request->tarja_cocina_obs;\n $puerta_cocina_obs = $request->puerta_cocina_obs;\n $chapa_cocina_obs = $request->chapa_cocina_obs;\n $sello_pv_cocina_obs = $request->sello_pv_cocina_obs;\n $vidrio_pv_cocina_obs = $request->vidrio_pv_cocina_obs;\n $mosquitero_cocina_obs = $request->mosquitero_cocina_obs;\n $salida_alarma_cocina_obs = $request->salida_alarma_cocina_obs;\n $interfon_cocina_obs = $request->interfon_cocina_obs;\n $acc_electrico_cocina_obs = $request->acc_electrico_cocina_obs;\n $centro_carga_cocina_obs = $request->centro_carga_cocina_obs;\n $inst_gas_cocina_obs = $request->inst_gas_cocina_obs;\n $inst_refrigerador_cocina_obs = $request->inst_refrigerador_cocina_obs;\n $barra_cocina_obs = $request->barra_cocina_obs;\n $azulejo_cocina_obs = $request->azulejo_cocina_obs;\n $acabado_muro_cocina_obs = $request->acabado_muro_cocina_obs;\n $acabado_plafon_cocina_obs = $request->acabado_plafon_cocina_obs;\n $piso_cocina_obs = $request->piso_cocina_obs;\n $zoclo_cocina_obs = $request->zoclo_cocina_obs;\n ////////// MEDIO BAÑO /////////////\n $puerta_mb = $request->puerta_mb; \n $chapa_mb = $request->chapa_mb;\n $barra_lavabo_mb = $request->barra_lavabo_mb;\n $lavabo_mb = $request->lavabo_mb;\n $monomando_mb = $request->monomando_mb;\n $wc_mb = $request->wc_mb;\n $acc_bano_mb = $request->acc_bano_mb;\n $acc_electrico_mb = $request->acc_electrico_mb;\n $ventana_mb = $request->ventana_mb;\n $sello_ventana_mb = $request->sello_ventana_mb;\n $vidrio_mb = $request->vidrio_mb;\n $mosquitero_mb = $request->mosquitero_mb;\n $acabado_muro_mb = $request->acabado_muro_mb;\n $acabado_plafon_mb = $request->acabado_plafon_mb;\n $piso_mb = $request->piso_mb;\n $zoclo_mb = $request->zoclo_mb;\n ////////// Observacion //////////\n $puerta_mb_obs = $request->puerta_mb_obs; \n $chapa_mb_obs = $request->chapa_mb_obs;\n $barra_lavabo_mb_obs = $request->barra_lavabo_mb_obs;\n $lavabo_mb_obs = $request->lavabo_mb_obs;\n $monomando_mb_obs = $request->monomando_mb_obs;\n $wc_mb_obs = $request->wc_mb_obs;\n $acc_bano_mb_obs = $request->acc_bano_mb_obs;\n $acc_electrico_mb_obs = $request->acc_electrico_mb_obs;\n $ventana_mb_obs = $request->ventana_mb_obs;\n $sello_ventana_mb_obs = $request->sello_ventana_mb_obs;\n $vidrio_mb_obs = $request->vidrio_mb_obs;\n $mosquitero_mb_obs = $request->mosquitero_mb_obs;\n $acabado_muro_mb_obs = $request->acabado_muro_mb_obs;\n $acabado_plafon_mb_obs = $request->acabado_plafon_mb_obs;\n $piso_mb_obs = $request->piso_mb_obs;\n $zoclo_mb_obs = $request->zoclo_mb_obs;\n\n ///////////// PATIO /////////////////\n $calentador_patio = $request->calentador_patio; \n $inst_gas_patio = $request->inst_gas_patio; \n $acc_electrico_patio = $request->acc_electrico_patio; \n $lavadero_patio = $request->lavadero_patio; \n $llaves_nariz_patio = $request->llaves_nariz_patio; \n $descarga_lavadora_patio = $request->descarga_lavadora_patio; \n $coladera_patio = $request->coladera_patio; \n $tapa_registro_patio = $request->tapa_registro_patio; \n $escalera_marina_patio = $request->escalera_marina_patio; \n $techumbre_patio = $request->techumbre_patio; \n $firme_cilindros_patio = $request->firme_cilindros_patio; \n $rodapie_patio = $request->rodapie_patio; \n $acabado_muros_patio = $request->acabado_muros_patio; \n $acabado_volado_patio = $request->acabado_volado_patio; \n $piso_patio = $request->piso_patio; \n $zoclo_patio = $request->zoclo_patio; \n ///////// Observacion //////////////\n $calentador_patio_obs = $request->calentador_patio_obs; \n $inst_gas_patio_obs = $request->inst_gas_patio_obs; \n $acc_electrico_patio_obs = $request->acc_electrico_patio_obs; \n $lavadero_patio_obs = $request->lavadero_patio_obs; \n $llaves_nariz_patio_obs = $request->llaves_nariz_patio_obs; \n $descarga_lavadora_patio_obs = $request->descarga_lavadora_patio_obs; \n $coladera_patio_obs = $request->coladera_patio_obs; \n $tapa_registro_patio_obs = $request->tapa_registro_patio_obs; \n $escalera_marina_patio_obs = $request->escalera_marina_patio_obs; \n $techumbre_patio_obs = $request->techumbre_patio_obs; \n $firme_cilindros_patio_obs = $request->firme_cilindros_patio_obs; \n $rodapie_patio_obs = $request->rodapie_patio_obs; \n $acabado_muros_patio_obs = $request->acabado_muros_patio_obs; \n $acabado_volado_patio_obs = $request->acabado_volado_patio_obs; \n $piso_patio_obs = $request->piso_patio_obs; \n $zoclo_patio_obs = $request->zoclo_patio_obs;\n \n /////////////// ESCALERA ////////////////\n $nicho_escalera = $request->nicho_escalera; \n $escalones_escalera = $request->escalones_escalera;\n $piso_escalera = $request->piso_escalera;\n $zoclo_escalera = $request->zoclo_escalera;\n $barandal_escalera = $request->barandal_escalera;\n $pasamanos_escalera = $request->pasamanos_escalera;\n $sardinel_escalera = $request->sardinel_escalera;\n $macetero_escalera = $request->macetero_escalera;\n $cajillos_escalera = $request->cajillos_escalera;\n $acc_electricos_escalera = $request->acc_electricos_escalera;\n $acabado_muro_escalera = $request->acabado_muro_escalera;\n $acabado_plafon_escalera = $request->acabado_plafon_escalera;\n ///////////// Observacion //////////////\n $nicho_escalera_obs = $request->nicho_escalera_obs; \n $escalones_escalera_obs = $request->escalones_escalera_obs;\n $piso_escalera_obs = $request->piso_escalera_obs;\n $zoclo_escalera_obs = $request->zoclo_escalera_obs;\n $barandal_escalera_obs = $request->barandal_escalera_obs;\n $pasamanos_escalera_obs = $request->pasamanos_escalera_obs;\n $sardinel_escalera_obs = $request->sardinel_escalera_obs;\n $macetero_escalera_obs = $request->macetero_escalera_obs;\n $cajillos_escalera_obs = $request->cajillos_escalera_obs;\n $acc_electricos_escalera_obs = $request->acc_electricos_escalera_obs;\n $acabado_muro_escalera_obs = $request->acabado_muro_escalera_obs;\n $acabado_plafon_escalera_obs = $request->acabado_plafon_escalera_obs;\n /////////////// BAÑO COMUN //////////////////\n $puerta_bc = $request->puerta_bc;\n $chapa_bc = $request->chapa_bc;\n $sello_marco_bc = $request->sello_marco_bc;\n $barra_lavabo_bc = $request->barra_lavabo_bc;\n $lavabo_bc = $request->lavabo_bc;\n $monomando_bc = $request->monomando_bc;\n $wc_bc = $request->wc_bc;\n $regadera_bc = $request->regadera_bc;\n $manerales_bc = $request->manerales_bc;\n $coladera_bc = $request->coladera_bc;\n $acc_bano_bc = $request->acc_bano_bc;\n $acc_electricos_bc = $request->acc_electricos_bc;\n $ventana_bc = $request->ventana_bc;\n $sello_ventana_bc = $request->sello_ventana_bc;\n $vidrio_ventana_bc = $request->vidrio_ventana_bc;\n $mosquitero_bc = $request->mosquitero_bc;\n $acabado_muro_bc = $request->acabado_muro_bc;\n $acabado_plafon_bc = $request->acabado_plafon_bc;\n $sardinel_bc = $request->sardinel_bc;\n $piso_bc = $request->piso_bc;\n $zoclo_bc = $request->zoclo_bc;\n ///////////// Observacion ////////////////\n $puerta_bc_obs = $request->puerta_bc_obs;\n $chapa_bc_obs = $request->chapa_bc_obs;\n $sello_marco_bc_obs = $request->sello_marco_bc_obs;\n $barra_lavabo_bc_obs = $request->barra_lavabo_bc_obs;\n $lavabo_bc_obs = $request->lavabo_bc_obs;\n $monomando_bc_obs = $request->monomando_bc_obs;\n $wc_bc_obs = $request->wc_bc_obs;\n $regadera_bc_obs = $request->regadera_bc_obs;\n $manerales_bc_obs = $request->manerales_bc_obs;\n $coladera_bc_obs = $request->coladera_bc_obs;\n $acc_bano_bc_obs = $request->acc_bano_bc_obs;\n $acc_electricos_bc_obs = $request->acc_electricos_bc_obs;\n $ventana_bc_obs = $request->ventana_bc_obs;\n $sello_ventana_bc_obs = $request->sello_ventana_bc_obs;\n $vidrio_ventana_bc_obs = $request->vidrio_ventana_bc_obs;\n $mosquitero_bc_obs = $request->mosquitero_bc_obs;\n $acabado_muro_bc_obs = $request->acabado_muro_bc_obs;\n $acabado_plafon_bc_obs = $request->acabado_plafon_bc_obs;\n $sardinel_bc_obs = $request->sardinel_bc_obs;\n $piso_bc_obs = $request->piso_bc_obs;\n $zoclo_bc_obs = $request->zoclo_bc_obs;\n \n ///////////// ESTANCIA //////////////\n $ventana_estancia = $request->ventana_estancia;\n $sello_ventana_estancia = $request->sello_ventana_estancia;\n $vidrio_ventana_estancia = $request->vidrio_ventana_estancia;\n $mosquitero_estancia = $request->mosquitero_estancia;\n $interfon_estancia = $request->interfon_estancia;\n $acc_electricos_estancia = $request->acc_electricos_estancia;\n $acabado_muro_estancia = $request->acabado_muro_estancia;\n $acabado_plafon_estancia = $request->acabado_plafon_estancia;\n $piso_estancia = $request->piso_estancia;\n $zoclo_estancia = $request->zoclo_estancia;\n //////////// Observacion /////////////\n $ventana_estancia_obs = $request->ventana_estancia_obs;\n $sello_ventana_estancia_obs = $request->sello_ventana_estancia_obs;\n $vidrio_ventana_estancia_obs = $request->vidrio_ventana_estancia_obs;\n $mosquitero_estancia_obs = $request->mosquitero_estancia_obs;\n $interfon_estancia_obs = $request->interfon_estancia_obs;\n $acc_electricos_estancia_obs = $request->acc_electricos_estancia_obs;\n $acabado_muro_estancia_obs = $request->acabado_muro_estancia_obs;\n $acabado_plafon_estancia_obs = $request->acabado_plafon_estancia_obs;\n $piso_estancia_obs = $request->piso_estancia_obs;\n $zoclo_estancia_obs = $request->zoclo_estancia_obs;\n\n //////////// Recamara Principal //////////////\n $puerta_rp = $request->puerta_rp;\n $chapa_rp = $request->chapa_rp;\n $sello_marco_rp = $request->sello_marco_rp;\n $cancel_rp = $request->cancel_rp;\n $sello_cancel_rp = $request->sello_cancel_rp;\n $vidrio_cancel_rp = $request->vidrio_cancel_rp;\n $mosquitero_rp = $request->mosquitero_rp;\n $balcon_rp = $request->balcon_rp;\n $barandal_rp = $request->barandal_rp;\n $acc_electricos_rp = $request->acc_electricos_rp;\n $interfon_rp = $request->interfon_rp;\n $salida_alarma_rp = $request->salida_alarma_rp;\n $acabado_muro_rp = $request->acabado_muro_rp;\n $acabado_plafon_rp = $request->acabado_plafon_rp;\n $piso_rp = $request->piso_rp;\n $zoclo_rp = $request->zoclo_rp;\n //////////////// Observacion //////////////\n $puerta_rp_obs = $request->puerta_rp_obs;\n $chapa_rp_obs = $request->chapa_rp_obs;\n $sello_marco_rp_obs = $request->sello_marco_rp_obs;\n $cancel_rp_obs = $request->cancel_rp_obs;\n $sello_cancel_rp_obs = $request->sello_cancel_rp_obs;\n $vidrio_cancel_rp_obs = $request->vidrio_cancel_rp_obs;\n $mosquitero_rp_obs = $request->mosquitero_rp_obs;\n $balcon_rp_obs = $request->balcon_rp_obs;\n $barandal_rp_obs = $request->barandal_rp_obs;\n $acc_electricos_rp_obs = $request->acc_electricos_rp_obs;\n $interfon_rp_obs = $request->interfon_rp_obs;\n $salida_alarma_rp_obs = $request->salida_alarma_rp_obs;\n $acabado_muro_rp_obs = $request->acabado_muro_rp_obs;\n $acabado_plafon_rp_obs = $request->acabado_plafon_rp_obs;\n $piso_rp_obs = $request->piso_rp_obs;\n $zoclo_rp_obs = $request->zoclo_rp_obs;\n\n ///////////// BAÑO RECAMARA PRINCIPAL ////////////////\n $puerta_brp = $request->puerta_brp;\n $chapa_brp = $request->chapa_brp;\n $sello_marco_brp = $request->sello_marco_brp;\n $barra_lavabo_brp = $request->barra_lavabo_brp;\n $lavabo_brp = $request->lavabo_brp;\n $monomando_brp = $request->monomando_brp;\n $wc_brp = $request->wc_brp;\n $regadera_brp = $request->regadera_brp;\n $manerales_brp = $request->manerales_brp;\n $coladera_brp = $request->coladera_brp;\n $acc_bano_brp = $request->acc_bano_brp;\n $acc_electrico_brp = $request->acc_electrico_brp;\n $ventana_brp = $request->ventana_brp;\n $sello_ventana_brp = $request->sello_ventana_brp;\n $vidrio_ventana_brp = $request->vidrio_ventana_brp;\n $mosquitero_brp = $request->mosquitero_brp;\n $acabado_muro_brp = $request->acabado_muro_brp;\n $acabado_plafon_brp = $request->acabado_plafon_brp;\n $sardinel_brp = $request->sardinel_brp;\n $piso_brp = $request->piso_brp;\n $zoclo_brp = $request->zoclo_brp;\n /////////// Observacion ///////////////\n $puerta_brp_obs = $request->puerta_brp_obs;\n $chapa_brp_obs = $request->chapa_brp_obs;\n $sello_marco_brp_obs = $request->sello_marco_brp_obs;\n $barra_lavabo_brp_obs = $request->barra_lavabo_brp_obs;\n $lavabo_brp_obs = $request->lavabo_brp_obs;\n $monomando_brp_obs = $request->monomando_brp_obs;\n $wc_brp_obs = $request->wc_brp_obs;\n $regadera_brp_obs = $request->regadera_brp_obs;\n $manerales_brp_obs = $request->manerales_brp_obs;\n $coladera_brp_obs = $request->coladera_brp_obs;\n $acc_bano_brp_obs = $request->acc_bano_brp_obs;\n $acc_electrico_brp_obs = $request->acc_electrico_brp_obs;\n $ventana_brp_obs = $request->ventana_brp_obs;\n $sello_ventana_brp_obs = $request->sello_ventana_brp_obs;\n $vidrio_ventana_brp_obs = $request->vidrio_ventana_brp_obs;\n $mosquitero_brp_obs = $request->mosquitero_brp_obs;\n $acabado_muro_brp_obs = $request->acabado_muro_brp_obs;\n $acabado_plafon_brp_obs = $request->acabado_plafon_brp_obs;\n $sardinel_brp_obs = $request->sardinel_brp_obs;\n $piso_brp_obs = $request->piso_brp_obs;\n $zoclo_brp_obs = $request->zoclo_brp_obs;\n\n //////////////// Vestidor //////////////////\n $acc_electrico_vest = $request->acc_electrico_vest;\n $acabado_muro_vest = $request->acabado_muro_vest;\n $acabado_plafon_vest = $request->acabado_plafon_vest;\n $piso_vest = $request->piso_vest;\n $zoclo_vest = $request->zoclo_vest;\n /////////// Observacion ////////////\n $acc_electrico_vest_obs = $request->acc_electrico_vest_obs;\n $acabado_muro_vest_obs = $request->acabado_muro_vest_obs;\n $acabado_plafon_vest_obs = $request->acabado_plafon_vest_obs;\n $piso_vest_obs = $request->piso_vest_obs;\n $zoclo_vest_obs = $request->zoclo_vest_obs;\n /////////////// RECAMARA 2 ///////////////\n $puerta_rec2 = $request->puerta_rec2;\n $chapa_rec2 = $request->chapa_rec2;\n $sello_marco_rec2 = $request->sello_marco_rec2;\n $cancel_rec2 = $request->cancel_rec2;\n $sello_cancel_rec2 = $request->sello_cancel_rec2;\n $vidrio_cancel_rec2 = $request->vidrio_cancel_rec2;\n $mosquitero_rec2 = $request->mosquitero_rec2;\n $acc_rec2 = $request->acc_rec2;\n $salida_alarma_rec2 = $request->salida_alarma_rec2;\n $acabado_muro_rec2 = $request->acabado_muro_rec2;\n $acabado_plafon_rec2 = $request->acabado_plafon_rec2;\n $piso_rec2 = $request->piso_rec2;\n $zoclo_rec2 = $request->zoclo_rec2;\n ////////////// Observacion ////////////\n $puerta_rec2_obs = $request->puerta_rec2_obs;\n $chapa_rec2_obs = $request->chapa_rec2_obs;\n $sello_marco_rec2_obs = $request->sello_marco_rec2_obs;\n $cancel_rec2_obs = $request->cancel_rec2_obs;\n $sello_cancel_rec2_obs = $request->sello_cancel_rec2_obs;\n $vidrio_cancel_rec2_obs = $request->vidrio_cancel_rec2_obs;\n $mosquitero_rec2_obs = $request->mosquitero_rec2_obs;\n $acc_rec2_obs = $request->acc_rec2_obs;\n $salida_alarma_rec2_obs = $request->salida_alarma_rec2_obs;\n $acabado_muro_rec2_obs = $request->acabado_muro_rec2_obs;\n $acabado_plafon_rec2_obs = $request->acabado_plafon_rec2_obs;\n $piso_rec2_obs = $request->piso_rec2_obs;\n $zoclo_rec2_obs = $request->zoclo_rec2_obs;\n\n /////////////// RECAMARA 3 ///////////////\n $puerta_rec3 = $request->puerta_rec3;\n $chapa_rec3 = $request->chapa_rec3;\n $sello_marco_rec3 = $request->sello_marco_rec3;\n $cancel_rec3 = $request->cancel_rec3;\n $sello_cancel_rec3 = $request->sello_cancel_rec3;\n $vidrio_cancel_rec3 = $request->vidrio_cancel_rec3;\n $mosquitero_rec3 = $request->mosquitero_rec3;\n $acc_rec3 = $request->acc_rec3;\n $salida_alarma_rec3 = $request->salida_alarma_rec3;\n $acabado_muro_rec3 = $request->acabado_muro_rec3;\n $acabado_plafon_rec3 = $request->acabado_plafon_rec3;\n $piso_rec3 = $request->piso_rec3;\n $zoclo_rec3 = $request->zoclo_rec3;\n ////////////// Observacion ////////////\n $puerta_rec3_obs = $request->puerta_rec3_obs;\n $chapa_rec3_obs = $request->chapa_rec3_obs;\n $sello_marco_rec3_obs = $request->sello_marco_rec3_obs;\n $cancel_rec3_obs = $request->cancel_rec3_obs;\n $sello_cancel_rec3_obs = $request->sello_cancel_rec3_obs;\n $vidrio_cancel_rec3_obs = $request->vidrio_cancel_rec3_obs;\n $mosquitero_rec3_obs = $request->mosquitero_rec3_obs;\n $acc_rec3_obs = $request->acc_rec3_obs;\n $salida_alarma_rec3_obs = $request->salida_alarma_rec3_obs;\n $acabado_muro_rec3_obs = $request->acabado_muro_rec3_obs;\n $acabado_plafon_rec3_obs = $request->acabado_plafon_rec3_obs;\n $piso_rec3_obs = $request->piso_rec3_obs;\n $zoclo_rec3_obs = $request->zoclo_rec3_obs;\n ///////////// AZOTEA ////////////////\n $pretiles_azotea = $request->pretiles_azotea;\n $impermeabilizacion = $request->impermeabilizacion;\n $domos_azotea = $request->domos_azotea;\n $mufas_azotea = $request->mufas_azotea;\n $jarros_azotea = $request->jarros_azotea;\n $ventilas_azotea = $request->ventilas_azotea;\n $base_tinaco_azotea = $request->base_tinaco_azotea;\n $tinaco_azotea = $request->tinaco_azotea;\n $calentador_solar_azotea = $request->calentador_solar_azotea;\n $punta_gas_azotea = $request->punta_gas_azotea;\n $anclas_azotea = $request->anclas_azotea;\n $limpieza_azotea = $request->limpieza_azotea;\n ///////// Observacion ///////////\n $pretiles_azotea_obs = $request->pretiles_azotea_obs;\n $impermeabilizacion_obs = $request->impermeabilizacion_obs;\n $domos_azotea_obs = $request->domos_azotea_obs;\n $mufas_azotea_obs = $request->mufas_azotea_obs;\n $jarros_azotea_obs = $request->jarros_azotea_obs;\n $ventilas_azotea_obs = $request->ventilas_azotea_obs;\n $base_tinaco_azotea_obs = $request->base_tinaco_azotea_obs;\n $tinaco_azotea_obs = $request->tinaco_azotea_obs;\n $calentador_solar_azotea_obs = $request->calentador_solar_azotea_obs;\n $punta_gas_azotea_obs = $request->punta_gas_azotea_obs;\n $anclas_azotea_obs = $request->anclas_azotea_obs;\n $limpieza_azotea_obs = $request->limpieza_azotea_obs;\n /////////// GENERALES //////////////\n $limpieza_interior = $request->limpieza_interior;\n $limpieza_exterior = $request->limpieza_exterior;\n $limpieza_vidrios = $request->limpieza_vidrios;\n $limpieza_domos = $request->limpieza_domos;\n $plastico_muebles = $request->plastico_muebles;\n $candados = $request->candados;\n $llaves = $request->llaves;\n $num_oficial = $request->num_oficial;\n /////////// Observacion ///////////\n $limpieza_interior_obs = $request->limpieza_interior_obs;\n $limpieza_exterior_obs = $request->limpieza_exterior_obs;\n $limpieza_vidrios_obs = $request->limpieza_vidrios_obs;\n $limpieza_domos_obs = $request->limpieza_domos_obs;\n $plastico_muebles_obs = $request->plastico_muebles_obs;\n $candados_obs = $request->candados_obs;\n $llaves_obs = $request->llaves_obs;\n $num_oficial_obs = $request->num_oficial_obs;\n\n try{\n DB::beginTransaction();\n $revisionPrevia = new Revision_previa();\n $revisionPrevia->id = $folio;\n $revisionPrevia->observaciones = $observacion;\n $revisionPrevia->id_contratista = $id_contratista;\n $revisionPrevia->save();\n\n $entregas = Entrega::findOrFail($folio);\n\n if($diferencia <= 1)\n $entregas->revision_previa = 2;\n else{\n $entregas->revision_previa = 1;\n }\n $entregas->save();\n \n\n ////////////////// Parte para Registrar detalles /////////\n /////////////////// COCHERA\n if($mona_cochera == 1){\n $this->storeDetalle($folio,'Mona',1,$mona_cochera_obs);\n }\n if($centro_carga_cochera == 1){\n $this->storeDetalle($folio,'Centro de carga',1,$centro_carga_cochera_obs);\n }\n if($cuadro_hidraulico_cochera == 1){\n $this->storeDetalle($folio,'Cuadro hidráulico',1,$cuadro_hidraulico_cochera_obs);\n }\n if($interfon_cochera == 1){\n $this->storeDetalle($folio,'Interfon',1,$interfon_cochera_obs);\n }\n if($cisterna_cochera == 1){\n $this->storeDetalle($folio,'Cisterna',1,$cisterna_cochera_obs);\n }\n if($bomba_cochera == 1){\n $this->storeDetalle($folio,'Bomba',1,$bomba_cochera_obs);\n }\n if($tapa_cisterna_cochera == 1){\n $this->storeDetalle($folio,'Tapa Cisterna',1,$tapa_cisterna_cochera_obs);\n }\n if($tapa_registro_cochera == 1){\n $this->storeDetalle($folio,'Tapas registros',1,$tapa_registro_cochera_obs);\n }\n if($acc_electrico_cochera == 1){\n $this->storeDetalle($folio,'Acc. Eléctricos',1,$acc_electrico_cochera_obs);\n }\n if($acabado_muros_cochera == 1){\n $this->storeDetalle($folio,'Acabado muros',1,$acabado_muros_cochera_obs);\n }\n if($acabado_plafon_cochera == 1){\n $this->storeDetalle($folio,'Acabado plafón',1,$acabado_plafon_cochera_obs);\n }\n if($piso_cochera == 1){\n $this->storeDetalle($folio,'Piso',1,$piso_cochera_obs);\n }\n if($zoclo_cochera == 1){\n $this->storeDetalle($folio,'Zoclo',1,$zoclo_cochera_obs);\n }\n\n //////////////////// SALA COMEDOR \n if($puerta_pric_sala == 1){\n $this->storeDetalle($folio,'Puerta principal',2,$puerta_pric_sala_obs);\n }\n if($chapa_sala == 1){\n $this->storeDetalle($folio,'Chapa',2,$chapa_sala_obs);\n }\n if($sello_marco_sala == 1){\n $this->storeDetalle($folio,'Sello marco',2,$sello_marco_sala_obs);\n }\n if($ventana_sala == 1){\n $this->storeDetalle($folio,'Ventana',2,$ventana_sala_obs);\n }\n if($sello_ventana_sala == 1){\n $this->storeDetalle($folio,'Sello ventana',2,$sello_ventana_sala_obs);\n }\n if($vidrio_ventana_sala == 1){\n $this->storeDetalle($folio,'Vidrio ventana',2,$vidrio_ventana_sala_obs);\n }\n if($mosquitero_sala == 1){\n $this->storeDetalle($folio,'Mosquitero',2,$mosquitero_sala_obs);\n }\n if($cancel_sala == 1){\n $this->storeDetalle($folio,'Cancel',2,$cancel_sala_obs);\n }\n if($sello_cancel_sala == 1){\n $this->storeDetalle($folio,'Sello cancel',2,$sello_cancel_sala_obs);\n }\n if($vidrio_cancel_sala == 1){\n $this->storeDetalle($folio,'Vidrio cancel',2,$vidrio_cancel_sala_obs);\n }\n if($salida_alarma_sala == 1){\n $this->storeDetalle($folio,'Salida alarma',2,$salida_alarma_sala_obs);\n }\n if($acc_electrico_sala == 1){\n $this->storeDetalle($folio,'Acc. Eléctricos',2,$acc_electrico_sala_obs);\n }\n if($acabado_muros_sala == 1){\n $this->storeDetalle($folio,'Acabado muros',2,$acabado_muros_sala_obs);\n }\n if($acabado_plafon_sala == 1){\n $this->storeDetalle($folio,'Acabado plafón',2,$acabado_plafon_sala_obs);\n }\n if($piso_sala == 1){\n $this->storeDetalle($folio,'Piso',2,$piso_sala_obs);\n }\n if($zoclo_sala == 1){\n $this->storeDetalle($folio,'Zoclo',2,$zoclo_sala_obs);\n }\n /////////////// COCINA\n if($tarja_cocina == 1){\n $this->storeDetalle($folio,'Tarja',3,$tarja_cocina_obs);\n }\n if($puerta_cocina == 1){\n $this->storeDetalle($folio,'Puerta/ventana',3,$puerta_cocina_obs);\n }\n if($chapa_cocina == 1){\n $this->storeDetalle($folio,'Chapa',3,$chapa_cocina_obs);\n }\n if($sello_pv_cocina == 1){\n $this->storeDetalle($folio,'Sello en p/v',3,$sello_pv_cocina_obs);\n }\n if($vidrio_pv_cocina == 1){\n $this->storeDetalle($folio,'Vidrio en p/v',3,$vidrio_pv_cocina_obs);\n }\n if($mosquitero_cocina == 1){\n $this->storeDetalle($folio,'Mosquitero',3,$mosquitero_cocina_obs);\n }\n if($salida_alarma_cocina == 1){\n $this->storeDetalle($folio,'Salida de alarma',3,$salida_alarma_cocina_obs);\n }\n if($interfon_cocina == 1){\n $this->storeDetalle($folio,'Interfón',3,$interfon_cocina_obs);\n }\n if($acc_electrico_cocina == 1){\n $this->storeDetalle($folio,'Acc. Eléctricos',3,$acc_electrico_cocina_obs);\n }\n if($centro_carga_cocina == 1){\n $this->storeDetalle($folio,'Centro de carga',3,$centro_carga_cocina_obs);\n }\n if($inst_gas_cocina == 1){\n $this->storeDetalle($folio,'Inst. Gas',3,$inst_gas_cocina_obs);\n }\n if($inst_refrigerador_cocina == 1){\n $this->storeDetalle($folio,'Inst. Refrigerador',3,$inst_refrigerador_cocina_obs);\n }\n if($barra_cocina == 1){\n $this->storeDetalle($folio,'Barra',3,$barra_cocina_obs);\n }\n if($azulejo_cocina == 1){\n $this->storeDetalle($folio,'Azulejo muro',3,$azulejo_cocina_obs);\n }\n if($acabado_muro_cocina == 1){\n $this->storeDetalle($folio,'Acabado muros',3,$acabado_muro_cocina_obs);\n }\n if($acabado_plafon_cocina == 1){\n $this->storeDetalle($folio,'Acabado plafón',3,$acabado_plafon_cocina_obs);\n }\n if($piso_cocina == 1){\n $this->storeDetalle($folio,'Piso',3,$piso_cocina_obs);\n }\n if($zoclo_cocina == 1){\n $this->storeDetalle($folio,'Zoclo',3,$zoclo_cocina_obs);\n }\n\n //////////////////// MEDIO BAÑO\n if($puerta_mb == 1){\n $this->storeDetalle($folio,'Puerta',4,$puerta_mb_obs);\n }\n if($chapa_mb == 1){\n $this->storeDetalle($folio,'Chapa',4,$chapa_mb_obs);\n }\n if($barra_lavabo_mb == 1){\n $this->storeDetalle($folio,'Barra lavabo',4,$barra_lavabo_mb_obs);\n }\n if($lavabo_mb == 1){\n $this->storeDetalle($folio,'Lavabo',4,$lavabo_mb_obs);\n }\n if($monomando_mb == 1){\n $this->storeDetalle($folio,'Monomando',4,$monomando_mb_obs);\n }\n if($wc_mb == 1){\n $this->storeDetalle($folio,'WC',4,$wc_mb_obs);\n }\n if($acc_bano_mb == 1){\n $this->storeDetalle($folio,'Acc. Baño',4,$acc_bano_mb_obs);\n }\n if($acc_electrico_mb == 1){\n $this->storeDetalle($folio,'Acc. Eléctricos',4,$acc_electrico_mb_obs);\n }\n if($ventana_mb == 1){\n $this->storeDetalle($folio,'Ventana',4,$ventana_mb_obs);\n }\n if($sello_ventana_mb == 1){\n $this->storeDetalle($folio,'Sello ventana',4,$sello_ventana_mb_obs);\n }\n if($vidrio_mb == 1){\n $this->storeDetalle($folio,'Vidrio ventana',4,$vidrio_mb_obs);\n }\n if($mosquitero_mb == 1){\n $this->storeDetalle($folio,'Mosquitero',4,$mosquitero_mb_obs);\n }\n if($acabado_muro_mb == 1){\n $this->storeDetalle($folio,'Acabado muros',4,$acabado_muro_mb_obs);\n }\n if($acabado_plafon_mb == 1){\n $this->storeDetalle($folio,'Acabado plafón',4,$acabado_plafon_mb_obs);\n }\n if($piso_mb == 1){\n $this->storeDetalle($folio,'Piso',4,$piso_mb_obs);\n }\n if($zoclo_mb == 1){\n $this->storeDetalle($folio,'Puerta',4,$zoclo_mb_obs);\n }\n\n /////////////// PATIO\n if($calentador_patio == 1){\n $this->storeDetalle($folio,'Calentador',5,$calentador_patio_obs);\n }\n if($inst_gas_patio == 1){\n $this->storeDetalle($folio,'Inst. Gas',5,$inst_gas_patio_obs);\n }\n if($acc_electrico_patio == 1){\n $this->storeDetalle($folio,'Acc. Eléctricos',5,$acc_electrico_patio_obs);\n }\n if($lavadero_patio == 1){\n $this->storeDetalle($folio,'Lavadero',5,$lavadero_patio_obs);\n }\n if($llaves_nariz_patio == 1){\n $this->storeDetalle($folio,'Llaves nariz',5,$llaves_nariz_patio_obs);\n }\n if($descarga_lavadora_patio == 1){\n $this->storeDetalle($folio,'Descarga lavadora',5,$descarga_lavadora_patio_obs);\n }\n if($coladera_patio == 1){\n $this->storeDetalle($folio,'Coladera',5,$coladera_patio_obs);\n }\n if($tapa_registro_patio == 1){\n $this->storeDetalle($folio,'Tapa registro',5,$tapa_registro_patio_obs);\n }\n if($escalera_marina_patio == 1){\n $this->storeDetalle($folio,'Escalera marina',5,$escalera_marina_patio_obs);\n }\n if($techumbre_patio == 1){\n $this->storeDetalle($folio,'Techumbre patio',5,$techumbre_patio_obs);\n }\n if($firme_cilindros_patio == 1){\n $this->storeDetalle($folio,'Firme cilindros',5,$firme_cilindros_patio_obs);\n }\n if($rodapie_patio == 1){\n $this->storeDetalle($folio,'Rodapie',5,$rodapie_patio_obs);\n }\n if($acabado_muros_patio == 1){\n $this->storeDetalle($folio,'Acabado muros',5,$acabado_muros_patio_obs);\n }\n if($acabado_volado_patio == 1){\n $this->storeDetalle($folio,'Acabado volado',5,$acabado_volado_patio_obs);\n }\n if($piso_patio == 1){\n $this->storeDetalle($folio,'Piso',5,$piso_patio_obs);\n }\n if($zoclo_patio == 1){\n $this->storeDetalle($folio,'Zoclo',5,$zoclo_patio_obs);\n }\n\n ////////////// ESCALERA\n if($nicho_escalera == 1){\n $this->storeDetalle($folio,'Nicho',6,$nicho_escalera_obs);\n }\n if($escalones_escalera == 1){\n $this->storeDetalle($folio,'Escalones',6,$escalones_escalera_obs);\n }\n if($piso_escalera == 1){\n $this->storeDetalle($folio,'Piso',6,$piso_escalera_obs);\n }\n if($zoclo_escalera == 1){\n $this->storeDetalle($folio,'Zoclo',6,$zoclo_escalera_obs);\n }\n if($barandal_escalera == 1){\n $this->storeDetalle($folio,'Barandal',6,$barandal_escalera_obs);\n }\n if($pasamanos_escalera == 1){\n $this->storeDetalle($folio,'Pasamanos',6,$pasamanos_escalera_obs);\n }\n if($sardinel_escalera == 1){\n $this->storeDetalle($folio,'Sardinel',6,$sardinel_escalera_obs);\n }\n if($macetero_escalera == 1){\n $this->storeDetalle($folio,'Macetero',6,$macetero_escalera_obs);\n }\n if($cajillos_escalera == 1){\n $this->storeDetalle($folio,'Cajillos',6,$cajillos_escalera_obs);\n }\n if($acc_electricos_escalera == 1){\n $this->storeDetalle($folio,'Acc. Eléctricos',6,$acc_electricos_escalera_obs);\n }\n if($acabado_muros_patio == 1){\n $this->storeDetalle($folio,'Acabado muros',6,$acabado_muros_patio_obs);\n }\n if($acabado_plafon_escalera == 1){\n $this->storeDetalle($folio,'Acabado plafón',6,$acabado_plafon_escalera_obs);\n }\n\n ///////////// BAÑO COMÚN\n if($puerta_bc == 1){\n $this->storeDetalle($folio,'Puerta',7,$puerta_bc_obs);\n }\n if($chapa_bc == 1){\n $this->storeDetalle($folio,'Chapa',7,$chapa_bc_obs);\n }\n if($sello_marco_bc == 1){\n $this->storeDetalle($folio,'Sello marco',7,$sello_marco_bc_obs);\n }\n if($barra_lavabo_bc == 1){\n $this->storeDetalle($folio,'Barra lavabo',7,$barra_lavabo_bc_obs);\n }\n if($lavabo_bc == 1){\n $this->storeDetalle($folio,'Lavabo',7,$lavabo_bc_obs);\n }\n if($monomando_bc == 1){\n $this->storeDetalle($folio,'Monomando',7,$monomando_bc_obs);\n }\n if($wc_bc == 1){\n $this->storeDetalle($folio,'WC',7,$wc_bc_obs);\n }\n if($regadera_bc == 1){\n $this->storeDetalle($folio,'Regadera',7,$regadera_bc_obs);\n }\n if($manerales_bc == 1){\n $this->storeDetalle($folio,'Manerales',7,$manerales_bc_obs);\n }\n if($coladera_bc == 1){\n $this->storeDetalle($folio,'Coladera',7,$coladera_bc_obs);\n }\n if($acc_bano_bc == 1){\n $this->storeDetalle($folio,'Acc. Baño',7,$acc_bano_bc_obs);\n }\n if($acc_electricos_bc == 1){\n $this->storeDetalle($folio,'Acc. Eléctricos',7,$acc_electricos_bc_obs);\n }\n if($ventana_bc == 1){\n $this->storeDetalle($folio,'Ventana',7,$ventana_bc_obs);\n }\n if($sello_ventana_bc == 1){\n $this->storeDetalle($folio,'Sello ventana',7,$sello_ventana_bc_obs);\n }\n if($vidrio_ventana_bc == 1){\n $this->storeDetalle($folio,'Vidrio ventana',7,$vidrio_ventana_bc_obs);\n }\n if($mosquitero_bc == 1){\n $this->storeDetalle($folio,'Mosquitero',7,$mosquitero_bc_obs);\n }\n if($acabado_muro_bc == 1){\n $this->storeDetalle($folio,'Acabado muros',7,$acabado_muro_bc_obs);\n }\n if($acabado_plafon_bc == 1){\n $this->storeDetalle($folio,'Acabado plafón',7,$acabado_plafon_bc_obs);\n }\n if($sardinel_bc == 1){\n $this->storeDetalle($folio,'Sardinel',7,$sardinel_bc_obs);\n }\n if($piso_bc == 1){\n $this->storeDetalle($folio,'Piso',7,$piso_bc_obs);\n }\n if($zoclo_bc == 1){\n $this->storeDetalle($folio,'Zoclo',7,$zoclo_bc_obs);\n }\n\n ///////////////// ESTANCIA\n if($ventana_estancia == 1){\n $this->storeDetalle($folio,'Ventana',8,$ventana_estancia_obs);\n }\n if($sello_ventana_estancia == 1){\n $this->storeDetalle($folio,'Sello ventana',8,$sello_ventana_estancia_obs);\n }\n if($vidrio_ventana_estancia == 1){\n $this->storeDetalle($folio,'Vidrio ventana',8,$vidrio_ventana_estancia_obs);\n }\n if($mosquitero_estancia == 1){\n $this->storeDetalle($folio,'Mosquitero',8,$mosquitero_estancia_obs);\n }\n if($interfon_estancia == 1){\n $this->storeDetalle($folio,'Interfón',8,$interfon_estancia_obs);\n }\n if($acc_electricos_estancia == 1){\n $this->storeDetalle($folio,'Acc. Eléctricos',8,$acc_electricos_estancia_obs);\n }\n if($acabado_muro_estancia == 1){\n $this->storeDetalle($folio,'Acabado muros',8,$acabado_muro_estancia_obs);\n }\n if($acabado_plafon_estancia == 1){\n $this->storeDetalle($folio,'Acabado plafon',8,$acabado_plafon_estancia_obs);\n }\n if($piso_estancia == 1){\n $this->storeDetalle($folio,'Piso',8,$piso_estancia_obs);\n }\n if($zoclo_estancia == 1){\n $this->storeDetalle($folio,'Zoclo',8,$zoclo_estancia_obs);\n }\n \n ////////// RECAMARA PRINCIPAL\n if($puerta_rp == 1){\n $this->storeDetalle($folio,'Puerta',9,$puerta_rp_obs);\n }\n if($chapa_rp == 1){\n $this->storeDetalle($folio,'Chapa',9,$chapa_rp_obs);\n }\n if($sello_marco_rp == 1){\n $this->storeDetalle($folio,'Sello marco',9,$sello_marco_rp_obs);\n }\n if($cancel_rp == 1){\n $this->storeDetalle($folio,'Cancel',9,$cancel_rp_obs);\n }\n if($sello_cancel_rp == 1){\n $this->storeDetalle($folio,'Sello cancel',9,$sello_cancel_rp_obs);\n }\n if($vidrio_cancel_rp == 1){\n $this->storeDetalle($folio,'Vidrio cancel',9,$vidrio_cancel_rp_obs);\n }\n if($mosquitero_rp == 1){\n $this->storeDetalle($folio,'Mosquitero',9,$mosquitero_rp_obs);\n }\n if($balcon_rp == 1){\n $this->storeDetalle($folio,'Balcón',9,$balcon_rp_obs);\n }\n if($barandal_rp == 1){\n $this->storeDetalle($folio,'Barandal',9,$barandal_rp_obs);\n }\n if($acc_electricos_rp == 1){\n $this->storeDetalle($folio,'Acc. Eléctricos',9,$acc_electricos_rp_obs);\n }\n if($interfon_rp == 1){\n $this->storeDetalle($folio,'Interfón',9,$interfon_rp_obs);\n }\n if($salida_alarma_rp == 1){\n $this->storeDetalle($folio,'Salida alarma',9,$salida_alarma_rp_obs);\n }\n if($acabado_muro_rp == 1){\n $this->storeDetalle($folio,'Acabado muros',9,$acabado_muro_rp_obs);\n }\n if($acabado_plafon_rp == 1){\n $this->storeDetalle($folio,'Acabado plafón',9,$acabado_plafon_rp_obs);\n }\n if($piso_rp == 1){\n $this->storeDetalle($folio,'Piso',9,$piso_rp_obs);\n }\n if($zoclo_rp == 1){\n $this->storeDetalle($folio,'Zoclo',9,$zoclo_rp_obs);\n }\n \n /////////// BAÑO RECAMARA PRINCIPAL\n if($puerta_brp == 1){\n $this->storeDetalle($folio,'Puerta',10,$puerta_brp_obs);\n }\n if($chapa_brp == 1){\n $this->storeDetalle($folio,'Chapa',10,$chapa_brp_obs);\n }\n if($sello_marco_brp == 1){\n $this->storeDetalle($folio,'Sello marco',10,$sello_marco_brp_obs);\n }\n if($barra_lavabo_brp == 1){\n $this->storeDetalle($folio,'Barra lavabo',10,$barra_lavabo_brp_obs);\n }\n if($lavabo_brp == 1){\n $this->storeDetalle($folio,'Lavabo',10,$lavabo_brp_obs);\n }\n if($monomando_brp == 1){\n $this->storeDetalle($folio,'Monomando',10,$monomando_brp_obs);\n }\n if($wc_brp == 1){\n $this->storeDetalle($folio,'WC',10,$wc_brp_obs);\n }\n if($regadera_brp == 1){\n $this->storeDetalle($folio,'Regadera',10,$regadera_brp_obs);\n }\n if($manerales_brp == 1){\n $this->storeDetalle($folio,'Manerales',10,$manerales_brp_obs);\n }\n if($coladera_brp == 1){\n $this->storeDetalle($folio,'Coladera',10,$coladera_brp_obs);\n }\n if($acc_bano_brp == 1){\n $this->storeDetalle($folio,'Acc. Baño',10,$acc_bano_brp_obs);\n }\n if($acc_electrico_brp == 1){\n $this->storeDetalle($folio,'Acc. Eléctricos',10,$acc_electrico_brp_obs);\n }\n if($ventana_brp == 1){\n $this->storeDetalle($folio,'Ventana',10,$ventana_brp_obs);\n }\n if($sello_ventana_brp == 1){\n $this->storeDetalle($folio,'Sello ventana',10,$sello_ventana_brp_obs);\n }\n if($vidrio_ventana_brp == 1){\n $this->storeDetalle($folio,'Vidrio ventana',10,$vidrio_ventana_brp_obs);\n }\n if($mosquitero_brp == 1){\n $this->storeDetalle($folio,'Mosquitero',10,$mosquitero_brp_obs);\n }\n if($acabado_muro_brp == 1){\n $this->storeDetalle($folio,'Acabado muros',10,$acabado_muro_brp_obs);\n }\n if($acabado_plafon_brp == 1){\n $this->storeDetalle($folio,'Acabado plafón',10,$acabado_plafon_brp_obs);\n }\n if($sardinel_brp == 1){\n $this->storeDetalle($folio,'Sardinel',10,$sardinel_brp_obs);\n }\n if($piso_brp == 1){\n $this->storeDetalle($folio,'Piso',10,$piso_brp_obs);\n }\n if($zoclo_brp == 1){\n $this->storeDetalle($folio,'Zoclo',10,$zoclo_brp_obs);\n }\n\n ////////////////// VESTIDOR\n if($acc_electrico_vest == 1){\n $this->storeDetalle($folio,'Acc. Eléctricos',11,$acc_electrico_vest_obs);\n }\n if($acabado_muro_vest == 1){\n $this->storeDetalle($folio,'Acabado muros',11,$acabado_muro_vest_obs);\n }\n if($acabado_plafon_vest == 1){\n $this->storeDetalle($folio,'Acabado plafón',11,$acabado_plafon_vest_obs);\n }\n if($piso_vest == 1){\n $this->storeDetalle($folio,'Piso',11,$piso_vest_obs);\n }\n if($zoclo_vest == 1){\n $this->storeDetalle($folio,'Zoclo',11,$zoclo_vest_obs);\n }\n if($zoclo_vest == 1){\n $this->storeDetalle($folio,'Zoclo',11,$zoclo_vest_obs);\n }\n\n ////////////////// RECAMARA 2\n if($puerta_rec2 == 1){\n $this->storeDetalle($folio,'Puerta',12,$puerta_rec2_obs);\n }\n if($chapa_rec2 == 1){\n $this->storeDetalle($folio,'Chapa',12,$chapa_rec2_obs);\n }\n if($sello_marco_rec2 == 1){\n $this->storeDetalle($folio,'Sello marco',12,$sello_marco_rec2_obs);\n }\n if($cancel_rec2 == 1){\n $this->storeDetalle($folio,'Cancel',12,$cancel_rec2_obs);\n }\n if($sello_cancel_rec2 == 1){\n $this->storeDetalle($folio,'Sello cancel',12,$sello_cancel_rec2_obs);\n }\n if($vidrio_cancel_rec2 == 1){\n $this->storeDetalle($folio,'Vidrio cancel',12,$vidrio_cancel_rec2_obs);\n }\n if($mosquitero_rec2 == 1){\n $this->storeDetalle($folio,'Mosquitero',12,$mosquitero_rec2_obs);\n }\n if($acc_rec2 == 1){\n $this->storeDetalle($folio,'Acc. Eléctricos',12,$acc_rec2_obs);\n }\n if($salida_alarma_rec2 == 1){\n $this->storeDetalle($folio,'Salida alarma',12,$salida_alarma_rec2_obs);\n }\n if($acabado_muro_rec2 == 1){\n $this->storeDetalle($folio,'Acabado muros',12,$acabado_muro_rec2_obs);\n }\n if($acabado_plafon_rec2 == 1){\n $this->storeDetalle($folio,'Acabado plafón',12,$acabado_plafon_rec2_obs);\n }\n if($piso_rec2 == 1){\n $this->storeDetalle($folio,'Piso',12,$piso_rec2_obs);\n }\n if($zoclo_rec2 == 1){\n $this->storeDetalle($folio,'Zoclo',12,$zoclo_rec2_obs);\n }\n ////////////////// RECAMARA 3\n if($puerta_rec3 == 1){\n $this->storeDetalle($folio,'Puerta',13,$puerta_rec3_obs);\n }\n if($chapa_rec3 == 1){\n $this->storeDetalle($folio,'Chapa',13,$chapa_rec3_obs);\n }\n if($sello_marco_rec3 == 1){\n $this->storeDetalle($folio,'Sello marco',13,$sello_marco_rec3_obs);\n }\n if($cancel_rec3 == 1){\n $this->storeDetalle($folio,'Cancel',13,$cancel_rec3_obs);\n }\n if($sello_cancel_rec3 == 1){\n $this->storeDetalle($folio,'Sello cancel',13,$sello_cancel_rec3_obs);\n }\n if($vidrio_cancel_rec3 == 1){\n $this->storeDetalle($folio,'Vidrio cancel',13,$vidrio_cancel_rec3_obs);\n }\n if($mosquitero_rec3 == 1){\n $this->storeDetalle($folio,'Mosquitero',13,$mosquitero_rec3_obs);\n }\n if($acc_rec3 == 1){\n $this->storeDetalle($folio,'Acc. Eléctricos',13,$acc_rec3_obs);\n }\n if($salida_alarma_rec3 == 1){\n $this->storeDetalle($folio,'Salida alarma',13,$salida_alarma_rec3_obs);\n }\n if($acabado_muro_rec3 == 1){\n $this->storeDetalle($folio,'Acabado muros',13,$acabado_muro_rec3_obs);\n }\n if($acabado_plafon_rec3 == 1){\n $this->storeDetalle($folio,'Acabado plafón',13,$acabado_plafon_rec3_obs);\n }\n if($piso_rec3 == 1){\n $this->storeDetalle($folio,'Piso',13,$piso_rec3_obs);\n }\n if($zoclo_rec3 == 1){\n $this->storeDetalle($folio,'Zoclo',13,$zoclo_rec3_obs);\n }\n \n //////////////// AZOTEA\n if($pretiles_azotea == 1){\n $this->storeDetalle($folio,'Pretiles',14,$pretiles_azotea_obs);\n }\n if($impermeabilizacion == 1){\n $this->storeDetalle($folio,'Impermeabilización',14,$impermeabilizacion_obs);\n }\n if($domos_azotea == 1){\n $this->storeDetalle($folio,'Domos',14,$domos_azotea_obs);\n }\n if($mufas_azotea == 1){\n $this->storeDetalle($folio,'Mufas',14,$mufas_azotea_obs);\n }\n if($jarros_azotea == 1){\n $this->storeDetalle($folio,'Jarros de aire',14,$jarros_azotea_obs);\n }\n if($ventilas_azotea == 1){\n $this->storeDetalle($folio,'Ventilas inst. Sn.',14,$ventilas_azotea_obs);\n }\n if($base_tinaco_azotea == 1){\n $this->storeDetalle($folio,'Base tinaco',14,$base_tinaco_azotea_obs);\n }\n if($tinaco_azotea == 1){\n $this->storeDetalle($folio,'Tinaco',14,$tinaco_azotea_obs);\n }\n if($calentador_solar_azotea == 1){\n $this->storeDetalle($folio,'Calentador solar',14,$calentador_solar_azotea_obs);\n }\n if($punta_gas_azotea == 1){\n $this->storeDetalle($folio,'Punta inst. Gas',14,$punta_gas_azotea_obs);\n }\n if($anclas_azotea == 1){\n $this->storeDetalle($folio,'Anclas escalera',14,$anclas_azotea_obs);\n }\n if($limpieza_azotea == 1){\n $this->storeDetalle($folio,'Limpieza',14,$limpieza_azotea_obs);\n }\n\n ///////////// GENERALES\n if($limpieza_interior == 1){\n $this->storeDetalle($folio,'Limpieza interior',15,$limpieza_interior_obs);\n }\n if($limpieza_exterior == 1){\n $this->storeDetalle($folio,'Limpieza exterior',15,$limpieza_exterior_obs);\n }\n if($limpieza_vidrios == 1){\n $this->storeDetalle($folio,'Limpieza en vidrios',15,$limpieza_vidrios_obs);\n }\n if($limpieza_domos == 1){\n $this->storeDetalle($folio,'Limpieza en domos',15,$limpieza_domos_obs);\n }\n if($plastico_muebles == 1){\n $this->storeDetalle($folio,'Plástico en muebles',15,$plastico_muebles_obs);\n }\n if($candados == 1){\n $this->storeDetalle($folio,'Candados',15,$candados_obs);\n }\n if($llaves == 1){\n $this->storeDetalle($folio,'Llaves',15,$llaves_obs);\n }\n if($num_oficial == 1){\n $this->storeDetalle($folio,'Número oficial',15,$num_oficial_obs);\n }\n\n DB::commit();\n\n } catch (Exception $e){\n DB::rollBack();\n } \n \n\n }", "function testRevisionHistory() \r\n\t{\r\n\t\t$dbh = $this->dbh;\r\n\t\t\r\n\t\t$obj = new CAntObject($dbh, \"customer\", null, $this->user);\r\n\t\t$obj->setValue(\"name\", \"My First Revision\");\r\n\t\t$oid = $obj->save();\r\n\r\n\t\t$revid = $dbh->GetValue($dbh->Query(\"select id from object_revisions where object_id='$oid' and object_type_id='\".$obj->object_type_id.\"'\"));\r\n\t\t$this->assertTrue($revid > 0 && $revid !=null);\r\n\t\t//$this->assertEquals($dbh->GetValue($dbh->Query(\"select field_value from object_recurrence where id='\".$rp->id.\"'\")), 0);\r\n\t}", "function Cuerpo($acceso,$id_contrato)\n\t{\n\t\t//echo \"SELECT *FROM vista_contrato where id_contrato='$id_contrato'\";\n\t\t$acceso->objeto->ejecutarSql(\"SELECT tarifa_ser FROM vista_tarifa where id_serv='BM00001'\");\n\t\t\n\t\tif($row=row($acceso)){\n\t\t\t$costo_inst=utf8_decode(trim($row['tarifa_ser']));\n\t\t}\n\t\t//echo \"update contrato set contrato_imp='SI' where id_contrato='$id_contrato'\";\n\t\t$acceso->objeto->ejecutarSql(\"update contrato set contrato_imp='SI' where id_contrato='$id_contrato'\");\n\t\t$acceso->objeto->ejecutarSql(\"SELECT *FROM vista_contrato where id_contrato='$id_contrato'\");\n\t\tif($row=row($acceso)){\n\t\t\n\t\t\t$observacion=utf8_decode(trim($row['observacion']));\n\t\t\t$costo_contrato=utf8_decode(trim($row['costo_contrato']));\n\t\t\t$tipo_cliente=utf8_decode(trim($row['tipo_cliente']));\n\t\t\t$nombrecli=utf8_decode(trim($row['nombrecli']));\n\t\t\t$apellidocli=utf8_decode(trim($row['apellido']));\n\t\t\t$nombrecli=utf8_decode(trim($row['nombre']));\n\t\t\t$etiqueta=utf8_decode(trim($row['etiqueta']));\n\t\t\t$cedulacli=utf8_decode(trim($row['cedula']));\n\t\t\t\n\t\t\t$fecha=formatofecha(trim($row[\"fecha_contrato\"]));\n\t\t\t$fecha_nac=formatofecha(trim($row[\"fecha_nac\"]));\n\t\t\t\n\t\t\t\n\t\t\t$nro_contrato=trim($row['nro_contrato']);\n\t\t\t$id_contrato=trim($row['id_contrato']);\n\t\t\n\t\t\n\t\t\t$puntos=utf8_decode(trim($row['puntos']));\n\t\t\t$deuda=utf8_decode(trim($row['deuda']));\n\t\t\tif($deuda==\"\"){\n\t\t\t\t$deuda=0;\n\t\t\t}\n\t\t\t\n\t\t\t$deuda=number_format($deuda, 2, ',', '.');\n\t\t\t$nombre_zona=utf8_decode(trim($row['nombre_zona']));\n\t\t\t$nombre_sector=utf8_decode(trim($row['nombre_sector']));\n\t\t\t$nombre_calle=utf8_decode(trim($row['nombre_calle']));\n\t\t\t$numero_casa=utf8_decode(trim($row['numero_casa']));\n\t\t\t$telefono=utf8_decode(trim($row['telefono']));\n\t\t\t$telf_casa=utf8_decode(trim($row['telf_casa']));\n\t\t\t$telf_adic=utf8_decode(trim($row['telf_adic']));\n\t\t\t$email=utf8_decode(trim($row['email']));\n\t\t\t$direc_adicional=utf8_decode(trim($row['direc_adicional']));\n\t\t\t$id_persona=utf8_decode(trim($row['id_persona']));\n\t\t\t$postel=utf8_decode(trim($row['postel']));\n\t\t\t$taps=utf8_decode(trim($row['taps']));\n\t\t\t$pto=utf8_decode(trim($row['pto']));\n\t\t\t$edificio=utf8_decode(trim($row['edificio']));\n\t\t\t$numero_piso=utf8_decode(trim($row['numero_piso']));\n\t\t}\n\t\t$acceso->objeto->ejecutarSql(\"SELECT nombre,apellido FROM persona where id_persona='$id_persona' LIMIT 1 offset 0 \");\n\t\t\n\t\tif($row=row($acceso)){\n\t\t\t$vendedor=utf8_decode(trim($row['nombre'])).\" \".utf8_decode(trim($row['apellido']));\n\t\t\t\n\t\t}\n\n\t\tif($tipo_cliente=='JURIDICO'){\n\t\t\t$rif=$cedulacli;\n\t\t\t$cedulacli='';\n\t\t}\n\t\t\n\t\t\n\t\t$this->Ln();\t\n\t\t$this->SetFont('times','B',11);\n\t\t$this->SetXY(10,35);\t\t\n\t\t$this->Cell(195,10,\"Abonado: $nro_contrato\",\"0\",0,\"R\");\t\t\t\t\n\t\t\n\t\t\n\t\t\n\t\t$this->SetXY(40,50);\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','B',11);\n\t\t$this->SetX(10);\n\t\t$this->Cell(195,6,\"PERSONA JURIDICA.\",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',11);\n\t\t$this->SetX(10);\n\t\t$this->Cell(195,6,\"Razón Social.\",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(98,6,\"Actividad.\",\"1\",0,\"J\");\n\t\t$this->Cell(97,6,\"RIF. $rif\",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(98,6,\"E-mail.\",\"1\",0,\"J\");\n\t\t$this->Cell(97,6,\"Telef.\",\"1\",0,\"J\");\n\t\t\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',11);\n\t\t$this->SetX(10);\n\t\t$this->Cell(195,6,\"Representante Legal\",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(98,6,\"C.I: \",\"1\",0,\"J\");\n\t\t$this->Cell(97,6,\"Cargo en la Empresa.\",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','B',11);\n\t\t$this->SetX(10);\n\t\t$this->Cell(195,6,\"PERSONA NATURAL.\",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(195,6,\"Apellidos y Nombres: $nombrecli $apellidocli\",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(65,6,\"Cédula: $cedulacli\",\"1\",0,\"J\");\n\t\t$this->Cell(65,6,\"Fecha de Nac: $fecha_nac\",\"1\",0,\"J\");\n\t\t$this->Cell(65,6,\"Profesión u Oficio: \",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(65,6,\"Telf. Hab: $telf_casa\",\"1\",0,\"J\");\n\t\t$this->Cell(65,6,\"Celular: $telefono\",\"1\",0,\"J\");\n\t\t$this->Cell(65,6,\"Telef Ofic: $telf_adic\",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(65,6,\"E-mail: $email\",\"1\",0,\"J\");\n\t\t$this->Cell(65,6,\"Ingreso Mensual: \",\"1\",0,\"J\");\n\t\t$this->Cell(65,6,\"Deposito en Garantia: \",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(130,6,\"Tipo Vivienda: Propia ___ Alquilado ___ Canon Mensual: ____\",\"1\",0,\"J\");\t\t\n\t\t$this->Cell(65,6,\"Vencimiento del Contrato: / / \",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','B',11);\n\t\t$this->SetX(10);\n\t\t$this->Cell(195,6,\"DATOS DEL CONYUGUE.\",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(195,6,\"Apellidos y Nombres: \",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(65,6,\"Cédula: \",\"1\",0,\"J\");\n\t\t$this->Cell(65,6,\"Fecha de Nac: \",\"1\",0,\"J\");\n\t\t$this->Cell(65,6,\"Profesión u Oficio: \",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(65,6,\"Telf. Hab: \",\"1\",0,\"J\");\n\t\t$this->Cell(65,6,\"Celular: \",\"1\",0,\"J\");\n\t\t$this->Cell(65,6,\"Telef Ofic: \",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(98,6,\"E-mail: \",\"1\",0,\"J\");\n\t\t$this->Cell(97,6,\"Ingreso Mensual.\",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','B',11);\n\t\t$this->SetX(10);\n\t\t$this->Cell(195,6,\"DOMICILIO DEL SERVICIO\",\"1\",0,\"C\");\n\t\t\n\t\t/*$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(98,6,\"Apellidos: $apellidocli\",\"1\",0,\"J\");\n\t\t$this->Cell(97,6,\"Vendedor: $vendedor\",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(98,6,\"Suscriptor Nº: $nro_contrato\",\"1\",0,\"J\");\n\t\t$this->Cell(97,6,\"Fecha: $fecha\",\"1\",0,\"J\");*/\n\t\t\t\t\n\t\n\t\t/*if($tipo_cliente=='JURIDICO'){\n\t\t\t$rif=$cedulacli;\n\t\t\t$cedulacli='';\n\t\t}*/\n\t\t/*$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(98,6,\"C.I. $cedulacli\",\"1\",0,\"J\");\n\t\t$this->Cell(97,6,\"RIF. $rif\",\"1\",0,\"J\");*/\n\t\t\n\t\t\n\t\t/*$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(65,6,\"Ocupación: \",\"1\",0,\"J\");\n\t\t$this->Cell(65,6,\"Grupo Familiar Nº:\",\"1\",0,\"J\");\n\t\tif($fecha_nac=='11/11/1111'){\n\t\t\t$fecha_nac='';\n\t\t}\n\t\t$this->Cell(65,6,\"Fecha de Nacimiento : $fecha_nac\",\"1\",0,\"J\");\n\t\t\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','B',12);\n\t\t$this->SetX(10);\n\t\t$this->SetFillColor(76,136,206);\n\t\t$this->SetTextColor(255,255,255);\n\t\t$this->Cell(195,6,\"DOMICILIO DE SERVICIO\",\"1\",0,\"C\",'1');\n\t\t$this->SetTextColor(0,0,0);*/\n\t\t\n\t\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(98,6,\"Urb o Sector: $nombre_sector\",\"1\",0,\"J\");\t\t\n\t\t$this->Cell(97,6,\"Calle n°: \",\"1\",0,\"J\");\t\t\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(98,6,\"Avenida o Calle: $nombre_calle\",\"1\",0,\"J\");\t\t\n\t\t$this->Cell(97,6,\"Vereda : \",\"1\",0,\"J\");\t\t\n\t\t\n\t\tif($edificio!='')\n\t\t\t$apto=$numero_casa;\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(65,6,\"Edificio: $edificio\",\"1\",0,\"J\");\n\t\t$this->Cell(65,6,\"Piso:\",\"1\",0,\"J\");\n\t\t$this->Cell(65,6,\"N° de Casa o Apto: $numero_casa $apto\",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(130,6,\"Referencia o Zona: $nombre_zona N°Poste:$postel\",\"1\",0,\"J\");\n\t\t//$this->Cell(65,6,\"N° de Poste: $postel\",\"0\",0,\"J\");\n\t\t$this->Cell(65,6,\"Ruta Cuenta: \",\"1\",0,\"J\");\n\t\t\n\t\t\n\t\t/*$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(98,6,\"Zona: $nombre_zona\",\"1\",0,\"J\");\n\t\t$this->Cell(97,6,\"Manzana: \",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(98,6,\"Urb.: $nombre_sector\",\"1\",0,\"J\");*/\n\t\t\n\t\t/*if($edificio!='')\n\t\t\t$apto=$numero_casa;\n\t\t\n\t\t$this->Cell(97,6,\"Apto.: $apto\",\"1\",0,\"J\");*/\n\t\t\n\t\t\n\t\t/*$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(98,6,\"Edificio: $edificio\",\"1\",0,\"J\");\n\t\t$this->Cell(97,6,\"Cod. Postal: \",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(65,6,\"Telf. Hab: $telf_casa\",\"1\",0,\"J\");\n\t\t$this->Cell(65,6,\"Celular: $telefono\",\"1\",0,\"J\");\n\t\t$this->Cell(65,6,\"Telef Ofic: $telf_adic\",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t//Rect( float x, float y, float w, float h [, string style])\n\t\t$this->Cell(98,6,\"Vivienda Alquilada: SI ____ NO ____\",\"1\",0,\"J\");\n\t\t$this->Cell(97,6,\"Fecha de Vencimineto de Alquiler: \",\"1\",0,\"J\");\n\t\n\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(98,6,\"E-mail: $email\",\"1\",0,\"J\");\n\t\t$this->Cell(97,6,\"Proveedor de Internet: \",\"1\",0,\"J\");*/\n\t\t\n\t\t\n\t\t\n\t\t/*$this->Ln();\n\t\t$this->SetFont('times','B',12);\n\t\t$this->SetX(10);\n\t\t$this->SetFillColor(76,136,206);\n\t\t$this->SetTextColor(255,255,255);\n\t\t$this->Cell(195,6,\"SERVICIOS CONTRATADOS\",\"1\",0,\"C\",'1');\n\t\t$this->SetTextColor(0,0,0);*/\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','B',11);\n\t\t$this->SetX(10);\n\t\t$this->Cell(195,6,\"SERVICIOS CONTRATADOS\",\"1\",0,\"C\");\t\t\n\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(100,6,\"SERVICIOS \",\"1\",0,\"J\");\t\t\n\t\t$this->Cell(30,6,\"CANT.\",\"1\",0,\"C\");\n\t\t$this->Cell(30,6,\"P. UNITARIO \",\"1\",0,\"C\");\n\t\t$this->Cell(35,6,\"P. TOTAL \",\"1\",0,\"C\");\n\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(100,5,\"Instalación Principal\",\"1\",0,\"J\");\t\t\n\t\t$this->Cell(30,5,\"1\",\"1\",0,\"C\");\n\t\t$this->Cell(30,5,\"$costo_inst\",\"1\",0,\"C\");\n\t\t$this->Cell(35,5,\"$costo_inst\",\"1\",0,\"C\");\n\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(100,5,\"Tomas Adicionales\",\"1\",0,\"J\");\t\t\n\t\t$this->Cell(30,5,\"\",\"1\",0,\"C\");\n\t\t$this->Cell(30,5,\"\",\"1\",0,\"C\");\n\t\t$this->Cell(35,5,\"\",\"1\",0,\"C\");\n\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(100,5,\"Cable Coaxial\",\"1\",0,\"J\");\t\t\n\t\t$this->Cell(30,5,\"\",\"1\",0,\"C\");\n\t\t$this->Cell(30,5,\"\",\"1\",0,\"C\");\n\t\t$this->Cell(35,5,\"\",\"1\",0,\"C\");\n\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(100,5,\"Conectores\",\"1\",0,\"J\");\t\t\n\t\t$this->Cell(30,5,\"\",\"1\",0,\"C\");\n\t\t$this->Cell(30,5,\"\",\"1\",0,\"C\");\n\t\t$this->Cell(35,5,\"\",\"1\",0,\"C\");\n\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(100,5,\"Espliter\",\"1\",0,\"J\");\t\t\n\t\t$this->Cell(30,5,\"\",\"1\",0,\"C\");\n\t\t$this->Cell(30,5,\"\",\"1\",0,\"C\");\n\t\t$this->Cell(35,5,\"\",\"1\",0,\"C\");\n\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(100,5,\" \",\"1\",0,\"J\");\t\t\n\t\t$this->Cell(60,5,\"TOTAL A PAGAR BS\",\"1\",0,\"R\");\n\t\t$this->Cell(35,5,\"$costo_inst\",\"1\",0,\"C\");\n\t\n\t\t\n\t\t\n\t\t/*$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->SetTextColor(255,255,255);\n\t\t$this->Cell(50,5,\"FECHA ESTIMADA\",\"LRT\",0,\"C\",'1');\n\t\t$this->SetTextColor(0,0,0);\n\t\t$this->Cell(25,5,\"\",\"LRT\",0,\"C\");\n\t\t$this->SetTextColor(255,255,255);\n\t\t$this->Cell(25,5,\"HORA\",\"LRT\",0,\"C\",'1');\n\t\t$this->SetTextColor(0,0,0);\n\t\t$this->Cell(30,5,\"\",\"LRT\",0,\"C\");\n\t\t$this->SetTextColor(255,255,255);\n\t\t$this->Cell(30,5,\"TOTAL A\",\"LRT\",0,\"C\",'1');\n\t\t$this->SetTextColor(0,0,0);\n\t\t$this->Cell(35,5,\"$costo_contrato\",\"LRT\",0,\"C\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->SetTextColor(255,255,255);\n\t\t$this->Cell(50,5,\"DE INSTALACION\",\"LRB\",0,\"C\",'1');\n\t\t$this->SetTextColor(0,0,0);\n\t\t$this->Cell(25,5,\"\",\"LRB\",0,\"C\");\n\t\t$this->SetTextColor(255,255,255);\n\t\t$this->Cell(25,5,\"SUGERIDA\",\"LRB\",0,\"C\",'1');\n\t\t$this->SetTextColor(0,0,0);\n\t\t$this->Cell(30,5,\"\",\"LRB\",0,\"C\");\n\t\t$this->SetTextColor(255,255,255);\n\t\t$this->Cell(30,5,\"PAGAR Bs.\",\"LRB\",0,\"C\",'1');\n\t\t$this->SetTextColor(0,0,0);\n\t\t$this->Cell(35,5,\"\",\"LRB\",0,\"C\");*/\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','B',11);\n\t\t$this->SetX(10);\n\t\t$this->Cell(195,6,\"PROGRAMACIÓN\",\"1\",0,\"C\");\t\t\t\t\t\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',10);\n\t\t$this->SetX(10);\n\t\t$this->Cell(45,6,\"Descripción.\",\"1\",0,\"C\");\n\t\t$this->Cell(25,6,\"Monto\",\"1\",0,\"C\");\n\t\t$this->Cell(30,6,\"Firma Abonado\",\"1\",0,\"C\");\n\t\t$this->Cell(40,6,\"Descripción\",\"1\",0,\"C\");\n\t\t$this->Cell(25,6,\"Monto\",\"1\",0,\"C\");\n\t\t$this->Cell(30,6,\"Firma Abonado\",\"1\",0,\"C\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',10);\n\t\t$this->SetX(10);\n\t\t$this->Cell(45,6,\"Paquete Familiar Bs\",\"1\",0,\"C\");\n\t\t$this->Cell(25,6,\" \",\"1\",0,\"C\");\n\t\t$this->Cell(30,6,\" \",\"1\",0,\"C\");\n\t\t$this->Cell(40,6,\"Paquete Extendido Bs \",\"1\",0,\"C\");\n\t\t$this->Cell(25,6,\" \",\"1\",0,\"C\");\n\t\t$this->Cell(30,6,\" \",\"1\",0,\"C\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',10);\n\t\t$this->SetX(10);\n\t\t$this->Cell(45,6,\"Paquete Premium I Bs\",\"1\",0,\"C\");\n\t\t$this->Cell(25,6,\" \",\"1\",0,\"C\");\n\t\t$this->Cell(30,6,\" \",\"1\",0,\"C\");\n\t\t$this->Cell(40,6,\"Paquete Premium I Bs\",\"1\",0,\"C\");\n\t\t$this->Cell(25,6,\" \",\"1\",0,\"C\");\n\t\t$this->Cell(30,6,\" \",\"1\",0,\"C\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',10);\n\t\t$this->SetX(10);\n\t\t$this->Cell(45,6,\"Paquete Adulto Bs\",\"1\",0,\"C\");\n\t\t$this->Cell(25,6,\" \",\"1\",0,\"C\");\n\t\t$this->Cell(30,6,\" \",\"1\",0,\"C\");\n\t\t$this->Cell(40,6,\"Paquete Comercial I Bs\",\"1\",0,\"C\");\n\t\t$this->Cell(25,6,\" \",\"1\",0,\"C\");\n\t\t$this->Cell(30,6,\" \",\"1\",0,\"C\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(100,6,\"Monto de Contrato: Bs. $costo_inst\",\"1\",0,\"J\");\t\t\n\t\t$this->Cell(95,6,\"Firma del Abonado:_________________________ \",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(100,6,\"Puntos Adicionales:_________________________\",\"1\",0,\"J\");\t\t\n\t\t$this->Cell(95,6,\"Costo Punto Adicional:_______________________\",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(65,6,\"Tiempo de Instalación:\",\"1\",0,\"J\");\n\t\t$this->Cell(65,6,\"Total a Cancelar Mensual:\",\"1\",0,\"J\");\n\t\t$this->Cell(30,6,\"Total:\",\"1\",0,\"J\");\n\t\t$this->Cell(35,6,\"Contrato:\",\"1\",0,\"J\");\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',11);\n\t\t$this->SetX(10);\n\t\t$this->Cell(195,6,\"Observaciones.\",\"1\",0,\"J\");\n\t\t\t\t\t\t\n\t\t\n\t\t/*$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(195,6,\"$observacion\",\"1\",0,\"J\");*/\n\t\t\n\t/*\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(98,6,\"RECIBO DE PAGO\",\"1\",0,\"J\");\n\t\t$this->Cell(97,6,\"*EL PRECIO INCLUYE EL IMPUESTO DE LEY\",\"1\",0,\"J\");\n\t\t\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(35,6,\"Efectivo\",\"1\",0,\"C\");\n\t\t$this->Cell(35,6,\"Cheque\",\"1\",0,\"C\");\n\t\t$this->Cell(65,6,\"Cargo Cta. Cte.\",\"1\",0,\"C\");\n\t\t$this->Cell(60,6,\"Tarjeta de Credito:\",\"1\",0,\"C\");\n\t\t\n\t\n\t\t$this->Ln();\n\t\t$this->SetFont('times','',12);\n\t\t$this->SetX(10);\n\t\t$this->Cell(35,6,\"Bs. $costo_contrato\",\"1\",0,\"L\");\n\t\t$this->Cell(35,6,\"Nº.\",\"1\",0,\"L\");\n\t\t$this->Cell(65,6,\"Cta. Nº Bco.\",\"1\",0,\"L\");\n\t\t$this->Cell(60,6,\"Nombre:\",\"1\",0,\"L\");\n\t\t\n\t\n\t\t\n\t\t\n\t\t$this->Ln(15);\n\t\t\n\t\t$this->SetFont('times','',9);\n\t\t$this->SetX(10);\n\t\t$this->Cell(13,5,\"Nota:\",\"0\",0,\"L\");\n\t\t$this->MultiCell(164,5,\"En caso de que el televisor no acepte la señal de todos los canales del cable, es posible que amerite la instalación de un amplificador de sintonia, el cual deberá ser adquirido por el SUSCRIPTOR\",\"0\",\"J\");\n\t\t\n\t\t$this->SetFont('times','',9);\n\t\t$this->SetX(10);\n\t\t$this->Cell(13,5,\"Atención: \",\"0\",0,\"L\");\n\t\t$this->MultiCell(164,5,\"La Empresa. No autoriza el retiro de televisores y/o VHS por el personal de la empresa. El SUSCRIPTOR conoce y acepta las condiciones del contrato del servicio que apacen al dorso del presente\",\"0\",\"J\");\n\t\t\n\t\t$this->SetFont('times','',9);\n\t\t$this->SetX(10);\n\t\t$this->Cell(13,5,\"Aviso: \",\"0\",0,\"L\");\n\t\t$this->MultiCell(164,5,\"Se le informa a todos los suscriptores y publico en general de acuerdo a la Ley Orgánica de Telecomunicaciones, en el Artículo 189, Literal 2: será penado con prisión de uno (1) a cuatro (4) años, el que utilizando equipos o tecnologías de cualquier tipo, proporciones a un tercero el acceso o disfrute en forma fraudulenta o indebida de un serbicio o facilidad de telecomunicaciones \",\"0\",\"J\");\n\t\t\n\t\t\n\t\t\n\t\t$this->Ln(10);\n\t\t$this->SetFont('times','',10);\n\t\t$this->SetX(10);\n\t\t$this->Cell(65,5,\"________________________\",\"0\",0,\"C\");\n\t\t$this->Cell(65,5,\"_________________________________\",\"0\",0,\"C\");\n\t\t$this->Cell(65,5,\"__________________________\",\"0\",0,\"C\");\n\t\t\n\t\t$this->Ln();\n\t\t\n\t\t$this->SetX(10);\n\t\t$this->Cell(65,6,\"Firma del Vendedor\",\"0\",0,\"C\");\n\t\t$this->Cell(65,6,\"Nombre y Apellido del Suscriptor\",\"0\",0,\"C\");\n\t\t$this->Cell(65,6,\"Firma del Suscriptor\",\"0\",0,\"C\");*/\n\t\t\n\t\t/*$this->Ln(4);\n\t\t\n\t\t$this->SetDrawColor(76,136,206);\n\t\t$this->SetLineWidth(.4);\n\t\t$this->SetFont('times','I',12);\n\t\t$this->SetX(10);\n\t\t$this->MultiCell(195,5,'Av. Perimetral, Centro Comercial Residencial Central. P.B. Local Nº 07. Cúa, Edo. Miranda.\ncuatv@hotmail.com / cuatv@cantv.net',\"TB\",\"C\");*/\n\t\t\n\t\t//$this->clausulas();\n\t\t\n\t\treturn $cad;\n\t}", "public function creer_arbre_dependance_from_FullConf() {\n\t\t$dependance = array ();\n\t\tforeach ( $this->getArbreMoniteurs () as $liste_moniteurs_machine ) {\n\t\t\tforeach ( $liste_moniteurs_machine as $moniteur ) {\n\t\t\t\tif (isset ( $moniteur [\"entitySnapshot_properties\"] [\"_ownerID\"] )) {\n\t\t\t\t\t$dependance [$moniteur [\"entitySnapshot_properties\"] [\"_ownerID\"] . \" \" . $moniteur [\"entitySnapshot_properties\"] [\"_id\"]] = $moniteur [\"entitySnapshot_properties\"] [\"_name\"];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t$this->setDependance ( $dependance );\n\t\t\n\t\treturn $this->onDebug ( $this->getDependance (), 2 );\n\t}", "public function getRevisionData($revision);", "function opcion__info()\n\t{\n\t\t$p = $this->get_proyecto();\n\t\t$param = $this->get_parametros();\n\t\t$this->consola->titulo( \"Informacion sobre el PROYECTO '\" . $p->get_id() . \"' en la INSTANCIA '\" . $p->get_instancia()->get_id() . \"'\");\n\t\t$this->consola->mensaje(\"Version de la aplicación: \".$p->get_version_proyecto().\"\\n\");\n\t\tif ( isset( $param['-c'] ) ) {\n\t\t\t// COMPONENTES\n\t\t\t$this->consola->subtitulo('Listado de COMPONENTES');\n\t\t\t$this->consola->tabla( $p->get_resumen_componentes_utilizados() , array( 'Tipo', 'Cantidad') );\n\t\t} elseif ( isset( $param['-g'] ) ) {\n\t\t\t// GRUPOS de ACCESO\n\t\t\t$this->consola->subtitulo('Listado de GRUPOS de ACCESO');\n\t\t\t$this->consola->tabla( $p->get_lista_grupos_acceso() , array( 'ID', 'Nombre') );\n\t\t} else {\n\t\t\t$this->consola->subtitulo('Reportes');\n\t\t\t$subopciones = array( \t'-c' => 'Listado de COMPONENTES',\n\t\t\t\t\t\t\t\t\t'-g' => 'Listado de GRUPOS de ACCESO' ) ;\n\t\t\t$this->consola->coleccion( $subopciones );\n\t\t}\n\t}", "public function revisionAction($id_reporte)\n {\n //Check if the variable is defined \n if ($this->session->has(\"login\")) {\n }\n else\n {\n $this->response->redirect(\"\");\n }\n\n $Reporte = Reporte::findFirstByid_reporte($id_reporte);\n $this->tag->setDefault(\"id_reporte\", $Reporte->getIdReporte());\n\n $ruta=$Reporte->getRuta();\n $archivo=$Reporte->getArchivo();\n\n $this->view->ruta = $ruta;\n $this->view->archivo = $archivo;\n\n $comentarios = $this->modelsManager->createBuilder()\n ->from('Comentarios')\n ->join('Usuarios')//recordemos que no necesitamos hacer la on\n ->columns(\"comentario, fecha_comentario, concat(Usuarios.nombre,' ',paterno,' ',materno) as nombre\")\n ->where('id_reporte = :id_reporte:', array('id_reporte' => $id_reporte))\n ->orderBy('id_comentario Desc')\n ->getQuery()\n ->execute();\n\n $this->view->comentarios = $comentarios;\n }", "function get_customer_trans_version($type, $trans_no)\n{\n if (!is_array($trans_no))\n $trans_no = array($trans_no);\n\n $sql = 'SELECT trans_no, version FROM ' . TB_PREF . 'debtor_trans\n\t\t\tWHERE type=' . db_escape($type) . ' AND (';\n\n foreach ($trans_no as $key => $trans)\n $trans_no[$key] = 'trans_no=' . db_escape($trans_no[$key]);\n\n $sql .= implode(' OR ', $trans_no) . ')';\n\n $res = db_query($sql, 'document version retreival');\n\n $vers = array();\n while ($mysql = db_fetch($res)) {\n $vers[$mysql['trans_no']] = $mysql['version'];\n }\n return $vers;\n}", "function extraerConversacion(){\n $fp = fopen(\"../conversacion/conversacion.txt\",\"rb\");\n $conversacion = new Conversacion(); \n $numeroLinea = 0;\n $listaConversaciones = array();\n while (!feof($fp)){\n $linea = fgets($fp);\n $linea = trim($linea);\n if($numeroLinea == 0){\n $conversacion->setId($linea);\n }\n else{\n if($linea != \"\"){\n $conversacion->agregarMensaje($linea);\n }\n }\n $numeroLinea++;\n //. strlen(trim($linea)), strlen logitud de la cadena, trim borra las cadenas vacias al principio y al final\n\n if($linea == \"\"){\n // echo \" aqui empieza una nueva conversacion <br>\"; \n //$listaConversaciones debo agregarle la $conversacion\n array_push($listaConversaciones,$conversacion);\n $conversacion = new Conversacion(); \n $numeroLinea = 0;\n }\n }\n array_push($listaConversaciones,$conversacion);\n return $listaConversaciones;\n\n fclose($fp);\n \n }", "public function revisionOverview(LogInterface $log) {\n $account = $this->currentUser();\n $langcode = $this->languageManager()->getCurrentLanguage(LanguageInterface::TYPE_CONTENT)->getId();\n $langname = $this->languageManager()->getLanguageName($langcode);\n $languages = $log->getTranslationLanguages();\n $has_translations = (count($languages) > 1);\n $log_storage = $this->entityManager()->getStorage('log');\n $type = $log->getType();\n\n $build['#title'] = $has_translations ? $this->t('@langname revisions for %title', ['@langname' => $langname, '%title' => $log->label()]) : $this->t('Revisions for %title', ['%title' => $log->label()]);\n $header = array($this->t('Revision'), $this->t('Operations'));\n\n $revert_permission = (($account->hasPermission(\"revert $type revisions\") || $account->hasPermission('revert all revisions') || $account->hasPermission('administer logs')) && $log->access('update'));\n $delete_permission = (($account->hasPermission(\"delete $type revisions\") || $account->hasPermission('delete all revisions') || $account->hasPermission('administer logs')) && $log->access('delete'));\n\n $rows = array();\n\n $vids = $log_storage->revisionIds($log);\n\n $latest_revision = TRUE;\n\n foreach (array_reverse($vids) as $vid) {\n /** @var \\Drupal\\log\\LogInterface $revision */\n $revision = $log_storage->loadRevision($vid);\n if ($revision->hasTranslation($langcode) && $revision->getTranslation($langcode)->isRevisionTranslationAffected()) {\n $username = [\n '#theme' => 'username',\n '#account' => $revision->getRevisionAuthor(),\n ];\n\n // Use revision link to link to revisions that are not active.\n $date = $this->dateFormatter->format($revision->revision_timestamp->value, 'short');\n if ($vid != $log->getRevisionId()) {\n $link = $this->l($date, new Url('entity.log.revision', ['log' => $log->id(), 'log_revision' => $vid]));\n }\n else {\n $link = $log->link($date);\n }\n\n $row = [];\n $column = [\n 'data' => [\n '#type' => 'inline_template',\n '#template' => '{% trans %}{{ date }} by {{ username }}{% endtrans %}{% if message %}<p class=\"revision-log\">{{ message }}</p>{% endif %}',\n '#context' => [\n 'date' => $link,\n 'username' => $this->renderer->renderPlain($username),\n 'message' => ['#markup' => $revision->revision_log->value, '#allowed_tags' => Xss::getHtmlTagList()],\n ],\n ],\n ];\n // @todo Simplify once https://www.drupal.org/log/2334319 lands.\n $this->renderer->addCacheableDependency($column['data'], $username);\n $row[] = $column;\n\n if ($latest_revision) {\n $row[] = [\n 'data' => [\n '#prefix' => '<em>',\n '#markup' => $this->t('Current revision'),\n '#suffix' => '</em>',\n ],\n ];\n foreach ($row as &$current) {\n $current['class'] = ['revision-current'];\n }\n $latest_revision = FALSE;\n }\n else {\n $links = [];\n if ($revert_permission) {\n $links['revert'] = [\n 'title' => $this->t('Revert'),\n 'url' => $has_translations ?\n Url::fromRoute('log.revision_revert_translation_confirm', ['log' => $log->id(), 'log_revision' => $vid, 'langcode' => $langcode]) :\n Url::fromRoute('log.revision_revert_confirm', ['log' => $log->id(), 'log_revision' => $vid]),\n ];\n }\n\n if ($delete_permission) {\n $links['delete'] = [\n 'title' => $this->t('Delete'),\n 'url' => Url::fromRoute('log.revision_delete_confirm', ['log' => $log->id(), 'log_revision' => $vid]),\n ];\n }\n\n $row[] = [\n 'data' => [\n '#type' => 'operations',\n '#links' => $links,\n ],\n ];\n }\n\n $rows[] = $row;\n }\n }\n\n $build['log_revisions_table'] = array(\n '#theme' => 'table',\n '#rows' => $rows,\n '#header' => $header,\n '#attached' => array(\n 'library' => array('log/drupal.log.admin'),\n ),\n );\n\n return $build;\n }", "public function getRevisions(): array\n {\n return $this->revs;\n }", "protected function getGitRevision() {}", "public function getChangeLogDescription()\r\n {\r\n $hide = array(\r\n \"revision\",\r\n \"uname\",\r\n \"num_comments\",\r\n \"num_attachments\",\r\n );\r\n $buf = \"\";\r\n foreach ($this->changelog as $fname=>$log)\r\n {\r\n $oldVal = $log['oldval'];\r\n $newVal = $log['newval'];\r\n\r\n $field = $this->def->getField($fname);\r\n\r\n // Skip multi key arrays\r\n if ($field->type == \"object_multi\" || $field->type == \"fkey_multi\")\r\n continue;\r\n\r\n if ($field->type == \"bool\")\r\n {\r\n if ($oldVal == 't') $oldVal = \"Yes\";\r\n if ($oldVal == 'f') $oldVal = \"No\";\r\n if ($newVal == 't') $newVal = \"Yes\";\r\n if ($newVal == 'f') $newVal = \"No\";\r\n }\r\n\r\n if (!in_array($field->name, $hide))\r\n {\r\n $buf .= $field->title . \" was changed \";\r\n if ($oldVal)\r\n $buf .=\"from \\\"\" . $oldVal . \"\\\" \";\r\n $buf .= \"to \\\"\" . $newVal . \"\\\" \\n\";\r\n }\r\n }\r\n\r\n if (!$buf)\r\n $buf = \"No changes were made\";\r\n\r\n return $buf;\r\n }", "public function cercaReferti() {\r\n $fReferto = USingleton::getInstance(\"FReferto\");\r\n return $fReferto->cercaRefertiClinica($this->getPartitaIVAClinica());\r\n }", "public function revisionsTable();", "function revisions_annonces($id_annonce, $c=false) {\n\n// ** Champs normaux **\n\tif ($c === false) {\n\t\t// Si $c a sa valeur par defaut, alors on en fait un tableau,\n\t\t// que l'on remplit avec les nouvelles valeurs des differents champs\n\t\t$c = array();\n\t\tforeach (array(\n\t\t\t// Pour chacun de ces champs,\n\t\t\t'titre', 'lien', 'annonceur', 'peremption',\n\t\t\t'type', 'descriptif', 'source_lien', 'source_nom', 'statut'\n\t\t) as $champ)\n\t\t\t// on en recupere la nouvelle valeur (a condition qu'ils ne soient pas vides),\n\t\t\tif (($a = _request($champ)) !== null)\n\t\t\t\t// que l'on met dans le tableau $c\n\t\t\t\t$c[$champ] = $a;\n\t}\n\n\t// Si l'annonce est publiee, invalider les caches et demander sa reindexation\n\t// (indispensable pour mettre a jour l'annonce du cote public)\n\t// $t est le statut actuel de l'objet, que l'on recupere en premier lieu\n\t$t = sql_getfetsel(\"statut\", \"spip_vu_annonces\", \"id_annonce=$id_annonce\");\n\tif ($t == 'publie') {\n\t\t// Si le statut est publie, alors on indique que cette annonce devra etre invalidee\n\t\t$invalideur = \"id='id_annonce/$id_annonce'\";\n\t\t// et on demande une reindexation\n\t\t$indexation = true;\n\t}\n\t// On charge le fichier qui contient la fonction necessaire...\n\tinclude_spip('inc/modifier');\n\t// ... que l'on execute ensuite avec les parametres definis juste au dessus\n\tmodifier_contenu('annonce', $id_annonce,\n\t\tarray(\n\t\t\t'nonvide' => array('titre' => _T('info_sans_titre')),\n\t\t\t'invalideur' => $invalideur,\n\t\t\t'indexation' => $indexation\n\t\t),\n\t\t$c);\n\n\n// ** Un cas special : changer le statut ? **\n\t// On recupere pour commencer le statut actuel de la breve,\n\t$row = sql_fetsel(\"statut\", \"spip_vu_annonces\", \"id_annonce=$id_annonce\");\n\t// pour ensuite le stocker dans deux variables differentes\n\t$statut_ancien = $statut = $row['statut'];\n\t// Si un nouveau statut est demande, ET qu'il est different de l'actuel, \n\t// ?? a rajouter pour la suite : \"ET que nous avons les autorisations pour le changer\"\n\tif (_request('statut', $c) AND _request('statut', $c) != $statut) {\n\t\t// Alors $statut acquiere sa valeur nouvelle (vu au dessus avec $champs)\n\t\t$statut = $champs['statut'] = _request('statut', $c);\n\t}\n\n// ** Rendre effective la revision **\n\t// Si le tableau contenant les nouvelles valeurs est vide (rien a changer),\n\t// alors c'est termine !\n\tif (!$champs) return;\n\n\t// Si l'etape precedente est passee, alors on a des choses a faire.\n\t// On demande simplement une mise a jour de la table avec les nouvelles valeurs ($champs)\n\tsql_updateq('spip_vu_annonces', $champs, \"id_annonce=$id_annonce\");\n\n// ** Post-modifications **\n\t// Invalider les caches\n\tinclude_spip('inc/invalideur');\n\tsuivre_invalideur(\"id='id_annonce/$id_annonce'\");\n\n}", "function deletedMissionVersions($quote_id,$version=NULL,$type=NULL)\n\t{\t\t\t\t\t\t\t\n\t\t$quoteMission_obj=new Ep_Quote_QuoteMissions();\n\t\t$deletedMissionVersions=$quoteMission_obj->getDeletedMissionVersionDetails($quote_id,$version,$type);\n\t\tif(!$deletedMissionVersions)\n\t\t\t$deletedMissionVersions=array();\n\n\t\t//getting mission details showing current version deleted missions of final stage too\n\t\tif(!$type)\n\t\t{\n\t\t\t$searchParameters['quote_id']=$quote_id;\n\t\t\t$searchParameters['include_final']='no';\n\n\t\t\t$quoteMission_obj=new Ep_Quote_QuoteMissions();\n\t\t\t$missonDetails=$quoteMission_obj->getMissionDetails($searchParameters);\n\t\t\tif(!$missonDetails)\n\t\t\t\t$missonDetails=array();\n\n\t\t\t$deletedMissionVersions=array_merge($deletedMissionVersions,$missonDetails);\n\t\t}\t\n\n\n\t\t//echo \"<pre>\";print_r($deletedMissionVersions);exit;\n\n\t\tif($deletedMissionVersions && count($deletedMissionVersions)>0)\t\t\n\t\t{\n\t\t\t$d=0;\n\t\t\tforeach($deletedMissionVersions as $dmission)\n\t\t\t{\n\t\t\t\t$deletedMissionVersions[$d]['product_name']=$this->product_array[$dmission['product']];\t\t\t\n\t\t\t\t$deletedMissionVersions[$d]['language_source_name']=$this->getLanguageName($dmission['language_source']);\n\t\t\t\t$deletedMissionVersions[$d]['product_type_name']=$this->producttype_array[$dmission['product_type']];\n\t\t\t\tif($mission['language_dest'])\n\t\t\t\t\t$deletedMissionVersions[$d]['language_dest_name']=$this->getLanguageName($dmission['language_dest']);\n\n\t\t\t\t\n\n\t\t\t\t$deletedMissionVersions[$d]['comment_time']=time_ago($dmission['created_at']);\n\n\t\t\t\t$prodMissionObj=new Ep_Quote_ProdMissions();\n\t\t\t\t\n\t\t\t\t$prodMissionDetails=$prodMissionObj->getProdVersionCostDetails($dmission['identifier'],$version);\n\n\t\t\t\tif(!$prodMissionDetails)\n\t\t\t\t{\n\t\t\t\t\t$prodParams['quote_mission_id']=$dmission['identifier'];\n\t\t\t\t\t$prodMissionDetails=$prodMissionObj->getProdMissionDetails($prodParams);\n\t\t\t\t}\n\t\t\t\t\n\n\t\t\t\tif($prodMissionDetails)\n\t\t\t\t{\t\t\t\t\t\n\t\t\t\t\t$internalcost_details='';\n\t\t\t\t\t$staff_time=array();\n\n\t\t\t\t\tforeach($prodMissionDetails as $prodMission)\n\t\t\t\t\t{\t\t\t\t\t\t\n\t\t\t\t\t\t$internalcost_details.=$this->seo_product_array[$prodMission['product']]. \" : \".zero_cut($prodMission['cost'],2).\" &\".$prodMission['currency'].\";<br>\";\n\t\t\t\t\t}\n\t\t\t\t\t$deletedMissionVersions[$d]['internalcost_details']=$internalcost_details;\n\n\t\t\t\t\t$deletedMissionVersions[$d]['prod_mission_details']=$prodMissionDetails;\t\n\t\t\t\t}\n\n\t\t\t\tif($deletedMissionVersions[$d]['turnover']<=0)\t\t\n\t\t\t\t\t$deletedMissionVersions[$d]['turnover']=($dmission['volume']*$dmission['unit_price']);\n\n\t\t\t\t$d++;\n\t\t\t}\n\t\t}\n\n\t\treturn $deletedMissionVersions;\n\t}", "private function getRecepcion(){\n\t\t\t$idRecepcion = $this->validateNumber(isset($_REQUEST['idRecepcion'])?$_REQUEST['idRecepcion']:NULL);\n\t\t\tif($idRecepcion!==''){\n\t\t\t\tif(($result = $this->model->lists(-1,$idRecepcion))){\n\t\t\t\t\tif(is_numeric($result)){\n\t\t\t\t\t\tif ($this->api) {\n\t\t\t\t\t\t\techo $this->json_encode(array('error'=>VACIO,'data'=>NULL,'mensaje'=>'No se encontro Registro alguno'));\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t$template = $this->twig->loadTemplate('vacio.html'); echo $template->render(array('session'=>$this->session,'data'=>NULL));\n\t\t\t\t\t\t}\n\t\t\t\t\t}else{\n\t\t\t\t\t\tif($this->api){\n\t\t\t\t\t\t\techo $this->json_encode(array('error'=>OK,'data'=>$result,'mensaje'=>'Correcto'),JSON_UNESCAPED_UNICODE);\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t$template = $this->twig->loadTemplate('recepcionList.html');\n\t\t\t\t\t\t\techo $template->render(array('session'=>$this->session,'data'=>$result));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tif($this->api){\n\t\t\t\t\t\techo $this->json_encode(array('error'=>ERROR_DB,'data'=>NULL,'mensaje'=>'Error al Realizar la Consulta'));\n\t\t\t\t\t}else{\n\t\t\t\t\t\t//CARGAR VISTA ERROR DB\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tif($this->api){\n\t\t\t\t\techo $this->json_encode(array('error'=>FORMATO_INCORRECTO,'data'=>NULL,'mensaje'=>'Formato Incorrecto'));\n\t\t\t\t}else{\n\t\t\t\t\t//CARGAR VISTA FORMATO INCORRECTO\n\t\t\t\t}\n\t\t\t}\n\t\t}", "function wp_ajax_get_revision_diffs()\n {\n }", "public function getRev()\n {\n return $this->data['fields']['rev'];\n }", "function getRevisions( $id )\n\t{\t$query = \"SELECT bylaws.approved\n\t\t\tFROM bylaws, bylaws_index\n\t\t\tWHERE bylaws_index.id = ?\n\t\t\t\tAND bylaws_index.bylawId = bylaws.id\";\n\t\treturn $this->_db->fetchCol( $query, array($id) );\n\t}", "function node_revision_overview($node) {\n drupal_set_title(t('Revisions for %title', array('%title' => $node->title)));\n\n $header = array(t('Revision'), array('data' => t('Operations'), 'colspan' => 2));\n\n $revisions = node_revision_list($node);\n\n $rows = array();\n $revert_permission = FALSE;\n if ((user_access('revert revisions') || user_access('administer nodes')) && node_access('update', $node)) {\n $revert_permission = TRUE;\n }\n $delete_permission = FALSE;\n if ((user_access('delete revisions') || user_access('administer nodes')) && node_access('delete', $node)) {\n $delete_permission = TRUE;\n }\n foreach ($revisions as $revision) {\n $row = array();\n $operations = array();\n\n if ($revision->current_vid > 0) {\n $row[] = array('data' => t('!date by !username', array('!date' => l(format_date($revision->timestamp, 'small'), \"node/$node->nid\"), '!username' => theme('username', $revision)))\n . (($revision->log != '') ? '<p class=\"revision-log\">'. filter_xss($revision->log) .'</p>' : ''),\n 'class' => 'revision-current');\n $operations[] = array('data' => theme('placeholder', t('current revision')), 'class' => 'revision-current', 'colspan' => 2);\n }\n else {\n $row[] = t('!date by !username', array('!date' => l(format_date($revision->timestamp, 'small'), \"node/$node->nid/revisions/$revision->vid/view\"), '!username' => theme('username', $revision)))\n . (($revision->log != '') ? '<p class=\"revision-log\">'. filter_xss($revision->log) .'</p>' : '');\n if ($revert_permission) {\n $operations[] = l(t('revert'), \"node/$node->nid/revisions/$revision->vid/revert\");\n }\n if ($delete_permission) {\n $operations[] = l(t('delete'), \"node/$node->nid/revisions/$revision->vid/delete\");\n }\n }\n $rows[] = array_merge($row, $operations);\n }\n\n return theme('table', $header, $rows);\n}", "public function revision($id){\n $users = User::orderBy('id','desc')->get();\n\n $posts = Post::with('comments', 'user', 'project')->orderBy('id', 'desc')->limit(20)->get();\n\n $tasks = DB::table('tasks')\n ->leftJoin('users', 'tasks.user_id', '=', 'users.id')\n ->leftJoin('projects', 'tasks.project_id', '=', 'projects.id')\n ->select('tasks.*', 'users.first_name', 'users.last_name', 'users.profile_image', 'projects.project_name')\n ->orderBy('id', 'desc')\n ->get();\n\n $user = User::find($id);\n //fetch folder by ID\n $revision = Review::find($id);\n $folders = Folder::with('files', 'user')->orderBy('id', 'desc')->limit(20)->get();\n //fetch user by ID\n $user = User::find($id);\n $notes = DB::table('notes')\n ->leftJoin('users', 'notes.user_id', '=', 'users.id')\n ->select('notes.*', 'users.first_name', 'users.last_name', 'users.profile_image')\n ->orderBy('notes.id', 'desc')\n ->get();\n $colors = ColorSettings::orderBy('id', 'desc')->limit('1')->get();\n\n $logos = WorkspaceLogoSetting::orderBy('id', 'desc')->limit('1')->get();\n\n //dd($posts); die();\n\n return view('document_control.revision', [\n 'posts' => $posts,\n 'tasks' => $tasks,\n 'revision'=> $revision,\n 'folders'=> $folders,\n 'notes' => $notes,\n 'colors' => $colors,\n 'logos' => $logos,\n 'users' => $users,\n 'user' => $user,\n ]);\n\n }", "function dibujar_versiones($lista)\n{\n $cadena = '';\n\n if(count($lista) > 0){\n foreach($lista as $objeto){\n $cadena = $cadena.'<p><strong style=\"color:#2babcf\">'.$objeto->version->abreviatura.'</strong><br>'.$objeto->texto.'</p>';\n }\n }\n\n return $cadena;\n}", "function getInfo($version_history_id)\n {\n global $conn, $feedback;\n\n $version_history_id = addslashes(htmlspecialchars(trim($version_history_id)));\n if ($version_history_id == '') {\n $feedback = \"Please Choose an article version\";\n return false;\n }\n\n //$q = \"SELECT ar.*, cc.campaign_name, cc.campaign_id, ck.copy_writer_id, ck.editor_id, ck.keyword, ck.article_type, ck.date_start, ck.date_end, ck.is_sent, ck.keyword_meta, ck.description_meta,ck.mapping_id \".\n $q = \"SELECT arvh.*, cc.campaign_name, cc.client_id, cc.campaign_id,ck.keyword \".\n \"FROM articles_version_history AS arvh \".\n \"LEFT JOIN campaign_keyword AS ck ON (arvh.keyword_id = ck.keyword_id) \".\n \"LEFT JOIN client_campaigns AS cc ON (cc.campaign_id = ck.campaign_id) \".\n \"WHERE arvh.version_history_id = '\". $version_history_id . \"' AND ck.status!='D' \";\n $ret = $conn->GetRow($q);\n $version = $ret['version_number'];\n if ($ret['created_by'] > 0) {\n $created_by = $ret['created_by'];\n if ($ret['created_role'] == 'client') {\n $sql = \"SELECT user_name FROM client WHERE client_id = \" . $created_by;\n } else {\n $sql = \"SELECT user_name FROM users WHERE user_id = \" . $created_by;\n }\n $ret['submitted_by'] = $conn->GetOne($sql);\n }\n $article_id = $ret['article_id'];\n $ret['richtext_body'] = html_entity_decode($ret['richtext_body'], ENT_QUOTES, \"UTF-8\");\n $q = \"SELECT coa.*, u.user_name AS creator, c.user_name AS ccreator \" . \n \"FROM comments_on_articles AS coa \".\n \"LEFT JOIN users AS u ON (u.user_id = coa.creation_user_id) \".\n \"LEFT JOIN client AS c ON (c. client_id = coa.creation_user_id) \".\n \"LEFT JOIN articles AS ar ON (ar.article_id = coa.article_id) \".\n \"LEFT JOIN campaign_keyword AS ck ON (ar.keyword_id = ck.keyword_id) \".\n \"WHERE coa.article_id = '\".$article_id.\"' AND coa.version_number='\" . $version. \"' ORDER BY coa.version_number, coa.creation_date\";\n $comments = $conn->GetAll($q);\n if (!empty($comments)) $ret['comment'] = $comments;\n return $ret;\n }", "public function getRevision()\n {\n return $this->_rev;\n }", "protected function getGitRevision()\n {\n chdir(PATH_site);\n $revision = trim(CommandUtility::exec('git describe'));\n chdir(PATH_typo3);\n return [\n htmlspecialchars('Site Version'),\n htmlspecialchars($revision),\n 'sysinfo-git',\n ];\n }", "public function revisionOverview(EventContentInterface $event_content) {\n $account = $this->currentUser();\n $langcode = $event_content->language()->getId();\n $langname = $event_content->language()->getName();\n $languages = $event_content->getTranslationLanguages();\n $has_translations = (count($languages) > 1);\n $event_content_storage = $this->entityManager()->getStorage('event_content');\n\n $build['#title'] = $has_translations ? $this->t('@langname revisions for %title', ['@langname' => $langname, '%title' => $event_content->label()]) : $this->t('Revisions for %title', ['%title' => $event_content->label()]);\n $header = [$this->t('Revision'), $this->t('Operations')];\n\n $revert_permission = (($account->hasPermission(\"revert all event content revisions\") || $account->hasPermission('administer event content entities')));\n $delete_permission = (($account->hasPermission(\"delete all event content revisions\") || $account->hasPermission('administer event content entities')));\n\n $rows = [];\n\n $vids = $event_content_storage->revisionIds($event_content);\n\n $latest_revision = TRUE;\n\n foreach (array_reverse($vids) as $vid) {\n /** @var \\Drupal\\event_content\\EventContentInterface $revision */\n $revision = $event_content_storage->loadRevision($vid);\n // Only show revisions that are affected by the language that is being\n // displayed.\n if ($revision->hasTranslation($langcode) && $revision->getTranslation($langcode)->isRevisionTranslationAffected()) {\n $username = [\n '#theme' => 'username',\n '#account' => $revision->getRevisionUser(),\n ];\n\n // Use revision link to link to revisions that are not active.\n $date = \\Drupal::service('date.formatter')->format($revision->getRevisionCreationTime(), 'short');\n if ($vid != $event_content->getRevisionId()) {\n $link = $this->l($date, new Url('entity.event_content.revision', ['event_content' => $event_content->id(), 'event_content_revision' => $vid]));\n }\n else {\n $link = $event_content->link($date);\n }\n\n $row = [];\n $column = [\n 'data' => [\n '#type' => 'inline_template',\n '#template' => '{% trans %}{{ date }} by {{ username }}{% endtrans %}{% if message %}<p class=\"revision-log\">{{ message }}</p>{% endif %}',\n '#context' => [\n 'date' => $link,\n 'username' => \\Drupal::service('renderer')->renderPlain($username),\n 'message' => ['#markup' => $revision->getRevisionLogMessage(), '#allowed_tags' => Xss::getHtmlTagList()],\n ],\n ],\n ];\n $row[] = $column;\n\n if ($latest_revision) {\n $row[] = [\n 'data' => [\n '#prefix' => '<em>',\n '#markup' => $this->t('Current revision'),\n '#suffix' => '</em>',\n ],\n ];\n foreach ($row as &$current) {\n $current['class'] = ['revision-current'];\n }\n $latest_revision = FALSE;\n }\n else {\n $links = [];\n if ($revert_permission) {\n $links['revert'] = [\n 'title' => $this->t('Revert'),\n 'url' => $has_translations ?\n Url::fromRoute('entity.event_content.translation_revert', ['event_content' => $event_content->id(), 'event_content_revision' => $vid, 'langcode' => $langcode]) :\n Url::fromRoute('entity.event_content.revision_revert', ['event_content' => $event_content->id(), 'event_content_revision' => $vid]),\n ];\n }\n\n if ($delete_permission) {\n $links['delete'] = [\n 'title' => $this->t('Delete'),\n 'url' => Url::fromRoute('entity.event_content.revision_delete', ['event_content' => $event_content->id(), 'event_content_revision' => $vid]),\n ];\n }\n\n $row[] = [\n 'data' => [\n '#type' => 'operations',\n '#links' => $links,\n ],\n ];\n }\n\n $rows[] = $row;\n }\n }\n\n $build['event_content_revisions_table'] = [\n '#theme' => 'table',\n '#rows' => $rows,\n '#header' => $header,\n ];\n\n return $build;\n }", "public function setta_revisione_profili($ids)\n {\n $id_da_notificare = array();\n // crea un array se solo un ID è stato passato\n if (!is_array($ids))\n {\n $ids = array($ids);\n }\n foreach ($ids as $id_profilo)\n {\n $this->db->select('id_stato_profilo')\n ->from('rrtq_profilo')\n ->where('id_profilo', $id_profilo);\n $query = $this->db->get();\n $row = $query->row(0)->id_stato_profilo;\n\n if ((int) $row < 2)\n {\n $this->db->set('id_stato_profilo', 2);\n // NEL CASO IN CUI LO STATO PASSASSE DA PUBBLICATA AD ALTRO SERIALIZZO IL CONTENUTO \n $this->load->model('qualificazione_model');\n $file_qualificazione = $this->qualificazione_model->select_qualificazione($id_profilo);\n $this->db->set('file_qualificazione', serialize($file_qualificazione));\n $this->db->where('id_profilo', $id_profilo);\n $this->db->update('rrtq_profilo');\n $id_da_notificare[] = $id_profilo;\n }\n //Quando lo stato corrente è NON PUBBLICATO e si modifica una qualificazione,\n //lo stato non cambia ma non si attiva il controolo delle modifiche ( In Revisione, etc.). \n //Per evitare che questo avvenga e gestire il processo di validazione delle modifiche\n //la versione corrente dovrebbe passare a \"In revisione\" e settare a NULL \"data_ultima_pubblicazione\"\n // Facendo così il pubblico non visualizza la qualificazione in elenco.\n }\n\n if (count($ids) > 0)\n {\n /* LOG ACTIVITY */\n $this->activity->log('revision', array('id' => implode(\",\", $ids), 'table' => 'Qualificazione'));\n /* END LOG */\n }\n /* MESSAGES NOTIFICATION SYSTEM */\n if ($this->config->item('enable_messages'))\n {\n if (count($id_da_notificare) > 0)\n {\n $this->messaggistica->invia_messaggio('setta_revisione_profili', $this->get_titoli_profilo($id_da_notificare));\n }\n }\n /* END MESSAGES */\n }", "public function VerDetallesCreditos()\n{\n\tself::SetNames();\n\t$sql = \" select * FROM abonoscreditos INNER JOIN ventas ON abonoscreditos.codventa = ventas.codventa WHERE abonoscreditos.codventa = ?\";\t\n\t$stmt = $this->dbh->prepare($sql);\n\t$stmt->bindValue(1, trim(base64_decode($_GET[\"codventa\"])));\n\t$stmt->execute();\n\t$num = $stmt->rowCount();\n\tif($num==0)\n\t{\n\t\techo \"<div class='alert alert-danger'>\";\n\t\techo \"<button type='button' class='close' data-dismiss='alert' aria-hidden='true'>&times;</button>\";\n\t\techo \"<center><span class='fa fa-info-circle'></span> NO EXISTEN ABONOS PARA CR&Eacute;DITOS ACTUALMENTE</center>\";\n\t\techo \"</div>\";\n\t\texit;\n\t}\n\telse\n\t{\n\n\t\twhile($row = $stmt->fetch(PDO::FETCH_ASSOC))\n\t\t\t{\n\t\t\t\t$this->p[]=$row;\n\t\t\t}\n\t\t\treturn $this->p;\n\t\t\t$this->dbh=null;\n\t\t}\n\t}", "private function getChangelog($parent) {\n\t\t$file = $parent->getParent()->getPath('extension_administrator') .\n\t\t\t\t'/changelog.txt';\n\t\tif (! file_exists($file)) {\n\t\t\treturn '';\n\t\t}\n\n\t\t$changelog = file_get_contents($file);\n\t\t$changelog = preg_replace(\"#\\r#s\", '', $changelog);\n\n\t\t$parts = explode(\"\\n\\n\", $changelog);\n\t\tif (empty($parts)) {\n\t\t\treturn '';\n\t\t}\n\n\t\t$version = '';\n\t\t$changelog = array ();\n\n\t\tforeach ($parts as $part) {\n\t\t\t$part = trim($part);\n\n\t\t\t// changeloh eintrag ?!\n\t\t\tif (! preg_match('#.*(\\d+\\.\\d+\\.\\d+ - \\[.*\\]).*#i', $part)) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t// changelog version ermitteln\n\t\t\tif (preg_match('#.*(\\d+\\.\\d+\\.\\d+) - \\[.*\\].*#i', $part, $version)) {\n\t\t\t\t$version = $version[1];\n\t\t\t}\n\n\t\t\tif (version_compare($version, $this->fromVersion, '<=')) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t$part = preg_replace('#.*(\\d+\\.\\d+\\.\\d+ - \\[.*\\]).*#', '<b>$1</b><pre style=\"line-height: 1.6em;\">', $part);\n\n\t\t\t$changelog[] = $part . '</pre>';\n\t\t}\n\n\t\t$changelog = implode(\"\\n\\n\", $changelog);\n\n\t\t// Change Type: @see changelog.txt\n\t\t$change_types = [ '+' => [ 'Addition', 'success' ],\n\t\t\t\t'-' => [ 'Removed', 'danger' ], '^' => [ 'Change', 'warning' ],\n\t\t\t\t'*' => [ 'Security Fix', 'info' ], '#' => [ 'Bug Fix', 'info' ],\n\t\t\t\t'!' => [ 'Note', 'info' ],\n\t\t\t\t'$' => [ 'Language fix or change', 'info' ] ];\n\t\tforeach ($change_types as $char => $type) {\n\t\t\t$changelog = preg_replace('#\\n' . preg_quote($char, '#') . ' #', \"\\n\" .\n\t\t\t\t\t'<span class=\"label label-sm label-' . $type[1] . '\" title=\"' .\n\t\t\t\t\t$type[0] . '\">' . $char . '</span> ', $changelog);\n\t\t}\n\t\t$changelog = preg_replace('#\\n #', \"\\n \", $changelog);\n\n\t\t$title = JText::sprintf('COM_CLM_TURNIER_CHANGELOG', $this->fromVersion);\n\n\t\treturn '<div style=\"max-height: 240px; padding-right: 20px; margin-right: -20px; overflow: auto;\">' .\n\t\t\t\t'<p><b>' . $title . '</b></p>' . $changelog . '</div>';\n\t}", "public function getRevisionData()\n {\n return $this->getData();\n }", "function change_revision($file) {\n\n global $DOCDIR, $LANG;\n\n $en_file = preg_replace(\"'^\".$DOCDIR.$LANG.\"/'\", $DOCDIR.\"en/\", $file);\n\n // Get en file cvs revision\n $cvs_rev = get_tags($en_file);\n\n // Get en file cvs revision\n $svn_rev = get_tags($en_file, \"svn-rev\");\n\n // Get translated file revision\n $this_rev = get_tags($file, \"this-rev\");\n\n // If we have a numeric revision number (not n/a), compute rev. diff\n if (is_numeric($this_rev)) {\n\n $rev_diff = intval($cvs_rev) - intval($this_rev);\n\n if (!$rev_diff) {\n /* change revision number from cvs to svn */\n\n $line = file_get_contents($file);\n $str = \"<!-- EN-Revision: $svn_rev Maintainer:\";\n $newline = preg_replace(\"/<!--.EN-Revision:\\s*.\\d+\\.\\d+\\s*Maintainer:/U\", $str, $line);\n\n $fp = fopen($file, \"w\");\n fwrite ($fp, $newline);\n fclose($fp);\n\n } elseif ($rev_diff > 0) {\n /* change revision number to n/a */\n\n $line = file_get_contents($file);\n $str = \"<!-- EN-Revision: n/a Maintainer:\";\n $newline = preg_replace(\"/<!--.EN-Revision:\\s*.\\d+\\.\\d+\\s*Maintainer:/U\", $str, $line);\n\n $fp = fopen($file, \"w\");\n fwrite ($fp, $newline);\n fclose($fp);\n\n } // else no touch\n }\n\n}", "public function get_description() {\r\n\t\t$text = 'Change to ' . Cast::string($this->get_params());\r\n\t\t$transmods = array('app', 'status');\r\n\t\t$inst = $this->get_instance();\r\n \t\tif ($inst instanceof IDataObject) {\r\n \t\t\tarray_unshift($transmods, $inst->get_table_name());\r\n \t\t}\r\n\t\treturn tr(\r\n\t\t\t$text, \r\n\t\t\t$transmods\r\n\t\t);\t\r\n\t}", "public function buildChangedMessage() {\n\t\t\tvar_dump(array_diff($this->data, $this->original_data));\n\t\t\t$message = array();\n\t\t\t$this->changed_message = implode(' ', $message);\n\t\t}", "public function getLastRevision();", "function get_all_contrato()\n {\n $contrato = $this->db->query(\"\n SELECT\n c.*, e.estado_descripcion, e.estado_color\n FROM\n `contrato` c\n left join estado e on c.estado_id = e.estado_id\n ORDER BY c.`contrato_id` DESC\n \")->result_array();\n\n return $contrato;\n }", "function getCommonProvisions();", "public function dataRevisionsTable();", "public function desbanearDeLasRevisiones() {\n\t\tglobal $wpdb;\n\t\treturn $wpdb->query($wpdb->prepare('\n\t\t\t\tUPDATE wp_revisiones_ban\n\t\t\t\tSET status = %d\n\t\t\t\tWHERE user_id = %d', self::DESBANEADO, $this->user_id));\n\t}", "function getFileRevision() {\n\t\treturn $this->getData('fileRevision');\n\t}", "function getRevisionCategories($revision)\n {\n $metadata = array();\n $dao = $this->getMetaDataByQualifier($revision, \"category\");\n if($dao)\n {\n $values = explode(\" --- \", $dao->getValue());\n foreach($values as $value)\n { \n if(strpos($value, \"zzz\") === false) continue;\n $metadata[] = trim(str_replace('zzz', '', $value)); \n }\n } \n return array_unique($metadata);\n }", "public static function Nueva_Version_Orden($fecha_ingreso, $id_cotizacion, $id_cliente, $id_locacion, $id_actividad, $num_muestras, $id_usuario, $estado, $version, $num_orden, $prioridad, $version_informe)\n {\n // Sentencia INSERT\n $comando = \"INSERT INTO ordenes (fecha_ingreso, id_cotizacion, id_cliente, id_locacion, id_actividad, num_muestras, id_usuario, estado, impreso, version, num_orden, razon_jt, razon_dt, razon_dc, recibido, enviado, prioridad,version_informe) VALUES( ?,?,?,?,?,?,?,?,0,?,?,'','','',0,0,?,? )\";\n\n // Preparar la sentencia\n $sentencia = Database::getInstance()->getDb()->prepare($comando);\n\n return $sentencia->execute(\n array(\n $fecha_ingreso,\n $id_cotizacion,\n $id_cliente, \n $id_locacion,\n $id_actividad,\n $num_muestras,\n $id_usuario,\n $estado,\n $version,\n $num_orden,\n $prioridad,\n $version_informe\n )\n );\n\n }", "public static function getVersionInfo()\r\n {\r\n \treturn array(\r\n \t\t\t'major' => '1',\r\n \t\t\t'minor' => '3',\r\n \t\t\t'revision' => '0',\r\n \t\t\t'patch' => '0',\r\n \t\t\t'stability' => '',\r\n \t\t\t'number' => '',\r\n \t);\r\n }", "public function parseChangelog()\n\t\t{\n\t\t\t// Set the versioning array\n\t\t\t$info = array();\n\n\t\t\t// Set the Changelog file path\n\t\t\t$filename = file_get_contents(HOME_URI . '/CHANGELOG.md');\n\t\t\t$versions = explode(\"##\", $filename);\n\t\t\tarray_shift($versions);\n\t\t\t$idx = 0;\n\n\t\t\t// Get the version informations\n\t\t\tforeach($versions as $row => $item)\n\t\t\t{\n\t\t\t\t// Check if the data refers to the version and date or description\n\t\t\t\tif($row % 2 == 0) {\n\t\t\t\t\t// Separate version and date\n\t\t\t\t\t$temp = delete_all_between('(', ')', $item);\n\t\t\t\t\t$temp = explode('-', $temp, 2);\n\n\t\t\t\t\t// Version\n\t\t\t\t\t$info[$idx]['version'] = $temp[0];\n\n\t\t\t\t\t// Date\n\t\t\t\t\t$info[$idx]['date'] = $temp[1];\n\t\t\t\t} \n\t\t\t\telse {\n\t\t\t\t\t// Clean-up the description\n\t\t\t\t\t$temp = trim(str_replace('# Commits', '', $item));\n\t\t\t\t\t$temp = preg_split('/(- |])/', $temp);\n\n\t\t\t\t\t// Initialize the description\n\t\t\t\t\t$info[$idx]['description'] = '';\n\n\t\t\t\t\tfor ($i = 1; $i < sizeof($temp); $i+=2) {\n\t\t\t\t\t\t// Link to commit\n\t\t\t\t\t\t$link = str_replace('(', '', $temp[($i + 1)]);\n\t\t\t\t\t\t$link = str_replace(')', '', $link);\n\n\t\t\t\t\t\t// Description\n\t\t\t\t\t\t$info[$idx]['description'] .= \"<a href=\" . $link . \" target='_blank'>- \" . $temp[$i] . \"]</a></br>\";\n\t\t\t\t\t}\n\n\t\t\t\t\t// Add the index\n\t\t\t\t\t$idx += 1;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Check if there is some version\n\t\t\tif ( isset($info[0]) && strcmp($info[0]['description'], \"\") != 0 )\n\t\t\t{\n\t\t\t\treturn $info;\n\t\t\t} else {\n\t\t\t\treturn 'No activity available yet.';\n\t\t\t}\n\n\t\t}", "public function versionarObjetosNaoVersionados()\n\t{\n\t\t//salvando log de inicio da operação\n\t Basico_OPController_LogOPController::getInstance()->salvaLogFS(LOG_MSG_CREATE_CVC_INICIO);\n\n\t // setando as diretrizes administraticas para execucao de metodos administrativos e recuperando as configuracoes atuais do servidor\n\t $arrayConfigAtualPHP = Basico_OPController_UtilOPController::setaDiretivasAdministrativasPHP();\n\t \n\t\t// desabilitado o pool de ids de objetos manipulados (p/log)\n\t\tself::desabilitaPoolIdsObjetosManipulados();\n\n\t\t// recuperando todos os modelos dos sistema\n\t\t$arrayNomesModelosSistema = Basico_OPController_UtilOPController::retornaArrayNomeTodosModelosSistema(true);\n\n\t\t// recuperando array de objetos que nao devem ser versionados\n\t\t$arrayNomesObjetosNaoVersionais = self::retornaArrayNomesObjetosNaoVerionaveis();\n\n\t\t// loop para remover os objetos nao verionaveis do array de modelos do sistema\n\t\tforeach ($arrayNomesObjetosNaoVersionais as $nomeObjetoNaoVersionavel) {\n\t\t\t// localizando o objeto nao versionavel no array de modelos do sistema\n\t\t\tif (($chaveObjetoNaoVersionavel = array_search($nomeObjetoNaoVersionavel, $arrayNomesModelosSistema)) !== false) {\n\t\t\t\t// removendo elemento\n\t\t\t\tunset($arrayNomesModelosSistema[$chaveObjetoNaoVersionavel]);\n\t\t\t}\n\n\t\t\t// limpando memória\n\t\t\tunset($nomeObjetoNaoVersionavel);\n\t\t}\n\n\t\t// limpando variáveis\n\t\tunset($arrayNomesObjetosNaoVersionais);\n\n\t\t// iniciando transacao\n\t\tBasico_OPController_PersistenceOPController::bdControlaTransacao();\n\n\t\t// loop para recuperar todos os objetos dos modelos\n\t\tforeach ($arrayNomesModelosSistema as $nomeModelo) {\n\t\t\ttry {\t\t\t\n\t\t\t\t// instanciando o modelo\n\t\t\t\t$modelo = new $nomeModelo();\n\n\t\t\t\t// verificando se o modelo possui mapper\n\t\t\t\tif ((property_exists($modelo, '_mapper')) and (method_exists($modelo, 'getMapper'))) {\n\t\t\t\t\t// recuperando os objetos\n\t\t\t\t\t$objetos = $modelo->getMapper()->fetchAll();\n\n\t\t\t\t\t// verificando se houve recuperacao de objetos\n\t\t\t\t\tif (count($objetos)) {\n\t\t\t\t\t\t// loop para verificar se o objeto foi versionado\n\t\t\t\t\t\tforeach ($objetos as $objeto) {\n\t\t\t\t\t\t\t// versionando objetos nao versionados\n\t\t\t\t\t\t\t$versaoObjeto = self::retornaUltimaVersao($objeto, true);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// limpando memória\n\t\t\t\t\t\tunset($objeto);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// limpando modelo e objetos\n\t\t\t\tunset($modelo);\n\t\t\t\tunset($objetos);\n\t\t\t\tunset($versaoObjeto);\n\t\t\t} catch (Exception $e) {\n\t\t\t\t// voltando a transacao\n\t\t\t\tBasico_OPController_PersistenceOPController::bdControlaTransacao(DB_ROLLBACK_TRANSACTION);\n\n\t\t\t\t// estourando excessao\n\t\t\t\tthrow new Exception(MSG_ERRO_CVC_FALHOU . $nomeModelo . \" \" . $e->getMessage());\n\t\t\t}\n\t\t}\n\n\t\t// salvando a transacao\n\t\tBasico_OPController_PersistenceOPController::bdControlaTransacao(DB_COMMIT_TRANSACTION);\n\n\t\t// voltando as diretrizes administrativas\n\t\tBasico_OPController_UtilOPController::setaDiretivasAdministrativasPHP($arrayConfigAtualPHP);\n\n\t\t// inicializando atributo $this->_arrayObjetosManipulados\n\t\t$this->limpaArrayIdsObjetosManipulados();\n\n\t\t// salvando log de sucesso na operação\n\t Basico_OPController_LogOPController::getInstance()->salvaLogFS(LOG_MSG_CREATE_CVC_SUCESSO);\n\n\t\t// retornando sucesso\n\t\treturn true;\n\t}", "function modificarCotizacion(){\n\t\t$this->procedimiento='adq.f_cotizacion_ime';\n\t\t$this->transaccion='ADQ_COT_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_cotizacion','id_cotizacion','int4');\n\t\t$this->setParametro('estado_reg','estado_reg','varchar');\n\t\t$this->setParametro('lugar_entrega','lugar_entrega','varchar');\n\t\t$this->setParametro('tipo_entrega','tipo_entrega','varchar');\n\t\t$this->setParametro('fecha_coti','fecha_coti','date');\n\t\t$this->setParametro('numero_oc','numero_oc','varchar');\n\t\t$this->setParametro('id_proveedor','id_proveedor','int4');\n\t\t$this->setParametro('precio_total','precio_total','numeric');\n\t\t$this->setParametro('fecha_entrega','fecha_entrega','date');\n\t\t$this->setParametro('id_moneda','id_moneda','int4');\n\t\t$this->setParametro('id_proceso_compra','id_proceso_compra','int4');\n\t\t$this->setParametro('fecha_venc','fecha_venc','date');\n\t\t$this->setParametro('obs','obs','text');\n\t\t$this->setParametro('fecha_adju','fecha_adju','date');\n\t\t$this->setParametro('nro_contrato','nro_contrato','varchar');\n\t\t$this->setParametro('tipo_cambio_conv','tipo_cambio_conv','numeric');\n $this->setParametro('tiempo_entrega','tiempo_entrega','varchar');\n\t\t$this->setParametro('funcionario_contacto','funcionario_contacto','varchar');\n\t\t$this->setParametro('telefono_contacto','telefono_contacto','varchar');\n\t\t$this->setParametro('correo_contacto','correo_contacto','varchar');\n\t\t$this->setParametro('prellenar_oferta','prellenar_oferta','varchar');\n\t\t$this->setParametro('forma_pago','forma_pago','varchar');\n\n $this->setParametro('id_solicitud','id_solicitud','int4');\n $this->setParametro('justificacion','justificacion','text');\n\n \n\n\t\t//Ejecuta la instruccion\n\t\t$this->armarConsulta();\n\t\t$this->ejecutarConsulta();\n //var_dump('llega', $this->respuesta);\n\t\t//Devuelve la respuesta\n\t\treturn $this->respuesta;\n\t}", "function items_completo($Id_Dpto = 0)\r\n\t{\r\n\r\n\t\t$Id_Dpto += 0;\r\n\r\n\r\n\t\t$Condicion_dpto = '';\r\n\t\tif(0 < $Id_Dpto)\r\n\t\t{\r\n\t\t\t$Condicion_dpto = '\r\n\t\t\t\twhere id_dpto = \"'.$Id_Dpto.'\"\r\n\t\t\t';\r\n\t\t}\r\n\r\n\r\n\r\n\t\t$Consulta = '\r\n\t\t\tselect id_revision_item as id_item, item, activo\r\n\t\t\tfrom revision_item\r\n\t\t\t'.$Condicion_dpto.'\r\n\t\t\torder by id_revision_item asc\r\n\t\t';\r\n\t\t$Resultado = $this->db->query($Consulta);\r\n\r\n\t\t$Items_Revision = array();\r\n\t\t\r\n\t\tif(0 < $Resultado->num_rows())\r\n\t\t{\r\n\r\n\t\t\tforeach ($Resultado->result_array() as $Fila)\r\n\t\t\t{\r\n\t\t\t\t$Items_Revision[$Fila['id_item']]['item'] = $Fila['item'];\r\n\t\t\t\t$Items_Revision[$Fila['id_item']]['activo'] = $Fila['activo'];\r\n\t\t\t\t$Items_Revision[$Fila['id_item']]['sub_item'] = array();\r\n\t\t\t}\r\n\r\n\r\n\t\t\t$Consulta = '\r\n\t\t\t\tselect id_revision_item as id_item, id_revision_sub_item as id_sitem,\r\n\t\t\t\tsub_item, activo\r\n\t\t\t\tfrom revision_sub_item\r\n\t\t\t\twhere id_revision_item in ('.implode(',', array_keys($Items_Revision)).')\r\n\t\t\t\torder by id_revision_sub_item asc\r\n\t\t\t';\r\n\t\t\t$Resultado = $this->db->query($Consulta);\r\n\r\n\t\t\tforeach ($Resultado->result_array() as $Fila)\r\n\t\t\t{\r\n\t\t\t\t$Items_Revision[$Fila['id_item']]['sub_item'][$Fila['id_sitem']]['sub_item'] = $Fila['sub_item'];\r\n\t\t\t\t$Items_Revision[$Fila['id_item']]['sub_item'][$Fila['id_sitem']]['activo'] = $Fila['activo'];\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\r\n\t\treturn $Items_Revision;\r\n\r\n\t}", "public function getChanges();", "public function getChanges();", "function getRelaciones() {\r\n //arreglo relacion de tablas\r\n //---------------------------->DEPARTAMENTO(OPERADOR)\r\n //---------------------------->TEMA(TIPO)\r\n\t\t$relacion_tablas['documento_tema']['dti_id']['tabla']='documento_tipo';\r\n\t\t$relacion_tablas['documento_tema']['dti_id']['campo']='dti_id';\r\n\t\t$relacion_tablas['documento_tema']['dti_id']['remplazo']='dti_nombre';\r\n\t\t//---------------------------->TEMA(TIPO)\r\n\r\n\t\t//---------------------------->SUBTEMA(TEMA)\r\n\t\t$relacion_tablas['documento_subtema']['dot_id']['tabla']='documento_tema';\r\n\t\t$relacion_tablas['documento_subtema']['dot_id']['campo']='dot_id';\r\n\t\t$relacion_tablas['documento_subtema']['dot_id']['remplazo']='dot_nombre';\r\n //---------------------------->SUBTEMA(TEMA)\r\n\r\n //---------------------------->DOCUMENTO(OPERADOR)\r\n $relacion_tablas['documento_actor']['ope_id']['tabla']='operador';\r\n\t\t$relacion_tablas['documento_actor']['ope_id']['campo']='ope_id';\r\n\t\t$relacion_tablas['documento_actor']['ope_id']['remplazo']='ope_nombre';\r\n //---------------------------->DOCUMENTO(TIPO DE ACTOR)\r\n $relacion_tablas['documento_actor']['dta_id']['tabla']='documento_tipo_actor';\r\n\t\t$relacion_tablas['documento_actor']['dta_id']['campo']='dta_id';\r\n\t\t$relacion_tablas['documento_actor']['dta_id']['remplazo']='dta_nombre';\r\n //----------------------------<DOCUMENTO\r\n\r\n\t\t//---------------------------->DEPARTAMENTO(OPERADOR)\r\n\t\t$relacion_tablas['departamento']['ope_id']['tabla']='operador';\r\n\t\t$relacion_tablas['departamento']['ope_id']['campo']='ope_id';\r\n\t\t$relacion_tablas['departamento']['ope_id']['remplazo']='ope_nombre';\r\n\t\t//---------------------------->DEPARTAMENTO(OPERADOR)\r\n\r\n\t\t//---------------------------->DEPARTAMENTO(REGION)\r\n\t\t$relacion_tablas['departamento']['dpr_id']['tabla']='departamento_region';\r\n\t\t$relacion_tablas['departamento']['dpr_id']['campo']='dpr_id';\r\n\t\t$relacion_tablas['departamento']['dpr_id']['remplazo']='dpr_nombre';\r\n //---------------------------->DEPARTAMENTO(REGION)\r\n\r\n\t\t//---------------------------->MUNICIPIO(DEPARTAMENTO)\r\n\t\t$relacion_tablas['municipio']['dep_id']['tabla']='departamento';\r\n\t\t$relacion_tablas['municipio']['dep_id']['campo']='dep_id';\r\n\t\t$relacion_tablas['municipio']['dep_id']['remplazo']='dep_nombre';\r\n //---------------------------->MUNICIPIO(DEPARTAMENTO)\r\n\r\n return $relacion_tablas;\r\n }", "public function getRevdate()\n {\n return $this->revdate;\n }", "public function getPubRevistasCienInIndexadas()\n {\n return $this->pubRevistasCienInIndexadas;\n }", "function _comprobarEstructuraContenido(){\n\n\t$campos_requeridos = array(\n\t\t'body',\n\t\t'og_group_ref',\n\t\t'field_download',\n\t\t'field_servicio_categoria',\n\t\t'field_acciones',\n\t\t'field_costo',\n\t\t'field_dirigido',\n\t\t'field_modalidad_digital',\n\t\t'field_modalidad_otro',\n\t\t'field_modalidad_otro_especificar',\n\t\t'field_modalidad_presencial',\n\t\t'field_modalidad_telefonico',\n\t\t'field_pasos',\n\t\t'field_requisitos_collection',\n\t\t'field_vigencia',\n\t\t'field_id_migracion',\n\t\t'field_es_migrado',\n\t\t//Relevamiento\n\t\t'field_transaccion_tipo',\n\t\t'field_digitalizacion_medir',\n\t\t'field_digitalizacion_observacion',\n\t\t'field_descargas_obligatorias',\n\t\t'field_formulario_digital',\n\t\t'field_turno_requerido',\n\t\t'field_turno_digital',\n\t\t'field_identificacion_digital',\n\t\t'field_posee_notificaciones',\n\t\t'field_notificaciones',\n\t\t'field_pago_requerido_list',\n\t\t'field_pago_electronico_list',\n\t\t'field_resumen_nivel',\n\t\t'field_relevamiento_observaciones'\n\t);\n\n\t$fields = field_info_instances('node', 'tramite');\n\n\tforeach($fields as $key => $value){\n\t\t$campos_servicio[] = $key;\n\t}\n\t\n\tforeach ($campos_requeridos as $key => $value) {\n\t\tif(!in_array($value, $campos_servicio)){\n\t\t\tdie('El campo '.$value.' no esta presente verificar la feature de servicios');\n\t\t}\n\t}\n\n}", "function evt__form_cargo__modificacion($datos)\r\n\t{\r\n $res=0;\r\n if($this->controlador()->dep('datos')->tabla('cargo')->esta_cargada()){//es una modificacion\r\n $car=$this->controlador()->dep('datos')->tabla('cargo')->get();\r\n \r\n if(isset($datos['id_puesto'])){\r\n $res=$this->controlador()->dep('datos')->tabla('puesto')->hay_superposicion_con($car['id_cargo'],$datos['id_puesto'],$datos['fec_alta'],$datos['fec_baja']);\r\n }\r\n if($res==1){//hay otro puesto \r\n toba::notificacion()->agregar('Hay superposicion. El puesto id:'.$datos['id_puesto']. ' esta ocupado por otro cargo en ese periodo. Ver en Informes->Puestos', 'error'); \r\n }else{\r\n $this->controlador()->dep('datos')->tabla('cargo')->set($datos);\r\n $this->controlador()->dep('datos')->tabla('cargo')->sincronizar(); \r\n }\r\n }else{//es un alta\r\n if(isset($datos['id_puesto'])){\r\n $res=$this->controlador()->dep('datos')->tabla('puesto')->hay_superposicion_con(0,$datos['id_puesto'],$datos['fec_alta'],$datos['fec_baja']); \r\n }\r\n if($res==1){//hay otro puesto \r\n throw new toba_error('Hay superposicion. El puesto id:'.$datos['id_puesto']. ' esta ocupado por otro cargo en ese periodo. Ver en Informes->Puestos');\r\n // toba::notificacion()->agregar('Hay superposicion. El puesto id:'.$datos['id_puesto']. ' esta ocupado por otro cargo en ese periodo. Ver en Informes->Puestos', 'error'); \r\n }else{\r\n $pers=$this->controlador()->dep('datos')->tabla('persona')->get(); \r\n $datos['generado_x_pase']=0;\r\n $datos['id_persona']=$pers['id_persona'];\r\n $this->controlador()->dep('datos')->tabla('cargo')->set($datos);\r\n $this->controlador()->dep('datos')->tabla('cargo')->sincronizar();\r\n $car=$this->controlador()->dep('datos')->tabla('cargo')->get();\r\n $cargo['id_cargo']=$car['id_cargo'];\r\n $this->controlador()->dep('datos')->tabla('cargo')->cargar($cargo);\r\n } \r\n }\r\n\t}", "function find_return_history($retrun_id = 0) {\n $revisions = db_select('commerce_return_revision', 'revision')\n ->fields('revision')\n ->condition( 'return_id', $retrun_id)\n ->orderBy('revision_timestamp')\n ->execute();\n\n $rows = array();\n $statuses = commerce_return_status_options_list();\n $all_status = array();\n foreach ($statuses as $data) {\n $all_status = array_merge($all_status, $data);\n }\n $i = 1;\n $m_statuses = variable_get('return_status_not_merchant', array());\n\n $is_merchant = user_access('return merchent access') && !user_access('return findit access');\n foreach ($revisions as $key => $revision) {\n if ( $is_merchant) {\n if (in_array($revision->status, $m_statuses)) {\n continue;\n }\n }\n $name = t(\"Customer\");\n if ($revision->revision_uid != 0) {\n $account = user_load($revision->revision_uid);\n $name = $account->name;\n }\n $updated_date = date(\"d/m/Y\", $revision->revision_timestamp);\n $updated_time = date(\"H:i\", $revision->revision_timestamp);\n $ret_status = \"<span class=status-$revision->status>\".$all_status[$revision->status].\"</span>\";\n $row = array(\n $updated_date ,\n $updated_time,\n $ret_status,\n $revision->log,\n );\n $i++;\n $rows[] = $row;\n }\n $header = array(\n t('Updated Date'),\n t('Updated Time'),\n t('Status'),\n t('Additional Note'),\n );\n return theme('table', array('rows' => $rows, 'header' => $header));\n}", "static public function ctrRemitosVentas(){\n\n\t\t$tabla = \"ventas\";\n\n\t\t$respuesta = ModeloVentas::mdlRemitosVentas($tabla);\n\n\t\treturn $respuesta;\n\t\t\n\t}", "function model_article_getDetails($revisionId)\n{\n\t\t$articleResult = db_query(\"SELECT * FROM `article_revisions` WHERE `id`='$revisionId'\");\n\t\t$num_rows = mysql_num_rows($articleResult);\n\t\tif($num_rows)\n\t\t{\n\t\t\t$article = mysql_fetch_assoc($articleResult);\n\t\t\t$details['title'] = $article['title'];\n\t\t\t$details['content'] = $article['content'];\n\t\t\t$details['categoryId'] = $article['category_id'];\n\t\t\t// Get category name\n\t\t\t$categoryResult = db_query(\"SELECT * FROM `article_categories` WHERE `id`='\".$article['category_id'].\"'\");\n\t\t\tif($categoryResult)\n\t\t\t{\n\t\t\t\t$category = mysql_fetch_assoc($categoryResult);\n\t\t\t\t$details['category'] = $category['name'];\n\t\t\t}\n\t\t\t\n\t\t\t// Get tags\n\t\t\t$tagResult = db_query(\"SELECT * FROM `article_tags` WHERE `article_id`='\".$article['id'].\"'\");\n\t\t\tif($tagResult)\n\t\t\t{\n\t\t\t\t$tagList = \"\";\n\t\t\t\twhile($tags = mysql_fetch_assoc($tagResult))\n\t\t\t\t{\n\t\t\t\t\t$tagId = $tags['tag_id'];\n\t\t\t\t\t$tagNameResult = db_query(\"SELECT * FROM `tags` WHERE `id`='$tagId'\");\n\t\t\t\t\tif($tagNameResult)\n\t\t\t\t\t{\n\t\t\t\t\t\t$tagName = mysql_fetch_assoc($tagNameResult);\n\t\t\t\t\t\t$tagList .= $tagName['name'].\", \";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$details['tags'] = $tagList;\n\t\t\t\t$details['articleId'] = $article['article_id'];\n\t\t\t\t$details['date'] = $article['date'];\n\t\t\t}\n\t\t\treturn $details;\n\t\t}else{\n\t\t\treturn false;\n\t\t}\n}", "public function get_change_log()\n\t{\n\t\treturn '';\n\t}", "public function getRevision()\n {\n return $this->result[\"revision\"];\n }", "function makeDependencies($controller, $ci, $revision, $is_readonly)\n {\n $content= \"\";\n\n $my_name = htmlEncode($ci->getDescription(true));\n\n $all_ci_list = ci::fetch();\n\n\tforeach(CiDependencyType::getDependencies() as $dependency_type) \n\t{\n\t \n\t $dep = \"\";\n\t foreach($ci->getDependencies() as $item) {\n\t\tif($ci->getDependencyType($item)->id != $dependency_type->id) \n\t\t{\n\t\t continue;\t\t \n\t\t}\n\t\t$dep .= \"<tr>\\n<td></td>\\n<td>\\n\";\n\t\t$other_name = htmlEncode($item->getDescription());\n\t\t$dep .= makeLink(array('id'=>$item->id), $item->getDescription(), null, sprintf(_(\"View all information on %s\"), $other_name));\n\t\t$dep .= \"</td><td>\\n\";\n\t\tif (!$is_readonly && $ci->isDirectDependency($item->id)) {\n\t\t $dep .= makeLink(array('task'=>'removeDependency', 'dependency_id'=>$item->id), _(\"Remove\"),'remove button', sprintf(_(\"Remove dependency from %s to %s\"), $my_name, $other_name), array('onclick'=>'return confirm(\"' .addcslashes(_(\"Are you sure?\"),'\"\\\\').'\");'));\n\t\t}\n\t\t$dep .= \"</td>\\n</tr>\\n\";\n\t }\t\n\t if( $dep != \"\") \n\t {\n\t\t$content .= \"<tr><th colspan='3'>\".htmlEncode($dependency_type->name).\"</th></tr>\\n\";\n\t\t$content .= $dep;\n\t }\n\t \n\t \n\t $dependants = $ci->getDependants();\n\n\t $dep2 = \"\";\n\t\t\t\n\t foreach($dependants as $item) {\n\t\tif($item->getDependencyType($ci)->id != $dependency_type->id) \n\t\t{\n\t\t continue;\t\t \n\t\t}\n\t\t$dep2 .= \"<tr>\\n<td></td>\\n<td>\\n\";\n\t\t$other_name = htmlEncode($item->getDescription());\n\t\t$dep2 .= makeLink(array('id'=>$item->id), $item->getDescription(), null, sprintf(_(\"View all information on %s\"),$other_name));\n\t\t$dep2 .= \"\\n</td><td>\\n\";\n\t\tif (!$is_readonly && $ci->isDirectDependant($item->id)) {\n\t\t $dep2 .= makeLink(array('task'=>'removeDependant', 'dependant_id'=>$item->id), _(\"Remove\"),'remove button', sprintf(_(\"Remove dependency from %s to %s\"), $other_name, $my_name),array('onclick'=>'return confirm(\"'.addcslashes(_(\"Are you sure?\"),'\"\\\\').'\");'));\n\t\t}\n\t\t$dep2 .= \"\\n</td></tr>\\n\";\n\t }\n\t \n\t if($dep2) \n\t {\n\t\tif(!$dependency_type->isDirected() && !$dep)\n\t\t $content .= \"<tr><th colspan='3'>\".htmlEncode($dependency_type->name).\"</th></tr>\";\n\t\telse if ($dependency_type->isDirected())\n\t\t $content .= \"<tr><th colspan='3'>\".htmlEncode($dependency_type->reverse_name).\"</th></tr>\";\n\t\t$content .= $dep2;\n\t\t\n\t }\n\t \n\t\t\t\t\n }\n\n\t$dep_indirect = \"\";\n\t\n\tforeach($ci->getDependencies() as $item) {\n\t if (!$ci->isDirectDependency($item->id)) {\n\t\t$dep_indirect .= \"<tr>\\n<td></td>\\n<td>\\n\";\n\t\t$other_name = htmlEncode($item->getDescription());\n\t\t$dep_indirect .= makeLink(array('id'=>$item->id), $item->getDescription(), null, sprintf(_(\"View all information on %s\"), $other_name));\n\t\t$dep_indirect .= \"</td><td>\\n\";\n\t\t$dep_indirect .= \"</td>\\n</tr>\\n\";\n\t }\n\t}\t\n\tif( $dep_indirect != \"\") \n\t{\n\t $content .= \"<tr><th colspan='3'>\"._(\"Indirect dependencies\").\"</th></tr>\\n\";\n\t $content .= $dep_indirect;\n\t}\n\t \n\n\n\n if (!$is_readonly) {\n\t $content .= \"<tr><th>\"._(\"Add new dependency\").\"</th><td></td><td>\\n\";\n\n\t $form = form::makeSelect('dependency_type_info', CiDependencyType::getDependencyOptions(),property::get('')) . \"<br />\";\n $form .= $controller->getApplication()->makeCiSelector('dependency_id', null);\n $form .= \"<button type='submit'>\"._(\"Add\").\"</button>\\n\";\n\n $form = form::makeForm($form, array('controller'=>'ci', 'task'=>'addDependency','id'=>$controller->id));\n\n $content .= makePopup(_(\"Add\"), _(\"Add new dependency...\"), $form, \"edit\" );\n }\n\t\t\t\t\n return $content;\n\t\t\t\t\t\t\n }", "function pre_descuento_familia_articulos(&$Sesion) {\n\t$id_cliente=$Sesion->fetchVar('id_cliente','GET');\n\t$descuentos_familia_borrar=$Sesion->fetchVar('descuentos_familia_borrar','POST');\n\t$descuentos_familia_modificar=$Sesion->fetchVar('descuentos_familia_modificar','POST');\n\t$accion_ejecutar=$Sesion->fetchVar('accion_ejecutar','POST');\n\n\t$id_cliente_sesion = $Sesion->get_var(\"id_cliente_promocion\");\n\t$oDb = $Sesion->get_db('data');\n\n\t//debug(\"glob $id_cliente\");\n\t//debug(\"ses $id_cliente_sesion\");\n\n\tif(isset($id_cliente) AND $id_cliente_sesion != $id_cliente)\n\t\t$Sesion->set_var(\"id_cliente_promocion\",$id_cliente);\n\telse {\n\t\t$id_cliente = $Sesion->get_var(\"id_cliente_promocion\");\n\t\tif(!isset($id_cliente)){\n\t\t\t// debug(\"no hay cliente\");\n\t\t\treturn;\n\t\t}\n\t}\n\n\t//$id_cliente = $Sesion->get_var(\"id_cliente_promocion\");\n\t$usuario = identifica_usuarios($Sesion);\n\t//debug($id_cliente);\n\n\tswitch($accion_ejecutar){\n\t\tcase \"Modificar\" :\n\t\t\tif ($Sesion->verifyVar('descuentos_familia_modificar',IKRN_VAR_CRC_CHANGE) AND $Sesion->verifyVar('descuentos_familia_modificar',IKRN_VAR_CRC_AUTHED)) {\n\t\t\t\tif(isset($descuentos_familia_modificar)) {\n\t\t\t\t\tforeach($descuentos_familia_modificar as $clave => $valor){\n\t\t\t\t\t\t$aTmp = array();\n\t\t\t\t\t\t$aTmp['descuento'] = $descuentos_familia_modificar[$clave];\n\t\t\t\t\t\t$aTmp['id_familia'] = $clave;\n\t\t\t\t\t\t$aTmp['id_cliente'] = $id_cliente;\n\t\t\t\t\t\t$aTmp['id_empresa'] = $usuario['id'];\n\t\t\t\t\t\t$oDb->tb_update('Cliente_familia_articulos',$aTmp);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\tbreak;\n\n\t\tcase \"Borrar\" :\n\t\t\tif(isset($descuentos_familia_borrar)){\n\t\t\t\tforeach($descuentos_familia_borrar as $clave => $valor)\n\t\t\t\t\tif($valor == 1 ){\n\t\t\t\t\t\t$aTmp = array();\n\t\t\t\t\t\t$aTmp['id_familia'] = $clave;\n\t\t\t\t\t\t$aTmp['id_cliente'] = $id_cliente;\n\t\t\t\t\t\t$aTmp['id_empresa'] = $usuario['id'];\n\t\t\t\t\t\t$oDb->tb_delete('Cliente_familia_articulos',$aTmp);\n\t\t\t\t\t}\n\t\t\t}\n\t\tbreak;\n\n\t\tcase \"Anyadir\" :\n\t\t\tif ($Sesion->verifyVar('descuentos_familia_modificar',IKRN_VAR_CRC_CHANGE) AND $Sesion->verifyVar('descuentos_familia_modificar',IKRN_VAR_CRC_AUTHED)) {\n\t\t\t\tif(isset($descuentos_familia_modificar)){\n\t\t\t\t\tforeach($descuentos_familia_modificar as $clave => $valor){\n\t\t\t\t\t\tif($descuentos_familia_modificar[$clave] != 0){\n\t\t\t\t\t\t\t$aTmp['id_empresa'] = $usuario['id'];\n\t\t\t\t\t\t\t$aTmp['id_cliente'] = $id_cliente;\n\t\t\t\t\t\t\t$aTmp['id_familia'] = $clave;\n\t\t\t\t\t\t\t$aTmp['descuento'] = $descuentos_familia_modificar[$clave];\n\t\t\t\t\t\t\t$oDb->tb_replace('Cliente_familia_articulos',$aTmp);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\tbreak;\n\n\t}//fin de acciones\n}", "public function selectDemoRecs()\n {\n $sql =\n 'select max(version) as version, id as ic_id\n from version_history\n where version_history.status <> $1\n group by id order by id limit 100';\n\n $result = $this->sdb->query($sql, array($this->deleted));\n $all = array();\n while($row = $this->sdb->fetchrow($result))\n {\n $nRow = $this->selectName(array('version' => $row['version'],\n 'ic_id' => $row['ic_id']));\n if (count($nRow) == 0)\n {\n // Yikes, cannot have a constellation with zero names.\n printf(\"\\nError: SQL.php No names for version: %s ic_id: %s\\n\", $row['version'], $row['ic_id']);\n }\n\n /*\n * For now just use the first name returned, whatever that is. selectNameEntry() sorts by\n * preference_score, but that score might not be accurate for all contexts.\n */\n $row['formatted_name'] = $nRow[0]['original'];\n array_push($all, $row);\n }\n return $all;\n }", "function cita_biblica($objeto)\n{\n return $objeto->libro->nombre . ' ' . $objeto->numero_capitulo . ': ' . $objeto->numero_versiculo;\n}", "function DocumentosVencidosConductor($numero_identificacion) {\n require_once Logistica::$root.'class/Conductor.php';\n $conductor=new Conductor;\n\n $documentos_vencidos=$conductor->VerificarDocumentos($numero_identificacion);\n $html='<table><tr><td><img src=\"css/images/alert.png\" /></td><td><p>El conductor <b>'.$documentos_vencidos['nombre'].'</b><br>tiene los siguientes documentos vencidos:</p></td></tr></table>';\n $html.='<table>';\n if (isset($documentos_vencidos['Licencia'])) {\n $html.='<tr><td><b>Licencia</b></td><td>'.$documentos_vencidos['Licencia'].'</td></tr>';\n }\n $html.='</table>';\n return $html;\n}", "function _wp_get_post_revision_version($revision)\n {\n }", "public function VerDetallesCompras()\n{\n\tself::SetNames();\n\t$sql = \" SELECT * FROM detallecompras LEFT JOIN categorias ON detallecompras.categoria = categorias.codcategoria WHERE detallecompras.codcompra = ?\";\t\n\t$stmt = $this->dbh->prepare($sql);\n\t$stmt->bindValue(1, trim(base64_decode($_GET[\"codcompra\"])));\n\t$stmt->execute();\n\t$num = $stmt->rowCount();\n\n\twhile($row = $stmt->fetch(PDO::FETCH_ASSOC))\n\t{\n\t\t$this->p[]=$row;\n\t}\n\treturn $this->p;\n\t$this->dbh=null;\n}", "public function indexSinRevision(Request $request){\n $criterio = $request->criterio;\n $buscar = $request->buscar;\n $b_etapa = $request->b_etapa;\n $b_manzana = $request->b_manzana;\n $b_lote = $request->b_lote;\n\n $fecha = Carbon::now();\n $mytime = $fecha->toTimeString();\n $hoy = $fecha->toDateString();\n\n $query = Entrega::join('contratos','entregas.id','contratos.id')\n ->join('expedientes','contratos.id','expedientes.id')\n ->join('creditos', 'contratos.id', '=', 'creditos.id')\n ->join('lotes', 'creditos.lote_id', '=', 'lotes.id')\n ->join('etapas', 'lotes.etapa_id', '=', 'etapas.id')\n ->join('licencias', 'lotes.id', '=', 'licencias.id')\n ->join('clientes', 'creditos.prospecto_id', '=', 'clientes.id')\n ->join('personal as c', 'clientes.id', '=', 'c.id')\n ->select('contratos.id as folio', \n 'contratos.equipamiento',\n DB::raw(\"CONCAT(c.nombre,' ',c.apellidos) AS nombre_cliente\"),\n 'etapas.carta_bienvenida',\n\n 'creditos.fraccionamiento as proyecto',\n 'creditos.etapa',\n 'creditos.manzana',\n 'creditos.num_lote',\n \n 'licencias.avance as avance_lote',\n 'licencias.visita_avaluo',\n 'licencias.foto_predial',\n 'licencias.foto_lic',\n 'licencias.num_licencia',\n 'contratos.fecha_status',\n 'contratos.status',\n 'contratos.equipamiento',\n 'expedientes.fecha_firma_esc',\n 'lotes.fecha_entrega_obra',\n 'lotes.id as loteId',\n 'entregas.revision_previa',\n 'entregas.fecha_program',\n \n DB::raw('DATEDIFF(current_date,entregas.fecha_program) as diferencia')\n );\n\n $contratos = $query\n ->where('contratos.status', '!=', 0)\n ->where('contratos.status', '!=', 2)\n ->where('contratos.entregado', '=', 0) \n ->where('entregas.fecha_program','!=',NULL); // aun sin fecha programada\n \n switch($criterio){\n case 'c.nombre':{\n if($buscar != '')\n $contratos = $contratos->where(DB::raw(\"CONCAT(c.nombre,' ',c.apellidos)\"), 'like', '%'. $buscar . '%');\n break;\n }\n\n case 'entregas.fecha_program':{\n if($buscar != '')\n $contratos = $contratos->whereBetween($criterio, [$buscar, $b_etapa]);\n break;\n }\n\n case 'contratos.id':{\n if($buscar != '')\n $contratos = $contratos->where($criterio, '=', $buscar);\n break;\n }\n\n case 'lotes.fraccionamiento_id':{\n if($buscar != '')\n $contratos = $contratos->where($criterio, '=', $buscar);\n if($b_etapa != '')\n $contratos = $contratos->where('lotes.etapa_id', '=', $b_etapa);\n if($b_lote != '')\n $contratos = $contratos->where('lotes.num_lote', '=', $b_lote);\n if($b_manzana != '')\n $contratos = $contratos->where('lotes.manzana', 'like', '%'. $b_manzana . '%');\n break;\n }\n }\n\n $contratos = $contratos->orderBy('licencias.avance','desc')\n ->orderBy('lotes.fecha_entrega_obra','desc')\n ->paginate(8);\n\n return [\n 'pagination' => [\n 'total' => $contratos->total(),\n 'current_page' => $contratos->currentPage(),\n 'per_page' => $contratos->perPage(),\n 'last_page' => $contratos->lastPage(),\n 'from' => $contratos->firstItem(),\n 'to' => $contratos->lastItem(),\n ],'contratos' => $contratos, 'hora' => $mytime, 'hoy' => $hoy,\n ];\n }", "static function get_dep_habilitada()\n {\n $dni = toba::usuario()->get_parametro(a);\n\n if($dni)\n {\n //--- obtengo la secretaria (estado null por si tiene mas de una entrada en la tabla) ---//\n $sql = \"select n_heredera from public.per_neike where documento = $dni and estado is null\";\n $rs = toba::db()->consultar($sql);\n // '201704030530410'; //-- Mesa de E y S --\n // '201704030534000'; //-- Procuracion --\n\t // '201704030531200'; //-- Gestion --\n /** Obtengo el c01depresu que comienza con 2017 de esa n_heredera, ya q es la q tengo en mi tabla 'dependencias_habilitadas'\n y así poder comparar y determinar a q dependencia pertenece ese empleado **/\n $sql2 = \"select c01depresu from public.scm001_her\n Where n_heredera = '\".$rs[0]['n_heredera'].\"' and c01depresu ilike '20170403%'\";\n $rs2 = toba::db()->consultar($sql2);\n // $rs2[0]['c01depresu'] = '201704030530410';\n /** Busco la posicion 12 en n_heredera q es donde empieza a cambiar la numeracion de una dep a la otra por si el usuario\n se encuentra en una subdependencia, corto ahí la n_heredera y completo con ceros, ya q así está en dep_habilitadas --------*/\n $valor = substr($rs2[0]['c01depresu'],0,12); //-- me devuelve hasta la posicion 12 de la n_heredera --//\n if($valor == '201704030531')\n { //-- se trata de de la dir. de gestion --//\n $rs[0]['n_heredera'] = str_pad(substr($rs2[0]['c01depresu'],0,13),15,'0',STR_PAD_RIGHT);\n }elseif($valor == '201704030534')\n { //-- se trata de de la dir. de procuracion --//\n $rs[0]['n_heredera'] = str_pad(substr($rs2[0]['c01depresu'],0,12),15,'0',STR_PAD_RIGHT);\n }elseif($valor == '201704030530')\n { //-- se trata de del dpto. mesa de e y s, no tiene subdependencias --//\n $rs[0]['n_heredera'] = $rs2[0]['c01depresu'];\n }\n if(((substr($rs2[0]['c01depresu'],0,11)) == '20170403053') AND count($rs2) > 0)\n {\n $sql1 = \"Select id_dep, c01leyen, estado\n From tribunal.dependencias_habilitadas\n Where c01depresu = '\".$rs2[0]['c01depresu'].\"'\";\n $rs1 = toba::db()->consultar($sql1); //-- el resultado es un único registro --//\n\n if(count($rs1) > 0)\n {\n if($rs1[0]['estado'] == 'Activo')\n {\n if($rs1[0]['id_dep'] == 1)\n {\n if(toba::perfil_de_datos()->posee_dimension('gestion','staf') == 1)\n {\n return $rs1[0];\n }\n elseif(toba::perfil_de_datos()->posee_dimension('procuracion','staf') == 1 OR\n toba::perfil_de_datos()->posee_dimension('mesa','staf') == 1)\n { \n throw new toba_error('El Perfil de Datos asignado es incorrecto. Comun&iacute;quese con el administrador. Gracias.');\n }\n }\n elseif($rs1[0]['id_dep'] == 2){\n if(toba::perfil_de_datos()->posee_dimension('gestion','staf') == 1 OR\n toba::perfil_de_datos()->posee_dimension('mesa','staf') == 1)\n {\n throw new toba_error('El Perfil de Datos asignado es incorrecto. Comun&iacute;quese con el administrador. Gracias.');\n }\n elseif(toba::perfil_de_datos()->posee_dimension('procuracion','staf') == 1)\n {\n return $rs1[0];\n }\n }\n elseif($rs1[0]['id_dep'] == 3){\n if(toba::perfil_de_datos()->posee_dimension('gestion','staf') == 1 OR\n toba::perfil_de_datos()->posee_dimension('procuracion','staf') == 1)\n {\n throw new toba_error('El Perfil de Datos asignado es incorrecto. Comun&iacute;quese con el administrador. Gracias.');\n }\n elseif(toba::perfil_de_datos()->posee_dimension('mesa','staf') == 1)\n {\n return $rs1[0];\n }\n }\n }else{\n throw new toba_error('La Dependencia fu&eacute; dada de Baja');\n }\n\n }else{ //-- no pertenece a ninguna de las dep_habilitadas --//\n throw new toba_error('Usuario inv&aacute;lido');\n }\n }else{\n throw new toba_error('Usuario inv&aacute;lido');\n }\n }else{\n throw new toba_error('Solicitar al administrador agregue el par&aacute;metro DNI para poder acceder');\n }\n }", "private function getAffectedResourceName($revision)\n {\n if ($revision->historyOf()) {\n return $revision->historyOf()->name;\n }\n if ($revision->key == 'deleted_at') {\n $oldUser = json_decode($revision->old_value);\n if($oldUser) {\n return $oldUser->name;\n }\n }\n return 'Non existing user';\n }", "function ucsc_getOrgWithAnnot(){\n $versions=\"\";global $annot_file; checkConfig();\n $lines=file($annot_file);\n foreach($lines as $line){\n list($orgg,$org,$version,$data)=explode(\",\",$line);\n if($versions==\"\")$versions=$version;else $versions.=\",$version\";\n }\n return $versions;\n}", "public function add()\n {\n $this->loadModel('SiVeriEntregas');\n $this->loadModel('Persons');\n $this->loadModel('SiLideres');\n $this->loadModel('SiPastores');\n $this->loadModel('MaPropiedades');\n //Objeto a llenar\n $verificacion = $this->SiVeriEntregas->newEntity();\n\n //POST que guarda la información agregada al formulario\n if ($this->request->is('post')) {\n $verificacion = $this->SiVeriEntregas->patchEntity($verificacion, $this->request->data);\n\n $verificaciondb = $this->SiVeriEntregas->find('all')->select(['Persona.documento'])\n ->where(['SiVeriEntregas.id_datos_basicos' => $this->request->data['id_datos_basicos'], 'SiVeriEntregas.status_id' => 1])\n ->contain(['Persona'])\n ->toArray();\n\n if (count($verificaciondb) > 0) {\n $this->Flash->error(__('La persona con documento ' . $verificaciondb[0]['Persona']['documento'] . ', ya tiene una verificación'));\n } else {\n $verificacion->id_estado_llamada = 251;\n $verificacion->status_id = 1;\n $verificacion->creator_id = $this->Auth->user()['id'];\n\n if ($this->SiVeriEntregas->save($verificacion)) {\n $this->addEncuesta($verificacion);\n $this->Flash->success(__('La verificación ha sido agregada.'), 'success');\n return $this->redirect(['action' => 'index']);\n }\n $this->Flash->error(__('No se pudo agregar la verificación.'));\n }\n }\n\n //Listas que se presentan en el formulario\n $lista1[] = array();\n unset($lista1[0]);\n $lista3[] = array();\n unset($lista3[0]);\n $lista4[] = array();\n unset($lista4[0]);\n $lista5[] = array();\n unset($lista5[0]);\n $lista9[] = array();\n\n $personsdb = $this->Persons->find()->select(['id', 'documento', 'nombres', 'apellidos'])\n ->where(['status_id' => 1])\n ->order(['nombres' => 'ASC']);\n foreach ($personsdb as $person) {\n $lista1[$person['id']] = $person['documento'] . ' | ' . $person['nombres'] . ' ' . $person['apellidos'];\n } //Lista de personas a verificar\n \n $lideresgt = $this->SiLideres->find()->select(['SiLideres.id', 'Persons.documento', 'Persons.nombres', 'Persons.apellidos'])\n ->where(['SiLideres.id_nivel' => 207, 'SiLideres.status_id' => 1])\n ->contain(['Persons'])\n ->order(['Persons.nombres' => 'ASC']);\n\n foreach ($lideresgt as $lidergt) {\n $lista2[$lidergt['id']] = $lidergt['person']['documento'] . ' | ' . $lidergt['person']['nombres'] . ' ' . $lidergt['person']['apellidos'];\n } //Lista para Lideres de GT\n\n $lideresdb = $this->SiLideres->find()->select(['SiLideres.id', 'Persons.documento', 'Persons.nombres', 'Persons.apellidos'])\n ->where(['SiLideres.id_nivel' => 209, 'SiLideres.status_id' => 1])\n ->contain(['Persons'])\n ->order(['Persons.nombres' => 'ASC']);\n\n foreach ($lideresdb as $lider) {\n $lista3[$lider['id']] = $lider['person']['documento'] . ' | ' . $lider['person']['nombres'] . ' ' . $lider['person']['apellidos'];\n } //Lista para Lideres de acompañamiento\n\n $pastoresdb = $this->SiPastores->find()->select(['SiPastores.id', 'Persons.documento', 'Persons.nombres', 'Persons.apellidos'])\n ->where(['SiPastores.status_id' => 1])\n ->contain(['Persons'])\n ->order(['Persons.nombres' => 'ASC']);\n\n foreach ($pastoresdb as $pastor) {\n $lista4[$pastor['id']] = $pastor['person']['documento'] . ' | ' . $pastor['person']['nombres'] . ' ' . $pastor['person']['apellidos'];\n } //Lista para pastores\n\n $liderconsolida = $this->SiLideres->find()->select(['SiLideres.id', 'Persons.documento', 'Persons.nombres', 'Persons.apellidos'])\n ->where(['SiLideres.id_nivel' => 1179, 'SiLideres.status_id' => 1])\n ->contain(['Persons'])\n ->order(['Persons.nombres' => 'ASC']);\n\n foreach ($liderconsolida as $liderco) {\n $lista5[$liderco['id']] = $liderco['person']['documento'] . ' | ' . $liderco['person']['nombres'] . ' ' . $liderco['person']['apellidos'];\n } //Lista para lideres de consolidación\n\n $lista6 = $lista1; //Lista para quien lo invito\n $lista7 = $this->properties(219); //Lista para tipo de entrega\n $lista8 = $this->properties(223); //Lista para fase de la entrega \n \n //Parametros que se envian a la vista\n $this->set(compact('verificacion', 'lista1', 'lista2', 'lista3', 'lista4', 'lista5', 'lista6', 'lista7', 'lista8'));\n }", "public function getRevision()\n {\n return $this->revision;\n }", "public function selectVersion2($id = '',$serie = '',$numero = '',$fecha_de_emision_desde = '',$fecha_de_emision_hasta = '',$cliente_id = '',$tipo_documento_id = '',$com_adjuntos = '',$anulado = '',$inicio = FALSE,$limite = FALSE, $empresa_id = ''){\n \n if($id != ''){\n $sql = \"SELECT com.fecha_de_emision fecha_sunat, \"\n . \" DATE_FORMAT(fecha_de_emision, '%d-%m-%Y') AS fecha_de_emision, \"\n . \" DATE_FORMAT(fecha_de_vencimiento, '%d-%m-%Y') AS fecha_de_vencimiento, \"\n . \" DATE_FORMAT(fecha_de_baja, '%d-%m-%Y') AS fecha_de_baja, \"\n . \" epr.ruc empresa_ruc, \"\n . \" epr.empresa empresa, \"\n . \" epr.descripcion1 descripcion1, \"\n . \" com.id comprobante_id, \"\n . \" com.empresa_id empresa_id, \"\n . \" com.tipo_documento_id tipo_documento_id, \"\n . \" com.serie serie, \"\n . \" com.numero numero, \"\n . \" com.total_a_pagar total_a_pagar, \"\n . \" com.total_gravada total_gravada, \"\n . \" com.total_exonerada total_exonerada, \"\n . \" com.total_inafecta total_inafecta, \"\n . \" com.total_igv total_igv, \"\n . \" com.total_gratuita total_gratuita, \"\n . \" com.total_otros_cargos total_otros_cargos, \"\n . \" com.detraccion detraccion, \"\n . \" com.operacion_cancelada operacion_cancelada, \"\n . \" com.operacion_gratuita operacion_gratuita, \"\n . \" com.porcentaje_de_detraccion porcentaje_de_detraccion, \"\n . \" com.total_detraccion total_detraccion, \"\n . \" com.cliente_id cliente_id, \"\n . \" com.tipo_nota_codigo tipo_nota_codigo, \"\n . \" com.moneda_id moneda_id, \"\n . \" com.tipo_de_cambio tipo_de_cambio, \"\n . \" com.observaciones observaciones, \" \n . \" com.enviado_cliente enviado_cliente, \"\n . \" com.enviado_equipo enviado_equipo, \" \n . \" cli.ruc cliente_ruc, \"\n . \" cli.tipo_cliente_id tipo_cliente_id, \"\n . \" cli.nombres cli_nombres, \"\n . \" cli.razon_social cli_razon_social, \"\n . \" cli.razon_social_sunat cli_razon_social_sunat, \"\n . \" cli.domicilio1 cli_domicilio1, \"\n . \" cli.email cli_email, \" \n . \" tpc.codigo tipo_cliente_codigo, \" \n . \" tdc.codigo tipo_documento_codigo, \"\n . \" tdc.tipo_documento tipo_documento, \"\n . \" eaa.id eee_id, \"\n . \" eaa.codigo codigo, \"\n . \" eaa.descripcion elemento_adicional_descripcion, \"\n . \" mon.moneda moneda, \"\n . \" mon.abrstandar abrstandar, \"\n . \" mon.simbolo simbolo\"\n . \" FROM comprobantes com \"\n . \" JOIN clientes cli ON com.cliente_id = cli.id \"\n . \" JOIN tipo_clientes tpc ON tpc.id = cli.tipo_cliente_id \"\n . \" JOIN monedas mon ON com.moneda_id = mon.id \"\n . \" JOIN tipo_documentos tdc ON com.tipo_documento_id = tdc.id \"\n . \" JOIN tipo_pagos tpp ON com.tipo_pago_id = tpp.id \"\n . \" JOIN empresas epr ON com.empresa_id = epr.id \"\n . \" LEFT JOIN elemento_adicionales eaa ON com.elemento_adicional_id = eaa.id \"\n . \" WHERE com.id = \".$id.\" AND eliminado=0 AND com.fecha_delete IS NULL\";\n \n //echo $sql;exit;\n $query = $this->db->query($sql); \n //var_dump($query->row_array());exit;\n return $query->row_array();\n }\n \n $where = '';$limit = '';\n if($serie != ''){$where.= ' AND serie = \"'.$serie.'\"';}\n if($numero != ''){$where.= ' AND numero = \"'.$numero.'\"';}\n if(($fecha_de_emision_desde != '') && ($fecha_de_emision_hasta != '')){$where.= \" AND fecha_de_emision BETWEEN '\" . $fecha_de_emision_desde . \"' AND '\" . $fecha_de_emision_hasta .\"'\";}\n if($cliente_id != ''){$where.= ' AND cliente_id = '.$cliente_id;}\n if($tipo_documento_id != ''){$where.= ' AND tipo_documento_id = '.$tipo_documento_id;}\n if($tipo_documento_id != ''){$where.= ' AND tipo_documento_id = '.$tipo_documento_id;}\n if($com_adjuntos != ''){$where.= ' AND tipo_documento_id IN(1,3)';}\n if($anulado != ''){$where.= ' AND anulado ='.$anulado;}\n if($empresa_id != ''){$where.= ' AND com.empresa_id ='.$empresa_id;}\n if($inicio !== FALSE && $limite !== FALSE){$limit.= ' LIMIT '.$inicio.','.$limite;} \n \n $sql = \"SELECT com.fecha_de_emision fecha_sunat, \"\n . \" DATE_FORMAT(fecha_de_emision, '%d-%m-%Y') AS fecha_de_emision, \"\n . \" DATE_FORMAT(fecha_de_vencimiento, '%d-%m-%Y') AS fecha_de_vencimiento, \"\n . \" DATE_FORMAT(fecha_de_baja, '%d-%m-%Y') AS fecha_de_baja, \"\n . \" epr.ruc empresa_ruc, \"\n . \" epr.empresa empresa, \"\n . \" epr.descripcion1 descripcion1, \"\n . \" com.id comprobante_id, \"\n . \" com.empresa_id empresa_id, \"\n . \" com.tipo_documento_id tipo_documento_id, \"\n . \" com.serie serie, \"\n . \" com.numero numero, \"\n . \" com.total_a_pagar total_a_pagar, \"\n . \" com.total_gravada total_gravada, \"\n . \" com.total_exonerada total_exonerada, \"\n . \" com.total_inafecta total_inafecta, \"\n . \" com.total_igv total_igv, \"\n . \" com.total_gratuita total_gratuita, \"\n . \" com.total_otros_cargos total_otros_cargos, \"\n . \" com.detraccion detraccion, \"\n . \" com.operacion_cancelada operacion_cancelada, \"\n . \" com.operacion_gratuita operacion_gratuita, \"\n . \" com.porcentaje_de_detraccion porcentaje_de_detraccion, \"\n . \" com.total_detraccion total_detraccion, \"\n . \" com.cliente_id cliente_id, \"\n . \" com.tipo_nota_codigo tipo_nota_codigo, \"\n . \" com.moneda_id moneda_id, \"\n . \" com.tipo_de_cambio tipo_de_cambio, \"\n . \" com.observaciones observaciones, \"\n . \" com.anulado anulado, \"\n . \" com.enviado_sunat enviado_sunat, \"\n . \" com.estado_sunat estado_sunat, \"\n . \" com.enviado_cliente enviado_cliente, \"\n . \" com.enviado_equipo enviado_equipo, \" \n . \" cli.ruc cliente_ruc, \"\n . \" cli.tipo_cliente_id tipo_cliente_id, \"\n . \" cli.nombres cli_nombres, \"\n . \" cli.razon_social cli_razon_social, \"\n . \" cli.razon_social razon_social, \"\n . \" cli.razon_social_sunat cli_razon_social_sunat, \"\n . \" cli.domicilio1 cli_domicilio1, \"\n . \" cli.email cli_email, \" \n . \" tpc.codigo tipo_cliente_codigo, \" \n . \" tdc.codigo tipo_documento_codigo, \"\n . \" tdc.tipo_documento tipo_documento, \"\n . \" eaa.id eee_id, \"\n . \" eaa.codigo codigo, \"\n . \" eaa.descripcion elemento_adicional_descripcion, \"\n . \" mon.moneda moneda, \"\n . \" mon.abrstandar abrstandar, \"\n . \" mon.simbolo simbolo\"\n . \" FROM comprobantes com \"\n . \" JOIN clientes cli ON com.cliente_id = cli.id \"\n . \" JOIN tipo_clientes tpc ON tpc.id = cli.tipo_cliente_id \"\n . \" JOIN monedas mon ON com.moneda_id = mon.id \"\n . \" JOIN tipo_documentos tdc ON com.tipo_documento_id = tdc.id \"\n . \" JOIN tipo_pagos tpp ON com.tipo_pago_id = tpp.id \"\n . \" JOIN empresas epr ON com.empresa_id = epr.id \"\n . \" LEFT JOIN elemento_adicionales eaa ON com.elemento_adicional_id = eaa.id \" \n . \" WHERE 1=1 AND eliminado=0 AND com.fecha_delete IS NULL \".$where.\" ORDER BY comprobante_id DESC\".$limit;\n //echo $sql;\n $query = $this->db->query($sql);\n //var_dump($query->result_array());exit;\n return $query->result_array(); \n }", "function wp_get_footnotes_from_revision($revision_field, $field, $revision)\n {\n }", "function siguiente_Version($sAntigua)\n{\n $aTrocearAntigua = explode('\\.', $sAntigua);\n $iVersion = (int)$aTrocearAntigua[0];\n $iRevisionMayor = (int)$aTrocearAntigua[1];\n $iRevisionMenor = (int)$aTrocearAntigua[2];\n if ($iRevisionMenor < 9) {\n $iRevisionMenor++;\n } else if ($iRevisionMayor < 9) {\n $iRevisionMayor++;\n $iRevisionMenor = 0;\n }\n return ($iVersion . \".\" . $iRevisionMayor . \".\" . $iRevisionMenor);\n}", "public function getRev(){\n\n $id=$this->session->get('id_rev');\n\n $tmp_review=new Review();\n\n $review=$tmp_review->find($id);\n\n $tmp_cnt=new Country();\n $tmp_place=new Place();\n $tmp_visit=new Visited();\n $tmp_user=new User();\n\n\n\n\n //iz visit citamo koje je mesto u pitanju, iz mesta citamo njegov naziv i id zemlje i onda dohvatamo ime zemlje\n\n $visit=$tmp_visit->find($review->id_vis);\n\n $place=$tmp_place->find($visit->id_plc);\n $country=$tmp_cnt->find($place->id_cnt);\n\n $user=$tmp_user->find($visit->id_usr);\n\n $type_of_user='guest';\n $found_type=false;\n if ( $found_type==false && $this->session->get('isAdmin') == 1) {$type_of_user = 'admin'; $found_type=true;}\n if($found_type==false && $this->session->get('userId')==null){ $type_of_user='guest'; $found_type=true;}\n\t\tif ($found_type==false && $this->session->get('userId') == $user->id_usr ) {$type_of_user = 'owner'; $found_type=true;}\n\n \n\n if ( $found_type==false && $this->session->get('userId') != $user->id_usr) {$type_of_user = 'regUser'; $found_type=true;}\n\n\n\n\n\n\n $result=array ('title'=>'90', 'text'=>'100',\n 'date'=>'25', 'token_count'=>'1', 'privacy'=>0, 'place'=>'7','country'=>'9', 'hasPic'=>'0' , 'numOfPics'=>'0');\n ///pics\n\n $tmp_image=new Image();\n $pics_list=$tmp_image->getPicsForReview($id);\n if($pics_list!=null){\n $result['hasPic']='1';\n $pic_number=0;\n foreach ($pics_list as $current_pic){\n $pic_number++;\n $pic_name=\"pic\".$pic_number;\n $result[$pic_name]=$current_pic->image_path;\n }\n $result['numOfPics']=\"\".$pic_number;\n }\n\n\n ///pics done\n\n $result['title']=$review->title;\n $result['date']=$review->date_posted;\n $result['text']=$review->text;\n $result['privacy']=$review->privacy;\n $result['token_count']=$review->token_count;\n $result['place']=$place->name;\n $result['country']=$country->name;\n $result['username']=$user->username;\n $result['type_of_user']=$type_of_user;\n\n echo json_encode($result);\n\n }", "function Get_revisions($query = \"select * from Revisions\"){\n\t\t$sqlResult = sqlsrv_query($this->conn,$query);\n\t\t$temp =\"\";\n\t\twhile ($row = sqlsrv_fetch_array($sqlResult))\n\t\t{\n\t\t\t$temp .= '{\"Id\":\"'.$row['Id'].'\",';\n\t\t\t$temp .= '\"Revision\": \"'.$row['Revision'].'\",';\n\t\t\t$temp .= '\"Status\": \"'.$row['Status'].'\",';\n\t\t\t$temp .= '\"Active\": \"'.$row['Active'].'\",';\n\t\t\t$temp .= '\"Path\": \"'.$row['Active'].'\",';\n\t\t\t$temp .= '\"Dept\": \"'.$row['Dept'].'\"},';\n\n\t\t}\n\t\t$temp = substr($temp,0, -1);\n\t\t$json ='{\"All\":\"algo\",\"dataset\":[ '.$temp.']}';\n\t\tprint $json;\n\t\t$object = json_decode($json);\n\t\techo $object;\n\t\treturn $object;\n\t\t\n\t}", "public function getVerificacion()\n {\n return $this->verificacion;\n }", "function leerCreditos(){\n \n try{\n $stmt = $this->dbh->prepare(\"SELECT c.idcredito, t.NombreCte,c.tipoContrato, c.montoTotal, c.plazo,c.mensualidad, c.interes,\"\n . \" c.metodoPago, c.observaciones, c.status FROM tarjetas_clientes t join credito c on t.idClienteTg=c.cteId where c.status=1 or c.status=3\");\n // Especificamos el fetch mode antes de llamar a fetch()\n $stmt->execute();\n $clientes = $stmt->fetchAll(PDO::FETCH_NUM);\n } catch (PDOException $e){\n $clientes=array(\"status\"=>\"0\",\"mensaje\"=>$e->getMessage());\n }\n \n return $clientes;\n }", "function listar_contratos(){\n //Consulta\n $sql = \n 'SELECT\n contratos.Pk_Id_Contrato,\n contratos.Numero,\n tbl_terceros.Nombre AS Contratista,\n tbl_terceros.Pk_Id_Terceros,\n tbl_terceros.Documento AS Documento_Contratista,\n tbl_terceros.Telefono AS Telefono_Contratista,\n tbl_terceros.Direccion AS Direccion_Contratista,\n contratos.Objeto,\n contratos.Lugar,\n tbl_estados.Pk_Id_Estado,\n tbl_estados.Estado,\n contratos.Valor_Inicial,\n contratos.Fecha_Inicial,\n contratos.Plazo,\n contratos.Acta_Inicio,\n contratos.Fecha_Acta_Inicio\n FROM\n contratos\n LEFT JOIN tbl_estados ON (contratos.Fk_Id_Estado = tbl_estados.Pk_Id_Estado)\n LEFT JOIN tbl_terceros ON tbl_terceros.Pk_Id_Terceros = contratos.Fk_Id_Terceros\n WHERE\n tbl_estados.Pk_Id_Estado = 2\n AND contratos.Fk_Id_Proyecto = '.$this->session->userdata('Fk_Id_Proyecto');\n \n //Se retorna la consulta\n return $this->db->query($sql)->result(); \n }", "function getLastchangeAuthor() {\n\t\treturn $this->get(\"lastchangeauthor\");\n\t}", "public function getRevisionCreationTime();", "public function getRevisionCreationTime();", "public function getRevisionCreationTime();", "public function getRevisionCreationTime();" ]
[ "0.6517951", "0.6099971", "0.60106766", "0.5821246", "0.57852113", "0.57730997", "0.5715206", "0.5705636", "0.56581426", "0.5580998", "0.55397964", "0.5525124", "0.55139", "0.55009615", "0.54889286", "0.5483981", "0.54828125", "0.5455569", "0.54148", "0.5413966", "0.5397026", "0.5379283", "0.53757304", "0.5374806", "0.5317346", "0.5314268", "0.5313743", "0.5264317", "0.5254829", "0.5236426", "0.52332246", "0.5164358", "0.51632625", "0.51621693", "0.5160155", "0.5149467", "0.5145023", "0.5144534", "0.51236576", "0.5097741", "0.50883466", "0.50866485", "0.50741994", "0.50611573", "0.5055269", "0.504441", "0.50347173", "0.5016002", "0.500917", "0.50018823", "0.49824774", "0.49683082", "0.49608353", "0.49598026", "0.4959715", "0.49591982", "0.49588698", "0.49553412", "0.49539864", "0.49514782", "0.49507743", "0.49478343", "0.4946348", "0.4946348", "0.49461785", "0.4943052", "0.49422827", "0.4933929", "0.49293718", "0.49278402", "0.49201798", "0.49130556", "0.49060044", "0.4890443", "0.48871502", "0.4884685", "0.48800552", "0.48773196", "0.48750836", "0.48661458", "0.4862648", "0.48459536", "0.48395", "0.4839296", "0.48321784", "0.48267698", "0.48258683", "0.48215503", "0.48206002", "0.4820236", "0.48167273", "0.48161668", "0.4815401", "0.481533", "0.48144063", "0.48028174", "0.48025808", "0.48025808", "0.48025808", "0.48025808" ]
0.5184645
31
funcion principal para hacer la revision a lote
public function storeRevision(Request $request){ if(!$request->ajax() || Auth::user()->rol_id == 11)return redirect('/'); // datos principales de lote a revision $datosLote = Entrega::join('contratos','entregas.id','=','contratos.id') ->join('creditos','contratos.id','=','creditos.id') ->join('lotes','creditos.lote_id','lotes.id') ->join('clientes', 'creditos.prospecto_id', '=', 'clientes.id') ->join('personal as c', 'clientes.id', '=', 'c.id') ->select('contratos.id as folio', 'creditos.modelo','creditos.fraccionamiento', 'creditos.etapa','creditos.manzana','creditos.num_lote', DB::raw("CONCAT(c.nombre,' ',c.apellidos) AS nombre_cliente"), 'c.celular', DB::raw("CONCAT(lotes.calle,' Num.',lotes.numero) AS direccion"), 'lotes.manzana', 'lotes.aviso','lotes.id as lote_id', DB::raw('DATEDIFF(current_date,entregas.fecha_entrega_real) as diferencia' ) ) ->where('contratos.id','=',$request->folio)->get(); // solo el folio requerido $datosContratista = Ini_obra::join('contratistas','ini_obras.contratista_id','=','contratistas.id') ->select('contratistas.id','contratistas.nombre') ->where('ini_obras.clave','=',$datosLote[0]->aviso)->get(); // se filtra por la lave de aviso $observacion = $request->observacion; // observaciones que envia el gestor $folio = $request->folio; $diferencia = $request->diferencia; $id_contratista = $datosContratista[0]->id; // listado de todods los aspectos a revisar ///////// COCHERA //////////// $mona_cochera = $request->mona_cochera; $centro_carga_cochera = $request->centro_carga_cochera; $cuadro_hidraulico_cochera = $request->cuadro_hidraulico_cochera; $interfon_cochera = $request->interfon_cochera; $cisterna_cochera = $request->cisterna_cochera; $bomba_cochera = $request->bomba_cochera; $tapa_cisterna_cochera = $request->tapa_cisterna_cochera; $tapa_registro_cochera = $request->tapa_registro_cochera; $acc_electrico_cochera = $request->acc_electrico_cochera; $acabado_muros_cochera = $request->acabado_muros_cochera; $acabado_plafon_cochera = $request->acabado_plafon_cochera; $piso_cochera = $request->piso_cochera; $zoclo_cochera = $request->zoclo_cochera; //////// Observacion ///////// $mona_cochera_obs = $request->mona_cochera_obs; $centro_carga_cochera_obs = $request->centro_carga_cochera_obs; $cuadro_hidraulico_cochera_obs = $request->cuadro_hidraulico_cochera_obs; $interfon_cochera_obs = $request->interfon_cochera_obs; $cisterna_cochera_obs = $request->cisterna_cochera_obs; $bomba_cochera_obs = $request->bomba_cochera_obs; $tapa_cisterna_cochera_obs = $request->tapa_cisterna_cochera_obs; $tapa_registro_cochera_obs = $request->tapa_registro_cochera_obs; $acc_electrico_cochera_obs = $request->acc_electrico_cochera_obs; $acabado_muros_cochera_obs = $request->acabado_muros_cochera_obs; $acabado_plafon_cochera_obs = $request->acabado_plafon_cochera_obs; $piso_cochera_obs = $request->piso_cochera_obs; $zoclo_cochera_obs = $request->zoclo_cochera_obs; ///////// SALA COMEDOR ///////// $puerta_pric_sala = $request->puerta_pric_sala; $chapa_sala = $request->chapa_sala; $sello_marco_sala = $request->sello_marco_sala; $ventana_sala = $request->ventana_sala; $sello_ventana_sala = $request->sello_ventana_sala; $vidrio_ventana_sala = $request->vidrio_ventana_sala; $mosquitero_sala = $request->mosquitero_sala; $cancel_sala = $request->cancel_sala; $sello_cancel_sala = $request->sello_cancel_sala; $vidrio_cancel_sala = $request->vidrio_cancel_sala; $salida_alarma_sala = $request->salida_alarma_sala; $acc_electrico_sala = $request->acc_electrico_sala; $acabado_muros_sala = $request->acabado_muros_sala; $acabado_plafon_sala = $request->acabado_plafon_sala; $piso_sala = $request->piso_sala; $zoclo_sala = $request->zoclo_sala; ////// Observacion /////// $puerta_pric_sala_obs = $request->puerta_pric_sala_obs; $chapa_sala_obs = $request->chapa_sala_obs; $sello_marco_sala_obs = $request->sello_marco_sala_obs; $ventana_sala_obs = $request->ventana_sala_obs; $sello_ventana_sala_obs = $request->sello_ventana_sala_obs; $vidrio_ventana_sala_obs = $request->vidrio_ventana_sala_obs; $mosquitero_sala_obs = $request->mosquitero_sala_obs; $cancel_sala_obs = $request->cancel_sala_obs; $sello_cancel_sala_obs = $request->sello_cancel_sala_obs; $vidrio_cancel_sala_obs = $request->vidrio_cancel_sala_obs; $salida_alarma_sala_obs = $request->salida_alarma_sala_obs; $acc_electrico_sala_obs = $request->acc_electrico_sala_obs; $acabado_muros_sala_obs = $request->acabado_muros_sala_obs; $acabado_plafon_sala_obs = $request->acabado_plafon_sala_obs; $piso_sala_obs = $request->piso_sala_obs; $zoclo_sala_obs = $request->zoclo_sala_obs; ///////////////// COCINA ////////////// $tarja_cocina = $request->tarja_cocina; $puerta_cocina = $request->puerta_cocina; $chapa_cocina = $request->chapa_cocina; $sello_pv_cocina = $request->sello_pv_cocina; $vidrio_pv_cocina = $request->vidrio_pv_cocina; $mosquitero_cocina = $request->mosquitero_cocina; $salida_alarma_cocina = $request->salida_alarma_cocina; $interfon_cocina = $request->interfon_cocina; $acc_electrico_cocina = $request->acc_electrico_cocina; $centro_carga_cocina = $request->centro_carga_cocina; $inst_gas_cocina = $request->inst_gas_cocina; $inst_refrigerador_cocina = $request->inst_refrigerador_cocina; $barra_cocina = $request->barra_cocina; $azulejo_cocina = $request->azulejo_cocina; $acabado_muro_cocina = $request->acabado_muro_cocina; $acabado_plafon_cocina = $request->acabado_plafon_cocina; $piso_cocina = $request->piso_cocina; $zoclo_cocina = $request->zoclo_cocina; ///////// Observaciones //////////// $tarja_cocina_obs = $request->tarja_cocina_obs; $puerta_cocina_obs = $request->puerta_cocina_obs; $chapa_cocina_obs = $request->chapa_cocina_obs; $sello_pv_cocina_obs = $request->sello_pv_cocina_obs; $vidrio_pv_cocina_obs = $request->vidrio_pv_cocina_obs; $mosquitero_cocina_obs = $request->mosquitero_cocina_obs; $salida_alarma_cocina_obs = $request->salida_alarma_cocina_obs; $interfon_cocina_obs = $request->interfon_cocina_obs; $acc_electrico_cocina_obs = $request->acc_electrico_cocina_obs; $centro_carga_cocina_obs = $request->centro_carga_cocina_obs; $inst_gas_cocina_obs = $request->inst_gas_cocina_obs; $inst_refrigerador_cocina_obs = $request->inst_refrigerador_cocina_obs; $barra_cocina_obs = $request->barra_cocina_obs; $azulejo_cocina_obs = $request->azulejo_cocina_obs; $acabado_muro_cocina_obs = $request->acabado_muro_cocina_obs; $acabado_plafon_cocina_obs = $request->acabado_plafon_cocina_obs; $piso_cocina_obs = $request->piso_cocina_obs; $zoclo_cocina_obs = $request->zoclo_cocina_obs; ////////// MEDIO BAÑO ///////////// $puerta_mb = $request->puerta_mb; $chapa_mb = $request->chapa_mb; $barra_lavabo_mb = $request->barra_lavabo_mb; $lavabo_mb = $request->lavabo_mb; $monomando_mb = $request->monomando_mb; $wc_mb = $request->wc_mb; $acc_bano_mb = $request->acc_bano_mb; $acc_electrico_mb = $request->acc_electrico_mb; $ventana_mb = $request->ventana_mb; $sello_ventana_mb = $request->sello_ventana_mb; $vidrio_mb = $request->vidrio_mb; $mosquitero_mb = $request->mosquitero_mb; $acabado_muro_mb = $request->acabado_muro_mb; $acabado_plafon_mb = $request->acabado_plafon_mb; $piso_mb = $request->piso_mb; $zoclo_mb = $request->zoclo_mb; ////////// Observacion ////////// $puerta_mb_obs = $request->puerta_mb_obs; $chapa_mb_obs = $request->chapa_mb_obs; $barra_lavabo_mb_obs = $request->barra_lavabo_mb_obs; $lavabo_mb_obs = $request->lavabo_mb_obs; $monomando_mb_obs = $request->monomando_mb_obs; $wc_mb_obs = $request->wc_mb_obs; $acc_bano_mb_obs = $request->acc_bano_mb_obs; $acc_electrico_mb_obs = $request->acc_electrico_mb_obs; $ventana_mb_obs = $request->ventana_mb_obs; $sello_ventana_mb_obs = $request->sello_ventana_mb_obs; $vidrio_mb_obs = $request->vidrio_mb_obs; $mosquitero_mb_obs = $request->mosquitero_mb_obs; $acabado_muro_mb_obs = $request->acabado_muro_mb_obs; $acabado_plafon_mb_obs = $request->acabado_plafon_mb_obs; $piso_mb_obs = $request->piso_mb_obs; $zoclo_mb_obs = $request->zoclo_mb_obs; ///////////// PATIO ///////////////// $calentador_patio = $request->calentador_patio; $inst_gas_patio = $request->inst_gas_patio; $acc_electrico_patio = $request->acc_electrico_patio; $lavadero_patio = $request->lavadero_patio; $llaves_nariz_patio = $request->llaves_nariz_patio; $descarga_lavadora_patio = $request->descarga_lavadora_patio; $coladera_patio = $request->coladera_patio; $tapa_registro_patio = $request->tapa_registro_patio; $escalera_marina_patio = $request->escalera_marina_patio; $techumbre_patio = $request->techumbre_patio; $firme_cilindros_patio = $request->firme_cilindros_patio; $rodapie_patio = $request->rodapie_patio; $acabado_muros_patio = $request->acabado_muros_patio; $acabado_volado_patio = $request->acabado_volado_patio; $piso_patio = $request->piso_patio; $zoclo_patio = $request->zoclo_patio; ///////// Observacion ////////////// $calentador_patio_obs = $request->calentador_patio_obs; $inst_gas_patio_obs = $request->inst_gas_patio_obs; $acc_electrico_patio_obs = $request->acc_electrico_patio_obs; $lavadero_patio_obs = $request->lavadero_patio_obs; $llaves_nariz_patio_obs = $request->llaves_nariz_patio_obs; $descarga_lavadora_patio_obs = $request->descarga_lavadora_patio_obs; $coladera_patio_obs = $request->coladera_patio_obs; $tapa_registro_patio_obs = $request->tapa_registro_patio_obs; $escalera_marina_patio_obs = $request->escalera_marina_patio_obs; $techumbre_patio_obs = $request->techumbre_patio_obs; $firme_cilindros_patio_obs = $request->firme_cilindros_patio_obs; $rodapie_patio_obs = $request->rodapie_patio_obs; $acabado_muros_patio_obs = $request->acabado_muros_patio_obs; $acabado_volado_patio_obs = $request->acabado_volado_patio_obs; $piso_patio_obs = $request->piso_patio_obs; $zoclo_patio_obs = $request->zoclo_patio_obs; /////////////// ESCALERA //////////////// $nicho_escalera = $request->nicho_escalera; $escalones_escalera = $request->escalones_escalera; $piso_escalera = $request->piso_escalera; $zoclo_escalera = $request->zoclo_escalera; $barandal_escalera = $request->barandal_escalera; $pasamanos_escalera = $request->pasamanos_escalera; $sardinel_escalera = $request->sardinel_escalera; $macetero_escalera = $request->macetero_escalera; $cajillos_escalera = $request->cajillos_escalera; $acc_electricos_escalera = $request->acc_electricos_escalera; $acabado_muro_escalera = $request->acabado_muro_escalera; $acabado_plafon_escalera = $request->acabado_plafon_escalera; ///////////// Observacion ////////////// $nicho_escalera_obs = $request->nicho_escalera_obs; $escalones_escalera_obs = $request->escalones_escalera_obs; $piso_escalera_obs = $request->piso_escalera_obs; $zoclo_escalera_obs = $request->zoclo_escalera_obs; $barandal_escalera_obs = $request->barandal_escalera_obs; $pasamanos_escalera_obs = $request->pasamanos_escalera_obs; $sardinel_escalera_obs = $request->sardinel_escalera_obs; $macetero_escalera_obs = $request->macetero_escalera_obs; $cajillos_escalera_obs = $request->cajillos_escalera_obs; $acc_electricos_escalera_obs = $request->acc_electricos_escalera_obs; $acabado_muro_escalera_obs = $request->acabado_muro_escalera_obs; $acabado_plafon_escalera_obs = $request->acabado_plafon_escalera_obs; /////////////// BAÑO COMUN ////////////////// $puerta_bc = $request->puerta_bc; $chapa_bc = $request->chapa_bc; $sello_marco_bc = $request->sello_marco_bc; $barra_lavabo_bc = $request->barra_lavabo_bc; $lavabo_bc = $request->lavabo_bc; $monomando_bc = $request->monomando_bc; $wc_bc = $request->wc_bc; $regadera_bc = $request->regadera_bc; $manerales_bc = $request->manerales_bc; $coladera_bc = $request->coladera_bc; $acc_bano_bc = $request->acc_bano_bc; $acc_electricos_bc = $request->acc_electricos_bc; $ventana_bc = $request->ventana_bc; $sello_ventana_bc = $request->sello_ventana_bc; $vidrio_ventana_bc = $request->vidrio_ventana_bc; $mosquitero_bc = $request->mosquitero_bc; $acabado_muro_bc = $request->acabado_muro_bc; $acabado_plafon_bc = $request->acabado_plafon_bc; $sardinel_bc = $request->sardinel_bc; $piso_bc = $request->piso_bc; $zoclo_bc = $request->zoclo_bc; ///////////// Observacion //////////////// $puerta_bc_obs = $request->puerta_bc_obs; $chapa_bc_obs = $request->chapa_bc_obs; $sello_marco_bc_obs = $request->sello_marco_bc_obs; $barra_lavabo_bc_obs = $request->barra_lavabo_bc_obs; $lavabo_bc_obs = $request->lavabo_bc_obs; $monomando_bc_obs = $request->monomando_bc_obs; $wc_bc_obs = $request->wc_bc_obs; $regadera_bc_obs = $request->regadera_bc_obs; $manerales_bc_obs = $request->manerales_bc_obs; $coladera_bc_obs = $request->coladera_bc_obs; $acc_bano_bc_obs = $request->acc_bano_bc_obs; $acc_electricos_bc_obs = $request->acc_electricos_bc_obs; $ventana_bc_obs = $request->ventana_bc_obs; $sello_ventana_bc_obs = $request->sello_ventana_bc_obs; $vidrio_ventana_bc_obs = $request->vidrio_ventana_bc_obs; $mosquitero_bc_obs = $request->mosquitero_bc_obs; $acabado_muro_bc_obs = $request->acabado_muro_bc_obs; $acabado_plafon_bc_obs = $request->acabado_plafon_bc_obs; $sardinel_bc_obs = $request->sardinel_bc_obs; $piso_bc_obs = $request->piso_bc_obs; $zoclo_bc_obs = $request->zoclo_bc_obs; ///////////// ESTANCIA ////////////// $ventana_estancia = $request->ventana_estancia; $sello_ventana_estancia = $request->sello_ventana_estancia; $vidrio_ventana_estancia = $request->vidrio_ventana_estancia; $mosquitero_estancia = $request->mosquitero_estancia; $interfon_estancia = $request->interfon_estancia; $acc_electricos_estancia = $request->acc_electricos_estancia; $acabado_muro_estancia = $request->acabado_muro_estancia; $acabado_plafon_estancia = $request->acabado_plafon_estancia; $piso_estancia = $request->piso_estancia; $zoclo_estancia = $request->zoclo_estancia; //////////// Observacion ///////////// $ventana_estancia_obs = $request->ventana_estancia_obs; $sello_ventana_estancia_obs = $request->sello_ventana_estancia_obs; $vidrio_ventana_estancia_obs = $request->vidrio_ventana_estancia_obs; $mosquitero_estancia_obs = $request->mosquitero_estancia_obs; $interfon_estancia_obs = $request->interfon_estancia_obs; $acc_electricos_estancia_obs = $request->acc_electricos_estancia_obs; $acabado_muro_estancia_obs = $request->acabado_muro_estancia_obs; $acabado_plafon_estancia_obs = $request->acabado_plafon_estancia_obs; $piso_estancia_obs = $request->piso_estancia_obs; $zoclo_estancia_obs = $request->zoclo_estancia_obs; //////////// Recamara Principal ////////////// $puerta_rp = $request->puerta_rp; $chapa_rp = $request->chapa_rp; $sello_marco_rp = $request->sello_marco_rp; $cancel_rp = $request->cancel_rp; $sello_cancel_rp = $request->sello_cancel_rp; $vidrio_cancel_rp = $request->vidrio_cancel_rp; $mosquitero_rp = $request->mosquitero_rp; $balcon_rp = $request->balcon_rp; $barandal_rp = $request->barandal_rp; $acc_electricos_rp = $request->acc_electricos_rp; $interfon_rp = $request->interfon_rp; $salida_alarma_rp = $request->salida_alarma_rp; $acabado_muro_rp = $request->acabado_muro_rp; $acabado_plafon_rp = $request->acabado_plafon_rp; $piso_rp = $request->piso_rp; $zoclo_rp = $request->zoclo_rp; //////////////// Observacion ////////////// $puerta_rp_obs = $request->puerta_rp_obs; $chapa_rp_obs = $request->chapa_rp_obs; $sello_marco_rp_obs = $request->sello_marco_rp_obs; $cancel_rp_obs = $request->cancel_rp_obs; $sello_cancel_rp_obs = $request->sello_cancel_rp_obs; $vidrio_cancel_rp_obs = $request->vidrio_cancel_rp_obs; $mosquitero_rp_obs = $request->mosquitero_rp_obs; $balcon_rp_obs = $request->balcon_rp_obs; $barandal_rp_obs = $request->barandal_rp_obs; $acc_electricos_rp_obs = $request->acc_electricos_rp_obs; $interfon_rp_obs = $request->interfon_rp_obs; $salida_alarma_rp_obs = $request->salida_alarma_rp_obs; $acabado_muro_rp_obs = $request->acabado_muro_rp_obs; $acabado_plafon_rp_obs = $request->acabado_plafon_rp_obs; $piso_rp_obs = $request->piso_rp_obs; $zoclo_rp_obs = $request->zoclo_rp_obs; ///////////// BAÑO RECAMARA PRINCIPAL //////////////// $puerta_brp = $request->puerta_brp; $chapa_brp = $request->chapa_brp; $sello_marco_brp = $request->sello_marco_brp; $barra_lavabo_brp = $request->barra_lavabo_brp; $lavabo_brp = $request->lavabo_brp; $monomando_brp = $request->monomando_brp; $wc_brp = $request->wc_brp; $regadera_brp = $request->regadera_brp; $manerales_brp = $request->manerales_brp; $coladera_brp = $request->coladera_brp; $acc_bano_brp = $request->acc_bano_brp; $acc_electrico_brp = $request->acc_electrico_brp; $ventana_brp = $request->ventana_brp; $sello_ventana_brp = $request->sello_ventana_brp; $vidrio_ventana_brp = $request->vidrio_ventana_brp; $mosquitero_brp = $request->mosquitero_brp; $acabado_muro_brp = $request->acabado_muro_brp; $acabado_plafon_brp = $request->acabado_plafon_brp; $sardinel_brp = $request->sardinel_brp; $piso_brp = $request->piso_brp; $zoclo_brp = $request->zoclo_brp; /////////// Observacion /////////////// $puerta_brp_obs = $request->puerta_brp_obs; $chapa_brp_obs = $request->chapa_brp_obs; $sello_marco_brp_obs = $request->sello_marco_brp_obs; $barra_lavabo_brp_obs = $request->barra_lavabo_brp_obs; $lavabo_brp_obs = $request->lavabo_brp_obs; $monomando_brp_obs = $request->monomando_brp_obs; $wc_brp_obs = $request->wc_brp_obs; $regadera_brp_obs = $request->regadera_brp_obs; $manerales_brp_obs = $request->manerales_brp_obs; $coladera_brp_obs = $request->coladera_brp_obs; $acc_bano_brp_obs = $request->acc_bano_brp_obs; $acc_electrico_brp_obs = $request->acc_electrico_brp_obs; $ventana_brp_obs = $request->ventana_brp_obs; $sello_ventana_brp_obs = $request->sello_ventana_brp_obs; $vidrio_ventana_brp_obs = $request->vidrio_ventana_brp_obs; $mosquitero_brp_obs = $request->mosquitero_brp_obs; $acabado_muro_brp_obs = $request->acabado_muro_brp_obs; $acabado_plafon_brp_obs = $request->acabado_plafon_brp_obs; $sardinel_brp_obs = $request->sardinel_brp_obs; $piso_brp_obs = $request->piso_brp_obs; $zoclo_brp_obs = $request->zoclo_brp_obs; //////////////// Vestidor ////////////////// $acc_electrico_vest = $request->acc_electrico_vest; $acabado_muro_vest = $request->acabado_muro_vest; $acabado_plafon_vest = $request->acabado_plafon_vest; $piso_vest = $request->piso_vest; $zoclo_vest = $request->zoclo_vest; /////////// Observacion //////////// $acc_electrico_vest_obs = $request->acc_electrico_vest_obs; $acabado_muro_vest_obs = $request->acabado_muro_vest_obs; $acabado_plafon_vest_obs = $request->acabado_plafon_vest_obs; $piso_vest_obs = $request->piso_vest_obs; $zoclo_vest_obs = $request->zoclo_vest_obs; /////////////// RECAMARA 2 /////////////// $puerta_rec2 = $request->puerta_rec2; $chapa_rec2 = $request->chapa_rec2; $sello_marco_rec2 = $request->sello_marco_rec2; $cancel_rec2 = $request->cancel_rec2; $sello_cancel_rec2 = $request->sello_cancel_rec2; $vidrio_cancel_rec2 = $request->vidrio_cancel_rec2; $mosquitero_rec2 = $request->mosquitero_rec2; $acc_rec2 = $request->acc_rec2; $salida_alarma_rec2 = $request->salida_alarma_rec2; $acabado_muro_rec2 = $request->acabado_muro_rec2; $acabado_plafon_rec2 = $request->acabado_plafon_rec2; $piso_rec2 = $request->piso_rec2; $zoclo_rec2 = $request->zoclo_rec2; ////////////// Observacion //////////// $puerta_rec2_obs = $request->puerta_rec2_obs; $chapa_rec2_obs = $request->chapa_rec2_obs; $sello_marco_rec2_obs = $request->sello_marco_rec2_obs; $cancel_rec2_obs = $request->cancel_rec2_obs; $sello_cancel_rec2_obs = $request->sello_cancel_rec2_obs; $vidrio_cancel_rec2_obs = $request->vidrio_cancel_rec2_obs; $mosquitero_rec2_obs = $request->mosquitero_rec2_obs; $acc_rec2_obs = $request->acc_rec2_obs; $salida_alarma_rec2_obs = $request->salida_alarma_rec2_obs; $acabado_muro_rec2_obs = $request->acabado_muro_rec2_obs; $acabado_plafon_rec2_obs = $request->acabado_plafon_rec2_obs; $piso_rec2_obs = $request->piso_rec2_obs; $zoclo_rec2_obs = $request->zoclo_rec2_obs; /////////////// RECAMARA 3 /////////////// $puerta_rec3 = $request->puerta_rec3; $chapa_rec3 = $request->chapa_rec3; $sello_marco_rec3 = $request->sello_marco_rec3; $cancel_rec3 = $request->cancel_rec3; $sello_cancel_rec3 = $request->sello_cancel_rec3; $vidrio_cancel_rec3 = $request->vidrio_cancel_rec3; $mosquitero_rec3 = $request->mosquitero_rec3; $acc_rec3 = $request->acc_rec3; $salida_alarma_rec3 = $request->salida_alarma_rec3; $acabado_muro_rec3 = $request->acabado_muro_rec3; $acabado_plafon_rec3 = $request->acabado_plafon_rec3; $piso_rec3 = $request->piso_rec3; $zoclo_rec3 = $request->zoclo_rec3; ////////////// Observacion //////////// $puerta_rec3_obs = $request->puerta_rec3_obs; $chapa_rec3_obs = $request->chapa_rec3_obs; $sello_marco_rec3_obs = $request->sello_marco_rec3_obs; $cancel_rec3_obs = $request->cancel_rec3_obs; $sello_cancel_rec3_obs = $request->sello_cancel_rec3_obs; $vidrio_cancel_rec3_obs = $request->vidrio_cancel_rec3_obs; $mosquitero_rec3_obs = $request->mosquitero_rec3_obs; $acc_rec3_obs = $request->acc_rec3_obs; $salida_alarma_rec3_obs = $request->salida_alarma_rec3_obs; $acabado_muro_rec3_obs = $request->acabado_muro_rec3_obs; $acabado_plafon_rec3_obs = $request->acabado_plafon_rec3_obs; $piso_rec3_obs = $request->piso_rec3_obs; $zoclo_rec3_obs = $request->zoclo_rec3_obs; ///////////// AZOTEA //////////////// $pretiles_azotea = $request->pretiles_azotea; $impermeabilizacion = $request->impermeabilizacion; $domos_azotea = $request->domos_azotea; $mufas_azotea = $request->mufas_azotea; $jarros_azotea = $request->jarros_azotea; $ventilas_azotea = $request->ventilas_azotea; $base_tinaco_azotea = $request->base_tinaco_azotea; $tinaco_azotea = $request->tinaco_azotea; $calentador_solar_azotea = $request->calentador_solar_azotea; $punta_gas_azotea = $request->punta_gas_azotea; $anclas_azotea = $request->anclas_azotea; $limpieza_azotea = $request->limpieza_azotea; ///////// Observacion /////////// $pretiles_azotea_obs = $request->pretiles_azotea_obs; $impermeabilizacion_obs = $request->impermeabilizacion_obs; $domos_azotea_obs = $request->domos_azotea_obs; $mufas_azotea_obs = $request->mufas_azotea_obs; $jarros_azotea_obs = $request->jarros_azotea_obs; $ventilas_azotea_obs = $request->ventilas_azotea_obs; $base_tinaco_azotea_obs = $request->base_tinaco_azotea_obs; $tinaco_azotea_obs = $request->tinaco_azotea_obs; $calentador_solar_azotea_obs = $request->calentador_solar_azotea_obs; $punta_gas_azotea_obs = $request->punta_gas_azotea_obs; $anclas_azotea_obs = $request->anclas_azotea_obs; $limpieza_azotea_obs = $request->limpieza_azotea_obs; /////////// GENERALES ////////////// $limpieza_interior = $request->limpieza_interior; $limpieza_exterior = $request->limpieza_exterior; $limpieza_vidrios = $request->limpieza_vidrios; $limpieza_domos = $request->limpieza_domos; $plastico_muebles = $request->plastico_muebles; $candados = $request->candados; $llaves = $request->llaves; $num_oficial = $request->num_oficial; /////////// Observacion /////////// $limpieza_interior_obs = $request->limpieza_interior_obs; $limpieza_exterior_obs = $request->limpieza_exterior_obs; $limpieza_vidrios_obs = $request->limpieza_vidrios_obs; $limpieza_domos_obs = $request->limpieza_domos_obs; $plastico_muebles_obs = $request->plastico_muebles_obs; $candados_obs = $request->candados_obs; $llaves_obs = $request->llaves_obs; $num_oficial_obs = $request->num_oficial_obs; try{ DB::beginTransaction(); $revisionPrevia = new Revision_previa(); $revisionPrevia->id = $folio; $revisionPrevia->observaciones = $observacion; $revisionPrevia->id_contratista = $id_contratista; $revisionPrevia->save(); $entregas = Entrega::findOrFail($folio); if($diferencia <= 1) $entregas->revision_previa = 2; else{ $entregas->revision_previa = 1; } $entregas->save(); ////////////////// Parte para Registrar detalles ///////// /////////////////// COCHERA if($mona_cochera == 1){ $this->storeDetalle($folio,'Mona',1,$mona_cochera_obs); } if($centro_carga_cochera == 1){ $this->storeDetalle($folio,'Centro de carga',1,$centro_carga_cochera_obs); } if($cuadro_hidraulico_cochera == 1){ $this->storeDetalle($folio,'Cuadro hidráulico',1,$cuadro_hidraulico_cochera_obs); } if($interfon_cochera == 1){ $this->storeDetalle($folio,'Interfon',1,$interfon_cochera_obs); } if($cisterna_cochera == 1){ $this->storeDetalle($folio,'Cisterna',1,$cisterna_cochera_obs); } if($bomba_cochera == 1){ $this->storeDetalle($folio,'Bomba',1,$bomba_cochera_obs); } if($tapa_cisterna_cochera == 1){ $this->storeDetalle($folio,'Tapa Cisterna',1,$tapa_cisterna_cochera_obs); } if($tapa_registro_cochera == 1){ $this->storeDetalle($folio,'Tapas registros',1,$tapa_registro_cochera_obs); } if($acc_electrico_cochera == 1){ $this->storeDetalle($folio,'Acc. Eléctricos',1,$acc_electrico_cochera_obs); } if($acabado_muros_cochera == 1){ $this->storeDetalle($folio,'Acabado muros',1,$acabado_muros_cochera_obs); } if($acabado_plafon_cochera == 1){ $this->storeDetalle($folio,'Acabado plafón',1,$acabado_plafon_cochera_obs); } if($piso_cochera == 1){ $this->storeDetalle($folio,'Piso',1,$piso_cochera_obs); } if($zoclo_cochera == 1){ $this->storeDetalle($folio,'Zoclo',1,$zoclo_cochera_obs); } //////////////////// SALA COMEDOR if($puerta_pric_sala == 1){ $this->storeDetalle($folio,'Puerta principal',2,$puerta_pric_sala_obs); } if($chapa_sala == 1){ $this->storeDetalle($folio,'Chapa',2,$chapa_sala_obs); } if($sello_marco_sala == 1){ $this->storeDetalle($folio,'Sello marco',2,$sello_marco_sala_obs); } if($ventana_sala == 1){ $this->storeDetalle($folio,'Ventana',2,$ventana_sala_obs); } if($sello_ventana_sala == 1){ $this->storeDetalle($folio,'Sello ventana',2,$sello_ventana_sala_obs); } if($vidrio_ventana_sala == 1){ $this->storeDetalle($folio,'Vidrio ventana',2,$vidrio_ventana_sala_obs); } if($mosquitero_sala == 1){ $this->storeDetalle($folio,'Mosquitero',2,$mosquitero_sala_obs); } if($cancel_sala == 1){ $this->storeDetalle($folio,'Cancel',2,$cancel_sala_obs); } if($sello_cancel_sala == 1){ $this->storeDetalle($folio,'Sello cancel',2,$sello_cancel_sala_obs); } if($vidrio_cancel_sala == 1){ $this->storeDetalle($folio,'Vidrio cancel',2,$vidrio_cancel_sala_obs); } if($salida_alarma_sala == 1){ $this->storeDetalle($folio,'Salida alarma',2,$salida_alarma_sala_obs); } if($acc_electrico_sala == 1){ $this->storeDetalle($folio,'Acc. Eléctricos',2,$acc_electrico_sala_obs); } if($acabado_muros_sala == 1){ $this->storeDetalle($folio,'Acabado muros',2,$acabado_muros_sala_obs); } if($acabado_plafon_sala == 1){ $this->storeDetalle($folio,'Acabado plafón',2,$acabado_plafon_sala_obs); } if($piso_sala == 1){ $this->storeDetalle($folio,'Piso',2,$piso_sala_obs); } if($zoclo_sala == 1){ $this->storeDetalle($folio,'Zoclo',2,$zoclo_sala_obs); } /////////////// COCINA if($tarja_cocina == 1){ $this->storeDetalle($folio,'Tarja',3,$tarja_cocina_obs); } if($puerta_cocina == 1){ $this->storeDetalle($folio,'Puerta/ventana',3,$puerta_cocina_obs); } if($chapa_cocina == 1){ $this->storeDetalle($folio,'Chapa',3,$chapa_cocina_obs); } if($sello_pv_cocina == 1){ $this->storeDetalle($folio,'Sello en p/v',3,$sello_pv_cocina_obs); } if($vidrio_pv_cocina == 1){ $this->storeDetalle($folio,'Vidrio en p/v',3,$vidrio_pv_cocina_obs); } if($mosquitero_cocina == 1){ $this->storeDetalle($folio,'Mosquitero',3,$mosquitero_cocina_obs); } if($salida_alarma_cocina == 1){ $this->storeDetalle($folio,'Salida de alarma',3,$salida_alarma_cocina_obs); } if($interfon_cocina == 1){ $this->storeDetalle($folio,'Interfón',3,$interfon_cocina_obs); } if($acc_electrico_cocina == 1){ $this->storeDetalle($folio,'Acc. Eléctricos',3,$acc_electrico_cocina_obs); } if($centro_carga_cocina == 1){ $this->storeDetalle($folio,'Centro de carga',3,$centro_carga_cocina_obs); } if($inst_gas_cocina == 1){ $this->storeDetalle($folio,'Inst. Gas',3,$inst_gas_cocina_obs); } if($inst_refrigerador_cocina == 1){ $this->storeDetalle($folio,'Inst. Refrigerador',3,$inst_refrigerador_cocina_obs); } if($barra_cocina == 1){ $this->storeDetalle($folio,'Barra',3,$barra_cocina_obs); } if($azulejo_cocina == 1){ $this->storeDetalle($folio,'Azulejo muro',3,$azulejo_cocina_obs); } if($acabado_muro_cocina == 1){ $this->storeDetalle($folio,'Acabado muros',3,$acabado_muro_cocina_obs); } if($acabado_plafon_cocina == 1){ $this->storeDetalle($folio,'Acabado plafón',3,$acabado_plafon_cocina_obs); } if($piso_cocina == 1){ $this->storeDetalle($folio,'Piso',3,$piso_cocina_obs); } if($zoclo_cocina == 1){ $this->storeDetalle($folio,'Zoclo',3,$zoclo_cocina_obs); } //////////////////// MEDIO BAÑO if($puerta_mb == 1){ $this->storeDetalle($folio,'Puerta',4,$puerta_mb_obs); } if($chapa_mb == 1){ $this->storeDetalle($folio,'Chapa',4,$chapa_mb_obs); } if($barra_lavabo_mb == 1){ $this->storeDetalle($folio,'Barra lavabo',4,$barra_lavabo_mb_obs); } if($lavabo_mb == 1){ $this->storeDetalle($folio,'Lavabo',4,$lavabo_mb_obs); } if($monomando_mb == 1){ $this->storeDetalle($folio,'Monomando',4,$monomando_mb_obs); } if($wc_mb == 1){ $this->storeDetalle($folio,'WC',4,$wc_mb_obs); } if($acc_bano_mb == 1){ $this->storeDetalle($folio,'Acc. Baño',4,$acc_bano_mb_obs); } if($acc_electrico_mb == 1){ $this->storeDetalle($folio,'Acc. Eléctricos',4,$acc_electrico_mb_obs); } if($ventana_mb == 1){ $this->storeDetalle($folio,'Ventana',4,$ventana_mb_obs); } if($sello_ventana_mb == 1){ $this->storeDetalle($folio,'Sello ventana',4,$sello_ventana_mb_obs); } if($vidrio_mb == 1){ $this->storeDetalle($folio,'Vidrio ventana',4,$vidrio_mb_obs); } if($mosquitero_mb == 1){ $this->storeDetalle($folio,'Mosquitero',4,$mosquitero_mb_obs); } if($acabado_muro_mb == 1){ $this->storeDetalle($folio,'Acabado muros',4,$acabado_muro_mb_obs); } if($acabado_plafon_mb == 1){ $this->storeDetalle($folio,'Acabado plafón',4,$acabado_plafon_mb_obs); } if($piso_mb == 1){ $this->storeDetalle($folio,'Piso',4,$piso_mb_obs); } if($zoclo_mb == 1){ $this->storeDetalle($folio,'Puerta',4,$zoclo_mb_obs); } /////////////// PATIO if($calentador_patio == 1){ $this->storeDetalle($folio,'Calentador',5,$calentador_patio_obs); } if($inst_gas_patio == 1){ $this->storeDetalle($folio,'Inst. Gas',5,$inst_gas_patio_obs); } if($acc_electrico_patio == 1){ $this->storeDetalle($folio,'Acc. Eléctricos',5,$acc_electrico_patio_obs); } if($lavadero_patio == 1){ $this->storeDetalle($folio,'Lavadero',5,$lavadero_patio_obs); } if($llaves_nariz_patio == 1){ $this->storeDetalle($folio,'Llaves nariz',5,$llaves_nariz_patio_obs); } if($descarga_lavadora_patio == 1){ $this->storeDetalle($folio,'Descarga lavadora',5,$descarga_lavadora_patio_obs); } if($coladera_patio == 1){ $this->storeDetalle($folio,'Coladera',5,$coladera_patio_obs); } if($tapa_registro_patio == 1){ $this->storeDetalle($folio,'Tapa registro',5,$tapa_registro_patio_obs); } if($escalera_marina_patio == 1){ $this->storeDetalle($folio,'Escalera marina',5,$escalera_marina_patio_obs); } if($techumbre_patio == 1){ $this->storeDetalle($folio,'Techumbre patio',5,$techumbre_patio_obs); } if($firme_cilindros_patio == 1){ $this->storeDetalle($folio,'Firme cilindros',5,$firme_cilindros_patio_obs); } if($rodapie_patio == 1){ $this->storeDetalle($folio,'Rodapie',5,$rodapie_patio_obs); } if($acabado_muros_patio == 1){ $this->storeDetalle($folio,'Acabado muros',5,$acabado_muros_patio_obs); } if($acabado_volado_patio == 1){ $this->storeDetalle($folio,'Acabado volado',5,$acabado_volado_patio_obs); } if($piso_patio == 1){ $this->storeDetalle($folio,'Piso',5,$piso_patio_obs); } if($zoclo_patio == 1){ $this->storeDetalle($folio,'Zoclo',5,$zoclo_patio_obs); } ////////////// ESCALERA if($nicho_escalera == 1){ $this->storeDetalle($folio,'Nicho',6,$nicho_escalera_obs); } if($escalones_escalera == 1){ $this->storeDetalle($folio,'Escalones',6,$escalones_escalera_obs); } if($piso_escalera == 1){ $this->storeDetalle($folio,'Piso',6,$piso_escalera_obs); } if($zoclo_escalera == 1){ $this->storeDetalle($folio,'Zoclo',6,$zoclo_escalera_obs); } if($barandal_escalera == 1){ $this->storeDetalle($folio,'Barandal',6,$barandal_escalera_obs); } if($pasamanos_escalera == 1){ $this->storeDetalle($folio,'Pasamanos',6,$pasamanos_escalera_obs); } if($sardinel_escalera == 1){ $this->storeDetalle($folio,'Sardinel',6,$sardinel_escalera_obs); } if($macetero_escalera == 1){ $this->storeDetalle($folio,'Macetero',6,$macetero_escalera_obs); } if($cajillos_escalera == 1){ $this->storeDetalle($folio,'Cajillos',6,$cajillos_escalera_obs); } if($acc_electricos_escalera == 1){ $this->storeDetalle($folio,'Acc. Eléctricos',6,$acc_electricos_escalera_obs); } if($acabado_muros_patio == 1){ $this->storeDetalle($folio,'Acabado muros',6,$acabado_muros_patio_obs); } if($acabado_plafon_escalera == 1){ $this->storeDetalle($folio,'Acabado plafón',6,$acabado_plafon_escalera_obs); } ///////////// BAÑO COMÚN if($puerta_bc == 1){ $this->storeDetalle($folio,'Puerta',7,$puerta_bc_obs); } if($chapa_bc == 1){ $this->storeDetalle($folio,'Chapa',7,$chapa_bc_obs); } if($sello_marco_bc == 1){ $this->storeDetalle($folio,'Sello marco',7,$sello_marco_bc_obs); } if($barra_lavabo_bc == 1){ $this->storeDetalle($folio,'Barra lavabo',7,$barra_lavabo_bc_obs); } if($lavabo_bc == 1){ $this->storeDetalle($folio,'Lavabo',7,$lavabo_bc_obs); } if($monomando_bc == 1){ $this->storeDetalle($folio,'Monomando',7,$monomando_bc_obs); } if($wc_bc == 1){ $this->storeDetalle($folio,'WC',7,$wc_bc_obs); } if($regadera_bc == 1){ $this->storeDetalle($folio,'Regadera',7,$regadera_bc_obs); } if($manerales_bc == 1){ $this->storeDetalle($folio,'Manerales',7,$manerales_bc_obs); } if($coladera_bc == 1){ $this->storeDetalle($folio,'Coladera',7,$coladera_bc_obs); } if($acc_bano_bc == 1){ $this->storeDetalle($folio,'Acc. Baño',7,$acc_bano_bc_obs); } if($acc_electricos_bc == 1){ $this->storeDetalle($folio,'Acc. Eléctricos',7,$acc_electricos_bc_obs); } if($ventana_bc == 1){ $this->storeDetalle($folio,'Ventana',7,$ventana_bc_obs); } if($sello_ventana_bc == 1){ $this->storeDetalle($folio,'Sello ventana',7,$sello_ventana_bc_obs); } if($vidrio_ventana_bc == 1){ $this->storeDetalle($folio,'Vidrio ventana',7,$vidrio_ventana_bc_obs); } if($mosquitero_bc == 1){ $this->storeDetalle($folio,'Mosquitero',7,$mosquitero_bc_obs); } if($acabado_muro_bc == 1){ $this->storeDetalle($folio,'Acabado muros',7,$acabado_muro_bc_obs); } if($acabado_plafon_bc == 1){ $this->storeDetalle($folio,'Acabado plafón',7,$acabado_plafon_bc_obs); } if($sardinel_bc == 1){ $this->storeDetalle($folio,'Sardinel',7,$sardinel_bc_obs); } if($piso_bc == 1){ $this->storeDetalle($folio,'Piso',7,$piso_bc_obs); } if($zoclo_bc == 1){ $this->storeDetalle($folio,'Zoclo',7,$zoclo_bc_obs); } ///////////////// ESTANCIA if($ventana_estancia == 1){ $this->storeDetalle($folio,'Ventana',8,$ventana_estancia_obs); } if($sello_ventana_estancia == 1){ $this->storeDetalle($folio,'Sello ventana',8,$sello_ventana_estancia_obs); } if($vidrio_ventana_estancia == 1){ $this->storeDetalle($folio,'Vidrio ventana',8,$vidrio_ventana_estancia_obs); } if($mosquitero_estancia == 1){ $this->storeDetalle($folio,'Mosquitero',8,$mosquitero_estancia_obs); } if($interfon_estancia == 1){ $this->storeDetalle($folio,'Interfón',8,$interfon_estancia_obs); } if($acc_electricos_estancia == 1){ $this->storeDetalle($folio,'Acc. Eléctricos',8,$acc_electricos_estancia_obs); } if($acabado_muro_estancia == 1){ $this->storeDetalle($folio,'Acabado muros',8,$acabado_muro_estancia_obs); } if($acabado_plafon_estancia == 1){ $this->storeDetalle($folio,'Acabado plafon',8,$acabado_plafon_estancia_obs); } if($piso_estancia == 1){ $this->storeDetalle($folio,'Piso',8,$piso_estancia_obs); } if($zoclo_estancia == 1){ $this->storeDetalle($folio,'Zoclo',8,$zoclo_estancia_obs); } ////////// RECAMARA PRINCIPAL if($puerta_rp == 1){ $this->storeDetalle($folio,'Puerta',9,$puerta_rp_obs); } if($chapa_rp == 1){ $this->storeDetalle($folio,'Chapa',9,$chapa_rp_obs); } if($sello_marco_rp == 1){ $this->storeDetalle($folio,'Sello marco',9,$sello_marco_rp_obs); } if($cancel_rp == 1){ $this->storeDetalle($folio,'Cancel',9,$cancel_rp_obs); } if($sello_cancel_rp == 1){ $this->storeDetalle($folio,'Sello cancel',9,$sello_cancel_rp_obs); } if($vidrio_cancel_rp == 1){ $this->storeDetalle($folio,'Vidrio cancel',9,$vidrio_cancel_rp_obs); } if($mosquitero_rp == 1){ $this->storeDetalle($folio,'Mosquitero',9,$mosquitero_rp_obs); } if($balcon_rp == 1){ $this->storeDetalle($folio,'Balcón',9,$balcon_rp_obs); } if($barandal_rp == 1){ $this->storeDetalle($folio,'Barandal',9,$barandal_rp_obs); } if($acc_electricos_rp == 1){ $this->storeDetalle($folio,'Acc. Eléctricos',9,$acc_electricos_rp_obs); } if($interfon_rp == 1){ $this->storeDetalle($folio,'Interfón',9,$interfon_rp_obs); } if($salida_alarma_rp == 1){ $this->storeDetalle($folio,'Salida alarma',9,$salida_alarma_rp_obs); } if($acabado_muro_rp == 1){ $this->storeDetalle($folio,'Acabado muros',9,$acabado_muro_rp_obs); } if($acabado_plafon_rp == 1){ $this->storeDetalle($folio,'Acabado plafón',9,$acabado_plafon_rp_obs); } if($piso_rp == 1){ $this->storeDetalle($folio,'Piso',9,$piso_rp_obs); } if($zoclo_rp == 1){ $this->storeDetalle($folio,'Zoclo',9,$zoclo_rp_obs); } /////////// BAÑO RECAMARA PRINCIPAL if($puerta_brp == 1){ $this->storeDetalle($folio,'Puerta',10,$puerta_brp_obs); } if($chapa_brp == 1){ $this->storeDetalle($folio,'Chapa',10,$chapa_brp_obs); } if($sello_marco_brp == 1){ $this->storeDetalle($folio,'Sello marco',10,$sello_marco_brp_obs); } if($barra_lavabo_brp == 1){ $this->storeDetalle($folio,'Barra lavabo',10,$barra_lavabo_brp_obs); } if($lavabo_brp == 1){ $this->storeDetalle($folio,'Lavabo',10,$lavabo_brp_obs); } if($monomando_brp == 1){ $this->storeDetalle($folio,'Monomando',10,$monomando_brp_obs); } if($wc_brp == 1){ $this->storeDetalle($folio,'WC',10,$wc_brp_obs); } if($regadera_brp == 1){ $this->storeDetalle($folio,'Regadera',10,$regadera_brp_obs); } if($manerales_brp == 1){ $this->storeDetalle($folio,'Manerales',10,$manerales_brp_obs); } if($coladera_brp == 1){ $this->storeDetalle($folio,'Coladera',10,$coladera_brp_obs); } if($acc_bano_brp == 1){ $this->storeDetalle($folio,'Acc. Baño',10,$acc_bano_brp_obs); } if($acc_electrico_brp == 1){ $this->storeDetalle($folio,'Acc. Eléctricos',10,$acc_electrico_brp_obs); } if($ventana_brp == 1){ $this->storeDetalle($folio,'Ventana',10,$ventana_brp_obs); } if($sello_ventana_brp == 1){ $this->storeDetalle($folio,'Sello ventana',10,$sello_ventana_brp_obs); } if($vidrio_ventana_brp == 1){ $this->storeDetalle($folio,'Vidrio ventana',10,$vidrio_ventana_brp_obs); } if($mosquitero_brp == 1){ $this->storeDetalle($folio,'Mosquitero',10,$mosquitero_brp_obs); } if($acabado_muro_brp == 1){ $this->storeDetalle($folio,'Acabado muros',10,$acabado_muro_brp_obs); } if($acabado_plafon_brp == 1){ $this->storeDetalle($folio,'Acabado plafón',10,$acabado_plafon_brp_obs); } if($sardinel_brp == 1){ $this->storeDetalle($folio,'Sardinel',10,$sardinel_brp_obs); } if($piso_brp == 1){ $this->storeDetalle($folio,'Piso',10,$piso_brp_obs); } if($zoclo_brp == 1){ $this->storeDetalle($folio,'Zoclo',10,$zoclo_brp_obs); } ////////////////// VESTIDOR if($acc_electrico_vest == 1){ $this->storeDetalle($folio,'Acc. Eléctricos',11,$acc_electrico_vest_obs); } if($acabado_muro_vest == 1){ $this->storeDetalle($folio,'Acabado muros',11,$acabado_muro_vest_obs); } if($acabado_plafon_vest == 1){ $this->storeDetalle($folio,'Acabado plafón',11,$acabado_plafon_vest_obs); } if($piso_vest == 1){ $this->storeDetalle($folio,'Piso',11,$piso_vest_obs); } if($zoclo_vest == 1){ $this->storeDetalle($folio,'Zoclo',11,$zoclo_vest_obs); } if($zoclo_vest == 1){ $this->storeDetalle($folio,'Zoclo',11,$zoclo_vest_obs); } ////////////////// RECAMARA 2 if($puerta_rec2 == 1){ $this->storeDetalle($folio,'Puerta',12,$puerta_rec2_obs); } if($chapa_rec2 == 1){ $this->storeDetalle($folio,'Chapa',12,$chapa_rec2_obs); } if($sello_marco_rec2 == 1){ $this->storeDetalle($folio,'Sello marco',12,$sello_marco_rec2_obs); } if($cancel_rec2 == 1){ $this->storeDetalle($folio,'Cancel',12,$cancel_rec2_obs); } if($sello_cancel_rec2 == 1){ $this->storeDetalle($folio,'Sello cancel',12,$sello_cancel_rec2_obs); } if($vidrio_cancel_rec2 == 1){ $this->storeDetalle($folio,'Vidrio cancel',12,$vidrio_cancel_rec2_obs); } if($mosquitero_rec2 == 1){ $this->storeDetalle($folio,'Mosquitero',12,$mosquitero_rec2_obs); } if($acc_rec2 == 1){ $this->storeDetalle($folio,'Acc. Eléctricos',12,$acc_rec2_obs); } if($salida_alarma_rec2 == 1){ $this->storeDetalle($folio,'Salida alarma',12,$salida_alarma_rec2_obs); } if($acabado_muro_rec2 == 1){ $this->storeDetalle($folio,'Acabado muros',12,$acabado_muro_rec2_obs); } if($acabado_plafon_rec2 == 1){ $this->storeDetalle($folio,'Acabado plafón',12,$acabado_plafon_rec2_obs); } if($piso_rec2 == 1){ $this->storeDetalle($folio,'Piso',12,$piso_rec2_obs); } if($zoclo_rec2 == 1){ $this->storeDetalle($folio,'Zoclo',12,$zoclo_rec2_obs); } ////////////////// RECAMARA 3 if($puerta_rec3 == 1){ $this->storeDetalle($folio,'Puerta',13,$puerta_rec3_obs); } if($chapa_rec3 == 1){ $this->storeDetalle($folio,'Chapa',13,$chapa_rec3_obs); } if($sello_marco_rec3 == 1){ $this->storeDetalle($folio,'Sello marco',13,$sello_marco_rec3_obs); } if($cancel_rec3 == 1){ $this->storeDetalle($folio,'Cancel',13,$cancel_rec3_obs); } if($sello_cancel_rec3 == 1){ $this->storeDetalle($folio,'Sello cancel',13,$sello_cancel_rec3_obs); } if($vidrio_cancel_rec3 == 1){ $this->storeDetalle($folio,'Vidrio cancel',13,$vidrio_cancel_rec3_obs); } if($mosquitero_rec3 == 1){ $this->storeDetalle($folio,'Mosquitero',13,$mosquitero_rec3_obs); } if($acc_rec3 == 1){ $this->storeDetalle($folio,'Acc. Eléctricos',13,$acc_rec3_obs); } if($salida_alarma_rec3 == 1){ $this->storeDetalle($folio,'Salida alarma',13,$salida_alarma_rec3_obs); } if($acabado_muro_rec3 == 1){ $this->storeDetalle($folio,'Acabado muros',13,$acabado_muro_rec3_obs); } if($acabado_plafon_rec3 == 1){ $this->storeDetalle($folio,'Acabado plafón',13,$acabado_plafon_rec3_obs); } if($piso_rec3 == 1){ $this->storeDetalle($folio,'Piso',13,$piso_rec3_obs); } if($zoclo_rec3 == 1){ $this->storeDetalle($folio,'Zoclo',13,$zoclo_rec3_obs); } //////////////// AZOTEA if($pretiles_azotea == 1){ $this->storeDetalle($folio,'Pretiles',14,$pretiles_azotea_obs); } if($impermeabilizacion == 1){ $this->storeDetalle($folio,'Impermeabilización',14,$impermeabilizacion_obs); } if($domos_azotea == 1){ $this->storeDetalle($folio,'Domos',14,$domos_azotea_obs); } if($mufas_azotea == 1){ $this->storeDetalle($folio,'Mufas',14,$mufas_azotea_obs); } if($jarros_azotea == 1){ $this->storeDetalle($folio,'Jarros de aire',14,$jarros_azotea_obs); } if($ventilas_azotea == 1){ $this->storeDetalle($folio,'Ventilas inst. Sn.',14,$ventilas_azotea_obs); } if($base_tinaco_azotea == 1){ $this->storeDetalle($folio,'Base tinaco',14,$base_tinaco_azotea_obs); } if($tinaco_azotea == 1){ $this->storeDetalle($folio,'Tinaco',14,$tinaco_azotea_obs); } if($calentador_solar_azotea == 1){ $this->storeDetalle($folio,'Calentador solar',14,$calentador_solar_azotea_obs); } if($punta_gas_azotea == 1){ $this->storeDetalle($folio,'Punta inst. Gas',14,$punta_gas_azotea_obs); } if($anclas_azotea == 1){ $this->storeDetalle($folio,'Anclas escalera',14,$anclas_azotea_obs); } if($limpieza_azotea == 1){ $this->storeDetalle($folio,'Limpieza',14,$limpieza_azotea_obs); } ///////////// GENERALES if($limpieza_interior == 1){ $this->storeDetalle($folio,'Limpieza interior',15,$limpieza_interior_obs); } if($limpieza_exterior == 1){ $this->storeDetalle($folio,'Limpieza exterior',15,$limpieza_exterior_obs); } if($limpieza_vidrios == 1){ $this->storeDetalle($folio,'Limpieza en vidrios',15,$limpieza_vidrios_obs); } if($limpieza_domos == 1){ $this->storeDetalle($folio,'Limpieza en domos',15,$limpieza_domos_obs); } if($plastico_muebles == 1){ $this->storeDetalle($folio,'Plástico en muebles',15,$plastico_muebles_obs); } if($candados == 1){ $this->storeDetalle($folio,'Candados',15,$candados_obs); } if($llaves == 1){ $this->storeDetalle($folio,'Llaves',15,$llaves_obs); } if($num_oficial == 1){ $this->storeDetalle($folio,'Número oficial',15,$num_oficial_obs); } DB::commit(); } catch (Exception $e){ DB::rollBack(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getRevision() ;", "public function getRevision() {}", "public function getRevision();", "function change_revision($file) {\n\n global $DOCDIR, $LANG;\n\n $en_file = preg_replace(\"'^\".$DOCDIR.$LANG.\"/'\", $DOCDIR.\"en/\", $file);\n\n // Get en file cvs revision\n $cvs_rev = get_tags($en_file);\n\n // Get en file cvs revision\n $svn_rev = get_tags($en_file, \"svn-rev\");\n\n // Get translated file revision\n $this_rev = get_tags($file, \"this-rev\");\n\n // If we have a numeric revision number (not n/a), compute rev. diff\n if (is_numeric($this_rev)) {\n\n $rev_diff = intval($cvs_rev) - intval($this_rev);\n\n if (!$rev_diff) {\n /* change revision number from cvs to svn */\n\n $line = file_get_contents($file);\n $str = \"<!-- EN-Revision: $svn_rev Maintainer:\";\n $newline = preg_replace(\"/<!--.EN-Revision:\\s*.\\d+\\.\\d+\\s*Maintainer:/U\", $str, $line);\n\n $fp = fopen($file, \"w\");\n fwrite ($fp, $newline);\n fclose($fp);\n\n } elseif ($rev_diff > 0) {\n /* change revision number to n/a */\n\n $line = file_get_contents($file);\n $str = \"<!-- EN-Revision: n/a Maintainer:\";\n $newline = preg_replace(\"/<!--.EN-Revision:\\s*.\\d+\\.\\d+\\s*Maintainer:/U\", $str, $line);\n\n $fp = fopen($file, \"w\");\n fwrite ($fp, $newline);\n fclose($fp);\n\n } // else no touch\n }\n\n}", "protected function getGitRevision() {}", "public function getRevisioned() ;", "public function isRevisionable();", "public function getLastRevision();", "function acf_save_post_revision($post_id = 0)\n{\n}", "public function getRev() : string;", "function testRevisionHistory() \r\n\t{\r\n\t\t$dbh = $this->dbh;\r\n\t\t\r\n\t\t$obj = new CAntObject($dbh, \"customer\", null, $this->user);\r\n\t\t$obj->setValue(\"name\", \"My First Revision\");\r\n\t\t$oid = $obj->save();\r\n\r\n\t\t$revid = $dbh->GetValue($dbh->Query(\"select id from object_revisions where object_id='$oid' and object_type_id='\".$obj->object_type_id.\"'\"));\r\n\t\t$this->assertTrue($revid > 0 && $revid !=null);\r\n\t\t//$this->assertEquals($dbh->GetValue($dbh->Query(\"select field_value from object_recurrence where id='\".$rp->id.\"'\")), 0);\r\n\t}", "public function showRevision($id)\n {\n }", "function generate_revision($post) {\n $revision = BlogRevision::_generateWith($post);\n return $revision;\n}", "function wp_save_post_revision_check_for_changes($return, $last_revision, $post)\n {\n }", "function _wp_get_post_revision_version($revision)\n {\n }", "public function testGetRevision()\n {\n }", "public function addRevision()\n {\n $this->check_sess($this->session->user_logged);\n\t\t$this->load->view('head');\n\t\t$this->load->view('sclerk_sidebar');\n\n\t\t$this->load->view('search_officer', $this->response);\n\t\t$this->load->view('footer');\n }", "public function revision($id) {\n\t\tif ($this -> request -> is('post') || $this -> request -> is('put')) {\n\t\t\tif ($this -> request -> data['SolicitudesTitulacion']['tipos_especies_valorada_id']) {\n\t\t\t\tif ($this -> SolicitudesTitulacion -> save($this -> request -> data)) {\n\t\t\t\t\t$this -> Session -> setFlash(__('Se registró el cambio'), 'crud/success');\n\t\t\t\t\t$this -> redirect(array('action' => 'index'));\n\t\t\t\t} else {\n\t\t\t\t\t$this -> Session -> setFlash(__('No se pudo registrar el cambio. Por favor, intente de nuevo.'), 'crud/error');\n\t\t\t\t\t$this -> redirect(array('action' => 'index'));\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$this -> Session -> setFlash(__('No se pudo registrar el cambio. Seleccione el tipo de especie valorada. Por favor, intente de nuevo.'), 'crud/error');\n\t\t\t\t$this -> redirect(array('action' => 'index'));\n\t\t\t}\n\t\t} else {\n\t\t\tif (!$id) {\n\n\t\t\t} else {\n\t\t\t\t$this -> loadModel('Archivo');\n\t\t\t\t$archivos = $this -> Archivo -> find('all', array('conditions' => array('Archivo.model' => 'SolicitudesTitulacion', 'Archivo.foreign_key' => $id)));\n\t\t\t\t//$estadosSolicitudesTitulaciones = $this -> SolicitudesTitulacion -> EstadosSolicitudesTitulacion -> find('list');\n\t\t\t\t$estadosSolicitudesTitulaciones = $this -> SolicitudesTitulacion -> EstadosSolicitudesTitulacion -> find(\"list\", array(\"fields\" => array(\"id\", \"est_estado\")));\n\t\t\t\tunset($estadosSolicitudesTitulaciones[4]);\n\t\t\t\t//Quito el estado de refrendado\n\t\t\t\t//debug($estadosSolicitudesTitulaciones);\n\t\t\t\t$tiposEspeciesValoradas = $this -> SolicitudesTitulacion -> TiposEspeciesValorada -> find('list');\n\t\t\t\t$this -> set(compact('estadosSolicitudesTitulaciones', 'tiposEspeciesValoradas'));\n\t\t\t\t$this -> set('archivos', $archivos);\n\t\t\t\t$solicitud = $this -> SolicitudesTitulacion -> read(null, $id);\n\t\t\t\t$this -> request -> data = $solicitud;\n\t\t\t\t//$this -> set('solicitud', $solicitud);\n\t\t\t}\n\t\t}\n\t}", "function acf_get_post_latest_revision($post_id)\n{\n}", "public function getRevision($round = true) {}", "public function setRevision($value) {}", "public function revision($id){\n $users = User::orderBy('id','desc')->get();\n\n $posts = Post::with('comments', 'user', 'project')->orderBy('id', 'desc')->limit(20)->get();\n\n $tasks = DB::table('tasks')\n ->leftJoin('users', 'tasks.user_id', '=', 'users.id')\n ->leftJoin('projects', 'tasks.project_id', '=', 'projects.id')\n ->select('tasks.*', 'users.first_name', 'users.last_name', 'users.profile_image', 'projects.project_name')\n ->orderBy('id', 'desc')\n ->get();\n\n $user = User::find($id);\n //fetch folder by ID\n $revision = Review::find($id);\n $folders = Folder::with('files', 'user')->orderBy('id', 'desc')->limit(20)->get();\n //fetch user by ID\n $user = User::find($id);\n $notes = DB::table('notes')\n ->leftJoin('users', 'notes.user_id', '=', 'users.id')\n ->select('notes.*', 'users.first_name', 'users.last_name', 'users.profile_image')\n ->orderBy('notes.id', 'desc')\n ->get();\n $colors = ColorSettings::orderBy('id', 'desc')->limit('1')->get();\n\n $logos = WorkspaceLogoSetting::orderBy('id', 'desc')->limit('1')->get();\n\n //dd($posts); die();\n\n return view('document_control.revision', [\n 'posts' => $posts,\n 'tasks' => $tasks,\n 'revision'=> $revision,\n 'folders'=> $folders,\n 'notes' => $notes,\n 'colors' => $colors,\n 'logos' => $logos,\n 'users' => $users,\n 'user' => $user,\n ]);\n\n }", "function node_revision_overview($node) {\n drupal_set_title(t('Revisions for %title', array('%title' => $node->title)));\n\n $header = array(t('Revision'), array('data' => t('Operations'), 'colspan' => 2));\n\n $revisions = node_revision_list($node);\n\n $rows = array();\n $revert_permission = FALSE;\n if ((user_access('revert revisions') || user_access('administer nodes')) && node_access('update', $node)) {\n $revert_permission = TRUE;\n }\n $delete_permission = FALSE;\n if ((user_access('delete revisions') || user_access('administer nodes')) && node_access('delete', $node)) {\n $delete_permission = TRUE;\n }\n foreach ($revisions as $revision) {\n $row = array();\n $operations = array();\n\n if ($revision->current_vid > 0) {\n $row[] = array('data' => t('!date by !username', array('!date' => l(format_date($revision->timestamp, 'small'), \"node/$node->nid\"), '!username' => theme('username', $revision)))\n . (($revision->log != '') ? '<p class=\"revision-log\">'. filter_xss($revision->log) .'</p>' : ''),\n 'class' => 'revision-current');\n $operations[] = array('data' => theme('placeholder', t('current revision')), 'class' => 'revision-current', 'colspan' => 2);\n }\n else {\n $row[] = t('!date by !username', array('!date' => l(format_date($revision->timestamp, 'small'), \"node/$node->nid/revisions/$revision->vid/view\"), '!username' => theme('username', $revision)))\n . (($revision->log != '') ? '<p class=\"revision-log\">'. filter_xss($revision->log) .'</p>' : '');\n if ($revert_permission) {\n $operations[] = l(t('revert'), \"node/$node->nid/revisions/$revision->vid/revert\");\n }\n if ($delete_permission) {\n $operations[] = l(t('delete'), \"node/$node->nid/revisions/$revision->vid/delete\");\n }\n }\n $rows[] = array_merge($row, $operations);\n }\n\n return theme('table', $header, $rows);\n}", "function wp_restore_post_revision($revision, $fields = \\null)\n {\n }", "public function revisionAction($id_reporte)\n {\n //Check if the variable is defined \n if ($this->session->has(\"login\")) {\n }\n else\n {\n $this->response->redirect(\"\");\n }\n\n $Reporte = Reporte::findFirstByid_reporte($id_reporte);\n $this->tag->setDefault(\"id_reporte\", $Reporte->getIdReporte());\n\n $ruta=$Reporte->getRuta();\n $archivo=$Reporte->getArchivo();\n\n $this->view->ruta = $ruta;\n $this->view->archivo = $archivo;\n\n $comentarios = $this->modelsManager->createBuilder()\n ->from('Comentarios')\n ->join('Usuarios')//recordemos que no necesitamos hacer la on\n ->columns(\"comentario, fecha_comentario, concat(Usuarios.nombre,' ',paterno,' ',materno) as nombre\")\n ->where('id_reporte = :id_reporte:', array('id_reporte' => $id_reporte))\n ->orderBy('id_comentario Desc')\n ->getQuery()\n ->execute();\n\n $this->view->comentarios = $comentarios;\n }", "function test_rev(){\n global $ID,$conf,$REV;\n\n $ID = 'wiki:syntax';\n $filename = $conf['datadir'].'/wiki/syntax.txt';\n $rev = filemtime($filename);\n $REV = $rev - 100;\n\n $info = $this->_get_expected_pageinfo();\n $info['id'] = 'wiki:syntax';\n $info['namespace'] = 'wiki';\n $info['meta'] = p_get_metadata($ID);\n $info['rev'] = $REV;\n $info['currentrev'] = $rev;\n $info['filepath'] = str_replace('pages','attic',substr($filename,0,-3).$REV.'.txt.gz');\n\n $this->assertEquals($info, pageinfo());\n $this->assertEquals($rev-100, $REV);\n }", "function _wp_post_revision_data($post = array(), $autosave = \\false)\n {\n }", "function wp_restore_post_revision($post_id, $revision_id)\n {\n }", "function wp_post_revision_title($revision, $link = \\true)\n {\n }", "function wp_restore_footnotes_from_revision($post_id, $revision_id)\n {\n }", "public function revisionsTable();", "function wp_get_post_revision(&$post, $output = \\OBJECT, $filter = 'raw')\n {\n }", "function pages_handle_on_new_revision($page, $version, $by) {\n if(instance_of($page, 'Page')) {\n $page->sendToSubscribers('pages/new_revision', array(\n 'created_by_url' => $by->getViewUrl(), \n 'created_by_name' => $by->getDisplayName(), \n 'revision_num' => $page->getRevisionNum(), \n 'old_url' => $version->getViewUrl(), \n 'old_name' => $version->getName(), \n 'old_body' => $version->getFormattedBody(), \n 'new_url' => $page->getViewUrl(), \n 'new_name' => $page->getName(), \n 'new_body' => $page->getFormattedBody(),\n ), $by->getId());\n } // if\n }", "function add_revision( $page_id, $title, $body, $user )\n {\n if( strtolower($title) == 'sandbox' ) {\n return;\n }\n $this->db->set('page_id', $page_id );\n $this->db->set('title', $title );\n $this->db->set('body', $body );\n $this->db->set('user', $user );\n $this->db->set('created_on', 'NOW()', false );\n $this->db->insert( $this->table_name_revisions );\n }", "public function getAllRevisions()\n {\n // Retrieves username associated with an id. \n $this->ui_ids = array();\n\n /**\n * Retrieves list of previous versions of data dictionary.\n */\n $pid = $_GET[\"pid\"];\n $previous_versions = array();\n $sql = \"select p.pr_id, p.ts_approved, p.ui_id_requester, p.ui_id_approver,\n if(l.description = 'Approve production project modifications (automatic)',1,0) as automatic\n from redcap_metadata_prod_revisions p left join redcap_log_event l\n on p.project_id = l.project_id and p.ts_approved*1 = l.ts\n where p.project_id = $pid and p.ts_approved is not null order by p.pr_id\";\n\n if ($result = $this->query($sql))\n {\n // Cycle through results\n $rev_num = 0;\n $num_rows = $result->num_rows;\n while ($row = $result->fetch_object())\n {\n if ($rev_num == 0)\n {\n $previous_versions[] = array(\n \"id\" => $row->pr_id,\n \"label\" => \"Moved to Production\",\n \"requester\" => $this->getUsernameFirstLast($row->ui_id_requester),\n \"approver\" => $this->getUsernameFirstLast($row->ui_id_approver),\n \"automatic_approval\" => $row->automatic,\n \"ts_approved\" => $row->ts_approved,\n );\n }\n else\n {\n $previous_versions[] = array(\n \"id\" => $row->pr_id,\n \"label\" => \"Production Revision #$rev_num\",\n \"requester\" => $this->getUsernameFirstLast($row->ui_id_requester),\n \"approver\" => $this->getUsernameFirstLast($row->ui_id_approver),\n \"automatic_approval\" => $row->automatic,\n \"ts_approved\" => $row->ts_approved\n );\n }\n\n if ($rev_num == $num_rows - 1)\n {\n // Current revision will be mapped to timestamp and approver of last row\n $current_revision_ts_approved = $row->ts_approved;\n $current_revision_approver = $this->getUsernameFirstLast($row->ui_id_approver);\n $current_revision_requester = $this->getUsernameFirstLast($row->ui_id_requester);\n $current_revision_automatic = $row->automatic;\n }\n\n $rev_num++;\n }\n\n $result->close();\n \n // Sort by most recent version.\n $previous_versions = array_reverse($previous_versions);\n }\n\n // Shift timestamps, approvers, requesters, and automatic approval down by one,\n // as the correct info for each one is when the previous version was archived. \n $last_key = null;\n foreach($previous_versions as $key => $version)\n {\n if ($last_key !== null)\n {\n $previous_versions[$last_key][\"ts_approved\"] = $previous_versions[$key][\"ts_approved\"];\n $previous_versions[$last_key][\"requester\"] = $previous_versions[$key][\"requester\"];\n $previous_versions[$last_key][\"approver\"] = $previous_versions[$key][\"approver\"];\n $previous_versions[$last_key][\"automatic_approval\"] = $previous_versions[$key][\"automatic_approval\"];\n }\n $last_key = $key;\n }\n\n // Get correct production timestamp,\n // and the person who moved it to production\n if (!empty($previous_versions))\n {\n // Get correct production timestamp\n $sql = \"select production_time from redcap_projects where project_id = $pid\";\n if ($result = $this->query($sql))\n {\n while ($row = $result->fetch_object()){\n $timestamp = $row->production_time;\n $previous_versions[sizeof($previous_versions)-1][\"ts_approved\"] = $timestamp;\n }\n $result->close();\n }\n\n if (!empty($timestamp))\n {\n // Retrieve person who moved to production, as it's stored separately. \n $sql = \"select u.ui_id from redcap_user_information u, redcap_log_event l\n where u.username = l.user and l.description = 'Move project to production status' and l.project_id = $pid \n and l.ts = '\" . str_replace(array(' ',':','-'), array('','',''), $timestamp) . \"' order by log_event_id desc limit 1\";\n\n if ($result = $this->query($sql))\n {\n while ($row = $result->fetch_object()){\n $previous_versions[sizeof($previous_versions)-1][\"approver\"] = $this->getUsernameFirstLast($row->ui_id);\n }\n $result->close();\n }\n }\n }\n\n // Add current revision\n if (isset($current_revision_approver) && \n isset($current_revision_ts_approved) && \n isset($current_revision_automatic) && \n isset($current_revision_requester))\n {\n array_unshift($previous_versions, array(\n \"id\" => \"current\",\n \"label\" => \"Production Revision #$rev_num <b>(Current Revision)</b>\",\n \"requester\" => $current_revision_requester,\n \"approver\" => $current_revision_approver,\n \"automatic_approval\" => $current_revision_automatic,\n \"ts_approved\" => $current_revision_ts_approved\n ));\n }\n\n return $previous_versions;\n }", "function revisions_annonces($id_annonce, $c=false) {\n\n// ** Champs normaux **\n\tif ($c === false) {\n\t\t// Si $c a sa valeur par defaut, alors on en fait un tableau,\n\t\t// que l'on remplit avec les nouvelles valeurs des differents champs\n\t\t$c = array();\n\t\tforeach (array(\n\t\t\t// Pour chacun de ces champs,\n\t\t\t'titre', 'lien', 'annonceur', 'peremption',\n\t\t\t'type', 'descriptif', 'source_lien', 'source_nom', 'statut'\n\t\t) as $champ)\n\t\t\t// on en recupere la nouvelle valeur (a condition qu'ils ne soient pas vides),\n\t\t\tif (($a = _request($champ)) !== null)\n\t\t\t\t// que l'on met dans le tableau $c\n\t\t\t\t$c[$champ] = $a;\n\t}\n\n\t// Si l'annonce est publiee, invalider les caches et demander sa reindexation\n\t// (indispensable pour mettre a jour l'annonce du cote public)\n\t// $t est le statut actuel de l'objet, que l'on recupere en premier lieu\n\t$t = sql_getfetsel(\"statut\", \"spip_vu_annonces\", \"id_annonce=$id_annonce\");\n\tif ($t == 'publie') {\n\t\t// Si le statut est publie, alors on indique que cette annonce devra etre invalidee\n\t\t$invalideur = \"id='id_annonce/$id_annonce'\";\n\t\t// et on demande une reindexation\n\t\t$indexation = true;\n\t}\n\t// On charge le fichier qui contient la fonction necessaire...\n\tinclude_spip('inc/modifier');\n\t// ... que l'on execute ensuite avec les parametres definis juste au dessus\n\tmodifier_contenu('annonce', $id_annonce,\n\t\tarray(\n\t\t\t'nonvide' => array('titre' => _T('info_sans_titre')),\n\t\t\t'invalideur' => $invalideur,\n\t\t\t'indexation' => $indexation\n\t\t),\n\t\t$c);\n\n\n// ** Un cas special : changer le statut ? **\n\t// On recupere pour commencer le statut actuel de la breve,\n\t$row = sql_fetsel(\"statut\", \"spip_vu_annonces\", \"id_annonce=$id_annonce\");\n\t// pour ensuite le stocker dans deux variables differentes\n\t$statut_ancien = $statut = $row['statut'];\n\t// Si un nouveau statut est demande, ET qu'il est different de l'actuel, \n\t// ?? a rajouter pour la suite : \"ET que nous avons les autorisations pour le changer\"\n\tif (_request('statut', $c) AND _request('statut', $c) != $statut) {\n\t\t// Alors $statut acquiere sa valeur nouvelle (vu au dessus avec $champs)\n\t\t$statut = $champs['statut'] = _request('statut', $c);\n\t}\n\n// ** Rendre effective la revision **\n\t// Si le tableau contenant les nouvelles valeurs est vide (rien a changer),\n\t// alors c'est termine !\n\tif (!$champs) return;\n\n\t// Si l'etape precedente est passee, alors on a des choses a faire.\n\t// On demande simplement une mise a jour de la table avec les nouvelles valeurs ($champs)\n\tsql_updateq('spip_vu_annonces', $champs, \"id_annonce=$id_annonce\");\n\n// ** Post-modifications **\n\t// Invalider les caches\n\tinclude_spip('inc/invalideur');\n\tsuivre_invalideur(\"id='id_annonce/$id_annonce'\");\n\n}", "public function writeRevision()\n {\n $locRev = $this->git->localRevision();\n $temp = tempnam(sys_get_temp_dir(), 'gitRevision');\n\n file_put_contents($temp, $locRev);\n ftp_put($this->connection, $this->revisionFile, $temp, FTP_BINARY);\n unlink($temp);\n }", "function logAllToRevision($log)\n{\n $revisions = array();\n if ($log != \"\" && preg_match_all('/commit\\s+(\\w{40})\\n/i', $log, $matches)) {\n $data = preg_split('/commit\\s+\\w{40}\\n/i', $log);\n foreach ($matches[1] as $k => $match) {\n preg_match('/Author:\\s+([^\\n]+)\\n/i', $data[$k + 1], $author);\n if (isset($author[1])) {\n $author = htmlentities($author[1]);\n $data[$k + 1] = preg_replace('/Author:\\s+[^\\n]+\\n/i', '', $data[$k + 1]);\n } else $author = '';\n\n preg_match('/Date:\\s+([^\\n]+)\\n/i', $data[$k + 1], $date);\n if (isset($date[1])) {\n $date = $date[1];\n $data[$k + 1] = preg_replace('/Date:\\s+[^\\n]+\\n/i', '', $data[$k + 1]);\n } else $date = '';\n\n $comment = trim($data[$k + 1]);\n\n $revisions[$match] = array(\n 'hash' => $match,\n 'author' => $author,\n 'date' => $date, //date('Y-m-d H:i:s', strtotime($date))\n 'comment' => $comment\n );\n }\n }\n return $revisions;\n}", "function testRevisionGenerationForEntity() {\n\t\t$entity_id = wl_create_post( 'Original content', 'entity-1', uniqid( 'entity', true ), 'publish', 'entity' );\n\t\t$revisions = wp_get_post_revisions( $entity_id );\n\n\t\t// Just a simple sanity check.\n\t\t$this->assertCount( 1 , $revisions );\n\n\t\t// Check that a revision is generated on change.\n\t\t$post_data = array(\n\t\t 'ID' => $entity_id,\n\t\t 'post_content' => 'This is the updated content.',\n\t\t);\n\n\t\twp_update_post( $post_data );\n\t\t$revisions = wp_get_post_revisions( $entity_id );\n\t\t$this->assertCount( 2 , $revisions );\n\t}", "function processRevision( $revision, $page_id, $title ) {\n\t\t$revid = $revision['revid'];\n\n\t\t# Workaround check if it's already there.\n\t\t$rowCount = $this->dbw->selectRowCount(\n\t\t\t'revision',\n\t\t\t'rev_id',\n\t\t\t[ 'rev_id' => $revid ],\n\t\t\t__METHOD__\n\t\t);\n\t\tif ( $rowCount ) {\n\t\t\t# Already in database\n\t\t\t$this->output( \"Revision $revid is already in the database. Skipped.\\n\" );\n\t\t\treturn false;\n\t\t}\n\n\t\t# Sloppy handler for revdeletions; just fills them in with dummy text\n\t\t# and sets bitfield thingy\n\t\t$revdeleted = 0;\n\t\tif ( isset( $revision['userhidden'] ) ) {\n\t\t\t$revdeleted = $revdeleted | RevisionRecord::DELETED_USER;\n\t\t\tif ( !isset( $revision['user'] ) ) {\n\t\t\t\t$revision['user'] = ''; # username removed\n\t\t\t}\n\t\t\tif ( !isset( $revision['userid'] ) ) {\n\t\t\t\t$revision['userid'] = 0;\n\t\t\t}\n\t\t}\n\t\t$comment = $revision['comment'] ?? '';\n\t\tif ( isset( $revision['commenthidden'] ) ) {\n\t\t\t$revdeleted = $revdeleted | RevisionRecord::DELETED_COMMENT;\n\t\t}\n\t\t$text = $revision['*'] ?? '';\n\t\tif ( isset( $revision['texthidden'] ) ) {\n\t\t\t$revdeleted = $revdeleted | RevisionRecord::DELETED_TEXT;\n\t\t}\n\t\tif ( isset ( $revision['suppressed'] ) ) {\n\t\t\t$revdeleted = $revdeleted | RevisionRecord::DELETED_RESTRICTED;\n\t\t}\n\n\t\t$this->output( \"Inserting revision {$revid}\\n\" );\n\n\t\t$rev = new MutableRevisionRecord( $title );\n\t\t$content = ContentHandler::makeContent( $text, $title );\n\t\t$rev->setId( $revid );\n\t\t$rev->setContent( SlotRecord::MAIN, $content );\n\t\t$rev->setComment( CommentStoreComment::newUnsavedComment( $comment ) );\n\t\t$rev->setVisibility( $revdeleted );\n\t\t$rev->setTimestamp( $revision['timestamp'] );\n\t\t$rev->setMinorEdit( isset( $revision['minor'] ) );\n\t\t$userIdentity = $this->getUserIdentity( $revision['userid'], $revision['user'] );\n\t\t$rev->setUser( $userIdentity );\n\t\t$rev->setPageId( $page_id );\n\t\t# A null parent id should never happen, but some wikis coming from Gamepedia\n\t\t# may have this as null on some pages automatically set up during wiki\n\t\t# creation.\n\t\t# Skipping this will calculate the parent id on revision insertion.\n\t\tif ( isset( $revision['parentid'] ) ) {\n\t\t\t$rev->setParentId( $revision['parentid'] );\n\t\t}\n\t\t$this->revisionStore->insertRevisionOn( $rev, $this->dbw );\n\n\t\t# Insert tags, if any\n\t\tif ( isset( $revision['tags'] ) && count( $revision['tags'] ) > 0 ) {\n\t\t\t$this->insertTags( $revision['tags'], $revid );\n\t\t}\n\n\t\t$this->dbw->commit();\n\n\t\treturn true;\n\t}", "public function testRevisionHistory() {\n $entity = EnhancedEntity::create([\n 'name' => 'rev 1',\n 'type' => 'default',\n ]);\n $entity->save();\n\n $revision = clone $entity;\n $revision->name->value = 'rev 2';\n $revision->setNewRevision(TRUE);\n $revision->isDefaultRevision(FALSE);\n $revision->save();\n\n /** @var \\Symfony\\Component\\HttpKernel\\HttpKernelInterface $http_kernel */\n $http_kernel = $this->container->get('http_kernel');\n $request = Request::create($revision->toUrl('version-history')->toString());\n $response = $http_kernel->handle($request);\n $this->assertEquals(403, $response->getStatusCode());\n\n $role_admin = Role::create(['id' => 'test_role_admin']);\n $role_admin->grantPermission('administer entity_test_enhanced');\n $role_admin->save();\n\n $role = Role::create(['id' => 'test_role']);\n $role->grantPermission('view all entity_test_enhanced revisions');\n $role->grantPermission('administer entity_test_enhanced');\n $role->save();\n\n $user_admin = User::create([\n 'name' => 'Test administrator',\n ]);\n $user_admin->addRole($role_admin->id());\n $user_admin->save();\n $this->container->get('account_switcher')->switchTo($user_admin);\n\n $request = Request::create($revision->toUrl('version-history')->toString());\n $response = $http_kernel->handle($request);\n $this->assertEquals(200, $response->getStatusCode());\n\n $user = User::create([\n 'name' => 'Test editor',\n ]);\n $user->addRole($role->id());\n $user->save();\n $this->container->get('account_switcher')->switchTo($user);\n\n $request = Request::create($revision->toUrl('version-history')->toString());\n $response = $http_kernel->handle($request);\n $this->assertEquals(200, $response->getStatusCode());\n\n // This ensures that the default revision is still the first revision.\n $this->assertTrue(strpos($response->getContent(), 'entity_test_enhanced/1/revisions/2/view') !== FALSE);\n $this->assertTrue(strpos($response->getContent(), 'entity_test_enhanced/1') !== FALSE);\n\n // Publish a new revision.\n $revision = clone $entity;\n $revision->name->value = 'rev 3';\n $revision->setNewRevision(TRUE);\n $revision->isDefaultRevision(TRUE);\n $revision->save();\n\n $request = Request::create($revision->toUrl('version-history')->toString());\n $response = $http_kernel->handle($request);\n $this->assertEquals(200, $response->getStatusCode());\n\n // The first revision row should now include a revert link.\n $this->assertTrue(strpos($response->getContent(), 'entity_test_enhanced/1/revisions/1/revert') !== FALSE);\n }", "public function revisiones($folio)\n {\n $bd = new basedatos();\n $bd->conectar();\n $sql=\"SELECT id, folioTramite, idDepto, fechaEntrada, fechaSalida, idRecibio, idEntrego, infoEstado FROM infotramites WHERE folioTramite=\".$folio;\n $bd->crearComando($sql);\n $bd->ejecutarComando();\n $numRevisiones=$bd->filasEncontradas();\n if($numRevisiones==0)\n {\n $bd->desconectar();\n return false;\n }\n else if($numRevisiones>0)\n {\n //revisiones=infodocumentos \n $revisiones = array ();\n WHILE($revision=$bd->obtenerRegistros())\n {\n $infoDoc = new infodocumento($revision['id'],$revision['folioTramite'],$revision['idDepto']);\n $infoDoc->setFInicio($revision['fechaEntrada']);\n $infoDoc->setFFin($revision['fechaSalida']);\n $infoDoc->setIdRecibio($revision['idRecibio']);\n $infoDoc->setIdEntrego($revision['idEntrego']);\n $infoDoc->setEstado($revision['infoEstado']);\n \n $revisiones[]=$infoDoc;\n }\n $bd->desconectar();\n return $revisiones;\n }\n }", "function generar_estado_codigo()\n\t{\n\t\t$this->manejador_interface->mensaje(\"Calculando revisiones {$this->identificador} \" , false);\n\t\t$this->generar_checksum();\n\n\t\t//Esto simplemente se calcula para darle una idea al pobre chango de cual\n\t\t//fue la ultima revision que cargo en la base,util para el revert\n\t\t$svn = new toba_svn();\n\t\tif ($svn->hay_cliente_svn()) {\n\t\t\t$max_rev = 0;\n\t\t\t$revisiones = $svn->get_revisiones_dir_recursivos($this->get_dir_dump());\n\t\t\t$max_rev = 0;\n\t\t\tif (! empty($revisiones)) {\n\t\t\t\tforeach($revisiones as $revision) {\n\t\t\t\t\tif (isset($revision['error'])) {\n\t\t\t\t\t\tthrow new toba_error_def($revision['error']);\n\t\t\t\t\t}\n\t\t\t\t\tif ($max_rev < intval($revision['revision'])) {\n\t\t\t\t\t\t$max_rev = intval($revision['revision']);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t$this->manejador_interface->progreso_avanzar();\n\t\t\t$this->instancia->set_revision_proyecto($this->identificador, $max_rev);\n\t\t}\n\t\t$this->manejador_interface->progreso_fin();\n\t}", "function get_revision_stamp($obj)\n{\n\tif($obj->session->userdata('editsessionid')){\n\t\t$revisionstamp = $obj->session->userdata('editsessionid');\n\t}\n\telse\n\t{\n\t\t$revisionstamp = strtotime('now');\n\t\t$obj->session->set_userdata('editsessionid', $revisionstamp);\n\t}\n\treturn $revisionstamp;\n}", "function wp_revisions_to_keep($post)\n {\n }", "public function setta_revisione_profili($ids)\n {\n $id_da_notificare = array();\n // crea un array se solo un ID è stato passato\n if (!is_array($ids))\n {\n $ids = array($ids);\n }\n foreach ($ids as $id_profilo)\n {\n $this->db->select('id_stato_profilo')\n ->from('rrtq_profilo')\n ->where('id_profilo', $id_profilo);\n $query = $this->db->get();\n $row = $query->row(0)->id_stato_profilo;\n\n if ((int) $row < 2)\n {\n $this->db->set('id_stato_profilo', 2);\n // NEL CASO IN CUI LO STATO PASSASSE DA PUBBLICATA AD ALTRO SERIALIZZO IL CONTENUTO \n $this->load->model('qualificazione_model');\n $file_qualificazione = $this->qualificazione_model->select_qualificazione($id_profilo);\n $this->db->set('file_qualificazione', serialize($file_qualificazione));\n $this->db->where('id_profilo', $id_profilo);\n $this->db->update('rrtq_profilo');\n $id_da_notificare[] = $id_profilo;\n }\n //Quando lo stato corrente è NON PUBBLICATO e si modifica una qualificazione,\n //lo stato non cambia ma non si attiva il controolo delle modifiche ( In Revisione, etc.). \n //Per evitare che questo avvenga e gestire il processo di validazione delle modifiche\n //la versione corrente dovrebbe passare a \"In revisione\" e settare a NULL \"data_ultima_pubblicazione\"\n // Facendo così il pubblico non visualizza la qualificazione in elenco.\n }\n\n if (count($ids) > 0)\n {\n /* LOG ACTIVITY */\n $this->activity->log('revision', array('id' => implode(\",\", $ids), 'table' => 'Qualificazione'));\n /* END LOG */\n }\n /* MESSAGES NOTIFICATION SYSTEM */\n if ($this->config->item('enable_messages'))\n {\n if (count($id_da_notificare) > 0)\n {\n $this->messaggistica->invia_messaggio('setta_revisione_profili', $this->get_titoli_profilo($id_da_notificare));\n }\n }\n /* END MESSAGES */\n }", "function wp_ajax_get_revision_diffs()\n {\n }", "public function revisionOverview(LogInterface $log) {\n $account = $this->currentUser();\n $langcode = $this->languageManager()->getCurrentLanguage(LanguageInterface::TYPE_CONTENT)->getId();\n $langname = $this->languageManager()->getLanguageName($langcode);\n $languages = $log->getTranslationLanguages();\n $has_translations = (count($languages) > 1);\n $log_storage = $this->entityManager()->getStorage('log');\n $type = $log->getType();\n\n $build['#title'] = $has_translations ? $this->t('@langname revisions for %title', ['@langname' => $langname, '%title' => $log->label()]) : $this->t('Revisions for %title', ['%title' => $log->label()]);\n $header = array($this->t('Revision'), $this->t('Operations'));\n\n $revert_permission = (($account->hasPermission(\"revert $type revisions\") || $account->hasPermission('revert all revisions') || $account->hasPermission('administer logs')) && $log->access('update'));\n $delete_permission = (($account->hasPermission(\"delete $type revisions\") || $account->hasPermission('delete all revisions') || $account->hasPermission('administer logs')) && $log->access('delete'));\n\n $rows = array();\n\n $vids = $log_storage->revisionIds($log);\n\n $latest_revision = TRUE;\n\n foreach (array_reverse($vids) as $vid) {\n /** @var \\Drupal\\log\\LogInterface $revision */\n $revision = $log_storage->loadRevision($vid);\n if ($revision->hasTranslation($langcode) && $revision->getTranslation($langcode)->isRevisionTranslationAffected()) {\n $username = [\n '#theme' => 'username',\n '#account' => $revision->getRevisionAuthor(),\n ];\n\n // Use revision link to link to revisions that are not active.\n $date = $this->dateFormatter->format($revision->revision_timestamp->value, 'short');\n if ($vid != $log->getRevisionId()) {\n $link = $this->l($date, new Url('entity.log.revision', ['log' => $log->id(), 'log_revision' => $vid]));\n }\n else {\n $link = $log->link($date);\n }\n\n $row = [];\n $column = [\n 'data' => [\n '#type' => 'inline_template',\n '#template' => '{% trans %}{{ date }} by {{ username }}{% endtrans %}{% if message %}<p class=\"revision-log\">{{ message }}</p>{% endif %}',\n '#context' => [\n 'date' => $link,\n 'username' => $this->renderer->renderPlain($username),\n 'message' => ['#markup' => $revision->revision_log->value, '#allowed_tags' => Xss::getHtmlTagList()],\n ],\n ],\n ];\n // @todo Simplify once https://www.drupal.org/log/2334319 lands.\n $this->renderer->addCacheableDependency($column['data'], $username);\n $row[] = $column;\n\n if ($latest_revision) {\n $row[] = [\n 'data' => [\n '#prefix' => '<em>',\n '#markup' => $this->t('Current revision'),\n '#suffix' => '</em>',\n ],\n ];\n foreach ($row as &$current) {\n $current['class'] = ['revision-current'];\n }\n $latest_revision = FALSE;\n }\n else {\n $links = [];\n if ($revert_permission) {\n $links['revert'] = [\n 'title' => $this->t('Revert'),\n 'url' => $has_translations ?\n Url::fromRoute('log.revision_revert_translation_confirm', ['log' => $log->id(), 'log_revision' => $vid, 'langcode' => $langcode]) :\n Url::fromRoute('log.revision_revert_confirm', ['log' => $log->id(), 'log_revision' => $vid]),\n ];\n }\n\n if ($delete_permission) {\n $links['delete'] = [\n 'title' => $this->t('Delete'),\n 'url' => Url::fromRoute('log.revision_delete_confirm', ['log' => $log->id(), 'log_revision' => $vid]),\n ];\n }\n\n $row[] = [\n 'data' => [\n '#type' => 'operations',\n '#links' => $links,\n ],\n ];\n }\n\n $rows[] = $row;\n }\n }\n\n $build['log_revisions_table'] = array(\n '#theme' => 'table',\n '#rows' => $rows,\n '#header' => $header,\n '#attached' => array(\n 'library' => array('log/drupal.log.admin'),\n ),\n );\n\n return $build;\n }", "function _wp_upgrade_revisions_of_post($post, $revisions)\n {\n }", "function prueba_git ()\r\n{\r\n\t/* Aqui estaria el codigo de la funcion */\r\n\r\n}", "function wp_save_footnotes_meta($revision_id)\n {\n }", "function wp_is_post_revision($post)\n {\n }", "public function SaveArticleRevisions() {\n\t\t\ttry {\n\t\t\t\t// Update any fields for controls that have been created\n\t\t\t\tif ($this->lstArticle) $this->objArticleRevisions->ArticleId = $this->lstArticle->SelectedValue;\n\t\t\t\tif ($this->lstVisitor) $this->objArticleRevisions->VisitorId = $this->lstVisitor->SelectedValue;\n\n\t\t\t\t// Update any UniqueReverseReferences (if any) for controls that have been created for it\n\t\t\t\tif ($this->lstArticleContent) $this->objArticleRevisions->ArticleContent = ArticleContent::Load($this->lstArticleContent->SelectedValue);\n\n\t\t\t\t// Save the ArticleRevisions object\n\t\t\t\t$this->objArticleRevisions->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}", "function saveRevision($entity, $uid = NULL) {\n if (!isset($uid)) {\n $uid = $GLOBALS['user']->uid;\n }\n\n $entity->uid = $uid;\n // Update the existing revision if specified.\n if (!empty($entity->vid)) {\n drupal_write_record('fieldable_panels_panes_revision', $entity, 'vid');\n }\n else {\n // Otherwise insert a new revision. This will automatically update $entity\n // to include the vid.\n drupal_write_record('fieldable_panels_panes_revision', $entity);\n }\n }", "function wp_get_post_revisions_url($post = 0)\n {\n }", "public function getRevisions(): array;", "function wp_get_footnotes_from_revision($revision_field, $field, $revision)\n {\n }", "function insertArchivedRevision( $revision, $title ) {\n\t\t$revisionId = $revision['revid'];\n\t\t$timestamp = wfTimestamp( TS_MW, $revision['timestamp'] );\n\t\t$parentID = null;\n\t\tif ( isset( $revision['parentid'] ) ) {\n\t\t\t$parentID = $revision['parentid'];\n\t\t}\n\n\t\t# Sloppy handler for revdeletions; just fills them in with dummy text\n\t\t# and sets bitfield thingy\n\t\t$comment = '';\n\t\t$text = '';\n\t\t$revdeleted = 0;\n\t\tif ( isset( $revision['userhidden'] ) ) {\n\t\t\t$revdeleted = $revdeleted | RevisionRecord::DELETED_USER;\n\t\t\tif ( !isset( $revision['user'] ) ) {\n\t\t\t\t$revision['user'] = ''; # username removed\n\t\t\t}\n\t\t\tif ( !isset( $revision['userid'] ) ) {\n\t\t\t\t$revision['userid'] = 0;\n\t\t\t}\n\t\t}\n\t\tif ( isset( $revision['commenthidden'] ) ) {\n\t\t\t$revdeleted = $revdeleted | RevisionRecord::DELETED_COMMENT;\n\t\t}\n\t\tif ( isset( $revision['comment'] ) ) {\n\t\t\t$comment = $revision['comment'];\n\t\t}\n\t\tif ( isset( $revision['texthidden'] ) ) {\n\t\t\t$revdeleted = $revdeleted | RevisionRecord::DELETED_TEXT;\n\t\t}\n\t\tif ( isset( $revision['*'] ) ) {\n\t\t\t$text = $revision['*'];\n\t\t}\n\t\tif ( isset ( $revision['suppressed'] ) ) {\n\t\t\t$revdeleted = $revdeleted | RevisionRecord::DELETED_RESTRICTED;\n\t\t}\n\n\t\t# This can probably break if user was suppressed and we don't have permissions to view it\n\t\t$actor = $this->getActorFromUser( (int)$revision['userid'], $revision['user'] );\n\n\t\t$commentFields = $this->commentStore->insert( $this->dbw, 'ar_comment', $comment );\n\n\t\t$e = [\n\t\t\t'ar_namespace' => $title->getNamespace(),\n\t\t\t'ar_title' => $title->getDBkey(),\n\t\t\t'ar_actor' => $actor,\n\t\t\t'ar_timestamp' => $timestamp,\n\t\t\t'ar_minor_edit' => ( isset( $revision['minor'] ) ? 1 : 0 ),\n\t\t\t'ar_rev_id' => $revisionId,\n\t\t\t'ar_deleted' => $revdeleted,\n\t\t\t'ar_len' => strlen( $text ),\n\t\t\t'ar_sha1' => SlotRecord::base36Sha1( $text ),\n\t\t\t#'ar_page_id' => NULL, # Not required and unreliable from api\n\t\t\t'ar_parent_id' => $parentID,\n\t\t] + $commentFields;\n\n\t\t# Create content object\n\t\t$content = ContentHandler::makeContent( $text, $title );\n\t\t$slot = SlotRecord::newUnsaved( SlotRecord::MAIN, $content );\n\n\t\t# Insert text (blob)\n\t\t# From RevisionStore::storeContentBlob()\n\t\t$blobAddress = $this->blobStore->storeBlob(\n\t\t\t$content->serialize( $content->getDefaultFormat() )\n\t\t);\n\n\t\t# Insert content\n\t\t$this->output( \"Inserting archived revision {$revisionId}\\n\" );\n\n\t\t# From RevisionStore::insertContentRowOn()\n\t\t$contentRow = [\n\t\t\t'content_size' => $slot->getSize(),\n\t\t\t'content_sha1' => $slot->getSha1(),\n\t\t\t'content_model' => $this->contentModelStore->acquireId( $slot->getModel() ),\n\t\t\t'content_address' => $blobAddress,\n\t\t];\n\t\t$this->dbw->insert( 'content', $contentRow, __METHOD__ );\n\t\t$contentId = intval( $this->dbw->insertId() );\n\n\t\t# From RevisionStore::insertSlotRowOn()\n\t\t$slotRow = [\n\t\t\t'slot_revision_id' => $revisionId,\n\t\t\t'slot_role_id' => $this->slotRoleStore->acquireId( $slot->getRole() ),\n\t\t\t'slot_content_id' => $contentId,\n\t\t\t'slot_origin' => $revisionId,\n\t\t];\n\t\t$this->dbw->insert( 'slots', $slotRow, __METHOD__, [ 'IGNORE' ] );\n\t\tif ( $this->dbw->affectedRows() === 0 ) {\n\t\t\t$this->output( \"slot_revision_id {$revisionId} already exists in slots table; skipping\\n\" );\n\t\t\treturn false;\n\t\t}\n\n\t\t$this->dbw->insert(\n\t\t\t'archive',\n\t\t\t$e,\n\t\t\t__METHOD__,\n\t\t\t[ 'IGNORE' ] // in case of duplicates?!\n\t\t);\n\t\tif ( $this->dbw->affectedRows() === 0 ) {\n\t\t\t$this->output( \"Revision {$revisionId} already exists in archive table; skipping\\n\" );\n\t\t\treturn false;\n\t\t}\n\n\t\t# Insert tags, if any\n\t\tif ( isset( $revision['tags'] ) && count( $revision['tags'] ) > 0 ) {\n\t\t\t$this->insertTags( $revision['tags'], $revisionId, null );\n\t\t}\n\t\t$this->dbw->commit();\n\n\t\treturn true;\n\t}", "function module_set_schema_revision ($module, $revision) {\n $esc_module = mysql_real_escape_string($module);\n $esc_revision = mysql_real_escape_string($revision);\n $sql = \"SELECT `revision` FROM `module` WHERE `name`='$esc_module'\";\n $res = mysql_query($sql);\n if (!$res) { die(mysql_error()); }\n if (mysql_num_rows($res) === 0) {\n $sql = \"INSERT INTO `module` (`name`, `revision`) VALUES ('$esc_module', '$esc_revision')\";\n } else {\n $sql = \"UPDATE `module` SET `revision`='$esc_revision' WHERE `name`='$esc_module'\";\n }\n $res = mysql_query($sql);\n if (!$res) { die(mysql_error()); }\n}", "public function setRevision($rid) ;", "protected function getUllrightCurrentRevision()\n {\n // TODO: implement setting somehow in the upgrade/refresh procedure\n $path = sfConfig::get('sf_data_dir') .\n DIRECTORY_SEPARATOR .\n 'ullright_svn_revision.txt';\n \n if (file_exists($path))\n {\n return file_get_contents($path);\n } \n else\n {\n $command = 'svn info plugins/ullCorePlugin';\n $output = reset($this->getFilesystem()->execute($command));\n preg_match('#Revision: ([\\d]+)#', $output, $matches);\n \n return $matches[1];\n }\n }", "function acf_save_post_revision( $post_id = 0 ) {\n\n\t// get latest revision\n\t$revision = acf_get_post_latest_revision( $post_id );\n\n\t// save\n\tif ( $revision ) {\n\n\t\tacf_copy_postmeta( $post_id, $revision->ID );\n\n\t}\n\n}", "function citrace_pre_edition($tableau){\n\tstatic $actions = array();\n\tif (isset($tableau['args']['table'])){\n\t\t$table = $tableau['args']['table'];\n\t\tif ($actions AND isset($tableau['args']['action']) AND in_array($table.'/'.$tableau['args']['action'],$actions)) \n\t\t\treturn $tableau;\n\t\telse\n\t\t\t$actions[] = $table.'/'.$tableau['args']['action'];\n\t}\n\n\t// changement de rubrique pour un article publie\n\tif (isset($tableau['args']['action']) AND $tableau['args']['action']=='instituer' \n\t AND isset($tableau['args']['table']) AND $tableau['args']['table']=='spip_articles') {\n\t \t$id_article = intval($tableau['args']['id_objet']);\n\t\t if ($id_article>0) {\n\t\t\t\tinclude_spip('inc/texte');\n\t\t\t\t$row = sql_fetsel('*', 'spip_articles', 'id_article='.$id_article);\n\t\t\t\tif ($row){\n\t\t\t\t\t$old_rubrique = $row['id_rubrique'];\n\t\t\t\t\tif ($row['statut']=='publie'){\n\t\t\t\t\t\t$new_rubrique = (isset($tableau['data']['id_rubrique']) ? intval($tableau['data']['id_rubrique']) : 0);\n\t\t\n\t\t\t \t\tif ($new_rubrique>=1 AND $new_rubrique!=$old_rubrique){\n\t\t\t\t\t\t\t$commentaire = '('.interdire_scripts(supprimer_numero($row['titre'])).')'.\" - id_rubrique_new:\".$new_rubrique.\" - id_rubrique_old:\".$old_rubrique;\n\t\t\t\t\t\t\t$citrace = charger_fonction('citrace', 'inc');\n\t\t\t\t\t\t\t$citrace('article', $id_article, 'changement de rubrique pour article', $commentaire, $new_rubrique);\n\t\t\t \t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n }\t\n\n\t// changement de statut ou de l'email d'un auteur\n\tif (isset($tableau['args']['action']) \n\t AND isset($tableau['args']['table']) AND $tableau['args']['table']=='spip_auteurs') {\n\n \t$id_auteur = intval($tableau['args']['id_objet']);\n\t if ($id_auteur>0) {\n\t\t\tinclude_spip('inc/texte');\n\t\t\t$row = sql_fetsel('*', 'spip_auteurs', 'id_auteur='.$id_auteur);\n\t\t\tif ($row){\n\t\t\t\t// changement de statut d'un auteur\n\t\t\t\tif ($tableau['args']['action']=='instituer'){\n\t\t\t\t\t$old_statut = $row['statut'];\n\t\t\t\t\t$new_statut = (isset($tableau['data']['statut']) ? $tableau['data']['statut'] : '');\n\t\t\t\t\t$old_webmestre = $row['webmestre'];\n\t\t\t\t\t$new_webmestre = (isset($tableau['data']['webmestre']) ? $tableau['data']['webmestre'] : '');\n\t\n\t\t \t\tif ($new_statut AND $new_statut!=$old_statut){\n\t\t\t\t\t\t$commentaire = interdire_scripts(supprimer_numero($row['nom']))\n\t\t\t\t\t\t.' ('.interdire_scripts($row['email']).')'\n\t\t\t\t\t\t.\" - statut_new:\".$new_statut.\" - statut_old:\".$old_statut \n\t\t\t\t\t\t.\" - webmestre_new:\".$new_webmestre.\" - webmestre_old:\".$old_webmestre;\n\t\t\t\t\t\t$citrace = charger_fonction('citrace', 'inc');\n\t\t\t\t\t\t$citrace('auteur', $id_auteur, \"changement de statut pour l'auteur\", $commentaire);\n\t\t \t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// modifier l'email d'un auteur\n\t\t\t\tif ($tableau['args']['action']=='modifier'){\n\t\t\t\t\t$old_email = $row['email'];\n\t\t\t\t\t$new_email = (isset($tableau['data']['email']) ? $tableau['data']['email'] : '');\n\t\n\t\t \t\tif ($new_email!=$old_email){\n\t\t\t\t\t\t$commentaire = '('.interdire_scripts(supprimer_numero($row['nom'])).')'\n\t\t\t\t\t\t.\" - email_new:\".$new_email.\" - email_old:\".$old_email; \n\t\t\t\t\t\t$citrace = charger_fonction('citrace', 'inc');\n\t\t\t\t\t\t$citrace('auteur', $id_auteur, \"changement d'email pour l'auteur\", $commentaire);\n\t\t \t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n }\t\n \n\t// changement de date de publication (ou de depublication) d'un article\n\tif (isset($tableau['args']['action']) \n\t AND isset($tableau['args']['table']) AND $tableau['args']['table']=='spip_articles') {\n\t \t$id_article = intval($tableau['args']['id_objet']);\n\t\t if ($id_article>0) {\n\t\t \t// lors du changement de statut, la date de publication est tracee par le pipeline post_edition\n\t\t \t// aussi ne pas doublonner\n\t \t\tif (!isset($tableau['data']['statut']) OR !isset($tableau['args']['statut_ancien']) OR $tableau['data']['statut'] == $tableau['args']['statut_ancien']){\n\t\t\t\t\tinclude_spip('inc/texte');\n\t\t\t\t\t$row = sql_fetsel('*', 'spip_articles', 'id_article='.$id_article);\n\t\t\t\t\t$date_old = $row['date'];\n\t\t\t\t\t$id_rubrique = $row['id_rubrique'];\n\t\t\t\t\n\t\t\t\t\tif (isset($tableau['data']['date']) AND $date_old != $tableau['data']['date']){\n\t\t\t\t\t\t$article_msg = '('.interdire_scripts(supprimer_numero($row['titre'])).')'.\" - id_rubrique:\".$id_rubrique;\n\t\t\t\t\t\t$article_msg .= \" - date_publication:\".$tableau['data']['date'].\" - date_publication_old:\".$date_old.\" (meta post_dates :\".$GLOBALS['meta'][\"post_dates\"].\")\";\n\t\t\t\t\t\t$citrace = charger_fonction('citrace', 'inc');\n\t\t\t\t\t\t$citrace('article', $id_article, 'modifier_date', $article_msg, $id_rubrique);\t\t\t\t\t\n\t\t\t\t\t}\n\t \t\t}\n\t\t }\n }\n\n\treturn $tableau;\n}", "function wp_delete_post_revision($revision)\n {\n }", "function restoreRevision($section, $revision) {\n if($this->mayI(EDIT)) {\n global $DB;\n if(($restore = $DB->content->getCell(array('id' => $this->ID, 'section' => $section, 'revision' => $revision, 'language' => $this->loadedLanguage), 'content')) !== false) {\n $this->saveContent(array($section => $restore));\n Log::write('Revision '.$section.'::'.strftime('%c', $revision).' restored');\n return true;\n }\n }\n return false;\n }", "public function revisionOverview(EventContentInterface $event_content) {\n $account = $this->currentUser();\n $langcode = $event_content->language()->getId();\n $langname = $event_content->language()->getName();\n $languages = $event_content->getTranslationLanguages();\n $has_translations = (count($languages) > 1);\n $event_content_storage = $this->entityManager()->getStorage('event_content');\n\n $build['#title'] = $has_translations ? $this->t('@langname revisions for %title', ['@langname' => $langname, '%title' => $event_content->label()]) : $this->t('Revisions for %title', ['%title' => $event_content->label()]);\n $header = [$this->t('Revision'), $this->t('Operations')];\n\n $revert_permission = (($account->hasPermission(\"revert all event content revisions\") || $account->hasPermission('administer event content entities')));\n $delete_permission = (($account->hasPermission(\"delete all event content revisions\") || $account->hasPermission('administer event content entities')));\n\n $rows = [];\n\n $vids = $event_content_storage->revisionIds($event_content);\n\n $latest_revision = TRUE;\n\n foreach (array_reverse($vids) as $vid) {\n /** @var \\Drupal\\event_content\\EventContentInterface $revision */\n $revision = $event_content_storage->loadRevision($vid);\n // Only show revisions that are affected by the language that is being\n // displayed.\n if ($revision->hasTranslation($langcode) && $revision->getTranslation($langcode)->isRevisionTranslationAffected()) {\n $username = [\n '#theme' => 'username',\n '#account' => $revision->getRevisionUser(),\n ];\n\n // Use revision link to link to revisions that are not active.\n $date = \\Drupal::service('date.formatter')->format($revision->getRevisionCreationTime(), 'short');\n if ($vid != $event_content->getRevisionId()) {\n $link = $this->l($date, new Url('entity.event_content.revision', ['event_content' => $event_content->id(), 'event_content_revision' => $vid]));\n }\n else {\n $link = $event_content->link($date);\n }\n\n $row = [];\n $column = [\n 'data' => [\n '#type' => 'inline_template',\n '#template' => '{% trans %}{{ date }} by {{ username }}{% endtrans %}{% if message %}<p class=\"revision-log\">{{ message }}</p>{% endif %}',\n '#context' => [\n 'date' => $link,\n 'username' => \\Drupal::service('renderer')->renderPlain($username),\n 'message' => ['#markup' => $revision->getRevisionLogMessage(), '#allowed_tags' => Xss::getHtmlTagList()],\n ],\n ],\n ];\n $row[] = $column;\n\n if ($latest_revision) {\n $row[] = [\n 'data' => [\n '#prefix' => '<em>',\n '#markup' => $this->t('Current revision'),\n '#suffix' => '</em>',\n ],\n ];\n foreach ($row as &$current) {\n $current['class'] = ['revision-current'];\n }\n $latest_revision = FALSE;\n }\n else {\n $links = [];\n if ($revert_permission) {\n $links['revert'] = [\n 'title' => $this->t('Revert'),\n 'url' => $has_translations ?\n Url::fromRoute('entity.event_content.translation_revert', ['event_content' => $event_content->id(), 'event_content_revision' => $vid, 'langcode' => $langcode]) :\n Url::fromRoute('entity.event_content.revision_revert', ['event_content' => $event_content->id(), 'event_content_revision' => $vid]),\n ];\n }\n\n if ($delete_permission) {\n $links['delete'] = [\n 'title' => $this->t('Delete'),\n 'url' => Url::fromRoute('entity.event_content.revision_delete', ['event_content' => $event_content->id(), 'event_content_revision' => $vid]),\n ];\n }\n\n $row[] = [\n 'data' => [\n '#type' => 'operations',\n '#links' => $links,\n ],\n ];\n }\n\n $rows[] = $row;\n }\n }\n\n $build['event_content_revisions_table'] = [\n '#theme' => 'table',\n '#rows' => $rows,\n '#header' => $header,\n ];\n\n return $build;\n }", "public function edit() {\n\t $this->id = WaxUrl::get(\"id\");\n\t\tif(!$this->id) $this->id = $this->route_array[0];\n\n\t\tif(($lang_id = Request::get(\"lang\")) && (!$this->languages[$lang_id])){\n\t Session::add_message(\"That language isn't allowed on your system. Here's the {$this->languages[0]} version instead.\");\n\t $this->redirect_to(\"/admin/\".$this->module_name.\"/edit/$this->id\");\n }\n\n $master = new $this->model_class($this->id);\n if($master->status == 4) $this->redirect_to(\"/admin/\".$this->module_name.\"/edit/$master->preview_master_id\"); //this isn't a master, jump to the right url\n if($master->language) $this->redirect_to(\"/admin/\".$this->module_name.\"/edit/$master->preview_master_id?lang=\".$master->language);\n \n if($lang_id) $master = $this->get_language_model($master, $lang_id);\n\n\t $preview = new $this->model_class;\n\t //preview revision - create a copy of the content if needed or use the existing copy\n\t\tif(($master->status == 1) || ($master->status == 6)){\n\t\t if(!($preview = $preview->filter(array(\"preview_master_id\" => $master->primval, \"status\" => 4))->first())){\n\t\t //if a preview entry doesn't exist create one\n \t\t foreach($master->columns as $col => $params)\n \t\t if($master->$col) $copy_attributes[$col] = $master->$col;\n \t\t $copy_attributes = array_diff_key($copy_attributes,array($this->model->primary_key => false)); //take out ID\n \t $preview = new $this->model_class;\n\t\t\t\t$preview->status = 4;\n \t $preview->save();\n \t\t $preview->set_attributes($copy_attributes);\n \t\t $preview->status = 4;\n \t\t $preview->url = $master->url;\n \t\t $preview->master = $master->primval;\n \t\t $preview->save();\n\t }\n $this->model = $preview;\n\t\t}else{\n\t\t $this->model = $master;\n\t\t}\n\t\t\n\t\tif($this->model->is_posted()){\n \t\tif($_POST['publish']){\n \t\t if(($master->status != 1) && ($master->status != 6)){\n \t\t $master->set_attributes($_POST[$master->table]);\n \t\t if($master->status == 5) $master->status = 6;\n \t\t else $master->status = 1;\n \t\t $master->save();\n\t }else{\n\t $this->update_master($preview, $master);\n\t if($preview->primval) $preview->delete();\n\t }\n\t\t Session::add_message($this->display_name.\" \".\"Successfully Published\");\n\t\t $this->redirect_to(\"/admin/$this->module_name/\");\n \t\t}elseif($_POST['close']){\n\t\t //delete the preview if it has no changes from the master\n\t\t if($preview->equals($master) && $preview->primval) $preview->delete();\n \t\t $this->redirect_to(Session::get(\"list_refer\"));\n \t }else{ //save button is default post, as it's the least destructive thing to do\n \t if($preview->primval && (($_POST[$this->model->table]['status'] == 0) || ($_POST[$this->model->table]['status'] == 5))){\n $this->update_master($preview, $master);\n if($preview->primval) $preview->delete();\n $this->save($master, \"/admin/$this->module_name/edit/\".$master->id.\"/\");\n \t }else $this->save($this->model, \"/admin/$this->module_name/edit/\".$master->id.\"/\");\n \t }\n }\n\n\t\t//images\n if(!$this->attached_images = $this->model->images) $this->attached_images=array();\n \n\t\t//categories assocaited\n\t\tif(!$this->attached_categories = $this->model->categories) $this->attached_categories= array();\n\t\t$cat = new CmsCategory;\n\t\t//all categories\n\t\tif(!$this->all_categories = $cat->order(\"name ASC\")->all() ) $this->all_categories=array();\n\t\t$this->image_model = new WildfireFile;\n\t\t//partials\n\t\t$this->image_partial = $this->render_partial(\"page_images\");\n\t\t$this->cat_partial = $this->render_partial(\"list_categories\");\n\t\t$this->cat_list = $this->render_partial(\"cat_list\");\n\t\t$this->category_partial = $this->render_partial(\"apply_categories\");\n\t\t$files = new WildfireFile();\n\t\t$this->all_links = $files->find_all_files();\n\t\t$this->link_partial = $this->render_partial(\"apply_links\");\n\t\t$this->extra_content_partial = $this->render_partial(\"extra_content\");\n\t\t$this->flash_files = $files->flash_files();\n\t\t$this->video_partial = $this->render_partial(\"apply_video\");\n\t\t$this->table_partial = $this->render_partial(\"wysi_tables\");\n\t\t$this->form = $this->render_partial(\"form\");\n\t\t\n\t}", "function wp_get_revision_ui_diff($post, $compare_from, $compare_to)\n {\n }", "public function getRevisionCreationTime();", "public function getRevisionCreationTime();", "public function getRevisionCreationTime();", "public function getRevisionCreationTime();", "public function getRevisionCreationTime();", "function deletedMissionVersions($quote_id,$version=NULL,$type=NULL)\n\t{\t\t\t\t\t\t\t\n\t\t$quoteMission_obj=new Ep_Quote_QuoteMissions();\n\t\t$deletedMissionVersions=$quoteMission_obj->getDeletedMissionVersionDetails($quote_id,$version,$type);\n\t\tif(!$deletedMissionVersions)\n\t\t\t$deletedMissionVersions=array();\n\n\t\t//getting mission details showing current version deleted missions of final stage too\n\t\tif(!$type)\n\t\t{\n\t\t\t$searchParameters['quote_id']=$quote_id;\n\t\t\t$searchParameters['include_final']='no';\n\n\t\t\t$quoteMission_obj=new Ep_Quote_QuoteMissions();\n\t\t\t$missonDetails=$quoteMission_obj->getMissionDetails($searchParameters);\n\t\t\tif(!$missonDetails)\n\t\t\t\t$missonDetails=array();\n\n\t\t\t$deletedMissionVersions=array_merge($deletedMissionVersions,$missonDetails);\n\t\t}\t\n\n\n\t\t//echo \"<pre>\";print_r($deletedMissionVersions);exit;\n\n\t\tif($deletedMissionVersions && count($deletedMissionVersions)>0)\t\t\n\t\t{\n\t\t\t$d=0;\n\t\t\tforeach($deletedMissionVersions as $dmission)\n\t\t\t{\n\t\t\t\t$deletedMissionVersions[$d]['product_name']=$this->product_array[$dmission['product']];\t\t\t\n\t\t\t\t$deletedMissionVersions[$d]['language_source_name']=$this->getLanguageName($dmission['language_source']);\n\t\t\t\t$deletedMissionVersions[$d]['product_type_name']=$this->producttype_array[$dmission['product_type']];\n\t\t\t\tif($mission['language_dest'])\n\t\t\t\t\t$deletedMissionVersions[$d]['language_dest_name']=$this->getLanguageName($dmission['language_dest']);\n\n\t\t\t\t\n\n\t\t\t\t$deletedMissionVersions[$d]['comment_time']=time_ago($dmission['created_at']);\n\n\t\t\t\t$prodMissionObj=new Ep_Quote_ProdMissions();\n\t\t\t\t\n\t\t\t\t$prodMissionDetails=$prodMissionObj->getProdVersionCostDetails($dmission['identifier'],$version);\n\n\t\t\t\tif(!$prodMissionDetails)\n\t\t\t\t{\n\t\t\t\t\t$prodParams['quote_mission_id']=$dmission['identifier'];\n\t\t\t\t\t$prodMissionDetails=$prodMissionObj->getProdMissionDetails($prodParams);\n\t\t\t\t}\n\t\t\t\t\n\n\t\t\t\tif($prodMissionDetails)\n\t\t\t\t{\t\t\t\t\t\n\t\t\t\t\t$internalcost_details='';\n\t\t\t\t\t$staff_time=array();\n\n\t\t\t\t\tforeach($prodMissionDetails as $prodMission)\n\t\t\t\t\t{\t\t\t\t\t\t\n\t\t\t\t\t\t$internalcost_details.=$this->seo_product_array[$prodMission['product']]. \" : \".zero_cut($prodMission['cost'],2).\" &\".$prodMission['currency'].\";<br>\";\n\t\t\t\t\t}\n\t\t\t\t\t$deletedMissionVersions[$d]['internalcost_details']=$internalcost_details;\n\n\t\t\t\t\t$deletedMissionVersions[$d]['prod_mission_details']=$prodMissionDetails;\t\n\t\t\t\t}\n\n\t\t\t\tif($deletedMissionVersions[$d]['turnover']<=0)\t\t\n\t\t\t\t\t$deletedMissionVersions[$d]['turnover']=($dmission['volume']*$dmission['unit_price']);\n\n\t\t\t\t$d++;\n\t\t\t}\n\t\t}\n\n\t\treturn $deletedMissionVersions;\n\t}", "public function desbanearDeLasRevisiones() {\n\t\tglobal $wpdb;\n\t\treturn $wpdb->query($wpdb->prepare('\n\t\t\t\tUPDATE wp_revisiones_ban\n\t\t\t\tSET status = %d\n\t\t\t\tWHERE user_id = %d', self::DESBANEADO, $this->user_id));\n\t}", "public function afterVersionedSave()\n {\n if ($this->wasDirty && static::$createRevisionOnSave) {\n // save a copy to history table\n $recordValues = $this->_prepareRecordValues();\n $set = static::_mapValuesToSet($recordValues);\n DB::nonQuery((new Insert())->setTable(static::getHistoryTable())->set($set), null, [static::class,'handleError']);\n }\n }", "public function dataRevisionsTable();", "public function jurnal_umum_rev()\n\t{\n\t\t$data['container'] = 'transaction/jurnal_umum_rev';\n\t\t$data['current_date'] = $this->format_date_detail($this->current_date(),'id',false,'/');\n\t\t$this->load->view('core',$data);\n\t}", "public function getRevision()\n {\n return $this->_rev;\n }", "public function getRevisionID()\n {\n return $this->revisionid;\n }", "function &_checkAndReturnRevision(&$revisions) {\n\t\tassert(count($revisions) <= 1);\n\t\tif (empty($revisions)) {\n\t\t\t$nullVar = null;\n\t\t\treturn $nullVar;\n\t\t} else {\n\t\t\t$revision =& array_pop($revisions);\n\t\t\tassert(is_a($revision, 'SubmissionFile'));\n\t\t\treturn $revision;\n\t\t}\n\t}", "function citrace_post_edition($tableau){\n\t// contourner le cas d'un double appel du pipeline sur la meme table avec la meme action\n\tstatic $actions = array();\n\tif (isset($tableau['args']['table'])){\n\t\t$table = $tableau['args']['table'];\n\t\tif ($actions AND isset($tableau['args']['action']) AND in_array($table.'/'.$tableau['args']['action'],$actions)) \n\t\t\treturn $tableau;\n\t\telse\n\t\t\t$actions[] = $table.'/'.$tableau['args']['action'];\n\t}\n\t\n\t// action sur un article\n\tif (isset($tableau['args']['action']) \n\t AND isset($tableau['args']['table']) AND $tableau['args']['table']=='spip_articles') {\n\t \t$id_article = intval($tableau['args']['id_objet']);\n\t\t if ($id_article>0) {\n\t\t\t\tinclude_spip('inc/texte');\n\t\t\t\t$row = sql_fetsel('*', 'spip_articles', 'id_article='.$id_article);\n\t\t\t\t$id_rubrique = $row['id_rubrique'];\n\t\t\t\t$article_msg = '('.interdire_scripts(supprimer_numero($row['titre'])).')'.\" - id_rubrique:\".$id_rubrique;\n\n\t\t\t\t$citrace = charger_fonction('citrace', 'inc');\n\t\t\t\t\n\t\t\t\t// instituer un article\n\t\t\t\tif ($tableau['args']['action']=='instituer' AND isset($tableau['args']['statut_ancien'])){\n\t\t \t\tif ($row['statut'] != $tableau['args']['statut_ancien']){\n\t\t\t\t\t\t$article_msg .= \" - statut_new:\".$row['statut'].\" - statut_old:\".$tableau['args']['statut_ancien'].\" - date_publication:\".$row['date'].\" (meta post_dates :\".$GLOBALS['meta'][\"post_dates\"].\")\";\n\t\t\t\t\t\t$action = \"changement de statut de l'article\";\n\t\t\t\t\t\t\n\t\t\t\t\t\t// publication d'un article\n\t\t\t \t\tif ($row['statut'] == 'publie')\n\t\t\t\t\t\t\t$action = \"publication article\";\n\t\t\t\t\t\t// depublication d'un article\n\t\t\t \t\telseif ($tableau['args']['statut_ancien'] == 'publie')\n\t\t\t\t\t\t\t$action = \"depublication article\";\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t// mise a la poubelle d'un article\n\t\t\t \t\tif ($row['statut'] == 'poubelle')\n\t\t\t\t\t\t\t$action = \"poubelle article\";\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t$citrace('article', $id_article, $action, $article_msg, $id_rubrique);\n\t\t \t\t}\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t// modifier un article\n\t\t\t\telseif ($tableau['args']['action']=='modifier'){\n\t\t\t\t\t// uniquement pour les articles publies\n\t\t \t\tif ($row['statut'] == 'publie')\n\t\t\t\t\t\t$citrace('article', $id_article, 'modification article', $article_msg, $id_rubrique);\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n }\t\n\n\t// action sur une rubrique\n\tif (isset($tableau['args']['action']) \n\t AND isset($tableau['args']['table']) AND $tableau['args']['table']=='spip_rubriques') {\n\t \t$id_rubrique = intval($tableau['args']['id_objet']);\n\t\t if ($id_rubrique>0) {\n\t\t\t\tinclude_spip('inc/texte');\n\t\t\t\t$row = sql_fetsel('*', 'spip_rubriques', 'id_rubrique='.$id_rubrique);\n\t\t\t\t$rubrique_msg = '('.interdire_scripts(supprimer_numero($row['titre'])).')';\n\t\t\t\t\n\t\t\t\t// modifier un rubrique\n\t\t\t\tif ($tableau['args']['action']=='modifier'){\n\t\t\t\t\t// uniquement pour les rubriques publies\n\t\t \t\tif ($row['statut'] == 'publie'){\n\t\t\t\t\t\t$citrace = charger_fonction('citrace', 'inc');\n\t\t\t\t\t\t$citrace('rubrique', $id_rubrique, 'modification rubrique', $rubrique_msg, $id_rubrique);\n\t\t \t\t}\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n }\t\n \n // action sur un document ou une image\n\tif (isset($tableau['args']['operation']) \n\t\tAND ((isset($tableau['args']['table']) AND $tableau['args']['table']=='spip_documents') \n\t\t\tOR (isset($tableau['args']['table_objet']) AND $tableau['args']['table_objet']=='documents'))) {\n\t\t$id_document = intval($tableau['args']['id_objet']);\n\t\tif ($id_document>0) {\n\t\t\t$row = sql_fetsel('*', 'spip_documents', 'id_document='.$id_document);\n\t\t\t$document_msg = '('.$row['fichier'].')';\n\n\t\t // ajout ou remplacement de document ou d'image\n\t\t\tif ($tableau['args']['operation']=='ajouter_document'){\n\t\t\t\t\t\t\t\n\t\t\t\t// le pipeline n'indique pas si c'est un remplacement, aussi il faut indiquer date et maj\n\t\t\t\t$commentaire = $document_msg.\" - champ date:\".$row['date'].\" - champ maj:\".$row['maj'];\n\t\n\t\t\t\t// le pipeline ne passe pas le lien, aussi il faut les indiquer\n\t\t\t\t$commentaire .= \" - liens :\";\n\t\t\t\t$id_rubrique = '';\n\t\t\t\t$res = sql_select('*', 'spip_documents_liens', 'id_document='.$id_document);\n\t\t\t\twhile ($row = sql_fetch($res)){\n\t\t\t\t\t$commentaire .= \" \".$row['objet'].$row['id_objet'];\n\t\t\t\t\tif (!$id_rubrique)\n\t\t\t\t\t\t$id_rubrique = citrace_rubrique_de_objet($row['objet'], $row['id_objet']);\n\t\t\t\t}\n\n\t\t\t\t$citrace = charger_fonction('citrace', 'inc');\n\t\t\t\t$citrace('document', $id_document, 'ajouter document', $commentaire, $id_rubrique);\n\t\t\t}\n\t\t\t\n\t\t // delier un document ou une image\n\t\t\tif ($tableau['args']['operation']=='delier_document'){\n\t\t\t\tif (isset($tableau['args']['objet']) AND isset($tableau['args']['id'])) {\n\t\t\t\t\t$commentaire = $document_msg.\" - lien : \".$tableau['args']['objet'].$tableau['args']['id'];\n\t\t\t\t\t$id_rubrique = citrace_rubrique_de_objet($tableau['args']['objet'], $tableau['args']['id']);\n\t\t\t\t\t$citrace = charger_fonction('citrace', 'inc');\n\t\t\t\t\t$citrace('document', $id_document, 'delier document', $commentaire, $id_rubrique);\n\t\t\t\t}\n\t\t\t}\n\n\t\t // supprimer un document ou une image\n\t\t\tif ($tableau['args']['operation']=='supprimer_document'){\n\t\t\t\t$commentaire = $id_document;\n\t\t\t\t$citrace = charger_fonction('citrace', 'inc');\n\t\t\t\t$citrace('document', $id_document, 'supprimer document', $commentaire);\n\t\t\t}\n\t\t}\n\t}\n\n\t// action sur un forum\n\tif (isset($tableau['args']['action']) AND in_array($tableau['args']['action'], array('instituer','modifier'))\n\t AND isset($tableau['args']['table']) AND $tableau['args']['table']=='spip_forum') {\n\n \t$id_forum = intval($tableau['args']['id_objet']);\n\t if ($id_forum>0) {\n\t\t\t$row = sql_fetsel('*', 'spip_forum', 'id_forum='.$id_forum);\n\n\t\t\t// forum public uniquement\n\t\t\tif (substr($row['statut'],0,3)!='pri') {\t\t\t\t\t\t\t\t\n\t\t\t\t$commentaire = 'statut:'.$row['statut'];\n\t\t\t\t$f_objet = '';\n\t\t\t\t$f_id_objet = '';\n\t\t\t\t\n\t\t\t\tif (spip_version()>=3) {\n\t\t\t\t\t$f_objet = $row['objet'];\n\t\t\t\t\t$f_id_objet = $row['id_objet'];\n\t\t\t\t} else {\n\t\t\t\t\tif (intval($row['id_article'])>0){\n\t\t\t\t\t\t$f_objet = 'article';\n\t\t\t\t\t\t$f_id_objet = $row['id_article'];\n\t\t\t\t\t} elseif (intval($row['id_rubrique'])>0){\n\t\t\t\t\t\t$f_objet = 'rubrique';\n\t\t\t\t\t\t$f_id_objet = $row['id_rubrique'];\n\t\t\t\t\t} elseif (intval($row['id_breve'])>0){\n\t\t\t\t\t\t$f_objet = 'breve';\n\t\t\t\t\t\t$f_id_objet = $row['id_breve'];\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t$accepter_forum = $GLOBALS['meta'][\"forums_publics\"];\n\t\t\t\tif ($f_objet=='article'){\n\t\t\t\t\t$art_accepter_forum = sql_getfetsel('accepter_forum', 'spip_articles', \"id_article = \". intval($f_id_objet));\n\t\t\t\t\tif ($art_accepter_forum)\n\t\t\t\t\t\t$accepter_forum = $art_accepter_forum;\n\t\t\t\t}\n\n\t\t\t\t$commentaire .= \" - lien: \".$f_objet.$f_id_objet.\" (accepter_forum: \".$accepter_forum.\")\";\n\n\t\t\t\t$id_rubrique = citrace_rubrique_de_objet($f_objet, $f_id_objet);\n\t\t\t\t\n\t\t\t\t$citrace = charger_fonction('citrace', 'inc');\n\t\t\t\t$citrace('forum', $id_forum, ($row['statut']=='publie' ? 'publication ' : 'depublication').'forum', $commentaire, $id_rubrique);\n\t\t\t}\n\t\t}\n }\t\n\t\n\treturn $tableau;\n}", "public function getRevisionId() {\n return $this->revisionId;\n }", "public function testRevisionTranslation() {\n ConfigurableLanguage::createFromLangcode('fr')->save();\n\n /** @var \\Drupal\\node\\NodeInterface $node */\n $node = Node::create([\n 'type' => $this->createContentType()->id(),\n 'title' => 'Default 1',\n ]);\n $node->addTranslation('fr', [\n 'title' => 'French 1',\n ]);\n $node->save();\n $node->setNewRevision();\n $node->setTitle('Default 2');\n $node->getTranslation('fr')->setTitle('French 2');\n $node->save();\n\n $migration = [\n 'source' => [\n 'plugin' => 'embedded_data',\n 'data_rows' => [\n [\n 'nid' => $node->id(),\n 'vid' => $node->getRevisionId(),\n 'langcode' => 'fr',\n 'title' => 'Titre nouveau, tabarnak!',\n ],\n ],\n 'ids' => [\n 'nid' => [\n 'type' => 'integer',\n ],\n 'vid' => [\n 'type' => 'integer',\n ],\n 'langcode' => [\n 'type' => 'string',\n ],\n ],\n ],\n 'process' => [\n 'nid' => 'nid',\n 'vid' => 'vid',\n 'langcode' => 'langcode',\n 'title' => 'title',\n ],\n 'destination' => [\n 'plugin' => 'entity_revision:node',\n 'translations' => TRUE,\n ],\n ];\n\n /** @var \\Drupal\\migrate\\Plugin\\MigrationInterface $migration */\n $migration = $this->container\n ->get('plugin.manager.migration')\n ->createStubMigration($migration);\n\n $this->executeMigration($migration);\n\n // The entity_revision destination uses the revision ID and langcode as its\n // keys (the langcode is only used if the destination is configured for\n // translation), so we should be able to look up the source IDs by revision\n // ID and langcode.\n $source_ids = $migration->getIdMap()->lookupSourceID([\n 'vid' => $node->getRevisionId(),\n 'langcode' => 'fr',\n ]);\n $this->assertNotEmpty($source_ids);\n $this->assertSame($node->id(), $source_ids['nid']);\n $this->assertSame($node->getRevisionId(), $source_ids['vid']);\n $this->assertSame('fr', $source_ids['langcode']);\n\n // Confirm the french revision was used in the migration, instead of the\n // default revision.\n /** @var \\Drupal\\Core\\Entity\\EntityTypeManagerInterface $entity_type_manager */\n $entity_type_manager = \\Drupal::entityTypeManager();\n $revision = $entity_type_manager->getStorage('node')->loadRevision(1);\n $this->assertSame('Default 1', $revision->label());\n $this->assertSame('French 1', $revision->getTranslation('fr')->label());\n $revision = $entity_type_manager->getStorage('node')->loadRevision(2);\n $this->assertSame('Default 2', $revision->label());\n $this->assertSame('Titre nouveau, tabarnak!', $revision->getTranslation('fr')->label());\n }", "public function add() {\r\n\t\t\r\n\t\t$res['success'] = true;\r\n\t\t$data['nombre'] = $this->data['Version']['file']['name'];\r\n\t\t$data['tmp_name'] = $this->data['Version']['file']['tmp_name'];\r\n\t\t$data['size'] = $this->data['Version']['file']['size'];\r\n\t\t$data = Sanitize::clean($data);\r\n\t\t$data['type'] = Sanitize::escape($this->data['Version']['file']['type']);\r\n\t\t$data['archivo_id'] = Sanitize::escape($this->data['Version']['archivo_id']);\r\n\t\t$data['usuario_id'] = Sanitize::escape($this->Session->read('usuario_id'));\r\n\t\t\r\n\t\t#Verificar Permisos\r\n\t\tif($this->Archivo->verificarPermiso($data['archivo_id'], $this->Session->read('usuario_id'), 'write') ) {\r\n\t\t\t#Verificación el tipo de archivo\r\n\t\t\t$this->Archivo->unbind();\r\n\t\t\t$this->Archivo->unbindModel(array( 'hasMany' => array('Permiso') ) );\t\t\t\r\n\t\t\t$archivo = $this->Archivo->findById($data['archivo_id']);\r\n\t\t\t\r\n\t\t\t$f = new File($data['nombre']);\r\n\t\t\t$ext1 = $f->ext();\r\n\t\t\t$f = new File($archivo['Archivo']['nombre']);\r\n\t\t\t$ext2 = $f->ext();\r\n\t\t\t\r\n\t\t\tif(true || $archivo['Archivo']['type']==$data['type'] && $ext1==$ext2) {\r\n\t\t\t\t\r\n\t\t\t\t$this->Version->begin();\r\n\t\t\t\t$save = true;\r\n\t\t\t\t$num = $this->Version->find('count', array('conditions' => array('Version.archivo_id' => $archivo['Archivo']['id']) ) );\r\n\t\t\t\t\r\n\t\t\t\tif(!$this->Version->updateAll(array('Version.ultima' => 0), array('Version.archivo_id' => $archivo['Archivo']['id'] ) ) ) {\r\n\t\t\t\t\t$save = false;\r\n\t\t\t\t}\r\n\t\t\t\t$data['numero'] = $num+1;\r\n\t\t\t\tif(!$this->Version->save($data)) {\r\n\t\t\t\t\t$save = false;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif($save) {\r\n\t\t\t\t\t$this->Version->commit();\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$res['success'] = false;\r\n\t\t\t\t\t$this->Version->rollback();\r\n\t\t\t\t\t$res['error'] = 'No se pudo guardar, intente de nuevo';\r\n\t\t\t\t}\r\n\t\t\t}else{\r\n\t\t\t\t$res['success'] = false;\r\n\t\t\t\t$res['error'] = 'Debe subir un archivo del mismo tipo';\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}else{\r\n\t\t\t$this->log('No pasa nada');\r\n\t\t\t$res['success'] = false;\r\n\t\t\t$res['error'] = 'Usted no tiene permiso de escritura';\r\n\t\t}\r\n\t\t$this->layout = 'ajax';\r\n\t\t$this->set(compact('res'));\r\n\t\t\r\n\t\t$this->render('../pages/json');\r\n\t}", "public function revisionOverview(PrintArticleInterface $print_article) {\n $account = $this->currentUser();\n $langcode = $print_article->language()->getId();\n $langname = $print_article->language()->getName();\n $languages = $print_article->getTranslationLanguages();\n $has_translations = (count($languages) > 1);\n $print_article_storage = $this->entityManager()\n ->getStorage('print_article');\n\n $build['#title'] = $has_translations ? $this->t('@langname revisions for %title', [\n '@langname' => $langname,\n '%title' => $print_article->label(),\n ]) : $this->t('Revisions for %title', ['%title' => $print_article->label()]);\n $header = [$this->t('Revision'), $this->t('Operations')];\n\n $revert_permission = (($account->hasPermission(\"revert all print article revisions\") || $account->hasPermission('administer print article entities')));\n $delete_permission = (($account->hasPermission(\"delete all print article revisions\") || $account->hasPermission('administer print article entities')));\n\n $rows = [];\n\n $vids = $print_article_storage->revisionIds($print_article);\n\n $latest_revision = TRUE;\n\n foreach (array_reverse($vids) as $vid) {\n /** @var \\Drupal\\thunder_print\\PrintArticleInterface $revision */\n $revision = $print_article_storage->loadRevision($vid);\n // Only show revisions that are affected by the language that is being\n // displayed.\n if ($revision->hasTranslation($langcode) && $revision->getTranslation($langcode)->isRevisionTranslationAffected()) {\n $username = [\n '#theme' => 'username',\n '#account' => $revision->getRevisionUser(),\n ];\n\n // Use revision link to link to revisions that are not active.\n $date = $this->dateFormatter->format($revision->revision_created->value, 'short');\n if ($vid != $print_article->getRevisionId()) {\n $link = $this->l($date, new Url('entity.print_article.revision', [\n 'print_article' => $print_article->id(),\n 'print_article_revision' => $vid,\n ]));\n }\n else {\n $link = $print_article->link($date);\n }\n\n $row = [];\n $column = [\n 'data' => [\n '#type' => 'inline_template',\n '#template' => '{% trans %}{{ date }} by {{ username }}{% endtrans %}{% if message %}<p class=\"revision-log\">{{ message }}</p>{% endif %}',\n '#context' => [\n 'date' => $link,\n 'username' => $this->renderer->renderPlain($username),\n 'message' => [\n '#markup' => $revision->revision_log_message->value,\n '#allowed_tags' => Xss::getHtmlTagList(),\n ],\n ],\n ],\n ];\n $row[] = $column;\n\n if ($latest_revision) {\n $row[] = [\n 'data' => [\n '#prefix' => '<em>',\n '#markup' => $this->t('Current revision'),\n '#suffix' => '</em>',\n ],\n ];\n foreach ($row as &$current) {\n $current['class'] = ['revision-current'];\n }\n $latest_revision = FALSE;\n }\n else {\n $links = [];\n if ($revert_permission) {\n $links['revert'] = [\n 'title' => $this->t('Revert'),\n 'url' => $has_translations ? Url::fromRoute('entity.print_article.translation_revert', [\n 'print_article' => $print_article->id(),\n 'print_article_revision' => $vid,\n 'langcode' => $langcode,\n ]) : Url::fromRoute('entity.print_article.revision_revert', [\n 'print_article' => $print_article->id(),\n 'print_article_revision' => $vid,\n ]),\n ];\n }\n\n if ($delete_permission) {\n $links['delete'] = [\n 'title' => $this->t('Delete'),\n 'url' => Url::fromRoute('entity.print_article.revision_delete', [\n 'print_article' => $print_article->id(),\n 'print_article_revision' => $vid,\n ]),\n ];\n }\n\n $row[] = [\n 'data' => [\n '#type' => 'operations',\n '#links' => $links,\n ],\n ];\n }\n\n $rows[] = $row;\n }\n }\n\n $build['print_article_revisions_table'] = [\n '#theme' => 'table',\n '#rows' => $rows,\n '#header' => $header,\n ];\n\n return $build;\n }", "public function banearDeLasRevisiones() {\n\t\tglobal $wpdb;\n\t\tif ($this->getUser()->isAdmin()) {\n\t\t\tthrow new \\Exception('No puedes banear a un admin', 402);\n\t\t}\n\t\t$isBan = $wpdb->get_var($wpdb->prepare('select count(*)\n\t\t\t\tfrom wp_revisiones_ban\n\t\t\t\twhere user_id = %d\n\t\t\t\tand status = %d;', $this->user_id, self::BANEADO));\n\t\tif (! $isBan) {\n\t\t\treturn $wpdb->query($wpdb->prepare('\n\t\t\t\tINSERT wp_revisiones_ban (user_id, editor_id, created_at, updated_at)\n\t\t\t\tVALUES (%d, %d, null, null);', $this->user_id, $this->editor_id));\n\t\t}\n\t\treturn $wpdb->query($wpdb->prepare('\n\t\t\t\tUPDATE wp_revisiones_ban\n\t\t\t\tSET user_id = %d, editor_id = %;', $this->user_id, $this->editor_id));\n\t}", "function wp_save_post_revision_check_for_changes( $return, $last_revision, $post ) {\n\n\t\t\t// if acf has changed, return false and prevent WP from performing 'compare' logic\n\t\t\tif ( acf_maybe_get_POST( '_acf_changed' ) ) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\t// return\n\t\t\treturn $return;\n\n\t\t}", "function wp_get_post_revisions($post = 0, $args = \\null)\n {\n }", "public function testGetChangeParentRevisions()\n {\n }", "function my_refresh_mce($ver) {\r\n\t\t\r\n\t $ver += 3;\r\n\t return $ver;\r\n\t \r\n\t}", "function getFileRevision() {\n\t\treturn $this->getData('fileRevision');\n\t}", "public function getRevision()\n {\n return $this->result[\"revision\"];\n }", "function saveRevision($homedelivery, $uid, $update = FALSE) {\n // Hold on to the homedelivery's original creator_uid but swap in the revision's\n // creator_uid for the momentary write.\n $temp_uid = $homedelivery->uid;\n $homedelivery->uid = $uid;\n\n // Update the existing revision if specified.\n if ($update) {\n drupal_write_record('homedelivery_revision', $homedelivery, 'vid');\n }\n else {\n // Otherwise insert a new revision. This will automatically update $homedelivery\n // to include the vid.\n drupal_write_record('homedelivery_revision', $homedelivery);\n }\n\n // Reset the order's creator_uid to the original value.\n $homedelivery->uid = $temp_uid;\n }", "public function postSave()\n {\n // check if the model already exists\n if ((!isset($this->revisionEnabled) || $this->revisionEnabled)) {\n // if it does, it means we're updating\n\n $changes_to_record = $this->changedRevisionableFields();\n\n $revisions = array();\n\n foreach ($changes_to_record as $key => $change) {\n\n $revisions[] = array(\n 'revisionable_type' => get_class($this),\n 'revisionable_id' => $this->getKey(),\n 'key' => $key,\n 'old_value' => array_get($this->originalData, $key),\n 'new_value' => $this->updatedData[$key],\n 'user_id' => $this->getSystemUserId(),\n 'created_at' => new \\DateTime(),\n 'updated_at' => new \\DateTime(),\n 'activity_id' => $this->getActivityId()\n );\n }\n\n if (count($revisions) > 0) {\n $revision = new Revision();\n \\DB::table($revision->getTable())->insert($revisions);\n }\n\n }\n\n }", "public function getRevisionUser();", "public function getRevisionUser();", "public function getRevisionUser();", "public function getRevisionUser();", "public function getRevisionUser();" ]
[ "0.74204034", "0.74114263", "0.72671145", "0.70023847", "0.69929355", "0.682526", "0.67931306", "0.67217034", "0.66308624", "0.6580174", "0.6500865", "0.64754105", "0.64707094", "0.6467831", "0.64580774", "0.64525384", "0.6401307", "0.63976336", "0.63668287", "0.633752", "0.6309432", "0.6274428", "0.62462413", "0.6245791", "0.6242703", "0.6229604", "0.6210773", "0.6205285", "0.61845154", "0.61729294", "0.61615527", "0.61520106", "0.61494184", "0.61435986", "0.6102313", "0.6101302", "0.60959333", "0.60766464", "0.60653937", "0.6059933", "0.6036891", "0.60051376", "0.59946346", "0.59823304", "0.5971716", "0.5967498", "0.59673285", "0.59159696", "0.5892649", "0.5892533", "0.5869483", "0.58511823", "0.5841472", "0.58198684", "0.58186036", "0.58129257", "0.58089423", "0.5804717", "0.58029187", "0.5797867", "0.57951885", "0.5783588", "0.5775742", "0.5775604", "0.5775498", "0.57645106", "0.57540625", "0.5692882", "0.56916946", "0.56916946", "0.56916946", "0.56916946", "0.56916946", "0.56715393", "0.5663922", "0.565561", "0.56532025", "0.56482273", "0.56440926", "0.5633985", "0.56315243", "0.5628394", "0.562749", "0.56244516", "0.56225777", "0.5618459", "0.5618393", "0.5616751", "0.56032306", "0.55947244", "0.5592539", "0.5577523", "0.5563055", "0.553944", "0.55390894", "0.55258507", "0.55258507", "0.55258507", "0.55258507", "0.55258507" ]
0.5956773
47
funcion para crear nuevo registro de Detalle Se usa en la funcion de revision para registrar detalle en cada aspecto que se requiera
public function storeDetalle($folio,$concepto,$id,$obs){ $detalle = new Detalle_previo(); $detalle->rev_previas_id = $folio; $detalle->identificador = $id; $detalle->concepto = $concepto; $detalle->observacion = $obs; $detalle->save(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function add()\n {\n $this->loadModel('SiVeriEntregas');\n $this->loadModel('Persons');\n $this->loadModel('SiLideres');\n $this->loadModel('SiPastores');\n $this->loadModel('MaPropiedades');\n //Objeto a llenar\n $verificacion = $this->SiVeriEntregas->newEntity();\n\n //POST que guarda la información agregada al formulario\n if ($this->request->is('post')) {\n $verificacion = $this->SiVeriEntregas->patchEntity($verificacion, $this->request->data);\n\n $verificaciondb = $this->SiVeriEntregas->find('all')->select(['Persona.documento'])\n ->where(['SiVeriEntregas.id_datos_basicos' => $this->request->data['id_datos_basicos'], 'SiVeriEntregas.status_id' => 1])\n ->contain(['Persona'])\n ->toArray();\n\n if (count($verificaciondb) > 0) {\n $this->Flash->error(__('La persona con documento ' . $verificaciondb[0]['Persona']['documento'] . ', ya tiene una verificación'));\n } else {\n $verificacion->id_estado_llamada = 251;\n $verificacion->status_id = 1;\n $verificacion->creator_id = $this->Auth->user()['id'];\n\n if ($this->SiVeriEntregas->save($verificacion)) {\n $this->addEncuesta($verificacion);\n $this->Flash->success(__('La verificación ha sido agregada.'), 'success');\n return $this->redirect(['action' => 'index']);\n }\n $this->Flash->error(__('No se pudo agregar la verificación.'));\n }\n }\n\n //Listas que se presentan en el formulario\n $lista1[] = array();\n unset($lista1[0]);\n $lista3[] = array();\n unset($lista3[0]);\n $lista4[] = array();\n unset($lista4[0]);\n $lista5[] = array();\n unset($lista5[0]);\n $lista9[] = array();\n\n $personsdb = $this->Persons->find()->select(['id', 'documento', 'nombres', 'apellidos'])\n ->where(['status_id' => 1])\n ->order(['nombres' => 'ASC']);\n foreach ($personsdb as $person) {\n $lista1[$person['id']] = $person['documento'] . ' | ' . $person['nombres'] . ' ' . $person['apellidos'];\n } //Lista de personas a verificar\n \n $lideresgt = $this->SiLideres->find()->select(['SiLideres.id', 'Persons.documento', 'Persons.nombres', 'Persons.apellidos'])\n ->where(['SiLideres.id_nivel' => 207, 'SiLideres.status_id' => 1])\n ->contain(['Persons'])\n ->order(['Persons.nombres' => 'ASC']);\n\n foreach ($lideresgt as $lidergt) {\n $lista2[$lidergt['id']] = $lidergt['person']['documento'] . ' | ' . $lidergt['person']['nombres'] . ' ' . $lidergt['person']['apellidos'];\n } //Lista para Lideres de GT\n\n $lideresdb = $this->SiLideres->find()->select(['SiLideres.id', 'Persons.documento', 'Persons.nombres', 'Persons.apellidos'])\n ->where(['SiLideres.id_nivel' => 209, 'SiLideres.status_id' => 1])\n ->contain(['Persons'])\n ->order(['Persons.nombres' => 'ASC']);\n\n foreach ($lideresdb as $lider) {\n $lista3[$lider['id']] = $lider['person']['documento'] . ' | ' . $lider['person']['nombres'] . ' ' . $lider['person']['apellidos'];\n } //Lista para Lideres de acompañamiento\n\n $pastoresdb = $this->SiPastores->find()->select(['SiPastores.id', 'Persons.documento', 'Persons.nombres', 'Persons.apellidos'])\n ->where(['SiPastores.status_id' => 1])\n ->contain(['Persons'])\n ->order(['Persons.nombres' => 'ASC']);\n\n foreach ($pastoresdb as $pastor) {\n $lista4[$pastor['id']] = $pastor['person']['documento'] . ' | ' . $pastor['person']['nombres'] . ' ' . $pastor['person']['apellidos'];\n } //Lista para pastores\n\n $liderconsolida = $this->SiLideres->find()->select(['SiLideres.id', 'Persons.documento', 'Persons.nombres', 'Persons.apellidos'])\n ->where(['SiLideres.id_nivel' => 1179, 'SiLideres.status_id' => 1])\n ->contain(['Persons'])\n ->order(['Persons.nombres' => 'ASC']);\n\n foreach ($liderconsolida as $liderco) {\n $lista5[$liderco['id']] = $liderco['person']['documento'] . ' | ' . $liderco['person']['nombres'] . ' ' . $liderco['person']['apellidos'];\n } //Lista para lideres de consolidación\n\n $lista6 = $lista1; //Lista para quien lo invito\n $lista7 = $this->properties(219); //Lista para tipo de entrega\n $lista8 = $this->properties(223); //Lista para fase de la entrega \n \n //Parametros que se envian a la vista\n $this->set(compact('verificacion', 'lista1', 'lista2', 'lista3', 'lista4', 'lista5', 'lista6', 'lista7', 'lista8'));\n }", "public function run()\n {\n factory(DetalleOrden::class)->create([\n 'orden_id' => 1,\n 'producto_id' => 1,\n 'nombre' => 'Balón de Fútbol GOLTY',\n 'descripcion' => 'Balón de fútbol profesional N° 15',\n 'categoria' => 'Fútbol',\n 'precio' => 30000,\n 'cantidad' => 2,\n 'total_linea' => 60000\n ]);\n\n factory(DetalleOrden::class)->create([\n 'orden_id' => 1,\n 'producto_id' => 2,\n 'nombre' => 'Xbox One Slim',\n 'descripcion' => 'Consola de videojuegos Xbox One Slim 320GB',\n 'categoria' => 'Juegos Electrónicos',\n 'precio' => 1200000,\n 'cantidad' => 1,\n 'total_linea' => 1200000\n ]);\n\n factory(DetalleOrden::class)->create([\n 'orden_id' => 2,\n 'producto_id' => 3,\n 'nombre' => 'Zapatillas Nike Stretch',\n 'descripcion' => 'Zapatillas para ejercicio con tecnología Stretch',\n 'categoria' => 'Ejercicio',\n 'precio' => 150000,\n 'cantidad' => 1,\n 'total_linea' => 150000\n ]);\n\n factory(DetalleOrden::class)->create([\n 'orden_id' => 2,\n 'producto_id' => 1,\n 'nombre' => 'Balón de Fútbol GOLTY',\n 'descripcion' => 'Balón de fútbol profesional N° 15',\n 'categoria' => 'Fútbol',\n 'precio' => 30000,\n 'cantidad' => 1,\n 'total_linea' => 30000\n ]);\n\n factory(DetalleOrden::class)->create([\n 'orden_id' => 3,\n 'producto_id' => 2,\n 'nombre' => 'Xbox One Slim',\n 'descripcion' => 'Consola de videojuegos Xbox One Slim 320GB',\n 'categoria' => 'Juegos Electrónicos',\n 'precio' => 1200000,\n 'cantidad' => 2,\n 'total_linea' => 2400000\n ]);\n\n }", "public function nuevo()\n {\n log_message('DEBUG','#TRAZA | #TRAZ-PROD-TRAZASOFT | ETAPA | nuevo()');\n \n $this->load->model(TST.'Tareas');\n $this->Tareas->eliminarTareasSinOrigen(empresa());\n #Snapshot\n $user = userNick();\n $view = 'etapa/abm';\n $data['key'] = $view . $user;\n\n $data['fecha'] = date('Y-m-d');\n $data['id'] = $this->input->get('op');\n $data['etapa'] = $this->Etapas->nuevo($data['id'])->etapa;\n $data['idetapa'] = $data['etapa']->id;\n $data['accion'] = 'Nuevo';\n $data['op'] = $data['etapa']->titulo;\n\n $this->load->model(ALM . 'Articulos');\n #$data['materias'] = $this->Articulos->obtenerXTipos(array('Proceso', 'Final', 'Materia Prima'));\n // $data['productos'] = $this->Articulos->obtenerXTipos(array('Proceso', 'Producto'));\n\n #FORMULARIO GENERICO\n $data['form_id'] = $data['etapa']->form_id;\n\n #Obtener Proucto por Etapa\n $data['productos_etapa'] = $this->Etapas->obtenerArticulos($data['etapa']->id)['data'];\n $data['productos_entrada_etapa'] = $this->Etapas->getEntradaEtapa($data['etapa']->id)['data'];\n $data['formulas'] = $this->Formulas->getFormulas()->formulas->formula;\n $data['lang'] = lang_get('spanish', 5);\n $data['tareas'] = []; //$this->Tareas->listar()->tareas->tarea;\n $data['templates'] = []; //$this->Templates->listar()->templates->template;\n $data['establecimientos'] = $this->Establecimientos->listar($data['id'])->establecimientos->establecimiento; // listo\n $data['recursosmateriales'] = []; //;$this->Recursos_Materiales->listar()->recursos->recurso;\n $data['rec_trabajo'] = $this->Recursos->obtenerXTipo('TRABAJO')['data'];\n $this->load->view($view, $data);\n }", "public function create($entidad) {\n\n if (parent::backendIsLogged()) {\n if (RoleService::getInstance()->hasRolePermission($_SESSION[\"roleID\"], __CLASS__ . \":\" . __FUNCTION__)) {\n\n try {\n $fecha = new DateTime();\n\n $entrega = new EntregaDirectaModel(null, $entidad[\"entidad\"], $fecha->format(\"Y/m/d\"));\n $id = EntregaDirectaRepository::getInstance()->add($entrega);\n foreach ($entidad[\"detalle_alimento_id\"] as $k => $v) {\n $alim = new AlimentoEntregaDirectaModel($id, $v, $entidad[\"cantidad\"][$k]);\n AlimentoEntregaDirectaRepository::getInstance()->add($alim);\n }\n $_SESSION[\"message\"] = new MessageService(\"createSuccess\", [\" envío inmediato \" . $data['razonSocial']]);\n } catch (Exception $e) {\n $_SESSION['message'] = $e->getMessage();\n }\n }\n }\n }", "function registrarDetalles () {\n\t\t$x = $this->pdo->prepare('INSERT INTO detalles (cedulaCliente,codProducto,cantidad,total,estado) VALUES (?,?,?,?,?)');\n\t\t$x->execute(array($this->cedulaClienteD,$this->codProducto,$this->cantidad,$this->total,$this->estado));\n\t\treturn $x;\n\t}", "public function revision($id) {\n\t\tif ($this -> request -> is('post') || $this -> request -> is('put')) {\n\t\t\tif ($this -> request -> data['SolicitudesTitulacion']['tipos_especies_valorada_id']) {\n\t\t\t\tif ($this -> SolicitudesTitulacion -> save($this -> request -> data)) {\n\t\t\t\t\t$this -> Session -> setFlash(__('Se registró el cambio'), 'crud/success');\n\t\t\t\t\t$this -> redirect(array('action' => 'index'));\n\t\t\t\t} else {\n\t\t\t\t\t$this -> Session -> setFlash(__('No se pudo registrar el cambio. Por favor, intente de nuevo.'), 'crud/error');\n\t\t\t\t\t$this -> redirect(array('action' => 'index'));\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$this -> Session -> setFlash(__('No se pudo registrar el cambio. Seleccione el tipo de especie valorada. Por favor, intente de nuevo.'), 'crud/error');\n\t\t\t\t$this -> redirect(array('action' => 'index'));\n\t\t\t}\n\t\t} else {\n\t\t\tif (!$id) {\n\n\t\t\t} else {\n\t\t\t\t$this -> loadModel('Archivo');\n\t\t\t\t$archivos = $this -> Archivo -> find('all', array('conditions' => array('Archivo.model' => 'SolicitudesTitulacion', 'Archivo.foreign_key' => $id)));\n\t\t\t\t//$estadosSolicitudesTitulaciones = $this -> SolicitudesTitulacion -> EstadosSolicitudesTitulacion -> find('list');\n\t\t\t\t$estadosSolicitudesTitulaciones = $this -> SolicitudesTitulacion -> EstadosSolicitudesTitulacion -> find(\"list\", array(\"fields\" => array(\"id\", \"est_estado\")));\n\t\t\t\tunset($estadosSolicitudesTitulaciones[4]);\n\t\t\t\t//Quito el estado de refrendado\n\t\t\t\t//debug($estadosSolicitudesTitulaciones);\n\t\t\t\t$tiposEspeciesValoradas = $this -> SolicitudesTitulacion -> TiposEspeciesValorada -> find('list');\n\t\t\t\t$this -> set(compact('estadosSolicitudesTitulaciones', 'tiposEspeciesValoradas'));\n\t\t\t\t$this -> set('archivos', $archivos);\n\t\t\t\t$solicitud = $this -> SolicitudesTitulacion -> read(null, $id);\n\t\t\t\t$this -> request -> data = $solicitud;\n\t\t\t\t//$this -> set('solicitud', $solicitud);\n\t\t\t}\n\t\t}\n\t}", "public function revision_detallada()\n {\n return $this->hasOne('App\\Revision_Detallada');\n }", "public function crear() {\n \n //json_decode — Decodifica un string de JSON\n $myArray = isset($_POST['dvArray']) ? json_decode($_POST['dvArray']) : false; \n\n //Get arreglo DetalleVenta\n if ($myArray) {\n \n //Get sesion User\n $usuario=new UsuarioModelo();\n $usuario->set_nombre('admin');\n $unUsuario = $usuario->getBy('nombre', $usuario->get_nombre());\n //Destruir el objeto\n unset($usuario);\n\n $cont = 0;\n //Recorrer y recuperar valores de un objeto JSON con foreach\n foreach($myArray as $obj){\n if ($cont==0) {\n $idcliente = $obj->idcliente;\n $forma_pago = $obj->forma_pago;\n $total_venta = $obj->total_venta;\n \n //set new Venta\n $venta = new VentaModelo();\n $venta->set_idcliente($idcliente);\n $venta->set_idusuario($unUsuario[0]->idusuario);\n $venta->set_forma_pago($forma_pago);\n $venta->set_total_venta($total_venta); \n $save = $venta->addVenta();\n if ($save) {\n $this->resultadoC = true;\n $idventa = $venta->get_idventa(); \n } else {\n $this->resultadoC = false;\n }\n unset($venta);\n\n } else {\n\n if ($this->resultadoC && isset($idventa)) {\n $idproducto = $obj->dvCodProducto;\n $precio = (float) $obj->dvPUnitario;\n $cantidad = (int) $obj->dvCantidad;\n $total = round($precio*$cantidad,2);\n\n $values[] = \"('{$idventa}', '{$idproducto}', '{$cantidad}', '{$total}')\";\n\n /*//set new DetalleVenta\n $dVenta = new DetalleVentaModelo();\n $dVenta->set_idventa($idventa);\n $dVenta->set_idproducto($idproducto);\n $dVenta->set_cantidad($cantidad);\n $dVenta->set_total($total);\n $save = $dVenta->addDetalleVenta();\n if (!$save) {\n $this->resultadoC = false;\n }\n unset($dVenta);*/\n\n // Actualizar PRODUCTO\n //set new Producto\n $producto = new ProductoModelo();\n $unProducto= $producto->buscarProductoModelo($idproducto);\n\n $producto->setIdproducto($unProducto[0]->idproducto);\n $producto->setIdcategoria($unProducto[0]->idcategoria);\n $producto->setDetalle($unProducto[0]->detalle);\n $producto->setPrecio($unProducto[0]->precio_venta);\n $producto->setStock((int) ($unProducto[0]->stock - $cantidad));\n $save = $producto->actualizar();\n if (!$save) {\n $this->resultadoC = false;\n }\n unset($producto);\n }\n }\n $cont++;\n }\n\n if (isset($values)) {\n //set new DetalleVenta\n $dVenta = new DetalleVentaModelo();\n $save = $dVenta->addDetalleVentaArray($values);\n /*if (!$save) {\n $this->resultadoC = false;\n }*/\n unset($dVenta); \n }\n\n echo $save; //Este mensaje devolverá a la llamada AJAX \n\n } else {\n echo \"false\";\n } \n }", "public function createAuditoriaPatrimonio(array $detalhes): ?Model\n {\n }", "protected function crearEgresoDetalle($data)\r\n {\r\n $service = new CrearDetalleEgresoService($this->em, $this->egreso);\r\n \r\n for ($i=0; $i<count($data); $i++) {\r\n $service->init();\r\n $service->ejecutar($data[$i]);\r\n $detalle = $service->getDetalle();\r\n $this->egreso->add($detalle);\r\n }\r\n }", "function registrarDetalleDocumento(DetalleDocumento $nuevoDetalle){\n\n require 'parametrosBD.php';\n\n try{\n $conn = new PDO(\"mysql:host=$host;dbname=$nombreBaseDatos\", $usuario,$password);\n\n $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n\n $query = $conn->prepare(\"INSERT INTO DETALLE_DOCUMENTO (idTipoDoc, folioDoc, codProd, precioUnitario, cantUnitaria, descuento, valor) \n VALUES (?, ?, ?, ?, ?, ?, ?)\");\n \n $result = $query->execute([$nuevoDetalle->getEncabezadoDocumento()->getTipoDoc()->getIdTipoDoc(),\n $nuevoDetalle->getEncabezadoDocumento()->getFolioDoc(), \n $nuevoDetalle->getProducto()->getCodProd(),\n $nuevoDetalle->getPrecioUnitario(),\n $nuevoDetalle->getCantUnitaria(),\n $nuevoDetalle->getDescuento(),\n $nuevoDetalle->getValor()]);\n \n if($result === true)\n {\n return 'ok';\n }\n else\n {\n return 'err';\n }\n\n }catch(PDOException $pe){\n\n return \"err : \" . $pe->getMessage();\n\n }\n }", "public function crearMotivacion($id_estudiante)\n {\n $obj_estudiante= new Estudiante();\n $obj_estudiante->setId_estudiante($id_estudiante);\n \n\n return MotivacionDao::crearMotivacion($obj_estudiante);\n }", "public function createAction(Request $request)\n {\n if($request->isXmlHttpRequest()) {\n $entity = new EntradaDetalles();\n $form = $this->createCreateForm($entity);\n $form->handleRequest($request);\n\n if ($form->isValid()) {\n $existenciasManager = $this->get('app.existencias');\n $em = $this->getDoctrine()->getManager(); \n \n $ejerciciosManager = $this->get('app.ejercicios');\n $ejercicio = $ejerciciosManager->buscarPorAlmacenYPeriodo(null, 'ecs.iva, ecs.tipoInventario', 'HYDRATE_ARRAY');\n //Iniciando la transacción para crear el detalle y aumentar la existencia\n //Consultar http://doctrine-orm.readthedocs.org/en/latest/reference/transactions-and-concurrency.html#approach-2-explicitly\n $em->getConnection()->beginTransaction();\n \n try\n { \n $em->persist($entity);\n $existenciasManager->aumentar($entity->getArticulo(), \n $entity->getEntrada()->getPrograma(), \n $entity->getCantidad(), \n $entity->getPrecio(),\n $ejercicio,\n $entity->getAplicaIva()\n );\n \n $em->flush();\n $em->getConnection()->commit();\n \n } catch (Exception $e) {\n $em->getConnection()->rollback();\n throw $e;\n } //Fin transacción\n \n $entradaDetallesManager = $this->get('app.entrada_detalles');\n $precioNuevo = $entradaDetallesManager->calcularPrecio($entity->getPrecio(), $ejercicio['iva'], $entity->getAplicaIva());\n $total = round($precioNuevo * $entity->getCantidad(), 2);\n $btnEditar = '<button type=\"button\" detalle-id=\"'.$entity->getId().'\" \n class=\"btn btn-xs btn-primary btn-editar-articulo\" data-toggle=\"tooltip\" \n title=\"Editar\"> <i class=\"fa fa-edit fa-fw\"></i></button>'; \n $registro = array(\n 'clave' => $entity->getArticulo()->getClave(),\n 'nombre' => Helpers::getSubString($entity->getArticulo()->getNombre()),\n 'cantidad' => number_format($entity->getCantidad(), 0, '.', ','),\n 'precio' => number_format($precioNuevo, 2, '.', ','),\n 'total' => number_format($total, 2, '.', ','),\n 'btn_editar' => $btnEditar,\n );\n $data = array('code' => 200, 'html' => '', \n 'message' => 'El artículo se agrego correctamente.',\n 'registro' => $registro,\n );\n } else {\n $data = array('code' => 500, 'html' => '', 'message' => 'Se encontraron errores al procesar el formulario.');\n }\n \n \n $response = new JsonResponse($data);\n return $response;\n \n }\n \n\n return $this->render('/Admin/EntradaDetalles/new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "public function Registrar_Ref_Personal(HojaVida $data){\n $modelo = new HojaVida();\n $fechahora = $modelo->get_fecha_actual();\n $datosfecha = explode(\" \",$fechahora);\n $fechalog = $datosfecha[0];\n $horalog = $datosfecha[1];\n \n $tiporegistro = \"Referencia Personal\";\n $accion = \"Registra una Nueva \".$tiporegistro.\" En el Sistema (Hoja vida) TALENTO HUMANO\";\n $detalle = $_SESSION['nombre'].\" \".$accion.\" \".$fechalog.\" \".\"a las: \".$horalog;\n $tipolog = 15;\n $idusuario = $_SESSION['idUsuario'];\n \n try {\n $this->pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\t\t\n //EMPIEZA LA TRANSACCION\n $this->pdo->beginTransaction();\n\n $sql = \"INSERT INTO `th_referencias_personales`(`ref_id_hv`, `ref_id_usuario`, `ref_id_usuarioR`, `ref_nombre`, `ref_cargo`, `ref_empresa`, `ref_telefono`) \n VALUES (?,?,?,?,?,?,?)\";\n $this->pdo->prepare($sql)\n ->execute(\n array(\n $data->id,\n $data->usuario,\n $idusuario,\n $data->ref_per_nombre,\n $data->ref_per_cargo,\n $data->ref_per_empresa,\n $data->ref_per_telefono\n )\n ); \n $this->pdo->exec(\"INSERT INTO log (fecha, accion,detalle,idusuario,idtipolog) VALUES ('$fechalog', '$accion','$detalle','$idusuario','$tipolog')\");\n \n //SE TERMINA LA TRANSACCION \n $this->pdo->commit();\n } catch (Exception $e) {\n $this->pdo->rollBack();\n die($e->getMessage());\n }\n }", "public function run()\n {\n //factory(App\\Models\\CatCentroReclusion::class, 10)->create();\n /* factory(App\\Models\\Persona::class, 10)->create();\n factory(App\\Models\\Desaparecido::class, 10)->create();\n factory(App\\Models\\Domicilio::class, 10)->create();\n factory(App\\Models\\Familiar::class, 10)->create();\n factory(App\\Models\\Antecedente::class, 10)->create();\n factory(App\\Models\\Documento::class, 10)->create();*/\n\n //factory(\\App\\Models\\Plan::class, 3)->create()->each(function ($planes) {\n //planes->auditorias()->save(factory(\\App\\Models\\Auditoria::class)->make());\n\n\n //factory(App\\Models\\Cedula::class, 10)->create()->each(function ($cedula){\n //$cedula->desaparecidos()->save(factory(App\\Models\\Desaparecido::class)->make());\n //});\n\n /* factory(App\\Models\\Cedula::class, 10)->create()->each(function ($cedula){\n $cedula->desaparecidos()->save(factory(App\\Models\\Desaparecido::class)->make());\n });\n\n\n // factory(App\\Models\\Persona::class, 5)->create()->each(function ($persona){\n //$persona->desaparecidos()->save(factory(App\\Models\\Desaparecido::class)->make());\n //});\n\n\n // factory(App\\Models\\Desaparecido::class, 10)->create()->each(function ($desaparecido){\n // $desaparecido->domicilios()->save(factory(App\\Models\\Domicilio::class)->make());\n // });\n\n\n factory(App\\Models\\Desaparecido::class, 10)->create()->each(function ($desaparecido){\n $desaparecido->domicilios()->save(factory(App\\Models\\Domicilio::class)->make());\n });\n*/\n\n\n\n }", "public function createNew() {\n\t}", "public function run()\n {\n factory(App\\Vuelo::class,1)->create();\n /*factory(App\\Vuelo::class,20)->create()\n ->each(function($asiento) { //Para cada reserva\n $asiento->asientos()->attach(App\\Asiento::all()->random(1)); //se crea tabla intermedia\n });*/\n\n /* factory(App\\Vuelo::class,20)->create()\n ->each(function($seguro) { //Para cada reserva\n $seguro->seguros()->attach(App\\Seguro::all()->random(1)); //se crea tabla intermedia\n });*/\n\n $vuelo = new Vuelo();\n $vuelo->fecha_ida = \"2018-01-25\";\n $vuelo->fecha_vuelta = \"2018-01-30\";\n $vuelo->hora_salida = \"10:00:00\";\n $vuelo->hora_llegada = \"20:00:00\";\n $vuelo->duracion_vuelo = 3.30;\n $vuelo->precio = 3.30;\n $vuelo->numero_paradas = 1;\n $vuelo->tipo_vuelo = 1;\n $vuelo->equipaje = 1;\n $vuelo->disponibilidad = 1;\n $vuelo->aerolinea = \"Latam\"; \n $vuelo->ciudad_origen = \"Santiago\";\n $vuelo->pais_origen = \"Chile\";\n $vuelo->ciudad_destino = \"Lima\";\n $vuelo->pais_destino = \"Perú\";\n $vuelo->id_aeropuerto_origen = 1;\n $vuelo->id_aeropuerto_destino = 3;\n $vuelo->save(); //se guarda usuario\n\n $vuelo = new Vuelo();\n $vuelo->fecha_ida = \"2018-01-26\";\n $vuelo->fecha_vuelta = \"2018-03-30\";\n $vuelo->hora_salida = \"10:00:00\";\n $vuelo->hora_llegada = \"20:00:00\";\n $vuelo->duracion_vuelo = 10.30;\n $vuelo->precio = 300.30;\n $vuelo->numero_paradas = 4;\n $vuelo->tipo_vuelo = 0;\n $vuelo->equipaje = 3;\n $vuelo->disponibilidad = 1;\n $vuelo->aerolinea = \"SKY\"; \n $vuelo->ciudad_origen = \"Quito\";\n $vuelo->pais_origen = \"Ecuador\";\n $vuelo->ciudad_destino = \"Paris\";\n $vuelo->pais_destino = \"Francia\";\n $vuelo->id_aeropuerto_origen = 1;\n $vuelo->id_aeropuerto_destino = 3;\n $vuelo->save(); //se guarda usuario\n \n factory(App\\Vuelo::class,20)->create()\n ->each(function($escala) { //Para cada reserva\n $escala->escalas()->attach(App\\Escala::all()->random(1)); //se crea tabla intermedia\n });\n }", "public function nuevoAction()\n {\n $consultaCollection = \\ConsultaQuery::create()->find();\n $consultaArray = array();\n foreach ($consultaCollection as $consultaEntity){\n $consultaArray[$consultaEntity->getIdconsulta()] = $consultaEntity->getPaciente()->getPacienteNombre();\n }\n // Almacenamos en un array los registros de todos los servicios existentes en la base de datos\n $servicioCollection = \\ServicioQuery::create()->find();\n $servicioArray = array();\n foreach ($servicioCollection as $servicioEntity){\n $servicioArray[$servicioEntity->getIdservicio()] = $servicioEntity->getServicioNombre();\n }\n //Intanciamos nuestro formulario cargoadmision y le mandamos por parametro los medicos y consultorios existentes\n $cargoadmisionForm = new CargoadmisionForm($consultaArray, $servicioArray);\n $request = $this->getRequest();\n if ($request->isPost()) {\n //Instanciamos nuestro filtro\n $cargoadmisionFilter = new CargoadmisionFilter();\n //Le ponemos nuestro filtro a nuesto fromulario\n $cargoadmisionForm->setInputFilter($cargoadmisionFilter->getInputFilter());\n\n //Le ponemos los datos a nuestro formulario\n $cargoadmisionForm->setData($request->getPost());\n\n //Validamos nuestro formulario\n if($cargoadmisionForm->isValid()){\n\n //Instanciamos un nuevo objeto de nuestro objeto Paciente\n $cargoadmision = new \\Cargoadmision();\n\n //Recorremos nuestro formulario y seteamos los valores a nuestro objeto Consulta\n foreach ($cargoadmisionForm->getData() as $cargoadmisionKey => $cargoadmisionValue){\n $cargoadmision->setByName($cargoadmisionKey, $cargoadmisionValue, \\BasePeer::TYPE_FIELDNAME);\n }\n $cargoadmision->save();\n\n // Validar precio, caducidad y existencia de ordencompradetalle\n $existencia = $cargoadmision->getLugarinventario()->getOrdencompradetalle()->getOrdencompradetalleExistencia();\n $caducidad = $cargoadmision->getLugarinventario()->getOrdencompradetalle()->getOrdencompradetalleCaducidad();\n $precio = $cargoadmision->getLugarinventario()->getOrdencompradetalle()->getOrdencompradetallePrecio();\n $cantidad = $cargoadmision->getCantidad();\n\n if($existencia > 0){\n if($caducidad < date('Y-m-d')){\n $cargoadmision->setMonto($request->getPost()->cantidad*$precio);\n }\n }\n\n //Guardamos en nuestra base de datos\n $cargoadmision->save();\n\n //Redireccionamos a nuestro list\n //return $this->redirect()->toRoute('pacientes');\n } else {\n $messageArray = array();\n foreach ($cargoadmisionForm->getMessages() as $key => $value){\n foreach($value as $val){\n //Obtenemos el valor de la columna con error\n $message = $key.' '.$val;\n array_push($messageArray, $message);\n }\n }\n var_dump($messageArray);\n return new ViewModel(array(\n 'input_error' => $messageArray\n ));\n }\n }\n return array('cargoadmisionForm' => $cargoadmisionForm);\n }", "public function create(){\n\t\t//\n\t}", "public function create(){\n\t\t//\n\t}", "public function create(){\n\t\t//\n\t}", "public function create(){\n\t\t//\n\t}", "public function afterCreate(\\stdClass $data, Entity $entity) { }", "function alta_unidad_m(){\n\t\t$u= new Unidad_medida();\n\t\t$u->fecha_alta=date(\"Y-m-d\");\n\t\t$u->estatus_general_id=1;\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{\n\t\t\techo \"<html> <script>alert(\\\"Se han registrado los datos de la Unidad de Medida.\\\"); window.location='\".base_url().\"index.php/inicio/acceso/\".$GLOBALS['ruta'].\"/menu';</script></html>\";\n\t\t}\n\t\telse\n\t\t{\n\t\t\tshow_error(\"\".$u->error->string);\n\t\t}\n\t}", "public function run()\n {\n //factory(Expedient::class, 50)->create(); //creted on the audit factory one to one\n }", "public function newAction() {\n\n if ($this->values['permisos']['permisosModulo']['IN']) {\n switch ($this->request[\"METHOD\"]) {\n\n case 'POST': //CREAR NUEVO REGISTRO\n //COGER EL LINK A LA ENTIDAD PADRE\n if ($this->values['linkBy']['id'] != '') {\n $this->values['linkBy']['value'] = $this->request[$this->entity][$this->values['linkBy']['id']];\n }\n\n $datos = new $this->entity();\n $datos->bind($this->request[$this->entity]);\n\n if ($datos->valida($this->form->getRules())) {\n $datos->create();\n $this->values['alertas'] = $datos->getAlertas();\n\n //Recargo el objeto para refrescar las propiedas que\n //hayan podido ser objeto de algun calculo durante el proceso\n //de guardado.\n $datos = new $this->entity($datos->getPrimaryKeyValue());\n $this->values['datos'] = $datos;\n } else {\n $this->values['datos'] = $datos;\n $this->values['errores'] = $datos->getErrores();\n }\n unset($datos);\n return $this->listAction($this->values['linkBy']['value']);\n break;\n }\n } else {\n return array('template' => '_global/forbiden.html.twig');\n }\n }", "public function store(){\n $validateactualite = $this->validate([\n 'titre'=>'required',\n 'sous_titre'=>'required',\n 'descri'=>'required'\n ]);\n $this->validate([\n 'photo'=>'required'\n ]);\n $record = actualite::create($validateactualite);\n $this->photo->storePubliclyAs('public/actualite/', $record->id.'.png');\n //$this->photos[$index]->storePubliclyAs('public/galleries/', $data->id.'.png' );\n session()->flash('message', 'actualite enregistré avec succès');\n $this->emit('Added');\n $this->dispatchBrowserEvent('Added');\n $this->resetFields();\n }", "public function diagram_new($id = NULL, $action = NULL) {\n $parent_id = 0; // current add parent id\n\n /*\n check the action type\n */\n \n /*\n if add a child, $id is a parent id\n */\n if ($action == 'add_a_child') {\n $parent_id = $id;\n $id = NULL;\n /*\n if add done, $id is previous diagram id, set the previous diagram parent id for current add id\n */\n } else if ($action == 'add_done') {\n $parent_id = ORM::factory('diagram')->where('id', $id)->find()->parent_id;\n $id = NULL;\n }\n\n $diagram = new Diagram_Model($id);\n $customfields = $diagram->customfields;\n\n // add new or save edit\n if ($post = $this->input->post()) {\n\n $type = $this->input->post('type');\n $parent_id = $this->input->post('parent_id');\n $uri = $this->input->post('uri');\n $uri = $uri == '/' ? '/' : trim($uri, '/');\n\n $diagram->type = $type;\n $diagram->uri = $uri;\n $diagram->parent_id = $parent_id;\n $diagram->title = trim($this->input->post('title'));\n $diagram->template = $this->input->post('template');\n $diagram->content = $this->input->post('content');\n\n $metavalue = array();\n $metavalue['post_template'] = $this->input->post('post_template');\n\n if (!empty($metavalue)) {\n $diagram->metavalue = serialize($metavalue);\n } else {\n $diagram->metavalue = '';\n }\n\n $set_order = false;\n if (empty($diagram->id)) {\n $set_order = true;\n $diagram->date = time();\n $diagram->user_id = $this->user->id;\n }\n\n $customfields_post = $this->input->post('customfields');\n // get a object list for customfields edit\n $customfields = self::_customfiled_to_object($customfields_post);\n\n if (!$diagram->is_unique_uri($uri, $type)) {\n Tip::set('Diagram uri is not unique.');\n } else if (!valid::uri($uri)) {\n Tip::set('Invalid diagram uri.');\n } else {\n $diagram->save();\n if ($set_order) {\n $diagram->order = $diagram->id; // set the diagram display order\n }\n\n self::_save_customfields($diagram->id, $customfields_post); // save customfiels\n\n // save diagram\n $diagram->save();\n\n // update the diagrams cache\n Diagram::cache_diagrams();\n\n if ($action == 'edit') {\n $tip = 'Edit done.';\n $redirect = 'diagram_manage';\n } else {\n // redirect to the tip add done\n $tip = 'Add done.';\n $redirect = \"diagram_manage/diagram_new/$diagram->id/add_done/\";\n }\n\n Tip::set(T::_($tip) . ' ' . html::admin_anchor(\"/diagram_manage/diagram_new/$diagram->id/edit?redirect_uri=diagram_manage/diagram_new\", T::_('View or edit')));\n\n $redirect_uri = $this->input->get('redirect_uri');\n if (!empty($redirect_uri)) {\n $redirect = $redirect_uri;\n }\n url::admin_redirect($redirect);\n }\n }\n\n $view = new View('layouts/admin');\n // type checked status\n $view->type_page = '';\n $view->type_list = '';\n $view->type_item = '';\n $view->type_url = '';\n\n // page content;\n $view->id = $diagram->id;\n $view->{\"type_$diagram->type\"} = TRUE;\n $view->title = $diagram->title;\n $view->content = $diagram->content;\n $view->uri = $diagram->uri;\n $view->template = $diagram->template;\n $view->post_template = $diagram->post_template;\n\n // set the diagram type check status\n if ($action == 'edit') {\n $view->buttom = 'Edit';\n $view->page_title = 'Diagram Edit';\n $parent_id = $diagram->parent_id;\n } else {\n $view->buttom = 'Add new';\n $view->page_title = 'Diagram New';\n }\n\n $view->customfields = !empty($customfields) ? $customfields : array();\n\n $view->select_options = Diagram::get_diagram_select(array('uses'=>'diagram', 'selected'=>$parent_id, 'current_diagram_id'=>$diagram->id));\n $theme = Kohana::config('core.theme');\n $view->templates = Template::all_as_array($theme, array('page', 'list'));\n $view->post_templates = Template::all_as_array($theme, 'post');\n $view->field_types = CustomField::types();\n $view->render(TRUE);\n }", "function Create($td_cod_tipo_denuncia,$de_descripcion,$de_contacto,$de_telefono,$de_nombre,$de_imagen){\n\n\t\t//Instanciamos y nos conectamos a la bd\n\t\t$Conexion = floopets_BD::Connect();\n\t\t$Conexion->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n\t\t//Crear el query que vamos a realizar\n\t\t$consulta = \"INSERT INTO denuncia (td_cod_tipo_denuncia,de_descripcion,de_contacto,de_telefono,de_nombre,de_fecha,de_imagen,de_estado) VALUES (?,?,?,?,?,now(),?,'Pendiente')\";\n\n\t\t$query = $Conexion->prepare($consulta);\n\t\t$query->execute(array($td_cod_tipo_denuncia,$de_descripcion,$de_contacto,$de_telefono,$de_nombre,$de_imagen));\n\n\t\tfloopets_BD::Disconnect();\n\t}", "public function create_detalle($id_contrato,$id_chk,$tipo,$edr,$tipo_chk,$origen)\n {\n $imgReserva = DB::table('chkinmueblefoto')\n ->where('id_chk', '=', $id_chk)\n ->where('tipo_chk', '=', $tipo_chk)\n ->whereNotNull('nombre')\n ->get();\n\n if($tipo == 'Propietario')\n {\n $Checklist = DB::table('adm_contratofinal as cf')\n ->leftjoin('cap_publicaciones as p', 'cf.id_publicacion' , '=', 'p.id' )\n ->leftjoin('inmuebles as i', 'p.id_inmueble', '=', 'i.id')\n ->leftjoin('comunas as co', 'i.id_comuna', '=', 'co.comuna_id')\n ->where('cf.id', '=', $id_contrato)\n ->select(DB::raw('p.id, i.direccion,i.numero,i.departamento,i.id as id_inmueble,co.comuna_nombre as comuna'))\n ->first(); \n\n }\n else\n {\n $Checklist = DB::table('adm_contratofinalarr as cf')\n ->leftjoin('arrendatarios as p', 'cf.id_publicacion' , '=', 'p.id' )\n ->leftjoin('inmuebles as i', 'p.id_inmueble', '=', 'i.id')\n ->leftjoin('comunas as co', 'i.id_comuna', '=', 'co.comuna_id')\n ->where('cf.id', '=', $id_contrato)\n ->select(DB::raw('i.direccion,i.numero,i.departamento,i.id as id_inmueble,co.comuna_nombre as comuna'))\n ->first(); \n }\n\n\n $listadoCheckList = DB::table('checklist')\n ->where('estado', '=', 1)->get(); \n\n $NombreTipoCheckList = DB::table('checklist')\n ->where('id', '=', $tipo_chk)->first(); \n\n $NombreCheckList = DB::table('chkinmueblefoto')\n ->where('id_chk', '=', $id_chk)\n ->where('tipo_chk', '=', $tipo_chk)\n ->orderBy('id','desc')\n ->first();\n\n \n return view('checklist.create_detalle',compact('origen','NombreCheckList','NombreTipoCheckList','deta_check','listadoCheckList','imgReserva','Checklist','vacio','tipo','id_contrato','id_chk','edr','tipo_chk')); \n }", "function create($entity);", "function newEpreuve(){\n $epreuve = $this->newEnregistrement();\n return $epreuve;\n }", "function registrarEnvioDetalles(){\n\t\t$x = $this->pdo->prepare('INSERT INTO enviodetalles (cedulaCliente,empresa,telefono,fechaEnvio) VALUES (?,?,?,?)');\n\t\t$x->execute(array($this->cedulaCliente,$this->empresa,$this->telefono,$this->fechaEnvio));\n\t\treturn $x;\n\t}", "public function run()\n {\n factory(Personal::class, 20)->create()\n ->each(function ($a) {\n\t $a->administrativo()->save(factory(App\\Administrativo::class)->make([\n 'sucursal_id' => $a->id,\n \t\t\t 'cargo' => 'Subgerente de Sucursal',\n\t\t\t ])\n );\n $a->administrativo->user()->save(factory(App\\User::class)->make([\n 'tipo' => 'Subgerente de Sucursal',\n ])\n );\n\t });\n\n\t factory(Personal::class, 20)->create()\n ->each(function ($u) {\n $u->administrativo()->save(factory(App\\Administrativo::class)->make([\n 'sucursal_id' => ($u->id-20),\n 'cargo' => 'Operador de Trafico',\n ])\n );\n $u->administrativo->user()->save(factory(App\\User::class)->make([\n 'tipo' => 'Operador de Trafico',\n ])\n );\n });\n factory(Personal::class,1)->create()\n ->each(function ($u) {\n $u->administrativo()->save(factory(App\\Administrativo::class)->make([\n 'sucursal_id' => 15,\n 'cargo' => 'Operador de Trafico',\n ])\n );\n $u->administrativo->user()->create([\n 'username' => 'admin',\n 'tipo' => 'Operador de Trafico',\n 'password' => bcrypt('1234567'),\n 'email' => 'admin@gmail.com'\n ]);\n });\n factory(Personal::class,1)->create()\n ->each(function ($u) {\n $u->administrativo()->save(factory(App\\Administrativo::class)->make([\n 'sucursal_id' => 15,\n 'cargo' => 'Subgerente de Sucursal',\n ])\n );\n $u->administrativo->user()->create([\n 'username' => 'admin2',\n 'tipo' => 'Subgerente de Sucursal',\n 'password' => bcrypt('1234567'),\n 'email' => 'admin2@gmail.com'\n ]);\n });\n factory(Personal::class,1)->create()\n ->each(function ($u) {\n $u->administrativo()->save(factory(App\\Administrativo::class)->make([\n 'sucursal_id' => 1,\n 'cargo' => 'Gerente de Sucursales',\n ])\n );\n $u->administrativo->user()->create([\n 'username' => 'admin3',\n 'tipo' => 'Gerente de Sucursales',\n 'password' => bcrypt('1234567'),\n 'email' => 'admin3@gmail.com'\n ]);\n });\n factory(Personal::class,1)->create()\n ->each(function ($u) {\n $u->administrativo()->save(factory(App\\Administrativo::class)->make([\n 'sucursal_id' => 1,\n 'cargo' => 'Gerente General',\n ])\n );\n $u->administrativo->user()->create([\n 'username' => 'admin4',\n 'tipo' => 'Gerente General',\n 'password' => bcrypt('1234567'),\n 'email' => 'admin4@gmail.com'\n ]);\n });\n\n factory(Personal::class, 10)->create()\n ->each(function ($u) {\n $u->personal_operativo()->save(factory(App\\Personal_operativo::class)->make([\n 'rango' => 'Piloto',\n ])\n );\n });\n factory(Personal::class, 12)->create()\n ->each(function ($u) {\n $u->personal_operativo()->save(factory(App\\Personal_operativo::class)->make([\n 'rango' => 'Copiloto',\n ])\n );\n });\n factory(Personal::class, 12)->create()\n ->each(function ($u) {\n $u->personal_operativo()->save(factory(App\\Personal_operativo::class)->make([\n 'rango' => 'Jefe de Cabina',\n ])\n );\n });\n factory(Personal::class, 42)->create()\n ->each(function ($u) {\n $u->personal_operativo()->save(factory(App\\Personal_operativo::class)->make([\n 'rango' => 'Sobrecargo',\n ])\n );\n });\n\n\n }", "public function createEntity();", "public function crear()\n {\n //\n }", "public static function createPost($datasaved)\n {\n // $var = $nt->notificarAdminBodega('Solicitud envio','contrato/logistica/seguimiento/93');\n // dd($var);\n \n ///////////////////////////////////////////////\n $estado = env('ESTADO_LOGISTICA_SOLICITUD_ENVIO');\n $pais = ModelLogistica::getPaisTienda($datasaved->id_tienda);\n // dd($datasaved->id_tienda);\n $id_sec_guia = ModelLogistica::sec_guia($datasaved->id_tienda);\n $codigo_guia = $pais->abreviatura.'0'.$datasaved->id_tienda.'0'.$id_sec_guia[0]->response;\n $data = self::adaptadorCrear($datasaved,$id_sec_guia,$estado,$codigo_guia);\n $traza = self::generateLog($datasaved->bodega_envio,$id_sec_guia[0]->response,\"Creación de guia \".$codigo_guia);\n\n $valdestino = ModelLogistica::valdestino($datasaved->id_tienda);\n $valdestino = $valdestino->tipo_bodega;\n // dd($traza);\n $respuesta = ModelLogistica::createPost($data,$traza,$datasaved->datosrelaciones,$datasaved->id_tienda);\n\n\t\tif($respuesta=='Error')\n {\n\t\t\t$msm=['msm'=>Messages::$Logistica['error'],'val'=>'Error'];\t\t\n\t\t}\n\t\telseif($respuesta=='ErrorUnico')\n\t\t{\n\t\t\t$msm=['msm'=>Messages::$ExectionGeneral['error_unique'],'val'=>'ErrorUnico'];\t\n\t\t}\n\t\telseif($respuesta=='Insertado')\n\t\t{\n $nt = new Logistica($id_sec_guia,$datasaved->id_tienda,0);\n $lg = $id_sec_guia[0]->response;\n if($valdestino == 1){\n $var = $nt->notificarAdminBodega('Solicitud envio','contrato/logistica/seguimiento/'.$lg);\n }else{\n $var = $nt->notificarAdminTienda('Solicitud envio','contrato/logistica/seguimiento/'.$lg);\n }\n\n\t\t\t$msm=['msm'=>Messages::$Logistica['ok'],'val'=>'Insertado'];\t\n\t\t}\n\t\treturn $msm;\n }", "public function postSave()\n {\n // check if the model already exists\n if ((!isset($this->revisionEnabled) || $this->revisionEnabled)) {\n // if it does, it means we're updating\n\n $changes_to_record = $this->changedRevisionableFields();\n\n $revisions = array();\n\n foreach ($changes_to_record as $key => $change) {\n\n $revisions[] = array(\n 'revisionable_type' => get_class($this),\n 'revisionable_id' => $this->getKey(),\n 'key' => $key,\n 'old_value' => array_get($this->originalData, $key),\n 'new_value' => $this->updatedData[$key],\n 'user_id' => $this->getSystemUserId(),\n 'created_at' => new \\DateTime(),\n 'updated_at' => new \\DateTime(),\n 'activity_id' => $this->getActivityId()\n );\n }\n\n if (count($revisions) > 0) {\n $revision = new Revision();\n \\DB::table($revision->getTable())->insert($revisions);\n }\n\n }\n\n }", "public function Crear()\n {\n $this->visit('/deposito/articulo/')\n ->see('Listado de Articulos')\n ->click('Nuevo')\n ->seePageIs('/deposito/articulo/create')\n ->see('Nuevo Artículo')\n ->type('CodigoArticulo','codigo')\n ->type('NombreArticulo','nombre')\n ->type('DescripcionArticulo','descripcion')\n ->type('path/imagen','imagen')\n ->select('0' or '1','perecedero')\n ->see('Guardar')\n ->see('Cancelar')\n ->press('Guardar')\n ->seePageIs('/deposito/articulo/')\n ->see('CodigoArticulo')\n ->see('categoria')\n ->see('imagen')\n ->see('Editar')\n ->see('Eliminar');\n }", "function aff_detClone($idMod, $idDet){\n $bdd = getBdd();\n $req = $bdd->prepare('INSERT INTO detail_module(idModules, id_Detail) VALUES (?,?)');\n $req->execute(array($idMod,$idDet));\n\n}", "public function store(Request $request)\n {\n $revision = new Revision_Tecnica();\n $revision->fecha = Carbon::now('America/Caracas');\n $revision->user_id = auth()->user()->id;\n $revision->estado_id = $request->input('estado_id');\n $revision->AF_id = $request->input('activo_id');\n $revision->conclusion = 0;\n $revision->save();\n\n\n $mantenimiento = new Mantenimiento();\n $mantenimiento->revision_id = $revision->id_revision;\n $mantenimiento->problema = $request->input('problema');\n $mantenimiento->fecha_inicio =$request->input('fecha_inicio');\n $mantenimiento->save();\n\n $modelo = class_basename($revision);\n HasBitacora::Created($modelo,$revision->id_revision);\n\n //return dd($revision,$mantenimiento);\n return redirect()->route('revisiones_tecnicas.index');\n }", "public function run()\n {\n \tfactory(Docente::class, 15)->create();\n }", "public function demandeCreation($alerte,$entity)\n {\n $alerte->setIntitule('Nouvelle demande');\n $alerte->setObjet('Une nouvelle demande a été faite');\n $alerte->setPIFEClassique($entity);\n $alerte->setRoute('pifeclassique_show');\n $alerte->setDateAlerte(new DateTime());\n $alerte->setOwnerId($entity->getId());\n }", "function create(){\n //\n //create the insert \n $insert = new insert($this);\n //\n //Execute the the insert\n $insert->query($this->entity->get_parent());\n }", "public function storeRevision(Request $request){\n if(!$request->ajax() || Auth::user()->rol_id == 11)return redirect('/');\n\n // datos principales de lote a revision \n $datosLote = Entrega::join('contratos','entregas.id','=','contratos.id')\n ->join('creditos','contratos.id','=','creditos.id')\n ->join('lotes','creditos.lote_id','lotes.id')\n ->join('clientes', 'creditos.prospecto_id', '=', 'clientes.id')\n ->join('personal as c', 'clientes.id', '=', 'c.id')\n ->select('contratos.id as folio', 'creditos.modelo','creditos.fraccionamiento',\n 'creditos.etapa','creditos.manzana','creditos.num_lote',\n DB::raw(\"CONCAT(c.nombre,' ',c.apellidos) AS nombre_cliente\"),\n 'c.celular', \n DB::raw(\"CONCAT(lotes.calle,' Num.',lotes.numero) AS direccion\"),\n 'lotes.manzana', 'lotes.aviso','lotes.id as lote_id',\n DB::raw('DATEDIFF(current_date,entregas.fecha_entrega_real) as diferencia'\n )\n ) \n ->where('contratos.id','=',$request->folio)->get(); // solo el folio requerido\n\n $datosContratista = Ini_obra::join('contratistas','ini_obras.contratista_id','=','contratistas.id')\n ->select('contratistas.id','contratistas.nombre')\n ->where('ini_obras.clave','=',$datosLote[0]->aviso)->get(); // se filtra por la lave de aviso \n\n $observacion = $request->observacion; // observaciones que envia el gestor\n $folio = $request->folio;\n $diferencia = $request->diferencia; \n $id_contratista = $datosContratista[0]->id;\n\n // listado de todods los aspectos a revisar \n ///////// COCHERA ////////////\n $mona_cochera = $request->mona_cochera;\n $centro_carga_cochera = $request->centro_carga_cochera;\n $cuadro_hidraulico_cochera = $request->cuadro_hidraulico_cochera;\n $interfon_cochera = $request->interfon_cochera;\n $cisterna_cochera = $request->cisterna_cochera;\n $bomba_cochera = $request->bomba_cochera;\n $tapa_cisterna_cochera = $request->tapa_cisterna_cochera;\n $tapa_registro_cochera = $request->tapa_registro_cochera;\n $acc_electrico_cochera = $request->acc_electrico_cochera;\n $acabado_muros_cochera = $request->acabado_muros_cochera;\n $acabado_plafon_cochera = $request->acabado_plafon_cochera;\n $piso_cochera = $request->piso_cochera;\n $zoclo_cochera = $request->zoclo_cochera;\n //////// Observacion /////////\n $mona_cochera_obs = $request->mona_cochera_obs;\n $centro_carga_cochera_obs = $request->centro_carga_cochera_obs;\n $cuadro_hidraulico_cochera_obs = $request->cuadro_hidraulico_cochera_obs;\n $interfon_cochera_obs = $request->interfon_cochera_obs;\n $cisterna_cochera_obs = $request->cisterna_cochera_obs;\n $bomba_cochera_obs = $request->bomba_cochera_obs;\n $tapa_cisterna_cochera_obs = $request->tapa_cisterna_cochera_obs;\n $tapa_registro_cochera_obs = $request->tapa_registro_cochera_obs;\n $acc_electrico_cochera_obs = $request->acc_electrico_cochera_obs;\n $acabado_muros_cochera_obs = $request->acabado_muros_cochera_obs;\n $acabado_plafon_cochera_obs = $request->acabado_plafon_cochera_obs;\n $piso_cochera_obs = $request->piso_cochera_obs;\n $zoclo_cochera_obs = $request->zoclo_cochera_obs;\n\n ///////// SALA COMEDOR /////////\n $puerta_pric_sala = $request->puerta_pric_sala;\n $chapa_sala = $request->chapa_sala;\n $sello_marco_sala = $request->sello_marco_sala;\n $ventana_sala = $request->ventana_sala;\n $sello_ventana_sala = $request->sello_ventana_sala;\n $vidrio_ventana_sala = $request->vidrio_ventana_sala;\n $mosquitero_sala = $request->mosquitero_sala;\n $cancel_sala = $request->cancel_sala;\n $sello_cancel_sala = $request->sello_cancel_sala;\n $vidrio_cancel_sala = $request->vidrio_cancel_sala;\n $salida_alarma_sala = $request->salida_alarma_sala;\n $acc_electrico_sala = $request->acc_electrico_sala;\n $acabado_muros_sala = $request->acabado_muros_sala;\n $acabado_plafon_sala = $request->acabado_plafon_sala;\n $piso_sala = $request->piso_sala;\n $zoclo_sala = $request->zoclo_sala;\n ////// Observacion ///////\n $puerta_pric_sala_obs = $request->puerta_pric_sala_obs;\n $chapa_sala_obs = $request->chapa_sala_obs;\n $sello_marco_sala_obs = $request->sello_marco_sala_obs;\n $ventana_sala_obs = $request->ventana_sala_obs;\n $sello_ventana_sala_obs = $request->sello_ventana_sala_obs;\n $vidrio_ventana_sala_obs = $request->vidrio_ventana_sala_obs;\n $mosquitero_sala_obs = $request->mosquitero_sala_obs;\n $cancel_sala_obs = $request->cancel_sala_obs;\n $sello_cancel_sala_obs = $request->sello_cancel_sala_obs;\n $vidrio_cancel_sala_obs = $request->vidrio_cancel_sala_obs;\n $salida_alarma_sala_obs = $request->salida_alarma_sala_obs;\n $acc_electrico_sala_obs = $request->acc_electrico_sala_obs;\n $acabado_muros_sala_obs = $request->acabado_muros_sala_obs;\n $acabado_plafon_sala_obs = $request->acabado_plafon_sala_obs;\n $piso_sala_obs = $request->piso_sala_obs;\n $zoclo_sala_obs = $request->zoclo_sala_obs;\n \n ///////////////// COCINA //////////////\n $tarja_cocina = $request->tarja_cocina;\n $puerta_cocina = $request->puerta_cocina;\n $chapa_cocina = $request->chapa_cocina;\n $sello_pv_cocina = $request->sello_pv_cocina;\n $vidrio_pv_cocina = $request->vidrio_pv_cocina;\n $mosquitero_cocina = $request->mosquitero_cocina;\n $salida_alarma_cocina = $request->salida_alarma_cocina;\n $interfon_cocina = $request->interfon_cocina;\n $acc_electrico_cocina = $request->acc_electrico_cocina;\n $centro_carga_cocina = $request->centro_carga_cocina;\n $inst_gas_cocina = $request->inst_gas_cocina;\n $inst_refrigerador_cocina = $request->inst_refrigerador_cocina;\n $barra_cocina = $request->barra_cocina;\n $azulejo_cocina = $request->azulejo_cocina;\n $acabado_muro_cocina = $request->acabado_muro_cocina;\n $acabado_plafon_cocina = $request->acabado_plafon_cocina;\n $piso_cocina = $request->piso_cocina;\n $zoclo_cocina = $request->zoclo_cocina;\n ///////// Observaciones ////////////\n $tarja_cocina_obs = $request->tarja_cocina_obs;\n $puerta_cocina_obs = $request->puerta_cocina_obs;\n $chapa_cocina_obs = $request->chapa_cocina_obs;\n $sello_pv_cocina_obs = $request->sello_pv_cocina_obs;\n $vidrio_pv_cocina_obs = $request->vidrio_pv_cocina_obs;\n $mosquitero_cocina_obs = $request->mosquitero_cocina_obs;\n $salida_alarma_cocina_obs = $request->salida_alarma_cocina_obs;\n $interfon_cocina_obs = $request->interfon_cocina_obs;\n $acc_electrico_cocina_obs = $request->acc_electrico_cocina_obs;\n $centro_carga_cocina_obs = $request->centro_carga_cocina_obs;\n $inst_gas_cocina_obs = $request->inst_gas_cocina_obs;\n $inst_refrigerador_cocina_obs = $request->inst_refrigerador_cocina_obs;\n $barra_cocina_obs = $request->barra_cocina_obs;\n $azulejo_cocina_obs = $request->azulejo_cocina_obs;\n $acabado_muro_cocina_obs = $request->acabado_muro_cocina_obs;\n $acabado_plafon_cocina_obs = $request->acabado_plafon_cocina_obs;\n $piso_cocina_obs = $request->piso_cocina_obs;\n $zoclo_cocina_obs = $request->zoclo_cocina_obs;\n ////////// MEDIO BAÑO /////////////\n $puerta_mb = $request->puerta_mb; \n $chapa_mb = $request->chapa_mb;\n $barra_lavabo_mb = $request->barra_lavabo_mb;\n $lavabo_mb = $request->lavabo_mb;\n $monomando_mb = $request->monomando_mb;\n $wc_mb = $request->wc_mb;\n $acc_bano_mb = $request->acc_bano_mb;\n $acc_electrico_mb = $request->acc_electrico_mb;\n $ventana_mb = $request->ventana_mb;\n $sello_ventana_mb = $request->sello_ventana_mb;\n $vidrio_mb = $request->vidrio_mb;\n $mosquitero_mb = $request->mosquitero_mb;\n $acabado_muro_mb = $request->acabado_muro_mb;\n $acabado_plafon_mb = $request->acabado_plafon_mb;\n $piso_mb = $request->piso_mb;\n $zoclo_mb = $request->zoclo_mb;\n ////////// Observacion //////////\n $puerta_mb_obs = $request->puerta_mb_obs; \n $chapa_mb_obs = $request->chapa_mb_obs;\n $barra_lavabo_mb_obs = $request->barra_lavabo_mb_obs;\n $lavabo_mb_obs = $request->lavabo_mb_obs;\n $monomando_mb_obs = $request->monomando_mb_obs;\n $wc_mb_obs = $request->wc_mb_obs;\n $acc_bano_mb_obs = $request->acc_bano_mb_obs;\n $acc_electrico_mb_obs = $request->acc_electrico_mb_obs;\n $ventana_mb_obs = $request->ventana_mb_obs;\n $sello_ventana_mb_obs = $request->sello_ventana_mb_obs;\n $vidrio_mb_obs = $request->vidrio_mb_obs;\n $mosquitero_mb_obs = $request->mosquitero_mb_obs;\n $acabado_muro_mb_obs = $request->acabado_muro_mb_obs;\n $acabado_plafon_mb_obs = $request->acabado_plafon_mb_obs;\n $piso_mb_obs = $request->piso_mb_obs;\n $zoclo_mb_obs = $request->zoclo_mb_obs;\n\n ///////////// PATIO /////////////////\n $calentador_patio = $request->calentador_patio; \n $inst_gas_patio = $request->inst_gas_patio; \n $acc_electrico_patio = $request->acc_electrico_patio; \n $lavadero_patio = $request->lavadero_patio; \n $llaves_nariz_patio = $request->llaves_nariz_patio; \n $descarga_lavadora_patio = $request->descarga_lavadora_patio; \n $coladera_patio = $request->coladera_patio; \n $tapa_registro_patio = $request->tapa_registro_patio; \n $escalera_marina_patio = $request->escalera_marina_patio; \n $techumbre_patio = $request->techumbre_patio; \n $firme_cilindros_patio = $request->firme_cilindros_patio; \n $rodapie_patio = $request->rodapie_patio; \n $acabado_muros_patio = $request->acabado_muros_patio; \n $acabado_volado_patio = $request->acabado_volado_patio; \n $piso_patio = $request->piso_patio; \n $zoclo_patio = $request->zoclo_patio; \n ///////// Observacion //////////////\n $calentador_patio_obs = $request->calentador_patio_obs; \n $inst_gas_patio_obs = $request->inst_gas_patio_obs; \n $acc_electrico_patio_obs = $request->acc_electrico_patio_obs; \n $lavadero_patio_obs = $request->lavadero_patio_obs; \n $llaves_nariz_patio_obs = $request->llaves_nariz_patio_obs; \n $descarga_lavadora_patio_obs = $request->descarga_lavadora_patio_obs; \n $coladera_patio_obs = $request->coladera_patio_obs; \n $tapa_registro_patio_obs = $request->tapa_registro_patio_obs; \n $escalera_marina_patio_obs = $request->escalera_marina_patio_obs; \n $techumbre_patio_obs = $request->techumbre_patio_obs; \n $firme_cilindros_patio_obs = $request->firme_cilindros_patio_obs; \n $rodapie_patio_obs = $request->rodapie_patio_obs; \n $acabado_muros_patio_obs = $request->acabado_muros_patio_obs; \n $acabado_volado_patio_obs = $request->acabado_volado_patio_obs; \n $piso_patio_obs = $request->piso_patio_obs; \n $zoclo_patio_obs = $request->zoclo_patio_obs;\n \n /////////////// ESCALERA ////////////////\n $nicho_escalera = $request->nicho_escalera; \n $escalones_escalera = $request->escalones_escalera;\n $piso_escalera = $request->piso_escalera;\n $zoclo_escalera = $request->zoclo_escalera;\n $barandal_escalera = $request->barandal_escalera;\n $pasamanos_escalera = $request->pasamanos_escalera;\n $sardinel_escalera = $request->sardinel_escalera;\n $macetero_escalera = $request->macetero_escalera;\n $cajillos_escalera = $request->cajillos_escalera;\n $acc_electricos_escalera = $request->acc_electricos_escalera;\n $acabado_muro_escalera = $request->acabado_muro_escalera;\n $acabado_plafon_escalera = $request->acabado_plafon_escalera;\n ///////////// Observacion //////////////\n $nicho_escalera_obs = $request->nicho_escalera_obs; \n $escalones_escalera_obs = $request->escalones_escalera_obs;\n $piso_escalera_obs = $request->piso_escalera_obs;\n $zoclo_escalera_obs = $request->zoclo_escalera_obs;\n $barandal_escalera_obs = $request->barandal_escalera_obs;\n $pasamanos_escalera_obs = $request->pasamanos_escalera_obs;\n $sardinel_escalera_obs = $request->sardinel_escalera_obs;\n $macetero_escalera_obs = $request->macetero_escalera_obs;\n $cajillos_escalera_obs = $request->cajillos_escalera_obs;\n $acc_electricos_escalera_obs = $request->acc_electricos_escalera_obs;\n $acabado_muro_escalera_obs = $request->acabado_muro_escalera_obs;\n $acabado_plafon_escalera_obs = $request->acabado_plafon_escalera_obs;\n /////////////// BAÑO COMUN //////////////////\n $puerta_bc = $request->puerta_bc;\n $chapa_bc = $request->chapa_bc;\n $sello_marco_bc = $request->sello_marco_bc;\n $barra_lavabo_bc = $request->barra_lavabo_bc;\n $lavabo_bc = $request->lavabo_bc;\n $monomando_bc = $request->monomando_bc;\n $wc_bc = $request->wc_bc;\n $regadera_bc = $request->regadera_bc;\n $manerales_bc = $request->manerales_bc;\n $coladera_bc = $request->coladera_bc;\n $acc_bano_bc = $request->acc_bano_bc;\n $acc_electricos_bc = $request->acc_electricos_bc;\n $ventana_bc = $request->ventana_bc;\n $sello_ventana_bc = $request->sello_ventana_bc;\n $vidrio_ventana_bc = $request->vidrio_ventana_bc;\n $mosquitero_bc = $request->mosquitero_bc;\n $acabado_muro_bc = $request->acabado_muro_bc;\n $acabado_plafon_bc = $request->acabado_plafon_bc;\n $sardinel_bc = $request->sardinel_bc;\n $piso_bc = $request->piso_bc;\n $zoclo_bc = $request->zoclo_bc;\n ///////////// Observacion ////////////////\n $puerta_bc_obs = $request->puerta_bc_obs;\n $chapa_bc_obs = $request->chapa_bc_obs;\n $sello_marco_bc_obs = $request->sello_marco_bc_obs;\n $barra_lavabo_bc_obs = $request->barra_lavabo_bc_obs;\n $lavabo_bc_obs = $request->lavabo_bc_obs;\n $monomando_bc_obs = $request->monomando_bc_obs;\n $wc_bc_obs = $request->wc_bc_obs;\n $regadera_bc_obs = $request->regadera_bc_obs;\n $manerales_bc_obs = $request->manerales_bc_obs;\n $coladera_bc_obs = $request->coladera_bc_obs;\n $acc_bano_bc_obs = $request->acc_bano_bc_obs;\n $acc_electricos_bc_obs = $request->acc_electricos_bc_obs;\n $ventana_bc_obs = $request->ventana_bc_obs;\n $sello_ventana_bc_obs = $request->sello_ventana_bc_obs;\n $vidrio_ventana_bc_obs = $request->vidrio_ventana_bc_obs;\n $mosquitero_bc_obs = $request->mosquitero_bc_obs;\n $acabado_muro_bc_obs = $request->acabado_muro_bc_obs;\n $acabado_plafon_bc_obs = $request->acabado_plafon_bc_obs;\n $sardinel_bc_obs = $request->sardinel_bc_obs;\n $piso_bc_obs = $request->piso_bc_obs;\n $zoclo_bc_obs = $request->zoclo_bc_obs;\n \n ///////////// ESTANCIA //////////////\n $ventana_estancia = $request->ventana_estancia;\n $sello_ventana_estancia = $request->sello_ventana_estancia;\n $vidrio_ventana_estancia = $request->vidrio_ventana_estancia;\n $mosquitero_estancia = $request->mosquitero_estancia;\n $interfon_estancia = $request->interfon_estancia;\n $acc_electricos_estancia = $request->acc_electricos_estancia;\n $acabado_muro_estancia = $request->acabado_muro_estancia;\n $acabado_plafon_estancia = $request->acabado_plafon_estancia;\n $piso_estancia = $request->piso_estancia;\n $zoclo_estancia = $request->zoclo_estancia;\n //////////// Observacion /////////////\n $ventana_estancia_obs = $request->ventana_estancia_obs;\n $sello_ventana_estancia_obs = $request->sello_ventana_estancia_obs;\n $vidrio_ventana_estancia_obs = $request->vidrio_ventana_estancia_obs;\n $mosquitero_estancia_obs = $request->mosquitero_estancia_obs;\n $interfon_estancia_obs = $request->interfon_estancia_obs;\n $acc_electricos_estancia_obs = $request->acc_electricos_estancia_obs;\n $acabado_muro_estancia_obs = $request->acabado_muro_estancia_obs;\n $acabado_plafon_estancia_obs = $request->acabado_plafon_estancia_obs;\n $piso_estancia_obs = $request->piso_estancia_obs;\n $zoclo_estancia_obs = $request->zoclo_estancia_obs;\n\n //////////// Recamara Principal //////////////\n $puerta_rp = $request->puerta_rp;\n $chapa_rp = $request->chapa_rp;\n $sello_marco_rp = $request->sello_marco_rp;\n $cancel_rp = $request->cancel_rp;\n $sello_cancel_rp = $request->sello_cancel_rp;\n $vidrio_cancel_rp = $request->vidrio_cancel_rp;\n $mosquitero_rp = $request->mosquitero_rp;\n $balcon_rp = $request->balcon_rp;\n $barandal_rp = $request->barandal_rp;\n $acc_electricos_rp = $request->acc_electricos_rp;\n $interfon_rp = $request->interfon_rp;\n $salida_alarma_rp = $request->salida_alarma_rp;\n $acabado_muro_rp = $request->acabado_muro_rp;\n $acabado_plafon_rp = $request->acabado_plafon_rp;\n $piso_rp = $request->piso_rp;\n $zoclo_rp = $request->zoclo_rp;\n //////////////// Observacion //////////////\n $puerta_rp_obs = $request->puerta_rp_obs;\n $chapa_rp_obs = $request->chapa_rp_obs;\n $sello_marco_rp_obs = $request->sello_marco_rp_obs;\n $cancel_rp_obs = $request->cancel_rp_obs;\n $sello_cancel_rp_obs = $request->sello_cancel_rp_obs;\n $vidrio_cancel_rp_obs = $request->vidrio_cancel_rp_obs;\n $mosquitero_rp_obs = $request->mosquitero_rp_obs;\n $balcon_rp_obs = $request->balcon_rp_obs;\n $barandal_rp_obs = $request->barandal_rp_obs;\n $acc_electricos_rp_obs = $request->acc_electricos_rp_obs;\n $interfon_rp_obs = $request->interfon_rp_obs;\n $salida_alarma_rp_obs = $request->salida_alarma_rp_obs;\n $acabado_muro_rp_obs = $request->acabado_muro_rp_obs;\n $acabado_plafon_rp_obs = $request->acabado_plafon_rp_obs;\n $piso_rp_obs = $request->piso_rp_obs;\n $zoclo_rp_obs = $request->zoclo_rp_obs;\n\n ///////////// BAÑO RECAMARA PRINCIPAL ////////////////\n $puerta_brp = $request->puerta_brp;\n $chapa_brp = $request->chapa_brp;\n $sello_marco_brp = $request->sello_marco_brp;\n $barra_lavabo_brp = $request->barra_lavabo_brp;\n $lavabo_brp = $request->lavabo_brp;\n $monomando_brp = $request->monomando_brp;\n $wc_brp = $request->wc_brp;\n $regadera_brp = $request->regadera_brp;\n $manerales_brp = $request->manerales_brp;\n $coladera_brp = $request->coladera_brp;\n $acc_bano_brp = $request->acc_bano_brp;\n $acc_electrico_brp = $request->acc_electrico_brp;\n $ventana_brp = $request->ventana_brp;\n $sello_ventana_brp = $request->sello_ventana_brp;\n $vidrio_ventana_brp = $request->vidrio_ventana_brp;\n $mosquitero_brp = $request->mosquitero_brp;\n $acabado_muro_brp = $request->acabado_muro_brp;\n $acabado_plafon_brp = $request->acabado_plafon_brp;\n $sardinel_brp = $request->sardinel_brp;\n $piso_brp = $request->piso_brp;\n $zoclo_brp = $request->zoclo_brp;\n /////////// Observacion ///////////////\n $puerta_brp_obs = $request->puerta_brp_obs;\n $chapa_brp_obs = $request->chapa_brp_obs;\n $sello_marco_brp_obs = $request->sello_marco_brp_obs;\n $barra_lavabo_brp_obs = $request->barra_lavabo_brp_obs;\n $lavabo_brp_obs = $request->lavabo_brp_obs;\n $monomando_brp_obs = $request->monomando_brp_obs;\n $wc_brp_obs = $request->wc_brp_obs;\n $regadera_brp_obs = $request->regadera_brp_obs;\n $manerales_brp_obs = $request->manerales_brp_obs;\n $coladera_brp_obs = $request->coladera_brp_obs;\n $acc_bano_brp_obs = $request->acc_bano_brp_obs;\n $acc_electrico_brp_obs = $request->acc_electrico_brp_obs;\n $ventana_brp_obs = $request->ventana_brp_obs;\n $sello_ventana_brp_obs = $request->sello_ventana_brp_obs;\n $vidrio_ventana_brp_obs = $request->vidrio_ventana_brp_obs;\n $mosquitero_brp_obs = $request->mosquitero_brp_obs;\n $acabado_muro_brp_obs = $request->acabado_muro_brp_obs;\n $acabado_plafon_brp_obs = $request->acabado_plafon_brp_obs;\n $sardinel_brp_obs = $request->sardinel_brp_obs;\n $piso_brp_obs = $request->piso_brp_obs;\n $zoclo_brp_obs = $request->zoclo_brp_obs;\n\n //////////////// Vestidor //////////////////\n $acc_electrico_vest = $request->acc_electrico_vest;\n $acabado_muro_vest = $request->acabado_muro_vest;\n $acabado_plafon_vest = $request->acabado_plafon_vest;\n $piso_vest = $request->piso_vest;\n $zoclo_vest = $request->zoclo_vest;\n /////////// Observacion ////////////\n $acc_electrico_vest_obs = $request->acc_electrico_vest_obs;\n $acabado_muro_vest_obs = $request->acabado_muro_vest_obs;\n $acabado_plafon_vest_obs = $request->acabado_plafon_vest_obs;\n $piso_vest_obs = $request->piso_vest_obs;\n $zoclo_vest_obs = $request->zoclo_vest_obs;\n /////////////// RECAMARA 2 ///////////////\n $puerta_rec2 = $request->puerta_rec2;\n $chapa_rec2 = $request->chapa_rec2;\n $sello_marco_rec2 = $request->sello_marco_rec2;\n $cancel_rec2 = $request->cancel_rec2;\n $sello_cancel_rec2 = $request->sello_cancel_rec2;\n $vidrio_cancel_rec2 = $request->vidrio_cancel_rec2;\n $mosquitero_rec2 = $request->mosquitero_rec2;\n $acc_rec2 = $request->acc_rec2;\n $salida_alarma_rec2 = $request->salida_alarma_rec2;\n $acabado_muro_rec2 = $request->acabado_muro_rec2;\n $acabado_plafon_rec2 = $request->acabado_plafon_rec2;\n $piso_rec2 = $request->piso_rec2;\n $zoclo_rec2 = $request->zoclo_rec2;\n ////////////// Observacion ////////////\n $puerta_rec2_obs = $request->puerta_rec2_obs;\n $chapa_rec2_obs = $request->chapa_rec2_obs;\n $sello_marco_rec2_obs = $request->sello_marco_rec2_obs;\n $cancel_rec2_obs = $request->cancel_rec2_obs;\n $sello_cancel_rec2_obs = $request->sello_cancel_rec2_obs;\n $vidrio_cancel_rec2_obs = $request->vidrio_cancel_rec2_obs;\n $mosquitero_rec2_obs = $request->mosquitero_rec2_obs;\n $acc_rec2_obs = $request->acc_rec2_obs;\n $salida_alarma_rec2_obs = $request->salida_alarma_rec2_obs;\n $acabado_muro_rec2_obs = $request->acabado_muro_rec2_obs;\n $acabado_plafon_rec2_obs = $request->acabado_plafon_rec2_obs;\n $piso_rec2_obs = $request->piso_rec2_obs;\n $zoclo_rec2_obs = $request->zoclo_rec2_obs;\n\n /////////////// RECAMARA 3 ///////////////\n $puerta_rec3 = $request->puerta_rec3;\n $chapa_rec3 = $request->chapa_rec3;\n $sello_marco_rec3 = $request->sello_marco_rec3;\n $cancel_rec3 = $request->cancel_rec3;\n $sello_cancel_rec3 = $request->sello_cancel_rec3;\n $vidrio_cancel_rec3 = $request->vidrio_cancel_rec3;\n $mosquitero_rec3 = $request->mosquitero_rec3;\n $acc_rec3 = $request->acc_rec3;\n $salida_alarma_rec3 = $request->salida_alarma_rec3;\n $acabado_muro_rec3 = $request->acabado_muro_rec3;\n $acabado_plafon_rec3 = $request->acabado_plafon_rec3;\n $piso_rec3 = $request->piso_rec3;\n $zoclo_rec3 = $request->zoclo_rec3;\n ////////////// Observacion ////////////\n $puerta_rec3_obs = $request->puerta_rec3_obs;\n $chapa_rec3_obs = $request->chapa_rec3_obs;\n $sello_marco_rec3_obs = $request->sello_marco_rec3_obs;\n $cancel_rec3_obs = $request->cancel_rec3_obs;\n $sello_cancel_rec3_obs = $request->sello_cancel_rec3_obs;\n $vidrio_cancel_rec3_obs = $request->vidrio_cancel_rec3_obs;\n $mosquitero_rec3_obs = $request->mosquitero_rec3_obs;\n $acc_rec3_obs = $request->acc_rec3_obs;\n $salida_alarma_rec3_obs = $request->salida_alarma_rec3_obs;\n $acabado_muro_rec3_obs = $request->acabado_muro_rec3_obs;\n $acabado_plafon_rec3_obs = $request->acabado_plafon_rec3_obs;\n $piso_rec3_obs = $request->piso_rec3_obs;\n $zoclo_rec3_obs = $request->zoclo_rec3_obs;\n ///////////// AZOTEA ////////////////\n $pretiles_azotea = $request->pretiles_azotea;\n $impermeabilizacion = $request->impermeabilizacion;\n $domos_azotea = $request->domos_azotea;\n $mufas_azotea = $request->mufas_azotea;\n $jarros_azotea = $request->jarros_azotea;\n $ventilas_azotea = $request->ventilas_azotea;\n $base_tinaco_azotea = $request->base_tinaco_azotea;\n $tinaco_azotea = $request->tinaco_azotea;\n $calentador_solar_azotea = $request->calentador_solar_azotea;\n $punta_gas_azotea = $request->punta_gas_azotea;\n $anclas_azotea = $request->anclas_azotea;\n $limpieza_azotea = $request->limpieza_azotea;\n ///////// Observacion ///////////\n $pretiles_azotea_obs = $request->pretiles_azotea_obs;\n $impermeabilizacion_obs = $request->impermeabilizacion_obs;\n $domos_azotea_obs = $request->domos_azotea_obs;\n $mufas_azotea_obs = $request->mufas_azotea_obs;\n $jarros_azotea_obs = $request->jarros_azotea_obs;\n $ventilas_azotea_obs = $request->ventilas_azotea_obs;\n $base_tinaco_azotea_obs = $request->base_tinaco_azotea_obs;\n $tinaco_azotea_obs = $request->tinaco_azotea_obs;\n $calentador_solar_azotea_obs = $request->calentador_solar_azotea_obs;\n $punta_gas_azotea_obs = $request->punta_gas_azotea_obs;\n $anclas_azotea_obs = $request->anclas_azotea_obs;\n $limpieza_azotea_obs = $request->limpieza_azotea_obs;\n /////////// GENERALES //////////////\n $limpieza_interior = $request->limpieza_interior;\n $limpieza_exterior = $request->limpieza_exterior;\n $limpieza_vidrios = $request->limpieza_vidrios;\n $limpieza_domos = $request->limpieza_domos;\n $plastico_muebles = $request->plastico_muebles;\n $candados = $request->candados;\n $llaves = $request->llaves;\n $num_oficial = $request->num_oficial;\n /////////// Observacion ///////////\n $limpieza_interior_obs = $request->limpieza_interior_obs;\n $limpieza_exterior_obs = $request->limpieza_exterior_obs;\n $limpieza_vidrios_obs = $request->limpieza_vidrios_obs;\n $limpieza_domos_obs = $request->limpieza_domos_obs;\n $plastico_muebles_obs = $request->plastico_muebles_obs;\n $candados_obs = $request->candados_obs;\n $llaves_obs = $request->llaves_obs;\n $num_oficial_obs = $request->num_oficial_obs;\n\n try{\n DB::beginTransaction();\n $revisionPrevia = new Revision_previa();\n $revisionPrevia->id = $folio;\n $revisionPrevia->observaciones = $observacion;\n $revisionPrevia->id_contratista = $id_contratista;\n $revisionPrevia->save();\n\n $entregas = Entrega::findOrFail($folio);\n\n if($diferencia <= 1)\n $entregas->revision_previa = 2;\n else{\n $entregas->revision_previa = 1;\n }\n $entregas->save();\n \n\n ////////////////// Parte para Registrar detalles /////////\n /////////////////// COCHERA\n if($mona_cochera == 1){\n $this->storeDetalle($folio,'Mona',1,$mona_cochera_obs);\n }\n if($centro_carga_cochera == 1){\n $this->storeDetalle($folio,'Centro de carga',1,$centro_carga_cochera_obs);\n }\n if($cuadro_hidraulico_cochera == 1){\n $this->storeDetalle($folio,'Cuadro hidráulico',1,$cuadro_hidraulico_cochera_obs);\n }\n if($interfon_cochera == 1){\n $this->storeDetalle($folio,'Interfon',1,$interfon_cochera_obs);\n }\n if($cisterna_cochera == 1){\n $this->storeDetalle($folio,'Cisterna',1,$cisterna_cochera_obs);\n }\n if($bomba_cochera == 1){\n $this->storeDetalle($folio,'Bomba',1,$bomba_cochera_obs);\n }\n if($tapa_cisterna_cochera == 1){\n $this->storeDetalle($folio,'Tapa Cisterna',1,$tapa_cisterna_cochera_obs);\n }\n if($tapa_registro_cochera == 1){\n $this->storeDetalle($folio,'Tapas registros',1,$tapa_registro_cochera_obs);\n }\n if($acc_electrico_cochera == 1){\n $this->storeDetalle($folio,'Acc. Eléctricos',1,$acc_electrico_cochera_obs);\n }\n if($acabado_muros_cochera == 1){\n $this->storeDetalle($folio,'Acabado muros',1,$acabado_muros_cochera_obs);\n }\n if($acabado_plafon_cochera == 1){\n $this->storeDetalle($folio,'Acabado plafón',1,$acabado_plafon_cochera_obs);\n }\n if($piso_cochera == 1){\n $this->storeDetalle($folio,'Piso',1,$piso_cochera_obs);\n }\n if($zoclo_cochera == 1){\n $this->storeDetalle($folio,'Zoclo',1,$zoclo_cochera_obs);\n }\n\n //////////////////// SALA COMEDOR \n if($puerta_pric_sala == 1){\n $this->storeDetalle($folio,'Puerta principal',2,$puerta_pric_sala_obs);\n }\n if($chapa_sala == 1){\n $this->storeDetalle($folio,'Chapa',2,$chapa_sala_obs);\n }\n if($sello_marco_sala == 1){\n $this->storeDetalle($folio,'Sello marco',2,$sello_marco_sala_obs);\n }\n if($ventana_sala == 1){\n $this->storeDetalle($folio,'Ventana',2,$ventana_sala_obs);\n }\n if($sello_ventana_sala == 1){\n $this->storeDetalle($folio,'Sello ventana',2,$sello_ventana_sala_obs);\n }\n if($vidrio_ventana_sala == 1){\n $this->storeDetalle($folio,'Vidrio ventana',2,$vidrio_ventana_sala_obs);\n }\n if($mosquitero_sala == 1){\n $this->storeDetalle($folio,'Mosquitero',2,$mosquitero_sala_obs);\n }\n if($cancel_sala == 1){\n $this->storeDetalle($folio,'Cancel',2,$cancel_sala_obs);\n }\n if($sello_cancel_sala == 1){\n $this->storeDetalle($folio,'Sello cancel',2,$sello_cancel_sala_obs);\n }\n if($vidrio_cancel_sala == 1){\n $this->storeDetalle($folio,'Vidrio cancel',2,$vidrio_cancel_sala_obs);\n }\n if($salida_alarma_sala == 1){\n $this->storeDetalle($folio,'Salida alarma',2,$salida_alarma_sala_obs);\n }\n if($acc_electrico_sala == 1){\n $this->storeDetalle($folio,'Acc. Eléctricos',2,$acc_electrico_sala_obs);\n }\n if($acabado_muros_sala == 1){\n $this->storeDetalle($folio,'Acabado muros',2,$acabado_muros_sala_obs);\n }\n if($acabado_plafon_sala == 1){\n $this->storeDetalle($folio,'Acabado plafón',2,$acabado_plafon_sala_obs);\n }\n if($piso_sala == 1){\n $this->storeDetalle($folio,'Piso',2,$piso_sala_obs);\n }\n if($zoclo_sala == 1){\n $this->storeDetalle($folio,'Zoclo',2,$zoclo_sala_obs);\n }\n /////////////// COCINA\n if($tarja_cocina == 1){\n $this->storeDetalle($folio,'Tarja',3,$tarja_cocina_obs);\n }\n if($puerta_cocina == 1){\n $this->storeDetalle($folio,'Puerta/ventana',3,$puerta_cocina_obs);\n }\n if($chapa_cocina == 1){\n $this->storeDetalle($folio,'Chapa',3,$chapa_cocina_obs);\n }\n if($sello_pv_cocina == 1){\n $this->storeDetalle($folio,'Sello en p/v',3,$sello_pv_cocina_obs);\n }\n if($vidrio_pv_cocina == 1){\n $this->storeDetalle($folio,'Vidrio en p/v',3,$vidrio_pv_cocina_obs);\n }\n if($mosquitero_cocina == 1){\n $this->storeDetalle($folio,'Mosquitero',3,$mosquitero_cocina_obs);\n }\n if($salida_alarma_cocina == 1){\n $this->storeDetalle($folio,'Salida de alarma',3,$salida_alarma_cocina_obs);\n }\n if($interfon_cocina == 1){\n $this->storeDetalle($folio,'Interfón',3,$interfon_cocina_obs);\n }\n if($acc_electrico_cocina == 1){\n $this->storeDetalle($folio,'Acc. Eléctricos',3,$acc_electrico_cocina_obs);\n }\n if($centro_carga_cocina == 1){\n $this->storeDetalle($folio,'Centro de carga',3,$centro_carga_cocina_obs);\n }\n if($inst_gas_cocina == 1){\n $this->storeDetalle($folio,'Inst. Gas',3,$inst_gas_cocina_obs);\n }\n if($inst_refrigerador_cocina == 1){\n $this->storeDetalle($folio,'Inst. Refrigerador',3,$inst_refrigerador_cocina_obs);\n }\n if($barra_cocina == 1){\n $this->storeDetalle($folio,'Barra',3,$barra_cocina_obs);\n }\n if($azulejo_cocina == 1){\n $this->storeDetalle($folio,'Azulejo muro',3,$azulejo_cocina_obs);\n }\n if($acabado_muro_cocina == 1){\n $this->storeDetalle($folio,'Acabado muros',3,$acabado_muro_cocina_obs);\n }\n if($acabado_plafon_cocina == 1){\n $this->storeDetalle($folio,'Acabado plafón',3,$acabado_plafon_cocina_obs);\n }\n if($piso_cocina == 1){\n $this->storeDetalle($folio,'Piso',3,$piso_cocina_obs);\n }\n if($zoclo_cocina == 1){\n $this->storeDetalle($folio,'Zoclo',3,$zoclo_cocina_obs);\n }\n\n //////////////////// MEDIO BAÑO\n if($puerta_mb == 1){\n $this->storeDetalle($folio,'Puerta',4,$puerta_mb_obs);\n }\n if($chapa_mb == 1){\n $this->storeDetalle($folio,'Chapa',4,$chapa_mb_obs);\n }\n if($barra_lavabo_mb == 1){\n $this->storeDetalle($folio,'Barra lavabo',4,$barra_lavabo_mb_obs);\n }\n if($lavabo_mb == 1){\n $this->storeDetalle($folio,'Lavabo',4,$lavabo_mb_obs);\n }\n if($monomando_mb == 1){\n $this->storeDetalle($folio,'Monomando',4,$monomando_mb_obs);\n }\n if($wc_mb == 1){\n $this->storeDetalle($folio,'WC',4,$wc_mb_obs);\n }\n if($acc_bano_mb == 1){\n $this->storeDetalle($folio,'Acc. Baño',4,$acc_bano_mb_obs);\n }\n if($acc_electrico_mb == 1){\n $this->storeDetalle($folio,'Acc. Eléctricos',4,$acc_electrico_mb_obs);\n }\n if($ventana_mb == 1){\n $this->storeDetalle($folio,'Ventana',4,$ventana_mb_obs);\n }\n if($sello_ventana_mb == 1){\n $this->storeDetalle($folio,'Sello ventana',4,$sello_ventana_mb_obs);\n }\n if($vidrio_mb == 1){\n $this->storeDetalle($folio,'Vidrio ventana',4,$vidrio_mb_obs);\n }\n if($mosquitero_mb == 1){\n $this->storeDetalle($folio,'Mosquitero',4,$mosquitero_mb_obs);\n }\n if($acabado_muro_mb == 1){\n $this->storeDetalle($folio,'Acabado muros',4,$acabado_muro_mb_obs);\n }\n if($acabado_plafon_mb == 1){\n $this->storeDetalle($folio,'Acabado plafón',4,$acabado_plafon_mb_obs);\n }\n if($piso_mb == 1){\n $this->storeDetalle($folio,'Piso',4,$piso_mb_obs);\n }\n if($zoclo_mb == 1){\n $this->storeDetalle($folio,'Puerta',4,$zoclo_mb_obs);\n }\n\n /////////////// PATIO\n if($calentador_patio == 1){\n $this->storeDetalle($folio,'Calentador',5,$calentador_patio_obs);\n }\n if($inst_gas_patio == 1){\n $this->storeDetalle($folio,'Inst. Gas',5,$inst_gas_patio_obs);\n }\n if($acc_electrico_patio == 1){\n $this->storeDetalle($folio,'Acc. Eléctricos',5,$acc_electrico_patio_obs);\n }\n if($lavadero_patio == 1){\n $this->storeDetalle($folio,'Lavadero',5,$lavadero_patio_obs);\n }\n if($llaves_nariz_patio == 1){\n $this->storeDetalle($folio,'Llaves nariz',5,$llaves_nariz_patio_obs);\n }\n if($descarga_lavadora_patio == 1){\n $this->storeDetalle($folio,'Descarga lavadora',5,$descarga_lavadora_patio_obs);\n }\n if($coladera_patio == 1){\n $this->storeDetalle($folio,'Coladera',5,$coladera_patio_obs);\n }\n if($tapa_registro_patio == 1){\n $this->storeDetalle($folio,'Tapa registro',5,$tapa_registro_patio_obs);\n }\n if($escalera_marina_patio == 1){\n $this->storeDetalle($folio,'Escalera marina',5,$escalera_marina_patio_obs);\n }\n if($techumbre_patio == 1){\n $this->storeDetalle($folio,'Techumbre patio',5,$techumbre_patio_obs);\n }\n if($firme_cilindros_patio == 1){\n $this->storeDetalle($folio,'Firme cilindros',5,$firme_cilindros_patio_obs);\n }\n if($rodapie_patio == 1){\n $this->storeDetalle($folio,'Rodapie',5,$rodapie_patio_obs);\n }\n if($acabado_muros_patio == 1){\n $this->storeDetalle($folio,'Acabado muros',5,$acabado_muros_patio_obs);\n }\n if($acabado_volado_patio == 1){\n $this->storeDetalle($folio,'Acabado volado',5,$acabado_volado_patio_obs);\n }\n if($piso_patio == 1){\n $this->storeDetalle($folio,'Piso',5,$piso_patio_obs);\n }\n if($zoclo_patio == 1){\n $this->storeDetalle($folio,'Zoclo',5,$zoclo_patio_obs);\n }\n\n ////////////// ESCALERA\n if($nicho_escalera == 1){\n $this->storeDetalle($folio,'Nicho',6,$nicho_escalera_obs);\n }\n if($escalones_escalera == 1){\n $this->storeDetalle($folio,'Escalones',6,$escalones_escalera_obs);\n }\n if($piso_escalera == 1){\n $this->storeDetalle($folio,'Piso',6,$piso_escalera_obs);\n }\n if($zoclo_escalera == 1){\n $this->storeDetalle($folio,'Zoclo',6,$zoclo_escalera_obs);\n }\n if($barandal_escalera == 1){\n $this->storeDetalle($folio,'Barandal',6,$barandal_escalera_obs);\n }\n if($pasamanos_escalera == 1){\n $this->storeDetalle($folio,'Pasamanos',6,$pasamanos_escalera_obs);\n }\n if($sardinel_escalera == 1){\n $this->storeDetalle($folio,'Sardinel',6,$sardinel_escalera_obs);\n }\n if($macetero_escalera == 1){\n $this->storeDetalle($folio,'Macetero',6,$macetero_escalera_obs);\n }\n if($cajillos_escalera == 1){\n $this->storeDetalle($folio,'Cajillos',6,$cajillos_escalera_obs);\n }\n if($acc_electricos_escalera == 1){\n $this->storeDetalle($folio,'Acc. Eléctricos',6,$acc_electricos_escalera_obs);\n }\n if($acabado_muros_patio == 1){\n $this->storeDetalle($folio,'Acabado muros',6,$acabado_muros_patio_obs);\n }\n if($acabado_plafon_escalera == 1){\n $this->storeDetalle($folio,'Acabado plafón',6,$acabado_plafon_escalera_obs);\n }\n\n ///////////// BAÑO COMÚN\n if($puerta_bc == 1){\n $this->storeDetalle($folio,'Puerta',7,$puerta_bc_obs);\n }\n if($chapa_bc == 1){\n $this->storeDetalle($folio,'Chapa',7,$chapa_bc_obs);\n }\n if($sello_marco_bc == 1){\n $this->storeDetalle($folio,'Sello marco',7,$sello_marco_bc_obs);\n }\n if($barra_lavabo_bc == 1){\n $this->storeDetalle($folio,'Barra lavabo',7,$barra_lavabo_bc_obs);\n }\n if($lavabo_bc == 1){\n $this->storeDetalle($folio,'Lavabo',7,$lavabo_bc_obs);\n }\n if($monomando_bc == 1){\n $this->storeDetalle($folio,'Monomando',7,$monomando_bc_obs);\n }\n if($wc_bc == 1){\n $this->storeDetalle($folio,'WC',7,$wc_bc_obs);\n }\n if($regadera_bc == 1){\n $this->storeDetalle($folio,'Regadera',7,$regadera_bc_obs);\n }\n if($manerales_bc == 1){\n $this->storeDetalle($folio,'Manerales',7,$manerales_bc_obs);\n }\n if($coladera_bc == 1){\n $this->storeDetalle($folio,'Coladera',7,$coladera_bc_obs);\n }\n if($acc_bano_bc == 1){\n $this->storeDetalle($folio,'Acc. Baño',7,$acc_bano_bc_obs);\n }\n if($acc_electricos_bc == 1){\n $this->storeDetalle($folio,'Acc. Eléctricos',7,$acc_electricos_bc_obs);\n }\n if($ventana_bc == 1){\n $this->storeDetalle($folio,'Ventana',7,$ventana_bc_obs);\n }\n if($sello_ventana_bc == 1){\n $this->storeDetalle($folio,'Sello ventana',7,$sello_ventana_bc_obs);\n }\n if($vidrio_ventana_bc == 1){\n $this->storeDetalle($folio,'Vidrio ventana',7,$vidrio_ventana_bc_obs);\n }\n if($mosquitero_bc == 1){\n $this->storeDetalle($folio,'Mosquitero',7,$mosquitero_bc_obs);\n }\n if($acabado_muro_bc == 1){\n $this->storeDetalle($folio,'Acabado muros',7,$acabado_muro_bc_obs);\n }\n if($acabado_plafon_bc == 1){\n $this->storeDetalle($folio,'Acabado plafón',7,$acabado_plafon_bc_obs);\n }\n if($sardinel_bc == 1){\n $this->storeDetalle($folio,'Sardinel',7,$sardinel_bc_obs);\n }\n if($piso_bc == 1){\n $this->storeDetalle($folio,'Piso',7,$piso_bc_obs);\n }\n if($zoclo_bc == 1){\n $this->storeDetalle($folio,'Zoclo',7,$zoclo_bc_obs);\n }\n\n ///////////////// ESTANCIA\n if($ventana_estancia == 1){\n $this->storeDetalle($folio,'Ventana',8,$ventana_estancia_obs);\n }\n if($sello_ventana_estancia == 1){\n $this->storeDetalle($folio,'Sello ventana',8,$sello_ventana_estancia_obs);\n }\n if($vidrio_ventana_estancia == 1){\n $this->storeDetalle($folio,'Vidrio ventana',8,$vidrio_ventana_estancia_obs);\n }\n if($mosquitero_estancia == 1){\n $this->storeDetalle($folio,'Mosquitero',8,$mosquitero_estancia_obs);\n }\n if($interfon_estancia == 1){\n $this->storeDetalle($folio,'Interfón',8,$interfon_estancia_obs);\n }\n if($acc_electricos_estancia == 1){\n $this->storeDetalle($folio,'Acc. Eléctricos',8,$acc_electricos_estancia_obs);\n }\n if($acabado_muro_estancia == 1){\n $this->storeDetalle($folio,'Acabado muros',8,$acabado_muro_estancia_obs);\n }\n if($acabado_plafon_estancia == 1){\n $this->storeDetalle($folio,'Acabado plafon',8,$acabado_plafon_estancia_obs);\n }\n if($piso_estancia == 1){\n $this->storeDetalle($folio,'Piso',8,$piso_estancia_obs);\n }\n if($zoclo_estancia == 1){\n $this->storeDetalle($folio,'Zoclo',8,$zoclo_estancia_obs);\n }\n \n ////////// RECAMARA PRINCIPAL\n if($puerta_rp == 1){\n $this->storeDetalle($folio,'Puerta',9,$puerta_rp_obs);\n }\n if($chapa_rp == 1){\n $this->storeDetalle($folio,'Chapa',9,$chapa_rp_obs);\n }\n if($sello_marco_rp == 1){\n $this->storeDetalle($folio,'Sello marco',9,$sello_marco_rp_obs);\n }\n if($cancel_rp == 1){\n $this->storeDetalle($folio,'Cancel',9,$cancel_rp_obs);\n }\n if($sello_cancel_rp == 1){\n $this->storeDetalle($folio,'Sello cancel',9,$sello_cancel_rp_obs);\n }\n if($vidrio_cancel_rp == 1){\n $this->storeDetalle($folio,'Vidrio cancel',9,$vidrio_cancel_rp_obs);\n }\n if($mosquitero_rp == 1){\n $this->storeDetalle($folio,'Mosquitero',9,$mosquitero_rp_obs);\n }\n if($balcon_rp == 1){\n $this->storeDetalle($folio,'Balcón',9,$balcon_rp_obs);\n }\n if($barandal_rp == 1){\n $this->storeDetalle($folio,'Barandal',9,$barandal_rp_obs);\n }\n if($acc_electricos_rp == 1){\n $this->storeDetalle($folio,'Acc. Eléctricos',9,$acc_electricos_rp_obs);\n }\n if($interfon_rp == 1){\n $this->storeDetalle($folio,'Interfón',9,$interfon_rp_obs);\n }\n if($salida_alarma_rp == 1){\n $this->storeDetalle($folio,'Salida alarma',9,$salida_alarma_rp_obs);\n }\n if($acabado_muro_rp == 1){\n $this->storeDetalle($folio,'Acabado muros',9,$acabado_muro_rp_obs);\n }\n if($acabado_plafon_rp == 1){\n $this->storeDetalle($folio,'Acabado plafón',9,$acabado_plafon_rp_obs);\n }\n if($piso_rp == 1){\n $this->storeDetalle($folio,'Piso',9,$piso_rp_obs);\n }\n if($zoclo_rp == 1){\n $this->storeDetalle($folio,'Zoclo',9,$zoclo_rp_obs);\n }\n \n /////////// BAÑO RECAMARA PRINCIPAL\n if($puerta_brp == 1){\n $this->storeDetalle($folio,'Puerta',10,$puerta_brp_obs);\n }\n if($chapa_brp == 1){\n $this->storeDetalle($folio,'Chapa',10,$chapa_brp_obs);\n }\n if($sello_marco_brp == 1){\n $this->storeDetalle($folio,'Sello marco',10,$sello_marco_brp_obs);\n }\n if($barra_lavabo_brp == 1){\n $this->storeDetalle($folio,'Barra lavabo',10,$barra_lavabo_brp_obs);\n }\n if($lavabo_brp == 1){\n $this->storeDetalle($folio,'Lavabo',10,$lavabo_brp_obs);\n }\n if($monomando_brp == 1){\n $this->storeDetalle($folio,'Monomando',10,$monomando_brp_obs);\n }\n if($wc_brp == 1){\n $this->storeDetalle($folio,'WC',10,$wc_brp_obs);\n }\n if($regadera_brp == 1){\n $this->storeDetalle($folio,'Regadera',10,$regadera_brp_obs);\n }\n if($manerales_brp == 1){\n $this->storeDetalle($folio,'Manerales',10,$manerales_brp_obs);\n }\n if($coladera_brp == 1){\n $this->storeDetalle($folio,'Coladera',10,$coladera_brp_obs);\n }\n if($acc_bano_brp == 1){\n $this->storeDetalle($folio,'Acc. Baño',10,$acc_bano_brp_obs);\n }\n if($acc_electrico_brp == 1){\n $this->storeDetalle($folio,'Acc. Eléctricos',10,$acc_electrico_brp_obs);\n }\n if($ventana_brp == 1){\n $this->storeDetalle($folio,'Ventana',10,$ventana_brp_obs);\n }\n if($sello_ventana_brp == 1){\n $this->storeDetalle($folio,'Sello ventana',10,$sello_ventana_brp_obs);\n }\n if($vidrio_ventana_brp == 1){\n $this->storeDetalle($folio,'Vidrio ventana',10,$vidrio_ventana_brp_obs);\n }\n if($mosquitero_brp == 1){\n $this->storeDetalle($folio,'Mosquitero',10,$mosquitero_brp_obs);\n }\n if($acabado_muro_brp == 1){\n $this->storeDetalle($folio,'Acabado muros',10,$acabado_muro_brp_obs);\n }\n if($acabado_plafon_brp == 1){\n $this->storeDetalle($folio,'Acabado plafón',10,$acabado_plafon_brp_obs);\n }\n if($sardinel_brp == 1){\n $this->storeDetalle($folio,'Sardinel',10,$sardinel_brp_obs);\n }\n if($piso_brp == 1){\n $this->storeDetalle($folio,'Piso',10,$piso_brp_obs);\n }\n if($zoclo_brp == 1){\n $this->storeDetalle($folio,'Zoclo',10,$zoclo_brp_obs);\n }\n\n ////////////////// VESTIDOR\n if($acc_electrico_vest == 1){\n $this->storeDetalle($folio,'Acc. Eléctricos',11,$acc_electrico_vest_obs);\n }\n if($acabado_muro_vest == 1){\n $this->storeDetalle($folio,'Acabado muros',11,$acabado_muro_vest_obs);\n }\n if($acabado_plafon_vest == 1){\n $this->storeDetalle($folio,'Acabado plafón',11,$acabado_plafon_vest_obs);\n }\n if($piso_vest == 1){\n $this->storeDetalle($folio,'Piso',11,$piso_vest_obs);\n }\n if($zoclo_vest == 1){\n $this->storeDetalle($folio,'Zoclo',11,$zoclo_vest_obs);\n }\n if($zoclo_vest == 1){\n $this->storeDetalle($folio,'Zoclo',11,$zoclo_vest_obs);\n }\n\n ////////////////// RECAMARA 2\n if($puerta_rec2 == 1){\n $this->storeDetalle($folio,'Puerta',12,$puerta_rec2_obs);\n }\n if($chapa_rec2 == 1){\n $this->storeDetalle($folio,'Chapa',12,$chapa_rec2_obs);\n }\n if($sello_marco_rec2 == 1){\n $this->storeDetalle($folio,'Sello marco',12,$sello_marco_rec2_obs);\n }\n if($cancel_rec2 == 1){\n $this->storeDetalle($folio,'Cancel',12,$cancel_rec2_obs);\n }\n if($sello_cancel_rec2 == 1){\n $this->storeDetalle($folio,'Sello cancel',12,$sello_cancel_rec2_obs);\n }\n if($vidrio_cancel_rec2 == 1){\n $this->storeDetalle($folio,'Vidrio cancel',12,$vidrio_cancel_rec2_obs);\n }\n if($mosquitero_rec2 == 1){\n $this->storeDetalle($folio,'Mosquitero',12,$mosquitero_rec2_obs);\n }\n if($acc_rec2 == 1){\n $this->storeDetalle($folio,'Acc. Eléctricos',12,$acc_rec2_obs);\n }\n if($salida_alarma_rec2 == 1){\n $this->storeDetalle($folio,'Salida alarma',12,$salida_alarma_rec2_obs);\n }\n if($acabado_muro_rec2 == 1){\n $this->storeDetalle($folio,'Acabado muros',12,$acabado_muro_rec2_obs);\n }\n if($acabado_plafon_rec2 == 1){\n $this->storeDetalle($folio,'Acabado plafón',12,$acabado_plafon_rec2_obs);\n }\n if($piso_rec2 == 1){\n $this->storeDetalle($folio,'Piso',12,$piso_rec2_obs);\n }\n if($zoclo_rec2 == 1){\n $this->storeDetalle($folio,'Zoclo',12,$zoclo_rec2_obs);\n }\n ////////////////// RECAMARA 3\n if($puerta_rec3 == 1){\n $this->storeDetalle($folio,'Puerta',13,$puerta_rec3_obs);\n }\n if($chapa_rec3 == 1){\n $this->storeDetalle($folio,'Chapa',13,$chapa_rec3_obs);\n }\n if($sello_marco_rec3 == 1){\n $this->storeDetalle($folio,'Sello marco',13,$sello_marco_rec3_obs);\n }\n if($cancel_rec3 == 1){\n $this->storeDetalle($folio,'Cancel',13,$cancel_rec3_obs);\n }\n if($sello_cancel_rec3 == 1){\n $this->storeDetalle($folio,'Sello cancel',13,$sello_cancel_rec3_obs);\n }\n if($vidrio_cancel_rec3 == 1){\n $this->storeDetalle($folio,'Vidrio cancel',13,$vidrio_cancel_rec3_obs);\n }\n if($mosquitero_rec3 == 1){\n $this->storeDetalle($folio,'Mosquitero',13,$mosquitero_rec3_obs);\n }\n if($acc_rec3 == 1){\n $this->storeDetalle($folio,'Acc. Eléctricos',13,$acc_rec3_obs);\n }\n if($salida_alarma_rec3 == 1){\n $this->storeDetalle($folio,'Salida alarma',13,$salida_alarma_rec3_obs);\n }\n if($acabado_muro_rec3 == 1){\n $this->storeDetalle($folio,'Acabado muros',13,$acabado_muro_rec3_obs);\n }\n if($acabado_plafon_rec3 == 1){\n $this->storeDetalle($folio,'Acabado plafón',13,$acabado_plafon_rec3_obs);\n }\n if($piso_rec3 == 1){\n $this->storeDetalle($folio,'Piso',13,$piso_rec3_obs);\n }\n if($zoclo_rec3 == 1){\n $this->storeDetalle($folio,'Zoclo',13,$zoclo_rec3_obs);\n }\n \n //////////////// AZOTEA\n if($pretiles_azotea == 1){\n $this->storeDetalle($folio,'Pretiles',14,$pretiles_azotea_obs);\n }\n if($impermeabilizacion == 1){\n $this->storeDetalle($folio,'Impermeabilización',14,$impermeabilizacion_obs);\n }\n if($domos_azotea == 1){\n $this->storeDetalle($folio,'Domos',14,$domos_azotea_obs);\n }\n if($mufas_azotea == 1){\n $this->storeDetalle($folio,'Mufas',14,$mufas_azotea_obs);\n }\n if($jarros_azotea == 1){\n $this->storeDetalle($folio,'Jarros de aire',14,$jarros_azotea_obs);\n }\n if($ventilas_azotea == 1){\n $this->storeDetalle($folio,'Ventilas inst. Sn.',14,$ventilas_azotea_obs);\n }\n if($base_tinaco_azotea == 1){\n $this->storeDetalle($folio,'Base tinaco',14,$base_tinaco_azotea_obs);\n }\n if($tinaco_azotea == 1){\n $this->storeDetalle($folio,'Tinaco',14,$tinaco_azotea_obs);\n }\n if($calentador_solar_azotea == 1){\n $this->storeDetalle($folio,'Calentador solar',14,$calentador_solar_azotea_obs);\n }\n if($punta_gas_azotea == 1){\n $this->storeDetalle($folio,'Punta inst. Gas',14,$punta_gas_azotea_obs);\n }\n if($anclas_azotea == 1){\n $this->storeDetalle($folio,'Anclas escalera',14,$anclas_azotea_obs);\n }\n if($limpieza_azotea == 1){\n $this->storeDetalle($folio,'Limpieza',14,$limpieza_azotea_obs);\n }\n\n ///////////// GENERALES\n if($limpieza_interior == 1){\n $this->storeDetalle($folio,'Limpieza interior',15,$limpieza_interior_obs);\n }\n if($limpieza_exterior == 1){\n $this->storeDetalle($folio,'Limpieza exterior',15,$limpieza_exterior_obs);\n }\n if($limpieza_vidrios == 1){\n $this->storeDetalle($folio,'Limpieza en vidrios',15,$limpieza_vidrios_obs);\n }\n if($limpieza_domos == 1){\n $this->storeDetalle($folio,'Limpieza en domos',15,$limpieza_domos_obs);\n }\n if($plastico_muebles == 1){\n $this->storeDetalle($folio,'Plástico en muebles',15,$plastico_muebles_obs);\n }\n if($candados == 1){\n $this->storeDetalle($folio,'Candados',15,$candados_obs);\n }\n if($llaves == 1){\n $this->storeDetalle($folio,'Llaves',15,$llaves_obs);\n }\n if($num_oficial == 1){\n $this->storeDetalle($folio,'Número oficial',15,$num_oficial_obs);\n }\n\n DB::commit();\n\n } catch (Exception $e){\n DB::rollBack();\n } \n \n\n }", "public function create() {\n $data['subject'] = ['' => trans('admin/admin.select_option')] + questionSetSubjects();\n $keyStage = questionKeyStage();\n $data['keyStage'] = array('' => trans('admin/admin.select_option')) + $keyStage;\n $data['keyStageJson'] = json_encode($keyStage);\n $yearKeys = questionYearGroup();\n $data['yearKeysJson'] = json_encode($yearKeys);\n $arrStrands = $this->strandRepo->getstrandTree(FALSE);\n $data['strands'] = json_encode($arrStrands['strands']);\n $data['substrands'] = json_encode($arrStrands['substrands']);\n $data['status'] = statusArray();\n $diffculty = questionDifficulty(); \n $data['difficulty'] = $diffculty;\n $data['selectedStudent'] = array();\n $data['page_heading'] = trans('admin/task.manage_revision');\n $data['page_title'] = trans('admin/task.add_revision');\n $data['trait'] = array('trait_1' => trans('admin/task.revision'), 'trait_1_link' => route('managerevision.index'), 'trait_2' => trans('admin/task.add_revision'));\n $data['JsValidator'] = 'App\\Http\\Requests\\Revision\\RevisionRequest';\n return view('admin.revision.create', $data);\n }", "function alta_pr_factura(){\n $tipo_descuento = $_POST['tipo_descuento'];\n unset($_POST['tipo_descuento']);\n if ($tipo_descuento == \"porcentaje\") {\n $_POST['porcentaje_descuento'] = $_POST['descuento'];\n $_POST['descuento'] = 0;\n } else {\n //$monto = $_POST['monto_total'] != 0 ? $_POST['monto_total'] : 1;\n $_POST['porcentaje_descuento'] = 0;//100 * $_POST['descuento'] / $monto;\n }\n $u = new Pr_factura();\n $u->usuario_id = $GLOBALS['usuarioid'];\n $u->empresas_id = $GLOBALS['empresaid'];\n $u->espacios_fisicos_id = $GLOBALS['espacios_fisicos_id'];\n $u->fecha_captura = date(\"Y-m-d H:i:s\");\n $fecha = explode(\" \", $_POST['fecha']);\n $u->fecha = $fecha[2] . \"/\" . $fecha[1] . \"/\" . $fecha[0];\n unset($_POST['fecha']);\n unset($_POST['tipo_entrada']);\n $related = $u->from_array($_POST);\n // save with the related objects\n $u->lote_id = 0;\n $u->save($related);\n \n\t/*if ($u->save($related)) {\n //Dar de alta el lote si el proveedor no es el inicial\n if ($u->cproveedores_id > 0) {\n $l = new Lote();\n $l->fecha_recepcion = $u->fecha;\n $l->espacio_fisico_inicial_id = $u->espacios_fisicos_id;\n $l->pr_factura_id = $u->id;\n $l->save();\n $u->lote_id = $l->id;\n $u->save();\n }\n }*/\n echo \"<input type='hidden' name='id' id='id' value='$u->id'>\";\n }", "public function load(ObjectManager $manager)\n {\n // $manager->persist($product);\n $faker = Factory::create(\"fr_FR\");\n\n $slugger = new Slugify();\n for ($i = 0; $i < 8 ; $i++){\n\n $announce = new Announce();\n $announce->setTitle($faker->sentence(3, false));\n $announce->setIntroduction($faker->sentence());\n //$announce->setSlug($slugger->slugify($announce->getTitle()));\n $announce->setDescription($faker->text(200, false));\n $announce->setPrice(mt_rand(30000,60000));\n $announce->setAdresse($faker->address(3));\n $announce->setImageCover('0e1cc71cdf57f7923887a68a74224d3e.jpg');\n $announce->setRooms(mt_rand(1,5));\n $announce->setIsAvailable(mt_rand(0,1));\n $announce->setCreatAt($faker->dateTimeBetween('-3 month','now'));\n \n for($j = 0; $j < mt_rand(0,7) ; $j++ ){\n $comment = new comment();\n $comment->setAuthor($faker->name())\n ->setEmail($faker->email())\n ->setContent($faker->text(150))\n ->setCreatedAt($faker->dateTimeBetween('-3 month','now'))\n ;\n\n $manager ->persist($comment);\n $announce->addComment($comment); //permet à doctrine d'enregistrer dans la BD\n }\n\n for($k = 0; $k < mt_rand(0,7) ; $k++ ){\n $image = new image();\n $image->setImageUrl( \"https://picsum.photos/300/200?random=\". mt_rand(1, 50000));\n $image ->setDescription_img($faker->sentence());\n\n $manager ->persist($image);\n $announce->addImage($image); //permet à doctrine d'enregistrer dans la BD\n }\n $manager->persist($announce);\n }\n $manager->flush();\n}", "public function crear()\n {\n\n try{\n $model = new \\App\\Models\\Pasientes();\n\n foreach ($_POST as $campo => $val){\n $model->$campo = $val;\n }\n\n $model::insert($model);\n $this->historico();\n\n }catch(\\Exception $e){\n\n $this->formularioCreacion(['_error' => $e]);\n\n }\n\n }", "public function create()\n {\n //este deriva a un formulario, el cual debe tomar todos\n //los parametros del bache (nombre, fecha_y_hora, ubicacion, object_state_id (recuperarlo y pasarlo), estado(mostrar opciones y tomar el elegido)) y luego de todo esto llama a store para ser almacenado en la base de datos\n\n }", "public function crearEspecie()\n {\n Especie::create(Input::all());\n // el método create nos permite crear un nuevo especie en la base de datos, este método es proporcionado por Laravel\n // create recibe como parámetro un arreglo con datos de un modelo y los inserta automáticamente en la base de datos \n // en este caso el arreglo es la información que viene desde un formulario y la obtenemos con el metido Input::all()\n \n return Redirect::to('especies');\n // el método redirect nos devuelve a la ruta de mostrar la lista de los especies\n \n }", "public function guardar($entidad)\n {\n \t// Binding\n\n \t$entidad->nombre = $this->getString('nombre');\n \t$entidad->notilde = \\StringHelper::notilde( $entidad->nombre );\n\n \t$entidad->xml_iso25964 = (string) $this->postToXml();\n \t$entidad->rdf_uri = $this->config->rdf->baseUri . \\StringHelper::urlize( $entidad->nombre );\n \t$entidad->iso25964_identifier = \\StringHelper::urlize($entidad->nombre);\n\n \t$entidad->iso25964_description = $this->getString('iso25964_description');\n \t$entidad->iso25964_publisher = $this->getString('iso25964_publisher');\n \t$entidad->iso25964_rights = $this->getString('iso25964_rights');\n\n \t$entidad->iso25964_license = $this->getString('iso25964_license');\n \t$entidad->iso25964_coverage = $this->getString('iso25964_coverage');\n \t$entidad->iso25964_created = $this->getString('iso25964_created');\n\n \t$entidad->iso25964_subject = $this->getString('iso25964_subject');\n \t$entidad->iso25964_language = $this->getString('iso25964_language');\n \t$entidad->iso25964_source = $this->getString('iso25964_source');\n\n \t$entidad->iso25964_creator = $this->getString('iso25964_creator');\n \t$entidad->iso25964_contributor = $this->getString('iso25964_contributor');\n \t$entidad->iso25964_type = $this->getString('iso25964_type');\n\n \tif ($entidad->isNew()) {\n \t\t$entidad->term_aprobados = 0;\n \t\t$entidad->term_pendientes = 0;\n \t\t$entidad->is_activo = new RawValue('TRUE');\n \t\t$entidad->is_primario = new RawValue('FALSE');\n \t\t$entidad->is_publico = new RawValue('TRUE');\n \t\t$entidad->aprobar_list = '';\n \t\t$entidad->id_propietario = 1;\n \t\t$entidad->fecha_ingreso = new RawValue('now()');\n\n \t\t$existe = $entidad->findFirst(['notilde = ?1', 'bind'=>[1 => $entidad->notilde]]);\n \t}\n \telse {\n \t\t$entidad->fecha_modifica = new RawValue('now()');\n\n \t\t$existe = $entidad->findFirst(['notilde = ?1 AND id_thesaurus != ?2', 'bind'=>[1 => $entidad->notilde, 2 => $entidad->id_thesaurus ]]);\n \t}\n\n \t// Validar duplicado\n\n \tif ($existe) {\n \t\t$this->flash->error(\"Thesaurus {$entidad->nombre} ya existe\");\n \t\treturn false;\n \t}\n\n \t$this->db->begin();\n\n \tif ($entidad->save() == false) {\n \t\t$this->db->rollback();\n\n \t\tforeach ($entidad->getMessages() as $message) {\n \t\t\t$this->flash->error((string) $message);\n \t\t}\n\n \t\treturn false;\n \t}\n\n \t$this->db->commit();\n \t$this->flash->success('Guardado exitosamente');\n\n \treturn $entidad->id_thesaurus;\n }", "function cloneDet($idDetail,$idModule,$idModClone){\n $details = chargeDetail($idDetail);\n $detail = $details->fetch();\n\n $bdd = getBdd();\n //preparation de la requete utilisant une fonction stockée sur la base\n $req = $bdd->prepare('SELECT gretatest.CreateDetail(:Pcode_Detail,:PNom_Detail,:Pdescript,:Pobjectif_Detail,:Pheure_Detail,:Pevaluable,:PidDetailParent,:PidTheme) as PidDetail');\n $req->bindParam(':Pcode_Detail', $detail['code_Detail'], PDO::PARAM_INT | PDO::PARAM_INPUT_OUTPUT);\n $req->bindParam(':PNom_Detail', $detail['Nom_Detail'], PDO::PARAM_INT | PDO::PARAM_INPUT_OUTPUT);\n $req->bindParam(':Pdescript', $detail['descript_Detail'], PDO::PARAM_INT | PDO::PARAM_INPUT_OUTPUT);\n $req->bindParam(':Pobjectif_Detail', $detail['objectif_Detail'], PDO::PARAM_INT | PDO::PARAM_INPUT_OUTPUT);\n $req->bindParam(':Pheure_Detail', $detail['heure_Detail'], PDO::PARAM_INT | PDO::PARAM_INPUT_OUTPUT);\n $req->bindParam(':Pevaluable', $detail['evaluable'], PDO::PARAM_INT | PDO::PARAM_INPUT_OUTPUT);\n $req->bindParam(':PidDetailParent', $idModule, PDO::PARAM_STR | PDO::PARAM_INPUT_OUTPUT);\n $req->bindParam(':PidTheme', $detail['idTheme'], PDO::PARAM_STR | PDO::PARAM_INPUT_OUTPUT);\n $req->execute();\n\n if ($res = $req->fetch(PDO::FETCH_ASSOC)){\n //si fonction a bien fonctionnée alors on retrouve ici l'id du detail clone\n $idDetClone = $res['PidDetail'];\n }\n //liaison du nouveau detail au nouveau module en cours\n aff_detClone($idModClone,$idDetClone);\n}", "public function insertaRevista($datos,$archivos){\n\t\t \n\t\t\t//$revista = new Revista();\n\t\t\t$this -> set_nombre($datos['nombre']);\n\t\t\t$this -> set_portada($archivos['portada']);\n\t\t\t$this -> set_fecha($datos['fecha']);\n\t\t\t$this -> set_volumen($datos['volumen']);\n\t\t\t$this -> set_titulo($datos['titulo']);\n\t\t\t$this -> set_subtitulo($datos['subtitulo']);\n\t\t\t$this -> set_numero($datos['numero']);\n\t\t\t$this -> set_clave($datos['clave']);\n\t\t\t$this -> set_directorio($datos['directorio']);\n\t\t\t$this -> set_editorial($datos['editorial']);\n\t\t\t$this -> set_id_status($datos['id_status']);\n\n\n\n\t\t\tif(count($this->errores)>0){\n\t\t\t\tprint_r($this->errores);\n\t\t\t\t$this->muestra_errores = true;\n\t\t\t\t//die();\n\t\t\t}\n\n\t\t\t\t\telse{\n\t\t\tmove_uploaded_file($archivos['portada']['tmp_name'],\n\t\t\t\"../images/\".$archivos['portada']['name']);\n\t\t\t$this->inserta($this->get_atributos());\n\t\t}\n\n\n//\t\t\t$revista->inserta($revista->get_atributos());\n\t\t\t\n\t}", "public function create(){\n\t}", "public function create()\n {\n $user_auth = User::find(Auth::user()->id);\n $TypesSocietestList = TypeSociete::lists('nom_type_societe', 'id')->prepend(' ', '');\n\n /******* Gouvernorats & Delegations **********/\n $GouvernoratsPermission= Gouvernorat::all();\n $array_gouvernorats_permission =array();\n foreach ($GouvernoratsPermission as $Gouvernorat) {\n // filtrer les gouvernorats permessione\n if ( $user_auth->can('view.'.$Gouvernorat->permission_slug) ) {\n $array_gouvernorats_permission[$Gouvernorat->id] = $Gouvernorat->nom_gouvernorat;\n }\n }\n $GouvernoratsList = collect($array_gouvernorats_permission);\n if(count($array_gouvernorats_permission)>1) {\n $GouvernoratsList->prepend(trans('main.selectionnez') . ' ' . trans('societe.gouvernorat'), '');\n $DelegationsList = Delegation::lists('nom_delegation', 'id')->prepend(trans('main.selectionnez') . ' ' . trans('societe.delegatio'), '');\n } else {\n $DelegationsList = Delegation::where('gouvernorat_id', key($array_gouvernorats_permission))->lists('nom_delegation', 'id')->prepend(trans('main.selectionnez') . ' ' . trans('societe.delegatio'), '');\n }\n\n /******* Secteurs & Conventions **********/\n\n $SecteursPermission= Secteur::all();\n $array_secteurs_permission =array();\n foreach ($SecteursPermission as $Secteur) {\n // filtrer les secteurs permessione\n if ( $user_auth->can('view.secteur_'.$Secteur->id) ) {\n $array_secteurs_permission[$Secteur->id] = $Secteur->nom_secteur;\n }\n }\n $SecteurstList = collect($array_secteurs_permission);\n if(count($array_secteurs_permission)>1) {\n $SecteurstList->prepend(trans('main.selectionnez') . ' ' . trans('societe.secteur'), '');\n $ConventionstList = Convention::lists('nom_convention', 'id')->prepend(trans('main.selectionnez') . ' ' . trans('societe.convention'), 0);\n } else {\n $ConventionstList = Convention::where('secteur_id', key($array_secteurs_permission))->lists('nom_convention', 'id')->prepend(trans('main.selectionnez') . ' ' . trans('societe.convention'), 0);\n }\n\n return view('societe.add', compact('TypesSocietestList','GouvernoratsList','DelegationsList','SecteurstList','ConventionstList'));\n }", "public function create(){\n\n //\n }", "public function crear() {\n\t\t$this->load->model('pais_model');\n\t\t$datos['body']['paises'] = $this->pais_model-> getAll($filtro=\"\");\n\t\t\n\t\tenmarcar($this, 'autor/crear', $datos);\n\t}", "abstract protected function getNewEntityInstance();", "public function createVAction(Request $request)\n{\n $velo=new \\StockAdminBundle\\Entity\\Velo();\n $photoV=$request->get('photoV');\n $photoV1=$request->get('photoV1');\n $photoV2=$request->get('photoV2');\n $photoV3=$request->get('photoV3');\n //2.a creation d'un formulaire7\n $form=$this->createForm(\\StockAdminBundle\\Form\\VeloType::class,$velo);\n\n //2.a recuperation des données\n $form=$form->handleRequest($request);\n //3.a test sur les données\n\n if($form->isSubmitted()){\n $velo->setSoldee(0);\n $velo->setPhotoV($photoV);\n $velo->setPhotoV1($photoV1); $velo->setPhotoV2($photoV2); $velo->setPhotoV3($photoV3);\n //4.a creation d'un objet doctrine\n $em=$this->getDoctrine()->getManager();\n //4.b persister les données de ORM\n $em->persist($velo);\n\n\n\n $manager = $this->get('mgilet.notification');\n $notif = $manager->createNotification('un velo a été ajouté');\n $notif->setMessage('This a notification.');\n\n\n $manager->addNotification(array($this->getUser()), $notif, true);\n\n\n\n\n\n\n //5.b sauv les données dans la BD\n $em->flush();\n //6.redirect to rout\n return $this->redirectToRoute('readV');\n\n }\n //1.c envoi du form a l'utilisateur\n return $this->render('@StockAdmin/Velo/creat_v.html.twig', array( 'form'=>$form->createView()\n\n // ...\n ));\n}", "public function create(){\n //\n }", "public function create(){\n //\n }", "public function testCreateNew()\n {\n $diagramApi = TestBase::getDiagramApi();\n $json = $diagramApi->createNew(DrawingTest::$fileName,TestBase::$storageTestFOLDER,\"true\");\n $result = json_decode($json);\n $this->assertNotEmpty( $result->Created);\n TestBase::PrintDebugInfo(\"TestCreateNew result:\".$json);\n\n }", "public function createAction($type)\n {\n if (!$type) {\n return $this->redirect($this->generateUrl('resymf_admin_dashboard'), 301);\n }\n $em = $this->getDoctrine()->getManager();\n\n $request = $this->container->get('request');\n $routeName = $request->get('_route');\n\n $adminConfigurator = $this->get('resymfcms.configurator.admin');\n $objectConfigurator = $this->get('resymfcms.configurator.object');\n\n $objectMapper = $this->get('resymfcms.object.mapper');\n\n $objectType = $objectMapper->getMappedObject($type);\n $annotationReader = $this->get('resymfcms.annotation.reader');\n\n $formConfig = $annotationReader->readFormAnnotation($objectType);\n\n if ($request->isMethod('POST')) {\n $object = new $objectType();\n\n// echo '<pre>';\n// print_r($formConfig->fields);\n// die();\n foreach ($formConfig->fields as $field) {\n $fieldType = $field['type'];\n $fieldRelationType = $field['relationType'];\n $methodName = 'set' . $field['name'];\n\n// if()\n switch ($fieldType) {\n case 'relation':\n $class = $field['class'];\n $targetEntityField = $field['targetEntityField'];\n $relationObjects = $em->getRepository($class)\n ->createQueryBuilder('q')\n ->where('q.id IN(:id)')\n ->setParameter('id', $request->get($field['name']))\n// ->setMaxResults()\n ->getQuery()\n ->getResult();\n// print_r($relationObject);\n $addMethodName2 = 'set' . $field['name'];\n if($fieldRelationType == 'manyToOne' || $fieldRelationType == 'oneToOne') {\n $object->$addMethodName2($relationObjects[0]);\n }else {\n $object->$addMethodName2($relationObjects);\n }\n foreach ($relationObjects as $relationObject) {\n\n if ($relationObject) {\n\n $addMethodName = 'set' . $type;\n $addMethodName2 = 'set' . $field['name'];\n\n if ($fieldRelationType == 'oneToMany') {\n $addMethodName2 = 'add' . $field['name'];\n\n }\n if ($fieldRelationType = 'manyToMany' || $fieldRelationType = 'multiselect') {\n $addMethodName2 = 'add' . $targetEntityField;\n } else { ///toOne\n $relationObject->$addMethodName($object);\n }\n\n }\n }\n\n \n break;\n case 'date':\n $object->$methodName(new \\DateTime($request->get($field['name'])));\n break;\n case 'file':\n// echo $field['name'];\n// print_r($request->get($field['name']));\n// die();\n $object->$methodName(json_encode($request->get($field['name'])));\n break;\n default:\n $object->$methodName($request->get($field['name']));\n }\n\n }\n\n $objectConfigurator->setInitialValuesFromAnnotations($objectType, $object, $type);\n $em->persist($object);\n $em->flush();\n return $this->redirect($this->generateUrl('object_edit', array('type' => $type, 'id' => $object->getId())), 301);\n }\n\n if (!isset($object)) {\n $object = false;\n }\n $multiSelectValues = $objectConfigurator->generateMultiSelectOptions($objectType, $object);\n\n return $this->render('ReSymfCmsBundle:adminmenu:create.html.twig', array('menu' => $adminConfigurator->getAdminConfig(), 'site_config' => $adminConfigurator->getSiteConfig(), 'form_config' => $formConfig, 'route' => $routeName, 'multi_select' => $multiSelectValues));\n }", "public function GestorReglasNegocios() {\n $this->gestorAccesoDatos = new GestorAccesoDatos();\n }", "public function postGuardaritemlegajo()\r\n {\r\n $legajo_id = Input::get('legajoId');\r\n $campo = Input::get('campo');\r\n $docente_id = Input::get('docente_id');\r\n\r\n if ($campo == 'FECHA_SEGURO') {\r\n $fecha_vencimiento = Input::get('valor');\r\n if ($fecha_vencimiento == '') {\r\n $fecha_vencimiento = NULL;\r\n } else {\r\n $porcion = explode(\"-\", $fecha_vencimiento);\r\n $fechadesde = $porcion[0].'/'.$porcion[1].'/'.$porcion[2];\r\n $fecha_vencimiento = FechaHelper::getFechaParaGuardar($fechadesde);\r\n }\r\n }\r\n\r\n $legajo = DocenteLegajo::find($legajo_id);\r\n\r\n if (count($legajo) > 0) {\r\n $legajo = DocenteLegajo::find($legajo_id);\r\n } else {\r\n $legajos = new DocenteLegajo;\r\n $legajos->docente_id = $docente_id;\r\n $legajos->dni = 0;\r\n $legajos->foto = 0;\r\n $legajos->partidanacimiento = 0;\r\n $legajos->ficha_medica = 0;\r\n $legajos->cuil_cuit = 0;\r\n $legajos->titulosecundario = 0;\r\n $legajos->cargos_actividades = 0;\r\n $legajos->tituloprofesional = 0;\r\n $legajos->declaracion_jurada = 0;\r\n $legajos->seguro = 0;\r\n //$legajos->fechavencimientoseguro = $fecha_vencimiento;\r\n $legajos->otros = 0;\r\n $legajos->usuario_alta = Auth::user()->usuario;\r\n $legajos->fecha_alta = date('Y-m-d');\r\n $legajos->save();\r\n\r\n $legajo = DocenteLegajo::whereRaw('docente_id ='.$docente_id)->first();\r\n }\r\n\r\n switch ($campo) {\r\n case 'DNI':\r\n $legajo->dni = (int) Input::get('valor');\r\n break;\r\n case 'FOTO':\r\n $legajo->foto = (int) Input::get('valor');\r\n break; \r\n\r\n case 'PARTIDA_NACIMIENTO':\r\n $legajo->partidanacimiento = (int) Input::get('valor');\r\n break;\r\n\r\n case 'BUENA_SALUD':\r\n $legajo->ficha_medica = (int) Input::get('valor');\r\n break;\r\n\r\n case 'CUIL_CUIT':\r\n $legajo->cuil_cuit = (int) Input::get('valor');\r\n break;\r\n\r\n case 'TITULO':\r\n $legajo->titulosecundario = (int) Input::get('valor');\r\n break;\r\n\r\n case 'CARGOS_ACTIVIDADES':\r\n $legajo->cargos_actividades = (int) Input::get('valor');\r\n break;\r\n\r\n case 'TITULO_PROFESIONAL':\r\n $legajo->tituloprofesional = (int) Input::get('valor');\r\n break;\r\n\r\n case 'DECLARACION_JURADA':\r\n $legajo->declaracion_jurada = (int) Input::get('valor');\r\n break;\r\n\r\n case 'SEGURO':\r\n $legajo->seguro = (int) Input::get('valor');\r\n break;\r\n\r\n case 'FECHA_SEGURO':\r\n $legajo->fechavencimientoseguro = $fecha_vencimiento;\r\n break;\r\n\r\n case 'OTROS':\r\n $legajo->otros = (int) Input::get('valor');\r\n break;\r\n }\r\n\r\n $legajo->save();\r\n\r\n /*Session::flash('message', 'LEGAJO GUARDADO CORRECTAMENTE.');\r\n Session::flash('message_type', self::OPERACION_EXITOSA);\r\n return Redirect::to('alumnos/legajo/' . $alumno_id);*/\r\n\r\n $result = [\r\n 'mensaje' => 'LEGAJO ACTUALIZADO',\r\n 'tipo_mensaje' => self::OPERACION_EXITOSA\r\n ];\r\n\r\n return Response::json($result);\r\n }", "public function create(){ \n //\n }", "public function run()\n {\n $Requerimiento = new Requerimiento();\n $Requerimiento->ReqFotoCargue = \"1\"; \n $Requerimiento->ReqFotoDescargue = NULL; \n $Requerimiento->ReqFotoPesaje = NULL; \n $Requerimiento->ReqFotoReempacado = NULL; \n $Requerimiento->ReqFotoMezclado = NULL; \n $Requerimiento->ReqFotoDestruccion = \"1\"; \n $Requerimiento->ReqVideoCargue = NULL; \n $Requerimiento->ReqVideoDescargue = NULL; \n $Requerimiento->ReqVideoPesaje = NULL; \n $Requerimiento->ReqVideoReempacado = NULL; \n $Requerimiento->ReqVideoMezclado = NULL; \n $Requerimiento->ReqVideoDestruccion = NULL; \n $Requerimiento->ReqAuditoria = NULL; \n $Requerimiento->ReqAuditoriaTipo = \"Presencial\"; \n $Requerimiento->ReqDevolucion = NULL; \n $Requerimiento->ReqDevolucionTipo = NULL; \n $Requerimiento->ReqDatosPersonal = NULL; \n $Requerimiento->ReqPlanillas = NULL; \n $Requerimiento->ReqAlistamiento = \"1\"; \n $Requerimiento->ReqCapacitacion = NULL; \n $Requerimiento->ReqBascula = NULL; \n $Requerimiento->ReqMasPerson = NULL; \n $Requerimiento->ReqPlatform = \"1\"; \n $Requerimiento->ReqCertiEspecial = \"1\"; \n $Requerimiento->ReqSlug = \"user01\";\n $Requerimiento->FK_ReqRespel = \"5\";\n $Requerimiento->FK_ReqTarifa = \"5\";\n $Requerimiento->save(); \n\n $Requerimiento = new Requerimiento();\n $Requerimiento->ReqFotoCargue = \"1\"; \n $Requerimiento->ReqFotoDescargue = \"1\"; \n $Requerimiento->ReqFotoPesaje = \"1\"; \n $Requerimiento->ReqFotoReempacado = \"1\"; \n $Requerimiento->ReqFotoMezclado = \"1\"; \n $Requerimiento->ReqFotoDestruccion = \"1\"; \n $Requerimiento->ReqVideoCargue = \"1\"; \n $Requerimiento->ReqVideoDescargue = \"1\"; \n $Requerimiento->ReqVideoPesaje = \"1\"; \n $Requerimiento->ReqVideoReempacado = \"1\"; \n $Requerimiento->ReqVideoMezclado = \"1\"; \n $Requerimiento->ReqVideoDestruccion = \"1\"; \n $Requerimiento->ReqAuditoria = \"1\"; \n $Requerimiento->ReqAuditoriaTipo = \"Presencial\"; \n $Requerimiento->ReqDevolucion = \"1\"; \n $Requerimiento->ReqDevolucionTipo = \"1\"; \n $Requerimiento->ReqDatosPersonal = \"1\"; \n $Requerimiento->ReqPlanillas = \"1\"; \n $Requerimiento->ReqAlistamiento = \"1\"; \n $Requerimiento->ReqCapacitacion = \"1\"; \n $Requerimiento->ReqBascula = \"1\"; \n $Requerimiento->ReqMasPerson = \"1\"; \n $Requerimiento->ReqPlatform = \"1\"; \n $Requerimiento->ReqCertiEspecial = \"1\"; \n $Requerimiento->ReqSlug = \"user02\";\n $Requerimiento->FK_ReqRespel = \"3\";\n $Requerimiento->FK_ReqTarifa = \"3\";\n $Requerimiento->save(); \n\n $Requerimiento = new Requerimiento();\n $Requerimiento->ReqFotoCargue = NULL; \n $Requerimiento->ReqFotoDescargue = NULL; \n $Requerimiento->ReqFotoPesaje = NULL; \n $Requerimiento->ReqFotoReempacado = NULL; \n $Requerimiento->ReqFotoMezclado = NULL; \n $Requerimiento->ReqFotoDestruccion = NULL; \n $Requerimiento->ReqVideoCargue = NULL; \n $Requerimiento->ReqVideoDescargue = NULL; \n $Requerimiento->ReqVideoPesaje = NULL; \n $Requerimiento->ReqVideoReempacado = NULL; \n $Requerimiento->ReqVideoMezclado = NULL; \n $Requerimiento->ReqVideoDestruccion = NULL; \n $Requerimiento->ReqAuditoria = NULL; \n $Requerimiento->ReqAuditoriaTipo = NULL; \n $Requerimiento->ReqDevolucion = NULL; \n $Requerimiento->ReqDevolucionTipo = NULL; \n $Requerimiento->ReqDatosPersonal = NULL; \n $Requerimiento->ReqPlanillas = NULL; \n $Requerimiento->ReqAlistamiento = NULL; \n $Requerimiento->ReqCapacitacion = NULL; \n $Requerimiento->ReqBascula = NULL; \n $Requerimiento->ReqMasPerson = NULL; \n $Requerimiento->ReqPlatform = NULL; \n $Requerimiento->ReqCertiEspecial = NULL; \n $Requerimiento->ReqSlug = \"user03\";\n $Requerimiento->FK_ReqRespel = \"1\";\n $Requerimiento->FK_ReqTrata = \"2\";\n $Requerimiento->FK_ReqTarifa = \"1\";\n $Requerimiento->save(); \n\n $Requerimiento = new Requerimiento();\n $Requerimiento->ReqFotoCargue = \"1\"; \n $Requerimiento->ReqFotoDescargue = NULL; \n $Requerimiento->ReqFotoPesaje = NULL; \n $Requerimiento->ReqFotoReempacado = NULL; \n $Requerimiento->ReqFotoMezclado = NULL; \n $Requerimiento->ReqFotoDestruccion = \"1\"; \n $Requerimiento->ReqVideoCargue = NULL; \n $Requerimiento->ReqVideoDescargue = NULL; \n $Requerimiento->ReqVideoPesaje = NULL; \n $Requerimiento->ReqVideoReempacado = NULL; \n $Requerimiento->ReqVideoMezclado = NULL; \n $Requerimiento->ReqVideoDestruccion = NULL; \n $Requerimiento->ReqAuditoria = NULL; \n $Requerimiento->ReqAuditoriaTipo = \"Virtual\"; \n $Requerimiento->ReqDevolucion = NULL; \n $Requerimiento->ReqDevolucionTipo = NULL; \n $Requerimiento->ReqDatosPersonal = NULL; \n $Requerimiento->ReqPlanillas = NULL; \n $Requerimiento->ReqAlistamiento = \"1\"; \n $Requerimiento->ReqCapacitacion = \"1\"; \n $Requerimiento->ReqBascula = \"1\"; \n $Requerimiento->ReqMasPerson = \"1\"; \n $Requerimiento->ReqPlatform = \"1\"; \n $Requerimiento->ReqCertiEspecial = \"1\"; \n $Requerimiento->ReqSlug = \"user04\";\n $Requerimiento->FK_ReqRespel = \"2\";\n $Requerimiento->FK_ReqTrata = \"3\";\n $Requerimiento->FK_ReqTarifa = \"2\";\n $Requerimiento->save(); \n\n $Requerimiento = new Requerimiento();\n $Requerimiento->ReqFotoCargue = \"1\"; \n $Requerimiento->ReqFotoDescargue = NULL; \n $Requerimiento->ReqFotoPesaje = \"1\"; \n $Requerimiento->ReqFotoReempacado = NULL; \n $Requerimiento->ReqFotoMezclado = \"1\"; \n $Requerimiento->ReqFotoDestruccion = NULL; \n $Requerimiento->ReqVideoCargue = \"1\"; \n $Requerimiento->ReqVideoDescargue = NULL; \n $Requerimiento->ReqVideoPesaje = \"1\"; \n $Requerimiento->ReqVideoReempacado = NULL; \n $Requerimiento->ReqVideoMezclado = \"1\"; \n $Requerimiento->ReqVideoDestruccion = NULL; \n $Requerimiento->ReqAuditoria = \"1\"; \n $Requerimiento->ReqAuditoriaTipo = NULL; \n $Requerimiento->ReqDevolucion = \"1\"; \n $Requerimiento->ReqDevolucionTipo = NULL; \n $Requerimiento->ReqDatosPersonal = \"1\"; \n $Requerimiento->ReqPlanillas = NULL; \n $Requerimiento->ReqAlistamiento = \"1\"; \n $Requerimiento->ReqCapacitacion = NULL; \n $Requerimiento->ReqBascula = \"1\"; \n $Requerimiento->ReqMasPerson = NULL; \n $Requerimiento->ReqPlatform = \"1\"; \n $Requerimiento->ReqCertiEspecial = NULL; \n $Requerimiento->ReqSlug = \"user05\";\n $Requerimiento->FK_ReqRespel = \"4\"; \n $Requerimiento->FK_ReqTrata = \"1\"; \n $Requerimiento->FK_ReqTarifa = \"4\"; \n $Requerimiento->save(); \n }", "public function create()\n\t{\n\t\t$entities = DB::table('entities')->get();\n\t\t$branches = DB::table('branches')->get();\n\n\t\treturn View::make('entities.new')\n\t\t->with('entities', $entities)\n\t\t->with('branches', $branches)\n\t\t->with('title', \"Ajout d'un nouveau post\");\n\t}", "public function createNew();", "public function run()\n {\n $blogs=Blog::all();\n foreach ($blogs as $blog) {\n $blog->detalle_blogs()->save(factory(App\\Models\\DetalleBlog::class)->make());\n }\n \n }", "public function create()\n {\n //\n\t\t\n }", "function insertarProceso(){\n global $conexion, $data;\n $slug = $data[\"slug\"];\n $hashtag = $data[\"hashtag\"];\n $dec_org_id = $data[\"decidim_organization_id\"];\n $created_at = $data[\"created_at\"];\n $updated_at = $data[\"updated_at\"];\n $title = '{\"en\": \"'.$data[\"title\"].'\", \"es\":\"'.$data[\"title\"].'\"}';\n $subtitle = '{\"en\": \"'.$data[\"subtitle\"].'\", \"es\":\"'.$data[\"subtitle\"].'\"}';\n $sh_description = '{\"en\": \"'.$data[\"description\"].'\", \"es\":\"'.$data[\"description\"].'\"}';\n $description = '{\"en\": \"'.$data[\"description\"].'\", \"es\":\"'.$data[\"description\"].'\"}';\n $hero_image = $data[\"hero_image\"];\n $banner_image = $data[\"banner_image\"];\n $promoted = true;\n $published_at = $data[\"published_at\"];\n $developer_group= '{\"en\": \"'.$data[\"developer_group\"].'\", \"es\":\"'.$data[\"developer_group\"].'\"}';\n $end_date = $data[\"end_date\"];\n $meta_scope = '{\"en\": \"'.$data[\"meta_scope\"].'\", \"es\":\"'.$data[\"meta_scope\"].'\"}';\n $local_area = '{\"en\": \"'.$data[\"local_area\"].'\", \"es\":\"'.$data[\"local_area\"].'\"}';\n $target = '{\"en\": \"'.$data[\"target\"].'\", \"es\":\"'.$data[\"target\"].'\"}';\n $par_scope = '{\"en\": \"'.$data[\"participatory_scope\"].'\", \"es\":\"'.$data[\"participatory_scope\"].'\"}';\n $par_structure = '{\"en\": \"'.$data[\"participatory_structure\"].'\", \"es\":\"'.$data[\"participatory_structure\"].'\"}';\n $dec_scope_id = (int)$data[\"decidim_scope_id\"];\n $pro_group_id = (int)$data[\"decidim_participatory_process_group_id\"];\n $show_statistics= true;\n $announcement = null;\n $scopes_enabled = false;\n $start_date = $data[\"start_date\"];\n $private_space = false;\n $reference = $data[\"reference\"];\n $resultado = pg_query($conexion, \"INSERT INTO decidim_participatory_processes (slug, hashtag, decidim_organization_id, created_at, updated_at, title, subtitle, short_description, description, hero_image, banner_image, promoted, published_at, developer_group, end_date, meta_scope, local_area, target, participatory_scope, participatory_structure, decidim_scope_id, decidim_participatory_process_group_id, show_statistics, announcement, scopes_enabled, start_date, private_space, reference) VALUES ('$slug', '$hashtag', '$dec_org_id', '$created_at', '$updated_at', '$title', '$subtitle', '$sh_description', '$description', '$hero_image', '$banner_image', '$promoted', '$published_at', '$developer_group', '$end_date', '$meta_scope', '$local_area', '$target', '$par_scope', '$par_structure', '$dec_scope_id', '$pro_group_id', true, null, false, '$start_date', false, '$reference') RETURNING id, slug \");\n validarErrorPG($resultado);\n }", "function Nuevo() {\n /**\n * Crear instancia de EstacionHidrometrica\n */\n $EstacionHidrometrica = new EstacionHidrometrica();\n /**\n * Colocar los datos del POST por medio de los metodos SET\n */\n $EstacionHidrometrica->setIdEstacion(filter_input(INPUT_GET, 'clave'));\n $EstacionHidrometrica->setNombre(filter_input(INPUT_GET, 'nombre'));\n $EstacionHidrometrica->setCuenca_id(filter_input(INPUT_GET, 'cuenca_id'));\n $EstacionHidrometrica->setCorriente(filter_input(INPUT_GET, 'corriente'));\n $EstacionHidrometrica->setRegion_id(filter_input(INPUT_GET, 'id_reg_hidrologica'));\n $EstacionHidrometrica->setEstado_id(filter_input(INPUT_GET, 'estado_id'));\n $EstacionHidrometrica->setLatitud(filter_input(INPUT_GET, 'latitud'));\n $EstacionHidrometrica->setLongitud(filter_input(INPUT_GET, 'longitud'));\n if ($EstacionHidrometrica->Insert() != null) {\n echo 'OK';\n } else {\n echo 'Algo salío mal :(';\n }\n}", "function crearProyecto($proyecto){\n //no implementado por no requerimiento del proyecto\n }", "function alta_inventario(){\n\t\t\n\t\t$u= new Pr_factura();\n\t\t$u->usuario_id=$GLOBALS['usuarioid'];\n\t\t$u->empresas_id=$GLOBALS['empresaid'];\n\t\t$u->espacios_fisicos_id=$GLOBALS['espacios_fisicos_id'];\n\t\t$u->fecha_captura=date(\"Y-m-d H:i:s\");\n\t\t$u->fecha=date(\"Y-m-d H:i:s\");\n\t\t$u->cproveedores_id=1;\n $u->fecha_pago=date(\"Y-m-d H:i:s\");\n $u->ctipo_factura_id=2;\n\t\t$fecha=explode(\" \", $_POST['fecha']);\n\t\t$u->fecha=$fecha[2].\"/\".$fecha[1].\"/\".$fecha[0];\n\t\tunset($_POST['fecha']);\n\t\tunset($_POST['tipo_entrada']);\n\t\t$related = $u->from_array($_POST);\n\t\t// save with the related objects\n\t\t\n\t\tif($u->save($related)){\n //Dar de alta el lote si el proveedor no es el inicial\n if($u->cproveedores_id>0){\n $l=new Lote();\n $l->fecha_recepcion=$u->fecha;\n $l->espacio_fisico_inicial_id=$u->espacios_fisicos_id;\n $l->pr_factura_id=$u->id;\n $l->save(); \n $u->lote_id=$l->id;\n $u->save();\n }\n }\n\t\t\techo \"<input type='hidden' name='id' id='id' value='$u->id'>\";\n \n\t}", "function agregar($nombre, $ApellidoPaterno, $ApellidoMaterno, $idDepartamento, $idPuesto, $idTurno, $idNivelEstudios, $profesion, $sueldoMensual, $contrato, $fechaAlta, $fechaBaja, $idStatusEmpleado, $idPerfil, $correoElectronico, $contrasena, $telCelular, $telCasa, $rfc, $imss, $idCivil, $tipoSangre, $pesionAlimen, $nombreEmergencia, $telEmergencia, $calleNumero, $colonia, $delegacionMunicipio, $estado, $codigoPostal, $pais)\n {\n\n \t$insertDomicilio= array(\n \t\"calleNumero\" \t\t => $calleNumero,\n \t\"colonia\" => $colonia,\n \t\"delegacionMunicipio\" => $delegacionMunicipio,\n \t\"estado\" => $estado,\n \t\"codigoPostal\" => $codigoPostal,\n \t\"pais\"\t => $pais\n\n\n \t\t);\n\n \t//recibe el id de lo que se inserto en la tabla domicilio mediante el domiciliomodelo\n $idDomicilios = $this->domiciliomodelo->agregarDomicilio($insertDomicilio);\n\n\n $insert = array(\n \"nombre\" => $nombre, \n \"ApellidoPaterno\" => $ApellidoPaterno, \n \"ApellidoMaterno\" => $ApellidoMaterno, \n \"idDepartamento\" => $idDepartamento, \n \"idPuesto\" \t\t => $idPuesto, \n \"idTurno\"\t\t => $idTurno, \n \"idNivelEstudios\" => $idNivelEstudios, \n \"profesion\" => $profesion, \n \"sueldoMensual\" => $sueldoMensual, \n \"contrato\" => $contrato, \n \"fechaAlta\" => $fechaAlta, \n \"fechaBaja\" => $fechaBaja, \n \"idStatusEmpleado\" => $idStatusEmpleado, \n \"idPerfil\" => $idPerfil, \n \"correoElectronico\" => $correoElectronico, \n \"contrasena\" => $contrasena, \n \"idDomicilios\" => $idDomicilios, \n \"telCelular\" => $telCelular,\n \"telCasa\" => $telCasa,\n \"rfc\" => $rfc,\n \"imss\" => $imss,\n \"idCivil\" => $idCivil,\n \"tipoSangre\" => $tipoSangre,\n \"pesionAlimen\" => $pesionAlimen,\n \"nombreEmergencia\" => $nombreEmergencia,\n \"telEmergencia\" => $telEmergencia\n\n\n );\n\n\t\t\n\n\n\n \t$this->db->insert('empleados', $insert);\n \treturn $this->db->trans_status();\n\n \n }", "function alta_tipo_entrada(){\n\t\t$u= new Tipo_entrada();\n\t\t$related = $u->from_array($_POST);\n\t\t// save with the related objects\n\t\tif($u->save($related))\n\t\t{\n\t\t\techo \"<html> <script>alert(\\\"Se han registrado los datos del Tipo de Entrada.\\\"); window.location='\".base_url().\"index.php/inicio/acceso/\".$GLOBALS['ruta'].\"/menu';</script></html>\";\n\t\t}\n\t\telse\n\t\t{\n\t\t\tshow_error(\"\".$u->error->string);\n\t\t}\n\t}", "function panier2bdd() {\n\t// if (!empty($_SESSION['dims']['userid']) && !empty($_SESSION['catalogue']['panier'])) {\n\tif (!empty($_SESSION['dims']['userid'])) {\n\t\tinclude_once DIMS_APP_PATH.'/modules/catalogue/include/class_panier.php';\n\t\t$panier = new cata_panier();\n\t\t$panier->open($_SESSION['dims']['userid']);\n\t\t$panier->articles = array();\n\n\t\t$panier->fields['libelle'] = '';\n\t\t$panier->fields['id_user'] = $_SESSION['dims']['userid'];\n\t\t$panier->fields['id_module'] = $_SESSION['dims']['moduleid'];\n\n\t\tif (isset($_SESSION['catalogue']['panier'])) {\n\t\t\tforeach ($_SESSION['catalogue']['panier']['articles'] as $ref => $values) {\n\t\t\t\t$panier->articles[] = array(\n\t\t\t\t\t'ref' \t\t\t=> $ref,\n\t\t\t\t\t'qte' \t\t\t=> $values['qte'],\n\t\t\t\t\t'forced_price' \t=> (isset($values['forced_price']) ? $values['forced_price'] : 'NULL')\n\t\t\t\t\t);\n\t\t\t}\n\t\t}\n\n\t\t$panier->save();\n\t}\n}", "public function crear( $app, $modelo, $transaccion, $vista, $tabla = null, $item_sugerencia_cliente = null )\n { \n if ( is_null($tabla) )\n {\n $tabla = '';\n }\n\n if ( is_null($tabla) )\n {\n $item_sugerencia_cliente = '';\n }\n \n $lista_campos = ModeloController::get_campos_modelo($modelo,'','create');\n $cantidad_campos = count($lista_campos);\n\n $lista_campos = ModeloController::personalizar_campos($transaccion->id, $transaccion, $lista_campos, $cantidad_campos, 'create', null);\n\n $modelo_controller = new ModeloController;\n $acciones = $modelo_controller->acciones_basicas_modelo( $modelo, '' );\n \n $form_create = [\n 'url' => $acciones->store,\n 'campos' => $lista_campos\n ];\n\n $id_transaccion = 8;// 8 = Recaudo cartera\n\n $msj_resolucion_facturacion = '';\n switch ( $transaccion->id )\n {\n case 25: // Factura compras\n $motivos = TesoMotivo::opciones_campo_select_tipo_transaccion( 'Pago proveedores' );\n break;\n case 48: // Doc. Soporte en adquisiciones no obligados a facturas (Compras)\n $motivos = TesoMotivo::opciones_campo_select_tipo_transaccion( 'Pago proveedores' );\n break;\n case 23: // Factura ventas\n $motivos = TesoMotivo::opciones_campo_select_tipo_transaccion( 'Recaudo cartera' );\n break;\n \n default:\n $motivos = TesoMotivo::opciones_campo_select_tipo_transaccion( 'Recaudo cartera' );\n break;\n }\n \n $medios_recaudo = TesoMedioRecaudo::opciones_campo_select();\n $cajas = TesoCaja::opciones_campo_select();\n $cuentas_bancarias = TesoCuentaBancaria::opciones_campo_select();\n\n $miga_pan = $this->get_array_miga_pan( $app, $modelo, 'Crear: '.$transaccion->descripcion );\n \n return view( $vista, compact( 'form_create','miga_pan','tabla','id_transaccion','motivos','medios_recaudo','cajas','cuentas_bancarias', 'item_sugerencia_cliente', 'msj_resolucion_facturacion' ) );\n }", "public function create(){\r\n if ($this->puedeGuardar==1) {\r\n $idModulo=Modulo::lists('nombre','id');\r\n return view('objeto.create',compact('idModulo',$idModulo)); \r\n }\r\n else{\r\n return redirect('/Objeto')->with('message-error','No tiene privilegios para guardar'); \r\n }\r\n \r\n }", "public function __construct() {\n parent::__construct();\n\n $this->addFieldMapping('c4m_body', 'body');\n\n $this->addFieldMapping('c4m_vocab_theme', 'theme')\n ->sourceMigration('C4mDemoContentCreateThemes')\n ->arguments(array('source_type' => 'tid'));\n\n $this->addFieldMapping('c4m_vocab_topic_mapping', 'topic')\n ->sourceMigration('C4mDemoContentCreateTopicTerms')\n ->arguments(array('source_type' => 'tid'));\n\n $this->addFieldMapping('c4m_media', 'image');\n $this->addFieldMapping('c4m_media:file_replace')\n ->defaultValue(FILE_EXISTS_REPLACE);\n $this->addFieldMapping('c4m_media:source_dir')\n ->defaultValue(drupal_get_path('module', 'c4m_demo_content') . '/images');\n $this->addFieldMapping('c4m_media:destination_dir', 'destination');\n\n $this->addFieldMapping('c4m_banner', 'banner');\n $this->addFieldMapping('c4m_banner:file_replace')\n ->defaultValue(FILE_EXISTS_REPLACE);\n $this->addFieldMapping('c4m_banner:source_dir')\n ->defaultValue(drupal_get_path('module', 'c4m_demo_content') . '/images');\n\n $this->addFieldMapping('c4m_related_group_unlimited', 'groups_list');\n\n $this->addFieldMapping('c4m_related_projects_unlimited', 'projects_list');\n\n $this->addFieldMapping('c4m_related_articles', 'articles_list');\n\n $this->addFieldMapping('uid', 'uid')\n ->sourceMigration('C4mDemoContentCreateUsers');\n }", "public function create(Request $request)\n {\n \n $data = $request->all();\n $lignedd = [];\n $messages =[\n 'fournisseur_id' => 'Fournisseur requise',\n ];\n $validation = Validator::make($data, [\n 'fournisseur_id' => 'required',\n ], $messages)->validate();\n $data['code_commande'] = mt_rand(100000, 999999);\n $data['status'] = true;\n $data['motif'] = isset($data['motif']) ? $data['motif'] : null;\n $data['details'] = [];\n \n foreach ($data['detailsCommande'] as $detail) {\n array_push($data['details'], [\n 'article_id' => $detail['article_id'],\n 'qte_commande' => $detail['qte_commande'],\n 'prix_ht' => $detail['prix_ht'],\n 'prix_TTC' => $detail['prix_ttc'],\n 'montant_ttc' => $detail['montant_ttc'],\n 'montant_ht' => $detail['montant_ht'],\n 'remise' => $detail['remise']\n ]); \n }\n // pARTIE AJOUTE POUR LE REAL-TIME\n\n event(new CommandcreateEvent($data));\n\n\n // Fin\n try{\n DB::beginTransaction();\n $cmd = Bon_commande::create([\n 'fournisseur_id' => $request->fournisseur_id,\n 'code_commande' => $data['code_commande'],\n 'motif' => $data['motif'],\n 'status' => $data['status'],\n ]);\n\n foreach ($data['details'] as $ligne_commande) {\n $ligne = Commandearticle::create([\n 'bon_commande_id' => $cmd->id,\n 'article_id' => $ligne_commande['article_id'],\n 'qte_commande'=> $ligne_commande['qte_commande'],\n 'prix_ht'=> $ligne_commande['prix_ht'],\n 'prix_TTC'=> $ligne_commande['prix_TTC'],\n 'montant_ht'=> $ligne_commande['montant_ht'],\n 'montant_ttc'=> $ligne_commande['montant_ttc'],\n 'remise'=> $ligne_commande['remise'],\n ]);\n array_push($lignedd, $ligne); \n }\n \n DB::commit();\n return response()->json('Ok enregistrement reussi');\n }catch(\\Throwable $th){\n DB::rollback();\n return response()->json(\"la transaction échoue \".$th);\n }\n \n }", "public function postDelete()\n {\n if ((!isset($this->revisionEnabled) || $this->revisionEnabled)\n && $this->isSoftDelete()\n && $this->isRevisionable('deleted_at')\n ) {\n $revisions[] = array(\n 'revisionable_type' => get_class($this),\n 'revisionable_id' => $this->getKey(),\n 'key' => 'deleted_at',\n 'old_value' => null,\n 'new_value' => $this->deleted_at,\n 'user_id' => $this->getSystemUserId(),\n 'created_at' => new \\DateTime(),\n 'updated_at' => new \\DateTime(),\n 'activity_id' => $this->getActivityId()\n );\n $revision = new \\Venturecraft\\Revisionable\\Revision;\n \\DB::table($revision->getTable())->insert($revisions);\n }\n }", "function crear_relato(){\r\n $this->load->database();\r\n\r\n $datos_insertar = $this->input->post();\r\n unset($datos_insertar['bt_enviar']); //le quitamos el boton enviar, pues no lo necesitamos para el insert de\r\n\r\n //print_r($datos_insertar);\r\n $this->db->insert('relatos',$datos_insertar);\r\n\r\n //insertamos el relato en nuestra BD\r\n $id_relato = $this->db->insert_id();\r\n\r\n //tras crear el relato, insertamos el primer capitulo, pues todos los relatos constarán de al menos un capitulo\r\n $datos_primer_capitulo = array(\r\n \"numRelato\" => $id_relato,\r\n \"texto\" => 'CAPÍTULO 1:'\r\n );\r\n\r\n //print_r($datos_primer_capitulo);\r\n $this->db->insert('capitulos',$datos_primer_capitulo);\r\n\r\n return $id_relato;\r\n }", "function guardar_lab_detalle($id_repote, $id_concepto, $valor_num, $valor_alfa){\n\n\t\t$sql = \"INSERT INTO\n\t\t\t\t\t\tprd_lab_registro_detalle (id_reporte, id_concepto, valor_num, valor_alfa)\n\t\t\t\t\t\tVALUES\n\t\t\t\t\t\t\t(\" . $id_repote . \", \" . $id_concepto . \", \" .\n\t\t\t\t\t\t\t$valor_num . \", '\" . $valor_alfa . \"')\";\n\n\t\t$result =$this->insert_id($sql);\n\t\treturn $result;\n\n\n\t}", "public function create()\n {\n //\n \n }", "public function create($departamentoid)\n {\n \n }", "public function derivarAction()\n {\n $idList = $this->_getParam('id');\n \n /* Traigo el formulario*/\n $form = $this->_form->getFrmDeriva();\n $form->setAction($this->view->baseUrlController . '/derivar/id/'. $idList .'/');\n\n if ($this->_request->isPost()) { /* Si se ha submiteado el formulario, se procede a guardar los datos */\n \n /* Desactivo el auto renderizado */\n $this->disableAutoRender();\n\n if ($idList) {\n /* Convierto la lista a un Array */\n $idArray = explode (\",\", $idList);\n \n /* Recibo datos del formulario */\n $formData = $this->_request->getPost(); \n\n /* Lleno el formulario con los datos recibidos por _POST */\n $form->populate($formData);\n \n /* Creo el objeto Movimiento */\n $objMovimiento = new Gidoc_Model_MovimientoMapper();\n\n /* Verifico el valor del usuario destino */\n $usuariodestino_id = @$formData['usuariodestino_id']; /* Como es un elemento que se a agregado con ajax y no se encuentra en el formulario, entonces debo obtener el dato directamente del $formdata */\n if($usuariodestino_id == ''){\n $usuariodestino_id = null;\n }\n \n /* Para determinar si está derivando a una oficina o a un grupo */\n $dependenciadestino_id = $form->dependenciadestino_id->getValue();\n $destinoArray = explode(\"-\", $dependenciadestino_id);\n $tipoDestino = $destinoArray[0];\n $destino_id = $destinoArray[1];\n \n \n /* Recorro el array */\n foreach ($idArray as $id) {\n\n /* Como recibo el Id del Movimiento, entonces obtengo el id de la tabla Documento */\n $movimiento = $objMovimiento->getById($id);\n $documento_id = $movimiento->documento_id;\n\n if($tipoDestino == 'ofi') { /* Si se está derivando a una oficina */\n \n /* Creo mi array */\n $data = array('documento_id' => $documento_id,\n 'dependencia_id' => $this->_usuario->dependencia_id,\n 'usuario_id' => $this->_usuario->id,\n 'tipomovimiento_id' => 2,\n 'acciones' => $form->acciones->getValue(),\n 'dependenciadestino_id' => $destino_id,\n 'usuariodestino_id' => $usuariodestino_id,\n 'movimientoprocesado_id' => $id);\n\n $movimiento = new Gidoc_Model_MovimientoMapper();\n try {\n $movimiento->save($data);\n } catch(Exception $ex) {\n $message = $ex->getMessage();\n echo 'error|'.$message;\n }\n \n } else { /* Se está derivando a un grupo */\n \n try {\n\n $this->_modelo->grabaDerivacionesDeGrupo($destino_id, $this->_usuario->id, $form->acciones->getValue(), $id);\n\n } catch(Exception $ex) {\n\n $message = $ex->getMessage();\n echo 'error|'.$message;\n }\n \n } \n \n }\n }\n\n \n } else { /* Se llama al formulario */\n \n $this->view->form = $form;\n $this->_helper->layout->disableLayout();\n $this->render('derivar');\n //$this->_forward('myeditar','index','default');\n\n }\n }", "public function run()\n {\n\n $detail = new Detail();\n $detail->name = 'Sin Gestion';\n $detail->status_id = 1;\n $detail->save();\n\n // Potencial Cliente = 1\n\n $detail = new Detail();\n $detail->name = 'En Gestion';\n $detail->status_id = 1;\n $detail->save();\n\n $detail = new Detail();\n $detail->name = 'Positivo con Correo';\n $detail->status_id = 1;\n $detail->save();\n\n $detail = new Detail();\n $detail->name = 'Positivo sin Correo';\n $detail->status_id = 1;\n $detail->save();\n\n $detail = new Detail();\n $detail->name = 'No Contesta';\n $detail->status_id = 1;\n $detail->save();\n\n $detail = new Detail();\n $detail->name = 'Solicitud de Muestras';\n $detail->status_id = 1;\n $detail->save();\n\n $detail = new Detail();\n $detail->name = 'Agregado';\n $detail->status_id = 1;\n $detail->save();\n\n $detail = new Detail();\n $detail->name = 'Correo por Confirmar';\n $detail->status_id = 1;\n $detail->save();\n\n $detail = new Detail();\n $detail->name = 'Devuelto';\n $detail->status_id = 1;\n $detail->save();\n\n $detail = new Detail();\n $detail->name = 'Envia lista de Precio';\n $detail->status_id = 1;\n $detail->save();\n\n $detail = new Detail();\n $detail->name = 'Envio de Catalogo';\n $detail->status_id = 1;\n $detail->save();\n\n $detail = new Detail();\n $detail->name = 'Futuros Productos';\n $detail->status_id = 1;\n $detail->save();\n\n $detail = new Detail();\n $detail->name = 'Posible';\n $detail->status_id = 1;\n $detail->save();\n\n\n\n // Muestras = 2\n\n\n $detail = new Detail();\n $detail->name = 'Sin Contactar';\n $detail->status_id = 2;\n $detail->save();\n\n $detail = new Detail();\n $detail->name = 'Por Concretar Venta';\n $detail->status_id = 2;\n $detail->save();\n\n $detail = new Detail();\n $detail->name = 'En Seguimiento';\n $detail->status_id = 2;\n $detail->save();\n\n $detail = new Detail();\n $detail->name = 'Muestras';\n $detail->status_id = 2;\n $detail->save();\n\n // Rechazos = 3\n $detail = new Detail();\n $detail->name = 'Usan Tomates Naturales';\n $detail->status_id = 3;\n $detail->save();\n\n $detail = new Detail();\n $detail->name = 'Precio';\n $detail->status_id = 3;\n $detail->save();\n\n $detail = new Detail();\n $detail->name = 'Usan Salsa para Pizza';\n $detail->status_id = 3;\n $detail->save();\n\n $detail = new Detail();\n $detail->name = 'Usan Concentrado';\n $detail->status_id = 3;\n $detail->save();\n\n $detail = new Detail();\n $detail->name = 'Usan otro Producto';\n $detail->status_id = 3;\n $detail->save();\n\n $detail = new Detail();\n $detail->name = 'Presetacion';\n $detail->status_id = 3;\n $detail->save();\n\n $detail = new Detail();\n $detail->name = 'Rechazado';\n $detail->status_id = 3;\n $detail->save();\n\n\n // Clientes Activos = 4\n\n $detail = new Detail();\n $detail->name = 'Baja';\n $detail->status_id = 4;\n $detail->save();\n\n $detail = new Detail();\n $detail->name = 'Promesa de Compra';\n $detail->status_id = 4;\n $detail->save();\n\n $detail = new Detail();\n $detail->name = 'Venta';\n $detail->status_id = 4;\n $detail->save();\n\n\n // Bajas = 5\n\n\n $detail = new Detail();\n $detail->name = 'Precio';\n $detail->status_id = 5;\n $detail->save();\n\n $detail = new Detail();\n $detail->name = 'Motivos Administrativos';\n $detail->status_id = 5;\n $detail->save();\n\n $detail = new Detail();\n $detail->name = 'Falta de Seguimiento';\n $detail->status_id = 5;\n $detail->save();\n\n $detail = new Detail();\n $detail->name = 'Calidad del Producto';\n $detail->status_id = 5;\n $detail->save();\n\n $detail = new Detail();\n $detail->name = 'Otros';\n $detail->status_id = 5;\n $detail->save();\n\n }", "public function create() \n {\n //\n }", "public function create() {\r\n //\r\n }", "public function run()\n {\n factory(Commande::class, 150)->create(); \n }", "public function create()\n {\n // \n }", "function crear_ruta_unidad($un_x,$r_x,$usu,$cli){\n\t\n global $db,$dbf,$fecha_con_formato,$nueva_ruta,$insertar_ruta_unidad;\n\t \n\n $data = Array(\n \t'DESCRIPTION' => utf8_decode(strtoupper($r_x)),\n 'COD_USER' => $usu,\n 'COD_CLIENT' => $cli,\n 'CREATE_DATE' => $fecha_con_formato\n \n );\n \n if($dbf-> insertDB($data,'SAVL_ROUTES',true) == true){\n echo \"se genero la ruta, ahora se asigna unidad a ruta siempre y cuando sea diferente de -1 en el cod_entity\";\n\t\t\t\t\n\t\t\t\t$ruta = \"SELECT ID_ROUTE FROM SAVL_ROUTES WHERE DESCRIPTION LIKE '%\".strtoupper($r_x).\"%'\";\n\t\t\t\t $query = $db->sqlQuery($ruta);\n\t\t\t\t $row = $db->sqlFetchArray($query);\n\t\t\t\t \t$count_x = $db->sqlEnumRows($query);\t \n\t\t\t\t\t\n\t\t\t\t\t \t\n\t\t\t\tif($un_x!=-1) {\n\t\t\t\t\t $data_3 = Array(\n\t\t\t\t\t\t\t\t\t 'ID_ROUTE' => $row['ID_ROUTE'],\n\t\t\t\t\t\t\t\t\t 'COD_ENTITY' => $un_x,\n\t\t\t\t\t\t\t\t\t 'COD_USER' => $usu,\n\t\t\t\t\t\t\t\t\t 'CREATE_DATE' => $fecha_con_formato\n\t\t\t\t\t\t\t\t\t );\n\t\t\t\t\t\t\t if($dbf-> insertDB($data_3,'SAVL_ROUTES_UNITS',true) == true){\n \t\t\t\t\t echo \"info de la ruta\".$row['ID_ROUTE'].'-'.$un_x.'-'.$usu.'-'.$fecha_con_formato.'<br />';\n\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t }else{\n \t\t\t\t echo \"fallo en ruta-unidad\";\t\n }\n\t\t\t\t\t\t\t \n\t\t\t }\t\t\t\t \t\t\t\n\t\t\t}\t\t\n\t\t\t\n\t\t\t\n\t $nueva_ruta = $row['ID_ROUTE'];\t\t\n $insertar_ruta_unidad = $insertar_ruta_unidad + 1;\n}", "function saveVister()\n {\n \n }", "public function create()\n {\n \n\n\n }", "public function nuevoLenguajes() {\n\t $this->Utilidades->validar($this->Session->get('admin'));\n\t $data['breadCrumb'] = $this->BreadCrumb->listarBreadCrumb($_REQUEST);\n\t $data['datos'] = $this->Lenguajes->buscarLenguajes($_REQUEST);\n\t $this->Vistas->show('editarLenguajes.html',$data);\n\t}", "public function create()\n {\n $anio = Input::get('anio');\n $mes = Input::get('mes');\n $tipo = Input::get('tipo');\n\n //validar que se ingresen tods los datos\n if($mes == \"\"){\n return Redirect::back()->with('error', 'Se deben ingresar todos los datos')\n ->withInput();\n }\n\n //validar año numérico\n if(!is_numeric($anio)){\n return Redirect::back()->with('anio', 'Ingrese un año válido')\n ->withInput();\n }\n\n //verificar existencia y llamar función de generación\n switch ($tipo) {\n case 'ventas':\n $puntosVenta = PuntoVenta::where('pvActivo', '=', 1)->get();\n $puntoOrdenes= array();\n $i = 0;\n $totalmes = 0;\n $totalmesU = 0;\n foreach($puntosVenta as $puntoVenta){\n $ordenes = Orden::whereMonth('ordFecha', '=', $mes)->whereYear('ordFecha', '=', $anio)->where('ordPuntoVentaID', '=', $puntoVenta->pvID)->get();\n if(count($ordenes) > 0){\n $puntoOrdenes[$i]['totalPuntoVenta'] = 0;\n $puntoOrdenes[$i]['totalPuntoVentaC'] = 0;\n $puntoOrdenes[$i]['totalPuntoVentaU'] = 0;\n $puntoOrdenes[$i]['puntoVenta'] = $puntoVenta->pvNombre;\n $puntoOrdenes[$i]['ordenes'] = array();\n $k = 0;\n foreach($ordenes as $orden){\n $puntoOrdenes[$i]['ordenes'][$k] = $orden;\n $orden->ordTotalUtilidades = $orden->ordTotal - $orden->ordTotalCompra;\n $puntoOrdenes[$i]['totalPuntoVenta'] += $orden->ordTotal;\n $puntoOrdenes[$i]['totalPuntoVentaC'] += $orden->ordTotalCompra;\n $puntoOrdenes[$i]['totalPuntoVentaU'] += $orden->ordTotalUtilidades;\n $totalmes += $orden->ordTotal;\n $totalmesU += $orden->ordTotalUtilidades;\n $k++;\n }\n $i++;\n }\n }\n if (count($puntoOrdenes)>0){\n return $this->generateInformVentas($puntoOrdenes, $mes, $anio, $totalmes, $totalmesU);\n }else{\n return Redirect::back()->with('error', 'No se encontraron ventas para el año y mes especificados')\n ->withInput();\n }\n break;\n case 'garantias':\n $garantias = Garantia::whereMonth('grnFecha', '=', $mes)->whereYear('grnFecha', '=', $anio)->get();\n $instaladores = Instalador::where('insActivo', '=', 1)->get();\n //$instaladorGarantias[] = array('insNombre', 'insApellido', 'ordenes', 'totalMes', 'totalInstalador');\n $instaladorGarantias = array();\n $i = 0;\n $totalMes = 0;\n foreach($instaladores as $instalador){\n $ordenes = DB::table('garantias')\n ->join('ordens', 'ordens.ordID', '=', 'garantias.grnOrdenID')\n ->whereMonth('grnFecha', '=', $mes)\n ->whereYear('grnFecha', '=', $anio)\n ->where('ordInstaladorID', '=', $instalador->insID)->get();\n\n if(count($ordenes) > 0){\n $instaladorGarantias[$i]['insNombre'] = $instalador->insNombre;\n $instaladorGarantias[$i]['insApellido'] = $instalador->insApellido;\n $instaladorGarantias[$i]['totalInstalador'] = 0;\n $instaladorGarantias[$i]['ordenes'] = array();\n $k = 0;\n foreach($ordenes as $orden){\n $garantia = Garantia::where('grnOrdenID', '=', $orden->ordID)->first();\n $orden->grnFecha = $garantia->grnFecha;\n $orden->grnObservaciones = $garantia->grnObservaciones;\n $instaladorGarantias[$i]['ordenes'][$k] = $orden;\n $instaladorGarantias[$i]['totalInstalador'] += 1;\n $totalMes += 1;\n $k++;\n }\n $i++;\n }\n }\n if (count($instaladorGarantias)>0){\n return $this->generateInformGarantias($instaladorGarantias, $mes, $anio, $totalMes);\n }else{\n return Redirect::back()->with('error', 'No se encontraron garantías registradas para el año y mes especificados')\n ->withInput();\n }\n break;\n case 'instalaciones':\n $instaladores = Instalador::where('insActivo', '=', 1)->get();\n $instaladorOrdenes = array();\n $i = 0;\n $totalMesSI = 0;\n $totalMesNO = 0;\n foreach($instaladores as $instalador){\n $ordenes = Orden::whereMonth('ordFechaInstalacion', '=', $mes)->whereYear('ordFechaInstalacion', '=', $anio)->where('ordInstaladorID', '=', $instalador->insID)->get();\n if(count($ordenes) > 0){\n $instaladorOrdenes[$i]['insNombre'] = $instalador->insNombre;\n $instaladorOrdenes[$i]['insApellido'] = $instalador->insApellido;\n $instaladorOrdenes[$i]['totalInstaladorSI'] = 0;\n $instaladorOrdenes[$i]['totalInstaladorNO'] = 0;\n $instaladorOrdenes[$i]['ordenes'] = array();\n $k = 0;\n foreach($ordenes as $orden){\n $instaladorOrdenes[$i]['ordenes'][$k] = $orden;\n if($orden->ordEstadoInstalacionID == 4){\n $totalMesSI += 1;\n $instaladorOrdenes[$i]['totalInstaladorSI'] += 1;\n }else{\n $totalMesNO += 1;\n $instaladorOrdenes[$i]['totalInstaladorNO'] += 1;\n }\n $k++;\n }\n $i++;\n }\n }\n $ordenesNO = Orden::whereMonth('ordFechaInstalacion', '=', $mes)->whereYear('ordFechaInstalacion', '=', $anio)->where('ordEstadoInstalacionID', '=', 3)->get();\n if (count($instaladorOrdenes)>0 || count($ordenesNO)>0){\n return $this->generateInformInstalaciones($instaladorOrdenes, $mes, $anio, $totalMesSI, $totalMesNO, $ordenesNO);\n }else{\n return Redirect::back()->with('error', 'No se encontraron instalaciones programadas para el año y mes especificados')\n ->withInput();\n }\n break;\n }\n\n //return Redirect::back()->with('success', 'Informe emitido exitosamente')\n //->withInput();\n }", "public function GenerarPedidoCrecer($refVenta)\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\t\r\n\t\t\t$fechaConfirmacion=date(\"m/d/Y h:m:s\" );\r\n\t\t\t\r\n\t\t\t//ACTUALIZAMOS EL ESTADO DE PEDIDO WEB A CONFIRMADO Y AGREGAMOS LA FECHA DE CONFIRMACION\r\n\t\t\t//$recordSett = &$this->conexion->conectarse()->Execute(\"\tUPDATE PedidoWeb\r\n\t\t\t//SET FechaRespuesta ='\".$fechaConfirmacion.\"', Estado = 1\r\n\t\t\t//WHERE (CodigoTransaccion = '\".$refVenta.\"' AND Estado = 3)\");\t\r\n\t\t\t\r\n\t\t\t//CREAMOS EL PEDIDO EN CRECER\r\n\t\t\t//1.OBTENEMOS LA INFORMACION DEL PEDIDO DESDE LA TABLA TEMPORAL\r\n\t\t\t\r\n\t\t\t//Id--0\r\n\t\t\t//CodigoTransaccion--1\r\n\t\t\t//IdPoliza--2\r\n\t\t\t//FechaCreacion--3\r\n\t\t\t//FechaRespuesta--4\r\n\t\t\t//NombreTitularFactura--5\r\n\t\t\t//DocumentoTitularFactura--6\r\n\t\t\t//DireccionTitularFactura--7\r\n\t\t\t//TelefonoTitularFactura--8\r\n\t\t\t//EmailTitularFactura--9\r\n\t\t\t//TelefonoContacto--10\r\n\t\t\t//TelefonoMovilContacto--11\r\n\t\t\t//DireccionContacto--12\r\n\t\t\t//NombreContactoEmergencia--13\r\n\t\t\t//ApellidoContactoEmergencia--14\r\n\t\t\t//TelefonoContactoEmergencia--15\r\n\t\t\t//EmailContactoEmergencia--16\r\n\t\t\t//Estado--17\r\n\t\t\t//FechaInicio--18\r\n\t\t\t//FechaFin--19\r\n\t\t\t//Precio--20\r\n\t\t\t//Region--21\r\n\t\t\t//TrmIata--22\t\t\t\r\n\t\t\t\r\n\t\t\t$pedidoWeb = &$this->conexion->conectarse()->Execute(\"SELECT Id, CodigoTransaccion, IdPoliza, FechaCreacion, FechaRespuesta, NombreTitularFactura, DocumentoTitularFactura, DireccionTitularFactura, TelefonoTitularFactura, EmailTitularFactura, TelefonoContacto, TelefonoMovilContacto, DireccionContacto, \r\n\t\t\tNombreContactoEmergencia, ApellidoContactoEmergencia, TelefonoContactoEmergencia, EmailContactoEmergencia,\r\n\t\t\t Estado, FechaInicio, FechaFin, Precio, Region, TrmIata \r\n\t\t\t FROM dbo.PedidoWeb\t\tWHERE CodigoTransaccion= '\".$refVenta.\"'\");\t\t\r\n\r\n\t\t\t//2.VALIDAMOS EL CLIENTE SI NO EXISTE CREAMOS EL CLIENTE Y SU CONTACTO.\t\t\t\r\n\t\t\t$existeCliente = &$this->conexion->conectarse()->Execute(\"SELECT DISTINCT Identificacion,Id FROM dbo.Empresas\r\n\t\t\tWHERE Identificacion='\".$pedidoWeb->fields[6].\"' \");\t\r\n\t\t\t\r\n\t\t\t$IdCliente=\"\";\r\n\t\t\t//CREAMOS EL CLIENTE NUEVO \r\n\t\t\tif($existeCliente->fields[0]==\"\"){\r\n\t\t\t\t\r\n\t\t\t\techo \"Entramos a creacion\";\r\n\t\t\t\t\r\n\t\t\t\t$IdCliente=$this->fun->NewGuid();\r\n\t\t\t\t$IdContacto=$this->fun->NewGuid();\r\n\t\t\t\t$IdPedido=$this->fun->NewGuid();\r\n\t\t\t\t$IdProductoCotizacion=$this->fun->NewGuid();\r\n\t\t\t\t$IdFactura=$this->fun->NewGuid();\t\t\t\t\r\n\t\t\t\t$grupo=2;//ASESORES\r\n\t\t\t\t$prioridad=2;\r\n\t\t\t\t$seguimiento=\"Creado desde el portal web \". $fechaConfirmacion.\"\\n\";\r\n\t\t\t\t$moneda=2;//DOLARES\r\n\t\t\t\t$viaContacto=2;//WEB\r\n\t\t\t\t$formaPago=1;\r\n\t\t\t\t//CREAMOS LA EMPRESA\r\n\t\t\t\t$crearCliente = &$this->conexion->conectarse()->Execute( \"INSERT INTO Empresas\r\n (Id, TipoEmpresa, Identificacion, Dv, RazonSocial, Antiguedad, Telefono, Fax, Direccion, Mail, Url, Ciudad, Departamento, Pais, Aniversario, TieneAniversario, \r\n FechaIngreso, IdActividadEconomica, Movil, Observaciones, SeguimientoHistorico, Estado, IdAsesor, RepresentanteLegal, IdTipoMonedaImportacion, \r\n TipoNacionalidad, IdEmpleadoModif, Imagen)\r\n\t\t\t\t\t\tVALUES ('\".$IdCliente.\"','N/A','\".$pedidoWeb->fields[6].\"','N','\".$pedidoWeb->fields[5].\"','0',\r\n\t\t\t\t\t\t'\".$pedidoWeb->fields[8].\"','0','\".$pedidoWeb->fields[7].\"','\".$pedidoWeb->fields[9].\"','-',NULL,NULL,\r\n\t\t\t\t\t\tNULL,NULL,NULL,'\".$fechaConfirmacion.\"',\r\n\t\t\t\t\t\tNULL,'\".$pedidoWeb->fields[11].\"','Ninguna',\r\n\t\t\t\t\t\tNULL,'0',NULL,'Ninguno',\r\n\t\t\t\t\t\t'2','false',NULL,\r\n\t\t\t\t\t\tNULL)\");\r\n\t\t\t\t\r\n\t\t\t\t//CREAMOS EL CLIENTE\r\n\t\t\t\t$crearCliente = &$this->conexion->conectarse()->Execute( \"INSERT INTO Clientes\r\n (Id, Ingreso, Inicio, Fin, CodigoSwift, IdTipoCliente, IdActividadEconomica)\r\n\t\t\t\tVALUES ('\".$IdCliente.\"','\".$fechaConfirmacion.\"','\".$fechaConfirmacion.\"',NULL,'0',NULL,'0')\");\r\n\t\t\t\t\r\n\t\t\t\t//NOTIFICAMOS DE LA COMPRA AL TITLULAR DE LA FACTURA\r\n\t\t\t\t/////////$this->fun->SendMailConfirmacionPago($pedidoWeb->fields[9], $pedidoWeb->fields[5], $pedidoWeb->fields[6]);\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t//CREAMOS EL CONTACTO.\t\t\t\t\r\n\t\t\t\t$crearContacto= &$this->conexion->conectarse()->Execute(\"INSERT INTO Contactos(Id, Descripcion, Cargo, Direccion, Telefono, Extension, Celular, Fax, EmailEmpresa, EmailPersonal, Observacion, Cumpleanno, TieneCumpleanno, Estado)\r\n\t\t\t\tVALUES ('\".$IdContacto.\"','\".$pedidoWeb->fields[13].\" \".$pedidoWeb->fields[14].\"',NULL,NULL,'\".$pedidoWeb->fields[15].\"',NULL,NULL,NULL,'\".$pedidoWeb->fields[16].\"','\".$pedidoWeb->fields[16].\"',NULL,NULL,NULL,'true')\");\r\n\t\t\t\t\r\n\t\t\t\t$asociarContacto= &$this->conexion->conectarse()->Execute(\" INSERT INTO EmpresaContactos (IdEmpresa, IdContacto)\r\n\t\t\t\tVALUES ('\".$IdCliente.\"','\".$IdContacto.\"')\");\r\n\r\n\t\t\t\t//CREAMOS EL PEDIDO\r\n\t\t\t\t\r\n\t\t\t\t\t$crearPedido = &$this->conexion->conectarse()->Execute(\"INSERT INTO OrdenCompraCliente\r\n (Id, FechaElaboracion, IdCliente, IdPaisOrigen, IdSedeCliente, IdRegionDestino, IdContactoEmergencia, FechaSalida, FechaRegreso, CantidadPasajeros, IdContacto, \r\n Codigo, IdAutor, IdEmpleado, FechaModificacion, SubtotalSinDto, Subtotal, ValorIva, Total, Trm_dia, UtilidadSobreCosto, Estado, GrupoAsignado, Prioridad, \r\n Probabilidad, Observaciones, SeguimientoHistorico, FechaRecepcion, Moneda, FormaPago, TiempoEntrega, TiempoVigencia, Instalacion, \r\n IdEmpleadoModif, IdViadeContacto)\r\n\t\t\t\t\t\t\tVALUES ('\".$IdPedido.\"','\".$fechaConfirmacion.\"','\".$IdCliente.\"','1',\r\n\t\t\t\t\t\t\t'00000000-0000-0000-0000-000000000000','\".$pedidoWeb->fields[21].\"',\r\n\t\t\t\t\t\t\t'\".$IdContacto.\"','\".$pedidoWeb->fields[18].\"','\".$pedidoWeb->fields[19].\"','0','\".$IdContacto.\"','',\r\n\t\t\t\t\t\t\t'7e33a6e3-f03d-4211-9ef3-767aa2fa56fc','7e33a6e3-f03d-4211-9ef3-767aa2fa56fc','\".$fechaConfirmacion.\"','\".$pedidoWeb->fields[20].\"','\".$pedidoWeb->fields[20].\"','0','\".$pedidoWeb->fields[20].\"','\".$pedidoWeb->fields[22].\"',\r\n\t\t\t\t\t\t\t'true','1','\".$grupo.\"','\".$prioridad.\"','100',NULL,'\".$seguimiento.\"',\r\n\t\t\t\t\t\t\t'\".$fechaConfirmacion.\"','\".$moneda.\"','\".$formaPago.\"',NULL,NULL,'false','00000000-0000-0000-0000-000000000000','\".$viaContacto.\"')\");\r\n\t\t\t\t\t//CREAMOS EL PRODUCTO COTIZACION.\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\t// OBTENEMOS LA CANTIDAD DE PASAJEROS.\t\t\t\t\t\t\r\n\t\t\t\t\t\t$cantidadPasajeros = &$this->conexion->conectarse()->Execute(\"SELECT COUNT(*) AS Expr1\r\n\t\t\t\t\t\tFROM PasajerosPedido\r\n\t\t\t\t\t\tWHERE (IdPedido = '\".$pedidoWeb->fields[0].\"')\");\r\n\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t$productoCotizacion = &$this->conexion->conectarse()->Execute(\"INSERT INTO ProductosCotizacion\r\n (Id, IdProducto, IdReferencia, Cantidad, ValorVenta, SubtotalSinDescuento, ValorVentaCliente, IVA, AplicarIva, IdFormaEnvio, TipoTrasporte, UtilidadGlobal, Utilidad, \r\n UtilidadEnPorcentaje, UtilidadDespuesCosto, Arancel, ComicionProveedor, IdEmpleado, FechaModificacion, FechaElaboracion, Moneda, ComentarioAdicional, \r\n Descuento, Aumento)\r\n\t\t\t\t\t\t\tVALUES ('\".$IdProductoCotizacion.\"','\".$pedidoWeb->fields[2].\"','\".$IdPedido.\"','\".$cantidadPasajeros->fields[0].\"','\".$pedidoWeb->fields[20].\"','\".$pedidoWeb->fields[20].\"','\".$pedidoWeb->fields[20].\"',\r\n\t\t\t\t\t\t\t'0','true','0','0','0','0','true','false','0',\r\n\t\t\t\t\t\t\t'0','7e33a6e3-f03d-4211-9ef3-767aa2fa56fc','\".$fechaConfirmacion.\"','\".$fechaConfirmacion.\"','4','','0','0')\");\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t//CREAMOS EL PASAJERO PRODUCTO COTIZACION.\r\n\t\t\t\t\t\t//CONSULTAMOS LOS PASAJEROS ASOCIADOS AL PEDIDO\t\t\t\t\t\t\r\n\t\t\t\t\t\t$pedidoPasajero = &$this->conexion->conectarse()->Execute(\"SELECT Id, IdPedido, Nombre, Apellido, Documento, Email, FechaNacimiento\r\n\t\t\t\t\t\t\tFROM PasajerosPedido \r\n\t\t\t\t\t\t\tWHERE (IdPedido = '\".$pedidoWeb->fields[0].\"')\");\t\t\r\n\t\t\t\t\t\tforeach($pedidoPasajero as $k => $row) {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$idPasajero=\"\";\r\n\t\t\t\t\t\t\t$numeroPoliza=\"\";// ACA DEBO LLAMAR EL WEBSERVICE\r\n\t\t\t\t\t\t\t$idPasajeroProducto=$this->fun->NewGuid();\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$existePasajero = &$this->conexion->conectarse()->Execute(\"SELECT Id\r\n\t\t\t\t\t\t\t\tFROM Pasajero\r\n\t\t\t\t\t\t\t\tWHERE (Identificacion = '\". $row[4].\"')\");\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t//NOTIFICAMOS A LOS PASAJEROS DE LA COMPRA\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t///////////$this->fun->SendMailConfirmacionPago($row[5], $row[2], $row[3]);\r\n\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tif($existePasajero->fields[0]==\"\"){\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t//CREAMOS PASAJERO\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t$idPasajero=$this->fun->NewGuid();\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t$existePasajero = &$this->conexion->conectarse()->Execute(\"\r\n\t\t\t\t\t\t\t\tINSERT INTO Pasajero\r\n \t\t(Id, Nombre, Apellido, Identificacion, FechaNacimiento, Telefono, Celular, Email, Estado, Direccion, Observaciones, SeguimientoHistorico)\r\n\t\t\t\t\t\t\t\tVALUES ('\".$idPasajero.\"','\".$row[2].\"','\".$row[3].\"','\".$row[4].\"','\".$row[6].\"','\".$pedidoWeb->fields[10].\"','\".$pedidoWeb->fields[11].\"','\".$row[5].\"','true','\".$pedidoWeb->fields[12].\"','-','\".$seguimiento.\"')\");\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t//ASOCIAMOS EL CONTACTO DE EMERGENCIA\r\n\t\t\t\t\t\t\t\t$asociarContacto= &$this->conexion->conectarse()->Execute(\" INSERT INTO EmpresaContactos (IdEmpresa, IdContacto)\r\n\t\t\t\t\t\t\t\tVALUES ('\".$idPasajero.\"','\".$IdContacto.\"')\");\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t//ASOCIAMOS AL PASAJERO PRODUCTO COTIZACION\t\r\n\t\t\t\t\t\t\t\t$asociamospasajero = &$this->conexion->conectarse()->Execute(\"\r\n\t\t\t\t\t\t\t\t\tINSERT INTO PasajerosProductosCotizacion (Id, IdPasajero, IdProductoCotizacion, Poliza, Estado, Aumento, Descuento, ValorUnitario)\r\n\t\t\t\t\t\t\t\t\tVALUES ('\".$idPasajeroProducto.\"','\".$idPasajero.\"','\".$IdProductoCotizacion.\"','\".$numeroPoliza.\"','true','0','0','0')\");\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse if($existePasajero->fields[0]!=\"\"){\r\n\t\t\t\t\t\t\t//\techo \"Entramos al caso cuando el pasajero ya existe\";\r\n\t\t\t\t\t\t\t\t$idPasajero=$existePasajero->fields[0];\t\t\r\n\t\t\t\t\t\t\t\t\t//ASOCIAMOS EL CONTACTO DE EMERGENCIA\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t$asociarContacto= &$this->conexion->conectarse()->Execute(\" INSERT INTO EmpresaContactos (IdEmpresa, IdContacto)\r\n\t\t\t\t\t\t\t\tVALUES ('\".$idPasajero.\"','\".$IdContacto.\"')\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t//ASOCIAMOS AL PASAJERO PRODUCTO COTIZACION\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t$asociamospasajero = &$this->conexion->conectarse()->Execute(\"\r\n\t\t\t\t\t\t\t\t\tINSERT INTO PasajerosProductosCotizacion (Id, IdPasajero, IdProductoCotizacion, Poliza, Estado, Aumento, Descuento, ValorUnitario)\r\n\t\t\t\t\t\t\t\t\tVALUES ('\".$idPasajeroProducto.\"','\".$idPasajero.\"','\".$IdProductoCotizacion.\"','\".$numeroPoliza.\"','true','0','0','0')\");\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t//CREAMOS FACTURA.\t\t\t\t\r\n\t\t\t\t//CREAMOS FACTURA ORDEN COMPRA.\t\t\t\t\r\n\t\t\t\t//CREAMOS ALERTAS FACTURACION.\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t//EL CLIENTE YA EXISTE - ASOCIAMOS TODO EL PEDIDO\r\n\t\t\telse if($existeCliente->fields[0]!=\"\") {\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t$IdCliente=$existeCliente->fields[1];\t\t\t\t\t\t\r\n\t\t\t\t$IdContacto=$this->fun->NewGuid();\r\n\t\t\t\t$IdPedido=$this->fun->NewGuid();\r\n\t\t\t\t$IdProductoCotizacion=$this->fun->NewGuid();\r\n\t\t\t\t$IdFactura=$this->fun->NewGuid();\t\t\t\t\r\n\t\t\t\t$grupo=2;//ASESORES\r\n\t\t\t\t$prioridad=2;\r\n\t\t\t\t$seguimiento=\"Creado desde el portal web \". $fechaConfirmacion.\"\\n\";\r\n\t\t\t\t$moneda=2;//DOLARES\r\n\t\t\t\t$viaContacto=2;//WEB\r\n\t\t\t\t$formaPago=1;\r\n\t\t\t\t\r\n\t\t\t\t//CREAMOS EL CONTACTO.\t\t\t\t\r\n\t\t\t\t$crearContacto= &$this->conexion->conectarse()->Execute(\"INSERT INTO Contactos(Id, Descripcion, Cargo, Direccion, Telefono, Extension, Celular, Fax, EmailEmpresa, EmailPersonal, Observacion, Cumpleanno, TieneCumpleanno, Estado)\r\n\t\t\t\tVALUES ('\".$IdContacto.\"','\".$pedidoWeb->fields[13].\" \".$pedidoWeb->fields[14].\"',NULL,NULL,'\".$pedidoWeb->fields[15].\"',NULL,NULL,NULL,'\".$pedidoWeb->fields[16].\"','\".$pedidoWeb->fields[16].\"',NULL,NULL,NULL,'true')\");\r\n\t\t\t\t\r\n\t\t\t\t$asociarContacto= &$this->conexion->conectarse()->Execute(\" INSERT INTO EmpresaContactos (IdEmpresa, IdContacto)\r\n\t\t\t\tVALUES ('\".$IdCliente.\"','\".$IdContacto.\"')\");\r\n\r\n\t\t\t\t//CREAMOS EL PEDIDO\r\n\t\t\t\t\r\n\t\t\t\t$crearPedido = &$this->conexion->conectarse()->Execute(\"INSERT INTO OrdenCompraCliente\r\n (Id, FechaElaboracion, IdCliente, IdPaisOrigen, IdSedeCliente, IdRegionDestino, IdContactoEmergencia, FechaSalida, FechaRegreso, CantidadPasajeros, IdContacto, \r\n Codigo, IdAutor, IdEmpleado, FechaModificacion, SubtotalSinDto, Subtotal, ValorIva, Total, Trm_dia, UtilidadSobreCosto, Estado, GrupoAsignado, Prioridad, \r\n Probabilidad, Observaciones, SeguimientoHistorico, FechaRecepcion, Moneda, FormaPago, TiempoEntrega, TiempoVigencia, Instalacion, \r\n IdEmpleadoModif, IdViadeContacto)\r\n\t\t\t\t\t\t\tVALUES ('\".$IdPedido.\"','\".$fechaConfirmacion.\"','\".$IdCliente.\"','1',\r\n\t\t\t\t\t\t\t'00000000-0000-0000-0000-000000000000','\".$pedidoWeb->fields[21].\"',\r\n\t\t\t\t\t\t\t'\".$IdContacto.\"','\".$pedidoWeb->fields[18].\"','\".$pedidoWeb->fields[19].\"','0','\".$IdContacto.\"','',\r\n\t\t\t\t\t\t\t'7e33a6e3-f03d-4211-9ef3-767aa2fa56fc','7e33a6e3-f03d-4211-9ef3-767aa2fa56fc','\".$fechaConfirmacion.\"','\".$pedidoWeb->fields[20].\"','\".$pedidoWeb->fields[20].\"','0','\".$pedidoWeb->fields[20].\"','\".$pedidoWeb->fields[22].\"',\r\n\t\t\t\t\t\t\t'true','1','\".$grupo.\"','\".$prioridad.\"','100',NULL,'\".$seguimiento.\"',\r\n\t\t\t\t\t\t\t'\".$fechaConfirmacion.\"','\".$moneda.\"','\".$formaPago.\"',NULL,NULL,'false','00000000-0000-0000-0000-000000000000','\".$viaContacto.\"')\");\r\n\t\t\t\t //CREAMOS EL PRODUCTO COTIZACION.\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\t// OBTENEMOS LA CANTIDAD DE PASAJEROS.\t\t\t\t\t\t\r\n\t\t\t\t\t\t$cantidadPasajeros = &$this->conexion->conectarse()->Execute(\"SELECT COUNT(*) AS Expr1\r\n\t\t\t\t\t\tFROM PasajerosPedido\r\n\t\t\t\t\t\tWHERE (IdPedido = '\".$pedidoWeb->fields[0].\"')\");\r\n\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t$productoCotizacion = &$this->conexion->conectarse()->Execute(\"INSERT INTO ProductosCotizacion\r\n (Id, IdProducto, IdReferencia, Cantidad, ValorVenta, SubtotalSinDescuento, ValorVentaCliente, IVA, AplicarIva, IdFormaEnvio, TipoTrasporte, UtilidadGlobal, Utilidad, \r\n UtilidadEnPorcentaje, UtilidadDespuesCosto, Arancel, ComicionProveedor, IdEmpleado, FechaModificacion, FechaElaboracion, Moneda, ComentarioAdicional, \r\n Descuento, Aumento)\r\n\t\t\t\t\t\t\tVALUES ('\".$IdProductoCotizacion.\"','\".$pedidoWeb->fields[2].\"','\".$IdPedido.\"','\".$cantidadPasajeros->fields[0].\"','\".$pedidoWeb->fields[20].\"','\".$pedidoWeb->fields[20].\"','\".$pedidoWeb->fields[20].\"',\r\n\t\t\t\t\t\t\t'0','true','0','0','0','0','true','false','0',\r\n\t\t\t\t\t\t\t'0','7e33a6e3-f03d-4211-9ef3-767aa2fa56fc','\".$fechaConfirmacion.\"','\".$fechaConfirmacion.\"','4','','0','0')\");\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t//CREAMOS EL PASAJERO PRODUCTO COTIZACION.\r\n\t\t\t\t\t\t//CONSULTAMOS LOS PASAJEROS ASOCIADOS AL PEDIDO\t\t\t\t\t\t\r\n\t\t\t\t\t\t$pedidoPasajero = &$this->conexion->conectarse()->Execute(\"SELECT Id, IdPedido, Nombre, Apellido, Documento, Email, FechaNacimiento\r\n\t\t\t\t\t\t\tFROM PasajerosPedido \r\n\t\t\t\t\t\t\tWHERE (IdPedido = '\".$pedidoWeb->fields[0].\"')\");\t\t\r\n\t\t\t\t\t\tforeach($pedidoPasajero as $k => $row) {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$idPasajero=\"\";\r\n\t\t\t\t\t\t\t$numeroPoliza=\"\";// ACA DEBO LLAMAR EL WEBSERVICE\r\n\t\t\t\t\t\t\t$idPasajeroProducto=$this->fun->NewGuid();\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$existePasajero = &$this->conexion->conectarse()->Execute(\"SELECT Id\r\n\t\t\t\t\t\t\t\tFROM Pasajero\r\n\t\t\t\t\t\t\t\tWHERE (Identificacion = '\". $row[4].\"')\");\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\t//NOTIFICAMOS A LOS PASAJEROS DE LA COMPRA\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t///////////\t$this->fun->SendMailConfirmacionPago($row[5], $row[2], $row[3]);\r\n\t\t\t\r\n\t\t\t\t\t\t\tif($existePasajero->fields[0]==\"\"){\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t//CREAMOS PASAJERO\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t$idPasajero=$this->fun->NewGuid();\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t$existePasajero = &$this->conexion->conectarse()->Execute(\"\r\n\t\t\t\t\t\t\t\tINSERT INTO Pasajero\r\n \t\t(Id, Nombre, Apellido, Identificacion, FechaNacimiento, Telefono, Celular, Email, Estado, Direccion, Observaciones, SeguimientoHistorico)\r\n\t\t\t\t\t\t\t\tVALUES ('\".$idPasajero.\"','\".$row[2].\"','\".$row[3].\"','\".$row[4].\"','\".$row[6].\"','\".$pedidoWeb->fields[10].\"','\".$pedidoWeb->fields[11].\"','\".$row[5].\"','true','\".$pedidoWeb->fields[12].\"','-','\".$seguimiento.\"')\");\t\r\n\t\t\t\t\t\t\t\t//ASOCIAMOS EL CONTACTO DE EMERGENCIA\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t$asociarContacto= &$this->conexion->conectarse()->Execute(\" INSERT INTO EmpresaContactos (IdEmpresa, IdContacto)\r\n\t\t\t\t\t\t\t\tVALUES ('\".$idPasajero.\"','\".$IdContacto.\"')\");\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t//ASOCIAMOS AL PASAJERO PRODUCTO COTIZACION\t\r\n\t\t\t\t\t\t\t\t$asociamospasajero = &$this->conexion->conectarse()->Execute(\"\r\n\t\t\t\t\t\t\t\t\tINSERT INTO PasajerosProductosCotizacion (Id, IdPasajero, IdProductoCotizacion, Poliza, Estado, Aumento, Descuento, ValorUnitario)\r\n\t\t\t\t\t\t\t\t\tVALUES ('\".$idPasajeroProducto.\"','\".$idPasajero.\"','\".$IdProductoCotizacion.\"','\".$numeroPoliza.\"','true','0','0','0')\");\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse if($existePasajero->fields[0]!=\"\"){\r\n\t\t\t\t\t\t\t//\techo \"Entramos al caso cuando el pasajero ya existe\";\r\n\t\t\t\t\t\t\t\t$idPasajero=$existePasajero->fields[0];\t\t\r\n\t\t\t\t\t\t\t\t\t//ASOCIAMOS EL CONTACTO DE EMERGENCIA\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t$asociarContacto= &$this->conexion->conectarse()->Execute(\" INSERT INTO EmpresaContactos (IdEmpresa, IdContacto)\r\n\t\t\t\t\t\t\t\tVALUES ('\".$idPasajero.\"','\".$IdContacto.\"')\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t//ASOCIAMOS AL PASAJERO PRODUCTO COTIZACION\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t$asociamospasajero = &$this->conexion->conectarse()->Execute(\"\r\n\t\t\t\t\t\t\t\t\tINSERT INTO PasajerosProductosCotizacion (Id, IdPasajero, IdProductoCotizacion, Poliza, Estado, Aumento, Descuento, ValorUnitario)\r\n\t\t\t\t\t\t\t\t\tVALUES ('\".$idPasajeroProducto.\"','\".$idPasajero.\"','\".$IdProductoCotizacion.\"','\".$numeroPoliza.\"','true','0','0','0')\");\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\r\n\r\n\r\n\r\n\t\t\t\r\n\t\t}\r\n\t\tcatch (Exception $e)\r\n\t\t{\r\n\t\t\techo 'Caught exception: ', $e->getMessage(), \"\\n\";\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "public function create()\n {\n //\n \n\n }" ]
[ "0.5920859", "0.58347976", "0.5785464", "0.5724846", "0.5723253", "0.57158464", "0.571144", "0.5672771", "0.5668619", "0.5652779", "0.5549931", "0.5540805", "0.55182993", "0.55106974", "0.5495279", "0.548234", "0.54506767", "0.5449498", "0.5444236", "0.5444236", "0.5444236", "0.5444236", "0.54414487", "0.5408386", "0.54006505", "0.53995", "0.5384697", "0.5384276", "0.5377971", "0.5376527", "0.537095", "0.53473216", "0.5342538", "0.533922", "0.53371555", "0.5332317", "0.5323764", "0.53160524", "0.53103006", "0.53078014", "0.5302443", "0.5299597", "0.5290002", "0.5280607", "0.5274968", "0.52628267", "0.526208", "0.5253365", "0.52513474", "0.5249201", "0.5246723", "0.5245736", "0.52436155", "0.52402306", "0.5239684", "0.5239069", "0.52324283", "0.52135", "0.52128744", "0.52102757", "0.5209535", "0.5209535", "0.5209114", "0.52073354", "0.5206173", "0.5203358", "0.5200845", "0.5193047", "0.5192995", "0.51893014", "0.5189139", "0.51854223", "0.51830184", "0.51796377", "0.5171293", "0.51705503", "0.51695645", "0.51678216", "0.5166902", "0.5160573", "0.51589936", "0.51588196", "0.5155067", "0.51529264", "0.515159", "0.51494396", "0.5149333", "0.51490116", "0.514505", "0.51424307", "0.5137647", "0.5136534", "0.51339674", "0.51327866", "0.5132417", "0.51317567", "0.5131219", "0.51307875", "0.513032", "0.51301074", "0.51293147" ]
0.0
-1
crea un archivo PDF con los detalles revisados en forma de Checklist
public function DetallesPDF($folio){ $contratos = Entrega::join('contratos','entregas.id','contratos.id') ->join('expedientes','contratos.id','expedientes.id') ->join('creditos', 'contratos.id', '=', 'creditos.id') ->join('lotes', 'creditos.lote_id', '=', 'lotes.id') ->join('etapas', 'lotes.etapa_id', '=', 'etapas.id') ->join('licencias', 'lotes.id', '=', 'licencias.id') ->join('clientes', 'creditos.prospecto_id', '=', 'clientes.id') ->join('personal as c', 'clientes.id', '=', 'c.id') ->select('contratos.id as folio', 'contratos.equipamiento', DB::raw("CONCAT(c.nombre,' ',c.apellidos) AS nombre_cliente"), 'etapas.carta_bienvenida', 'creditos.fraccionamiento as proyecto', 'creditos.etapa', 'creditos.manzana', 'creditos.num_lote', 'creditos.modelo', 'licencias.avance as avance_lote', 'licencias.visita_avaluo', 'licencias.foto_predial', 'licencias.foto_lic', 'licencias.num_licencia', 'contratos.fecha_status', 'contratos.status', 'contratos.equipamiento', 'expedientes.fecha_firma_esc', 'lotes.fecha_entrega_obra', 'lotes.emp_constructora', 'lotes.emp_terreno', 'lotes.id as loteId', 'entregas.revision_previa', 'entregas.fecha_program', DB::raw('DATEDIFF(current_date,entregas.fecha_program) as diferencia') ) ->where('contratos.status', '!=', 0) ->where('contratos.status', '!=', 2) ->where('entregas.fecha_program','!=',NULL) ->where('contratos.id','=',$folio) ->orderBy('entregas.revision_previa','asc') ->orderBy('entregas.fecha_program','asc') ->get(); $detalles = Detalle_previo::select('concepto','observacion','identificador') ->where('rev_previas_id','=',$folio) ->get(); $observacion = Revision_previa::select('observaciones','created_at')->where('id','=',$folio)->get(); $tiempo = new Carbon($observacion[0]->created_at); $observacion[0]->tiempo = $tiempo->formatLocalized('%d de %b de %Y'); $equipamientos = Solic_equipamiento::join('equipamientos','solic_equipamientos.equipamiento_id','=','equipamientos.id') ->select('equipamientos.equipamiento') ->where('solic_equipamientos.contrato_id','=',$folio) ->get(); if(sizeOf($detalles)) for ($i = 0; $i < count($detalles); $i++) { switch($detalles[$i]->identificador){ case 1 : { $contratos[0]->cochera = 1; break; } case 2 : { $contratos[0]->sala_comedor = 2; break; } case 3 : { $contratos[0]->cocina = 3; break; } case 4 : { $contratos[0]->medio_baño = 4; break; } case 5 : { $contratos[0]->patio = 5; break; } case 6 : { $contratos[0]->escalera = 6; break; } case 7 : { $contratos[0]->baño_comun = 7; break; } case 8 : { $contratos[0]->estancia = 8; break; } case 9 : { $contratos[0]->recamara_principal = 9; break; } case 10 : { $contratos[0]->baño_recamara_principal = 10; break; } case 11 : { $contratos[0]->vestidor = 11; break; } case 12 : { $contratos[0]->recamara2 = 12; break; } case 13 : { $contratos[0]->recamara3 = 13; break; } case 14 : { $contratos[0]->azotea = 14; break; } case 15 : { $contratos[0]->generales = 15; break; } } } $pdf = \PDF::loadview('pdf.DocsPostVenta.checklist', ['contratos' => $contratos, 'detalles' => $detalles, 'observacion' => $observacion, 'equipamientos' => $equipamientos]); return $pdf->stream('Checklist.pdf'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function createPDF() { \n\n $data = Offre::where('offre', '=', 0)->get();\n view()->share('offres',$data);\n $pdf = PDF::loadView('admin.offre.pdf.stage', $data);\n return $pdf->download('stage_liste.pdf');\n }", "public function imprimirDetalles()\n {\n\n// Include the main TCPDF library (search for installation path).\n require_once 'tcpdf_include.php';\n\n// create new PDF document\n $pdf = new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);\n\n// set document information\n $pdf->SetCreator(PDF_CREATOR);\n $sql = Conexion::conectar()->prepare(\"SELECT numFac FROM detalles ORDER BY numFac DESC LIMIT 1\");\n $sql->execute();\n $result = $sql->fetchAll();\n foreach ($result as $resultado) {\n $a = $resultado['numFac'];\n }\n $respuesta = VentasController::imprimirVentasController($a);\n foreach ($respuesta as $key) {\n $numFac = $key['numFac'];\n }\n $sql = Conexion::conectar()->prepare(\"SELECT numFac FROM detalles WHERE numFac = $numFac\");\n $sql->execute();\n $result = $sql->fetchAll();\n foreach ($result as $value) {\n\n// set default header data\n $pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE . ' ' . $value['numFac'], PDF_HEADER_STRING, array(5, 64, 255), array(9, 64, 128));\n }\n $pdf->setFooterData(array(0, 64, 0), array(0, 64, 128));\n\n// set header and footer fonts\n $pdf->setHeaderFont(array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN));\n $pdf->setFooterFont(array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA));\n\n// set default monospaced font\n $pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED);\n\n// set margins\n $pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT);\n $pdf->SetHeaderMargin(PDF_MARGIN_HEADER);\n $pdf->SetFooterMargin(PDF_MARGIN_FOOTER);\n\n// set auto page breaks\n $pdf->SetAutoPageBreak(true, PDF_MARGIN_BOTTOM);\n\n// set image scale factor\n $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);\n\n// set some language-dependent strings (optional)\n if (@file_exists(dirname(__FILE__) . '/lang/spa.php')) {\n require_once dirname(__FILE__) . '/lang/spa.php';\n $pdf->setLanguageArray($l);\n }\n\n// ---------------------------------------------------------\n\n// set default font subsetting mode\n $pdf->setFontSubsetting(true);\n\n// Set font\n // dejavusans is a UTF-8 Unicode font, if you only need to\n // print standard ASCII chars, you can use core fonts like\n // helvetica or times to reduce file size.\n $pdf->SetFont('', '', 12, '', true);\n\n// Add a page\n // This method has several options, check the source code documentation for more information.\n $pdf->AddPage();\n\n// set text shadow effect\n $pdf->setTextShadow(array('enabled' => true, 'depth_w' => 0.2, 'depth_h' => 0.2, 'color' => array(196, 196, 196), 'opacity' => 1, 'blend_mode' => 'Normal'));\n\n// Set some content to print\n $ciudad = strtolower($key[nombreCiudad]);\n $html = <<<EOD\n <div style=\"border: 1px solid #c9c9c9\">\n <table>\n <tr>\n <td style=\"width:540px\">Cliente: $key[nombreCliente] $key[apellidoCliente]</td>\n </tr>\n <tr>\n <td style=\"width:540px\">Direccion: $key[direccion]</td>\n </tr>\n <tr>\n <td style=\"width:540px\">Provincia : $key[nombreProvincia] - Ciudad: $ciudad</td>\n </tr>\n <tr>\n <td style=\"width:540px\">Cuit : $key[cuit]</td>\n </tr>\n <tr>\n <td style=\"width:540px\">Tipo Factura : $key[tipoFactura]</td>\n </tr>\n\n<tr>\n <td width=\"200px\"></td>\n\n <td width=\"200px\"></td>\n </tr>\n </table>\n</div>\n <table>\n <tr>\n <td></td>\n </tr>\n </table>\n\n <table style=\"border: 1px solid #4AA0F1; text-align:center; line-height: 20px; font-size:23px\">\n <tr>\n <td style=\"border: 1px solid #666; background-color:#4AA0F1; color:#fff\">Producto</td>\n <td style=\"border: 1px solid #666; background-color:#4AA0F1; color:#fff\">Cantidad</td>\n <td style=\"border: 1px solid #666; background-color:#4AA0F1; color:#fff\">Precio</td>\n <td style=\"border: 1px solid #666; background-color:#4AA0F1; color:#fff\">Sub Total</td>\n </tr>\n </table>\nEOD;\n $numFac = $key['numFac'];\n $pdf->writeHTMLCell(0, 0, '', '', $html, 0, 1, 0, true, '', true);\n // $respuesta = Admin::imprimirController(\"administrador\");\n // $respuesta = VentasController::imprimirVentasController($numFac);\n\n // foreach ($respuesta as $item) {\n // }\n $sql = Conexion::conectar()->prepare(\"SELECT * FROM detalles de JOIN productos pro ON de.idProducto=pro.idProducto WHERE numFac = $numFac\");\n $sql->execute();\n $result = $sql->fetchAll();\n foreach ($result as $item) {\n $total = $total + $item[totalVenta];\n $html2 = <<<EOF\n\n\n\n <table style=\"border: 1px solid #333; text-align:center; line-height: 20px; font-size:18px\">\n <tr>\n <td style=\"border: 1px solid #666;\">$item[nombreProducto]</td>\n <td style=\"border: 1px solid #666;\">$item[cantidadKilos]</td>\n <td style=\"border: 1px solid #666;\">$item[precioVenta]</td>\n <td style=\"border: 1px solid #666;\">$item[totalVenta]</td>\n </tr>\n </table>\ns\nEOF;\n\n// Print text using writeHTMLCell()\n $pdf->writeHTMLCell(0, 0, '', '', $html2, 0, 1, 0, true, '', true);\n // $pdf->writeHTML($html2, true, true, true, true, '');\n }\n// ---------------------------------------------------------\n $iva = $total / 21;\n $iva = number_format($iva, 2, ',', ' ');\n $subTotal = $total - $iva;\n $subTotal = number_format($subTotal, 2, ',', ' ');\n $total = number_format($total, 2, ',', ' ');\n $html3 = <<<EOD\n<div style=\"border: 1px solid #c9c9c9;padding:10px\">\n\n <table>\n <tr>\n <td></td>\n </tr>\n </table>\n\n <table>\n <tr>\n <td></td>\n </tr>\n </table>\n\n <table>\n <tr>\n <td></td>\n </tr>\n </table>\n\n <table>\n <tr>\n <td></td>\n </tr>\n </table>\n <table>\n <tr>\n <td></td>\n </tr>\n </table>\n <table>\n <tr>\n <td></td>\n </tr>\n </table>\n <table>\n <tr>\n <td></td>\n </tr>\n </table>\n <table>\n <tr>\n <td></td>\n </tr>\n </table>\n <table>\n <tr>\n <td></td>\n </tr>\n </table>\n <table>\n <tr>\n <td></td>\n </tr>\n </table>\n <table>\n <tr>\n <td></td>\n </tr>\n </table>\n <table>\n <tr>\n <td></td>\n </tr>\n </table>\n <table>\n <tr>\n <td></td>\n </tr>\n </table>\n\n <table>\n <tr>\n <td></td>\n </tr>\n </table>\n <table>\n <tr>\n <td></td>\n </tr>\n </table>\n <table>\n <tr>\n <td></td>\n </tr>\n </table>\n\n\n <table style=\"text-align:center; font-size:20px;background-color:#0FE4E9; color:#fff;\">\n <tr>\n <td></td>\n <td>SUBTOTAL :</td>\n <td>$ $subTotal</td>\n </tr>\n <tr>\n <td></td>\n <td>IVA(21%) :</td>\n <td>$ $iva</td>\n </tr>\n <tr>\n <td></td>\n <td>TOTAL :</td>\n <td>$ $total</td>\n </tr>\n </table>\n\n</div>\n <table style=\"text-align:center; font-size:7px;background-color:#E9E80F; color:#fff;\">\n <tr>\n <td><h3>Haga su pedido online www.carloncho.pe</h3></td>\n </tr>\n </table>\nEOD;\n\n $pdf->writeHTMLCell(0, 0, '', '', $html3, 0, 1, 0, true, '', true);\n\n// Close and output PDF document\n // This method has several options, check the source code documentation for more information.\n Ob_end_clean();\n $pdf->Output('Factura Nro: ' . ' ' . $key['numFac'] . ' ' . $key['nombreCliente'] . '.pdf', 'I');\n//============================================================+\n // END OF FILE\n //============================================================+\n\n }", "public function otr_pdf_writer($file,$info) {\n $path = getcwd();\n\n if(!is_dir($path . '/img/')) {\n if (mkdir($path . '/img')) {\n if (!mkdir($path . '/img/otr_pdfs')){\n return false;\n }\n } else {\n return false;\n } \n } elseif (!is_dir($path . '/img/otr_pdfs/')) { \n if (!mkdir($path . '/img/otr_pdfs')){\n return false;\n }\n }\n\n $url_file_path = '/img/otr_pdfs/' . $file;\n\n $filename = $path . $url_file_path;\n\n $info['student_full_name'] = $info['txtFName'] . ' ' . $info['txtMiddleName'] . ' ' . $info['txtLName'];\n\n $pdf = new FPDF('P','mm',array(218,290));\n\n $pdf->SetAuthor($info['student_full_name']);\n $pdf->SetTitle('OTR'); \n $pdf->SetFont('Helvetica','B',20);\n $pdf->SetTextColor(50,60,100);\n\n $pdf->AddPage('P'); \n //$pdf->SetDisplayMode('real','default'); \n $pdf->SetFontSize(10);\n\n\n // Background image\n $pdf->Image('img/otr_multi_form2.png',0,0);\n\n $start_x = 18; \n $start_y = 46;\n\n\n for($i=0;$i<3;$i++) {\n // Fill out first form \n // Name\n $pdf->SetFont('Times','B',14);\n $start_address_Y = $start_y-27;\n foreach ($info['otr_address'] as $otr_address) {\n $pdf->SetXY($start_x+109,$start_address_Y);\n $pdf->Write(5,$otr_address);\n $start_address_Y+=5;\n }\n\n $pdf->SetFont('Helvetica','B',10);\n $pdf->SetXY($start_x,$start_y);\n $pdf->Write(5,$info['student_full_name']);\n\n // Address\n $pdf->SetXY($start_x+2,$start_y+6.5);\n $pdf->Write(5,$info['txtPermAdd']);\n\n // City, State\n $pdf->SetXY($start_x+1,$start_y+13);\n $pdf->Write(5,$info['txtPermCity'].', '.$info['ddlpermstate']);\n\n // Zip Code\n $pdf->SetXY($start_x+58,$start_y+13);\n $pdf->Write(5,$info['txtPermZip']);\n\n // Phone Number & Email\n $pdf->SetXY($start_x+15,$start_y+26);\n $pdf->Write(5,$info['txtPhone']);\n $pdf->SetFontSize(8);\n $pdf->SetXY($start_x+52,$start_y+26);\n $pdf->Write(5,$info['txtEmailPer']);\n $pdf->SetFontSize(10);\n\n // Birth Date\n $birth_date = explode('-', $info['txtDOB']);\n\n $pdf->SetXY($start_x+115,$start_y+26);\n $pdf->Write(5,$birth_date[0]);\n $pdf->SetXY($start_x+122.5,$start_y+26);\n $pdf->Write(5,$birth_date[1]);\n $pdf->SetXY($start_x+130,$start_y+26);\n $pdf->Write(5,$birth_date[2]);\n\n // Today's Date\n $pdf->SetXY($start_x+102,$start_y+32.5);\n $pdf->Write(5,date('m'));\n $pdf->SetXY($start_x+109.5,$start_y+32.5);\n $pdf->Write(5,date('d'));\n $pdf->SetXY($start_x+117,$start_y+32.5);\n $pdf->Write(5,date('Y'));\n\n // Move to the next form:\n $start_y = $start_y + 93;\n\n }\n\n $pdf->Output($filename);\n\n if (file_exists($filename)) {\n return $url_file_path;\n } else {\n return false;\n }\n }", "public function makePdf(){\n\t\t$content = $_POST['data'];\n\t\t$id = $_POST['articleId'];\n\t\t\n\t\t$rootAndFile = $this->getRootArticleName($id);\n\t\t$fileName = $rootAndFile['fileName'];\n\t\t$root = $rootAndFile['root'];\n\t\t$path = $root.\"/pdfDirectory/articlePdf\";\n\t\t\n\t\t$iscreated = createPdf($path, $fileName, $content);\n\t\tif($iscreated === true ){\n\t\t\tif($this->read_model->updatePdfExist($id, $data = array(\"havePdfVersion\" => true)) == 1)\n\t\t\t\techo json_encode(array(\"msg\" => \"success\", \n\t\t\t\t\t\"path\" => $this->articlePdfPathRelative.\"/\".$fileName.\".pdf\"));\n\t\t\telse json_encode(array(\"msg\" => \"fail\", \"error\" => \"Not updated in database\"));\n\t\t}\n\t\telse echo json_encode(array(\"msg\" => \"fail\", \"error\" => $iscreated));\n\t\t\n\t}", "function createPDF() {\n\t\t\t\n\t\t\t\n\t\t\t$db = JFactory::getDBO();\n\t\t\t\n\t\t\tinclude_once( 'components/com_ticketmaster/assets/functions.php' );\n\t\t\t\n\t\t\t## Selecting tickets to create. LIMIT = 10 (otherwise the server will overload)\n\t\t\t## Sometimes it will be better to run an extra cronjob.\n\t\t\t$sql='SELECT * FROM #__ticketmaster_orders\n\t\t\t\t WHERE pdfcreated = 0 AND paid = 1 LIMIT 0, 10'; \n\n\t\t\t$db->setQuery($sql);\n\t\t\t$data = $db->loadObjectList();\t\t\t\t \n\n\n\t\t\t$k = 0;\n\t\t\tfor ($i = 0, $n = count($data); $i < $n; $i++ ){\n\t\t\t\t\n\t\t\t\t$row = &$data[$i];\n\n\t\t\t\t## Include the confirmation class to sent the tickets. \n\t\t\t\t$path = JPATH_ADMINISTRATOR.DS.'components'.DS.'com_ticketmaster'.DS.'classes'.DS.'createtickets.class.php';\n\t\t\t\t$override = JPATH_ADMINISTRATOR.DS.'components'.DS.'com_ticketmaster'.DS.'classes'.DS.'override'.DS.'createtickets.class.php';\n\t\t\t\t\n\t\t\t\t## Check if the override is there.\n\t\t\t\tif (file_exists($override)) {\n\t\t\t\t\t## Yes, now we use it.\n\t\t\t\t\trequire_once($override);\n\t\t\t\t} else {\n\t\t\t\t\t## No, use the standard\n\t\t\t\t\trequire_once($path);\n\t\t\t\t}\t\n\t\t\t\t\n\t\t\t\t$creator = new ticketcreator( (int)$row->orderid ); \n\t\t\t\t$creator->doPDF();\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t$k=1 - $k;\n\t\t\t\t\n\t\t\t}\t\n\n\t\t\n\t}", "private function makePDF($path) {\n $output = shell_exec(\"sudo /var/www/sphinx/./myMake.sh \" . $path . \" latexpdf\");\n //dd($output); \n $this->addNewNews(0, 0, 3, \"Erstellt PDF\");\n }", "public function ingresos($tipo_reporte,$especialidad,$fecha_inicio,$fecha_final) {\n\t\t\t$pagos = pagoEstudiante::getPagosReporte($tipo_reporte,$especialidad,$fecha_inicio,$fecha_final);\n\n\t\t\t// dd($pagos);\n $pdf = new Fpdf('P','mm','Legal');\n \n $pdf->AddPage();\n \n $pdf->SetFont('Times','B',12);\n \t$pdf->setXY(15,10);\n \t$pdf->Cell(15,5, utf8_decode('UNIVERSIDAD DEL CENTRO DEL BAJÍO'), 0, 1, 'L');\n \t$pdf->setXY(15,15);\n \t$pdf->Cell(15,5, utf8_decode('REPORTE DE INGRESOS POR DÍA.'), 0, 1, 'L');\n \t$pdf->setXY(15,20);\n \t$pdf->Cell(15,5, utf8_decode('DEL ' . $this->obtenerFechaEnLetra($fecha_inicio) . ' AL ' . $this->obtenerFechaEnLetra($fecha_final) . '.'), 0, 1, 'L');\n\n \t$pdf->SetFont('Times','B',9);\n \t$pdf->setXY(15,30);\n \t$pdf->Cell(15,5, utf8_decode('Matricula'), 1, 1, 'C');\n\n \t$pdf->setXY(30,30);\n \t$pdf->Cell(80,5, utf8_decode('Nombre'), 1, 1, 'C');\n\n \t$pdf->setXY(110,30);\n \t$pdf->Cell(15,5, utf8_decode('Fecha'), 1, 1, 'C');\n\n \t$pdf->setXY(125,30);\n \t$pdf->Cell(15,5, utf8_decode('factura'), 1, 1, 'C');\n\n \t$pdf->setXY(140,30);\n \t$pdf->Cell(25,5, utf8_decode('Concepto'), 1, 1, 'C');\n\n \t$pdf->setXY(165,30);\n \t$pdf->Cell(15,5, utf8_decode('Importe'), 1, 1, 'C');\n\n \t$pdf->setXY(180,30);\n \t$pdf->Cell(20,5, utf8_decode('Especialidad'), 1, 1, 'C');\n\n \t$y = $pdf->getY();\n \t$total = 0;\n \t$pdf->SetFont('Times','',7.5);\n $contador = 1;\n \tforeach ($pagos as $pago) {\n \t\t$pdf->setXY(15,$y);\n\t \t$pdf->Cell(15,5, utf8_decode( $pago -> matricula ), 1, 1, 'C');\n\n\t \t$pdf->setXY(30,$y);\n\t \t$pdf->Cell(80,5, utf8_decode( $pago -> nombre ), 1, 1, 'L');\n\n\t \t$pdf->setXY(110,$y);\n\t \t$pdf->Cell(15,5, utf8_decode( $pago -> fecha_pago ), 1, 1, 'C');\n\n\t \t$pdf->setXY(125,$y);\n\t \t$pdf->Cell(15,5, utf8_decode( $pago -> recibo_folio ), 1, 1, 'C');\n\n\t \t$pdf->setXY(140,$y);\n\t \t$pdf->Cell(25,5, utf8_decode( $pago -> concepto ), 1, 1, 'C');\n\n\t \t$pdf->setXY(165,$y);\n\t \t$pdf->Cell(15,5, utf8_decode( $pago -> cantidad . '.00'), 1, 1, 'C');\n\n\t \t$pdf->setXY(180,$y);\n\t \t$pdf->Cell(20,5, utf8_decode( $pago -> clave ), 1, 1, 'C');\n\n\t \t$total += (float) $pago -> cantidad;\n\n $contador++;\n if($contador == 58){\n $pdf->AddPage();\n $y = 15;\n $contador = 1;\n }\n\n\t \t$y+=5;\n \t}\n\n \t$pdf->SetFont('Times','B',7.5);\n \t$pdf->setXY(140,$y);\n \t$pdf->Cell(25,5, utf8_decode('Total' ), 1, 1, 'C');\n\n \t$pdf->setXY(165,$y);\n \t$pdf->Cell(15,5, utf8_decode($total . '.00'), 1, 1, 'C');\n\n \t\n\n $pdf->setTitle('Reporte del día ' . $fecha_inicio, true);\n $pdf->Output('I', 'reporte del día ' . $fecha_inicio, true);\n\n exit; // Indispensable para que funcione el PDF\n }", "public function verpdf($info)\n\t{\n\t\t$infouser=explode('x', $info, 2);\n\t\t$param['alumno']=$this->Usuario->getUser($infouser[0]);\n $param['eval']=$infouser[1];\n\n //getInforme($eval,$curso,$alumno,$usuario)\n if(isset($_SESSION['curso'])){\n $curso=$_SESSION['curso'];\n }else{\n //año actual\n $curso=date(\"Y\");\n $_SESSION['curso']= $curso;\n }\n $param['informe']=$this->Informe->getInforme($param['eval'],$curso,$infouser[0],$_SESSION['usuario']['id']);\n //echo site_url().'fpdf.php';exit;\n \n $this->load->library('Pdf');\n $pdf = new FPDF();\n $pdf->AliasNbPages();\n $pdf->AddPage();\n // Logo\n //\n $pic = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAM0AAADNCAYAAAAbvPRpAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAAZdEVYdFNvZnR3YXJlAEFkb2JlIEltYWdlUmVhZHlxyWU8AABecmlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS4wLWMwNjEgNjQuMTQwOTQ5LCAyMDEwLzEyLzA3LTEwOjU3OjAxICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIgeG1sbnM6c3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ml8bgLRcNiXT+TZtoDcEduheRna4TW0g80ppbE2Kk5MFswi/46/p42MuTRbW154DrC83V/Y4RtyPajW1As1/hID/B20xWBz8S3gtAAAAAElFTkSuQmCC\";\n $info = getimagesize($pic);\n $pdf->Image($pic, 10, 3,($info[0]/10), ($info[1]/10), 'png');\n $pdf->Line(10, 27, 210-20, 27); \n // $pdf->Image($pic,10,8,15);\n // Arial bold 15\n $pdf->SetFont('Arial','B',18);\n // Movernos a la derecha\n $pdf->Cell(80);\n // Título\n $pdf->Cell(30,10,'INFORME EVALUACION INFANTIL',0,0,'C');\n // Salto de línea\n $pdf->Ln(20);\n\n $pdf->SetFont('Times','',12);\n // $pdf->Cell(0,10,'Nombre: '. ucfirst(strtolower ($param['alumno'][0]['nombre'])) . \" \" . ucfirst(strtolower ($param['alumno'][0]['apellido1'])) .\" \" . ucfirst(strtolower ($param['alumno'][0]['apellido2'])),0,1);\n $pdf->Cell(0,10, iconv('UTF-8', 'windows-1252', \"Evaluación: \"). $param['eval'] . iconv('UTF-8', 'windows-1252', \" ª\"),0,1);\n $pdf->Cell(0,10,'Tutor: '.ucfirst(strtolower ( $_SESSION['usuario']['nombre'] )).\" \" . ucfirst(strtolower ($_SESSION['usuario']['apellido1'])) . \" \" .ucfirst(strtolower ( $_SESSION['usuario']['apellido2'])),0,1);\n\n\n $pdf->Multicell(0,10, iconv('UTF-8', 'windows-1252',$param['informe'][0]['texto']),0,1);\n $pdf->Output();\n \n\t\t//$this->load->view('pagePdf');\n }", "public function\tgetPDF($title, $uri, $problem, $mode, $_gids) \n\t{\t\t\n\t\t// set filename\n\t\t$date = AC_date('%Y-%m-%d');\n\t\t$time = AC_date('%H-%i-%s');\n\t\t$filename = 'achecker_'.$date.'_'.$time.$rand_str;\t\t\n\t\t\n\t\t$guidelinesDAO = new GuidelinesDAO();\n\t\t$guideline_rows = $guidelinesDAO->getGuidelineByIDs($_gids);\n\t\t\n\t\t// get list of guidelines separated by ','\n\t\tif (is_array($guideline_rows)) {\n\t\t\tforeach ($guideline_rows as $id => $row) {\n\t\t\t\t$guidelines_text .= $row[\"title\"]. ', ';\n\t\t\t}\n\t\t}\n\t\t$guidelines_text = substr($guidelines_text, 0, -2); // remove ending space and ,\n\t\n\t\t// print time, date, [resource title,] [resource url,] str with guidelines\n\t\t$this->printInfo($title, $uri, $guidelines_text, $time);\n\n\t\t// if report by guideline\n\t\tif ($mode == 'guideline') {\n\t\t\tif ($problem == 'all') {\n\t\t\t\t$this->printGuideline('known');\n\t\t\t\t$this->AddPage();\n\t\t\t\t$this->printGuideline('likely');\n\t\t\t\t$this->AddPage();\n\t\t\t\t$this->printGuideline('potential');\n\t\t\t\tif ($this->error_nr_html != -1) {\n\t\t\t\t\t$this->AddPage();\n\t\t\t\t\t$this->printHTML();\n\t\t\t\t}\n\t\t\t\tif ($this->error_nr_css != -1) {\n\t\t\t\t\t$this->AddPage();\n\t\t\t\t\t$this->printCSS();\n\t\t\t\t}\n\t\t\t} else if ($problem == 'html') {\n\t\t\t\t$this->printHTML();\n\t\t\t} else if ($problem == 'css') {\n\t\t\t\t$this->printCSS();\n\t\t\t} else {\n\t\t\t\t$this->printGuideline($problem);\n\t\t\t}\n\t\t} \n\t\t// if report by line\n\t\telse if ($mode == 'line') {\n\t\t\tif ($problem == 'all') {\n\t\t\t\t$this->printLine('known');\n\t\t\t\t$this->AddPage();\n\t\t\t\t$this->printLine('likely');\n\t\t\t\t$this->AddPage();\n\t\t\t\t$this->printLine('potential');\n\t\t\t\tif ($this->error_nr_html != -1) {\n\t\t\t\t\t$this->AddPage();\n\t\t\t\t\t$this->printHTML();\n\t\t\t\t}\n\t\t\t\tif ($this->error_nr_css != -1) {\n\t\t\t\t\t$this->AddPage();\n\t\t\t\t\t$this->printCSS();\n\t\t\t\t}\n\t\t\t} else if ($problem == 'html') {\n\t\t\t\t$this->printHTML();\n\t\t\t} else if ($problem == 'css') {\n\t\t\t\t$this->printCSS();\n\t\t\t} else {\t\t\t\n\t\t\t\t$this->printLine($problem);\n\t\t\t}\n\t\t}\n\n\t\t// close and save PDF document\t\t\n\t\t$path = AC_EXPORT_RPT_DIR.$filename.'.pdf'; \n\t\t$this->Output($path, 'F');\n\t\t\n\t\treturn $path;\n\t}", "function write_file($object,$outputlangs,$srctemplatepath='',$hidedetails=0,$hidedesc=0,$hideref=0)\n\t{\n\t\tglobal $user,$langs,$conf,$mysoc,$db,$hookmanager;\n\n\t\tif (! is_object($outputlangs)) $outputlangs=$langs;\n\t\t// For backward compatibility with FPDF, force output charset to ISO, because FPDF expect text to be encoded in ISO\n\t\tif (! empty($conf->global->MAIN_USE_FPDF)) $outputlangs->charset_output='ISO-8859-1';\n\n\t\t$outputlangs->load(\"main\");\n\t\t$outputlangs->load(\"dict\");\n\t\t$outputlangs->load(\"companies\");\n\t\t$outputlangs->load(\"interventions\");\n\n\t\tif ($conf->ficheinter->dir_output)\n\t\t{\n\t\t\t$object->fetch_thirdparty();\n\n\t\t // Definition of $dir and $file\n\t\t\tif ($object->specimen)\n\t\t\t{\n\t\t\t\t$dir = $conf->ficheinter->dir_output;\n\t\t\t\t$file = $dir . \"/SPECIMEN.pdf\";\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$objectref = dol_sanitizeFileName($object->ref);\n\t\t\t\t$dir = $conf->ficheinter->dir_output . \"/\" . $objectref;\n\t\t\t\t$file = $dir . \"/\" . $objectref . \".pdf\";\n\t\t\t}\n\n\t\t\tif (! file_exists($dir))\n\t\t\t{\n\t\t\t\tif (dol_mkdir($dir) < 0)\n\t\t\t\t{\n\t\t\t\t\t$this->error=$langs->transnoentities(\"ErrorCanNotCreateDir\",$dir);\n\t\t\t\t\treturn 0;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (file_exists($dir))\n\t\t\t{\n\n\t\t\t\t// Create pdf instance\n\t\t\t\t$pdf=pdf_getInstance($this->format,'mm','l');\n\t\t\t\t$default_font_size = pdf_getPDFFontSize($outputlangs);\t// Must be after pdf_getInstance\n\n\t\t\t\tif (class_exists('TCPDF'))\n\t\t\t\t{\n\t\t\t\t\t$pdf->setPrintHeader(false);\n\t\t\t\t\t$pdf->setPrintFooter(false);\n\t\t\t\t}\n\t\t\t\t$pdf->SetFont(pdf_getPDFFont($outputlangs));\n\t\t\t\t// Set path to the background PDF File\n\t\t\t\tif (empty($conf->global->MAIN_DISABLE_FPDI) && ! empty($conf->global->MAIN_ADD_PDF_BACKGROUND))\n\t\t\t\t{\n\t\t\t\t\t$pagecount = $pdf->setSourceFile($conf->mycompany->dir_output.'/'.$conf->global->MAIN_ADD_PDF_BACKGROUND);\n\t\t\t\t\t$tplidx = $pdf->importPage(1);\n\t\t\t\t}\n\n\t\t\t\t$pdf->Open();\n\t\t\t\t$pagenb=0;\n\t\t\t\t$pdf->SetDrawColor(128,128,128);\n\n\t\t\t\t$pdf->SetTitle($outputlangs->convToOutputCharset($object->ref));\n\t\t\t\t$pdf->SetSubject($outputlangs->transnoentities(\"InterventionCard\"));\n\t\t\t\t$pdf->SetCreator(\"Dolibarr \".DOL_VERSION);\n\t\t\t\t$pdf->SetAuthor($outputlangs->convToOutputCharset($user->getFullName($outputlangs)));\n\t\t\t\t$pdf->SetKeyWords($outputlangs->convToOutputCharset($object->ref).\" \".$outputlangs->transnoentities(\"InterventionCard\"));\n\t\t\t\tif (! empty($conf->global->MAIN_DISABLE_PDF_COMPRESSION)) $pdf->SetCompression(false);\n\n\t\t\t\t$pdf->SetMargins($this->marge_gauche, $this->marge_haute, $this->marge_droite); // Left, Top, Right\n\n\t\t\t\t// New page\n\t\t\t\t$pdf->AddPage();\n\t\t\t\tif (! empty($tplidx)) $pdf->useTemplate($tplidx);\n\t\t\t\t$pagenb++;\n\t\t\t\t$this->_pagehead($pdf, $object, 1, $outputlangs);\n\t\t\t\t$pdf->SetFont('','', $default_font_size - 1);\n\t\t\t\t$pdf->SetTextColor(0,0,0);\n\n\t\t\t\tif (method_exists($pdf,'AliasNbPages')) $pdf->AliasNbPages();\n\n\t\t\t\t$pdf->Close();\n\t\t\t\t$pdf->Output($file,'F');\n\n\t\t\t\tif (! empty($conf->global->MAIN_UMASK))\n\t\t\t\t@chmod($file, octdec($conf->global->MAIN_UMASK));\n\n\t\t\t\t$this->result = array('fullpath'=>$file);\n\n\t\t\t\treturn 1;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$this->error=$langs->trans(\"ErrorCanNotCreateDir\",$dir);\n\t\t\t\treturn 0;\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->error=$langs->trans(\"ErrorConstantNotDefined\",\"FICHEINTER_OUTPUTDIR\");\n\t\t\treturn 0;\n\t\t}\n\t}", "function RESDONPDF($idon,$iddnr,$DATEDON)\n\t{\n\t$this->mysqlconnect();\n\t$sql = \"SELECT * FROM dnr WHERE id = \".$iddnr ;\n\t$requete = mysql_query( $sql ) ; \n\tif( $result = mysql_fetch_object( $requete ) )\n\t{\n\t$this->ENTETEBILANPDF();\n\t$this->SetDisplayMode('fullpage','single');//mode d affichage \n\t$this->AddPage('p','A5');\n\t$this->SetFont('Times','B',10);\n\t$this->SetTextColor(225,0,0); \n\t$this->RoundedRect(5, 2, 135, 24, 2, $style = '');\n\t$this->SetXY(5,2);$this->Cell(135,8,'Etablissement Public Hospitalier Ain-Oussera',0,1,'C');\n\t$this->SetXY(5,2+8);$this->Cell(135,8,'Poste De Transfusion Sanguine',0,1,'C');\n\t$this->SetXY(5,2+8+8);$this->Cell(135,8,'Resultat De La Qualification Biologique',0,1,'C');\n\t$this->Line(5, 30, 140, 30);\n\t$this->Image('../public/images/photos/LOGOAO.GIF',10,7,15,15,0);$this->Image('../public/images/photos/LOGOAO.GIF',120,7,15,15,0);$this->Image('../public/images/photos/grife.jpg',85,150,55,22,0);//85,143\n\t$this->SetTextColor(0,0,0);\n\t$this->SetFont('Arial','B',10);\n\t$this->RoundedRect(5, 35, 60, 42, 2, $style = '');\n\t$this->SetFillColor(255,246,143);//https://vela.astro.ulg.ac.be/Vela/Colors/rgb.html\n\t$this->RoundedRect(80, 35, 60, 42, 2, $style = '');\n\t$this->SetXY(82,40);$this->Cell(55,8,'Nom : '.$result->NOM,0,1,1,'r');\n\t$this->SetXY(82,48);$this->Cell(55,8,'Prenom : '.$result->PRENOM,0,1,1,'r');\n\t$d1=substr($result->DATENAISSANCE,6,4);$d2=substr(date('d/m/Y'),6,4);$d3=$d2-$d1;\n\t$this->SetXY(82,56);$this->Cell(55,8,'Age : '.$d3.\" Ans \",0,1,1,'r');\n\t$this->SetXY(82,56+8);$this->Cell(55,8,'Adresse : '.$result->ADRESSE,0,1,1,'r');\n\t$this->SetFont('Arial','B',8);\n\t$this->RoundedRect(5, 80, 135, 58, 2, $style = ''); \n\t$this->SetXY(6,85);$this->Cell(30,8,'Examens Demandes',1,1,'C'); \n\t$this->SetXY(36,85);$this->Cell(30,8,'Resultats',1,1,'C'); \n\t$this->SetXY(66,85);$this->Cell(40,8,'Valeurs de Référence',1,1,'C'); \n\t$this->SetXY(106,85);$this->Cell(32,8,'Anteriorités',1,1,'C'); \n\t$sql1 = \"SELECT * FROM don WHERE id = \".$idon ;\n\t$requete1 = mysql_query( $sql1 ) ; \n\tif( $result1 = mysql_fetch_object( $requete1 ) )\n\t{ \n\t$this->SetXY(5,40);$this->Cell(20,8,'Code Prelevement : ',0,1,'r');\n\t$idp=$result1->IDP;\n\t$this->Code39(33,40 ,$result1->IDP, $baseline=0.5, $height=5);\n\t$this->SetXY(5,48);$this->Cell(20,8,'Poids : '.$result1->POIDS.' '.'kg',0,1,'r');\n\t$this->SetXY(5,56);$this->Cell(20,8,'SYS/DIA : '.$result1->TAS.'/'.$result1->TAD.' '.'mmhg',0,1,'r');\n\t$this->SetXY(5,56+8);$this->Cell(20,8,'Date Prelevement : '.$this->dateUS2FR($result1->DATEDON),0,1,'r');\n\t$this->SetXY(6,85+8);$this->Cell(30,8,'Groupage Rhesus:',1,1,'r'); \n\t$this->SetXY(36,85+8);$this->Cell(30,8,$result1->GROUPAGE.'( '.trim($result1->RHESUS).' )',0,1,'C'); \n\t$this->SetXY(66,85+8);$this->Cell(40,8,'***',1,1,'C'); \n\t$this->SetXY(106,85+8);$this->Cell(32,8,'***',1,1,'C'); \n\t$this->SetXY(6,85+8+8);$this->Cell(30,8,'HVB:',1,1,'r'); \n\t$this->SetXY(36,85+8+8);$this->Cell(30,8,trim(ucfirst($result1->HVB)),1,1,'C'); \n\t$this->SetXY(66,85+8+8);$this->Cell(40,8,'Négatif',1,1,'C'); \n\t$this->SetXY(106,85+8+8);$this->Cell(32,8,'***',1,1,'C'); \n\t$this->SetXY(6,85+8+8+8);$this->Cell(30,8,'HVC:',1,1,'r'); \n\t$this->SetXY(36,85+8+8+8);$this->Cell(30,8,trim(ucfirst($result1->HVC)),1,1,'C'); \n\t$this->SetXY(66,85+8+8+8);$this->Cell(40,8,'Négatif',1,1,'C'); \n\t$this->SetXY(106,85+8+8+8);$this->Cell(32,8,'***',1,1,'C'); \n\t$this->SetXY(6,85+8+8+8+8);$this->Cell(30,8,'HIV:',1,1,'r'); \n\t$this->SetXY(36,85+8+8+8+8);$this->Cell(30,8,trim(ucfirst($result1->HIV)),1,1,'C'); \n\t$this->SetXY(66,85+8+8+8+8);$this->Cell(40,8,'Négatif',1,1,'C'); \n\t$this->SetXY(106,85+8+8+8+8);$this->Cell(32,8,'***',1,1,'C'); \n\t$this->SetXY(6,85+8+8+8+8+8);$this->Cell(30,8,'VDRL:',1,1,'r'); \n\t$this->SetXY(36,85+8+8+8+8+8);$this->Cell(30,8,trim(ucfirst($result1->TPHA)),1,1,'C'); \n\t$this->SetXY(66,85+8+8+8+8+8);$this->Cell(40,8,'Négatif',1,1,'C'); \n $this->SetXY(106,85+8+8+8+8+8);$this->Cell(32,8,'***',1,1,'C'); \n\t}\n\t$this->RoundedRect(5, 143, 55, 30, 2, $style = ''); \n\t$this->SetXY(5,143);$this->Cell(55,8,'Date: ',0,1,'C'); \n\t$this->SetXY(5,143+8);$this->Cell(55,8,date('d-m-Y'),0,1,'C'); \n\t$this->RoundedRect(85, 143, 55, 30, 2, $style = ''); \n\t$this->SetXY(85,143);$this->SetFont('Arial','B',8);$this->Cell(55,8,'La Structure De Transfusion Sanguine ',0,1,'C');\n\t$this->SetFillColor(220);\n\t$this->SetXY(5,176);$this->Cell(135,6,'NB: les resultats figurants ci dessus ne doivent etre consideres definitives ',0,0,1,'C');\n\t$this->SetXY(5,176+6);$this->Cell(135,6,'qu\\'apres une deuxieme qualification effectuee sur un second prelevement',0,0,1,'C');\n\t$this->Output();\n\t}\n\t}", "function dolibarr_pdfiser_facture($factref) {\n\n\t// Generer le PDF et le recopier dans SPIP\n\tif ($factref\n\t\tand $pdf_file = dolibarr_facture_pdf(0, $factref)\n\t and file_exists($pdf_file)) {\n\t\t$dir_pdf = sous_repertoire(_DIR_IMG,\"factures\");\n\t\tif (!file_exists($dir_pdf.\".htaccess\"))\n\t\t\tecrire_fichier($dir_pdf.\".htaccess\",\"deny from all\\n\");\n\t\t@copy($pdf_file, $dir_pdf . texte_script($factref) . '.pdf');\n\t}\n\telse {\n\t\tspip_log(\"fichier pdf dolibarr manquant \".$pdf_file,'dolibarr'._LOG_ERREUR);\n\t}\n\n}", "public function actionPrintDocuments()\n {\n if (Yii::$app->user->identity->canPrint()) {\n\n //TODO: непонятной природы и вроде бессмысленное дублирование (может использовать xSendFile?)\n //TODO: это костыль чтобы исправить это дублирование\n if (!empty($_SERVER['HTTP_RANGE'])) {\n return '';\n }\n\n set_time_limit(400);\n\n //$documents = [];\n\n //$this->layout = 'print_fine';\n $this->view->title = \\Yii::t('app', 'Пакет документов');\n\n $debtorIds = Yii::$app->request->get('debtorIds');\n\n Yii::$app->user->identity->printOperationStart();\n\n $tempFNameResults = [];\n\n foreach ($debtorIds as $dId) {\n\n $pdfItem = $this->createPdfForDebtor($dId);\n\n $tempFNameResult = tempnam(sys_get_temp_dir(), 'pdf_fine_1_') . '.pdf';\n\n $tempFNameResults[] = $tempFNameResult;\n\n $command = \"gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=$tempFNameResult $pdfItem $pdfItem $pdfItem 2>&1\";\n $outputLines = [];\n exec($command, $outputLines, $exitCode);\n if ($exitCode !== 0) {\n //TODO: грамотное логирование\n throw new \\Exception(\"Ошибка склеивания файлов': \" . implode(\"\\n\", $outputLines));\n }\n\n unlink($pdfItem);\n }\n\n $finalResultName = tempnam(sys_get_temp_dir(), 'pdf_fine_2_') . '.pdf';\n\n $pdfItemsQueryTail = implode(' ', $tempFNameResults);\n\n $command = \"gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=$finalResultName $pdfItemsQueryTail 2>&1\";\n $outputLines = [];\n exec($command, $outputLines, $exitCode);\n if ($exitCode !== 0) {\n //TODO: грамотное логирование\n throw new \\Exception(\"Ошибка склеивания файлов': \" . implode(\"\\n\", $outputLines));\n }\n\n foreach ($tempFNameResults as $item) {\n unlink($item);\n }\n\n //TODO: unlink $finalResultName\n\n //return Yii::$app->getResponse()->xSendFile(\n return Yii::$app->getResponse()->sendFile(\n $finalResultName,\n 'DebtorInfo.pdf',\n [\n 'mimeType' => 'application/pdf',\n 'inline' => true,\n ]\n );\n\n\n $debtor = Debtor::findOne($debtorIds[0]);\n\n $doc['statement'] = $this->getStatementHtml($debtor);\n $doc['full_fine_report'] = $this->getFullReportFineDataHtml($debtor);\n\n /*if (!empty(Yii::$app->user->identity->userInfo->primaryCompany->companyFiles)) {\n $tempFNamePdf = tempnam(sys_get_temp_dir(), 'pdf_fine_') . '.pdf';\n file_put_contents(\n $tempFNamePdf,\n Yii::$app->user->identity->userInfo->primaryCompany->companyFiles[0]->content\n );\n// $pdf = new \\Gufy\\PdfToHtml\\Pdf($tempFNamePdf);\n// $doc['EGRUL'] = $pdf->html();\n\n $tempImagePdf = tempnam(sys_get_temp_dir(), 'img_fine_') . '.jpg';\n\n $pdf = new \\Spatie\\PdfToImage\\Pdf($tempFNamePdf);\n $pdf->saveImage($tempImagePdf);\n $imgData = $pdf->getImageData($tempImagePdf);\n\n unlink($tempImagePdf);\n unlink($tempFNamePdf);\n }*/\n\n $documents[] = $doc;\n\n //return $this->render('@frontend/modules/office/views/debtor/print_documents', ['documents' => $documents]);\n\n $rContent = Yii::$app->html2pdf->render('@frontend/modules/office/views/debtor/print_documents', ['documents' => $documents]);\n\n /*if (empty(Yii::$app->user->identity->userInfo->primaryCompany->companyFiles)\n && empty(Yii::$app->user->identity->userInfo->primaryCompany->companyFilesHouses)\n ) {\n Yii::$app->user->identity->printOperationStart();\n return $rContent->send('DebtorInfo.pdf', ['mimeType' => 'application/pdf', 'inline' => true]);\n }*/\n\n //TODO: проверять файл на принадлежность к формату pdf\n //TODO: склеивать множественные файлы pdf\n $tempFNameResult = tempnam(sys_get_temp_dir(), 'pdf_fine_') . '.pdf';\n\n $commandTail = '';\n\n if (!empty(Yii::$app->user->identity->userInfo->primaryCompany->companyFiles)) {\n $tempFNamePdf = tempnam(sys_get_temp_dir(), 'pdf_fine_') . '.pdf';\n file_put_contents(\n $tempFNamePdf,\n Yii::$app->user->identity->userInfo->primaryCompany->companyFiles[0]->content\n );\n $commandTail .= \" $tempFNamePdf \";\n }\n\n if (!empty(Yii::$app->user->identity->userInfo->primaryCompany->companyFilesHouses[0])) {\n $tempFNamePdfHouses = tempnam(sys_get_temp_dir(), 'pdf_fine_') . '.pdf';\n file_put_contents(\n $tempFNamePdfHouses,\n Yii::$app->user->identity->userInfo->primaryCompany->companyFilesHouses[0]->content\n );\n $commandTail .= \" $tempFNamePdfHouses \";\n }\n\n $command = \"gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=$tempFNameResult $rContent->name $commandTail 2>&1\";\n $outputLines = [];\n exec($command, $outputLines, $exitCode);\n if ($exitCode !== 0) {\n throw new \\Exception(\"Ошибка склеивания файлов': \" . implode(\"\\n\", $outputLines));\n }\n\n @file_put_contents('/tmp/look_for_pdf.txt', print_r($outputLines, true), FILE_APPEND);\n\n if (!empty($tempFNamePdf)) {\n unlink($tempFNamePdf);\n }\n if (!empty($tempFNamePdfHouses)) {\n unlink($tempFNamePdfHouses);\n }\n\n //TODO: unlink $tempFNameResult\n\n Yii::$app->user->identity->printOperationStart();\n\n //return Yii::$app->getResponse()->xSendFile(\n return Yii::$app->getResponse()->sendFile(\n $tempFNameResult,\n 'DebtorInfo.pdf',\n ['mimeType' => 'application/pdf', 'inline' => true]\n );\n\n /*return $this->render('print_documents',\n [\n 'documents' => $documents,\n ]\n );*/\n } else {\n die('low_balance');\n }\n\n return '';\n }", "public function exportpdfAction(){ \r\n $id = $this->_getParam('id'); \r\n $sympC = new SympathieCollection();\r\n $symp = $sympC->getDetails($id);\r\n $obiC = new ObituaryCollection();\r\n $obi = $obiC->getDetailsFromNoContract($symp['SD_noContract']); \r\n $newFileName = \"text\"; \r\n\r\n define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../../../lib/');\r\n require(PHPEXCEL_ROOT . 'PHPExcel/fpdf/fpdf.php');\r\n $pdf = new FPDF();\r\n $pdf->SetLeftMargin(25);\r\n $pdf->SetRightMargin(25); \r\n $pdf->AddPage(); \r\n $pdf->Image(Zend_Registry::get('absolute_web_root') . $symp['SD_Theme'], 0, 0,210, 290); \r\n $pdf->SetFont('Times','',17);\r\n $pdf->SetY(99);\r\n $pdf->MultiCell(0,0, utf8_decode($this->view->getCibleText('sympathie_famille') . \" \" . $obi['OD_FirstName'] . \" \" . $obi['OD_Name']),0,C); \r\n $pdf->SetFont('Times','',14);\r\n $pdf->SetY(107);\r\n $pdf->MultiCell(0,0, utf8_decode($this->view->getCibleText('sympathie_from') . \" \" . $symp['SD_Name']),0,C); \r\n $pdf->SetFont('Times','',9);\r\n $pdf->SetY(114);\r\n $pdf->write(5, utf8_decode($symp['SD_Text']));\r\n\r\n $pdf->Output();\r\n exit;\r\n }", "public function generatePDF() {\n $this->generateFirstPage();\n // check data barang, if there's more than 1, spawn additional page\n $this->generateNextPage([]);\n }", "public function descargar_pdf(){\n $zonas=Zona::join('colonia','zona.id','=','colonia.id_zona')\n ->join('permiso','permiso.id_colonia','=','colonia.id')\n ->select('zona.*',DB::raw('count(permiso.id)as total'))\n ->groupBy('zona.id')\n ->get();\n\n $pdf=\\PDF::loadView('Pdfs.zonas',compact('zonas'));\n\n return $pdf->stream();\n }", "public function reducePdf() {\n\n // Ridimensionamento fatture acquisti\n foreach (new \\DirectoryIterator($this->_folder) as $d) {\n if($d->isDot()) continue; // Esclusione folder . e ..\n if (strpos($d->getFileName(),\"DS_Store\")!==false) continue; // Esclusione folder DS_STORE\n\n chmod($d->getRealPath(), 0777); // Imposto permessi\n\n foreach (new \\DirectoryIterator($d->getRealPath()) as $f) {\n\n if($f->isDot() || $f->getFileName()==\".DAV\") continue;\n\n //Util::debug($f->getFileName());\n\n if (strpos($f->getFileName(),\"__\")===false)\n Util::reducePdf($f);\n\n }\n }\n\n // Ridimensionamento note accredito\n foreach (new \\DirectoryIterator(\"/opt/files/notecr\") as $f) {\n\n if($f->isDot() || $f->getFileName()==\".DAV\") continue; // Esclusione folder . e ..\n if (strpos($d->getFileName(),\"DS_Store\")!==false) continue; // Esclusione folder DS_STORE\n\n if (strpos($f->getFileName(),\"__\")===false)\n Util::reducePdf($f);\n\n }\n\n }", "public function pdf()\r\n {\r\n View::template('pdf/mpdf');\r\n //Modifica el nombre del archivo a descargar\r\n $this->fileName = 'user-list';\r\n //Modifica el título del documento PDF en la cabecera\r\n $this->title = 'User List';\r\n $this->data = User::all();\r\n $this->download = false;\r\n }", "public function verpdfamilia($info)\n\t{\n\n\n //getInforme($eval,$curso,$alumno,$usuario)\n if(isset($_SESSION['curso'])){\n $curso=$_SESSION['curso'];\n }else{\n //año actual\n $curso=date(\"Y\");\n $_SESSION['curso']= $curso;\n }\n $param['informe']=$this->Informe->getInformebyid($info);\n //echo site_url().'fpdf.php';exit;\n \n $this->load->library('Pdf');\n $pdf = new FPDF();\n $pdf->AliasNbPages();\n $pdf->AddPage();\n // Logo\n $pic = \"data:image/png;base64,iVB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BxaOPdiCw+z6z368nww9vvl/CUn2N7I1xFtdSGRDxo3uvQ0ylXnIhROIGUCH4OV7QesUgVklGiSCXifWanPTcjCVPh/5U9/J8g1l/tYAaHUr0m4bJdZmFTevd8F57CKTai027qciYSWfcXYN3PqIlS4f+NZIu6eW+qwU1V7ml+qUpba0td00wfb5BgGX0XUNHtV38b2nmgcWj1LxBd82ezpI9MBU/envCVnQ1Xzr7G30lG66hKuMkhYo3Mx0fNfAw9TY/CRZGQ0FOmWBuSejyreEkeJ1hztVKsjlJj2TYN9H+0JSXaKIXHzYSn3w9SnJa6kCJpmdCb1DJ24vP/KjIMqyr1wgO6ZjhamoXs4qu8CBiaWhh9J9HOB41DdTMRX/1LxFrXIU7w6GGGO2sIPDnfgTvnQLjSK9mPLuKAoIg2c0+gECBJgSjexT2tcgJJn1QQqMy5moQOVLzlJbgiy7dhhP8jtpCajQyTNnkpXBn0irfpXp7rbcUlP0Si8WljNf9vJqd2RutQ9nrkJuQMhmfojXR0tvwA2M6ifx9oetKGm5Gouh/x9lVmgXp9FEijG670DLgDow2A3GnsYH8xw/W4T48b41THLFoywn7XJJcIzRDNLaZZUXMzgbXl93P+/0YyycQohtRMBIrIN/QaeCuvtMzUC2DMIhKhJYh8wHb/L9YyKrrxax3qcWyqxc2ARCNhsmiyhtt1yQZcbiP9G+k/A5qeFK4G2j6kvb0Qya4v6M8spjnWTCQ101rTawIkNkIi7kd9SzobiCfUwy6XnruT4g3ma16JHnb91uQooK0vK1xhXnqYmqkgnttRZaX7NdFviw7dAdJtKrpH0t4Igx0nAaagpBzpOf2RSNuNynck3IXT4Mnc1da5F3NMJJOstXYjml8bgLRcNiXT+TZtoDcEduheRna4TW0g80ppbE2Kk5MFswi/46/p42MuTRbW154DrC83V/Y4RtyPajW1As1/hID/B20xWBz8S3gtAAAAAElFTkSuQmCC\";\n $info = getimagesize($pic);\n $pdf->Image($pic, 10, 3,($info[0]/10), ($info[1]/10), 'png');\n $pdf->Line(10, 27, 210-20, 27); \n // $pdf->Image($pic,10,8,15);\n // Arial bold 15\n $pdf->SetFont('Arial','B',18);\n // Movernos a la derecha\n $pdf->Cell(80);\n // Título\n $pdf->Cell(30,10,'INFORME EVALUACION INFANTIL',0,0,'C');\n // Salto de línea\n $pdf->Ln(20);\n\n $pdf->SetFont('Times','',12);\n // $pdf->Cell(0,10,'Nombre: '. ucfirst(strtolower ($param['alumno'][0]['nombre'])) . \" \" . ucfirst(strtolower ($param['alumno'][0]['apellido1'])) .\" \" . ucfirst(strtolower ($param['alumno'][0]['apellido2'])),0,1);\n $pdf->Cell(0,10, iconv('UTF-8', 'windows-1252', \"Evaluación: \"). $param['informe'][0]['trimestre'] . iconv('UTF-8', 'windows-1252', \" ª\"),0,1);\n $pdf->Cell(0,10,'Tutor: '.ucfirst(strtolower ( $_SESSION['usuario']['nombre'] )).\" \" . ucfirst(strtolower ($_SESSION['usuario']['apellido1'])) . \" \" .ucfirst(strtolower ( $_SESSION['usuario']['apellido2'])),0,1);\n\n\n $pdf->Multicell(0,10, iconv('UTF-8', 'windows-1252',$param['informe'][0]['texto']),0,1);\n $pdf->Output();\n \n\t\t//$this->load->view('pagePdf');\n }", "public function constanciaTramitacionDocumento()\n {\n $this->load->library('pdf');\n\n $student = $_GET[\"std\"];\n $data_student = $_GET[\"tone\"];\n\n $estudiante = Estudiante::where('id_estudiante', '=', $student)->get();\n\n $dias = array(\"Domingo\",\"Lunes\",\"Martes\",\"Miercoles\",\"Jueves\",\"Viernes\",\"Sábado\");\n $meses = array(\"Enero\",\"Febrero\",\"Marzo\",\"Abril\",\"Mayo\",\"Junio\",\"Julio\",\"Agosto\",\"Septiembre\",\"Octubre\",\"Noviembre\",\"Diciembre\");\n\n //Obtener los datos del director de la escuela\n $id_escuela = $estudiante[0]->id_escuela;\n $escuela = Escuela::find($id_escuela);\n\n //Obtener direccion escuela\n $id_direccion_escuela = $escuela['id_direccion_escuela'];\n $direccion = Direccion::find($id_direccion_escuela);\n\n //Formateo de fecha\n $ano_actual = date('Y');\n $ano_proximo = strtotime ('+1 year' , strtotime ($ano_actual)) ;\n $ano_proximo = date ('Y' , $ano_proximo);\n $ano_escolar = $escuela->periodo_escolar_actual;\n\n $page_data['page_name'] = 'constancia_tramitacion_documento';\n $page_data['page_title'] = \"Constancia de Tramitacion de Documentos\";\n\n $paragraph_one = 'Quien suscribe, '.$escuela->director->primer_nombre.' '.$escuela->director->segundo_nombre.', '\n .$escuela->director->primer_apellido.' '.$escuela->director->segundo_apellido.', '.'C.I: '\n .$escuela->director->cedula_identidad.' '.$escuela->firma.', hace constar que el alumno (a) '\n .$estudiante[0]->persona->primer_nombre.' '.$estudiante[0]->persona->segundo_nombre.', '\n .$estudiante[0]->persona->primer_apellido.' '.$estudiante[0]->persona->segundo_apellido\n .' titular de la Cédula de Identidad y/o Cédula Escolar N°: '.$cedula_estudiante\n .' , está tramitando ante esta Institución los documentos correspondiente a: '.$data_student.'.';\n\n $paragraph_two = 'Constancia que se expide a petición de la parte interesada en CHACAO, MIRANDA, a los '.date('d')\n .' días del mes de '.$meses[date('n')-1].' del año '.date('Y');\n\n $datos_director = $escuela->director->primer_nombre.' '.$escuela->director->segundo_nombre.', '.$escuela->director->primer_apellido.' '.$escuela->director->segundo_apellido;\n $base_directora = ($escuela->director_encargado == '1') ? $escuela->firma.' (E)' : $escuela->firma;\n\n // Creacion del PDF\n /*\n * Se crea un objeto de la clase Pdf, recuerda que la clase Pdf\n * heredó todos las variables y métodos de fpdf\n */\n $this->pdf = new Pdf('P','mm','Letter');\n // Agregamos una página\n $this->pdf->AddPage();\n\n /* Se define el titulo, márgenes izquierdo, derecho y\n * el color de relleno predeterminado\n */\n $this->pdf->SetTitle(\"Constandia de Tramitacion de Documentos\");\n $this->pdf->SetLeftMargin(15);\n $this->pdf->SetRightMargin(15);\n\n $this->pdf->Ln(25);\n\n // Se define el formato de fuente: Arial, negritas, tamaño 9\n $this->pdf->SetFont('Arial', 'B', 10);\n\n $this->pdf->Cell(0,3,iconv('UTF-8','windows-1252','CONSTANCIA DE TRAMITACIÓN DE DOCUMENTOS'),0,50,'C');\n\n $this->pdf->Ln(15);\n\n $this->pdf->MultiCell(0, 5, iconv('UTF-8','windows-1252',$paragraph_one), 0, 50,'');\n\n $this->pdf->Ln(15);\n\n $this->pdf->MultiCell(0, 5, iconv('UTF-8','windows-1252',$paragraph_two), 0, 50,'');\n\n //Eliminar al tener todo el contenido\n $this->pdf->Ln(70);\n\n $this->pdf->Cell(0,6,iconv('UTF-8','windows-1252','Atentamente,'),0,50,'C');\n $this->pdf->Cell(0,6,iconv('UTF-8','windows-1252',$datos_director),0,50,'C');\n $this->pdf->Cell(0,6,iconv('UTF-8','windows-1252',$firma_director),0,50,'C');\n\n $fileatt_name = \"ConstanciaTramitacionDocumentos.pdf\";\n if($enviarConstanciaCorreo){\n $data = $this->pdf->Output($fileatt_name, 'S');\n }else{\n $this->pdf->Output($fileatt_name, 'I');\n }\n }", "public function pdf() {\n $anuncios = DB::table('anuncio')->get();\n //Se genera el archive PDF\n $pdf = PDF::loadView('pdf.anuncios', compact('anuncios'));\n //Lo forzamos a iniciar descarga\n return $pdf->download('listado_anuncios.pdf');\n }", "public function pdf() {\n $arriendos = DB::table('arriendo')->get();\n //Se genera el archive PDF\n $pdf = PDF::loadView('pdf.arriendos', compact('arriendos'));\n //Lo forzamos a iniciar descarga\n return $pdf->download('listado_arriendos.pdf');\n }", "public function createDiagnosticPdf() {\n\n $pdf = new DiagnosticPDF($this);\n\n $pdf->AliasNbPages();\n $pdf->AddPage();\n $pdf->SetFont('Times','',12);\n\n // Add a title for the section\n $pdf->Cell(60,15,utf8_decode('Server summary'),0,0,'L');\n $pdf->Ln(15);\n // Add php version\n $pdf->addPHPVersion();\n // Add server software\n $pdf->addServerApi();\n // Add addEcommerceInfo and plugin info\n $pdf->addEcommerceInfo();\n // Add merchant info\n $pdf->addMerchantInfo();\n //Add extension info\n $pdf->addExtensionsInfo();\n $pdf->addLogs();\n\n //Some tricks for FPDF to work with joomla.\n ob_start(); //needed to prevent the error(FPDF error: Some data has already been output, can't send PDF file)\n $pdf->Output();\n die(); //needed to break process render of joomla and download the file pdf correctly\n }", "function printOtherInfos($pdf, $infosUtiles) {\n $pdf->setPrintFooter(true);\n $pdf->setPrintHeader(true);\n $pdf->AddPage();\n $pdf->Bookmark('Informations utiles', 2, 0, '', '', array(128, 0, 0));\n $pdf->SetTextColor(255, 255, 255);\n $pdf->SetFont('helvetica', '', 17);\n $pdf->SetXY(7, 25);\n $pdf->Cell(52, 0, \"Informations utiles \", 0, false, 'L', 1, '', 0, false, 'M', 'M');\n $pdf->SetXY(7, 35);\n preHTML($pdf);\n $pdf->writeHTML($infosUtiles, true, 0, true, 0);\n}", "public function generatepdf()\n\t\t {\n\t\t\t App::import('Vendor', 'linnwork/api/Auth');\n\t\t\t\tApp::import('Vendor', 'linnwork/api/Factory');\n\t\t\t\tApp::import('Vendor', 'linnwork/api/PrintService');\n\t\t\t\n\t\t\t\t$username = Configure::read('linnwork_api_username');\n\t\t\t\t$password = Configure::read('linnwork_api_password');\n\t\t\t\t\n\t\t\t\t$multi = AuthMethods::Multilogin($username, $password);\n\t\t\t\t\n\t\t\t\t$auth = AuthMethods::Authorize($username, $password, $multi[0]->Id);\t\n\n\t\t\t\t$token = $auth->Token;\t\n\t\t\t\t$server = $auth->Server;\n\t\t\t\t\n\t\t\t\t$orderIdArray[]\t=\t$this->request->data['pkorderid'];\n\t\t\t\t\n\t\t\t\t$IDs = $orderIdArray;\n\t\t\t\t$parameters = '[]';\n\t\t\t\n\t\t\t $result \t= \tPrintServiceMethods::CreatePDFfromJobForceTemplate('Invoice Template',$IDs,27,$parameters,'PDF',$token, $server);\n\t\t\t $results \t= \tPrintServiceMethods::CreatePDFfromJobForceTemplate('Invoice Template',$IDs,27,$parameters,'PDF',$token, $server);\n\t\t\t $pdf\t\t=\t$result->URL.\"#\".$results->URL;\n\t\t\t if($result->URL && $result->URL)\n\t\t\t {\n\t\t\t\t\t\techo $pdf; \n\t\t\t\t\t\texit;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t\techo \"2\"; \n\t\t\t\t\t\texit;\n\t\t\t\t}\n\t\t }", "public function createPDF()\n {\n $soxId = $this->getEditObjectId();\n if ($soxId != \"-1\" && isset($soxId)) {\n // load object\n $oOrder = oxNew(\"oxorder\");\n if ($oOrder->load($soxId)) {\n $oUtils = oxRegistry::getUtils();\n $sTrimmedBillName = trim($oOrder->oxorder__oxbilllname->getRawValue());\n $sFilename = $oOrder->oxorder__oxordernr->value . \"_\" . $sTrimmedBillName . \".pdf\";\n $sFilename = $this->makeValidFileName($sFilename);\n ob_start();\n $oOrder->genPDF($sFilename, oxRegistry::getConfig()->getRequestParameter(\"pdflanguage\"));\n $sPDF = ob_get_contents();\n ob_end_clean();\n $oUtils->setHeader(\"Pragma: public\");\n $oUtils->setHeader(\"Cache-Control: must-revalidate, post-check=0, pre-check=0\");\n $oUtils->setHeader(\"Expires: 0\");\n $oUtils->setHeader(\"Content-type: application/pdf\");\n $oUtils->setHeader(\"Content-Disposition: attachment; filename=\" . $sFilename);\n oxRegistry::getUtils()->showMessageAndExit($sPDF);\n }\n }\n }", "public function actionPDF()\n\t{\n\t\tif(isset($_POST['selectedIDs']))\n\t\t{\n\t\t\t//call the library with UTF-8 enabled\n\t\t\trequire('protected/extensions/fpdf181/tfpdf.php');\n\n\t\t\t//definition of our PDF file\n\t\t\t$pdf = new tFPDF();\n\t\t\t$pdf->SetFillColor(255,0,0);\n\t\t\t$pdf->SetDrawColor(0,0,0);\n\t\t\t$pdf->SetLineWidth(.2);\n\t\t\t$pdf->AddPage('L');\n\t\t\t$logo = \"images/logo.jpg\";\n\t\t\t$pdf->Image($logo,10,1,25,12,'JPG');\n\t\t\t$pdf->Ln();\n\t\t\t$pdf->SetY(15);\n\t\t\t$pdf->SetFont('Arial','',4);\n\n\t\t\t// definition of the column names \n\t\t\t// Note: iconv is used to format in UTF-8 the column names\n\t\t\t$header = array(\n\t\t\t\ticonv('UTF-8', 'windows-1252','Projektname/-akronym'),\n\t\t\t\ticonv('UTF-8', 'windows-1252','Internenummer'),\n\t\t\t\ticonv('UTF-8', 'windows-1252','Projekttitel/-ziel '), \n\t\t\t\ticonv('UTF-8', 'windows-1252','Thematische Zuordnung'), \n\t\t\t\ticonv('UTF-8', 'windows-1252','Projektskizze'),\n\t\t\t\ticonv('UTF-8', 'windows-1252','Projektantrag'),\n\t\t\t\ticonv('UTF-8', 'windows-1252','Aktueller Status'),\n\t\t\t\ticonv('UTF-8', 'windows-1252','Fördermittelgeber'),\n\t\t\t\ticonv('UTF-8', 'windows-1252','Kontakt Technisch'),\n\t\t\t\ticonv('UTF-8', 'windows-1252','Kontakt kaufmännisch'),\n\t\t\t\ticonv('UTF-8', 'windows-1252','Projektgesamtvolumen'),\n\t\t\t\ticonv('UTF-8', 'windows-1252','GWI-Anteil '),\n\t\t\t\ticonv('UTF-8', 'windows-1252','Projektdauer'),\n\t\t\t\ticonv('UTF-8', 'windows-1252','Projektpartner Industrie'),\n\t\t\t\ticonv('UTF-8', 'windows-1252','Projektpartner Forschung'),\n\t\t\t\ticonv('UTF-8', 'windows-1252','Projektleiter')\n\t\t\t\t);\n\n\t\t\t$widths = array();\n\n\t\t\t// generation of the columns\n\t\t\tforeach ($header as $Col) {\n\t\t\t\tarray_push($widths,strlen($Col));\n\t\t\t\t$pdf->SetFillColor(230,230,230);\n\t\t\t\t$pdf->Cell(strlen($Col),6,$Col,1,0,'C',true);\n\t\t\t}\n\n\t\t\t\n\t\t\t$pdf->Ln();\n\t\t\t$pdf->SetDrawColor(0,0,0);\n\t\t\t$pdf->SetWidths($widths);\n\t\t\tsrand((double) microtime() * 1000000);\n\t\t\t//Catch the POST data\n\t\t\t$selected_ids=$_POST['selectedIDs'];\t\n\n\t\t\t/* \n\t\t\t*\tThe POST data contains the unique id of the selected project in the table\n\t\t\t* with that Id's the generator search for the complete information of the project\n\t\t\t* and generates the complete table with the project data\n\t\t\t*/\n\t\t\tif(isset($selected_ids)){\n\t\t\t\tfor($i=0;$i<sizeof($selected_ids);$i++){\n\t\t\t\t\t$criteria = new CDbCriteria;\n\t\t\t\t\t$criteria->select='*';\n\t\t\t\t\t$criteria->condition='projekt_id='.$selected_ids[$i];\n\t\t\t\t\t$projekt_datei = BGT::model()->findAll($criteria)[0];\n\t\t\t\t\t$projekt_datei = BGT::formatter($projekt_datei);\n\n\t\t\t\t\t$fields = array(\n\t\t\t\t\t\ticonv('UTF-8', 'windows-1252',$projekt_datei->projekt_name),\n\t\t\t\t\t\ticonv('UTF-8', 'windows-1252',$projekt_datei->interne_nummer),\n\t\t\t\t\t\ticonv('UTF-8', 'windows-1252',$projekt_datei->projekt_titel),\n\t\t\t\t\t\ticonv('UTF-8', 'windows-1252',$projekt_datei->thematische),\n\t\t\t\t\t\ticonv('UTF-8', 'windows-1252',$projekt_datei->projekt_skizze),\n\t\t\t\t\t\ticonv('UTF-8', 'windows-1252',$projekt_datei->projekt_antrag),\n\t\t\t\t\t\ticonv('UTF-8', 'windows-1252',$projekt_datei->aktuellerstatus_id),\n\t\t\t\t\t\ticonv('UTF-8', 'windows-1252',$projekt_datei->fordermittelgeber_id),\n\t\t\t\t\t\ticonv('UTF-8', 'windows-1252',$projekt_datei->kontakt_technisch),\n\t\t\t\t\t\ticonv('UTF-8', 'windows-1252',$projekt_datei->kontakt_kaufmanisch),\n\t\t\t\t\t\ticonv('UTF-8', 'windows-1252',$projekt_datei->projektgesamtvolumen),\n\t\t\t\t\t\ticonv('UTF-8', 'windows-1252',$projekt_datei->gwi_anteil),\n\t\t\t\t\t\ticonv('UTF-8', 'windows-1252',$projekt_datei->projektdauer),\n\t\t\t\t\t\ticonv('UTF-8', 'windows-1252',$projekt_datei->projektpartner_industrie),\n\t\t\t\t\t\ticonv('UTF-8', 'windows-1252',$projekt_datei->projektpartner_forschung),\n\t\t\t\t\t\ticonv('UTF-8', 'windows-1252',$projekt_datei->projekt_leiter),\n\t\t\t\t\t\t);\n\n\t\t\t\t\t$pdf->Row($fields);\n\t\t\t\t}\n\t\t\t}\n\t\t\t$pdf->Output();\n\t\t}\n\t}", "public function createPDF() {\n $item = Item::all();\n\n // share data to view\n view()->share('items',$item);\n// $options = new Options();\n// $options->set('isRemoteEnabled', true);\n \n $pdf = PDF::loadView('layouts.report.item_report', $item);\n // $pdf->loadHtml($item['layouts.report.item_report']);\n \n // $pdf->set_option('isRemoteEnabled',TRUE);\n \n$pdf->setpaper('A4','landscape', $item);\n // download PDF file with download method\n return $pdf->download('item.pdf');\n }", "function __createInvoicePDF($paper) {\n\n// pr($paper);\n// die('asdas');\n # include our PDF class\n\n //App::classname('Vendor', 'invoicepdf');\n require_once(ROOT . DS . \"vendor\" . DS . \"invoicepdf.php\");\n\n\n // create new PDF document\n\n $pdf = new InvoicePDF();\n\n\n\n // Set document information\n\n $pdf->SetCreator('Facturi - Sa facturam cit mai simplu');\n\n\n\n //$contact = '';\n //$contact .= '<b>'.$invoice['User']['firstName'].' '.$invoice['User']['lastName'].'</b><br/>';\n //$contact .= $invoice['User']['address'].'<br/>';\n //$contact .= $invoice['User']['city'].', '.$invoice['User']['state'].' '.$invoice['User']['zip'].'<br/>';\n //$contact .= $invoice['User']['country'].'<br/>';\n //$contact .= '<b>Email:</b> '.$invoice['User']['email'].'<br/>';\n\n\n\n $contact = '';\n\n $contact .= 'FURNIZOR: <b>SC SANINVEST SRL</b><br/>';\n\n $contact .= 'Registrul Comertului: <b>J08/2064/2006</b><br/>';\n\n $contact .= 'Cod Fiscal: <b>RO18982439</b><br/>';\n\n $contact .= 'Sediul: <b>str.Harmanului nr.124, Ap.8, Brasov</b><br/>';\n\n $contact .= 'Cont IBAN: <b>RO36 INGB 0000 9999 0477 3148</b><br/>';\n\n $contact .= 'Banca: <b>ING BANK</b><br/>';\n\n $contact .= 'Capital social: <b>200 lei</b><br/>';\n\n\n\n\n\n $client = '';\n\n //$client .= '<b></b><br/>';\n\n $client .= 'CUMPARATOR: <b>' . $paper['client']['name'] . '</b><br/>';\n\n $client .= 'Registrul Comertului: <b>' . $paper['client']['reg_comert'] . '</b><br/>';\n\n $client .= 'Cod Fiscal: <b>' . $paper['client']['cui'] . '</b><br/>';\n\n $client .= 'Adresa: <b>' . $paper['client']['address'] . '</b><br/>';\n\n $client .= $paper['client']['city'] . ', ' . $paper['client']['state'] . ' ' . $paper['client']['zip'] . '<br/>';\n\n $client .= 'Cont IBAN: <b>' . $paper['client']['cont_bancar'] . '</b><br/>';\n\n $client .= 'Banca: <b>' . $paper['client']['banca'] . '</b><br/>';\n\n\n\n\n\n $date = '';\n\n //$date .= date('jS M Y', strtotime($invoice['Invoice']['date'])).'<br/>';\n\n $date .= 'Data: ' . date('d.m.Y', strtotime($paper['date'])) . '<br/><br/>';\n\n //$date .= '<b>Due '.date('jS M Y', strtotime($invoice['Invoice']['dueDate'])).'</b><br/>';\n //$date .= '<b>Data scadenta: '.date('d.m.Y', strtotime($invoice['Invoice']['dueDate'])).'</b><br/>';\n\n $date_due = date('d.m.Y', strtotime($paper['date']));\n\n // set up class properties.\n\n $pdf->xInvoiceId = $paper['paperId'];\n\n $pdf->xPurchaseOrder = $paper['purchaseOrder'];\n\n $pdf->xContact = $contact;\n\n $pdf->xClient = $client;\n\n $pdf->xDate = $date;\n\n $pdf->xDateDue = $date_due;\n\n $pdf->xDelegat = $paper['delegat'];\n\n $pdf->xCarteIdentitate = $paper['identity_card'];\n\n $pdf->xAuto = 'asd';\n\n $pdf->xDataLivrare = date('d.m.Y', strtotime($paper['date']));\n\n\n\n //set auto page breaks\n\n $pdf->SetAutoPageBreak(true);\n\n // add a page\n\n $pdf->AddPage();\n\n // set font\n\n $pdf->SetFont(\"helvetica\", \"\", 8);\n\n // column titles\n\n $columnTitles = array('Nr.Crt.', 'Descriere', 'UM', 'Cantitate', 'Pret', 'Valoare', 'TVA');\n\n // attach item table\n\n $pdf->ItemTable($columnTitles, $invoice['Item']);\n\n // attach total table\n\n\n\n $pdf->TotalTable($invoice['Invoice']);\n\n //Save file To web root PDF document\n\n $pdf->Output($paper['paperId'] . '.pdf', 'I');\n }", "function uf_print_encabezado_pagina($as_titulo,$hidnumero,$ls_fecsol,&$io_pdf)\r\n\t{\r\n\t\t//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\r\n\t\t// Function: uf_print_encabezadopagina\r\n\t\t//\t\t Access: private \r\n\t\t//\t Arguments: as_titulo // T�ulo del Reporte\r\n\t\t//\t \t\t \r\n\t\t//\t \t\t io_pdf // Instancia de objeto pdf\r\n\t\t// Description: funci� que imprime los encabezados por p�ina\r\n\t\t//\t Creado Por: Ing. Selena Lucena\r\n\t\t// Fecha Creaci�: 21/04/2006 \r\n\t\t//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\r\n\t\t$io_encabezado=$io_pdf->openObject();\r\n\t\t$io_pdf->saveState();\r\n\t\t$io_pdf->addJpegFromFile('../../shared/imagebank/'.$_SESSION[\"ls_logo\"],25,711,$_SESSION[\"ls_width\"],$_SESSION[\"ls_height\"]); // Agregar Logo\r\n\t\t//$io_pdf->addText(510,760,7,date(\"d/m/Y\")); // Agregar la Fecha\r\n\t\t$io_pdf->setStrokeColor(0,0,0);\r\n $io_pdf->Rectangle(125,710,460,40);\r\n\t\t$io_pdf->line(430,730,585,730);\t\t\r\n\t\t$io_pdf->line(430,750,430,710);\t\t\r\n\t\t$io_pdf->addText(443,732,11,\"Nro.: \".$hidnumero); // Nmero de Orden de compra\r\n\t\t$io_pdf->addText(443,712,11,\"Fecha: \".$ls_fecsol); // Agregar la Fecha\r\n\t\t$io_pdf->addText(230,725,13,\"<b>\".$as_titulo.\"</b>\"); // Agregar el t�ulo\r\n\r\n $io_pdf->Rectangle(14,40,581,80);\r\n\t\t$io_pdf->line(14,107,594,107);\t\t\r\n\t\t$io_pdf->line(14,94,594,94);\t\t\r\n\t\t$io_pdf->line(150,40,150,120);\t\t\r\n\t\t$io_pdf->line(290,40,290,120);\t\t\r\n\t\t$io_pdf->line(440,40,440,120);\t\t\t\t\r\n\t\t$io_pdf->addText(20,96,7,\"FECHA : / /\"); // Agregar el t�ulo\r\n\t\t$io_pdf->addText(155,96,7,\"FECHA : / /\"); // Agregar el t�ulo\t\t\r\n\t\t$io_pdf->addText(295,96,7,\"FECHA : / /\"); // Agregar el t�ulo\r\n\t\t$io_pdf->addText(446,96,7,\"FECHA : / /\"); // Agregar el t�ulo\r\n\r\n\t\t$io_pdf->addText(20,85,7,\"FIRMA:\"); // Agregar el t�ulo\r\n\t\t$io_pdf->addText(155,85,7,\"FIRMA:\"); // Agregar el t�ulo\r\n\t\t$io_pdf->addText(295,85,7,\"FIRMA:\"); // Agregar el t�ulo\r\n\t\t$io_pdf->addText(445,85,7,\"FIRMA:\"); // Agregar el t�ulo\r\n\r\n\t\t\r\n\t\t$io_pdf->addText(50,110,7,\"ADMINISTRACION\"); // Agregar el t�ulo\r\n\t\t$io_pdf->addText(190,110,7,\"CONTABILIDAD\"); // Agregar el t�ulo\r\n\t\t$io_pdf->addText(340,110,7,\"PRESUPUESTO\"); // Agregar el t�ulo\r\n\t\t$io_pdf->addText(495,110,7,\"DESPACHO\"); // Agregar el t�ulo\r\n\t\t$io_pdf->restoreState();\r\n\t\t$io_pdf->closeObject();\r\n\t\t$io_pdf->addObject($io_encabezado,'all');\r\n\t}", "function join_pdf()\n\t\t{\n\t\t}", "public function pdf($form=''){\n $this->load->model('Report');\n $this->Report->downloadpdf($form);\n }", "function deleteDocumentAction()\n\t{\n\t\tif($this->_request->isPost() && $_SERVER['HTTP_X_REQUESTED_WITH']=='XMLHttpRequest')\n\t\t{\n\t\t\t$parmas = $this->_request->getParams();\n\t\t\t$explode_identifier = explode(\"_\",$parmas['identifier']);\n\t\t\t$offset = $explode_identifier[0];\n\t\t\t$identifier = $explode_identifier[1];\n\t\t\t$quoteMission_obj=new Ep_Quote_QuoteMissions();\n\t\t\t$result = $quoteMission_obj->getQuoteMission($identifier);\n\t\t\t$documents_paths = explode(\"|\",$result[0]['documents_path']);\n\t\t\t$documents_names = explode(\"|\",$result[0]['documents_name']);\n\n\t\t\tunlink($this->mission_documents_path.$documents_paths[$offset]);\n\n\t\t\tunset($documents_paths[$offset]);\n\t\t\tunset($documents_names[$offset]);\n\n\t\t\t$data['documents_path']\t= implode(\"|\",$documents_paths);\n\t\t\t$data['documents_name']\t= implode(\"|\",$documents_names);\n\t\t\t$quoteMission_obj->updateQuoteMission($data,$identifier);\n\n\t\t\t$documents_paths = array_filter(array_values($documents_paths));\n\t\t\t$documents_names = array_values($documents_names);\n\n\n\t\t\t\n\t\t\t$files = \"<table class='table'>\";\n\t\t\t\n\t\t\tif($parmas['assignmission']):\n\t\t\t$k=0;\n\t\t\t$zip = \"\";\n\t\t\t$zip_req = $parmas['zip_req'];\n\t\t\tforeach($documents_paths as $row)\n\t\t\t{\n\t\t\t\t$file_path=$this->mission_documents_path.$row;\n\t\t\t\tif(file_exists($this->mission_documents_path.$documents_paths[$k]) && !is_dir($this->mission_documents_path.$documents_paths[$k]))\n\t\t\t\t{\n\t\t\t\t\t$zip = true;\n $fname = $documents_names[$k];\n\t\t\t\t\tif($fname==\"\")\n\t\t\t\t\t\t$fname = basename($row);\n\t\t\t\t\t$ofilename = pathinfo($file_path);\n\t\t\t\t\t$files .= '<tr><td width=\"30%\">'.utf8_encode($fname).'</td><td width=\"35%\">'.utf8_encode($ofilename['basename']).'</td><td width=\"20%\">'.formatSizeUnits(filesize($file_path)).'</td><td align=\"center\" width=\"15%\"><a href=\"/quote/download-document?type=seo_mission&mission_id='.$identifier.'&index='.$k.'\"><i style=\"margin-right:5px\" class=\"splashy-download\"></i></a><span class=\"delete\" rel=\"'.$k.'_'.$identifier.'\"> <i class=\"icon-adt_trash\"></i></span><td></tr>';\n\n\t\t\t\t}\n\t\t\t\t$k++;\n\t\t\t}\n\t\t\t\tif($zip && !$zip_req):\n\t\t\t\t$files .= '<thead><tr><td colspan=\"5\"><a href=\"/quote/download-document?type=seo_mission&index=-1&mission_id='.$identifier.'\" class=\"btn btn-small pull-right\">Download Zip</a></td></tr></thead>';\n\t\t\t\tendif;\n\t\t\telse:\n\t\t\t$k=0;\n\t\t\tforeach($documents_paths as $row)\n\t\t\t{\n\t\t\t\tif(file_exists($this->mission_documents_path.$documents_paths[$k]) && !is_dir($this->mission_documents_path.$documents_paths[$k]))\n\t\t\t\t{\n $fname = $documents_names[$k];\n\t\t\t\t\tif($fname==\"\")\n\t\t\t\t\t\t$fname = basename($row);\n\t\t\t\t\t$files .= '<div class=\"topset2\"><a href=\"/quote/download-document?type=seo_mission&mission_id='.$identifier.'&index='.$k.'\">'.utf8_encode($fname).'</a><span class=\"delete\" rel=\"'.$k.'_'.$identifier.'\"> <i class=\"splashy-error_x\"></i></span></div>';\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t$k++;\n\t\t\t}\t\n\t\t\tendif;\n\t\t\t$files .= '</table>';\n\t\t\techo $files;\n\t\t}\n\t}", "function pdf() {\n if($this->active_invoice->isLoaded()) {\n\n require_once INVOICING_MODULE_PATH . '/models/InvoicePDFGenerator.class.php';\n InvoicePDFGenerator::download($this->active_invoice, lang(':invoice_id.pdf', array('invoice_id' => $this->active_invoice->getName())));\n die();\n } else {\n $this->response->notFound();\n } // if\n }", "public function downloadPDF()\n {\n\n $data = DB::table('tbgem_citramite')->select('AMBITO_MUN_CLAVE','Tbgem_cimunicipios.MUN_DESCRIPCION','tbgem_cimunlogos.RUTA')\n ->distinct()\n ->leftJoin('Tbgem_cimunicipios', 'tbgem_citramite.AMBITO_MUN_CLAVE', '=', 'Tbgem_cimunicipios.MUN_CLAVE')\n ->leftJoin('tbgem_cimunlogos', 'tbgem_citramite.AMBITO_MUN_CLAVE','=', 'tbgem_cimunlogos.MUN_CLAVE')\n ->orderBy('Tbgem_cimunicipios.MUN_DESCRIPCION')\n ->get();\n\n\n $pdf = \\PDF::loadView('VistasRetys.Municipios.minucipios',compact('data'));\n\n //$pdf = \\PDF::loadView('Trasnparencia.transparencia', $data);\n\n return $pdf->download('municipios.pdf');\n }", "function\tcreatePDF( $_key=\"\", $_id=-1, $_pdfName=\"\") {\n\t\t$this->_createPDF( $_key, $_id, $_pdfName) ;\n\t\t$this->printPDF() ;\n\t\treturn $this->myCustomerCommission->getXMLComplete() ;\n\t}", "function pdf($result, $sumArray, $title, $weightArray, $headerArray){\n\n\t$config = CoreConfig::readAppConfig();\n\t$active_app = Router::getApplication();\n\n\t//Orientación\n\tif($sumArray>200) {\n\t\t$orientation = PdfDocument::ORI_LANDSCAPE;\n\t} else {\n\t\t$orientation = PdfDocument::ORI_PORTRAIT;\n\t}\n\n\t$numRows = 140;\n\t//Tipo de Papel\n\tif($sumArray>250){\n\t\t$paper = PdfDocument::PAPER_LEGAL;\n\t} else {\n\t\t$paper = PdfDocument::PAPER_LETTER;\n\t}\n\n\tif($paper==PdfDocument::PAPER_LETTER&&$orientation==PdfDocument::ORI_PORTRAIT){\n\t\t$widthPage = 220;\n\t\t$numRows = 42;\n\t}\n\n\tif($paper==PdfDocument::PAPER_LEGAL&&$orientation==PdfDocument::ORI_LANDSCAPE){\n\t\t$widthPage = 355;\n\t\t$numRows = 30;\n\t}\n\n\tif($paper==PdfDocument::PAPER_LETTER&&$orientation==PdfDocument::ORI_LANDSCAPE){\n\t\t$widthPage = 270;\n\t\t$numRows = 30;\n\t}\n\n\t//Crear Documento PDF\n\t$pdf = new PDF($orientation, PdfDocument::UNIT_MM, PdfDocument::PAPER_LETTER);\n\n\t$pdf->Open();\n\t$pdf->AddPage();\n\n\t//Nombre del Listado\n\t$pdf->setFillColor(255, 255, 255);\n\t$pdf->addFont('Verdana','','verdana.php');\n\t$pdf->setFont('Verdana','', 14);\n\t$pdf->setY(20);\n\t$pdf->setX(0);\n\n\t$pdf->lineFeed();\n\n\tif($config->application->name){\n\t\t$pdf->writeMultiCell(0, 6, strtoupper($config->application->name), 0, \"C\", 0);\n\t}\n\t$pdf->writeMultiCell(0, 6, 'REPORTE DE '.strtoupper($title), 0, 'C', 0);\n\t$pdf->setFont('Verdana','', 12);\n\tif(isset($_SESSION['fecsis'])){\n\t\t$pdf->writeMultiCell(0, 6, 'FECHA '.Date::getCurrentDate(), 0, 'C', 0);\n\t}\n\t$pdf->lineFeed();\n\n\t//Colores, ancho de línea y fuente en negrita\n\t$pdf->setFillColor(0xF2, 0xF2, 0xF2);\n\t$pdf->setTextColor(0);\n\t$pdf->setDrawColor(0, 0, 0);\n\t$pdf->setLineWidth(.2);\n\t$pdf->setFont('Arial', 'B', 10);\n\n\tif($weightArray[0]<11){\n\t\t$weightArray[0] = 11;\n\t}\n\n\t//Parametros del Reporte\n\t$pos = floor(($widthPage/2)-($sumArray/2));\n\t$pdf->setX($pos);\n\t$numberColumns = count($headerArray);\n\tfor($i=0;$i<$numberColumns;++$i){\n\t\tif(!isset($weightArray[$i])){\n\t\t\t$weightArray[$i] = 25;\n\t\t}\n\t\t$pdf->writeCell($weightArray[$i], 7, $headerArray[$i], 1, 0, 'C', 1);\n\t}\n\t$pdf->lineFeed();\n\n\t//Restauración de colores y fuentes\n\t$pdf->setFillColor(224, 235, 255);\n\t$pdf->setTextColor(0);\n\t$pdf->setFont('Arial', 'B', 7);\n\n\t//Buscamos y listamos\n\t$n = 1;\n\t$p = 1;\n\t$t = 0;\n\tforeach($result as $row){\n\t\t//$pdf->Cell(Ancho, Alto, contenido, ?, ?, Align)\n\t\tif($n>$numRows||($p==1&&($n>$numRows-3))){\n\t\t\t$pdf->addPage($orientation);\n\t\t\t$pdf->setY(30);\n\t\t\t$pdf->setX($pos);\n\t\t\t$pdf->setFillColor(0xF2, 0xF2, 0xF2);\n\t\t\t$pdf->setTextColor(0);\n\t\t\t$pdf->setDrawColor(0,0,0);\n\t\t\t$pdf->setLineWidth(.2);\n\t\t\t$pdf->setFont('Arial', 'B', 10);\n\t\t\tfor($i=0;$i<count($headerArray);++$i){\n\t\t\t\t$pdf->writeCell($weightArray[$i], 7, $headerArray[$i], 1, 0, 'C', 1);\n\t\t\t}\n\t\t\t$pdf->LineFeed();\n\t\t\t$pdf->SetFillColor(224, 235, 255);\n\t\t\t$pdf->SetTextColor(0);\n\t\t\t$pdf->SetFont('Arial', 'B', 7);\n\t\t\t$n = 1;\n\t\t\t++$p;\n\t\t}\n\t\t$pdf->setX($pos);\n\t\t$numberColumns = count($row)-1;\n\t\tfor($i=0;$i<=$numberColumns;$i++){\n\t\t\tif(is_numeric($row[$i])){\n\t\t\t\t$pdf->writeCell($weightArray[$i], 5, trim($row[$i]),'LRTB', 0, 'C');\n\t\t\t} else {\n\t\t\t\t$pdf->writeCell($weightArray[$i], 5, trim($row[$i]),'LRTB', 0, 'L');\n\t\t\t}\n\t\t}\n\t\t++$n;\n\t\t++$t;\n\t\t$pdf->lineFeed();\n\t}\n\n\t$pdf->setX($pos);\n\t$pdf->setFont('Arial', 'B', 7);\n\t$pdf->setFillColor(0xF2,0xF2, 0xF2);\n\tif(isset($weightArray[1])){\n\t\t$pdf->writeCell($weightArray[0], 5, 'TOTAL','LRTB', 0, 'R');\n\t\t$pdf->writeCell($weightArray[1], 5, $t,'LRTB', 0, 'L');\n\t}\n\n\t$file = md5(mt_rand(0, 10000));\n\t$pdf->outputDocument('public/temp/'.$file .'.pdf', 'F');\n\tif(isset($raw_output)){\n\t\techo \"<script type='text/javascript'> window.open('\".Core::getInstancePath().\"temp/\".$file.\".pdf', null); </script>\";\n\t} else {\n\t\tGenerator::formsPrint(\"<script type='text/javascript'> window.open('\".Core::getInstancePath().\"temp/\".$file.\".pdf', null); </script>\");\n\t}\n\n}", "function\tcreatePDF( $_key=\"\", $_id=-1, $_pdfName=\"\") {\n\t\t$this->_createPDF( $_key, $_id, $_pdfName) ;\n\t\treturn $this->myInv->getXMLComplete() ;\n\t}", "public function create()\n {\n return view('dashboard.pages.pdfs.create');\n }", "public function pdf($id)\n {\n $valeurs = $this->detail($id);\n if (!$valeurs) {\n throw new MY_Exceptions_NoSuchRecord('Impossible de trouver la facture ' . $id);\n }\n /*if ($valeurs->fac_fichier && file_exists($valeurs->fac_fichier)) {\n return array(\n 'path' => $valeurs->fac_fichier,\n 'created' => false,\n );\n }*/\n $chemin = $this->generer_pdf($id, true);\n if ($chemin) {\n return array(\n 'path' => $chemin,\n 'created' => true,\n );\n }\n return $chemin;\n }", "public function pdf() \n {\n $proveedores = Proveedor::all();\n $coment = 'Reporte de proveedores con los datos sin filtrar';\n $pdf = PDF::loadView('pdf.proveedor', compact('proveedores','coment'))->setPaper('letter');//,'landscape' para cambiar la horientacion de la hoja\n return $pdf->stream('proveedor.pdf');//descargar directa \"dawnload\" en lugar de stream\n }", "public function createPDF() {\n $category = Category::all();\n\n // share data to view\n view()->share('categories',$category);\n\n \n $pdf = PDF::loadView('layouts.report.category_report', $category);\n \n \n $pdf->setpaper('A4','landscape', $category);\n // download PDF file with download method\n return $pdf->download('category.pdf');\n }", "public function download_pdf(){\n $this->load->library('Pdf');\n $pdf = new Pdf('P', 'mm', 'A4', true, 'UTF-8', false);\n $pdf->SetCreator(PDF_CREATOR);\n $pdf->SetAuthor('SchoolERP');\n $pdf->SetTitle('Admission PDF');\n $pdf->SetSubject('Admission Reports in PDF');\n $pdf->SetKeywords('ADMISSION,Report,PDF');\n $pdf->AddPage();\n\n // create some HTML content\n\n $html = '\n <p style=\"font-size: 15px; font-weight: bold; text-align: center\">\n Admission Report\n </p>\n <hr>\n \n \n <div class=\"row\">\n <div class=\"col-lg-12\" id=\"\" style=\"overflow-y:scroll; overflow-x:hidden; height: 400px; width:1200px;\">\n <table class=\"table table-hover table-bordered\" id=\"userTbl\">\n <thead>\n <tr class=\"\">\n <th>Sno.</th>\n <th>Admission No.</th>\n <th>House</th>\n <th>Student Name</th>\n <th>Father</th>\n <th>Mother</th>\n <th>DOB</th>\n <th>Gender</th>\n </tr>\n </thead>\n <tbody>\n </tbody>\n </table>\n </div>\n</div>\n\n\n ';\n\n $pdf->writeHTML($html, true, false, true, false, 'center');\n //Close and output PDF document\n $pdf->output();\n\n }", "public function index()\n \n{\n\n \n\t$this->pdf=new pdf();\n global $title;\n\n\n\n $this->pdf->AddPage('P','A4',0);\n $this->pdf->SetFont('Arial','B',10);\n $hoy=date(\"dmyhis\");\n \n $this->pdf->Cell(180,19,'ESCUELA DE NATACION',0,1,'C');\n //$this->pdf->Image('upload/c1.jpg',10,10,-900);\n $this->pdf->Image('upload/NATA.png',10,10,-800);\n\n /****** FECHA ********/\n // $AAA=$this->input->post('txtPDF'); \n $pdfFilePath=\"cipdf_\".$hoy.\".pdf\";\n $this->load->library('pdf');\n $this->pdf->Cell(180,6,'FECHA:',0,1,'L');\n $this->pdf->Ln('0');\n\n $AAA3=$this->input->post('txtPDF3'); \n $pdfFilePath=\"cipdf_\".$hoy.\".pdf\";\n $this->load->library('pdf');\n $this->pdf->Cell(40,4,$AAA3,0,1,'C');\n $this->pdf->Ln('1');\n/****** NOMBRE ********/\n // $AAA=$this->input->post('txtPDF'); \n $pdfFilePath=\"cipdf_\".$hoy.\".pdf\";\n $this->load->library('pdf');\n $this->pdf->Cell(50,20, 'NOMBRE:',1,0,'C');\n $this->pdf->Ln('0');\n\n $AAA=$this->input->post('txtPDF'); \n $pdfFilePath=\"cipdf_\".$hoy.\".pdf\";\n $this->load->library('pdf');\n $this->pdf->Cell(180,20,$AAA,1,1,'C');\n $this->pdf->Ln('1');\n\n/****** CONCEPTO ********/\n // $AAA=$this->input->post('txtPDF'); \n $pdfFilePath=\"cipdf_\".$hoy.\".pdf\";\n $this->load->library('pdf');\n $this->pdf->Cell(50,20, 'CONCEPTO DE:',1,0,'C');\n $this->pdf->Ln('0');\n\n $AAA2=$this->input->post('txtPDF2'); \n $pdfFilePath=\"cipdf_\".$hoy.\".pdf\";\n $this->load->library('pdf');\n $this->pdf->Cell(180,20,$AAA2,1,1,'C');\n $this->pdf->Ln('1');\n\n/****** MENSUALIDAD ********/\n // $AAA=$this->input->post('txtPDF'); \n $pdfFilePath=\"cipdf_\".$hoy.\".pdf\";\n $this->load->library('pdf');\n $this->pdf->Cell(50,20, 'MENSUALIDAD DEL MES:',1,0,'C');\n $this->pdf->Ln('0');\n\n $AAA1=$this->input->post('txtPDF1'); \n $pdfFilePath=\"cipdf_\".$hoy.\".pdf\";\n $this->load->library('pdf');\n $this->pdf->Cell(180,20,$AAA1,1,1,'C');\n $this->pdf->Ln('8');\n\n\n /********************************/\n \n $this->pdf->Cell(50,20, 'ENTREGADO CONFORME',0,0,'C');\n $this->pdf->Ln('0');\n\n $this->pdf->Cell(250,20,'RECIBIDO CONFORME',0,1,'C');\n $this->pdf->Ln('2');\n\n /*********************************/\n $this->pdf->Cell(180,60,'FECHA:',0,1,'L');\n $this->pdf->Cell(100,1,'FECHA:',0,1,'R');\n //$this->pdf->WriteHTML($AAA,9);\n $this->pdf->Output($pdfFilePath,\"I\");\n/* \n \n $AAA=$this->input->post('txtPDF'); \n $pdfFilePath=\"cipdf_\".$hoy.\".pdf\";\n $this->load->library('pdf');\n $this->pdf->Cell(200,20,$AAA,0,1,'C');\n $this->pdf->Output($pdfFilePath,\"I\");\n\n\n\n $AAA=$this->input->post('txtPDF'); \n $pdfFilePath=\"cipdf_\".$hoy.\".pdf\";\n $this->load->library('pdf');\n $this->pdf->Cell(300,30,$AAA,0,1,'R');\n $this->pdf->Output($pdfFilePath,\"I\");\n \n*/\n /* $AAA=$this->input->post('txtPDF'); \n $pdfFilePath=\"cipdf_\".$hoy.\".pdf\";\n $this->load->library('pdf');\n $this->pdf->Cell(180,20,$AAA,1,1,'C');\n $this->pdf->Ln('2');\n*/\n \n\n\n\n/*\n //$pdf=new PDF_HTML();\n //$pdf->SetFont('Arial','',12);\n $pdf->AddPage();\n $pdf->WriteHTML($_POST['text']);\n $pdf->Output();\n*/\n/************************HEADER ****************************\n Arial bold 15\n $this->pdf->SetFont('Arial','B',15);\n // Calculamos ancho y posición del título.\n $w = $this->pdf->GetStringWidth($title)+6;\n $this->pdf->SetX((210-$w)/2);\n // Colores de los bordes, fondo y texto\n $this->pdf->SetDrawColor(0,80,180);\n $this->pdf->SetFillColor(230,230,0);\n $this->pdf->SetTextColor(220,50,50);\n // Ancho del borde (1 mm)\n $this->pdf->SetLineWidth(1);\n // Título\n// $this->pdf->Cell($w,9,$title,1,1,'C',true);\n // Salto de línea\n $this->pdf->Ln(10);\n\n\n\n\n$this->$title = '20000 Leguas de Viaje Submarino';\n//$this->$pdf->SetTitle($title);\n//$this->$pdf->SetAuthor('Julio Verne');\n$this->$pdf->PrintChapter(1,'UN RIZO DE HUIDA','20k_c1.txt');\n$this->$pdf->PrintChapter(2,'LOS PROS Y LOS CONTRAS','20k_c2.txt');\n$this->$pdf->Output();\n\n\n\t\n\t\n\t\t$hoy=date(\"dmyhis\"); \n $this->pdf->AddPage();\n $this->pdf->AliasNbPages();\n $this->pdf->SetTitle(\"recibo\");\n $this->pdf->SetAuthor(\"reciboooooooooo\");\n $this->pdf->SetDrawColor(0,80,180);\n $this->pdf->Cell(50);\n $this->pdf->Cell(1,100,'LISTA dddfffffffffffdddddddddddddd',0,1,'C',1);\n $this->pdf->Ln(10);\n $this->load->view('EST_agregarP','data',true);\n $pdfFilePath=\"cipdf_\".$hoy.\".pdf\";\n $this->pdf->Write(5,'www.fpdf.org','http://www.fpdf.org');\n $this->pdf->Output(\"lista.pdf\",'I');\n\n\t*/\n\n\n // $this->pdf->Cell(180,200,$AAA,0,0,'C','http://localhost/MVC4/034interfaz/index.php/usuarios/mensualidad');\n //$this->pdf->Cell(200,20,$AAA,1,1,'http://localhost/MVC4/034interfaz/index.php/usuarios/mensualidad');\n }", "public function DownloadPdf(){\n\n\t\t// fetch data from db\n\t\t$this->load->model('admin');\n\t\t$result = $this->admin->getMemberDetails();\n\t\t//print_r($result);die();\n\t\t$this->load->library('Pdf');\n\t\t// create new PDF document\n\t\t$pdf = new Pdf('P', 'mm', 'A4', true, 'UTF-8', false);\n\t\t// $pdf = new MYPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);\n\n\t\t// set document information\n\t\t$pdf->SetCreator(PDF_CREATOR);\n\t\t$pdf->SetAuthor('Bizmo Technologies');\n\t\t$pdf->SetTitle('AGM Registered Members List');\n\t\t$pdf->SetSubject('AGM Registered Members List');\n\t\t$pdf->SetKeywords('MEA, AGM, Dakshata Wagh, Bizmo Technologies, Ranjeet Wagh');\n\n\t\t// set default header data\n\t\t$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE, PDF_HEADER_STRING);\n\n\t\t// set header and footer fonts\n\t\t$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN));\n\t\t$pdf->setFooterFont(Array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA));\n\n\t\t// set default monospaced font\n\t\t$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED);\n\n\t\t// set margins\n\t\t$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT);\n\t\t$pdf->SetHeaderMargin(PDF_MARGIN_HEADER);\n\t\t$pdf->SetFooterMargin(PDF_MARGIN_FOOTER);\n\n\t\t// set auto page breaks\n\t\t$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);\n\n\t\t// set image scale factor\n\t\t$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);\n\n\t\t// set some language-dependent strings (optional)\n\t\tif (@file_exists(dirname(__FILE__).'/lang/eng.php')) {\n\t\t\trequire_once(dirname(__FILE__).'/lang/eng.php');\n\t\t\t$pdf->setLanguageArray($l);\n\t\t}\n\n\t\t// ---------------------------------------------------------\n\n\t\t// set font\n\t\t$pdf->SetFont('helvetica', '', 12);\n\n\t\t// add a page\n\t\t$pdf->AddPage();\n\t\t$memNo=0;\n\t\t$vegCount=0;\n\t\t$nvegCount=0;\n\t\t$male=0;\n\t\t$female=0;\n\t\t$net=0;\n\n\t\tif($result['status']=='200'){\n\t\t\t$memNo=count($result['status_message']);\n\t\t\t$net=$result['countSum'];\n\n\t\t\tforeach($result['status_message'] as $row){\n\t\t\t\tif($row['foodPreference']=='nveg' && $row['foodPreference']!=''){\n\t\t\t\t\t$nvegCount++;\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t$vegCount++;\n\t\t\t\t}\n\n\t\t\t\tif($row['gender']=='Male' && $row['gender']!=''){\n\t\t\t\t\t$male++;\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tif($row['gender']=='Female'){\t\t\t\t\t\t\n\t\t\t\t\t$female++;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t\n\t\t\t} \n\t\t}\n\n\t\t// Set some content to print\n\t\t$html = \n\t\t'<h3>EVENT STATISTICS:</h3>\n\t\t<p>\n\t\t<label><u>Total Member Registered:</u></label> <span>'.$memNo.'</span><br>\n\t\t<label><u>Total Checked In:</u></label> <span>'.$net.'</span><br><br>\n\t\t<i><label>Male Members:</label> <span>'.$male.'</span></i><br>\n\t\t<i><label>Female Members:</label> <span>'.$female.'</span></i><br>\n\t\t<i><label>Veg Preferred Members:</label> <span>'.$vegCount.'</span></i><br>\n\t\t<i><label>Non-Veg Preferred Members:</label> <span>'.$nvegCount.'</span></i><br>\t\n\t\t</p><hr><br>\n\t\t<br>\n\t\t';\n\n\t\t// Print text using writeHTMLCell()\n\t\t$pdf->writeHTMLCell(0, 0, '', '', $html, 0, 1, 0, true, '', true);\n\n\t\t// column titles\n\t\t$header = array('Sr.', 'Member Name', 'Gender' ,'Food' , 'Status', 'Date');\n\n\t\t// Colors, line width and bold font\n\t\t$pdf->SetFillColor(255, 0, 0);\n\t\t$pdf->SetTextColor(255);\n\t\t$pdf->SetDrawColor(128, 0, 0);\n\t\t$pdf->SetLineWidth(0.3);\n\t\t$pdf->SetFont('', 'B');\n\t\t// Header\n\t\t$w = array(10,75,25, 25, 25, 28);\n\t\t$num_headers = count($header);\n\t\tfor($i = 0; $i < $num_headers; ++$i) {\n\t\t\t$pdf->Cell($w[$i], 7, $header[$i], 1, 0, 'C', 1);\n\t\t}\n\t\t$pdf->Ln();\n\t\t// Color and font restoration\n\t\t$pdf->SetFillColor(224, 235, 255);\n\t\t$pdf->SetTextColor(0);\n\t\t$pdf->SetFont('');\n\t\t// Data\n\t\t$fill = 0;\n\t\t$count=1;\n\t\tif($result['status']=='500'){\n\t\t\t//print_r($row);\n\t\t\t$pdf->Cell($w[0], 6, 'N/A', 'LR', 0, 'C', $fill);\n\t\t\t$pdf->Cell($w[1], 6, 'N/A', 'LR', 0, 'C', $fill);\n\t\t\t$pdf->Cell($w[2], 6, 'N/A', 'LR', 0, 'C', $fill);\n\t\t\t$pdf->Cell($w[3], 6, 'N/A', 'LR', 0, 'C', $fill);\n\t\t\t$pdf->Cell($w[4], 6, 'N/A', 'LR', 0, 'C', $fill);\n\t\t\t$pdf->Cell($w[5], 6, 'N/A', 'LR', 0, 'C', $fill);\n\t\t\t$pdf->Ln();\n\t\t\t$fill=!$fill;\n\t\t}\n\t\telse{\n\t\t\tforeach($result['status_message'] as $row) {\n\t\t\t\t$valid_date = date( 'd M, Y', strtotime($row['dated']));\n\t\t\t\t//now do borders and fill\n\t\t\t\t//cell height is 6 times the max number of cells\n\t\t\t\t$food='VEG';\n\t\t\t\t$checked='---';\n\n\t\t\t\tif($row['foodPreference']=='nveg' && $row['foodPreference']!=''){\n\t\t\t\t\t$food='NON-VEG';\n\t\t\t\t}\n\t\t\t\tif($row['checkin']=='1'){\n\t\t\t\t\t$checked='Checked In';\n\t\t\t\t}\n\t\t\t\t$pdf->Cell($w[0],6,$count.'.','LR', 0, 'C', $fill);\n\t\t\t\t$pdf->Cell($w[1],6,$row['member_name'],'LR', 0, 'C', $fill);\n\t\t\t\t$pdf->Cell($w[2],6,$row['gender'],'LR', 0, 'C', $fill);\n\t\t\t\t$pdf->Cell($w[3],6,$food,'LR', 0, 'C', $fill);\n\t\t\t\t$pdf->Cell($w[4],6,$checked,'LR', 0, 'C', $fill);\n\t\t\t\t$pdf->Cell($w[5],6,$valid_date,'LR', 0, 'C', $fill);\n\n\t\t\t\t$pdf->Ln();\n\t\t\t\t$fill=!$fill;\n\n\t\t\t\t$count++;\n\t\t\t}\t\n\t\t}\n\t\t\n\t\t$pdf->Cell(array_sum($w), 0, '', 'T');\n\t\t// ---------------------------------------------------------\n\n\t\t// close and output PDF document\n\t\t\n\t\t$tarikh = date('Ydm h:i:s a', time());\n\t\t$pdf->Output('AGMEventList_'.$tarikh.'.pdf', 'I');\n\t}", "function __createInvoiceReceiptPDF($paper) {\n\n # include our PDF class\n\n App::import('Vendor', 'invoice-receipt-pdf');\n\n\n\n // create new PDF document\n\n $pdf = new InvoicePDF();\n\n\n\n // Set document information\n\n $pdf->SetCreator('Facturi - Sa facturam cit mai simplu');\n\n\n\n //$contact = '';\n //$contact .= '<b>'.$invoice['User']['firstName'].' '.$invoice['User']['lastName'].'</b><br/>';\n //$contact .= $invoice['User']['address'].'<br/>';\n //$contact .= $invoice['User']['city'].', '.$invoice['User']['state'].' '.$invoice['User']['zip'].'<br/>';\n //$contact .= $invoice['User']['country'].'<br/>';\n //$contact .= '<b>Email:</b> '.$invoice['User']['email'].'<br/>';\n\n\n\n $contact = '';\n\n $contact .= 'FURNIZOR: <b>SC SANINVEST SRL</b><br/>';\n\n $contact .= 'Registrul Comertului: <b>J08/2064/2006</b><br/>';\n\n $contact .= 'Cod Fiscal: <b>RO18982439</b><br/>';\n\n $contact .= 'Sediul: <b>str.Harmanului nr.124, Ap.8, Brasov</b><br/>';\n\n $contact .= 'Cont IBAN: <b>RO36 INGB 0000 9999 0477 3148</b><br/>';\n\n $contact .= 'Banca: <b>ING BANK</b><br/>';\n\n $contact .= 'Capital social: <b>200 lei</b><br/>';\n\n\n\n\n\n $client = '';\n\n //$client .= '<b></b><br/>';\n\n $client .= 'CUMPARATOR: <b>' . $paper['Client']['name'] . '</b><br/>';\n\n $client .= 'Registrul Comertului: <b>' . $paper['Client']['reg_comert'] . '</b><br/>';\n\n $client .= 'Cod Fiscal: <b>' . $paper['Client']['cui'] . '</b><br/>';\n\n $client .= 'Adresa: <b>' . $paper['Client']['address'] . '</b><br/>';\n\n $client .= $invoice['Client']['city'] . ', ' . $paper['Client']['state'] . ' ' . $paper['Client']['zip'] . '<br/>';\n\n $client .= 'Cont IBAN: <b>' . $paper['Client']['cont_bancar'] . '</b><br/>';\n\n $client .= 'Banca: <b>' . $paper['Client']['banca'] . '</b><br/>';\n\n\n\n\n\n\n\n $date = '';\n\n //$date .= date('jS M Y', strtotime($invoice['Invoice']['date'])).'<br/>';\n\n $date .= 'Data: ' . date('d.m.Y', strtotime($invoice['Invoice']['date'])); //.'<br/><br/>';\n //$date .= '<b>Due '.date('jS M Y', strtotime($invoice['Invoice']['dueDate'])).'</b><br/>';\n //$date .= '<b>Data scadenta: '.date('d.m.Y', strtotime($invoice['Invoice']['dueDate'])).'</b><br/>';\n\n $date_due = date('d.m.Y', strtotime($invoice['Invoice']['dueDate']));\n\n // set up class properties.\n\n $pdf->xInvoiceId = $invoice['Invoice']['invoiceId'];\n\n $pdf->xContact = $contact;\n\n $pdf->xClient = $client;\n\n $pdf->xClient2 = $paper['Client']['name'];\n\n $pdf->xNrChitanta = $paper['Invoice']['nr_chitanta'];\n\n $pdf->xRegComert = $paper['Client']['reg_comert'];\n\n $pdf->xCui = $paper['Client']['cui'];\n\n $pdf->xAdresa = $paper['Client']['address'] . ', ' . $paper['Client']['city'] . ', ' . $paper['Client']['state'];\n\n $pdf->xTotal = $paper['Invoice']['total'];\n\n //echo $pdf->xTotal.';';\t\n\n $pdf->xTotal = strval($pdf->xTotal);\n\n $pieces = explode(\".\", $pdf->xTotal);\n\n //echo $pdf->xTotal.';';\t\n //pr($pieces);\n //$pdf->xDecimal = ltrim(($invoice['Invoice']['total'] - floor($invoice['Invoice']['total'])),\"0.\"); // result .3\n //$pdf->xDecimal = ($invoice['Invoice']['total'] - floor($invoice['Invoice']['total'])); // result .3\n //$int = $invoice['Invoice']['total'] > 0 ? floor($invoice['Invoice']['total']) : ceil($invoice['Invoice']['total']);\n //$pdf->xDecimal = $invoice['Invoice']['total'] - $int;\n //echo $pdf->xDecimal;\n //pr($invoice['Invoice']['total']);\n\n $pdf->xTotalLitere = $this->__SumaBani($pieces[0]);\n\n if ($pieces[1] <> '00') {\n\n $pdf->xTotalLitereDecimal = $this->__SumaBani($pieces[1]);\n } else {\n\n $pdf->xTotalLitereDecimal = 0;\n }\n\n\n\n $pdf->xDate = $date;\n\n $pdf->xDateDue = $date_due;\n\n $pdf->xDelegat = $paper['Invoice']['delegat'];\n\n $pdf->xCarteIdentitate = $paper['Invoice']['carte_identitate'];\n\n $pdf->xAuto = $paper['Invoice']['auto'];\n\n $pdf->xDataLivrare = $paper['Invoice']['data_livrare'];\n\n //set auto page breaks\n\n $pdf->SetAutoPageBreak(true);\n\n // add a page\n\n $pdf->AddPage();\n\n // set font\n\n $pdf->SetFont(\"helvetica\", \"\", 8);\n\n // column titles\n\n $columnTitles = array('Nr.Crt.', 'Descriere', 'UM', 'Cantitate', 'Pret', 'Valoare', 'TVA');\n\n // attach item table\n\n $pdf->ItemTable($columnTitles, $invoice['Item']);\n\n // attach total table\n\n $pdf->TotalTable($paper['Invoice']);\n\n //Save file To web root PDF document\n\n $pdf->Output($paper['Invoice']['invoiceId'] . '-receipt.pdf', 'I');\n }", "public function downloads()\n\t{\n\t\t$this->load->library('mypdf');\n\t\t$c1 = $this->input->post('c1');\n\t\t$c2 = $this->input->post('c2');\n\t\t$data['datas'] = $this->Model_rekap->tac($c1,$c2);\n\t\t// echo \"<pre>\"; print_r($data); echo \"</pre>\";\n\t\t// die();\n\t\t$this->mypdf->generate('backend/perhitungan/rekap',$data,'Rekap-Jumlah Suara','A4','potrait');\n\t}", "public function constanciaConvovatoriaRepresentante($data_student)\n {\n $this->load->library('pdf');\n\n $student = $_GET[\"std\"];\n $fecha_asistencia = $_GET[\"tone\"];\n $asistencia_desde = $_GET[\"ttwo\"];\n $asistencia_hasta = $_GET[\"tfor\"];\n\n $dias = array(\"Domingo\",\"Lunes\",\"Martes\",\"Miercoles\",\"Jueves\",\"Viernes\",\"Sábado\");\n $meses = array(\"Enero\",\"Febrero\",\"Marzo\",\"Abril\",\"Mayo\",\"Junio\",\"Julio\",\"Agosto\",\"Septiembre\",\"Octubre\",\"Noviembre\",\"Diciembre\");\n\n $datastudent = explode(\"_\", $data_student);\n\n $estudiante = Estudiante::where('id_estudiante', '=', $student)->get();\n\n $idrepresentante = $estudiante[0]->id_representante;\n $representante = Representante::where('id_representante', '=', $idrepresentante)->get();\n\n //Obtener los datos del director de la escuela\n $id_escuela = $estudiante[0]->id_escuela;\n $escuela = Escuela::find($id_escuela);\n\n //Obtener direccion escuela\n $id_direccion_escuela = $escuela['id_direccion_escuela'];\n $direccion = Direccion::find($id_direccion_escuela);\n\n //Formateo de fecha\n $ano_actual = date('Y');\n $ano_proximo = strtotime ('+1 year' , strtotime ($ano_actual)) ;\n $ano_proximo = date ('Y' , $ano_proximo);\n $ano_escolar = $escuela->periodo_escolar_actual;\n\n $page_data['page_name'] = 'convocatoria_representante';\n $page_data['page_title'] = \"Convocatoria al Representante\";\n\n $paragraph_one = 'Ciudadano (a) '.$representante[0]->persona->primer_nombre.' '.$representante[0]->persona->segundo_nombre\n .', '.$representante[0]->persona->primer_apellido.' '.$representante[0]->persona->segundo_apellido\n .' representante legal del Alumno (a) Ciudadano (a) '.$estudiante[0]->persona->primer_nombre.' '\n .$estudiante[0]->persona->segundo_nombre.', '.$estudiante[0]->persona->primer_apellido.' '\n .$estudiante[0]->persona->segundo_apellido.' cursante del '.$estudiante[0]->grado->abreviacion_grado\n .' grado/año, '. $estudiante[0]->seccion->nombre_seccion.' , se requiere su presencia en el plantel el día '\n .$fecha_asistencia.' a las '.$asistencia_desde.' , a fin de tratar asunto relacionado con su representado. Usted será atendido por: '\n .$asistencia_hasta.' Agradeciendo su puntual asistencia.';\n\n $paragraph_two = 'Constancia que se expide a petición de la parte interesada en CHACAO, MIRANDA, a los '.date('d')\n .' días del mes de '.$meses[date('n')-1].' del año '.date('Y');\n\n $datos_director = $escuela->director->primer_nombre.' '.$escuela->director->segundo_nombre.', '.$escuela->director->primer_apellido.' '.$escuela->director->segundo_apellido;\n $base_directora = ($escuela->director_encargado == '1') ? $escuela->firma.' (E)' : $escuela->firma;\n\n // Creacion del PDF\n /*\n * Se crea un objeto de la clase Pdf, recuerda que la clase Pdf\n * heredó todos las variables y métodos de fpdf\n */\n $this->pdf = new Pdf('P','mm','Letter');\n // Agregamos una página\n $this->pdf->AddPage();\n\n /* Se define el titulo, márgenes izquierdo, derecho y\n * el color de relleno predeterminado\n */\n $this->pdf->SetTitle(\"Convocatoria al Representante\");\n $this->pdf->SetLeftMargin(15);\n $this->pdf->SetRightMargin(15);\n\n $this->pdf->Ln(25);\n\n // Se define el formato de fuente: Arial, negritas, tamaño 9\n $this->pdf->SetFont('Arial', 'B', 10);\n\n $this->pdf->Cell(0,3,iconv('UTF-8','windows-1252','CONVOCATORIA AL REPRESENTANTE'),0,50,'C');\n\n $this->pdf->Ln(15);\n\n $this->pdf->MultiCell(0, 5, iconv('UTF-8','windows-1252',$paragraph_one), 0, 50,'');\n\n $this->pdf->Ln(15);\n\n $this->pdf->MultiCell(0, 5, iconv('UTF-8','windows-1252',$paragraph_two), 0, 50,'');\n\n //Eliminar al tener todo el contenido\n $this->pdf->Ln(70);\n\n $this->pdf->Cell(0,6,iconv('UTF-8','windows-1252','Atentamente,'),0,50,'C');\n $this->pdf->Cell(0,6,iconv('UTF-8','windows-1252',$datos_director),0,50,'C');\n $this->pdf->Cell(0,6,iconv('UTF-8','windows-1252',$firma_director),0,50,'C');\n\n $fileatt_name = \"ConstanciaEstudio.pdf\";\n if($enviarConstanciaCorreo){\n $data = $this->pdf->Output($fileatt_name, 'S');\n }else{\n $this->pdf->Output($fileatt_name, 'I');\n }\n }", "function generate_pdf($filename){\n $images = glob( $this->working_dir .'page*' );\n\t\ttry {\n $filename = $this->parent_dir() . ($filename);\n\t\t\t$pdf = new Imagick($images);\n\t\t\t$pdf->setImageFormat('pdf');\n\t\t\t$pdf->setResolution( 300, 300 ); \n\t\t\t\t\t\n\t\t\t$pdf->writeImages($filename,true);\t\t\n\t\t\t////error_log($filename . PHP_EOL . print_r($images,1));\n\t\t\t\n\t\t\t//return $pdf->getImageBlob(); \n\t\t\treturn $filename;\n\t\t\n\t\t}catch(Exception $ex){\n\t\t\terror_log(__FUNCTION__ . $ex->getMessage());\n\t\t}\n\t\t\n try {\t\t\t\n\t\t\t$pdf = new PDFLib();\n\t\t\tif ($pdf->begin_document(\"\", \"\") == 0) {\n\t\t\t\tdie(\"Error: \" . $pdf->get_errmsg());\n\t\t\t}\n\t\t\t//$pdf->set_info();\n\t\t\t$pdf->set_info('Creator', 'Volgram Photoprinter Engine');\n\t\t\t$pdf->set_info('Authors', 'Adorama Printshop');\n\t\t\t$pdf->set_info('Producers', 'Adorama Printshop');\t\t\n\n\t\t\t$path = str_replace(FCPATH .'working/','',$this->working_dir);\n\t\t\tlist($order_id, $item_id) = explode('/',$path);\n\t\t\t$pdf->set_info('Title', 'Order #' . $order_id);\t\t\n\t\t\t$pdf->set_info('Subject', 'Item #' . $item_id);\n\t\t\t\n\t\t\tforeach($images as $img){\n\t\t\t\t$size = getimagesize ($img);\t\t\t\t\n\t\t\t\t$pdf->begin_page_ext($size[0] ,$size[1] ,'');\n\t\t\t\t$imgHandler = $pdf->load_image(image_type_to_extension($size[2],0) , $img , '');\n\t\t\t\t$pdf->fit_image($imgHandler,0,0,'boxsize {' .$size[0] .' '. $size[1] .'} position 0 fitmethod meet');\n\t\t\t\t$pdf->close_image($imgHandler);\n\t\t\t\t$pdf->end_page_ext('');\n\t\t\t}\n //$pdf->writeImages( $filename , true);\t\t\t\t\t\t\n\t\t\t$pdf->end_document('');\n return $pdf->get_buffer();\n } catch (Exception $ex){\n error_log(__FUNCTION__ . $ex->getMessage());\n }\n }", "function printPDF($arrPost, $objDB)\n{\n global $boolDebug;\n \n require_once('mPDFReport.php');\n $objPDF = new mPDFReport('', 'A4', 0, '', 19, 15, 22, 13, 9, 9);\n $strText = $arrPost['text'];\n $strFooter = trim($arrPost['footer']);\n $intYear = date('Y') + 1;\n $stylesheet = file_get_contents('../../css/pdf.content.css'); // external css\n \n \n if(!isset($arrPost['jobquick']))\n $strText = html_entity_decode($strText);\n else\n $stylesheet .= \"p+p{margin-top: 10px;}\";\n \n $objPDF->WriteHTML($stylesheet, 1);\n $objPDF->SetHTMLHeader('<div class=\"pdf\"><div align=\"right\" style=\"margin-bottom: 20px\"><a href=\"http://www.stellenanzeigen-texten.de\"><img src=\"../../img/logo-toolbox-300dpi.png\" style=\"width: 150px\"/></a></div>');\n $objPDF->SetHTMLFooter('<table style=\"width: 100%\"><tr><td>'.$strFooter.'</td><td style=\"text-align: right;\">Seite {PAGENO} von {nb}</td></tr></table></div>');\n\n include(\"print.firstSite.php\");\n\n /** Group 1 */\n $html = '<h1 style=\"color: #F00;\">Check — Floskeln</h1>' . checkWordsInDatabase($strText, $objDB, 'editor_floskeln', 'floskeln', true);\n if (!strstr($html, \"class='floskeln'\"))\n $html .= '<h1 style=\"color: #F00;\">Hier gibt es nichts zu meckern ;-)</h1>';\n\n $objPDF->WriteHTML($html, 2);\n $objPDF->AddPage();\n\n $html = '<h1 style=\"color: #F00;\">Check — Negative Wörter</h1>' . checkWordsInDatabase($strText, $objDB, 'editor_negativewoerter', 'negative_woerter', true);\n if (!strstr($html, \"class='negative_woerter'\"))\n $html .= '<h1 style=\"color: #F00;\">Hier gibt es nichts zu meckern ;-)</h1>';\n\n $objPDF->WriteHTML($html, 2);\n $objPDF->AddPage();\n\n $html = '<h1 style=\"color: #F00;\">Check — Textverständnis</h1>' . checkTextverstaendnisN($strText, $objDB, true);\n if (!strstr($html, \"class='textverstaendnis'\"))\n $html .= '<h1 style=\"color: #F00;\">Hier gibt es nichts zu meckern ;-)</h1>';\n\n $objPDF->WriteHTML($html, 2);\n $objPDF->AddPage();\n\n $html = '<h1 style=\"color: #F00;\">Check — Anglizismen</h1>' . checkWordsInDatabase($strText, $objDB, 'editor_anglizismen', 'anglizismen', true);\n if (!strstr($html, \"class='anglizismen'\"))\n $html .= '<h1 style=\"color: #F00;\">Hier gibt es nichts zu meckern ;-)</h1>';\n\n $objPDF->WriteHTML($html, 2);\n $objPDF->AddPage();\n\n /** Group 2 */\n $html = '<h1 style=\"color: #F00;\">Check — Nominalstil</h1>' . checkNominalstilN($strText, $objDB, true);\n if (!strstr($html, \"class='nominalstil'\"))\n $html .= '<h1 style=\"color: #F00;\">Hier gibt es nichts zu meckern ;-)</h1>';\n\n $objPDF->WriteHTML($html, 2);\n $objPDF->AddPage();\n\n $html = '<h1 style=\"color: #F00;\">Check — Aktiv-Passiv</h1>' . checkAktivPassivN($strText, $objDB, true);\n if (!strstr($html, \"class='aktiv_passiv'\"))\n $html .= '<h1 style=\"color: #F00;\">Hier gibt es nichts zu meckern ;-)</h1>';\n\n $objPDF->WriteHTML($html, 2);\n $objPDF->AddPage();\n\n /** Group 3 */\n $html = '<h1 style=\"color: #F00;\">Check — Wiederholungen</h1>' . checkWiederholungN($strText, $objDB, true);\n if (!strstr($html, \"class='wiederholungen'\"))\n $html .= '<h1 style=\"color: #F00;\">Hier gibt es nichts zu meckern ;-)</h1>';\n\n $objPDF->WriteHTML($html, 2);\n $objPDF->AddPage();\n\n /** Group 4 */\n $html = '<h1 style=\"color: #F00;\">Check — Wortlänge</h1>' . checkWortlaengeN($strText, $objDB, true);\n if (!strstr($html, \"class='wortlaenge'\"))\n $html .= '<h1 style=\"color: #F00;\">Hier gibt es nichts zu meckern ;-)</h1>';\n\n $objPDF->WriteHTML($html, 2);\n $objPDF->AddPage();\n\n $html = '<h1 style=\"color: #F00;\">Check — Lange Sätze</h1>' . checkSatzlaengeN($strText, $objDB, true);\n if (!strstr($html, \"class='lange_saetze'\"))\n $html .= '<h1 style=\"color: #F00;\">Hier gibt es nichts zu meckern ;-)</h1>';\n\n $objPDF->WriteHTML($html, 2);\n\n if($arrPost['lastPage'] == 1)\n {\n $objPDF->AddPage();\n $strEnd = '<br>\n <div class=\"firstSite\">\n <div class=\"endSite\">\n Seminare zum Thema \"wirkungsvolle Stellenanzeigen\" finden Sie neben weiteren Bildungsangeboten im Bereich Personal- und Ausbildungsmarketing unter <b>www.recruiting-erfolg.de</b>\n <br><br>\n Neben offenen Seminaren werden auch individuelle Trainingslösungen angeboten. Gemeinsam analysieren wir Ihren Schulungsbedarf und konzipieren für Ihre speziellen Anforderungen maßgeschneiderte Workshops, Inhouse-Schulungen, Coachings oder Trainings on the Job.\n <br><br>\n Gerne entwickeln wir auch für Sie erfolgreiche Stellenanzeigen und kümmern uns um die Schaltung Ihrer Inserate zum bestmöglichen Preis.\n <br><br>\n Ihre Fragen beantwortet Ihnen Axel Haitzer persönlich. Nehmen Sie jetzt Kontakt auf.<br>\n <br>\n aicovo gmbh, Hechtseestraße 16, 83022 Rosenheim, DEUTSCHLAND<br>\n <b>Telefon: 0 80 31 - 222 76 56</b>, Fax: 0 80 31 - 222 78 10<br>\n <b>E-Mail: axel.haitzer@aicovo.com</b><br>\n </div>\n </div>';\n $objPDF->WriteHTML($strEnd, 2);\n }\n\n header('Set-Cookie: fileDownload=true; path=/');\n $objPDF->Output('Stellenanzeigen-Texten-Editor.pdf', 'D');\n}", "function cabecalhoRelatorio($oPdf, $oFiltros, $oTurma) {\n\n $sNomeEscola = $oTurma->getEscola()->getNome();\n $iCodigoReferencia = $oTurma->getEscola()->getCodigoReferencia();\n\n if ( $iCodigoReferencia != null ) {\n $sNomeEscola = \"{$iCodigoReferencia} - {$sNomeEscola}\";\n }\n\n $sDadosCabecalho = $oTurma->getEscola()->getDepartamento()->getInstituicao()->getDescricao().\"\\n\";\n $sDadosCabecalho .= \"SECRETÁRIA MUNICIPAL DE EDUCAÇÃO\".\"\\n\";\n $sDadosCabecalho .= $sNomeEscola.\"\\n\\n\";\n $sDadosCabecalho .= $oFiltros->sTituloCabecalho.\"\\n\";\n $sDadosCabecalho .= $oTurma->getBaseCurricular()->getCurso()->getEnsino()->getNome().\"\\n\\n\\n\";\n\n $oPdf->SetFont('arial', 'b', 8);\n $oPdf->SetXY(90, 10);\n $oPdf->MultiCell(100, 3, $sDadosCabecalho, 0, \"C\");\n\n $iPosicaoY = $oPdf->GetY();\n\n /**\n * Verificamos se existe o logo do municipio para impressao\n */\n if ($oTurma->getEscola()->getLogo() != '') {\n\n $oPdf->SetXY(30, 10);\n $oPdf->Image(\"imagens/files/\".$oTurma->getEscola()->getLogo(), $oPdf->GetX(), $oPdf->GetY()-6, 18);\n }\n\n /**\n * Verificamos se existe o logo da escola para impressao\n */\n if ($oTurma->getEscola()->getLogoEscola() != '') {\n\n $oPdf->SetXY(90, 10);\n $oPdf->Image(\"imagens/\".$oTurma->getEscola()->getLogoEscola(), 230, $oPdf->GetY()-6, 18);\n }\n\n $oPdf->SetXY(30, $iPosicaoY);\n $oPdf->Cell(60, 4, \"Etapa: {$oFiltros->sEtapa}\", 0, 0, \"C\");\n $oPdf->Cell(20, 4, \"Ano: {$oFiltros->iAno}\", 0, 0, \"C\");\n $oPdf->Cell(100, 4, \"Turma: {$oFiltros->sTurma}\", 0, 0, \"C\");\n $oPdf->Cell(30, 4, \"Turno: {$oFiltros->sTurno}\", 0, 1, \"C\");\n\n $oPdf->SetXY(10, 45);\n $oPdf->SetFont('arial', 'b', 7);\n $oPdf->Cell($oFiltros->iColunaNumero, $oFiltros->iAlturaLinhaCabecalho, \"Nº\", 1, 0, \"C\");\n $oPdf->Cell($oFiltros->iColunaAluno, $oFiltros->iAlturaLinhaCabecalho, \"Nome do Aluno\", 1, 0, \"C\");\n $oPdf->Cell($oFiltros->iColunaSexo, $oFiltros->iAlturaLinhaCabecalho, \"Sexo\", 1, 0, \"C\");\n $oPdf->Cell($oFiltros->iColunaDataNascimento, $oFiltros->iAlturaLinhaCabecalho, \"Data de Nascimento\", 1, 0, \"C\");\n $oPdf->Cell($oFiltros->iColunaIdadeMeses, $oFiltros->iAlturaLinhaCabecalho, \"Idade / Meses\", 1, 0, \"C\");\n\n switch ($oFiltros->sTipoModelo) {\n\n /**\n * 1 - Matricula Inicial\n * 2 - Demais Cursos\n */\n case (\"12\"):\n\n $oPdf->Cell($oFiltros->iColunaSituacaoMatricula, $oFiltros->iAlturaLinhaCabecalho, \"Situação de Matrícula\", 1, 0, \"C\");\n\n if ($oFiltros->iPreEscola == 2) {\n $oPdf->Cell($oFiltros->iColunaPreEscola, $oFiltros->iAlturaLinhaCabecalho, \"Pré-Escola\", 1, 0, \"C\");\n }\n break;\n\n /**\n * 2 - Matricula Final\n * 1 - Educacao Infantil\n */\n case (\"21\"):\n\n colunasMatriculaFinal($oPdf, $oFiltros);\n break;\n\n /**\n * 2 - Matricula Final\n * 2 - Demais Cursos\n */\n case (\"22\"):\n\n $oPdf->MultiCell($oFiltros->iColunaSituacaoMatricula, 6, \"Situação de Matrícula\", 1, \"C\");\n $oPdf->SetXY(163, 45);\n colunasMatriculaFinal($oPdf, $oFiltros);\n break;\n }\n\n $oPdf->Cell($oFiltros->iColunaCorRaca, $oFiltros->iAlturaLinhaCabecalho, \"Cor / Raça\", 1, 1, \"C\");\n\n $oFiltros->iPosicaoX = $oPdf->GetX();\n $oFiltros->iPosicaoY = $oPdf->GetY();\n}", "function gen_lista_doc($cat_id){\n\tif ($cat_id==1){$categoria_s=\"cat1\"; $dir_cat=\"dir1\";}\n\tif ($cat_id==2){$categoria_s=\"cat2\"; $dir_cat=\"dir2\";}\n\tif ($cat_id==3){$categoria_s=\"cat3\"; $dir_cat=\"dir3\";}\n\t\n\t$filename = $dir_cat . \".doc\";\n\tif(!file_exists($filename)){\n\t\t$doc_h = fopen($filename, 'w+')or die(\"\\nEl archivo $filename no pudo ser creado\");\n\t\tHttpResponse::setCache(true);\n\t\t$str = HttpResponse::capture(mostrar_tabla_sql_doc($cat_id));\n\t\tfwrite($doc_h, $str)or die(\"\\nEl archivo $filename no pudo ser llenado\");\n\t\tfclose($doc_h)or die(\"\\nEl archivo $filename no pudo ser cerrado\"); \n\t}else{\n\t\techo \"<a href=\\\"\". $filename .\"><div align=\\\"center\\\"><h5>Descargar Lista de \".$categoría_s.\"</h5></div></a>\";\n\t}\n}", "public function template2(){\n\t\t$pdf = new pdfKop('P', PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);\n\t\t// set document information\n\t\t$pdf->SetCreator(PDF_CREATOR);\n\t\t$pdf->SetAuthor('Aduhay');\n\n\t\t// set default monospaced font\n\t\t$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED);\n\n\t\t// set margins\n\t\t$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT);\n\t\t$pdf->SetHeaderMargin(PDF_MARGIN_HEADER);\n\t\t$pdf->SetFooterMargin(PDF_MARGIN_FOOTER);\n\n\t\t// set auto page breaks\n\t\t$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);\n\n\t\t// set image scale factor\n\t\t$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);\n\n\t\t// set some language-dependent strings (optional)\n\t\tif (@file_exists(dirname(__FILE__).'/lang/eng.php')) {\n\t\t require_once(dirname(__FILE__).'/lang/eng.php');\n\t\t $pdf->setLanguageArray($l);\n\t\t}\n\n\t\t$taman = $this->model->getLaporanByStatus();\n\n\t\t$pdf->AddPage();\n\t\t$pdf->SetFont('helvetica', 'B', 12);\n\n\t\t$pdf->Write(0, '', '', 0, 'C', true, 0, false, false, 0);\n\t\t$pdf->Write(0, \"Laporan Pengaduan Kondisi Taman Kota Bandung\", '', 0, 'C', true, 0, false, false, 0);\n\t\t$pdf->Write(0, \"Bulan \".$this->bulan.\" \".$this->tahun, '', 0, 'C', true, 0, false, false, 0);\n\t\t$pdf->Write(0, '', '', 0, 'C', true, 0, false, false, 0);\n\n\n\t\t$pdf->SetFont('helvetica', '', 10);\n\t\t$tbl = '\n\t\t<table border=\"1\" cellpadding=\"2\" align=\"center\">\n\t\t<thead>\n\t\t <tr>\n\t\t <th rowspan=\"2\" width=\"40\" align=\"center\"><b>No.</b></th>\n\t\t <th rowspan=\"2\" width=\"140\" align=\"center\"><b>Nama Taman</b></th>\n\t\t <th colspan=\"4\" align=\"center\"><b>Status</b></th>\n\t\t <th rowspan=\"2\" width=\"93\" align=\"center\"> <b>Total Aduan</b></th>\n\t\t </tr>\n\t\t <tr>\n\t\t <th align=\"center\"><b>Menunggu Konfirmasi</b></th>\n\t\t <th align=\"center\"><b>Ditolak</b></th>\n\t\t <th align=\"center\"><b>Sedang Ditanggapi</b></th>\n\t\t <th align=\"center\"><b>Sudah Ditanggapi</b></th>\n\t\t </tr>\n\t\t</thead>\n\t\t<tbody>\n\t\t';\n\n\t\t$i=1;\n\t\tif (!$taman){\n\t\t $pdf->SetFont('helvetica', 'B', 10);\n\t\t $pdf->Write(0, \"Daftar taman kosong.\", '', 0, 'C', true, 0, false, false, 0);\n\t\t} else {\n\t\tforeach($taman as $row){\n\t\t if($row['id']){\n\t\t\t $tbl .= '<tr>\n\t\t\t <td width=\"40\" align=\"center\">'.$i.'.</td>\n\t\t\t <td width=\"140\" align=\"left\">'.$row['nama'].'</td>\n\t\t\t <td>'.$row['menunggu'].'</td>\n\t\t\t <td>'.$row['ditolak'].'</td>\n\t\t\t <td>'.$row['sedang'].'</td>\n\t\t\t <td>'.$row['sudah'].'</td>\n\t\t\t <td width=\"93\">'.$row['total'].'</td>\n\t\t\t </tr>';\n\t\t\t $i++;\n\t\t }\n\t\t}\n\t\t$tbl .= '<tr>\n\t\t <td colspan=\"2\" align=\"center\"><b>Total Aduan</b></td>\n\t\t <td>'.$taman['menunggu'].'</td>\n\t\t <td>'.$taman['ditolak'].'</td>\n\t\t <td>'.$taman['sedang'].'</td>\n\t\t <td>'.$taman['sudah'].'</td>\n\t\t <td width=\"93\">'.$taman['total'].'</td>\n\t\t </tr>';\n\t\t$tbl .= '</tbody></table>';\n\n\t\t $pdf->writeHTML($tbl, true, false, false, false, '');\n\t\t $pdf->Write(10, '', '', 0, 'C', true, 0, false, false, 0);\n\t\t}\n\t\t//Close and output PDF document\n\t\t$pdf->Output('Laporan '.$this->bulan.' '.$this->tahun.'.pdf', 'I');\n }", "public function constanciaAsistencia()\n {\n $this->load->library('pdf');\n $student = $_GET[\"std\"];\n $fecha_asistencia = $_GET[\"tone\"];\n $asistencia_desde = $_GET[\"ttwo\"];\n $asistencia_hasta = $_GET[\"tfor\"];\n\n $estudiante = Estudiante::where('id_estudiante', '=', $student)->get();\n\n $idrepresentante = $estudiante[0]->id_representante;\n $representante = Representante::where('id_representante', '=', $idrepresentante)->get();\n\n $dias = array(\"Domingo\",\"Lunes\",\"Martes\",\"Miercoles\",\"Jueves\",\"Viernes\",\"Sábado\");\n $meses = array(\"Enero\",\"Febrero\",\"Marzo\",\"Abril\",\"Mayo\",\"Junio\",\"Julio\",\"Agosto\",\"Septiembre\",\"Octubre\",\"Noviembre\",\"Diciembre\");\n\n //Obtener los datos del director de la escuela\n $id_escuela = $estudiante[0]->id_escuela;\n $escuela = Escuela::find($id_escuela);\n\n //Obtener direccion escuela\n $id_direccion_escuela = $escuela['id_direccion_escuela'];\n $direccion = Direccion::find($id_direccion_escuela);\n\n //Formateo de fecha\n $ano_actual = date('Y');\n $ano_proximo = strtotime ('+1 year' , strtotime ($ano_actual)) ;\n $ano_proximo = date ('Y' , $ano_proximo);\n $ano_escolar = $escuela->periodo_escolar_actual;\n\n $page_data['page_name'] = 'constancia_asistencia';\n $page_data['page_title'] = \"Constancia de Asistencia\";\n\n $paragraph_one = 'Quien suscribe, '.$escuela->director->primer_nombre.' '.$escuela->director->segundo_nombre.', '\n .$escuela->director->primer_apellido.' '.$escuela->director->segundo_apellido.', '.'C.I: '\n .$escuela->director->cedula_identidad.' '.$escuela->firma.', hace constar que el ciudadano (a) '\n .$representante[0]->persona->primer_nombre.' '.$representante[0]->persona->segundo_nombre.', '\n .$representante[0]->persona->primer_apellido.' '.$representante[0]->persona->segundo_apellido\n .' titular de la Cédula de Identidad N°: '.$representante[0]->persona->cedula_identidad\n .' Representante del alumno (a) '.$estudiante[0]->persona->primer_nombre.' '.$estudiante[0]->persona->segundo_nombre.', '\n .$estudiante[0]->persona->primer_apellido.' '.$estudiante[0]->persona->segundo_apellido\n .' asistió a la institución, en fecha '.$fecha_asistencia\n .' en el horario comprendido entre las '.$asistencia_desde.' hasta las '.$asistencia_hasta\n .' con motivo de atender asuntos relacionados con su representado.';\n\n $paragraph_two = 'Constancia que se expide a petición de la parte interesada en CHACAO, MIRANDA, a los '.date('d')\n .' días del mes de '.$meses[date('n')-1].' del año '.date('Y');\n\n $datos_director = $escuela->director->primer_nombre.' '.$escuela->director->segundo_nombre.', '.$escuela->director->primer_apellido.' '.$escuela->director->segundo_apellido;\n $base_directora = ($escuela->director_encargado == '1') ? $escuela->firma.' (E)' : $escuela->firma;\n\n // Creacion del PDF\n /*\n * Se crea un objeto de la clase Pdf, recuerda que la clase Pdf\n * heredó todos las variables y métodos de fpdf\n */\n $this->pdf = new Pdf('P','mm','Letter');\n // Agregamos una página\n $this->pdf->AddPage();\n\n /* Se define el titulo, márgenes izquierdo, derecho y\n * el color de relleno predeterminado\n */\n $this->pdf->SetTitle(\"Constandia de Asistencia\");\n $this->pdf->SetLeftMargin(15);\n $this->pdf->SetRightMargin(15);\n\n $this->pdf->Ln(25);\n\n // Se define el formato de fuente: Arial, negritas, tamaño 9\n $this->pdf->SetFont('Arial', 'B', 10);\n\n $this->pdf->Cell(0,3,iconv('UTF-8','windows-1252','CONSTANCIA DE ASISTENCIA'),0,50,'C');\n\n $this->pdf->Ln(15);\n\n $this->pdf->MultiCell(0, 5, iconv('UTF-8','windows-1252',$paragraph_one), 0, 50,'');\n\n\n $this->pdf->Ln(15);\n\n $this->pdf->MultiCell(0, 5, iconv('UTF-8','windows-1252',$paragraph_two), 0, 50,'');\n\n //Eliminar al tener todo el contenido\n $this->pdf->Ln(70);\n\n $this->pdf->Cell(0,6,iconv('UTF-8','windows-1252','Atentamente,'),0,50,'C');\n $this->pdf->Cell(0,6,iconv('UTF-8','windows-1252',$datos_director),0,50,'C');\n $this->pdf->Cell(0,6,iconv('UTF-8','windows-1252',$firma_director),0,50,'C');\n\n $fileatt_name = \"ConstanciaAsistencia.pdf\";\n if($enviarConstanciaCorreo){\n $data = $this->pdf->Output($fileatt_name, 'S');\n }else{\n $this->pdf->Output($fileatt_name, 'I');\n }\n }", "public function createPDF() {\n $user=auth()->user();\n $restaurant=$user->restaurant_profile;\n $orders=$user->restaurant_profile->orders;\n \n // share data to view\n view()->share('portal.today_order_report', compact($user, $restaurant, $orders));\n $pdf = PDF::loadView('portal.today_order_report', compact($user, $restaurant, $orders));\n \n // download PDF file with download method\n return $pdf->download('today_report.pdf');\n }", "function gera_pdf($id){\n\t\t$briefing= $this->getBriefing($id);\n\t\t$cronograma=$this->get_cronograma($id);\n\t\t$referencias = $this->get_referencias($id);\n\t\t$id_formated = str_pad($id, 4, \"0\", STR_PAD_LEFT);\n\t\t//var_dump($briefing); exit(0);\n\t\t$info_cliente = nl2br( $briefing['info_cliente']);\n\t\t//var_dump($id_formated , $briefing['titulo']); exit(0);\n\t\t$publico = nl2br($briefing['publico']);\n\t\t$demanda = nl2br($briefing['demanda']);\n\t\t$demanda_pecas=$briefing['demanda_pecas'];\n\t\t$demanda_formato=$briefing['demanda_formato'];\n\t\t$demanda_materiais=$briefing['demanda_materiais'];\n\t\t$demanda_finalizacao=$briefing['demanda_finalizacao'];\n\t\t$demanda_local=$briefing['demanda_local'];\n\t\t$objetivo = nl2br($briefing['objetivo']);\n\t\t$recomendacoes_ideia = nl2br($briefing['recomendacoes_ideia']);\n\t\t$recomendacoes_referencias = nl2br($briefing['recomendacoes_referencias']);\n\t\t$recomendacoes_objecoes = nl2br($briefing['recomendacoes_objecoes']);\n\t\t\n\t\t\n\t\t\n\t\trequire_once(\"../tcpdf/tcpdf.php\"); \n\t\t$pdf = new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);\n\t\t// set document information\n\t\t$pdf->SetCreator(PDF_CREATOR);\n\t\t$pdf->SetAuthor('Daniel');\n\t\t$pdf->SetTitle('Teste');\n\t\t$pdf->SetSubject('Teste');\n\t\t$pdf->SetFont('helvetica', '', 14);\n\t\t$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);\n\t\t\n\t\t$pdf->setPrintHeader(false);\n\t\t$pdf->setPrintFooter(false);\n\t\t// add a page\n\t\t$pdf->AddPage();\n\t\t$pdf->Image('../img/logoVENTO.png', 10, 10, 50, 43, 'PNG', '#', '', true, 150, '', false, false, 0, false, false, false);\n\n\t\t$txt='<strong>Razão Social: Vento Comunicação Ltda.</strong>\n\t\t\t\t<br>\n\t\t\t\tCNPJ: 08.633.990/0001-07\n\t\t\t\t<br>\n\t\t\t\tInscrição Municipal: 50963627\n\t\t\t\t<br>\n\t\t\t\tEndereço: Rua Independência 1159/303\n\t\t\t\t<br>\n\t\t\t\tPorto Alegre/RS\n\t\t\t\t<br>\n\t\t\t\tCEP: 90035-073\n\t\t\t\t<br>\n\t\t\t\tFone: (51) 3013.3833';\n\t\t$txt= utf8_encode($txt);\n\t\t//var_dump($txt); exit(0);\n\t\t// MultiCell($w, $h, $txt, $border=0, $align='L', $fill=0, $ln=1, $x='', $y='', $reseth=true, $stretch=0, $ishtml=false, $autopadding=true, $maxh=0)\n\t\t$pdf->SetTextColor(0, 170, 201);\n\t\t$pdf->SetFillColor(255, 255, 255);\n\t\t$pdf->setCellPaddings(3,0, 0, 1);\n\t\t$pdf->MultiCell(60, 45, '', 0, 'C', 1, 0, '', '', true, 0, false, true, '12', 'M');\n\t\t\n\t\t$pdf->SetFillColor(255, 255, 255);\n\t\t$pdf->MultiCell(130, 45, $txt, 0, 'L', 1, 1, '', '', true, 0, true, true, '12', 'M');\t\t\n\t\t$pdf->Ln(4);\n\t\t\t\t\n\t\t$txt=utf8_encode('BRIEFING Nº ').$id_formated.' - '.utf8_encode($briefing['titulo']);\n\t\t\n\t\t//var_dump($txt); exit(0);\n\t\t// MultiCell($w, $h, $txt, $border=0, $align='J', $fill=0, $ln=1, $x='', $y='', $reseth=true, $stretch=0, $ishtml=false, $autopadding=true, $maxh=0)\n\t\t$pdf->SetTextColor(255, 255, 255);\n\t\t$pdf->SetFillColor(0, 170, 201);\n\t\t$pdf->SetFont('helvetica', 'b', 12);\n\t\t$pdf->MultiCell(190, 12, $txt, 0, 'C', 1, 1, '', '', true, 0, false, true, '12', 'M');\n\t\t\t\n\t\t$txt='CLIENTE';\n\t\t$txt= utf8_encode($txt);\n\t\t$pdf->SetTextColor(0, 170, 201);\n\t\t$pdf->SetFillColor(249,207 , 69);\n\t\t$pdf->MultiCell(190, 12, $txt, 0, 'C', 1, 1, '', '', true, 0, false, true, '12', 'M');\n\t\t$pdf->Ln(2);\n\t\t$txt='Nome do cliente: ';\n\t\t//$txt= utf8_encode($txt);\n\t\t$pdf->SetFont('helvetica', '', 12);\n\t\t$pdf->SetTextColor(0, 0, 0); \n\t\t$pdf->SetFillColor(255, 255, 255);\n\t\t$pdf->setCellPaddings(0,0, 0, 0);\n\t\t$pdf->MultiCell(190, 12, $txt, 0, 'L', 1, 1, '', '', true, 0, false, true, '12', 'M');\n\t\t\n\t\t$txt = $briefing['nome_cliente'];\n\t\t$txt= utf8_encode($txt);\n\t\t$pdf->SetFont('helvetica', '', 12);\n\t\t$pdf->SetTextColor(0, 0, 0); \n\t\t$pdf->SetFillColor(255, 255, 255);\n\t\t$pdf->setCellPaddings(3,0, 0, 1);\n\t\t// set cell margins\n\t\t//$pdf->setCellMargins(1, 1, 1, 1);\n\t\t$pdf->MultiCell(190, 12, $txt, 1, 'L', 1, 1, '', '', true, 0, false, true, '12', 'M');\n\t\t$pdf->Ln(5);\n\t\t\n\t\t$txt = utf8_encode('Informações do cliente:');\n\t\t$pdf->SetFont('helvetica', '', 12);\n\t\t$pdf->SetTextColor(0, 0, 0); \n\t\t$pdf->SetFillColor(255, 255, 255);\n\t\t$pdf->setCellPaddings(0,0, 0, 0);\n\t\t// set cell margins\n\t\t//$pdf->setCellMargins(1, 1, 1, 1);\n\t\t$pdf->MultiCell(190, 12, $txt, 0, 'L', 1, 1, '', '', true, 0, false, true, '12', 'M');\n\t\t\n\t\t$txt = $info_cliente;\n\t\t$txt= utf8_encode($txt);\n\t\t$pdf->SetFont('helvetica', '', 12);\n\t\t$pdf->SetTextColor(0, 0, 0); \n\t\t$pdf->SetFillColor(255, 255, 255);\n\t\t$pdf->setCellPaddings(3,0, 0, 1);\n\t\t// set cell margins\n\t\t//$pdf->setCellMargins(1, 1, 1, 1);\n\t\t$pdf->MultiCell(190, 12, $txt, 1, 'J', 1, 1, '', '', true, 0, true, true, '', 'M');\n\t\t$pdf->Ln(10);\n\t\t\n\t\t$txt = 'DEMANDA ';\n\t\t$txt= utf8_encode($txt);\n\t\t//var_dump($txt); exit(0);\n\t\t// MultiCell($w, $h, $txt, $border=0, $align='J', $fill=0, $ln=1, $x='', $y='', $reseth=true, $stretch=0, $ishtml=false, $autopadding=true, $maxh=0)\n\t\t$pdf->SetFont('helvetica', 'b', 12);\n\t\t$pdf->SetTextColor(0, 170, 201);\n\t\t$pdf->SetFillColor(249,207 , 69);\n\t\t$pdf->MultiCell(190, 12, $txt, 0, 'C', 1, 1, '', '', true, 0, false, true, '12', 'M');\n\t\t$pdf->Ln(5);\n\t\t\n\t\t$txt='Descrição e conceito:';\n\t\t$txt= utf8_encode($txt);\n\t\t$pdf->SetFont('helvetica', '', 12);\n\t\t$pdf->SetTextColor(0, 0, 0); \n\t\t$pdf->SetFillColor(255, 255, 255);\n\t\t$pdf->setCellPaddings(0,0, 0, 0);\n\t\t$pdf->MultiCell(190, 12, $txt, 0, 'L', 1, 1, '', '', true, 0, false, true, '12', 'M');\n\t\t\n\t\t$txt = $demanda;\n\t\t//$txt = str_replace(array(\"<br/>\",\"<br>\") , \"\\n\" , $demanda );\n\t\t$txt= utf8_encode($txt);\n\t\t$pdf->SetFont('helvetica', '', 12);\n\t\t$pdf->SetTextColor(0, 0, 0); \n\t\t$pdf->SetFillColor(255, 255, 255);\n\t\t$pdf->setCellPaddings(3,3, 0, 1);\n\t\t// set cell margins\n\t\t//$pdf->setCellMargins(1, 1, 1, 1);\n\t\t$pdf->MultiCell(190, 12, $txt, 1, '', 1, 1, '', '', true, 0, true, true, '12', 'M');\n\t\t$pdf->Ln(5);\n\t\t\n\t\t$txt='Objetivo de comunicação:';\n\t\t$txt= utf8_encode($txt);\n\t\t$pdf->SetFont('helvetica', '', 12);\n\t\t$pdf->SetTextColor(0, 0, 0); \n\t\t$pdf->SetFillColor(255, 255, 255);\n\t\t$pdf->setCellPaddings(0,0, 0, 0);\n\t\t$pdf->MultiCell(190, 12, $txt, 0, 'L', 1, 1, '', '', true, 0, false, true, '12', 'M');\n\t\t\n\t\t$txt = $objetivo;\n\t\t$txt= utf8_encode($txt);\n\t\t$pdf->SetFont('helvetica', '', 12);\n\t\t$pdf->SetTextColor(0, 0, 0); \n\t\t$pdf->SetFillColor(255, 255, 255);\n\t\t$pdf->setCellPaddings(3,3, 0, 1);\n\t\t// set cell margins\n\t\t//$pdf->setCellMargins(1, 1, 1, 1);\n\t\t$pdf->MultiCell(190, 12, $txt, 1, '', 1, 1, '', '', true, 0, true, true, '12', 'M');\n\t\t$pdf->Ln(5);\n\t\t\n\t\t\n\t\t\n\t\t$txt='Público-alvo:';\n\t\t$txt= utf8_encode($txt);\n\t\t$pdf->SetFont('helvetica', '', 12);\n\t\t$pdf->SetTextColor(0, 0, 0); \n\t\t$pdf->SetFillColor(255, 255, 255);\n\t\t$pdf->setCellPaddings(0,0, 0, 0);\n\t\t$pdf->MultiCell(190, 12, $txt, 0, 'L', 1, 1, '', '', true, 0, false, true, '12', 'M');\n\t\t\t\t\n\t\t$txt = $publico;\n\t/*\t$txt = str_replace(array(\"<br/>\",\"<br />\", \"<br>\") , \"\\r\" , $publico ); */\n\t\t\n\t\t//$txt = str_replace(array(\"<br/>\",\"<br>\") , \"\\n\" , $demanda );\n\t\t$txt= utf8_encode($txt);\n\t\t$pdf->SetFont('helvetica', '', 12);\n\t\t$pdf->SetTextColor(0, 0, 0); \n\t\t$pdf->SetFillColor(255, 255, 255);\n\t\t$pdf->setCellPaddings(3,3, 0, 1);\n\t\t// set cell margins\n\t\t//$pdf->setCellMargins(1, 1, 1, 1);\n\t\t$pdf->MultiCell(190, 12, $txt, 1, '', 1, 1, '', '', true, 0, true, true, '12', 'M');\n\t\t$pdf->Ln(5);\n\t\t\n\t\t\n\t\t$txt = 'DADOS TÉCNICOS DA DEMANDA';\n\t\t$txt= utf8_encode($txt);\n\t\t//var_dump($txt); exit(0);\n\t\t// MultiCell($w, $h, $txt, $border=0, $align='J', $fill=0, $ln=1, $x='', $y='', $reseth=true, $stretch=0, $ishtml=false, $autopadding=true, $maxh=0)\n\t\t$pdf->SetFont('helvetica', 'b', 12);\n\t\t$pdf->SetTextColor(0, 170, 201);\n\t\t$pdf->SetFillColor(249,207 , 69);\n\t\t$pdf->MultiCell(190, 12, $txt, 0, 'C', 1, 1, '', '', true, 0, false, true, '12', 'M');\n\t\t$pdf->Ln(5);\n\t\t\n\t\t$pecas = $this->get_peca($id);\n\t\t\n\t\t\n\t\t /*\n\t\t$txt='Peças (Quais/quantas): ';\n\t\t$txt= utf8_encode($txt);\n\t\t$pdf->SetFont('helvetica', '', 12);\n\t\t$pdf->SetTextColor(0, 0, 0); \n\t\t$pdf->SetFillColor(255, 255, 255);\n\t\t$pdf->setCellPaddings(0,0, 0, 0);\n\t\t$pdf->MultiCell(190, 12, $txt, 0, 'L', 1, 1, '', '', true, 0, false, true, '12', 'M');\n\t\t\n\t\t$txt = $demanda_pecas;\n\t\t$txt= utf8_encode($txt);\n\t\t$pdf->SetFont('helvetica', '', 12);\n\t\t$pdf->SetTextColor(0, 0, 0); \n\t\t$pdf->SetFillColor(255, 255, 255);\n\t\t$pdf->setCellPaddings(3,0, 0, 1);\n\t\t// set cell margins\n\t\t//$pdf->setCellMargins(1, 1, 1, 1);\n\t\t$pdf->MultiCell(190, 12, $txt, 1, 'L', 1, 1, '', '', true, 0, false, true, '12', 'M');\n\t\t$pdf->Ln(3);\n\t\t\n\t\t$txt='Formatos/tamanhos:';\n\t\t$txt= utf8_encode($txt);\n\t\t$pdf->SetFont('helvetica', '', 12);\n\t\t$pdf->SetTextColor(0, 0, 0); \n\t\t$pdf->SetFillColor(255, 255, 255);\n\t\t$pdf->setCellPaddings(0,0, 0, 0);\n\t\t$pdf->MultiCell(190, 12, $txt, 0, 'L', 1, 1, '', '', true, 0, false, true, '12', 'M');\n\t\t\n\t\t$txt = $demanda_formato;\n\t\t$txt= utf8_encode($txt);\n\t\t$pdf->SetFont('helvetica', '', 12);\n\t\t$pdf->SetTextColor(0, 0, 0); \n\t\t$pdf->SetFillColor(255, 255, 255);\n\t\t$pdf->setCellPaddings(3,0, 0, 1);\n\t\t// set cell margins\n\t\t//$pdf->setCellMargins(1, 1, 1, 1);\n\t\t$pdf->MultiCell(190, 12, $txt, 1, 'L', 1, 1, '', '', true, 0, false, true, '12', 'M');\n\t\t$pdf->Ln(5);\n\t*/\t\n\t\tif($pecas){\n\t\t\t$txt='Peças:';\n\t\t\t$txt= utf8_encode($txt);\n\t\t\t$pdf->SetFont('helvetica', '', 12);\n\t\t\t$pdf->SetTextColor(0, 0, 0); \n\t\t\t$pdf->SetFillColor(255, 255, 255);\n\t\t\t$pdf->setCellPaddings(0,0, 0, 0);\n\t\t\t$pdf->MultiCell(190, 12, $txt, 0, 'L', 1, 1, '', '', true, 0, false, true, '12', 'M');\n\t\t\t\n\t\t\tforeach($pecas as $pc){\n\t\t\t\t$txt =\t'Descrição';\n\t\t\t\t$txt= utf8_encode($txt);\n\t\t\t\t$pdf->SetFont('helvetica', '', 12);\n\t\t\t\t$pdf->SetTextColor(0, 0, 0); \n\t\t\t\t$pdf->SetFillColor(128, 191, 255);\n\t\t\t\t$pdf->setCellPaddings(3,0, 0, 1);\n\t\t\t\t// set cell margins\n\t\t\t\t//$pdf->setCellMargins(1, 1, 1, 1);\n\t\t\t\t$pdf->MultiCell(25, 12, $txt, 1, 'L', 1, 0, '', '', true, 0, false, true, '12', 'M');\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t$txt = $pc['peca_descricao'];\n\t\t\t\t$txt= utf8_encode($txt);\n\t\t\t\t$pdf->SetFont('helvetica', '', 12);\n\t\t\t\t$pdf->SetTextColor(0, 0, 0); \n\t\t\t\t$pdf->SetFillColor(255, 255, 255);\n\t\t\t\t$pdf->setCellPaddings(3,0, 0, 1);\n\t\t\t\t// set cell margins\n\t\t\t\t//$pdf->setCellMargins(1, 1, 1, 1);\n\t\t\t\t$pdf->MultiCell(165, 12, $txt, 1, 'L', 1, 1, '', '', true, 0, false, true, '12', 'M');\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t$txt = 'Qtd';\n\t\t\t\t$txt= utf8_encode($txt);\n\t\t\t\t$pdf->SetFont('helvetica', '', 12);\n\t\t\t\t$pdf->SetTextColor(0, 0, 0); \n\t\t\t\t$pdf->SetFillColor(128, 191, 255);\n\t\t\t\t$pdf->setCellPaddings(3,0, 0, 1);\n\t\t\t\t// set cell margins\n\t\t\t\t//$pdf->setCellMargins(1, 1, 1, 1);\n\t\t\t\t$pdf->MultiCell(15, 12, $txt, 1, 'L', 1, 0, '', '', true, 0, false, true, '12', 'M');\n\t\t\t\t\t\t\t\t\n\t\t\t\t$txt = $pc['peca_qtd' ];\n\t\t\t\t$txt= utf8_encode($txt);\n\t\t\t\t$pdf->SetFont('helvetica', '', 12);\n\t\t\t\t$pdf->SetTextColor(0, 0, 0); \n\t\t\t\t$pdf->SetFillColor(255,255 , 255);\n\t\t\t\t$pdf->setCellPaddings(3,0, 0, 1);\n\t\t\t\t// set cell margins\n\t\t\t\t//$pdf->setCellMargins(1, 1, 1, 1);\n\t\t\t\t$pdf->MultiCell(20, 12, $txt, 1, 'L', 1, 0, '', '', true, 0, false, true, '12', 'M');\n\t\t\t\t\n\t\t\t\t$txt = 'Formato';\n\t\t\t\t$txt= utf8_encode($txt);\n\t\t\t\t$pdf->SetFont('helvetica', '', 12);\n\t\t\t\t$pdf->SetTextColor(0, 0, 0); \n\t\t\t\t$pdf->SetFillColor(128, 191, 255);\n\t\t\t\t$pdf->setCellPaddings(3,0, 0, 1);\n\t\t\t\t// set cell margins\n\t\t\t\t//$pdf->setCellMargins(1, 1, 1, 1);\n\t\t\t\t$pdf->MultiCell(20, 12, $txt, 1, 'L', 1,0, '', '', true, 0, false, true, '12', 'M');\n\t\t\n\t\t\t\t\n\t\t\t\t$txt = $pc['peca_formato'];\n\t\t\t\t$txt= utf8_encode($txt);\n\t\t\t\t$pdf->SetFont('helvetica', '', 12);\n\t\t\t\t$pdf->SetTextColor(0, 0, 0); \n\t\t\t\t$pdf->SetFillColor(255, 255, 255);\n\t\t\t\t$pdf->setCellPaddings(3,0, 0, 1);\n\t\t\t\t// set cell margins\n\t\t\t\t//$pdf->setCellMargins(1, 1, 1, 1);\n\t\t\t\t$pdf->MultiCell(55, 12, $txt, 1, 'L', 1, 0, '', '', true, 0, false, true, '12', 'M');\n\t\t\t\t\n\t\t\t\t$txt = 'Data entrega:';\n\t\t\t\t$txt= utf8_encode($txt);\n\t\t\t\t$pdf->SetFont('helvetica', '', 12);\n\t\t\t\t$pdf->SetTextColor(0, 0, 0); \n\t\t\t\t$pdf->SetFillColor(128, 191, 255);\n\t\t\t\t$pdf->setCellPaddings(3,0, 0, 1);\n\t\t\t\t// set cell margins\n\t\t\t\t//$pdf->setCellMargins(1, 1, 1, 1);\n\t\t\t\t$pdf->MultiCell(30, 12, $txt, 1, 'L', 1, 0, '', '', true, 0, false, true, '12', 'M');\n\t\t\t\t\t\t\t\t\n\t\t\t\t$txt = $pc['peca_data_entrega'];\n\t\t\t\t$txt= utf8_encode($txt);\n\t\t\t\t$pdf->SetFont('helvetica', '', 12);\n\t\t\t\t$pdf->SetTextColor(0, 0, 0); \n\t\t\t\t$pdf->SetFillColor(255, 255, 255);\n\t\t\t\t$pdf->setCellPaddings(3,0, 0, 1);\n\t\t\t\t// set cell margins\n\t\t\t\t//$pdf->setCellMargins(1, 1, 1, 1);\n\t\t\t\t$pdf->MultiCell(50, 12, $txt, 1, 'L', 1, 1, '', '', true, 0, false, true, '12', 'M');\n\t\t\t\t$pdf->Ln(5);\n\t\t\t/*\t\n\t\t\t\t$txt = 'Prioridade';\n\t\t\t\t$txt= utf8_encode($txt);\n\t\t\t\t$pdf->SetFont('helvetica', '', 12);\n\t\t\t\t$pdf->SetTextColor(0, 0, 0); \n\t\t\t\t$pdf->SetFillColor(255, 255, 255);\n\t\t\t\t$pdf->setCellPaddings(3,0, 0, 1);\n\t\t\t\t\n\t\t\t\t$pdf->MultiCell(190, 12, $txt, 1, 'L', 1, 1, '', '', true, 0, false, true, '12', 'M');\n\t\t\t\t$pdf->Ln(5);\n\t\t\t\t\n\t\t\t\t$txt = $pc['peca_prioridade'];\n\t\t\t\t$txt= utf8_encode($txt);\n\t\t\t\t$pdf->SetFont('helvetica', '', 12);\n\t\t\t\t$pdf->SetTextColor(0, 0, 0); \n\t\t\t\t$pdf->SetFillColor(255, 255, 255);\n\t\t\t\t$pdf->setCellPaddings(3,0, 0, 1);\n\t\t\t\t// set cell margins\n\t\t\t\t//$pdf->setCellMargins(1, 1, 1, 1);\n\t\t\t\t$pdf->MultiCell(190, 12, $txt, 1, 'L', 1, 1, '', '', true, 0, false, true, '12', 'M');\n\t\t\t\t$pdf->Ln(5); \n\t\t*/\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\t$txt='Materiais e acabamentos:';\n\t\t$txt= utf8_encode($txt);\n\t\t$pdf->SetFont('helvetica', '', 12);\n\t\t$pdf->SetTextColor(0, 0, 0); \n\t\t$pdf->SetFillColor(255, 255, 255);\n\t\t$pdf->setCellPaddings(0,0, 0, 0);\n\t\t$pdf->MultiCell(190, 12, $txt, 0, 'L', 1, 1, '', '', true, 0, false, true, '12', 'M');\n\t\t\n\t\t$txt = $demanda_materiais;\n\t\t$txt= utf8_encode($txt);\n\t\t$pdf->SetFont('helvetica', '', 12);\n\t\t$pdf->SetTextColor(0, 0, 0); \n\t\t$pdf->SetFillColor(255, 255, 255);\n\t\t$pdf->setCellPaddings(3,0, 0, 1);\n\t\t// set cell margins\n\t\t//$pdf->setCellMargins(1, 1, 1, 1);\n\t\t$pdf->MultiCell(190, 12, $txt, 1, 'L', 1, 1, '', '', true, 0, false, true, '12', 'M');\n\t\t$pdf->Ln(5);\n\t\n\t\t$txt='Modo de finalização:';\n\t\t$txt= utf8_encode($txt);\n\t\t$pdf->SetFont('helvetica', '', 12);\n\t\t$pdf->SetTextColor(0, 0, 0); \n\t\t$pdf->SetFillColor(255, 255, 255);\n\t\t$pdf->setCellPaddings(0,0, 0, 0);\n\t\t$pdf->MultiCell(190, 12, $txt, 0, 'L', 1, 1, '', '', true, 0, false, true, '12', 'M');\n\t\t\n\t\t$txt = $demanda_finalizacao;\n\t\t$txt= utf8_encode($txt);\n\t\t$pdf->SetFont('helvetica', '', 12);\n\t\t$pdf->SetTextColor(0, 0, 0); \n\t\t$pdf->SetFillColor(255, 255, 255);\n\t\t$pdf->setCellPaddings(3,0, 0, 1);\n\t\t// set cell margins\n\t\t//$pdf->setCellMargins(1, 1, 1, 1);\n\t\t$pdf->MultiCell(190, 12, $txt, 1, 'L', 1, 1, '', '', true, 0, false, true, '12', 'M');\n\t\t$pdf->Ln(5);\n\t\t\n\t\t$txt='Local do arquivo:';\n\t\t$txt= utf8_encode($txt);\n\t\t$pdf->SetFont('helvetica', '', 12);\n\t\t$pdf->SetTextColor(0, 0, 0); \n\t\t$pdf->SetFillColor(255, 255, 255);\n\t\t$pdf->setCellPaddings(0,0, 0, 0);\n\t\t$pdf->MultiCell(190, 12, $txt, 0, 'L', 1, 1, '', '', true, 0, false, true, '12', 'M');\n\t\t\n\t\t$txt = $demanda_local;\n\t\t$txt= utf8_encode($txt);\n\t\t$pdf->SetFont('helvetica', '', 12);\n\t\t$pdf->SetTextColor(0, 0, 0); \n\t\t$pdf->SetFillColor(255, 255, 255);\n\t\t$pdf->setCellPaddings(3,0, 0, 1);\n\t\t// set cell margins\n\t\t//$pdf->setCellMargins(1, 1, 1, 1);\n\t\t$pdf->MultiCell(190, 12, $txt, 1, 'L', 1, 1, '', '', true, 0, false, true, '12', 'M');\n\t\t$pdf->Ln(5);\n\t\t\n\t\t$txt = 'RECOMENDAÇÕES ';\n\t\t$txt= utf8_encode($txt);\n\t\n\t\t//var_dump($txt); exit(0);\n\t\t// MultiCell($w, $h, $txt, $border=0, $align='J', $fill=0, $ln=1, $x='', $y='', $reseth=true, $stretch=0, $ishtml=false, $autopadding=true, $maxh=0)\n\t\t$pdf->SetFont('helvetica', 'b', 12);\n\t\t$pdf->SetTextColor(0, 170, 201);\n\t\t$pdf->SetFillColor(249,207 , 69);\n\t\t$pdf->MultiCell(190, 12, $txt, 0, 'C', 1, 1, '', '', true, 0, false, true, '12', 'M');\n\t\t$pdf->Ln(5);\n\t\t \n\t\t \n\t\t/* \n\t\t$txt='Ideia inicial:';\n\t\t$txt= utf8_encode($txt);\n\t\t$pdf->SetFont('helvetica', '', 12);\n\t\t$pdf->SetTextColor(0, 0, 0); \n\t\t$pdf->SetFillColor(255, 255, 255);\n\t\t$pdf->setCellPaddings(0,0, 0, 0);\n\t\t$pdf->MultiCell(190, 12, $txt, 0, 'L', 1, 1, '', '', true, 0, false, true, '12', 'M');\n\t\t//$pdf->Ln(5);\n\t\t\n\t\t$txt = $recomendacoes_ideia;\n\t\t$txt= utf8_encode($txt);\n\t\t$pdf->SetFont('helvetica', '', 12);\n\t\t$pdf->SetTextColor(0, 0, 0);\n\t\t$pdf->SetFillColor(255, 255, 255);\n\t\t$pdf->setCellPaddings(3,3, 0, 1);\n\t\t// set cell margins\n\t\t//$pdf->setCellMargins(1, 1, 1, 1);\n\t\t$pdf->MultiCell(190, 12, $txt, 1, '', 1, 1, '', '', true, 0, true, true, '12', 'M');\n\t\t//$pdf->Ln(5);\n\t\t\n\t\t*/\n\t\t$pdf->Ln(5);\n\t\t\n\t\t\n\t\t/*\t\t\n\t\t$txt = $recomendacoes_referencias;\n\t\t$txt= utf8_encode($txt);\n\t\t$pdf->SetFont('helvetica', '', 12);\n\t\t$pdf->SetTextColor(0, 0, 0);\n\t\t$pdf->SetFillColor(255, 255, 255);\n\t\t$pdf->setCellPaddings(3,3, 0, 1);\n\t\t// set cell margins\n\t\t//$pdf->setCellMargins(1, 1, 1, 1);\n\t\t$pdf->MultiCell(190, 12, $txt, 1, '', 1, 1, '', '', true, 0, true, true, '12', 'M');\n\t\t*/\n\t\t\n\t\t$txt='Referências:';\n\t\t$txt= utf8_encode($txt);\n\t\t$pdf->SetFont('helvetica', '', 12);\n\t\t$pdf->SetTextColor(0, 0, 0); \n\t\t$pdf->SetFillColor(255, 255, 255);\n\t\t$pdf->setCellPaddings(0,0, 0, 0);\n\t\t$pdf->MultiCell(190, 12, $txt, 0, 'L', 1, 1, '', '', true, 0, false, true, '12', 'M');\n\t\t\n\t\tif($referencias){\n\t\t\t$txt = '';\n\t\t\t$cont=0;\n\t\t\tforeach($referencias as $ref){\n\t\t\t\t$cont++;\n\t\t\t\t$txt =$ref['caminho'];\n\t\t\t\t$pdf->SetFont('helvetica', '', 10);\n\t\t\t\t$pdf->SetTextColor(0, 0, 0); \n\t\t\t\tif($cont%2==0){\n\t\t\t\t\t$pdf->SetFillColor(223, 239, 255);\n\t\t\t\t}\n\t\t\t\telse{\t\t\t\t\t\n\t\t\t\t\t$pdf->SetFillColor(255, 255, 255);\n\t\t\t\t}\n\t\t\t\t$pdf->setCellPaddings(3,3, 0, 1);\n\t\t\t\t// set cell margins\n\t\t\t\t//$pdf->setCellMargins(1, 1, 1, 1);\n\t\t\t\t$pdf->MultiCell(190, 12, $txt, 0, 'L', 1, 1, '', '', true, 0, false, true, '12', 'M');\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\t$pdf->Ln(5);\n\t\t\n\t\t$txt='Objeçoes:';\n\t\t$txt= utf8_encode($txt);\n\t\t$pdf->SetFont('helvetica', '', 12);\n\t\t$pdf->SetTextColor(0, 0, 0); \n\t\t$pdf->SetFillColor(255, 255, 255);\n\t\t$pdf->setCellPaddings(0,0, 0, 0);\n\t\t$pdf->MultiCell(190, 12, $txt, 0, 'L', 1, 1, '', '', true, 0, false, true, '12', 'M');\n\t\t\t\t\n\t\t$txt = $recomendacoes_objecoes;\n\t\t$txt= utf8_encode($txt);\n\t\t$pdf->SetFont('helvetica', '', 12);\n\t\t$pdf->SetTextColor(0, 0, 0);\n\t\t$pdf->SetFillColor(255, 255, 255);\n\t\t$pdf->setCellPaddings(3,3, 0, 1);\n\t\t// set cell margins\n\t\t//$pdf->setCellMargins(1, 1, 1, 1);\n\t\t$pdf->MultiCell(190, 12, $txt, 1, '', 1, 1, '', '', true, 0, true, true, '12', 'M');\n\t\t$pdf->Ln(5);\n\t\t\n\t\t\n\t\t\n\t\t$txt = 'CRONOGRAMA ';\n\t\t$txt= utf8_encode($txt);\n\t\t//var_dump($txt); exit(0);\n\t\t// MultiCell($w, $h, $txt, $border=0, $align='J', $fill=0, $ln=1, $x='', $y='', $reseth=true, $stretch=0, $ishtml=false, $autopadding=true, $maxh=0)\n\t\t$pdf->SetFont('helvetica', 'b', 12);\n\t\t$pdf->SetTextColor(0, 170, 201);\n\t\t$pdf->SetFillColor(249,207 , 69);\n\t\t$pdf->MultiCell(190, 12, $txt, 0, 'C', 1, 1, '', '', true, 0, false, true, '12', 'M');\n\t\t$pdf->Ln(5);\n\t\t\n\t\t$txt ='';\n\t\tif($cronograma){\n\t\t\t$txt ='Atividade';\n\t\t\t$pdf->SetFont('helvetica', 'b', 12);\n\t\t\t$pdf->SetTextColor(0, 0, 0); \n\t\t\t$pdf->SetFillColor(128, 191, 255);\n\t\t\t$pdf->setCellPaddings(3,3, 0, 1);\n\t\t\t// set cell margins\n\t\t\t//$pdf->setCellMargins(1, 1, 1, 1);\n\t\t\t$pdf->MultiCell(130, 10, $txt, 0, 'L', 1, 0, '', '', true, 0, true, true, '12', 'M');\n\t\t\t$txt ='Início';\n\t\t\t$txt= utf8_encode($txt);\n\t\t\t$pdf->MultiCell(30, 10, $txt, 0, 'L', 1, 0, '', '', true, 0, true, true, '12', 'M');\n\t\t\t$txt ='Fim';\n\t\t\t$pdf->MultiCell(30, 10, $txt, 0, 'L', 1, 1, '', '', true, 0, true, true, '12', 'M');\n\t\t\t//$pdf->Ln(5);\n\t\t\t$cont=0;\n\t\t\tforeach($cronograma as $etapa){\n\t\t\t\t$cont++;\n\t\t\t\t$txt =$etapa['atividade'];\n\t\t\t\t$pdf->SetFont('helvetica', '', 10);\n\t\t\t\t$pdf->SetTextColor(0, 0, 0); \n\t\t\t\tif($cont%2==0){\n\t\t\t\t\t$pdf->SetFillColor(223, 239, 255);\n\t\t\t\t}\n\t\t\t\telse{\t\t\t\t\t\n\t\t\t\t\t$pdf->SetFillColor(255, 255, 255);\n\t\t\t\t}\n\t\t\t\t$pdf->setCellPaddings(3,3, 0, 1);\n\t\t\t\t// set cell margins\n\t\t\t\t//$pdf->setCellMargins(1, 1, 1, 1);\n\t\t\t\t$pdf->MultiCell(130, 8, $txt, 0, '', 1, 0, '', '', true, 0, true, true, '12', 'M');\n\t\t\t\t$txt =$this->convert_data_bd_to_human($etapa['inicio']);\n\t\t\t\t$pdf->MultiCell(30, 8, $txt, 0, '', 1, 0, '', '', true, 0, true, true, '12', 'M');\n\t\t\t\t$txt =$this->convert_data_bd_to_human($etapa['fim']);\n\t\t\t\t$pdf->MultiCell(30, 8, $txt, 0, '', 1, 1, '', '', true, 0, true, true, '12', 'M');\n\t\t\t}\n\t\t\t//$txt .= \"</table>\";\n\t\t} \n\t\telse{\n\t\t\n\t\t\t//$txt= utf8_encode($txt);\n\t\t\t//var_dump($txt); exit(0);\n\t\t\t$pdf->SetFont('helvetica', '', 12);\n\t\t\t$pdf->SetTextColor(0, 0, 0); \n\t\t\t$pdf->SetFillColor(255, 255, 255);\n\t\t\t$pdf->setCellPaddings(3,3, 0, 1);\n\t\t\t// set cell margins\n\t\t\t//$pdf->setCellMargins(1, 1, 1, 1);\n\t\t\t$pdf->MultiCell(190, 12, $txt, 1, '', 1, 1, '', '', true, 0, true, true, '12', 'M');\n\t\t\t$pdf->Ln(5);\n\t\t}\n\n\t\t$pdf->lastPage();\n\t\t$pdf->Output('teste.pdf', 'I');\n\t}", "public function generatePDF()\n {\n $data = [\n 'title' => 'List of Houses',\n 'company' => 'Real Construction',\n 'date' => date('m/d/Y'),\n 'location' => 'KK 705 St, Kigali',\n 'email' => 'info@real.rw',\n 'contact' => '+250 788306817',\n 'contact1' => '+250 788314255',\n ];\n \n $products = DB::table('products')->get();\n \n $pdf = PDF::loadView('myPDF', $data, compact('products'));\n \n return $pdf->download('Houseslist.pdf');\n }", "public function create($data) {\n $new_pdf_name = mt_rand();\n\n # create fdf file\n $fdf_file = $this->createFDF($data);\n $tmp_file = fopen($this->base_directory . $new_pdf_name . '.fdf', 'w');\n\n if($tmp_file && fwrite($tmp_file, $fdf_file, strlen($fdf_file))) {\n $command = \"{$this->pdftk_path} A='{$this->pdf_base}' \";\n $command .= \"fill_form '\" . $this->base_directory . $new_pdf_name . \".fdf' \";\n $command .= \"output '\" . $this->base_directory . $new_pdf_name . \".pdf' drop_xfa\";\n\n # Execute the command to merge pdf base with new fdf file\n passthru($command);\n }\n\n # Attached to array the name of pdf files\n $this->pdf_names = array_merge($this->pdf_names, array($new_pdf_name));\n\n fclose($tmp_file);\n }", "function pdf() {\n if($this->active_invoice->isLoaded()) {\n if($this->active_invoice->canView($this->logged_user)) {\n InvoicePDFGenerator::download($this->active_invoice, Invoices::getInvoicePdfName($this->active_invoice));\n \tdie();\n } else {\n $this->response->forbidden();\n } // if\n } else {\n $this->response->notFound();\n } // if\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}", "function generarRecibo15_txt() {\n $ids = $_REQUEST['ids'];\n $id_pdeclaracion = $_REQUEST['id_pdeclaracion'];\n $id_etapa_pago = $_REQUEST['id_etapa_pago'];\n//---------------------------------------------------\n// Variables secundarios para generar Reporte en txt\n $master_est = null; //2;\n $master_cc = null; //2;\n\n if ($_REQUEST['todo'] == \"todo\") { // UTIL PARA EL BOTON Recibo Total\n $cubo_est = \"todo\";\n $cubo_cc = \"todo\";\n }\n\n $id_est = $_REQUEST['id_establecimientos'];\n $id_cc = $_REQUEST['cboCentroCosto'];\n\n if ($id_est) {\n $master_est = $id_est;\n } else if($id_est=='0') {\n $cubo_est = \"todo\";\n }\n\n if ($id_cc) {\n $master_cc = $id_cc;\n } else if($id_cc == '0'){\n $cubo_cc = \"todo\";\n }\n //\n $dao = new PlameDeclaracionDao();\n $data_pd = $dao->buscar_ID($id_pdeclaracion);\n $fecha = $data_pd['periodo'];\n\n //---\n $dao_ep = new EtapaPagoDao();\n $data_ep = $dao_ep->buscar_ID($id_etapa_pago);\n ;\n\n $_name_15 = \"error\";\n if ($data_ep['tipo'] == 1):\n $_name_15 = \"1RA QUINCENA\";\n elseif ($data_ep['tipo'] == 2):\n $_name_15 = \"2DA QUINCENA\";\n endif;\n\n\n $nombre_mes = getNameMonth(getFechaPatron($fecha, \"m\"));\n $anio = getFechaPatron($fecha, \"Y\");\n\n\n $file_name = '01.txt';//NAME_COMERCIAL . '-' . $_name_15 . '.txt';\n $file_name2 = '02.txt';//NAME_COMERCIAL . '-BOLETA QUINCENA.txt';\n $fpx = fopen($file_name2, 'w');\n $fp = fopen($file_name, 'w');\n \n //..........................................................................\n $FORMATO_0 = chr(27).'@'.chr(27).'C!';\n $FORMATO = chr(18).chr(27).\"P\";\n $BREAK = chr(13) . chr(10);\n //$BREAK = chr(14) . chr(10);\n //chr(27). chr(100). chr(0)\n $LINEA = str_repeat('-', 80);\n//..............................................................................\n// Inicio Exel\n//.............................................................................. \n fwrite($fp,$FORMATO); \n \n\n\n // paso 01 Listar ESTABLECIMIENTOS del Emplearo 'Empresa'\n $dao_est = new EstablecimientoDao();\n $est = array();\n $est = $dao_est->listar_Ids_Establecimientos(ID_EMPLEADOR);\n $pagina = 1;\n\n // paso 02 listar CENTROS DE COSTO del establecimento. \n if (is_array($est) && count($est) > 0) {\n //DAO\n $dao_cc = new EmpresaCentroCostoDao();\n $dao_pago = new PagoDao();\n $dao_estd = new EstablecimientoDireccionDao();\n\n // -------- Variables globales --------// \n $TOTAL = 0;\n $SUM_TOTAL_CC = array();\n $SUM_TOTAL_EST = array();\n\n\n\n for ($i = 0; $i < count($est); $i++) { // ESTABLECIMIENTO\n //echo \" i = $i establecimiento ID=\".$est[$i]['id_establecimiento'];\n //echo \"<br>\";\n //$SUM_TOTAL_EST[$i]['establecimiento'] = strtoupper(\"Establecimiento X ==\" . $est[$i]['id_establecimiento']);\n $bandera_1 = false;\n if ($est[$i]['id_establecimiento'] == $master_est) {\n $bandera_1 = true;\n } else if ($cubo_est == \"todo\") {\n $bandera_1 = true;\n }\n\n if ($bandera_1) {\n \n // if($bander_ecc){\n \n $SUM_TOTAL_EST[$i]['monto'] = 0;\n //Establecimiento direccion Reniec\n $data_est_direc = $dao_estd->buscarEstablecimientoDireccionReniec($est[$i]['id_establecimiento']/* $id_establecimiento */);\n\n $SUM_TOTAL_EST[$i]['establecimiento'] = $data_est_direc['ubigeo_distrito'];\n\n $ecc = array();\n $ecc = $dao_cc->listar_Ids_EmpresaCentroCosto($est[$i]['id_establecimiento']);\n // paso 03 listamos los trabajadores por Centro de costo \n\n for ($j = 0; $j < count($ecc); $j++) {\n\n $bandera_2 = false;\n if ($ecc[$j]['id_empresa_centro_costo'] == $master_cc) {\n $bandera_2 = true;\n } else if ($cubo_est == 'todo' || $cubo_cc == \"todo\") { // $cubo_est\n $bandera_2 = true;\n }\n \n if ($bandera_2) {\n //$contador_break = $contador_break + 1;\n // LISTA DE TRABAJADORES\n $data_tra = array();\n $data_tra = $dao_pago->listar_2($id_etapa_pago, $est[$i]['id_establecimiento'], $ecc[$j]['id_empresa_centro_costo']);\n\n if (count($data_tra)>0) {\n \n $SUM_TOTAL_CC[$i][$j]['establecimiento'] = $data_est_direc['ubigeo_distrito'];\n $SUM_TOTAL_CC[$i][$j]['centro_costo'] = strtoupper($ecc[$j]['descripcion']);\n $SUM_TOTAL_CC[$i][$j]['monto'] = 0;\n\n //fwrite($fp, $LINEA); \n fwrite($fp, NAME_EMPRESA); \n //$worksheet->write(($row + 1), ($col + 1), NAME_EMPRESA);\n //$data_pd['periodo'] $data_pd['fecha_modificacion']\n $descripcion1 = date(\"d/m/Y\");\n \n fwrite($fp, str_pad(\"FECHA : \", 56, \" \", STR_PAD_LEFT));\n fwrite($fp, str_pad($descripcion1, 11, \" \", STR_PAD_LEFT));\n fwrite($fp, $BREAK);\n\n fwrite($fp, str_pad(\"PAGINA :\", 69, \" \", STR_PAD_LEFT)); \n fwrite($fp, str_pad($pagina, 11, \" \", STR_PAD_LEFT));\n fwrite($fp, $BREAK);\n\n fwrite($fp, str_pad($_name_15/*\"1RA QUINCENA\"*/, 80, \" \", STR_PAD_BOTH));\n fwrite($fp, $BREAK);\n\n fwrite($fp, str_pad(\"PLANILLA DEL MES DE \" . strtoupper($nombre_mes) . \" DEL \" . $anio, 80, \" \", STR_PAD_BOTH));\n fwrite($fp, $BREAK);\n fwrite($fp, $BREAK);\n\n fwrite($fp, \"LOCALIDAD : \" . $data_est_direc['ubigeo_distrito']);\n fwrite($fp, $BREAK);\n fwrite($fp, $BREAK);\n\n fwrite($fp, \"CENTRO DE COSTO : \" . strtoupper($ecc[$j]['descripcion']));\n fwrite($fp, $BREAK);\n fwrite($fp, $BREAK);\n //$worksheet->write($row, $col, \"##################################################\");\n \n fwrite($fp, $LINEA);\n fwrite($fp, $BREAK);\n fwrite($fp, str_pad(\"N \", 4, \" \", STR_PAD_LEFT));\n fwrite($fp, str_pad(\"DNI\", 12, \" \", STR_PAD_RIGHT));\n fwrite($fp, str_pad(\"APELLIDOS Y NOMBRES\", 40, \" \", STR_PAD_RIGHT));\n fwrite($fp, str_pad(\"IMPORTE\", 9, \" \", STR_PAD_RIGHT));\n fwrite($fp, str_pad(\"FIRMA\", 15, \" \", STR_PAD_RIGHT));\n fwrite($fp, $BREAK);\n fwrite($fp, $LINEA);\n fwrite($fp, $BREAK);\n \n $pag = 0;\n $num_trabajador = 0;\n for ($k = 0; $k < count($data_tra); $k++) {\n $num_trabajador = $num_trabajador +1; \n if($num_trabajador>24):\n fwrite($fp,chr(12));\n $num_trabajador=0;\n endif;\n \n $data = array();\n $data = $data_tra[$k]; \n //$DIRECCION = $SUM_TOTAL_EST[$i]['establecimiento'];\n // Inicio de Boleta \n \n generarRecibo15_txt2($fpx, $data, $nombre_mes, $anio,$pag);\n $pag = $pag +1;\n\n \n // Final de Boleta\n $texto_3 = $data_tra[$k]['apellido_paterno'] . \" \" . $data_tra[$k]['apellido_materno'] . \" \" . $data_tra[$k]['nombres']; \n fwrite($fp, $BREAK);\n fwrite($fp, str_pad(($k + 1) . \" \", 4, \" \", STR_PAD_LEFT));\n fwrite($fp, str_pad($data_tra[$k]['num_documento'], 12, \" \", STR_PAD_RIGHT));\n fwrite($fp, str_pad(limpiar_caracteres_especiales_plame($texto_3), 40, \" \", STR_PAD_RIGHT));\n fwrite($fp, str_pad($data_tra[$k]['sueldo'], 9, \" \", STR_PAD_RIGHT));\n fwrite($fp, str_pad(\"_______________\", 15, \" \", STR_PAD_RIGHT));\n fwrite($fp, $BREAK);\n \n // por persona\n $SUM_TOTAL_CC[$i][$j]['monto'] = $SUM_TOTAL_CC[$i][$j]['monto'] + $data_tra[$k]['sueldo'];\n }\n\n\n $SUM_TOTAL_EST[$i]['monto'] = $SUM_TOTAL_EST[$i]['monto'] + $SUM_TOTAL_CC[$i][$j]['monto'];\n \n //--- LINE\n fwrite($fp, $BREAK);\n //fwrite($fp, $LINEA);\n fwrite($fp, $LINEA);\n fwrite($fp, $BREAK);\n fwrite($fp, str_pad(\"TOTAL \" . $SUM_TOTAL_CC[$i][$j]['centro_costo'] . \" \" . $SUM_TOTAL_EST[$i]['establecimiento'], 56, \" \", STR_PAD_RIGHT));\n fwrite($fp, number_format($SUM_TOTAL_CC[$i][$j]['monto'], 2));\n fwrite($fp, $BREAK);\n fwrite($fp, $LINEA);\n fwrite($fp, $BREAK);\n\n fwrite($fp,chr(12));\n $pagina = $pagina + 1;\n //fwrite($fp, $BREAK . $BREAK . $BREAK . $BREAK);\n $TOTAL = $TOTAL + $SUM_TOTAL_CC[$i][$j]['monto'];\n //$row_a = $row_a + 5;\n }//End Trabajadores\n }//End Bandera.\n }//END FOR CCosto\n\n\n // CALCULO POR ESTABLECIMIENTOS\n /* $SUM = 0.00;\n for ($z = 0; $z < count($SUM_TOTAL_CC[$i]); $z++) {\n\n fwrite($fp, str_pad($SUM_TOTAL_CC[$i][$z]['centro_costo'], 59, \" \", STR_PAD_RIGHT));\n fwrite($fp, number_format($SUM_TOTAL_CC[$i][$z]['monto'], 2));\n fwrite($fp, $BREAK);\n\n\n $SUM = $SUM + $SUM_TOTAL_CC[$i][$z]['monto'];\n }\n fwrite($fp, str_pad(\"T O T A L G E N E R A L --->>>\", 59, \" \", STR_PAD_RIGHT));\n fwrite($fp, number_format($SUM, 2));\n */\n\n //fwrite($fp, $BREAK . $BREAK);\n \n }\n }//END FOR Est\n\n /*\n fwrite($fp, str_repeat('*', 85));\n fwrite($fp, $BREAK);\n fwrite($fp, \"CALCULO FINAL ESTABLECIMIENTOS \");\n fwrite($fp, $BREAK);\n\n //$worksheet->write(($row+4), ($col + 1), \".::RESUMEN DE PAGOS::.\");\n $SUM = 0;\n for ($z = 0; $z < count($SUM_TOTAL_EST); $z++) {\n\n fwrite($fp, str_pad($SUM_TOTAL_EST[$z]['establecimiento'], 59, \" \", STR_PAD_RIGHT));\n fwrite($fp, number_format($SUM_TOTAL_EST[$z]['monto'], 2));\n fwrite($fp, $BREAK);\n $SUM = $SUM + $SUM_TOTAL_EST[$z]['monto'];\n }\n */\n \n fwrite($fp, $BREAK);\n fwrite($fp, $BREAK);\n fwrite($fp, str_pad(\"T O T A L G E N E R A L --->>>\", 56, \" \", STR_PAD_RIGHT));\n fwrite($fp, str_pad(number_format_var($TOTAL), 15, ' ',STR_PAD_RIGHT));\n fwrite($fp, $BREAK);\n fwrite($fp, $BREAK);\n \n \n }//END IF\n//..............................................................................\n// Inicio Exel\n//..............................................................................\n //|---------------------------------------------------------------------------\n //| Calculos Finales\n //|\n //|---------------------------------------------------------------------------\n //\n //fwrite($fp, $BREAK . $BREAK . $BREAK . $BREAK . $BREAK . $BREAK . $BREAK . $BREAK . $BREAK);\n //fwrite($fp, $BREAK . $BREAK . $BREAK . $BREAK . $BREAK . $BREAK . $BREAK . $BREAK . $BREAK);\n\n\n fclose($fp);\n fclose($fpx);\n // $workbook->close();\n // .........................................................................\n // SEGUNDO ARCHIVO\n //..........................................................................\n\n\n\n\n\n\n\n\n\n\n $file = array();\n $file[] = $file_name;\n $file[] = ($file_name2);\n ////generarRecibo15_txt2($id_pdeclaracion, $id_etapa_pago);\n\n\n $zipfile = new zipfile();\n $carpeta = \"file-\" . date(\"d-m-Y\") . \"/\";\n $zipfile->add_dir($carpeta);\n\n for ($i = 0; $i < count($file); $i++) {\n $zipfile->add_file(implode(\"\", file($file[$i])), $carpeta . $file[$i]);\n //$zipfile->add_file( file_get_contents($file[$i]),$carpeta.$file[$i]);\n }\n\n header(\"Content-type: application/octet-stream\");\n header(\"Content-disposition: attachment; filename=zipfile.zip\");\n\n echo $zipfile->file();\n}", "public function template1(){\n\t\t$pdf = new pdfCover(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);\n\t\t// set document information\n\t\t$pdf->SetCreator(PDF_CREATOR);\n\t\t$pdf->SetAuthor('Aduhay');\n\n\t\t$pdf->SetPrintHeader(false);\n\t\t// set default monospaced font\n\t\t$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED);\n\n\t\t// set margins\n\t\t$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT);\n\t\t$pdf->SetHeaderMargin(PDF_MARGIN_HEADER);\n\t\t$pdf->SetFooterMargin(PDF_MARGIN_FOOTER);\n\n\t\t// set auto page breaks\n\t\t$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);\n\n\t\t// set image scale factor\n\t\t$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);\n\n\t\t// set some language-dependent strings (optional)\n\t\tif (@file_exists(dirname(__FILE__).'/lang/eng.php')) {\n\t\t require_once(dirname(__FILE__).'/lang/eng.php');\n\t\t $pdf->setLanguageArray($l);\n\t\t}\n\n\t\t$pdf->AddPage();\n\t\t$data = $this->model->getLaporanByKategoriStatus();\n\t\t$pdf->Cover($this->bulan, $this->tahun);\n\t\t$i=0;\n\t\tif (!$data){\n\t\t $pdf->SetFont('helvetica', 'B', 10);\n\t\t $pdf->Write(0, \"Daftar taman kosong.\", '', 0, 'C', true, 0, false, false, 0);\n\t\t} else {\n\t\tforeach($data as $taman){\n\t\t if($i % 3 == 0){\n\t\t $pdf->AddPage();\n\t\t }\n\t\t // set font\n\t\t $pdf->SetFont('helvetica', 'B', 12);\n\n\t\t $pdf->Write(0, $taman['nama'], '', 0, 'C', true, 0, false, false, 0);\n\t\t $pdf->Write(0, $taman['lokasi'], '', 0, 'C', true, 0, false, false, 0);\n\n\t\t $pdf->Write(0, '', '', 0, 'C', true, 0, false, false, 0);\n\n\t\t $pdf->SetFont('helvetica', '', 10);\n\n\t\t\t$tbl = '\n\t\t\t<table border=\"1\" cellpadding=\"2\" align=\"center\">\n\t\t\t<thead>\n\t \t\t\t<tr>\n\t\t\t\t <th rowspan=\"2\" width=\"40\" align=\"center\"><b>No.</b></th>\n\t\t\t\t <th rowspan=\"2\" width=\"140\" align=\"center\"><b>Kategori</b></th>\n\t\t\t\t <th colspan=\"4\" align=\"center\"><b>Status</b></th>\n\t\t\t\t <th rowspan=\"2\" width=\"93\" align=\"center\"> <b>Total Aduan</b></th>\n\t\t\t </tr>\n\t\t\t \t<tr>\n\t\t\t\t <th align=\"center\"><b>Menunggu Konfirmasi</b></th>\n\t\t\t\t <th align=\"center\"><b>Ditolak</b></th>\n\t\t\t\t <th align=\"center\"><b>Sedang Ditanggapi</b></th>\n\t\t\t\t <th align=\"center\"><b>Sudah Ditanggapi</b></th>\n\t\t\t \t</tr>\n\t\t\t</thead>\n\t\t\t<tbody>\n\t\t\t';\n\t\t\t$i=1;\n\t\t\tforeach($taman as $kat){\n\t\t\t if (is_array($kat)){\n\t\t\t\t $tbl .= '<tr>\n\t\t\t\t <td width=\"40\" align=\"center\">'.$i.'</td>\n\t\t\t\t <td width=\"140\">'.$kat['nama_kategori'].'</td>\n\t\t\t\t <td>'.$kat['menunggu'].'</td>\n\t\t\t\t <td>'.$kat['ditolak'].'</td>\n\t\t\t\t <td>'.$kat['sedang'].'</td>\n\t\t\t\t <td>'.$kat['sudah'].'</td>\n\t\t\t\t <td width=\"93\">'.$kat['total'].'</td>\n\t\t\t\t </tr>';\n\t\t\t\t $i++;\n\t\t\t }\n\t\t\t}\n\t\t\t$tbl .= '<tr>\n\t\t <td colspan=\"2\" align=\"center\"><b>Total Aduan</b></td>\n\t\t <td>'.$taman['menunggu'].'</td>\n\t\t <td>'.$taman['ditolak'].'</td>\n\t\t <td>'.$taman['sedang'].'</td>\n\t\t <td>'.$taman['sudah'].'</td>\n\t\t <td width=\"93\">'.$taman['total'].'</td>\n\t\t </tr>';\n\t\t\t$tbl .= '</tbody></table>';\n\n\t\t $pdf->writeHTML($tbl, true, false, false, false, '');\n\t\t $pdf->Write(10, '', '', 0, 'C', true, 0, false, false, 0);\n\t\t $i++;\n\t\t\t}\n\t\t}\n\n\t\t//Close and output PDF document\n\t\t$pdf->Output('Laporan '.$this->bulan.' '.$this->tahun.'.pdf', 'I');\n\n }", "public function pdf()\n {\n $data['order_users'] = DB::table('guest_details')->get();\n $data['total_amount'] = DB::table('guest_details')->sum('payment_amount');\n $pdf = PDF::loadView('admin.orders_by_promote_users.pdf', $data);\n return $pdf->download('order_list.pdf');\n }", "public function proveedor(Request $request){\n try{\n $idAlmacen = \\App\\Almacenes::Where('almacen', '=', $request->id_almacen)->first();\n $proveedor = $request->id_proveedor == '' ? ' 1=1 ' : \" proveedores.id = '\".trim(explode('-', $request->id_proveedor)[0]).\"'\" ;\n $link = 'reporte.proveedorReporte';\n $datos = \\DB::table('movimientos')->join('proveedores', 'movimientos.id_proveedor', '=', 'proveedores.id')\n ->whereIn('movimientos.movimiento', array('INGRESO','INGRESO STOCK') )\n ->where('movimientos.id_gestion', '=', Gestiones::gestion())\n ->where('movimientos.eliminacion', '=', '')\n ->where('movimientos.id_almacen', '=', $idAlmacen->id)\n ->where('movimientos.created_at', '>=', Carbon::parse($request->fecha_inicio) )\n ->where('movimientos.created_at', '<=', Carbon::parse($request->fecha_fin) )\n ->whereRaw($proveedor)\n ->select('movimientos.*', 'proveedores.*')\n ->orderBy('proveedores.proveedor', 'asc')\n ->get();\n $fechaInicio = $request->fecha_inicio;\n $fechaFin = $request->fecha_fin;\n $configuracion = \\DB::table('configuraciones')->first();\n $almacen = \\DB::table('almacenes')->select('almacen')->first();\n\n $pdf = \\PDF::loadView($link, compact('datos', 'configuracion', 'almacen','fechaInicio', 'fechaFin') )\n ->setPaper('letter')->setOrientation('landscape')\n //->setPaper('letter')->setOrientation('portrait')\n ->setOption('page-width', '216mm')\n ->setOption('page-height', '279mm')\n ->setOption('margin-right', '10mm')\n ->setOption('margin-left', '15mm')\n ->setOption('margin-bottom', '15mm')\n ->setOption('header-spacing', 15)\n ->setOption('footer-spacing', 1)\n ->setOption('footer-html', asset('pie.php'));\n\n return $pdf->inline('UnidadAdministrativa_'.date('Ymdhis').'.pdf');\n }catch (Exception $e) {\n return \"<script> alert('Error R0019: Reporte de Unidad Administrativa Global|Resumen \\n\".$e->getMessage().\"'); location.href='\".asset('index.php/Reportes').\"'; </script>\";\n }\n }", "function Cabecera($pdf, $ftiponom, $nomina, $proceso, $periodo, $periodo_fecha) {\r\n\t$pdf->AddPage();\r\n $pdf->Image('../imagenes/logos/contraloria.jpg', 10, 10, 10, 10);\r\n\t$pdf->SetDrawColor(255, 255, 255); $pdf->SetFillColor(255, 255, 255); $pdf->SetTextColor(0, 0, 0);\r\n\t$pdf->SetFont('Arial', 'B', 8);\r\n\t\r\n\t$pdf->SetXY(20, 10); $pdf->Cell(190, 5, 'Contraloría del estado Monagas', 0, 1, 'L');\r\n\t$pdf->SetXY(20, 15); $pdf->Cell(190, 5, 'Dirección de Recursos Humanos', 0, 1, 'L');\r\n $pdf->SetXY(20, 10); $pdf->Cell(150, 5, 'Página: ', 0, 1, 'R'); \r\n\t$pdf->SetXY(20, 10); $pdf->Cell(165, 5, $pdf->PageNo().' de {nb}', 0, 1, 'R');\r\n \t$pdf->Cell(190, 25, ('REPORTE DE RETENCION Y APORTE PATRONAL CAJA DE AHORRO'), 0, 1, 'C');\r\n\t//$pdf->Cell(190, 5, (''), 0, 1, 'C');\r\n\t//$pdf->Cell(190, 5, ('TIPO DE NOMINA '.$nomina), 0, 1, 'L');//\r\n\t$pdf->Cell(190, 5, ($proceso), 0, 1, 'L');\r\n\t$pdf->Ln(1);\r\n\t$pdf->SetFont('Arial', '', 8);\r\n\t//$pdf->Cell(190, 5, ($periodo_fecha), 0, 1, 'C');//\r\n\t$pdf->Ln(3);\r\n\t\r\n\t$pdf->SetFont('Arial', 'B', 8);\r\n\t$pdf->SetDrawColor(0, 0, 0); $pdf->SetFillColor(255, 255, 255); $pdf->SetTextColor(0, 0, 0);\r\n\t$pdf->SetWidths(array(18, 70, 35, 20, 20, 20));\r\n\t$pdf->SetAligns(array('C', 'C', 'C', 'C', 'C', 'C'));\r\n\t$pdf->Row(array('CEDULA', 'APELLIDOS Y NOMBRES', 'S. BASICO MENSUAL', 'RETENCION', 'APORTE', 'TOTAL'));\r\n}", "public function generarPDF(Request $request){\n\n\t\t$mes = $request->mes;\n\t\t$annio = $request->annio;\n\t\t$concepto = $request->concepto;\n\t\t$mayor_obrero = 0;\n\t\t$mayor_empleado = 0;\n\n\t\tif($concepto == 20100){\n\t\t\t$nominas_obrero = DB::table('nomina')\n\t\t\t\t\t\t\t\t\t->where('fecha_inicio', 'like', '%/'.$mes.'/'.$annio.'%')\n\t\t\t\t\t\t\t\t\t->where('tipo', 'obrero')\n\t\t\t\t\t\t\t\t\t->get();\n\n\t\t\t$nominas_empleado = DB::table('nomina')\n\t\t\t\t\t\t\t\t\t->where('fecha_inicio', 'like', '%/'.$mes.'/'.$annio.'%')\n\t\t\t\t\t\t\t\t\t->where('tipo', 'empleado')\n\t\t\t\t\t\t\t\t\t->get();\n\n\t\t\tforeach ($nominas_obrero as $obrero) {\n\t\t\t\tif($obrero->id > $mayor_obrero){\n\t\t\t\t\t$mayor_obrero = $obrero->id;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tforeach ($nominas_empleado as $empleado) {\n\t\t\t\tif($empleado->id > $mayor_empleado){\n\t\t\t\t\t$mayor_empleado = $empleado->id;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t\t$html = view('pdf.retenciones.retenciones_fideicomiso')->with('mayor_obrero', $mayor_obrero)->with('mayor_empleado', $mayor_empleado)->with('mes', $mes)->with('annio', $annio)->render();\n \t\treturn PDF::load($html)->show();\n \t\n\t\t}\n\n\t\telse if($concepto == 20222){\n\t\t\t$nominas_obrero = DB::table('nomina')\n\t\t\t\t\t\t\t\t\t->where('fecha_inicio', 'like', '%/'.$mes.'/'.$annio.'%')\n\t\t\t\t\t\t\t\t\t->where('tipo', 'obrero')\n\t\t\t\t\t\t\t\t\t->get();\n\n\t\t\t$nominas_empleado = DB::table('nomina')\n\t\t\t\t\t\t\t\t\t->where('fecha_inicio', 'like', '%/'.$mes.'/'.$annio.'%')\n\t\t\t\t\t\t\t\t\t->where('tipo', 'empleado')\n\t\t\t\t\t\t\t\t\t->get();\n\n\t\t\tforeach ($nominas_obrero as $obrero) {\n\t\t\t\tif($obrero->id > $mayor_obrero){\n\t\t\t\t\t$mayor_obrero = $obrero->id;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tforeach ($nominas_empleado as $empleado) {\n\t\t\t\tif($empleado->id > $mayor_empleado){\n\t\t\t\t\t$mayor_empleado = $empleado->id;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$html = view('pdf.retenciones.retenciones_tesoreria_seguridad')->with('mayor_obrero', $mayor_obrero)->with('mayor_empleado', $mayor_empleado)->with('mes', $mes)->with('annio', $annio)->render();\n \t\treturn PDF::load($html)->show();\n \t\n\t\t}\n\n\t\telse if($concepto == 20134){\n\n\t\t\t\t$html = view('pdf.retenciones.retenciones_caja_ahorro')->with('annio', $annio)->with('mes', $mes)->render();\n \t\treturn PDF::load($html)->show();\n\t\t}\n\n\t\telse if($concepto == 30121){\n\n\t\t\t$nominas_obrero = DB::table('nomina')\n\t\t\t\t\t\t\t\t\t->where('fecha_inicio', 'like', '%/'.$mes.'/'.$annio.'%')\n\t\t\t\t\t\t\t\t\t->where('tipo', 'obrero')\n\t\t\t\t\t\t\t\t\t->get();\n\n\t\t\t$nominas_empleado = DB::table('nomina')\n\t\t\t\t\t\t\t\t\t->where('fecha_inicio', 'like', '%/'.$mes.'/'.$annio.'%')\n\t\t\t\t\t\t\t\t\t->where('tipo', 'empleado')\n\t\t\t\t\t\t\t\t\t->get();\n\t\t\tforeach ($nominas_obrero as $obrero) {\n\t\t\t\tif($obrero->id > $mayor_obrero){\n\t\t\t\t\t$mayor_obrero = $obrero->id;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tforeach ($nominas_empleado as $empleado) {\n\t\t\t\tif($empleado->id > $mayor_empleado){\n\t\t\t\t\t$mayor_empleado = $empleado->id;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif($nominas_obrero != null && $nominas_empleado != null){\n\t\t\t\t$html = view('pdf.retenciones.retenciones_faov')->with('mayor_empleado', $mayor_empleado)->with('mayor_obrero', $mayor_obrero)->with('mes', $mes)->with('annio', $annio)->render();\n \t\treturn PDF::load($html)->show();\n\t\t\t}\n\t\t\telse{\n\t\t\t\treturn redirect()->back()->with('alert', 'No existen retenciones para esta fecha');\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public function actionExportToPdf()\n {\n if(TODOS == 0)\n {\n $catPuesto = CatPuesto::model() -> findAll(array('condition'=>'activo = true'));\n }\n\n if(TODOS == 1)\n {\n $catPuesto = CatPuesto::model() -> findAll();\n }\n\n if ($catPuesto == null || count($catPuesto) == 0)\n return;\n $this->renderPartial(\"exportPdf\", array('catPuesto' => $catPuesto));\n }", "function reg_pdf($registro){\n\t\t$this->load->library('pdf');\n\t\t$pdf = new PDF('P', 'mm', 'letter', true, 'UTF‐8', false);\n\t\t$pdf->SetTitle('CERTIFICADO DE AFILIACIÓN');\n\t\t$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE, PDF_HEADER_STRING);\n\t\t$pdf->setFooterFont(Array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_MAIN));\n\t\t$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT);\n\t\t$pdf->SetHeaderMargin(PDF_MARGIN_HEADER);\n\t\t$pdf->SetFooterMargin(PDF_MARGIN_FOOTER);\n\t\t$pdf->SetAutoPageBreak(true,PDF_MARGIN_BOTTOM);\n\t\t$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);\n\t\t$pdf->setPrintHeader(false);\n\t\t$pdf->AddPage();\n\t\t// get the current page break margin\n\t\t$bMargin = $pdf->getBreakMargin();\n\t\t// get current auto-page-break mode\n\t\t$auto_page_break = $pdf->getAutoPageBreak();\n\t\t// disable auto-page-break\n\t\t$pdf->SetAutoPageBreak(false, 0);\n\t\t// set bacground image\n\t\t$img_file = K_PATH_IMAGES.'fondocertificado.jpg';\n\t\t$pdf->Image($img_file, 0, 0, 210, 297, '', '', '', false, 300, '', false, false, 0);\n\t\t// restore auto-page-break status\n\t\t$pdf->SetAutoPageBreak($auto_page_break, $bMargin);\n\t\t// set the starting point for the page content\n\t\t$pdf->setPageMark();\t\t\n\t\t$pdf->Writehtml('\n\t\t\t<br>\n\t\t\t<br>\n\t\t\t<br>\n\t\t\t<br>\n\t\t\t<h1 align=\"center\">CERTIFICADO DE AFILIACIÓN</h1>\n\t\t\t<br>\n\t\t\t<br>\n\t\t\t<h3 align=\"center\">BIENVENIDO</h3>\n\t\t\t<br>\n\t\t\t<br>\n\t\t\t<p align=\"right\"><b> Número de afiliado: </b>'.trim($registro['tit_codigo']).'</p>\n\t\t\t<br>\n\t\t\t<h4 align=\"center\">DATOS DEL AFILIADO</h4>\n\t\t\t<br>\n\t\t\t<p align=\"left\">\n\t\t\t\t<b>Nombre: </b>'.trim($registro['tit_nombres']).' '.trim($registro['tit_apellidos']).'<br>\n\t\t\t\t<b>Tipo de afiliado: </b>'.trim($registro['tipo_afiliado']).'<br>\n\t\t\t\t<b>Cédula de identidad: </b>'.trim($registro['tit_cedula']).'<br>\n\t\t\t\t<b>Código del sistema: </b>'.trim($registro['tit_codigo_largo']).'<br>\n\t\t\t</p>\n\t\t\t<br>\n\t\t\t<br>\n\t\t\t<br>\n\t\t\t<br>\n\t\t\t<h4 align=\"center\">DATOS DEL ENROLADOR</h4>\n\t\t\t<br>\n\t\t\t<p align=\"left\">\n\t\t\t\t<b>Nombre: </b>'.trim($registro['enrol_nombre_completo']).'<br>\n\t\t\t\t<b>Número de afiliado: </b>'.trim($registro['enrol_codigo']).'<br>\n\t\t\t</p>\n\t\t\t<br>\n\t\t\t<br>\n\t\t\t<br>\n\t\t\t<br>\n\t\t\t<br>\n\t\t\t<h4 align=\"center\">DATOS DEL PATROCINADOR</h4>\n\t\t\t<br>\n\t\t\t<p align=\"left\">\n\t\t\t\t<b>Nombre: </b>'.trim($registro['patroc_nombre_completo']).'<br>\n\t\t\t\t<b>Número de afiliado: </b>'.trim($registro['patroc_codigo']).'<br>\n\t\t\t</p>\n\t\t\t<br>\n\t\t\t<br>\n\t\t\t<br>\n\t\t\t<br>\n\t\t\t<br>\n\t\t\t<br>\n\t\t\t<p align=\"center\">\n\t\t\t\t-----------------------------------------------------------\n\t\t\t\t<br>\n\t\t\t</p>\n\t\t\t<br>\n\t\t\t<br>\n\t\t\t<br>\n\t\t\t<br>\n\t\t\t<br>\n\t\t\t<br>\n\t\t\t<p align=\"justify\">\n\t\t\t\t<b>NOTA IMPORTANTE: </b>Este certificado no es un recibo de ingreso, la emisión de este documento significa que el afiliado ha completado exitosamente el proceso de registro y que forma parte de nuestra base de datos, para completar el proceso deberá realizar los trámites administrativos correspondientes.\n\t\t\t\t<br>\n\t\t\t</p>\t\t\t\n\t\t', true, false, true, false, '');\n\t\t$pdf->Output('Certificado_'.trim($registro['tit_codigo_largo']).'.pdf', 'I');\n\t}", "public function pdf()\n {\n $dates = Date::all(); \n\n $pdf = PDF::loadView('products.senreport', compact('dates'));\n\n return $pdf->download('listado.pdf');\n }", "public function CreatePdf()\n {\n\n if(is_null($this->user) || !$this->user->can('admin.createPdf') ){\n abort('403','You dont have acces!!!!');\n }\n $product=Product::all();\n return view('pdf',compact('product'));\n // $pdf = PDF::loadView('pdf', $product);\n // return $pdf->download('products.pdf');\n // return view('pdf.CreatePdf');\n }", "function _pdf($sumber, $pdfName)\n\t{\n\t\t$this->PDF->AddPage(\"\",\"\",\"\",\"\",\"\",0,0,0,0,0,0,\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"A4\");\n\t\t$this->PDF->WriteHTML($sumber);\n\n\t\t// // render all necessary file and data into pdf and forced download\n\t\t$this->PDF->Output($pdfName);\n\t\tchmod($pdfName, 0777);\n\t}", "public function pdfview(Request $request)\n {\n if(session('liste') == \"attente\") \n $liste = DB::table('candidats')\n ->where('promo_id', session('promo_id'))\n ->whereIn('liste', ['attente', 'candidat'])\n ->orderby('Nom', 'asc'); \n else\n $liste = DB::table('candidats')->where([['liste', session('liste')], ['promo_id', session('promo_id')]] )->orderby('Nom', 'asc');\n \n view()->share('liste',$liste->get());\n // Set extra option\n \tPDF::setOptions(['dpi' => 150, 'defaultFont' => 'sans-serif']);\n \t// pass view file\n $pdf = PDF::loadView('promo.liste');\n // download pdf\n return $pdf->download('liste.pdf');\n\n \n }", "function hankart_add_manual_tab_content() {\n $file = get_field('pdf_manual');\n if( $file ): ?>\n <a target=\"_blank\" href=\"<?php echo $file['url']; ?>\"><i class=\"fas fa-file-pdf\"></i> <?php the_field('pdf_manual_title' ); // echo $file['filename']; ?></a>\n <?php endif;\n}", "function createDocmanFile($sessionKey, $group_id, $parent_id, $title, $description, $ordering, $status, $obsolescence_date, $permissions, $metadata, $file_size, $file_name, $mime_type, $content, $chunk_offset, $chunk_size, $author, $date, $owner, $create_date, $update_date) {\n\n $content = base64_decode($content);\n\n //ignore mime type coming from the client, guess it instead\n //Write the content of the file into a temporary file\n //The best accurate results are got when the file has the real extension, therefore use the filename\n $tmp = tempnam(Config::get('tmp_dir'), 'Mime-detect');\n $tmpname = $tmp .'-'. basename($file_name);\n file_put_contents($tmpname, $content);\n $mime_type = MIME::instance()->type($tmpname);\n \n //remove both files created by tempnam() and file_put_contents()\n unlink($tmp);\n unlink($tmpname);\n \n $extraParams = array(\n 'chunk_offset' => $chunk_offset,\n 'chunk_size' => $chunk_size,\n 'file_size' => $file_size,\n 'file_name' => $file_name,\n 'mime_type' => $mime_type,\n 'upload_content' => $content,\n 'date' => $date,\n 'author' => _getUserIdByUserName($author),\n );\n \n return _createDocmanDocument($sessionKey, $group_id, $parent_id, $title, $description, $ordering, $status, $obsolescence_date, PLUGIN_DOCMAN_ITEM_TYPE_FILE, $permissions, $metadata, $owner, $create_date, $update_date, $extraParams);\n}", "public function pdf($id)\n {\n $repair2 = DB::table('repair')\n ->select('repair.id', 'repair.client_id', 'repair.marca_modelo', 'repair.datos', 'repair.descripcion', 'repair.estado', 'clients.name', 'clients.last_name', 'clients.email', 'clients.telefono', 'clients.cuit_cuil')\n ->join('clients', 'clients.id', '=', 'repair.client_id')\n ->where('repair.id', $id)\n ->get();\n\n $pdf = \\PDF::loadView('panel.ejemplo', compact('repair2'));\n return $pdf->stream($id.'.pdf');\n }", "function createFichaDeposito2($fecha, $convenio, $referencia, $concepto, $importe){\r\n\t\t$pdf = new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);\r\n\t\t\r\n\t\t// set document information\r\n\t\t$pdf->SetCreator(\"DGIRE\");\r\n\t\t$pdf->SetAuthor('DGIRE');\r\n\t\t\r\n\t\t// remove default header/footer\r\n\t\t$pdf->setPrintHeader(false);\r\n\t\t$pdf->setPrintFooter(false);\r\n\t\t\r\n\t\t// set default monospaced font\r\n\t\t$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED);\r\n\t\t\r\n\t\t// set margins\r\n\t\t$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT);\r\n\t\t\r\n\t\t// set auto page breaks\r\n\t\t$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);\r\n\t\t\r\n\t\t// set image scale factor\r\n\t\t$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);\r\n\t\t\r\n\t\t// set some language-dependent strings (optional)\r\n\t\tif (@file_exists(dirname(__FILE__).'/lang/eng.php')) {\r\n\t\t\trequire_once(dirname(__FILE__).'/lang/eng.php');\r\n\t\t\t$pdf->setLanguageArray($l);\r\n\t\t}\r\n\t\t\r\n\t\t// ---------------------------------------------------------\r\n\t\r\n\t\t// add a page\r\n\t\t//$pdf->AddPage();\r\n\t\t//$pdf->AddPage('P', 'A4');\r\n\t\t$pdf->AddPage('L', 'A4');\r\n\t\t\r\n\t\t$pdf->SetXY(30, 20);\r\n\t\t$pdf->Image('img/ficha2.jpg', '', '', 210, 100, '', '', '', false, 300, '', false, false, 1, false, false, false);\r\n\t\t\r\n\t\t// set default font subsetting mode\r\n\t\t$pdf->setFontSubsetting(true);\r\n\t\t\r\n\t\t// print a block of text using Write()\r\n\t\t$pdf->SetFont('helvetica', '', 8, '', true);\r\n\t\t$pdf->SetXY(110, 47.8);\r\n\t\t$pdf->Write(0, $fecha, '', 0, '', true, 0, false, false, 0);\r\n\t\t\r\n\t\t$pdf->SetFont('helvetica', '', 15, '', true);\r\n\t\t$pdf->SetXY(53.2, 80);\r\n\t\t$pdf->Write(0, $convenio, '', 0, '', true, 0, false, false, 0);\r\n\t\t\r\n\t\t\r\n\t\t$pdf->SetFont('helvetica', '', 15, '', true);\r\n\t\t$pdf->SetXY(101.5, 80);\r\n\t\t$pdf->Write(0, $referencia, '', 0, '', true, 0, false, false, 0);\r\n\t\t\r\n\t\t$pdf->SetFont('helvetica', '', 8, '', true);\r\n\t\t$pdf->SetXY(65, 95.9);\r\n\t\t$pdf->Write(0, $concepto, '', 0, '', true, 0, false, false, 0);\r\n\t\t\r\n\t\t\r\n\t\t$pdf->SetFont('helvetica', '', 10, '', true);\r\n\t\t$pdf->SetXY(203, 101.5);\r\n\t\t$pdf->Write(0, \"$\".$importe, '', 0, '', true, 0, false, false, 0);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t$pdf->SetXY(42, 110);\r\n\t\t\r\n\t\t// define barcode style\r\n\t\t$style = array(\r\n\t\t\t'position' => '',\r\n\t\t\t'align' => 'C',\r\n\t\t\t'stretch' => false,\r\n\t\t\t'fitwidth' => true,\r\n\t\t\t'cellfitalign' => '',\r\n\t\t\t'border' => false,\r\n\t\t\t'hpadding' => 'auto',\r\n\t\t\t'vpadding' => 'auto',\r\n\t\t\t'fgcolor' => array(0,0,0),\r\n\t\t\t'bgcolor' => false, //array(255,255,255),\r\n\t\t\t'text' => true,\r\n\t\t\t'font' => 'helvetica',\r\n\t\t\t'fontsize' => 6,\r\n\t\t\t'stretchtext' => 4\r\n\t\t);\r\n\t\t\r\n\t\t$pdf->write1DBarcode($referencia, 'C128A', '', '', '', 10, 0.3, $style, 'N');\r\n\t\t\r\n\t\tob_end_clean();\r\n\t\t$pdf->Output($referencia.'.pdf', 'D');\r\n\t}", "public function pdf(Request $request)\n {\n /**\n * toma en cuenta que para ver los mismos\n * datos debemos hacer la misma consulta\n **/\n\n $id=$request->input('codigoOt');\n\n $ordenDeTrabajoAsignada = ot_orden_trabajo::where('OT_ID','1');\n\n $pdf = PDF::loadView('pdfs.pdfOT', compact('ordenDeTrabajoAsignada'));\n\n return $pdf->download('ot.pdf');\n }", "public function download() {\n if(empty($this->customer['id'])) {\n $this->response['error'][] = $this->locale['ERR_4002'];\n $this->response['logout'] = 1;\n return false;\n }\n\n if(empty($this->params['object']) || !$this->validator->isPositiveInteger($this->params['object'])) {\n $this->response['error'][] = $this->locale['ERR_1005'];\n return false;\n }\n\n $item = $this->orderModel->getOne($this->params['object'], $this->language['id']);\n \n if(!$item || empty($item['id'])) {\n $this->response['error'][] = $this->locale['ERR_1005'];\n return false;\n }\n\n $cars = $this->orderModel->getCars($item['id']);\n if(!$cars || count($cars) < 1) {\n $this->response['error'][] = $this->locale['ERR_1005'];\n return false;\n }\n \n $euro = $this->getCurrency($this->defaults['currencyEuroId']);\n\n $html = '';\n\n $this->template->set( $this->tplPath . 'pdf.html');\n $this->template->set( $this->tplPath . 'pdf-item.html', false);\n\n $count = count($cars);\n for($j = 0; $j < $count; $j++) {\n $car = $this->carModel->getOne($cars[$j]['car_id'], $this->language['id']);\n\n if($this->currency['id'] != $euro['id']) {\n $cars[$j]['final_price'] = $this->getFormatMoney($cars[$j]['final_price'] / $this->currency['in_euro']);\n $cars[$j]['price'] = $this->getFormatMoney($cars[$j]['price'] / $this->currency['in_euro']);\n $cars[$j]['one_time_fee'] = $this->getFormatMoney($cars[$j]['one_time_fee'] / $this->currency['in_euro']);\n $cars[$j]['renewal_fee'] = $this->getFormatMoney($cars[$j]['renewal_fee'] / $this->currency['in_euro']);\n $cars[$j]['holidays_fee'] = $this->getFormatMoney($cars[$j]['holidays_fee'] / $this->currency['in_euro']);\n $cars[$j]['discount_days_fee'] = $this->getFormatMoney($cars[$j]['discount_days_fee'] / $this->currency['in_euro']);\n $cars[$j]['termination_penalty_fee'] = $this->getFormatMoney($cars[$j]['termination_penalty_fee'] / $this->currency['in_euro']);\n }\n\n $details = '';\n if($cars[$j]['one_time_fee'] > 0) {\n $details .= $this->locale['STR_ONE_TIME_FEE'] . ': <strong>' . $cars[$j]['one_time_fee'] . $this->currency['sign'] . '</strong><br/>';\n }\n if($cars[$j]['renewal_fee'] > 0) {\n $details .= $this->locale['STR_RENEWAL_FEE'] . ': <strong>' . $cars[$j]['renewal_fee'] . $this->currency['sign'] . '</strong><br/>';\n }\n if($cars[$j]['holidays_fee'] > 0) {\n $details .= $this->locale['STR_HOLIDAYS_FEE'] . ': <strong>' . $cars[$j]['holidays_fee'] . $this->currency['sign'] . '</strong><br/>';\n }\n if($cars[$j]['discount_days_fee'] > 0) {\n $details .= $this->locale['STR_DISCOUNT_DAYS_FEE'] . ': <strong>' . $cars[$j]['discount_days_fee'] . $this->currency['sign'] . '</strong><br/>';\n }\n if($cars[$j]['termination_penalty_fee'] > 0) {\n $details .= $this->locale['STR_TERMINATION_FEE'] . ': <strong>' . $cars[$j]['termination_penalty_fee'] . $this->currency['sign'] . '</strong><br/>';\n }\n\n if(!empty($cars[$j]['termination_date'])) {\n $cars[$j]['end_date'] = $cars[$j]['termination_date'];\n }\n\n $tplVars = [\n 'TITLE' => $car['title'], \n 'CATEGORY' => $car['category'], \n 'DATE_FROM' => date($this->dayFormat, strtotime($cars[$j]['start_date'])), \n 'DATE_TILL' => date($this->dayFormat, strtotime($cars[$j]['end_date'])), \n 'BASE_PRICE' => $this->getFormatMoney($cars[$j]['price']), \n 'DETAILS' => $details, \n 'PRICE' => $this->getFormatMoney($cars[$j]['final_price']), \n 'CURRENCY_SIGN' => $this->currency['sign']\n ];\n\n $this->template->setVars( $tplVars );\n $html .= $this->template->parse(false);\n }\n\n if($this->currency['id'] != $euro['id']) {\n $item['final_price'] = $this->getFormatMoney($item['final_price'] / $this->currency['in_euro']);\n $item['price'] = $this->getFormatMoney($item['price'] / $this->currency['in_euro']);\n $item['one_time_fee'] = $this->getFormatMoney($item['one_time_fee'] / $this->currency['in_euro']);\n $item['renewal_fee'] = $this->getFormatMoney($item['renewal_fee'] / $this->currency['in_euro']);\n $item['holidays_fee'] = $this->getFormatMoney($item['holidays_fee'] / $this->currency['in_euro']);\n $item['discount_days_fee'] = $this->getFormatMoney($item['discount_days_fee'] / $this->currency['in_euro']);\n $item['termination_penalty_fee'] = $this->getFormatMoney($item['termination_penalty_fee'] / $this->currency['in_euro']);\n }\n\n $details = '';\n if($item['one_time_fee'] > 0) {\n $details .= $this->locale['STR_ONE_TIME_FEE'] . ': <strong>' . $item['one_time_fee'] . $this->currency['sign'] . '</strong><br/>';\n }\n if($item['renewal_fee'] > 0) {\n $details .= $this->locale['STR_RENEWAL_FEE'] . ': <strong>' . $item['renewal_fee'] . $this->currency['sign'] . '</strong><br/>';\n }\n if($item['holidays_fee'] > 0) {\n $details .= $this->locale['STR_HOLIDAYS_FEE'] . ': <strong>' . $item['holidays_fee'] . $this->currency['sign'] . '</strong><br/>';\n }\n if($item['discount_days_fee'] > 0) {\n $details .= $this->locale['STR_DISCOUNT_DAYS_FEE'] . ': <strong>' . $item['discount_days_fee'] . $this->currency['sign'] . '</strong><br/>';\n }\n if($item['termination_penalty_fee'] > 0) {\n $details .= $this->locale['STR_TERMINATION_FEE'] . ': <strong>' . $item['termination_penalty_fee'] . $this->currency['sign'] . '</strong><br/>';\n }\n\n if(!empty($item['termination_date'])) {\n $item['end_date'] = $item['termination_date'];\n }\n\n $tplVars = [\n 'STR_ORDER_DATE' => $this->locale['STR_ORDER_DATE'], \n 'STR_CAR' => $this->locale['STR_CAR'], \n 'STR_RENT_DATE' => $this->locale['STR_RENT_DATE'], \n 'STR_BASE_PRICE' => $this->locale['STR_BASE_PRICE'], \n 'STR_DETAILS' => $this->locale['STR_DETAILS'], \n 'STR_PRICE' => $this->locale['STR_PRICE'], \n 'STR_TOTAL' => $this->locale['STR_TOTAL'], \n 'INVOICE' => $item['invoice'], \n 'DATE_FROM' => date($this->dayFormat, strtotime($item['start_date'])), \n 'DATE_TILL' => date($this->dayFormat, strtotime($item['end_date'])), \n 'ITEMS' => $html, \n 'BASE_PRICE' => $this->getFormatMoney($item['price']), \n 'DETAILS' => $details, \n 'TOTAL_PRICE' => $this->getFormatMoney($item['final_price']), \n 'CURRENCY_SIGN' => $this->currency['sign']\n ];\n\n $this->template->setVars( $tplVars );\n $html = $this->template->parse();\n\n $mpdf = new \\Mpdf\\Mpdf();\n $mpdf->WriteHTML($html);\n $mpdf->Output($item['invoice'] . '.pdf','D');\n }", "function convert_to_pdf($document_content, $file_name = false, $test = false) {\n\t$response = @file_get_contents('https://docraptor.com/docs?user_credentials=95gWBkqAtpdvRLTmfOU', false, stream_context_create(array(\n\t\t'http' => array (\n\t\t\t'method' => 'POST',\n\t\t\t'header' => 'Content-type: application/x-www-form-urlencoded' . \"\\r\\n\",\n\t\t\t'content' => http_build_query(array(\n\t\t\t\t'doc[document_content]' => $document_content, \n\t 'doc[document_type]' => 'pdf',\n\t 'doc[name]' => 'voucher.pdf',\n\t 'doc[test]' => ($test ? 'true' : false)\n\t\t\t))\n\t\t)\n\t)));\n\tif ($response && $file_name) {\n\t\t$path = '/tmp/'.$file_name;\n\t\t$file = fopen ($path, 'w'); \n\t\tfwrite($file, $response); \n\t\tfclose ($file);\n\t\treturn $path;\n\t} else if ($response) {\n\t\treturn $response;\n\t} else {\n\t\treturn false;\n\t}\n}", "function convert_to_pdf($document_content, $file_name = false, $test = false) {\n\t$response = @file_get_contents('https://docraptor.com/docs?user_credentials=95gWBkqAtpdvRLTmfOU', false, stream_context_create(array(\n\t\t'http' => array (\n\t\t\t'method' => 'POST',\n\t\t\t'header' => 'Content-type: application/x-www-form-urlencoded' . \"\\r\\n\",\n\t\t\t'content' => http_build_query(array(\n\t\t\t\t'doc[document_content]' => $document_content, \n\t 'doc[document_type]' => 'pdf',\n\t 'doc[name]' => 'voucher.pdf',\n\t 'doc[test]' => ($test ? 'true' : false)\n\t\t\t))\n\t\t)\n\t)));\n\tif ($response && $file_name) {\n\t\t$path = '/tmp/'.$file_name;\n\t\t$file = fopen ($path, 'w'); \n\t\tfwrite($file, $response); \n\t\tfclose ($file);\n\t\treturn $path;\n\t} else if ($response) {\n\t\treturn $response;\n\t} else {\n\t\treturn false;\n\t}\n}", "public function store_upload_pdf_honoraire(Request $request , $facture_id)\n{\n // on force le format des dates à cause des vieux navigateurs\n $date = date_create($request->date_facture);\n $date_facture = $date->format('Y-m-d');\n \n\n $numero = str_replace(['/', '\\\\', '<','>',':','|','?','*','#'],\"-\",$request->numero_facture) ;\n\n $facture = Facture::where('id', Crypt::decrypt($facture_id))->first();\n\n $check_numero = Facture::where([['user_id',$facture->user_id],['numero',$request->numero_facture]])->first();\n \n $request->validate([\n \"numero_facture\" => \"required\",\n \"date_facture\" => \"required|date\",\n \"montant_ht\" => \"required|numeric\",\n \"file\" => \"required|max:5000\",\n // \"file\" => \"required|mimes:jpeg,png,pdf,doc,docx|max:5000\",\n ]);\n\n\n if($check_numero != null && $facture->numero != $request->numero_facture ){\n return redirect()->route('facture.create_upload_pdf_honoraire',$facture_id)->with('ok',__(\"Le numéro de facture $request->numero_facture existe déjà dans vos factures\"));\n }\n\n\n if(intval($request->montant_ht) != intval($facture->montant_ht) ){\n return redirect()->route('facture.create_upload_pdf_honoraire',$facture_id)->with('ok',__(\"Votre montant HT ( $request->montant_ht € ) ne correspond pas au montant HT ( $facture->montant_ht € ) de la note d'honoraire. Veuillez contacter l'administrateur.\"));\n }\n \n\n\n// dd($check_numero);\n if($file = $request->file('file')){\n\n $name = $file->getClientOriginalName();\n\n // on sauvegarde la facture dans le repertoire du mandataire\n $path = storage_path('app/public/'.$facture->user->id.'/factures');\n\n if(!File::exists($path))\n File::makeDirectory($path, 0755, true);\n \n $nom = str_replace(['/', '\\\\', '<','>',':','|','?','*','#'],\"-\",$facture->user->nom) ;\n $prenom = str_replace(['/', '\\\\', '<','>',':','|','?','*','#'],\"-\",$facture->user->prenom) ;\n\n $filename = strtoupper($nom).\" \".strtoupper(substr($prenom,0,1)).\" F\".$numero.\" \".$request->montant_ht.\"€ F\".$facture->compromis->getFactureStylimmo()->numero ;\n \n $file->move($path,$filename.'.pdf'); \n $path = $path.'/'.$filename.'.pdf';\n \n $facture->url = $path;\n $facture->numero = $request->numero_facture;\n $facture->date_facture = $date_facture;\n $facture->statut = \"en attente de validation\";\n $facture->date_ajout_facture = date('Y-m-d');\n \n $facture->update();\n }\n \n \n // SI YA PARTAGE EXTERNE AVEC UNE AGENCE\n \n if($request->numero_facture_externe != null){\n \n $facture_externe = Facture::where([['user_id', $facture->user_id],['type','partage_externe']])->first(); \n $numero_externe = str_replace(['/', '\\\\', '<','>',':','|','?','*','#'],\"-\",$request->numero_facture_externe) ;\n \n \n if($file_externe = $request->file('file_externe')){\n\n $name_externe = $file_externe->getClientOriginalName();\n \n // on sauvegarde la facture dans le repertoire du mandataire\n $path_externe = storage_path('app/public/'.$facture->user->id.'/factures');\n \n if(!File::exists($path_externe))\n File::makeDirectory($path_externe, 0755, true);\n \n $nom_agent = str_replace(['/', '\\\\', '<','>',':','|','?','*','#'],\"-\",$facture_externe->compromis->nom_agent) ;\n \n \n $filename_externe = strtoupper($nom_agent).\" F\".$numero_externe.\" \".$request->montant_ht_externe.\"€ F\".$facture_externe->compromis->getFactureStylimmo()->numero ;\n \n $file_externe->move($path_externe,$filename_externe.'.pdf'); \n $path_externe = $path_externe.'/'.$filename_externe.'.pdf';\n \n $facture_externe->url = $path_externe;\n $facture_externe->numero = $request->numero_facture;\n $facture_externe->date_facture = $request->date_facture_externe;\n $facture_externe->statut = \"en attente de validation\";\n $facture_externe->update();\n }\n \n }\n \n \n // SI ON AJOUTE LE RIB DE L'AGENCE EXTERNE\n if($rib = $request->file('rib')){\n\n $facture_externe = Facture::where([['user_id', $facture->user_id],['type','partage_externe']])->first(); \n $name_externe = $rib->getClientOriginalName();\n\n // on sauvegarde la facture dans le repertoire du mandataire\n $path_rib = storage_path('app/public/'.$facture->user->id.'/rib');\n\n if(!File::exists($path_rib))\n File::makeDirectory($path_rib, 0755, true);\n \n $nom_agent = str_replace(['/', '\\\\', '<','>',':','|','?','*','#'],\"-\",$facture_externe->compromis->nom_agent) ;\n\n $filename_rib = strtoupper($nom_agent).\"_rib_\".$facture_externe->compromis->getFactureStylimmo()->numero ;\n \n $rib->move($path_rib,$filename_rib.'.pdf'); \n $path_rib = $path_rib.'/'.$filename_rib.'.pdf';\n \n $facture_externe->rib = $path_rib;\n\n $facture_externe->update();\n }\n \n \n \n \n if( session('is_switch') == true ){\n $action = \"a ajouté la facture $facture->numero pour \".Auth::user()->nom.\" \".Auth::user()->prenom;\n $user_id = session('admin_id');\n }else{\n $action = Auth::user()->nom.\" \".Auth::user()->prenom.\" a ajouté la facture $facture->numero\";\n $user_id = Auth::user()->id;\n }\n \n Historique::createHistorique( $user_id,$facture->id,\"facture\",$action );\n\n\n return redirect()->route('facture.index')->with('ok',__(\"Votre facture $facture->numero est attente de validation.\"));\n \n}", "private function create_xml_file(){\r\n global $CFG;\r\n \r\n $tmpfileid = time().rand(1,99999);\r\n $tmpfile = 'export_xml_'.$tmpfileid.'.pdf';\r\n $this->attachfile = $CFG->tempdir.'/'.$tmpfile;\r\n \r\n $dom = new DOMDocument('1.0', 'utf-8');\r\n $dom->preserveWhiteSpace = false;\r\n $dom->formatOutput = true;\r\n $dom->loadXML($this->xml_structure);\r\n $dom->save($this->attachfile);\r\n }", "public function pdf($id, $no_template)\n {\n $bulan = array(\n 1 => 'Januari',\n 'Februari',\n 'Maret',\n 'April',\n 'Mei',\n 'Juni',\n 'Juli',\n 'Agustus',\n 'September',\n 'Oktober',\n 'November',\n 'Desember'\n );\n\n $data = Certificate::where('id',$id)->get();\n $tgl = ($data[0]['tanggal_selesai']);\n $komponen = explode(\"-\",$tgl);\n $tgl_indo = $komponen[2].' '.$bulan[(int) $komponen[1]].' '.$komponen[0];\n\n // html2pdf\n $html2pdf = new Html2Pdf('L','A4','en',false,'UTF-8', array(0,0,0,0));\n\n # mengarahkan view berdasarkan id template dengan format nama file 'certificate_pdf_idTempalteSertifikat.blade.php'\n # Setiap kali mengupload template sertifikat baru, harus menambahkan file view ke 'resources\\views\\content' UNTUK MASING-MASING TEMPLATE KARENA BERBEDA DESIGN.\n # note: penamaan file view sertifikat harus sesuai format 'certificate_pdf_idTempalteSertifikat.blade.php'\n $doc = view('content.certificate_pdf_'.$no_template, compact('data', 'tgl_indo')); \n $html2pdf->pdf->SetTitle('Certificate_'.$data[0]['nama']);\n $html2pdf->setTestIsImage(false);\n $html2pdf->writeHTML($doc, false);\n $html2pdf->Output($data[0]['nama'].\".pdf\",'I');\n // end of hrml2pdf\n\n }", "public function showdocuments($modulepart,$modulesubdir,$filedir,$urlsource,$genallowed,$delallowed=0,$modelselected='',$allowgenifempty=1,$forcenomultilang=0,$iconPDF=0,$notused=0,$noform=0,$param='',$title='',$buttonlabel='',$codelang='',$morepicto='',$object=null)\n {\n\t\t// Deprecation warning\n\t\tif (0 !== $iconPDF) {\n\t\t\tdol_syslog(__METHOD__ . \": passing iconPDF parameter is deprecated\", LOG_WARNING);\n\t\t}\n\n global $langs, $conf, $user, $hookmanager;\n global $form, $bc;\n\n if (! is_object($form)) $form=new Form($this->db);\n\n include_once DOL_DOCUMENT_ROOT.'/core/lib/files.lib.php';\n\n // For backward compatibility\n if (! empty($iconPDF)) {\n \treturn $this->getDocumentsLink($modulepart, $modulesubdir, $filedir);\n }\n\n $printer=0;\n if (in_array($modulepart,array('facture','supplier_proposal','propal','proposal','order','commande','expedition', 'commande_fournisseur', 'expensereport')))\t// The direct print feature is implemented only for such elements\n {\n $printer = (!empty($user->rights->printing->read) && !empty($conf->printing->enabled))?true:false;\n }\n\n $hookmanager->initHooks(array('formfile'));\n $forname='builddoc';\n $out='';\n\n $headershown=0;\n $showempty=0;\n $i=0;\n\n $out.= \"\\n\".'<!-- Start show_document -->'.\"\\n\";\n //print 'filedir='.$filedir;\n\n if (preg_match('/massfilesarea_/', $modulepart))\n {\n\t $out.='<div id=\"show_files\"><br></div>'.\"\\n\";\n\t\t\t$title=$langs->trans(\"MassFilesArea\").' <a href=\"\" id=\"togglemassfilesarea\" ref=\"shown\">('.$langs->trans(\"Hide\").')</a>';\n\t\t\t$title.='<script type=\"text/javascript\" language=\"javascript\">\n\t\t\t\tjQuery(document).ready(function() {\n\t\t\t\t\tjQuery(\\'#togglemassfilesarea\\').click(function() {\n\t\t\t\t\t\tif (jQuery(\\'#togglemassfilesarea\\').attr(\\'ref\\') == \"shown\")\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tjQuery(\\'#'.$modulepart.'_table\\').hide();\n\t\t\t\t\t\t\tjQuery(\\'#togglemassfilesarea\\').attr(\"ref\", \"hidden\");\n\t\t\t\t\t\t\tjQuery(\\'#togglemassfilesarea\\').text(\"('.dol_escape_js($langs->trans(\"Show\")).')\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tjQuery(\\'#'.$modulepart.'_table\\').show();\n\t\t\t\t\t\t\tjQuery(\\'#togglemassfilesarea\\').attr(\"ref\",\"shown\");\n\t\t\t\t\t\t\tjQuery(\\'#togglemassfilesarea\\').text(\"('.dol_escape_js($langs->trans(\"Hide\")).')\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t});\n\t\t\t\t});\n\t\t\t\t</script>';\n }\n\n $titletoshow=$langs->trans(\"Documents\");\n if (! empty($title)) $titletoshow=$title;\n\n // Show table\n if ($genallowed)\n {\n $modellist=array();\n\n if ($modulepart == 'educo_student')\n {\n $showempty=1;\n if (is_array($genallowed)) $modellist=$genallowed;\n else\n {\n include_once DOL_DOCUMENT_ROOT.'/educo/core/modules/educo/modules_student_doc.class.php';\n $modellist=ModeleStudentDoc::liste_modeles($this->db);\n }\n }\n \n\n // Set headershown to avoit to have table opened a second time later\n $headershown=1;\n\n $buttonlabeltoshow=$buttonlabel;\n if (empty($buttonlabel)) $buttonlabel=$langs->trans('Generate');\n\n if ($conf->browser->layout == 'phone') $urlsource.='#'.$forname.'_form'; // So we switch to form after a generation\n if (empty($noform)) $out.= '<form action=\"'.$urlsource.(empty($conf->global->MAIN_JUMP_TAG)?'':'#builddoc').'\" id=\"'.$forname.'_form\" method=\"post\">';\n $out.= '<input type=\"hidden\" name=\"action\" value=\"builddoc\">';\n $out.= '<input type=\"hidden\" name=\"token\" value=\"'.$_SESSION['newtoken'].'\">';\n\n $out.= load_fiche_titre($titletoshow, '', '');\n $out.= '<div class=\"div-table-responsive-no-min\">';\n $out.= '<table class=\"liste formdoc noborder\" summary=\"listofdocumentstable\" width=\"100%\">';\n\n $out.= '<tr class=\"liste_titre\">';\n\n $addcolumforpicto=($delallowed || $printer || $morepicto);\n $out.= '<th align=\"center\" colspan=\"'.(3+($addcolumforpicto?'2':'1')).'\" class=\"formdoc liste_titre maxwidthonsmartphone\">';\n\n // Model\n if (! empty($modellist))\n {\n $out.= '<span class=\"hideonsmartphone\">'.$langs->trans('Model').' </span>';\n if (is_array($modellist) && count($modellist) == 1) // If there is only one element\n {\n $arraykeys=array_keys($modellist);\n $modelselected=$arraykeys[0];\n }\n $out.= $form->selectarray('model', $modellist, $modelselected, $showempty, 0, 0, '', 0, 0, 0, '', 'minwidth100');\n $out.= ajax_combobox('model');\n }\n else\n {\n $out.= '<div class=\"float\">'.$langs->trans(\"Files\").'</div>';\n }\n\n // Language code (if multilang)\n if (($allowgenifempty || (is_array($modellist) && count($modellist) > 0)) && $conf->global->MAIN_MULTILANGS && ! $forcenomultilang && (! empty($modellist) || $showempty))\n {\n include_once DOL_DOCUMENT_ROOT.'/core/class/html.formadmin.class.php';\n $formadmin=new FormAdmin($this->db);\n $defaultlang=$codelang?$codelang:$langs->getDefaultLang();\n $morecss='maxwidth150';\n if (! empty($conf->browser->phone)) $morecss='maxwidth100';\n $out.= $formadmin->select_language($defaultlang, 'lang_id', 0, 0, 0, 0, 0, $morecss);\n }\n else\n {\n $out.= '&nbsp;';\n }\n\n // Button\n $genbutton = '<input class=\"button buttongen\" id=\"'.$forname.'_generatebutton\" name=\"'.$forname.'_generatebutton\"';\n $genbutton.= ' type=\"submit\" value=\"'.$buttonlabel.'\"';\n if (! $allowgenifempty && ! is_array($modellist) && empty($modellist)) $genbutton.= ' disabled';\n $genbutton.= '>';\n if ($allowgenifempty && ! is_array($modellist) && empty($modellist) && empty($conf->dol_no_mouse_hover) && $modulepart != 'unpaid')\n {\n \t$langs->load(\"errors\");\n \t$genbutton.= ' '.img_warning($langs->transnoentitiesnoconv(\"WarningNoDocumentModelActivated\"));\n }\n if (! $allowgenifempty && ! is_array($modellist) && empty($modellist) && empty($conf->dol_no_mouse_hover) && $modulepart != 'unpaid') $genbutton='';\n if (empty($modellist) && ! $showempty && $modulepart != 'unpaid') $genbutton='';\n $out.= $genbutton;\n $out.= '</th>';\n\n if (!empty($hookmanager->hooks['formfile']))\n {\n foreach($hookmanager->hooks['formfile'] as $module)\n {\n if (method_exists($module, 'formBuilddocLineOptions')) $out .= '<th></th>';\n }\n }\n $out.= '</tr>';\n\n // Execute hooks\n $parameters=array('socid'=>(isset($GLOBALS['socid'])?$GLOBALS['socid']:''),'id'=>(isset($GLOBALS['id'])?$GLOBALS['id']:''),'modulepart'=>$modulepart);\n if (is_object($hookmanager))\n {\n \t$reshook = $hookmanager->executeHooks('formBuilddocOptions',$parameters,$GLOBALS['object']);\n \t$out.= $hookmanager->resPrint;\n }\n\n }\n\n // Get list of files\n if (! empty($filedir))\n {\n $file_list=dol_dir_list($filedir,'files',0,'','(\\.meta|_preview.*.*\\.png)$','date',SORT_DESC);\n\n $link_list = array();\n if (is_object($object))\n {\n require_once DOL_DOCUMENT_ROOT . '/core/class/link.class.php';\n $link = new Link($this->db);\n $sortfield = $sortorder = null;\n $res = $link->fetchAll($link_list, $object->element, $object->id, $sortfield, $sortorder);\n }\n\n $out.= '<!-- html.formfile::showdocuments -->'.\"\\n\";\n\n // Show title of array if not already shown\n if ((! empty($file_list) || ! empty($link_list) || preg_match('/^massfilesarea/', $modulepart)) && ! $headershown)\n {\n $headershown=1;\n $out.= '<div class=\"titre\">'.$titletoshow.'</div>'.\"\\n\";\n $out.= '<div class=\"div-table-responsive-no-min\">';\n $out.= '<table class=\"noborder\" summary=\"listofdocumentstable\" id=\"'.$modulepart.'_table\" width=\"100%\">'.\"\\n\";\n }\n\n // Loop on each file found\n\t\t\tif (is_array($file_list))\n\t\t\t{\n\t\t\t\tforeach($file_list as $file)\n\t\t\t\t{\n\t\t\t\t\t// Define relative path for download link (depends on module)\n\t\t\t\t\t$relativepath=$file[\"name\"];\t\t\t\t\t\t\t\t\t\t// Cas general\n if ($modulesubdir) $relativepath=$modulesubdir.\"/\".$file[\"name\"];\t// Cas propal, facture...\n\t\t\t\t\tif ($modulepart == 'export') $relativepath = $file[\"name\"];\t\t\t// Other case\n\n\t\t\t\t\t$out.= '<tr class=\"oddeven\">';\n\n\t\t\t\t\t$documenturl = DOL_URL_ROOT.'/document.php';\n\t\t\t\t\tif (isset($conf->global->DOL_URL_ROOT_DOCUMENT_PHP)) $documenturl=$conf->global->DOL_URL_ROOT_DOCUMENT_PHP; // To use another wrapper\n\n\t\t\t\t\t// Show file name with link to download\n\t\t\t\t\t$out.= '<td class=\"tdoverflowmax300\">';\n $tmp = $this->showPreview($file,$modulepart,$relativepath,0,$param);\n $out.= ($tmp?$tmp.' ':'');\n\t\t\t\t\t$out.= '<a class=\"documentdownload\" href=\"'.$documenturl.'?modulepart='.$modulepart.'&amp;file='.urlencode($relativepath).($param?'&'.$param:'').'\"';\n\t\t\t\t\t$mime=dol_mimetype($relativepath,'',0);\n\t\t\t\t\tif (preg_match('/text/',$mime)) $out.= ' target=\"_blank\"';\n\t\t\t\t\t$out.= ' target=\"_blank\">';\n\t\t\t\t\t$out.= img_mime($file[\"name\"],$langs->trans(\"File\").': '.$file[\"name\"]).' '.$file[\"name\"];\n\t\t\t\t\t$out.= '</a>'.\"\\n\";\n\t\t\t\t\t$out.= '</td>';\n\n\t\t\t\t\t// Show file size\n\t\t\t\t\t$size=(! empty($file['size'])?$file['size']:dol_filesize($filedir.\"/\".$file[\"name\"]));\n\t\t\t\t\t$out.= '<td align=\"right\" class=\"nowrap\">'.dol_print_size($size).'</td>';\n\n\t\t\t\t\t// Show file date\n\t\t\t\t\t$date=(! empty($file['date'])?$file['date']:dol_filemtime($filedir.\"/\".$file[\"name\"]));\n\t\t\t\t\t$out.= '<td align=\"right\" class=\"nowrap\">'.dol_print_date($date, 'dayhour', 'tzuser').'</td>';\n\n\t\t\t\t\tif ($delallowed || $printer || $morepicto)\n\t\t\t\t\t{\n\t\t\t\t\t\t$out.= '<td align=\"right\">';\n\t\t\t\t\t\tif ($delallowed)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$out.= '<a href=\"'.$urlsource.(strpos($urlsource,'?')?'&amp;':'?').'action=remove_file&amp;file='.urlencode($relativepath);\n\t\t\t\t\t\t\t$out.= ($param?'&amp;'.$param:'');\n\t\t\t\t\t\t\t//$out.= '&modulepart='.$modulepart; // TODO obsolete ?\n\t\t\t\t\t\t\t//$out.= '&urlsource='.urlencode($urlsource); // TODO obsolete ?\n\t\t\t\t\t\t\t$out.= '\">'.img_picto($langs->trans(\"Delete\"), 'delete.png').'</a>';\n\t\t\t\t\t\t\t//$out.='</td>';\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif ($printer)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t//$out.= '<td align=\"right\">';\n $out.= '&nbsp;<a href=\"'.$urlsource.(strpos($urlsource,'?')?'&amp;':'?').'action=print_file&amp;printer='.$modulepart.'&amp;file='.urlencode($relativepath);\n $out.= ($param?'&amp;'.$param:'');\n $out.= '\">'.img_picto($langs->trans(\"PrintFile\", $relativepath),'printer.png').'</a>';\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif ($morepicto)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$morepicto=preg_replace('/__FILENAMEURLENCODED__/',urlencode($relativepath),$morepicto);\n \t$out.=$morepicto;\n\t\t\t\t\t\t}\n $out.='</td>';\n }\n\n if (is_object($hookmanager))\n {\n \t\t\t$parameters=array('socid'=>(isset($GLOBALS['socid'])?$GLOBALS['socid']:''),'id'=>(isset($GLOBALS['id'])?$GLOBALS['id']:''),'modulepart'=>$modulepart,'relativepath'=>$relativepath);\n \t$res = $hookmanager->executeHooks('formBuilddocLineOptions',$parameters,$file);\n if (empty($res))\n {\n $out .= $hookmanager->resPrint;\t\t// Complete line\n $out.= '</tr>';\n }\n else $out = $hookmanager->resPrint;\t\t// Replace line\n \t\t}\n\t\t\t\t}\n\n $this->numoffiles++;\n }\n // Loop on each file found\n if (is_array($link_list))\n {\n $colspan=2;\n\n foreach($link_list as $file)\n {\n $out.='<tr class=\"oddeven\">';\n $out.='<td colspan=\"'.$colspan.'\" class=\"maxwidhtonsmartphone\">';\n $out.='<a data-ajax=\"false\" href=\"' . $link->url . '\" target=\"_blank\">';\n $out.=$file->label;\n $out.='</a>';\n $out.='</td>';\n $out.='<td align=\"right\">';\n $out.=dol_print_date($file->datea,'dayhour');\n $out.='</td>';\n if ($delallowed || $printer || $morepicto) $out.='<td></td>';\n $out.='</tr>'.\"\\n\";\n }\n $this->numoffiles++;\n }\n\n\t\t \tif (count($file_list) == 0 && count($link_list) == 0 && $headershown)\n {\n\t \t$out.='<tr class=\"oddeven\"><td colspan=\"3\" class=\"opacitymedium\">'.$langs->trans(\"None\").'</td></tr>'.\"\\n\";\n \t }\n\n }\n\n if ($headershown)\n {\n // Affiche pied du tableau\n $out.= \"</table>\\n\";\n $out.= \"</div>\\n\";\n if ($genallowed)\n {\n if (empty($noform)) $out.= '</form>'.\"\\n\";\n }\n }\n $out.= '<!-- End show_document -->'.\"\\n\";\n //return ($i?$i:$headershown);\n return $out;\n }", "public function download_in_pdf($seq_no)\n\t{\n\t\t$this->load->model('statement_header_model');\n\t\t// $this->load->library('m_pdf');\n\t\t$this->load->model('transactions_model');\n\t\t$statement = $this->statement_header_model->get_statement($seq_no);\n\t\t$start_date = $statement[0]->START_DATE;\n\t\t$end_date = $statement[0]->END_DATE;\n\t\t$internal_key = $statement[0]->INTERNAL_KEY;\n\t\t$data['statement'] = $statement[0];\n\n\t\t// return print_r($statement);\n\t\t$data['transactions'] = $this->transactions_model\n\t\t\t\t->get_trans_history($start_date,$end_date,$internal_key);\n\n\t\t$data['start_date'] = $this->formatDate($start_date);\n\t\t$data['end_date'] = $this->formatDate($end_date);\n\n\n\t\t $this->load->helper('dompdf');\n\t\t $html = $this->load->view('transactions/view_statement2', $data, true);\n \t return pdf_create($html, 'eStatement as of '.$start_date. ' to' .$end_date);\n\t}", "public function pdf_paquete($url_key,$tipo='P') {\n if($this->session->userdata('s_busqueda_paquetes')){\n $data['busqueda_info'] = $this->session->userdata('s_busqueda_paquetes');\n }\n\n // boost the memory limit if it's low ;)\n /*ini_set('memory_limit','32M'); */\n\n //Consultar servicio\n $data_where = array('url_key' => $url_key);\n $resultado = $this->Paquetes->get_row($data_where);\n $data['post'] = $resultado;\n\n $url_servicio = base_url() . 'paquete-tour/' . $resultado['url_key'];\n $servicio = array(\n 'nombre_servicio' => $resultado['nombre'],\n 'descripcion_servicio' => $resultado['detalles'],\n 'url_servicio' => $url_servicio,\n 'itinerario' => $resultado['itinerarios']\n );\n\n $data['servicio'] = $servicio;\n $data['website'] = $this->Inicio->get_website();\n $cabeceras_email = $this->config->item('waemail');\n $cabeceras_email['titulo_email_admin'] = $servicio['nombre_servicio'];\n $data['cabeceras'] = $cabeceras_email;\n\n // render the view into HTML\n $data['titulo'] = $servicio['nombre_servicio'];\n\n //\n $file_name_pdf = $resultado['url_key'] . '.pdf';\n $html = $this->load->view('paginas/pdf/pdf_paquete', $data, true);\n /*die();*/\n\n $this->load->library('mimpdf');\n\n $pdf = $this->mimpdf->load();\n\n // Add a footer for good measure ;)\n $pdf->SetFooter($_SERVER['HTTP_HOST'].'|{PAGENO}|'.date(\"d/m/Y H:i\"));\n\n // write the HTML into the PDF\n $pdf->WriteHTML($html);\n\n //Formas de pago (página)\n if(!empty($resultado['formas_pago_id'])){\n $data_pagina = array('id' => $resultado['formas_pago_id']);\n $data['formas_pago'] = $this->Paginas->get_row($data_pagina);\n $html_formas_pago = $this->load->view('paginas/pdf/pdf_formas_pago', $data, true);\n $pdf->AddPage();\n $pdf->WriteHTML($html_formas_pago);\n }\n\n // save to file because we can\n $pdf->Output($file_name_pdf, 'D');\n\n }", "public function pdfac() //vista solo usuarios activos\n {\n $proveedores = Proveedor::orderBy('id','DESC')->where('estado', 'activo')->get();\n $coment = 'Reporte de proveedores activos';\n $pdf = PDF::loadView('pdf.proveedor', compact('proveedores','coment'))->setPaper('letter');//,'landscape' para cambiar la horientacion de la hoja\n return $pdf->stream('proveedores.pdf');//descargar directa \"dawnload\" en lugar de stream\n }", "public function abiertasPDF2()\n {\n // instantiate and use the dompdf class\n $dompdf = new Dompdf();\n $solicitudes = Solicitud::orderBy('id', 'DESC')->where('estatus',1)->get();\n ob_start();\n include('app/admin/views/reportes/abiertas.php');\n\n $dompdf->loadHtml(ob_get_clean());\n // (Optional) Setup the paper size and orientation\n $dompdf->setPaper('letter', 'landscape');\n // Render the HTML as PDF\n $dompdf->render();\n\n // Output the generated PDF to Browser\n $dompdf->stream();\n }", "public function createPDF() {\n $data = Product::all();\n\n // share data to view\n view()->share('products',$data);\n $pdf = PDF::loadView('admin.pdf.product_pdf', $data);\n\n // download PDF file with download method\n return $pdf->download('pdf_file.pdf');\n }", "public function actionExportToPdf()\n {\n if(TODOS == 0)\n {\n $cursoDisponibleServidorPublico = CursoDisponibleServidorPublico::model() -> findAll(array('condition'=>'activo = true'));\n }\n\n if(TODOS == 1)\n {\n $cursoDisponibleServidorPublico = CursoDisponibleServidorPublico::model() -> findAll();\n }\n\n if ($cursoDisponibleServidorPublico == null || count($cursoDisponibleServidorPublico) == 0)\n return;\n $this->renderPartial(\"exportPdf\", array('cursoDisponibleServidorPublico' => $cursoDisponibleServidorPublico));\n }", "public function solicitud_pdf_comfiar() {\n require_once(\"application/controllers/wsonline2/facturaElectronica.php\");\n\n $libfacturaElectronica = new FacturaElectronica();\n log_info($this->iniciLog);\n log_info($this->logHeader . ' Entro a solicitud_pdf_comfiar');\n\n $sqlfacturasinpdf = $this->db->query(\"SELECT pk_xml_codigo,xmlcom.url_pdf,xmlcom.pk_factura_codigo,xmlcom.id_transaccion_comfiar,fac.numero_factura\n FROM modfactur.factblxmlcomfiar xmlcom\n JOIN modfactur.factblfactur fac\n ON xmlcom.pk_factura_codigo = fac.pk_factur_codigo\n WHERE xmlcom.pk_tipo_xml_codigo =1\n and url_pdf is null order by pk_xml_codigo asc\");\n $facturas = $sqlfacturasinpdf->result_array;\n $total_sinpdf=count($facturas);\n log_info($this->logHeader . ' TOTAL FACTURAS SIN PDF = '.$total_sinpdf);\n \n if($total_sinpdf>0){\n //se consultan parametros consumo ws solo una vez para no \n $cuitId = $this->facturacionelectronica->retornarValorConfiguracion(3); //Cuit, RUC o NIT del emisor del comprobante. \n $puntoVentaId = $this->facturacionelectronica->retornarValorConfiguracion(5); //Número de punto de venta a procesar 01 factura\n $tipoComprobanteId = $this->facturacionelectronica->retornarValorConfiguracion(6); //Número del tipo de comprobante a procesar. Ejemplo 01:Factura\n $prefijoPeople = $this->facturacionelectronica->retornarValorConfiguracion(24); // Pefrijo factura ejemplo SETT\n }\n foreach ($facturas as $factura) {\n log_info($this->queryData . ' DATOS FACTURA: URL_PDF= ' . $factura['URL_PDF'] . ' PK_FACTURA_CODIGO= ' .\n $factura['PK_FACTURA_CODIGO'] . ' ID_TRANSACCION_COMFIAR= ' . $factura['ID_TRANSACCION_COMFIAR'] . ' NÚMERO_FACTURA= ' . $factura['NUMERO_FACTURA']);\n\n $urlWsdl = $this->facturacionelectronica->retornarValorConfiguracion(30);\n $wsdl = $urlWsdl;\n $options = array(\n 'cache_wsdl' => 0,\n 'trace' => 1,\n 'stream_context' => stream_context_create(array(\n 'ssl' => array(\n 'verify_peer' => false,\n 'verify_peer_name' => false,\n 'allow_self_signed' => true\n )\n ))\n );\n $client = new SoapClient($wsdl, $options);\n $transaccionId = $factura['ID_TRANSACCION_COMFIAR'];\n $nroComprobante = $factura['NUMERO_FACTURA'];\n $respuesta_token = $libfacturaElectronica->verificar_token_comfiar();\n\n log_info($this->logHeader . '::::RESPUESTA_VERIFICAR_TOKEN::::' . $respuesta_token);\n\n $sessionId = $this->facturacionelectronica->retornarValorConfiguracion(32);\n $fechaVenc = $this->facturacionelectronica->retornarValorConfiguracion(33);\n $pk_xml_codigo = $factura['PK_XML_CODIGO'];\n\n // web service input params\n $request_param = array(\n \"transaccionId\" => $transaccionId, //274 id transaccion confiar\n \"cuitId\" => $cuitId,\n \"puntoDeVentaId\" => $puntoVentaId,\n \"tipoComprobanteId\" => $tipoComprobanteId, // tipo comprobante factura 01\n \"numeroComprobante\" => $nroComprobante, //418 Número de factura enviado SETT418\n \"token\" => array(\n \"SesionId\" => $sessionId,\n \"FechaVencimiento\" => $fechaVenc\n )\n );\n log_info($this->logHeader . $this->postData . 'Id_Tx_Comfiar: ' . $transaccionId .\n ' cuitId: ' . $cuitId .\n ' puntoDeVentaId: ' . $puntoVentaId .\n ' tipoComprobanteId: ' . $tipoComprobanteId .\n ' numeroComprobante: ' . $nroComprobante .\n ' SesionId: ' . $sessionId .\n ' FechaVencimiento: ' . $fechaVenc .\n ' PK_xml_codigo: ' . $pk_xml_codigo);\n\n try {\n $responce_param = $client->DescargarPdf($request_param);\n log_info($this->postData . 'RESPUESTA COMSUMO DESCARGARPDF::' . json_encode($responce_param));\n if (isset($responce_param->DescargarPdfResult)) {\n\n\n $b64 = $responce_param->DescargarPdfResult;\n $data = base64_encode($b64);\n $urlpublica = $this->db->query(\"select VALOR_PARAMETRO from modgeneri.gentblpargen where pk_pargen_codigo =96\");\n $urlpublica = $urlpublica->result_array[0];\n //guarda y genera url factura pdf\n $folderPath = \"uploads/facturacomfiar/\";\n $date = date('Y-m-d');\n $random = rand(1000, 9999);\n $fact = strtolower($prefijoPeople) . '-' . $nroComprobante . '-';\n $name = $fact . strtolower($date . '-' . $random . '.pdf');\n $file_dir = $folderPath . $name;\n $url = $urlpublica['VALOR_PARAMETRO'] . '/' . $folderPath . $name;\n $pdf_decoded = base64_decode($data); //Write data back to pdf file\n try {\n $pdf = fopen($file_dir, 'w');\n fwrite($pdf, $pdf_decoded);\n //close output file\n fclose($pdf);\n $dataReturn = $url;\n// echo $url . '+++' . $fact;\n } catch (Exception $e) {\n $response = 'Excepción capturada: ' . $e->getMessage();\n }\n\n log_info($this->logHeader . '::Consumo Correcto soap DescargarPdf::URL PDF COMFIAR::' . $dataReturn);\n\n $response = $dataReturn;\n //llamar procedimiento actualiza url factura transmitida comfiar\n $sql = \"BEGIN modfactur.facpkgdatacomfiar.prcactualizapdffacturacomfiar(\n parpkxmlcodigo=>:parpkxmlcodigo,\n parurlpdf=>:parurlpdf,\n parrespuesta=>:parrespuesta);\n END;\";\n\n $conn = $this->db->conn_id;\n $stmt = oci_parse($conn, $sql);\n oci_bind_by_name($stmt, ':parpkxmlcodigo', $pk_xml_codigo, 32);\n oci_bind_by_name($stmt, ':parurlpdf', $dataReturn, 1000);\n oci_bind_by_name($stmt, ':parrespuesta', $parrespuesta, 32);\n if (!oci_execute($stmt)) {\n $e = oci_error($stmt);\n// VAR_DUMP($e);\n log_info($this->finLog . ' ERROR ACTUALIZANDO FACTURA -prcactualizapdffacturacomfiar- '\n . $e['message'] . '[*] parpkxmlcodigo=' . $pk_xml_codigo . '[*] parurlpdf=' . $dataReturn);\n }\n } else {\n $response = 'Error consumo Soap';\n }\n } catch (Exception $e) {\n log_info($this->logHeader . 'ERROR SOAP::' . $e->getMessage());\n\n $response = 'Error consumo DescargarPdf :' . $e->getMessage();\n }\n log_info($this->finLog . ' FACTURA NÚMERO= ' . $nroComprobante . ' PK_XML_CODIGO =' . $pk_xml_codigo . ' URL PDF ACTUALIZADA ::RESPONSE::' . $response);\n }\n }", "public function pdflistaFacultades(){\n\n $user=user::all();\n $facultades=Facultad::all();\n \n /* return view(\"ues.facultades.listaFac\",array('persona' =>$persona,'carreras' =>$carreras,'docentes' =>$docentes,'user'=>$user,'departamento'=>$departamento,'facultades'=>$facultades));*/\n\n $pdf=\\PDF::loadview('ues.facultades.listaFac', array('user' =>$user, 'facultades' => $facultades))->setPaper('letter','landscape');\n //$pdf->setOptions('isPhpEnabled', true);\n return $pdf->stream('Lista_Facultad_Activas.pdf');\n }", "public function pdf($id)\n {\n $items = Complain::findOrFail($id);\n $default = Gallerie::with('galleries')\n ->where('complaints_id', $id )\n ->where('is_default',1)\n ->take(1)\n ->get();\n $default2 = Gallerie::with('galleries')\n ->where('complaints_id', $id )\n ->where('is_default',1)\n ->take(1)\n ->get();\n $user = User::where('level', 'public')->get();\n $data = Gallerie::with('galleries')->where('complaints_id', $id)->get();\n\n return view('pages.pdf.index')->with([\n 'items' => $items,\n 'default' => $default,\n 'default2' => $default2,\n 'user' => $user,\n 'data' => $data,\n ]);\n }", "public function createPDF () {\n require_once \"fpdf183/fpdf.php\";\n\n $idReservasi = $_GET['idReservasi'];\n\n $query = ' SELECT pengunjung.nama, reservasi.jml_orang, reservasi.tanggal, transaksi.total_harga\n FROM reservasi INNER JOIN pengunjung ON reservasi.ktp = pengunjung.ktp INNER JOIN transaksi ON transaksi.id_reservasi = reservasi.id_reservasi\n WHERE reservasi.id_reservasi = \"'.$idReservasi.'\"';\n\n $query_result = $this->db->executeSelectQuery($query);\n\n $nama = $query_result[0][\"nama\"];\n $jmlOrang = $query_result[0][\"jml_orang\"];\n $tanggal = $query_result[0][\"tanggal\"];\n $totalHarga = $query_result[0][\"total_harga\"];\n\n $sum = $totalHarga;\n $totalIncome = \"\";\n $sisa = (strlen($sum) % 3);\n if (strlen($sum)%3 == 0 && strlen($sum) > 3){\n $sisa = 3;\n }\n $totalIncome = substr($sum, 0, $sisa);\n for ($i = $sisa; $i < strlen($sum); $i+=3) {\n $totalIncome.=\".\".substr ($sum, $i, 3);\n }\n\n $pdf = new FPDF('P', 'mm', 'A4');\n $pdf->AddPage();\n\n $pdf->SetFont('Arial', 'B', 14);\n $pdf->Cell(95, 5, 'FUN RESORT AND THEME PARK', 0, 0);\n $pdf->Cell(95, 5, 'INVOICE', 0, 1, 'R');\n\n $pdf->SetFont('Arial', '', 14);\n $pdf->Cell(190, 20, '', 0, 1);\n\n $pdf->SetFont('Arial', 'B', 12);\n $pdf->Cell(20, 5, '', 0, 0);\n $pdf->Cell(95, 5, 'DETAILS', 0, 1);\n\n $pdf->Cell(190, 10, '', 0, 1);\n\n $pdf->SetFont('Arial', '', 12);\n $pdf->Cell(20, 5, '', 0, 0);\n $pdf->Cell(50, 5, 'ATAS NAMA', 0, 0);\n $pdf->Cell(120, 5, $nama, 0, 1);\n\n $pdf->Cell(190, 5, '', 0, 1);\n\n $pdf->Cell(20, 5, '', 0, 0);\n $pdf->Cell(50, 5, 'JUMLAH TIKET', 0, 0);\n $pdf->Cell(120, 5, $jmlOrang, 0, 1);\n\n $pdf->Cell(190, 5, '', 0, 1);\n\n $pdf->Cell(20, 5, '', 0, 0);\n $pdf->Cell(50, 5, 'TOTAL HARGA', 0, 0);\n $pdf->Cell(120, 5, 'Rp. '.$totalIncome, 0, 1);\n\n $pdf->Cell(190, 5, '', 0, 1);\n\n $pdf->Cell(20, 5, '', 0, 0);\n $pdf->Cell(50, 5, 'TANGGAL', 0, 0);\n $pdf->Cell(120, 5, $tanggal, 0, 1);\n\n $pdf->Cell(190, 20, '', 0, 1);\n\n $pdf->SetFont('Arial', 'B', 12);\n $pdf->Cell(20, 10, '', 0, 0);\n $pdf->Cell(20, 10, 'NO', 1, 0, 'C');\n $pdf->Cell(130, 10, 'KODE TIKET', 1, 0, 'C');\n $pdf->Cell(20, 10, '', 0, 1);\n\n $str = $idReservasi;\n\n $pdf->SetFont('Arial', '', 12);\n for ($i=1; $i<=$jmlOrang; $i++){\n $pdf->Cell(20, 10, '', 0, 0);\n $pdf->Cell(20, 10, $i, 1, 0, 'C');\n $pdf->Cell(130, 10, $str.'-'.$i, 1, 0, 'C');\n $pdf->Cell(20, 10, '', 0, 1);\n }\n\n $pdf->Cell(190, 20, '', 0, 1);\n\n $pdf->SetFont('Arial', 'I', 12);\n $pdf->Cell(40, 10, '', 0, 0);\n $pdf->Cell(110, 10, '~ Have a Great Day ! ~', 0, 0, 'C');\n $pdf->Cell(40, 10, '', 0, 1);\n\n //output (print)\n $pdf -> Output(\"\", \"invoice.pdf\");\n }", "public function general_appointment_pdf($id)\r\n\t{\t \r\n\t\t\r\n\t\t\r\n\t\t $detail=$this->Appointment_model->get_pdf($id);\r\n\t\t $value=dycrypt($detail['description']);\r\n\t\t$ar=explode('/',$value);\r\n\t\t\r\n\t\t$data['appointment']=$ar;\r\n\t\t\r\n $html = $this->load->view('admin/appointment/generalpdf', $data, true);\r\n\t\t$path = \"general.pdf\";\r\n $this->load->library('m_pdf');\r\n\t\t$this->m_pdf->pdf->WriteHTML($html);\r\n $this->m_pdf->pdf->Output($path, \"D\");\r\n\t\t//exit;\r\n\t\t\r\n\t}", "public function PDFAction()\r\n {\r\n $pkey = (int) $this->params()->fromRoute('pkey', 0);\r\n $applicant = $this->getTable()->getApplicantPDF($pkey); \r\n $user_id = $this->zfcUserAuthentication()->getIdentity()->getId();\r\n $user_email = $this->zfcUserAuthentication()->getIdentity()->getEmail(); \r\n \r\n $fileName = 'FMSNewApplicationInfo.pdf'; \r\n $pdf = new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);\r\n // remove default header/footer\r\n $pdf->setPrintHeader(false);\r\n $pdf->setPrintFooter(false);\r\n // set font\r\n $pdf->SetFont('times', '', 12);\r\n // add a page\r\n $pdf->AddPage();\r\n //Content Starts here \r\n $viewRender = $this->getServiceLocator()->get('ViewRenderer');\r\n $view = new ViewModel(array('applicant'=>$applicant));\r\n $view->setTemplate(\"applicants/applicants/pdf\");\r\n $pdfString = $viewRender->render($view); \r\n $html = $pdfString;\r\n \r\n // output the HTML content\r\n $pdf->writeHTML($html, true, 0, true, 0);\r\n // reset pointer to the last page\r\n $pdf->lastPage();\r\n //Close and output PDF document\r\n //$file_base_path = '/home/serendio/hotchalkusers/fms/files/'.$user_email.'/'.time();\r\n $file_base_path = '/Home/hotchalkusers/fms/files/'.$user_email.'/'.time();\r\n shell_exec('mkdir -p bin '.$file_base_path);\r\n shell_exec('chmod 777 -p bin '.$file_base_path);\r\n $documentsmetadata = array();\r\n $documentsmetadata['DocTypeLov_pkey'] = 13;\r\n $documentsmetadata['docName'] = $fileName;\r\n $documentsmetadata['docFilePath'] = $file_base_path.'/'.$fileName;\r\n $documentsmetadata['owner'] = $user_email;\r\n $documentsmetadata['References_pkey'] = $applicant->pkey; \t\r\n $documentsmetadata['transactionName'] = 'Job Application';\r\n $documentsmetadata['fileName'] = 'FMSNewApplicationInfo';\r\n $documentsmetadata['filextension'] = 'pdf';\r\n $documentsmetadata['submittedBy'] = $user_id;\r\n $documentsmetadata['date'] = date('Y-m-d');\r\n $documentsmetadata['refDate'] = date('Y-m-d');\r\n $documentsmetadata['submittedOn'] = date('Y-m-d'); \r\n $documentsmetadata['time'] = date('G:i:s');\r\n //Insert documentsmetadata\r\n $this->getTable()->insertDocumentmetadata($documentsmetadata); \r\n \r\n //Home/hotchalkusers/fms/files/admin1@hotchalk.com/491251150/1413289035348/FMSNewApplicationInfo.pdf\r\n //$pdf->Output($file_base_path.'/'.$fileName, 'FD'); \r\n $pdf->Output($file_base_path.'/'.$fileName, 'F');\r\n $this->flashMessenger()->addInfoMessage('PDF Generated Successfully');\r\n return $this->redirect()->toRoute('applicants',array('action' => 'edit', 'pkey'=> $pkey, 'tab'=>2));\r\n }", "public function downloadPDF(){\n $classrooms_data = $this->getClassesInformation();\n $pdf = PDF::loadView('pdf', compact('classrooms_data'));\n return $pdf->download('Classrooms Information.pdf');\n }", "public function generatePDF(){\n if (Auth::user()->admin===1) {\n\n $uniqueAwardForNominee = DB::select('SELECT firstName , lastName, category.name AS catName\n , award.name as awardName from nominee LEFT JOIN nomination on nomination.studentNumber = nominee.studentNumber\n INNER JOIN award on nomination.award_id = award.id INNER JOIN category on award.category_id=category.id GROUP by award.id , nominee.studentNumber');\n $pdf = new TCPDF();\n $pdf::SetTitle('Certificates');\n foreach ($uniqueAwardForNominee as $nominee) {\n\n $name = $nominee->firstName.\" \".$nominee->lastName;\n $award = $nominee->awardName.\" \".$nominee->catName;\n\n $data = array( 'name' => $name, 'award' =>$award);\n\n $view = \\View::make('PDF.certificate', $data);\n $html = $view->render();\n //define size and orentation of page\n $pdf::AddPage('L', 'A5'); //l for landscape and P for, you guessed it !\n $pdf::writeHTML($html, true, false, true, false, '');\n\n }\n\n $pdf::Output('Certificates.pdf');\n\n }\n else {\n return view('pages.noAccess');\n }\n }", "function Cabecera($pdf) {\r\n\t$pdf->AddPage();\r\n\t$pdf->Image('../imagenes/logos/contraloria.jpg', 40, 11, 20, 18);\r\n\t$pdf->Image('../imagenes/logos/LOGOSNCF.jpg', 175, 240, 20, 18);\r\n\t$pdf->SetFont('Arial', 'B', 12);\r\n\t$pdf->SetTextColor(50, 50, 50);\r\n\t$pdf->SetXY(20, 12); $pdf->Cell(180, 5, utf8_decode('República Bolivariana de Venezuela'), 0, 1, 'C');\r\n\t$pdf->SetXY(20, 17); $pdf->Cell(180, 5, utf8_decode('Contraloría del Estado Monagas'), 0, 1, 'C');\r\n\t$pdf->SetXY(20, 22); $pdf->Cell(180, 5, ('Despacho del Contralor'), 0, 1, 'C');\r\n\t\r\n\t$pdf->SetFont('Arial', 'B', 16);\r\n\t$pdf->SetTextColor(0, 0, 0);\r\n\t$pdf->SetXY(25, 40); $pdf->Cell(170, 10, 'CONSTANCIA', 0, 1, 'C');\r\n\t$pdf->Ln(10);\r\n}", "function CanvassNotInterestedReport($iFYID)\n{\n $pdf = new PDF_CanvassBriefingReport();\n\n $pdf->SetMargins(20, 20);\n\n $curY = 10;\n\n $pdf->SetFont('Times', '', 24);\n $pdf->WriteAt(SystemConfig::getValue('leftX'), $curY, gettext('Canvass Not Interested Report').' '.date(SystemConfig::getValue(\"sDateFormatLong\")));\n $pdf->SetFont('Times', '', 14);\n\n $curY += 10;\n\n $pdf->SetFont('Times', '', 12);\n $pdf->WriteAt(SystemConfig::getValue('leftX'), $curY, SystemConfig::getValue('sChurchName'));\n $curY += SystemConfig::getValue('incrementY');\n $pdf->WriteAt(SystemConfig::getValue('leftX'), $curY, SystemConfig::getValue('sChurchAddress'));\n $curY += SystemConfig::getValue('incrementY');\n $pdf->WriteAt(SystemConfig::getValue('leftX'), $curY, SystemConfig::getValue('sChurchCity').', '.SystemConfig::getValue('sChurchState').' '.SystemConfig::getValue('sChurchZip'));\n $curY += SystemConfig::getValue('incrementY');\n $pdf->WriteAt(SystemConfig::getValue('leftX'), $curY, SystemConfig::getValue('sChurchPhone').' '.SystemConfig::getValue('sChurchEmail'));\n $curY += 10;\n $pdf->SetFont('Times', '', 14);\n\n $pdf->SetAutoPageBreak(1);\n\n $pdf->Write(5, \"\\n\\n\");\n\n $sSQL = 'SELECT *,a.fam_Name FROM canvassdata_can LEFT JOIN family_fam a ON fam_ID=can_famID WHERE can_FYID='.$iFYID.' AND can_NotInterested=1';\n $rsCanvassData = RunQuery($sSQL);\n\n $pdf->SetFont('Times', '', 12);\n while ($aDatum = mysqli_fetch_array($rsCanvassData)) {\n $str = sprintf(\"%s : %s\\n\", $aDatum['fam_Name'], $aDatum['can_WhyNotInterested']);\n $pdf->Write(4, $str.\"\\n\\n\");\n }\n\n header('Pragma: public'); // Needed for IE when using a shared SSL certificate\n $pdf->Output('CanvassNotInterested'.date(SystemConfig::getValue(\"sDateFilenameFormat\")).'.pdf', 'D');\n}", "function exportSubToPDF( $id ) {\n\tglobal $wpdb;\n\tinclude( 'create-submission-pdf.php' );\n\t\n\treturn $saveFile;\n}" ]
[ "0.65215033", "0.64779854", "0.6264048", "0.62311774", "0.6193049", "0.61882406", "0.6116614", "0.609466", "0.608457", "0.6080995", "0.6063464", "0.6027877", "0.60171735", "0.599996", "0.5981293", "0.5973513", "0.59530514", "0.59407455", "0.5940167", "0.5890605", "0.58390707", "0.5826802", "0.58265454", "0.5822038", "0.5820617", "0.581978", "0.58184975", "0.58026403", "0.57962006", "0.5780011", "0.5778365", "0.57752246", "0.57751423", "0.577148", "0.5760634", "0.5752708", "0.57517993", "0.5744536", "0.5728241", "0.572595", "0.57251596", "0.5720305", "0.5712491", "0.5695739", "0.5691927", "0.568902", "0.5687724", "0.56863034", "0.5682475", "0.56803334", "0.56703335", "0.566681", "0.56661797", "0.56631774", "0.56617403", "0.5644367", "0.56382823", "0.56321657", "0.56304556", "0.5626067", "0.56255937", "0.5623048", "0.56058455", "0.56046623", "0.5599172", "0.5590899", "0.5590358", "0.5583933", "0.5582195", "0.5580406", "0.55791813", "0.55791", "0.5571743", "0.5570996", "0.5567875", "0.55664676", "0.55637896", "0.5561209", "0.5554695", "0.5554695", "0.55533624", "0.5552647", "0.55432016", "0.5541509", "0.55365497", "0.55330217", "0.5531033", "0.55290407", "0.552744", "0.552429", "0.55213237", "0.5520531", "0.55196285", "0.55159587", "0.5515715", "0.5515622", "0.5507687", "0.55048263", "0.5504127", "0.5503596", "0.5502963" ]
0.0
-1
Execute the console command.
public function handle() { $branchName = $this->getBranchName(); $this->removeItemFromFile($branchName); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function handle()\n {\n\t\t$this->info('league fetching ..');\n $object = new XmlFeed();\n\t\t$object->fetchLeague($this->argument('sports_id'));\n\t\t$this->info('league saved');\n }", "public function handle()\n {\n //get us the Converter class instance and call the convert() method on it.\n $this->info(\n \\Aregsar\\Converter\\ConverterFacade::convert($this->argument(\"currency\"))\n );\n }", "public function handle()\n {\n $this->locale = $this->argument('locale');\n\n $this->loadGroupLines();\n\n $this->loadNameSpacedLines();\n\n $this->info('Complete');\n }", "public function handle()\n {\n $this->importUser($this->argument('username'));\n $this->call('ldap:show-user', $this->arguments());\n }", "public function handle() {\n $user = User::where('id', $this->argument('userId'))->first();\n $this->info($user->email);\n }", "public function handle()\n {\n $translations = collect(json_decode(file_get_contents('https://raw.githubusercontent.com/getbible/Bibles/master/translations.json')))->flatten();\n switch($this->argument('action')) {\n case 'fetch':\n $this->fetchBibles($translations);\n break;\n case 'convert':\n $this->convertBibles($translations);\n break;\n }\n }", "public function handle()\n {\n try {\n $evalstr = $this->evaluater->evaluate($this->argument('evalString'));\n $this->info($evalstr);\n } catch (ForbiddenSymbolsException $exception) {\n $this->error($exception->getMessage());\n } catch (IncorrectSymbolsException $exception) {\n $this->error($exception->getMessage());\n }\n }", "public function handle()\n {\n\n $settings = Setting::fetch();\n $id = $this->argument('id');\n $this->scrape_game_data($id);\n }", "public function handle()\n {\n // env('CALENDARINDEX_TOKEN', '6f2bd927201ba4b22bb57df08db0c517e51732de')\n $this->getData($this->argument('country'), $this->argument('region'));\n }", "public function handle()\n {\n $email = $this->argument('email');\n $name = $this->argument('name');\n\n $this->info(\"starting to generate users details\");\n\n }", "public function handle()\n {\n\t\t$this->info('Importing translations...');\n\n\t\t$this->manager->importTranslations(true);\n }", "public function handle()\n {\n $user = null;\n\n if ($email = $this->option(\"email\", false)) {\n $user = $this->findByEmail($email);\n }\n\n if ($id = $this->option(\"id\", false)) {\n $user = $this->findById($id);\n }\n\n if (empty($user)) {\n $this->warn(\"User no found\");\n }\n else {\n $this->setRoleToUser($user);\n }\n }", "public function handle()\n {\n $name = ucwords($this->argument('name'));\n $this->call('repository:contract', [ 'name' => $name ]);\n $this->call('repository:class', [ 'name' => $name, '--driver' => $this->option('driver') ]);\n }", "public function handle()\n\t{\n\t\t// Superuser\n\t\tif( ! $this->option('no-superuser'))\n\t\t\t$this->call('setup:superuser');\n\n\t\t// Countries\n\t\tif( ! $this->option('no-countries'))\n\t\t\t$this->call('setup:countries', ['country' => array_filter(explode(',', $this->option('countries')))]);\n\n\t\t// Languages\n\t\tif( ! $this->option('no-languages'))\n\t\t\t$this->call('setup:languages', ['language' => array_filter(explode(',', $this->option('languages')))]);\n\n\t\t// Currencies\n\t\tif( ! $this->option('no-currencies'))\n\t\t\t$this->call('setup:currencies', ['currency' => array_filter(explode(',', $this->option('currencies')))]);\n\n\t\t// Clear cache\n\t\t$this->call('cache:clear');\n\t}", "public function handle()\n\t{\n\t\t$name = $this->argument('name');\n\t\t\n\t\t$this->info(\"Searching eve api for {$name}\");\n\t\t$result = Corporation::searchEVEAPI($name);\n\n\t\t$this->info(\"results\");\n\t\tforeach($result as $corp)\n\t\t{\n\t\t\tprint $corp->name . \" \" . $corp->id . \"\\r\\n\";\n\t\t}\n\t}", "public function handle()\n {\n $user = $this->argument('user');\n $this->info('Display this on the screen, user ' . $user);\n return 0;\n }", "public function handle()\n {\n $this->userVectors->test($this->option('force'));\n }", "public function handle()\n {\n $mapping = $this->formatMappingName((string)$this->argument('mapping'));\n \n $model = $this->option('model') ? $this->formatModelName($this->option('model')) : null;\n \n $this->filesystem->put(\n $this->buildMappingFilePath($mapping),\n $this->buildMapping(\n $this->getDefaultStub(),\n $mapping,\n $model\n )\n );\n \n $this->composer->dumpAutoloads();\n }", "public function handle()\n {\n switch ($this->argument('type')) {\n case 'dns':\n $this->dnscheck->run($this->option('dry-run') ? true : false, $this->argument('domain'));\n break;\n case 'whois':\n $this->whoischeck->run($this->option('dry-run') ? true : false, $this->argument('domain'));\n break;\n }\n }", "public function handle()\n {\n $option = $this->argument('option');\n\n if (! in_array($option, ['expired', 'all'])) {\n return $this->error('Invalid option supplied to command...');\n }\n\n $this->comment('Beginning pruning process...');\n\n $this->comment($this->pruneDatabase($option) . ' deleted from database...');\n\n $this->comment($this->pruneFiles($option) . ' deleted from files...');\n\n $this->info('Nonces pruned successfully!');\n }", "public function handle()\n {\n $subscriptionUpdateService = new SubscriptionUpdateService();\n $subscriptionUpdateService->runUpdates();\n }", "public function handle()\n\t{\n\t\t\n\t\t$source_directory = $this->argument( 'source_directory' );\n\t\t$target_directory = $this->argument( 'target_directory' );\n\t\t$template = (string) $this->option( 'template' );\n\n\t\t$statik = new \\App\\Statik\\Statik;\n\n\t\t$statik->generateHTMLFiles( $this, $source_directory, $target_directory, $template ) && $this->info( \"\\e[1;32mDONE!\" );\n\n\t}", "public function handle()\n {\n if (!$this->argument('file')) {\n $this->info('Please specify file to call.');\n }\n\n $file = $this->argument('file');\n\n if (!$this->fileHandler->exists($file)) {\n $this->info('Wrong path or file not exist.');\n }\n\n $this->executeFile($file);\n }", "public function handle()\n {\n $user = $this->argument('user');\n $this->scanner->setUserName($user);\n $this->scanner->scanUser();\n }", "public function handle()\n {\n if ($this->argument('user')) {\n $userId = $this->argument('user');\n\n $this->info(\"Liquidate affiliate commission for user \" . $userId);\n\n $user = $this->userService->findById($userId);\n\n if ($user) {\n $this->walletService->liquidateUserBalance($user);\n } else {\n $this->error(\"User not found\");\n }\n\n $this->info(\"Done\");\n } else {\n $this->info(\"Liquidate all commissions\");\n\n $this->walletService->liquidateAllUsersBalance();\n\n $this->info(\"Done\");\n }\n }", "public function handle()\n {\n $action = $this->choice('what action do you have on mind', [\n 'add-relation', 'remove-columns', 'column-type', 'rename-column'\n ]);\n switch ($action) {\n case 'add-relation':\n $this->addRelation();\n break;\n\n case 'remove-columns':\n $this->removeColumns();\n break;\n case 'column-type':\n $this->columnType();\n break;\n case 'rename-column':\n $this->renameColumn();\n break;\n default:\n $this->error('Unsupported action requested...');\n }\n $this->info('Command executed successfully');\n }", "public function handle()\n {\n $arguments = $this->arguments();\n $storageDir = $arguments['storageDir'];\n $localStorageDir = $arguments['localStorageDir'];\n $url = $arguments['url'];\n $cmd = sprintf(\"./app/Console/Commands/ShellScripts/screen_shot.sh %s %s %s\", $storageDir, $localStorageDir, $url);\n\n while (true) {\n $result = shell_exec($cmd);\n print_r($result);\n sleep(3);\n }\n }", "public function handle()\n {\n $city = $this->argument('city');\n\n $weatherService = new CurrentWeatherService();\n try {\n $weather = $weatherService->getByCity($city);\n } catch (WeatherException $e) {\n $this->error($e->getMessage());\n return;\n }\n\n $this->info('Weather for city '.$city);\n dump($weather->toArray());\n }", "public function handle()\n {\n $this->getModels($this->argument('model'));\n $this->getLanguages($this->argument('locale'));\n $this->createMultiLanguageRecords();\n }", "public function handle()\n {\n $this->processOptions();\n\n echo json_encode( $this->dateTimeRange ) . \"\\n\";\n\n $this->dispatch( new ProcessNewActionsJob(\n $this->dateTimeRange ,\n str_random( 16 ),\n $this->option('runtime-threshold')\n ) );\n }", "public function handle()\n {\n $fightId = $this->argument('fight_id');\n $metricId = $this->argument('metric_id');\n //$strategyName = 'App\\\\'.$this->argument('metric_name');\n\n $metric = BossMetric::find($metricId);\n if ($metric === null) {\n $this->error(\"Error: no metric with id: $metricId found!\");\n return;\n }\n\n $fight = Fight::find($fightId);\n\n if ($fight === null) {\n $this->error(\"Error: no fight with id: $fightId found!\");\n return;\n }\n\n $strategy = $metric->getStrategy();\n $strategy->setFight($fight);\n $strategy->run();\n }", "public function handle()\n {\n\t\t$this->call('vendor:publish');\n\t\t$this->call('migrate');\n\t\t$this->call('db:seed');\n\t\t$this->call('factotum:storage');\n\t\t$this->call('factotum:storage');\n }", "public function handle()\n {\n $user_id = $this->argument('user') ?? null;\n\n if (is_null($user_id)) {\n $users = User::all();\n\n foreach ($users as $user) {\n $this->showUserBalance($user);\n }\n } else {\n $user = User::find($user_id);\n\n $this->showUserBalance($user);\n }\n }", "public function handle()\n {\n $this->capsuleService->getAll();\n $this->line('Command Worked');\n }", "public function handle()\n {\n $platform_wechat_id = $this->argument('id');\n $customer_id = $this->argument('customer_id');\n $this->info(\"Starting at \".date('Y-m-d H:i:s').\". Running initial for 【{$this->signature}】\");\n $this->getUserInfoList($platform_wechat_id,$customer_id);\n $this->info(\"End at \".date('Y-m-d H:i:s').\". over for 【{$this->signature}】\");\n }", "public function handle()\n {\n $this->publishAssets();\n $this->call('twill:flush-manifest');\n $this->call('view:clear');\n }", "public function handle()\n {\n \n $argument = $this->argument('data');\n \n $this->prepare( $argument );\n \n $this->make();\n \n $this->info( 'migration has been created : '. $this->fileName );\n \n }", "public function handle()\n {\n chdir(resource_path('assets/ts'));\n $path = $this->argument(\"path\");\n if(isset($path))\n {\n Logger::info('execute '.$path);\n Command::executeRaw('tsc', [\"-p\", $path]);\n }else\n Logger::info('execute tsc');\n Command::executeRaw('tsc');\n }", "public function handle()\n {\n $this->info('Starting date change command.');\n\n Word::where('language_id', 1)->update(array('created_at' => '1970-01-01 00:00:01'));\n Word::where('language_id', 2)->update(array('created_at' => '1970-01-01 00:00:01'));\n\n $this->info('Dates have been changed to 1970-01-01 00:00:01');\n }", "public function handle()\n {\n $this->info($this->slugger->encode($this->argument('id')));\n }", "public function handle()\n {\n $this->line(static::$logo);\n $this->line('Neat admin current version:' . Neat::version());\n\n $this->comment('');\n $this->comment('Available commands:');\n\n $this->listAvailableCommands();\n }", "public function handle()\n {\n $this->revisions->updateListFiles();\n }", "public function handle(): void\n {\n // Set argument\n $this->url = $this->argument(self::URL_ARGUMENT);\n\n // Handler takes care of computation\n (new CommandHandler($this))->compute();\n }", "public function handle()\n {\n try\n {\n $filename = $this->argument('filename');\n Excel::import(new ObjectsImport, $filename);\n\n $this->info('Data import is now completed');\n }\n catch(Exception $ex)\n {\n $this->error($ex->getMessage());\n }\n }", "public function handle() {\n $entity = $this->validateEntity($this->argument('entity'));\n $job = new DataProcessingJob($entity, str_random(16));\n $this->dispatch($job);\n }", "public function handle()\n {\n $isProductionMode = 'prod' == $this->argument('mode');\n\n if ($isProductionMode) {\n if (!$this->confirm('Are you sure to run in production mode? Running this command may cause critical issues?')) {\n exit(1);\n }\n }\n\n $this->_recalculate($isProductionMode);\n }", "public function handle()\n {\n if(!$this->verify()) {\n $rank = $this->createRankSuperAdmin();\n $user = $this->createUserSuperAdmin();\n $user->Ranks()->attach($rank);\n $this->line('Felicitaciones');\n } else {\n $this->error('No se puede ejecutar');\n }\n }", "public function handle()\n {\n // Get CLI Input\n $user_id = $this->option(\"uid\");\n\n // User Products\n ( new CommandManager() )->showUserProducts( $user_id );\n }", "public function handle()\n {\n $force = $this->option('force');\n\n if($this->option('without-bulk')){\n $this->withoutBulk = true;\n }\n\n if ($this->generateClass($force)){\n $this->info('Generating permissions for '.$this->modelBaseName.' finished');\n }\n }", "public function handle()\n {\n $tournaments = Tournament::all()->toArray();\n foreach ($tournaments as $tournament) {\n $slug = $this->tournamentRepoObj->generateSlug($tournament['name'].Carbon::createFromFormat('d/m/Y', $tournament['start_date'])->year,'');\n DB::table('tournaments')\n ->where('id', $tournament['id'])\n ->update([\n 'slug' => $slug\n ]);\n }\n $this->info('Script executed.');\n }", "public function handle()\n {\n $userId = $this->argument('user');\n\n /** @var User $user */\n $user = User::findOrFail($userId);\n\n // Get token.\n $info = (new Client())->auth();\n\n // Save to db.\n $user->access_token = $info['access_token'];\n $user->access_secret = $info['access_secret'];\n $user->save();\n\n $this->line(\"Saved access token and secret for user: {$user->email}\");\n }", "public function handle()\n {\n $m = new MemberFromText;\n $m->train();\n $id = $m->predict($this->argument('text'));\n dump(Miembro::find($id)->toArray());\n }", "public function handle()\n {\n $this->generator\n ->setConsole($this)\n ->run();\n }", "public function handle()\n {\n $this->createController();\n $this->createServiceDir();\n\n exit;\n $args = [\n '--provider' => TestProvider::class\n ];\n $className = $this->argument('className');\n if (!$className) {\n $className = 'MethodsList';\n }\n $className = ucwords($className);\n $this->call('vendor:publish', $args);\n $this->info('Display this on the screen ' . $className);\n }", "public function handle()\n {\n $this->createDirectories();\n\n $this->publishTests();\n\n $this->info('Authentication tests generated successfully.');\n }", "public function handle()\n {\n $this->setDbConnection(\n $this->input->getOption('database') ?: config('ghost-database.default_connection')\n );\n\n $native = $this->input->getOption('native-import') ?: config('ghost-database.use_native_importer');\n\n $snapshot = $this->import($native);\n\n $this->info(\"Snapshot `{$snapshot->name}` loaded!\");\n }", "public function handle()\n {\n $exec = $this->argument('exec');\n\n switch ($exec) {\n case 'download' :\n $this->download();\n break;\n\n case 'generate' :\n $this->generate();\n break;\n\n default :\n echo \"Choose 'download' or 'generate' for this command\";\n break;\n }\n }", "public function handle()\n {\n $this->call('ziggy:generate', ['path' => './resources/js/ziggy-admin.js', '--group' => 'admin']);\n $this->call('ziggy:generate', ['path' => './resources/js/ziggy-frontend.js', '--group' => 'frontend']);\n $this->call(TranslationsGenerateCommand::class);\n }", "public function handle()\n {\n $tenantName = $this->argument('tenant');\n\n $tenant = Tenant::where('name', $tenantName)->orWhere('subdomain', $tenantName)->first();\n\n if ($tenant) {\n $tenant->setActive();\n \\Artisan::call('tinker');\n } else {\n $this->error('Error: Tenant not found');\n }\n }", "public function handle()\n {\n try {\n if (!empty($userId = $this->argument('user'))) {\n $user = User::find($userId);\n } else {\n $user = User::inRandomOrder()->first();\n }\n\n if (empty($user)) {\n throw new \\Exception('User not found');\n }\n\n echo JWTAuth::fromUser($user);\n } catch (\\Exception $e) {\n echo $e->getMessage();\n }\n\n }", "public function handle()\n {\n $this->fetchAndSetToken();\n $imagesToDownload = $this->peekImages(WatchedApp::pluck('package_name'));\n $this->fetchImages($imagesToDownload);\n\n if ($this->option('dont-optimize')) {\n return;\n }\n\n $this->runOptimizeCommand();\n }", "public function handle()\n {\n $this->setCryptIVFromUrl($this->argument('url'));\n\n $participant = URLParser::parseByName('santa.index', $this->argument('url'))->participant;\n if($participant) {\n $draw = $participant->draw;\n } else {\n $draw = URLParser::parseByName('organizer.index', $this->argument('url'))->draw;\n }\n\n $this->table(\n ['ID', 'Name', 'Email'],\n $draw->participants()->get(['id', 'name', 'email'])->toArray()\n );\n }", "public function handle()\n {\n // if you are on the local environment\n if (!(app()->isLocal() || app()->runningUnitTests())) {\n $this->error('This command is only available on the local environment.');\n return;\n }\n\n $fqdn = $this->argument('fqdn');\n if ($tenant = Tenant::retrieveBy($fqdn)){\n $tenant->delete($fqdn);\n $this->info(\"Tenant {$fqdn} successfully deleted.\");\n }else {\n $this->error('This fqdn doesn\\'t exist.');\n }\n\n }", "public function handle()\n {\n $user_from = $this->option('from');\n $user_to = $this->option('to');\n $sum = $this->option('sum');\n\n CreateTransaction::dispatch($this->usersRepository->getByID($user_from), $this->usersRepository->getByID($user_to), $sum, true);\n $this->transactionsRepository->getAll()->each(function ($transaction){\n \tExecuteTransaction::dispatch($transaction);\n });\n }", "public function handle()\n {\n $this->warn('Starting Retrieve Data');\n\n PeopleService::retrieveData();\n\n $this->info('Retrieve Data Completed');\n }", "public function handle()\n {\n \n $period = $this->option('period');\n \n switch ($period) {\n\n case 'half_month':\n $this->info('Grabing Half Month Income...');\n $this->halfMonth();\n break;\n\n case 'monthly':\n $this->info('Grabing Monthly Income...');\n $this->monthly();\n break;\n \n default:\n $this->info('Grabing Daily Income...');\n $this->daily();\n break;\n\n }\n\n \n }", "public function handle()\n {\n $countryFiles = $this->getFiles();\n\n foreach ($countryFiles as $fileName) {\n $this->seed($fileName);\n }\n\n $this->info('End.');\n }", "public function fire()\n {\n $entityName = $this->argument('entityName');\n $startEntityId = $this->argument('startEntityId');\n $endEntityId = $this->argument('endEntityId');\n $depth = $this->argument('depth');\n\n $this->fixturePath = $this->option('outputPath');\n\n $this->info(\"Generating fixtures for $entityName in {$this->fixturePath}...\");\n \n $this->generateFixtures($entityName, $startEntityId, $endEntityId, $depth);\n }", "public function handle()\n {\n $check = PublishTraitsService::publishTraits();\n\n if ($check)\n {\n $this->info('All files have been published');\n }\n\n $this->info('Failed to publish');\n }", "public function handle()\n {\n $user = User::where('username', $this->argument('user'))\n ->orWhere('email', $this->argument('user'))\n ->first();\n\n if ($user != null) {\n $user->assign('admin');\n $this->line(\"{$user->email} was successfully made an admin.\");\n } else {\n $this->line(\"No user found where username or email is '{$this->argument('user')}'\");\n }\n }", "public function handle()\n {\n event( 'laraview:compile' );\n $this->checkForSelectedViewGeneration();\n\n app( RegisterBlueprint::class )\n ->console( $this )\n ->generate();\n }", "public function handle()\n {\n $project = Project::with(['team.admins', 'team.members'])->findOrFail($this->option('project-id'));\n $user = User::findOrFail($this->option('user-id'));\n if ($this->option('admin')) {\n $project->team->admins()->syncWithoutDetaching($user);\n } else {\n $project->team->members()->syncWithoutDetaching($user);\n }\n return Command::SUCCESS;\n }", "public function handle() {\n try {\n $this->roomService->loadRoomOccupations();\n Log::notice('untis:occupations executed successfully.');\n $this->line('Loaded room occupations from WebUntis.');\n } catch (Exception $e) {\n Log::error('Error loading room occupations.', ['exception' => $e]);\n $this->error('Error loading room occupations: ' . $e->getMessage());\n }\n }", "public function handle()\n {\n $this->loadIxList();\n $this->loadIxMembersList();\n $this->updateIxInfo();\n $this->updateIxMembersInfo();\n }", "public function handle()\n {\n $this->call('vendor:publish', [\n '--provider' => \"Qoraiche\\MailEclipse\\MailEclipseServiceProvider\",\n ]);\n }", "public function handle()\n\t{\n\t\tif ($this->option('dev')) {\n\t\t\tsystem('php '.base_path('.deploy/deploy-dev.php'));\n\t\t} else {\n\t\t\tsystem('php '.base_path('.deploy/deploy.php'));\n\t\t}\n\t}", "public function handle(Command $command);", "public function handle(Command $command);", "public function handle()\n {\n $date_from = $this->argument('date_from');\n\t\t$date_to = $this->argument('date_to');\n\t\tif(!$date_from) {\n\t\t\t$date_from = Carbon::today()->subDays(5);\n\t\t}\n\t\tif(!$date_to) {\n\t\t\t$date_to = Carbon::yesterday();\n\t\t}\n\t\tStats::computeMembers($this->argument('venue_id'), $date_from, $date_to);\n }", "public function handle()\n {\n switch ($this->argument('type')){\n case 'fih':\n $scrapper = new Scrappers\\FederationScrapper();\n $scrapper->get($this->option('level'));\n print $scrapper->message();\n break;\n }\n }", "public function handle()\n {\n Log::info(\"seed:dash Command is working fine!\");\n $this->info('Dashboard Database seeding completed successfully.');\n }", "public function handle()\n {\n $originalId = $this->argument('original_id');\n\n $status = true;\n if ($this->option('status') === 'false') {\n $status = false;\n }\n\n if ($video = Video::where('original_id', $originalId)->first()) {\n $video->dmca_claim = $status;\n $video->save();\n\n $this->info('Video\\'s dmca_claim set to: ' . json_encode($status));\n return ;\n }\n\n $this->error('No video found with original_id of: ' . $originalId);\n return;\n }", "public function handle()\n {\n $this->call('config:clear');\n\n $this->call('config:update');\n\n $this->info('Configuration cached successfully!');\n }", "public function handle()\n {\n //\n $modelName = $this->argument('model');\n $column = $this->argument('column');\n $this->generateMutation($modelName, $column);\n\n }", "public function handle()\n {\n $filePath = 'public/' . $this->argument('fileName');\n $count = $this->argument('count');\n \n $fileData = array_slice(file($filePath), 0, $count);\n $this->info(implode('', $fileData));\n }", "public function handle()\n {\n $email = $this->argument('email');\n\n Mail::to($email)->send(new SendMailable('Test Mail'));\n\n if (Mail::failures()) {\n $this->info('Email failed to send');\n } else {\n $this->info('Email successfully sent');\n }\n }", "public function handle()\n {\n $this->call('route:trans:clear');\n\n $this->cacheRoutesPerLocale();\n\n $this->info('Routes cached successfully for all locales!');\n }", "public function handle()\n {\n $this->info('Welcome to command for Bantenprov\\WilayahIndonesia package');\n }", "public function handle()\n {\n if($this->hasOption('no_dump') && $this->option('no_dump')){\n $this->composer_dump = false;\n }\n $this->readyDatas();\n $this->datas['startSymbol']='{{';\n $this->datas['endSymbol']='}}';\n $this->create();\n }", "public function handle()\n {\n $repository = new OglasiCrawlerRepository();\n $ads = $repository->getAds();\n $repository->saveAds($ads);\n\n echo 'Ads were successfully retrieved' . PHP_EOL;\n }", "public function handle()\n {\n $this->makeDir($this->basePath . $this->kebabPlural());\n\n $this->exportViews();\n\n $this->info('Resource views generated successfully.');\n }", "public function handle()\n {\n $movies = \\App\\Models\\Movie::whereNull('meta')->take(40)->orderBy('id')->get();\n $movies->each(function($movie){ sleep(1); $movie->getMeta(); });\n return Command::SUCCESS;\n }", "public function handle()\n {\n $this->packageGenerator->setConsole($this)\n ->setPackage($this->argument('package'))\n ->setType('shipping')\n ->setForce($this->option('force'))\n ->generate();\n }", "public function handle()\n {\n $test = $this->argument('test');\n\n $dir = config('speed-test.dir');\n\n $className = ucfirst(\\Str::camel($test));\n\n $namespace = config('speed-test.namespace');\n\n $class = class_entity($className)\n ->namespace($namespace);\n\n $class->method('speed1')\n ->line($this->option('line'))->doc(function ($doc) use ($className) {\n /** @var DocumentorEntity $doc */\n $doc->tagCustom('times', $this->option('times'));\n $doc->description($this->option('description') ?: \"{$className} Speed 1\");\n });\n\n if (! is_dir($dir)) {\n mkdir($dir, 0777, 1);\n }\n\n file_put_contents(\n $dir.'/'.$className.'.php',\n $class->wrap('php')\n );\n\n $this->info('Speed created!');\n\n return 0;\n }", "public function handle()\n {\n $message = $this->GenerateRandomUser($this->argument('count'));\n $this->info($message);\n }", "public function handle()\n {\n $host = Cache::get('executingHost', null);\n $this->info(\"Host: ${host}\");\n\n if ($host === null) {\n $this->info('実行するホストが選択されていません');\n return;\n }\n\n if (Schema::hasTable('companies') && Company::count() !== 0) {\n $this->info('マイグレーションが既に1回以上実行されています');\n return;\n }\n\n $should_execute = $host === $this->argument('executingHost');\n\n if ($should_execute) {\n Artisan::call('migrate:fresh', ['--seed' => true]);\n $this->info('マイグレーションが完了しました');\n\n Cache::forget('executingHost');\n } else {\n $this->info('別ホストにてマイグレーションが行われます');\n }\n }", "public function handle()\n {\n // Configuration...\n $this->callSilent('vendor:publish', ['--tag' => 'model-login-config']);\n\n // Migrations\n $this->callSilent('vendor:publish', ['--tag' => 'model-login-migrations']);\n\n $this->info('Model Login resources published.');\n }", "public function handle()\n {\n if ($this->validation()) {\n $money = $this->argument('money');\n Cache::increment('amount', $money);\n }\n }", "public function handle()\n {\n $this->info('Publishing stuff..');\n\n $this->publishFiles();\n\n $this->info('Setup complete. Enjoy!');\n }", "public function handle()\n {\n $this->publishConfig();\n $this->publishClassStub();\n $this->generateAndStoreKey();\n\n $this->info('Use the details below for your \"Lead delivery options\" in Google Ads.');\n $this->info('Webhook URL: ' . route('GoogleAdsLeadExtensionController@index'));\n $this->info('Key: ' . $this->generated_key);\n }", "public function handle()\n {\n $opts = $this->options();\n $args = $this->arguments();\n #print_r($opts);\n #print_r($args);\n\n # Redundant as argument validation handled by Laravel\n #\n if (!isset($args['destination'])) {\n printf(\"Usage: php artisan %s\\n\", $this->signature);\n exit(1);\n }\n\n # Default to normal message type\n #\n if (!isset($opts['type'])) {\n $opts['type'] = 'normal';\n }\n\n $uac = new UserApiController();\n\n if ($opts['type'] == 'normal') {\n if (!isset($opts['message'])) {\n printf(\"Usage: php artisan %s\\n\\n\", $this->signature);\n printf(\"ERROR: Message must be specified for type 'normal'\\n\");\n exit(1);\n }\n $result = $uac->sendSms(\n $args['destination'],\n $opts['message'],\n $opts['route']\n );\n }\n else if ($opts['type'] == 'otp') {\n $result = $uac->sendVerificationSms(\n $args['destination'],\n '<code>',\n '<name>',\n $opts['route'],\n '<appName>'\n );\n }\n\n if ($result === true) {\n printf(\"INFO: SMS message to %s sent successfully (%s)\\n\",\n $args['destination'], $opts['type']);\n }\n else {\n printf(\"INFO: SMS message to %s failed to send (%s)\\n\", \n $args['destination'], $opts['type']);\n printf(\"ERROR: %s\\n\", $result);\n }\n\n return;\n }" ]
[ "0.6469962", "0.6463639", "0.64271367", "0.635053", "0.63190264", "0.62747604", "0.6261977", "0.6261908", "0.6235821", "0.62248456", "0.62217945", "0.6214421", "0.6193356", "0.61916095", "0.6183878", "0.6177804", "0.61763877", "0.6172579", "0.61497146", "0.6148907", "0.61484164", "0.6146793", "0.6139144", "0.61347336", "0.6131662", "0.61164206", "0.61144686", "0.61109483", "0.61082935", "0.6105106", "0.6103338", "0.6102162", "0.61020017", "0.60962653", "0.6095482", "0.6091584", "0.60885274", "0.6083864", "0.6082142", "0.6077832", "0.60766655", "0.607472", "0.60739267", "0.607275", "0.60699606", "0.6069931", "0.6068753", "0.6067665", "0.6061175", "0.60599935", "0.6059836", "0.605693", "0.60499364", "0.60418284", "0.6039709", "0.6031963", "0.6031549", "0.6027515", "0.60255647", "0.60208166", "0.6018581", "0.60179937", "0.6014668", "0.60145515", "0.60141796", "0.6011772", "0.6008498", "0.6007883", "0.60072047", "0.6006732", "0.60039204", "0.6001778", "0.6000803", "0.59996396", "0.5999325", "0.5992452", "0.5987503", "0.5987503", "0.5987477", "0.5986996", "0.59853584", "0.5983282", "0.59804505", "0.5976757", "0.5976542", "0.5973796", "0.5969228", "0.5968169", "0.59655035", "0.59642595", "0.59635514", "0.59619296", "0.5960217", "0.5955025", "0.5954439", "0.59528315", "0.59513766", "0.5947869", "0.59456027", "0.5945575", "0.5945031" ]
0.0
-1
Loads image as stream from flysystem and creates an Imagine Data object
public function load(StorageItem $storageItem) : bool { return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function loadImage()\n\t{\n\t\tswitch ($this->type) {\n\t\t\tcase 1:\n\t\t\t\t$this->ImageStream = @imagecreatefromgif($this->sFileLocation);\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\t$this->ImageStream = @imagecreatefromjpeg($this->sFileLocation);\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\t$this->ImageStream = @imagecreatefrompng($this->sFileLocation);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\t$this->printError('invalid imagetype');\n\t\t}\n\n\t\tif (!$this->ImageStream) {\n\t\t\t$this->printError('image not loaded');\n\t\t}\n\t}", "private function create_img_stream()\n {\n $this->img = imagecreate(L_IMG_WIDTH,L_IMG_HEIGHT);\n }", "public static function mla_process_stream_image() {\r\n\t\tself::_mla_debug_add( 'MLAImageProcessor::mla_process_stream_image REQUEST = ' . var_export( $_REQUEST, true ) );\r\n\t\tif ( ! class_exists( 'Imagick' ) ) {\r\n\t\t\tself::_mla_die( 'Imagick not installed', __LINE__, 500 );\r\n\t\t}\r\n\r\n\t\tif( ini_get( 'zlib.output_compression' ) ) { \r\n\t\t\tini_set( 'zlib.output_compression', 'Off' );\r\n\t\t}\r\n\r\n\t\t$file = $_REQUEST['mla_stream_file'];\r\n\t\tif ( ! is_file( $file ) ) {\r\n\t\t\tself::_mla_die( 'File not found', __LINE__, 404 );\r\n\t\t}\r\n\r\n\t\t$use_mutex = isset( $_REQUEST['mla_single_thread'] );\r\n\t\t$width = isset( $_REQUEST['mla_stream_width'] ) ? abs( intval( $_REQUEST['mla_stream_width'] ) ) : 0;\r\n\t\t$height = isset( $_REQUEST['mla_stream_height'] ) ? abs( intval( $_REQUEST['mla_stream_height'] ) ) : 0;\r\n\t\t$type = isset( $_REQUEST['mla_stream_type'] ) ? $_REQUEST['mla_stream_type'] : 'image/jpeg';\r\n\t\t$quality = isset( $_REQUEST['mla_stream_quality'] ) ? abs( intval( $_REQUEST['mla_stream_quality'] ) ) : 0;\r\n\t\t$frame = isset( $_REQUEST['mla_stream_frame'] ) ? abs( intval( $_REQUEST['mla_stream_frame'] ) ) : 0;\r\n\t\t$resolution = isset( $_REQUEST['mla_stream_resolution'] ) ? abs( intval( $_REQUEST['mla_stream_resolution'] ) ) : 72;\r\n\t\t/*\r\n\t\t * If mla_ghostscript_path is present, a non-standard GS location can be found in a file written by\r\n\t\t * the [mla_gallery] shortcode processor.\r\n\t\t */\r\n\t\t$ghostscript_path = isset( $_REQUEST['mla_ghostscript_path'] ) ? $_REQUEST['mla_ghostscript_path'] : '';\r\n\t\tif ( ! empty( $ghostscript_path ) ) {\r\n\t\t\t$ghostscript_path = @file_get_contents( dirname( __FILE__ ) . '/' . 'mla-ghostscript-path.txt' );\r\n\t\t}\r\n\r\n\t\tif ( $use_mutex ) {\r\n\t\t\t$temp_file = self::_get_temp_file();\r\n\t\t\t@unlink( $temp_file );\r\n\t\t\t$temp_file = pathinfo( $temp_file, PATHINFO_DIRNAME ) . '/mla-mutex.txt';\r\n\r\n\t\t\t$mutex = new MLAMutex();\r\n\t\t\t$mutex->init( 1, $temp_file );\r\n\t\t\t$mutex->acquire();\r\n\t\t\tself::_mla_debug_add( 'MLAImageProcessor::mla_process_stream_image begin file = ' . var_export( $file, true ) );\r\n\t\t}\r\n\r\n\t\t/*\r\n\t\t * Convert the file to an image format and load it\r\n\t\t */\r\n\t\ttry {\r\n\t\t\tself::$image = new Imagick();\r\n\r\n\t\t\t/*\r\n\t\t\t * this must be called before reading the image, otherwise has no effect - \r\n\t\t\t * \"-density {$x_resolution}x{$y_resolution}\"\r\n\t\t\t * this is important to give good quality output, otherwise text might be unclear\r\n\t\t\t * default resolution is 72,72\r\n\t\t\t */\r\n\t\t\tself::$image->setResolution( $resolution, $resolution );\r\n\r\n\t\t\t//$result = false;\r\n\t\t\t$result = self::_ghostscript_convert( $file, $frame, $resolution, $type, $ghostscript_path );\r\n\r\n\t\t\tif ( false === $result ) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tself::$image->readImage( $file . '[' . $frame . ']' );\r\n\t\t\t\t}\r\n\t\t\t\tcatch ( Exception $e ) {\r\n\t\t\t\t\tself::$image->readImage( $file . '[0]' );\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif ( 'image/jpeg' == $type ) {\r\n\t\t\t\t\t$extension = 'JPG';\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$extension = 'PNG';\r\n\t\t\t\t}\r\n\r\n\t\t\t\tself::$image->setImageFormat( $extension );\r\n\t\t\t}\r\n\r\n\t\t\tif ( ! self::$image->valid() ) {\r\n\t\t\t\tself::_mla_die( 'File not loaded', __LINE__, 404 );\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch ( Exception $e ) {\r\n\t\t\tself::_mla_die( 'Image load exception: ' . $e->getMessage(), __LINE__, 404 );\r\n\t\t}\r\n\r\n\t\t/*\r\n\t\t * Prepare the output image; resize and flatten, if necessary\r\n\t\t */\r\n\t\ttry {\r\n\t\t\tif ( isset( $_REQUEST['mla_stream_fit'] ) ) {\r\n\t\t\t\t$best_fit = ( '1' == $_REQUEST['mla_stream_fit'] );\r\n\t\t\t} else {\r\n\t\t\t\t$best_fit = false;\r\n\t\t\t}\r\n\r\n\t\t\tself::_prepare_image( $width, $height, $best_fit, $type, $quality );\r\n\t\t\t}\r\n\t\tcatch ( Exception $e ) {\r\n\t\t\tself::_mla_die( '_prepare_image exception: ' . $e->getMessage(), __LINE__, 500 );\r\n\t\t}\r\n\r\n\t\t/*\r\n\t\t * Stream the image back to the requestor\r\n\t\t */\r\n\t\ttry {\r\n\t\t\theader( \"Content-Type: $type\" );\r\n\t\t\techo self::$image->getImageBlob();\r\n\t\t}\r\n\t\tcatch ( Exception $e ) {\r\n\t\t\tself::_mla_die( 'Image stream exception: ' . $e->getMessage(), __LINE__, 500 );\r\n\t\t}\r\n\r\n\t\tif ( $use_mutex ) {\r\n\t\t\t$mutex->release();\r\n\t\t}\r\n\r\n\t\texit();\r\n\t}", "public function initFromBinary($data): InterventionImage\n {\n return $this->initFromVips(VipsImage::newFromBuffer($data));\n }", "public function load()\n {\n $size = @getimagesize($this->file);\n if (!$size) {\n throw new \\Exception(sprintf('Could not read image size of the file #%s', $this->file));\n }\n $this->type = $size[2];\n if (!is_file($this->file) && !preg_match('|^https?:#|', $this->file)) {\n throw new \\Exception(sprintf('File #%s doesn&#8217;t exist?', $this->file));\n }\n $this->image = @imagecreatefromstring(file_get_contents($this->file));\n if (!is_resource($this->image)) {\n throw new \\Exception(sprintf('File #%s is not an image.', $this->file));\n }\n $this->updateSize($size[0], $size[1]);\n $this->mime_type = $size['mime'];\n\n return $this;\n }", "public function getImage() {}", "public function getImage();", "public function getImage();", "public function getImage();", "public function getImage();", "private function _openImage($value)\n {\n if (!extension_loaded(\"gd\")) {\n /** Bear_Filter_Image_Exception_GdExtensionNotLoaded */\n require_once \"Bear/Filter/Image/Exception/GdExtensionNotLoaded.php\";\n\n throw new Bear_Filter_Image_Exception_GdExtensionNotLoaded();\n }\n\n if (!file_exists($value)) {\n /** Bear_Filter_Image_Exception_FileNotFound */\n require_once \"Bear/Filter/Image/Exception/FileNotFound.php\";\n\n throw new Bear_Filter_Image_Exception_FileNotFound($value);\n }\n\n $blob = @file_get_contents($value);\n if (!$blob) {\n /** Bear_Filter_Image_Exception_CouldNotReadFile */\n require_once \"Bear/Filter/Image/Exception/CouldNotReadFile.php\";\n\n throw new Bear_Filter_Image_Exception_CouldNotReadFile($value);\n }\n\n $gd = @imagecreatefromstring($blob);\n if (!$gd) {\n /** Bear_Filter_Image_Exception_CouldNotLoadFile */\n require_once \"Bear/Filter/Image/Exception/CouldNotLoadFile.php\";\n\n throw new Bear_Filter_Image_Exception_CouldNotLoadFile($value);\n }\n\n return $gd;\n }", "protected function _load_image()\n {\n if ( ! is_resource($this->_image))\n {\n // Gets create function\n $create = $this->_create_function;\n\n // Open the temporary image\n $this->_image = $create($this->file);\n\n // Preserve transparency when saving\n imagesavealpha($this->_image, TRUE);\n }\n }", "public function getImageResource()\n {\n return imagecreatefromstring($this->getRaw());\n }", "function loadData ($image,$mime) {\r\n if ( in_array($mime,$this->types) ) {\r\n $this->source=imagecreatefromstring($image);\r\n $this->sourceWidth=imagesx($this->source);\r\n $this->sourceHeight=imagesy($this->source);\r\n $this->sourceMime=$mime;\r\n $this->initThumb();\r\n return true;\r\n } else {\r\n trigger_error('Image MIME type '.$mime.' not supported');\r\n return false;\r\n }\r\n }", "function showImage()\n\t{\n\t\tif (!$this->ImageStream) {\n\t\t\t$this->printError('image not loaded');\n\t\t}\n\n\t\tswitch ($this->type) {\n\t\t\tcase 1:\n\t\t\t\timagegif($this->ImageStream);\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\timagejpeg($this->ImageStream);\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\timagepng($this->ImageStream);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\t$this->printError('invalid imagetype');\n\t\t}\n\t}", "public static function loadExternal($uri)\n {\n // create the Gateway object\n $gateway = new Gateway();\n // set our url\n $gateway->init($uri);\n // set some options\n $gateway->setopt(CURLOPT_HEADER, false);\n $gateway->setopt(CURLOPT_RETURNTRANSFER, true);\n $gateway->setopt(CURLOPT_FOLLOWLOCATION, true);\n $gateway->setopt(CURLOPT_MAXREDIRS, Image::CURL_MAXREDIRS);\n // get the raw body response, ignore errors\n $response = @$gateway->exec();\n $info = $gateway->getInfoLast();\n\n if ($response === false || (int)$info['http_code'] !== 200) {\n throw new JIT\\JITException(sprintf('Error reading external image <code>%s</code>. Please check the URI.', $uri));\n }\n\n // clean up\n $gateway->flush();\n\n // Symphony 2.4 enhances the TMP constant so it can be relied upon\n $temppath = tempnam(TMP, 'IMAGE');\n\n if (!@file_put_contents($temppath, $response)) {\n General::deleteFile($temppath);\n throw new JIT\\JITException(sprintf('Error writing to temporary file <code>%s</code>.', $dest));\n }\n\n // Load the image as a local resource\n $image = static::load($temppath);\n\n // This will insure that the temp file gets deleted later on\n $image->_temppath = $temppath;\n\n return $image;\n }", "private function createImageResource()\n {\n // We are currently using vips_image_new_from_file(), but we could consider\n // calling vips_jpegload / vips_pngload instead\n $result = /** @scrutinizer ignore-call */ vips_image_new_from_file($this->source, []);\n if ($result === -1) {\n /*throw new ConversionFailedException(\n 'Failed creating new vips image from file: ' . $this->source\n );*/\n $message = /** @scrutinizer ignore-call */ vips_error_buffer();\n throw new ConversionFailedException($message);\n }\n\n if (!is_array($result)) {\n throw new ConversionFailedException(\n 'vips_image_new_from_file did not return an array, which we expected'\n );\n }\n\n if (count($result) != 1) {\n throw new ConversionFailedException(\n 'vips_image_new_from_file did not return an array of length 1 as we expected ' .\n '- length was: ' . count($result)\n );\n }\n\n $im = array_shift($result);\n return $im;\n }", "public function __construct(ImagineInterface $imagine)\n {\n $this->imagine = $imagine;\n }", "private function loadExfiData()\n\t{\n\t\t$exifData = @exif_read_data($this->data['path']);\n\t\t$result = $this->flattenArray(\"exfi\",$exifData,\":\");\n\n\t\t//var_dump($result);\n\n\t\tforeach($result as $key=>$value)\n\t\t{\t \n\t\t\t$this->metadata[$key] = $value;\n\t\t}\n\t//var_dump($this->metadata);\n\t\t//var_dump($exifData);\n\n\t}", "function wp_stream_image($image, $mime_type, $attachment_id)\n {\n }", "public function __construct($image)\n {\n $this->image = imagecreatefromstring($image);\n }", "function read_image_descriptor()\r\n\t{\r\n\t\t/* Reset global variables */\r\n\t\t$this->buffer = array();\r\n\t\t$this->fou = '';\r\n\r\n\t\t/* Header -> GIF89a */\r\n\t\t$this->fou .= \"\\x47\\x49\\x46\\x38\\x39\\x61\";\r\n\r\n\t\t$this->getbytes(9);\r\n for($i = 0; $i < 9; $i++)\r\n $this->image_descriptor[$i] = $this->buffer[$i];\r\n\r\n $local_color_table_flag = ($this->buffer[8] & 0x80) ? TRUE : FALSE;\r\n if($local_color_table_flag)\r\n {\r\n \t$code = ($this->buffer[8] & 0x07);\r\n \t$sorted = ($this->buffer[8] & 0x20) ? TRUE : FALSE;\r\n }\r\n else\r\n {\r\n $code = $this->global_color_table_code;\r\n $sorted = $this->global_sorted;\r\n }\r\n\r\n $size = 2 << $code;\r\n\r\n $this->logical_screen_descriptor[4] &= 0x70;\r\n $this->logical_screen_descriptor[4] |= 0x80;\r\n $this->logical_screen_descriptor[4] |= $code;\r\n\r\n if($sorted)\r\n\t\t\t$this->logical_screen_descriptor [4] |= 0x08;\r\n\t\t$this->putbytes($this->logical_screen_descriptor, 7);\r\n\r\n\t\tif($local_color_table_flag)\r\n\t\t{\r\n\t\t\t$this->getbytes(3 * $size);\r\n $this->putbytes($this->buffer, 3 * $size);\r\n\t\t}\r\n\t\telse\r\n\t\t\t$this->putbytes($this->global, 3 * $size);\r\n\r\n\t\t$this->fou .= \"\\x2C\";\r\n\r\n\t\t$this->image_descriptor[8] &= 0x40;\r\n\r\n\t\t$this->putbytes($this->image_descriptor, 9);\r\n\r\n /* LZW minimum code size */\r\n\t\t$this->getbytes(1);\r\n\t\t$this->putbytes($this->buffer, 1);\r\n\r\n\t\t/* Image Data */\r\n for(;;)\r\n {\r\n \t$this->getbytes(1);\r\n\t\t\t$this->putbytes($this->buffer, 1);\r\n if(($u = $this->buffer[0]) == 0)\r\n \tbreak;\r\n $this->getbytes($u);\r\n $this->putbytes($this->buffer, $u);\r\n }\r\n\r\n\t\t/* trailer */\r\n\t\t$this->fou .= \"\\x3B\";\r\n\r\n\t\t/* Write to file */\r\n\t\tswitch($this->fm)\r\n\t\t{\r\n\t\t\t/* Write as BMP */\r\n\t\t\tcase \"BMP\":\r\n\t\t\t\t$im = imageCreateFromString($this->fou);\r\n\t\t\t\t$framename = $this->sp . $this->image_count++ . \".bmp\";\r\n\t\t\t\tif(!$this->imageBmp($im, $framename))\r\n\t\t\t\t{\r\n\t\t\t\t\t$this->es = \"error #3\";\r\n\t\t\t\t\treturn(0);\r\n\t\t\t\t}\r\n\t\t\t\timageDestroy($im);\r\n\t\t\tbreak;\r\n /* Write as PNG */\r\n\t\t\tcase \"PNG\":\r\n\t\t\t\t$im = imageCreateFromString($this->fou);\r\n\t\t\t\t$framename = $this->sp . $this->image_count++ . \".png\";\r\n\t\t\t\tif(!imagePng($im, $framename))\r\n\t\t\t\t{\r\n\t\t\t\t\t$this->es = \"error #3\";\r\n\t\t\t\t\treturn(0);\r\n\t\t\t\t}\r\n\t\t\t\timageDestroy($im);\r\n\t\t\tbreak;\r\n\t\t\t/* Write as JPG */\r\n\t\t\tcase \"JPG\":\r\n\t\t\t\t$im = imageCreateFromString($this->fou);\r\n\t\t\t\t$framename = $this->sp . $this->image_count++ . \".jpg\";\r\n\t\t\t\tif(!imageJpeg($im, $framename))\r\n\t\t\t\t{\r\n\t\t\t\t\t$this->es = \"error #3\";\r\n\t\t\t\t\treturn(0);\r\n\t\t\t\t}\r\n\t\t\t\timageDestroy($im);\r\n\t\t\tbreak;\r\n\t\t\t/* Write as GIF */\r\n\t\t\tcase \"GIF\":\r\n\t\t\t\t$im = imageCreateFromString($this->fou);\r\n\t\t\t\t$framename = $this->sp . $this->image_count++ . \".gif\";\r\n\t\t\t\tif(!imageGif($im, $framename))\r\n\t\t\t\t{\r\n\t\t\t\t\t$this->es = \"error #3\";\r\n\t\t\t\t\treturn(0);\r\n\t\t\t\t}\r\n\t\t\t\timageDestroy($im);\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}", "public function load_image()\n\t{\n if (file_exists($this->local_file)) {\n $image_size = $this->image_size();\n if (preg_match('/jpeg/', $image_size['mime'])) {\n $file = imagecreatefromjpeg($this->local_file);\n } elseif (preg_match('/gif/', $image_size['mime'])) {\n $file = imagecreatefromgif($this->local_file);\n } elseif (preg_match('/png/', $image_size['mime'])) {\n $file = imagecreatefrompng($this->local_file);\n } else {\n \t$file = null;\n }\n return $file;\n }\n\t}", "public function load($resource)\n {\n if (strpos($resource, 'http') === 0) {\n $content = $this->loadExternalImage($resource);\n $this->image->readImageBlob($content);\n } else {\n $fullPath = $this->basePath .'/'. $resource;\n $this->image->readImage($fullPath);\n }\n\n return $this->image;\n }", "function metaInit () {\n $this->imageMeta = new ImageMeta($this->getImagePath());\n $this->imageMeta->getMeta();\n }", "public function loadFromString($data, $name = null)\n {\n if (null === $this->resource) {\n $this->resource = new \\Imagick();\n }\n $this->resource->readImageBlob($data);\n\n if (null !== $name) {\n $this->name = $name;\n }\n\n switch ($this->resource->getImageColorspace()) {\n case \\Imagick::COLORSPACE_GRAY:\n $this->colorspace = self::IMAGE_GRAY;\n break;\n case \\Imagick::COLORSPACE_RGB:\n case \\Imagick::COLORSPACE_SRGB:\n $this->colorspace = self::IMAGE_RGB;\n break;\n case \\Imagick::COLORSPACE_CMYK:\n $this->colorspace = self::IMAGE_CMYK;\n break;\n }\n\n $this->format = strtolower($this->resource->getImageFormat());\n if ($this->resource->getImageColors() < 256) {\n $this->indexed = true;\n }\n\n if ((strpos($this->format, 'jp') !== false) && function_exists('exif_read_data')) {\n $exif = @exif_read_data('data://image/jpeg;base64,' . base64_encode($data));\n if ($exif !== false) {\n $this->exif = $exif;\n }\n }\n\n return $this;\n }", "protected function processImage() {}", "public function load()\n\t{\n\t\tif (!$this->isValidImage()) {\n\t\t\treturn false;\n\t\t}\n\n\t\t$this->image = new SimpleImage();\n\n\t\t$this->image->fromFile($this->source_path);\n\n\t\treturn true;\n\t}", "public function decode(): AbstractEntity\n {\n $gif = new GifDataStream();\n\n $gif->setHeader(Header::decode($this->handle));\n $gif->setLogicalScreen(LogicalScreen::decode($this->handle));\n while (! feof($this->handle)) {\n if ($block = $this->decodeNextDataBlock()) {\n $gif->addData($block);\n }\n }\n\n return $gif;\n }", "protected function loadImage()\n {\n if (!is_resource($this->tmpImage)) {\n $create = $this->createFunctionName;\n $this->tmpImage = $create($this->filePath);\n imagesavealpha($this->tmpImage, true);\n }\n }", "public function __construct($fileName = null, array $options = array(), $isDataStream = false)\n {\n if (!extension_loaded('gd')) {\n throw $this->triggerError('The GD extension must be loaded before using this thumbnail interface!');\n }\n\n $this->filename = $fileName;\n $this->isDataStream = $isDataStream;\n\n if (!empty($this->filename)) {\n $this->readImage($fileName);\n }\n $this->setOptions($options);\n }", "public function createResource()\n {\n $this->resource = new \\Imagick();\n }", "public function load($name = null)\n {\n $filename = null;\n if (null !== $name) {\n $filename = ((strpos($name, '[') !== false) && (strpos($name, ']') !== false)) ?\n substr($name, 0, strpos($name, '[')) : $name;\n $this->name = $name;\n }\n\n if ((null === $this->name) || ((null !== $filename) && !file_exists($filename))) {\n throw new Exception('Error: The image file has not been passed to the image adapter');\n }\n\n if (null !== $this->resource) {\n $this->resource->readImage($this->name);\n } else {\n $this->resource = new \\Imagick($this->name);\n }\n\n $this->width = $this->resource->getImageWidth();\n $this->height = $this->resource->getImageHeight();\n\n switch ($this->resource->getImageColorspace()) {\n case \\Imagick::COLORSPACE_GRAY:\n $this->colorspace = self::IMAGE_GRAY;\n break;\n case \\Imagick::COLORSPACE_RGB:\n case \\Imagick::COLORSPACE_SRGB:\n $this->colorspace = self::IMAGE_RGB;\n break;\n case \\Imagick::COLORSPACE_CMYK:\n $this->colorspace = self::IMAGE_CMYK;\n break;\n }\n\n $this->format = strtolower($this->resource->getImageFormat());\n if ($this->resource->getImageColors() < 256) {\n $this->indexed = true;\n }\n\n if ((strpos($this->format, 'jp') !== false) && function_exists('exif_read_data')) {\n $exif = @exif_read_data($this->name);\n if ($exif !== false) {\n $this->exif = $exif;\n }\n }\n\n return $this;\n }", "public function make()\n {\n return new FrontendImage($this->data['public_path'] . '/' . $this->data['name']);\n }", "public function __construct($gd_image) {}", "public function image();", "public function image();", "function loadFile ($image) {\r\n if ( !$dims=@GetImageSize($image) ) {\r\n trigger_error('Could not find image '.$image);\r\n return false;\r\n }\r\n if ( in_array($dims['mime'],$this->types) ) {\r\n $loader=$this->imgLoaders[$dims['mime']];\r\n $this->source=$loader($image);\r\n $this->sourceWidth=$dims[0];\r\n $this->sourceHeight=$dims[1];\r\n $this->sourceMime=$dims['mime'];\r\n $this->initThumb();\r\n return true;\r\n } else {\r\n trigger_error('Image MIME type '.$dims['mime'].' not supported');\r\n return false;\r\n }\r\n }", "public function __construct($file)\n {\n try\n {\n // Get the real path to the file\n $file = realpath($file);\n\n // Get the image information\n $info = getimagesize($file);\n }\n catch (Exception $e)\n {\n // Ignore all errors while reading the image\n }\n\n if (empty($file) OR empty($info))\n {\n // throw new Exception('Not an image or invalid image: :file',\n // array(':file' => Kohana::debug_path($file)));\n return '';\n }\n\n // Store the image information\n $this->file = $file;\n $this->width = $info[0];\n $this->height = $info[1];\n $this->type = $info[2];\n $this->mime = image_type_to_mime_type($this->type);\n\n // Set the image creation function name\n switch ($this->type)\n {\n case IMAGETYPE_JPEG:\n $create = 'imagecreatefromjpeg';\n break;\n case IMAGETYPE_GIF:\n $create = 'imagecreatefromgif';\n break;\n case IMAGETYPE_PNG:\n $create = 'imagecreatefrompng';\n break;\n }\n\n if ( ! isset($create) OR ! function_exists($create))\n {\n // throw new Exception('Installed GD does not support :type images',\n // array(':type' => image_type_to_extension($this->type, FALSE)));\n }\n\n // Save function for future use\n $this->_create_function = $create;\n\n // Save filename for lazy loading\n $this->_image = $this->file;\n }", "private function generateThumbnailImagick(){\n\t}", "protected function readImage(): void\n {\n // set default path\n $path = $this->pathFile;\n\n // handle caching\n if (!empty($this->pathCache)) {\n // write / refresh cache file if necessary\n if (!$this->isCached()) {\n $this->writeCache();\n }\n\n // replace path if file is cached\n if ($this->isCached()) {\n $path = $this->pathCache;\n }\n }\n\n // get image information\n $read = @getimagesize($path);\n if (false === $read) {\n throw new \\RuntimeException(\n sprintf(\n \"Couldn't read image at %s\",\n $path\n )\n );\n }\n\n // detect image type\n switch ($read[2]) {\n case IMAGETYPE_GIF:\n $this->image = @imagecreatefromgif($path);\n\n break;\n\n case IMAGETYPE_JPEG:\n $this->image = @imagecreatefromjpeg($path);\n\n break;\n\n case IMAGETYPE_PNG:\n $this->image = @imagecreatefrompng($path);\n\n break;\n\n default:\n // image type not supported\n throw new \\UnexpectedValueException(\n sprintf(\n 'Image type %s not supported',\n image_type_to_mime_type($read[2])\n )\n );\n }\n\n if (false === $this->image) {\n throw new \\RuntimeException(\n sprintf(\n \"Couldn't read image at %s\",\n $path\n )\n );\n }\n\n // set image dimensions\n $this->width = $read[0];\n $this->height = $read[1];\n\n // set mime type\n $this->mimeType = $read['mime'];\n\n // set modified date\n $this->modified = @filemtime($path);\n }", "static function open(LocalFile $image) {\n\t\t$img = self::_getLoader()->open($image);\n\t\t$img->setDestination($image);\n\n\t\t// extract the format\n\t\t$format = self::str($image->getKey())->explode('.')->last()->caseLower()->val();\n\t\t$img->setFormat($format);\n\n\t\treturn $img;\n\t}", "public function stream()\r\n\t{\r\n\t\tif(empty($this->img))\r\n\t\t{\r\n\t\t\t$this->render();\r\n\t\t}\r\n\t\theader('Content-type: image/png');\r\n\t\timagepng($this->img);\r\n\t}", "public function initFromPath($path): InterventionImage\n {\n $options = [];\n\n if ($accessMode = \\getenv('VIPS_ACCESS_MODE')) {\n $options['access'] = $accessMode;\n }\n\n $image = $this->initFromVips(VipsImage::newFromFile($path, $options));\n $image->setFileInfoFromPath($path);\n\n return $image;\n }", "protected function getLiipImagineService()\n {\n $this->services['liip_imagine'] = $instance = new \\Imagine\\Gd\\Imagine();\n\n $instance->setMetadataReader(new \\Imagine\\Image\\Metadata\\ExifMetadataReader());\n\n return $instance;\n }", "public function __construct() {\n parent::__construct(WS_PHIS_PATH, \"images\");\n }", "function imageAccess($file, $mime) \n{ \n $contents = file_get_contents($file);\n $base64 = base64_encode($contents); \n return ('data:' . $mime . ';base64,' . $base64);\n}", "private function createImageResource()\n {\n // In case of failure, image will be false\n\n $mimeType = $this->getMimeTypeOfSource();\n\n if ($mimeType == 'image/png') {\n $image = imagecreatefrompng($this->source);\n if ($image === false) {\n throw new ConversionFailedException(\n 'Gd failed when trying to load/create image (imagecreatefrompng() failed)'\n );\n }\n return $image;\n }\n\n if ($mimeType == 'image/jpeg') {\n $image = imagecreatefromjpeg($this->source);\n if ($image === false) {\n throw new ConversionFailedException(\n 'Gd failed when trying to load/create image (imagecreatefromjpeg() failed)'\n );\n }\n return $image;\n }\n\n /*\n throw new InvalidInputException(\n 'Unsupported mime type:' . $mimeType\n );*/\n }", "protected function loadImageResource()\n {\n if(empty($this->resource))\n {\n if(($this->worker === NULL || $this->worker === $this::WORKER_IMAGICK) && self::imagickAvailable())\n {\n $this->resource = $this->createImagick($this->image);\n }\n elseif(($this->worker === NULL || $this->worker === $this::WORKER_GD) && self::gdAvailable())\n {\n $this->resource = $this->getGdResource($this->image);\n }\n else\n {\n throw new Exception('Required extensions missing, extension GD or Imagick is required');\n }\n }\n }", "public function create() {\n\t\t$implementationClassName = 'Imagine\\\\' . $this->settings['driver'] . '\\Imagine';\n\t\treturn new $implementationClassName();\n\t}", "public function __construct($image)\n {\n $this->image = $image;\n }", "public function display() { ImageLib::serve($this->source_image, $this->source_image_mimetype); }", "public function uploadImage()\n {\n if (null === $this->fileimage) {\n return;\n }\n\n $upload = new Upload();\n $this->image = $upload->createName(\n $this->fileimage->getClientOriginalName(),\n $this->getUploadRootDir().'/',\n array('tmp/','miniature/')\n );\n\n $imagine = new Imagine();\n\n /* Tmp */\n $size = new Box(1920,1080);\n $imagine->open($this->fileimage)\n ->thumbnail($size, 'inset')\n ->save($this->getUploadRootDir().'tmp/'.$this->image);\n\n /* Miniature */\n $size = new Box(300,300);\n $imagine->open($this->fileimage)\n ->thumbnail($size, 'outbound')\n ->save($this->getUploadRootDir().'miniature/'.$this->image);\n\n }", "public function getImagineService()\n {\n return $this->imagine;\n }", "static public function forge($path){\n\t\t// Prepare\n\t\t$excludes=array('AbstractAdapter.php','AdapterInterface.php');\n\t\t// Browse adapters\n\t\tforeach(lessdir(__DIR__.'/Adapter') as $file){\n\t\t\tif(in_array($file,$excludes)){\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t$class='Imagix\\Adapter\\\\'.pathinfo($file,PATHINFO_FILENAME);\n\t\t\tif($class::supports($path)){\n\t\t\t\treturn new Image(new $class($path));\n\t\t\t}\n\t\t}\n\t\t// No adapter found\n\t\tthrow new Exception(\"'$path' image file is not supported\");\n\t}", "public function getImageResource()\n {\n // Get existing resource\n if ($this->image) {\n return $this->image;\n }\n\n // Load container\n $assetContainer = $this->getAssetContainer();\n if (!$assetContainer) {\n return null;\n }\n\n // Avoid repeat load of broken images\n $hash = $assetContainer->getHash();\n $variant = $assetContainer->getVariant();\n if ($this->hasFailed($hash, $variant)) {\n return null;\n }\n\n // Validate stream is readable\n // Note: Mark failed regardless of whether a failed stream is exceptional or not\n $error = self::FAILED_MISSING;\n try {\n $stream = $assetContainer->getStream();\n if ($this->isStreamReadable($stream)) {\n $error = null;\n } else {\n return null;\n }\n } finally {\n if ($error) {\n $this->markFailed($hash, $variant, $error);\n }\n }\n\n // Handle resource\n $error = self::FAILED_UNKNOWN;\n try {\n // write the file to a local path so we can extract exif data if it exists.\n // Currently exif data can only be read from file paths and not streams\n $tempPath = $this->config()->get('local_temp_path') ?? TEMP_PATH;\n $path = tempnam($tempPath ?? '', 'interventionimage_');\n if ($extension = pathinfo($assetContainer->getFilename() ?? '', PATHINFO_EXTENSION)) {\n //tmpnam creates a file, we should clean it up if we are changing the path name\n unlink($path ?? '');\n $path .= \".\" . $extension;\n }\n $bytesWritten = file_put_contents($path ?? '', $stream);\n // if we fail to write, then load from stream\n if ($bytesWritten === false) {\n $resource = $this->getImageManager()->make($stream);\n } else {\n $this->setTempPath($path);\n $resource = $this->getImageManager()->make($path);\n }\n\n // Fix image orientation\n try {\n $resource->orientate();\n } catch (NotSupportedException $e) {\n // noop - we can't orientate, don't worry about it\n }\n\n $this->setImageResource($resource);\n $this->markSuccess($hash, $variant);\n $this->warmCache($hash, $variant);\n $error = null;\n return $resource;\n } catch (NotReadableException $ex) {\n // Handle unsupported image encoding on load (will be marked as failed)\n // Unsupported exceptions are handled without being raised as exceptions\n $error = self::FAILED_INVALID;\n } finally {\n if ($error) {\n $this->markFailed($hash, $variant, $error);\n }\n }\n return null;\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 createImage()\n {\n if ($this->resize) {\n\n // get the resize dimensions\n $height = (int)array_get($this->resizeDimensions, 'new_height', 320);\n\n $width = (int)array_get($this->resizeDimensions, 'new_width', 240);\n\n if ($this->fit) {\n return Image::make($this->originalPath)->fit($width, $height)\n ->save(base_path() . $this->storageLocation . '/' . $this->uniqueName, $this->imgQuality);\n } else {\n return Image::make($this->originalPath)->resize($width, $height)\n ->save(base_path() . $this->storageLocation . '/' . $this->uniqueName, $this->imgQuality);\n }\n\n } else {\n\n return Image::make($this->originalPath)\n ->save(base_path() . $this->storageLocation . '/' . $this->uniqueName, $this->imgQuality);\n }\n }", "function getImage();", "public function getImageOutputStream() {\n\t\t\t//Send Modified Header\n\t\t\theader(\"Content-Type: image/png\");\n\t\t\t\n\t\t\t//Output Image and destroy the Stream\n\t\t\timagepng($this->image);\n\t\t\timagedestroy($this->image);\n\t\t}", "function load($filename)\n {\n $image_info = getimagesize($filename);\n $this->image_type = $image_info[2];\n //crea la imagen JPEG.\n if( $this->image_type == IMAGETYPE_JPEG ) \n {\n $this->image = imagecreatefromjpeg($filename);\n } \n //crea la imagen GIF.\n elseif( $this->image_type == IMAGETYPE_GIF ) \n {\n $this->image = imagecreatefromgif($filename);\n } \n //Crea la imagen PNG\n elseif( $this->image_type == IMAGETYPE_PNG ) \n {\n $this->image = imagecreatefrompng($filename);\n }\n }", "public function _create($path)\n\t{\n\t\tif (!is_readable($path)) {\n\t\t\tthrow new \\Exception(\"Cannot open image file '\" . $path . \"'.\");\n\t\t}\n\t\t$img = null;\n\t\tswitch (exif_imagetype($path)) {\n\t\t\tcase IMAGETYPE_PNG:\n\t\t\t\t$img = imagecreatefrompng($path);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tthrow new \\Exception(\"Cannot read image type from file '\" . $path . \"'.\");\n\t\t}\n\t\tif (!$img) {\n\t\t\tthrow new \\Exception(\"Could not create image from file '\" . $path . \"'.\");\n\t\t}\n\t\treturn $img;\n\t}", "function open_image($file) {\n\t\t$im = @imagecreatefromjpeg($file);\n\t\tif ($im !== false) { return $im; }\n\t\t# GIF:\n\t\t$im = @imagecreatefromgif($file);\n\t\tif ($im !== false) { return $im; }\n\t\t# PNG:\n\t\t$im = @imagecreatefrompng($file);\n\t\tif ($im !== false) { return $im; }\n\t\t# GD File:\n\t\t$im = @imagecreatefromgd($file);\n\t\tif ($im !== false) { return $im; }\n\t\t# GD2 File:\n\t\t$im = @imagecreatefromgd2($file);\n\t\tif ($im !== false) { return $im; }\n\t\t# WBMP:\n\t\t$im = @imagecreatefromwbmp($file);\n\t\tif ($im !== false) { return $im; }\n\t\t# XBM:\n\t\t$im = @imagecreatefromxbm($file);\n\t\tif ($im !== false) { return $im; }\n\t\t# XPM:\n\t\t$im = @imagecreatefromxpm($file);\n\t\tif ($im !== false) { return $im; }\n\t\t# Try and load from string:\n\t\t$im = @imagecreatefromstring(file_get_contents($file));\n\t\tif ($im !== false) { return $im; }\n\t\treturn false;\n\t}", "private function image_data($path, $mime){\n\n if (!strstr($mime, 'image/')) {\n return false;\n }\n\n if($mime=='image/png'){ $src_img = imagecreatefrompng($path); }\n else if($mime=='image/jpeg' or $mime=='image/jpg' or $mime=='image/pjpeg') {\n $src_img = imagecreatefromjpeg($path);\n }\n else $src_img = false;\n return $src_img;\n }", "function saveImage()\n\t{\n\n\t\tif (!$this->ImageStream) {\n\t\t\t$this->printError('image not loaded');\n\t\t}\n\n\t\tswitch ($this->type) {\n\t\t\tcase 1:\n\t\t\t\t/* store a interlaced gif image */\n\t\t\t\tif ($this->interlace === true) {\n\t\t\t\t\timageinterlace($this->ImageStream, 1);\n\t\t\t\t}\n\n\t\t\t\timagegif($this->ImageStream, $this->sFileLocation);\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\t/* store a progressive jpeg image (with default quality value)*/\n\t\t\t\tif ($this->interlace === true) {\n\t\t\t\t\timageinterlace($this->ImageStream, 1);\n\t\t\t\t}\n\n\t\t\t\timagejpeg($this->ImageStream, $this->sFileLocation, $this->jpegquality);\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\t/* store a png image */\n\t\t\t\timagepng($this->ImageStream, $this->sFileLocation);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\t$this->printError('invalid imagetype');\n\n\t\t\t\tif (!file_exists($this->sFileLocation)) {\n\t\t\t\t\t$this->printError('file not stored');\n\t\t\t\t}\n\t\t}\n\t}", "public function parse(): void\n {\n $compression = $this->file->readShort();\n $this->parseImageData($compression);\n }", "public function openImage($src)\n {\n $this->path=substr($src,0,strlen($src)-strlen(strstr($src, '.')));\n $this->imageSuffix=substr(strstr($src, '.'),1);\n $info=getimagesize($src);\n $this->imageX=$info[0];\n $this->imageY=$info[1];\n $this->imageInfo=$info;\n $type=image_type_to_extension($info[2],false);\n $this->imageType=$type;\n $createImageType='imagecreatefrom'.$type;\n $this->image=$createImageType($src);\n }", "protected function getImageService() {}", "public function getImageFrame($request)\n {\n $returnType = '\\SplFileObject';\n $isBinary = true;\n $hasReturnType = true;\n $request = $this->getHttpRequest($request, 'GET');\n $options = $this->createHttpClientOptions();\n \n try {\n $response = $this->client->send($request, $options);\n return $this->processResponse($request, $response, $hasReturnType, $returnType, $isBinary);\n } catch (RequestException $e) {\n $this->processException($e);\n }\n }", "public function loadFile($thumbnail, $image)\n {\n // on failure, use identify instead\n $imgData = @getimagesize($image);\n if (!$imgData)\n {\n exec($this->magickCommands['identify'].' '.escapeshellarg($image), $stdout, $retval);\n if ($retval === 1)\n {\n throw new Exception('Image could not be identified.');\n }\n else\n {\n // get image data via identify\n list($img, $type, $dimen) = explode(' ', $stdout[0]);\n list($width, $height) = explode('x', $dimen);\n\n $this->sourceWidth = $width;\n $this->sourceHeight = $height;\n $this->sourceMime = $this->mimeMap[strtolower($type)];\n }\n }\n else\n {\n // use image data from getimagesize()\n $this->sourceWidth = $imgData[0];\n $this->sourceHeight = $imgData[1];\n $this->sourceMime = $imgData['mime'];\n }\n $this->image = $image;\n\n // open file resource\n $source = fopen($image, 'r');\n\n $this->source = $source;\n\n $thumbnail->initThumb($this->sourceWidth, $this->sourceHeight, $this->maxWidth, $this->maxHeight, $this->scale, $this->inflate);\n\n return true;\n }", "public function create()\n {\n return $this->imageFactory->create();\n }", "public function load_image($https = false)\n {\n return $this->load(\"image\", $https);\n }", "public function loadRaw()\n {\n $this->raw = $this->reader->raw($this->path);\n $this->rawLoaded = true;\n }", "public function action_image()\n\t{\n\t\t//Image::load(DOCROOT.'/files/04_2021/79199dcc06baf4cc230262fcbb4d1094.jpg')->preset('mypreset', DOCROOT.'/files/04_2021/ea7e8ed4bc9d6f7c03f5f374e30b183b.png');\n\t\t$image = Image::forge();\n\n\t\t// Or with optional config\n\t\t$image = Image::forge(array(\n\t\t\t\t'quality' => 80\n\t\t));\n\t\t$image->load(DOCROOT.'/files/04_2021/79199dcc06baf4cc230262fcbb4d1094.jpg')\n\t\t\t\t\t->crop_resize(200, 200)\n\t\t\t\t\t->rounded(100)\n\t\t\t\t\t->output();\n\t\t// Upload an image and pass it directly into the Image::load method.\n\t\tUpload::process(array(\n\t\t\t'path' => DOCROOT.DS.'files'\n\t\t));\n\n\t\tif (Upload::is_valid())\n\t\t{\n\t\t\t$data = Upload::get_files(0);\n\n\t\t\t// Using the file upload data, we can force the image's extension\n\t\t\t// via $force_extension\n\t\t\tImage::load($data['file'], false, $data['extension'])\n\t\t\t\t\t->crop_resize(200, 200)\n\t\t\t\t\t->save('image');\n\t\t} \n\t}", "public function image()\n {\n return pov()->img($this->localPath());\n }", "public function convertImage($request)\n {\n $returnType = '\\SplFileObject';\n $isBinary = true;\n $hasReturnType = true;\n $request = $this->getHttpRequest($request, 'GET');\n $options = $this->createHttpClientOptions();\n \n try {\n $response = $this->client->send($request, $options);\n return $this->processResponse($request, $response, $hasReturnType, $returnType, $isBinary);\n } catch (RequestException $e) {\n $this->processException($e);\n }\n }", "function getBlob();", "public function loadObject($resource, $type = null)\n {\n $data = $this->load($resource, $type);\n $processor = new Processor();\n $configuration = new \\derhasi\\boxfile\\Config\\Definition\\BoxfileConfiguration();\n $processedData = $processor->processConfiguration($configuration, $data);\n\n return new Boxfile($processedData);\n\n }", "function image_data_uri($image, $max_width = 0)\n{\n $info = image_info($image);\n if (!$info['type']) {\n return $image;\n }\n if ($info['type'] == 'file') {\n $image = file_get_contents($image);\n }\n if ($max_width && $max_width < $info['width']) {\n $image = image_scale_blob($image, $info, $max_width, 'crop');\n $info = image_info($image);\n }\n return sprintf('data:%s;base64,%s', $info['mime'], base64_encode($image));\n}", "protected function makeThumbnails()\n {\n $sizes = [\n 'image_211' => [\n 'width' => 211,\n 'mode' => ImageInterface::THUMBNAIL_OUTBOUND,\n ],\n ];\n $data = $this->image;\n if (!$data) {\n return;\n }\n\n if (is_string($data)) {\n $tempFile = tempnam('/tmp', 'temp_');\n file_put_contents($tempFile, $data);\n $data = fopen($tempFile, 'r+');\n }\n\n if (stream_get_contents($data) == '') {\n return;\n }\n\n fseek($data, 0);\n $sourceImage = @ImagineImage::getImagine()->read($data);\n foreach ($sizes as $sizeName => $size) {\n $thumbnailAttributeName = $sizeName;\n if (!empty($size['width'])) {\n $width = $size['width'];\n if ($width < 0) {\n $originalWidgth = $sourceImage->getSize()->getWidth();\n if (-$originalWidgth < $width * 4) {\n $width = $sourceImage->getSize()->getWidth() + $width;\n } else {\n $width = $originalWidgth;\n }\n }\n } else {\n $width = null;\n }\n\n if (!empty($size['height'])) {\n $height = $size['height'];\n if ($height < 0) {\n $originalHeight = $sourceImage->getSize()->getHeight();\n if (-$originalHeight < $height * 4) {\n $height = $sourceImage->getSize()->getHeight() + $height;\n } else {\n $height = $originalHeight;\n }\n }\n } else {\n $height = null;\n }\n\n if (!empty($size['mode'])) {\n $mode = $size['mode'];\n } else {\n $mode = ImageInterface::THUMBNAIL_INSET;\n }\n\n BaseImage::$thumbnailBackgroundAlpha = 0;\n $image = ImagineImage::thumbnail($sourceImage, $width, $height, $mode);\n\n if (!empty($size['watermark'])) {\n $watermark = fopen($size['watermark'], 'r+');\n $watermark = ImagineImage::thumbnail($watermark, $image->getSize()->getWidth(), $image->getSize()->getHeight(), ManipulatorInterface::THUMBNAIL_OUTBOUND);\n $watermark = ImagineImage::crop($watermark, $image->getSize()->getWidth(), $image->getSize()->getHeight());\n\n $image = ImagineImage::watermark($image, $watermark);\n }\n\n $fileName = tempnam(sys_get_temp_dir(), 'test');\n $image->save($fileName, [\n 'format' => $this->image_extension,\n ]);\n\n $thumbData = fopen($fileName, 'r+');\n $this->$thumbnailAttributeName = $thumbData;\n }\n\n fseek($data, 0);\n }", "private function _ImagickInit()\n\t{\n\t\t$this->bg = new Imagick(\"images/backgrounds/halo_bg.png\"); //create the background image\n\t\t$this->weapon = new Imagick($this->weaponAsset . str_replace('{size}', 'large', $this->haloXML->FavoriteWeaponImageUrl->AssetUrl)); //create the weapon image\n\t\t$this->emblem = new Imagick($this->emblemAsset . str_replace('{size}', '120', $this->haloXML->EmblemImageUrl->AssetUrl)); //create the emblem image\n\t\t$this->profile = new Imagick($this->profileAsset); //create the profile image\n\t\t$this->text = new ImagickDraw(); //create the text object\n\t\t$this->bigText = new ImagickDraw(); //create the weapon text object\n\n\t\t//set up the settings for our text\n\t\t$this->text->setFillColor('white');\n\t\t$this->text->setFont('fonts/Quicksand.otf');\n\t\t$this->text->setFontSize(10);\n\n\t\t//set up the settings for our weapon text\n\t\t$this->bigText->setFillColor('white');\n\t\t$this->bigText->setFont('fonts/Quicksand.otf');\n\t\t$this->bigText->setFontSize(22);\n\t}", "public function run()\n {\n\t $avatar = <<<'EOD'\ndata:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD//gA+Q1JFQVRPUjogZ2QtanBlZyB2MS4wICh1c2luZyBJSkcgSlBFRyB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M8N/C6HBDCvZ7Fi9sjN1K0UVzV90dNHYugCnhRRRWKNgPUU5Tk0UUxkgGCad3xRRQMYeppjDiiigCBwM0xlFFFICN0AzxUQGSaKKYx+wYp6oo6CiimIfgcVKhycUUUASLSFiBRRQIbnJppFFFAiNh3rA8V3Elvo07Rtg7etFFOO5MtjyZiWfJ703viiiuw4gHSng4oooAntbqe1nWWCVo3HRlNeq+CPE+p32IbmRZAO5HNFFIb2PS0O5QT1qYcA0UUiB68ipFHNFFAEg6UucUUUASAZp2KKKADvTl560UUAHSiiigD//Z\nEOD;\n DB::table('users')->insert([\n\t 'name' => 'Paul Warren',\n\t 'email' => 'pwarren@eresources.id',\n 'password' => bcrypt('123123'),\n\t 'avatar' => $avatar,\n\t ]);\n }", "public function saveAsset()\n {\n if(!empty($this->uploadedFile))\n {\n // If file is exist -> remove him\n if(file_exists($this->getFilePath()))\n {\n unlink($this->getFilePath());\n }\n $this->genFilename();\n $imagine = Image::getImagine()->open($this->uploadedFile->tempName);\n }\n else\n {\n if(file_exists($this->getFilePath())) {\n $imagine = Image::getImagine()->open($this->getFilePath());\n } else return false;\n }\n\n $size = $imagine->getSize();\n $box = $this->getImageBox($size);\n\n if (($size->getWidth() <= $box->getWidth() && $size->getHeight() <= $box->getHeight()) || (!$box->getWidth() && !$box->getHeight())) {\n $widthDiff = abs($size->getWidth() - $box->getWidth()) / $size->getWidth();\n $heightDiff = abs($size->getHeight() - $box->getHeight()) / $size->getHeight();\n if($widthDiff > $heightDiff) {\n $resizeBox = new Box($box->getWidth(), $size->getHeight() * $box->getWidth()/$size->getWidth());\n } else {\n $resizeBox = new Box($size->getWidth() * $box->getHeight()/$size->getHeight(), $box->getHeight());\n }\n $imagine->resize($resizeBox);\n\n // var_dump($width);\n // var_dump($height);\n // die;\n // // $imagine->crop($point, $box);\n // $imagine->save($this->getFilePath());\n // return $this->save(false);\n }\n\n $imagine = $imagine->thumbnail($box, ManipulatorInterface::THUMBNAIL_OUTBOUND);\n $imagine->save($this->getFilePath());\n\n // create empty image to preserve aspect ratio of thumbnail\n // $thumb = Image::getImagine()->create($box, new Color('FFF', 100));\n\n // // calculate points\n // $startX = 0;\n // $startY = 0;\n // if ($size->getWidth() < $box->getWidth()) {\n // $startX = ceil($box->getWidth() - $size->getWidth()) / 2;\n // }\n // if ($size->getHeight() < $box->getHeight()) {\n // $startY = ceil($box->getHeight() - $size->getHeight()) / 2;\n // }\n\n // $thumb->paste($img, new Point($startX, $startY));\n // $thumb->save($this->getFilePath());\n\n return $this->save(false);\n }", "private function write_image($m)\n {\n $mr = new \\eol_schema\\MediaResource();\n \n if(!@$m['sciname']) {\n // print_r($m);\n $m['sciname'] = \"Cephalopoda\";\n $taxonID = 8;\n }\n \n $taxonID = '';\n if(isset($this->taxon_scinames[$m['sciname']])) $taxonID = $this->taxon_scinames[$m['sciname']];\n else {\n $this->debug['undefined sciname'][$m['sciname']] = '';\n }\n \n $mr->taxonID = $taxonID;\n $mr->identifier = pathinfo($m['media_url'], PATHINFO_BASENAME);\n $mr->format = Functions::get_mimetype($m['media_url']);\n $mr->type = Functions::get_datatype_given_mimetype($mr->format);\n $mr->language = 'en';\n $mr->furtherInformationURL = $m['source_url'];\n $mr->accessURI = $m['media_url'];\n // $mr->CVterm = $o['subject'];\n $mr->Owner = @$m['creator'];\n // $mr->rights = $o['dc_rights'];\n // $mr->title = $o['dc_title'];\n $mr->UsageTerms = $m['license'];\n $mr->description = self::concatenate_desc($m);\n // $mr->LocationCreated = $o['location'];\n // $mr->bibliographicCitation = $o['dcterms_bibliographicCitation'];\n // if($reference_ids = @$this->object_reference_ids[$o['int_do_id']]) $mr->referenceID = implode(\"; \", $reference_ids);\n if($agent_ids = self::create_agent(@$m['creator'])) $mr->agentID = implode(\"; \", $agent_ids);\n if(!isset($this->object_ids[$mr->identifier])) {\n $this->archive_builder->write_object_to_file($mr);\n $this->object_ids[$mr->identifier] = '';\n }\n // print_r($mr); exit;\n }", "function ps_open_memory_image($psdoc, $gd)\n{\n}", "public function testImportFromStream() {\n\t\t$transit = new Transit('stream.jpg');\n\t\t$transit->setDirectory(TEMP_DIR);\n\n\t\t// Nothing in stream\n\t\ttry {\n\t\t\t$transit->importFromStream();\n\t\t\t$this->assertTrue(false);\n\n\t\t} catch (Exception $e) {\n\t\t\t$this->assertTrue(true);\n\t\t}\n\t}", "protected function getLiipImagine_Binary_Loader_Prototype_StreamService()\n {\n return $this->services['liip_imagine.binary.loader.prototype.stream'] = new \\Liip\\ImagineBundle\\Binary\\Loader\\StreamLoader('', '');\n }", "public function create_from_binary_data($data);", "public function loadFrom($path)\n {\n // Avoid repeat load of broken images\n $hash = sha1($path ?? '');\n if ($this->hasFailed($hash, null)) {\n return $this;\n }\n\n // Handle resource\n $error = self::FAILED_UNKNOWN;\n try {\n $this->setImageResource($this->getImageManager()->make($path));\n $this->markSuccess($hash, null);\n $error = null;\n } catch (NotReadableException $ex) {\n // Handle unsupported image encoding on load (will be marked as failed)\n // Unsupported exceptions are handled without being raised as exceptions\n $error = self::FAILED_INVALID;\n } finally {\n if ($error) {\n $this->markFailed($hash, null, $error);\n }\n }\n\n return $this;\n }", "public static function image() {\n return new Media_Image();\n }", "protected static function createImagine()\n {\n foreach ((array) static::$driver as $driver) {\n switch ($driver) {\n case self::DRIVER_GMAGICK:\n if (class_exists('Gmagick', false)) {\n return new \\Imagine\\Gmagick\\Imagine();\n }\n break;\n case self::DRIVER_IMAGICK:\n if (class_exists('Imagick', false)) {\n return new \\Imagine\\Imagick\\Imagine();\n }\n break;\n case self::DRIVER_GD2:\n if (function_exists('gd_info')) {\n return new \\Imagine\\Gd\\Imagine();\n }\n break;\n default:\n throw new InvalidConfigException(\"Unknown driver: $driver\");\n }\n }\n throw new InvalidConfigException('Your system does not support any of these drivers: ' . implode(',', (array) static::$driver));\n }", "public function getImage()\n {\n // merge text options with generation options\n $queryArgs = array_merge(\n $this->getOptions(),\n array(\n \t'text' => $this->getText(),\n )\n );\n \n $url = self::GENERATOR_SERVICE_URL . '?' . http_build_query($queryArgs);\n \n // Set curl options and execute the request\n $ch = curl_init();\n curl_setopt($ch, CURLOPT_URL, $url);\n curl_setopt($ch, CURLOPT_HEADER, 0);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); \n\n $result = curl_exec($ch);\n \n // if the request fails, throw exception\n if ($result === false) {\n require_once 'Ncstate/Brand/Exception.php';\n throw new Ncstate_Brand_Exception('CURL Error: ' . curl_error($ch));\n }\n \n $im = imagecreatefromstring($result);\n curl_close($ch); \n \n return $this->_store($im);\n }", "public static function load($image)\n {\n return new Adapter\\Gd($image);\n }", "public static function load($name) {\n\t $name = str_replace(\"\\\\\", DS, $name);\n\t\t$imagineBase = \\Configure::read('Imagine.base');\n\t\tif (empty($imagineBase)) {\n\t\t\t$imagineBase = \\CakePlugin::path('Imagine') . 'Vendor' . DS . 'Imagine' . DS . 'lib' . DS;\n\t\t}\n\n\t\t$filePath = $imagineBase . $name . '.php';\n\t\tif (file_exists($filePath)) {\n\t\t\trequire_once($filePath);\n\t\t\treturn;\n\t\t}\n\n\t\t$imagineBase = $imagineBase . 'Image' . DS;\n\t\tif (file_exists($imagineBase . $name . '.php')) {\n\t\t\trequire_once($imagineBase . $name . '.php');\n\t\t\treturn;\n\t\t}\n\t}", "public function testGetImageInfoFromBlob()\n {\n $imgBlob = file_get_contents($this->_testImagePath);\n $imgInfo = Tinebase_ImageHelper::getImageInfoFromBlob($imgBlob);\n \n $this->assertEquals($this->_testImageData['width'], $imgInfo['width']);\n }", "function open_image ($file) {\r\n global $type;\r\n $size=getimagesize($file);\r\n switch($size[\"mime\"]){\r\n case \"image/jpeg\":\r\n $im = imagecreatefromjpeg($file); //jpeg file\r\n break;\r\n case \"image/gif\":\r\n $im = imagecreatefromgif($file); //gif file\r\n break;\r\n case \"image/png\":\r\n $im = imagecreatefrompng($file); //png file\r\n break;\r\n default: \r\n $im=false;\r\n break;\r\n }\r\n return $im;\r\n}", "public static function initFromPath( $path )\n {\n if ( file_exists( $path ) && !is_dir( $path ) ) {\n\n $imageSizeInfos = getImageSize( $path );\n $mimeContentType = explode( '/', $imageSizeInfos[ 'mime' ] );\n $mimeContentType = $mimeContentType[ 1 ];\n\n switch ( $mimeContentType ) {\n case 'jpeg':\n $image = imageCreateFromJPEG( $path );\n break;\n\n case 'gif':\n $image = imageCreateFromGIF( $path );\n break;\n\n case 'png':\n $image = imageCreateFromPNG( $path );\n break;\n\n default:\n throw new ImageWorkshopException( 'Not an image file (jpeg/png/gif) at \"' . $path . '\"', static::ERROR_NOT_AN_IMAGE_FILE );\n break;\n }\n\n return new ImageWorkshopLayer( $image );\n }\n\n throw new ImageWorkshopException( 'No such file found at \"' . $path . '\"', static::ERROR_IMAGE_NOT_FOUND );\n }", "public function imagen()\n {\n return $this->morphOne(Imagen::class, 'imageable');\n }", "public static function getImagine()\n {\n if (self::$_imagine === null) {\n self::$_imagine = static::createImagine();\n }\n\n return self::$_imagine;\n }", "public function createImageFrame($request)\n {\n $returnType = '\\SplFileObject';\n $isBinary = true;\n $hasReturnType = true;\n $request = $this->getHttpRequest($request, 'POST');\n $options = $this->createHttpClientOptions();\n \n try {\n $response = $this->client->send($request, $options);\n return $this->processResponse($request, $response, $hasReturnType, $returnType, $isBinary);\n } catch (RequestException $e) {\n $this->processException($e);\n }\n }", "public function rutaImageFly()\n {\n\n // primero vemos a que galeria pertenece\n $galeria = ORM::factory( 'Galeria', $this->galeria );\n\n return( $galeria->rutaImageFly().$this->imagen );\n\n }" ]
[ "0.68072325", "0.6346376", "0.603399", "0.5681165", "0.56774634", "0.56086075", "0.5576243", "0.5576243", "0.5576243", "0.5576243", "0.5572619", "0.55468345", "0.55085105", "0.5499346", "0.5499099", "0.5479674", "0.5458158", "0.5382165", "0.53616476", "0.5306986", "0.5293722", "0.5292009", "0.5278758", "0.5243851", "0.5232307", "0.5230939", "0.5216532", "0.5214116", "0.52090025", "0.5198797", "0.5189665", "0.51796216", "0.51645577", "0.5158921", "0.5121896", "0.5090971", "0.5090971", "0.50836957", "0.5060233", "0.5058791", "0.50394297", "0.50393", "0.5038553", "0.50313157", "0.5024454", "0.50211567", "0.5016981", "0.5008499", "0.49860898", "0.49745184", "0.49659288", "0.49554843", "0.49521378", "0.49511182", "0.49509746", "0.4948191", "0.4924874", "0.4919515", "0.49150246", "0.49102974", "0.49028426", "0.49019235", "0.4900744", "0.48922426", "0.4890579", "0.48861817", "0.48855317", "0.48842368", "0.48824567", "0.4878132", "0.48750958", "0.4872135", "0.48703593", "0.48494506", "0.48486406", "0.48482758", "0.48368374", "0.48365968", "0.48324627", "0.48257113", "0.48208675", "0.4815709", "0.4812408", "0.4809021", "0.48083428", "0.47988248", "0.47982594", "0.47945714", "0.4793573", "0.4789241", "0.4787942", "0.47872224", "0.47576332", "0.47520342", "0.47472998", "0.47463727", "0.4744375", "0.47427633", "0.47378278", "0.4735345", "0.4733267" ]
0.0
-1
Returns URL of the website (root of CMS installation) with / suffix & http:// prefix
public static function getWebsiteURL(){ if(Cache::isStored('website_url'))return Cache::get('website_url'); $row = getDatabase()->queryFirstRow("SELECT `value` FROM `settings` WHERE `setting` = 'website_url'"); $url = $row['value']; #http:// prefix if(!is_numeric(strpos($url, "http://"))){ $url = 'http://' . $url; } #/ suffix if(substr($url, -1) != '/'){ $url .= '/'; } Cache::store('website_url', $url); return $url; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function siteURL(): string\n {\n return sprintf(\"%s://%s\", Request::scheme(), Request::host());\n }", "private function site_url()\n\t{\n\t\t$protocol = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' || $_SERVER['SERVER_PORT'] == 443)\n\t\t\t? \"https://\"\n\t\t\t: \"http://\";\n\t\t$domainName = $_SERVER['HTTP_HOST'];\n\n\t\treturn $protocol.$domainName;\n\t}", "public function url(){\n $protocol = \"http://\";\n if ( !empty( $_SERVER['HTTPS'] ) ) {\n $protocol = \"https://\";\n }\n $url = $protocol . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];\n return $url;\n }", "static public function selfURL()\r\n {\r\n //global $cfgSite;\r\n $cfgSite = Warecorp_Config_Loader::getInstance()->getAppConfig('cfg.site.xml');\r\n $s = empty($_SERVER[\"HTTPS\"]) ? '' : ($_SERVER[\"HTTPS\"] == \"on\") ? \"s\" : \"\";\r\n $protocol = self::strleft(strtolower($_SERVER[\"SERVER_PROTOCOL\"]), \"/\").$s;\r\n if ($cfgSite->use_port_in_URL == '1') {\r\n $port = ($_SERVER[\"SERVER_PORT\"] == \"80\") ? \"\" : (\":\".$_SERVER[\"SERVER_PORT\"]);\r\n } else {$port = '';}\r\n return $protocol.\"://\".$_SERVER['SERVER_NAME'].$port.$_SERVER['REQUEST_URI'];\r\n }", "function baseUrl(){\n return sprintf(\n \"%s://%s\",\n isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off' ? 'https' : 'http',\n $_SERVER['SERVER_NAME']\n );\n }", "function siteURL()\n{\n $protocol = 'http://';\n $domainName = $_SERVER['HTTP_HOST'].'/';\n return $protocol.$domainName;\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}", "public static function getBaseUrl()\n\t{\n\t\tlist($host, $address, $port, $ssl) = MHTTPD::getServerInfo();\n\t\t$url = $ssl ? 'https://' : 'http://';\n\t\t$url .= $host.':'.$port;\n\t\treturn $url;\n\t}", "public function getBaseUrl() {\r\n\t\treturn home_url();\r\n\t}", "public static function getSiteUrl()\n\t{\n\t\t$uri = JUri::getInstance();\n\t\t$base = $uri->toString(array('scheme', 'host', 'port'));\n\n\t\tif (strpos(php_sapi_name(), 'cgi') !== false && !ini_get('cgi.fix_pathinfo') && !empty($_SERVER['REQUEST_URI']))\n\t\t{\n\t\t\t$script_name = $_SERVER['PHP_SELF'];\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$script_name = $_SERVER['SCRIPT_NAME'];\n\t\t}\n\n\t\t$path = rtrim(dirname($script_name), '/\\\\');\n\n\t\tif ($path)\n\t\t{\n\t\t\t$siteUrl = $base . $path . '/';\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$siteUrl = $base . '/';\n\t\t}\n\n\t\tif (JFactory::getApplication()->isClient('administrator'))\n\t\t{\n\t\t\t$adminPos = strrpos($siteUrl, 'administrator/');\n\t\t\t$siteUrl = substr_replace($siteUrl, '', $adminPos, 14);\n\t\t}\n\n\t\treturn $siteUrl;\n\t}", "function getSiteURL()\n\t{\n\t return JURI::root();\n\t}", "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}", "static public function getFull()\n {\n return 'https://' . Config::get('app.Host') . $_SERVER['REQUEST_URI'];\n }", "function get_root_url() {\n return \"http://\" . $_SERVER['HTTP_HOST'] . '/' . ROOT_PATH;\n }", "private function getSystemUrl() : string {\n\n\t\t\tif (empty($_SERVER['HTTP_HOST'])) return CONFIG_SYSTEM_URL;\n\n\t\t\treturn ((Request::isSecure() ? 'https://' : 'http://') . $_SERVER['HTTP_HOST']);\n\t\t}", "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 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}", "function getFullUrl() {\n /*** check for https ***/ /*** return the full address ***/\n return 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];\n }", "private static function getSiteUrl()\n {\n return ( isset( $_SERVER['HTTPS'] ) && $_SERVER['HTTPS'] === 'on' ? \"https\" : \"http\") . \"://\" . $_SERVER['HTTP_HOST'] . ( isset($_SERVER['SCRIPT_URL'] ) ? $_SERVER['SCRIPT_URL'] : '' );\n }", "public function getSiteURL()\n {\n return $this->config->get('site.url').$this->config->get('site.dir');\n }", "public static function getSiteRoot() {\n if (strtolower($_SERVER['SERVER_NAME'])=='www.palmettonewmedia.com') {\n return Config::getHTTPS() . '://www.palmettonewmedia.com/foodfinder';\n }\n else {\n return Config::getHTTPS() . '://' . $_SERVER['SERVER_NAME'];\n }\n }", "public static function rootUrl() {\n\t\treturn self::$_scheme . self::$_host;\n\t}", "function getAbsolutePath() {\n return 'http' . (isset($_SERVER['HTTPS']) ? 's' : '') . '://' . \"{$_SERVER['HTTP_HOST']}/\";\n}", "protected function _getUrl()\n {\n $s = empty($_SERVER['HTTPS']) ? '' : ($_SERVER['HTTPS'] == 'on') ? 's' : '';\n\n $protocol = substr(strtolower($_SERVER['SERVER_PROTOCOL']), 0, strpos(strtolower($_SERVER['SERVER_PROTOCOL']), '/')) . $s;\n\n $port = ($_SERVER['SERVER_PORT'] == '80') ? '' : (':'.$_SERVER['SERVER_PORT']);\n\n return $protocol . '://' . $_SERVER['SERVER_NAME'] . $port . $_SERVER['REQUEST_URI'];\n }", "function getUrl() {\n\t\t$url = @( $_SERVER[\"HTTPS\"] != 'on' ) ? 'http://'.$_SERVER[\"SERVER_NAME\"] : 'https://'.$_SERVER[\"SERVER_NAME\"];\n\t\t$url .= ( $_SERVER[\"SERVER_PORT\"] !== 80 ) ? \":\".$_SERVER[\"SERVER_PORT\"] : \"\";\n\t\t$url .= $_SERVER[\"REQUEST_URI\"];\n\t\treturn $url;\n\t}", "function baseUrl(){\n if(isset($_SERVER['HTTPS'])){\n $protocol = ($_SERVER['HTTPS'] && $_SERVER['HTTPS'] != \"off\") ? \"https\" : \"http\";\n }\n else{\n $protocol = 'http';\n }\n return $protocol . \"://\" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];\n}", "public static function getCoreRoot() {\n if (strtolower($_SERVER['SERVER_NAME'])=='www.palmettonewmedia.com') {\n return Config::getHTTPS() . '//www.palmettonewmedia.com/foodfinder/core';\n }\n else {\n return Config::getHTTPS() . '://' . $_SERVER['SERVER_NAME'] . '/core';\n }\n }", "function url_site(): string\n{\n //return input_server('REQUEST_SCHEME') . '://' . input_server('SERVER_NAME');\n $site = \\get_site_url();\n $pos = strpos($site, '/', 8);\n return $pos ? substr($site, 0, $pos) : $site;\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}", "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 }", "static function obtenerUrlActual() {\n $url = Util::crearUrl($_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']);\n return $url;\n }", "public static function get_url() {\n\t\treturn ( get_bloginfo('wpurl')) . '/wp-content/plugins/' . basename(dirname(__FILE__)) . '/';\n\t}", "public function getOwnURL() \n\t{ \n\t\t$s = empty($_SERVER[\"HTTPS\"]) ? '' : ($_SERVER[\"HTTPS\"] == \"on\") ? \"s\" : \"\"; \n\t\t$protocol = $this->strleft(strtolower($_SERVER[\"SERVER_PROTOCOL\"]), \"/\").$s; \n$port = ($_SERVER[\"SERVER_PORT\"] == \"80\" || $_SERVER[\"SERVER_PORT\"] == \"82\") ? \"\" : (\":\".$_SERVER[\"SERVER_PORT\"]); \n\t\treturn $protocol.\"://\".$_SERVER['SERVER_NAME'].$port.$_SERVER['REQUEST_URI']; \n\t}", "public static function getHostUrl() : String{\n $protocol = stripos($_SERVER['SERVER_PROTOCOL'],'https') === true ? 'https://' : 'http://';\n $host = $_SERVER['HTTP_HOST'];\n $uri = rtrim(dirname($_SERVER['PHP_SELF']), '/\\\\');\n\n return \"$protocol$host$uri\";\n }", "public function url() \n\t{\n\t\treturn static::protocol().'://'.static::host().$this->server('REQUEST_URI', '/' );\n\t}", "protected static function generate_base_url()\n\t{\n\t\t$base_url = parent::generate_base_url();\n\t\treturn str_replace('htdocs/novius-os/', '', $base_url);\n\t}", "public function ___httpUrl() {\n\t\t$page = $this->pagefiles->getPage();\n\t\t$url = substr($page->httpUrl(), 0, -1 * strlen($page->url())); \n\t\treturn $url . $this->url(); \n\t}", "function CurrPageURL() {\n $pageURL = 'http';\n if ($_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 return $pageURL;\n }", "public static function fullUrl() {\n\t\t\t$s = empty($_SERVER['HTTPS']) ? '' : ($_SERVER['HTTPS'] == 'on') ? 's' : '';\n\t\t\t$protocol = substr(strtolower($_SERVER['SERVER_PROTOCOL']), 0, strpos(strtolower($_SERVER['SERVER_PROTOCOL']), '/')) . $s;\n\t\t\t$port = ($_SERVER['SERVER_PORT'] == '80') ? '' : (\":\".$_SERVER['SERVER_PORT']);\n\t\t\treturn $protocol . \"://\" . $_SERVER['HTTP_HOST'] . $port . $_SERVER['REQUEST_URI'];\n\t\t}", "public function getBaseUrl()\n {\n $protocol = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off') ? 'https' : 'http';\n return sprintf(\"%s://%s\", $protocol, $_SERVER['SERVER_NAME']);\n }", "protected function _getURL()\n {\n $s = empty($_SERVER[\"HTTPS\"]) ? '' : ($_SERVER[\"HTTPS\"] == \"on\") ? \"s\" : \"\";\n\n $protocol = substr(\n strtolower($_SERVER[\"SERVER_PROTOCOL\"]), 0, strpos(strtolower($_SERVER[\"SERVER_PROTOCOL\"]), \"/\")\n ) . $s;\n\n $port = ($_SERVER[\"SERVER_PORT\"] == \"80\") ? \"\" : (\":\".$_SERVER[\"SERVER_PORT\"]);\n\n return $protocol.\"://\".$_SERVER['SERVER_NAME'].$port.$_SERVER['REQUEST_URI'];\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}", "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}", "public static function _url() {\n\t\treturn self::pw('pages')->get('pw_template=mpm')->url;\n\t}", "public function getBaseUrl() {\n return (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] && !in_array(strtolower($_SERVER['HTTPS']), array('off', 'no')) ? 'https' : 'http') . '://' . $this->host;\n }", "function get_site_url() {\n\t$protocol = (isSet($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ? 'https' : 'http';\n\treturn $protocol . '://' . $_SERVER['HTTP_HOST'];\n}", "public function baseUrl($suffix = '') {\n $protocol = strpos($_SERVER['SERVER_SIGNATURE'], '443') !== false ? 'https://' : 'http://';\n//$web_root = $protocol . $_SERVER['HTTP_HOST'] . \"/\" . \"Dropbox/odesk/pos/\";\n if ($_SERVER['HTTP_HOST'] == \"localhost\") {\n $web_root = $protocol . $_SERVER['HTTP_HOST'] . \"/\" . \"ticketchaiorg/ticketchai_aj/merchant-dashboard/\";\n } elseif ($_SERVER['HTTP_HOST'] == \"192.168.1.48\") {\n $web_root = $protocol . $_SERVER['HTTP_HOST'] . \"/\" . \"ticketchaiorg/ticketchai_aj/merchant-dashboard/\";\n } \n elseif ($_SERVER['HTTP_HOST'] == \"ticketchai.org\" || $_SERVER['HTTP_HOST'] == \"https://ticketchai.com\" || $_SERVER['HTTP_HOST'] == \"http://ticketchai.com/\" ) {\n $web_root = $protocol . $_SERVER['HTTP_HOST'] . \"/\" . \"ticketchaiorg/merchant-dashboard/\";\n }else {\n $web_root = $protocol . $_SERVER['HTTP_HOST'] . \"/\" . \"ticketchaiorg/merchant-dashboard/\";\n }\n\n $suffix = ltrim($suffix, '/');\n return $web_root . trim($suffix);\n }", "function selfURL() {\n \t$s = empty($_SERVER[\"HTTPS\"]) ? '' : ($_SERVER[\"HTTPS\"] == \"on\") ? \"s\" : \"\";\n \t$protocol = strleft(strtolower($_SERVER[\"SERVER_PROTOCOL\"]), \"/\").$s;\n \t$port = ($_SERVER[\"SERVER_PORT\"] == \"80\") ? \"\" : (\":\".$_SERVER[\"SERVER_PORT\"]);\n\t\treturn $protocol.\"://\".$_SERVER['SERVER_NAME'].$port.$_SERVER['REQUEST_URI'];\n\t}", "function getAppUrl() {\r\n\r\n $url = getHost() . getAppPath();\r\n\r\n return $url;\r\n\r\n }", "public function siteUrl() {}", "static function getSsoUrlRoot(){\n $url = '';\n if( \\Audit::instance()->url(self::getEnvironmentData('CCP_SSO_URL')) ){\n $url = self::getEnvironmentData('CCP_SSO_URL');\n }else{\n $error = sprintf(self::ERROR_CCP_SSO_URL, __METHOD__);\n self::getSSOLogger()->write($error);\n \\Base::instance()->error(502, $error);\n }\n\n return $url;\n }", "public function url()\n\t{\n\t\treturn ($this->secure() ? 'https' : 'http') . '//' . $this->domainName() . $this->uri();\n\t}", "public static function getServiceRoot() {\n if (strtolower($_SERVER['SERVER_NAME'])=='www.palmettonewmedia.com') {\n return Config::getHTTPS() . '://www.palmettonewmedia.com/foodfinder/service';\n }\n else {\n return Config::getHTTPS() .'://' . $_SERVER['SERVER_NAME'] . '/service';\n }\n }", "function getUrl() {\r\n\t$url = @( $_SERVER[\"HTTPS\"] != 'on' ) ? 'http://'.$_SERVER[\"SERVER_NAME\"] : 'https://'.$_SERVER[\"SERVER_NAME\"];\r\n\t$url .= ( $_SERVER[\"SERVER_PORT\"] !== 80 ) ? \":\".$_SERVER[\"SERVER_PORT\"] : \"\";\r\n\t$url .= $_SERVER[\"REQUEST_URI\"];\r\n\treturn $url;\r\n}", "protected function getRootUrl()\n {\n return $this->appConfig->getRootUrl();\n }", "public function getUrl()\n {\n $uri = $this->getHost();\n\n $server = provider::access('server');\n\n if ($server->isExist('PHP_SELF') && $server->isExist('REQUEST_URI') && $server->isValid('REQUEST_URI', validate::T_PRINTABLE)) {\n // for 'good' servers\n $uri .= $server->getValue('REQUEST_URI');\n } else {\n // for IIS\n if ($server->isValid('SCRIPT_NAME', validate::T_PRINTABLE)) {\n $uri .= $server->getValue('SCRIPT_NAME');\n }\n\n if ($server->isValid('QUERY_STRING', validate::T_PRINTABLE)) {\n $uri .= '?' . $server->getValue('QUERY_STRING');\n }\n }\n\n return $uri;\n }", "public function baseUrl($suffix = '') {\n $protocol = strpos($_SERVER['SERVER_SIGNATURE'], '443') !== false ? 'https://' : 'http://';\n //$web_root = $protocol . $_SERVER['HTTP_HOST'] . \"/\" . \"Dropbox/odesk/pos/\";\n if ($_SERVER['HTTP_HOST'] == \"localhost\") {\n $web_root = $protocol . $_SERVER['HTTP_HOST'] . \"/\" . \"ticketchai_aj/tc-merchant-template/\";\n } elseif ($_SERVER['HTTP_HOST'] == \"192.168.1.48\") {\n $web_root = $protocol . $_SERVER['HTTP_HOST'] . \"/\" . \"ticketchai_aj/tc-merchant-template/\";\n } else {\n $web_root = $protocol . $_SERVER['HTTP_HOST'] . \"/\" . \"\";\n }\n\n $suffix = ltrim($suffix, '/');\n return $web_root . trim($suffix);\n }", "public function getUrl() {\n $Url = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] && !in_array(strtolower($_SERVER['HTTPS']), array('off', 'no'))) ? 'https' : 'http';\n // Get domain portion\n $Url .= '://' . $_SERVER['HTTP_HOST'];\n // Get path to script\n $Url .= $_SERVER['REQUEST_URI'];\n // Add path info, if any\n if (!empty($_SERVER['PATH_INFO']))\n $Url .= $_SERVER['PATH_INFO'];\n // Add query string, if any \n if (!empty($_SERVER['QUERY_STRING']))\n $Url .= '?' . ltrim($_SERVER['REQUEST_URI'], '?');\n\n return $Url;\n }", "function site_url()\n {\n return getenv('ROOT');\n }", "public static function baseurl() {\n return stripos($_SERVER['SERVER_PROTOCOL'],'https') === true ? 'https://' : 'http://' . $_SERVER['HTTP_HOST'] . \"/Gym/\";\n }", "public static function get_baseurl()\n {\n }", "public static function getURL() {\n $url = self::getHost() . $_SERVER['REQUEST_URI'];\n return $url;\n }", "function getBaseUrl() {\n\t$baseUrl = ($_SERVER['HTTP_HOST'] == 'development.grafikchaos.com') ? '/catchcod/' : '/';\n\treturn $baseUrl;\n}", "public function getWebsiteURL() {\n return $this->getChaveValor('WEBSITE_URL');\n }", "function curPageURL() {\n $pageURL = 'http';\n if (isset($_SERVER[\"HTTPS\"]) && $_SERVER[\"HTTPS\"] == \"on\") {$pageURL .= \"s\";}\n $pageURL .= \"://\";\n \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 return $pageURL;\n }", "function get_url() {\n $url = isset($_SERVER['HTTPS']) && 'on' === $_SERVER['HTTPS'] ? 'https' : 'http';\n $url .= '://' . $_SERVER['SERVER_NAME'];\n $url .= in_array($_SERVER['SERVER_PORT'], array('80', '443')) ? '' : ':' . $_SERVER['SERVER_PORT'];\n $url .= $_SERVER['REQUEST_URI'];\n return $url;\n}", "public function determineBaseUrl()\n {\n // why this works at all :)\n return dirname($_SERVER['SCRIPT_NAME']);\n }", "function network_site_url($path = '', $scheme = \\null)\n {\n }", "public function getWebRoot() {\n return $GLOBALS['registry']->config[\"siteUrl\"];\n }", "public function getAbsoluteURL(): string\n {\n return uri_join_host($this->public_path);\n }", "function host_url($path=''){\n\treturn sprintf('%s//%s%s',(isset($_SERVER['HTTPS']))?'https:':'http:',$_SERVER['SERVER_NAME'],$path);\n}", "public function getBaseURL(){\n\t\tif($this->htaccess){\n\t\t\treturn \"/\";\n\t\t}\n\t\treturn \"\";\n\t}", "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 }", "function phpfmg_admin_url(){\r\n $http_host = \"http://{$_SERVER['HTTP_HOST']}\";\r\n switch( true ){\r\n case (0 === strpos(PHPFMG_ADMIN_URL, 'http://' )) :\r\n $url = PHPFMG_ADMIN_URL;\r\n break;\r\n case ( '/' == substr(PHPFMG_ADMIN_URL,0,1) ) :\r\n $url = $http_host . PHPFMG_ADMIN_URL ;\r\n break;\r\n default:\r\n $uri = phpfmg_request_uri();\r\n $pos = strrpos( $uri, '/' );\r\n $vdir = substr( $uri, 0, $pos );\r\n $url = $http_host . $vdir . '/' . PHPFMG_ADMIN_URL ;\r\n };\r\n return $url;\r\n}", "public function baseUrl()\n\t{\n\t\techo $_SERVER['SERVER_NAME'];\n\t}", "public function root(): string\n {\n return rtrim($this->getSchemeAndHttpHost() . $this->getBaseUrl(), '/');\n }", "function root_relative_url($input) {\n preg_match('|https?://([^/]+)(/.*)|i', $input, $matches);\n if (!isset($matches[1]) || !isset($matches[2])) {\n return $input;\n } elseif (($matches[1] === $_SERVER['SERVER_NAME']) || $matches[1] === $_SERVER['SERVER_NAME'] . ':' . $_SERVER['SERVER_PORT']) {\n return wp_make_link_relative($input);\n } else {\n return $input;\n }\n}", "public function baseUrl() {\n return dirname($_SERVER['PHP_SELF']) . '/';\n }", "public function getRealUrlAliasBase(): string;", "function public_url() {\n return url(\"/\");\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 }", "function get_url()\n{\n $url = 'http://'.$_SERVER['SERVER_NAME'].'/space';\n return $url;\n}", "public function getCanonicalURL(){\n\t\t$url = $this->getProtocol() . \"://\" . $this->getDomain() . \"/\";\n\t\tif($this->htaccess){\n\t\t\tif(isset($this->request['gameID'])){\n\t\t\t\t$url .= \"game/{$this->request['gameID']}\";\n\t\t\t} elseif(isset($this->get['page'])){\n\t\t\t\t$url .= $this->get['page'];\n\t\t\t}\n\t\t} else {\n\t\t\t$url .= $this->getRootDir() . \"/core.php\";\n\t\t\t$sep = \"?\";\n\t\t\tif(isset($this->get['gameID'])){\n\t\t\t\t$url .= $sep . \"page=game&gameID=\" . $this->request['gameID'];\n\t\t\t\t$sep = \"&\";\n\t\t\t} elseif(isset($this->get['page'])){\n\t\t\t\t$url .= $sep . \"page=\" . $this->get['page'];\n\t\t\t}\n\t\t}\n\t\treturn $url;\n\t}", "public static function curURL() {\n\t\t\t$pageURL = 'http';\n\t\t\tif ($_SERVER[\"HTTPS\"] == \"on\") {$pageURL .= \"s\";}\n\t\t\t\t$pageURL .= \"://\";\n\t\t\tif ($_SERVER[\"SERVER_PORT\"] != \"80\") {\n\t\t\t\t$pageURL .= $_SERVER[\"SERVER_NAME\"].\":\".$_SERVER[\"SERVER_PORT\"].$_SERVER['PHP_SELF'];\n\t\t\t} else {\n\t\t\t\t$pageURL .= $_SERVER[\"SERVER_NAME\"].\"/\";\n\t\t\t}\n\t\t\treturn $pageURL;\n\t\t}", "public function URL()\n\t{\n\t\treturn $this->isHomePage() ? \\URL::to('/') : \\URL::to($this->uri);\n\t}", "function sloodle_get_web_path()\n {\n // Check for the protocol\n if (empty($_SERVER['HTTPS']) || $_SERVER['HTTPS'] == 'off') $protocol = \"http\";\n else $protocol = \"https\";\n // Get the host name (e.g. domain)\n $host = $_SERVER['SERVER_NAME'];\n // Finally, get the script path/name\n $file = $_SERVER['SCRIPT_NAME'];\n \n return $protocol.'://'.$host.$file;\n }", "public static function getCoreServiceRoot() {\n if (strtolower($_SERVER['SERVER_NAME'])=='www.palmettonewmedia.com') {\n return Config::getHTTPS() . '://www.palmettonewmedia.com/foodfinder/core/service';\n }\n else {\n return Config::getHTTPS() .'://' . $_SERVER['SERVER_NAME'] . '/core/service';\n }\n }", "public static function base(): string\n\t{\n\t\treturn sprintf(\n\t\t\t'%s://%s/%s',\n\t\t\tisset($_SERVER['SERVER_PROTOCOL']) && strpos($_SERVER['SERVER_PROTOCOL'], 'HTTPS') !== false ? 'https' : 'http',\n\t\t\t$_SERVER['SERVER_NAME'] ?? 'apache',\n\t\t\tself::PUBLIC_PATH\n\t\t);\n\t}", "function full_url() {\n\t$s = empty($_SERVER[\"HTTPS\"]) ? '' : ($_SERVER[\"HTTPS\"] == \"on\") ? \"s\" : \"\";\n\t$protocol = substr(strtolower($_SERVER[\"SERVER_PROTOCOL\"]), 0, strpos(strtolower($_SERVER[\"SERVER_PROTOCOL\"]), \"/\")) . $s;\n\t$port = ($_SERVER[\"SERVER_PORT\"] == \"80\" || $_SERVER[\"SERVER_PORT\"] == \"443\") ? \"\" : (\":\".$_SERVER[\"SERVER_PORT\"]);\n\n\t$quotes = array('\\'', '\"');\n\t$encoded = array('%27', '%22');\n\n\treturn $protocol . \"://\" . $_SERVER['SERVER_NAME'] . $port . str_replace($quotes, $encoded, $_SERVER['REQUEST_URI']);\n}", "function getBaseUrl(){\n return $_SERVER['SERVER_NAME'];\n}", "public function get_core_url() {\n\t\t\treturn trailingslashit( $this->settings['base_url'] );\n\t\t}", "function getBaseURL(){\n return \"http://\" . $_SERVER['HTTP_HOST'] . \"/eRevive\";\n}", "private function curPageURL() {\r\n $pageURL = 'http';\r\n if ($_SERVER[\"HTTPS\"] == \"on\") {$pageURL .= \"s\";}\r\n $pageURL .= \"://\";\r\n if ($_SERVER[\"SERVER_PORT\"] != \"80\") {\r\n $pageURL .= $_SERVER[\"SERVER_NAME\"].\":\".$_SERVER[\"SERVER_PORT\"].$_SERVER[\"REQUEST_URI\"];\r\n } else {\r\n $pageURL .= $_SERVER[\"SERVER_NAME\"].$_SERVER[\"REQUEST_URI\"];\r\n }\r\n return $pageURL;\r\n }", "public function getBaseUrl();", "public function getBaseUrl();", "public function getBaseUrl();", "public function getBaseUrl();", "public function getBaseUrl();", "function curPageURL() {\n $pageURL = 'http';\n if (isset($_SERVER[\"HTTPS\"]) && $_SERVER[\"HTTPS\"] == \"on\") {$pageURL .= \"s\";}\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 return $pageURL;\n}", "static public function site_url( $url = '', $root = true ){\n\t\tif (strpos($url, 'http') === 0) return $url;\n\t\treturn esc_url( home_url() . '/' . ltrim( $url, '/' ) );\n\t}" ]
[ "0.75577116", "0.7525548", "0.7471787", "0.7451445", "0.74429446", "0.7441111", "0.7392131", "0.7377832", "0.7339394", "0.7334731", "0.7285568", "0.72846156", "0.7262826", "0.72575414", "0.7243541", "0.7208122", "0.72078544", "0.71955246", "0.7193035", "0.71904653", "0.7189998", "0.7171485", "0.7167846", "0.7119677", "0.7098006", "0.70876354", "0.7077884", "0.70692265", "0.70686316", "0.70582515", "0.70532507", "0.7036289", "0.7033937", "0.7027974", "0.69970393", "0.69960755", "0.69908845", "0.69861245", "0.6969346", "0.6953628", "0.69430274", "0.69314206", "0.6925873", "0.6923769", "0.6918506", "0.6912147", "0.6906357", "0.6898573", "0.68929374", "0.6884764", "0.6881906", "0.68733716", "0.6871392", "0.68711126", "0.68708926", "0.6865576", "0.68487394", "0.6843468", "0.68412524", "0.6834092", "0.6831632", "0.6829168", "0.68255234", "0.68226373", "0.6818176", "0.6817856", "0.68174225", "0.6811976", "0.68115675", "0.6808139", "0.6805261", "0.67916125", "0.67906797", "0.67785734", "0.6778406", "0.6763395", "0.67620987", "0.67450154", "0.6743774", "0.6739543", "0.6735858", "0.6735231", "0.6726652", "0.6726173", "0.6725755", "0.6716746", "0.67112213", "0.67099214", "0.670643", "0.6706367", "0.67063546", "0.6702876", "0.67011327", "0.6699884", "0.6699884", "0.6699884", "0.6699884", "0.6699884", "0.6699241", "0.6696806" ]
0.67393076
80
Sets the website URL
public static function setWebsiteURL($paramURL){ getDatabase()->update("settings",array( "value" => $paramURL ), "setting = 'website_url'"); Cache::store('website_url', $paramURL); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setSiteUrl()\n {\n }", "protected function setUrl() {\r\n\t\t$this->url = htmlspecialchars(t3lib_div::getIndpEnv('TYPO3_REQUEST_URL'), ENT_QUOTES);\r\n\t}", "public static function setUrl(): void\n\t{\n\n\t\tif (strpos(static::$fullUrl, '?')) {\n\t\t\tstatic::$url = substr(static::$fullUrl, 0, strpos(static::$fullUrl, '?'));\n\t\t} else {\n\t\t\tstatic::$url = static::$fullUrl;\n\t\t}\n\n\t}", "function site($url) {\n\t\t$this->url = $url;\n\t}", "function setUrl($url);", "private function setUrl(): void\n {\n $completeUrl = $_SERVER['REQUEST_URI'];\n $explodedUrl = \\explode('?', $completeUrl);\n $this->url = trim($explodedUrl[0], '/'); // Cleaned URL\n }", "public function setUrl()\n {\n $this->set('url', function() {\n $url = new Url();\n $url->setBaseUri('/');\n return $url;\n });\n }", "public function setUrl($url) {}", "public function setUrl( $url );", "public function setUrl($url){\n $this->url = $url;\n }", "public function setURL($url);", "public function setURL($url);", "function setUrl($url) {\n\t\t$this->_url = $url;\n\t}", "function setUrl($url) {\n\t\t$this->_url = $url;\n\t}", "private function setUrl()\n {\n curl_setopt($this->curl, CURLOPT_URL, $this->server);\n }", "protected function initiateUrl()\n\t{\n\t\t// base url\n\t\tif($this->app->config->has('app.url'))\n\t\t\t$this->setBase($this->app->config->get('app.url'));\n\n\t\t// asset url\n\t\tif($this->app->config->has('asset.url'))\n\t\t\t$this->setAsset($this->app->config->get('asset.url'));\n\t}", "function setURL($url){\n $this->urltoopen = $url;\n }", "public function setUrl($url) {\n $this->url = $url;\n }", "public function setSiteURL($siteURL)\r\n {\r\n //Find out how to validate urls\r\n $this->siteURL = $siteURL;\r\n }", "public function setUrl($url);", "public function setUrl($url);", "public function setUrl($url);", "public function setUrl($url);", "public function setURL($url)\n {\n $this->url = $url;\n }", "public function setWebsite($uri);", "public function setUrl($url) {\n\t\t$this->url = $url;\n\t}", "public function setUrl($value)\n {\n $this->_url = $value;\n }", "public function setUrl( $url )\n\t{\n\t\tif ( $url ) {\n $this->url = $url;\n\t\t}\n\t}", "public function setURL($url)\n\t\t{\n\t\t\t$this->url = preg_replace(\"#/$#\", \"\", $url);\n\t\t}", "public function setUrl($url)\n\t{\n\t\t$this->url = $url;\n\t}", "public function setUrl($url)\n\t{\n\t\t$this->url = $url;\n\t}", "public function setUrl($url)\n {\n self::$url = $url;\n }", "public function setUrl($url)\r\n {\r\n $this->url = $url;\r\n }", "public function setUrl(string $request)\n {\n $this->isBaseUrlEmpty();\n\n $this->url = $this->baseUrl . $request;\n }", "public function setUrl($url)\n {\n $this->_url = $url;\n }", "private function setUrls() {\n\t\t$this->url = ($this->env === 'DEVELOPMENT') ? 'https://test.sagepay.com/gateway/service/direct3dcallback.vsp' : 'https://live.sagepay.com/gateway/service/direct3dcallback.vsp';\n\t}", "public function setUrl($url)\n {\n $this->url = $url;\n }", "public function setUrl($url)\n {\n $this->url = $url;\n }", "public function setUrl($url)\n {\n $this->url = $url;\n }", "public function siteUrl() {}", "function setURL( $url ) \n {\n $this->setValueByFieldName( 'navbarlink_url', $url );\n }", "public function setUrl($value)\n\t\t{\n\t\t\t$url = parse_url((strpos($value, \"://\") === false ? \"http://{$value}\" : $value));\n\t\t\t\n\t\t\t// Set url defaults if they have been left out\n\t\t\tif(!isset($url['scheme'])) $url['scheme'] = 'http';\n\t\t\tif(!isset($url['path'])) $url['path'] = '/';\n\t\t\t\n\t\t\t// Correct parsed url further\n\t\t\tif(!isset($url['host']))\n\t\t\t{\n\t\t\t\t// If host couldent be parsed, this must mean that there is no\n\t\t\t\t// seperation between host and path. ex www.test.com(path left out).\n\t\t\t\t$url['host'] = str_replace(\"/\", \"\", $url['path']);\n\t\t\t\t$url['path'] = '/';\n\t\t\t}\n\t\t\t\n\t\t\t// Set host header\n\t\t\t$this->_headers->set(new HttpHeaderItem(\"Host\",\n\t\t\t\t$url['host'] . (string)(@$url[\"port\"] == null ? \"\" : \":\" . $url['port'])));\n\t\t\t\n\t\t\t// Store parsed url\n\t\t\t$this->_url = $url;\n\t\t}", "public function setWebsite($val)\n {\n $this->_propDict[\"website\"] = $val;\n return $this;\n }", "public function setUrl($work)\n\t{\n\t\t$this->url = $work;\n\t}", "public function setUrl($str){\n\t\t$this->url = $str;\n\t\t$tmp=parse_url($this->url); // heroku refuses to make direct dereference\n\t\t$host = $tmp['host'];\n\t\tforeach ($this->supportedHosts as $supportedHost) {\n\t\t\tif($host === $supportedHost){\n\t\t\t\t$this->host = $supportedHost;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "public function setWebsiteUrl(string $website_url) {\n\n $this->website_url = $website_url;\n\n }", "protected function set_url($location=null)\n\t{\n\n\t\t$this->url = $this->api_host.$location;\n\t\t\n\t}", "public function setUrl($url) {\n\t\t$this->setQueryParam ( self::URL_PARAM, $url );\n\t}", "public function setUrl(string $url): void;", "public function setWebUrl($value)\n {\n return $this->setProperty(\"WebUrl\", $value, true);\n }", "public function setUrl(string $url)\n {\n $this->url = $url;\n }", "public function setUrl(string $url)\n {\n $this->url = $url;\n }", "function setUrl( &$value )\n {\n if ( $this->State_ == \"Dirty\" )\n $this->get( $this->ID );\n\n $this->Url = ( $value );\n }", "private function setURL($url)\r\n\t{\r\n\t\tcurl_setopt($this->getConnection(), CURLOPT_URL, $url);\r\n\t}", "public function setURL(string $url)\n {\n $this->http->setURL($url);\n }", "public function setUrl($url)\n {\n if (is_string($url)) {\n $this->url = $url;\n }\n }", "public function setBaseUrl(Url $url): void;", "public function setUrl(?string $url): void;", "public function setUrl($url)\n {\n $this->apiUrl = $url;\n }", "function set_base_url($url)\n\t{\n\t\t$this->base_url = $url;\n\t}", "public function setRequestUrl($url) {}", "function set_base_url( $url = '' )\n {\n if ( empty($url) ) {\n $this->url = 'http://' . $_SERVER['HTTP_HOST'];\n } else {\n // Strip any trailing slashes for consistency (relative\n // URLs may already start with a slash like \"/file.html\")\n if ( substr($url, -1) == '/' ) {\n $url = substr($url, 0, -1);\n }\n $this->url = $url;\n }\n }", "function setApiUrl($value)\n {\n $this->_props['ApiUrl'] = $value;\n }", "public function setUrl($ip)\n {\n $this->url = $this->baseUrl . $ip . \"?access_key=\" . $this->apiKey;\n }", "public function setUrl($url) {\n if ($this->useHttps) {\n $url = str_replace('http://', 'https://', $url);\n }\n $this->url = $url;\n return $this;\n }", "public function setUrl($url)\r\n {\r\n $this->path['url'] = $url;\r\n }", "function setWebsiteS(string $websiteS): void{\n\t\t$this->websiteS = $websiteS;\n\t}", "public static function setApplicationUrl($prm_url=\"localhost\")\n\t{\n global $application_install_url;\n $application_install_url=$prm_url;\n\t}", "private function setHost()\n {\n $urlE = $this->explodedUrl;\n\n $this->host = $urlE[2];\n }", "public function setLocation($url);", "private function set_base_url()\n\t{\n\t\t// We completely kill the site URL value. It's now blank.\n\t\t// This enables us to use only the \"index.php\" part of the URL.\n\t\t// Since we do not know where the CP access file is being loaded from\n\t\t// we need to use only the relative URL\n\t\t$this->config->set_item('site_url', '');\n\n\t\t// We set the index page to the SELF value.\n\t\t// but it might have been renamed by the user\n\t\t$this->config->set_item('index_page', SELF);\n\t\t$this->config->set_item('site_index', SELF); // Same with the CI site_index\n\t}", "private function setBaseUrl()\n {\n $this->baseUrl = config('gladepay.endpoint');\n }", "public function setUrl($pUrl)\n\t{\n\t\t$this->url = $pUrl;\n\t\tcurl_setopt($this->curlRessource, CURLOPT_URL, $pUrl);\n\t}", "public function setWebsite($website)\n {\n $this->website = $website;\n }", "private function setBaseURL($url){\n\t\t$this->baseURL = $url;\n\t}", "function set_base_url($url) {\n if($url[strlen($url)-1] != '/') {\n $url .= '/'; \n }\n \n $this->base_url = $url;\n }", "function setUrlLink(){\n if( $this->id == 0 ) return;\n $url = $this->aFields[\"url\"]->toString();\n if( $url == \"\" ) return;\n $url = strip_tags( preg_replace( \"/[\\\"']/\", \"\", $url ) );\n if( !$this->aFields[\"url\"]->editable ) $this->aFields[\"url\"]->display = false;\n $this->aFields[\"url_link\"]->display = true;\n $this->aFields[\"url_link\"]->value = \"<a href=\\\"\".$url.\"\\\">\".$url.\"</a>\";\n }", "public function setBaseUrl($url)\r\n {\r\n $this->baseUrl = $url;\r\n }", "function set_market_url($website)\n{\n\n if ($website) {\n\n if (strpos($website, 'http') !== false) {\n\n $pre_url = '';\n\n } else {\n\n $pre_url = 'http://';\n }\n\n $website = '<a href=\"' . $pre_url . $website . '\" target=\"_blank\">Website</a>';\n\n } else {\n\n $website = '';\n\n }\n\n return $website;\n}", "private function setBaseUrl()\n {\n if (config(\"redx.sandbox\") == true) {\n $this->baseUrl = \"https://sandbox.redx.com.bd\";\n } else {\n $this->baseUrl = \"https://openapi.redx.com.bd\";\n }\n }", "public function setCurrentUrl(Url $url): void;", "public static function setBaseUrl(): void\n\t{\n\t\tstatic::$scriptDirectory = str_replace('\\\\', '/', dirname(Server::get('SCRIPT_NAME')));\n\t\t$protocol = Server::get('REQUEST_SCHEME') . '://';\n\t\t$hostname = Server::get('HTTP_HOST');\n\t\tstatic::$baseUrl = $protocol . $hostname . static::$scriptDirectory;\n\t}", "public function setUrl($value) {\n return $this->set(self::URL, $value);\n }", "public function setWebsiteRedirect(){\n\t\t\n\t\t// Set the state and tell plugins.\n\t\t$this->setState('REDIRECTING');\n\t\t$this->notifyObservers();\n\t\t\n\t\t//Show success message on redirected to page\n\t\t$_SESSION['ERROR_TYPE'] = \"success\";\n\t\t$_SESSION['ERROR_MESSAGE'] = \"Website Data Saved Successfully\";\n\t\t\n\t\t//Go Redirect\n\t\t$this->setRedirect(\"index.php?system=GeneralSettings&page=edit\");\t\n\t}", "function setSyncUrl()\n {\n }", "public function setSiteLogo($url)\n {\n $this->_data['image_url'] = $url;\n }", "public function getWebsiteUrl() {\n\n return $this->website_url;\n\n }", "protected function setBaseUrl()\n {\n $this->baseUrl = 'https://api.paystack.co';\n }", "function setLink($url)\n\t{\n\t\t$this->link = $url;\n\t}", "public function setUrl(string $url): self {\n\t\tif(substr($url, 0, 8) !== 'https://' && substr($url, 0, 7) !== 'http://') {\n\t\t\t$url = 'https://'.$url;\n\t\t}\n\n\t\tif(substr($url, -1) !== '/') {\n\t\t\t$url .= '/';\n\t\t}\n\n\t\t$this->_url = $url;\n\n\t\treturn $this;\n\t}", "public function getWebsiteURL() {\n return $this->getChaveValor('WEBSITE_URL');\n }", "public function setDomain($url) {\n\t\t$this->_domain = $url;\n\t}", "private function setWebsiteValue()\n {\n $value = $this->getData(self::$websiteAttributeCode);\n $list = $this->storeManager->getWebsites();\n $this->setCustomAttribute(self::$websiteAttributeCode, $list[$value]->getName());\n $this->setCustomAttribute(self::$websiteIdAttributeCode, $value);\n }", "function _config_wp_siteurl($url = '')\n {\n }", "public function setBaseUrl($url)\n {\n $this->baseUrl = $url;\n }", "function set_url($path = null) {\n //check if is a valid url \n if (filter_var($path, FILTER_VALIDATE_URL) !== FALSE) {\n return $path;\n } else {\n return SITE_ADDR . $path;\n }\n}", "public function SetUrl($url) {\n $this->url = $url;\n return $this;\n }", "function set_tour_url($website)\n{\n\n if ($website) {\n\n if (strpos($website, 'http') !== false) {\n\n $pre_url = '';\n\n } else {\n\n $pre_url = 'http://';\n }\n\n $website = $pre_url . $website;\n\n } else {\n\n $website = '';\n\n }\n\n return $website;\n}", "public function setBaseUrl($link)\n {\n self::set('_baseUrl', $link);\n }", "private function Get_URL()\n {\n $url = $this->CURL->GET_SERVER_URL();\n $download_url = $url.\"/application/download/download.php\";\n $view_url = $url.\"/application/pdf/view.php\";\n $this->DOWNLOAD_URL = $download_url;\n $this->VIEW_URL = $view_url;\n }" ]
[ "0.8386104", "0.7654201", "0.76368713", "0.75876", "0.7474838", "0.7446286", "0.7428601", "0.7272287", "0.7269657", "0.7249511", "0.72277033", "0.72277033", "0.7195058", "0.7195058", "0.71754", "0.7165429", "0.7142681", "0.71405184", "0.7125558", "0.7106033", "0.7106033", "0.7106033", "0.7106033", "0.709952", "0.7089495", "0.7060166", "0.7056247", "0.6992903", "0.6985701", "0.69730335", "0.69730335", "0.69360757", "0.6930226", "0.69291717", "0.69019574", "0.6876951", "0.6871876", "0.6871876", "0.6871876", "0.6866637", "0.6864762", "0.6863045", "0.67391026", "0.6736306", "0.67239606", "0.6674664", "0.66703814", "0.66674525", "0.6655518", "0.66535544", "0.66405", "0.66405", "0.6637474", "0.6622198", "0.6608814", "0.6607557", "0.65813065", "0.65555143", "0.651538", "0.6512788", "0.6505138", "0.6503917", "0.6502513", "0.6487712", "0.6483423", "0.64816755", "0.6474536", "0.6459376", "0.6456499", "0.6455023", "0.6452679", "0.64285994", "0.6421202", "0.64137596", "0.6403198", "0.63942605", "0.6377001", "0.63764036", "0.637516", "0.63483816", "0.6336279", "0.63226193", "0.63212836", "0.6313734", "0.63080347", "0.6300571", "0.6287236", "0.62842727", "0.62816703", "0.62796557", "0.6269235", "0.62534696", "0.6246615", "0.62411296", "0.62351704", "0.6233927", "0.6201633", "0.61721706", "0.616806", "0.616253" ]
0.73018044
7
Returns name of the website
public static function getWebsiteName(){ if(Cache::isStored('website_name'))return Cache::get('website_name'); $row = getDatabase()->queryFirstRow("SELECT `value` FROM `settings` WHERE `setting` = 'website_name'"); $name = $row['value']; Cache::store('website_name', $name); return $name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getSiteName();", "private static function get_site_name()\n {\n }", "public function siteName()\n {\n return get_bloginfo('name', 'display');\n }", "function site_name()\n {\n return config_item('site_name');\n }", "public function meta_site_name();", "public function getSiteName()\n {\n return $this->settings->get('branding.site_name');\n }", "public function siteName()\n {\n return $this->siteName;\n }", "public function website_name(){\r\n\r\n echo ISSET($this->globalSettings->website_name)?$this->globalSettings->website_name:'';\r\n\r\n }", "static function name(): string { return 'Archival website'; }", "function siteName() {\n\t\treturn $GLOBALS[\"siteName\"];\n\t}", "public static function getSiteName() {\n $settings = self::getSettings();\n \n return $settings->sitename;\n }", "function site_name() {\n\treturn site_meta('sitename');\n}", "protected function getSiteName() {\r\n\t\treturn $this->siteName;\r\n\t}", "public function getSiteName() {\r\n return $this->siteName;\r\n }", "public function getSiteName() : string\n {\n return trim($this->json['site_name'] ?? '');\n }", "public function getCurrentSiteName(): string {\n try {\n return $this->findCurrentSite()->getSiteName();\n } catch (\\Exception $e) {\n $this->logger->error((string) $e);\n\n return $_SERVER['SITE_NAME'] ?? '[name unavailable]';\n }\n }", "function get_site_name() {\n\t\tglobal $site_array;\n\t\tif (isset($site_array)) {\n\t\t\treturn $site_array[\"site_name\"];\n\t\t}\n\t}", "public function getName() : string\n {\n return $this->url;\n }", "public function getSiteName() {\n\t\t\t// This is very similar to the above function, and the two could probably be merged in a much better way\n\t\t\tglobal $db;\n\t\t\tif ($row = $db->get_row(\"SELECT pages.name, pages.guid FROM sites, pages WHERE pages.lang='\". $_COOKIE['lang'] .\"' AND sites.guid = pages.guid && pages.guid = '{$this->guid}'\")) {\n\t\t\t\t// Is this the microsite 'homepage'?\n\t\t\t\treturn $row->name;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif ($this->parent == 0 || $this->parent == 1) {\n\t\t\t\t\treturn 'Root';\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t$parent = new Page;\n\t\t\t\t\t$parent->loadByGUID($this->parent);\n\t\t\t\t\treturn $parent->getSiteName();\n\t\t\t\t}\n\t\t\t}\n\t\t}", "function PrintSiteName()\n\t{\n\t\t$name = GetTitle('parameters/preferences', 2);\n\t\techo $name;\n\t}", "public function getWebPathname();", "private function _getSiteName()\n {\n return 'Santander Consumer Bank';\n }", "public static function hostName() {\n\t\t$siteUrl = Application::getConfig('application', 'site_url');\n\t\treturn substr($siteUrl, strpos($siteUrl, '//') +2);\n\t}", "public function getSiteTitle() {\n\t\treturn isset($this->cache->siteTitle) ? $this->cache->siteTitle : 'Crystal-Web System';\n\t}", "public function meta_site_name()\n\t{\n\t\treturn htmlspecialchars( strip_tags( $this->cfg()->meta_title() ), ENT_QUOTES );\n\t}", "function script_name() {\n $protocol = 'http';\n if ( ( isset($_SERVER['HTTPS']) &&\n\t ($_SERVER['HTTPS'] == 'on') ) ||\n\t ( $_SERVER['SERVER_PORT'] == '443' ) ) {\n $protocol = 'https';\n }\n // return $protocol.'://' . $_SERVER['SERVER_NAME'] . $_SERVER['SCRIPT_NAME'];\n return $protocol.'://www.oulunetelaisenpuuyritykset.com' . $_SERVER['SCRIPT_NAME'];\n}", "function get_current_site_name($current_site)\n {\n }", "static function Name()\n {\n return self::Variable('SERVER_NAME');\n }", "function sitename () {\n//returns the \"name\" of the website, taken from settings\nglobal $settings;\nreturn $settings['sitename'];\n}", "public function getWebsite();", "function get_site_name() {\n\t// Check the Altis config first.\n\t$site_name = has_altis_config() ? Altis\\get_config()['hm-juicer']['juicer-site-name'] : false;\n\tif ( ! empty( $site_name ) ) {\n\t\treturn $site_name;\n\t}\n\n\t// Check the JUICER_SITE_NAME constant and return it if it exists.\n\tif ( defined( 'JUICER_SITE_NAME' ) ) {\n\t\treturn JUICER_SITE_NAME;\n\t}\n\n\t// Return the option, if it exists.\n\treturn Settings\\juicer_get_option( 'JUICER_SITE_NAME', false );\n}", "public function get_data() {\n\t\tif ( WPSEO_Options::get( 'website_name', false ) ) {\n\t\t\treturn WPSEO_Options::get( 'website_name' );\n\t\t}\n\n\t\treturn get_bloginfo( 'name' );\n\t}", "public static function get_site_hostname() {\n\t\t\treturn strtolower( wp_parse_url( get_site_url(), PHP_URL_HOST ) );\n\t\t}", "public function renderSiteName() {\n\t\t$adminTheme = $this->wire('adminTheme');\n\t\t$user = $this->wire('user');\n\n\t\tif ($user->isSuperuser()) {\n\t\t\treturn $adminTheme->sitename;\n\t\t}\n\t}", "function domain_name_human(){\n\techo $_SERVER['SERVER_NAME'];\n\treturn;\n}", "function _get_site_hostname() {\n\t\treturn strtolower( wp_parse_url( get_site_url(), PHP_URL_HOST ) );\n\t}", "protected function getWebsiteNameComment()\n {\n return '<b>[website_name]</b> - ' . __('output a current website name') . ';';\n }", "function get_sitename() {\n\treturn get_bloginfo('name');\n}", "function get_site_name()\n{\n return get_option('site_name');\n}", "public function domainName()\n\t{\n\t\treturn isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : $_SERVER['SERVER_NAME'];\n\t}", "public function website() {\n\t\treturn $this->webpage;\n\t}", "function getTitle() {\n\t\tif($this->title) {\n\t\t\treturn $this->title;\n\t\t}\n\t\telse if(Session::getValue(\"nav_sindex\")) {\n\t\t\t$query = new Query();\n\t\t\tif($query->sql(\"SELECT name FROM \".UT_NAV.\" WHERE sindex = '\".Session::getValue(\"sindex\").\"'\")) {\n\t\t\t\treturn $query->getQueryResult(0, \"name\");\n\t\t\t}\n\t\t}\n\t\treturn SITE_NAME;\n\t}", "function web_hostname() {\n\treturn substr($_ENV['HOSTNAME'],0,strpos($_ENV['HOSTNAME'], \".\"));\n}", "public function loginLogoUrlTitle()\n {\n return get_bloginfo('name');\n }", "public function getTitle() {\n\t\treturn Template::getSiteTitle();\n\t}", "public function getName()\n\t{\n\t\treturn $this->pageName;\n\t}", "public function blogname() {\n\n\t\tbloginfo( 'name' );\n\n\t}", "static public function getBrowserName() {\n\t\treturn (string)self::$browser_name;\n\t}", "protected function _domainName() {\n\t\t$this->CI->load->helper('url');\n\t $url = site_url();\n\t //$parse the url\n\t\t$host = parse_url( $url, PHP_URL_HOST );\n\t\t//reverse array\n\t\t$host = array_reverse( explode( '.', $host ) );\n\t\t//check in_array for .bd domain name\n\t\tif( in_array( 'bd', $host ) == True ) :\n\t\t\t$host = $host[2] . '.' . $host[1] . '.' . $host[0];\n\t\telseif( in_array( 'localhost', $host ) == true ) :\n\t\t\t$host = $host[0];\n\t\telse :\n\t\t\t$host = $host[1] . '.' . $host[0];\n\t\tendif;\n\t\treturn $host;\n\t}", "public static function getOurScriptName ()\n\t{\n\t\treturn self::getScriptNameFromUrl( $_SERVER['PHP_SELF'] );\n\t}", "function site_name()\r\r\n {\r\r\n $CI =& get_instance(); \r\r\n //return the full asset path\r\r\n return $CI->config->item('site_name');\r\r\n }", "public function getName()\n {\n return $this->_pageName;\n }", "public function page_name ()\n {\n return $this->app->page_names->entry_home;\n }", "function getInternetName() {\n\n // get the full computer name of the current object (for instance : forge.indepnet.net)\n return self::getInternetNameFromLabelAndDomainID($this->fields[\"name\"],\n $this->fields[\"fqdns_id\"]);\n }", "private function site_url()\n\t{\n\t\t$protocol = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' || $_SERVER['SERVER_PORT'] == 443)\n\t\t\t? \"https://\"\n\t\t\t: \"http://\";\n\t\t$domainName = $_SERVER['HTTP_HOST'];\n\n\t\treturn $protocol.$domainName;\n\t}", "public function getWebsiteURL() {\n return $this->getChaveValor('WEBSITE_URL');\n }", "protected function getName()\r\n {\r\n return app::values()->page();\r\n }", "private function retrieve_sitename() {\n\t\tstatic $replacement;\n\n\t\tif ( ! isset( $replacement ) ) {\n\t\t\t$sitename = WPSEO_Utils::get_site_name();\n\t\t\tif ( $sitename !== '' ) {\n\t\t\t\t$replacement = $sitename;\n\t\t\t}\n\t\t}\n\n\t\treturn $replacement;\n\t}", "public static function get_store_name() {\n\t\t\tif ( self::$store_name ) {\n\t\t\t\treturn self::$store_name;\n\t\t\t}\n\t\t\t$name = trim(\n\t\t\t\tstr_replace(\n\t\t\t\t\t\"'\",\n\t\t\t\t\t\"\\u{2019}\",\n\t\t\t\t\thtml_entity_decode(\n\t\t\t\t\t\tget_bloginfo( 'name' ),\n\t\t\t\t\t\tENT_QUOTES,\n\t\t\t\t\t\t'UTF-8'\n\t\t\t\t\t)\n\t\t\t\t)\n\t\t\t);\n\t\t\tif ( $name ) {\n\t\t\t\tself::$store_name = $name;\n\t\t\t\treturn $name;\n\t\t\t}\n\t\t\t// Fallback to site url\n\t\t\t$url = get_site_url();\n\t\t\tif ( $url ) {\n\t\t\t\tself::$store_name = parse_url( $url, PHP_URL_HOST );\n\t\t\t\treturn self::$store_name;\n\t\t\t}\n\t\t\t// If site url doesn't exist, fall back to http host.\n\t\t\tif ( $_SERVER['HTTP_HOST'] ) {\n\t\t\t\tself::$store_name = $_SERVER['HTTP_HOST'];\n\t\t\t\treturn self::$store_name;\n\t\t\t}\n\n\t\t\t// If http host doesn't exist, fall back to local host name.\n\t\t\t$url = gethostname();\n\t\t\tself::$store_name = $url;\n\t\t\treturn ( self::$store_name ) ? ( self::$store_name ) : 'A Store Has No Name';\n\t\t}", "public function get_name() {\n\t\treturn esc_html__( $this->title, 'dashwp' );\n\t}", "public function getWebsite()\n\t{\n\t\treturn $this->website;\n\t}", "public function getName()\n {\n return 'travelbase.getHost';\n }", "public function urlName()\n {\n return str_replace('\\\\', '_', $this->name());\n }", "public function getWebsite()\n {\n return $this->website;\n }", "public function getWebsite()\n {\n return $this->website;\n }", "public function getWebsite()\n {\n return $this->website;\n }", "function getBrowserTitle() {\n\t\tglobal $gPageTitle;\n\t\treturn( $gPageTitle );\n\t}", "public function get_name() {\n\t\treturn 'hello-world';\n\t}", "private function getBrowserName()\n {\n if(isset($this->browser->Browser))\n {\n return $this->browser->Browser;\n }\n else\n {\n return $this->browser->browser;\n }\n }", "protected function get_container_name(): string {\n\t\t$parse = \\wp_parse_url( get_site_url() );\n\t\t$domain = $parse['host'];\n\n\t\t// Naming conventions, only letters\n\t\t// Container names must start or end with a letter or number, and can contain only letters, numbers, and the dash (-) character.\n\t\t// https://docs.microsoft.com/en-us/rest/api/storageservices/naming-and-referencing-containers--blobs--and-metadata.\n\t\t$container_name = strtolower( preg_replace( '/[^a-zA-Z0-9-]/', '-', $domain ) );\n\n\t\treturn $container_name;\n\t}", "function pantomime_sitename(){\n\tif (is_home()){\n\t\t$heading_tag = 'h1';\n\t\t$copy = get_bloginfo( \"name\" );\t\n\t} else {\n\t\t$heading_tag = 'h2';\n\t\t$copy = '<a href=\"'. get_bloginfo( \"url\" ) .'\" class=\"emboss-dark\">'. get_bloginfo( \"name\" ) .'</a>';\n\t}\n\n\techo '\n\t\t<div id=\"sitename-wrap\" class=\"emboss-dark\">\n\t\t\t<'. $heading_tag .' id=\"sitename\">'. $copy .'</'. $heading_tag .'>\n\t\t\t<p>'. get_bloginfo( \"description\" ) .'</p>\n\t\t</div>\n\t';\n}", "function findCompanyWebsite($company_name) \n {\n \n }", "public function getSiteHost();", "static function get_blog_name()\n\t{\n\t\tif (\\is_multisite()) {\n\t\t\treturn \\get_blog_details()->blogname;\n\t\t}\n\n\t\treturn \\get_bloginfo('name');\n\t}", "public function getWebsite(){\r\n\t\t\treturn $this->website;\r\n\t\t}", "public static function getName(): string\n {\n return SPLASH_NAME;\n }", "public function getPagename(): string {\n return strtolower($this->uriParts['pagename']) ?? '';\n }", "public static function getSitemapName($environment);", "static function ServerName ()\n\t\t{\n\t\t\treturn isset ($_SERVER['SERVER_NAME']) ? $_SERVER['SERVER_NAME'] : '';\n\t\t}", "public function get_name() {\n\t\treturn 'WordPress';\n\t}", "public function title()\n {\n if ($this->title === null) {\n $this->setTitle($this->translator()->translation('Static Website'));\n }\n\n return $this->title;\n }", "public function hostname()\n {\n return $this->globals->server()[\"SERVER_NAME\"];\n }", "public function getPageName()\n {\n return $this->pageName;\n }", "public function domain_name () {\n\t\t\treturn sprintf(\n\t\t\t\t'%s.%s',\n\t\t\t\t$this->domain_word(),\n\t\t\t\tself::data_rand( 'domain_suffix' )\n\t\t\t);\n\t\t}", "public function getBrowserName()\n {\n return $this->browser;\n }", "function mtws_login_logo_url_title() {\n //return 'Your Site Name and Info';\n return get_bloginfo( 'name' );\n}", "public function get_site_identifier() {\n global $CFG;\n return $CFG->wwwroot.'phpunit';\n }", "public function getUserAgentName()\n {\n return UTIL_Browser::getBrowser($_SERVER['HTTP_USER_AGENT']);\n }", "public function getNodename();", "public function getWebsite()\n {\n if (array_key_exists(\"website\", $this->_propDict)) {\n return $this->_propDict[\"website\"];\n } else {\n return null;\n }\n }", "function getsite( )\n{\n\t\t\t\tif ( empty( $_SERVER['HTTP_HOST'] ) )\n\t\t\t\t{\n\t\t\t\t\t\t\t\t$R8607b50296 = \"http://\".$_SERVER['HTTP_HOST'];\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t\t\t\t$R8607b50296 = \"http://\".$_SERVER['SERVER_NAME'];\n\t\t\t\t}\n\t\t\t\tif ( !empty( $_SERVER['REQUEST_URI'] ) )\n\t\t\t\t{\n\t\t\t\t\t\t\t\t$Rd4e4624cdb = $_SERVER['REQUEST_URI'];\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t\t\t\t$Rd4e4624cdb = $_SERVER['PHP_SELF'];\n\t\t\t\t}\n\t\t\t\t$Rcc5c6e696c = explode( \"/\", $Rd4e4624cdb );\n\t\t\t\tarray_pop( $Rcc5c6e696c );\n\t\t\t\tarray_pop( $Rcc5c6e696c );\n\t\t\t\tarray_pop( $Rcc5c6e696c );\n\t\t\t\t$Rd4e4624cdb = implode( \"/\", $Rcc5c6e696c );\n\t\t\t\treturn $R8607b50296.$Rd4e4624cdb;\n}", "public static function getSiteName() {\n\n return static::select('site_name', 'created_at')->orderBy('created_at', 'desc')\n ->first()->site_name;\n\n }", "public function hostname() {\n $host = $this->client(\"origin\")?? $this->client(\"host\")?? $this->uri(\"host\");\n $host = parse_url($host);\n\n return $host[\"host\"]?? $host[\"path\"];\n }", "function displaySiteTitle(){ ?>\n\t<?php $bloginfo = get_bloginfo( 'name' ); ?>\n\t\t<?php if( !empty( $bloginfo ) ): ?>\n\t\t\t<h1 class=\"site-title brand-item\"><?php bloginfo( 'name' ); ?></h1>\n\t\t<?php endif;\n}", "public function getWgname () {\n\t$preValue = $this->preGetValue(\"wgname\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->wgname;\n\treturn $data;\n}", "static function id(): string { return 'website'; }", "function getHostName() {\n\t\treturn $this->hostInfo[0]['dc'][0];\n\t}", "public function getName()\n {\n if (is_null($this->download_url))\n return false;\n\n $uri = explode('/', $this->download_url);\n return array_pop($uri);\n }", "function url_site(): string\n{\n //return input_server('REQUEST_SCHEME') . '://' . input_server('SERVER_NAME');\n $site = \\get_site_url();\n $pos = strpos($site, '/', 8);\n return $pos ? substr($site, 0, $pos) : $site;\n}", "public function getPageName()\n {\n $name = snake_case($this->getControllerName(), '-');\n $name = implode(' ', explode('-', $name));\n return ucwords($name);\n }" ]
[ "0.8454807", "0.8225837", "0.78075045", "0.77745867", "0.7739393", "0.7713985", "0.7678388", "0.7666285", "0.76631004", "0.7652678", "0.7618036", "0.76088935", "0.76057655", "0.75006163", "0.7386544", "0.7381906", "0.7296727", "0.7283066", "0.72607714", "0.72601223", "0.7237011", "0.7159038", "0.70888126", "0.6988504", "0.69431394", "0.69283164", "0.6918747", "0.6894489", "0.6879661", "0.68490076", "0.68452257", "0.68183094", "0.68116826", "0.6805709", "0.6745672", "0.674309", "0.6728442", "0.67270535", "0.67115796", "0.66998404", "0.6695187", "0.66833824", "0.6649254", "0.66300815", "0.66199255", "0.66073173", "0.6604757", "0.6604458", "0.66003853", "0.65728843", "0.6558743", "0.65537786", "0.6549203", "0.6547073", "0.65152264", "0.6498722", "0.64777774", "0.64485914", "0.6448044", "0.6446581", "0.6444943", "0.6434502", "0.6432105", "0.6418298", "0.6418298", "0.6418298", "0.64179647", "0.6417381", "0.6410198", "0.64009315", "0.63978", "0.6393143", "0.6392491", "0.6386506", "0.63671255", "0.6359482", "0.63517904", "0.63197124", "0.63068724", "0.6299714", "0.62951404", "0.62911767", "0.62855804", "0.627747", "0.6271991", "0.62648505", "0.6261042", "0.62580824", "0.62517536", "0.6249959", "0.6247853", "0.62317246", "0.62279284", "0.6227168", "0.622206", "0.62120384", "0.62110424", "0.62107337", "0.6210309", "0.62096035" ]
0.73253196
16
Sets the website name
public static function setWebsiteName($paramName){ getDatabase()->update("settings",array( "value" => $paramName ), "setting = 'website_name'"); Cache::store('website_name', $paramName); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function setSiteName() {\r\n\t\t$this->siteName = trim($this->settings['site']['siteName']);\r\n\t}", "public static function setSiteName($sitename) {\n $settings = self::getSettings();\n \n $settings->sitename = $sitename;\n $settings->save();\n }", "public function website_name(){\r\n\r\n echo ISSET($this->globalSettings->website_name)?$this->globalSettings->website_name:'';\r\n\r\n }", "protected function setName($name)\n\t{\n\t\t$this->pageName = $name;\n\t}", "public function set_name( $name ) {\n\t\t$this->label = $name;\n\t\t$this->slug = sanitize_title_with_dashes( $name );\n\t}", "private static function get_site_name()\n {\n }", "public function getSiteName();", "public function meta_site_name();", "public function setPageTitle($page_name);", "public function setPageTitle($page_name);", "public function set_appname()\n\t{\n\t\t$appname = (string) ee()->config->item('newrelic_app_name');\n\n\t\t// -------------------------------------------\n\t\t//\tHidden Configuration Variable\n\t\t//\t- newrelic_app_name => Change application name that appears in\n\t\t//\t the New Relic dashboard\n\t\t// -------------------------------------------*/\n\t\tif ( ! empty($appname))\n\t\t{\n\t\t\t$appname .= ' - ';\n\t\t}\n\n\t\t// -------------------------------------------\n\t\t//\tHidden Configuration Variable\n\t\t//\t- newrelic_include_version_number => Whether or not to include the version\n\t\t// number with the application name\n\t\t// -------------------------------------------*/\n\t\t$version = (ee()->config->item('newrelic_include_version_number') == 'y') ? ' v'.APP_VER : '';\n\n\t\tnewrelic_set_appname($appname.APP_NAME.$version);\n\t}", "function setWebsiteS(string $websiteS): void{\n\t\t$this->websiteS = $websiteS;\n\t}", "function site_name()\n {\n return config_item('site_name');\n }", "public function getSiteName()\n {\n return $this->settings->get('branding.site_name');\n }", "function set_name($name) {\n $this->name = $name;\n }", "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 }", "protected function setSiteName($name)\n {\n $this->siteName = $this->translator()->translation($name);\n\n return $this;\n }", "function site_name() {\n\treturn site_meta('sitename');\n}", "public function set_name($title)\n {\n if (!empty($title)) {\n $this->title = Database::escape_string($title);\n }\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}", "public function setName($name) {\n\t\t$this->name = $name;\n\t}", "public function setName($name) {\n\t\t$this->name = $name;\n\t}", "public function setName($name) {\n\t\t$this->name = $name;\n\t}", "public function setName($name) {\n\t\t$this->name = $name;\n\t}", "public function setName($name) {\n\t\t$this->name = $name;\n\t}", "public function setName($name) {\n\t\t$this->name = $name;\n\t}", "public function setName($name) {\r\n\t\t$this->name = $name;\r\n\t}", "function setBrowserTitle( $pTitle ) {\n\t\tglobal $gBitSmarty, $gPageTitle;\n\t\t$gPageTitle = $pTitle;\n\t\t$gBitSmarty->assign( 'browserTitle', $pTitle );\n\t\t$gBitSmarty->assign( 'gPageTitle', $pTitle );\n\t}", "public function setName($name){\n\t\t$this->name = $name;\n\t}", "public function setName($name){\n\t\t$this->name = $name;\n\t}", "public function SetName ($name);", "static function name(): string { return 'Archival website'; }", "private function _getSiteName()\n {\n return 'Santander Consumer Bank';\n }", "protected function getSiteName() {\r\n\t\treturn $this->siteName;\r\n\t}", "public function setName( string $name ) {\n\t\t$this->name = $name;\n\t}", "function setName($name) {\n $this->name = $name;\n }", "public function setName($name) {\n $this->name = $name;\n }", "public function setName($name) {\n $this->name = $name;\n }", "public function setName($name) {\n $this->name = $name;\n }", "public function setName($name) {\n $this->name = $name;\n }", "public function setName($name) {\n $this->name = $name;\n }", "public function setName($name) {\n $this->name = $name;\n }", "public function setName($name) {\n\t\t$this->_name = $name;\n\t}", "public function setName($name) {\n $this->name = $name;\n }", "function sitename () {\n//returns the \"name\" of the website, taken from settings\nglobal $settings;\nreturn $settings['sitename'];\n}", "public function setName($name)\n\t{\n\t\t$this->name = $name;\n\t}", "public function setName($name)\n\t{\n\t\t$this->name = $name;\n\t}", "public function setName($name)\n\t{\n\t\t$this->name = $name;\n\t}", "public function setName($name)\n\t{\n\t\t$this->name = $name;\n\t}", "public function setName($name)\n\t{\n\t\t$this->name = $name;\n\t}", "public function setName($name)\n\t{\n\t\t$this->name = $name;\n\t}", "public function setName($name)\n\t{\n\t\t$this->name = $name;\n\t}", "public function setName($name) \n {\n $this->name = $name;\n }", "public function setName($name){\n $this->__set('name',$name);\n }", "public function setName($name){\n \n $this->name = $name;\n \n }", "function setName($name){\n\t\t$this->name=$name;\n\t}", "protected function setName(string $name)\r\n\t{\r\n\t\t$this->name = $name;\r\n\t}", "public static function setName($name)\n\t{\n\t\tself::$name = $name;\n\t}", "protected function setName(string $name) {\n $this->name = $name;\n }", "public function getSiteName() {\r\n return $this->siteName;\r\n }", "public function setAppName($name)\n\t{\n\t\t$this->_appName = $name;\n\t}", "function set_uname($name){\n $this -> uname = $name;\n }", "public function siteName()\n {\n return $this->siteName;\n }", "public static function getSiteName() {\n $settings = self::getSettings();\n \n return $settings->sitename;\n }", "public function setName($name)\n\t{\n\t\t$this->_name = $name;\n\t}", "public function setName($name)\n\t{\n\t\t$this->_name = $name;\n\t}", "public function set_name($new_name) {\r\n\t\t$this->name = strtoupper($new_name);\r\n\t}", "public function setName($name)\r\n {\r\n $this->name = $name;\r\n }", "public function siteName()\n {\n return get_bloginfo('name', 'display');\n }", "private function setSessionName(): void\n {\n $cookie = new Cookie($this->expiringTime - 1);\n if ($cookie->exists('sessionName')) {\n return;\n }\n\n // unset all session name cookies\n foreach ($_COOKIE as $key => $value) {\n if (strlen($key) === strlen($this->name)) {\n $cookie->unset($key);\n }\n }\n\n $cookie->save('sessionName', $this->name);\n }", "public function setName($name)\n {\n $this->name = $name;\n }", "public function setName($name)\n {\n $this->name = $name;\n }", "public function setName($name)\n {\n $this->name = $name;\n }", "public function setName($name)\n {\n $this->name = $name;\n }", "public function setName($name)\n {\n $this->name = $name;\n }", "public function setName($name)\n {\n $this->name = $name;\n }", "public function setName($name)\n {\n $this->name = $name;\n }", "public function setName($name)\n {\n $this->name = $name;\n }", "public function setName($name)\n {\n $this->name = $name;\n }", "public function setName($name)\n {\n $this->name = $name;\n }", "public function setName($name)\n {\n $this->name = $name;\n }", "public function setName($name)\n {\n $this->name = $name;\n }", "public function setName($name)\n {\n $this->name = $name;\n }", "public function setName($name)\n {\n $this->name = $name;\n }", "public function setName($name)\n {\n $this->name = $name;\n }", "public function setName($name)\n {\n $this->name = $name;\n }", "public function setName($name)\n {\n $this->name = $name;\n }", "public function setName($name)\n {\n $this->name = $name;\n }", "public function setName($name)\n {\n $this->name = $name;\n }", "public function setName($name)\n {\n $this->name = $name;\n }", "public function setName($name)\n {\n $this->name = $name;\n }", "public function setName($name)\n {\n $this->name = $name;\n }", "public function setName($name)\n {\n $this->name = $name;\n }", "public function setName($name)\n {\n $this->name = $name;\n }", "public function setName($name)\n {\n $this->name = $name;\n }", "public function setName($name)\n {\n $this->name = $name;\n }", "public function setName($name)\n {\n $this->name = $name;\n }", "public function setName($name)\n {\n $this->name = $name;\n }", "public function setName($name)\n {\n $this->name = $name;\n }" ]
[ "0.83789617", "0.7254534", "0.7219108", "0.70757955", "0.6958144", "0.6800594", "0.6634945", "0.6606304", "0.65547985", "0.65547985", "0.6543", "0.6532631", "0.6529181", "0.6504587", "0.6479323", "0.64549565", "0.6429546", "0.64243466", "0.63571393", "0.63444024", "0.63444024", "0.63444024", "0.63444024", "0.63444024", "0.63444024", "0.63444024", "0.63444024", "0.63421243", "0.6331101", "0.63291675", "0.63291675", "0.62898403", "0.62887937", "0.6276637", "0.62748516", "0.62746257", "0.6272834", "0.627163", "0.627163", "0.627163", "0.627163", "0.627163", "0.627163", "0.6264953", "0.62546366", "0.624157", "0.6228512", "0.6228512", "0.6228512", "0.6228512", "0.6228512", "0.6228512", "0.6228512", "0.6225857", "0.6223778", "0.62183255", "0.6211469", "0.6201296", "0.6196362", "0.6194689", "0.6191772", "0.61899996", "0.617409", "0.61711127", "0.61696786", "0.6166489", "0.6166489", "0.6165896", "0.61646634", "0.61626804", "0.61624783", "0.6161924", "0.6161924", "0.6161924", "0.6161924", "0.6161924", "0.6161924", "0.6161924", "0.6161924", "0.6161924", "0.6161924", "0.6161924", "0.6161924", "0.6161924", "0.6161924", "0.6161924", "0.6161924", "0.6161924", "0.6161924", "0.6161924", "0.6161924", "0.6161924", "0.6161924", "0.6161924", "0.6161924", "0.6161924", "0.6161924", "0.6161924", "0.6161924", "0.6161924" ]
0.7573765
1
Returns the default style as a Style object > class_Style.php
public static function getStyle(){ $row = getDatabase()->queryFirstRow("SELECT `value` FROM `settings` WHERE `setting` = 'website_style'"); $styleFolder = $row['value']; return new Style($styleFolder); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function get_default_style(): Style {\n\t\treturn new self::$default_style();\n\t}", "public function getStyle() {}", "public static function getStyle ()\n {\n return self::$_style;\n }", "public function getStyle();", "function getStyle() {return $this->readstyle();}", "function getStyle() { return $this->_style; }", "public function style()\n {\n return $this->style;\n }", "public function getStyle() {\n\t\t\treturn $this->style;\n\t\t}", "public function getStyle()\n\t{\n\t\treturn $this->root->getParser()->style;\n\t}", "public function loadStyle(){\n \t\treturn null;\n \t}", "protected function _getStyleModel()\n\t{\n\t\treturn $this->getModelFromCache('XenForo_Model_Style');\n\t}", "public function getStyle(string $name);", "protected function createStyle()\n\t{\n\t\treturn new TPanelStyle;\n\t}", "public static function getPageStyle()\n {\n return ( isset( $_COOKIE['styleDefCon'] ) && in_array( $_COOKIE['styleDefCon'], self::$pageStyles ) )\n ? $_COOKIE['styleDefCon']\n : self::$pageStyles[0];\n }", "public function getStyles()\n {\n return Styles::newInstance()->getStyles();\n }", "public function styles() {\n\t\treturn parent::styles();\n\t}", "public function getStyle() {\n if (null != $this->style) {\n return $this->style;\n }\n $_ve = $this->getValueExpression(\"style\");\n if ($_ve != null) {\n return $_ve->getValue($this->getFacesContext()->getELContext());\n } else {\n return null;\n }\n }", "public function getStyle ($name) {\n return $this->styleset->getStyle($name);\n }", "protected function getStyles() {\r\n\t\treturn \"\";\r\n\t}", "public function getStyleClass() {\n if (null != $this->styleClass) {\n return $this->styleClass;\n }\n $_ve = $this->getValueExpression(\"styleClass\");\n if ($_ve != null) {\n return $_ve->getValue($this->getFacesContext()->getELContext());\n } else {\n return null;\n }\n }", "public function getCssStyle(): ?string;", "function GetStyle( $item )\r\n {\r\n return ( ( isset( $this->_style[$item] ) )?$this->_style[$item]:null );\r\n }", "public function stylePath() {\n\n // Check for Style to Use\n if($this->styleToUse) {\n\n // Return\n return $this->registeredStyles[$this->styleToUse];\n }\n\n return null;\n }", "private function _getStyleFor($style_str = null, array $options = array())\n\t{\n\t\treturn new Attachment\\Style($this->_interpretStyle($style_str), $options);\n\t}", "protected function getStyles() {\r\n return \"\";\r\n }", "function get_style_name($instance) {\n return 'style';\n }", "public function getStyleLoader();", "private function getDefaultStylesheet() {\n $stylesheet = $this->getStylesheets();\n return reset($stylesheet);\n }", "public function setDefault(interfaces\\output\\Style $default)\n\t\t{\n\t\t\t$this->default = $default;\n\n\t\t\treturn $this;\n\t\t}", "public function getDefaultStyleID()\n {\n return sprintf(\n '%s_%s',\n $this->Parent()->getHTMLID(),\n $this->getClassNameWithID()\n );\n }", "public function style(){\n\t\treturn '';\n\t}", "public function style(): ?string {\n\t\treturn $this->m_attributes[\"style\"];\n\t}", "public function get_styles () {\r\n\t\treturn empty($this->_data[self::STYLES])\r\n\t\t\t? array()\r\n\t\t\t: $this->_data[self::STYLES]\r\n\t\t;\r\n\t}", "static function _style_on() {\n\t\treturn self::style( true );\n\t}", "function wp_default_styles($styles)\n {\n }", "function hook_style() {\n\t\treturn null;\n\t}", "public function getStyleMarkup(){ return $this->styles_markup; }", "public function initStyle()\n {\n $this->value['id_tag'] = 'body'; // tag name\n $this->value['id_name'] = null; // tag - attribute name\n $this->value['id_id'] = null; // tag - attribute id\n $this->value['id_class'] = null; // tag - attribute class\n $this->value['id_lst'] = array('*'); // tag - list of legacy\n $this->value['mini-size'] = 1.; // specific size report for sup, sub\n $this->value['mini-decal'] = 0; // specific position report for sup, sub\n $this->value['font-family'] = 'Arial';\n $this->value['font-bold'] = false;\n $this->value['font-italic'] = false;\n $this->value['font-underline'] = false;\n $this->value['font-overline'] = false;\n $this->value['font-linethrough'] = false;\n $this->value['text-transform'] = 'none';\n $this->value['font-size'] = $this->convertToMM('10pt');\n $this->value['text-indent'] = 0;\n $this->value['text-align'] = 'left';\n $this->value['vertical-align'] = 'middle';\n $this->value['line-height'] = 'normal';\n\n $this->value['position'] = null;\n $this->value['x'] = null;\n $this->value['y'] = null;\n $this->value['width'] = 0;\n $this->value['height'] = 0;\n $this->value['top'] = null;\n $this->value['right'] = null;\n $this->value['bottom'] = null;\n $this->value['left'] = null;\n $this->value['float'] = null;\n $this->value['display'] = null;\n $this->value['rotate'] = null;\n $this->value['overflow'] = 'visible';\n\n $this->value['color'] = array(0, 0, 0);\n $this->value['background'] = array('color' => null, 'image' => null, 'position' => null, 'repeat' => null);\n $this->value['border'] = array();\n $this->value['padding'] = array();\n $this->value['margin'] = array();\n $this->value['margin-auto'] = false;\n\n $this->value['list-style-type'] = '';\n $this->value['list-style-image'] = '';\n\n $this->value['xc'] = null;\n $this->value['yc'] = null;\n }", "public function getStyles()\n {\n return $this->_styles;\n }", "public function getStyles()\n\t{\n\t\treturn $this->styles;\n\t}", "public function get_stylesheet()\n {\n }", "public function get_stylesheet()\n {\n }", "public function getStyleSheet() {\n return 'control';\n }", "function get_stylesheet()\n {\n }", "public function getOutput(): SymfonyStyle\n {\n return $this->output;\n }", "function drawStyle()\r\n\t{\r\n\t}", "public function getDefaultTextStyle() {\n return $this->stdout()->getDefaultTextStyle();\n }", "public function getStyles() {\n return $this->styles;\n }", "function get_style_name($instance) {\n\t\treturn false;\n\t}", "function my_wp_default_styles($styles)\n{\n\tglobal $stylesVersion;\n\t//use release date for version\n\t\n\t$styles->default_version = $stylesVersion;\n}", "public function getStyle($which)\n {\n if (array_key_exists($which, $this->_styles)) {\n return $this->_styles[$which];\n }\n\n return null;\n }", "static function style( $style ) {\n\t\t$previous_style = self::$style;\n\t\tself::$style = (bool) $style;\n\t\treturn $previous_style;\n\t}", "function getStyleArticle($numserie) {\n if (isset($this->article[$numserie]['style'])) return ($this->article[$numserie]['style']);\n else return 0;\n }", "public function getStyle($name)\n {\n $style = $this->getStyles();\n\n return $style[$name];\n }", "public function getFrontendStyles() {\n }", "public function getFrontendStyles() {\n }", "private function initStyle(){\n\t\t\t$file_style_normal = $this->root_path.'portal/realmstatus/wowclassic/styles/wowstatus.style_normal.class.php';\n\t\t\t$file_style_gdi = $this->root_path.'portal/realmstatus/wowclassic/styles/wowstatus.style_gdi.class.php';\n\t\t\t\n\t\t\t// include the files\n\t\t\tinclude_once($file_style_normal);\n\t\t\tinclude_once($file_style_gdi);\n\t\t\t\n\t\t\t// get class\n\t\t\tif ($this->config->get('gd', 'pmod_'.$this->moduleID))\n\t\t\t\t$this->style = registry::register('wowstatus_style_gdi');\n\t\t\t\telse\n\t\t\t\t\t$this->style = registry::register('wowstatus_style_normal');\n\t\t}", "public function getStyles() {\n return $this->_styles;\n }", "public function get_default_theme_style() {\n\t\t\treturn 'pink';\n\t\t}", "function getStyleSheet() {\n\t\treturn $this->getPluginPath() . '/styles/objectsForReview.css';\n\t}", "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 get_styles() {\n\t\treturn [];\n\t}", "function getStyleName() {\n\t\treturn $this->name;\n\t}", "public function styles()\n {\n return $this->group('styles');\n }", "public function createStyle(\n StyleEnum ...$styles\n ): StyleInterface;", "public function createStyle(\n StyleEnum ...$styles\n ): StyleInterface;", "public function getCss();", "public function getCss();", "public function getStyles() {\n $req = 'SELECT COUNT(rs.robe_id) AS nbContenuStyle, s.styl_id, styl_libelle '\n .'FROM t_style s left JOIN t_robe_de_soiree rs ON s.styl_id = rs.styl_id '\n .'GROUP BY styl_libelle';\n $styles = $this->executerRequete($req);\n return $styles;\n }", "function getInlineStyle($name = ''){\n\t\tif(!$this->isConfigured()) return false;\n\n\t\treturn $this->getTemplateObj()->getInlineStyle($name);\t\n\t}", "public static function defaultStyle(string $id): MetaTag {\n return static::httpEquiv('default-style', $id);\n }", "public static function renderStyle( array $styleOptions = array() );", "public function getStyleById($styleId)\n {\n return $this->model->find($styleId);\n }", "public function getCss()\n {\n return $this->data(self::CSS);\n }", "public static function css();", "public static function getStyle() {\r\n return 'odometer';\r\n }", "public function get_style_defs($arg=null)\n\t{\n\t\tif(!$arg) {\n\t\t\t$arg = isset($this->options['cssclass']) ? '.'.$this->cssclass : '';\n\t\t}\n\t\tif(is_string($arg)) {\n\t\t\t$args = array($arg);\n\t\t} else {\n\t\t\t$args = (array)$arg;\n\t\t}\n\t\t\n\t\t$prefix = function($cls) use ($args) {\n\t\t\tif($cls) {\n\t\t\t\t$cls = '.' . $cls;\n\t\t\t}\n\t\t\t$tmp = [];\n\t\t\tforeach($args as $arg) {\n\t\t\t\t$tmp[] = ($arg ? $arg . ' ' : '') . $cls;\n\t\t\t}\n\t\t\treturn implode(', ', $tmp);\t\t\t\n\t\t};\n\t\t\n\t\t$styles = [];\n\t\tforeach($this->class2style as $cls => $sstyle) {\n\t\t\t$styles[] = [\n\t\t\t\t'style' => $sstyle[0],\n\t\t\t\t'ttype'\t=> $sstyle[1],\n\t\t\t\t'level'\t=> $sstyle[2],\n\t\t\t\t'cls'\t=> $cls\n\t\t\t];\n\t\t}\n\n\t\tusort($styles, function ($a, $b) {\n \treturn $a['level'] - $b['level'];\n \t});\n\n\t\t$lines = [];\n\t\tforeach($styles as $sstyle) {\n\t\t\t//list($level, $ttype, $cls, $style) = $sstyle;\n\t\t\textract($sstyle);\n\t\t\t$lines[] = sprintf('%s { %s } /* %s */', $prefix($cls), $style, substr($ttype, 6));\n\t\t}\n\t\t\n\t\tif($arg && !$this->nobackground && $this->style->background_color) {\n\t\t\t$text_style = '';\n\t\t\tif(array_key_exists('Text', $this->ttype2class)) {\n\t\t\t\t$text_style = ' ' . $this->class2style[$this->ttype2class['Text']][0];\n\t\t\t}\n\t\t\tarray_splice($lines, 0, 0,\n\t\t\t\tsprintf('%s { background: %s;%s }', $prefix(''), $this->style->background_color, $text_style)\n\t\t\t);\t\t\t\t\t\t\t\n\t\t}\t\t\n\n\t\tif($this->style->highlight_color) {\n\t\t\tarray_splice($lines, 0, 0, \n\t\t\t\tsprintf('%s.hll { background-color: %s }', $prefix(''), $this->style->highlight_color)\n\t\t\t);\n\t\t}\n\t\t\n\t\treturn implode(\"\\n\", $lines);\n\t}", "function getStyleSheetId()\n\t{\n\t\treturn (int)$this->style;\n\t}", "function style ( $arguments = \"\" ) {\n $arguments = func_get_args();\n $rc = new ReflectionClass('tstyle');\n return $rc->newInstanceArgs( $arguments ); \n}", "function deco_get_stylesheet($styleSheet = null)\n{ \n if (!$styleSheet) {\n \n $styleSheet = get_theme_option('Style Sheet') ? \n get_theme_option('Style Sheet') : \n 'greenstripe';\n }\n \n return $styleSheet; \n \n}", "public function get_custom_css()\n {\n }", "function readStyles() { $this->ParseCSSFile();\n return $this->_stylelist; }", "public function get_stylesheet_css()\n {\n }", "function asc_default_styles( &$styles ) {\n\tinclude ABSPATH . ASC_CORE . '/version.php'; // include an unmodified $asc_version\n\n\tif ( ! defined( 'SCRIPT_DEBUG' ) )\n\t\tdefine( 'SCRIPT_DEBUG', false !== strpos( $asc_version, '-src' ) );\n\n\tif ( ! $guessurl = admin_storefront_url() ) {\n\t\t$guessed_url = true;\n\t\t$guessurl = site_url();\n\t}\n\n\t$styles->base_url = $guessurl;\n\t$styles->content_url = defined('ASC_CONTENT_URL')? ASC_CONTENT_URL : '';\n\t$styles->default_version = PRODUCT_VERSION_NUMBER; // get_bloginfo( 'version' );\n\t$styles->text_direction = function_exists( 'is_rtl' ) && is_rtl() ? 'rtl' : 'ltr';\n\t$styles->default_dirs = array('/wp-admin/', '/wp-includes/css/');\n\n\t$open_sans_font_url = '';\n\n\t/* translators: If there are characters in your language that are not supported\n\t * by Open Sans, translate this to 'off'. Do not translate into your own language.\n\t */\n/*\tif ( 'off' !== _x( 'on', 'Open Sans font: on or off' ) ) { */\n\t\t$subsets = 'latin,latin-ext';\n\n\t\t/* translators: To add an additional Open Sans character subset specific to your language,\n\t\t * translate this to 'greek', 'cyrillic' or 'vietnamese'. Do not translate into your own language.\n\t\t */\n\t\t//$subset = _x( 'no-subset', 'Open Sans font: add new subset (greek, cyrillic, vietnamese)' );\n\n\t\tif ( 'cyrillic' == $subset ) {\n\t\t\t$subsets .= ',cyrillic,cyrillic-ext';\n\t\t} elseif ( 'greek' == $subset ) {\n\t\t\t$subsets .= ',greek,greek-ext';\n\t\t} elseif ( 'vietnamese' == $subset ) {\n\t\t\t$subsets .= ',vietnamese';\n\t\t}\n\n\t\t// Hotlink Open Sans, for now\n\t\t$open_sans_font_url = \"//fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,300,400,600&subset=$subsets\";\n\t//}\n\n\t// Register a stylesheet for the selected admin color scheme.\n\t$styles->add( 'colors', true, array( 'wp-admin', 'buttons', 'open-sans', 'dashicons' ) );\n\n\t$suffix = SCRIPT_DEBUG ? '' : '.min';\n\n\t$styles->add_data( 'ie', 'conditional', 'lte IE 7' );\n\n\t//Avactis additional css\n\t$styles->add( 'bootstrap',\"includes/bootstrap/css/bootstrap.min.css\", array(), '3.2.0' );\n\t$styles->add( 'gfont-open-sans',\"//fonts.googleapis.com/css?family=Open+Sans:400,300,600,700&subset=all\" );\n\t$styles->add( 'font-awesome',\"includes/font-awesome/css/font-awesome.min.css\" );\n\t$styles->add( 'simple-line-icons',\"includes/simple-line-icons/simple-line-icons.min.css\" );\n\t$styles->add( 'jquery-uniform',\"includes/uniform/css/uniform.default.min.css\" );\n\t$styles->add( 'bootstrap-switch',\"includes/bootstrap-switch/css/bootstrap-switch.min.css\" );\n\t$styles->add( 'select2',\"includes/select2/select2.css\" );\n\t$styles->add( 'components',\"includes/components.css\" );\n\t$styles->add( 'plugins',\"includes/plugins.css\" );\n\n\t$styles->add( 'fullcalendar',\"includes/fullcalendar/fullcalendar.css\" );\n\t$styles->add( 'bootstrap-daterangepicker',\"includes/bootstrap-daterangepicker/daterangepicker-bs3.css\" );\n\t$styles->add( 'bootstrap-datepicker',\"includes/bootstrap-datepicker/css/datepicker.css\" );\n\t$styles->add( 'bootstrap-dataTables',\"includes/datatables/plugins/bootstrap/dataTables.bootstrap.css\" );\n\t$styles->add( 'bootstrap-toastr',\"includes/bootstrap-toastr/toastr.min.css\" );\n\t$styles->add( 'jquery.gritter',\"includes/gritter/css/jquery.gritter.css\" );\n\t$styles->add( 'jquery-colorbox',\"includes/colorbox/colorbox.css\" );\n\n\t$styles->add( 'admin-login-soft',\"avactis-system/admin/styles/login-soft.css\" );\n\t$styles->add( 'admin-tasks',\"avactis-system/admin/styles/tasks.css\" );\n\t$styles->add( 'admin-default',\"avactis-system/admin/styles/default.css\" );\n\t$styles->add( 'admin-custom',\"avactis-system/admin/styles/custom.css\" );\n\t$styles->add( 'admin-layout',\"avactis-system/admin/styles/layout.css\" );\n\t//$styles->add( 'admin-buttons',\"avactis-system/admin/styles/button_styles.css\" );\n\t$styles->add( 'admin-tree-component',\"avactis-system/admin/jstree/tree_component.css\" );\n\t$styles->add( 'admin-tree-css',\"avactis-system/admin/jstree/themes/default/style.css\" );\n\n\tforeach ( $rtl_styles as $rtl_style ) {\n\t\t$styles->add_data( $rtl_style, 'rtl', 'replace' );\n\t\tif ( $suffix ) {\n\t\t\t$styles->add_data( $rtl_style, 'suffix', $suffix );\n\t\t}\n\t}\n}", "public function style($value) {\n return $this->setProperty('style', $value);\n }", "public function style($value) {\n return $this->setProperty('style', $value);\n }", "public function generate()\n {\n \treturn new Output($this->style->draw());\n }", "public static function style( string $handle ): self {\n\t\treturn new self( $handle, 'style' );\n\t}", "public function css();", "public function solid()\n {\n return $this->style('solid');\n }", "public static function set_default_style( string $style ): void {\n\t\t// If not a valid style, throw exception.\n\t\tif ( ! implementsInterface( Style::class )( $style ) ) {\n\t\t\tthrow new \\InvalidArgumentException( 'Defined style must implement Style interface' );\n\t\t}\n\n\t\tself::$default_style = $style;\n\t}", "static public function getCSS() {\n\t\treturn self::$css;\n\t}", "public static function getTemplateStyle($id = 0)\n\t{\n\t\t$db = Factory::getDbo();\n\t\t$query = $db->getQuery(true);\n\n\t\t$query->select(array('*'));\n\t\t$query->from($db->quoteName('#__template_styles'));\n\n\t\t$query->where($db->quoteName('client_id') . ' = 0');\n\t\t$query->where($db->quoteName('id') . ' = ' . $db->quote($id));\n\n\t\t$db->setQuery($query);\n\n\t\treturn $db->loadObject();\n\t}", "public function getCss()\n {\n return self::$CSS . ' ' . self::$CSS_PREFIX . $this->type;\n }", "public function getStyleName()\n {\n return $this->name;\n }", "public function default_styles()\n {\n if( ! is_array(self::$styles))\n {\n self::$styles = array();\n }\n self::$styles[]= 'modules/xview/vendor/bluetrip/css/screen.css';\n self::$styles[]= 'modules/xview/vendor/superfish/css/superfish.css';\n self::$styles[]= 'modules/xview/vendor/superfish/css/superfish-navbar.css';\n self::$styles[]= 'modules/xview/vendor/jqueryui/css/flick/jquery-ui-1.8.4.custom.css';\n self::$styles[]= 'modules/xview/media/xhtml.css';\n\n }", "private function styles_pointer() {\n\t\treturn array(\n\t\t\t'content' => '<h3>' . __( 'Styles', 'formidable' ) . '</h3>'\n\t\t\t . '<p>' . __( 'Want to make changes to the way your forms look? Make all the changes you would like right here, and watch the sample form change before your eyes.', 'formidable' ) . '</p>',\n\t\t\t'prev_page' => 'entries',\n\t\t\t'next_page' => 'import',\n\t\t\t'selector' => '.general-style',\n\t\t\t'position' => array( 'edge' => 'left', 'align' => 'right' ),\n\t\t);\n\t}", "public function getLayoutStyle()\n {\n return $this->hasOne(LayoutStyle::className(), ['id' => 'layoutStyleId']);\n }", "public function current()\n\t\t{\n\t\t\treturn $this->count() ? end($this->styles) : $this->default;\n\t\t}", "public function css()\n {\n return $this->css;\n }" ]
[ "0.8260455", "0.7893918", "0.7877735", "0.7847255", "0.76584935", "0.76470417", "0.7429949", "0.7346633", "0.7281635", "0.71691877", "0.69547147", "0.68872124", "0.6775544", "0.67154795", "0.66909873", "0.66063875", "0.6560256", "0.6549838", "0.6527041", "0.6523996", "0.6509401", "0.6492678", "0.6490741", "0.6489863", "0.6478298", "0.64678764", "0.6447111", "0.6385737", "0.6383334", "0.6316581", "0.63143086", "0.63097703", "0.62837607", "0.62759966", "0.62669927", "0.62154156", "0.62109447", "0.61937433", "0.6186737", "0.6178957", "0.61620677", "0.61620677", "0.61522174", "0.6127771", "0.61137724", "0.609397", "0.6072283", "0.6068746", "0.6040042", "0.6038785", "0.6036898", "0.60297877", "0.6019055", "0.60152155", "0.5985334", "0.5985334", "0.59840035", "0.598116", "0.5968503", "0.5964755", "0.59602195", "0.5935022", "0.5904553", "0.5895515", "0.5887874", "0.5887874", "0.5880482", "0.5880482", "0.5878604", "0.58777004", "0.5871977", "0.5845583", "0.58386517", "0.58138806", "0.5801889", "0.5797519", "0.5780932", "0.57637036", "0.57605255", "0.5756703", "0.5731086", "0.5730935", "0.57286733", "0.57270855", "0.5717025", "0.5717025", "0.5713991", "0.57095194", "0.5690958", "0.56862646", "0.567717", "0.56752336", "0.5655188", "0.5649553", "0.56447375", "0.5637274", "0.56231606", "0.56180817", "0.5614839", "0.5613067" ]
0.7373228
7
Returns the email address of the administratior
public static function getEmail(){ if(Cache::isStored('website_email')) return Cache::get('website_email'); $row = getDatabase()->queryFirstRow("SELECT `value` FROM `settings` WHERE `setting` = 'website_email'"); $address = $row['value']; Cache::store('website_email', $address); return $address; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAdminEmail();", "function get_admin_email() {\n return $this->admin_email;\n }", "public function getAdminEmail() {\n return $this->scopeConfig->getValue ( static::XML_ADMIN_EMAILS, ScopeInterface::SCOPE_STORE );\n }", "private function getAdminEmail()\n {\n return sfConfig::get('app_rt_registration_admin_email', sfConfig::get('app_rt_admin_email'));\n }", "public function getAdminEmail() : string\n {\n return $this->getValue('nb_domain_zone_admin_email');\n }", "public function getSiteAdminEmail()\n {\n $this->db->select('email')\n ->where('admin', 1);\n $q = $this->db->get('user');\n\n return $q->result();\n }", "function get_admin_email(){\n\t\t$resObj = $this->db->where('default_account_id',2)->get('ox_users');\n\t\tif($resObj->num_rows >0){\n\t\t\t$temp = $resObj->result();\n\t\t\treturn $temp[0]->email_address;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn FALSE;\n\t\t}\n\t}", "function getSupervisorEmail() {\n\t\treturn $this->getData('supervisorEmail');\n\t}", "public function getEmailAddress()\n {\n return $this->_getVar('user_email');\n }", "public function admin_email() {\n $this->db->where('user_id_PK', 1);\n $result = $this->db->get(TBL_USERS);\n if ($result->num_rows() > 0) {\n $email = $result->row();\n return $email->email;\n }\n else\n return FALSE;\n }", "function m_GetAdminEmail()\n\t{\t\t\t\t\t\t\n\t\t$stQuery = \"SELECT vEmail FROM tb_admin WHERE iId = 1\";\t\n\t\t$rsResult = $this->obDbase->Execute($stQuery);\n\t\tif (!$rsResult)\n\t\t{ \t\t\t\t\t\t\t\n\t\t\treturn false;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn $rsResult->fields['vEmail'];\t\t\t \n\t\t}\t\t\t\t\n\t}", "public function getEmail()\n {\n return $this->__get(\"email\");\n }", "function get_hoster_email()\t{\n\t\t// some mandants may have configured an individual hoster_email in their TS-Template\n\t\tif(!empty($this->conf['contact_email']) && t3lib_div::validEmail($this->conf['contact_email'])){\n\t\t\treturn $this->conf['contact_email'];\n\t\t}\n\n\t\t// default: take the email-adress given in tx_civserv_configuration\n\t\t$hoster_email=\"\";\n\t\t$res = $GLOBALS['TYPO3_DB']->exec_SELECTquery(\n\t\t\t'cf_value',\t\t\t \t\t\t\t\t\t\t// SELECT ...\n\t\t\t'tx_civserv_configuration',\t\t\t\t\t\t// FROM ...\n\t\t\t'cf_key = \"mail_to\"',\t\t// AND title LIKE \"%blabla%\"', // WHERE...\n\t\t\t'', \t\t\t\t\t\t\t\t\t\t\t// GROUP BY...\n\t\t\t'', \t\t\t\t\t\t\t\t\t\t\t// ORDER BY...\n\t\t\t'' \t\t\t\t\t\t\t\t\t\t\t\t// LIMIT to 10 rows, starting with number 5 (MySQL compat.)\n\t\t);\n\t\tif($res){\n\t\t\t$row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res);\n\t\t\t$hoster_email = $row['cf_value'];\n\t\t}else{\n\t\t\t$hoster_email = \"info@some_hoster.de\";\n\t\t}\n\t\tif ($hoster_email == ''){\n\t\t\t$hoster_email = \"info@some_hoster.de\";\n\t\t}\n\t\treturn $hoster_email;\n\t}", "private function getSystemEmail() : string {\n\n\t\t\tif (empty($_SERVER['HTTP_HOST'])) return CONFIG_SYSTEM_EMAIL;\n\n\t\t\treturn ('admin@' . $_SERVER['HTTP_HOST']);\n\t\t}", "public function getEmail()\r\n {\r\n return $this->getGuardUser()->getEmail();\r\n }", "public function getEmail()\n {\n return isset($this->user['email']) ? $this->user['email'] : $this->user['id'].'@mail.com';\n }", "public function getEmail() {\n return $this->getValue('email');\n }", "public function getEmail()\n {\n return $this->getParam(self::EMAIL);\n }", "public function getEmail() : string\r\n\t{\r\n\t\treturn $this->email;\r\n\t}", "public function getEmail(): string\n\t{\n\t\treturn $this->email->getEmail();\n\t}", "public function getEmail() {\n\t\treturn($this->email);\n\t}", "function getEmail() {\n\t\treturn $this->getData('email');\n\t}", "public function getEmail()\n {\n return $this->get(self::EMAIL);\n }", "public function getEmail()\n {\n \treturn $this->email;\n }", "public function getAssigneeEmail();", "public function getEmail() {\n return $this->getGuardUser()->getEmail();\n }", "public function getEmail() : string {\n return $this->email;\n }", "public function getEMAIL()\r\n {\r\n return $this->EMAIL;\r\n }", "public function getAuthoremail() {}", "public function get_email() {\r\n return $this->email;\r\n }", "public function getEmail() {\n return $this->get('email', 'user');\n }", "public function getEmail() {}", "public function getEmail() {}", "public function getEmail() {}", "public function getEmail() {}", "public function getEmail() {}", "public function get_email() \n {\n return $this->email;\n }", "public function getEmail()\n\t\t{\n\t\treturn $this->email;\n\t\t}", "public function getEmail()\n\t{\n\t\treturn $this->email;\n\t}", "public function getEmail()\n\t{\n\t\treturn $this->email;\n\t}", "public function getEmail()\n\t{\n\t\treturn $this->email;\n\t}", "public function getEmail()\n\t{\n\t\treturn $this->email;\n\t}", "public function getEmail()\n\t{\n\t\treturn $this->email;\n\t}", "public function getEmail()\n\t{\n\t\treturn $this->email;\n\t}", "public function getEmail();", "public function getEmail();", "public function getEmail();", "public function getEmail();", "public function getEmail();", "public function getEmail();", "public function getEmail();", "public function getEmail();", "public function getEmail();", "public function getEmail();", "public function getEmail();", "public function getEmail() {\n return($this->email);\n }", "public function getEmail()\r\n {\r\n return $this->email;\r\n }", "public function getEmail() {\r\n\t\t\t$email = null;\r\n\t\t\tif( $user != null ) {\r\n\t\t\t\t$email = $user->getEmail();\r\n\t\t\t}\r\n\t\t\treturn $email;\r\n\t\t}", "public function getEmail(){\r\n\t\t\treturn $this->email;\r\n\t\t}", "public function getEmail()\n {\n return $this->getParameter('email');\n }", "public function getEmail()\n {\n return $this->getParameter('email');\n }", "public function getEmail()\n {\n return $this->getParameter('email');\n }", "public function getEmail()\n {\n return $this->getParameter('email');\n }", "public function getEmail()\n {\n return $this->getParameter('email');\n }", "public function getUserEmail () {\n\t\treturn ($this->userEmail);\n\t}", "public function getEmail(): string\n {\n return $this->email;\n }", "public function getEmail(): string\n {\n return $this->email;\n }", "public function getEmail(): string\n {\n return $this->email;\n }", "public function getEmail(): string\n {\n return $this->email;\n }", "public function getEmail()\r\n\t{\r\n\t\treturn $this['email'];\r\n\t}", "public function getEmail()\n\t\t{\n\t\t\tglobal $email;\n\t\t\treturn $email;\n\t\t}", "public function getEmail()\r\n {\r\n return $this->email;\r\n }", "public function getEmail()\r\n {\r\n return $this->email;\r\n }", "public function getEmail()\n {\n return $this->get('Email');\n }", "public function getUserEmail() {\n\t\treturn $this->userEmail;\n\t}", "public function getUserEmail() {\n\t\treturn $this->userEmail;\n\t}", "public function getEmail(): string {\n return $this->email;\n }", "public static function getEmail()\n {\n return self::$email;\n }", "public function getEmail(){\n\t\treturn $this->email;\n\t}", "public function getADEmail()\n\t{\n\t\treturn $this->email;\n\t}", "public function getEmail(){\n\t\t\treturn $this->email;\n\t\t}", "public function getEmail() {\r\n return $this->email;\r\n }", "public function getEmail()\n {\n return $this->email;\n }", "public function getEmail()\n {\n return $this->email;\n }", "public function getEmail()\n {\n return $this->email;\n }", "public function getEmail()\n {\n return $this->email;\n }", "public function getEmail()\n {\n return $this->email;\n }", "public function getEmail()\n {\n return $this->email;\n }", "public function getEmail()\n {\n return $this->email;\n }", "public function getEmail()\n {\n return $this->email;\n }", "public function getEmail()\n {\n return $this->email;\n }", "public function getEmail()\n {\n return $this->email;\n }", "public function getEmail()\n {\n return $this->email;\n }", "public function getEmail()\n {\n return $this->email;\n }", "public function getEmail()\n {\n return $this->email;\n }", "public function getEmail()\n {\n return $this->email;\n }", "public function getEmail()\n {\n return $this->email;\n }", "public function getEmail()\n {\n return $this->email;\n }", "public function getEmail()\n {\n return $this->email;\n }", "public function getEmail()\n {\n return $this->email;\n }", "public function getEmail()\n {\n return $this->email;\n }" ]
[ "0.85706234", "0.81363225", "0.80531865", "0.78356975", "0.7828751", "0.76872224", "0.7557662", "0.7545722", "0.7539508", "0.74742", "0.74325246", "0.7383529", "0.73716295", "0.73452705", "0.726025", "0.7248092", "0.723006", "0.7225359", "0.7221997", "0.7211638", "0.7163728", "0.7161795", "0.7152815", "0.71504843", "0.7147415", "0.714418", "0.7138005", "0.71268904", "0.7126433", "0.7121141", "0.71191114", "0.7110766", "0.7110766", "0.7110766", "0.71100104", "0.71100104", "0.710992", "0.7108928", "0.7105235", "0.7105235", "0.7105235", "0.7105235", "0.7105235", "0.7105235", "0.7103933", "0.7103933", "0.7103933", "0.7103933", "0.7103933", "0.7103933", "0.7103933", "0.7103933", "0.7103933", "0.7103933", "0.7103933", "0.71000385", "0.7089195", "0.7086705", "0.7075808", "0.70751524", "0.70751524", "0.70751524", "0.70751524", "0.70751524", "0.70743585", "0.7070923", "0.7070923", "0.7070923", "0.7070923", "0.70701647", "0.7069706", "0.7067149", "0.7067149", "0.7066966", "0.70612913", "0.70612913", "0.70552427", "0.70543855", "0.7053874", "0.7044541", "0.7038298", "0.7037445", "0.70335966", "0.70335966", "0.70335966", "0.70335966", "0.70335966", "0.70335966", "0.70335966", "0.70335966", "0.70335966", "0.70335966", "0.70335966", "0.70335966", "0.70335966", "0.70335966", "0.70335966", "0.70335966", "0.70335966", "0.70335966", "0.70335966" ]
0.0
-1
Returns the language name
public static function getLanguageName(){ if(Cache::isStored('website_lang')) return Cache::get('website_lang'); $row = getDatabase()->queryFirstRow("SELECT `value` FROM `settings` WHERE `setting` = 'website_lang'"); Cache::store('website_lang', $row['value']); return $row['value']; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function name(string $language): string;", "function getLanguageName() {\n global $CONF, $member;\n\n if ($member && $member->isLoggedIn() ) {\n // try to use members language\n $memlang = $member->getLanguage();\n\n if (($memlang != '') && (checkLanguage($memlang) ) ) {\n return $memlang;\n }\n }\n\n // use default language\n if (checkLanguage($CONF['Language']) ) {\n return $CONF['Language'];\n } else {\n return 'english';\n }\n}", "function language_name($language)\n{\n\tif (!isset($language)) {\n\t\treturn null;\n\t} \n\t\n\tstatic $name = array();\n if (!count($name)) {\n $name = languagelist();\n } \n return $name[$language];\n}", "public function getLanguage(): string\n {\n return $this->language;\n }", "public function getLanguage(): string\n {\n return $this->language;\n }", "public function getFromLanguage(): string;", "abstract public function getLocaleName();", "public function getLanguage();", "public function getLanguage();", "public function getLanguage();", "public function getLanguage();", "public function getLanguage();", "public function getLanguage();", "public function getLang();", "public function getName_en()\n {\n return $this->name_en;\n }", "public function getName_en()\n {\n return $this->name_en;\n }", "public function getLanguage() {}", "public function getLang() {\n\t\treturn substr(Mage::app()->getLocale()->getLocaleCode(), 0, 2);\n\t}", "function GetLanguagesName()\r\n\t{\r\n\t\treturn $this->m_languages;\r\n\t}", "public static function getLanguage()\n {\n if (!is_array(self::$languages)) {\n self::checkLanguages();\n }\n\n return strtolower(substr(reset(self::$languages), 0, 2));\n }", "public function get_language() {\n if (defined('WPLANG')) {\n $language = WPLANG;\n }\n\n if (empty($language)) {\n $language = get_option('WPLANG');\n }\n\n if (!empty($language)) {\n $languageParts = explode('_', $language);\n return $languageParts[0];\n }\n\n return 'en';\n }", "public function getName()\n {\n return $this->getLocales()[$this->getCurrent()]->name;\n }", "public function getLang(): string {\n return $this->lang;\n }", "final public function getLang(): string {\n $this->init();\n return $this->language;\n }", "public function getName()\n {\n return '_locale';\n }", "static public function english_name() : string {\n return \"Russian\";\n }", "public function getLocalizedName();", "static public function name() : string {\n return \"русский язык\";\n \n }", "public function getLanguage()\r\n {\r\n $language = $this->getTransaction()->languageName;\r\n if(empty($language))\r\n {\r\n $language = leaf_get('properties', 'language_code');\r\n }\r\n\t\treturn $language;\r\n\t}", "public function getLanguageIdentifier();", "public function getName() {\n\t\treturn 'i18n';\n\t}", "protected function getLanguage()\n {\n return $this->localeHeper->getLanguage();\n }", "function lang()\n\t{\n\t\t$args = func_get_args();\n\t\tif (is_array($args) && count($args) == 1 && is_array($args[0]))\n\t\t\t$args = $args[0];\n\t\treturn CmsLanguage::translate($args[0], array_slice($args, 1), $this->get_name(), '', $this->default_language());\n\t}", "public function getLanguage()\n\t{\n\t\t$language = isset($this->session->data['language']) ? $this->session->data['language'] : $this->config->get('config_language');\n\n\t\t$language_code = substr($language, 0, 2);\n\n\t\t$this->bootstrap();\n\n\t\t$is_available = @constant('\\Genesis\\API\\Constants\\i18n::' . strtoupper($language_code));\n\n\t\tif ($is_available) {\n\t\t\treturn strtolower($language_code);\n\t\t} else {\n\t\t\treturn 'en';\n\t\t}\n\t}", "public function getLanguageName($lang_value)\n {\n $language_array=$this->_arrayDb->loadArrayv2(\"EP_LANGUAGES\", $this->_lang);\n return $language_array[$lang_value];\n }", "public static function getLang()\n {\n return self::getInstance()->lang;\n }", "public function getLang()\n {\n return $this->lang;\n }", "public function getLang()\n {\n return $this->lang;\n }", "public function get_language()\n\t{\n\t\tif ($this->userdata['language'] != '')\n\t\t{\n\t\t\treturn $this->userdata['language'];\n\t\t}\n\t\tif (ee()->input->cookie('language'))\n\t\t{\n\t\t\treturn ee()->input->cookie('language');\n\t\t}\n\t\telse if (ee()->config->item('deft_lang') != '')\n\t\t{\n\t\t\treturn ee()->config->item('deft_lang');\n\t\t}\n\n\t\treturn 'english';\n\t}", "public static function langName($lang)\n {\n $langName = [\n\n 'af' => 'Afrikaans',\n 'ar' => 'Arabic',\n 'az' => 'Azerbaijani',\n 'bg' => 'Bulgarian',\n 'be' => 'Belarusian',\n 'bn' => 'Bengali',\n 'br' => 'Breton',\n 'bs' => 'Bosnian',\n 'ca' => 'Catalan',\n 'cs' => 'Czech',\n 'cy' => 'Welsh',\n 'da' => 'Danish',\n 'de' => 'German',\n 'el' => 'Greek',\n 'en' => 'English',\n 'en-gb' => 'British English',\n 'eo' => 'Esperanto',\n 'es' => 'Spanish',\n 'es-ar' => 'Argentinian Spanish',\n 'es-mx' => 'Mexican Spanish',\n 'es-ni' => 'Nicaraguan Spanish',\n 'es-ve' => 'Venezuelan Spanish',\n 'et' => 'Estonian',\n 'eu' => 'Basque',\n 'fa' => 'Persian',\n 'fi' => 'Finnish',\n 'fr' => 'French',\n 'fy-nl' => 'Frisian',\n 'ga' => 'Irish',\n 'gl' => 'Galician',\n 'he' => 'Hebrew',\n 'hi' => 'Hindi',\n 'hr' => 'Croatian',\n 'hu' => 'Hungarian',\n 'ia' => 'Interlingua',\n 'id' => 'Indonesian',\n 'is' => 'Icelandic',\n 'it' => 'Italian',\n 'ja' => 'Japanese',\n 'ka' => 'Georgian',\n 'kk' => 'Kazakh',\n 'km' => 'Khmer',\n 'kn' => 'Kannada',\n 'ko' => 'Korean',\n 'lb' => 'Luxembourgish',\n 'lt' => 'Lithuanian',\n 'lv' => 'Latvian',\n 'mk' => 'Macedonian',\n 'ml' => 'Malayalam',\n 'mn' => 'Mongolian',\n 'my' => 'Burmese',\n 'nb' => 'Norwegian Bokmal',\n 'ne' => 'Nepali',\n 'nl' => 'Dutch',\n 'nn' => 'Norwegian Nynorsk',\n 'os' => 'Ossetic',\n 'pa' => 'Punjabi',\n 'pl' => 'Polish',\n 'pt' => 'Portuguese',\n 'pt-br' => 'Brazilian Portuguese',\n 'ro' => 'Romanian',\n 'ru' => 'Russian',\n 'sk' => 'Slovak',\n 'sl' => 'Slovenian',\n 'sq' => 'Albanian',\n 'sr' => 'Serbian',\n 'sr-latn' => 'Serbian Latin',\n 'sv' => 'Swedish',\n 'sw' => 'Swahili',\n 'ta' => 'Tamil',\n 'te' => 'Telugu',\n 'th' => 'Thai',\n 'tr' => 'Turkish',\n 'tt' => 'Tatar',\n 'udm' => 'Udmurt',\n 'uk' => 'Ukrainian',\n 'ur' => 'Urdu',\n 'vi' => 'Vietnamese',\n 'zh-cn' => 'Simplified Chinese',\n 'zh-tw' => 'Traditional Chinese'\n ];\n\n return $langName[$lang];\n }", "public function getLangcode() {\n }", "public function getLanguage()\n {\n return $this->getParameter('language');\n }", "public function getLanguage()\n {\n return self::$language;\n }", "public function getlanguage()\n {\n return $this->language;\n }", "public function get_language() {\r\n\t\treturn $this->language;\r\n\t}", "public function getName()\n {\n return 'i18n';\n }", "public function get_language()\n {\n }", "public function lang()\n {\n return $this->currlang();\n }", "function getLocalizedName() {\n\t\treturn $this->getLocalizedData('name');\n\t}", "public function get_language() \n {\n return $this->language;\n }", "static public function getLanguage() {\n\t\treturn self::$language;\n\t}", "public function name(LanguagesDb $language = null)\n {\n if ($this->isNonexistent) return false;\n\n if (!$language) $language = Language::getInstance()->getCurrentLanguage();\n\n if (!FeedbackNamesTranslatesDb::getTranslate($this->id, $language->id)) return $this->program_name;\n\n return FeedbackNamesTranslatesDb::getTranslate($this->id, $language->id)->name;\n }", "public function lang(): string;", "public function getLanguage()\n {\n return $this->getFieldValue('language');\n }", "public function getLanguage() {\n\t\treturn $this->getParameter('app_language');\n\t}", "public function getLang()\n\t{\n\t\treturn $this->token->getLang();\n\t}", "public function naturalName(string $language): string;", "public function getLanguage()\n {\n if ($this->_language === null) {\n $this->_language = strtolower(Yii::$app->language);\n }\n return $this->_language;\n }", "public function getLang()\n {\n return $this->_lang;\n }", "public function getLanguageNameByCode(string $code): string;", "public static function get_lang() {\n\t\t$language = \\Config::get ( 'language' );\n\t\tempty ( $language ) and $language = static::$fallback [0];\n\t\treturn $language;\n\t}", "private function getFieldLanguage() {\n\t\t$fieldsParent = $this->getFieldsParentByReference();\n\t\tif ( $fieldsParent ) {\n\t\t\treturn $this->getLanguageCode( $fieldsParent, sprintf( 'post_%s', self::GROUP_POST_TYPE ) );\n\t\t}\n\t\treturn '';\n\t}", "public function getLanguage()\n\t{\n\t\treturn $this->language ? $this->language->getLid() : null;\n\t}", "public function getLanguage()\n\t{\n\t\treturn $this->language;\n\t}", "public function getLanguage()\n\t{\n\t\treturn $this->language;\n\t}", "public function getLanguage() {\n\t\treturn $this->languageCode;\n\t}", "static function getLanguage (){\n return self::$language;\n }", "public function GetLanguage()\n {\n return $this->language;\n }", "public function getLanguage() {\n return $this->getValueOrDefault('Language');\n }", "public function name( $language ) {\r\n\t\tif ( !isset( $this->names[$language] ) ) {\r\n\t\t\tthrow new Exception( sprintf( 'No name defined for Language \"%s\" on this locale', $language ) );\r\n\t\t}\r\n\t\treturn $this->names[$language];\r\n\t}", "private static function getLanguage()\n {\n if (isset($_COOKIE[\"language\"]))\n {\n return $_COOKIE[\"language\"];\n }\n else\n {\n // Default is Czech\n return \"cs\";\n }\n }", "public function getLanguage()\n\t{\n\t\treturn $this->languageId;\n\t}", "public function getLanguage()\n {\n return $this->language;\n }", "public function getLanguage()\n {\n return $this->language;\n }", "public function getLanguage()\n {\n return $this->language;\n }", "public function getLanguage()\n {\n return $this->language;\n }", "public function getLanguage()\n {\n return $this->language;\n }", "public function getLanguage()\n {\n return $this->language;\n }", "public function getLanguage()\n {\n return $this->language;\n }", "public function getLanguage()\n {\n return $this->language;\n }", "public function getLanguage()\n {\n return $this->language;\n }", "public function getLanguage()\n {\n return $this->language;\n }", "public static function getLanguageLocale()\n {\n if (!is_array(self::$languages)) {\n self::checkLanguages();\n }\n\n $userLanguage = self::getLanguage();\n foreach (self::$languages as $language) {\n if (strlen($language) === 5 && strpos($language, $userLanguage) === 0) {\n $locale = substr($language, -2);\n break;\n }\n }\n\n if (!empty($locale)) {\n return $userLanguage . \"-\" . strtoupper($locale);\n } else {\n return $userLanguage;\n }\n }", "public function getCode(): string\n {\n return $this->language;\n }", "public static function getLanguage() {\n $settings = self::getSettings();\n \n return $settings->language;\n }", "function weglotLanguage($iso639, $getEnglish = true)\n {\n $client = new Client(config('weglot-translate.api_key'));\n $translate = new Languages($client);\n $languageCollection = $translate->handle();\n\n $language = $languageCollection->getCode($iso639);\n if (!$language instanceof LanguageEntry) {\n return '';\n }\n\n if ($getEnglish) {\n return $language->getEnglishName();\n }\n return $language->getLocalName();\n }", "public function language();", "public function language();", "public function get_language() {\n return $this->_language;\n }", "abstract public function get_app_language();", "public function getLang()\n\t{\n\t\treturn $this->pageLanguage;\n\t}", "function lang()\n {\n global $CFG; \n $language = $CFG->item('language');\n \n $lang = array_search($language, $this->languages);\n if ($lang)\n {\n return $lang;\n }\n \n return NULL; // this should not happen\n }", "function tincanlaunch_get_moodle_language() {\n $lang = current_language();\n $langarr = explode('_', $lang);\n if (count($langarr) == 2) {\n return $langarr[0] . '-' . strtoupper($langarr[1]);\n } else {\n return $lang;\n }\n}", "public static function get() {\n\t\treturn self::$lang;\n\t}", "public function getLanguage()\n {\n return substr($this->server['HTTP_ACCEPT_LANGUAGE'], 0, 2);\n }", "public function getName()\n {\n return $this->getTranslation()->getName();\n }", "public function getBackOfficeLanguage();", "protected function getTranslationCode()\n {\n $code = 'en';\n\n if (\\XLite\\Logic\\Import\\Importer::getLanguageCode()) {\n $code = \\XLite\\Logic\\Import\\Importer::getLanguageCode();\n\n } elseif (!\\XLite::isCacheBuilding()\n && \\XLite\\Core\\Session::getInstance()->getLanguage()\n ) {\n $code = \\XLite\\Core\\Session::getInstance()->getLanguage()->getCode();\n }\n\n return $code;\n }", "public function getLanguage()\n {\n if (array_key_exists(\"language\", $this->_propDict)) {\n return $this->_propDict[\"language\"];\n } else {\n return null;\n }\n }", "public function getLanguage() {\n return $this->language;\n }" ]
[ "0.8139585", "0.81319916", "0.79998666", "0.787122", "0.787122", "0.783072", "0.7822718", "0.7819172", "0.7819172", "0.7819172", "0.7819172", "0.7819172", "0.7819172", "0.7809372", "0.78029484", "0.78029484", "0.7782731", "0.7778861", "0.776999", "0.7694113", "0.768837", "0.76843894", "0.7669876", "0.766665", "0.7601834", "0.75812733", "0.7535988", "0.7510869", "0.7508776", "0.7479267", "0.7478891", "0.74730474", "0.7472179", "0.7471286", "0.7467592", "0.74497706", "0.7415858", "0.7415858", "0.741543", "0.7410957", "0.7404254", "0.74035126", "0.7395209", "0.7385861", "0.73713374", "0.7370344", "0.7368774", "0.73678076", "0.736653", "0.7363331", "0.73507065", "0.734665", "0.7339703", "0.73392904", "0.73286635", "0.7305556", "0.7270738", "0.72701055", "0.7265171", "0.7263791", "0.72519636", "0.7247832", "0.7244728", "0.7239809", "0.7239809", "0.7227633", "0.72269356", "0.7212651", "0.72053415", "0.72050244", "0.7204913", "0.7203761", "0.72012043", "0.72012043", "0.72012043", "0.72012043", "0.72012043", "0.72012043", "0.72012043", "0.72012043", "0.72012043", "0.72012043", "0.7200347", "0.7175882", "0.71629417", "0.71618766", "0.7161044", "0.7161044", "0.7158273", "0.71569014", "0.71547055", "0.71510154", "0.7150659", "0.7147909", "0.7144174", "0.7138714", "0.713381", "0.71332103", "0.7125492", "0.70992523" ]
0.74407756
36
Sets the language name
public static function setLanguageName($paramLanguageName){ getDatabase()->update("settings",array( "value" => $paramLanguageName ), "setting = 'website_lang'"); Cache::store('website_lang', $paramLanguageName); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setName($name)\n {\n $this->getTranslation()->setName($name);\n }", "public function settingLanguage() {}", "public function setNameEn($name_en)\n {\n $this->setName(sprintf(\"en:%s;fr:%s\", $name_en, $this->getNameFr()));\n }", "public function setLanguage(string $lang);", "function setLocale($localename)\r\n\t{\r\n\t\t$this->pathLocale = $localename;\r\n\t\t$f = $this->_getFileName();\r\n\t\t/* load language configuration */\r\n\t\tif (file_exists($f))\r\n\t\t{\r\n\t\t\tglobal $tmp;\r\n\t\t\tinclude($f);\r\n\t\t\tif ($this->varMode == 'names')\r\n\t\t\t{\r\n#\t\t\t\t$this->lang = array_merge($this->lang, ${$this->varName});\r\n\t\t\t\t$this->lang = ${$this->varName};\r\n\t\t\t}\r\n\t\t}\r\n\t}", "function setName($name, $locale) {\n\t\t$this->setData('name', $name, $locale);\n\t}", "protected function setLanguage() {\r\n\t\t$this->language = $GLOBALS['TSFE']->config['config']['language'];\r\n\t}", "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 lang($lang = 'fa'): void\n {\n $this->lang = ucfirst($lang);\n }", "public function setLanguage($l)\n {\n $this->setOption('language',$l);\n }", "public function language( string $languageName ) {\n $this->language = \"LANGUAGE $languageName\";\n return $this;\n }", "public function setLanguage($i) {\n\t\t$this->current_language = $i;\n\t}", "public function setName($name)\n {\n if ($name instanceof TranslationStringInterface) {\n $config = $name->languages();\n } elseif (is_array($name)) {\n $config = [\n 'languages' => array_keys($name),\n 'default_language' => $this->ident()\n ];\n } else {\n $config = null;\n }\n\n $this->name = new TranslationString($name, $config);\n\n return $this;\n }", "public function setNameFr($name_fr)\n {\n $this->setName(sprintf(\"en:%s;fr:%s\", $this->getNameEn(), $name_fr));\n }", "static public function setLanguage($new_lang) {\n\t\tself::$language = ($new_lang == 'de' ? 'de' : 'us');\n\t}", "public function set_name( $name ) {\n\t\t$this->label = $name;\n\t\t$this->slug = sanitize_title_with_dashes( $name );\n\t}", "function set_language($locale) {\n\t\t\t$this->i18n_locale = $locale;\n\t\t}", "public function setLanguage(string $strLanguage) : void\r\n {\r\n $this->strLanguage = strtolower($strLanguage);\r\n }", "private function setLanguage() {\n//\t\tYii::app()->language = @Yii::app()->user->getState('lang');\n\t}", "public function setLanguage($value)\n {\n $value = strtolower($value);\n if (!isset($this->_models[$value])) {\n $this->_models[$value] = $this->loadTranslation($value);\n }\n $this->_language = $value;\n }", "public function setLanguage($code)\n {\n $this->lang = $code;\n }", "public function setName_en($name_en)\n {\n $this->name_en = $name_en;\n\n return $this;\n }", "public function setName_en($name_en)\n {\n $this->name_en = $name_en;\n\n return $this;\n }", "function set_name($name) {\n $this->name = $name;\n }", "public function setLanguage($language);", "function setHeadLanguage($var)\n\t{\n\t\t$this -> head_language = $var;\n\t}", "function setLang($lang)\n {\n $this->_lang = $lang;\n }", "public function setLanguage(string $lang)\n {\n $lang=substr($lang, 0, 3);\n\n // Verify if the file with translations exists\n $fname = $this->getFolderAppRoot().'languages/marknotes-'.$lang.'.json';\n\n // If no, use the default language\n $aeFiles = \\MarkNotes\\Files::getInstance();\n $this->language = ($aeFiles->exists($fname) ? $lang : DEFAULT_LANGUAGE);\n }", "function setName($name) {\n $this->name = $name;\n }", "function set_lName($lName) {\n $this->lName = $lName;\n }", "public function language(string $language);", "public function setName($name){\n\t\t$this->name = $name;\n\t}", "public function setName($name){\n\t\t$this->name = $name;\n\t}", "public function setName($name){\n \n $this->name = $name;\n \n }", "public function setName($name) {\r\n\t\t$this->name = $name;\r\n\t}", "public function setName($name) {\n\t\t$this->name = $name;\n\t}", "public function setName($name) {\n\t\t$this->name = $name;\n\t}", "public function setName($name) {\n\t\t$this->name = $name;\n\t}", "public function setName($name) {\n\t\t$this->name = $name;\n\t}", "public function setName($name) {\n\t\t$this->name = $name;\n\t}", "public function setName($name) {\n\t\t$this->name = $name;\n\t}", "public function setName($name) {\n\t\t$this->name = $name;\n\t}", "public function setName($name) {\n\t\t$this->name = $name;\n\t}", "public function setName($v)\n { $this->getCurrentTranslation()->setName($v);\n\n return $this;\n }", "public function setName($name) {\n $this->name = $name;\n }", "public function setName($name) {\n\t\t$this->_name = $name;\n\t}", "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 }", "protected static function setLanguageKeys() {}", "public function setName($name){\n $this->__set('name',$name);\n }", "public function setName($name) {\n $this->name = $name;\n }", "public function setName($name) {\n $this->name = $name;\n }", "public function setName($name) {\n $this->name = $name;\n }", "public function setName($name) {\n $this->name = $name;\n }", "public function setName($name) {\n $this->name = $name;\n }", "public function setName($name) {\n $this->name = $name;\n }", "public function setCurrentLang($v)\n\t{\n\t\t$this->currentLang = $v;\n\t}", "public static function setLang($lang) \n\t{\n\t\tacPhpCas::setReporting();\n\t\tphpCAS::setLang($lang);\t\t\n\t}", "public function setName($name){\n $this->_name = $name;\n }", "public function setName($name) \n {\n $this->name = $name;\n }", "private function setName($name) {\n if (is_string($name)) {\n $this->name = $name;\n }\n }", "public static function setName($name)\n\t{\n\t\tself::$name = $name;\n\t}", "public function setName($name) \n {\n $this->_name = $name; \n }", "public function setName($name)\n {\n $this->_name = $name;\n }", "public function setName($name)\n {\n $this->_name = $name;\n }", "public function setName($name)\n {\n $this->_name = $name;\n }", "public function setName($name)\n {\n $this->_name = $name;\n }", "public function setName($name)\r\n {\r\n $this->name = $name;\r\n }", "public function setLanguage($language) {\n if (isset($language)) {\n $this->_language = $language;\n } else {\n $this->_language = '';\n }\n }", "public function setName( string $name ) {\n\t\t$this->name = $name;\n\t}", "public function setName($name)\n {\n $this->_name = $name;\n }", "private function set_locale()\n {\n\n $plugin_i18n = new myFOSSIL_Resources_i18n();\n $plugin_i18n->set_domain( $this->get_plugin_name() );\n\n $this->loader->add_action( 'plugins_loaded', $plugin_i18n,\n 'load_plugin_textdomain' );\n\n }", "public function setName($name)\n {\n $this->name = $name;\n\n \n }", "function setName($name){\n\t\t$this->name=$name;\n\t}", "public function set_name($name);", "public function SetName ($name);", "public function setLang($lang) \n {\n $this->lang = $lang;\n }", "public function setName()\n {\n $this->_role->name = '伊泽瑞尔';\n }", "public function setName($name)\n\t{\n\t\t$this->name = $name;\n\t}", "public function setName($name)\n\t{\n\t\t$this->name = $name;\n\t}", "public function setName($name)\n\t{\n\t\t$this->name = $name;\n\t}", "public function setName($name)\n\t{\n\t\t$this->name = $name;\n\t}", "public function setName($name)\n\t{\n\t\t$this->name = $name;\n\t}", "public function setName($name)\n\t{\n\t\t$this->name = $name;\n\t}", "public function setName($name)\n\t{\n\t\t$this->name = $name;\n\t}", "public function setName($name)\n\t{\n\t\t$this->_name = $name;\n\t}", "public function setName($name)\n\t{\n\t\t$this->_name = $name;\n\t}", "public function setLanguage(?LocaleInfo $value): void {\n $this->getBackingStore()->set('language', $value);\n }", "private function setLang( $lang ) {\n\t\tif( in_array( $lang, $this->mLanguages ) ) {\n\t\t\t$this->mLang = $lang;\n\t\t\t\n\t\t\tsetcookie(\"soxred_lang\", $this->mLang, time()+60*60*24*365);\n\t\t}\n\t}", "public function setName($name)\n {\n $this->name = $name;\n }", "public function setName($name)\n {\n $this->name = $name;\n }", "public function setName($name)\n {\n $this->name = $name;\n }", "public function setName($name)\n {\n $this->name = $name;\n }", "public function setName($name)\n {\n $this->name = $name;\n }", "public function setName($name)\n {\n $this->name = $name;\n }", "public function setName($name)\n {\n $this->name = $name;\n }", "public function setName($name)\n {\n $this->name = $name;\n }", "public function setName($name)\n {\n $this->name = $name;\n }", "public function setName($name)\n {\n $this->name = $name;\n }", "public function setName($name)\n {\n $this->name = $name;\n }", "public function setName($name)\n {\n $this->name = $name;\n }" ]
[ "0.73416686", "0.7246916", "0.7041493", "0.6991738", "0.69818556", "0.6979663", "0.68429846", "0.6835299", "0.6748056", "0.67025363", "0.6667515", "0.66151667", "0.6613076", "0.65697646", "0.6521065", "0.64745694", "0.6439421", "0.63896334", "0.6381409", "0.6376124", "0.6375767", "0.63302845", "0.63302845", "0.6311223", "0.6280389", "0.62654257", "0.622993", "0.62231064", "0.6202718", "0.62023586", "0.619027", "0.6182272", "0.6182272", "0.6179259", "0.61593455", "0.61462706", "0.61462706", "0.61462706", "0.61462706", "0.61462706", "0.61462706", "0.61462706", "0.61462706", "0.61415035", "0.6140768", "0.61390126", "0.61387867", "0.6128946", "0.61283267", "0.6121261", "0.6121261", "0.6121261", "0.6121261", "0.6121261", "0.6121261", "0.61102366", "0.61084956", "0.60999674", "0.6095983", "0.6085862", "0.60816157", "0.6078968", "0.6075166", "0.6075166", "0.6075166", "0.6075166", "0.6074702", "0.6073414", "0.6072781", "0.6071946", "0.60710627", "0.6064964", "0.6063825", "0.60552454", "0.60473716", "0.6044261", "0.60429627", "0.6038735", "0.6038735", "0.6038735", "0.6038735", "0.6038735", "0.6038735", "0.6038735", "0.60386586", "0.60386586", "0.6037807", "0.6033343", "0.60302854", "0.60302854", "0.60302854", "0.60302854", "0.60302854", "0.60302854", "0.60302854", "0.60302854", "0.60302854", "0.60302854", "0.60302854", "0.60302854" ]
0.7142124
2
Checks if archive should be shown in Menu
public static function showArchive(){ if(Cache::isStored('show_archive')) return Cache::get('show_archive'); $row = getDatabase()->queryFirstRow("SELECT `value` FROM `settings` WHERE `setting` = 'show_archive'"); $show = $row['value'] == "false" ? false : true; Cache::store('show_archive', $show); return $show; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function custom_is_archive() {return (is_archive() || is_search());}", "public function is_archive()\n {\n }", "public function has_menu()\r\n {\r\n return false;\r\n }", "public static function isArchive()\n {\n return ( self::hasWoocommerce() && ( is_shop() || is_product_category() || is_product_tag() ) );\n }", "function _mai_cmb_show_if_static_archive() {\n\t// Bail if not editing a post\n\tglobal $pagenow;\n\tif ( 'post.php' != $pagenow ) {\n\t\treturn false;\n\t}\n\n\t$post_id = filter_input( INPUT_GET, 'post', FILTER_SANITIZE_NUMBER_INT );\n\t$posts_page_id = get_option('page_for_posts');\n\n\t// If static blog page.\n\tif ( ( $post_id == $posts_page_id ) ) {\n\t\treturn true;\n\t}\n\treturn false;\n}", "public function isArchived() {\r\n\r\n\t\tself::errorReset();\r\n\t\t$this->reload();\r\n\t\treturn InputValidator::isEmpty($this->archiveDate) ? false: true;\r\n\t}", "private function checkMenu()\n {\n\n }", "public function canArchive()\n {\n if ($this->container instanceof Space) {\n if ($this->canWrite())\n return true;\n return ($this->container->isAdmin());\n } elseif ($this->container instanceof User) {\n return false; // Not available on user profiels because there are no filters?\n }\n\n return false;\n }", "private function showAdminMenu() : bool\n {\n return \\apply_filters(self::FILTER_SHOW_ADMIN_MENU, true) === true;\n }", "public function isMenu()\n {\n // todo: it might be better to move this method to trait.\n return false;\n }", "function flatsome_archive_title(){\n if(flatsome_option('blog_archive_title') && (is_archive() || is_search())){\n echo get_template_part( 'template-parts/posts/partials/archive-title');\n }\n}", "private function showAdminMenuBar() : bool\n {\n return \\apply_filters(self::FILTER_SHOW_ADMIN_BAR_MENU, \\is_admin_bar_showing()) === true;\n }", "public function isArchived()\n {\n return $this->publish_status == Status::ARCHIVED;\n }", "protected function hasParentMenuItem() {}", "public function isArchived() {\n return $this->getStatus() === Status::ARCHIVED;\n }", "public function showInMenu()\n {\n $ctrs = PageCom::ctrs();\n return $ctrs && (count($ctrs) > 1);\n }", "function getIsArchived() {\n return $this->getIsOwner() ? false : parent::getIsArchived();\n }", "public function hasFiles(): bool\n {\n return $this->type != 'menu_links';\n }", "public function archive()\n\t{ \n\t\t$data['title'] = 'Arsip Surat';\n\t\t$this->load->view('admin/includes/_header', $data);\n\t\t$this->load->view('admin/tracemail/archive/index', $data);\n\t\t$this->load->view('admin/includes/_footer', $data);\n }", "function is_nav_menu($menu)\n {\n }", "function bareskin_meta_box_add_archive_display() {\n\tglobal $bareskin_settings_page;\n\t/* Get theme information. */\n\t$prefix = bareskin_get_prefix();\n\t$domain = bareskin_get_textdomain();\n\n\t/* Adds the Archive Display metabox for the theme. */\n\tif( $bareskin_settings_page != null )\n\t\tadd_meta_box( 'bareskin-archive-display', __( 'Archives Display', $domain ), 'bareskin_meta_box_archive_display', $bareskin_settings_page, 'side', 'high' );\t\n\n}", "protected function get_displayinmenublock() {\n return false;\n }", "public static function canDisplayTransactionTypesMenu()\n\t{\n\t\treturn PermissionValidator::hasPermission(PermissionConstants::VIEW_TRANSACTION_TYPE);\n\t}", "public function hasMenu(){\n return $this->_has(10);\n }", "public function IsMenu() {\n\t\treturn $this -> _mIsMenu;\n\t}", "public function adminMenu() {\n add_submenu_page(\n 'tools.php',\n self::NAME,\n self::NAME,\n 'import',\n __CLASS__ . '_opt_menu',\n array(&$this, 'showBackupPage')\n );\n }", "public function should_display_sandwitch_menu() {\n if ($this->page->pagelayout == 'frontpage' || !isloggedin() || isguestuser()) {\n return false;\n }\n return true;\n }", "public function isZipArchive(): bool;", "public function isArchived()\n {\n return $this->deleted_at !== null;\n }", "public function show(Archive $archive)\n {\n //\n }", "function canArchive($user) {\n if($this->isOwner()) {\n return false;\n } else {\n return $user->isPeopleManager();\n } // if\n }", "public function isArchived()\n {\n return $this->getArchived();\n }", "public function isArchived()\n {\n return ($this->archived);\n }", "public static function canDisplayTitlesMenu()\n\t{\n\t\treturn PermissionValidator::hasPermission(PermissionConstants::VIEW_TITLE);\n\t}", "protected function hasParentMenuItemKey() {}", "public function isArchived() {\n return $this->status->value == ScheduledUpdateInterface::STATUS_SUCCESSFUL\n || $this->status->value === ScheduledUpdateInterface::STATUS_UNSUCESSFUL;\n }", "public static function canDisplayAttorneysMenu()\n\t{\n\t\treturn PermissionValidator::hasPermission(PermissionConstants::VIEW_ATTORNEY);\n\t}", "function filter_menu_items( $args ) {\r\n $args['show_home'] = false;\r\n return $args;\r\n}", "public function isMenu($label) {\r\n\t\tglobal $WT_TREE;\r\n\t\t$module = Module::getModuleByName($label);\r\n\t\tif (in_array($module, Module::getActiveMenus($WT_TREE))) {\r\n\t\t\tif ($module->getMenu()) {\r\n\t\t\t\treturn true;\r\n\t\t\t} else {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t}", "public function show_in_admin_bar()\n\t{\n\t\treturn !( self::const_value( 'DEVDEBUG_NO_ADMIN_BAR' ) );\n\t}", "public function is_post_type_archive($post_types = '')\n {\n }", "public static function canDisplayContractorsMenu()\n\t{\n\t\treturn PermissionValidator::hasPermission(PermissionConstants::VIEW_CONTRACTOR);\n\t}", "public function displayMenu($menu = 'show_sidebar_menu')\n\t{\n\t\t$option = get_option('social_curator_admin_menu');\n\t\treturn ( isset($option[$menu]) && $option[$menu] == '1' ) ? true : false;\n\t}", "public function isBundleArchiveableByNonAdmins($bundle) {\n return in_array($bundle, $this->getBundlesArchiveableByAdmins()) ? FALSE : TRUE;\n }", "public function isArchived()\n {\n return $this->archived;\n }", "function is_nav_menu_item($menu_item_id = 0)\n {\n }", "public function getIsMenuLinkEnabled(): bool;", "public function shouldShow()\n {\n if (! $this->checkFilterPasses()) {\n return false;\n }\n if (! $this->getPath()) {\n return false;\n }\n\n return true;\n }", "public function setHasArchive($has = false){\n\t\t$this->hasArchive = $has;\n\t}", "public static function canDisplayAccountsMenu()\n\t{\n\t\treturn PermissionValidator::hasPermission(PermissionConstants::VIEW_ACCOUNT);\n\t}", "public function isMenuItemValidOmittedTitleExpectFalse() {}", "public function getWasArchived()\n {\n if (!is_null($this->time_archived)){\n return true;\n }\n return false;\n }", "public function archivesAction(){\n $this->view->archives = $this->_vacancies->getArchiveJobs($this->_getParam('page'));\n }", "function fusion_should_add_fe_edit_link() {\n\tif ( 0 === fusion_library()->get_page_id() || false === fusion_library()->get_page_id() || '0-archive' === fusion_library()->get_page_id() || is_preview_only() ) {\n\t\treturn false;\n\t}\n\n\treturn true;\n}", "public static function setShowArchive($paramBool){\n getDatabase()->update(\"settings\",array(\n \"value\" => $paramBool\n ), \"setting = 'show_archive'\");\n Cache::store('show_archive', $paramBool);\n }", "public static function is_in_progress(): bool {\n return Simply_Static\\Options::instance()->get('archive_start_time')\n && !Simply_Static\\Options::instance()->get('archive_end_time');\n }", "public function getIsArchived()\n\t{\n\t\treturn $this->is_archived;\n\t}", "function custom_is_part_archive($post_types = array()) {\n\t\tglobal $custom_wp_query;\n\n\t\tif ( isset($custom_wp_query) ) {\n\t\t\tif (!isset($post_types) || empty($post_types)) { //if no parameters at all\n\t\t\t\treturn true;\n\t\t\t} else {\n\t\t\t\tif (!is_array($post_types)) { //if parameter is string\n\t\t\t\t\t$post_types_arr[] = $post_types;\n\t\t\t\t} else {\n\t\t\t\t\t$post_types_arr = $post_types;\n\t\t\t\t}\n\t\t\t\tglobal $post;\n\t\t\t\tforeach ($post_types_arr as $post_type) {\n\t\t\t\t\tif ($post->post_type == $post_type) {\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\treturn;\n\t\t}\n\t}", "public static function canDisplayAuditTrailMenu()\n\t{\n\t\treturn PermissionValidator::hasPermission(PermissionConstants::VIEW_AUDIT_TRAIL);\n\t}", "public static function canDisplayMilestoneTypesMenu()\n\t{\n\t\treturn PermissionValidator::hasPermission(PermissionConstants::VIEW_MILESTONE_TYPE);\n\t}", "public static function shouldRunEvenWhenNoVisits()\n {\n $deletedDuplicateCount = self::deleteArchiveDuplicates();\n Log::debug($deletedDuplicateCount . ' archive entries got deleted');\n\n return true;\n }", "private function is_export_screen() {\n\n\t\t$screen = get_current_screen();\n\n\t\treturn in_array( $screen->id, array(\n\t\t\t$this->settings_page_name,\n\t\t\t'shop_order',\n\t\t\t'edit-shop_order',\n\t\t\t'users',\n\t\t), true );\n\t}", "function enable_nav_item() {\r\n\t\tif ( is_super_admin() || apply_filters( 'group_reservation_can_manage_reservations', bp_group_is_admin(), bp_get_current_group_id() ) ) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "protected function _menu()\n\t{\n\t\tif (ee()->view->disabled('ee_menu'))\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\tee()->view->cp_main_menu = ee()->menu->generate_menu();\n\t}", "function has_nav_menu($location)\n {\n }", "function bwsocial_maybe_has_menu( $args ) {\n\t\n\t// Check theme location\n\t$location = isset( $args[ 'theme_location' ] ) ? $args[ 'theme_location' ] : false;\n\tif ( $location && 'bw-social' === $location ) {\n\t\treturn true;\n\t}\n\t\n\t// Check Menu\n\t$menu = isset( $args[ 'menu' ] ) ? $args[ 'menu' ] : false;\n\tif ( ! $menu ) {\n\t\treturn false;\n\t}\n\t\n\t// Get menu object\n\t$menu_object = wp_get_nav_menu_object( $menu );\n\tif ( $menu_object && is_a( $menu_object, 'WP_Term' ) ) {\n\t\t$menu_locations = get_nav_menu_locations();\n\t\tforeach( $menu_locations as $menu_location => $menu_term_id ) {\n\t\t\tif ( 'bw-social' === $menu_location && $menu_term_id === $menu_object->term_id ) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t}\n\t\n\treturn false;\n}", "function is_archived($id)\n {\n }", "public function adminmenu() {\n\t\n\t\tglobal $current_screen;\n\t\tglobal $parent_file;\n\n\t\tif ( $current_screen->base == 'settings_page_schedule-a-visit-to-sherpa' ) {\n\t\t\t// We have to reset this after the Menu is generated so Settings Errors still appear\n\t\t\t$parent_file = 'options-general.php';\n\t\t}\n\n\t}", "function bareskin_meta_box_archive_display( $object, $box ) {\n\n\t/* Get theme information. */\n\t$prefix = bareskin_get_prefix();\n\t$domain = bareskin_get_textdomain();\t\n\t?>\n\t<p>\n\t\t<span class=\"description\"><?php _e( 'You can choose how the theme will display your posts on your blog homepage and archives.', $domain ); ?></span>\n\t</p>\n\n\t<p>\n\t\t<input type=\"radio\" name=\"<?php echo bareskin_settings_field_name( 'archive-display' ) ?>\" value=\"show-content\" id=\"show-content\" <?php checked( bareskin_get_setting( 'archive-display' ), 'show-content' ); ?>/>\n\t\t<label for=\"show-content\"><?php _e( 'Show Content', $domain )?></label>\n\t\t<input type=\"radio\" name=\"<?php echo bareskin_settings_field_name( 'archive-display' ) ?>\" value=\"show-excerpt-thumb\" id=\"show-excerpt-thumb\" <?php checked( bareskin_get_setting( 'archive-display' ), 'show-excerpt-thumb' ); ?>/>\t\n\t\t<label for=\"show-excerpt-thumb\"><?php _e( 'Show Excerpt and Thumbnail', $domain )?></label>\t\t\n\t</p>\n\t<?php\n}", "public function getArchive() {\r\n\t\treturn $this->options ['archive'];\r\n\t}", "function show_add_button(){\n if($this->session->system_admin){\n return true;\n }\n \n }", "function PKG_hasOptions($package, $packageID, $distr, $client, $release = \"\")\n{\n$addReleaseToPath = (isset($release{0}) ? \"$release/\" : \"\");\n\n$package=chop($package);\n//generate full path to the option page\n$filename=\"/m23/data+scripts/m23admin/packages/$distr/$addReleaseToPath\".$package.\"OptionPage.php\";\n\n//if file exists there is an option page\nif (file_exists($filename))\nreturn(\"<A HREF=\\\"/m23admin/packages/$distr/$addReleaseToPath\".$package.\"OptionPage.php?id=$packageID&client=$client&lang=$GLOBALS[m23_language]\\\" target=\\\"_blank\\\">Option</A>\");\nelse\nreturn(\"-\");\n}", "function not_approved_menu() {\n\t\tadd_options_page(\n\t\t\t'AdControl',\n\t\t\t'AdControl',\n\t\t\t'manage_options',\n\t\t\t'adcontrol',\n\t\t\tarray( $this, 'userdash_not_approved' )\n\t\t);\n\t}", "public function isStrategyArchive()\n {\n return (bool) (\n $this->config->getConfig(JobConfig::XML_PATH_PURGE_STRATEGY) == JobConfig::JOB_PURGE_STRATEGY_ARCHIVE\n );\n }", "public function allowToolbar()\n {\n if (\n $this->option('toolbar')\n && (\n $this->tools()->has()\n || $this->allowExporter()\n || $this->allowCreateButton()\n || ! empty($this->variables['title'])\n )\n ) {\n return true;\n }\n\n return false;\n }", "public function canShow()\n {\n return $this->_authSession->isFirstPageAfterLogin() && $this->_getLatestItem();\n }", "function wpclean_add_metabox_menu_posttype_archive() {\n add_meta_box(\n 'wpclean-metabox-nav-menu-posttype',\n 'Custom Post Archives',\n 'wpclean_metabox_menu_posttype_archive',\n 'nav-menus',\n 'side',\n 'default'\n );\n}", "function canArchive(User $user) {\n // companies that are not visible can't be archived\n if ($this->object->getState() < STATE_VISIBLE) {\n return false;\n } // if\n\n return $this->object->isOwner() ? false : $user->isPeopleManager() && ($user->getCompanyId() !== $this->object->getId());\n }", "function daniels_archive_dropdown ( \n $sNavigationType = 'button', $sText = 'View Archive' ) {\n?>\n<form id=\"ddd_archive_form\" action=\"\">\n\t<script type=\"text/javascript\">\n\tfunction goArc() {\n\t\tvar selArc = document.getElementById('selArchive');\n\t\tif (selArc.selectedIndex > 0) {\n\t\t\twindow.location = selArc[selArc.selectedIndex].value;\n\t\t} \n\t}\n\t</script>\n\t<div style=\"text-align:center;\">\n\t\t<select <?php if ( $sNavigationType == 'auto' ) { ?>onchange=\"goArc();\"<?php } ?>\n\t\t\tid=\"selArchive\" style=\"margin-top:5px;\">\n\t\t\t<option value=\"\">&mdash; Select Month &mdash;</option>\n\t\t\t<?php get_archives ( '', '', 'option', '', '', 1 ); ?>\n\t\t</select>\n<?php\n\tif ( $sNavigationType != 'auto' ) { ?>\n\t\t<br />\n<?php\n\t\tif ( $sNavigationType == 'link' ) { ?>\n\t\t<a href=\"javascript:void();\" onclick=\"goArc();\"><?php echo $sText; ?></a>\n<?php\n\t\t}\n\t\telse { ?>\n\t\t<button type=\"button\" style=\"margin-top:5px;\"\n\t\t\tonclick=\"goArc();\"><?php echo $sText; ?></button>\n<?php\n\t\t}\n\t}\n?>\t</div>\n</form>\n<?php\n}", "function is_archived( $id ) {\n\treturn get_blog_status($id, 'archived');\n}", "function displayForm(){\n\tif(!file_exists(COMPILER_STANDART.'/standart.zip') && !file_exists(COMPILER_COMMERSE.'/e-commerse.zip') && !file_exists(COMPILER_MEMBERSHIP.'/membership.zip')){\n return false;\n }else{ \n return true;\n }\n}", "function index($isAjaxR=true) {\n if ($isAjaxR) $this->doNotRenderHeader = true;\n return $this->create_archive_nav_menu($this->create_archive_nav_array());\n }", "public static function canDisplayMaritalStatusesMenu()\n\t{\n\t\treturn PermissionValidator::hasPermission(PermissionConstants::VIEW_MARITAL_STATUS);\n\t}", "public function showBackupPage() {\n echo '<div class=\"wrap\">';\n echo '<h2>' . self::NAME . ' v ' . self::VERSION . '</h2>';\n\n if ($this->getNonce()) {\n if (isset($_GET['kickoff'])) {\n $this->renderRefresh(\n $this->initArchiving()\n );\n } elseif (isset($_GET['holding'])) {\n $this->renderRefresh(\n false,\n $this->resumeArchiving()\n );\n }\n } else {\n echo '<hr>';\n echo '<p>When you click the button below, Wordpress will create a zip archive of your content directory (in <code>' . $this->content_dir . '</code>) and a SQL export of your database.</p>';\n echo '<p>You can then import said archive into an <a target=\"_blank\" href=\"https://github.com/evolution/wordpress\">Evolution Wordpress</a> site.</p>';\n echo '<form action=\"\" method=\"get\">';\n wp_nonce_field(__CLASS__, __CLASS__.'_nonce', true);\n echo '<input type=\"hidden\" name=\"page\" value=\"' . __CLASS__ . '_opt_menu\">';\n echo '<input type=\"submit\" name=\"kickoff\" value=\"Create Archive\" class=\"button button-primary\">';\n echo '</form>';\n }\n\n echo '</div>';\n }", "protected function hasParentMenuArr() {}", "function show_posts_nav() {\n\tglobal $wp_query;\n\treturn ($wp_query->max_num_pages > 1);\n}", "public static function canDisplayDocumentTypesMenu()\n\t{\n\t\treturn PermissionValidator::hasPermission(PermissionConstants::VIEW_DOCUMENT_TYPE);\n\t}", "function themeprefix_show_cpt_archives( $query ) {\n if( is_category() || is_tag() && empty( $query->query_vars['suppress_filters'] ) ) {\n $query->set( 'post_type', array(\n 'post', 'nav_menu_item', 'projets'\n ));\n return $query;\n }\n}", "function install_menus() {\n $db = DB::getInstance();\n if(!$db->query(file_get_contents(CORE_INSTALLER_FILES_PATH.'/db/menus.sql'))->error()) {\n return true;\n }\n else {\n System::addMessage('error', rt('An error occurred during the creation of the default frontend menu'));\n }\n return false;\n}", "public static function canDisplaySuburbsMenu()\n\t{\n\t\treturn PermissionValidator::hasPermission(PermissionConstants::VIEW_SUBURB);\n\t}", "function wprt_is_woocommerce_archive_product() {\n\tif ( ! class_exists( 'woocommerce' ) ) {\n\t\treturn false;\n\t} elseif ( is_product_category() || is_product_tag() ) {\n\t\treturn true;\n\t}\n}", "private function _showPublic(){\n $omenu = D('Menu');\n $amodules = $omenu->getModules();\n $this->assign('modules',$amodules);\n $amenu = $omenu->getMenuByModelName(MODULE_NAME);\n $asubNav = array();\n $amenus = array();\n $asubmenus = array();\n $temp = array();\n foreach($amenu as $v){\n if(!$this->_auth($v['name'])) continue;\n switch(count(explode(',',$v['level']))){\n case 2:\n $amenus[$v['id']] = array(\n 'title' => $v['title'],\n 'URL' => $v['URL'],\n 'icon' => $v['icon']\n );\n if(MODULE_NAME == $v['name']){\n $anav[] = array(\n 'title' => $amodules[$v['pId']]['title'],\n 'URL' => $amodules[$v['pId']]['URL'],\n 'icon' => $amodules[$v['pId']]['icon']\n );\n $anav[] = array(\n 'title' => $v['title'],\n 'URL' => $v['URL']\n );\n $amenus[$v['id']]['active'] = true;\n $icon = $v['icon'];\n }else{\n $amenus[$v['id']]['active'] = false;\n }\n break;\n case 3:\n $amenus[$v['pId']]['submenu'][$v['id']] = array(\n 'title' => $v['title'],\n 'URL' => $v['URL']\n );\n if($foundSubNav){\n $stop = true;\n break;\n }else{\n $asubNav = array();\n }\n\n if($v['name'] == MODULE_NAME.'_'.ACTION_NAME){\n $bnatchNav || $bmatchNav = true;\n $foundSubNav = true;\n $anav[] = array(\n 'title' => $v['title'],\n 'URL' => $v['URL'],\n 'class' => 'current'\n );\n $tcontentTitle = $v['title'];\n }else{\n $temp = array(\n 'title' => $v['title'],\n 'URL' => $v['URL'],\n );\n $bmatchNav && $bmatchNav = false;\n }\n break;\n case 4:\n if($foundSubNav && $stop) break;\n if($bmatchNav){\n $asubNav[] = array(\n 'title' => $v['title'],\n 'URL' => $v['URL']\n );\n $tsubContentTitle = $tcontentTitle;\n }else{\n $asubNav[] = array(\n 'title' => $v['title'],\n 'URL' => $v['URL']\n );\n //$tsubContentTitle = $temp['name'];\n if(MODULE_NAME.'_'.ACTION_NAME == $v['name']){\n $foundSubNav = true;\n $tsubContentTitle = $v['title'];\n $tcontentTitle = $temp['title'];\n $anav[] = array(\n 'title' => $temp['title'],\n 'URL' => $temp['URL']\n );\n $anav[] = array(\n 'title' => $v['title'],\n 'URL' => $v['URL'],\n 'class' => 'current'\n );\n $asubNav[count($asubNav)-1]['active'] = true;\n }\n }\n break;\n }\n }\n $this->assign('menu',$amenus);\n $this->assign('nav',$anav);\n $this->assign('contentTitle',$tcontentTitle);\n $this->assign('subnav',$asubNav);\n $this->assign('subContentTitle',$tsubContentTitle);\n $this->assign('icon',$icon);\n }", "protected function viewMenu(){\n\t\t$userStatus = $_SESSION[\"user_status\"];\n\t\t\n\t\t// menus\n\t\t$menu = false;\n\t\tif ($userStatus > 2){\n\t\t\t$menu = true;\n\t\t}\n\t\treturn $menu;\n\t}", "public function getArchive()\n {\n return $this->options['archive'];\n }", "public function isMenuItemValidSetValidHrefAndTitleExpectTrue() {}", "public function getHasMenuItem() {\n\t\treturn $this->hasMenuItem;\n\t}", "public static function canDisplayPermissionsMenu()\n\t{\n\t\treturn PermissionValidator::hasPermission(PermissionConstants::VIEW_PERMISSION);\n\t}", "public function isMenuItemValidOmittedHrefAndRouteExpectFalse() {}", "public function getIsArchived()\n {\n return $this->getProperty(\"IsArchived\");\n }", "public static function canDisplayContractorTypesMenu()\n\t{\n\t\treturn PermissionValidator::hasPermission(PermissionConstants::VIEW_CONTRACTOR_TYPE);\n\t}" ]
[ "0.7413688", "0.7128011", "0.6644038", "0.657833", "0.64693546", "0.6367744", "0.6167529", "0.6143796", "0.61061555", "0.6087687", "0.6086193", "0.60840344", "0.5989508", "0.5988076", "0.59104615", "0.58827275", "0.5833952", "0.5802382", "0.57867867", "0.575318", "0.57460296", "0.57444525", "0.5743129", "0.57030654", "0.568231", "0.5671254", "0.5657709", "0.5652814", "0.5634714", "0.56238526", "0.5621306", "0.55954134", "0.5593237", "0.55915064", "0.55798286", "0.5579805", "0.5574119", "0.5574051", "0.5571353", "0.555882", "0.55564874", "0.55528647", "0.5544874", "0.55379075", "0.55186033", "0.5509349", "0.54704845", "0.5470449", "0.54523635", "0.5451928", "0.54426867", "0.5440885", "0.54336864", "0.5432044", "0.5423138", "0.54028827", "0.5400486", "0.5398438", "0.53970975", "0.5393007", "0.53924257", "0.5390705", "0.5377504", "0.5377331", "0.53716207", "0.53577954", "0.53421104", "0.53395563", "0.53370917", "0.5334109", "0.53188366", "0.53184205", "0.5307291", "0.52928275", "0.5284002", "0.5270831", "0.5270431", "0.52699876", "0.5255513", "0.5251629", "0.5251049", "0.5250185", "0.5247251", "0.5239621", "0.5238464", "0.5223329", "0.5221201", "0.5217011", "0.5211868", "0.5208874", "0.5203062", "0.5199701", "0.518968", "0.5186429", "0.51856107", "0.51831216", "0.5181516", "0.5181179", "0.5180902", "0.51773304" ]
0.6724589
2
Sets the show archive bool
public static function setShowArchive($paramBool){ getDatabase()->update("settings",array( "value" => $paramBool ), "setting = 'show_archive'"); Cache::store('show_archive', $paramBool); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function showArchive(){\n if(Cache::isStored('show_archive')) return Cache::get('show_archive');\n $row = getDatabase()->queryFirstRow(\"SELECT `value` FROM `settings` WHERE `setting` = 'show_archive'\");\n $show = $row['value'] == \"false\" ? false : true;\n Cache::store('show_archive', $show);\n return $show;\n }", "public function is_archive()\n {\n }", "public function showHiddenFiles($show = true)\n {\n $this->showHiddenFiles = $show;\n }", "public function setHasArchive($has = false){\n\t\t$this->hasArchive = $has;\n\t}", "public function setArchived($value)\n {\n $this->setItemValue('archived', (bool)$value);\n }", "public function show(Archive $archive)\n {\n //\n }", "public function setShowFiles(bool $showFiles): Debug\n {\n $this->showFiles = $showFiles;\n\n return $this;\n }", "public function setIsArchived($value)\n {\n return $this->setProperty(\"IsArchived\", $value, true);\n }", "public function __construct(bool $show = false)\n {\n $this->show = $show;\n }", "public function getArchive() {\r\n\t\treturn $this->options ['archive'];\r\n\t}", "function custom_is_archive() {return (is_archive() || is_search());}", "function getIsArchived() {\n return $this->getIsOwner() ? false : parent::getIsArchived();\n }", "public function getIsArchived()\n\t{\n\t\treturn $this->is_archived;\n\t}", "public function getArchive()\n {\n return $this->options['archive'];\n }", "public function setArchive($archive) {\r\n\t\t$archive = str_replace ( array (\r\n\t\t\t\t'/',\r\n\t\t\t\t'\\\\' \r\n\t\t), DIRECTORY_SEPARATOR, $archive );\r\n\t\t$this->options ['archive'] = ( string ) $archive;\r\n\t\t\r\n\t\treturn $this;\r\n\t}", "public function isArchived()\n {\n return $this->archived;\n }", "public function isArchived()\n {\n return ($this->archived);\n }", "public function setArchived($var)\n {\n GPBUtil::checkBool($var);\n $this->archived = $var;\n\n return $this;\n }", "public function showInformation($bool) {$this->_information = (bool) $bool;return $this;}", "public function isArchived()\n {\n return $this->getArchived();\n }", "public function isArchived() {\r\n\r\n\t\tself::errorReset();\r\n\t\t$this->reload();\r\n\t\treturn InputValidator::isEmpty($this->archiveDate) ? false: true;\r\n\t}", "public function isArchived()\n {\n return $this->publish_status == Status::ARCHIVED;\n }", "public function getIsArchived()\n {\n return $this->getProperty(\"IsArchived\");\n }", "public function setShowInAdminBar($show = NULL ){\n\t\t$this->showInAdminBar = isset($show) ? $show : $this->showInMenu;\n\t}", "public function isArchived() {\n return $this->getStatus() === Status::ARCHIVED;\n }", "function bareskin_meta_box_add_archive_display() {\n\tglobal $bareskin_settings_page;\n\t/* Get theme information. */\n\t$prefix = bareskin_get_prefix();\n\t$domain = bareskin_get_textdomain();\n\n\t/* Adds the Archive Display metabox for the theme. */\n\tif( $bareskin_settings_page != null )\n\t\tadd_meta_box( 'bareskin-archive-display', __( 'Archives Display', $domain ), 'bareskin_meta_box_archive_display', $bareskin_settings_page, 'side', 'high' );\t\n\n}", "public function getWasArchived()\n {\n if (!is_null($this->time_archived)){\n return true;\n }\n return false;\n }", "public function getArchiveWithDateTime()\n {\n $value = $this->_config->get('file/archive_with_datetime');\n\n if ($value === null) {\n $value = true;\n }\n\n return (bool)$value;\n }", "public function setShowCanonicalPageAndAlternates(bool $show): void {\n\t\t$this->m_showCanonicalPageAndAlternates = $show;\n\t}", "public function showDetails(){\n $this->_showDetails = true;\n }", "public function setShowLinkAttribute($show_link)\n {\n $this->attributes['show_link'] = $show_link == 1 || $show_link === 'true' || $show_link === true ? true : false;\n }", "public function showPagination($bool) {$this->_pagination = (bool) $bool;return $this;}", "public function setCompression($compression){\n\t\tif($compression == 'true'){\n\t\t\t$this->compression = true;\n\t\t}\n\t\telse{\n\t\t\t$this->compression = false;\n\t\t}\n\t}", "public function isArchived()\n {\n return $this->deleted_at !== null;\n }", "public static function setShowContainer($bShowContainer=true) {\r\n\t\tself::$_bShowContainer = $bShowContainer;\r\n\t}", "public function setIsArchived($isArchived)\n {\n $this->isArchived = $isArchived;\n return $this;\n }", "public function setShowPhotoAttribute($show_photo)\n {\n $this->attributes['show_photo'] = $show_photo == 1 || $show_photo === 'true' || $show_photo === true ? true : false;\n }", "public function show(TypeArchive $typeArchive)\n {\n //\n }", "public function showOnIndex(): bool\n {\n return $this->showOnList;\n }", "public function setShowUi($show = NULL ){\n\t\t$this->show_ui = $show ? $show : $this->public;\n\t}", "function bareskin_meta_box_archive_display( $object, $box ) {\n\n\t/* Get theme information. */\n\t$prefix = bareskin_get_prefix();\n\t$domain = bareskin_get_textdomain();\t\n\t?>\n\t<p>\n\t\t<span class=\"description\"><?php _e( 'You can choose how the theme will display your posts on your blog homepage and archives.', $domain ); ?></span>\n\t</p>\n\n\t<p>\n\t\t<input type=\"radio\" name=\"<?php echo bareskin_settings_field_name( 'archive-display' ) ?>\" value=\"show-content\" id=\"show-content\" <?php checked( bareskin_get_setting( 'archive-display' ), 'show-content' ); ?>/>\n\t\t<label for=\"show-content\"><?php _e( 'Show Content', $domain )?></label>\n\t\t<input type=\"radio\" name=\"<?php echo bareskin_settings_field_name( 'archive-display' ) ?>\" value=\"show-excerpt-thumb\" id=\"show-excerpt-thumb\" <?php checked( bareskin_get_setting( 'archive-display' ), 'show-excerpt-thumb' ); ?>/>\t\n\t\t<label for=\"show-excerpt-thumb\"><?php _e( 'Show Excerpt and Thumbnail', $domain )?></label>\t\t\n\t</p>\n\t<?php\n}", "public function isShowActions()\n {\n return $this->isShowActions;\n }", "function setDisplayHeaderAndFooter($bool) {\n $this->display_header_and_footer = $bool;\n}", "public function showAs($showAs)\n\t{\n\t\t$this->showAs = $showAs;\n\t\treturn $this;\n\t}", "public function setting_show_as_page() {\n\t\t$setting = get_option( 'simple_history_show_as_page', 1 );\n\t\t$setting = apply_filters( 'simple_history_show_as_page', $setting );\n\n\t\treturn (bool) $setting;\n\t}", "public function setShowInNavMenus($show = NULL){\n\t\t$this->showInNavMenus = $show ? $show : $this->public;\n\t}", "public function setShowTitleAttribute($show_title)\n {\n $this->attributes['show_title'] = $show_title == 1 || $show_title === 'true' || $show_title === true ? true : false;\n }", "public function setShowDetail($showDetail) {\r\n\t\t$this->showDetail = $showDetail;\r\n }", "function show($show=true,$store_state=true){\n\t\t$this->show=$show;\n\t\t$this->memorize($this->name.'_hidden',$show?'2':'1');\n\t\t//store to user data\n\t\tif($store_state){\n\t\t\tif(isset($this->user_dq))$this->user_dq->set('show_tips',$this->show?'Y':'N')->do_update();\n\t\t\telseif(isset($this->user_data))$this->user_data[$this->name.'_show_tips']=$this->show?'Y':'N';\n\t\t\telse{\n\t\t\t\t//store to cookies. no need to check if cookies enabled\n\t\t\t\tsetcookie($this->name.'_show_tips', $this->show?'Y':'N', time()+60*60*24*30);\n\t\t\t}\n\t\t}\n\t\t$this->initializeTemplate(null, array('tipoftheday',$this->show?'TipShow':'TipHide'));\n\t}", "public function setShowSummary($showSummary) {\r\n\t\t$this->showSummary = $showSummary;\r\n }", "public function show($show)\n {\n \n }", "public function setIsArchived($v)\n\t{\n\t\tif ($v !== null) {\n\t\t\t$v = (int) $v;\n\t\t}\n\n\t\tif ($this->is_archived !== $v || $this->isNew()) {\n\t\t\t$this->is_archived = $v;\n\t\t\t$this->modifiedColumns[] = CampaignPeer::IS_ARCHIVED;\n\t\t}\n\n\t\treturn $this;\n\t}", "public function showBackupPage() {\n echo '<div class=\"wrap\">';\n echo '<h2>' . self::NAME . ' v ' . self::VERSION . '</h2>';\n\n if ($this->getNonce()) {\n if (isset($_GET['kickoff'])) {\n $this->renderRefresh(\n $this->initArchiving()\n );\n } elseif (isset($_GET['holding'])) {\n $this->renderRefresh(\n false,\n $this->resumeArchiving()\n );\n }\n } else {\n echo '<hr>';\n echo '<p>When you click the button below, Wordpress will create a zip archive of your content directory (in <code>' . $this->content_dir . '</code>) and a SQL export of your database.</p>';\n echo '<p>You can then import said archive into an <a target=\"_blank\" href=\"https://github.com/evolution/wordpress\">Evolution Wordpress</a> site.</p>';\n echo '<form action=\"\" method=\"get\">';\n wp_nonce_field(__CLASS__, __CLASS__.'_nonce', true);\n echo '<input type=\"hidden\" name=\"page\" value=\"' . __CLASS__ . '_opt_menu\">';\n echo '<input type=\"submit\" name=\"kickoff\" value=\"Create Archive\" class=\"button button-primary\">';\n echo '</form>';\n }\n\n echo '</div>';\n }", "public function resetBooleans()\n {\n $this->setShowSize(false);\n $this->setShowDescription(false);\n $this->setShowExtension(false);\n $this->setShowLastUpdate(false);\n }", "public function showOnDetail(): bool\n {\n return $this->showOnDetail;\n }", "private function showAction($showing)\n\t{\n\t\t// version?\n\t\tswitch($showing)\n\t\t{\n\t\t\tcase 'version':\n\t\t\t\t// get version file\n\t\t\t\t$vFile = fopen($this->basePath . 'VERSION.md', 'r');\n\t\t\t\t$rFile = fread($vFile, filesize($this->basePath . 'VERSION.md'));\n\n\t\t\t\t// print version\n\t\t\t\techo $rFile . \"\\n\";\n\t\t\tbreak;\n\t\t}\n\t}", "public function setCompress($bool) {\n // If gzdecode() and gzencode() exists and $bool == true set output of the hash and encrypt function to be compressed (http://php.net/manual/en/function.gzencode.php)\n if(((function_exists('gzdecode')) && (function_exists('gzencode'))) && (is_bool($bool))) {\n $this->compress = $bool;\n }\n $this->compress = false;\n \n return $this->compress;\n }", "public function setCompressible(bool $isCompressible);", "function setArchived($value) {\n\t\treturn $this->setColumnValue('archived', $value, Model::COLUMN_TYPE_INTEGER_TIMESTAMP);\n\t}", "public function openModal()\n {\n $this->confirmationArchived = true;\n }", "public function showMenus($b)\n\t{\n\t\t$this->showMenus = $b ? true : false;\n\t}", "public function setShowFileFragment(bool $showFileFragment): Debug\n {\n $this->showFileFragment = $showFileFragment;\n\n return $this;\n }", "public function isArchived() {\n return $this->status->value == ScheduledUpdateInterface::STATUS_SUCCESSFUL\n || $this->status->value === ScheduledUpdateInterface::STATUS_UNSUCESSFUL;\n }", "public function archive()\n\t{ \n\t\t$data['title'] = 'Arsip Surat';\n\t\t$this->load->view('admin/includes/_header', $data);\n\t\t$this->load->view('admin/tracemail/archive/index', $data);\n\t\t$this->load->view('admin/includes/_footer', $data);\n }", "public function setIsShowActions(bool $isShowActions)\n {\n $this->isShowActions = $isShowActions;\n }", "public function setShowInMenu($show = NULL ){\n\t\t$this->showInMenu = isset($show) ? $show : $this->show_ui;\n\t}", "public function archiveTask($archive_flag, $task_id) {\n\t\t$conn=parent::connect();\n\t\t$sql = \"UPDATE \" . TBL_TASK . \" SET\n\t\t\t\ttask_archived = :archive_flag WHERE task_id = :task_id\";\n\t\t\ttry {\n\t\t\t\t$st = $conn->prepare($sql);\n\t\t\t\t$st->bindValue(\":archive_flag\", $archive_flag, PDO::PARAM_INT);\n\t\t\t\t$st->bindValue(\":task_id\", $task_id, PDO::PARAM_INT);\n\t\t\t\t$st->execute();\t\n\t\t\t\tparent::disconnect($conn);\n\t\t\t} catch (PDOException $e) {\n\t\t\t\tparent::disconnect($conn);\n\t\t\t\tdie(\"Query failed on archive of task: \" . $e->getMessage() . \" sql is \" . $sql);\n\t\t\t}\n\t}", "public function setConditionallyHidden($flag)\n {\n $this->_isConditionallyHidden = $flag;\n }", "public function setShowInHome($showInHome);", "protected function _compress()\n {\n if ((bool)$this->_options['compress']) {\n header('Content-encoding: gzip');\n $this->DISPLAY = gzcompress($this->DISPLAY, $this->_options['compress']);\n }\n }", "public function setShowLanguagetitle($showLanguagetitle)\n {\n $this->showLanguagetitle = (boolean) $showLanguagetitle;\n }", "public function show($id)\n {\n Auth::user()->hasRole(['super_admin']);\n\n $archive = Archive::find($id);\n\n return view('data.archive.show')\n ->with('archive',$archive);\n }", "public function setting_show_on_dashboard() {\n\t\t$show_on_dashboard = get_option( 'simple_history_show_on_dashboard', 1 );\n\t\t$show_on_dashboard = apply_filters( 'simple_history_show_on_dashboard', $show_on_dashboard );\n\t\treturn (bool) $show_on_dashboard;\n\t}", "public function isZipArchive(): bool;", "public static function isArchive()\n {\n return ( self::hasWoocommerce() && ( is_shop() || is_product_category() || is_product_tag() ) );\n }", "public function asAttachment($boolean)\n {\n $this->attachment = $boolean;\n }", "public function archive( $notes, $toggle ) {\n\t\tif (\n\t\t\t$this->feedback->isFeatured() ||\n\t\t\t$this->feedback->isResolved() ||\n\t\t\t$this->feedback->isNonActionable() ||\n\t\t\t$this->feedback->isInappropriate() ||\n\t\t\t$this->feedback->isArchived() ||\n\t\t\t$this->feedback->isHidden() ||\n\t\t\t$this->feedback->isOversighted()\n\t\t) {\n\t\t\t$this->error = 'articlefeedbackv5-invalid-feedback-state';\n\t\t\treturn false;\n\t\t}\n\n\t\t$this->feedback->aft_feature = 0;\n\t\t$this->feedback->aft_resolve = 0;\n\t\t$this->feedback->aft_noaction = 0;\n\t\t$this->feedback->aft_inappropriate = 0;\n\t\t$this->feedback->aft_archive = 1;\n\t\t$this->feedback->aft_hide = 0;\n\t\t$this->feedback->aft_oversight = 0;\n\n\t\t$this->logId = $this->log( __FUNCTION__, $this->feedback->aft_page, $this->feedback->aft_id, $notes, $this->user );\n\n\t\treturn true;\n\t}", "public function getArchived()\n {\n return $this->archived;\n }", "public function setIsShowChildren($isShow);", "public function getArchive() {\n\t\treturn $this->archive;\n\t}", "private function __set_backup_download_header()\n {\n header(\"Pragma: public\");\n header(\"Content-Type: application/octet-stream\");\n header(\"Content-Disposition: attachment; filename=\".$this->__requested_data[\"time\"].\".zip\");\n }", "public function setBackupExisting($bool) {\n\t\t$this->backupExisting = $bool;\n\t}", "public function setIsHidden($flag)\n {\n $this->_isHidden = (bool) $flag;\n }", "public function archivesAction(){\n $this->view->archives = $this->_vacancies->getArchiveJobs($this->_getParam('page'));\n }", "public function setOpen()\r\n {\r\n $this->open = true;\r\n }", "public function showAction()\n {\n if (! isset($this->showParameters['contentTitle'])) {\n $this->showParameters['contentTitle'] = $this->getShowTitle();\n }\n\n parent::showAction();\n }", "public function setShowDescriptionAttribute($show_description)\n {\n $this->attributes['show_description'] = $show_description == 1 || $show_description === 'true' || $show_description === true ? true : false;\n }", "public function getShowLinkAttribute($show_link)\n {\n return $show_link == 1 ? true : false;\n }", "public function show(Tariff $tariff)\n {\n //\n }", "function simple_history_setting_show_on_dashboard() {\n\t$show_on_dashboard = get_option(\"simple_history_show_on_dashboard\", 0);\n\t$show_on_dashboard = apply_filters(\"simple_history_show_on_dashboard\", $show_on_dashboard);\n\treturn (bool) $show_on_dashboard;\n}", "public function archiveAction(){\n $articles = Article::find([\n 'order' => 'creationDate DESC'\n ]);\n $this->view->setVar(\"articles\", $articles);\n }", "public function showFavoritesOnly()\n {\n $this->displayOnlyFavorites = true;\n }", "private function showAdmin() : bool\n {\n return \\apply_filters(self::FILTER_SHOW_ADMIN, true) === true;\n }", "public function setHidden(){\n $this->_hidden = true;\n }", "function _mai_cmb_show_if_static_archive() {\n\t// Bail if not editing a post\n\tglobal $pagenow;\n\tif ( 'post.php' != $pagenow ) {\n\t\treturn false;\n\t}\n\n\t$post_id = filter_input( INPUT_GET, 'post', FILTER_SANITIZE_NUMBER_INT );\n\t$posts_page_id = get_option('page_for_posts');\n\n\t// If static blog page.\n\tif ( ( $post_id == $posts_page_id ) ) {\n\t\treturn true;\n\t}\n\treturn false;\n}", "public function archive()\n {\n $archives = Archive::where('user_id', '=', Auth::user()->id)->orderBy('id', 'desc')->get();\n// dd($archives);\n return view('user.archive.archive')\n ->with('archives', $archives);\n }", "public function setOwner($bool)\r\n {\r\n $this->owner = (bool) $bool;\r\n }", "private function startExtensionArchive(): void {\n // Durchlaufe alle definiertne Archive-Klassen\n foreach ($this->archiveConfig as $archiveClassName => $archiveConfig) {\n echo PHP_EOL . \"*** Starte Archivierung der Wetterwarnungen mit '\" . $archiveClassName .\n \"' Modul:\" . PHP_EOL;\n\n // Instanziere Klasse\n /** @var ArchiveToInterface $archiveClassPath */\n $archiveClassPath = '\\\\blog404de\\\\WetterWarnung\\\\Archive\\\\' . $archiveClassName;\n $this->archiveClass = new $archiveClassPath();\n\n // Konfiguriere Action-Klasse\n $this->archiveClass->setConfig($archiveConfig);\n\n // Verarbeite jede Wetterwarnung\n foreach ($this->wetterWarnungen as $parsedWarnInfo) {\n // Speichere Wetterwarnung in das Archiv\n $this->archiveClass->saveToArchive($parsedWarnInfo);\n }\n }\n }", "public function canShowOnDemand () {\n return true;\n }", "public function showButtonPanel($showButtonPanel){\n \n if($showButtonPanel){\n $this->_config_mapper(Array('showButtonPanel' => 'true')); \n } else {\n $this->_config_mapper(Array('showButtonPanel' => 'false')); \n }\n }" ]
[ "0.7569749", "0.65599877", "0.63169265", "0.62827784", "0.60871345", "0.60188615", "0.5956334", "0.5850904", "0.57926947", "0.5775914", "0.57517475", "0.56992054", "0.5699082", "0.5692859", "0.5613611", "0.56029654", "0.5542044", "0.5491457", "0.54620725", "0.5458639", "0.5413536", "0.5380438", "0.5379049", "0.5361481", "0.5341159", "0.53385454", "0.5324926", "0.53132117", "0.5304151", "0.53002834", "0.5288841", "0.5279026", "0.5277689", "0.5271555", "0.52589315", "0.52520806", "0.52402586", "0.52378196", "0.5208359", "0.5174739", "0.516303", "0.5162624", "0.5152268", "0.5151007", "0.51482916", "0.51443005", "0.5138358", "0.5133994", "0.5132089", "0.50974333", "0.5093576", "0.50769514", "0.5047161", "0.50463825", "0.5040555", "0.50390524", "0.50219464", "0.5019937", "0.50179154", "0.50144374", "0.4991168", "0.49911022", "0.49850133", "0.4981272", "0.49807802", "0.4973133", "0.49729836", "0.4966362", "0.49655342", "0.49451303", "0.49400488", "0.4939193", "0.4932515", "0.49304408", "0.4926641", "0.4917524", "0.4915395", "0.4903309", "0.48971194", "0.4892504", "0.48894817", "0.4884424", "0.48747972", "0.48742333", "0.4873662", "0.4869308", "0.48639166", "0.48468748", "0.48444664", "0.48408097", "0.48359782", "0.48285854", "0.4814784", "0.48098478", "0.4809607", "0.48049742", "0.48025647", "0.47992522", "0.47910604", "0.47897565" ]
0.8028442
0
test if requst is from localhost for testing
function localhost() { $whitelist = array('127.0.0.1', "::1"); if(in_array($_SERVER['REMOTE_ADDR'], $whitelist)){ return true; } else { return false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function check_localhost()\n{\n if ( $_SERVER[\"SERVER_ADDR\"] == '127.0.0.1' )\n {\n return TRUE;\n }\n else\n {\n return FALSE;\n }\n}", "function _is_localhost() {\n\t\treturn IMFORZA_Utils::is_localhost();\n\t}", "function is_localhost() {\n\treturn ($_SERVER['SERVER_NAME']=='localhost') ? true : false;\n}", "function pp_is_local() {\n\treturn $_SERVER['SERVER_ADDR'] == '127.0.0.1';\n}", "public static function isLocal() {\n return (strpos($_SERVER['SERVER_ADDR'], '192.168') !== false || $_SERVER['HTTP_HOST'] == 'localhost');\n }", "function cjpopups_is_local(){\n\tif($_SERVER['REMOTE_ADDR'] == '127.0.0.1'){\n\t\treturn true;\n\t}elseif(strpos(site_url(), 'cssjockey') > 0){\n\t\treturn true;\n\t}else{\n\t\treturn false;\n\t}\n}", "public static function is_localhost() {\n\t\t\t// Get remote IP.\n\t\t\t$remote_ip = filter_input( INPUT_SERVER, 'REMOTE_ADDR', FILTER_VALIDATE_IP );\n\n\t\t\t$local_ips = array(\n\t\t\t\t'127.0.0.1', // IPv4.\n\t\t\t\t'::1', // IPv6.\n\t\t\t);\n\n\t\t\t$local_ips = apply_filters( 'imutils_local_ips', $local_ips );\n\n\t\t\treturn in_array( $remote_ip, $local_ips, true );\n\t\t}", "private function checkIfOnLocalhost() {\n $whitelist = array(\n '127.0.0.1',\n '::1'\n );\n if(in_array($_SERVER['REMOTE_ADDR'], $whitelist)){\n return;\n } else {\n $this->databaseServerName = getenv('DATABASE_SERVER_NAME');\n $this->databaseUserName = getenv('DATABASE_USERNAME');\n $this->databasePassword = getenv('DATABASE_PASSWORD');\n $this->databaseName = getenv('DATABASE_NAME');\n }\n }", "public function isLocalhost()\n {\n $whitelist = [ '127.0.0.1', '::1', ];\n return in_array( $this->getServerVar('REMOTE_ADDR' ), $whitelist, true );\n }", "public function testGetHost() {\n static::$_server = array(\n 'SERVER_NAME' => 'nimbl.es'\n );\n $request = $this->createRequest();\n $this->assertEquals('nimbl.es', $request->getHost());\n }", "public function shouldCheckHttpHost()\n {\n return !Director::is_cli() && isset($_SERVER['HTTP_HOST']);\n }", "public function isLocal()\n {\n return $this->server['SERVER_ADDR'] === $this->getClientIP();\n }", "function fromLocal(){\n if (!isset($_SERVER['LOCAL_ADDR'])) return $_SERVER['SERVER_ADDR'] == $_SERVER['REMOTE_ADDR'];\n if (!isset($_SERVER['SERVER_ADDR'])) return $_SERVER['LOCAL_ADDR'] == $_SERVER['REMOTE_ADDR'];\n return ($_SERVER['SERVER_ADDR'] == $_SERVER['REMOTE_ADDR'] || $_SERVER['LOCAL_ADDR'] == $_SERVER['REMOTE_ADDR']);\n}", "protected function __get_is_local()\n\t{\n\t\tstatic $patterns = array('::1', '/^127\\.0\\.0\\.\\d{1,3}$/', '/^0:0:0:0:0:0:0:1(%.*)?$/');\n\n\t\t$ip = $this->ip;\n\n\t\tforeach ($patterns as $pattern)\n\t\t{\n\t\t\tif ($pattern{0} == '/')\n\t\t\t{\n\t\t\t\tif (preg_match($pattern, $ip))\n\t\t\t\t{\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if ($pattern == $ip)\n\t\t\t{\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}", "public static function isRequestFromServerLocal() {\n $ip = UtilsNet::fetch_alt_ip();\n return in_array($ip, UtilsNet::getServerLocalIps());\n }", "public static function checkConnection() {\r\n\t\t$url = MoufReflectionProxy::getLocalUrlToProject().\"src/direct/test_connection.php\";\r\n\t\r\n\t\t$response = self::performRequest($url);\r\n\t\t\r\n\t\tif ($response == 'ok') {\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "function is_development(): bool\n{\n return stripos(getenv('HTTP_HOST'), 'sunshine') != 0;\n}", "function trusted() {\n\t//-----------------------------------------------------------\n\t// Check for trusted host\n\tif(getenv('HTTP_REFERRER')) {\n\t\t$ref_url_parts=parse_url(getenv('HTTP_REFERRER'));\n\t\t} else {\n\t\t$ref_url_parts=parse_url(getenv('HTTP_REFERER'));\n\t\t}\n\tif($ref_url_parts['host'] !== $this->accept_host) {\n\t\treturn false;\n\t\t//print \"ERROR - You do not have permission to access this site remotely.\";\n\t\t//exit;\n\t} else {\n\t\treturn true;\n\t}\n}", "function is_live() {\n\treturn preg_match( DEVELOPMENT_HOSTS_EXPRESSION, $_SERVER['SERVER_NAME']) ? false : true;\n}", "public function AppLocalOrServer()\n {\n if (preg_match('/localhost/i', base_url())) return \"local\";\n else return \"server\";\n }", "public function isRequestLocal() {\n\t\treturn preg_match('/10\\.0\\.0\\.(?!(?:2)$)\\d+/', $this->getRequestIpAddress());\n\t}", "public function test_gethost_is_returning_the_correct_value(): void\n {\n $expected = 'localhost';\n $actual = $this->secureRequest->getHost();\n $this->assertEquals($expected, $actual);\n }", "static function is_valid_login_location(){\n\t\tif (in_array($_SERVER[\"REMOTE_ADDR\"], Config::$VALID_LOCATIONS) || in_array( gethostbyaddr($_SERVER[\"REMOTE_ADDR\"]), Config::$VALID_LOCATIONS) )\n\t\t\treturn true;\n\t\telse {\n\t\t\tif (Config::IS_TEST_ENV) {\r\n\t\t\t\treturn true;\t\t\r\n\t\t\t}\n\t\t\treturn false;\n\t\t}\n\t}", "function isLocalhost($whitelist = array('127.0.0.1', '::1'))\n\t{\n\n\t\tif(php_sapi_name() === \"cli\") return false;\n\n\t\treturn (in_array($_SERVER['REMOTE_ADDR'], $whitelist));\n\n\t}", "public function test_yourls_site() {\n $this->assertIsString(yourls_get_yourls_site());\n\n $scheme = yourls_get_protocol( yourls_get_yourls_site() );\n $this->assertContains( $scheme, array( 'http://', 'https://' ), \"yourls_get_yourls_site() isn't http(s)://\" );\n }", "public function isRemote()\n {\n return (bool) filter_var($this->absolutePath, FILTER_VALIDATE_URL) or starts_with($this->absolutePath, '//');\n }", "public function testGetSelfHost()\n {\n $original = $_SERVER;\n\n Configuration::loadFromArray([\n 'baseurlpath' => '',\n ], '[ARRAY]', 'simplesaml');\n $_SERVER['SERVER_PORT'] = '80';\n $this->assertEquals('localhost', HTTP::getSelfHost());\n $_SERVER['SERVER_PORT'] = '3030';\n $this->assertEquals('localhost', HTTP::getSelfHost());\n\n $_SERVER = $original;\n }", "public function testGetServer()\n {\n $this->assertEquals('127.0.0.1', $this->_req->getServer('SERVER_ADDR'));\n }", "function is_test_request() {\n\t$proxied = defined( 'WPORG_PROXIED_REQUEST' ) && WPORG_PROXIED_REQUEST;\n\t$sandbox = defined( 'WPORG_SANDBOXED' ) && WPORG_SANDBOXED;\n\n\treturn $proxied && $sandbox;\n}", "public function isLocalhost()\n {\n if (($is = &$this->staticKey(__FUNCTION__)) !== null) {\n return $is; // Already cached this.\n }\n if (defined('LOCALHOST')) {\n return $is = (bool) LOCALHOST;\n } elseif (preg_match('/\\b(?:localhost|127\\.0\\.0\\.1)\\b/ui', $this->hostToken())) {\n return $is = true;\n }\n return $is = false;\n }", "public static function isLocalAccess() {\r\n $my_ips = array(\r\n '188.254.173.58', // J\r\n '192.241.136.146', // js\r\n '192.241.147.53', // zeus\r\n );\r\n\r\n return empty($_SERVER['REMOTE_ADDR'])\r\n || preg_match('#^(127\\.0\\.0\\.1|192\\.168\\.[0-2]\\.)#si', $_SERVER['REMOTE_ADDR'])\r\n || in_array($_SERVER['REMOTE_ADDR'], $my_ips);\r\n }", "public function hasRemoteUrl();", "function checkIfTestServerIsRunning(): void\n{\n try {\n file_get_contents('http://localhost:4020');\n } catch (Throwable $e) {\n handleTestServerNotRunning();\n }\n}", "public function testHttpTestServerAvailable() {\n\t\t$this->assertTrue(\\REQUESTS_TEST_SERVER_HTTP_AVAILABLE);\n\t}", "public function is_test_environment() {\n\n if(empty($this->production_site_url))\n return true;\n else\n return get_site_url() === $this->production_site_url ? false : true;\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}", "private function testDevServerConnection($port) {\n\t\t$connection = @fsockopen('127.0.0.1', $port, $errno, $errstr, 1);\n\n\t\tif (is_resource($connection)) {\n\t\t\tfclose($connection);\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "function adminChk(){\r\n\treturn $_SERVER[\"REMOTE_ADDR\"] == \"118.36.189.171\" || $_SERVER[\"REMOTE_ADDR\"] == \"39.115.229.173\" || $_SERVER[\"REMOTE_ADDR\"] == \"127.0.0.1\";\r\n}", "public static function isLocal(){\n return \\Illuminate\\Foundation\\Application::isLocal();\n }", "function indieauth_allow_localhost( $r, $url ) {\n\t$r['reject_unsafe_urls'] = false;\n\n\treturn $r;\n}", "function is_local($src)\n\t{\n\t\t// prepend scheme to scheme-less URLs, to make parse_url work\n\t\tif (0 === strpos($src, '//')) {\n\t\t\t$src = 'http:' . $src;\n\t\t}\n\n\t\t$url = @parse_url($src);\n\t\t$blog_url = @parse_url(home_url());\n\t\tif (false === $url)\n\t\t\treturn false;\n\n\t\tif (isset($url['scheme']))\n\t\t{\n\t\t\t// this should be an absolute URL\n\t\t\t// @since 1.3.0 consider sub-domain external for now\n\t\t\tif (0 <> strcmp($url['host'], $blog_url['host']))\n\t\t\t\treturn false;\n\n\t\t\treturn true;\n\t\t}\n\t\telse // Probably a relative link\n\t\t\treturn true;\n\t}", "public function testConnection()\n {\n $lists = $this->_getLists();\n if ($lists === false) {\n return $this->_error;\n }\n\n return true;\n }", "function check_ref()\r\n\t{\r\n\t\t$srv = $_SERVER['SERVER_NAME']; //服务器名\r\n\t\t\r\n\t\tif (substr($_SERVER['HTTP_REFERER'],7,strlen($srv)) != $srv)\r\n\t {\r\n\t\t\t//header('Location: /');\r\n\t \t exit;\r\n\t }\r\n\t\t\r\n\t\treturn true;\r\n\t}", "private function serverNameIsLocalhostOrNumeric() {\r\n\r\n $isDomainNameLocalhost = (strcmp(strtolower($_SERVER['SERVER_NAME']), \"localhost\") == 0);\r\n\r\n if ($isDomainNameLocalhost) {\r\n\r\n return true;\r\n\r\n }\r\n\r\n $matchIsDomainNameNumeric = preg_match(\"/^(\\d+)\\.(\\d+)\\.(\\d+)\\.(\\d+)$/\", $_SERVER['SERVER_NAME']);\r\n\r\n if ($matchIsDomainNameNumeric === false) doDie(\"Could not perform PCRE pattern match on \\$_SERVER['SERVER_NAME'])\", __FILE__, __LINE__, __CLASS__, __METHOD__, __FUNCTION__);\r\n\r\n $isDomainNameNumeric = ($matchIsDomainNameNumeric === 1);\r\n\r\n if ($isDomainNameNumeric) {\r\n\r\n return true;\r\n\r\n }\r\n\r\n return false;\r\n\r\n }", "function is_connected($domain = 'www.perfexcrm.com')\r\n{\r\n $connected = @fsockopen($domain, 80);\r\n //website, port (try 80 or 443)\r\n if ($connected) {\r\n $is_conn = true; //action when connected\r\n fclose($connected);\r\n } else {\r\n $is_conn = false; //action in connection failure\r\n }\r\n return $is_conn;\r\n}", "function cg_debug() {\n\t# only run debug on localhost\n\tif ($_SERVER[\"HTTP_HOST\"]==\"localhost\" && defined('EPS_DEBUG') && EPS_DEBUG==true) return true;\n}", "function is_connected()\n\t{\n\t\t$connected = @fsockopen(\"www.google.com\", 80); //website, port (try 80 or 443)\n\t\tif ($connected){\n\t\t \t$is_conn = true; //action when connected\n\t\t\tfclose($connected);\n\t\t}else{\n\t\t\t$is_conn = false; //action in connection failure\n\t\t}\n\t\treturn $is_conn;\n\n\t}", "public function isRemote();", "public function testIndexActionGetLocalIp()\n {\n $request = $this->di->get(\"request\");\n $request->setGet(\"ip\", \"10.0.0.1\");\n\n\n $res = $this->controller->indexActionGet();\n\n $body = $res->getBody();\n\n // var_dump($body);\n $this->assertInstanceOf(\"Anax\\Response\\ResponseUtility\", $res);\n $this->assertContains(\"Ingen väderinformation tillgänglig\", $body);\n }", "public function testtoCheckAdminLoginUrlIsEist()\n {\n $response = $this->get('/admin/login');\n\n $response->assertStatus(200);\n }", "public function isHostBackend()\n {\n $backendUrl = $this->configInterface->getValue(Store::XML_PATH_UNSECURE_BASE_URL, ScopeInterface::SCOPE_STORE);\n $backendHost = parse_url(trim($backendUrl), PHP_URL_HOST);\n $host = isset($_SERVER['SERVER_NAME']) ? $_SERVER['SERVER_NAME'] : '';\n return (strcasecmp($backendHost, $host) === 0);\n }", "public function test_getConnectionUri_is_returning_the_correct_value_insecure(): void\n {\n $actual = $this->insecureRequest->getConnectionUri();\n $expected = 'localhost:896';\n $this->assertEquals($expected, $actual);\n }", "public static function require_remote_access() {\n $addresslist = get_config('local_ousearch', 'remote');\n if (!preg_match('/^[0-9.]+(,\\s*[0-9.]+)*$/', $addresslist)) {\n throw new moodle_exception('remotewrong', 'local_ousearch');\n }\n $addresses = preg_split('/,\\s*/', $addresslist);\n foreach ($addresses as $address) {\n if (getremoteaddr() === $address) {\n return;\n }\n }\n throw new moodle_exception('remotenoaccess', 'local_ousearch');\n }", "public function testGetSelfHostWithPort()\n {\n $original = $_SERVER;\n\n Configuration::loadFromArray([\n 'baseurlpath' => '',\n ], '[ARRAY]', 'simplesaml');\n\n // standard port for HTTP\n $_SERVER['SERVER_PORT'] = '80';\n $this->assertEquals('localhost', HTTP::getSelfHostWithNonStandardPort());\n\n // non-standard port\n $_SERVER['SERVER_PORT'] = '3030';\n $this->assertEquals('localhost:3030', HTTP::getSelfHostWithNonStandardPort());\n\n // standard port for HTTPS\n $_SERVER['HTTPS'] = 'on';\n $_SERVER['SERVER_PORT'] = '443';\n $this->assertEquals('localhost', HTTP::getSelfHostWithNonStandardPort());\n\n $_SERVER = $original;\n }", "public function isLocal(): bool\n {\n return $this->env === 'local';\n }", "public function testGetURL()\n {\n $pagSeguroController = new PagSeguroController();\n\n $url = $pagSeguroController->getURL('/teste');\n\n if($pagSeguroController::MODE == 'development') {\n $this->assertEquals('https://ws.sandbox.pagseguro.uol.com.br/teste', $url);\n } else {\n $this->assertEquals('https://ws.pagseguro.uol.com.br/', $url);\n }\n }", "public static function isLocal() {\n\t\t$env = self::env();\n\t\t\n\t\tif (strpos($env, 'true.local')) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "static private function CheckCorrectHost() {\n\t\tif (count($_POST) > 0) {\n\t\t\treturn;\n\t\t}\n\t\t$correct_host = str_replace('https://', '', self::getURL());\n\n\t\tif ($_SERVER[\"SERVER_NAME\"] !== $correct_host) {\n\t\t\tself::redirect(self::getCurrentURL() . $_SERVER[\"REQUEST_URI\"]);\n\t\t}\n\t}", "public function test_loopback_requests()\n {\n }", "protected function isHostConfigured() {}", "function has_external_src() {\n // <site_url()>/wp-content/uploads/2017/01/IMG_0319-160x160.jpg\n $local_marker = sprintf('/wp-content/uploads', site_url());\n\n // src contains localhost marker?\n return strpos($this->src, $local_marker) === false;\n }", "public function testHostIsSetCorrectlyFromTheHeaders()\n {\n $server = ['HTTP_HOST' => 'joind.in'];\n $request = new Request($this->config, $server);\n\n $this->assertEquals('joind.in', $request->host);\n $this->assertEquals('joind.in', $request->getHost());\n }", "static public function isWebDocument() {\n return isset($_SERVER[\"HTTP_HOST\"]);\n }", "private function is_from_valid_ip() {\n\t\t$my_ip = getenv( 'REMOTE_ADDR' );\n\t\t\n\t\t// Check if we are in testing mode, and get list of valid IPs\n\t\t//if ( Mage::getStoreConfig( 'payment/fssnet/is_testing' ) )\n\t\t\t$valid_ips = array( '221.134.101.174', '221.134.101.169','198.64.129.10','198.64.133.213' );\n\t\t//else\n\t\t\t//$valid_ips = array( '221.134.101.187', '221.134.101.175', '221.134.101.166','198.64.129.10','198.64.133.213' );\n\t\t\n\t\t// Check if our IP is valid\n\t\tif ( in_array( $my_ip, $valid_ips ) )\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}", "function test_externTM() \n{\n\tglobal $config;\n\t\n\treturn (@file_get_contents($config['externTM_url']) != '');\n}", "public static function verifySameOriginHeader(){\n\t\tif(!isset($_SERVER[\"HTTP_ORIGIN\"]) && !isset($_SERVER[\"HTTP_REFERER\"])){\n\t\t\treturn false;\n\t\t}\n\n\t\t$url = null;\n\t\tif(isset($_SERVER[\"HTTP_ORIGIN\"])){\n\t\t\t$url = parse_url($_SERVER[\"HTTP_ORIGIN\"]);\n\t\t}\n\t\telse{\n\t\t\t$url = parse_url($_SERVER[\"HTTP_REFERER\"]);\n\t\t}\n\n\t\t$port = isset($url[\"port\"]) ? $url[\"port\"] : \"\";\n\t\t$url = $url[\"host\"] . $port;\n\n\t\treturn mb_strpos(mb_strtolower($url), LOCAL_URL) >= 0;\n\t}", "private function validateCurrentHostname(): bool\n {\n // check that current base url is configured as an allowed hostname\n $baseUrl = $this->url->getBaseUrl();\n foreach ($this->getAllowedBypassHostnames() as $hostname) {\n if (strpos($baseUrl, $hostname) !== false) {\n return true;\n }\n }\n return false;\n }", "function wgetfromlocalorfrominternet(){\n\t\t$local=1;\n\t\treturn $local;\n\t}", "private function checkConnection()\n {\n $status = false;\n $url = 'http://' . trim($this->ip) . ':80/';\n $curlInit = curl_init($url);\n curl_setopt($curlInit, CURLOPT_CONNECTTIMEOUT, 2); //третий параметр - время ожидания ответа сервера в секундах\n curl_setopt($curlInit, CURLOPT_HEADER, true);\n curl_setopt($curlInit, CURLOPT_NOBODY, true);\n curl_setopt($curlInit, CURLOPT_RETURNTRANSFER, true);\n $response = curl_exec($curlInit);\n curl_close($curlInit);\n if ($response) {\n $status = true;\n }\n return $status;\n }", "public function testEnvironmentForSocial()\n {\n $hostApi = $this->app['config']['hosts.api'];\n $hostApp = $this->app['config']['hosts.app'];\n\n $this->assertNotNull($hostApi);\n $this->assertStringStartsWith('http', $hostApi);\n $this->assertStringEndsNotWith('/', $hostApi);\n $this->assertNotNull($hostApp);\n $this->assertStringStartsWith('http', $hostApp);\n $this->assertStringEndsNotWith('/', $hostApp);\n }", "public function connect_to_site() {\n\t\treturn false;\n\t}", "function enlaceInicio(){\n if($_SERVER['HTTPS']){\n\t echo 'httpt://' . $_SERVER['SERVER_NAME'];\n\t}else{\n\t echo 'http://' . $_SERVER['SERVER_NAME'];\n\t}\n }", "public function isLocal()\n {\n return $this['env'] = 'local';\n }", "function isOnline()\n{\n $connected = checkdnsrr(\"google.com\");\n\n if ($connected) {\n return true;\n }\n\n return false;\n}", "public function testFullBaseURLFromRequest(): void\n {\n Configure::write('App.fullBaseUrl', false);\n $server = [\n 'HTTP_HOST' => 'cake.local',\n ];\n\n $request = ServerRequestFactory::fromGlobals($server);\n Router::setRequest($request);\n $this->assertSame('http://cake.local', Router::fullBaseUrl());\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}", "function ticketbud_server_connectivity_ok() {\n\t// skip the check on WPMU because the status page is hidden\n\tglobal $ticketbud_unused_api_key;\n\tif ( $ticketbud_unused_api_key )\n\t\treturn true;\n\t$servers = ticketbud_get_server_connectivity();\n\treturn !( empty($servers) || !count($servers) || count( array_filter($servers) ) < count($servers) );\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 isOnline() {}", "public function isOnline() \n {\n // pings example.com and google.com\n $is_conn = null;\n $connected1 = @fsockopen(\"www.example.com\", 80); //website, port (try 80 or 443)\n $connected2 = @fsockopen(\"www.google.com\", 80); //website, port (try 80 or 443)\n // if either is successful\n if ($connected1 || $connected2){\n $is_conn = true; //action when connected\n fclose($connected1);\n fclose($connected2);\n }else{\n $is_conn = false; //action in connection failure\n }\n return $is_conn;\n }", "function check_environmet()\n{\n $SandboxFile = dirname(__DIR__) . '/sandbox_server.txt';\n if (file_exists($SandboxFile)) {\n return 0;\n } else {\n return 1;\n }\n}", "public function testConnection() {\n\t\t/** @var Thrive_Dash_Api_WebinarJamStudio $api */\n\t\t$api = $this->getApi();\n\t\t/**\n\t\t * just try getting the list of the webinars as a connection test\n\t\t */\n\t\ttry {\n\t\t\t$api->getUpcomingWebinars(); // this will throw the exception if there is a connection problem\n\t\t} catch ( Thrive_Dash_Api_WebinarJamStudio_Exception $e ) {\n\t\t\treturn $e->getMessage();\n\t\t}\n\n\t\treturn true;\n\t}", "public function forceWwwUrl() {\n\t\t// read the host from the server environment\n\t\t$host = env('HTTP_HOST');\n\t\tif ($host == 'localhost') {\n\t\t\treturn true;\n\t\t}\n\n\t\t// clean up the host\n\t\t$host = strtolower($host);\n\t\t$host = trim($host);\n\n\t\t// some apps request with the port\n\t\t$host = str_replace(':80', '', $host);\n\t\t$host = str_replace(':8080', '', $host);\n\t\t$host = trim($host);\n\n\t\t// if the host is not starting with www. redirect the\n\t\t// user to the same URL but with www :-)\n\t\tif (!strpos($host, 'www')) {\n\t\t\t$this->redirect('www' . $host);\n\t\t}\n\t}", "public static function proxy(){\t\t\treturn ($_SERVER['HTTP_X_FORWARDED_FOR']\n\t\t\t || $_SERVER['HTTP_X_FORWARDED']\n\t\t\t || $_SERVER['HTTP_FORWARDED_FOR']\n\t\t\t || $_SERVER['HTTP_VIA']\n\t\t\t || in_array($_SERVER['REMOTE_PORT'], array(8080,80,6588,8000,3128,553,554))\n\t\t\t || @fsockopen($_SERVER['REMOTE_ADDR'], 80, $errno, $errstr, 30));\n\t\t}", "#[BackupGlobals(true)]\n public function testGetRemoteAddress () : void {\n $this->assertEmpty(Request::getRemoteAddress());\n\n $_SERVER = [\n 'REMOTE_ADDR' => '10.0.0.2',\n ];\n $this->assertEquals('10.0.0.2', Request::getRemoteAddress());\n\n $_SERVER += [\n 'HTTP_X_FORWARDED_FOR' => '10.0.0.3',\n 'HTTP_CLIENT_IP' => '10.0.0.4',\n ];\n $this->assertEquals(\n '10.0.0.3', Request::getRemoteAddress(),\n \"HTTP_X_FORWARDED_FOR must be prioritized.\"\n );\n }", "public function hasUrlHost()\n {\n return $this->url_host !== null;\n }", "public function isAbsolute(): bool\n\t{\n\t\treturn empty($this->host) === false;\n\t}", "protected function checkTrustedHostPattern() {}", "function testWebpageExists() {\n\t\t$this->get('http://www.ug.it.usyd.edu.au/~dbro8182/lnm/');\n $this->assertTitle('Administration :: Local Network Monitor');\n\t\t$this->setField('username', 'admin');\n\t\t$this->setField('passwd', 'admin');\n\t\t$this->click('Submit');\n\t\t$this->click('Conflicts');\n\t\t$this->assertText('Below displays all conflicting devices that are connected to the network. Conflicting Devices share IP addresses.');\n }", "private function _checkServerIsOnline($url){\n\t\treturn true;\n\t\tini_set(\"default_socket_timeout\",\"05\");\n set_time_limit(5);\n $f=fopen($url,\"r\");\n $r=fread($f,1000);\n fclose($f);\n return (strlen($r)>1) ? true : false;\n\t}", "public function testGetDomain()\n {\n $this->assertEquals('www.maintainable.com', $this->_req->getDomain());\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}", "public function checkConnection(){\r\n\t\treturn false;\r\n\t}", "protected function setUp()\n {\n $this->object = new CNetwork;\n $_SERVER['HTTP_HOST'] = 'www.creovel.org';\n $_SERVER['REMOTE_ADDR'] = '10.10.10.10';\n $_SERVER['REQUEST_URI'] = '/index.php';\n }", "function isSandbox(){ return $_ENV['CURRENT_ENVIRONMENT'] == ENVIRONMENT_SANDBOX; }", "private function getUrl(){\r\n\t\tif ($GLOBALS['TSFE']->absRefPrefix) {\r\n\t\t\t$this->url = $GLOBALS['TSFE']->absRefPrefix;\r\n\t\t\treturn true;\r\n\t\t} else if ($GLOBALS['TSFE']->config['config']['baseURL']) {\r\n\t\t\t$this->url = $GLOBALS['TSFE']->config['config']['baseURL'];\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "final public function getHost(): string {}", "public function testGetBaseUrl() {\n TWebSite::reset();\n $expected='';\n $actual=TWebSite::GetBaseUrl();\n $this->assertEquals($expected,$actual);\n }", "public function getHost(): string;", "public function testHomePageIsWorking() {\n $this->client->request('GET', '/');\n\n Assert::true($this->client->getResponse()->isOk());\n }" ]
[ "0.74404705", "0.7417849", "0.7303981", "0.7285574", "0.71507496", "0.70147985", "0.69984514", "0.6852824", "0.67845863", "0.6685214", "0.6626054", "0.66238517", "0.6500412", "0.6440718", "0.64176726", "0.6394347", "0.63711786", "0.63478607", "0.63417864", "0.63304895", "0.6308196", "0.6302406", "0.63004714", "0.6287659", "0.6252756", "0.62428343", "0.6237387", "0.6237352", "0.62318003", "0.62298", "0.6208529", "0.6206769", "0.62027055", "0.61853987", "0.6171366", "0.61493427", "0.61272734", "0.61219585", "0.6082895", "0.606651", "0.6063342", "0.60235924", "0.59615177", "0.5959083", "0.59580094", "0.5949362", "0.5944116", "0.5914516", "0.5914217", "0.58835167", "0.58801013", "0.58662635", "0.5857069", "0.58449733", "0.584397", "0.5831525", "0.58199006", "0.580985", "0.5804616", "0.57959247", "0.5786909", "0.5772777", "0.57725984", "0.5765605", "0.5763547", "0.57602763", "0.575506", "0.57538635", "0.5713242", "0.5706692", "0.57014465", "0.5693613", "0.5689371", "0.5685586", "0.5682387", "0.5671384", "0.5670446", "0.56692463", "0.56644654", "0.5662081", "0.5658667", "0.5658529", "0.56446666", "0.5637183", "0.563681", "0.5635208", "0.5622546", "0.5619393", "0.56158847", "0.56051683", "0.55976367", "0.5597453", "0.5593555", "0.5585812", "0.5582888", "0.5581868", "0.558088", "0.55781287", "0.557483", "0.55596447" ]
0.71089315
5
remove div tag and its content
function remove_div_tag_and_its_content($string) { $dom = new DOMDocument(); //avoid the whitespace after removing the node $dom->preserveWhiteSpace = false; //parse html dom elements $dom->loadHTML($string); //get the table from dom if($table = $dom->getElementsByTagName('div')->item(0)) { //remove the node by telling the parent node to remove the child $table->parentNode->removeChild($table); //save the new document return $dom->saveHTML(); }else { return $string; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function dt_sc_clear($attrs, $content = null) {\n\t\treturn '<div class=\"dt-sc-clear\"></div>';\n\t}", "public function remove(){\n\n $myDataAccess = aContentAreaDataAccess::getInstance();\n $myDataAccess->connectToDB();\n $affectedRows = $myDataAccess->removeDiv($this->m_divID);\n $myDataAccess->closeDB();\n\n return \"$affectedRows row(s) affected!\";\n }", "function the_content_without_images() {\n\n $innerHTML = \"XX\";\n $html = \"\";\n\n // Buffer the HTML\n ob_start();\n the_content();\n $html = ob_get_contents();\n ob_end_clean();\n\n // Manipulate DOM\n $doc = new DOMDocument();\n $doc->loadHTML($html);\n $doc->encoding = 'UTF-8';\n\n $xpath = new DOMXPath( $doc );\n $childs = $xpath->query(\".//div\");\n foreach ( $childs as $node ) {\n if ( $node->getElementsByTagName(\"img\")->length ) {\n $node->parentNode->removeChild($node);\n }\n }\n\n // Return only the body contents of DOM\n return utf8_decode($doc->saveHTML($doc->getElementsByTagName(\"body\")->item(0)));\n}", "function remove_html($content) {\r\n\t$content = strip_tags($content);\r\n return $content;\r\n}", "public function removeNodeNewContent()\n\t{\n\t\t$this->removeNode( 'new-content' );\n\t}", "protected function clear()\n {\n $this->innerHtml = null;\n $this->outerHtml = null;\n $this->text = null;\n }", "public static function getHTMLContent($text) {\r\n \r\n \r\n \r\n if(strpos($text,'<div id=\"content\">') !== false && strstr($text, '<div id=\"content\">', true) == \"\") {\r\n //the div element with id=content is the first element so I remove it\r\n $text = substr($text, strlen('<div id=\"content\">'));\r\n $text = trim(substr($text, 0, strlen($text)-strlen('</div>')));\r\n }\r\n \r\n return $text;\r\n\t}", "public function removeAllTags() {}", "function non_DOM_deleteme($opening_tag_string) {\r\n\t\tpreg_match_all('/' . $opening_tag_string . '/is', $this->code, $matches, PREG_OFFSET_CAPTURE);\r\n\t\t$size = sizeof($matches[0]) - 1;\r\n\t\twhile($size > -1) {\r\n\t\t\tpreg_match('/<(\\w+)/is', $matches[0][$size][0], $tagname_matches);\r\n\t\t\t$tagname = $tagname_matches[1];\r\n\t\t\t$OString = OM::getOString($this->code, '<' . $tagname, '</' . $tagname . '>', $matches[0][$size][1]);\r\n\t\t\t$this->code = substr($this->code, 0, $matches[0][$size][1]) . substr($this->code, $matches[0][$size][1] + strlen($OString));\r\n\t\t\t$size--;\r\n\t\t}\r\n\t}", "protected function clearNoneHumanTags()\n {\n $filter = $this->DOM->filter('script');\n\n $filter->each(function (Crawler $crawler) {\n foreach ($crawler as $node) {\n $node->parentNode->removeChild($node);\n }\n });\n }", "function remove_shortcode_from($content)\n{\n $content = strip_shortcodes($content);\n return $content;\n}", "function cleanup()\n {\n if (is_object( $this->roottag )) {\n $this->roottag->clear_subtags();\n }\n }", "function tia_remove($content) {\n\tglobal $id;\n\treturn str_replace('#more-'.$id.'\"', '\"', $content);\n}", "public function testClear()\n {\n $this->assertCount(0, (new Dom('<div /><div />'))->clear());\n }", "function ind_delete_extra_tags($content) {\n\t//Delete the chapters tags, because we don't need them\n\t$search = \"@(?:<p>)*\\s*\\[chapters\\]\\s*(?:</p>)*@i\";\n\t$content = preg_replace($search, '', $content);\n\t\n\t//Delete the chapters tags, because we don't need them\n\t$search = \"@(?:<p>)*\\s*\\[chapters\\s*:\\s*(\\d+)(||,left|,right)\\]\\s*(?:</p>)*@i\";\n\t$content = preg_replace($search, '', $content);\n\n\treturn $content;\n}", "static function remove(string $content): string\n {\n return self::parse($content, function () { return ''; });\n }", "public function remove () {\r\n\t\t\r\n\t\tforeach ($this as $node) \r\n\t\t $node->parentNode->removeChild($node);\r\n\t}", "function editdel_content($content) {\n global $post;\n\t\n $content = str_replace('<div class=\"cmsms_shortcode_edit_column\">Edit</div>', '', $content);\n $content = str_replace('<div class=\"cmsms_shortcode_edit_box\">Edit</div>', '', $content);\n $content = str_replace('<div class=\"cmsms_shortcode_edit_tab\">Edit</div>', '', $content);\n $content = str_replace('<div class=\"cmsms_shortcode_edit_price\">Edit</div>', '', $content);\n\t\n return $content;\n}", "public function removeAll($content)\r\n\t{\r\n\t\treturn $this->removeAttribute('.*', $content);\r\n\t}", "function magazinevibe_child_remove_first_image( $content ) {\n\t$dom = new DOMDocument();\n\t$dom->loadHTML( $content );\n\t$images = $dom->getElementsByTagName( 'img' );\n\n\tforeach ( $images as $image ) {\n\t\t$parent = $image->parentNode;\n\t\tif ( $parent->nodeName ) {\n\t\t\t$parent->parentNode->removeChild( $parent );\n\t\t\t$content = $dom->saveHTML();\n\t\t\t$content = str_replace('&Acirc;', '', $content);\n\t\t\treturn $content;\n\t\t}\n\t}\n\n\t$content = str_replace('&Acirc;', '', $content);\n\n\treturn $content;\n}", "private function clean_content( $content ){\n\t\t\t$content = strip_shortcodes( $content );\n\n\t\t\t// clean html away from content\n\t\t\t$content = wp_filter_nohtml_kses( $content );\n\n\t\t\t// all clean and ready to shine\n\t\t\treturn $content;\n\t\t}", "function jetpackme_remove_rp() {\n\tif ( class_exists( 'Jetpack_relatedPosts')) {\n\t\t$jprp = Jetpack_relatedPosts::init();\n\t\t$callback = array ( $jprp, 'filter_add_target_to_dom' );\n\t\tremove_filter( 'the_content', $callback, 40);\n\t}\n}", "function remove_empty_p( $content ){\n $content = preg_replace( array(\n '#<p>\\s*<(div|aside|section|article|header|footer)#',\n '#</(div|aside|section|article|header|footer)>\\s*</p>#',\n '#</(div|aside|section|article|header|footer)>\\s*<br ?/?>#',\n '#<(div|aside|section|article|header|footer)(.*?)>\\s*</p>#',\n '#<p>\\s*</(div|aside|section|article|header|footer)#',\n ), array(\n '<$1',\n '</$1>',\n '</$1>',\n '<$1$2>',\n '</$1',\n ), $content );\n return preg_replace('#<p>(\\s|&nbsp;)*+(<br\\s*/*>)*(\\s|&nbsp;)*</p>#i', '', $content);\n}", "function humcore_remove_meta_boxes() {\n\n\tremove_meta_box( 'humcore_deposit_subjectdiv', 'humcore_deposit', 'side' );\n\tremove_meta_box( 'tagsdiv-humcore_deposit_tag', 'humcore_deposit', 'side' );\n\n}", "public function clear()\n {\n if (null !== $this->getDraft()) {\n $this->getDraft()->clear();\n } else {\n $this->_subcontent->clear();\n $this->subcontentmap = array();\n $this->_data = array();\n $this->index = 0;\n }\n }", "public function strip_empty_tags( $content ) {\n\t\treturn preg_replace( '/<([a-z][\\w]*) ?><\\\\/\\\\1>/', '', $content );\n\t}", "function remove_empty_p($content)\n{\n $content = preg_replace(array(\n '#<p>\\s*<(div|aside|section|article|header|footer)#',\n '#</(div|aside|section|article|header|footer)>\\s*</p>#',\n '#</(div|aside|section|article|header|footer)>\\s*<br ?/?>#',\n '#<(div|aside|section|article|header|footer)(.*?)>\\s*</p>#',\n '#<p>\\s*</(div|aside|section|article|header|footer)#',\n ), array(\n '<$1',\n '</$1>',\n '</$1>',\n '<$1$2>',\n '</$1',\n ), $content);\n return preg_replace('#<p>(\\s|&nbsp;)*+(<br\\s*/*>)*(\\s|&nbsp;)*</p>#i', '', $content);\n}", "public function remove_meta_box() {\r\n\r\n\t\tif( ! is_wp_error( $this->tax_obj ) && isset($this->tax_obj->object_type) ) foreach ( $this->tax_obj->object_type as $post_type ):\r\n\t\t\t$id = ! is_taxonomy_hierarchical( $this->taxonomy ) ? 'tagsdiv-'.$this->taxonomy : $this->taxonomy .'div' ;\r\n\t \t\tremove_meta_box( $id, $post_type, 'side' );\r\n\t \tendforeach;\r\n\t}", "public function removeTag()\n\t{\n\t\tif(isset($this->primarySearchData[$this->ref_tag]))\n\t\t{\n\t\t\tunset($this->primarySearchData[$this->ref_tag]);\n\t\t}\n\t}", "function learndash_essays_remove_subbmitdiv_metabox() {\n\tremove_meta_box( 'submitdiv', 'sfwd-essays', 'side' );\n}", "protected static function removeContentFromVoidElements(DOMDocument $ir)\n\t{\n\t\t$xpath = new DOMXPath($ir);\n\t\tforeach ($xpath->query('//element[@void=\"yes\"]') as $element)\n\t\t{\n\t\t\t$id = $element->getAttribute('id');\n\t\t\t$query = './/closeTag[@id=\"' . $id . '\"]/following-sibling::*';\n\t\t\tforeach ($xpath->query($query, $element) as $node)\n\t\t\t{\n\t\t\t\t$node->parentNode->removeChild($node);\n\t\t\t}\n\t\t}\n\t}", "public function removeNodes($content)\r\n\t{\r\n\t\treturn preg_replace($this->_patterns['node'], '', $content);\r\n\t}", "function close_html()\n{\n close_tag('html', '', true) ;\n}", "function cleanupContent($content)\n {\n $content=removeInvisibleHtml($content); //remove invisible HTML tags first (strip_tags would only remove tags but leave content between them)\n $content=strip_tags($content); //remove all tags\n $content=preg_replace(\"/[^\\p{L}[:print:]\\s]/u\", \"\", $content); //remove all non-printable characters\n $content=preg_replace(\"/( )+/\", \" \", $content); //replace excess whitespace with single whitespace, preserving new lines\n\n\treturn trim($content); //return clean content\n }", "function remove_html_tag_news($data){\n\treturn preg_replace('/ style=\".*?\"/i', '$1', strip_tags($data, '<i><a><b><u><div><hr>'));\n}", "public abstract function cleanHTML($content);", "public function remove_meta_box() {\n\t\tremove_meta_box( $this->tax_name . 'div', 'ctrs-projects', 'side' );\n\t}", "private function removeMarkup($postContent)\n {\n //get text after '[fusion_text'\n $text_after_fusionText = str_after($postContent, '[fusion_text');\n\n //get content after 'id='\n $text_after_id = str_after($text_after_fusionText, 'id=');\n $text_after_simble = str_after($text_after_id, ']');\n\n $content = strip_tags(str_before($text_after_simble, '[/fusion_text'));\n //remove front and back new lines and spaces\n $finlaContent = trim(preg_replace(' / \\s\\s + / ', ' ', $content)); \n \n if(str_contains($finlaContent,'[') || str_contains($finlaContent,']') ){\n return '';\n }else{\n return $finlaContent;\n }\n\n }", "function remove_noticebox($html) {\n\tif ($html && ($p = strpos($html, '<div id=\"i18n-notice-box\"')) !== false) {\n\t\t$tag =\"</div>\\n</div>\\n\";\n\n\t\tif (($q = strpos($html, $tag, $p + 1)) !== false) {\n\t\t\t$html = substr($html, 0, $p) . substr($html, $q + strlen($tag));\n\t\t}\n\t}\n\n\treturn $html;\n}", "public function stdWrap_stripHtml($content = '')\n {\n return strip_tags($content);\n }", "function strip_shortcode_gallery( $content, $code ) {\n\t preg_match_all( '/'. get_shortcode_regex() .'/s', $content, $matches, PREG_SET_ORDER );\n\n\t if ( ! empty( $matches ) ) {\n\t foreach ( $matches as $shortcode ) {\n\t if ( $code === $shortcode[2] ) {\n\t $pos \t= strpos( $content, $shortcode[0] );\n\t \t\t\t$pos2 \t= strlen($shortcode[0]);\n\t if ($pos !== false) {\n\t \t$content = substr_replace( $content, '', $pos, $pos2 );\n\t\t\t\t\t}\n\t }\n\t }\n\n\t\t\t\n\t\t\n\t\t\t$content = str_replace( ']]>', ']]&gt;', apply_filters( 'the_content', $content ) );\n\t \t\n\t \techo $content;\n\t\t\n\t\t} else {\n\t\t\techo apply_filters( 'the_content', $content );\t\t\t\n\t\t}\n\n\n}", "function excerpt_remove_blocks($content)\n {\n }", "function lgm_theme_remove_tags_metabox() {\n\t remove_meta_box('tagsdiv-post_tag', 'post', 'side');\n\t}", "function tac_remove_empty_p( $content ){\n\t// Clean up p tags around block elements.\n\t$content = preg_replace( array(\n\t\t'#<p>\\s*<(div|aside|section|article|header|footer)#',\n\t\t'#</(div|aside|section|article|header|footer)>\\s*</p>#',\n\t\t'#</(div|aside|section|article|header|footer)>\\s*<br ?/?>#',\n\t\t'#<(div|aside|section|article|header|footer)(.*?)>\\s*</p>#',\n\t\t'#<p>\\s*</(div|aside|section|article|header|footer)#',\n\t), array(\n\t\t'<$1',\n\t\t'</$1>',\n\t\t'</$1>',\n\t\t'<$1$2>',\n\t\t'</$1',\n\t), $content );\n\n\treturn preg_replace('#<p>(\\s|&nbsp;)*+(<br\\s*/*>)?(\\s|&nbsp;)*</p>#i', '', $content);\n}", "public function removeChildNodes() {}", "public function clear_content(){\n\t\t$this->content=array();\n\t\treturn $this;\n\t}", "public function stdWrap_removeBadHTML($content = '')\n {\n return $this->removeBadHTML($content);\n }", "function close_div($tabs = 0)\n{\n close_tag('div', Tab($tabs), true) ;\n}", "private static function clearHTML($html)\n {\n return preg_replace(array(\n '/\\s+/',\n '/[\\t\\n\\r]+/',\n '/<!--.*?-->/s',\n '/>\\s*</',\n '/;\\s*(\\\"|\\')/',\n '/<\\/\\s+/',\n '/\\s+\\/>/',\n '/<\\s+/',\n '/\\s+>/'\n ), array(\n ' ',\n ' ',\n '',\n '><',\n '${1}',\n '</',\n '/>',\n '<',\n '>'\n ), $html);\n }", "private function clear(){\n echo '<div class=\"visualClear\"></div>';\n }", "function clear() { return \"\\n<div class=\\\"clear\\\"></div>\"; }", "public function delete() {\n $this->remove_content();\n\n parent::delete();\n }", "function nosn(){\n echo '<script>$(\"#\" + 1).remove();</script>';\n echo \"<br><br><br>\";\n echo '<div class=\"ibm-columns ibm-seamless ibm-padding-bottom-0 ibm-pull-quote ibm-h1\">\n <div class=\"ibm-col-6-6\">\n <p class=\" ibm-h1 ibm-center\">Serial Number Not Founded.</p>\n </div>\n </div>\n <div class=\"ibm-columns ibm-center\">\n <div class=\"ibm-col-1-1\">\n <b class=\"ibm-ind-link\"><a class=\"ibm-close-link ibm-btn-pri\" href=\"ttools.php\">Go Back</a></b>\n </div>\n </div> ';\n}", "public function detachContentStream()\n {\n $this->contentStream = null;\n $this->partStreamFilterManager->setStream(null);\n $this->onChange();\n }", "public static function removeHtml($s)\n {\n $newLinesAfter = 'h1|h2|h3|h4|h5|h6|h7|h8';\n $newLineAfter = 'caption|div|li|p|tr';\n $removeContent = 'script|style|noframes|select|option|link';\n $spaceAfter = 'td|th';\n\n /**///prep the string\n $s = ' ' . preg_replace(\"/[\\\\r\\\\n]+/\", '', $s);\n\n //begin removal\n /**///remove comment blocks\n while(stripos($s,'<!--') > 0){\n $pos[1] = stripos($s,'<!--');\n $pos[2] = stripos($s,'-->', $pos[1]);\n $len[1] = $pos[2] - $pos[1] + 3;\n $x = substr($s,$pos[1],$len[1]);\n $s = str_replace($x,'',$s);\n }\n\n /**///remove tags with content between them\n if(strlen($removeContent) > 0){\n $e = explode('|', $removeContent);\n for($i=0;$i<count($e);$i++){\n while(stripos($s,'<' . $e[$i]) > 0){\n $len[1] = strlen('<' . $e[$i]);\n $pos[1] = stripos($s,'<' . $e[$i]);\n $pos[2] = stripos($s,$e[$i] . '>', $pos[1] + $len[1]);\n $len[2] = $pos[2] - $pos[1] + $len[1];\n $x = substr($s,$pos[1],$len[2]);\n $s = str_replace($x,'',$s);\n }\n }\n }\n\n foreach (explode('|', $newLinesAfter) as $endTag) {\n $s = str_replace(\"</$endTag>\", \"\\n\\n\", $s);\n }\n foreach (explode('|', $newLineAfter) as $endTag) {\n $s = str_replace(\"</$endTag>\", \"\\n\", $s);\n }\n foreach (explode('|', $spaceAfter) as $endTag) {\n $s = str_replace(\"</$endTag>\", \" \", $s);\n }\n\n /**///remove remaining tags\n $start = 0;\n while(stripos($s,'<', $start) > 0){\n $pos[1] = stripos($s,'<', $start);\n $pos[2] = stripos($s,'>', $pos[1]);\n if (!$pos[2]) {\n //No closing tag! Skip this one\n $start = $pos[1]+1;\n } else {\n $len[1] = $pos[2] - $pos[1] + 1;\n $x = substr($s,$pos[1],$len[1]);\n $s = str_replace($x,'',$s);\n }\n }\n\n if (PHP_EOL != \"\\n\") {\n $s = str_replace(\"\\n\", PHP_EOL, $s);\n }\n return html_entity_decode(trim($s), ENT_QUOTES, 'cp1252');\n }", "public function removeChild (DOMNode $oldnode ) {}", "public function clearEmbargo();", "public function clear()\n {\n $this->contents = '';\n }", "function xmlrpc_removepostdata($content)\n {\n }", "private function processContent(){\n\t\t$this->textEnd = strpos($this->raw,\"</{$this->tag}\");\n\t\t$this->text = trim(substr($this->raw, $this->textStart, $this->textEnd - $this->textStart));\n\t}", "public function removeAddTabsContent($content){\n $searchfor = array();\n $searchfor[] = \"\\$this->getLayout()->getBlock('head')\";\n// $searchfor[] = \"\\$this->_addContent(\\$this->getLayout()->createBlock(\";\n// $searchfor[] = \"->_addLeft(\\$this->getLayout()->createBlock(\";\n for($i = 0; $i < count($searchfor);$i++){\n $pattern = preg_quote($searchfor[$i], '/');\n $pattern = \"/^.*$pattern.*\\$/m\";\n if(preg_match_all($pattern, $content, $matches)){\n foreach($matches as $match){\n $content = str_replace($match[0],'',$content);\n }\n }\n }\n return $content;\n }", "function remove_empty_p( $content ) {\n $content = force_balance_tags( $content );\n $content = preg_replace( '#<p>\\s*+(<br\\s*/*>)?\\s*</p>#i', '', $content );\n $content = preg_replace( '~\\s?<p>(\\s|&nbsp;)+</p>\\s?~', '', $content );\n return $content;\n}", "public function clearRecord($rid){\n $oldRecord = $this->domDocument->getElementById($rid); //get Root\n $this->domDocument->documentElement->removeChild($oldRecord); // remove root\n // save back to disk \n $this->domDocument->save($this->xmlPath);\n }", "function strip_all_tags($content)\n{\n\t$content = preg_replace('/\\n/',' ',$content);\n\t$content = preg_replace('/<script.*<\\/script>/U',' ',$content);\n\t$content = preg_replace('/<style.*<\\/style>/U',' ',$content);\n\t$content = strip_tags($content);\n\treturn $content;\n}", "public function removeCachedHTML($key);", "function replace_widjets_content() {\n remove_action( 'widgets_init', 'envo_storefront_widgets_init' );\n}", "public function process($content)\n {\n return preg_replace('/<!--(.*?)-->/s', '', $content);\n }", "public function removeInner($selector);", "function removeInvisibleHtml($content)\n {\n\t$content=preg_replace(\n array(\n '@<!--[^>]*?.*?-->@siu',\n '@<applet[^>]*?.*?</applet>@siu',\n '@<area[^>]*?.*?</area>@siu',\n '@<audio[^>]*?.*?</audio>@siu',\n '@<button[^>]*?.*?</button>@siu',\n '@<canvas[^>]*?.*?</canvas>@siu',\n '@<datalist[^>]*?.*?</datalist>@siu',\n '@<embed[^>]*?.*?</embed>@siu',\n '@<fieldset[^>]*?.*?</fieldset>@siu',\n '@<form[^>]*?.*?</form>@siu',\n '@<frame[^>]*?.*?</frame>@siu',\n '@<frameset[^>]*?.*?</frameset>@siu',\n '@<head[^>]*?>.*?</head>@siu',\n '@<iframe[^>]*?.*?</iframe>@siu',\n '@<input[^>]*?.*?>@siu',\n '@<keygen[^>]*?.*?</keygen>@siu',\n '@<map[^>]*?.*?</map>@siu',\n '@<noembed[^>]*?.*?</noembed>@siu',\n '@<noframes[^>]*?.*?</noframes>@siu',\n '@<noscript[^>]*?.*?</noscript>@siu',\n '@<object[^>]*?.*?</object>@siu',\n '@<output[^>]*?.*?</output>@siu',\n '@<script[^>]*?.*?</script>@siu',\n '@<select[^>]*?.*?</select>@siu',\n '@<textarea[^>]*?.*?</textarea>@siu',\n '@<track[^>]*?.*?</track>@siu',\n '@<video[^>]*?.*?</video>@siu'\n ),\n array(\n \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\"\n ),\n $content); //remove invisible/dangerous tags (and content between them) that should never be used in any string ()\n\n\treturn trim($content); //return clean content\n }", "public function remove_meta_boxes(){\r\n remove_meta_box('slugdiv', 'cycloneslider', 'normal');\r\n }", "public function removeHTML($text){\n $text = html_entity_decode($text);\n\n\n // Alle Tags entfernen\n $text = strip_tags($text);\n\n $text = str_replace(\"&lt;br&gt;\", \"\", $text);\n $text = str_replace(\"&amp;lt;br&amp;gt;\", \"\", $text);\n\n\n return $text;\n }", "function cleanupMediaobjectUsage()\n\t{\n\t\tinclude_once(\"./Services/RTE/classes/class.ilRTE.php\");\n\t\t$completecontent = \"\";\n\t\tforeach ($this->getAllRTEContent() as $content)\n\t\t{\n\t\t\t$completecontent .= $content;\n\t\t}\n\t\tilRTE::_cleanupMediaObjectUsage($completecontent, $this->getType() . \":html\",\n\t\t\t$this->getId());\n\t}", "function extract_tag( $html, $tag = 'div' )\n\t{\n\t\t$html = preg_replace( \"/(\\<\" . $tag . \")(.*?)(\" . $tag . \">)/si\", \"dada\", \"$html\" );\n\t\t$html = strip_tags( $html );\n\t\t$html = str_replace( \"<!--\", \"&lt;!--\", $html );\n\t\t$html = preg_replace( \"/(\\<)(.*?)(--\\>)/mi\", \"\" . nl2br( \"\\\\2\" ) . \"\", $html );\n\n\t\treturn $html;\n\t}", "public function cropHtmlWorksWithComplexContent() {}", "function _remove_theme_attribute_in_block_template_content($template_content)\n {\n }", "public function deleteContentAndCopyLivePage() {}", "function remove_tags( $html, $tags, $strip_content = FALSE )\n\t{\n\t\t$content = '';\n\t\tif ( ! is_array( $tags ) )\n\t\t{\n\t\t\t$tags = ( strpos( $html, '>' ) !== FALSE ? explode( '>', str_replace( '<', '', $tags ) ) : [ $tags ] );\n\t\t\tif ( end( $tags ) == '' )\n\t\t\t{\n\t\t\t\tarray_pop( $tags );\n\t\t\t}\n\t\t}\n\t\tforeach ( $tags as $tag )\n\t\t{\n\t\t\tif ( $strip_content )\n\t\t\t{\n\t\t\t\t$content = '(.+</' . $tag . '[^>]*>|)';\n\t\t\t}\n\n\t\t\t$html = preg_replace( '#</?' . $tag . '[^>]*>' . $content . '#is', '', $html );\n\t\t}\n\n\t\treturn $html;\n\t}", "function elhero_remove_paragraph($content)\r\n{\r\n remove_filter( 'the_content','wpautop');#wpautop create auto paragraph\r\n return $content;\r\n}", "public function remove_content_filter() {\n\t\t// @todo also check if this page supports blocks.\n\t\tif ( is_page() ) {\n\t\t\tremove_filter( 'the_content', 'wpautop', 10 );\n\t\t\tadd_filter( 'the_content', array( $this, 'spineautop' ), 10 );\n\t\t}\n\t}", "public function removeLastChild();", "function remove_shortcode($tag)\n {\n }", "public function remove_categories_meta_box() {\r\n\t remove_meta_box( 'market_reports_categorydiv', 'market-reports', 'side' );// remove the Categories box\r\n\t}", "private function strip_shortcode ($content)\n {\n $content = preg_replace (\"/<pre>\\\\[{$this->shortcode}.*?\\\\]/s\", '', $content);\n $content = str_replace (\"[/{$this->shortcode}]</pre>\", '', $content);\n return $content;\n }", "function noTag($temp){\n\t$data\t= strip_tags($temp, \"<img \");\n\t$data\t= strip_tags($temp, \"<table \");\n\t$data\t= strip_tags($temp, \"<font \");\n\t$data\t= strip_tags($temp, \"<span \");\t\n\t$data\t= strip_tags($temp, \"<p \");\t\t\n\treturn $data;\n}", "public function removeCode()\n\t{\n\t\t// This is useful for saving space.\n\t\t// This function is useful when dealing with \"composite pages\" i.e.\n\t\t// the processor would:\n\t\t// -- fetch the code from the content,\n\t\t// -- load the code in the PHP machine using \"eval\"\n\t\t// -- strip the content from the code\n\t\t// -- invoke the callback with, as parameters, the source page & \n\t\t// this page's content \n\t\t$content = preg_replace(\"/\\<php(.*)php\\>/siU\",\"\", $this->content);\n\t\t$this->content = $content;\n\t}", "public function removeLogicTag($start, $end, &$content)\n {\n $beginningPos = mb_strpos($content, $start);\n $endPos = mb_strpos($content, $end);\n if ($beginningPos === false || $endPos === false) {\n return;\n }\n\n $textToDelete = mb_substr(\n $content,\n $beginningPos,\n (($endPos + mb_strlen($end)) - $beginningPos)\n );\n $content = str_replace($textToDelete, '', $content);\n }", "function gwt_drupal_process_html_tag(&$variables) {\n $tag = &$variables['element'];\n\n if ($tag['#tag'] == 'style' || $tag['#tag'] == 'script') {\n // Remove redundant type attribute and CDATA comments.\n unset($tag['#attributes']['type'], $tag['#value_prefix'], $tag['#value_suffix']);\n\n // Remove media=\"all\" but leave others unaffected.\n if (isset($tag['#attributes']['media']) && $tag['#attributes']['media'] === 'all') {\n unset($tag['#attributes']['media']);\n }\n }\n}", "public function clear()\r\n {\r\n return $this->replace();\r\n }", "function trim ($a_node)\n\t{\n\t\tif ($a_node->has_child_nodes()) {\n\t\t\t$childs = $a_node->child_nodes();\n\n\t\t\tforeach ($childs as $child) {\n\t\t\t\t$content = trim($child->get_content());\n\n\t\t\t\tif (empty($content)) {\n\t\t\t\t\t$child->unlink_node();\n\t\t\t\t} else {\n\t\t\t\t\t$this->trim($child);\n\t\t\t\t} \n\t\t\t} \n\t\t} \n\t}", "public function typoSearchTagsRemovesBodyContentOutsideMarkers() {}", "public function renderRemove()\n {\n if (!isset($this->removeContainerOptions['id'])) {\n $this->removeContainerOptions['id'] = $this->options['id'] . static::ID_REMOVE_CONTAINER_SUFFIX;\n }\n if (!isset($this->clientOptions['removeContainerId'])) {\n $this->clientOptions['removeContainerId'] = $this->removeContainerOptions['id'];\n }\n\n $options = $this->removeContainerOptions;\n Html::addCssStyle($options, ['display' => 'none'], false);\n return Html::tag($this->removeContainerTag, $this->removeContainerContent, $options);\n }", "function strip_html_tags($str){\n $str = preg_replace('/(<|>)\\1{2}/is', '', $str);\n $str = preg_replace(\n array(// Remove invisible content\n '@<head[^>]*?>.*?</head>@siu',\n '@<style[^>]*?>.*?</style>@siu',\n '@<script[^>]*?.*?</script>@siu',\n '@<noscript[^>]*?.*?</noscript>@siu',\n ),\n \"\", //replace above with nothing\n $str );\n $str = replaceWhitespace($str);\n $str = strip_tags($str);\n return $str;\n}", "public function detach()\r\n {\r\n $this->_parentNode->removeChild($this);\r\n }", "public function html_remove_shortcodes($html)\n {\n return preg_replace_callback('/\\[[^\\]]*\\]/', function ($match) {\n if (preg_match('/^\\[(image|sitetree\\_link,id|file\\_link,id)\\b/', $match[0])) {\n return $match[0];\n }\n return '';\n }, $html);\n }", "public function remove();", "public function remove();", "public function remove();", "public function remove();", "function libGStrip($bid, $iid){\r\n\t\r\n\t\t// construct the api call url based on the iid and bid values\r\n\t$url = 'http://api.libguides.com/api_box.php?iid='.$iid.'&bid='.$bid;\r\n\r\n\t\t// parse the api url\r\n\t$html = file_get_html($url);\r\n\r\n\t\t// get the inner elements of the api box \r\n\t$clean = $html->getElementById(\"content\".$bid)->innertext;\r\n\t\r\n\t\t// format the result into JavaScript\r\n\techo 'document.writeln(\\' '.$clean.' \\');';\r\n\r\n\t\t// clean up when finished\r\n\t$html->clear(); \r\n\tunset($html);\r\n}", "function clean_html($html)\r\n{\r\n\t$html = preg_replace('/<script\\b[^>]*>(.*?)<\\/script>/is', \"\", $html);\r\n\t$html = preg_replace('/<style\\b[^>]*>(.*?)<\\/style>/is', \"\", $html);\r\n\t$html = preg_replace('/<link \\b[^>]*>(.*?)/is', \"\", $html);\r\n\r\n\treturn $html;\r\n}" ]
[ "0.63987464", "0.63932985", "0.61688095", "0.6157673", "0.60981095", "0.59726876", "0.590488", "0.5835455", "0.58251643", "0.5804641", "0.5777069", "0.57177377", "0.57077724", "0.5676242", "0.5672532", "0.5667403", "0.5665513", "0.56637454", "0.5660022", "0.5655662", "0.5641635", "0.5614493", "0.5602463", "0.55914134", "0.5579699", "0.557798", "0.5547998", "0.55414784", "0.5537733", "0.5535627", "0.55143934", "0.55139285", "0.5508825", "0.5505638", "0.55037516", "0.5487252", "0.5480166", "0.545711", "0.5436475", "0.5423636", "0.5418731", "0.54148793", "0.5401172", "0.54005665", "0.53995246", "0.5394608", "0.53933525", "0.538019", "0.5376126", "0.5371347", "0.53624046", "0.5355918", "0.5354009", "0.53420424", "0.5339871", "0.53379893", "0.53292185", "0.53132385", "0.5310853", "0.5297542", "0.52971727", "0.5293135", "0.52887034", "0.52782696", "0.526099", "0.52595264", "0.5247671", "0.52439165", "0.5239795", "0.5236016", "0.52232736", "0.5215623", "0.5207593", "0.5205048", "0.5196087", "0.51867205", "0.51849455", "0.51651853", "0.5164192", "0.5154694", "0.51483226", "0.5143317", "0.51420724", "0.5133937", "0.51325613", "0.5131302", "0.51291555", "0.51256204", "0.51119053", "0.51113456", "0.51027733", "0.5101234", "0.5100175", "0.5095868", "0.50894445", "0.50894445", "0.50894445", "0.50894445", "0.5084409", "0.508345" ]
0.7158119
0
bb_substr function with 3 dots
function bb_substr($string, $trimchar = 50) { if(strlen($string) > $trimchar) { $string = substr($string,0,$trimchar).' ...'; } return $string; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function csubstr($str, $start=0, $length, $charset=\"gbk\", $suffix=true){\n\t$re['utf-8'] = \"/[\\x01-\\x7f]|[\\xc2-\\xdf][\\x80-\\xbf]|[\\xe0-\\xef][\\x80-\\xbf]{2}|[\\xf0-\\xff][\\x80-\\xbf]{3}/\";\n\t$re['gb2312'] = \"/[\\x01-\\x7f]|[\\xb0-\\xf7][\\xa0-\\xfe]/\";\n\t$re['gbk'] = \"/[\\x01-\\x7f]|[\\x81-\\xfe][\\x40-\\xfe]/\";\n\t$re['big5'] = \"/[\\x01-\\x7f]|[\\x81-\\xfe]([\\x40-\\x7e]|\\xa1-\\xfe])/\";\n\tpreg_match_all($re[$charset], $str, $match);\n\t\n\t$slice = join(\"\",array_slice($match[0], $start, $length));\n\t\n\tif(count($match[0])>$length && $suffix){\n\t $slice = join(\"\",array_slice($match[0], $start, $length-1)).\"..\";\n\t}\n\t\n\t//if($suffix) return $slice.\"..\";\n\t\n\treturn $slice;\n}", "function add3dots($string, $repl, $limit) \r\n{\r\n if(strlen($string) > $limit) \r\n {\r\n return substr($string, 0, $limit) . $repl; \r\n }\r\n else \r\n {\r\n return $string;\r\n }\r\n}", "function atk_substr($str,$start,$length='')\n{\n\treturn atkString::substr($str,$start,$length);\n}", "function getLittleDescription($texte, $nbchar = 20)\n{\nreturn (strlen($texte) > $nbchar ? substr(substr($texte,0,$nbchar),0,strrpos(substr($texte,0,$nbchar),\" \")).\"...\" : $texte);\n}", "function sttl($str, $limit = NULL, $dots = true){\nif(isset($str) \n\t\t && isset($limit)){\n if(strlen($str) > $limit){\n\t if($dots == true){\n return substr($str, 0, $limit).'...';\t\t\n\t } elseif($dots == false){\n\t\t return substr($str, 0, $limit);\n\t }\n }\n elseif(strlen($str) < $limit){\n\treturn $str; \t \n }\n}\n return false; \n}", "function subText($len,$str) {\n if (mb_strlen($str,'utf-8')>$len) {\n return mb_substr($str,0,$len,'utf-8').'...';\n } else {\n return $str;\n }\n}", "function st_get_substr($str,$n=150,$more='...')\r{\r $str = strip_tags($str);\r if(strlen($str)<$n) return $str;\r $html = substr($str,0,$n);\r $html = substr($html,0,strrpos($html,' '));\r return $html.$more;\r}", "function briefText($string,$length,$dot='...',$wordSafe=true) {\n\t\tif ($wordSafe) {\n\t\t\tif (preg_match_all('/([^\\\\s]*[\\\\s ]*)/', $string, $parts)) {\n\t\t\t\t$parts=$parts[0];\n\t\t\t\t$total=count($parts);\n\t\t\t\t$result='';\n\t\t\t\t$rLength=0;\n\t\t\t\tforeach ($parts as $word) {\n\t\t\t\t\t$wordLength=cmfcUtf8::strlen($word);\n\t\t\t\t\tif ($rLength+$wordLength<=$length) {\n\t\t\t\t\t\t$rLength+=$wordLength;\n\t\t\t\t\t\t$result.=$word;\n\t\t\t\t\t} else break;\n\t\t\t\t}\n\t\t\t\tif ($rLength<cmfcUtf8::strlen($string))\n\t\t\t\t\t$result.=$dot;\n\t\t\t\t\n\t\t\t\treturn $result;\n\t\t\t} else {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t} else {\n\t $matches=array();\n\t $string=cmfcHtml::utf8ToHtmlEntity($string);\n\t preg_match_all(\"(&#[0-9]+;)\",$string,$matches);\n\t $string='';\n\t for ($i=0;$i<$length;$i++) { $string.=$matches[0][$i]; }\n\t if (count($matches[0])>$length) {$string.=$dot;}\n\t return $string;\n\t\t}\n\t}", "static function getViewSubString($str_,$len){\n $str = trim($str_);\n\n if ($str_ != \"\") {\n if (mb_strlen($str_,'UTF-8') <= $len) {\n $str = $str_;\n } else {\n $str = mb_substr($str_, 0, $len,'UTF-8').'....';\n }\n }\n return $str;\n }", "function get_sub_text ($string, $limit, $break, $pad)\r\n{\r\n\t// return with no change if string is shorter than $limit\r\n\tif(strlen($string) <= $limit)\r\n\t\treturn $string;\r\n\r\n\t// is $break present between $limit and the end of the string?\r\n\t$breakpoint = strpos($string, $break, $limit);\r\n\tif($breakpoint !== false) \r\n\t{\r\n\t\tif($breakpoint < (strlen($string)-1)) \r\n\t\t{\r\n\t\t\t$string = substr($string, 0, $breakpoint) . $pad;\r\n\t\t}\r\n\t}\r\n\treturn $string;\r\n}", "function formatKata2($kata = '')\n{\n return substr($kata, 3);\n}", "public function substring(string $string, int $start = 0, int $length = self::DEFAULT_SUBSTRING_LENGTH, bool $addDots = true): string\n {\n $substring = substr($string, $start, $length);\n\n if(\n $addDots\n && strlen($string) > $length\n ){\n $substring .=\"...\";\n }\n\n return $substring;\n }", "function breekaf ($string){\n\n $afgebroken = substr($string,0,3);\n return $afgebroken;\n\n}", "function tfuse_substr($str, $length, $more = '...', $minword = 3) {\r\n $sub = '';\r\n $len = 0;\r\n \r\n foreach (explode(' ', $str) as $word) {\r\n $part = (($sub != '') ? ' ' : '') . $word;\r\n $sub .= $part;\r\n $len += strlen($part);\r\n \r\n if (strlen($word) > $minword && strlen($sub) >= $length)\r\n break;\r\n }\r\n \r\n return (($len < strlen($str)) ? $sub . ' ' . $more : $sub);\r\n }", "function the_substr($string, $length) {\n\techo get_substr($string, $length);\n}", "function SubString($str = '', $from = 1, $len = 1)\n\t{\n\t\tif ($str == '') {\n\t\t\treturn '';\n\t\t}\n\t\treturn \" SUBSTR(\".$this->Quote($str).\", $from, $len) \";\n\t}", "function formatKata4($kata = '')\n{\n return substr($kata, 3);\n}", "function formatKata19($kata)\n{\n return substr($kata, 3);\n}", "function formatKata9($kata = '')\n{\n return substr($kata, 2);\n}", "function _substr($binary_string, $start, $length) {\r\n if (function_exists('mb_substr')) {\r\n return mb_substr($binary_string, $start, $length, '8bit');\r\n }\r\n return substr($binary_string, $start, $length);\r\n }", "function dotbin($binin,$cdr_nmask){\r\n\tif ($binin==\"N/A\") return $binin;\r\n\t$oct=rtrim(chunk_split($binin,8,\".\"),\".\");\r\n\tif ($cdr_nmask > 0){\r\n\t\t$offset=sprintf(\"%u\",$cdr_nmask/8) + $cdr_nmask ;\r\n\t\treturn mb_substr($oct,0,$offset ) . \"&nbsp;&nbsp;&nbsp;\" . mb_substr($oct,$offset) ;\r\n\t} else {\r\n\treturn $oct;\r\n\t}\r\n}", "function my_string_limit_char($excerpt, $substr=0)\r\n{\r\n\r\n\t$string = strip_tags(str_replace('...', '...', $excerpt));\r\n\tif ($substr>0) {\r\n\t\t$string = substr($string, 0, $substr);\r\n\t}\r\n\treturn $string;\r\n\t\t}", "function substr($offset,$length = null){\n\t\tif($offset<0){\n\t\t\t$offset = $this->getLength() - abs($offset);\n\t\t\tif($offset<0){\n\t\t\t\t// $length = is_null($length) ? $length : $length - abs($offset);\n\t\t\t\t$offset = 0;\n\t\t\t}\n\t\t}\n\n\t\t$out = \"\";\n\t\tforeach($this->_Items as $b){\n\t\t\tif(!is_null($length) && $length<=0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t$b_length = $b->getLength();\n\t\t\tif($offset>$b_length-1){\n\t\t\t\t$offset = $offset-$b_length;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t$out .= $b->substr($offset,$length);\n\t\t\tif(!is_null($length)){\n\t\t\t\t$bytes_taken = min($length,$b_length - $offset);\n\t\t\t\t$length = $length - $bytes_taken;\n\t\t\t}\n\t\t\t$offset = 0;\n\t\t}\n\t\treturn $out;\n\t}", "function substr($offset, $length = -1, $remove = false) {}", "function _custom_short_text($string, $length = 30, $doted = true){\t\n if(strlen($string) <= $length) return ucfirst($string);\n $string = substr($string, 0, $length);\n\t$string = ucfirst(substr($string, 0 , strrpos($string, ' ')));\n\tif($doted){\n\t\treturn $string.' ...';\n\t}else{\n\t\treturn $string;\n\t}\n}", "function spip_substr($c, $start=0, $length = NULL) {\n\t// Si ce n'est pas utf-8, utiliser substr\n\tif ($GLOBALS['meta']['charset'] != 'utf-8') {\n\t\tif ($length)\n\t\t\treturn substr($c, $start, $length);\n\t\telse\n\t\t\tsubstr($c, $start);\n\t}\n\n\t// Si utf-8, voir si on dispose de mb_string\n\tif (init_mb_string()) {\n\t\tif ($length)\n\t\t\treturn mb_substr($c, $start, $length);\n\t\telse\n\t\t\treturn mb_substr($c, $start);\n\t}\n\n\t// Version manuelle (cf. ci-dessous)\n\treturn spip_substr_manuelle($c, $start, $length);\n}", "public function stdWrap_substringDataProvider() {}", "function cs_textcut($text, $maxlength, $subst = '...', $subtract = 3)\r\n{\r\n\t/* prevent some stupid stuff */\r\n\tif ($maxlength < 1)\r\n\t\treturn $text;\r\n\tif ($maxlength < $subtract)\r\n\t\treturn $text;\r\n\t/* check for multi-byte support */\r\n\tif (function_exists('mb_strlen'))\r\n\t{\r\n\t\tglobal $cs_main;\r\n\t\t/* prevent any &xxx; being stripped in half */\r\n\t\t$realtext = html_entity_decode($text, ENT_QUOTES, $cs_main['charset']);\r\n\t\tif (mb_strlen($realtext, $cs_main['charset']) > $maxlength)\r\n\t\t{\r\n\t\t\t$text = mb_substr($realtext, 0, $maxlength - $subtract, $cs_main['charset']).$subst;\r\n\t\t}\r\n\t}\r\n\telse\r\n\t{\r\n\t\tif (strlen($text) > $maxlength)\r\n\t\t{\r\n\t\t\t$text = substr($text, 0, $maxlength - $subtract).$subst;\r\n\t\t}\r\n\t}\r\n\treturn $text;\r\n}", "function string_after(string $subject, string $substr, int $flags = STRING_FIND_FIRST): ?string\n{\n $pos = string_find_position($subject, $substr, $flags);\n $len = string_length($subject, $flags);\n\n if ($pos < 0) {\n return null;\n }\n\n return ($flags & STRING_BINARY) === 0\n ? \\mb_substr($subject, 0, $pos + $len)\n : \\substr($subject, $pos + $len);\n}", "function getSubStringText($text,$string_no)\n\t\t{\n\t\t\t$subString = substr($text,0,$string_no);\n\t\t\treturn $subString;\n\t\t}", "function formatKata8($kata = '')\n{\n return substr($kata, 3);\n}", "public function substr(int $start, int $length): string {}", "function excerpt($str, $len, $end = '...')\n{\n\tif(strlen($str) > $len)\n\t{\n\t\t$str = mb_substr($str, 0, $len, 'UTF-8');\n\t\t$pos = max(strrpos($str, '.'), strrpos($str, ' '), strrpos($str, \"\\n\"));\n\t\tif($pos) $str = substr($str, 0, $pos);\n\t\t$str .= $end;\n\t}\n\treturn $str;\n}", "function aksubstr($string, $start, $length = null)\n\t{\n\t\treturn function_exists('mb_substr') ? mb_substr($string, $start, $length, '8bit') :\n\t\t\tsubstr($string, $start, $length);\n\t}", "function substrBetween($string,$start,$end) {\n return substrAfter(substrBefore($string,$end),$start);\n}", "function dotbin($binin,$cdr_nmask){\n\tif ($binin==\"N/A\") return $binin;\n\t$oct=rtrim(chunk_split($binin,8,\".\"),\".\");\n\tif ($cdr_nmask > 0){\n\t\t$offset=sprintf(\"%u\",$cdr_nmask/8) + $cdr_nmask ;\n\t\treturn substr($oct,0,$offset ) . \"&nbsp;&nbsp;&nbsp;\" . substr($oct,$offset) ;\n\t} else {\n\treturn $oct;\n\t}\n}", "function subwords( $str, $max = 24, $char = ' ', $end = '...' ) {\n $str = trim( $str ) ;\n $str = $str . $char ;\n $len = strlen( $str ) ;\n $words = '' ;\n $w = '' ;\n $c = 0 ;\n for ( $i = 0; $i < $len; $i++ ) {\n if ( $str[$i] != $char ) {\n $w = $w . $str[$i] ;\n } else {\n if ( ( $w != $char ) and ( $w != '' ) ) {\n $words .= $w . $char ;\n $c++ ;\n if ( $c >= $max ) {\n break ;\n }\n $w = '' ;\n }\n }\n }\n if ( $i+1 >= $len) {\n $end = '' ;\n }\n return trim( $words ) . $end ;\n}", "function stringcut($str,$a,$b){\n \t$ap=strpos($str,$a);\n \tfor($i=0;$i<strlen($str)-$ap-1;$i++){\n \tif($str[$ap+strlen($a)+$i]!=$b)\n \t$result=$result.$str[$ap+strlen($a)+$i];\n \telse\n \tbreak;\n \t}\n \treturn $result;\n \t}", "function substr($start,$length = null){\n\t\tif(function_exists(\"mb_substr\")){\n\t\t\tif(PHP_VERSION_ID<50408 && is_null($length)){\n\t\t\t\treturn $this->_copy(mb_substr($this->_String4,$start));\n\t\t\t}\n\t\t\treturn $this->_copy(mb_substr($this->_String4,$start,$length,$this->getEncoding()));\n\t\t}\n\n\t\tif(is_null($length)){\n\t\t\treturn $this->_copy(substr($this->_String4,$start));\n\t\t}\n\t\treturn $this->_copy(substr($this->_String4,$start,$length));\n\t}", "function shortUpdate($text) {\r\n $chars = 90; \r\n\r\n $text = $text.\" \"; \r\n $text = substr($text,0,$chars); \r\n $text = substr($text,0,strrpos($text,' '));\r\n\r\n if ($chars > 90) {\r\n \t$text = $text.\"...\";\r\n }\r\n else {\r\n \t$text = $text.\"\";\r\n }\r\n\r\n \r\n\r\n return $text; \r\n\r\n}", "function atSubstrwords($text, $maxchar, $end = '...')\n{\n if (strlen($text) > $maxchar || $text == '') {\n $words = preg_split('/\\s/', $text);\n $output = '';\n $i = 0;\n while (1) {\n $length = strlen($output) + strlen($words[$i]);\n if ($length > $maxchar) {\n break;\n } else {\n $output .= \" \" . $words[$i];\n ++$i;\n }\n }\n $output .= $end;\n } else {\n $output = $text;\n }\n return $output;\n}", "function subTxt($texto, $tamanho=80){\n\n\t$texto1 = substr($texto, 0, $tamanho);\n\t\n\tif(strlen($texto)>$tamanho){\n\t\n\t\t$texto1 .='...';\n\t}\n\treturn $texto1;\n}", "function cutstr($strtocut, $long){\n\t\t$strtocut = trim($strtocut);\n\t\tif (strlen($strtocut) > $long){\n\t\t\t\t$strtocut = substr($strtocut , 0, $long - 3);\n\t\t\t\t$strtocut = $strtocut.\"...\";\n\t\t}\n\t\treturn $strtocut;\n\t}", "function getStringpart($string,$startStr,$endStr)\n{\n $start = strpos( $string, $startStr);\n\n $end = strrpos( $string, $endStr) + strlen($endStr);\n //we need the length of the substring for the third argument, not its index\n $len = ($end-$start);\n\n $fstr = substr($string, $start, $len );\n\nreturn $fstr;\n}", "function substring($word, $start, $end) {\n $output = \"\";\n for($i = 0; $i < $end-$start; $i++) {\n $output = $output . substr($word, $start + $i, 1);\n }\n return $output;\n}", "function shortUpdate($text) {\n $chars = 90; \n\n $text = $text.\" \"; \n $text = substr($text,0,$chars); \n $text = substr($text,0,strrpos($text,' '));\n\n if ($chars > 90) {\n \t$text = $text.\"...\";\n }\n else {\n \t$text = $text.\"\";\n }\n\n\n return $text; \n\n}", "function shortUpdate($text) {\n $chars = 90; \n\n $text = $text.\" \"; \n $text = substr($text,0,$chars); \n $text = substr($text,0,strrpos($text,' '));\n\n if ($chars > 90) {\n \t$text = $text.\"...\";\n }\n else {\n \t$text = $text.\"\";\n }\n\n\n return $text; \n\n}", "static function stringBetween($var1=\"\",$var2=\"\",$pool){\n\t\t\t$temp1 = strpos($pool,$var1)+strlen($var1);\n\t\t\t$result = substr($pool,$temp1,strlen($pool));\n\t\t\t$dd=strpos($result,$var2);\n\t\t\tif($dd == 0){\n\t\t\t\t$dd = strlen($result);\n\t\t\t}\n\t\t\n\t\t\treturn substr($result,0,$dd);\n\t\t}", "static function cutAt(string $s, int $len = 60, int $at = 20, int $cut_len = 0): array|string {\n // \"Original String\" | [pre, cutted, post]\n error_if($at > $len, \"CutAt prefix position can't exceed expected length\");\n $s = preg_replace('/[^[:print:]]/', '.', $s); // replace non-printable with \".\"\n $s = preg_replace('/\\.\\.+/', '..', $s); // multiple dots with 2 dots\n $l = \\strlen($s);\n if ($l <= $len) {\n return $s;\n }\n $to_cut = $l - $len;\n if (0 === $cut_len) {\n $cut = '...';\n } else {\n $cut = substr($s, $at, $to_cut);\n if (\\strlen($cut) > $cut_len) {\n $hcl = $cut_len >> 1; // half-cut-len\n $cut = substr($cut, 0, $hcl).'...'.substr($cut, -$hcl);\n }\n // $cut = Str::cut($cut, $cut_len); // cut cutted part even more if it is long\n $cut = mb_strimwidth($cut, 0, $cut_len, '...');\n }\n\n return [substr($s, 0, $at), $cut, substr($s, $at + $to_cut)];\n }", "function str_substr($string, $max_length){\n\t\t$string=trim($string);\n\t \tif (strlen($string) > $max_length){\n\t\t $newstring= substr($string, 0, $max_length);\n\t\t}else{\n\t\t $newstring=$string;\n\t\t}\n\t\tif(strlen($string)>strlen($newstring)){\n\t\t\t$newstring.='...';\n\t\t}\n\t\treturn $newstring;\n\t}", "private function callback($matches) {\n return '[substring(@' . $matches[1] . ',string-length(@' . $matches[1] . ')-' . (strlen($matches[2]) - 3) . ')=' . $matches[1] . ']';\n }", "function myTruncate($string, $limit, $break = \".\", $pad = \"...\") {\r\n// return with no change if string is shorter than $limit\r\n if (strlen($string) <= $limit)\r\n return $string; // is $break present between $limit and the end of the string?\r\n if (false !== ($breakpoint = strpos($string, $break, $limit))) {\r\n if ($breakpoint < strlen($string) - 1) {\r\n $string = substr($string, 0, $breakpoint) . $pad;\r\n }\r\n }\r\n return $string;\r\n}", "function smartSubstr($str, $maxLength, $separator = ' ', $tail = '...')\n{\n if (mb_strlen($str) <= $maxLength) {\n return $str;\n }\n\n $returnStr = '';\n $totalLength = 0;\n $separatorLength = mb_strlen($separator);\n $explodeStr = explode($separator, $str);\n\n if (count($explodeStr) > 1) {\n foreach($explodeStr as $item) {\n\n $itemLength = mb_strlen($item);\n $totalLength = mb_strlen($returnStr);\n\n if (($totalLength + $itemLength) >= $maxLength) {\n if (substr($returnStr, -$separatorLength, $separatorLength) == $separator) {\n $returnStr = substr($returnStr, 0, -$separatorLength);\n }\n\n $returnStr .= $tail;\n break;\n }\n\n $returnStr .= $item . $separator;\n }\n } else {\n return mb_substr($str, 0, $maxLength);\n }\n\n return $returnStr;\n}", "function str_colapse($string,$length=150,$side=\"center\",$filler=\"[....]\"){\n \t\t // side= side to cut chars off, center places .. in the center.\n \t\t // filler is the strning used to indicate chopped of chars.\n\n \t\t $strlength=strlen($string);\n \t\t if($strlength>$length){\n \t\t \t \t if($side==\"right\" or $side==\"end\"){\n \t\t \t \t \t \t $tmpstring=substr($string,0,($length-strlen($filler))).$filler;\n \t\t \t \t } elseif($side==\"left\" or $side==\"begin\"){\n \t\t \t \t \t \t $tmpstring=$filler.\nsubstr($string,\n ($strlength-($length-strlen($filler))),\n ($length-strlen($filler)));\n \t\t \t \t } elseif($side==\"center\" or $side==\"middle\"){\n \t\t \t \t \t \t $firstlength=ceil(($length/100)*20);\n \t\t \t \t \t \t $tmpstring=substr($string,0,$firstlength).$filler.\nsubstr($string,\n ($strlength-($length-($firstlength+strlen($filler)))),\n ($length-($firstlength+strlen($filler))));\n \t\t \t \t }\n \t\t \t \t return $tmpstring;\n \t\t } else {\n \t\t \t \t return $string;\n \t\t }\n }", "function funcs_cutLength($string, $length, $word_length = null,$act_length = null){\n\t$string = (!is_null($string))?trim($string):'';\n\t//do not check the size of the string if we already know it\n\tif (is_null($act_length))$act_length=strlen($string);\n\tif (!is_null($word_length) && !empty($string)){\n\t\t//in the future use this instead of calling this whole function\n\t\t$string = wordwrap($string,$word_length,\"\\n\",1);\n\t}\n\tif (!is_null($length) && $act_length>$length && $length>4){\n\t\t$string = substr($string,0,$length-3).'...';\n\t}\n\treturn $string;\n}", "function abstractFromParagraph($content)\n{\n $position = stripos ($content, \".\"); //find first dot position\n \n if($position) { //if there's a dot in our soruce text do\n $offset = $position + 1; //prepare offset\n $position2 = stripos ($content, \".\", $offset); //find second dot using offset\n $first_two = substr($content, 0, $position2); //put two first sentences under $first_two\n\n return $first_two . '.'; //add a dot\n }\n\n else { // if no dot return blank\n\t\treturn \"\";\t\n }\n\t\n}", "function truncate($string, $limit, $break=\".\", $pad=\"...\")\n{\n // return with no change if string is shorter than $limit\n if(strlen($string) <= $limit) return $string;\n\n // is $break present between $limit and the end of the string?\n if(false !== ($breakpoint = strpos($string, $break, $limit))) {\n if($breakpoint < strlen($string) - 1) {\n $string = substr($string, 0, $breakpoint) . $pad;\n }\n }\n\n return $string;\n}", "public function getFunctionName()\n {\n return 'SUBSTRING';\n }", "function spip_substr_manuelle($c, $start, $length = NULL) {\n\n\t// Cas pathologique\n\tif ($length === 0)\n\t\treturn '';\n\n\t// S'il y a un demarrage, on se positionne\n\tif ($start > 0)\n\t\t$c = substr($c, strlen(spip_substr_manuelle($c, 0, $start)));\n\telseif ($start < 0)\n\t\treturn spip_substr_manuelle($c, spip_strlen($c)+$start, $length);\n\n\tif (!$length)\n\t\treturn $c;\n\n\tif ($length > 0) {\n\t\t// on prend n fois la longueur desiree, pour etre surs d'avoir tout\n\t\t// (un caractere utf-8 prenant au maximum n bytes)\n\t\t$n = 0; while (preg_match(',[\\x80-\\xBF]{'.(++$n).'},', $c));\n\t\t$c = substr($c, 0, $n*$length);\n\t\t// puis, tant qu'on est trop long, on coupe...\n\t\twhile (($l = spip_strlen($c)) > $length)\n\t\t\t$c = substr($c, 0, $length - $l);\n\t\treturn $c;\n\t}\n\n\t// $length < 0\n\treturn spip_substr_manuelle($c, 0, spip_strlen($c)+$length);\n}", "function substr($str, $start, $length = NULL, $encoding = 'UTF-8') {\n if (function_exists('mb_substr'))\n return mb_substr($str, $start, $length, $encoding);\n else\n return substr($str, $start, $length);\n}", "private function truncate($string, $length, $dots = \"_\") {\n return (strlen($string) > $length) ? substr($string, 0, $length - strlen($dots)) . $dots : $string;\n }", "function limitar($sString, $iLimite) {\n\n if ( strlen($sString) > $iLimite ) {\n $sString = mb_substr($sString, 0, $iLimite - 3) . '...';\n } else {\n $sString = mb_substr($sString, 0, $iLimite);\n }\n\n return $sString;\n}", "function getInnerSubstring($string,$delim)\r\r\n{\r\r\n $string = explode($delim, $string, 3); // also, we only need 2 items at most\r\r\n // we check whether the 2nd is set and return it, otherwise we return an empty string\r\r\n return isset($string[1]) ? $string[1] : '';\r\r\n}", "function print_content_char_limit($content,$char_limit , $end_string){\n echo substr($content, 0,$char_limit).$end_string;\n}", "function truncate($string, $limit, $break=\".\", $pad=\"...\") {\n // return with no change if string is shorter than $limit\n if(strlen($string) <= $limit) return $string;\n // is $break present between $limit and the end of the string?\n if(false !== ($breakpoint = strpos($string, $break, $limit))) { if($breakpoint < strlen($string) - 1) { $string = substr($string, 0, $breakpoint) . $pad; } } return $string;\n}", "function myTruncate2($string, $limit, $break=\" \", $pad=\"...\") {\n\nif(strlen($string) <= $limit) \n\nreturn $string; \n\n$string = substr($string, 0, $limit); \n\nif(false !== ($breakpoint = strrpos($string, $break))) \n\n{ \n\n$string = substr($string, 0, $breakpoint); \n\n} \n\nreturn $string . $pad; \n\n}", "function stripFormat($urlPart){\n\t\t$posOfDot=strpos($urlPart,\".\");\n\t\tif($posOfDot===FALSE)\n\t\t\treturn $urlPart;\n\t\telse{\n\t\t\treturn substr($urlPart,0,$posOfDot);\n\t\t}\n\t}", "private function stuffDots($data)\n {\n return str_replace(\"\\r\\n.\", \"\\r\\n..\", $data);\n }", "function stringTruncation2($string, $limit, $pad)\n{\n if(strlen($string) <= $limit)\n { return $string;\n }\n else \n { $string = substr($string, 0, $limit - 3);\n return $string . $pad;\n }\n}", "function myTruncate($string, $limit=80, $break=\".\", $pad=\"...\")\n{\n if(strlen($string) <= $limit) return $string;\n\n // is $break present between $limit and the end of the string?\n if(false !== ($breakpoint = strpos($string, $break, $limit))) {\n if($breakpoint < strlen($string) - 1) {\n $string = substr($string, 0, $breakpoint) . $pad;\n }\n }\n \n return restoreTags($string);\n}", "function getSubString($string, $length=NULL){\n if ($length == NULL)\n $length = 50;\n //Primero eliminamos las etiquetas html y luego cortamos el string\n $stringDisplay = substr(strip_tags($string), 0, $length);\n //Si el texto es mayor que la longitud se agrega puntos suspensivos\n if (strlen(strip_tags($string)) > $length)\n $stringDisplay .= ' ...';\n return $stringDisplay;\n}", "function substrGB($string, $start = 0,$length = 30){\r\n\t\tif (strlen($string) > $length){ \r\n\t\t\tfor($i=0; $i < $length; $i++){\r\n\t\t\t\tif (ord($string[$i]) > 128){\r\n\t\t\t\t\t$i++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t$string = substr($string,$start,$i); \r\n\t\t} \r\n\t\treturn $string; \r\n\t}", "function stringTruncation($string, $limit, $break, $pad)\n{\n if(strlen($string) <= $limit) return $string;\n $string = substr($string, 0, $limit);\n if(false !== ($breakpoint = strrpos($string, $break)))\n { $string = substr($string, 0, $breakpoint);\n }\n return $string . $pad;\n}", "function testTruncate3 ()\n\t{\n\t\t\t$input = \"Barry is a programmer\";\n\t\t\t$expectedOutput = \"Barry is a programmer\";\n\t\t\t$this->assertEqual (\n\t\t\t\t\t$this->stringUtils->truncate ($input, 100),\n\t\t\t\t\t$expectedOutput\n\t\t\t);\n\t}", "function set_titik($param){\r\n\t$paramA = (string) $param;\r\n\t$explode_ = explode(\".\", $paramA);\r\n\t$jumlah = strlen($explode_[0]);\r\n\t$result = \"\";\r\n\twhile(true){\r\n\t\tif($jumlah > 3){\r\n\t\t\t$jumlah = $jumlah - 3;\r\n\t\t\t$result = \",\" . substr($explode_[0], $jumlah, 3) . $result;\r\n\t\t} else {\r\n\t\t\t$result = substr($explode_[0], 0, $jumlah) . $result;\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}\r\n\treturn $result . (isset($explode_[1]) && $explode_[1] != \"\" ? \".\" . $explode_[1] : \"\");\r\n}", "function d2d_substr_public_key($key, $N = -10) {\n\t$key = d2d_clean_public_key($key);\n\n\tif ($N < 0) {\n\t\treturn mb_substr($key, mb_strlen($key) + $N);\n\t}\n\telse {\n\t\treturn mb_substr($key, 0, $N);\n\t}\n\t\n}", "function string_cut_string($str, $length)\r\n\t{\r\n\t\t$str = strip_tags($str);\r\n\t\t/*\r\n\t\tif(strpos($str, \" \") === false) {\r\n\t\t\t$str = wordwrap($str, 25, \"<br />\\n\", true);\r\n\t\t}\r\n\t\t*/\r\n\t\tif (strlen($str) > $length)\r\n\t\t{\r\n\t\t\t$str = substr($str, 0, $length);\r\n\t\t\t$last_space = strrpos($str, \" \");\r\n\t\t\t$str = substr($str, 0, $last_space).\"...\";\r\n\t\t} \r\n\r\n\t\treturn $str;\r\n\t}", "function string_shorten( $p_string ) {\r\n\t$t_max = config_get( 'max_dropdown_length' );\r\n\tif ( ( tlStrLen($p_string ) > $t_max ) && ( $t_max > 0 ) ){\r\n\t\t$t_pattern = '/([\\s|.|,|\\-|_|\\/|\\?]+)/';\r\n\t\t$t_bits = preg_split( $t_pattern, $p_string, -1, PREG_SPLIT_DELIM_CAPTURE );\r\n\r\n\t\t$t_string = '';\r\n\t\t$t_last = $t_bits[ count( $t_bits ) - 1 ];\r\n\t\t$t_last_len = tlStrLen( $t_last );\r\n\r\n\t\tforeach ( $t_bits as $t_bit ) {\r\n\t\t\tif ( ( tlStrLen( $t_string ) + tlStrLen( $t_bit ) + $t_last_len + 3 <= $t_max )\r\n\t\t\t\t|| ( strpos( $t_bit, '.,-/?' ) > 0 ) ) {\r\n\t\t\t\t$t_string .= $t_bit;\r\n\t\t\t} else {\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\t$t_string .= '...' . $t_last;\r\n\t\treturn $t_string;\r\n\t} else {\r\n\t\treturn $p_string;\r\n\t}\r\n}", "public static function getSubString($string, $length=NULL)\n{\n if ($length == NULL)\n $length = 50;\n //Primero eliminamos las etiquetas html y luego cortamos el string\n $stringDisplay = substr(strip_tags($string), 0, $length);\n //Si el texto es mayor que la longitud se agrega puntos suspensivos\n if (strlen(strip_tags($string)) > $length)\n $stringDisplay .= ' ...';\n return $stringDisplay;\n}", "function\n\ttrimOption($option, $maxlength)\n\t{\n\t\t$option = substr($option, 0, $maxlength - 3);\n\t\t$option = preg_replace('/\\w*$/', '...', $option, 1);\n\t\treturn($option);\n\t}", "function trim_characters ($text, $start, $length) {\n\t// Pass it a string, a numeric start position and a numeric length.\n\t// If the start position is > 0, the string will be trimmed to start at the\n\t// nearest word boundary after (or at) that position.\n\t// If the string is then longer than $length, it will be trimmed to the nearest\n\t// word boundary below (or at) that length.\n\t// If either end is trimmed, ellipses will be added.\n\t// The modified string is then returned - its *maximum* length is $length.\n\t// HTML is always stripped (must be for trimming to prevent broken tags).\n\n\t$text = strip_tags($text);\n\n\t// Trim start.\n\tif ($start > 0) {\n\t\t$text = substr($text, $start);\n\t\t\n\t\t// Word boundary. \n\t\tif (preg_match (\"/.+?\\b(.*)/\", $text, $matches)) {\n\t\t\t$text = $matches[1];\n\t\t\t// Strip spare space at the start.\n\t\t\t$text = preg_replace (\"/^\\s/\", '', $text);\n\t\t}\n\t\t$text = '...' . $text;\n\t}\n\t\n\t// Trim end.\n\tif (strlen($text) > $length) {\n\n\t\t// Allow space for ellipsis.\n\t\t$text = substr($text, 0, $length - 3); \n\n\t\t// Word boundary. \n\t\tif (preg_match (\"/(.*)\\b.+/\", $text, $matches)) {\n\t\t\t$text = $matches[1];\n\t\t\t// Strip spare space at the end.\n\t\t\t$text = preg_replace (\"/\\s$/\", '', $text);\n\t\t}\n\t\t// We don't want to use the HTML entity for an ellipsis (&#8230;), because then \n\t\t// it screws up when we subsequently use htmlentities() to print the returned\n\t\t// string!\n\t\t$text .= '...'; \n\t}\n\t\n\treturn $text;\n}", "function strcut_utf8($str, $len, $checkmb=false, $tail='') {\n\tpreg_match_all('/[\\xE0-\\xFF][\\x80-\\xFF]{2}|./', $str, $match); // target for BMP\n\t$m = $match[0];\n\t$slen = strlen($str); // length of source string\n\t$tlen = strlen($tail); // length of tail string\n\t$mlen = count($m); // length of matched characters\n\tif ($slen <= $len) return $str;\n\tif (!$checkmb && $mlen <= $len) return $str;\n\t$ret = array();\n\t$count = 0;\n\tfor ($i=0; $i<$len; $i++) {\n\t\t$count += ($checkmb && strlen($m[$i]) > 1)?2:1;\n\t\tif ($count + $tlen > $len) break;\n\t\t$ret[] = $m[$i];\n\t}\n\t$result = join('', $ret).$tail;\n\treturn ($result == $str) ? $result : $result.'..';\n}", "function maskString($s, $start=1, $end=null, $char = '*') {\n $start = $start - 1;\n\n $array = str_split($s);\n\n $end = strlen($s) < $end ? strlen($s) : $end ? : strlen($s);\n\n for ($start; $start < $end; $start++) {\n $array[$start] = $char;\n }\n return join('',$array);\n }", "function get_substr($string, $length) {\n\n\tif ( strlen($string) > $length ) {\n\t\treturn $string = trim(substr($string, 0, $length)) . '&hellip;';\n\t}\n\n\treturn $string;\n\n}", "function substr_sentence($string, $start=0, $limit=10, $max_char = 600)\n {\n \n // list of sentences-ends. All sentences ends with one of these. For PHP, add the ;\n $end_characters = array(\n '.', \n '?',\n '!'\n );\n \n // put $string in array $parts, necessary evil\n $parts = array($string); \n \n // foreach interpunctation-mark we will do this loop\n foreach($end_characters as $end_character)\n {\n // go thru each part of the sentences we already have\n foreach($parts as $part)\n {\n // make array with the new sentences\n $sentences[] = explode($end_character, $part);\n }\n \n // unfortunately explode() removes the end character itself. So, place it back\n foreach($sentences as $sentence)\n {\n // some strange stuff\n foreach($sentence as $real_sentence)\n {\n // empty sentence we do not want\n if($real_sentence != '')\n {\n // if there is already an end-character, dont place another one\n if(in_array(substr($real_sentence, -1, 1), $end_characters))\n {\n // store for next round\n $next[] = trim($real_sentence); \n }\n else\n {\n // store for next round and add the removed character\n $next[] = trim($real_sentence).$end_character; \n }\n }\n }\n }\n \n // store for next round\n $parts = $next;\n \n // unset the remaining and useless stuff\n unset($sentences, $sentence, $next);\n } \n\n\t// check for max-char-length\n\t$total_chars = 0;\n\t$sentence_nr = 0;\n\t$sentences = array();\n\t\n\t// walk thru each member of $part\n\tforeach($parts as $part)\n\t\t{\n\t\t// count the string-lenght and add this to $total_chars\n\t\t$total_chars += strlen($part);\n\t\t\n\t\t// if $total-chars not already higher then max-char, add this sentences!\n\t\tif($total_chars < $max_char)\n\t\t\t{\n\t\t\t$sentences[] = $part;\n\t\t\t}\n\t\t}\n\n // return the shortened story as a string\n return implode(\" \", array_slice($sentences, $start, $limit));\n }", "function getSlice(int $start, int $end): string\n {\n if ($start === $end || $start < 0 || $end < 0) {\n return '';\n }\n\n if ($start < $end) {\n return (string) substr($this->html, $start, $end - $start);\n } else {\n return (string) substr($this->html, $end, $start - $end);\n }\n }", "function cjpopups_trim_text($str, $cut = 200, $after_trim = ''){\n $str_length = strlen($str);\n if($str_length > $cut){\n \treturn substr($str, 0, $cut). $after_trim;\n }else{\n \treturn $str;\n }\n}", "function TagliaStringa($stringa, $max_char){\n\t\tif(strlen($stringa)>$max_char){\n\t\t\t$stringa_tagliata=substr($stringa, 0,$max_char);\n\t\t\t$last_space=strrpos($stringa_tagliata,\" \");\n\t\t\t$stringa_ok=substr($stringa_tagliata, 0,$last_space);\n\t\t\treturn $stringa_ok.\"...\"; //aggiunge 3 puntini di sospensione alla fine della stringa tagliata\n\t\t}else{\n\t\t\treturn $stringa;\n\t\t}\n\t}", "function findName($part) {\n\t\t$name_cut = explode(\" \", $part, 2)[0];\n\t\t$name_cut = explode(\">\", $name_cut, 2)[0];\n\t\t$name_cut = explode(\"\\n\", $name_cut, 2)[0];\n\t\t$name_cut = preg_replace('/\\s+/', '', $name_cut);\n\t\t$name_cut = strtolower(str_replace('/', '', $name_cut));\n\t\treturn $name_cut;\n\t}", "function tronquer_texte($texte, $longeur_max)\n{\n if (strlen($texte) > $longeur_max)\n {\n $texte = substr($texte, 0, $longeur_max);\n $dernier_espace = strrpos($texte, \"\");\n $texte = substr($texte, 0, $dernier_espace).\"...\";\n }\n return $texte;\n}", "public static function substr( $str, $start = 0, $length = false ) {\n\t\t$start = (int) $start;\n\t\t$length = (int) $length;\n\t\t$total = self::len( $str );\n\n\t\tif ( ! $length ) {\n\t\t\t$length = $total;\n\t\t}\n\t\t$max_len = $total - $start;\n\t\tif ( $length > $max_len ) {\n\t\t\t$length = $max_len;\n\t\t}\n\n\t\treturn $start\n\t\t\t? preg_replace( '/^.{' . $start . '}(.{' . $length . '}).*$/mu', '\\1', $str )\n\t\t\t: preg_replace( '/^(.{' . $length . '}).*$/mu', '\\1', $str );\n\t}", "function testTruncate4 ()\n\t{\n\t\t\t$input = \"Barry is a programmer\";\n\t\t\t$expectedOutput = \"Barry is a programmer\";\n\t\t\t$this->assertEqual (\n\t\t\t\t\t$this->stringUtils->truncate ($input, 21, ''),\n\t\t\t\t\t$expectedOutput\n\t\t\t);\n\t}", "function ajoutpoint($text) // good\r\n {\r\n if(!preg_match_all('#[.?!]#', $text))\r\n {\r\n $text=$text.' . ';\r\n echo ucfirst($text);\r\n }\r\n else{ echo ucfirst($text);}\r\n // return $text;\r\n }", "function str_cut ($str, $size) {\n\t// is the string already short enough?\n\t// we count '…' for 1 extra chars.\n\tif( strlen($str) <= $size+1 ) {\n\t\treturn $str;\n\t}\n\n\treturn substr($str, 0, $size) . '…';\n}", "function getSubString($string, $length=NULL) {\n if ($length == NULL)\n $length = 45;\n //Primero eliminamos las etiquetas html y luego cortamos el string\n $stringDisplay = substr(strip_tags($string), 0, $length);\n //Si el texto es mayor que la longitud se agrega puntos suspensivos\n if (strlen(strip_tags($string)) > $length)\n $stringDisplay .= ' ...';\n return $stringDisplay;\n }", "public function substrwords()\n {\n $longString = \"In this talk, we will show how to leverage InfluxDB to implement some solutions to tackle on the issues of time series forecasting at scale, including continuous accuracy evaluation and algorithm hyperparameters optimization.\";\n // echo strlen($longString);\n if (strlen($longString) > 160) {\n\n $this->truncated = substr($longString, 0, strpos(wordwrap($longString, 160), \"\\n\"));\n\n $this->truncated .= $this->end;\n echo $this->truncated;\n echo \"\\n\";\n\n $nd = $this->truncated = substr($longString, strpos(wordwrap($longString, 160), \"\\n\"));\n\n echo $this->end . $nd;\n\n #################\n # evans\n // $w = urldecode($MESSAGE);// remove special Characters\n // echo strlen($w);\n // $chars = 157;\n // while($w){\n // if (strlen($w) > $chars) {\n\n // // $chars += $chars; \n \n // $TruncMESSAGE = substr($w, 0, strpos($w, ' ', $chars)) . '...';// truncate from position 0-157\n // // $TruncMES = '...' . substr($w, strpos($w, ' ', 157));// truncate from position 157-...\n \n // $mes = array($TruncMESSAGE); // array with cut messages\n // foreach ($mes as $key) {\n // $encoded = urlencode($key);\n // $smsUrl = $emgUrl . \"&SOURCEADDR=\" . $SOURCEADDR . \"&DESTADDR=\" . $DESTADDR . \"&MESSAGE=\" . $encoded . \"&DLR=\" . $DLR . \"&USERNAME=\" . $smsuser . \"&PASSWORD=\" . $smspassword;\n // $smsResults = join('', file($smsUrl)); \n // echo $smsUrl; \n // echo \"\\n\"; \n \n // }\n \n // } else {\n \n // $smsUrl = $emgUrl . \"&SOURCEADDR=\" . $SOURCEADDR . \"&DESTADDR=\" . $DESTADDR . \"&MESSAGE=\" . $MESSAGE . \"&DLR=\" . $DLR . \"&USERNAME=\" . $smsuser . \"&PASSWORD=\" . $smspassword;\n \n // }\n #evans#\n #################################3\n }\n\n return $this->truncated;\n }", "function subs($s,$s1,$s2,$s3){\n$ss='';\n$i1=0;$i2=0;$i3=0;\nfor ($i=0;$i<strlen($s);$i++)\n switch($s[$i]){\n case '@':\n if ($i1>=strlen($s1)) continue; \n $ss=$ss.$s1[$i1];$i1++;\n break;\n case '#':\n if ($i2>=strlen($s2)) continue; \n $ss=$ss.$s2[$i2];$i2++;\n break;\n case '$':\n if ($i3>=strlen($s3)) continue;\n $ss=$ss.$s3[$i3];$i3++;\n break;\n default: $ss=$ss.$s[$i];\n }\nreturn $ss;\n}", "public static function limitString($string,$length,$addDots = false){\r\n\t\t$dots = \"...\";\r\n\r\n\t\tif(strlen($string) > $length)\r\n\t\t\t$string = substr($string,0,($addDots ? $length-strlen($dots) : $length)) . ($addDots ? $dots : \"\");\r\n\r\n\t\treturn $string;\r\n\t}", "function shortText($text, $chars =150){\n $text = $text.\" \";\n $text = substr($text,0,$chars);\n $text = substr($text,0,strrpos($text,' '));\n return $text;\n}", "function getBetween($var1=\"\",$var2=\"\",$pool){\n\t$temp1 = strpos($pool,$var1)+strlen($var1);\n\t$result = substr($pool,$temp1,strlen($pool));\n\t$dd=strpos($result,$var2);\n\tif($dd == 0){\n\t$dd = strlen($result);\n\t}\n\treturn substr($result,0,$dd);\n\t}" ]
[ "0.6360813", "0.619809", "0.6112215", "0.6041236", "0.59186566", "0.5852725", "0.58027583", "0.5796753", "0.57947135", "0.5760711", "0.5725019", "0.5721533", "0.566768", "0.5657844", "0.5640517", "0.5632441", "0.5625605", "0.5605497", "0.5597967", "0.5574261", "0.5573187", "0.55722237", "0.55705667", "0.5568932", "0.5539464", "0.5537152", "0.5521444", "0.55134463", "0.5502025", "0.54842484", "0.5469205", "0.5444555", "0.54444295", "0.54348123", "0.54245365", "0.5423653", "0.5360415", "0.53505874", "0.53465503", "0.53417546", "0.5331291", "0.5294665", "0.5292555", "0.5287907", "0.5281923", "0.5280955", "0.5280955", "0.5273784", "0.52587414", "0.52505076", "0.5232009", "0.52162117", "0.5215444", "0.5205472", "0.5190258", "0.51809305", "0.5177776", "0.5169438", "0.5165879", "0.51654977", "0.51434636", "0.5142379", "0.51302683", "0.51247096", "0.5123611", "0.51232857", "0.5101667", "0.50999624", "0.50926083", "0.50906473", "0.50876653", "0.50799537", "0.50691247", "0.50662255", "0.5058565", "0.50557214", "0.5047819", "0.50393957", "0.5034825", "0.50312436", "0.50300294", "0.502777", "0.5019829", "0.5015976", "0.5014844", "0.5009903", "0.5008881", "0.49951428", "0.49704474", "0.49440828", "0.49374384", "0.49351716", "0.49335638", "0.493269", "0.49318025", "0.49296227", "0.49289954", "0.49260205", "0.49226186", "0.49218658" ]
0.6567452
0
Debug functions start from here
function bb_shutdown() { echo '<div style="color:#fff;position:fixed;bottom:20px;left:0px; background-color:#000;">'.$time = microtime(true) - $_SERVER["REQUEST_TIME_FLOAT"].'</div>'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function debug();", "public function debug();", "public function __debugInfo()\n {}", "public function enableDebug();", "public function enableDebug() {}", "public static function debugTrail() {}", "public function getDebug();", "public static function debug_data()\n {\n }", "public function enableDebugMode() {}", "public function isDebug();", "public function isDebug();", "function debugOn()\n\t{\n\t\t$this->bDebug = true;\n\t}", "function debug() {\r\n//\tif (!$debug_mode) {\r\n//\t\treturn;\r\n//\t}\r\n\techo '<pre>';\r\n\tforeach (func_get_args() as $var) {\r\n\t\t$psfix = str_repeat('-', 40);\r\n\t echo \"<span style='font-size: 18px; color:blue;'>\".\r\n\t \"debug: $psfix I were newbility line separator $psfix\".\r\n\t \"</span>\\n\";\r\n\t echo(var_dump($var));\r\n\t}\r\n echo '</pre>';\r\n}", "public function isDebug()\n {\n }", "private function dbug() {\n if (!isset($doc_root)) {\n $doc_root = str_replace('\\\\', '/', $_SERVER['DOCUMENT_ROOT']);\n }\n $back = debug_backtrace();\n // you may want not to htmlspecialchars here\n $line = htmlspecialchars($back[0]['line']);\n $file = htmlspecialchars(str_replace(array('\\\\', $doc_root), array('/', ''), $back[0]['file']));\n\n $k = ($back[1]['class'] == 'SQL') ? 3 : 1;\n\n $class = !empty($back[$k]['class']) ? htmlspecialchars($back[$k]['class']) . '::' : '';\n $function = !empty($back[$k]['function']) ? htmlspecialchars($back[$k]['function']) . '() ' : '';\n $args = (count($back[0]['args'] > 0)) ? $back[0]['args'] : $back[0]['object'];\n $args = (count($args) == 1 && $args[0] != '') ? $args[0] : $args;\n\n print '<div style=\"background-color:#eee; width:100%; font-size:11px; font-family: Courier, monospace;\" class=\"myDebug\"><div style=\" font-size:12px; padding:3px; background-color:#ccc\">';\n print \"<b>$class$function =&gt;$file #$line</b></div>\";\n print '<div style=\"padding:5px;\">';\n if (is_array($args) || is_object($args)) {\n print '<pre>';\n print_r($args);\n print '</pre></div>';\n } else {\n print $args . '</div>';\n }\n print '</div>';\n }", "public static function debug() : bool\n {\n }", "public function hookDebug()\n\t{\n\t\treturn print_r($this, 1);\n\t}", "public function get_debug_flag()\n {\n }", "function Debug($debug, $msg = \"Debugging\"){\n\tif(ENV == PRODUCTION && (!isset($_GET['debug'])) ){\n\t\treturn;\n\t}\n\n\techo '<pre class=\"debug\">';\n\techo '<h2>'.$msg.'</h2>';\n\tprint_r($debug);\n\techo '</pre>';\n}", "function emdebug($income_details = null, $debug_type = null){\n\tmdebug($income_details, $debug_type);\n\texit;\n}", "function debug() {\n if (!APP_IN_DEVELOPER_MODE)\n return;\n $args = func_get_args();\n ob_start();\n if (count($args) > 1) {\n echo var_dump($args);\n } else if (count($args) == 1) {\n echo var_dump(reset($args));\n }\n $message = ob_get_contents();\n ob_end_clean();\n trigger_error(\"debug() triggered with the following data:\\n\\n$message\", \\E_USER_WARNING);\n}", "function debugger(){\n $debug = 1;\n if($debug === 1) {\n header(\"Content-Type: text/html; charset=utf-8\");\n error_reporting(E_ALL);\n ini_set('display_errors', 1);\n }else{\n error_reporting( 0 );\n }\n}", "public function debugInfo() {\r\n saprfc_function_debug_info($this->fce);\r\n }", "function debug($message);", "function d() {\n $variables = func_get_args();\n $trace = debug_backtrace(null, 1);\n \\Yii::$app->logger->debugInternal($variables, $trace);\n }", "function _dbg($value)\n{\n echo \"<pre>[DBG]: \";\n print_r($value);\n echo \"</pre>\";\n}", "public function debug(){\n echo\"<pre><code>\";\n var_dump($this);\n echo \"</code></pre>\";\n }", "function dev_debug_display( $thing ) {\n\techo '<pre>';\n\tprint_r( $thing );\n\techo '</pre>';\n}", "public function disableDebug() {}", "public static function debug( $data )\n {\n }", "function debug(){\n\t\t$this->pwd=\"\";\n\t\t$this->usuario=\"\";\n\t\t$this->servidor=\"\";\n\t\techo \"<pre>\";\n\t\tprint_r($this);\n\t\techo \"</pre>\";\n\t}", "function debug($str){\r\n\t\tif (DEVELOPMENT_ENVIRONMENT){\r\n\t\t\t$trace = debug_backtrace();\r\n\t\t\t// warning(print_r($trace,true));\r\n\t\t\t$file = $trace[0]['file'];\r\n\t\t\t$file = str_replace($_SERVER['DOCUMENT_ROOT'],'',$file);\r\n\t\t\t$line = $trace[0]['line'];\r\n\t\t\tif (isset($trace[1]['object'])){\r\n\t\t\t\t$object = $trace[1]['object'];\r\n\t\t\t\tif (is_object($object)) { $object = get_class($object); }\r\n\t\t\t}else{\r\n\t\t\t\t$object = \"View\";\r\n\t\t\t}\r\n\t\t\t// echo style();\r\n\t\t\t// echo \"<pre class='debug'><strong>DEBUG:</strong> In <strong>$object</strong> -> Line <strong>$line</strong>\\n(file <strong>$file</strong>)\";\r\n\t\t\t// echo \"<pre class='debug' style='font-size: 80%'>\";\r\n\t\t\t// print_r($str);\r\n\t\t\t// echo \"</pre></pre>\";\r\n\t\t\t$GLOBALS['_debug'][$object][$file][$line] = print_r($str,true); \r\n\t\t}\r\n\t}", "public function debug()\n {\n // Get the request paramaters\n $request = Zend_Controller_Front::getInstance()->getRequest()->getParams();\n\n // Create the string variable\n $string = <<<HTML\n <div id=\"debugArea\">\n <b>Debug Area</b>\n <hr />\nHTML;\n\n // Run the isfacebook method\n $string .= self::_isFacebook();\n\n // Run the isTodo method\n $string .= '<b>Todo</b>';\n $string .= self::_isTodo();\n\n // Output the Request Paramaters\n $string .= '<b>Paramaters</b><br />';\n $string .= Zend_Debug::dump($request, '<b>All Params</b>', false);\n $string .= Zend_Debug::dump($_REQUEST, '<b>Request Paramaters</b>', false);\n\n // Get the Auth Instance\n $auth = Zend_Auth::getInstance();\n\n // Check if this user is logged in\n if ($auth->hasIdentity()) {\n $string .= Zend_Debug::dump($auth->getIdentity(), '<b>Zend Auth</b>', false);\n }\n\n // If Files is not empty then output these\n if (!empty($_FILES)) {\n $string .= Zend_Debug::dump($_FILES, '<b>Files</b>', false);\n }\n\n // End the DIV\n $string .= '</div>';\n\n return $string;\n }", "protected function _debug()\n {\n $file = self::DEFAULT_LOG_FILE;\n Mage::getModel('core/log_adapter', $file)->log($this->_debugData);\n }", "public function enableDebug() : void\n {\n $this->debug = TRUE;\n }", "function e107_db_debug() {\n\t\tglobal $eTimingStart;\n\n\t\t$this->aTimeMarks[0]=array(\n\t\t'Index' => 0,\n\t\t'What' => 'Start',\n\t\t'%Time' => 0,\n\t\t'%DB Time' => 0,\n\t\t'%DB Count' => 0,\n\t\t'Time' => ($eTimingStart),\n\t\t'DB Time' => 0,\n\t\t'DB Count' => 0\n\t\t);\n\t\t\n\t\tregister_shutdown_function('e107_debug_shutdown');\n\t}", "public function debugDumpParams()\n {\n }", "public function debug(): void\n {\n echo \"CLIENT : \" . PHP_EOL;\n echo \"=========\" . PHP_EOL;\n echo \"URL : \" . $this->getUrl(). PHP_EOL;\n echo \"METHOD : \" . $this->method. PHP_EOL;\n echo \"SPA ID : \" . $this->spaceId. PHP_EOL;\n echo \"ACCEPT : \" . $this->acceptContentType. PHP_EOL;\n echo \"C TYPE : \" . $this->contentType . PHP_EOL;\n echo \"API : \" . $this->apiType. PHP_EOL;\n echo \"TOKEN : \" . $this->c->getCredentials()->getAccessToken(). PHP_EOL;\n echo \"GEOJSON: \" . $this->geojsonFile. PHP_EOL;\n var_dump($this->requestBody);\n echo \"=========\" . PHP_EOL;\n }", "function testDebugHighlander() {\n if (is_callable(array('Debug', '__construct'))) {\n $this->fail();\n }\n if (is_callable(array('Debug', '__clone'))) {\n $this->fail();\n }\n $this->pass();\n }", "protected function send_debug_email()\n {\n }", "function debug($msg) {\n echo '<p><b>' . $msg . \"</b></p>\\n\";\n}", "function app_debug($value, bool $die = null)\n{\n echo \"<pre>\";\n print_r($value);\n echo \"</pre>\";\n\n if ($die === true) die('<strong> End of debug </strong>');\n\n}", "function dbg ($x)\r\n{\r\n print_r ($x);\r\n exit;\r\n}", "public function EnableDebug()\n {\n $this->_debug = true;\n return;\n }", "function cg_debug() {\n\t# only run debug on localhost\n\tif ($_SERVER[\"HTTP_HOST\"]==\"localhost\" && defined('EPS_DEBUG') && EPS_DEBUG==true) return true;\n}", "public function debug(){\n $debug = [\n 'ID' => $this->ID,\n 'slug' => $this->slug,\n 'options' => $this->options,\n 'items' => $this->items,\n ];\n \"<pre>\".var_dump($debug).\"</pre>\";\n }", "function Trace($msg)\r\n{\r\n\tglobal $debug;\r\n\tif ($debug) echo $msg;\r\n}", "public function debugDumpParams() {\n }", "public function debug($line)\n {\n }", "function debug( $data , $fim = false ){\n\techo '<pre style=\"display: block; text-align:left;\">';\n\tvar_dump($data);\n\techo '</pre>';\n\n\tif ($fim){\n\t\tdie();\n\t}\n}", "public function d() {\n // data we are going to log\n $variables = func_get_args();\n $trace = debug_backtrace(null, 1);\n\n $this->debugInternal($variables, $trace);\n }", "public function debug()\n {\n echo '<h3>Request Object</h3>';\n echo '<pre>';\n var_dump($this->request);\n echo '</pre>';\n\n echo '<hr/>';\n\n echo '<h3>Request XML</h3>';\n echo '<textarea class=\"widefat\" rows=\"10\">';\n echo htmlentities( $this->service->__getLastRequest() );\n echo '</textarea>';\n\n echo '<hr/>'; \n\n echo '<h3>Response Object</h3>';\n echo '<pre>';\n var_dump($this->response);\n echo '</pre>';\n\n echo '<hr/>';\n\n echo '<h3>Response XML</h3>';\n echo '<textarea class=\"widefat\" rows=\"10\">';\n echo htmlentities( $this->service->__getLastResponse() );\n echo '</textarea>';\n }", "function _debug($message) {\n if ($debug = TRUE) {\n _log($message);\n } \n}", "function print_debugger()\n\t{\n\t\t$output = str_replace(\"\\n\", \"<br/>\\n\", $this->debugger);\n\t\techo $output;\t\n\t}", "public function disableDebug();", "public function debug($message) {}", "public static function debug()\r\n {\r\n if (func_num_args() === 0)\r\n return;\r\n\r\n // Get all passed variables\r\n $variables = func_get_args();\r\n\r\n $output = array();\r\n foreach ($variables as $var)\r\n {\r\n $output[] = Core::_dump($var, 1024);\r\n }\r\n\r\n echo '<pre class=\"debug\">'.implode(\"\\n\", $output).'</pre>';\r\n }", "function debugMsg($msg)\n {\n echo \"DEBUG MESSAGE: {$msg}<br>\\n\";\n }", "private function debug($msg = '')\n\t{\n\t\t$this->debugger .= $msg.\"<br/>\\n\";\t\n\t}", "public function dprint()\n\t{\n\t\tprint_r( $this->debug );\n\t}", "public function getDebugInfo()\n {\n // TODO: Implement getDebugInfo() method.\n }", "static function debug() {\n\t\tif ( $autoload ) {\n\t\t\techo 'Warning the scripts are auto loaded';\n\t\t}\n\t}", "function emDebug() {\n if ($this->getSystemSetting('enable-system-debug-logging') || ( !empty($_GET['pid']) && $this->getProjectSetting('enable-project-debug-logging'))) {\n $emLogger = \\ExternalModules\\ExternalModules::getModuleInstance('em_logger');\n $emLogger->emLog($this->PREFIX, func_get_args(), \"DEBUG\");\n }\n }", "public function debugAction() : string\n {\n // Deal with the action and return a response.\n //return __METHOD__ . \", \\$db is {$this->db}\";\n return \"Debug my database!!\";\n }", "public static function debug() {\n $args = func_get_args();\n self::log(count($args) === 1 ? current($args) : $args);\n }", "function turnOnDebugMode()\n {\n $this->debugmode = true;\n }", "protected function debug($sql){\n\t\tif($this->debug){\n\t\t\tFlash::notice($sql);\n\t\t}\t\n\t}", "function Debug($level = E_ALL) {\n error_reporting($level);\n ini_set(\"display_errors\", true);\n}", "private function debug($msg) {\r\n if ($this->debug) {\r\n echo '[debug] ' . $msg . '<br>';\r\n }\r\n }", "function Debug($bug){\n\tMagratheaDebugger::Instance()->Add($bug);\n}", "function debug($data, $die=true)\n{\n if (DEVELOPMENT_ENVIRONMENT)\n {\n if (is_array($data))\n {\n print_r($data);\n } else\n {\n echo $data;\n }\n\n if ($die)\n {\n die();\n }\n }\n}", "function setDebug(){\n if(isset($_GET['debug']) && $_GET['debug']==\"true\"){\n return true;\n }\n return false;\n }", "public function debug($var){\n\t\t////$this->core->log($var);\n\t}", "function _debug() {\n $nl = \"\\n\";\n $header = implode($nl, $this->__header);\n $message = implode($nl, $this->__message);\n $fm = $nl;\n\n if ($this->delivery == 'smtp') {\n $fm .= sprintf('%s %s%s', 'Host:', $this->smtpOptions['host'], $nl);\n $fm .= sprintf('%s %s%s', 'Port:', $this->smtpOptions['port'], $nl);\n $fm .= sprintf('%s %s%s', 'Timeout:', $this->smtpOptions['timeout'], $nl);\n }\n $fm .= sprintf('%s %s%s', 'To:', $this->to, $nl);\n $fm .= sprintf('%s %s%s', 'From:', $this->from, $nl);\n $fm .= sprintf('%s %s%s', 'Subject:', $this->_encode($this->subject), $nl);\n $fm .= sprintf('%s%3$s%3$s%s', 'Header:', $header, $nl);\n $fm .= sprintf('%s%3$s%3$s%s', 'Parameters:', $this->additionalParams, $nl);\n $fm .= sprintf('%s%3$s%3$s%s', 'Message:', $message, $nl);\n $fm .= $nl;\n\n $this->log($fm);\n return true;\n }", "function debug($status = array())\n {\n $this->debug = $status;\n }", "public function enableExtJsDebug() {}", "protected function debug() { \n if ($this->SHOW_ERRORS) { \n echo $this->ERROR_MSG; \n } \n if ($this->LOGGING) { \n if ($this->FILE_HANDLER) { \n fwrite($this->FILE_HANDLER,$this->ERROR_MSG); \n } else { \n return false; \n } \n } \n }", "function debug($variable, $exit = false){\r\n\r\n echo \"<pre>\";\r\n var_dump($variable);\r\n echo \"</pre>\";\r\n\r\n $backtrace = debug_backtrace();\r\n\r\n if(count($backtrace) > 1)\r\n array_shift($backtrace);\r\n\r\n foreach($backtrace as $trace){\r\n\r\n echo \"* \";\r\n\r\n if(isset($trace[\"class\"]))\r\n echo $trace[\"class\"].\"-&gt; \";\r\n\r\n if(isset($trace[\"function\"]))\r\n echo $trace[\"function\"].\" \";\r\n\r\n echo \"in \".$trace[\"file\"].\" \";\r\n echo \"on line \".$trace[\"line\"].\"<br />\";\r\n\r\n }//endforeach\r\n\r\n if($exit)\r\n exit();\r\n\r\n}", "private function action_debug(){\n\t\tvar_dump($this);\n\t}", "function debug($content=\"\",$loglevel = \"\") {\n\t// Si no esta habilitado, nada\n\tif (!$this->Debug) return;\n\t$this->log($content, $loglevel);\n//\techo \"DEBUG> $content <br>\\n\";\t \n }", "function test_debug( ) {\n\tif ( ! isset($_GET['DEBUG'])) {\n\t\treturn false;\n\t}\n\n\tif ( ! class_exists('Settings') || ! Settings::test( )) {\n\t\treturn false;\n\t}\n\n\tif ('' == trim(Settings::read('debug_pass'))) {\n\t\treturn false;\n\t}\n\n\tif (0 !== strcmp($_GET['DEBUG'], Settings::read('debug_pass'))) {\n\t\treturn false;\n\t}\n\n\t$GLOBALS['_&_DEBUG_QUERY'] = '&DEBUG='.$_GET['DEBUG'];\n\t$GLOBALS['_?_DEBUG_QUERY'] = '?DEBUG='.$_GET['DEBUG'];\n\treturn true;\n}", "public static function debug()\n {\n foreach (func_get_args() as $message) {\n if (is_null($message))\n $message = 'NULL';\n if (!is_string($message))\n $message = print_r($message, true);\n static::_log(self::DEBUG, $message);\n }\n }", "function debug( $var ) {\n print \"<pre>\";\n var_dump( $var );\n print \"</pre>\";\n }", "function debug($data) {\n global $debug_switch;\n global $output;\n \n if (!$debug_switch)\n return;\n \n if (is_array($data) || is_object($data)) {\n $output[\"debug\"][] = $data;\n } else {\n $output[\"debug\"][] = htmlspecialchars($data);\n }\n }", "public function debug($message)\n {\n }", "public function debug() {\n\t\tvar_dump(array(\n\t\t\t'config' => $this->config,\n\t\t\t'prices' => $this->prices\n\t\t));\n\t}", "function debug($var) {\n echo '<pre>'. print_r($var, 1) .'</pre>';\n}", "public function diagnose() {}", "function debug_echo($line)\n{\n}", "function humcore_http_api_debug_action() {\n\n\tif ( defined( 'CORE_HTTP_DEBUG' ) && 'true' === CORE_HTTP_DEBUG && defined( 'CORE_ERROR_LOG' ) && '' != CORE_ERROR_LOG ) {\n\t\t// Hook into the http_api_debug action and call humcore_http_api_debug when http_api_debug fires.\n\t\tadd_action( 'http_api_debug', 'humcore_http_api_debug', 1000, 5 );\n\t}\n}", "protected function edebug($str)\n {\n }", "function dbg_out()\n{\n global $ctx;\n echo('<br />CTX------------------------------------------------<br />');\n print_r($ctx);\n echo('<br />_ENV------------------------------------------------<br />');\n print_r($_ENV);\n echo('<br />_SERVER------------------------------------------------<br />');\n print_r($_SERVER);\n echo('<br />_SESSION------------------------------------------------<br />');\n print_r($_SESSION);\n echo('<br />_REQUEST------------------------------------------------<br />');\n print_r($_REQUEST);\n echo('<br />_GET------------------------------------------------<br />');\n print_r($_GET);\n echo('<br />_POST------------------------------------------------<br />');\n print_r($_POST);\n echo('<br />$_COOKIE------------------------------------------------<br />');\n print_r($_COOKIE);\n echo('<br />------------------------------------------------<br />');\n}", "function turk_debug($mt) {\n\t\techo \"<br /><br />\\n\\nRawData<br />\\n\".$mt->RawData.\"\\n\\n<br /><br />\";\n\t\techo \"<br /><br />\\n\\nSOAPData<br />\\n\".$mt->SOAPData.\"\\n\\n<br /><br />\";\n\n\t\techo $mt->Fault;\n\t\techo $mt->Error;\t\n\t}", "function ffd_debug( $var = '' , $exit=false) {\r\n\r\n\techo '<pre style=\"/*display: none;*/\">';\r\n\t\tif( is_object($var) || is_array($var) )\r\n\t\t\tprint_r($var);\r\n\t\telse \r\n\t\t\tvar_dump($var);\r\n echo '</pre>';\r\n if( $exit )\r\n die();\r\n}", "static function debug_info(){\n $di = debug_backtrace();\n $valid_caller_functions = array(\"on\",\"off\", \"alert\", \"debug\", \"error\", \"function_entry\", \"function_exit\");\n $caller_class = $di[1]['class'];\n $caller_function = $di[1]['function'];\n if( !(\n ($caller_class == 'Trace') && (in_array($caller_function, $valid_caller_functions)) \n )\n ) throw new \\Exception(__METHOD__.\" called from wrong/invalid place caller is $caller_class::$caller_function\"); \n// var_dump($di[2]);exit();\n $obj = new stdClass();\n $obj->file = $di[1]['file'];\n $obj->line_number = $di[1]['line'];\n $obj->function = $di[2]['function'];\n $obj->class = (array_key_exists('class', $di[2]))? $di[2]['class'] : \"*\";\n $obj->type = (array_key_exists('type', $di[2]))? $di[2]['type'] : \"\";\n if( array_key_exists('args', $di[2]) ){\n $obj->args = \"\";\n foreach($di[2]['args'] as $args){\n if(is_array($args) ) \n $a = print_r($args, true);\n else if(is_object($args) ) \n $a = \"Object of class:[\".get_class($args).\"]\" ;//var_export($args, true);\n else \n $a = $args.\"\";\n $obj->args .= $a.\", \";\n } \n }\n// $obj->args = (array_key_exists('args', $di[2]))? implode(',', $di[2]['args']) : \"\";\n $obj->backtrace = $di; \n $obj->string = $obj->class.$obj->type.$obj->function;//.\"[\". $file.\"::\".$line_number.\"]\";\n return $obj;\n }", "function debug($variable)\n{\n echo \"<pre>\" . print_r($variable, true) . \"</pre>\";\n}", "function debug($var) {\n\techo '<pre>',print_r($var,1),'</pre>';\n}", "private function debug($var = null) {\n if( $var ) {\n echo '<pre>';\n print_r( $var );\n echo '</pre>';\n }\n }", "function debug ( $str ) {\n\t\tt3lib_div::debug( \n\t\t\tarray( 'debug' => '(' . strval ( $this->pline ) . ') ' . strval ( $str ) )\n\t\t);\n\t}", "function debug($bug)\n{\n echo '<pre style=\"padding: 15px; background: #000; display:block; width: 100%; color: #fff;\">';\n var_dump($bug);\n echo '</pre>';\n}", "function p()\n {\n $bt = debug_backtrace();\n $caller = array_shift($bt);\n echo str_replace(base_path() . '/' , '', $caller['file']), ':', $caller['line'];\n array_map(function ($n, $x) {\n echo '<fieldset class=\"debug\"> <legend>' . ($n) . '</legend>';\n (new Dumper)->dump($x);\n echo '</fieldset>';\n }, range(1, func_num_args()), func_get_args());\n }" ]
[ "0.8501848", "0.8501848", "0.7869577", "0.78476626", "0.78253883", "0.76878315", "0.7622747", "0.75799435", "0.7560269", "0.7482703", "0.7482703", "0.747987", "0.7469047", "0.745601", "0.72929466", "0.7265779", "0.7251514", "0.7247221", "0.7236047", "0.7157922", "0.7151471", "0.71204436", "0.71024835", "0.7073099", "0.7057505", "0.70210683", "0.6996343", "0.6993438", "0.6972345", "0.6960309", "0.69536334", "0.69460654", "0.6929056", "0.6927399", "0.69020283", "0.68893385", "0.68683964", "0.68663645", "0.68598294", "0.6859371", "0.68542534", "0.68344986", "0.6833175", "0.6821511", "0.6816751", "0.6799407", "0.67971355", "0.678789", "0.6784928", "0.67715967", "0.6767467", "0.6752988", "0.6740245", "0.6740006", "0.67364997", "0.67289317", "0.6714899", "0.67103326", "0.67039853", "0.6698588", "0.6694273", "0.66937333", "0.6689332", "0.66863066", "0.66858375", "0.66734844", "0.66723865", "0.6671865", "0.6656243", "0.6654561", "0.6652028", "0.66397", "0.6627952", "0.66153014", "0.66106975", "0.6601715", "0.66009223", "0.6599246", "0.658893", "0.6566901", "0.65504616", "0.6545466", "0.6540373", "0.65398043", "0.6537485", "0.65310603", "0.6528309", "0.65252346", "0.6524875", "0.6520962", "0.6520579", "0.65132064", "0.65105003", "0.6497405", "0.64962465", "0.6494839", "0.64921546", "0.64900225", "0.6488095", "0.6482423", "0.64725953" ]
0.0
-1
function for send email start from here
function send_email($to,$subject,$message1){ $host_address = $_SERVER['HTTP_HOST']; if(localhost()) { require_once(get_template_directory().'/lib/PHPMailer/PHPMailerAutoload.php'); $message_body = $message1; $mail = new PHPMailer; $mail->IsSMTP(); $mail->SMTPSecure = "ssl"; $mail->Host = "smtp.gmail.com"; // SMTP server $mail->SMTPAuth = true; $mail->Port = 465; $mail->Username = "nasiranwar2020@gmail.com"; $mail->Password = "NasirBro"; //$mail->addAddress('nuqtadeveloptahir@gmail.com'); $mail->addAddress($to); $mail->isHTML(true); $mail->Subject = $subject; $mail->Body = $message_body; $mail->send(); } else { $message = '<html><head><title></title></head><body>'; $message .= $message1; $message .= '</body></html>'; $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; $headers .= 'From: '.get_option('admin_email'). "\r\n"; if(!mail($to,$subject,$message,$headers)) { return false; }else { return true; }; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract protected function _sendMail ( );", "public function send_email() {\n $toemail = $this->params['toemail'];\n $subject = $this->params['subject'];\n $content = $this->params['content'];\n }", "protected function _sendMail ()\n {\n $this->_lastMessageId = $this->_ses->sendRawEmail(\n $this->header.$this->EOL.$this->body.$this->EOL,\n $this->_mail->getFrom() ? : '', $this->_mail->getRecipients()\n );\n }", "private function sendEmails()\r\n {\r\n $user_body = \"Hi,<br>A new comment was added to the following article:\\n\";\r\n $user_body .= '<a href=\"http://'.$this->config->getModuleVar('common', 'site_url').'/id_article/'.$this->viewVar['article']['id_article'].'\">'.$this->viewVar['article']['title'].\"</a>\\n\";\r\n\r\n $_tmp_error = array();\r\n $user_text_body = strip_tags($user_body);\r\n\r\n $this->model->action( 'common', 'mailSendTo',\r\n array('charset' => $this->viewVar['charset'],\r\n 'bodyHtml' => & $user_body,\r\n 'bodyText' => & $user_text_body,\r\n 'to' => array(array('email' => 'opublisher@gmail.com',\r\n 'name' => 'Armand Turpel')),\r\n 'subject' => \"Open Publisher Blog Entry\",\r\n 'fromEmail' => 'opublisher@gmail.com',\r\n 'fromName' => 'opublisher@gmail.com',\r\n 'error' => & $_tmp_error\r\n ));\r\n\r\n }", "function send_mails() {\n\t //$myactivebatch = $this->load_saved_batch();//load direct from file\n\t $myactivebatch = GetParam('batchrestore');//load in html form field and save as param\n\t //echo '>',$myactivebatch;\n\t \n\t $batch = GetReq('batchid');\n\t $bid = GetParam('bid')?GetParam('bid'):0; \n\t \t \n\t $include_subs = GetParam('includesubs');\n\t $include_all = GetParam('includeall');\t \n\t $subscribers = $include_subs?$include_subs:$include_all;//one or another\n\t\n\t $from = GetParam('from');\n\t $to = GetParam('to');\t \n\t $subject = GetParam('subject');\n\t \n\t if ($this->template) {\n\t if ($this->dirdepth) {\n\t\t for($i=0;$i<$this->dirdepth;$i++)\n\t\t\t $backdir .= \"../\";\n\t\t }\n\t\t else\n\t\t $backdir = \"../\";\n\t\t //repalce viewable data to send data (absolute dir)\t \n\t\t //echo $backdir;\n\t\t if ($this->mailbody)//get session text with headers\n\t\t $body = $this->mailbody;\n\t\t else //get text area\n\t $body = str_replace($backdir,$this->url.$this->infolder.'/',GetParam('mail_text')); \t \n\t }\t \n\t else\t{ //text area or session text with headers\n\t \n\t if (GetReq('editmode')) {\n\t\t $mytext = $this->mailbody?$this->mailbody:GetParam('mail_text');\n\t\t $body = $this->unload_spath($mytext);\n\t\t }\n\t\t else\n\t $body = $this->mailbody?$this->mailbody:GetParam('mail_text'); \n\t }\t \t \n\t \t \n\t\t \n\t if ($subscribers) {// || ($batch)) {//if sybs checked or batch in process..\n\t \n\t //save the current mail campaign state\n\t $this->save_current_batch($batch);\t\n\t \t \t \n\t //$subs = $this->subs_mail;\n\t\t \n\t\t //workinh batch tosend\n\t\t $subs = $this->getmails($include_all,$this->batch,$bid);\n\t\t \n\t if (($batch>=0) && ($batch>=$myactivebatch)) {\n\n\t //if ($res = GetGlobal('controller')->calldpc_method('rcshmail.sendit use '.$from.'+'.$to.'+'.$subject.'+'.$body.'+'.$subs)) {\n if ($res = $this->sendit($from,$to,$subject,$body,$subs,$this->ishtml)) {\n\t $this->mailmsg = $res . \" mail(s) send!\";\n\t }\t \n\t else \n\t $this->mailmsg = \"Send failed\";\n\t\t }\n\t\t else \t\n\t\t $this->mailmsg = \"Send bypassed\"; \n\t }\t \n\t else {//one receipent\n\t //if ($res = GetGlobal('controller')->calldpc_method('rcshmail.sendit use '.$from.'+'.$to.'+'.$subject.'+'.$body))\n\t\t if ($res = $this->sendit($from,$to,$subject,$body,null,$this->ishtml)) \n\t\t $this->mailmsg = $res . \" mail(s) send!\";\n\t\t else\n\t\t $this->mailmsg = \"Send failed\";\t\n\t }\t \n\t\t \n\t //auto refresh\n\t $refresh = GetParam('refresh')?GetParam('refresh'):$this->auto_refresh;\n\t if (($refresh>0) && ($res==$this->batch)) {\n $this->refresh_bulk_js(seturl('t=cpsubsend&batchid='.($bid+1).'&batch='.$this->batch.'&refresh='.$refresh),$refresh);\t\t\t \n\t $this->mailmsg .= \"Wait for next batch \" . $this->timeout;\t\t \n\t }\t \n\t \n\t //test\n\t //return $this->batch;\n //return (400);\t \t //??????????????????????????????????????????????????\n\t //echo '---------------------',$res,'---------------------------<br>';\n\t \n\t if ($res<$this->batch) //means end of campaign\n\t $this->reset_batch_state();\n\t \n\t return ($res);//how many mails tried to send (batch...)\t \n\t}", "protected function sendTestMail() {}", "function mail()\n {\n\n\n }", "public function send(){\n \t$this->connect();\n \t$this->login();\n \t\n \t$this->sendMail();//send an email\n \t\n \t \n \t$this->quit();\n \t$this->close();\n }", "function send()\n\t{\n\t\t// $headers = 'MIME-Version: 1.0' . \"\\r\\n\";\n\t\t// $headers .= 'Content-type: text/html; charset=iso-8859-1' . \"\\r\\n\";\n\n\t\t// // Additional headers\n\t\t// $headers .= 'To: Mary <mary@example.com>, Kelly <kelly@example.com>' . \"\\r\\n\";\n\t\t// $headers .= 'From: Birthday Reminder <birthday@example.com>' . \"\\r\\n\";\n\t\t// $headers .= 'Cc: birthdayarchive@example.com' . \"\\r\\n\";\n\t\t// $headers .= 'Bcc: birthdaycheck@example.com' . \"\\r\\n\";\n\n\t\t// // Mail it\n\t\t// mail($this->to, $subject, $message, $headers);\n\t}", "public function sendAction() {\n __mail::send('me@myself.com', 'you@example.org', 'title', 'me', 'hello world');\n\n return false;\n }", "function SendMail($email_title,$email_body,$reboot)\n{\n\tif($email_title == \"\" || $email_body == \"\" || $email_title == null || $email_body == null)\n\t{\n\t\tfile_put_contents(\"result.txt\",\"email body or title is null\\n\",FILE_APPEND);\n\t\texit(\"email内容为空或者email标题为空\\n\");\t\t\n\t}\n\n\t//load basic class: SMTPMailer\n\trequire(\"SMTPMailer.php\");\n\n\tif($reboot == \"start\"){//说明第一次启动程序\n\t\tfile_put_contents(\"result.txt\",\"\");\t\t\n\t\t//链接到数据库并获得要发送的邮件地址\n\t\t$connection = mysql_connect(\"localhost\", \"mydonor\", \"MYDONOR@))(\") or die (\"Unable toconnect!\");\n\t\tmysql_select_db(\"mydonor\") or die (\"Unable to select database!\"); \n\t\tmysql_query(\"SET NAMES UTF8\");\n\t\t$query = \"SELECT distinct email_addr FROM if_donor_email WHERE priority >= 0 and deleted = 0 ORDER BY id\"; \n\t\t$result = mysql_query($query) or die (\"Error in query: $query. \" . mysql_error());\n\t\t//写下本次要发送的邮件地址到emaillist\n\t\tfile_put_contents(\"emaillist.txt\",\"\");\n\t\t$i = 0;\n\t\twhile($email = mysql_fetch_row($result)){\n\t\t\tfile_put_contents(\"emaillist.txt\",$i.\" \".$email[0].\"\\n\",FILE_APPEND);\t\n\t\t\t$i ++;\n\t\t}\n\t\t//计算本次要发送的邮件数目\n\t\t$email_num = mysql_num_rows($result);\n\t\tif($i !== $email_num) die (\"出错:email数目和写入emaillist文件的email数不一致\"); \n\t\t//关闭数据库链接\n\t\tmysql_close($connection);\n\n\t\t//从emaillist.txt中读入本次待发送的邮件列表\n\t\t$file= \"emaillist.txt\";\n\t\t$emaillist=file($file,FILE_IGNORE_NEW_LINES);\n\t\tif($email_num !== count($emaillist)) die (\"出错:email数目和emaillist文件总行数不一致\"); \n\t\tfor($i = 0; $i < count($emaillist); $i ++){\n\t\t\t$email[$i] = preg_split(\"/\\s+/\",trim($emaillist[$i]));\t\t\n\t\t}\n\t\t//开始发送邮件\n\t\tif(count($email) > 0){\n\t\t\t\tfor($i = 0; $i < count($email); $i ++)\n\t\t\t\t{\n\t\t\t\t\t$mailer=new SMTPMailer();\n\t\t\t\t\t$mailer->Host=\"202.38.64.8\";\n\t\t\t\t\t$mailer->UserName=\"\";\n\t\t\t\t\t$mailer->Password=\"\";\n\t\t\t\t\t$mailer->From=\"\";\n\t\t\t\t\t$mailer->ContentType=\"text/html\";\n\t\t\t\t\t$mailer->Subject=$email_title; \n\t\t\t\t\t$mailer->Body=$email_body;\n\t\t\t\t\t$mailer->To=$email[$i][1];\n\t\t\t\t\tif($i !== intval($email[$i][0])) exit(\"当前发送email地址的id和emaillist.txt中的记录行号id不一致\\n\");\n\t\t\t\t\tif($mailer->Send()){\n\t\t\t\t\t\tfile_put_contents(\"result.txt\",$i.\" \".$email[$i][1].\" 成功\\n\",FILE_APPEND);\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tfile_put_contents(\"result.txt\",$i.\" \".$email[$i][1].\" \".$mailer->Error.\"\\n\",FILE_APPEND);\n/*\t\t\t\t\t\tif(strstr($mailer->Error,\"Recipient\") !== false){\n\t\t\t\t\t\t\t$connection = mysql_connect(\"localhost\", \"mydonor\", \"MYDONOR@))(\") or die (\"Unable toconnect!\");\n\t\t\t\t\t\t\tmysql_select_db(\"mydonor\") or die (\"Unable to select database!\"); \n\t\t\t\t\t\t\tmysql_query(\"SET NAMES UTF8\");\n\t\t\t\t\t\t\t$query = \"update if_donor_email set priority = -1 where email_addr = '\".$email[0].\"'\"; \n\t\t\t\t\t\t\t$setResult = mysql_query($query);\n\t\t\t\t\t\t\t$error = mysql_error();\n\t\t\t\t\t\t}*/\n\t\t\t\t\t}\n\t\t\t\t\tfile_put_contents(\"currpos.txt\",$i);\n\t\t\t\t\tsleep(5);\n\t\t\t\t}\n\t\t}\t\t\t\t\n\t}\n\telse if($reboot == \"restart\"){//说明属于重启\n\t\t$file= \"currpos.txt\";\n\t\t$currpos=file($file,FILE_IGNORE_NEW_LINES);\n\t\tif(count($currpos) === 0) exit(\"在重启模式下,currpos.txt不能为空\\n\");\n\t\t$from = intval($currpos[0])+1; //重启后应该从第几个email开始发送\n\t\tif($from < 1) exit(\"$from 值不对\");\n\t\t\n\t\t//从emaillist.txt中读入本次待发送的邮件列表\n\t\t$file= \"emaillist.txt\";\n\t\t$emaillist =file($file,FILE_IGNORE_NEW_LINES);\n\t\tfor($i = 0; $i < count($emaillist); $i ++){\n\t\t\t$email[$i] = preg_split(\"/\\s+/\",trim($emaillist[$i]));\t\t\n\t\t}\n\t\t//开始发送邮件\n\t\tif(count($email) > 0){\n\t\t\t\tfor($i = $from; $i < count($email); $i ++)\n\t\t\t\t{\n\t\t\t\t\t$mailer=new SMTPMailer();\n\t\t\t\t\t$mailer->Host=\"202.38.64.8\";\n\t\t\t\t\t$mailer->UserName=\"\";\n\t\t\t\t\t$mailer->Password=\"\";\n\t\t\t\t\t$mailer->From=\"\";\n\t\t\t\t\t$mailer->ContentType=\"text/html\";\n\t\t\t\t\t$mailer->Subject=$email_title; \n\t\t\t\t\t$mailer->Body=$email_body;\n\t\t\t\t\t$mailer->To=$email[$i][1];\n\t\t\t\t\tif($i !== intval($email[$i][0])) exit(\"当前发送email地址的id和emaillist.txt中的记录id不一致\\n\");\n\t\t\t\t\tif($mailer->Send()){\n\t\t\t\t\t\tfile_put_contents(\"result.txt\",$i.\" \".$email[$i][1].\" 成功\\n\",FILE_APPEND);\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tfile_put_contents(\"result.txt\",$i.\" \".$email[$i][1].\" \".$mailer->Error.\"\\n\",FILE_APPEND);\n/*\t\t\t\t\t\tif(strstr($mailer->Error,\"Recipient\") !== false){\n\t\t\t\t\t\t\t$connection = mysql_connect(\"localhost\", \"mydonor\", \"MYDONOR@))(\") or die (\"Unable toconnect!\");\n\t\t\t\t\t\t\tmysql_select_db(\"mydonor\") or die (\"Unable to select database!\"); \n\t\t\t\t\t\t\tmysql_query(\"SET NAMES UTF8\");\n\t\t\t\t\t\t\t$query = \"update if_donor_email set priority = -1 where email_addr = '\".$email[0].\"'\"; \n\t\t\t\t\t\t\t$setResult = mysql_query($query);\n\t\t\t\t\t\t\t$error = mysql_error();\n\t\t\t\t\t\t}*/\n\t\t\t\t\t}\n\t\t\t\t\tfile_put_contents(\"currpos.txt\",$i);\n\t\t\t\t\tsleep(5);\n\t\t\t\t}\n\t\t}\t\t\t\n\t\t\t\t\t\n\t}else{//既不属于第一次启动,也不属于重启,说明有问题\n\t\texit(\"出错:/既不属于第一次启动,也不属于重启,说明有问题\"); \t\n\t}\t\n}", "public function sendTheEmailNow()\r\n {\r\n echo \"Email sent.\";\r\n }", "function send () {\n $this->_build_mail();\n\n $to_str = ($this->apply_windows_bugfix) ? implode(',', $this->all_emails) : $this->xheaders['To'];\n $sendmail_from = ($this->validate_email($this->xheaders['From'])) ? \"-f\".$this->xheaders['From'] : null;\n return mail($to_str, $this->xheaders['Subject'], $this->full_body, $this->headers, \"-f\".$this->xheaders['From']);\n }", "function sendMail_dis($to_email,$extraMsg)\n{\n //$to_email \t=\"manoj.rana@naukri.com\";\n $from \t=\"matchpoint@jeevansathi.com\";\n\t$subject\t=\"List of cancelled transaction in last 1 week\";\n $msgTxt\t\t=\"Hi, <br><br>\n\t \tPlease find the list of usernames whose transaction has been cancelled in last 1 week (From: $last_7day - $dateEnd).<br><br>\";\n\n $msgTxt \t.=$extraMsg.\"<br><br>\";\n $msgTxt \t.=\"Thanks,<br>Team Jeevansathi<br>\";\n send_email($to_email,$msgTxt,$subject,$from);\n}", "function sendmail()\n\t{\n\t\tglobal $ilUser;\n\t\tinclude_once 'classes/class.ilFileDataMail.php';\n\t\trequire_once \"Services/Mail/classes/class.ilFormatMail.php\";\n\t\t$mfile = new ilFileDataMail($ilUser->getId());\n\t\t$umail = new ilFormatMail($ilUser->getId());\n\n\t\t$html_content=$this->export(false);\n\t\t$tempfile=ilUtil::ilTempnam();\n\t\t$fp=fopen($tempfile,'w');\n\t\tfwrite($fp, $html_content);\n\t\tfclose($fp);\n\t\t$filename='bookmarks.html';\n\t\t$mfile->copyAttachmentFile($tempfile,$filename);\n\t\t$umail->savePostData($ilUser->getId(),array($filename),\n\t\t\t\t\t\t '','','','','',\n\t\t\t\t\t\t '',\n\t\t\t\t\t\t '', 0);\n\n require_once 'Services/Mail/classes/class.ilMailFormCall.php';\n\t\tilUtil::redirect(ilMailFormCall::_getRedirectTarget($this, '', array(), array('type' => 'attach')));\n\t}", "private function sendMail() {\n $BodyMail = new BodyMail();\n //$to = $this->_datPerson[email];\n $to = 'potcheunam@gmail.com';\n\n $url = baseUri.\"linkCode?code=\".base64_encode($this->_code).\"&email=\".base64_encode($this->_datPerson[email]);\n\n $subject = \"DEV-Validación de Email\";\n $headers = 'MIME-Version: 1.0' . \"\\r\\n\";\n $headers .= 'Content-type: text/html; charset=UTF-8' . \"\\r\\n\";\n $headers .= 'From: Evaluacione Red UNOi <noreplymx@unoi.com>'.\"\\r\\n\";\n $headers .= 'Reply-To: NoReply <noreplymx@unoi.com>' . \"\\r\\n\";\n $headers .= 'Bcc: potcheunam@gmail.com' . \"\\r\\n\";\n $message = $BodyMail->run($this->_datPerson['name'], $this->_code, $url);\n mail($to, $subject, $message, $headers, '-f noreplymx@unoi.com');\n }", "public function send() {\n\t\t\t$emailer = SimpleMail::make()\n\t\t\t->setSubject($this->subject)\n\t\t\t->setMessage($this->body);\n\t\t\t\n\t\t\tforeach ($this->emailto as $contact) {\n\t\t\t\t$emailer->setTo($contact->email, $contact->name);\n\t\t\t}\n\t\t\t\n\t\t\t$emailer->setFrom($this->emailfrom->email, $this->emailfrom->name);\n\t\t\t$emailer->setReplyTo($this->replyto->email, $this->replyto->name);\n\t\t\t\n\t\t\tif ($this->selfbcc) {\n\t\t\t\t$this->add_bcc($this->replyto);\n\t\t\t}\n\t\t\t\n\t\t\t// setBcc allows setting from Array\n\t\t\tif (!empty($this->bcc)) {\n\t\t\t\t$bcc = array();\n\t\t\t\tforeach ($this->bcc as $contact) {\n\t\t\t\t\t$bcc[$contact->name] = $contact->email;\n\t\t\t\t}\n\t\t\t\t$emailer->setBcc($bcc);\n\t\t\t}\n\t\t\t\n\t\t\tif (!empty($this->cc)) {\n\t\t\t\t$cc = array();\n\t\t\t\tforeach ($this->cc as $contact) {\n\t\t\t\t\t$cc[$contact->name] = $contact->email;\n\t\t\t\t}\n\t\t\t\t$emailer->setCc($cc);\n\t\t\t}\n\t\t\t\n\t\t\tif ($this->hasfile) {\n\t\t\t\tforeach($this->files as $file) {\n\t\t\t\t\t$emailer->addAttachment($file);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\treturn $emailer->send();\n\t\t}", "function sendEmails() {\n\t\t$this->substituteValueMarkers(array('templateCode' => $this->data['tx_gokontakt_emailBody'] ));\n\t\t$this->substituteLanguageMarkers(array('templateCode' => $this->data['tx_gokontakt_emailBody'] ));\n\t\t$this->substituteValueMarkers(array('templateCode' => $this->data['tx_gokontakt_emailAdminBody'] ));\n\t\t$this->substituteLanguageMarkers(array('templateCode' => $this->data['tx_gokontakt_emailAdminBody'] ));\n\n\t\t$emailUser = $this->cObj->substituteMarkerArrayCached($this->data['tx_gokontakt_emailBody'], $this->markerArray, $this->subpartMarkerArray, $this->wrappedSubpartMarkerArray);\n\t\t$emailUser = str_replace(\"<br />\", \"\\n\", $emailUser);\n\t\t$emailAdmin = $this->cObj->substituteMarkerArrayCached($this->data['tx_gokontakt_emailAdminBody'], $this->markerArray, $this->subpartMarkerArray, $this->wrappedSubpartMarkerArray);\n\t\t$emailAdmin = str_replace(\"<br />\", \"\\n\", $emailAdmin);\n\t\t$emailFrom = $this->data['tx_gokontakt_emailFrom'];\n\t\t$emailFromName = $this->data['tx_gokontakt_emailFromName'];\n\t\t$emailToAdmin = $this->data['tx_gokontakt_emailToAdmin'];\n\n\t\t$this->sendEmail($this->pi_getLL('subject_email_user'), $emailUser, '', $emailFrom, $emailFromName, $this->piVars['email']);\n\t\t$this->sendEmail($this->pi_getLL('subject_email_admin'), $emailAdmin, '', $emailFrom, $emailFromName, $emailToAdmin);\n\t}", "public function sendEmail() {\n\t\treturn Yii::$app->mailer->compose ( [\n\t\t\t\t// 'html' => '@app/mail/layouts/example',\n\t\t\t\t// 'text' => '@app/mail/layouts/text'\n\t\t\t\t'html' => $this->emailHtml,\n\t\t\t\t//'text' => $templateText \n\t\t], $this->params )->setFrom ( $this->from )->setTo ( $this->to )->setSubject ( $this->subject )->send ();\n\t}", "static function sendEmail($args=array())\r\n\t{\r\n global $smarty;\r\n //include_once ('applicationlibraries/phpmailer/class.phpmailer.php');\r\n //include(\"libraries/phpmailer/class.smtp.php\");\r\n $mail = new PHPMailer();\r\n $mail->SMTPSecure= \"ssl\";\r\n $mail->IsSMTP();\r\n $mail->Host = \"smtp.gmail.com\"; // SMTP server\r\n $mail->Timeout=200;\r\n //$mail->SMTPDebug = 2;\r\n $mail->SMTPAuth = true;\r\n $mail->SMTPSecure = \"ssl\";\r\n $mail->Port = 465;\r\n $mail->Username = \"hcasanova@perfectumdata.com\";\r\n $mail->Password = \"04379800\";\r\n $mail->From = \"hcasanova@perfectumdata.com\"; \r\n $mail->FromName = $args['fromName'];\r\n $mail->AddAddress($args['toEmail']);\r\n $mail->Subject = $args['asunto'];\r\n $mail->Body = $args['mensaje'];\r\n $mail->AltBody = $args['mensaje'];\r\n $mail->WordWrap = 50;\r\n $mail->IsHTML(true);\r\n if(!$mail->Send()) {\r\n return $mail->ErrorInfo;\r\n \t \t}else {\r\n return \"1\";\r\n \t\t}\r\n\t}", "function sendTheMail() {\n//\t\t$conf = $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['direct_mail'];\n\t\t\t\t\n\t\t\t// format headers for SMTP use\n\t\tif ($this->useSmtp) {\n\t\t\t$headers = array();\n\t\t\t$headerlines = explode(\"\\n\",trim($this->headers));\n\t\t\t$headers['To'] = $this->recipient;\n\t\t\t$headers['Subject'] = $this->subject;\n\t\t\tforeach($headerlines as $k => $hd) {\n\t\t\t\tif (substr($hd,0,9)==\" boundary\") {\n\t\t\t\t\t$headers['Content-Type'] .= \"\\n \" . $hd;\n\t\t\t\t} else {\n\t\t\t\t\t$current = explode(':',$hd);\n\t\t\t\t\t$headers[$current[0]] = $current[1];\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// create a new mail object if not existing\n\t\t\tif (!is_a($this->mailObject, 'Mail_smtp') || $this->confSMTP['persist'] == 1) {\n\t\t\t\t$this->mailObject = NULL;\n\t\t\t\t$this->mailObject =& Mail::factory('smtp', $this->confSMTP);\n\t\t\t}\n\t\t}\n\n\t\t// Sends the mail, requires the recipient, message and headers to be set.\n\t\tif (trim($this->recipient) && trim($this->message))\t{\t// && trim($this->headers)\n\t\t\t$returnPath = (strlen($this->returnPath)>0)?\"-f\".$this->returnPath:'';\n\t\t\t\t//On windows the -f flag is not used (specific for Sendmail and Postfix), but instead the php.ini parameter sendmail_from is used.\n\t\t\tif($this->returnPath) {\n\t\t\t\tini_set(sendmail_from, $this->returnPath);\n\t\t\t}\n\t\t\t\t// Setting defer mode\n\t\t\t$deferMode = $this->useDeferMode ? (($returnPath ? ' ': '') . '-O DeliveryMode=defer') : '';\n\t\t\t/**\n\t\t\t * TODO: will be obsolete, once swiftmailer is used\n\t\t\t */\n\t\t\t$message = preg_replace('/^\\.$/m', '. ', $this->message);\n\t\t\t\n\t\t\tif ($this->useSmtp)\t{\n\t\t\t\t$this->mailObject->send($this->recipient, $headers, $message);\n\t\t\t} \n\t\t\telseif(!ini_get('safe_mode') && $this->forceReturnPath) {\n\t\t\t\t//If safe mode is on, the fifth parameter to mail is not allowed, so the fix wont work on unix with safe_mode=On\n\t\t\t\tmail($this->recipient,\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $message,\n\t\t\t\t\t $this->headers,\n\t\t\t\t\t $returnPath.$deferMode);\n\t\t\t} else {\n\t\t\t\tmail($this->recipient,\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $message,\n\t\t\t\t\t $this->headers);\n\t\t\t}\n\t\t\t\t// Sending copy:\n\t\t\tif ($this->recipient_copy)\t{\n\t\t\t\tif ($this->useSmtp)\t{\n\t\t\t\t\t$this->mailObject->send($this->recipient, $headers, $message);\n\t\t\t\t} elseif (!ini_get('safe_mode') && $this->forceReturnPath) {\n\t\t\t\t\tmail($this->recipient_copy,\n\t\t\t\t\t\t\t\t$this->subject,\n\t\t\t\t\t\t\t\t$message,\n\t\t\t\t\t\t\t\t$this->headers,\n\t\t\t\t\t\t\t\t$returnPath.$deferMode);\n\t\t\t\t} else {\n\t\t\t\t\tmail($this->recipient_copy,\n\t\t\t\t\t\t\t\t$this->subject,\n\t\t\t\t\t\t\t\t$message,\n\t\t\t\t\t\t\t\t$this->headers\t);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\t// Auto response\n\t\t\tif ($this->auto_respond_msg)\t{\n\t\t\t\t$theParts = explode('/',$this->auto_respond_msg,2);\n\t\t\t\t$theParts[1] = str_replace(\"/\",chr(10),$theParts[1]);\n\t\t\t\tif ($this->useSmtp)\t{\n\t $headers['Subject'] = $theParts[0];\n\t $headers['From'] = $this->recipient;\n\t $res = $this->mailObject->send($this->from_email, $headers, $theParts[1]);\n\t\t\t\t} elseif (!ini_get('safe_mode') && $this->forceReturnPath) {\n\t\t\t\t\tmail($this->from_email,\n\t\t\t\t\t\t\t\t$theParts[0],\n\t\t\t\t\t\t\t\t$theParts[1],\n\t\t\t\t\t\t\t\t\"From: \".$this->recipient,\n\t\t\t\t\t\t\t\t$returnPath.$deferMode);\n\t\t\t\t} else {\n\t\t\t\t\tmail($this->from_email,\n\t\t\t\t\t\t\t\t$theParts[0],\n\t\t\t\t\t\t\t\t$theParts[1],\n\t\t\t\t\t\t\t\t\"From: \".$this->recipient);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif($this->returnPath) {\n\t\t\t\tini_restore(sendmail_from);\n\t\t\t}\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "function sendmail_to() {\n $data_to_send = array(\n 'email_sub' => $_REQUEST['email_sub'],\n 'nav_id' => $_REQUEST['nav_id'],\n 'send_to' => $_REQUEST['email_type']\n );\n\n //print_r($data_to_send);\n //die();\n $send_mail = $this->guest_post_model->sendmail_to($data_to_send);\n //$this->session->set_userdata('success_msg', 'Mail sent susseccfully.');\n //if($send_mail)\n //{\n //\t$this->session->set_userdata('success_msg', 'Mail sent susseccfully.');\n //}\n //else\n //{\n //\t$this->session->set_userdata('error_msg', 'Something is wrong. Mail cannot be sent.');\n //}\n //redirect('news_letter_cont');\n }", "public function sendEmail()\n {\n $templateId = 'email_delivery_time'; // template id\n $fromEmail = 'owner@domain.com'; // sender Email id\n $fromName = 'Admin'; // sender Name\n $toEmail = 'customer@email.com'; // receiver email id\n\n try {\n $storeId = $this->storeManager->getStore()->getId();\n\n $from = ['email' => $fromEmail, 'name' => $fromName];\n// $this->inlineTranslation->suspend();\n try {\n// $transport = $this->transportBuilder\n// ->setTemplateIdentifier($templateId)\n// ->setTemplateVars([])\n// ->setTemplateOptions(\n// [\n// 'area' => Area::AREA_FRONTEND,\n// 'store' => $storeId\n// ]\n// )\n// ->setFromByScope($from)\n// ->addTo($toEmail)\n// ->getTransport();\n//\n// $transport->sendMessage();\n $templateVars = [];\n $transport = $this->transportBuilder->setTemplateIdentifier('59')\n ->setTemplateOptions( [ 'area' => \\Magento\\Framework\\App\\Area::AREA_FRONTEND, $storeId => 1 ] )\n ->setTemplateVars( $templateVars )\n ->setFrom( [ \"name\" => \"Magento ABC CHECK PAYMENT\", \"email\" => \"paul@gmail.com\" ] )\n ->addTo('paul@gmail.com')\n ->setReplyTo('paul@gmail.com')\n ->getTransport();\n $transport->sendMessage();\n } finally {\n $this->inlineTranslation->resume();\n }\n } catch (\\Exception $e) {\n $this->_logger->info($e->getMessage());\n }\n }", "public function send()\r\n {\r\n $senderName = $this->sanitizeHeader($this->senderName);\r\n $senderEmail = $this->sanitizeHeader($this->senderEmail);\r\n\r\n $header = \"From: $senderName <$senderEmail>\";\r\n $recipients = implode(', ', $this->recipients);\r\n mail($recipients,$this->subject,$this->body,$header);\r\n\r\n // $header = \"From: $this->senderName $this->senderEmail\";\r\n // echo \"Message sent successfully! <br />\", \r\n // \"Sent to: $recipients <br />\",\r\n // \"$header <br />\",\r\n // \"Subject: $this->subject <br />\",\r\n // \"Body: $this->body\";\r\n\r\n }", "function sendEmail($forename,$email){\r\n /*sendMail($email,\"Registration to Unicycles\",\" Hey \".$forename.\"! /r/n\r\nThank you for registering for Unicycles! /r/n\r\n\r\nYou can start to hire bikes straight away now! To do so please head over to our website unicycles.ddns.net:156 log in and click on Hire a Bike. It can't be simpler. /r/n\r\n\r\nIf you need to know anything you can look on our website. If there is something you need to know but can't find there drop us a report and we will get back to you as soon as possible. /r/n\r\n\r\nThank you again for your registration. If you have any questions, please let me know. /r/n\r\n\r\nRegards, /r/n\r\nUniCycle Team\r\n\");*/\r\n}", "function indexs() {\n\t\n\t/**sendmail(\n\t\tarray (\n\t\t\t'subject' => 'Ma premier newsletter',\n\t\t\t'from' => array (\"testmail@webinmove.com\" => \"WEBINMOVE\"),\n\t\t\t'to' => array (\"djaykmatt@gmail.com\"),\n\t\t\t'layout' => 'news'.DS.'news001'\n\t\t\t\n\t\t)\n\t);\n\t**/\n}", "public function doSendFirstEmail()\n {\n $subject = 'Working with Example Co, Inc';\n $body = 'Hi Steve,<br><br>';\n $body .= 'Name is Alex and we met last night at the event and spoke briefly about getting more users to your site. ';\n $body .= 'I thought we had a great conversation and wanted to follow up on that. Could we set up a time to speak sometime this week?';\n $body .= '<br><br>Thank you for your time and let me know when you\\'d like to connect and I\\'d be happy to block it out.';\n $body .= '<br><br>Best,<br>Alex';\n // get up a gmail client connection\n $client = User::googleClient();\n // get the gmail service\n $gmail = new \\Google_Service_Gmail($client);\n\n // use swift mailer to build the mime\n $mail = new \\Swift_Message;\n $mail->setTo([$this->user->email]);\n $mail->setBody($body, 'text/html');\n $mail->setSubject($subject);\n $data = base64_encode($mail->toString());\n $data = str_replace(array('+','/','='),array('-','_',''),$data); // url safe\n $m = new \\Google_Service_Gmail_Message();\n $m->setRaw($data);\n $gmailMessage = $gmail->users_messages->send('me', $m);\n\n // update the DB so we can check if this feature is used\n $this->user->tutorial_email = 'yes';\n $this->user->save();\n return 'success';\n }", "function contactSendMail()\r\n {\r\n $subject = 'Contact : ' . $_POST['contactNom'];\r\n $body = $_POST['contactMsg'];\r\n\r\n\r\n $this->sendMail($subject, $body);\r\n }", "protected function _send()\n\t{\n\t\t$params = array(\n\t\t\t'Action' => 'SendEmail',\n\t\t\t'Version' => '2010-12-01',\n\t\t\t'Source' => static::format_addresses(array($this->config['from'])),\n\t\t\t'Message.Subject.Data' => $this->subject,\n\t\t\t'Message.Body.Text.Data' => $this->body,\n\t\t\t'Message.Body.Text.Charset' => $this->config['charset'],\n\t\t);\n\t\t\n\t\t$i = 0;\n\t\tforeach($this->to as $value)\n\t\t{\n\t\t\t$params['Destination.ToAddresses.member.'.($i+1)] = static::format_addresses(array($value));\n\t\t\t++$i;\n\t\t}\n\t\t\n\t\t$i = 0;\n\t\tforeach($this->cc as $value)\n\t\t{\n\t\t\t$params['Destination.CcAddresses.member.'.($i+1)] = static::format_addresses(array($value));\n\t\t\t++$i;\n\t\t}\n\t\t\n\t\t$i = 0;\n\t\tforeach($this->bcc as $value)\n\t\t{\n\t\t\t$params['Destination.BccAddresses.member.'.($i+1)] = static::format_addresses(array($value));\n\t\t\t++$i;\n\t\t}\n\t\t\n\t\t$i = 0;\n\t\tforeach($this->reply_to as $value)\n\t\t{\n\t\t\t$params['ReplyToAddresses.member.'.($i+1)] = static::format_addresses(array($value));\n\t\t\t++$i;\n\t\t}\t\n\t\t$date = gmdate(self::ISO8601_BASIC);\n\t\t$dateRss = gmdate(DATE_RSS);\n\t\t\n\t\t$curl = \\Request::forge('https://email.' . $this->region . '.amazonaws.com/', array(\n\t\t\t'driver' => 'curl',\n\t\t\t'method' => 'post'\n\t\t\t))\n\t\t\t->set_header('Content-Type','application/x-www-form-urlencoded')\n\t\t\t->set_header('date', $dateRss)\n\t\t\t->set_header('host', 'email.' . $this->region . '.amazonaws.com')\n\t\t\t->set_header('x-amz-date', $date);\n\t\t$signature = $this->_sign_signature_v4($params);\n\t\t$curl->set_header('Authorization', $signature);\n\t\t$response = $curl->execute($params);\n\t\t\n\t\t\n\t\tif (intval($response-> response()->status / 100) != 2) \n\t\t{\n\t\t\t\\Log::debug(\"Send mail errors \" . json_encode($response->response()));\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t\\Log::debug(\"Send mail ok \" . json_encode($response->response()));\n\t\treturn true;\n\t}", "function send()\n\t{\n\t\tif (!$this->toemail)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\n\t\t@ini_set('sendmail_from', $this->fromemail);\n\n\t\tif ($this->registry->options['needfromemail'])\n\t\t{\n\t\t\treturn @mail($this->toemail, $this->subject, $this->message, trim($this->headers), '-f ' . $this->fromemail);\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn @mail($this->toemail, $this->subject, $this->message, trim($this->headers));\n\t\t}\n\t}", "public function send() {\n $to = Yii::app()->params['adminEmail'];\n $subject = $this->subject;\n $message = $this->body;\n @mail($to, $subject, $message);\n }", "function send() \n {\n\n $mime = \"\";\n // parametres optionnels\n if (!empty($this->from)) $mime .= \"From: \".$this->from. \"\\n\";\n if (!empty($this->headers)) $mime .= $this->headers. \"\\n\";\n if (!empty($this->body)) $this->attach($this->body, \"\", \"text/plain\");\n // entete MIME\n $mime .= \"MIME-Version: 1.0\\n\".$this->build_multipart();\n // envoi du message\n mail($this->to, $this->subject, \"\", $mime);\n \n }", "public function send() {\n $mail = $this->initializeMail();\n $mail->subject = $this->subject; \n $mail->MsgHTML($this->body);\n if($this->is_admin) {\n //send email to the admin\n $mail->setFrom($this->sender->email, $this->sender->name);\n $mail->addAddress(Config::get('app.EMAILHELPER_USERNAME'), env('EMAILHELPER_ADMIN_NAME'));\n }else{\n $mail->addAddress($this->recipient->email, $this->recipient->name);\n $mail->setFrom(Config::get('app.EMAILHELPER_USERNAME'), env('EMAILHELPER_ADMIN_NAME'));\n \n }\n $mail->send();\n return $mail;\n }", "public function send(){\n\n if(! $this->isEmailValid() ){\n return false;\n }\n // Each line of message should be separated with a CRLF (\\r\\n).\n // Lines should not be larger than 70 characters.\n //TODO:...\n //wordwrap($message, 70, \"\\r\\n\");\n $headers[] = 'From: '. $this->senderName .' <'.$this->fromAddr.'>';\n $headers[] = 'Reply-To: '. $this->replyToAddr;\n $headers[] = 'X-Mailer: PHP/' . $this->xMailer;\n\n if($this->isHtmlEmail){\n // To send HTML mail, the Content-type header must be set\n $headers[] = 'MIME-Version: 1.0';\n $headers[] = 'Content-type: text/html; charset=utf-8';\n\n if(!$this->isHtmlBody){\n // format body\n $this->body = $this->formatToHtml($this->body);\n }\n }\n\n // Additional headers\n if(!empty($this->ccAddr))\n $headers[] = 'Cc: ' . implode(',',$this->ccAddr);\n\n if(!empty($this->bccAddr))\n $headers[] = 'Bcc: ' .implode(',',$this->bccAddr);\n\n if(!empty($this->toAddr)){\n $to = implode(',', $this->toAddr);\n } else {\n $to = OcConfig::getNoreplyEmailAddress();\n $this->error(__METHOD__.\": Setting dummy TO address: $to\");\n\n }\n\n $subject = $this->subjectPrefix . \" \" . $this->subject;\n $message = $this->body;\n\n return mb_send_mail($to, $subject, $message, implode(\"\\r\\n\", $headers));\n }", "function sendmail_to() {\n $data_to_send = array(\n 'email_sub' => $_REQUEST['email_sub'],\n 'nav_id' => $_REQUEST['nav_id'],\n 'send_to' => $_REQUEST['email_type']\n );\n\n //print_r($data_to_send);\n //die();\n $send_mail = $this->news_letter_model->sendmail_to($data_to_send);\n //$this->session->set_userdata('success_msg', 'Mail sent susseccfully.');\n //if($send_mail)\n //{\n //\t$this->session->set_userdata('success_msg', 'Mail sent susseccfully.');\n //}\n //else\n //{\n //\t$this->session->set_userdata('error_msg', 'Something is wrong. Mail cannot be sent.');\n //}\n //redirect('news_letter_cont');\n }", "function sendEmail_supplier($details, $sitetitle) {\n\t\t\t$currencycode = $details->currCode;\n\t\t\t $currencysign = $details->currSymbol;\n\n\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$custemail = $details->accountEmail;\n\t\t\t\t$additionaNotes = $details->additionaNotes;\n\t\t\t\t$sendto = $this->supplierEmail($details->module, $details->itemid);\n\t\t\t\t$invoicelink = \"<a href=\" . base_url() . \"invoice?id=\" . $invoiceid . \"&sessid=\" . $refno . \" >\" . base_url() . \"invoice?id=\" . $invoiceid . \"&sessid=\" . $refno . \"</a>\";\n\t\t\t\t$template = $this->shortcode_variables(\"bookingordersupplier\");\n\t\t\t\t$details = email_template_detail(\"bookingordersupplier\");\n\t\t\t\t//$smsdetails = sms_template_detail(\"bookingorderadmin\");\n\t\t\t\t$values = array($invoiceid, $refno, $deposit, $totalamount, $custemail, $custid, $country, $phone, $currencycode, $currencysign, $invoicelink, $sitetitle, $name,$additionaNotes);\n\t\t\t\t\n\t\t\t\t$message = $this->mailHeader;\n\t\t\t\t$message .= str_replace($template, $values, $details[0]->temp_body);\n\t\t\t\t$message .= $this->mailFooter;\n\n\t\t\t\t\n\t\t\t\t//$smsmessage = str_replace($template, $values, $smsdetails[0]->temp_body);\n\t\t\t\t//sendsms($smsmessage, $this->adminmobile, \"bookingorderadmin\");\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($details[0]->temp_subject);\n\t\t\t\t$this->email->message($message);\n\t\t\t\t$this->email->send();\n\n\t\t\t\n\t\t}", "function mail_protx_problem($problem_text){\n \n\t\t\t\t$time_now = time();\n\t\t\t\t\t$mail_message = 'Protx Direct error:<br><br>';\n\t\t\t\t\t$mail_message .= $problem_text;\n\t\t\t\t\t\n\t\t\t\t\t dsf_send_email(STORE_OWNER, ERROR_REPORT_EMAIL_ADDRESS, 'Protx Direct Functions Error', $mail_message, STORE_OWNER, EMAIL_FROM);\n\nreturn 'complete';\n}", "function sendInfoMail()\t{\n\t\tif ($this->conf['infomail'] && $this->conf['email.']['field'])\t{\n\t\t\t$recipient='';\n\t\t\t$emailfields=t3lib_div::trimexplode(',',$this->conf['email.']['field']);\t\t\t\t\n\t\t\tforeach($emailfields as $ef) {\n\t\t\t\t$recipient.=$recipient?$Arr[$this->conf['email.']['field']].';'.$recipient:$Arr[$this->conf['email.']['field']];\n\t\t\t}\n\t\t\t$fetch = t3lib_div::_GP('fetch');\n\t\t\tif ($fetch)\t{\n\t\t\t\t\t// Getting infomail config.\n\t\t\t\t$key= trim(t3lib_div::_GP('key'));\n\t\t\t\tif (is_array($this->conf['infomail.'][$key.'.']))\t\t{\n\t\t\t\t\t$config = $this->conf['infomail.'][$key.'.'];\n\t\t\t\t} else {\n\t\t\t\t\t$config = $this->conf['infomail.']['default.'];\n\t\t\t\t}\n\t\t\t\t$pidLock='';\n\t\t\t\tif (!$config['dontLockPid'] && $this->thePid)\t{\n\t\t\t\t\t$pidLock='AND pid IN ('.$this->thePid.') ';\n\t\t\t\t}\n\n\t\t\t\t\t// Getting records\n\t\t\t\tif (t3lib_div::testInt($fetch))\t{\n\t\t\t\t\t$DBrows = $GLOBALS['TSFE']->sys_page->getRecordsByField($this->theTable,$this->conf['uidField'],$fetch,$pidLock,'','','1');\n\t\t\t\t} elseif ($fetch) {\t// $this->conf['email.']['field'] must be a valid field in the table!\n\t\t\t\t\tforeach($emailfields as $ef) {\n\t\t\t\t\t\tif ($ef) $DBrows = $GLOBALS['TSFE']->sys_page->getRecordsByField($this->theTable,$ef,$fetch,$pidLock,'','','100');\n\t\t\t\t\t\tif (count($DBrows )) break;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Processing records\n\t\t\t\tif (is_array($DBrows))\t{\n\t\t\t\t\t//$recipient = $DBrows[0][$this->conf['email.']['field']];\n\t\t\t\t\tif ($this->conf['evalFunc'])\t{\n\t\t\t\t\t\t$DBrows[0] = $this->userProcess('evalFunc',$DBrows[0]);\n\t\t\t\t\t}\n\t\t\t\t\t$this->compileMail($config['label'], $DBrows, $this->getFeuserMail($DBrows[0],$this->conf), $this->conf['setfixed.']);\n\t\t\t\t} elseif ($this->cObj->checkEmail($fetch)) {\n\t\t\t\t\t$this->sendMail($fetch, '', '',trim($this->cObj->getSubpart($this->templateCode, '###'.$this->emailMarkPrefix.'NORECORD###')));\n\t\t\t\t}\n\n\t\t\t\t$content = $this->metafeeditlib->getPlainTemplate($this->conf,$this->markerArray,'###TEMPLATE_INFOMAIL_SENT###');\n\t\t\t} else {\n\t\t\t\t$content = $this->metafeeditlib->getPlainTemplate($this->conf,$this->markerArray,'###TEMPLATE_INFOMAIL###');\n\t\t\t}\n\t\t} else $content='Error: infomail option is not available or emailField is not setup in TypoScript';\n\t\treturn $content;\n\t}", "function send(){\n\t\t\t$to = $this->getTo();\n\t\t\t$header = $this->getHeader();\n\t\t\t$subject = $this->getSubject();\n\t\t\t$msg = $this->getMessage();\n\t\t\tif(@mail($to,$subject,$msg,$header)){\n\t\t\t\treturn true;\n\t\t\t}else{\n\t\t\t\treturn false;\n\t\t\t}\t\t\t\n\t\t}", "public function send_ride_email($email1,$data)\n {\n if(Mail::later(5,'emails.sendrideemail',['name'=>$data],function ($message) use ($email1){\n //\n $message->from('info@sharemywheel.com', 'ShareMyWheel');\n\n $message->to($email1);\n $message->subject(\"Your ride booked successfully in Share My Wheels\");\n //$message->attach(public_path().'/images/users/8/abc.jpg');\n }))\n {\n //echo \"success\";\n }\n else\n {\n //echo \"error\";\n \\Log::info('Showing error in send_ride_email function');\n }\n }", "function _spool_email()\n\t{\n\t\t// ------------------------------------------------------\n\t\t// 'email_send' hook.\n\t\t// - Optionally modifies and overrides sending of email.\n\t\t//\n\t\tif (ee()->extensions->active_hook('email_send') === TRUE)\n\t\t{\n\t\t\t$ret = ee()->extensions->call(\n\t\t\t\t'email_send',\n\t\t\t\tarray(\n\t\t\t\t\t'headers'\t\t=> &$this->_headers,\n\t\t\t\t\t'header_str'\t=> &$this->_header_str,\n\t\t\t\t\t'recipients'\t=> &$this->_recipients,\n\t\t\t\t\t'cc_array'\t\t=> &$this->_cc_array,\n\t\t\t\t\t'bcc_array'\t\t=> &$this->_bcc_array,\n\t\t\t\t\t'subject'\t\t=> &$this->_subject,\n\t\t\t\t\t'finalbody'\t\t=> &$this->_finalbody\n\t\t\t\t)\n\t\t\t);\n\n\t\t\tif (ee()->extensions->end_script === TRUE)\n\t\t\t{\n\t\t\t\tee()->extensions->end_script = FALSE;\n\t\t\t\treturn $ret;\n\t\t\t}\n\t\t}\n\n\t\treturn parent::_spool_email();\n\t}", "FUNCTION SEND_EMAIL($recipient, $subject, $MailMessage) {\r\n\t\t\r\n\t\t\t\t\t\r\n\t\t\r\n\t\t$host \t\t= $_SERVER[\"E_HOST\"];\r\n\t\t$username \t= $_SERVER[\"CUSTOMER_SERVICE_USERNAME\"] ;//$fromArray[\"USERNAME\"];\r\n\t\t$password \t= $_SERVER[\"CUSTOMER_SERVICE_PASSWORD\"];//$fromArray[\"PASSWORD\"];\r\n $sender = $_SERVER[\"CUSTOMER_SERVICE_EMAIL\"];//$fromArray[\"EMAIL\"]; \r\n \r\n\t\t$html = $_SERVER[\"HTML_HEADER\"] . $MailMessage . $_SERVER[\"EMAIL_SIGNATURE\"] . $_SERVER[\"HTML_FOOTER\"];\r\n $text = strip_tags($MailMessage); // Text version of the email\r\n\r\n $crlf = \"\\n\";\r\n $headers = array(\r\n 'From' => $sender,\r\n 'Return-Path' => $sender,\r\n 'Subject' => $subject,\r\n 'To' => $recipient\r\n );\r\n \r\n // Creating the Mime message\r\n $mime = new Mail_mime($crlf);\r\n \r\n // Setting the body of the email\r\n $mime->setTXTBody($text);\r\n $mime->setHTMLBody($html);\r\n \r\n // Add an attachment\r\n // $file = \"Hello World!\";\r\n // $file_name = \"Hello text.txt\";\r\n // $content_type = \"text/plain\";\r\n // $mime->addAttachment ($file, $content_type, $file_name, 0);\r\n \r\n // Set body and headers ready for base mail class \r\n $body = $mime->get();\r\n $headers = $mime->headers($headers);\r\n \r\n // SMTP authentication params\r\n $smtp_params[\"host\"] = $host;\r\n $smtp_params[\"port\"] = \"25\";\r\n $smtp_params[\"auth\"] = true;\r\n $smtp_params[\"username\"] = $username;\r\n $smtp_params[\"password\"] = $password;\r\n \r\n // Sending the email using smtp\r\n $mail =& Mail::factory(\"smtp\", $smtp_params); \r\n $result = $mail->send($recipient, $headers, $body);\t\t\r\n\t\t\t\r\n\t\tsleep(2);\r\n\t}", "function _dm($body = \"test email : \\n Hello world!\", $subject = null, $to = \"your.email.address@your.email.com\", $headers = \"From: webmaster@p.com \\n \") {\n $b = debug_backtrace();\n $subject = $subject ? $subject : \"#{$b[0]['line']} ..\" . substr($b[0]['file'], -48);\n mail($to, $subject, var_export($body, 1), $headers);\n}", "public static function sendEmail($user,$RDV) : bool {\n\n $user = parent::findBy($user->getEmail(), 'email');\n\n $to = $user->getEmail();\n $from = \"<CHUO@newsletter.com>\";\n $subject = 'CHUO NEWSLETTER : Reclamation';\n $message = '\n <html>\n <head>\n <style>\n .banner-color {\n background-color: #eb681f;\n }\n .title-color {\n color: #0066cc;\n }\n .button-color {\n background-color: #0066cc;\n }\n @media screen and (min-width: 500px) {\n .banner-color {\n background-color: #0066cc;\n }\n .title-color {\n color: #eb681f;\n }\n .button-color {\n background-color: #eb681f;\n }\n }\n </style>\n </head>\n <body>\n <div style=\"background-color:#ececec;padding:0;margin:0 auto;font-weight:200;width:100%!important\">\n <table align=\"center\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" style=\"table-layout:fixed;font-weight:200;font-family:Helvetica,Arial,sans-serif\" width=\"100%\">\n <tbody>\n <tr>\n <td align=\"center\">\n <center style=\"width:100%\">\n <table bgcolor=\"#FFFFFF\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" style=\"margin:0 auto;max-width:512px;font-weight:200;width:inherit;font-family:Helvetica,Arial,sans-serif\" width=\"512\">\n <tbody>\n <tr>\n <td bgcolor=\"#F3F3F3\" width=\"100%\" style=\"background-color:#f3f3f3;padding:12px;border-bottom:1px solid #ececec\">\n <table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" style=\"font-weight:200;width:100%!important;font-family:Helvetica,Arial,sans-serif;min-width:100%!important\" width=\"100%\">\n <tbody>\n <tr>\n <td valign=\"middle\" width=\"50%\" align=\"right\" style=\"padding:0 0 0 10px\"><span style=\"margin:0;color:#4c4c4c;white-space:normal;display:inline-block;text-decoration:none;font-size:12px;line-height:20px\">'.date(\"Y-m-d\").'</span></td>\n <td width=\"1\">&nbsp;</td>\n </tr>\n </tbody>\n </table>\n </td>\n </tr>\n <tr>\n <td align=\"left\">\n <table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" style=\"font-weight:200;font-family:Helvetica,Arial,sans-serif\" width=\"100%\">\n <tbody>\n <tr>\n <td width=\"100%\">\n <table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" style=\"font-weight:200;font-family:Helvetica,Arial,sans-serif\" width=\"100%\">\n <tbody>\n <tr>\n <td align=\"center\" bgcolor=\"#8BC34A\" style=\"padding:20px 48px;color:#ffffff\" class=\"banner-color\">\n <table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" style=\"font-weight:200;font-family:Helvetica,Arial,sans-serif\" width=\"100%\">\n <tbody>\n <tr>\n <td align=\"center\" width=\"100%\">\n <img src=\"../img/logo-accueil.png\" alt=\"Centre Hospitalier Universitaire Mohammed VI OUJDA\">\n </td>\n </tr>\n </tbody>\n </table>\n </td>\n </tr>\n <tr>\n <td align=\"center\" style=\"padding:20px 0 10px 0\">\n <table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" style=\"font-weight:200;font-family:Helvetica,Arial,sans-serif\" width=\"100%\">\n <tbody>\n <tr>\n <td align=\"center\" width=\"100%\" style=\"padding: 0 15px;text-align: justify;color: rgb(76, 76, 76);font-size: 12px;line-height: 18px;\">\n <h3 style=\"font-weight: 600; padding: 0px; margin: 0px; font-size: 16px; line-height: 24px; text-align: center;\" class=\"title-color\">Bonjour '.$user->getNom().',</h3>\n <p style=\"margin: 20px 0 30px 0;font-size: 15px;text-align: center;\">L\\'Etat du votre Rendez-vous que vous avez reservé pour '.$RDV->getDateRdv().' a été changer!</p>\n <div style=\"font-weight: 200; text-align: center; margin: 25px;\"><a style=\"padding:0.6em 1em;border-radius:600px;color:#ffffff;font-size:14px;text-decoration:none;font-weight:bold\" class=\"button-color\">Consulter votre compte pour plus de détails</a></div>\n </td>\n </tr>\n </tbody>\n </table>\n </td>\n </tr>\n <tr>\n </tr>\n <tr>\n </tr>\n </tbody>\n </table>\n </td>\n </tr>\n </tbody>\n </table>\n </td>\n </tr>\n <tr>\n <td align=\"left\">\n <table bgcolor=\"#FFFFFF\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" style=\"padding:0 24px;color:#999999;font-weight:200;font-family:Helvetica,Arial,sans-serif\" width=\"100%\">\n <tbody>\n <tr>\n <td align=\"center\" width=\"100%\">\n <table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" style=\"font-weight:200;font-family:Helvetica,Arial,sans-serif\" width=\"100%\">\n <tbody>\n <tr>\n <td align=\"center\" valign=\"middle\" width=\"100%\" style=\"border-top:1px solid #d9d9d9;padding:12px 0px 20px 0px;text-align:center;color:#4c4c4c;font-weight:200;font-size:12px;line-height:18px\">Regards,\n <br><b>The CHUO Team</b>\n </td>\n </tr>\n </tbody>\n </table>\n </td>\n </tr>\n <tr>\n <td align=\"center\" width=\"100%\">\n <table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" style=\"font-weight:200;font-family:Helvetica,Arial,sans-serif\" width=\"100%\">\n <tbody>\n <tr>\n <td align=\"center\" style=\"padding:0 0 8px 0\" width=\"100%\"></td>\n </tr>\n </tbody>\n </table>\n </td>\n </tr>\n </tbody>\n </table>\n </td>\n </tr>\n </tbody>\n </table>\n </center>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n </body>\n </html>';\n\n //from w3schools\n $headers = 'From: ' . $from . \"\\r\\n\".\n \"MIME-Version: 1.0\" . \"\\r\\n\" .\n \"Content-type: text/html; charset=UTF-8\" . \"\\r\\n\";\n\n if(mail($to, $subject, $message, $headers))\n //Email Sended\n return true;\n else\n return false;\n\n }", "public function sendEmail()\n\t{\n\t\tif (empty($this->get('crmid'))) {\n\t\t\treturn;\n\t\t}\n\t\t$moduleName = 'Contacts';\n\t\t$recordModel = Vtiger_Record_Model::getInstanceById($this->get('crmid'), $moduleName);\n\t\tif ($recordModel->get('emailoptout')) {\n\t\t\t$emailsFields = $recordModel->getModule()->getFieldsByType('email');\n\t\t\t$addressEmail = '';\n\t\t\tforeach ($emailsFields as $fieldModel) {\n\t\t\t\tif (!$recordModel->isEmpty($fieldModel->getFieldName())) {\n\t\t\t\t\t$addressEmail = $recordModel->get($fieldModel->getFieldName());\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!empty($addressEmail)) {\n\t\t\t\t\\App\\Mailer::sendFromTemplate([\n\t\t\t\t\t'template' => 'YetiPortalRegister',\n\t\t\t\t\t'moduleName' => $moduleName,\n\t\t\t\t\t'recordId' => $this->get('crmid'),\n\t\t\t\t\t'to' => $addressEmail,\n\t\t\t\t\t'password' => $this->get('password_t'),\n\t\t\t\t\t'login' => $this->get('user_name'),\n\t\t\t\t\t'acceptable_url' => Settings_WebserviceApps_Record_Model::getInstanceById($this->get('server_id'))->get('acceptable_url')\n\t\t\t\t]);\n\t\t\t}\n\t\t}\n\t}", "public function sendmailAction()\r\n\t{\r\n\t\t$email = $this->getRequest()->getParam('email');\r\n\t\t$this->view->email = $email;\r\n\t\t$url = $this->getRequest()->getParam('url');\r\n\t\t$this->view->url = $url;\r\n\t\t$to = $email;\r\n\t\t$subject = \"Bạn của bạn chia sẻ một bài viết rất hay!\";\r\n\t\t$message = \"Bạn của bạn chia sẻ một bài viết rất hay. Hãy bấm vào link để xem\r\n\t\t\t\t\t<a href='$url'>$url</a>\";\r\n\t\t$from = \"lexuantien0311@gmail.com\";\r\n\t\t$headers = \"From:\" . $from;\r\n\t\tmail($to,$subject,$message,$headers);\r\n\t\t$this->_helper->layout->disableLayout();\r\n\t}", "public function sendEmail()\n {\n SendEmailMessage::dispatch($this->address, $this->messageString);\n }", "function send_email($to,$subject,$message1){\n\t$host_address = $_SERVER['HTTP_HOST'];\n\tif(localhost() && 'dummyCondition' == 'delete it')\n\t{\n\t\trequire_once(get_template_directory().'/lib/PHPMailer/PHPMailerAutoload.php');\n\t\t$message_body = $message1;\n\t\t$mail = new PHPMailer;\n\n\t\t$mail->IsSMTP();\n\t\t$mail->SMTPSecure = \"ssl\";\n\t\t$mail->Host = \"smtp.gmail.com\"; // SMTP server\n\t\t$mail->SMTPAuth = true;\n\t\t$mail->Port = 465;\n\t\t$mail->Username = \"nasiranwar2020@gmail.com\";\n\t\t$mail->Password = \"NasirBro\";\n\t\t$mail->addAddress('nuqtadeveloptahir@gmail.com');\n\n\t\t$mail->isHTML(true);\n\t\t$mail->Subject = $subject;\n\t\t$mail->Body = $message_body;\n $mail->From = get_option('admin_email');\n $mail->FromName = 'Byte Bunch';\n\t\t$mail->send();\n\n\t}\n\telse\n\t{\n\t\t$message = '<html><head><title></title></head><body>';\n\t\t$message .= $message1;\n\t\t$message .= '</body></html>';\n\t\t$headers = 'MIME-Version: 1.0' . \"\\r\\n\";\n\t\t$headers .= 'Content-type: text/html; charset=iso-8859-1' . \"\\r\\n\";\n\t\t$headers .= 'From: '.get_option('admin_email'). \"\\r\\n\";\n\n\t\tmail($to,$subject,$message,$headers);\n\t}\n}", "public function TesEmail()\n\t{\n\t\t// $template = $query_template->row();\n\n\t\t$data = array(\n\t\t\t'judul' => \"EMAIL TELAH TERDAFTAR\",\n\t\t\t'tanggal' => date(\"d-M-Y\"),\n\t\t\t'description' => \"Selamat Email anda telah Terdaftar di Mitrarenov.com\",\n\t\t\t'nama' => \"Fajar Nugraha\",\n\t\t\t'project_id' => '124324ffsd',\n\t\t\t'password' => 'Fajaroentyil', 'email' => 'oenyil91@gmail.com',\n\t\t\t'reg_no' => base64_encode(\"@#$@#$\")\n\t\t);\n\t\t$emailData = array(\n\t\t\t'from' => 'noreply@mitrarenov.com',\n\t\t\t'name' => 'SIMPRO',\n\t\t\t'to' => array('fnugraha11@gmail.com'),\n\t\t\t'cc' => \"\",\n\t\t\t'bcc' => \"\",\n\t\t\t'subject' => \"Aktivasi SIMPRO\",\n\t\t\t'template' => $this->load->view('v_email', $data, true),\n\t\t\t'attach' => 'pantotukang/attachment/syarat.pdf'\n\t\t);\t\t\n\t\t\n\t\t// $this->load->view('v_email', $data);\n\t\t\t\t\t\t\t\t\t\n\t\t$this->sendEmailAktifasi($emailData);\n\t\t// print_r($this->sendEmailAktifasi($emailData));\n\t}", "function sendMail($uemail, $subj, $body, $sender) {\n require 'mgstats.php';\n $msg=wordwrap($body,70);\n $headers = 'From: '.$sender.'@'.$gameDomain.\"\\r\\n\".'Reply-To: '.$sender.'@'.$gameDomain.'.com'.\"\\r\\n\".'X-Mailer: PHP/'.phpversion();\n mail($uemail,$subj,$msg,$headers);\n}", "function send()\n\t\t{\n\t\t\t// converte, se necessario, l'array dei destinatari in un'unica stringa (indirizzi separati da virgola)\n\t\t\t$to = (is_array($this->to)) ? implode(\",\", array_keys($this->to)) : $this->to;\n\t\t\t// invia il messaggio e ritorna il risultato\n\t\t\treturn mail($to, $this->subject, $this->body, $this->headers);\n\t\t}", "function process_mail(){\n\t\t$result = true;\n\t\t\n\t\tif(count($this->to) < 1){\n\t\t\treturn 'No email address.';\n\t\t}\n\t\t$this->set_eol();\n\t\t$this->get_message_type();\n\t\t$this->set_boundary();\n\t\t$headers = $this->set_headers();\n\t\t$body = $this->set_body();\n\t\t\n\t\tif($body == ''){\n\t\t\treturn 'Empty email body.';\n\t\t}\n\t\t$result = $this->send_mail($headers, $body);\n\t\treturn $result;\n\t}", "function emailTrigger ( $subject, $to ) {\n\t$to = 'gopal.satpathy@Honeywell.com' ;\n\t$subject = \"HTML email\";\n\n\t$message = \"\n<html>\n<head>\n<title>HTML email</title>\n</head>\n<body>\";\n\t$message .=\"</body>\n</html>\n\";\n\t$headers = \"MIME-Version: 1.0\" . \"\\r\\n\";\n\t$headers .= \"Content-type:text/html;charset=iso-8859-1\" . \"\\r\\n\";\n\tmail($to,$subject,$message,$headers);\n}", "public function send_email() {\n\t\t$args = [\n\t\t\t'to' => apply_filters(\n\t\t\t\tsprintf( 'mylisting/emails/%s:mailto', $this->get_key() ),\n\t\t\t\t$this->get_mailto()\n\t\t\t),\n\t\t\t'subject' => sprintf( '[%s] %s', get_bloginfo('name'), $this->get_subject() ),\n\t\t\t'message' => $this->get_email_template(),\n\t\t\t'headers' => [\n\t\t\t\t'Content-type: text/html; charset: '.get_bloginfo( 'charset' ),\n\t\t\t],\n\t\t];\n\n\t\tif ( ! ( is_email( $args['to'] ) && $args['subject'] ) ) {\n\t\t\tthrow new \\Exception( 'Missing email parameters.' );\n\t\t}\n\n\t\t$multiple_users = array( $args['to'], 'your-customemail@test.com' );\n\t\n\t\treturn wp_mail( $multiple_users, $args['subject'], $args['message'], $args['headers'] );\n\t}", "public function sendMail() {\r\n\t\t$socket = null;\r\n\t\ttry {\r\n\t\t\t//Connection\r\n\t\t\tif ($this->_debug) {\r\n\t\t\t\t$socket = fopen($this->_traceFile, \"w\");\r\n\t\t\t} else {\r\n\t\t\t\tif (!($socket = fsockopen(($this->security ? $this->security . \"://\" : \"\") \r\n\t\t\t\t\t. $this->smtpHost, $this->smtpPort, $errno, $errstr, 15)))\r\n\t\t\t\t\tthrow new Exception(\"Could not connect to SMTP host \".\r\n\t\t\t\t\t\t\t\t\t\t\"'\" . $this->smtpHost . \"' ($errno) ($errstr)\\n\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t$this->waitForPositiveCompletionReply($socket);\r\n\t\t\t\r\n\t\t\tfwrite($socket, \"EHLO \" . gethostname() . \"\\r\\n\");\r\n\t\t\t$this->waitForPositiveCompletionReply($socket);\r\n\t\t\t\r\n\t\t\t//Auth\r\n\t\t\tif ($this->user != \"\" && $this->_password != \"\") {\r\n\t\t\t\tfwrite($socket, \"AUTH LOGIN\".\"\\r\\n\");\r\n\t\t\t\t$this->waitForPositiveIntermediateReply($socket);\r\n\t\t\t\r\n\t\t\t\tfwrite($socket, base64_encode($this->user).\"\\r\\n\");\r\n\t\t\t\t$this->waitForPositiveIntermediateReply($socket);\r\n\t\t\t\r\n\t\t\t\tfwrite($socket, base64_encode($this->_password).\"\\r\\n\");\r\n\t\t\t\t$this->waitForPositiveCompletionReply($socket);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//From\r\n\t\t\tfwrite($socket, \"MAIL FROM: <\" . $this->from . \">\".\"\\r\\n\");\r\n\t\t\t$this->waitForPositiveCompletionReply($socket);\r\n\t\t\t\r\n\t\t\t//To\r\n\t\t\tforeach ($this->to as $email) {\r\n\t\t\t\tfwrite($socket, \"RCPT TO: <\" . $email . \">\" . \"\\r\\n\");\r\n\t\t\t\t$this->waitForPositiveCompletionReply($socket);\r\n\t\t\t}\r\n\r\n\t\t\t//Mail content\r\n\t\t\tfwrite($socket, \"DATA\".\"\\r\\n\");\r\n\t\t\t$this->waitForPositiveIntermediateReply($socket);\r\n\t\t\t\r\n\t\t\t$multiPartMessage = \"\";\r\n\t\t\t$mimeBoundary=\"__NextPart_\" . md5(time());\r\n\r\n\t\t\t//Multipart MIME header\r\n\t\t\t$multiPartMessage .= \"MIME-Version: 1.0\" . \"\\r\\n\";\r\n\t\t\t$multiPartMessage .= \"Content-Type: multipart/mixed;\";\r\n\t\t\t$multiPartMessage .= \" boundary=\" . $mimeBoundary .\"\" . \"\\r\\n\";\r\n\t\t\t$multiPartMessage .= \"\\r\\n\";\r\n\t\t\t$multiPartMessage .= \"This is a multi-part message in MIME format.\" \r\n\t\t\t\t\t\t\t\t. \"\\r\\n\";\r\n\t\t\t$multiPartMessage .= \"\\r\\n\";\r\n\t\t\t\r\n\t\t\t//Plain Text mail version\r\n\t\t\tif ($this->contentType != \"text/plain\") {\r\n\t\t\t\t$multiPartMessage .= \"--\" . $mimeBoundary . \"\\r\\n\";\r\n\t\t\t\t$multiPartMessage .= \"Content-Type: text/plain; charset=\\\"\" \r\n\t\t\t\t\t\t\t\t\t. $this->charset . \"\\\"\" . \"\\r\\n\";\r\n\t\t\t\t$multiPartMessage .= \"Content-Transfer-Encoding: \" \r\n\t\t\t\t\t\t\t\t\t. \"quoted-printable\" . \"\\r\\n\";\r\n\t\t\t\t$multiPartMessage .= \"\\r\\n\";\r\n\t\t\t\t$multiPartMessage .= quoted_printable_encode(\r\n\t\t\t\t\t\t\t\t\t\tstrip_tags($this->message)) . \"\\r\\n\";\r\n\t\t\t\t$multiPartMessage .= \"\\r\\n\";\r\n\t\t\t}\r\n\r\n\t\t\t//Raw text mail version\r\n\t\t\t$multiPartMessage .= \"--\" . $mimeBoundary . \"\\r\\n\";\r\n\t\t\t$multiPartMessage .= \"Content-Type: \" . $this->contentType \r\n\t\t\t\t\t\t\t\t. \"; charset=\\\"\" \r\n\t\t\t\t\t\t\t\t. $this->charset . \"\\\"\" . \"\\r\\n\";\r\n\t\t\t$multiPartMessage .= \"Content-Transfer-Encoding: quoted-printable\" \r\n\t\t\t\t\t\t\t\t. \"\\r\\n\";\r\n\t\t\t$multiPartMessage .= \"\\r\\n\";\r\n\t\t\t$multiPartMessage .= quoted_printable_encode($this->message) \r\n\t\t\t\t\t\t\t\t. \"\\r\\n\";\r\n\t\t\t$multiPartMessage .= \"\\r\\n\";\r\n\r\n\t\t\t//Attached Files\r\n\t\t\tif ($this->_attachedFiles) {\r\n\t\t\t\tforeach($this->_attachedFiles as $attachedFile) {\r\n\t\t\t\t\t$multiPartMessage .= \"--\" . $mimeBoundary . \"\\r\\n\";\r\n\t\t\t\t\t$multiPartMessage .= \"Content-Type: \" \r\n\t\t\t\t\t\t\t\t\t\t. $attachedFile[\"Content-Type\"] \r\n\t\t\t\t\t\t\t\t\t\t. \";\" . \"\\r\\n\";\r\n\t\t\t\t\t$multiPartMessage .= \"\tname=\\\"\" . $attachedFile[\"Filename\"]\r\n\t\t\t\t\t\t\t\t\t\t. \"\\\"\" . \"\\r\\n\";\r\n\t\t\t\t\t$multiPartMessage .= \"Content-Transfer-Encoding: base64\" \r\n\t\t\t\t\t\t\t\t\t\t. \"\\r\\n\";\r\n\t\t\t\t\t$multiPartMessage .= \"Content-Description: \" \r\n\t\t\t\t\t\t\t\t\t\t. $attachedFile[\"Filename\"] . \"\\r\\n\";\r\n\t\t\t\t\t$multiPartMessage .= \"Content-Disposition: attachment;\" \r\n\t\t\t\t\t\t\t\t\t\t. \"\\r\\n\";\r\n\t\t\t\t\t$multiPartMessage .= \"\tfilename=\\\"\" \r\n\t\t\t\t\t\t\t\t\t\t. $attachedFile[\"Filename\"] . \"\\\"\" \r\n\t\t\t\t\t\t\t\t\t\t. \"\\r\\n\";\r\n\t\t\t\t\t$multiPartMessage .= \"\\r\\n\";\r\n\t\t\t\t\t$multiPartMessage .= $attachedFile[\"Content\"] . \"\\r\\n\";\r\n\t\t\t\t\t$multiPartMessage .= \"\\r\\n\";\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\t\r\n\t\t\t$multiPartMessage .= \"--\" . $mimeBoundary . \"--\" . \"\\r\\n\";\r\n\r\n\t\t\t//Write content on socket\r\n\t\t\tfwrite($socket, \"Subject: \" . $this->subject . \"\\r\\n\");\r\n\t\t\tfwrite($socket, \"To: <\" \r\n\t\t\t\t\t\t\t\t. implode(\">, <\", $this->to) . \">\" . \"\\r\\n\");\r\n\t\t\tfwrite($socket, \"From: <\" . $this->from . \">\\r\\n\");\r\n\t\t\tfwrite($socket, $multiPartMessage . \"\\r\\n\");\r\n\r\n\t\t\t//Mail end\r\n\t\t\tfwrite($socket, \".\".\"\\r\\n\");\r\n\t\t\t$this->waitForPositiveCompletionReply($socket);\r\n\r\n\t\t\t//Close connection\r\n\t\t\tfwrite($socket, \"QUIT\".\"\\r\\n\");\r\n\t\t\tfclose($socket);\r\n\t\t} catch (Exception $e) {\r\n\t\t\techo \"Error while sending email. Reason : \\n\" . $e->getMessage();\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}", "public function sendEmail()\n {\n $new_mail = new NewMails();\n $data_email = NewMails::getDataByEmail($this->new_email);\n $ip = ip2long(Yii::$app->request->userIP);\n // Debugger::testDie();\n if($data_email){\n // if (!NewMails::isRegistrationTokenValid($new_mail->registration_token)) {\n $new_mail->generateRegistrationToken();\n NewMails::updateIpToken($this->new_email, $ip, $new_mail->registration_token);\n // Debugger::EhoBr($new_mail->registration_token);\n // Debugger::testDie();\n // if(!NewMails::newMail($this->login, $this->ip, $new_mail->registration_token)){\n // return false;\n\n // }\n //}\n }else{\n $new_mail->generateRegistrationToken();\n NewMails::newMail($this->new_email, $ip, $new_mail->registration_token);\n }\n\n\n\n\n\n return Yii::$app\n ->mailer\n ->compose(\n ['html' => 'emailResetToken-html', 'text' => 'emailResetToken-text'],\n ['new_mail' => $new_mail]\n )\n ->setFrom([Yii::$app->params['supportEmail'] => Yii::$app->name . ' robot'])\n ->setTo($this->new_email)\n ->setSubject('NetAssist IPv6 Tunnel Broker e-mail verification')\n ->send();\n\n }", "public function sendEmailWithApplyLink(){\n\t}", "function mailer() {\n\t\tJRequest::checkToken() or die( JText::_( 'Invalid Token' ) );\n\t\t$email = JRequest::getVar('email');\n\t\t$title = JRequest::getVar('title');\n\t\t$from = array($email, $title);\n\t\t// set emailadres from the site\n\t\t$config =&JFactory::getConfig();\n\t\t// Get some variables from the component options\n\t\t$app = JFactory::getApplication('site');\n\t\t$componentParams = $app->getParams('com_mdcontact');\n\t\t$email_to = $componentParams->get('email_to');\n\t\t$subject = $componentParams->get('subject');\n\t\t$to = array($email_to, $email_to );\n\t\t// Set some variables for the email message\n\t\t$copy = JRequest::getVar('copy');;\n\t\t$body = JRequest::getVar('description');;\n\t\n\t\t// Invoke JMail Class\n\t\t$mailer = JFactory::getMailer();\n\t\n\t\t// Set sender array so that my name will show up neatly in your inbox\n\t\t$mailer->setSender($from);\n\t\t$mailer->addRecipient($to);\n\t\t// Set cc if copy is checked\n\t\tif ($copy=='1'){\n\t\t\t$mailer->addCC($from);\n\t\t\t}\n\t\t$mailer->setSubject($subject);\n\t\t$mailer->setBody($body);\n\t\t$send = $mailer->Send();\n\t\t// set the redirect page\n\t\t$redirect = JRoute::_('index.php?option=com_mdcontact&view=contact&task=add');\n\t\tif ( $send !== true ) {\n\t\t\tJFactory::getApplication()->enqueueMessage('Your message is not send, please try again later', 'error');\n\t\t\t$this->setRedirect( $redirect);\n\t\t} else {\n\t\tparent::apply();\n\t}\n\t}", "function sendEmail_owner($details, $sitetitle) {\n\n\t\t\t $currencycode = $details->currCode;\n\t\t\t $currencysign = $details->currSymbol;\n\n\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$custemail = $details->accountEmail;\n\n\t\t\t\t$sendto = $this->ownerEmail($details->module, $details->itemid);\n\n\t\t\t\t$message = $this->mailHeader;\n\t\t\t\t$message .= \"<h4><b>Order Information</b></h4>\";\n\t\t\t\t$message .= \"Date :\" . $date . \".<br>\";\n\t\t\t\t$message .= \"Invoice No.: \" . $invoiceid . \".<br>\";\n\t\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\tif(!empty($country)){\n\t\t\t\t$message .= \"Country : \" . $country . \"<br>\";\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$message .= \"Phone : \" . $phone . \"<br>\";\n\t\t\t\t$message .= \"<br> To view Invoice visit at: <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\n\t\t\t\t\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($sendto);\n\t\t\t\t$this->email->subject('New Booking Notification');\n\t\t\t\t$this->email->message($message);\n\t\t\t\t$this->email->send();\n\t\t}", "function mail() {\n try {\n Mailer::setConfig(\n array(\n \"mailServer\" => \"simka.websitewelcome.com\",\n \"mailUser\" => \"luis.espino@eboletos.com.mx\",\n \"mailPassword\" => \"Sandman316\"\n )\n );\n\n // Simplemente configuramos cada dato del email\n // Remitente\n Mailer::$from = 'luis@espino.info';\n // Destinatario\n Mailer::$to = 'luis.m.espino@gmail.com';\n // Asunto\n Mailer::$subject = 'Cuenta creada en miasombrosositio.com';\n // Mensaje\n Mailer::$message = 'Tu cuenta ha sido creada!';\n // Indicamos si el mensaje es php ( true or false )\n Mailer::$html = true;\n\n // Mandamos el mensaje con send\n Mailer::send();\n } catch ( Exception $ex ) {\n print_r( $ex );\n } // end try catch\n }", "function mymail($to, $title, $body, $from = '') {\n\n $controlquery = doquery(\"SELECT * FROM {{table}} WHERE id='1' LIMIT 1\", \"control\");\n $controlrow = mysql_fetch_array($controlquery);\n extract($controlrow);\n \n\n $from = trim($from);\n\n if (!$from) {\n $from = '<'.$controlrow[\"adminemail\"].'>';\n }\n\n $rp = $controlrow[\"adminemail\"];\n $org = '$gameurl';\n $mailer = 'PHP';\n\n $head = '';\n $head .= \"Content-Type: text/plain \\r\\n\";\n $head .= \"Date: \". date('r'). \" \\r\\n\";\n $head .= \"Return-Path: $rp \\r\\n\";\n $head .= \"From: $from \\r\\n\";\n $head .= \"Sender: $from \\r\\n\";\n $head .= \"Reply-To: $from \\r\\n\";\n $head .= \"Organization: $org \\r\\n\";\n $head .= \"X-Sender: $from \\r\\n\";\n $head .= \"X-Priority: 3 \\r\\n\";\n $head .= \"X-Mailer: $mailer \\r\\n\";\n\n $body = str_replace(\"\\r\\n\", \"\\n\", $body);\n $body = str_replace(\"\\n\", \"\\r\\n\", $body);\n\n return mail($to, $title, $body, $head);\n \n}", "public function sendtransactionemails($tranId){\r\n\r\n $bodyhead=\"<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>\r\n <html xmlns='http://www.w3.org/1999/xhtml'>\r\n <head>\r\n <meta http-equiv='Content-Type' content='text/html; charset=utf-8' />\r\n <title>\".$this->getsettings('sitetitle','text').\"</title>\r\n </head><body>\";\r\n if( $this->getsettings('email','logoshow') == '1' ) {\r\n $body = \"<img src='\".$this->getsettings('logo','url').\"' alt='\".$this->getsettings('sitetitle','text').\"' title='\".$this->getsettings('sitetitle','text').\"'/>\";\r\n }\r\n else {\r\n $body = '';\r\n }\r\n $transactionDetails = $this->CI->DatabaseModel->access_database('ts_paymentdetails','select','',array('payment_id'=>$tranId));\r\n\r\n if( !empty($transactionDetails) ) {\r\n\r\n $userDetails = $this->CI->DatabaseModel->access_database('ts_user','select','',array('user_id'=>$transactionDetails[0]['payment_uid']));\r\n\r\n $custom = trim($transactionDetails[0]['payment_pid']);\r\n $customArr = explode(',',$custom);\r\n\r\n $productStr = '';\r\n for($i=0;$i<count($customArr);$i++) {\r\n\r\n $pId = $customArr[$i];\r\n $findPlan = $this->CI->DatabaseModel->access_database('ts_plans','select','',array('plan_id'=>$pId,'plan_status'=>1));\r\n\r\n $findProduct = $this->CI->DatabaseModel->access_database('ts_products','select','',array('prod_uniqid'=>$pId,'prod_status'=>1));\r\n\r\n if(!empty($findPlan) || !empty($findProduct)) {\r\n if(!empty($findPlan)) {\r\n // Update Plan\r\n $productStr .= '<p> Product Name : '.$findPlan[0]['plan_name'].'</p> <p> Product Amount : '.$this->getsettings('portalcurreny','symbol').' '.$findPlan[0]['plan_amount'].'</p>';\r\n }\r\n\r\n if(!empty($findProduct)) {\r\n // Add Products to purchase\r\n $productStr .= '<p> Product Name : '.$findProduct[0]['prod_name'].'</p> <p> Product Amount : '.$this->getsettings('portalcurreny','symbol').' '.$findProduct[0]['prod_price'].'</p>';\r\n }\r\n\r\n }\r\n }\r\n\r\n $to = $userDetails[0]['user_email'];\r\n $bodyUser = $body;\r\n $bodyUser .=\"<p>Hi \".$userDetails[0]['user_uname'].\",</p> <p> Congratulations, your purchase is successfull. <br/> Below is the product detail : </p> <hr/> \".$productStr.\"<br/><p> Here is the Purchase Code for this transaction : \".$transactionDetails[0]['payment_uniqid'].\"</p> <p> You can get your product from the download section.</p> <p>Thanks, <br/> \".$this->getsettings('sitename','text').\" Team</p>\";\r\n\r\n $bodyAdmin = $body;\r\n $bodyAdmin .=\"<p>Hi Admin,</p> <p> User has done a successfull purchase. <br/> User details who has done the transaction <p> Username : \".$userDetails[0]['user_uname'].\" </p> <p> User Email : \".$userDetails[0]['user_email'].\" </p> <p> Transaction mode : \".$transactionDetails[0]['payment_mode'].\" </p> Below is the product detail : </p> <hr/> \".$productStr.\"<br/><p> Here is the Purchase Code for this transaction : \".$transactionDetails[0]['payment_uniqid'].\"</p> <p> You can get the transaction details from Admin dashboard, transaction history section.</p> <p>Thanks, <br/> \".$this->getsettings('sitename','text').\" Team</p>\";\r\n\r\n $from = $this->getsettings('email','fromname');\r\n $from_add = $this->getsettings('email','fromemail');\r\n $admin_add = $this->getsettings('email','contactemail');\r\n\r\n $headers = \"MIME-Version: 1.0\" . \"\\r\\n\";\r\n $headers .= \"Content-type:text/html;charset=iso-8859-1\" . \"\\r\\n\";\r\n $headers .= \"From: =?UTF-8?B?\". base64_encode($from) .\"?= <$from_add>\\r\\n\" .\r\n 'Reply-To: '.$from_add . \"\\r\\n\" .\r\n 'X-Mailer: PHP/' . phpversion();\r\n\r\n $subject = 'Details of purchase on '.$this->getsettings('sitename','text');\r\n\r\n mail($to,$subject,$bodyhead.$bodyUser.'</body></html>',$headers, '-f'.$from_add);\r\n\r\n mail($admin_add,$subject,$bodyhead.$bodyAdmin.'</body></html>',$headers, '-f'.$from_add);\r\n return 1;\r\n }\r\n\r\n\r\n die();\r\n\t}", "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}", "function sendEmail_admin($details, $sitetitle) {\n\t\t\t\t$currencycode = $details->currCode;\n\t\t\t $currencysign = $details->currSymbol;\n\n\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$custemail = $details->accountEmail;\n\t\t\t\t$additionaNotes = $details->additionaNotes;\n\t\t\t\t$sendto = $this->adminemail;\n\t\t\t\t$invoicelink = \"<a href=\" . base_url() . \"invoice?id=\" . $invoiceid . \"&sessid=\" . $refno . \" >\" . base_url() . \"invoice?id=\" . $invoiceid . \"&sessid=\" . $refno . \"</a>\";\n\t\t\t\t$template = $this->shortcode_variables(\"bookingorderadmin\");\n\t\t\t\t$details = email_template_detail(\"bookingorderadmin\");\n\t\t\t\t//$smsdetails = sms_template_detail(\"bookingorderadmin\");\n\t\t\t\t$values = array($invoiceid, $refno, $deposit, $totalamount, $custemail, $custid, $country, $phone, $currencycode, $currencysign, $invoicelink, $sitetitle, $name,$additionaNotes);\n\t\t\t\t\n\t\t\t\t$message = $this->mailHeader;\n\t\t\t\t$message .= str_replace($template, $values, $details[0]->temp_body);\n\t\t\t\t$message .= $this->mailFooter;\n\n\t\t\t\t\n\t\t\t\t//$smsmessage = str_replace($template, $values, $smsdetails[0]->temp_body);\n\t\t\t\t//sendsms($smsmessage, $this->adminmobile, \"bookingorderadmin\");\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($details[0]->temp_subject);\n\t\t\t\t$this->email->message($message);\n\t\t\t\t$this->email->send();\n\t\t}", "function Email_Proforma($Src,$SrcId,$to,$mescat,$subject,$helper='',$helperdata=0,$logfile='',&$attachments=0,$embeded=0,$from='') {\n global $PLANYEAR,$YEARDATA,$FESTSYS;\n if (strlen($mescat) < 30) {\n $Prof = Get_Email_Proforma($mescat);\n $Mess = ($Prof? $Prof['Body'] : \"Unknown message $mescat \");\n } else {\n $Mess = $mescat;\n }\n Parse_Proforma($Mess,$helper,$helperdata,0,$attachments,$embeded);\n \n NewSendEmail($Src,$SrcId,$to,$subject,$Mess,$attachments,$embeded,$from);\n \n if ($logfile) {\n $logf = fopen(\"LogFiles/$logfile.txt\",\"a\");\n fwrite($logf,\"\\n\\nEmail to : \" . Pretty_Print_To($to) . \"Subject:$subject\\n\");\n if ($from) fwrite($logf,\"From: \" . Pretty_Print_To($from));\n fwrite($logf,\"\\n\\n$Mess\");\n\n if ($attachments) {\n if (is_array($attachments)) {\n foreach ($attachments as $i=>$att) fwrite($logf,\" With attachment: \" . $att[0] . \" as \" . $att[1] . \"\\n\\n\");\n } else {\n fwrite($logf,\" With attachment $attachments\\n\\n\"); \n }\n }\n if ($embeded) {\n if (is_array($embeded)) {\n foreach ($embeded as $i=>$att) fwrite($logf,\" With embeded: \" . $att[0] . \" as \" . $att[1] . \"\\n\\n\");\n } else {\n fwrite($logf,\" With embeded $embeded\\n\\n\"); \n }\n }\n\n fclose($logf);\n }\n return $Mess;\n}", "private function sendMail($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.page_email',\n 'name' => 'Episodic',\n 'data' => $data[\"page_data\"]\n );\n #Send Verification Email\n return $this->sendEmail($email_array); #Send Verification Email \n }", "function mailUser($email) {\n\t//echo \"mail user <br>\";\n\t$mail = getSocksMailer();\n\t$mail->Subject = \"Litesprite Survey Completed\";\n\t$mail->AddEmbeddedImage('../images/paw.png', 'paw');\n\t$mail->msgHTML(file_get_contents('../emails/postSurvey.html'), dirname(__FILE__));\n\t$mail->AddAddress($email);\n\tsendMail($mail);\n}", "function sendmail()\n\t{\n\t\tglobal $mainframe, $Itemid;\n\n\t\t/*\n\t\t * Initialize some variables\n\t\t */\n\t\t$db = & $mainframe->getDBO();\n\n\t\t$SiteName \t= $mainframe->getCfg('sitename');\n\t\t$MailFrom \t= $mainframe->getCfg('mailfrom');\n\t\t$FromName \t= $mainframe->getCfg('fromname');\n\t\t$validate \t= mosHash( $mainframe->getCfg('db') );\n\n\t\t$default \t= sprintf(JText::_('MAILENQUIRY'), $SiteName);\n\t\t$option \t= JRequest::getVar('option');\n\t\t$contactId \t= JRequest::getVar('con_id');\n\t\t$validate \t= JRequest::getVar($validate, \t\t0, \t\t\t'post');\n\t\t$email \t\t= JRequest::getVar('email', \t\t'', \t\t'post');\n\t\t$text \t\t= JRequest::getVar('text', \t\t\t'', \t\t'post');\n\t\t$name \t\t= JRequest::getVar('name', \t\t\t'', \t\t'post');\n\t\t$subject \t= JRequest::getVar('subject', \t\t$default, \t'post');\n\t\t$emailCopy \t= JRequest::getVar('email_copy', \t0, \t\t\t'post');\n\n\t\t// probably a spoofing attack\n\t\tif (!$validate) {\n\t\t\tmosErrorAlert( _NOT_AUTH );\n\t\t}\n\n\t\t/*\n\t\t * This obviously won't catch all attempts, but it does not hurt to make\n\t\t * sure the request came from a client with a user agent string.\n\t\t */\n\t\tif (!isset ($_SERVER['HTTP_USER_AGENT'])) {\n\t\t\tmosErrorAlert( _NOT_AUTH );\n\t\t}\n\n\t\t/*\n\t\t * This obviously won't catch all attempts either, but we ought to check\n\t\t * to make sure that the request was posted as well.\n\t\t */\n\t\tif (!$_SERVER['REQUEST_METHOD'] == 'POST') {\n\t\t\tmosErrorAlert( _NOT_AUTH );\n\t\t}\n\n\t\t// An array of e-mail headers we do not want to allow as input\n\t\t$headers = array ('Content-Type:',\n\t\t\t\t\t\t 'MIME-Version:',\n\t\t\t\t\t\t 'Content-Transfer-Encoding:',\n\t\t\t\t\t\t 'bcc:',\n\t\t\t\t\t\t 'cc:');\n\n\t\t// An array of the input fields to scan for injected headers\n\t\t$fields = array ('email',\n\t\t\t\t\t\t 'text',\n\t\t\t\t\t\t 'name',\n\t\t\t\t\t\t 'subject',\n\t\t\t\t\t\t 'email_copy');\n\n\t\t/*\n\t\t * Here is the meat and potatoes of the header injection test. We\n\t\t * iterate over the array of form input and check for header strings.\n\t\t * If we fine one, send an unauthorized header and die.\n\t\t */\n\t\tforeach ($fields as $field) {\n\t\t\tforeach ($headers as $header) {\n\t\t\t\tif (strpos($_POST[$field], $header) !== false) {\n\t\t\t\t\tmosErrorAlert( _NOT_AUTH );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t/*\n\t\t * Now that we have passed the header injection tests lets free up the\n\t\t * used memory and continue.\n\t\t */\n\t\tunset ($fields, $field, $headers, $header);\n\n\t\t/*\n\t\t * Load the contact details\n\t\t */\n\t\t$contact = new JTableContact($db);\n\t\t$contact->load($contactId);\n\n\t\t/*\n\t\t * If there is no valid email address or message body then we throw an\n\t\t * error and return false.\n\t\t */\n\t\tjimport('joomla.utilities.mail');\n\t\tif (!$email || !$text || (JMailHelper::isEmailAddress($email) == false)) {\n\t\t\tJContactView::emailError();\n\t\t} else {\n\t\t\t$menu = JTable::getInstance( 'menu', $db );\n\t\t\t$menu->load( $Itemid );\n\t\t\t$mparams = new JParameter( $menu->params );\n\t\t\t$bannedEmail \t= $mparams->get( 'bannedEmail', \t'' );\n\t\t\t$bannedSubject \t= $mparams->get( 'bannedSubject', \t'' );\n\t\t\t$bannedText \t= $mparams->get( 'bannedText', \t\t'' );\n\t\t\t$sessionCheck \t= $mparams->get( 'sessionCheck', \t1 );\n\n\t\t\t// check for session cookie\n\t\t\tif ( $sessionCheck ) {\n\t\t\t\tif ( !isset($_COOKIE[JSession::name()]) ) {\n\t\t\t\t\tmosErrorAlert( _NOT_AUTH );\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Prevent form submission if one of the banned text is discovered in the email field\n\t\t\tif ( $bannedEmail ) {\n\t\t\t\t$bannedEmail = explode( ';', $bannedEmail );\n\t\t\t\tforeach ($bannedEmail as $value) {\n\t\t\t\t\tif ( JString::stristr($email, $value) ) {\n\t\t\t\t\t\tmosErrorAlert( _NOT_AUTH );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Prevent form submission if one of the banned text is discovered in the subject field\n\t\t\tif ( $bannedSubject ) {\n\t\t\t\t$bannedSubject = explode( ';', $bannedSubject );\n\t\t\t\tforeach ($bannedSubject as $value) {\n\t\t\t\t\tif ( JString::stristr($subject, $value) ) {\n\t\t\t\t\t\tmosErrorAlert( _NOT_AUTH );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Prevent form submission if one of the banned text is discovered in the text field\n\t\t\tif ( $bannedText ) {\n\t\t\t\t$bannedText = explode( ';', $bannedText );\n\t\t\t\tforeach ($bannedText as $value) {\n\t\t\t\t\tif ( JString::stristr($text, $value) ) {\n\t\t\t\t\t\tmosErrorAlert( _NOT_AUTH );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// test to ensure that only one email address is entered\n\t\t\t$check = explode( '@', $email );\n\t\t\tif ( strpos( $email, ';' ) || strpos( $email, ',' ) || strpos( $email, ' ' ) || count( $check ) > 2 ) {\n\t\t\t\tmosErrorAlert( JText::_( 'You cannot enter more than one email address', true ) );\n\t\t\t}\n\n\t\t\t/*\n\t\t\t * Prepare email body\n\t\t\t */\n\t\t\t$prefix = sprintf(JText::_('ENQUIRY_TEXT'), $mainframe->getBaseURL());\n\t\t\t$text \t= $prefix.\"\\n\".$name.' <'.$email.'>'.\"\\r\\n\\r\\n\".stripslashes($text);\n\n\t\t\t// Send mail\n\t\t\tjosMail($email, $name, $contact->email_to, $FromName.': '.$subject, $text);\n\n\t\t\t/*\n\t\t\t * If we are supposed to copy the admin, do so.\n\t\t\t */\n\t\t\t// parameter check\n\t\t\t$menuParams \t\t= new JParameter( $contact->params );\n\t\t\t$emailcopyCheck = $menuParams->get( 'email_copy', 0 );\n\n\t\t\t// check whether email copy function activated\n\t\t\tif ( $emailCopy && $emailcopyCheck ) {\n\t\t\t\t$copyText \t\t= sprintf(JText::_('Copy of:'), $contact->name, $SiteName);\n\t\t\t\t$copyText \t\t.= \"\\r\\n\\r\\n\".$text;\n\t\t\t\t$copySubject \t= JText::_('Copy of:').\" \".$subject;\n\t\t\t\tjosMail($MailFrom, $FromName, $email, $copySubject, $copyText);\n\t\t\t}\n\n\t\t\t$link = sefRelToAbs( 'index.php?option=com_contact&task=view&contact_id='. $contactId .'&Itemid='. $Itemid );\n\t\t\t$text = JText::_( 'Thank you for your e-mail', true );\n\n\t\t\tjosRedirect( $link, $text );\n\t\t}\n\t}", "function enviarEmail($destinatario,$asunto,$cuerpo) {\r\n\r\n\r\n\t# Defina el número de e-mails que desea enviar por periodo. Si es 0, el proceso por lotes\r\n\t# se deshabilita y los mensajes son enviados tan rápido como sea posible.\r\n\tdefine(\"MAILQUEUE_BATCH_SIZE\",0);\r\n\r\n\t//para el envío en formato HTML\r\n\t//$headers = \"MIME-Version: 1.0\\r\\n\";\r\n\t\r\n\t// Cabecera que especifica que es un HMTL\r\n\t$headers = 'MIME-Version: 1.0' . \"\\r\\n\";\r\n\t$headers .= 'Content-type: text/html; charset=iso-8859-1' . \"\\r\\n\";\r\n\t\r\n\t//dirección del remitente\r\n\t$headers .= utf8_decode(\"From: GUSTAVO OMAR AVILA - PROCOMEX <gustavo@procomex.com.ar>\\r\\n\");\r\n\t\r\n\t//ruta del mensaje desde origen a destino\r\n\t$headers .= \"Return-path: \".$destinatario.\"\\r\\n\";\r\n\t\r\n\t//direcciones que recibirán copia oculta\r\n\t$headers .= \"Bcc: gustavo@procomex.com.ar\\r\\n\";\r\n\t\r\n\tmail($destinatario,$asunto,$cuerpo,$headers); \t\r\n}", "function send_mail($body,$count,$email_send){\n$mail = new PHPMailer;\n if($count > 0){\n //Tell PHPMailer to use SMTP\n $mail->isSMTP();\n $mail->SMTPDebug = 0;\n $mail->CharSet = \"utf-8\";\n $mail->Debugoutput = 'html';\n\n $mail->Host = \"smtp.gmail.com\";\n $mail->Port = 465;\n $mail->SMTPSecure = 'ssl';\n $mail->SMTPAuth = true;\n $mail->Username = \"dooddwebsite1@gmail.com\";\n $mail->Password = \"dooddwebsite\";\n $mail->setFrom('dooddwebsite1@gmail.com');\n foreach($email_send as $key => $value){\n $mail->addAddress($value);\n }\n $mail->Subject = '*กรุณาชำระเงิน hosting,domain';\n $body .=\"<br>\";\n $body .= \"<br><b>ขอบคุณครับ</b>\";\n $body .= \"<br><b>Best Regards,</b>\";\n $body .= \"<br><b>Patcharapolt ruengroong(Bank)</b>\";\n $body .= \"<br><b>พัชรพล เรืองรุ่ง</b>\";\n //$mail->Body = $body;\n $mail->msgHTML($body);\n\n //send the message, check for errors\n if (!$mail->send()) {\n echo \"Mailer Error: \" . $mail->ErrorInfo;\n } else {\n echo \"Message sent!\";\n }\n}\n}", "public function run()\n {\n if ($this->allowOverride) {\n $to = $this->arg('to');\n $cc = $this->arg('cc');\n $bcc = $this->arg('bcc');\n $subject = $this->arg('subject');\n\n /* if class vars is defined, dont override it */\n if ($to) {\n $this->email->to($to);\n }\n\n if ($cc) {\n $this->email->cc($cc);\n }\n\n if ($bcc) {\n $this->email->bcc($bcc);\n }\n\n if ($subject) {\n $this->email->subject($subject);\n }\n\n $content = $this->arg('content');\n if (! $content) {\n $content = $this->getContent();\n }\n\n if ($this->contentType == \"html\") {\n $this->email->html($content);\n } else {\n $this->email->text($content);\n }\n } else {\n $this->extractFieldsFromThis();\n }\n\n return $this->send();\n }", "function sendMail($to,$sub,$msg){\n $msg = wordwrap($msg,70);\n $headers = 'MIME-Version: 1.0' . \"\\r\\n\";\n $headers .= 'From: Convolution 2017<noreply@convolutionjuee.com>' . \"\\r\\n\";\n $headers .= 'Content-type: text/html; charset=iso-8859-1' . \"\\r\\n\";\n mail($to,$sub,$msg,$headers);\n}", "public function sendRestoreEmail();", "private function send(){\n\t\t\n\t\tif(empty($this->email)){\n\t\t\t// Missing Email\n\t\t\t$this->error = true;\n\t\t\t$this->errorMsg = 'Whoops, looks like a bug on our end. We\\'ve logged the issue and our support team will look into it.';\n\t\t\t\n\t\t\t// Log Error\n\t\t\t$errorLog = new LogError();\n\t\t\t$errorLog->errorNumber = 87;\n\t\t\t$errorLog->errorMsg = 'Missing email';\n\t\t\t$errorLog->badData = '';\n\t\t\t$errorLog->filename = 'API / SendEmail.class.php';\n\t\t\t$errorLog->write();\n\t\t}\n\t\t\n\t\tif(empty($this->subject)){\n\t\t\t// Missing Email\n\t\t\t$this->error = true;\n\t\t\t$this->errorMsg = 'Whoops, looks like a bug on our end. We\\'ve logged the issue and our support team will look into it.';\n\t\t\t\n\t\t\t// Log Error\n\t\t\t$errorLog = new LogError();\n\t\t\t$errorLog->errorNumber = 88;\n\t\t\t$errorLog->errorMsg = 'Missing subject';\n\t\t\t$errorLog->badData = '';\n\t\t\t$errorLog->filename = 'API / SendEmail.class.php';\n\t\t\t$errorLog->write();\n\t\t}\n\t\t\n\t\tif(empty($this->plainText)){\n\t\t\t// Missing Email\n\t\t\t$this->error = true;\n\t\t\t$this->errorMsg = 'Whoops, looks like a bug on our end. We\\'ve logged the issue and our support team will look into it.';\n\t\t\t\n\t\t\t// Log Error\n\t\t\t$errorLog = new LogError();\n\t\t\t$errorLog->errorNumber = 89;\n\t\t\t$errorLog->errorMsg = 'Missing plain text of email';\n\t\t\t$errorLog->badData = '';\n\t\t\t$errorLog->filename = 'API / SendEmail.class.php';\n\t\t\t$errorLog->write();\n\t\t}\n\t\t\n\t\tif(empty($this->htmlBody)){\n\t\t\t// Missing Email\n\t\t\t$this->error = true;\n\t\t\t$this->errorMsg = 'Whoops, looks like a bug on our end. We\\'ve logged the issue and our support team will look into it.';\n\t\t\t\n\t\t\t// Log Error\n\t\t\t$errorLog = new LogError();\n\t\t\t$errorLog->errorNumber =90;\n\t\t\t$errorLog->errorMsg = 'Missing HTML of body';\n\t\t\t$errorLog->badData = '';\n\t\t\t$errorLog->filename = 'API / SendEmail.class.php';\n\t\t\t$errorLog->write();\n\t\t}\n\t\t\n\t\t// Validate Email\n\t\t$this->validateEmail($this->email);\n\t\t\n\t\tif(!$this->error){\n\t\t\t// Required Files\n\t\t\tinclude 'Mail.php';\n\t\t\tinclude 'Mail/mime.php';\n\n\t\t\t/* ---\n\t\t\tPEAR Mail Factory\n\t\t\thttp://pear.php.net/manual/en/package.mail.mail.factory.php\n\t\t\t--- */\n\t\t\t$host = \"smtp-relay.gmail.com\";\n\t\t\t$port = 587;\n\t\t\t$smtp = Mail::factory('smtp', array('host'=>$host, 'port'=>$port));\n\n\t\t\t/* ---\n\t\t\tPEAR MIME\n\t\t\thttp://pear.php.net/manual/en/package.mail.mail-mime.mail-mime.php\n\t\t\t--- */\n\t\t\t$crlf = \"\\n\";\n\t\t\t$mime = new Mail_mime(array('eol' => $crlf));\n\n\t\t\t// Headers\n\t\t\t$from = 'Catalog.beer <michael@catalog.beer>';\n\t\t\t$replyto = 'michael@catalog.beer';\n\t\t\t$headers = array('From'=>$from, 'To'=>$this->email, 'Subject'=>$this->subject, 'Reply-To'=>$replyto);\n\n\t\t\t// Plain Text\n\t\t\t$mime->setTXTBody($this->plainText);\n\n\t\t\t// HTML\n\t\t\t$mime->setHTMLBody($this->htmlBody);\n\n\t\t\t$body = $mime->get();\n\t\t\t$headers = $mime->headers($headers);\n\n\t\t\t$smtp = Mail::factory('smtp',\n\t\t\t\tarray ('host' => 'smtp-relay.gmail.com',\n\t\t\t\t\t\t\t 'port' => 587,\n\t\t\t\t\t\t\t 'auth' => true,\n\t\t\t\t\t\t\t 'username' => '',\n\t\t\t\t\t\t\t 'password' => '',\n\t\t\t\t\t\t\t 'debug' => false));\n\n\t\t\t/* ---\n\t\t\tPEAR Send Mail\n\t\t\thttp://pear.php.net/manual/en/package.mail.mail.send.php\n\t\t\t--- */\n\t\t\t$mail = $smtp->send($this->email, $headers, $body);\n\n\t\t\t// Process Errors\n\t\t\tif(PEAR::isError($mail)){\n\t\t\t\t// Error Sending Email\n\t\t\t\t$this->error = true;\n\t\t\t\t$this->errorMsg = 'Whoops, looks like a bug on our end. We\\'ve logged the issue and our support team will look into it.';\n\n\t\t\t\t// Log Error\n\t\t\t\t$errorLog = new LogError();\n\t\t\t\t$errorLog->errorNumber = 91;\n\t\t\t\t$errorLog->errorMsg = 'Error sending email';\n\t\t\t\t$errorLog->badData = $mail->getMessage();\n\t\t\t\t$errorLog->filename = 'API / SendEmail.class.php';\n\t\t\t\t$errorLog->write();\n\t\t\t}\n\t\t}\n\t}", "public function send()\n {\n if (!isset($this->properties['mail_recipients'])) {\n $this->properties['mail_recipients'] = false;\n }\n\n // CHECK IF THERE IS AT LEAST ONE MAIL ADDRESS\n if (!isset($this->properties['mail_bcc'])) {\n $this->properties['mail_bcc'] = false;\n }\n\n // EXIT IF NO EMAIL ADDRESSES ARE SET\n if (!$this->checkEmailSettings()) {\n return;\n }\n\n // CUSTOM TEMPLATE\n $template = $this->getTemplate();\n\n // SET DEFAULT EMAIL DATA ARRAY\n $this->data = [\n 'id' => $this->record->id,\n 'data' => $this->post,\n 'ip' => $this->record->ip,\n 'date' => $this->record->created_at\n ];\n\n // CHECK FOR CUSTOM SUBJECT\n if (!empty($this->properties['mail_subject'])) {\n $this->prepareCustomSubject();\n }\n\n // SEND NOTIFICATION EMAIL\n Mail::sendTo($this->properties['mail_recipients'], $template, $this->data, function ($message) {\n // SEND BLIND CARBON COPY\n if (!empty($this->properties['mail_bcc']) && is_array($this->properties['mail_bcc'])) {\n $message->bcc($this->properties['mail_bcc']);\n }\n\n // USE CUSTOM SUBJECT\n if (!empty($this->properties['mail_subject'])) {\n $message->subject($this->properties['mail_subject']);\n }\n\n // ADD REPLY TO ADDRESS\n if (!empty($this->properties['mail_replyto'])) {\n $message->replyTo($this->properties['mail_replyto']);\n }\n\n // ADD UPLOADS\n if (!empty($this->properties['mail_uploads']) && !empty($this->files)) {\n foreach ($this->files as $file) {\n $message->attach($file->getLocalPath(), ['as' => $file->getFilename()]);\n }\n }\n });\n }", "public function sendMail()\n {\n $config = JFactory::getConfig();\n $mailer = JFactory::getMailer();\n $mailer->setSender($config->get('mailfrom'));\n\n\n\n $recipient = array('antonio@ggallery.it', 'caress_coordinator@si4life.it');\n $mailer->addRecipient($recipient);\n\n $mailer->setSubject('Registrazione supporting partner '.$config->get('sitename'));\n $mailer->isHTML(true);\n\n $body = '<h2>Dettagli account</h2>';\n $body .=\"Name: \" . $this->_parametri['name'] . \", <br>\";\n $body .=\"Username: \" . $this->_parametri['username'] . \", <br>\";\n $body .=\"Email: '\" . $this->_parametri['email'] . \", \";\n $body .=\"<br><br>\";\n\n $body .=\"<a \n href='http://framework.project-caress.eu/administrator/index.php?option=com_wizard' \n target='_blank'>Accedi al backend per abilitarlo</a>\";\n\n\n\n http://framework.project-caress.eu/administrator/index.php?option=com_wizard\n\n $mailer->setBody($body);\n\n if (!$mailer->Send())\n throw new RuntimeException('Error sending mail', E_USER_ERROR);\n\n }", "function sendEmail($recipient,$subject, $bodyHTML){\n\t\t$headers = \"From: quota_store \\r\\n\";\n\t\t//$headers .= \"Reply-To: \" . strip_tags($_POST['req-email']) . \"\\r\\n\";\n\t\t//$headers .= \"CC: susan@example.com\\r\\n\";\n\t\t$headers .= \"MIME-Version: 1.0\\r\\n\";\n\t\t$headers .= \"Content-Type: text/html; charset=ISO-8859-1\\r\\n\";\t\t\n\t\t$salutation = '<p>Dear '.$recipient->firstname.' '.$recipient->lastname.',</p>';\n\t\t$footer = '<p><em>This is an automated message by the Quota Store.</em></p>';\n\t\t$content = '<html>';\n\t\t$content .='\t<body>';\t \t \n\t\t$content .= \t$salutation . $bodyHTML . $footer;\t\t\n\t\t$content .='\t</body>';\n\t\t$content .='</html>';\t\t\t\n\t\tmail($recipient->email, $subject, $content, $headers);\t\n\n\t}", "public function customer_send()\n {\n # code... \n \n \n $this->_data['s_info']=$s_info = $this->session->userdata('userInfo'); \n // $this->muser->permision(\"mailto\",\"customer_send\");\n \n\n $this->_data['title'] = 'Chương trình khuyến mãi';\n if(isset($_POST['sendmail']) && $_POST['sendmail']){\n $mailto_title = isset($_POST['mailto_title']) ? $_POST['mailto_title']:'';\n $mailto_content = isset($_POST['mailto_content']) ? $_POST['mailto_content']:'';\n if($mailto_title && $mailto_content){ \n $and = \" 1 and mailto_status != -1 and mailto_title ='Khách hàng đăng ký nhận mail'\";\n $listdata = $this->mmailto->getQuerySql(\"\",$and,\"id asc\",\"\");\n if($listdata){\n foreach ($listdata as $key => $value) { \n if($value['mailto_email']){\n sendmail(company,company_email_1,$value['mailto_email'],$mailto_title,$mailto_content);\n }\n } \n } \n }\n }\n $this->my_layout->view(\"backend/mailto/mailto_customer_send_view\",$this->_data);\n }", "function _send_email($type, $email,$data, $subject,$from){ \n\n $this->load->library('email'); \n $this->email->from(FROM_EMAIL, EMAIL_TITLE);\n $this->email->to($email);\n $this->email->subject($subject);\n $this->email->message($this->load->view('email/'.$type.'-html', $data, TRUE));\n if($this->email->send()){\n return true;\n }else{\n return false;\n }\n }", "function Sending_EMail($temp_value,$to,$subject,$path)\n{\n\t\n\t$mailmsg=createTemplate($temp_value,$path);\n\t$mailparam=array(\"to\"=>$to,\"toname\"=>\"\",\"cc\"=>\"\", \"bcc\"=>\"\", \"replyto\" => \"\", \"replytoname\" => \"\", \"subject\" =>$subject, \"message\"=>$mailmsg, \"fromemail\"=>\"\", \"fromname\"=>\"\", \"attachment\"=>\"\");\n\n\tif(sendmail($mailparam))\n\t{\n\t\t$statusresult[0] = true;\n\t\treturn $statusresult;\n\t}\n\telse\n\t{\n\t\t$statusresult[0] = false;\n\t\t$statusresult['msg'] = \"Unable to send mail\";\n\t\t$statusresult['errorcode']=-1;\n\t\treturn $statusresult;\n\t}\n}", "function paid_sendEmail_supplier($details) {\n\n\t\t\t$currencycode = $details->currCode;\n\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\t$sendto = $this->supplierEmail($details->module, $details->itemid);\n\n\t\t\t\t$sitetitle = \"\";\n\n\t\t\t\t$invoicelink = \"<a href=\" . base_url() . \"invoice?id=\" . $invoiceid . \"&sessid=\" . $refno . \" >\" . base_url() . \"invoice?id=\" . $invoiceid . \"&sessid=\" . $refno . \"</a>\";\n\t\t\t\t$template = $this->shortcode_variables(\"bookingpaidsupplier\");\n\t\t\t\t$details = email_template_detail(\"bookingpaidsupplier\");\n\t\t\t\t//$smsdetails = sms_template_detail(\"bookingpaidadmin\");\n\t\t\t\t$values = array($invoiceid, $refno, $deposit, $totalamount, $custemail, $custid, $country, $phone, $currencycode, $currencysign, $invoicelink, $sitetitle, $name);\n\t\t\t\t\n\t\t\t\t$message = $this->mailHeader;\n\t\t\t\t$message .= str_replace($template, $values, $details[0]->temp_body);\n\t\t\t\t$message .= $this->mailFooter;\n\n\t\t\t\t//$smsmessage = str_replace($template, $values, $smsdetails[0]->temp_body);\n\t\t\t\t//sendsms($smsmessage, $this->adminmobile, \"bookingpaidadmin\");\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}", "function send_emails() {\n $settings = new Settings();\n $mail_companies = $settings->get_mailto_companies();\n $failed_list_mails = array();\n $mail_reader = new EmailReader(dirname(__FILE__) . '/mails', $this->user_information);\n foreach ($this->cookie_list as $item) {\n if (!$item->has_email()) {\n \t$failed_list_mails[] = $item;\n }\n else {\n $template = $mail_reader->get_companies_mail($item, $mail_companies);\n if (!$this->mail_to($item, $template, $mail_companies)) {\n $failed_list_mails[] = $item;\n }\n\t }\n }\n $this->update_amounts_used($this->cookie_list);\n\n\n $attachments = array();\n\n $failed_list_letters = array();\n foreach ($this->cookie_list as $item) {\n if (!$item->has_address()) {\n $failed_list_letters[] = $item;\n }\n else {\n $letter_generator = new LetterGenerator($this->user_information);\n $pdf = $letter_generator->generate_letter_string($item);\n if ($pdf) {\n \t$folder_writer = new FolderHandler();\n \t$file = $folder_writer->store_file($pdf, \"pdf\");\n \tif ($file) {\n \t\t$attachments[] = $file;\n \t}\n \telse {\n \t\t$failed_list_letters[] = $item;\n \t}\n }\n else {\n $failed_list_letters[] = $item;\n }\n }\n }\n\n\n\n return $this->send_confirmation_mail($attachments, $failed_list_mails, array_diff($this->cookie_list,\n $failed_list_mails), $failed_list_letters, array_diff($this->cookie_list, $failed_list_letters),\n $mail_companies);\n }", "function send_email($to,$msg=\"\")\n{\n $boundry = \"b\".md5(uniqid(time()));\n $announce_subject = \"WE ARE INTERESTED !!! \";\n $announce_from_email = \"info@jeevansathi.com\";\n $announce_to_email = $to;\n $MP = \"/usr/sbin/sendmail -t\";\n $spec_envelope = 1;\n if($spec_envelope)\n {\n $MP .= \" -N never -f $announce_from_email\";\n }\n $fd = popen($MP,\"w\");\n fputs($fd, \"X-Mailer: PHP3\\n\");\n fputs($fd, \"MIME-Version:1.0 \\n\");\n fputs($fd, \"To: $announce_to_email\\n\");\n fputs($fd, \"From: $announce_from_email \\n\");\n fputs($fd, \"Subject: $announce_subject \\n\");\n fputs($fd, \"Content-Type: text/html; boundary=$boundry\\n\");\n fputs($fd, \"Content-Transfer-Encoding: 7bit \\r\\n\");\n fputs($fd, \"$msg\\r\\n\");\n fputs($fd, \"\\r\\n . \\r\\n\");\n $p=pclose($fd);\n return $p;\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}", "public function ajSendmail(){\n $s_info = $this->session->userdata('userInfo');\n $email_to = isset($_REQUEST['email_to']) && $_REQUEST['email_to']?$_REQUEST['email_to']:'';\n $email_cc = isset($_REQUEST['email_cc']) && $_REQUEST['email_cc']?$_REQUEST['email_cc']:'';\n $email_bcc = isset($_REQUEST['email_bcc']) && $_REQUEST['email_bcc']?$_REQUEST['email_bcc']:'';\n $email_title = isset($_REQUEST['email_title']) && $_REQUEST['email_title']?$_REQUEST['email_title']:'';\n $email_message = isset($_REQUEST['email_message']) && $_REQUEST['email_message']?$_REQUEST['email_message']:'';\n $html = 0;\n if($email_to && $email_title){\n /**goi thu vien gui mail*/\n include_once dir_root.'/public/backend/library/mail/send_mail.php';\n $mail = new BGMail();\n $list_user = array();\n $list_user[] = $email_to;\n if($email_cc)\n $list_user[] = $email_cc;\n if($email_bcc)\n $list_user[] = $email_bcc;\n $this->_data[\"set_value\"] = array(\n \"mailto_send_title\" => $email_title,\n \"mailto_send_content\" => $email_message,\n \"mailto_send_attach_file\" => \"\",\n \"mailto_send_list_user\" => json_encode($list_user),\n \"mailto_send_create_date\" => time(),\n \"controller\"=>\"mailto\",\n \"user\" => $s_info[\"s_user_id\"],\n );\n /**luu vao co so du lieu*/\n if($this->_data['set_value']){\n $this->mmailto_sendmail->addMail($this->_data[\"set_value\"]);\n $mail->SendMail($email_title,$email_message,$file=\"\",company,$email_to,company_email_1,config_mail_user_gmail,config_mail_pass_gmail);\n if($email_cc)\n $mail->SendMail($email_title,$email_message,$file=\"\",company,$email_cc,company_email_1,config_mail_user_gmail,config_mail_pass_gmail);\n if($email_bcc)\n $mail->SendMail($email_title,$email_message,$file=\"\",company,$email_bcc,company_email_1,config_mail_user_gmail,config_mail_pass_gmail);\n $html = 1;\n }\n }\n echo $html;\n }", "public function sendEmail($subject)\n {\n\n\n if ($GLOBALS['YII_APP_MODE']=='DEV') {\n $this->emailForSend = 'quadrosh@gmail.com';\n } elseif ($GLOBALS['YII_APP_MODE']=='PROD') {\n $this->emailForSend = 'transzakaz@gmail.com';\n }\n return Yii::$app->mailer->compose()\n ->setTo($this->emailForSend)\n ->setFrom('noreply@tszakaz.ru')\n ->setSubject($subject)\n ->setHtmlBody(\n \"Данные запроса <br>\".\n \" <br/> Со страницы: \".$this->from_page .\n \" <br/> Откуда: \".$this->dispatch .\n \" <br/> Куда: \".$this->destination .\n \" <br/> Телефон: \".$this->phone .\n \" <br/> Email: \".$this->email .\n \" <br/> Груз: \".$this->cargo .\n \" <br/> Вес: \".$this->weight .\n \" <br/> Комментарий: <br/> \" .\n nl2br($this->text)\n )\n ->send();\n\n\n }", "protected function sendEmail($user_email, $user_fname)\n {\n \n \n\n\t\t\t\n \n \n }", "public static function sendEmail($data) {\r\n\r\n // get user data to fill in automatically\r\n $user = Auth::getUser();\r\n // Email Settings\r\n // Send email back to user and the home store \r\n $cc[] = $user->email;\r\n\r\n // Live Address\r\n $to = 'disposal@chetsrentall.com';\r\n // Test address\r\n //$to = 'jgransden@chetsrentall.com';\r\n\r\n // getting the From store email\r\n $allStores = Helpers::getStores();\r\n foreach ($allStores as $store) {\r\n if ($store['storeNumber'] == $user->storeNumber){\r\n //uncomment for Live\r\n //$cc[] = ($store['storeEmail']);\r\n $storeName = $store['storeName'];\r\n }\r\n\r\n }\r\n // HTML Email Version\r\n $partCount = count($data['catNum']);\r\n $msgHeader = '<b>Store Requesting: &emsp;</b>' . $storeName . '<br />';\r\n $msgHeader .= '<b>Requestor: &emsp;</b>' . $user->name . '<br />';\r\n $msgHeader .= '<b><h3>If Stolen</h3></b>';\r\n $msgHeader .= '<b>Police Department: &emsp;</b>' . $data['policeDepartment'] . '<br />';\r\n $msgHeader .= '<b>Date Reported to Police: &emsp;</b>' . $data['policeDate'] . '<br />';\r\n $msgHeader .= '<b>Police Report Number: &emsp;</b>' . $data['reportNum'] . '<br />';\r\n $msgHeader .= '<b>Reported to NER by: &emsp;</b>' . $data['nerReportBy'] . '<br />';\r\n $msgHeader .= '<b>Date Reported to NER: &emsp;</b>' . $data['nerDate'] . '<br />';\r\n $msgHeader .= '<b>Reported to Manufacturer by: &emsp;</b>' . $data['mfgReportBy'] . '<br />';\r\n $msgHeader .= '<b>Date Reported to Manufacturer: &emsp;</b>' . $data['mfgDate'] . '<br />';\r\n\r\n $msgFooter = '<h3>Details of the Disposal</h3>' . $data['disposal_comments'];\r\n $msg = '<h3>Disposal Item Line Details</h3>';\r\n $msg .= '<table border=\"1\"><tr><b><td>Cat Num</td><td>Item Num</td><td>Serial Num</td><td>Manufacturer</td><td>Qty</td><td>Disposal Type</td></b></tr>';\r\n for ($i = 0;$i<$partCount; $i++){\r\n $msg .= \"<tr>\";\r\n $msg .= \"<td>\" . $data['catNum'][$i] . \"</td>\";\r\n $msg .= \"<td>\" . $data['itmNum'][$i] . \"</td>\";\r\n $msg .= \"<td>\" . $data['serialNum'][$i] . \"</td>\";\r\n $msg .= \"<td>\" . $data['mfg'][$i] . \"</td>\";\r\n $msg .= \"<td>\" . $data['quantity'][$i] . \"</td>\";\r\n $msg .= \"<td>\" . $data['disposalCode'][$i] . \"</td>\";\r\n $msg .= \"</tr>\";\r\n }\r\n $msg .=\"</table>\";\r\n\r\n // Text only part of the email\r\n\r\n $textHeader = \"Store Requesting: \" . $storeName . \"\\r\\n\";\r\n $textHeader .= \"Requestor: \" . $user->name . \"\\r\\n\\r\\n\";\r\n $textHeader .= \"If Stolen: \\r\\n\\r\\n\";\r\n $textHeader .= \"Police Department: \" . $data['policeDepartment'] . \"\\r\\n\";\r\n $textHeader .= \"Date Reported to Police\" . $data['policeDate'] . \"\\r\\n\";\r\n $textHeader .= \"Police Report Number: \" . $data['reportNum'] . \"\\r\\n\";\r\n $textHeader .= \"Reported to NER by: \" . $data['nerReportBy'] . \"\\r\\n\";\r\n $textHeader .= \"Date Reported to NER\" . $data['nerDate'] . \"\\r\\n\";\r\n $textHeader .= \"Reported to Manufacturer by: \" . $data['mfgReportBy'] . \"\\r\\n\";\r\n $textHeader .= \"Date Reported to Manufacturer: \" . $data['mfgDate'] . \"\\r\\n\";\r\n\r\n $textFooter = 'Details of the Disposal \\r\\n' . $data['disposal_comments'];\r\n $textBody = \"Cat # Item # Serial # Manufacturer Quantity Disposal Type\";\r\n\r\n for ($i = 0; $i<$partCount; $i++){\r\n $textBody .= $data['catNum'][$i] . ' ';\r\n $textBody .= $data['itmNum'][$i] . ' ';\r\n $textBody .= $data['serialNum'][$i] . ' ';\r\n $textBody .= $data['mfg'][$i] . ' ';\r\n $textBody .= $data['quantity'][$i] . ' ';\r\n $textBody .= $data['disposalCode'][$i] . ' ';\r\n }\r\n\r\n $subject = 'New Disposal Request';\r\n $text = $textHeader . $textBody . $textFooter;\r\n $html = $msgHeader . $msg . $msgFooter;\r\n\r\n Mail::send($to, $subject, $text, $html, $cc);\r\n \r\n // remove after saveDisposal() is written\r\n\r\n }", "private function send_mail($bSend, $pt, $py){\n //$tmp = explode(' ', $meet_time); $meet_date = $tmp[0]; $meet_time = $tmp[1];\n\n $txt_for_pt = \"Hello \".$pt->first_name.\" \".$pt->last_name.\n \", you have a medical record in your Padic inbox. Please login now to review.\";\n $html_for_pt = \"<div> \".$txt_for_pt.\" </div>\".\n \"<a href='\".url('/login').\"'>\".url('/login').\"</a>\".\n \"<br>\".\n \"<div> Regards, Padic Team </div>\";\n \n $email_admin = Auth::user()->email;\n \n // send mail to patient.\n $data = array('name'=>$html_for_pt);\n $from = $email_admin; \n $to = $pt->email; \n $from_name = 'Padic'; \n $subject = 'From Padic';\n \n try {\n Mail::send('admin.email', $data, function ($message) use ($to, $from, $from_name, $subject) {\n $message->from($from, $from_name);\n $message->to($to)->subject($subject);\n });\n } \n catch (\\Exception $e) {\n \\Log::info(\"Email Sending Error : \" . $e->getMessage());\n return $e->getMessage();\n }\n \n if($bSend == 'send'){ // send mail to physician.\n $txt_for_py = \"Hello \".$py->first_name.\" \".$py->last_name.\n \", you have a medical record in your Padic inbox. Please login now to review.\";\n $html_for_py = \"<div> \".$txt_for_py.\" </div>\".\n \"<a href='\".url('/login').\"'>\".url('/login').\"</a>\".\n \"<br>\".\n \"<div> Regards, Padic Team </div>\";\n\n $data = array('name'=>$html_for_py);\n $from = $email_admin;\n $to = $py->email; \n $from_name = 'Padic'; \n $subject = 'From Padic';\n\n try{\n Mail::send('admin.email', $data, function ($message) use ($to, $from, $from_name, $subject) {\n $message->from($from, $from_name);\n $message->to($to)->subject($subject);\n });\n }\n catch (\\Exception $e) {\n \\Log::info(\"Email Sending Error : \" . $e->getMessage());\n return $e->getMessage();\n }\n }\n }", "function send()\n\t{\n\t\tif (!$this->to)\n\t\t\treturn FALSE;\n\t\t\n\t\t//If no alt_message was supplied, generate one\n\t\tif ($this->config['mailtype'] == 'html' && !$this->alt_message)\n\t\t\t$this->alt_message = $this->generate_alt_message($this->message);\t\n\t\t\n\t\t//if no reply-to was set, use the 'from' field\n\t\tif (!$this->reply_to)\n\t\t\t$this->reply_to = $this->from;\n\t\t\n\t\t//generate a random boundary\n\t\t$boundary = '------phpmailer------'.md5(time());\n\t\t\n\t\t$n = $this->config['newline'];\n\t\t\n\t\t//setup the header\n\t\t$headers = '';\n\t\t$additional_headers = '';\n\n\t\t//apply useragent\n\t\t$headers .= 'X-Mailer: '.$this->config['useragent'].$n;\n\t\t\n\t\t//From field\n\t\tif ($this->from) \n\t\t{\n\t\t\t$headers .= 'From: '.$this->from.$n;\n\n\t\t\tif ($this->from_address)\n\t\t\t\t$additional_headers = '-f '.$this->from_address;\n\t\t}\n\t\t\t\n\n\t\tif ($this->cc)\n\t\t\t$headers .= 'Cc: '.$this->cc.$n;\n\t\t\t\n\t\tif ($this->bcc)\n\t\t\t$headers .= 'Bcc: '.$this->bcc.$n;\n\t\t\n\t\t//Reply-To field\n\t\tif ($this->reply_to)\n\t\t{\n\t\t\t$headers .= 'Reply-To: '.$this->reply_to.$n;\n\t\t\t$headers .= 'Return-Path: '.$this->reply_to.$n;\n\t\t}\n\t\t\n\t\t$headers .= 'MIME-Version: 1.0'.$n;\n\t\t$headers .= 'Content-Type: multipart/alternative; boundary = \"'.$boundary.'\"'.$n;\n\t\t\n\t\t$message = '';\n\t\t\n\t\t//set up the messages\n\t\tif ($this->config['mailtype'] == 'html')\n\t\t{\n\t\t\t$message .= $n.'--'.$boundary.$n;\n\t\t\t$message .= 'Content-type: text/plain; charset='.$this->config['charset'].$n;\n\t\t\t$message .= 'Content-Transfer-Encoding: 8bit'.$n.$n;\n\t\t\t$message .= $this->alt_message.$n;\t\t\t\t\n\t\t\t\n\t\t\t$message .= $n.'--'.$boundary.$n;\n\t\t\t$message .= 'Content-type: text/html; charset='.$this->config['charset'].$n;\n\t\t\t$message .= 'Content-Transfer-Encoding: 8bit'.$n.$n;\n\t\t\t$message .= $this->message.$n;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$message .= $n.'--'.$boundary.$n;\n\t\t\t$message .= 'Content-type: text/plain; charset='.$this->config['charset'].$n;\n\t\t\t$message .= $this->message.$n;\t\n\t\t}\n\t\t\n\t\t$message .= $n.'--'.$boundary.'--'.$n.$n;\n\t\t\n\t\t$this->debug( 'Headers: <br/>'.$headers );\n\t\t$this->debug( 'Message: <br/>'.$message );\n\t\n\t\treturn mail($this->to, $this->subject, $message, $headers, $additional_headers);\n\t}", "private function send_email($email) {\n $to = isset($email['to'])?$email['to']:[];\n if (!is_array($email['to'])) { \n $to = [$to];\n }\n $to = array_unique($to);\n\n $subject = isset($email['subject'])?$email['subject']:'No Subject';\n $content = isset($email['content'])?$email['content']:'No Body';\n\n // If MAIL_LIMIT_SEND is true, only send emails to those who are \n // specified in MAIL_LIMIT_ALLOW\n if (config('mail.limit_send') !== false) {\n $to = array_intersect($to,config('mail.limit_allow'));\n }\n\n // If we're not sending an email to anyone, just return\n if (empty($to)) {\n return false;\n }\n\n try {\n Mail::raw( $content, function($message) use($to, $subject) { \n $m = new \\Mustache_Engine;\n $message->to($to);\n $message->subject($subject); \n });\n } catch (\\Throwable $e) {\n // Failed to Send Email... Continue Anyway.\n }\n }", "public function sendEmail()\n {\n $body = '<h1>Бронь тура с сайта</h1>\n <p>\n <a href=\"'. Yii::$app->request->hostInfo .'/admin/booking/view/'. $this->id .'\">Ссылка на бронь</a>\n </p>\n <h2>Информация</h2>\n <p> Дата бронирования: '.Yii::$app->formatter->asDate($this->created_at, 'long').'</p>\n <p> Время бронирования: '.Yii::$app->formatter->asTime($this->created_at).'</p>\n <p> Имя: '.$this->customer_name.'</p>\n <p> Телефон: '.$this->customer_phone . '</p>';\n\n return Yii::$app->mailer->compose()\n ->setTo(Yii::$app->params['Contact']['email'])\n ->setFrom(['info@eko-tours.com' => 'EcoTour'])\n ->setSubject('Бронь тура: '. $this->tour->title)\n ->setHtmlBody($body)\n ->send();\n }", "private static function mail()\n {\n $files = ['Mail', 'Mailable', 'SMTP'];\n $folder = static::$root.'Mailing'.'/';\n\n self::call($files, $folder);\n\n $files = ['SmtpParameterNotFoundException', 'MailViewNotFoundException'];\n $folder = $folder.'Exceptions/';\n\n self::call($files, $folder);\n }", "public function mailProccess(){\n\n //dd($this->request->getPost());\n \n\t\t$email = \\Config\\Services::email();\n\n //dd($email);\n\n\t\t$to = $this->request->getPost('to');\n\t\t$from = $this->request->getPost('form');\n\t\t$subject = $this->request->getPost('subject');\n\t\t$message = $this->request->getPost('msg');\n\n\t\t$email->setTo($to);\n\t\t$email->setFrom($from);\n\t\t$email->setSubject($subject);\n\t\t$email->setMessage($message);\n\n\t\tif($email->send() == false){\n echo \"Failed\";\n $data = $email->printDebugger(['headers']);\n print_r($data);\n\t\t}else echo \"Mail sent successfully !\";\n\t}", "function NewSendEmail($SrcType,$SrcId,$to,$sub,&$letter,&$attachments=0,&$embeded=0,$from='') { \n global $FESTSYS,$CONF;\n \n// echo \"Debug: \" .( UserGetPref('EmailDebug')?2:0) . \"<p>\";\n $Send = 1;\n if (@ $CONF['testing']){\n if (strstr($CONF['testing'],'@')) { \n $to = $CONF['testing'];\n } else { \n echo \"<p>Would send email to \" . Pretty_Print_To($to);\n if ($from) echo \"From: \" . Pretty_Print_To($from);\n echo \" with subject: $sub<p>Content:<p>$letter<p>\\n\";\n \n echo \"Text: \" . ConvertHtmlToText($letter);\n if ($attachments) {\n if (is_array($attachments)) {\n foreach ($attachments as $i=>$att) {\n if (is_array($att)) {\n if (isset($att[0])) {\n echo \"Would attach \" . $att[0] . \" as \" . $att[1] . \"<p>\";\n } else {\n echo \"Would attach \" . $att['AttFileName'] . \"<p>\"; \n }\n } else {\n echo \"Would Attach \" . $att . \"<p>\";\n }\n } \n } else {\n echo \"Would attach $attachments<p>\"; \n }\n }\n if ($embeded) {\n if (is_array($embeded)) {\n foreach ($embeded as $i=>$att) {\n if (is_array($att)) {\n if (isset($att[0])) {\n echo \"Would embed \" . $att[0] . \" as \" . $att[1] . \"<p>\";\n } else {\n echo \"Would embed \" . $att['AttFileName'] . \"<p>\";\n }\n } else {\n echo \"Would embed \" . $att . \"<p>\"; \n }\n } \n } else {\n echo \"Would embed $embeded<p>\"; \n }\n }\n $Send = 0;\n// exit; // Uncomment to test in depth\n// return; // Under test this will then log, and not send\n }\n }\n $From = $FESTSYS['SMTPuser'];\n $Atts = [];\n \n $email = new PhpMailer(true);\n try {\n $email->SMTPDebug = ((Access('SysAdmin') && UserGetPref('EmailDebug'))?2:0); // 2 general testing, 4 problems...\n $email->isSMTP();\n $mailserv = $FESTSYS['HostURL'];\n if (Feature('SMTPsubdomain')) $mailserv = Feature('SMTPsubdomain') . \".\" . $mailserv;\n $email->Host = $mailserv;\n $email->SMTPAuth = true;\n $email->AuthType = 'LOGIN';\n $email->From = $email->Username = $FESTSYS['SMTPuser'] . \"@\" . $FESTSYS['HostURL'];\n $email->FromName = $FESTSYS['FestName'];\n $email->Password = $FESTSYS['SMTPpwd'];\n $email->SMTPSecure = 'tls';\n $email->Port = 587;\n $email->SMTPOptions = ['ssl' => [ 'verify_peer' => false, 'verify_peer_name' => false, 'allow_self_signed' => true]];\n \n if ($from) {\n if (is_array($from)) {\n $email->setFrom($from[0],$from[1]);\n } else {\n $email->setFrom($from);\n }\n }\n \n if (is_array($to)) {\n if (is_array($to[0])) {\n foreach ($to as $i=>$too) {\n if (!isset($too[0])) continue;\n $a = $too[1];\n $n = (isset($too[2])?$too[2]:'');\n switch ($too[0]) {\n case 'to':\n $email->addAddress($a,$n);\n $To = \"$n <$a>\";\n break;\n case 'cc':\n $email->addCC($a,$n);\n break;\n case 'bcc':\n $email->addBCC($a,$n);\n break;\n case 'replyto':\n $email->addReplyTo($a,$n);\n break;\n case 'from':\n $email->setFrom($a,$n);\n $From = \"$n <$a>\";\n break;\n } \n }\n } else {\n $email->addAddress($to[0],(isset($to[1])?$to[1]:''));\n $To = $to[0]; \n }\n } else {\n $email->addAddress($to);\n }\n $email->Subject = $sub;\n $email->isHTML(true);\n $email->Body = $letter; // HTML format\n $email->AltBody = ConvertHtmlToText($letter); // Text format\n\n if ($attachments) {\n if (is_array($attachments)) {\n foreach ($attachments as $i=>$att) {\n if (is_array($att)) {\n if (isset($att[0])) {\n $email->addAttachment($att[0],$att[1]);\n $Atts[] = [$att[0],$att[1],0];\n } else {\n $email->addAttachment($att['AttFileName']);\n $Atts[] = [\"\",$att['AttFileName'],0];\n }\n } else { \n $email->addAttachment($att);\n $Atts[] = [\"\",$att,0];\n }\n } \n } else {\n $email->addAttachment($attachments);\n $Atts[] = [\"\",$attachments,0];\n }\n }\n if ($embeded) {\n if (is_array($embeded)) {\n foreach ($embeded as $i=>$att) { \n if (is_array($att)) {\n if (isset($att[0])) {\n $email->addEmbeddedImage($att[0],$att[1]);\n $Atts[] = [$att[0],$att[1],1];\n } else {\n $email->addEmbeddedImage($att['AttFileName']);\n $Atts[] = [\"\",$att['AttFileName'],1];\n }\n } else {\n $email->addEmbeddedImage($att);\n $Atts[] = [\"\",$att,1];\n }\n }\n } else {\n $email->addEmbeddedImage($embeded,0); \n $Atts[] = [\"\",$embeded,1];\n }\n }\n\n if ($Send) $email->Send();\n \n } catch (Exception $e) {\n echo 'Message could not be sent. Mailer Error: ', $email->ErrorInfo;\n }\n\n $EmLog = ['Type'=>$SrcType,'TypeId'=>$SrcId,'Subject'=>$sub,'FromAddr'=>json_encode($From),'ToAddr'=>json_encode($to), 'TextBody'=>$letter,'Date'=>time()];\n $logid = Insert_db('EmailLog', $EmLog);\n if ($Atts && $logid) {\n foreach ($Atts as $at) {\n $atc = ['EmailId'=>$logid,'AttName'=>$at[0],'AttFileName'=>$at[1],'AttType'=>$at[2]];\n Insert_db('EmailAttachments',$atc);\n }\n }\n}", "function send_mail($subject, $body_text, $body_html, $sendlist){\n #exit();\n\n # include pear Mail packages\n include 'Mail.php';\n include 'Mail/mime.php';\n\n $crlf = \"\\n\";\n $hdrs = array(\n 'From' => 'Support@omniherbals.com',\n 'Subject' => $subject\n );\n $mime = new Mail_mime(array('eol' => $crlf));\n\n $mime->setTXTBody($body_text);\n $mime->setHTMLBody($body_html);\n\n $body = $mime->get();\n $hdrs = $mime->headers($hdrs);\n\n $mail =& Mail::factory('mail');\n\n foreach($sendlist as $addr){\n $mail->send($addr, $hdrs, $body);\n # wait 2 seconds between sending each email:\n sleep(2);\n }\n}", "public function mail()\n\t{\n $this->load->model('mailsjabloon_model');\n $this->load->model('gebruiker_model');\n $data['titel'] = 'Send mails';\n $data['auteur'] = \"<u>Lorenzo M.</u>| Arne V.D.P. | Kim M. | Eloy B. | Sander J.\";\n $data['gebruiker'] = $this->authex->getGebruikerInfo();\n $data['link'] = 'admin/index';\n \n $data['sjablonen'] = $this->mailsjabloon_model->getSjablonen();\n \n $partials = array('hoofding' => 'main_header','menu' => 'main_menu', 'inhoud' => 'mails_versturen');\n $this->template->load('main_master', $partials, $data);\n\t}", "public function sendMsg()\n {\n $msg = $this->request->post('msg');\n $email = $this->request->post('email');\n \n $emailbody = $this->EmailFunc->msg(\"Code: \" .$msg, \"Your Trail Code\");\n \n $this->Email->sendE($email, 'Trail From IPTV', $emailbody);\n \n $this->load->model('Trail')->sendMsg($msg, $email);\n \n return $this->showTrails();\n }", "public function sendnotificationemails($type,$to,$subject,$username,$linkhref){\r\n\r\n $bodyhead=\"<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>\r\n <html xmlns='http://www.w3.org/1999/xhtml'>\r\n <head>\r\n <meta http-equiv='Content-Type' content='text/html; charset=utf-8' />\r\n <title>\".$this->getsettings('sitetitle','text').\"</title>\r\n </head><body>\";\r\n if( $this->getsettings('email','logoshow') == '1' ) {\r\n $body = \"<img src='\".$this->getsettings('logo','url').\"' alt='\".$this->getsettings('sitetitle','text').\"' title='\".$this->getsettings('sitetitle','text').\"'/>\";\r\n }\r\n else {\r\n $body = '';\r\n }\r\n\r\n $link = \"<a href='\".$linkhref.\"'>\".$this->getsettings($type,'linktext').\"</a>\";\r\n $emContent = $this->getsettings($type,'text');\r\n $emContent = str_replace(\"[username]\",$username,$emContent);\r\n $emContent = str_replace(\"[break]\",\"<br/>\",$emContent);\r\n $emContent = str_replace(\"[linktext]\",$link,$emContent);\r\n\r\n $body .=\"<p>\".$emContent.\"</p>\";\r\n\r\n $from = $this->getsettings('email','fromname');\r\n $from_add = $this->getsettings('email','fromemail');\r\n $headers = \"MIME-Version: 1.0\" . \"\\r\\n\";\r\n $headers .= \"Content-type:text/html;charset=iso-8859-1\" . \"\\r\\n\";\r\n $headers .= \"From: =?UTF-8?B?\". base64_encode($from) .\"?= <$from_add>\\r\\n\" .\r\n 'Reply-To: '.$from_add . \"\\r\\n\" .\r\n 'X-Mailer: PHP/' . phpversion();\r\n mail($to,$subject,$bodyhead.$body.'</body></html>',$headers, '-f'.$from_add);\r\n\r\n if( $type == 'forgotpwdemail' ) {\r\n return '7#email';\r\n }\r\n else {\r\n return '7#register';\r\n }\r\n\r\n die();\r\n\t}", "public function sendMail(){\r\n $to = 'cui.yao.yu@hotmail.com';\r\n $subject = 'WineClub Mail Contact';\r\n $messeage = 'From:'.stripslashes($_POST['UserName']).\"\\n\";\r\n $messeage = stripslashes($_POST['Message']);\r\n $headers = 'From:'.stripslashes($_POST['UserName']).\"\\r\\n Reply-To:\".$_POST['Email'];\r\n if(mail($to, $subject, $messeage, $headers)){\r\n $msg['pgMsg'] = 'Email sent successfully';\r\n }\r\n else{\r\n $msg['pgMsg'] = 'Unable to send email';\r\n }\r\n return $msg; \r\n }", "private function sendEmail()\n\t{\n\t\t// Get data\n\t\t$config = JFactory::getConfig();\n\t\t$mailer = JFactory::getMailer();\n\t\t$params = JComponentHelper::getParams('com_code');\n\t\t$addresses = $params->get('email_error', '');\n\n\t\t// Build the message\n\t\t$message = sprintf(\n\t\t\t'The sync cron job on developer.joomla.org started at %s failed to complete properly. Please check the logs for further details.',\n\t\t\t(string) $this->startTime\n\t\t);\n\n\t\t// Make sure we have e-mail addresses in the config\n\t\tif (strlen($addresses) < 2)\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\t$addresses = explode(',', $addresses);\n\n\t\t// Send a message to each user\n\t\tforeach ($addresses as $address)\n\t\t{\n\t\t\tif (!$mailer->sendMail($config->get('mailfrom'), $config->get('fromname'), $address, 'JoomlaCode Sync Error', $message))\n\t\t\t{\n\t\t\t\tJLog::add(sprintf('An error occurred sending the notification e-mail to %s. Error: %s', $address, $e->getMessage()), JLog::INFO);\n\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t}\n\t}" ]
[ "0.8006104", "0.7637148", "0.76164097", "0.73535913", "0.73373264", "0.7332815", "0.73057306", "0.7253616", "0.71315897", "0.7095711", "0.7003891", "0.69668955", "0.6964756", "0.69607776", "0.6936971", "0.6931583", "0.6929939", "0.68920887", "0.689063", "0.68820345", "0.68611044", "0.68563086", "0.68514335", "0.68465626", "0.683628", "0.6828802", "0.6821845", "0.68208164", "0.6794169", "0.67639875", "0.67425853", "0.6740036", "0.6738107", "0.6734966", "0.673148", "0.6714323", "0.6705017", "0.67016053", "0.6700021", "0.6699027", "0.6693473", "0.6687975", "0.6687158", "0.6682756", "0.66811466", "0.6679668", "0.66765517", "0.6663879", "0.6662372", "0.6660347", "0.6656783", "0.665632", "0.6644302", "0.6644265", "0.66434485", "0.6642543", "0.66424555", "0.66368365", "0.6631675", "0.662796", "0.66183877", "0.6612849", "0.66114134", "0.6611103", "0.6610721", "0.6606148", "0.6602991", "0.66021806", "0.65970796", "0.65957004", "0.65903515", "0.6589093", "0.65888274", "0.65794253", "0.65791833", "0.6576817", "0.65722644", "0.65617496", "0.65616935", "0.65588176", "0.6557231", "0.655684", "0.65545815", "0.65534246", "0.65498513", "0.654918", "0.65475434", "0.6546007", "0.6543376", "0.65351975", "0.6532706", "0.6529872", "0.65285", "0.6527988", "0.65224415", "0.6522141", "0.65190244", "0.65174115", "0.6513714", "0.6505887", "0.65030897" ]
0.0
-1
function send_email end here get featured image url
function get_feature_image_url($post_id) { if(has_post_thumbnail($post_id)) { $image5 = wp_get_attachment_image_src( get_post_thumbnail_id( $post_id ), 'full' ); return $image5[0]; } else { return false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function featuredURL($size = 'full'){\n $thumb = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), $size );\n $url = $thumb['0'];\n echo $url;\n}", "function featuredURL($size = 'full'){\n $thumb = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), $size );\n $url = $thumb['0'];\n echo $url;\n}", "public static function insertNotificationImageAsAttachment() {\n $url = '';\n if(isset($_FILES['image'])) {\n $file = wp_upload_bits($_FILES['image']['name'], null, file_get_contents($_FILES['image']['tmp_name']));\n if($file['error'] === false) {\n $url = $file['url'];\n }\n }\n return $url;\n }", "function get_featured_img_url($id) {\n\t$thumb_id = get_post_thumbnail_id($id);\n\t$thumb_url_array = wp_get_attachment_image_src($thumb_id, 'grid-thumbnail-medium', true);\n\t$thumb_url = $thumb_url_array[0];\n\treturn $thumb_url;\n}", "function wgom_post_thumbnail_url() {\n\tif (has_post_thumbnail()) {\n\t\t$post = get_post(null);\n\t\t$post_thumbnail_id = get_post_thumbnail_id($post);\n\t\t$size = apply_filters('post_thumbnail_size', 'post-thumbnail', $post->ID);\n\t\tif ($post_thumbnail_id) {\n\t\t\t$image_src = wp_get_attachment_image_src($post_thumbnail_id, $size, false);\n\t\t\tif ($image_src) {\n\t\t\t\t$image_url = $image_src[0];\n\t\t\t\treturn $image_url;\n\t\t\t}\n\t\t}\n\t}\n\telse {\n\t\t// This is the WGOM extension part.\n\t\t$image_src = wgom_video_post_featured_image(false);\n\t\treturn $image_src;\n\t}\n\treturn \"\";\n}", "function nb_get_image_src( $object, $field_name, $request ) {\n $featured_img_array = wp_get_attachment_image_src( $object[ 'featured_media'], 'full', true);\n return $featured_img_array[0];\n}", "function cws_get_image_url() {\n\n\tglobal $post;\n\n\t$thumbnail_url = wp_get_attachment_thumb_url( get_post_thumbnail_id( $post->ID ) );\n\t$image_url = print( $thumbnail_url );\n\n\treturn $image_url;\n\n}", "public function get_image_link()\n {\n }", "function wgom_get_featured_image() {\n\t// This is the usual code that gets executed.\n\tif ( has_post_thumbnail() ) {\n\t\tif ( 'grid' == get_theme_mod( 'featured_content_layout' ) )\n\t\t\tthe_post_thumbnail();\n\t\telse\n\t\t\tthe_post_thumbnail( 'twentyfourteen-full-width' );\n\t}\n\telse {\n\t\t// This is the WGOM extension part.\n\t\t$image_html = wgom_video_post_featured_image();\n\t\tif (!empty($image_html)) {\n\t\t\techo $image_html;\n\t\t}\n\t}\n\n\twgom_get_featured_overlay();\n}", "public function getSenderPicUrl()\n {\n if (count($this->sender()->first()) > 0)\n return URL::to($this->sender->user_pic);\n else\n return URL::to('/img/profiles/default.png');\n }", "function newsletter_image($ref, $size){\r\n\t\r\n\t$default_attr = array(\r\n\t\t'class'\t=> \"attachment-$size\",\r\n\t\t'alt' => trim(strip_tags( get_post_meta($ref, '_wp_attachment_image_alt', true) ))\r\n\t);\r\n\t\r\n\t$retour->image\t\t= wp_get_attachment_image( $ref, $size , false, $default_attr);\r\n\t$retour->legende\t= '<p style=\"font-family:Tahoma, Arial, sans-serif;color:#666666;font-size:11px;margin:7px 0;padding:0;font-style:italic;\">' . get_post_meta($ref, '_wp_attachment_image_alt', true) . '</p>';\r\n\t\r\n\treturn $retour;\r\n}", "public function get_image_url()\n {\n }", "function get_page_feature_image_url($postID, $size)\n{\n //get wp object of featured image\n $feature_image_id = get_post_thumbnail_id($postID);\n //get array of the featured image based on size\n $feature_image_meta = wp_get_attachment_image_src($feature_image_id, $size);\n //the 1st argument of the array is the url of the image 2nd is the width the 3ed is the height\n $link = $feature_image_meta[0];\n //return the first argument\n return $link;\n}", "function get_image_url(){\n $image_id = get_post_thumbnail_id();\n $image_url = wp_get_attachment_image_src($image_id,'full');\n $image_url = $image_url[0];\n echo $image_url;\n }", "public function mainImageURL()\n {\n if ($this->image) {\n $imageLocation = $this->image->location;\n } else {\n // If the image cannot be displayed, show a generic image.\n $imageLocation = 'generic/generic1.jpg';\n }\n\n return Storage::url($imageLocation);\n }", "function rest_get_featured_image( $post, $field_name, $request ) {\n $attachment_id = $post['featured_media'];\n $attachment_info = wp_get_attachment_image_src( $attachment_id, 'rest_post_thumbnail' );\n return $attachment_info[0];\n}", "function wp_get_original_image_url($attachment_id)\n {\n }", "function wp_get_attachment_url($attachment_id = 0)\n {\n }", "function fs_get_featured_image_src( $size ) {\r\n\tglobal $post;\r\n\t$featured_image = wp_get_attachment_image_src(get_post_thumbnail_id(), $size);\r\n\treturn $featured_image[0];\r\n}", "final public function getPublicEmailAsImageUrl() {\r\n\t\t$cache = new ResultCache(\r\n\t\t\t$this->wrappedTopic->getConfig(),\r\n\t\t\t$this->wrappedTopic->getTopicFactory() );\r\n\r\n\t\treturn $cache->getCachedUrl(\r\n\t\t\tfunction($email) {\r\n\t\t\t\treturn ImageUtils::emailToImage($email);\r\n\t\t\t}, $this->getPublicEmail()->getFieldValue() );\r\n\t}", "function get_featured_image( $id ) {\n\treturn wp_get_attachment_image_src( get_post_thumbnail_id( $id ), IMAGE_CAPTIONS_IMAGE_SIZE )[0];\n}", "function PicAsEmailbody($web_link,$pic_link)\n{\n\tif($web_link != \"\" && $pic_link != \"\")\n\t{\n\t//\t$email_body = '<p>Forward to USTC friends, share the link-<a href=\"'.$web_link.'\">'.$web_link.'</a></p>'.'<p><a href=\"'.$web_link.'\"><img src=\"'.$pic_link.'\"></a></p>';\n \t$email_body = '<p>If you have difficulty viewing this message, please try the <a href=\"' . $web_link .'\"> online version</a>.</p>'. '<p><a href=\"'.$web_link.'\"><img src=\"'.$pic_link.'\"></a></p>';\n\treturn $email_body;\n\t}\n\telse\n\t{\t\n\t\tfile_put_contents(\"result.txt\",\"网页链接或者图片链接为空\\n\",FILE_APPEND);\n\t\texit(\"网页链接或者图片链接为空\");\n\t}\n}", "function get_image_send_to_editor($id, $caption, $title, $align, $url = '', $rel = \\false, $size = 'medium', $alt = '')\n {\n }", "public function getImage() {\n return Mage::helper('landingpage/image')->getImageUrl($this->getData('image'));\n }", "public function getThumbnailUrl();", "function setFeaturedImage($post_id, $url, $featuredImageTitle)\n{\n // with a new name based on the post_id\n $tmp_name = download_url($url);\n//\t\t\t\t\t\t\t\techo $tmp_name;\n $file_array['name'] = $post_id . '-thumb.jpg'; // new filename based on slug\n $file_array['tmp_name'] = $tmp_name;\n\n\n // If error storing temporarily, unlink\n if (is_wp_error($tmp_name)) {\n @unlink($file_array['tmp_name']);\n $file_array['tmp_name'] = '';\n }\n\n // do validation and storage . Make a description based on the Post_ID\n $attachment_id = media_handle_sideload($file_array, $post_id, 'Thumbnail for ' . $post_id);\n\n\n // If error storing permanently, unlink\n if (is_wp_error($attachment_id)) {\n $error_string = $attachment_id->get_error_message();\n @unlink($file_array['tmp_name']);\n return;\n }\n\n\n // Set as the post attachment\n $post_result = add_post_meta($post_id, '_thumbnail_id', $attachment_id, true);\n\n//\t\t\t\t\techo $post_result);\n\n}", "public function getImage(){\n\t\t//Message is absent\n\t\tif(!$this->thumbnail){\n\t\t\treturn false;\n\t\t}\n\t\treturn asset(\"downloads/{$this->thumbnail}\");\n\t}", "public static function image($email, $size = null, $atts = array())\r\n {\r\n $url = self::src($email, $size);\r\n $url = '<img src=\"' . $url . '\"';\r\n foreach ($atts as $key => $val)\r\n {\r\n $url .= ' ' . $key . '=\"' . $val . '\"';\r\n }\r\n $url .= ' />';\r\n\r\n return $url;\r\n }", "public function url()\n\t{\n\t\t$this->buildImage();\n\t\treturn $this->buildCachedFileNameUrl;\n\t}", "function image_link($imagename) {\r\n if (is_null($this->imagepath[$imagename]))\r\n {\r\n\tif ($this->monda && ($imagename == \"rss\")) {\r\n\t $path = $this->siteurl . '/wp-includes/images/rss.png';\r\n\t} else {\r\n \t $path = $this->image_url . $imagename . '.png';\r\n\t}\r\n\tif (wp_remote_fopen($path)) {\r\n\t $this->imagepath[$imagename] = $path;\r\n\t}\r\n\telse {\r\n\t $this->imagepath[$imagename] = $this->image_url . 'unknown.png';\r\n\t}\r\n }\r\n return $this->imagepath[$imagename];\r\n }", "function cl_wp_get_attachment_image_src($id, $type) {\n $url = wp_get_attachment_image_src($id, $type);\n if ( defined('FBRWEB_OFFLOAD_HOST') && ($rep = constant('FBRWEB_OFFLOAD_HOST')) ) {\n return str_replace( '//' . $_SERVER['HTTP_HOST'], '//' . $rep, $url);\n }\n return $url;\n}", "function get_featured_image_url( $post_id, $size ) {\n // for current post, call it with like $url = get_featured_image_url( get_the_ID(), 'full' );\n //$post_id = get_the_ID(); // try this just in case\n if (!$post_id) { return; } // bail if we still don't have a post_id\n if (!size) { $size = 'thumbnail'; } // default to the \"thumbnail\" sized image if we have no size specified\n\n if ( has_post_thumbnail( $post_id ) ) {\n $thumb_id = get_post_thumbnail_id($post_id);\n $thumbsrc = wp_get_attachment_image_src($thumb_id, $size);\n return $thumbsrc[0];\n }\n else { return; }\n}", "public function mainImage():string\n {\n return ($this->image_1) ? url( $this->image_1 ) : url( env('NO_IMAGE_PRODUCT_DEFAULT','') );\n }", "public function actionimages()\n {\n $module = \"DocumentAttachments\";\n $urlquerystring = $_SERVER['QUERY_STRING'];\n $paraArr = explode(\"/\", $urlquerystring);\n $ticketId = $paraArr['2'];\n $model = new Troubleticket;\n $imagedata = $model->getimage($module, $ticketId);\n header(\"Content-Type: image/jpeg\");\n header(\"Content-Disposition: inline;filename=\" . $imagedata['result']['filename']);\n echo base64_decode($imagedata['result'][filecontent]);\n die;\n }", "public function getImageUrl()\n {\n return WEB_SERVER_BASE_URL . '/badges/images/' . $this->data['id'];\n }", "public function getImageUrl();", "function get_attachment_url_by_title( $title ) {\n global $wpdb;\n\n $attachments = $wpdb->get_results( \"SELECT * FROM $wpdb->posts WHERE post_title = '$title' AND post_type = 'attachment' \", OBJECT );\n //print_r($attachments);\n if ( $attachments ){\n $attachment_url = $attachments[0]->guid;\n } else {\n return 'image-not-found';\n }\n\n return $attachment_url;\n}", "function generate_featured_image($image_url, $post_id){\n\t\tglobal $wpdb;\n\t $upload_dir = wp_upload_dir();\n\t $image_data = file_get_contents($image_url);\n\t $filename = basename($image_url);\n\t if (isset($filename) && $filename!='') {\n\t \t$filename = explode('?', $filename);\n\t\t if(wp_mkdir_p($upload_dir['path']))\n\t\t \t$file = $upload_dir['path'] . '/' . $filename[0];\n\t\t else\n\t\t \t$file = $upload_dir['basedir'] . '/' . $filename[0];\n\t\t \n\t\t\t$results = $wpdb->get_results(\"SELECT * FROM {$wpdb->prefix}posts where post_type = 'attachment' and post_title = '\".$filename[0].\"'\");\n\t\t\tif(empty($results)) {\n\t\t\t file_put_contents($file, $image_data);\n\t\t\t $wp_filetype = wp_check_filetype($filename[0], null);\n\t\t\t $attachment = array(\n\t\t\t 'post_mime_type' => $wp_filetype['type'],\n\t\t\t 'post_title' => sanitize_file_name($filename[0]),\n\t\t\t 'post_content' => '',\n\t\t\t 'post_status' => 'inherit'\n\t\t\t );\n\n\t\t\t $attach_id = wp_insert_attachment($attachment, $file, $post_id);\n\t\t\t require_once(ABSPATH . 'wp-admin/includes/image.php');\n\t\t\t $attach_data = wp_generate_attachment_metadata($attach_id, $file);\n\t\t\t $res1 = wp_update_attachment_metadata($attach_id, $attach_data);\n\t\t\t} else {\n\t\t\t\t$attach_id = $results[0]->ID;\n\t\t\t}\n\t\t \n\t\t return $attach_id;\n\t\t}\n\t}", "function get_link_img_post(){\n\tglobal $post;\n\tpreg_match_all('/src=\"(.*)\"/Us',get_the_content(),$matches);\n\t$link_img_post = $matches[1];\n\treturn $link_img_post;\n}", "function getUrlImg(){\n\t\treturn $this->url_img;\n\t}", "function getImg($postUrl){\n $url = explode(\"/\", $postUrl);\n $data = file_get_contents(\"htt\".\"p://\".$url[2].\"/mobile/post/\".$url[4]);\n preg_match_all('<a href=\"(.*?)\">',$data,$matches,PREG_PATTERN_ORDER);\n return $matches[1][0];\n}", "public function getThumbnail() {\n return Mage::helper('landingpage/image')->getImageUrl($this->getData('thumbnail'));\n }", "public function getThumbnailUrl()\n\t{\n if ($about = $this->getAbout()) {\n \t$ci =& get_instance();\n $ci->load->config('dir');\n $upload_path = $ci->config->item('upload_dir');\n\n\t\t\t$path = $upload_path . 'media/thumbnails/' . $about->photo; \n\n if (!file_exists($path) || $about->photo == '') {\n $url = base_url().BASE_IMG . 'user-photo.jpg';\n } else {\n $url = site_url($path);\n }\n }\t\n\n return $url;\n\t}", "public function getAttachmentUrl() {\n return $this->attributes['attachment_url'];\n }", "public function getImageUrl(){\n return $this->image_url;\n }", "function cpc_broker_img_url( $userID ){\n\t/* This function is dependent upon the WP User Avatar plugin! */\n\tif( function_exists('get_wp_user_avatar_src') ) {\n\t\treturn get_wp_user_avatar_src($userID, 250);\n\t}\n\telseif( function_exists('get_avatar_url') ) {\n\t\treturn get_avatar_url($userID);\n\t}\n\telse{\n\t\treturn;\n\t}\n}", "public function featured_img() {\n\n $featured_img = wp_get_attachment_image_src(\n get_post_thumbnail_id( get_the_ID() ), 'large'\n );\n\n return $featured_img[0];\n }", "function photonfill_get_url_image( $img_url, $img_size, $attr = array() ) {\n\treturn Photonfill()->get_url_image( $img_url, $img_size, $attr );\n}", "function wp_get_attachment_image_url($attachment_id, $size = 'thumbnail', $icon = \\false)\n {\n }", "function send_email_to_subscribers($template = 'blog-email.html' , $title , $image , $description){\n\t\t\t\t\t\t// check if there are subscribers\n\t\t\t\t\t\tglobal $db;\n\t\t\t\t\t\t$stmt = $db->prepare(\"SELECT email FROM email_subscribe\");\n\t\t\t\t\t\t$stmt->execute();\n\t\t\t\t\t\tif($stmt->rowCount() > 0){\n\t\t\t\t\t\t\t$rows = $stmt->fetchAll();\n\t\t\t\t\t\t\t$emailList;\n\t\t\t\t\t\t\tforeach($rows as $row){\n\t\t\t\t\t\t\t\t$emailList[] = $row['email'];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t// send email to those subscribers\n\t\t\t\t\t\t\t// get template body\n\t\t\t\t\t\t\t$stmt = $db->prepare(\"SELECT item_id FROM articles WHERE name = ? AND description = ? AND image = ? LIMIT 1\");\n\t\t\t\t\t\t\t$stmt->execute(array($title , $description , $image));\n\t\t\t\t\t\t\t$row = $stmt->fetch();\n\t\t\t\t\t\t\t$id = $row['item_id'];\n\t\t\t\t\t\t\t$template = __DIR__ . '/' . $template;\n\t\t\t\t\t\t\t$file = file_get_contents($template);\n\t\t\t\t\t\t\t$file = str_replace('[[title]]' , $title , $file);\n\t\t\t\t\t\t\t$file = str_replace('[[image]]' , $image , $file);\n\t\t\t\t\t\t\t$file = str_replace('[[description ]]' , $description , $file);\n\t\t\t\t\t\t\t$file = str_replace('[[id ]]' , $id , $file);\n\t\t\t\t\t\t\trequire 'phpMailer.php';\n\t\t\t\t\t\t\tsendEmail($emailList ,'new article releases' ,$file);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t// no subscribers \n\t\t\t\t\t\t}\n\t\t\t\t\t}", "function post_featured_image_json( $data, $post, $context ) {\n $featured_image_id = $data->data['featured_media'];\n $featured_image_url = wp_get_attachment_image_src( $featured_image_id, 'original' );\n if( $featured_image_url ) {\n $data->data['featured_image_url'] = $featured_image_url[0];\n }\n return $data;\n}", "function set_featured_image( $id, $is_static ) {\n\t$size = $is_static ? IMAGE_CAPTIONS_HERO_SIZE : IMAGE_CAPTIONS_IMAGE_SIZE;\n\treturn wp_get_attachment_image_src( get_post_thumbnail_id( $id ), $size )[0];\n}", "function get_custom_logo_url( $echo = true ){\n $custom_logo_id = get_theme_mod( 'custom_logo' );\n $image = wp_get_attachment_image_src( $custom_logo_id , 'full' );\n\n if(!$echo){\n return $image[0];\n }\n\n echo $image[0];\n}", "function wpseed_the_post_thumbnail_url($size, $postid) {\n echo wp_get_attachment_image_src( get_post_thumbnail_id($postid), $size )['0'];\n }", "function myimg_handle_attachments()\r\n{\r\n\tglobal $mybb, $attachedfile, $lang, $templates, $myimgbox, $myimgbox_js;\r\n\t\r\n\tif (is_member($mybb->settings['myimg_groups'])) {\r\n\t\t\r\n\tif($mybb->settings['myimg_id'] && $mybb->settings['myimg_api'] && $mybb->settings['myimg_authdomain'] && $mybb->settings['myimg_databaseurl'] && $mybb->settings['myimg_storagebucket'] && $mybb->settings['myimg_messagingsenderid']){\r\n\t\t\r\n\t\teval(\"\\$myimgbox = \\\"\".$templates->get(\"myimg_box\").\"\\\";\");\r\n\t\teval(\"\\$myimgbox_js = \\\"\".$templates->get(\"myimg_js\").\"\\\";\");\r\n\t\r\n\t}else{\r\n\t\t$myimgbox = '<div class=\"myimgboxes_box largetext\"><img src=\"images/MyImg/warn.png\"> Missing parameter in plugin setting.</div>';\r\n\t}\r\n\t\r\n\t}\r\n}", "function cpo_image_url( $id, $size = 'full' ) {\n\t$url = '';\n\tif ( is_numeric( $id ) ) {\n\t\t$url = wp_get_attachment_image_src( $id, $size );\n\t\t$url = $url[0];\n\t} else {\n\t\t$url = $id;\n\t}\n\n\treturn $url;\n}", "function cl_wp_get_attachment_url($url) {\n if ( defined('FBRWEB_OFFLOAD_HOST') && ($rep = constant('FBRWEB_OFFLOAD_HOST')) ) {\n return str_replace( '//' . $_SERVER['HTTP_HOST'], '//' . $rep, $url);\n }\n return $url;\n}", "public function getShareImage() {\n if ($this->item_image == null) {\n return Yii::app()->request->baseUrl . \"/images/box/fbdefault.jpg\";\n } else {\n return Yii::app()->request->baseUrl . \"/images/box/\" . $this->item_image;\n }\n }", "function cjpopups_post_featured_image($post_id, $size = null, $single = false, $default_text = 'No Thumbnail'){\n\tglobal $post;\n\tif(has_post_thumbnail( $post_id )){\n\t\tif(!is_array($size)){\n\t\t\t$image = wp_get_attachment_image_src( get_post_thumbnail_id( $post_id ), $size );\n\t\t}else{\n\t\t\t$image = wp_get_attachment_image_src( get_post_thumbnail_id( $post_id ), $size );\n\t\t\t$image = cjpopups_resize_image($image[0], $size[0], $size[1], true, false);\n\t\t}\n\n\t\tif($single){\n\t\t\t$return = $image[0];\n\t\t}else{\n\t\t\t$return = $image;\n\t\t}\n\t}else{\n\t\tif($single){\n\t\t\t$return = 'http://placehold.it/600x600/eeeeee/cccccc&text='.urlencode($default_text);\n\t\t}else{\n\t\t\t$return[] = 'http://placehold.it/600x600/eeeeee/cccccc&text='.urlencode($default_text);\n\t\t\t$return[] = 250;\n\t\t\t$return[] = 250;\n\t\t}\n\t\t$return[] = 'http://placehold.it/600x600/eeeeee/cccccc&text=No+Thumbnail';\n\t\t$return[] = 250;\n\t\t$return[] = 250;\n\t\treturn $return;\n\t}\n\treturn $return;\n}", "function wp_get_actual_attachment_image_src($image_id, $size = 'full') {\n return ($i = wp_get_attachment_image_src($image_id, $size)) ? $i[0] : '';\n}", "function express_intrest_mail_send($member_id,$sender_id)\n {\n // /uploads/profile_image/profile_13.jpg\n // sender details \n $sender_name = $this->Crud_model->get_type_name_by_id('member', $sender_id, 'first_name');\n $from_mail = $this->Crud_model->get_type_name_by_id('member', $sender_id, 'email');\n // recepient details\n $receiver_name = $this->Crud_model->get_type_name_by_id('member', $member_id, 'first_name');\n $to_mail = $this->Crud_model->get_type_name_by_id('member', $member_id, 'email');\n\n $sub = $sender_name .' ('. $sender_id .') has accepted your profile.';\n $this->Email_model->express_intrest_mail_send($member_id,$sender_id,$from_mail,$sender_name,$to_mail,$sub);\n }", "public function getImageUrl()\n {\n return $this->image_url;\n }", "public function getImageUrl()\n {\n return $this->image_url;\n }", "function get_hisrc_img( $img_id, $link='', $width_mobile='200', $height_mobile='200' ) {\n $out = '';\n if ( $img_id !='' ) {\n $img_src_mobile = wp_get_attachment_image_src( $img_id, array( $width_mobile, $height_mobile ) );\n $img_src_desktop = wp_get_attachment_image_src( $img_id, array( 400, 400 ) );\n $out .= '<div class=\"hisrc\">';\n if ( $link != '' ) {\n $out .= '<a href=\"'.$link.'\"><img src=\"'.$img_src_mobile[0].'\" width=\"'.$width_mobile.'\" height=\"'.$height_mobile.'\"\n data-1x=\"'.$img_src_desktop[0].'\" alt=\"'.$post->post_title.'\" /></a>';\n } else {\n $out .= '<img src=\"'.$img_src_mobile[0].'\" width=\"'.$width_mobile.'\" height=\"'.$height_mobile.'\"\n data-1x=\"'.$img_src_desktop[0].'\" alt=\"'.$post->post_title.'\" />';\n }\n $out .= '</div>';\n }\n return $out;\n}", "protected function getImageUrl() {\r\n\t\treturn $this->imageUrl;\r\n\t}", "public function getImageUrl() \n {\n // return a default image placeholder if your source avatar is not found\n $imagen = isset($this->imagen) ? $this->imagen : 'default_product.jpg';\n return Url::to('@web/img/producto/'). $imagen;\n }", "function ST4_columns_content($column_name, $post_ID) {\n if ($column_name == 'featured_image') {\n $post_featured_image = ST4_get_featured_image($post_ID);\n if ($post_featured_image) {\n echo '<img src=\"' . $post_featured_image . '\" />';\n }\n }\n}", "public function getImageUrl() {\n return $this->image_url;\n\n }", "public function getImageURL() {\n\n return $this->image_url;\n }", "public function getImageUrl()\n\t{\n\t\treturn $this->image_url;\n\t}", "public function getHostImageUrl() {\n return $this->objectManager->get ( 'Magento\\Store\\Model\\StoreManagerInterface' )->getStore ()->getBaseUrl ( \\Magento\\Framework\\UrlInterface::URL_TYPE_MEDIA ) . 'Airhotels/Customerprofileimage/Resized';\n }", "function altlab_timeline_featured_image($entry, $form){\n $timeline_type = rgar($entry, '3');//entry field ID is 3\n if ($timeline_type == 'First computer I owned' ){//response\n $img_id = 6895;//id of image in wp media library\n }\n if ($timeline_type == 'First time online'){\n $img_id = 6899;\n }\n if ($timeline_type == 'First email'){\n $img_id = 6900;\n }\n if ($timeline_type == 'First cell phone'){\n $img_id = 6898;\n }\n \n set_post_thumbnail( $entry['post_id'], $img_id );\n}", "function photonfill_get_breakpoint_url( $attachment_id, $img_size, $breakpoint, $pixel_density = 1 ) {\n\treturn Photonfill()->get_breakpoint_url( $attachment_id, $img_size, $breakpoint, $pixel_density );\n}", "function custom_send_image_to_editor( $html, $id, $caption, $title, $align, $url, $size, $alt ) {\n\n\t$url = wp_get_attachment_url($id);\n\n\t$html_str = '<div class=\"align-' . esc_attr($align) . '\">';\n\n \t\t$html_str .= \"<p><img src='$url' alt='$title' /></p>\";\n\n\t\tif($caption) $html_str .= '\n\t\t<p class=\"wp-caption-text\">' . $caption . '</p>\n\t\t';\n\n\t$html_str .= '</div>';\n\n return $html_str;\n}", "function Generate_Featured_Image($file, $post_id, $desc)\n{\n preg_match('/[^\\?]+\\.(jpe?g|jpe|gif|png)\\b/i', $file, $matches);\n if (!$matches) {\n return new WP_Error('image_sideload_failed', __('Invalid image URL'));\n }\n\n $file_array = array();\n $file_array['name'] = basename($matches[0]);\n\n // Download file to temp location.\n $file_array['tmp_name'] = download_url($file);\n\n // If error storing temporarily, return the error.\n if (is_wp_error($file_array['tmp_name'])) {\n return $file_array['tmp_name'];\n }\n\n // Do the validation and storage stuff.\n $id = media_handle_sideload($file_array, $post_id, $desc);\n\n // If error storing permanently, unlink.\n if (is_wp_error($id)) {\n @unlink($file_array['tmp_name']);\n return $id;\n }\n return set_post_thumbnail($post_id, $id);\n\n}", "public function src(){\n return $this->imageFirstInContent;\n }", "public function getImageUrl()\n {\n $baseUrl = $this->getBaseImageUrl();\n if ($baseUrl) {\n $dimensions = $this->getImageDimensions();\n $imageData = $this->getImageData();\n $width = Kwf_Media_Image::getResponsiveWidthStep($dimensions['width'],\n Kwf_Media_Image::getResponsiveWidthSteps($dimensions, $imageData['file']));\n $ret = str_replace('{width}', $width, $baseUrl);\n $ev = new Kwf_Component_Event_CreateMediaUrl($this->getData()->componentClass, $this->getData(), $ret);\n Kwf_Events_Dispatcher::fireEvent($ev);\n return $ev->url;\n }\n return null;\n }", "function ac_get_image_id($image_url) {\n \n global $wpdb;\n \n $attachment = $wpdb->get_col($wpdb->prepare(\"SELECT ID FROM $wpdb->posts WHERE guid='%s';\", $image_url )); \n \n return $attachment[0]; \n}", "function btm_thumb_linksto(){\n\t global $post;\n\t $custom = get_post_custom($post->ID);\n\t $featured_image_link_to = $custom[\"featured_image_link_to\"][0];\n\t $featured_image_link_to_url = $custom[\"featured_image_link_to_url\"][0];\n\t ?>\n\t <p><?php _e('Choose on a post by post basis where the featured image thumbnails to link to.','btm'); ?></p>\n\t <p>\n\t <select name=\"featured_image_link_to\">\n\t \t<option value=''><?php _e('Default','btm'); ?></option>\n\t \t<?php\n\t \t\t$featured_image_link_to_options = array(\n\t \t\t\t'post' => __('Full Post','btm'),\n\t \t\t\t'image' => __('Image','btm')\t \t\t\t\n\t \t\t);\t\n\t\t\tforeach ( $featured_image_link_to_options as $k => $v ) {\n\t\t\t\tif ( $k == $featured_image_link_to ) { $sel = \" selected='selected'\"; }else{ $sel = \"\"; }\n\t\t\t \techo \"<option \" . $sel . \" value='\". $k .\"'>\" . $v . \"</option>\"; \n\t\t\t}\n\t \t?>\n\t\t</select>\n\t\t<em><?php _e('or','btm'); ?></em> <?php _e('Custom URL:','btm'); ?> <input type=\"text\" style='width:300px; border-style:solid; border-width:1px;' name=\"featured_image_link_to_url\" value=\"<?php echo $featured_image_link_to_url; ?>\" /> <?php _e('(Full URL - Video, External Page, etc...)','btm'); ?></p>\t\t\n\t <?php\n\t}", "function send_preview_ajax() {\r\n\r\n require_once( $this->plugin_dir . \"email-newsletter-files/phpmailer/class.phpmailer.php\" );\r\n\r\n $mail = new PHPMailer();\r\n\r\n $mail->CharSet = 'UTF-8';\r\n\r\n //Set Sending Method\r\n switch( $this->settings['outbound_type'] ) {\r\n case 'smtp':\r\n $mail->IsSMTP();\r\n $mail->Host = $this->settings['smtp_host'];\r\n $mail->SMTPAuth = ( strlen( $this->settings['smtp_user'] ) > 0 );\r\n if( $mail->SMTPAuth ){\r\n $mail->Username = $this->settings['smtp_user'];\r\n $mail->Password = $this->settings['smtp_pass'];\r\n }\r\n break;\r\n\r\n case 'mail':\r\n $mail->IsMail();\r\n break;\r\n\r\n case 'sendmail':\r\n $mail->IsSendmail();\r\n break;\r\n }\r\n\r\n //open template file\r\n $filename = $this->plugin_dir . \"email-newsletter-files/templates/\" . $_REQUEST['template'] . \"/template.html\";\r\n $handle = fopen( $filename, \"r\" );\r\n $contents = fread( $handle, filesize( $filename ) );\r\n fclose( $handle );\r\n\r\n //Replace content of template\r\n $content = base64_decode( str_replace( \"-\", \"+\", $_REQUEST['content'] ) );\r\n $contact_info = base64_decode( str_replace( \"-\", \"+\", $_REQUEST['contact_info'] ) );\r\n\r\n $contents = str_replace( \"{EMAIL_BODY}\", $content, $contents );\r\n $contents = str_replace( \"{EMAIL_SUBJECT}\", stripslashes ( $_REQUEST['subject'] ), $contents );\r\n $contents = str_replace( \"{FROM_NAME}\", stripslashes ( $_REQUEST['from_name'] ), $contents );\r\n $contents = str_replace( \"{FROM_EMAIL}\", $_REQUEST['from_email'], $contents );\r\n $contents = str_replace( \"{CONTACT_INFO}\", $contact_info, $contents );\r\n $contents = str_replace( \"images/\", $this->plugin_url . \"email-newsletter-files/templates/\" . $_REQUEST['template'] . \"/images/\", $contents );\r\n\r\n $mail->From = $_REQUEST['from_email'];\r\n $mail->FromName = stripslashes ( $_REQUEST['from_name'] );\r\n $mail->Subject = stripslashes ( $_REQUEST[\"subject\"] );\r\n\r\n $mail->MsgHTML( $contents );\r\n\r\n $mail->AddAddress( $_REQUEST[\"preview_email\"] );\r\n\r\n if( $this->settings['bounce_email'] ) {\r\n $mail->Sender = $this->settings['bounce_email'];\r\n }\r\n\r\n if( ! $mail->Send() )\r\n die( \"Mailer Error: \" . $mail->ErrorInfo );\r\n else\r\n die( \"Test Email was sent\" );\r\n }", "function send_email_to_social(){\n\t//get required info\n\t$postid = trim($_GET['post']);\n\t$meta_key = trim($_GET['meta_key']);\n\t$meta_value = trim($_GET['meta_value']);\n\t\n\t//update post meta\n\tupdate_post_meta($postid,$meta_key,$meta_value);\n\t\n\t//more required info\n\t$title = get_the_title($postid);\n\t$postmeta = get_post_meta($postid);\n\t$fbcopy = get_fbinfo($postmeta,'facebook-copy');\n\t$fbwall = get_fbinfo($postmeta,'fbwall');\n\tlist($wall_id,$wall_num) = explode('-',$fbwall,2);\n\t$slug = get_post_field('post_name',get_post($postid));\n\t$image = wp_get_attachment_url(get_post_thumbnail_id($postid));\n\t\n\t//prepare urls\n\t$url = 'http://'.$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];\n\t$redirect_fail = $url.'?post='.$postid.'&action=edit&sendto_social=fail';\n\t$redirect_success = $url.'?post='.$postid.'&action=edit&sendto_social=success';\n\t\n\t//make sure vars not empty\n\tif(empty($postid)){\n\t\theader('Location: '.$redirect_fail.'&error=postid_empty');exit;\n\t}\n\tif(empty($title)){\n\t\theader('Location: '.$redirect_fail.'&error=title_empty');exit;\n\t}\n\tif(empty($fbwall)){\n\t\theader('Location: '.$redirect_fail.'&error=fbwall_empty');exit;\n\t}\n\tif(empty($slug)){\n\t\theader('Location: '.$redirect_fail.'&error=slug_empty');exit;\n\t}\n\tif(empty($image)){\n\t\theader('Location: '.$redirect_fail.'&error=image_empty');exit;\n\t}\n\t\n\tif(empty($fbcopy)){\n\t\t$fbcopy = '(No Facebook Copy)';\n\t}\n\t\n\t//use site_url to build permalink\n\t$site_url = str_replace('admin.','www.',site_url());\n\tif(stristr($site_url,'mommypage') || stristr($site_url,'mp_wp') || stristr($site_url,'healthypage') || stristr($site_url,'hp_wp') ){\n\t\t$permalink = $site_url.get_the_date('/m/Y/',$postid).$slug;\n\t} elseif(stristr($site_url,'glamourpage') || stristr($site_url,'gp_wp')){\n\t\t$permalink = $site_url.$slug;\n\t} elseif(stristr($site_url,'nx2') || stristr($site_url,'nx2_wp')){\n\t\t$permalink = $site_url.'/a/nx2/'.$slug.'-'.$postid;\n\t} elseif(stristr($site_url,'nano.trancospages') || stristr($site_url,'nano_wp')){\n\t\t$siteid = get_siteid_from_postid($postid);\n\t\t$permalink = get_nano_url($siteid).'/'.$slug;\n\t}\n\t\n\t//second check for empty vars\n\tif(empty($permalink)){\n\t\theader('Location: '.$redirect_fail.'&error=permalink_empty');exit;\n\t} else {\n\t\t$permalink2 = $permalink.'/ape_'.$wall_id.'/?utm_source=ape_'.$wall_id;\n\t}\n\t\n\t//send email\n\t$user_email = get_user_email();\n\t$to = SOCIAL_EMAIL;\n\t$bcc = EDITOR_EMAIL;\n\t\n\t$img_path = explode('/',$image);\n\t$img_path = array_slice($img_path,-3,3);\n\t$uploads = wp_upload_dir();\n\t$attachment = $uploads['basedir'].'/'.implode('/',$img_path);\n\t$content = file_get_contents($attachment);\n\t$content = chunk_split(base64_encode($content));\n\t$uid = md5(uniqid(time()));\n\t$filename = basename($attachment);\n\n\t// header\n\t$headers = \"From: $user_email\\r\\n\";\n\t$headers .= \"Reply-To: $user_email\\r\\n\";\n\t$headers .= \"Bcc: $bcc\\r\\n\";\n\t$headers .= \"MIME-Version: 1.0\\r\\n\";\n\t$headers .= \"Content-Type: multipart/mixed; boundary=\\\"\".$uid.\"\\\"\\r\\n\\r\\n\";\n\t\n\t// subject\n\t$subject = strtoupper($wall_id).' '.date('l').' #'.$wall_num.': '.ucwords($title);\n\t$subject = replace_utf8($subject);\n\t\n\t// message & attachment\n\t$message = \"--\".$uid.\"\\r\\n\";\n\t$message .= \"Content-type:text/plain; charset=iso-8859-1\\r\\n\";\n\t$message .= \"Content-Transfer-Encoding: 7bit\\r\\n\\r\\n\";\n\t$message .= \"FB Copy:\\r\\n$fbcopy\\r\\n\\r\\n\\r\\n$permalink\\r\\n$permalink2\\r\\n\\r\\n\\r\\nimg:\\r\\n$image\\r\\n\\r\\n\";\n\t$message .= \"--\".$uid.\"\\r\\n\";\n\t$message .= \"Content-Type: application/octet-stream; name=\\\"\".$filename.\"\\\"\\r\\n\";\n\t$message .= \"Content-Transfer-Encoding: base64\\r\\n\";\n\t$message .= \"Content-Disposition: attachment; filename=\\\"\".$filename.\"\\\"\\r\\n\\r\\n\";\n\t$message .= $content.\"\\r\\n\\r\\n\";\n\t$message .= \"--\".$uid.\"--\";\n\t\n\t\n\t\n\tmail($to,$subject,$message,$headers);\n\t\n\t//redirect editor to this post with a success message and exit\n\theader('Location: '.$redirect_success);exit;\n}", "public function getProfileImage(){\n\t\t// To hook into this function we could use a an event:\n\t\t// $event = new CEvent();\n\t\t// $this->onGetProfileImage($event)\n\t\t// // then if the event has been handled \n\t\t// if($event->handled)\n\t\t// // we know another function has handled the event and found us an image url for this user\n\t\t// // it could store this in the event object\n\t\t// return $event->params->imageUrl \n\t\t\n\t\t// Display guest photo\n\t\treturn Yii::app()->controller->createWidget('nii.widgets.Gravatar',array('email'=>$this->email))->getUrl();\n\t}", "protected function embedImages($email) {\n\n $html_embed = $email['body'];\n\n foreach ($email['attachments'] as $key => $attachment) {\n if (strtolower($attachment['disposition']) == 'inline' && !empty($attachment['reference'])){\n $file = $this->getAttachment($email['id'] , $key);\n\n $reference = str_replace(array(\"<\", \">\"), \"\", $attachment['reference']);\n $img_embed = \"data:image/\" . strtolower($file['type']) . \";base64,\" . base64_encode($file['content']);\n\n $html_embed = str_replace(\"cid:\" . $reference, $img_embed, $html_embed);\n }\n }\n return $html_embed;\n }", "function mailUser($email) {\n\t//echo \"mail user <br>\";\n\t$mail = getSocksMailer();\n\t$mail->Subject = \"Litesprite Survey Completed\";\n\t$mail->AddEmbeddedImage('../images/paw.png', 'paw');\n\t$mail->msgHTML(file_get_contents('../emails/postSurvey.html'), dirname(__FILE__));\n\t$mail->AddAddress($email);\n\tsendMail($mail);\n}", "public function enviar(){\n\t\t\t$email = array(\n\t\t \t\t'nome'=>$this->remover_caracter($this->nome),\n\t\t \t\t'email'=>$this->email,\n\t\t\t\t'assunto'=>$this->remover_caracter($this->assunto),\n\t\t \t\t'texto'=>$this->remover_caracter($this->mensagem)\n\t\t\t);\n\t\t\tif( is_file($this->logo) ){\n\t\t\t\t$imagem_nome=$this->logo;\n\t\t\t\t$arquivo=fopen($imagem_nome,'r');\n\t\t\t\t$contents = fread($arquivo, filesize($imagem_nome));\n\t\t\t\t$encoded_attach = chunk_split(base64_encode($contents));\n\t\t\t\tfclose($arquivo);\n\t\t\t}\n\t\t\t$limitador = \"_=======\". date('YmdHms'). time() . \"=======_\";\n\n\t\t\t$mailheaders = \"From: \".$email['email'].\"\\r\\n\";\n\t\t\t$mailheaders .= \"MIME-version: 1.0\\r\\n\";\n\t\t\t$mailheaders .= \"Content-type: multipart/related; boundary=\\\"$limitador\\\"\\r\\n\";\n\t\t\t$cid = date('YmdHms').'.'.time();\n\n\t\t\t$texto=\"\n\t\t\t\t<html>\n\t\t\t\t<head>\n\t\t\t\t\t\".header('Content-type: text/html; charset=utf-8').\"\n\t\t\t\t</head>\n\t\t\t\t<body>\n\t\t\t\t\t<img src=\\\"cid:$cid\\\">\n\t\t\t\t\t<h1>Desenvolvedor avulso para Web</h1>\n\t\t\t\t\t<br>\n\t\t\t\t\t<p><strong>\".$email['nome'].\"</strong>: Solicitou contato, sobre :<em>\".$email['assunto'].\"</em></p>\n\t\t\t\t\t<p>com a seguinte mensagem: <span>\".$email['texto'].\"</span></p>\n\t\t\t\t\t<p>email: \".$email['email'].\"</p>\n\t\t\t\t\t<a href='http://\". $this->url .\"'><font size=3>\". $this->url .\"</font></a>\n\t\t\t\t</body>\n\t\t\t\t</html>\n\t\t\t\";\n\n\t\t\t$msg_body = \"--$limitador\\r\\n\";\n\t\t\t$msg_body .= \"Content-type: text/html; charset=iso-8859-1\\r\\n\";\n\t\t\t$msg_body .= \"$texto\";\n\n\t\t\t$emailPara = explode('@',$this->para)[1];\n\t\t\treturn mail($this->para ,\"Um novo Cliente Contactou o Site \". $emailPara ,$msg_body, $mailheaders);\n\t\t}", "function pmail($m, $r)\n{\n $mail = new PHPMailer(true);\n\n try {\n //Server settings\n $mail->SMTPDebug = false;\n $mail->isSMTP();\n $mail->Host = 'smtp.gmail.com';\n $mail->CharSet = 'UTF-8';\n $mail->SMTPAuth = true;\n $mail->Username = 'justtestingmag69@gmail.com';\n $mail->Password = 'peerlessmag33'; // SMTP password\n $mail->SMTPSecure = 'ssl';\n $mail->Port = 465;\n\n\n //Recipients \n $mail->setFrom('example@example.com', 'Example');\n \n \n $mail->addReplyTo('example@example.com');\n \n $mail->addAddress($r['mail'], $r['name']); // Add a recipient\n\n\n // Attachments\n //$mail->addAttachment('/var/tmp/file.tar.gz'); // Add attachments\n //$mail->addAttachment('/tmp/image.jpg', 'new.jpg'); // Optional name\n\n\n\n // $mail->AddEmbeddedImage('files/source/main.png', 'logo','main');\n\n $mail->isHTML(true);\n\n if ($m['mess'] == \"issue1\") {\n $message = $m['content'];\n } else if ($m['mess'] == \"confirm\" || $m['mess'] == \"recovery\") {\n // Content\n $message = '<style type=\"text/css\">\n title{text-align:center;}\n </style>\n <table width=\"100%\" style=\"text-align:center;\" cellspacing=\"0\" cellpadding=\"0\">\n <tr>\n <td>\n <table cellspacing=\"0\" cellpadding=\"0\" style=\"margin:auto;\">\n <tr>\n <td width=\"100%\" align=\"center\" style=\"border-radius: 2px;\">\n <a href=\"\" target=\"_blank\" style=\" border-radius: 2px;display:block;margin:auto;text-align:center;color:#fff;\">\n <img alt=\"portal\" src=\"\" \n width=\"200px\" style=\"display: block;margin:auto;\"> \n </a>\n </td>\n </tr>\n </table>\n </td>\n </tr>\n</table>\n<table style=\"width:100%;text-align:center;\">\n <tr>\n <td>\n <h1 style=\"padding:4px;border-radius: 2px;font-family: Georgia;color: #000000;text-decoration: none;\"><style>table{width:100%;text-align:center;}</style>' . (($m['mess'] == \"confirm\") ? \"Confirm Your Email Address\" : \"Recover Your Password\") . '</h1>\n <td></tr>\n </td>\n </table>\n</tr>\n </table>\n \n \n <table width=\"100%\" style=\"text-align:center;\" cellspacing=\"0\" cellpadding=\"0\">\n<tr>\n <td>\n <table style=\"margin:auto;\">\n <tr>\n <td>\n <span style=\"padding:4px;border-radius: 2px;font-family: Georgia;font-size: 18px; color: #000000;text-decoration: none;\">Your ' . (($m['mess'] == \"confirm\") ? \"confirmation\" : \"Recovery\") . ' code is below - enter it into your open browser or click on the link</span>\n <br></br>\n <span style=\"padding:4px;border-radius: 2px;font-family: Georgia;font-size: 18px; color: #000000;text-decoration: none;\">Please enter the code exactly how it is here into your browser</span>\n <td></tr>\n </table>\n </td>\n</tr>\n </table>\n<br></br>\n<br></br>\n<br></br> \n<table width=\"100%\" style=\"text-align:center;\" cellspacing=\"0\" cellpadding=\"0\">\n<tr>\n <td>\n <table style=\"text-align:center;\" width=\"100%\">\n<tr>\n <td align=\"center\" valign=\"middle\" style=\"\">\n <a target=\"_blank\" href=' . $m['url'] . ' style=\"background-color:#ffa500; display: block; padding: 12px;max-width:700px; text-transform: capitalize;text-align:center;border-radius: 2px;font-family: Georgia;font-weight: 500; font-size: 14px;color:#ffffff;text-decoration: none;\">' . (($m['mess'] == \"confirm\") ? \"confirmation\" : \"Recovery\") . '</a>\n </td>\n</tr>\n </td>\n </table>\n</tr>\n </table>\n\n<br></br>\n\n<table width=\"100%\" style=\"text-align:center;\" cellspacing=\"0\" cellpadding=\"0\">\n<tr>\n <td>\n <table style=\"margin:auto;\">\n <tr>\n <td>\n <span style=\"padding:4px;border-radius: 2px;font-family: Georgia;font-size: 18px; color: #000000;text-decoration: none;\">If you didn\\'t request this email, there\\'s nothing to worry about - you can safely ignore it.</span>\n <td></tr>\n </td>\n </table>\n</tr>\n </table>'; //end herrre\n } else if ($m['mess'] == \"save\") {\n $message = '\n <table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\">\n <tr>\n <td>\n <table cellspacing=\"0\" cellpadding=\"0\" style=\"margin:auto;\">\n <tr>\n <td align=\"center\" style=\"border-radius: 2px;\">\n <a href=\"/link/\" target=\"_blank\" style=\"padding: 8px 12px; border-radius: 2px;font-family: Helvetica, Arial, sans-serif;margin:auto;color: #ffffff;text-align:center;text-decoration: none;\">\n <img src=\"/link/\" width=\"200px\" style=\"display: block;\n margin:auto;\"> \n </a>\n </td>\n </tr>\n </table>\n </td>\n </tr>\n</table>\n<table style=\"width:100%;text-align:center;\">\n <tr>\n <td>\n <style>table{width:100%;text-align:center;}</style>\n <h1 style=\"padding:4px;border-radius: 2px;font-family: Georgia;color: #000000;text-decoration: none;\">Profile Changes</h1>\n <td></tr>\n </td>\n </table>\n</tr>\n </table>\n \n \n <table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\">\n<tr>\n <td>\n <table style=\"margin:auto;\">\n <tr>\n <td>\n <span style=\"padding:4px;border-radius: 2px;font-family: Georgia;font-size: 18px; color: #000000;text-decoration: none;\">Hello You Made Changes To Your Profile Earlier...Click The Link Below To Save Your Settings</span>\n <td></tr>\n </td>\n </table>\n</tr>\n </table>\n<br></br>\n<br></br>\n<br></br> \n<table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\">\n<tr>\n <td>\n <table width=\"100%\">\n<tr>\n <td align=\"center\" valign=\"middle\" style=\"\">\n <a target=\"_blank\" href=' . $m['url'] . ' style=\"background-color:#ffa500; display: block; padding: 12px;max-width:700px; text-transform: capitalize;text-align:center;border-radius: 3px;font-family: Georgia;font-weight: 500; font-size: 14px;color:#ffffff;text-decoration: none; font-style: normal; \">Save Settings</a>\n </td>\n</tr>\n </td>\n </table>\n</tr>\n </table>\n\n<br></br>\n<br></br>\n\n<table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\">\n<tr>\n <td>\n <table style=\"margin:auto;\">\n <tr>\n <td>\n <span style=\"padding:4px;border-radius: 2px;font-family: Georgia;font-size: 18px; color: #000000;text-decoration: none;\">If you didn\\'t request this email, there\\'s nothing to worry about - you can safely ignore it.</span>\n <td></tr>\n </td>\n </table>\n</tr>\n </table>'; //end herrre\n\n } else if ($m['mess'] == \"notify\") {\n\n $message = '\n <table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\">\n <tr>\n <td>\n <table cellspacing=\"0\" cellpadding=\"0\" style=\"margin:auto;\">\n <tr>\n <td width=\"100%\" align=\"center\" style=\"border-radius: 2px;\">\n <a href=\"/link/\" target=\"_blank\" style=\" border-radius: 2px;display:block;margin:auto;text-align:center;color:#fff;\">\n <img alt=\"/link/\" src=\"/link/\" width=\"200px\" style=\"display: block;margin:auto;\"> \n </a>\n </td>\n </tr>\n </table>\n </td>\n </tr>\n</table>\n<table style=\"width:100%;text-align:center;\">\n <tr>\n <td>\n \n <h1 style=\"padding:4px;border-radius: 2px;font-family: Georgia;color: #000000;text-decoration: none;\">New Articles Ready For Review<style>table{width:100%;text-align:center;}</style></h1>\n <td></tr>\n </td>\n </table>\n</tr>\n </table>\n\n <br></br>\n <table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\">\n<tr>\n <td>\n <table style=\"margin:auto;\">\n <tr>\n <td>\n <span style=\"padding:4px;border-radius: 2px;font-family: Georgia;font-size: 18px; color: #000000;text-decoration: none;\">Hello ' . $r['name'] . ' You Have Up To 5 or More Waiting For Your Approval Click On The Button Below To Login.</span>\n\n<br></br>\n<br></br>\n\n<table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\">\n<tr>\n <td>\n <table width=\"100%\">\n<tr>\n <td align=\"center\" valign=\"middle\" style=\"\">\n <a target=\"_blank\" href=' . $m['url'] . ' style=\"background-color:#ffa500; display: block; padding: 12px;max-width:700px; text-transform: capitalize;text-align:center;border-radius: 2px;font-family: Georgia;font-weight: 500; font-size: 14px;color:#ffffff;text-decoration: none; font-style: normal;\">Login</a>\n </td>\n</tr>\n </td>\n </table>\n</tr>\n </table>\n\n<br></br>\n<br></br>\n<table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\">\n<tr>\n <td>\n <table style=\"margin:auto;\">\n <tr>\n <td>\n <span style=\"padding:4px;border-radius: 2px;font-family: Georgia;font-size: 18px; color: #000000;text-decoration: none;\">If this email doesn\\'t seem familiar to you, there\\'s nothing to worry about - you can safely ignore it.</span>\n <td></tr>\n </td>\n </table>\n</tr>\n </table>';\n\n } else if ($m['mess'] == \"ninfo\") {\n $message = $m['info'];\n }\n $mail->Subject = $m['subject'];\n $mail->Body = $message;\n $mail->send();\n return true;\n } catch (Exception $e) {\n return false;\n }\n}", "function Send_mail($to_email, $emailkey) \n{\n $random_number = Random_xkcd();\n $image_url = Image_url($random_number);\n $attachment_data = Attachment_data($image_url);\n $attachment_name = \"xkcd$random_number.jpeg\";\n $server_name = 'localhost';\n $eol = PHP_EOL;\n $from = FROM ;\n\n $subject = 'xkcd';\n $body = \"<img src=$image_url><br>\n <a href='$server_name/php-parasdalsaniya/unsubscribe.php?usersign=$emailkey'>\n Unsubscrib Here;\n </a>\";\n $separator = md5(time());\n\n $headers = '';\n $headers .= 'MIME-Version: 1.0' . $eol;\n $headers .= \"Content-Type: multipart/mixed; boundary=\\\"\".$separator.\"\\\"\" . $eol;\n $headers .= \"FROM: $from\";\n \n // HTML message\n $message = '';\n $message .= '--'.$separator.$eol;\n $message .= \"Content-Type: text/html; charset=\\\"iso-8859-1\\\"\" . $eol;\n $message .= \"Content-Transfer-Encoding: 7bit\" . $eol . $eol;\n $message .= $body . $eol;\n \n // Attachment\n $message .= '--'.$separator.$eol;\n $message .= \"Content-Type: application/octet-stream; name=\\\"\".$attachment_name.\"\\\"\".$eol;\n $message .= \"Content-Transfer-Encoding: base64\" . $eol;\n $message .= \"Content-Disposition: attachment\" . $eol . $eol;\n $message .= $attachment_data . $eol;\n $message .= '--' . $separator . '--';\n\n return mail($to_email, $subject, $message, $headers);\n}", "function kt_get_image_id($image_url) {\n global $wpdb;\n $attachment = $wpdb->get_col($wpdb->prepare(\"SELECT ID FROM $wpdb->posts WHERE guid='%s';\", $image_url )); \n return $attachment[0]; \n}", "function sendErrorImage($message) {\n /* get all of the required data from the HTTP request */\n $document_root = $_SERVER['DOCUMENT_ROOT'];\n $requested_uri = parse_url(urldecode($_SERVER['REQUEST_URI']), PHP_URL_PATH);\n $requested_file = basename($requested_uri);\n $source_file = $document_root.$requested_uri;\n\n if(!is_mobile()){\n $is_mobile = \"FALSE\";\n }\n else {\n $is_mobile = \"TRUE\";\n }\n\n $im = ImageCreateTrueColor(800, 300);\n $text_color = ImageColorAllocate($im, 233, 14, 91);\n $message_color = ImageColorAllocate($im, 91, 112, 233);\n\n ImageString($im, 5, 5, 5, \"Adaptive Images encountered a problem:\", $text_color);\n ImageString($im, 3, 5, 25, $message, $message_color);\n\n ImageString($im, 5, 5, 85, \"Potentially useful information:\", $text_color);\n ImageString($im, 3, 5, 105, \"DOCUMENT ROOT IS: $document_root\", $text_color);\n ImageString($im, 3, 5, 125, \"REQUESTED URI WAS: $requested_uri\", $text_color);\n ImageString($im, 3, 5, 145, \"REQUESTED FILE WAS: $requested_file\", $text_color);\n ImageString($im, 3, 5, 165, \"SOURCE FILE IS: $source_file\", $text_color);\n ImageString($im, 3, 5, 185, \"DEVICE IS MOBILE? $is_mobile\", $text_color);\n\n header(\"Cache-Control: no-store\");\n header('Expires: '.gmdate('D, d M Y H:i:s', time()-1000).' GMT');\n header('Content-Type: image/jpeg');\n ImageJpeg($im);\n ImageDestroy($im);\n exit();\n }", "public function image()\n {\n if (isset($this->object->entities->media) && ! empty($this->object->entities->media)) {\n return $this->object->entities->media[0]->media_url;\n }\n }", "public function getImageUrl(): string\n {\n return $this->imageUrl;\n }", "public function get_image_attached($post){\n\t\n\tpreg_match_all('/src=([\"\\'])(.*?)\\1/', $post, $matches);\n\t$img = $matches[2];\n\t\n\treturn $img;\n\t\n\treturn false;\n }", "public function genWebMailUrl()\n {\n if ($this->saveWebMails) {\n $filename = \\date('Y-m-d-h-i-s') . '_' . \\time() . '-' . rand(1000, 9999) . '.html';\n $this->setWebMailFilename($filename);\n $_webMailUrl = ltrim(preg_replace('#/{2,}#', '/', ($this->webRoute . '/' . $filename)), '/');\n $_webMailUrl = \\yii\\helpers\\Url::to(\\yii\\helpers\\Url::home(true) . $_webMailUrl);\n $this->setWebMailUrl($_webMailUrl);\n return $_webMailUrl;\n } else {\n return null;\n }\n }", "function acf_get_attachment($attachment)\n{\n}", "public function buildPhotoUrl () {\n\t\t\n\t}", "public function getLinkToImg()\n {\n return ImgUpload::getLinkToImg($this);\n }", "public function imageUrl()\n\t{\n\t\treturn \"/storage/$this->image\";\n\t}", "function cbv_get_image_src( $id, $size = 'full' ){\n if( isset( $id ) ){\n $afbeelding = wp_get_attachment_image_src($id, $size, false );\n if( is_array( $afbeelding ) && isset( $afbeelding[0] ) ){\n return $afbeelding[0];\n }\n }\n return false;\n}", "function pz_get_image_id($image_url)\n{\n global $wpdb;\n $attachment = $wpdb->get_col($wpdb->prepare(\"SELECT ID FROM $wpdb->posts WHERE guid='%s';\", $image_url));\n return $attachment[0];\n}" ]
[ "0.6537404", "0.6537404", "0.64516467", "0.63594437", "0.63153714", "0.6230162", "0.6196881", "0.617975", "0.61741495", "0.6160389", "0.6158409", "0.61564827", "0.6137748", "0.6093437", "0.60626227", "0.60507303", "0.6013666", "0.60012335", "0.60006803", "0.59945005", "0.5976313", "0.59698886", "0.5944399", "0.5942918", "0.5942726", "0.5921423", "0.59206903", "0.5896272", "0.5891707", "0.588529", "0.5858938", "0.5857789", "0.5853985", "0.5850995", "0.5844436", "0.58420116", "0.5832539", "0.58246106", "0.58171284", "0.57972836", "0.57710296", "0.57556385", "0.57498825", "0.57467806", "0.57408786", "0.573927", "0.57390094", "0.5732393", "0.5723135", "0.5722898", "0.5712906", "0.57093304", "0.5702318", "0.5701728", "0.5699835", "0.56929994", "0.56837475", "0.5681008", "0.5680799", "0.56768304", "0.56708467", "0.5664474", "0.5664474", "0.5661499", "0.5657931", "0.56561255", "0.56468123", "0.5643264", "0.5640724", "0.5630381", "0.56297594", "0.5628212", "0.5627434", "0.5623005", "0.5620061", "0.56168514", "0.56107795", "0.56087005", "0.56072646", "0.56059885", "0.56036144", "0.5599298", "0.55987227", "0.5596702", "0.5590907", "0.55859655", "0.55850035", "0.5583652", "0.55754995", "0.5568484", "0.5564341", "0.5563231", "0.5554257", "0.55529165", "0.5551091", "0.5545408", "0.55448484", "0.5542196", "0.5541732" ]
0.58875453
30
generate random integre value
function generate_random_int($number_values) { $number_values = $number_values-2; $lastid = rand(0,9); for($i=0; $i <= $number_values; $i++) { $lastid .= rand(0,9); } return $lastid; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function getRandomValue()\n {\n preg_match('/0.([0-9]+) ([0-9]+)/', microtime(), $regs);\n return $regs[2].$regs[1].sprintf('%03d', rand(0, 999));\n }", "function rand_num() {\n\t\t\t\t\n\t\t\t\t$r = rand(1000000, 9999999);\n\t\t\t\treturn $r;\n\t\t\t\n\t\t\t}", "function getRandomNumber() {\n return rand(0, 0x7fffffff);\n }", "public function getRandomInt()\n {\n return random_int(0, 1);\n }", "public static function getRandomNumber() {\n return rand(10, 10000000);\n }", "public function getDynamicValue()\n {\n return rand(1, 100);\n }", "public function randomize()\n {\n return mt_rand(1, $this->maxnumber());\n }", "public function random();", "function generateRandomNumber() {\n return chr(mt_rand(48, 57));\n }", "public function random(): int\n {\n return rand(1, 100);\n }", "public static function random () {\n\t\treturn mt_rand() / mt_getrandmax();\n\t}", "public static function generateSellInValue(): int\n {\n return rand(self::DEADLINE, 99);\n }", "private function genCode()\r\n\t{\r\n\t\t$digits = 10;\r\n\t\treturn rand(pow(10, $digits-1), pow(10, $digits)-1);\r\n\t}", "public static function seedRand() {\r\n\t\tsrand((int)((($m=microtime(true))-((int)$m))*pow(10,(int)log10(PHP_INT_MAX)))); \r\n\t}", "public static function getRandomValue(): string\n {\n $values = self::getValues();\n return $values[array_rand($values)];\n }", "public function generateCodigo()\n {\n $this->codigo = random_int(1000000,9999999);\n }", "protected function generate()\n {\n\t\t$this->value = md5(uniqid(rand(), true));\n }", "function random(){\n $randomnummer = rand(1,6);\n return $randomnummer;\n}", "public static function generateQualityValue(): int\n {\n return rand(self::getLowestQuality(), self::getHighestQuality());\n }", "function generate_random_number($start, $end, $flag){\r\n\tglobal $g_var;\r\n\tsrand((double)microtime()*1000000);\r\n\t$random = (rand($start,$end));\r\n\t\r\n\treturn $random;\r\n}", "public function getRandomValue()\n {\n if ($this->isNativeField()) {\n switch ($this->getDataType()) {\n case DField::DATA_TYPE_TINYINT:\n case DField::DATA_TYPE_SMALLINT:\n case DField::DATA_TYPE_MEDIUMINT:\n case DField::DATA_TYPE_INT:\n case DField::DATA_TYPE_BIGINT:\n $value = rand(0, 100);\n break;\n case DField::DATA_TYPE_FLOAT:\n $value = rand(10, 1000) / 10;\n break;\n default:\n $value = null;\n break;\n }\n } else {\n $value = null;\n }\n\n return $value;\n }", "function getSpin(){\n\t$s=rand(1,38);\n\treturn $s;\n}", "protected function fetchDCRoll(): int {\n return rand(1, 1000);\n }", "function SM_randomint($max) {\n static $startseed = 0; \n if (!$startseed) {\n $startseed = (double)microtime()*getrandmax(); \n srand($startseed); \n }\n return(rand()%$max); \n}", "function dd_generate($min, $max, $int = FALSE) {\n $func = 'rand';\n if (function_exists('mt_rand')) {\n $func = 'mt_rand';\n }\n $number = $func($min, $max);\n if ($int || $number === $min || $number === $max) {\n return $number;\n }\n $decimals = $func(1, pow(10, 5)) / pow(10, 5);\n return round($number + $decimals, 5);\n }", "public function findRandom();", "function generateNumber()\n {\n \t/*\n $random_number = 0;\n $digits = 0;\n \n while($digits < $digits_quantity)\n {\n $rand_max .= \"9\";\n $digits++;\n }\n \n mt_srand((double) microtime() * 1000000); \n $random_number = mt_rand($zero, intval($rand_max));\n \n if($string)\n {\n if(strlen(strval($random_number)) < $digits_quantity)\n {\n $zeros_quantity = $digits_quantity - strlen(strval($random_number));\n $digits = 0;\n while($digits < $zeros_quantity)\n {\n $str_zeros .= \"0\";\n $digits++;\n }\n $random_number = $str_zeros . $random_number;\n }\n }\n return '7'.$random_number;\n */\n \t//$random_number = intval( \"0\" . rand(1,9) . rand(0,9) . rand(0,9) . rand(0,9) . rand(0,9) );\n \t//$n=5;\n \t//$random_number = rand(0, pow(10, $n));\n \t$lenth=5;\n\t $aZ09 = array_merge(range('A', 'Z'), range('a', 'z'),range(0, 9));\n\t $random_number ='';\n\t for($c=0;$c < $lenth;$c++) {\n\t $random_number .= $aZ09[mt_rand(0,count($aZ09)-1)];\n\t }\n \n\t\treturn $random_number;\n }", "protected static function number ()\n {\n $range = static::getRange();\n\n $number = $range[mt_rand(0, count($range) - 1)];\n\n return $number;\n }", "function random_numbers($ms) {\n\t\t\t\t\n\t\t\t\t$n = rand(0, $ms);\n\t\t\t\t\n\t\t\t\treturn $n;\n\t\t\t\t\n\t\t\t}", "function gen_rand_id()\n\t{\n\t\treturn ( time() + rand( rand(10000,50000), rand(50000,99000) ) );\n\t}", "function php05($min,$max){\n\t$random = rand($min,$max);\n\treturn $random;\n}", "function generate_otp_code(){\n return rand(1000,9999);\n}", "private function frand()\n {\n return 0.0001 * mt_rand(0, 9999);\n }", "public static function generateID()\n {\n return mt_rand();\n }", "function random( $min = 0, $max = 0 ) {\n\tglobal $rnd_value;\n\n\t// Reset $rnd_value after 14 uses\n\t// 32(md5) + 40(sha1) + 40(sha1) / 8 = 14 random numbers from $rnd_value\n\tif ( strlen($rnd_value) < 8 ) {\n\t\tstatic $seed = 'jimmy';\n\t\t$rnd_value = md5( uniqid(microtime() . mt_rand(), true ) . $seed );\n\t\t$rnd_value .= sha1($rnd_value);\n\t\t$rnd_value .= sha1($rnd_value . $seed);\n\t\t$seed = md5($seed . $rnd_value);\n\t}\n\n\t// Take the first 8 digits for our value\n\t$value = substr($rnd_value, 0, 8);\n\n\t// Strip the first eight, leaving the remainder for the next call to wp_rand().\n\t$rnd_value = substr($rnd_value, 8);\n\n\t$value = abs(hexdec($value));\n\n\t// Reduce the value to be within the min - max range\n\t// 4294967295 = 0xffffffff = max random number\n\tif ( $max != 0 )\n\t\t$value = $min + (($max - $min + 1) * ($value / (4294967295 + 1)));\n\n\treturn abs(intval($value));\n}", "function randomId(): int\n{\n // Don't ask why I chose this number.\n return random_int(0, 4294967295);\n}", "protected function rand(){\n\n return Str::random(25);\n\n }", "function rand($min = null, $max = null)\n{\n if ($min == null && $max == null) {\n return \\Genesis\\SQLExtension\\Tests\\Context\\SQLHandlerTest::INT_NUMBER;\n }\n\n return \\Genesis\\SQLExtension\\Tests\\Context\\SQLHandlerTest::TINY_INT_NUMBER;\n}", "protected function getID()\n {\n return rand();\n }", "public function generateOtp() \n {\n return rand(100000,999999);\n }", "public static function generateCode()\n {\n return Str::random(10);\n }", "protected function randomIndex() {\n return mt_rand(1, 10);\n }", "function generateValue($lenght) {\r\n return bin2hex(openssl_random_pseudo_bytes($lenght));\r\n}", "public function generateResiNo()\n {\n\n $resi = 'AMSYS'.date('U').random_int(100, 999);\n return $resi;\n }", "static public function generate()\n {\n return base64_encode(microtime().uniqid().rand());\n }", "private static function getRandomReferenceNumber()\n {\n return sprintf('%02X', mt_rand(0, 0xFF));\n }", "public function randomFunc() {\n return \"RANDOM\";\n }", "public function randomLinear()\n {\n return mt_rand($this->min(), $this->max());\n }", "public function rand($min,$max);", "public function Random()\n {\n return parent::Random();\n }", "private function getSequence() {\n srand(time());\n return rand(1, 1000);\n }", "public static function random() { return Secrets::random(); }", "public function createRandInt(){\n\n $new = '';\n srand((double)microtime() * 1000000);\n $char_list = \"1234567890\";\n\n for ($i = 0; $i < 8; $i++) {\n\n $new .= substr($char_list, (rand() % (strlen($char_list))), 1);\n\n }\n\n return $new;\n\n }", "static function getMobileRand();", "public function getPadRandomExprire() {\n\t// Generate the expire between min and max for plausible deniability\n\t// and return.\n\treturn mt_rand($this->padExpireMin, $this->padExpireMax);\n }", "public function userSeedRuin()\n {\n return $this->randInt(9);\n }", "function random($max) {\r\n\t// create random number between 0 and $max\r\n\tsrand((double)microtime() * 1000000);\r\n\t$r = round(rand(0, $max));\r\n\tif ($r!=0) $r=$r-1;\r\n\treturn $r;\r\n}", "function generateRandID(){\n \t\treturn md5(generateRandStr(16));\n \t\t}", "function generateKey()\n\t{\n\t\treturn ( rand(1, 25) );\n\t}", "function random_angka($panjang) {\n $r = ''; //set string kosong\n //mengulang sebanyak $panjang dengan angka random dari 0-9\n for ($x=0; $x<$panjang; $x++) $r .= random_int(0, 9);\n return $r; //mereturn hasil string yang berisi angka random tadi\n}", "function randomNum($length){\n $rangeMin = pow(36, $length-1);\n $rangeMax = pow(36, $length)-1;\n $base10Rand = mt_rand($rangeMin, $rangeMax);\n $newRand = base_convert($base10Rand, 10, 36);\n return $newRand;\n}", "function generateRandID(){\r\n \t\treturn md5(generateRandStr(16));\r\n \t\t}", "public function regenerateValue()\n {\n $this->segment->value = $this->randval->rand()->str('128');\n }", "public function generateActivationCode() : int\n {\n return mt_rand(100000, 999999);\n }", "function psuedo_random_number($min, $max) {\n $bytes = openssl_random_pseudo_bytes(4);\n $int = unpack('l', $bytes);\n return $min + abs($int[1] % ($max-$min+1));\n}", "protected function generateCode(): string {\n return (string)rand(100000, 999999);\n }", "function genNum(){\n $cant = 20;\n $posit = 0;\n for($i=0; $i<$cant; $i++){\n $num = rand(-99,99);\n echo $num .\" , \";\n $posit = NumPost($num,$posit);\n }\n return $posit;\n}", "function random(int|float $min = null, int|float $max = null, int $precision = null): int|float\n{\n return Numbers::random($min, $max, $precision);\n}", "public function randInt32() {\n return $this->_rng->int32();\n }", "function testGenRandom() {\n $this->markTestIncomplete(\n 'This test has not been implemented yet.'\n );\n }", "public function getProduct(){\r\n return rand(0,1);\r\n }", "private function random_0_1()\n\t\t\t{ \n\t\t\t\treturn (float)rand()/(float)getrandmax();\n\t\t\t}", "private static function getRandomNumber()\n {\n if (defined('PHP_WINDOWS_VERSION_BUILD') && version_compare(PHP_VERSION, '5.3.4', '<')) {\n $useOpenSsl = false;\n } elseif (!function_exists('openssl_random_pseudo_bytes')) {\n $useOpenSsl = false;\n } else {\n $useOpenSsl = true;\n }\n\n $nbBytes = 32;\n\n if ($useOpenSsl) {\n $bytes = openssl_random_pseudo_bytes($nbBytes, $strong);\n\n if (false !== $bytes && true === $strong) {\n return $bytes;\n }\n }\n\n return hash('sha256', uniqid(mt_rand(), true), true);\n }", "protected function generateRandomId(){\n return Keygen::numeric(7)->prefix(mt_rand(1, 9))->generate(true);\n}", "function rand_int(int $min = null, int $max = null): int\n{\n return Numbers::randomInt($min, $max);\n}", "function generate() ;", "public function randomMemberNOZero();", "public function random() {\n\t\t$values = array_values($this->_value);\n\t\t$random = rand(0, count($values) - 1);\n\n\t\treturn $values[$random];\n\t}", "public static function random()\n {\n return '#' . str_pad(dechex(mt_rand(0, 0xFFFFFF)), 6, '0', STR_PAD_LEFT);\n }", "function CriaCodigo() { //Gera numero aleatorio\r\n for ($i = 0; $i < 40; $i++) {\r\n $tempid = strtoupper(uniqid(rand(), true));\r\n $finalid = substr($tempid, -12);\r\n return $finalid;\r\n }\r\n }", "function _randomSteps(){\n return rand(3000, 9000);\n }", "function randNumber($len=6,$start=false,$end=false) {\n\n mt_srand ((double) microtime() * 1000000);\n $start=(!$len && $start)?$start:str_pad(1,$len,\"0\",STR_PAD_RIGHT);\n $end=(!$len && $end)?$end:str_pad(9,$len,\"9\",STR_PAD_RIGHT);\n \n return mt_rand($start,$end);\n }", "public function getRnd() {\n return $this->rnd;\n }", "public function generateOtp()\n {\n $digit = 4;\n $otpNumber = rand(pow(10, $digit - 1), pow(10, $digit) - 1);\n return $otpNumber;\n }", "function randUntil(Num &$n) { # :: (Num, Num) -> Int\n return new Num\\Int(rand($this->value, $$n->value));\n }", "function random(int $min, int $max){\n\treturn \"Random entre \".$min.\" et \".$max;\n}", "function randomise() {\n list($usec, $sec) = explode(' ', microtime());\n return (float) $sec + ((float) $usec * 100000);\n}", "public static function generateRandomToken() {\n return Security::chlogHashStatic(md5(rand())); \n }", "function GenerateNumber($name) {\r\n // Create random number using rand() php function and concatenate it with $name.\r\n return $name . ' ' . rand(6, 15);\r\n}", "function randomise() {\n\n list($usec, $sec) = explode(' ', microtime());\n\n return (float) $sec + ((float) $usec * 100000);\n\n}", "public function generate()\n {\n return lcg_value();\n }", "function generateRandID(){\n\t\t$userid = $this->getPasswordSalt();\n\t\treturn hash('sha256',$userid);\n\t}", "function GenerateKey() {\n // deterministic; see base.js.\n return rand();\n}", "public function assign_rand_value($num) {\n // accepts 1 - 36\n switch($num) {\n case \"1\" : $rand_value = \"a\"; break;\n case \"2\" : $rand_value = \"b\"; break;\n case \"3\" : $rand_value = \"c\"; break;\n case \"4\" : $rand_value = \"d\"; break;\n case \"5\" : $rand_value = \"e\"; break;\n case \"6\" : $rand_value = \"f\"; break;\n case \"7\" : $rand_value = \"g\"; break;\n case \"8\" : $rand_value = \"h\"; break;\n case \"9\" : $rand_value = \"i\"; break;\n case \"10\" : $rand_value = \"j\"; break;\n case \"11\" : $rand_value = \"k\"; break;\n case \"12\" : $rand_value = \"l\"; break;\n case \"13\" : $rand_value = \"m\"; break;\n case \"14\" : $rand_value = \"n\"; break;\n case \"15\" : $rand_value = \"o\"; break;\n case \"16\" : $rand_value = \"p\"; break;\n case \"17\" : $rand_value = \"q\"; break;\n case \"18\" : $rand_value = \"r\"; break;\n case \"19\" : $rand_value = \"s\"; break;\n case \"20\" : $rand_value = \"t\"; break;\n case \"21\" : $rand_value = \"u\"; break;\n case \"22\" : $rand_value = \"v\"; break;\n case \"23\" : $rand_value = \"w\"; break;\n case \"24\" : $rand_value = \"x\"; break;\n case \"25\" : $rand_value = \"y\"; break;\n case \"26\" : $rand_value = \"z\"; break;\n }\n return $rand_value;\n }", "private function BankAccountGenerator()\r\n\t{\r\n\t\t$num = 0;\r\n\t\t\r\n\t\tfor ($i = 0; $i < 16; $i++)\r\n\t\t{\r\n\t\t\t$num .= rand(0,9);\r\n\t\t}\r\n\t\t\r\n\t\treturn (integer)$num;\r\n\t}", "private function randHex()\n\t{\n\t\treturn dechex(floor(rand(100,65536)));\n\t}", "public function genid()\n {\n $date = new DateTime();\n $date->setTimestamp(now());\n $time_based_name = $date->format('YmdHis');\n return $time_based_name . rand(1, 9);\n }", "private function genUser() {\r\n $random = 0;\r\n $rand78 = \"\";\r\n $randuser = \"\";\r\n $userid = \"\";\r\n $maxcount = rand( 4, 9 );\r\n if ( ($maxcount > 8) or ( $maxcount < 5) ) {\r\n do {\r\n $maxcount = rand( 4, 9 );\r\n } while ( ($maxcount > 8) or ( $maxcount < 5) );\r\n }\r\n $rand62 = \"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz\";\r\n for ( $count = 0; $count <= $maxcount; $count++ ) {\r\n $random = rand( 0, 61 );\r\n $randuser = substr( $rand62, $random, 1 );\r\n $userid = $userid . $randuser;\r\n }\r\n $userid = substr( $userid, 0, 8 ); // Just in case\r\n return($userid);\r\n }", "public function generateRandomToken():string;" ]
[ "0.8262699", "0.79019004", "0.78283405", "0.7788597", "0.7785401", "0.7759127", "0.77452296", "0.76597005", "0.76387703", "0.7525514", "0.751361", "0.7449847", "0.7448333", "0.7409215", "0.73999304", "0.73833936", "0.7332383", "0.71729606", "0.7113084", "0.71123743", "0.7107766", "0.7105131", "0.7072324", "0.7022766", "0.70213914", "0.70032394", "0.6989892", "0.6984136", "0.6960119", "0.6954891", "0.69492555", "0.6948155", "0.69359356", "0.69238126", "0.689389", "0.6873422", "0.6871651", "0.6865777", "0.686405", "0.68404764", "0.6828544", "0.6823547", "0.67969966", "0.67849106", "0.6779979", "0.6771942", "0.6770519", "0.6764024", "0.6757146", "0.67527986", "0.67424244", "0.67411846", "0.67378134", "0.6735395", "0.67267317", "0.6726037", "0.6725968", "0.6710519", "0.6704373", "0.6696014", "0.66920924", "0.6687411", "0.66732216", "0.66716343", "0.6667248", "0.66530603", "0.66509664", "0.66492563", "0.66491807", "0.66482717", "0.66466856", "0.66323656", "0.6623616", "0.6620651", "0.6620197", "0.66170096", "0.6610897", "0.66102695", "0.6608181", "0.66044927", "0.66014385", "0.65939665", "0.6590639", "0.6565228", "0.65612483", "0.65549225", "0.65433294", "0.65432465", "0.6492657", "0.6488029", "0.6480748", "0.64758784", "0.64713544", "0.64612097", "0.64548635", "0.6454507", "0.6453401", "0.6448968", "0.6444955" ]
0.6639793
72
get singl post data from database
function get_single_post_data($post_id, $key = 'post_content'){ $post_data = get_post($post_id,ARRAY_A); if($post_data && is_array($post_data) && isset($post_data[$key])){ return $post_data[$key]; }else{ return false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getData()\n {\n return Post::find(request()->id);\n }", "public function getPost ();", "public function singlerecord_post() {\n $data = $this->input->post();\n if($data['id'] == NULL) {\n $this->set_response(array('response_code'=>400,'response_message'=>'Parameter missing','response_data'=>array()), REST_Controller::HTTP_NOT_FOUND);\n return; \n }\n $result = $this->Api_model->selectData('info', 'id, name, email',array('id' => $data['id']));\n if($result == NULL){\n $this->set_response(array('response_code'=>400,'response_message'=>'No Data Found','response_data'=>array()), REST_Controller::HTTP_OK); \n return; \n }\n $this->set_response(array('response_code'=>200,'response_message'=>'Success','response_data'=>$result), REST_Controller::HTTP_OK);\n return;\n }", "public function getPost()\n {\n $request = $this->getRequest();\n return $request->getPost();\n }", "private function getPostData()\n {\n $postData = $this->request->getPostValue();\n\n /** Magento may adds the SID session parameter, depending on the store configuration.\n * We don't need or want to use this parameter, so remove it from the retrieved post data. */\n unset($postData['SID']);\n\n //Set original postdata before setting it to case lower.\n $this->originalPostData = $postData;\n\n //Create post data array, change key values to lower case.\n $postDataLowerCase = array_change_key_case($postData, CASE_LOWER);\n $this->postData = $postDataLowerCase;\n }", "public function getPostData() {\n \t\n \t// Return POST\n \treturn $this->oPostData;\n }", "public function get_post_data() {\n\t\treturn $this->post;\n\t}", "public function getPost()\n {\n return $this->post;\n }", "public function post();", "public function post();", "public function post();", "protected function getPostValues() {}", "public function getPost() {\n //get json post list\n echo $this->model->getPost();\n }", "function readFromPost() {\n\t\t$this->idt = requestVar('idt');\n\t\t$this->newIdt = requestVar('template');\n\t\t$this->description = requestVar('description');\n\t\t$this->postsHeader = requestVar('postListHeader');\n\t\t$this->postBody = requestVar('postBody');\n\t\t$this->postsFooter = requestVar('postListFooter');\n\t\t$this->formLogged = requestVar('formLogged');\n\t\t$this->form = requestVar('formNotLogged');\n\t\t$this->navigation = requestVar('navigation');\n\t\t$this->name = requestVar('nameNoUrl');\n\t\t$this->nameLin = requestVar('nameUrl');\n\t\t$this->memberName = requestVar('memberName');\n\t\t$this->date = requestVar('date');\n\t\t$this->time = requestVar('time'); \n\t\t$this->nextPage = requestVar('nextPage');\n\t\t$this->previousPage =requestVar('previousPage');\n\t\t$this->firstPage = requestVar('firstPage');\n\t\t$this->lastPage = requestVar('lastPage');\t\n\n\t\t$this->urlToLink = (requestVar('urlToLink') == 'yes') ? true : false;\n\t\t$this->emoToImg = \t (requestVar('emoToImg') == 'yes') ?true : false;\n\t\t$this->gravSize = \t (int)requestVar('gravSize');\n\t\t$this->gravDefault = requestVar('gravDefault');;\n\n\n\t\t\n\t\t$this->action = requestVar('action');\n\t}", "public function ParsePostData() {}", "function getFromPost() {\r\n\t\t\r\n\t\t//Event Page variables.\r\n\t\t$this->name = $_POST['eventName'];\r\n\t\t$this->date = $_POST['eventDate'];\r\n\t\t$this->time = $_POST['eventTime'];\r\n\t\t$this->time_before = $_POST['time_before'];\r\n\t\t$this->freq = $_POST['frequency'];\r\n\t\t$this->notif_method = $_POST['method'];\r\n\t}", "function getFromPost()\r\n {\r\n $CI = &get_instance();\r\n $note = new Note;\r\n //correct form?\r\n if ($CI->input->post('formname')!='note') {\r\n return null;\r\n }\r\n //get basic data\r\n $note->note_id = $CI->input->post('note_id');\r\n $note->text = $CI->input->post('text');\r\n $note->pub_id = $CI->input->post('pub_id');\r\n $note->user_id = $CI->input->post('user_id');\r\n\r\n return $note;\r\n }", "public function userinfo() {\n\n return $_POST;\n\n }", "private function serialize(Post $post){\n \treturn array(\n \t'username'=>$post->getUsername(),\n \t'email'=>$post->getEmail(),\n \t'passw'=>$post->getPassword()\n \t); \n\t}", "public function getPostVariables();", "public function post() {\n\t\treturn $this->execute(true);\n\t}", "public function get_post() {\n\n return $this->_post;\n }", "public function showRequestPost();", "public function getData()\n\t{\n if ( is_string($this->_data) ) {\n return $this->_data; \n }\n\t\telse \n return $this->_internal_request->to_postdata();\n\t}", "public function getPost(): array;", "function get_post_data() {\n\t\tif (empty($this->post)) :\n\t\t\t$this->post = get_post( $this->id );\n\t\tendif;\n\t\t\n\t\treturn $this->post;\n\t}", "public function sendPost(){\n\t\t\t// record the post in the database\n\t\t\t\n\t\t}", "public function login_post(){\n\t\t$data=($_POST);\n\n\t\t$result = $this->login_model->login($data);\n\t\treturn $this->response($result);\t\t\t\n\t}", "function getData()\n {\n $method = $this->getMethod();\n $return = null;\n if ($method == 'GET') {\n $return = $_GET;\n } else if ($method == 'POST') {\n $return = $_POST;\n }\n\n return $return;\n }", "public function getPost($param);", "#[Pure]\n public function getRawPostData() {}", "public function parsePostData()\n {\n }", "public function post($post);", "private function postData()\n {\n $post = array_filter($this->post);\n\n return http_build_query($post);\n }", "public function getPostParams()\n {\n return $this->post;\n }", "public function post()\n {\n //\n }", "public static function getPostData() {\n\n $DataObj = new stdClass();\n\n foreach ($_POST as $name => $value)\n $DataObj->$name = $value;\n\n return $DataObj;\n }", "public function getPostContent();", "public function paramsPost()\r\n {\r\n return $this->params_post;\r\n }", "public function post()\n {\n $postId = $this->request->getParameter(\"id\"); /* le parametre disparait lors de l'annonce de \"public function post($postId)\". On l'annonce\n du coup en début de la méthode en faisant appel à la méthode getParameter de la class Request */\n $post = $this->post->getPost($postId); // va chercher la méthode GetPost($postId) dans le Model Post.php l.33\n $this->buildView(array('post' => $post));\n }", "private function get_db_data() {\r\n\r\n\t\t$db_data = array(\r\n\t\t\t'twitter_id' => $this->api_post_id,\r\n\t\t\t'created_on' => date( 'Y-m-d H:i:s' ),\r\n\t\t\t'time_stamp' => date( 'Y-m-d H:i:s', CTF_Parse_Pro::get_timestamp( $this->api_data ) ),\r\n\t\t\t'last_requested' => date( 'Y-m-d H:i:s' ),\r\n\t\t\t'json_data' => ctf_json_encode( $this->api_data ),\r\n\t\t\t'media_id' => '',\r\n\t\t\t'sizes' => '{}',\r\n\t\t\t'aspect_ratio' => 1,\r\n\t\t\t'images_done' => 0\r\n\t\t);\r\n\r\n\t\treturn $db_data;\r\n\t}", "public function data() {\n\t\treturn $this->query;\n\t}", "public function data() {\n $request = $this->requestReader->getContents();\n\t\tif ($request) {\n if ($json_post = CJSON::decode($request)){\n\t\t\t\treturn $json_post;\n\t\t\t}else{\n\t\t\t\tparse_str($request,$variables);\n\t\t\t\treturn $variables;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public function getRequestData();", "public function getPostRequest(): ParameterBag { return $this->post; }", "function getData()\r\n {\r\n //if POST or PUT get the data wiht file_get_contents\r\n if ($this->request === \"POST\" || $this->request === \"PUT\") {\r\n $this->preCleanData = JSON_decode(file_get_contents(\"php://input\"));\r\n //else get the ID from $_get\r\n } else if ($this->request === \"GET\" || $this->request === \"DELETE\") {\r\n if (isset($_GET['ID'])) {\r\n $this->data = $_GET['ID'];\r\n return;\r\n } else {\r\n return;\r\n }\r\n }\r\n $this->cleanData();\r\n }", "public function OrderDataPost($postData){\n //do something awesome with that post data\n return \"I am in\";\n }", "private function managePost()\n {\n // Do only react on POST requests\n if ($_SERVER['REQUEST_METHOD'] != 'POST' || empty($_POST)) {\n return;\n }\n\n /* @var $post \\Core\\Http\\Post\\Post */\n $this->di->mapService('core.http.post', '\\Core\\Http\\Post\\Post');\n\n $post = $this->di->get('core.http.post');\n\n // Setting the name of the session token that has to/gets sent with a form\n $post->setTokenName($this->config->get('Core', 'security.form.token'));\n\n // Validate posted token with session token\n if (!$post->validateCompareWithPostToken($this->di->get('core.security.form.token'))) {\n return;\n }\n\n // Some data cleanup\n $post->trimData();\n\n // Assingn app related post data to the corresponding app\n $post_data = $post->get();\n\n foreach ($post_data as $name => $data) {\n $app = $this->getAppInstance($name);\n $app->post->set($data);\n }\n }", "public function getSessionData()\n {\n return $this->getSession()->get(\"FormInfo.{$this->FormName()}.data\");\n }", "abstract public function post();", "public function postData()\n {\n $notifModel = new NotificationsModel();\n $getNotif = $notifModel->notifData();\n\n $data = array(\n 'notif' => $getNotif,\n 'status' => true\n );\n\n echo json_encode($data);\n }", "public function get_setting_master_post()\n{\n $pdata = file_get_contents(\"php://input\");\n $postdata = json_decode($pdata,true);\n if(isset( $postdata['company_id']))\n {\n\n $id = $postdata['company_id'];\n $data = $this->model->getAllwhere('settings_masters',array('company_id'=>$id));\n }else{\n $data = $this->model->getAllwhere('settings_masters');\n }\n \n //print_r( $data);\n $resp = array('rccode' => 200,'message' =>\"success\",\"data\"=>$data);\n $this->response($resp);\n}", "public function get_data();", "public function index_post(){\n // insert data method\n\n }", "public function getSingleData(){\n //buatlah query\n $sqlQuery = \"SELECT \n * \n FROM\n \".$this->t_name.\"\n WHERE \n id = ?\n LIMIT 0,1\";\n //siapkan stmt\n $stmt = $this->conn->prepare($sqlQuery);\n //bindParam\n $stmt->bindParam(1,$this->id);\n //eksekusi perintahnya\n $stmt->execute();\n\n $dataRow = $stmt->fetch(PDO::FETCH_ASSOC);\n \n $this->name = $dataRow['name'];\n $this->email = $dataRow['email'];\n $this->age = $dataRow['age'];\n $this->designation = $dataRow['designation'];\n $this->created = $dataRow['created'];\n }", "public function getPost(){\r\n $stmt = self::$con->prepare(\"SELECT * FROM posts\");\r\n $stmt->execute();\r\n $results = $stmt->fetchAll(PDO::FETCH_ASSOC);\r\n return $results;\r\n }", "public function get_data()\n {\n return $this->form_data;\n }", "public function index_post()\n {\n $input = $this->input->post();\n $this->write_db->insert($_table,$input);\n \n $this->response(['Item created successfully.'], REST_Controller::HTTP_OK);\n }", "protected function getJsonDecodedFromPost(){\n // $this->app->response()->header(\"Content-Type\", \"application/json\");\n // obtain the JSON of the body of the request\n $post = json_decode($this->app->request()->getBody(), true); // make it a PHP associative array\n return $post;\n }", "function index_post() {\n $data = array(\n 'id_diagnosa' => $this->post('id_diagnosa'),\n 'judul' => $this->post('judul'),\n 'definisi' => $this->post('definisi'),\n 'diagnosa' => $this-put('diagnosa'));\n $insert = $this->db->insert('diagnosa', $data);\n if ($insert) {\n $this->response($data, 200);\n } else {\n $this->response(array('status' => 'fail', 502));\n }\n }", "static function post($key)\n\t{\n\t\tself::init();\n\t\tif (array_key_exists($key, self::$post)) {\n\t\t\treturn self::$post[$key];\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "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 }", "function getPostDetailsFromDatabase() {\n $postDetails = array('title' => 'Animal: Fox', \n 'date' => '10/05/2019',\n 'author' => 'Victoria Bowie',\n 'content' => '<img src=\"images/fox.jpg\" width=\"30%\" title=\"Happy Fox\" alt=\"Fox in Field\"/\n class=\"pic1\"><p> Diet: Foxes are omnivores. This means that they eat meat and vegetation.</p>\n <p> Offspring: Fox babies are called pups.</p>'\n );\n return $postDetails;\n }", "private function getPostData() {\n\t\t$data = null;\n\t\t\n\t\t// Get from the POST global first\n\t\tif (empty($_POST)) {\n\t\t\t// For API calls we need to look at php://input\n\t\t\tif (!empty(file_get_contents('php://input'))) {\n\t\t\t\t$data = @json_decode(file_get_contents('php://input'), true);\n\t\t\t\tif ($data === false || $data === null) {\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\t//TODO: What is this for? isn't 'php://input' always empty at this point?\n\t\t\t\t$dataStr = file_get_contents('php://input');\n\t\t\t\tparse_str($dataStr, $data);\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\t$data = $_POST;\n\t\t}\n\t\t\n\t\t// Normalize boolean values\n\t\tforeach ($data as $name => &$value) {\n\t\t\tif ($value === 'true') {\n\t\t\t\t$value = true;\n\t\t\t}\n\t\t\telse if ($value === 'false') {\n\t\t\t\t$value = false;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn $data;\n\t}", "function index_post(){\n\t\t$data = array(\n\t\t\t'pid' => $this->post('pid'),\n\t\t\t'name' => $this->post('name'),\n\t\t\t'email' => $this->post('email'),\n\t\t\t'description' => $this->post('description'));\n\t\t$insert = $this->db->insert('pendaftaran', $data);\n\n\t\t$this->response(array('result' =>$data, 200));\n\n\t}", "public function methodPost() {\n $jsondata= file_get_contents('php://input');\n $data= json_decode($jsondata,false);\n \n if (!empty($data)) {\n $model= new News();\n $model->saveItem($data);\n return array('ok'=>'ok');\n } else {\n throw new Exception('You must specify an id.');\n }\n }", "public function getPost()\n {\n if (!isset($this->_post)) {\n if (self::$_input && \\bbn\\Str::isJson(self::$_input)) {\n $this->_post = json_decode(self::$_input, 1);\n }\n elseif (!empty($_POST)) {\n $this->_post = $_POST;\n }\n\n if (!$this->_post) {\n $this->_post = [];\n }\n else {\n $this->_has_post = true;\n //$this->_post = bbn\\Str::correctTypes($this->_post);\n foreach ($this->_post as $k => $v) {\n if (X::indexOf($k, '_bbn_') === 0) {\n if (!defined(strtoupper(substr($k, 1)))) {\n define(strtoupper(substr($k, 1)), $v);\n }\n\n unset($this->_post[$k]);\n }\n }\n }\n }\n\n return $this->_post;\n }", "function get_data() {\r\n return $this->data;\r\n }", "public function list_post()\n\t{\n\t\t$this->db->distinct();\n\t\t$this->db->select('scene_id,scene_name');\n\t\t$this->db->order_by('id', 'asc');\n\t\t//$res = $this->db->get('Scene_Activity');\n\n\t\t//echo $res;\n\t\t$res = $this->db->get('Scene_Activity')->result();\n\t\t$this->response($res, REST_Controller::HTTP_OK);\n\t}", "public function getLoginFormData() {}", "public function getLoginFormData() {}", "public function getPost(): Post\n {\n return $this->post;\n }", "public function to_postdata()\n {\n return http_build_query($this->postFields);\n }", "function index_post() {\n $data = array(\n // 'id_waktu' => $this->post('id_waktu'),\n 'nama_waktu' => $this->post('nama_waktu'),\n 'mulai' => $this->post('mulai'),\n 'selesai' => $this->post('selesai'));\n $insert = $this->db->insert('waktu', $data);\n if ($insert) {\n $this->response($data, 200);\n } else {\n $this->response(array('status' => 'fail', 502));\n }\n }", "private function POST() {\n global $_POST;\n $postData = array();\n foreach($_POST as $key => $value) {\n $postData[$key] = $value;\n }\n $this -> response[\"response\"] = $postData;\n return;\n }", "function FetchRecordByPOST()\n {\n\n // sales date is required.\n if (!$_POST[\"SalesDate\"]) throw new MissingRecordDataException(\"SalesDate is missing\");\n return Array( \n \"SalesDate\" => $_POST[\"SalesDate\"],\n \"Comment\" => $_POST[\"Comment\"],\n \"SalesRecordNumber\" => $_POST[\"SalesRecordNumber\"] ?? null\n );\n }", "public function post_post()\n\t{\n\t\ttry {\n\t\t\t$results = Articles::regist( self::$_JSON );\n\t\t\t//\\Log::warning(print_r($results, true));\n\n\t\t\treturn $this->response($results, 200);\n\t\t} catch (\\MarcoPandaException $e) {\n\t\t\t$this->error($e);\n\t\t}\n\t}", "public function toPostdata()\n {\n return Utils::buildHttpQuery($this->parameters);\n }", "function handlePost($isValid, $save)\n{\n $newId = 0;\n\n try {\n $post = trim(file_get_contents(\"php://input\"));\n $data = json_decode($post, true);\n $save($data);\n $newId = $GLOBALS['db']->lastInsertId();\n } catch (Exception $e) {\n echo \"exeption occured\";\n echo $e->getMessage();\n }\n\n $resp = new stdClass();\n $resp->id = $newId;\n echo json_encode($resp);\n}", "function index_post() {\n $this->crud_post($this->post());\n }", "abstract public function post($data);", "function post(){\r\n\t\t//Connect\r\n\t\t$sql = new DataBase;\r\n\t\t$sql->connect();\r\n\t}", "public function data(){\r\n\t\treturn $this->_data;\r\n\t}", "public function insert( $post )\n {\n \n //return array('id' => $id);\n }", "public function valuesFromPost()\n {\n return $this->setDefaultValues($_POST);\n }", "public function store()\r\n\t{\r\n\t\t$jsonData = $this->getAll();\r\n\r\n\t $data = array(\r\n\t\t\t'username'=> $this->user->username,\r\n\t\t\t'post'=> $this->post,\r\n\t\t\t'date'=> $this->date,\r\n\t );\r\n\r\n\t\tarray_unshift($jsonData, $data);\r\n\r\n\t\t$this->save($jsonData);\r\n\t}", "public function data(){\n\n\t\treturn $this->_data;\n\n\t}", "function login() {\n \n $request = \\Slim\\Slim::getInstance()->request();\n $data = json_decode($request->getBody());\n \n try {\n \n $db = getDB();\n $userData ='';\n $sql = \"SELECT user_id, name, email, username, surname, mobile, id, gender, address, province, language FROM users WHERE (mobile=:mobile or email=:mobile) and password=:password \";\n $stmt = $db->prepare($sql);\n $stmt->bindParam(\"mobile\", $data->mobile, PDO::PARAM_STR);\n $password=hash('sha256',$data->password);\n $stmt->bindParam(\"password\", $password, PDO::PARAM_STR);\n $stmt->execute();\n $mainCount=$stmt->rowCount();\n $userData = $stmt->fetch(PDO::FETCH_OBJ);\n \n if(!empty($userData))\n {\n $user_id=$userData->user_id;\n $userData->token = apiToken($user_id);\n }\n \n $db = null;\n if($userData){\n $userData = json_encode($userData);\n echo '{\"userData\": ' .$userData . '}';\n } else {\n echo '{\"error\":{\"text\":\"Bad request wrong username and password\"}}';\n }\n\n \n }\n catch(PDOException $e) {\n echo '{\"error\":{\"text\":'. $e->getMessage() .'}}';\n }\n}", "function index_post() {\n\t\t\n\n\t\t$data = array(\n\t\t\t\t\t'username' \t\t=> $this->post('username'),\n\t\t\t\t\t'password' \t\t=> $this->post('password'),\n\t\t\t\t\t'kota'\t\t\t=> $this->post('kota'),\n\t\t\t\t\t'telepon' => $this->post('telepon'));\n\t\t\t\n\t\t$insert = $this->db->insert('cabang', $data2);\n\n\t\tif ($insert) {\n\t\t\t$this->response($data, 200);\n\t\t} else {\n\t\t\t$this->response(array('status' => 'fail', 502));\n\t\t}\n\t}", "function fetch_data_from_post()\n{\n $data['title'] = $this->input->post('title', TRUE);\n $data['url'] = $this->input->post('url', TRUE);\n $data['description'] = $this->input->post('description', TRUE);\n $data['content'] = $this->input->post('content', TRUE);\n $data['date'] = $this->input->post('date', TRUE);\n $data['keywords'] = $this->input->post('keywords', TRUE);\n return $data;\n}", "public function data()\n {\n return $this->data; \n }", "public function get_data() {\n\t\treturn $this->data;\n\t}", "public function getSpeakerPost()\n {\n return $this->get(self::_SPEAKER_POST);\n }", "function populateFromPost()\n\t{\n\t}", "function send_post()\n { \n $send = new send();\n\n $send->date_created = date('Y-m-d H:i:s');\n $send->createdbypk = $this->get_user()->user_id;\n $send->date_modified = date('Y-m-d H:i:s');\n $send->modifiedbypk = $this->get_user()->user_id;\n\n $this->response($this->_send_save($send, 'post'));\n }", "public function posts()\n {\n // $name = 'Dipu';\n // $age = 25;\n\n // return 'Name: '. $name . ' Age: ' . $age;\n\n // Objects\n // $user = new stdClass();\n // $user->name = 'dipu';\n // $user->age = 25;\n\n // print_r($user);\n\n //Multiple data /Array\n $post[] = \"\";\n $single_post = new stdClass();\n\n $single_post->name = 'Dipu';\n $single_post->age = 25;\n $single_post->gender = 'male';\n array_push($post, $single_post);\n\n $single_post = new stdClass();\n\n $single_post->name = 'Munna';\n $single_post->age = 20;\n $single_post->gender = 'male';\n array_push($post, $single_post);\n\n print_r($post);\n\n }", "public function get_data() {\r\n\t\treturn $this->data;\r\n\t}", "public function fetchSessionData() {}", "public function data();", "public function data();", "public function getData(){\n\t\treturn $this->data;\n\t}" ]
[ "0.6652895", "0.66036236", "0.65202856", "0.63910645", "0.6348181", "0.6239423", "0.621211", "0.61034113", "0.60684323", "0.60684323", "0.60684323", "0.6039054", "0.5998497", "0.5992453", "0.59813523", "0.5920818", "0.5911529", "0.58988047", "0.58880156", "0.586033", "0.57912374", "0.5744115", "0.5742092", "0.57296443", "0.5711712", "0.56974334", "0.5685811", "0.5684087", "0.56578624", "0.5632403", "0.5620718", "0.561642", "0.56113225", "0.5600416", "0.5593161", "0.5591602", "0.5582315", "0.5562443", "0.55223787", "0.551426", "0.55112696", "0.5495841", "0.5488578", "0.54804724", "0.54716873", "0.54677075", "0.5461924", "0.5459354", "0.5449506", "0.5436401", "0.54190314", "0.54188025", "0.5417464", "0.5408835", "0.53991777", "0.53966004", "0.53959197", "0.5390139", "0.53818965", "0.53699154", "0.5363575", "0.53622115", "0.53578764", "0.53557956", "0.5351038", "0.5347322", "0.53414553", "0.53377974", "0.5337456", "0.5333143", "0.5333143", "0.5328008", "0.53269714", "0.53133345", "0.5313233", "0.53130203", "0.5306522", "0.53063405", "0.5293542", "0.5288082", "0.5287467", "0.52862376", "0.5282386", "0.52747524", "0.5271565", "0.527117", "0.5267991", "0.52675605", "0.5263055", "0.5255026", "0.5248552", "0.524782", "0.52469474", "0.52455115", "0.52446836", "0.5244337", "0.5237594", "0.523643", "0.5224929", "0.5224929", "0.52179384" ]
0.0
-1
Display a listing of the resource.
public function index() { $usuarios = Usuario::all(); $config = Configuracion::all()->first(); return (view('usuario.listadoUsuarios')->with('usuarios', $usuarios)->with('config', $config)); }
{ "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(Request $request) { $roles = Rol::all(); $ubicaciones = Ubicacion::all(); return (view('usuario.crearUsuario')->with('request', $request)->with('roles', $roles)->with('ubicaciones', $ubicaciones)); }
{ "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) { $usuario = new Usuario(); $usuario->usuario = $request->usuario; $usuario->password = bcrypt($request->password); $usuario->nombre = $request->nombre; $usuario->apellido = $request->apellido; $usuario->tipoDocumento = $request->tipoDocumento; $usuario->numeroDocumento = $request->numeroDocumento; $usuario->email = $request->email; $usuario->telefono = $request->telefono; $usuario->rol_id = $request->rol; $usuario->ubicacion_id = $request->ubicacion; $usuario->habilitado = $request->habilitado; $usuario->save(); Flash::success('Usuario creado con éxito!'); return (redirect()->route('usuarios')); }
{ "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($id) { // }
{ "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($id) { $usuario = Usuario::find($id); $roles = Rol::all(); $ubicaciones = Ubicacion::all(); //dd($usuario->rol->nombre); return (view('usuario.modificarUsuario')->with('usuario', $usuario)->with('roles', $roles)->with('ubicaciones', $ubicaciones)); }
{ "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) { $usuario = Usuario::find($id); $usuario->usuario = $request->usuario; $usuario->password = bcrypt($request->password); $usuario->nombre = $request->nombre; $usuario->apellido = $request->apellido; $usuario->tipoDocumento = $request->tipoDocumento; $usuario->numeroDocumento = $request->numeroDocumento; $usuario->email = $request->email; $usuario->telefono = $request->telefono; $usuario->rol_id = $request->rol; $usuario->ubicacion_id = $request->ubicacion; $usuario->habilitado = $request->habilitado; $usuario->save(); Flash::success('Usuario modificado con éxito!'); return (redirect()->route('usuarios')); }
{ "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($id) { $usuario = Usuario::find($id); $usuario->delete(); Flash::success('Usuario eliminado con éxito'); return (redirect()->route('usuarios')); }
{ "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
onRegistrationConfirm User is confirmed and activated. Send password by SMS before completing registration process
public function onRegistrationConfirm(GetResponseUserEvent $event) { require_once('UKM/inc/password.inc.php'); $tokenGenerator = $this->container->get('fos_user.util.token_generator'); $password = UKM_ordpass(true); // true gives numbers before words $event->getUser()->setPlainPassword( $password ); $text = $this->container->getParameter('ukmdelta.sms.password.created'); $UKMSMS = $this->container->get('ukmsms'); try { $UKMSMS->sendSMS( $event->getUser()->getPhone(), str_replace('#code', $password, $text) ); } catch( Exception $e ) { $this->container->get('session')->getFlashBag()->add('error', 'Kunne ikke sende engangskode på SMS ('.$e->getMessage().')'); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function confirmRegistration() {\n $this->form_validation->set_rules('email', 'Email', 'required');\n $this->form_validation->set_rules('temp_code', 'Temporärer Code', 'required');\n\n if ($this->form_validation->run() === FALSE) {\n \t$this->error(400, 'Validation error');\n }\n \n $this->loadUser();\n \n if ($this->user_model->getValue('temp_code') != $this->input->post('temp_code')) {\n \tlog_message('error', 'db: ' . $this->user_model->getValue('temp_code') . ' provided: ' . $this->input->post('temp_code'));\n \t$this->error(404, 'Verification error');\n }\n \n if ($this->user_model->getValue('temp_code_valid_until') < date('Y-m-d H:i:s')) {\n \t$this->error(408, 'Code timed out');\n }\n \n // if the email is confirmed, we don't care for correct or valid code\n if ($this->user_model->getValue('confirmed') == 1) {\n\t\t\t$data['confirmed'] = 'confirmed';\n\t\t\t$this->response($data);\n }\n \n $this->user_model->setValue('confirmed', 1);\n if (! $this->user_model->updateConfirmed()) {\n \t$this->error(400, 'Confirmation error');\n }\n \n $data['confirmed'] = 'confirmed';\n $this->response($data);\n }", "function sendForgetPasswordConfirmation($userData)\n {\n $this->getCountryCode($userData->country_id);\n $template = 'USR008';\n $username = \"$userData->first_name $userData->last_name\";\n $replace = ['[UserName]'];\n $with = [$username];\n $to = $this->countryCode . (int) $userData->mobile_no;\n parent::sendSms($to, $replace, $with, $template);\n }", "function ConfirmUser(){\r\n if(empty($_GET['code'])||strlen($_GET['code'])<=10){\r\n $this->HandleError(\"Please provide the confirm code\");\r\n return false;\r\n }\r\n $user_rec = array();\r\n if(!$this->UpdateDBRecForConfirmation($user_rec)){\r\n return false;\r\n }\r\n \r\n $this->SendUserWelcomeEmail($user_rec);\r\n \r\n $this->SendAdminIntimationOnRegComplete($user_rec);\r\n \r\n return true;\r\n }", "public function onRegistrationConfirm(GetResponseUserEvent $event)\n {\n $this->_session->getFlashBag()->add(\n 'success',\n 'Votre compte a bien été activé. Vous pouvez désormais\n créer un compte pour votre structure eSport ou votre marque.'\n );\n $url = $this->_router->generate('inscription_index');\n $event->setResponse(new RedirectResponse($url));\n }", "public function notify() \n {\n $user = User::find()->where(['username' => $this->username])->one();\n if (!$user) {\n return false;\n }\n \n if ($this->isPhone()) {\n // Notify by SMS\n if (!$this->password) {\n return false;\n }\n Yii::$app->sms->send($user->username, 'Your password is: ' . $this->password);\n } else {\n // Notify by email\n $user->generateVerificationToken();\n if ($user->save()) {\n $mail = Yii::$app->mailer->compose('notify', ['model' => $user])\n ->setFrom('mail@example.com')\n ->setTo($user->username)\n ->setSubject('Complete Your Registration')\n ->send();\n }\n }\n \n return true;\n }", "public function confirmRegister($email, $confirm_token){\n $user = new User;\n $the_user = $user->select()->where('email','=',$email)\n ->where('confirm_token','=',$confirm_token)->get();\n\n if(count($the_user)>0){\n $active = 1;\n $confirm_token = str_random(100);\n $user->where('email','=',$email)\n ->update(['activo'=>$active, 'confirm_token'=>$confirm_token]);\n\n Session::flash('message','En hora buena'.$the_user[0]['nombreUsuario'].' ya puedes iniciar sesión');\n return Redirect::to('/log');\n\n }else{\n\n Session::flash('message','Su cuenta ya ha sido habilitada anteriormente');\n return Redirect::to('/log'); \n }\n\n }", "function confirm_email() {\n \n\n $confirm_url = $this->traffic_model->GetAbsoluteURLFolder().'/confirm_register/' . $this->traffic_model->MakeConfirmationMd5();\n \n\n $this->email->from('info@satrafficupdates.co.za');\n\n $this->email->to($this->input->post('email'));\n $this->email->set_mailtype(\"html\");\n $this->email->subject('Confirm registration');\n $message = \"Hello \" . $this->input->post('username'). \"<br/>\" .\n \"Thanks for your registration with www.satrafficupdates.co.za <br/>\" .\n \"Please click the link below to confirm your registration.<br/>\" .\n \"$confirm_url<br/>\" .\n \"<br/>\" .\n \"Regards,<br/>\" .\n \"Webmaster <br/>\n www.satrafficupdates.co.za\n \";\n $this->email->message($message);\n if ($this->email->send()) {\n echo 'Message was sent';\n //return TRUE;\n } else {\n echo $this->email->print_debugger();\n //return FALSE;\n }\n\n\n\n\n }", "public function confirm()\n {\n $this->confirmed = true;\n $this->confirmation_token = null;\n\n $this->save();\n }", "public function completeRegistration($token)\n\t{\n\t\t$user = User::where('token', $token)->first();\n\t\tif ($user == null || $user->activated == 'activated') {\n\t\t\tif ($user == null) {\n\t\t\t\tSession::flash('message', 'An unexpected error has accord');\n\t\t\t} else if ($user->activated == 'activated') {\n\t\t\t\tSession::flash('message', 'This acount is already active');\n\t\t\t}\n\t\t\treturn redirect()->route('login');\n\t\t}\n\t\tif ((strtotime(date('Y-m-d'))) > strtotime($user->email_send_at . \" +2 days\")) {\n\t\t\tSession::flash('message', 'This email has expired');\n\t\t\treturn redirect()->route('register');\n\t\t}\n\n\t\treturn view('registration.setPassword', ['token' => $token]);\n\t}", "public function action_confirm()\n {\n $hash = $this->request->param('hash');\n\n $model_auth = new Model_Auth();\n\n $id = $model_auth->getUserIdByHash($hash, Model_Auth::TYPE_EMAIL_CONFIRM);\n\n if (!$id) {\n $error_text = 'Ваш аккаунт уже подтвержден';\n $this->template->content = View::factory('templates/error', ['error_text' => $error_text]);\n\n return;\n }\n\n $model_auth->deleteHash($hash, Model_Auth::TYPE_EMAIL_CONFIRM);\n\n $user = new Model_User($id);\n\n if (!$user->id) {\n $error_text = 'Переданы некорректные данные';\n $this->template->content = View::factory('templates/error', ['error_text' => $error_text]);\n\n return;\n }\n\n $user->updateUser($user->id, ['isConfirmed' => 1]);\n\n $this->redirect('/user/' . $id . '?confirmed=1');\n }", "public function onRegistrationSuccess($event)\n {\t \n\t\t$url = $this->container->get('router')->generate('ukm_user_registration_check_sms');\n\t\t$event->setResponse(new RedirectResponse($url));\n\t}", "public function testIndividualUserRegistrationWithConfirmation(FunctionalTester $I)\n {\n Yii::$app->getModule('user')->enableEmailConfirmation = true;\n $I->amOnRoute('/user/registration/register');\n\n $this->register($I,\n 'tester1@example.com',\n 'Tester2019@',\n 'Tester2019@',\n 'Name',\n 'LastName',\n 'MiddleName',\n '500100732259',\n null,\n 'individual'\n );\n\n $I->see('Your account has been created and a message with further instructions has been sent to your email');\n $user = $I->grabRecord(User::className(), ['email' => 'tester3@example.com']);\n $token = $I->grabRecord(Token::className(), ['user_id' => $user->id, 'type' => Token::TYPE_CONFIRMATION]);\n /** @var yii\\swiftmailer\\Message $message */\n $message = $I->grabLastSentEmail();\n $I->assertArrayHasKey($user->email, $message->getTo());\n $I->assertContains(Html::encode($token->getUrl()), utf8_encode(quoted_printable_decode($message->getSwiftMessage()->toString())));\n $I->assertFalse($user->isConfirmed);\n }", "public function sSaveRegisterSendConfirmation($email)\n {\n if ($this->eventManager->notifyUntil(\n 'Shopware_Modules_Admin_SaveRegisterSendConfirmation_Start',\n ['subject' => $this, 'email' => $email]\n )) {\n return false;\n }\n\n if (!$this->config->get('sendRegisterConfirmation')) {\n return false;\n }\n\n /** @var Shopware\\Bundle\\StoreFrontBundle\\Struct\\Shop $shop */\n $shop = $this->contextService->getShopContext()->getShop();\n $shopUrl = 'http://' . $shop->getHost() . $shop->getUrl();\n\n if ($shop->getSecure()) {\n $shopUrl = 'https://' . $shop->getHost() . $shop->getUrl();\n }\n\n $context = [\n 'sMAIL' => $email,\n 'sShop' => $this->config->get('ShopName'),\n 'sShopURL' => $shopUrl,\n 'sConfig' => $this->config,\n ];\n\n $namespace = $this->snippetManager->getNamespace('frontend/salutation');\n $register = $this->session->offsetGet('sRegister');\n\n foreach ($register['billing'] as $key => $value) {\n if ($key === 'salutation') {\n $value = $namespace->get($value);\n }\n\n $context[$key] = $value;\n }\n\n if (array_key_exists('password', $context)) {\n unset($context['password']);\n }\n\n if (array_key_exists('passwordConfirmation', $context)) {\n unset($context['passwordConfirmation']);\n }\n\n $mail = Shopware()->TemplateMail()->createMail('sREGISTERCONFIRMATION', $context);\n $mail->addTo($email);\n\n $sendConfirmationEmail = $this->config->get('sSEND_CONFIRM_MAIL');\n if (!empty($sendConfirmationEmail)) {\n $mail->addBcc($this->config->get('sMAIL'));\n }\n\n $this->eventManager->notify(\n 'Shopware_Modules_Admin_SaveRegisterSendConfirmation_BeforeSend',\n ['subject' => $this, 'mail' => $mail]\n );\n\n $mail->send();\n\n return null;\n }", "public function actionVerifyRegistration()\n {\n // get hash code from url\n $hash = Yii::app()->getRequest()->getQuery('hash');\n // activate account\n $model = Profiles::model()->findByAttributes(array('PRF_RND'=>$hash));\n if($model!==null){\n $model->PRF_ACTIVE = '1';\n $model->save();\n\t\tYii::app()->user->setFlash('register','Thank you for your verification. You can now login using the following link.');\n//$this->refresh();\n } else {\n\t\tYii::app()->user->setFlash('register','Hash value invalid, cannot verification user.');\n\t }\n\t //echo $hash . \"<br>\\r\\n\";\n\t //print_r($model);\n $this->checkRenderAjax('register',array('model'=>$model,));\n }", "public function confirmRegistration(Users $entity, $password)\n {\n }", "function upd_userconfirm($DBcon, $mail, $guid)\n {\n //create guid for user confirm\n require_once(C_P_CLASES.'utils/string.functions.php');\n $STR = new STRFN();\n\n $query = \"UPDATE \".$this->tableName.\" SET \".$this->arrDataNames['data4'].\" = '1' \n WHERE \".$this->arrDataNames['data1'].\" = '\".$mail.\"' \n AND \".$this->arrDataNames['data7'].\" = '\".$guid.\"'\n\t\t\t\t\t\";\n\n $stmt = $DBcon->prepare($query);\n $stmt->execute();\n\n // check for successfull registration\n if ( $stmt->execute() ) {\n $response['status'] = 'success';\n $response['message'] = $STR->setMsgStyle('&nbsp; Registro exitoso, Gracias! favor de iniciar sesion:');\n } else {\n $response['status'] = 'error'; // could not register\n $response['message'] = $STR->setMsgStyle('&nbsp; No se pudo registrar, favor de registrarse: <br/>http://www.jadecapitalflow.com/', 3);\n }\n\n return $response;\n }", "public function onSignUp()\n {\n $data = post();\n $data['requires_confirmation'] = $this->requiresConfirmation;\n\n if (app(SignUpHandler::class)->handle($data, (bool)post('as_guest'))) {\n if ($this->requiresConfirmation) {\n return ['.mall-signup-form' => $this->renderPartial($this->alias . '::confirm.htm')];\n }\n\n return $this->redirect();\n }\n }", "function register()\n {\n $saveData = null;\n // result is an array data if save data to db success, else it is false\n $saveData = $this->model->khachhang->registerCustomerAccount();\n // if save data success, send mail to user\n if ($saveData != false) {\n $linkVerify = baseUrl('user/verify/') . $saveData['activation'];\n $title = \"Verification Link | MobileShop| Subscription\";\n $content = \"\";\n $content .= \"Xin chào \" . $saveData['username'] . \",<br /><br />\";\n $content .= \"Vui lòng kích vào nút bên dưới để xác nhận tài khoản của bạn trên website \" . BASE_URL . \".<br />\";\n $content .= \"<span style='background-color:#07c;margin-top:15px;width: 115px;height: 40px;display:block;border-radius: 40px;cursor: pointer;'>\n <span style='display:block;padding:10px;cursor: pointer;'>\n <a href='{$linkVerify}' target='_blank' style='color:white;'>\n VERIFY EMAIL\n </a>\n </span>\n </span>\";\n $nTo = $saveData['username'];\n $mTo = $saveData['email'];\n $diachicc = \"\";\n $mailSuccess = sendMail($title, $content, $nTo, $mTo, $diachicc);\n if ($mailSuccess) {\n redirect('user/success');\n } else {\n redirect('user/fail');\n }\n } else {\n redirect('user/fail');\n }\n\n }", "public function confirmationAction()\n {\n Zend_Registry::set('SubCategory', SubCategory::USERUPDATE);\n \t$userId = $this->getRequest()->getParam('userId');\n $activationKey = $this->getRequest()->getParam(self::ACTIVATION_KEY_PARAMNAME);\n\n $user = $this->_getUserFromIdAndKey($userId, $activationKey);\n\n if(!$user){\n // No such user\n Globals::getLogger()->registrationError(\"Account activation: user retrieval failed - userId=$userId, key=$activationKey\", Zend_Log::INFO );\n $this->_helper->redirectToRoute('usererror',array('errorCode'=>User::ACTIVATION_FAILED));\n }\n\n $user->clearCache();\n $user = $this->_getUserFromIdAndKey($userId, $activationKey);\n\n if($user->{User::COLUMN_STATUS} == User::STATUS_PENDING){\n $user->{User::COLUMN_STATUS} = User::STATUS_MEMBER;\n $user->date = date('Y-m-d H:i:s');\n $id = $user->save();\n if($id !== $userId){\n Globals::getLogger()->registrationError(\"Account activation: user save failed - userId=$userId, key=$activationKey\", Zend_Log::INFO );\n $this->_helper->redirectToRoute('usererror',array('errorCode'=>User::ACTIVATION_FAILED));\n }\n\n $this->view->success = true;\n $this->view->alreadyDone = false;\n \t$this->_savePendingUserIdentity($userId);\n } else {\n $this->view->success = false;\n $this->view->alreadyDone = true;\n }\n }", "public function confirm() {\n $user_id = $_GET['id'];\n $token = $_GET['token'];\n $userConfirmed = $this->model->confirmToken($user_id, $token);\n\n if ($userConfirmed) {\n $this->model->setFlash('success', 'Votre compte a bien été validé');\n // $_SESSION['flash']['success'] = 'Votre compte a bien été validé';\n header('location:index.php?controller=security&action=formLogin');\n } else {\n $this->model->setFlash('danger', \"Ce token n'est plus valide\");\n // $_SESSION['flash']['danger'] = \"Ce token n'est plus valide\";\n header('location:index.php?controller=security&action=formRegister');\n }\n }", "public function confirmation(): void {\n $this->writeData($this->token);\n }", "public function sendRegistrationEmail()\n {\n $loginToken=$this->extractTokenFromCache('login');\n\n $url = url('register/token',$loginToken);\n Mail::to($this)->queue(new RegistrationConfirmationEmail($url));\n }", "public function complete_customer_registration($uid,$password)\n\t{\n\t\t$query=\"Select * from \".parent::SUFFIX.\"user_details where user_id=\".$uid;\n\t\t$resultpassword= mysql_query($query);\n\t\t$resultfetchquery=mysql_fetch_object($resultpassword);\n\t\t$user_id=base64_encode($uid);\n\t\t$site_path = AbstractDB::SITE_PATH;\n\t\t//$link=\"<a href='\".AbstractDB::SITE_PATH.\"user_verification.php?user_id=\".$user_id.\"'>Clcik here</a>\";\n\t\t$this->automailCls->send_automail_user('complete_customer_registration',\n\t\tarray(\n\t\t\t'site_path'=>$site_path,\t\t\n\t\t\t'first_name'=>$resultfetchquery->first_name,\n\t\t\t'last_name'=>$resultfetchquery->last_name,\n\t\t\t'email'=>$resultfetchquery->email,\n\t\t\t'username'=>$resultfetchquery->username,\n\t\t\t'password'=>$password),\n\t\t\tarray($resultfetchquery->email));\n\n\t}", "function userRegistration($email, $password, $confirmPassword) {\n\t\tif ($email == null && empty($email)) {\n return false;\n exit();\n\t}\n\n\tif ($password == null && empty($password)) {\n return false;\n exit();\n\t}\n\n\tif ($confirmPassword == null && empty($confirmPassword)) {\n return false;\n exit();\n\t}\n\n\tif ($email != null && $password != null && $confirmPassword != null) {\n\t\t\t// Checking if email is valid or not\n\t\t\tif ($password == $confirmPassword) {\n\t\t\t\t/**\n\t\t\t\t * dependency isUserRegistered()\n\t\t\t\t * Hash password here an run insert query\n\t\t\t\t * insert is working properly\n \t\t* TODO: Run insert query here\n\t\t\t\t */\n\t\t\t\t$registerData = $this->connection->prepare(\"INSERT INTO `win` VALUES ('$email','$password')\");\n\t\t\t\t$registerData->execute();\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse {\n \t\treturn false;\n \t\t//Password and confirm password must match\n\t\t\t\texit();\n\t\t\t}\n\t\t}\n\t}", "public function register()\n {\n $this->order->update(['status' => OrderStatus::REGISTER]);\n\n // Send notification to the customer\n\n $this->notify([\n 'title' => __('Update Status'),\n 'message' => __('This order has been marked as register and notification has been sent to the customer by email.'),\n ]);\n }", "public function ConfirmUserRegistration($Email, $RegistrationToken) {\n\t\t//$expirationTime = (24 * 60 * 60);\n\t\t\n\t\t$sql = \" UPDATE User SET \";\n\t\t$sql .= \" RegistrationToken = '', \";\n\t\t$sql .= \" UserStateId = 1 \"; // Activate it\n\t\t$sql .= \" WHERE Email = '$Email' AND RegistrationToken = '$RegistrationToken'\";\n\t\t//$sql .= \" AND RegistrationDateTime > \" . (time() - $expirationTime);\n\t\t\n\t\t$result = $this->mysqli->query($sql) or die ($authIssueText);\n\t\t\n\t\tif($this->mysqli->affected_rows > 0) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "protected function register(Request $request)\n { \n \n $user= User::create([\n \n 'f_name' => $request->f_name,\n 'l_name' => $request->l_name,\n 'u_name' => str_slug($request->f_name.$request->l_name),\n 'p_number' => $request->p_number,\n 'email' => $request->email,\n 'password' => Hash::make($request->password),\n 'street_address' => $request->street_address,\n 'Division_id' => $request->Divition_id,\n 'District_id' => $request->District_id,\n 'ip_address' => request()->ip(),\n 'remember_token' => str_random(50),\n 'status' => 0,\n\n ]);\n\n $user-> notify (new verifyreg ($user) );\n\n session()->flash('success','A Confirmation Email has sent to you.. please check and Confirma ');\n return redirect('/');\n }", "public function verifyAction()\n\t{\n\t\t$this->view->headTitle(\"Registration Process\");\n\t\t\n\t\t//Retrieve key from url\n\t\t$registrationKey = $this->getRequest()->getParam('key');\n\t\t\n\t\t//Identitfy the user associated with the key\n\t\t$user = new Default_Model_User();\n\t\t\n\t\t//Determine is user already confirm\n\t\tif($user->isUserConfirmed($registrationKey)){\n\t\t$this->view->isConfirmed = 1;\n\t\t$this->view->errors[] = \"User is already confirmed\";\n\t\treturn;\n\t\t}\n\n\t\t$resultRow = $user->getUserByRegkey($registrationKey);\n\t\t\n\t\t//If the user has been located, set the confirmed column.\n\t\tif(count($resultRow)){\n\t\t\t$resultRow->confirmed = 1;\n\t\t\t$resultRow->save();\n\t\t\t\n\t\t\t$this->view->success = 1;\n\t\t\t$this->view->firstName = $resultRow->first_name;\n\t\t\n\t\t} else{\n\t\t\t$this->view->errors[] = \"Unable to locate registration key\";\n\t\t}\n\n\t}", "function success()\n {\n $message = null;\n $message = \"Một email đã được gửi tới hòm thư của bạn. <br />\";\n $message .= \"Vui lòng kiểm tra hộp thư đến và kích hoạt tài khoản.\";\n $this->view->load('frontend/user/register_success', [\n 'message' => $message\n ]);\n }", "public function confirmEmail($token){\n $user = User::find(Auth::user() -> id);\n if($user->payment_status == 0){\n return redirect()->route('register.payment');\n }else if($user->payment_status == 1){\n return redirect()->route('payment.verify');\n }else{\n $data = User::where('remember_token', $token) -> get() -> first();\n if($data->mail_activation_status === 'pending'){\n $data->mail_activation_status = 'active';\n $data->email_verified_at = Carbon::now();\n $data->update();\n return view('active', [\n 'status' => 'success'\n ]);\n }else{\n return view('active', [\n 'status' => 'error'\n ]);\n }\n }\n\n }", "public function actionSendConfirmationEmail() {\n\n\t\t$userId = User::checkLogged();\n\t\t$confirmation = User::generateConfirmationCode($userId);\n\t\t$subject = \"Confirm your account on JustRegMe\";\n\t\t$bodyPath = ROOT . '/template/email/confirmation.php';\n\t\t$body = include($bodyPath); //loads HTML-body from template\n\t\t\n\t\techo User::sendEmail($userId, $subject, $body);\n\n\t}", "public function actionRegister()\n {\n if (isset($this->request['mobile'])) {\n $mobile = $this->request['mobile'];\n $user = Users::model()->find('username = :mobile', [':mobile' => $mobile]);\n\n $code = Controller::generateRandomInt();\n if (!$user) {\n $user = new Users();\n $user->username = $mobile;\n $user->password = $mobile;\n $user->status = Users::STATUS_PENDING;\n $user->mobile = $mobile;\n }\n\n $user->verification_token = $code;\n if ($user->save()) {\n $userDetails = UserDetails::model()->findByAttributes(['user_id' => $user->id]);\n $userDetails->credit = SiteSetting::getOption('base_credit');\n $userDetails->save();\n }\n\n Notify::SendSms(\"کد فعال سازی شما در آچارچی:\\n\" . $code, $mobile);\n\n $this->_sendResponse(200, CJSON::encode(['status' => true]));\n } else\n $this->_sendResponse(400, CJSON::encode(['status' => false, 'message' => 'Mobile variable is required.']));\n }", "public function resendTask()\n\t{\n\t\t// Check if the user is logged in\n\t\tif (User::isGuest())\n\t\t{\n\t\t\t$return = base64_encode(Route::url('index.php?option=' . $this->_option . '&controller=' . $this->_controller . '&task=' . $this->_task, false, true));\n\t\t\tApp::redirect(\n\t\t\t\tRoute::url('index.php?option=com_users&view=login&return=' . $return, false),\n\t\t\t\tLang::txt('COM_MEMBERS_REGISTER_ERROR_LOGIN_TO_RESEND'),\n\t\t\t\t'warning'\n\t\t\t);\n\t\t}\n\n\t\t$xprofile = User::getInstance();\n\t\t$login = $xprofile->get('username');\n\t\t$email = $xprofile->get('email');\n\t\t$email_confirmed = $xprofile->get('activation');\n\n\t\t// Incoming\n\t\t$return = urldecode(Request::getString('return', '/'));\n\n\t\t// If already confirmed?\n\t\tif ($email_confirmed == 1 || $email_confirmed == 3)\n\t\t{\n\t\t\tApp::redirect($return);\n\t\t}\n\n\t\t$confirm = \\Components\\Members\\Helpers\\Utility::genemailconfirm();\n\n\t\t$xprofile->set('activation', $confirm);\n\t\t$xprofile->save();\n\n\t\t$subject = Config::get('sitename').' '.Lang::txt('COM_MEMBERS_REGISTER_EMAIL_CONFIRMATION');\n\n\t\t$eview = new \\Hubzero\\Mail\\View(array(\n\t\t\t'name' => 'emails',\n\t\t\t'layout' => 'confirm'\n\t\t));\n\t\t$eview->option = $this->_option;\n\t\t$eview->controller = $this->_controller;\n\t\t$eview->sitename = Config::get('sitename');\n\t\t$eview->login = $login;\n\t\t$eview->name = $xprofile->get('name');\n\t\t$eview->registerDate = $xprofile->get('registerDate');\n\t\t$eview->baseURL = $this->baseURL;\n\t\t$eview->confirm = $confirm;\n\t\t$eview->email = $email;\n\n\t\t$msg = new \\Hubzero\\Mail\\Message();\n\t\t$msg->setSubject($subject)\n\t\t ->addTo($email)\n\t\t ->addFrom(Config::get('mailfrom'), Config::get('sitename') . ' Administrator')\n\t\t ->addHeader('X-Component', $this->_option);\n\n\t\t$message = $eview->loadTemplate(false);\n\t\t$message = str_replace(\"\\n\", \"\\r\\n\", $message);\n\n\t\t$msg->addPart($message, 'text/plain');\n\n\t\t$eview->setLayout('confirm_html');\n\t\t$message = $eview->loadTemplate();\n\t\t$message = str_replace(\"\\n\", \"\\r\\n\", $message);\n\n\t\t$msg->addPart($message, 'text/html');\n\n\t\tif (!$msg->send())\n\t\t{\n\t\t\t$this->setError(Lang::txt('COM_MEMBERS_REGISTER_ERROR_EMAILING_CONFIRMATION', $email));\n\t\t}\n\n\t\tEvent::trigger('onUserAfterConfirmResend', array($xprofile->toArray()));\n\n\t\t// Set the pathway\n\t\t$this->_buildPathway();\n\n\t\t// Set the page title\n\t\t$this->_buildTitle();\n\n\t\t$this->view\n\t\t\t->set('title', Lang::txt('COM_MEMBERS_REGISTER_RESEND'))\n\t\t\t->set('login', $login)\n\t\t\t->set('email', $email)\n\t\t\t->set('return', $return)\n\t\t\t->set('show_correction_faq', true)\n\t\t\t->set('hubName', Config::get('sitename'))\n\t\t\t->setLayout('send')\n\t\t\t->setErrors($this->getErrors())\n\t\t\t->display();\n\t}", "function registerUser() {\n\n\tglobal $db;\n\tglobal $password;\n\tglobal $username;\n\tglobal $firstname;\n\tglobal $lastname;\n\tglobal $email;\n\tglobal $register;\n\n\t$password = password_hash($password, PASSWORD_BCRYPT, array('cost' => 12));\n\n $query = \"INSERT INTO \";\n $query .= \"user(username, user_password, user_email, user_firstname, user_lastname, user_role, date) \";\n $query .= \"VALUES('{$username}', '{$password}', '{$email}', '{$firstname}', '{$lastname}', 'Costumer', now())\";\n\n $result = mysqli_query($db, $query);\n\n confirmQuery($result);\n\n $register = \"<p class='alert-success'>You have been registered</p>\";\n}", "static function confirm_account_email() {\n $model = \\Auth::$model;\n $user = $model::requested();\n\n if (!$user->nil()) {\n if ($user->validate()) {\n $code = confirm_account_email($user->email);\n\n if ($code === -1) {\n flash('Sua conta já está confirmada, basta acessá-la.', 'warning');\n } else if ($code == true)\n flash(\"Enviamos um e-mail para <small><b>$user->email</b></small> com as instruções para você confirmar sua conta.\");\n else\n flash('Não foi possível lhe enviar o e-mail. Por favor, tente novamente mais tarde.', 'error');\n\n go('/');\n } else {\n flash('Verifique os dados do formulário.', 'error');\n }\n }\n\n globals('user', $user);\n }", "public function sendEmailVerificationNotification()\n { \n \n $this->notify(new ConfirmEmail); \n \n }", "function register_user($username, $email, $password){\n global $connection;\n\n $password = password_hash($password, PASSWORD_BCRYPT, array('cost' => 10));\n\n $query = \"INSERT INTO users(user_name, user_email, user_password, user_role) \";\n $query .= \"VALUES('{$username}', '{$email}', '{$password}', 'Subscriber') \";\n $register_query = mysqli_query($connection, $query);\n\n confirm($register_query);\n}", "public function confirmation($user_vericode)\n\t{\n\t\t$this->load->database();\n\t\t$this->db->where('verification_code', $user_vericode);\n\t\t$data['Active_status'] = 1;\n\t\t$this->db->update('users', $data);\n\t\t\n\t\t// view verification success page\n\t\t$this->load->view('verification_success');\n\t}", "protected function registered(Request $request, $user)\n {\n \n\n //get data into verification\n \n $this->userVerificationCreate($user);\n\n\n //send email\n\n $this->sendVerifyEmail($user);\n\n \n $this->guard()->logout();\n return redirect()->route('login')->with('success', 'We have sent you an account activation link through email. Please activate your account to login.');\n \n\n }", "public function confirmSignUp(User $user, $token)\n\t{\n\t\tif ($user->signUpTokenHash === NULL) {\n\t\t\tthrow new UserAlreadyActivatedException();\n\t\t}\n\n\t\tif (!password_verify($token, $user->signUpTokenHash)) {\n\t\t\tthrow new InvalidSignUpTokenException();\n\t\t}\n\n\t\t$user->signUpTokenHash = NULL;\n\t\t$user->registered = 1;\n\t\t$this->orm->users->persistAndFlush($user);\n\t}", "public function onRegistrationInitialize(GetResponseUserEvent $event)\n {\n\t\t$user = $event->getUser();\n\t\t\n\t\t$tokenGenerator = $this->container->get('fos_user.util.token_generator');\n\t\t$password = substr($tokenGenerator->generateToken(), 0, 8); // 8 chars\t\t\n\t\t$password = '1234';\n\t\t\n\t\t$smscode = (int) ( rand(10,99).''.rand(10,99) ); #.''.rand(10,99) );\n\t\t\n\t\t$user->setPlainPassword( $password );\n\t\t$user->setSmsValidationCode( $smscode );\n }", "public function actionConfirm()\n\t{\n\t\tif(isset($_SESSION) && isset($_SESSION['userRegisterVal']) && $_SESSION['userRegisterVal']['email'] != '')\n\t\t{\n\t\t\t $this->layout =\"homeinner\";\n\t\t\t $modelUser=new Users;\n\t\t\t \n\t\t\t //for getting lastly saved value of Gift model\n\t\t\t $userGiftId = $_SESSION['giftId'];\n\t\t\t \n\t\t\t if(isset($userGiftId) && $userGiftId != '')\n\t\t\t {\n\t\t\t\t \n\t\t\t\t Yii::app()->user->setFlash('successmessage','You have been registered properly.. Please check your mailbox');\n\t\t\t }\n\t\t\t else \n\t\t\t {\n\t\t\t\t \n\t\t\t\t Yii::app()->user->setFlash('failuremessage','Please fill the form properly again');\n\t\t\t }\n\t\t\t //for getting lastly saved value of Gift model by current user\n\t\t $giftLastValue=Gift::model()->findByAttributes(array('id'=>$userGiftId));\n\t\t\t //for getting lastly saved value of Gift model by current user\n\t\t\t\n\t\t\t //destroying session here..\n\t session_destroy(); \n\t \n\t //create new session to keep current gift id for fbshare\n\t session_start();\n\t $_SESSION['giftId'] = $userGiftId;\n\t\n\t //render page to view page....\n\t\t\t $this->render('finalconfirmed',array(\n\t\t\t\t 'modelUser'=>$modelUser,\n\t\t\t\t 'maxIdGift'=>$userGiftId,\n\t\t\t\t 'giftLastValue'=>$giftLastValue,\n\t\t\t ));\n\t\t}\n\t\telse\n\t\t{\n\t\t \t//Redirect to home page\n\t\t\t$this->redirect('../index.php', '');\n\t\t}\n\t}", "public function confirmEmail()\n {\n $this->mail_confirmed = Carbon::now();\n $this->mail_token = null;\n $this->save();\n }", "public function confirm() {\n\t\t\t\n\t\t\t$this->status = 'confirmed';\n\t\t\t$this->save();\n\t\t}", "public function testRegistrationEntityUserWithConfirmation(FunctionalTester $I)\n {\n Yii::$app->getModule('user')->enableEmailConfirmation = true;\n $I->amOnRoute('/user/registration/register');\n\n $this->register($I,\n 'tester2@example.com',\n 'Tester2019@',\n 'Tester2019@',\n 'Name',\n 'LastName',\n 'MiddleName',\n '500100732259',\n 'CompanyName',\n 'entity'\n );\n\n $I->see('Your account has been created and a message with further instructions has been sent to your email');\n $user = $I->grabRecord(User::className(), ['email' => 'tester3@example.com']);\n $token = $I->grabRecord(Token::className(), ['user_id' => $user->id, 'type' => Token::TYPE_CONFIRMATION]);\n /** @var yii\\swiftmailer\\Message $message */\n $message = $I->grabLastSentEmail();\n $I->assertArrayHasKey($user->email, $message->getTo());\n $I->assertContains(Html::encode($token->getUrl()), utf8_encode(quoted_printable_decode($message->getSwiftMessage()->toString())));\n $I->assertFalse($user->isConfirmed);\n }", "public function postConfirm(ConfirmRequest $request, User $user_m)\n\t{\n\t\t$user = $user_m->whereEmail($request->email)->firstOrFail();\n\t\t$user->confirmation_code = str_random(30);\n\t\t$user->save();\n\t\t$this->dispatch(new SendMail($user));\n\t\t\n\t\treturn redirect('/auth/login')->with('status', trans('front/verify.resend'));\n\t\t\n\t}", "public static function email_confirm_account() {\n\n if ($u = static::check_record_existence()) {\n\n $m = auth_model();\n $u = $m::first(array('where' => 'id = \\'' . $u->id . '\\''));\n\n # definindo conta como não confirmada.\n $u->hash_confirm_account = $u->hash_confirm_account ?: \\Security::random(32);\n\n if ($u->emailConfirmAccount())\n flash('Email com as instruções para Confirmação de conta para ' . $u->email . '.');\n else\n flash('Algo ocorreu errado. Tente novamente mais tarde.', 'error');\n }\n\n go_paginate();\n }", "public function confirmedAction()\n {\n $user = $this->getUser();\n $em = $this->getDoctrine()->getManager();\n $address = $user->getAddress();\n $city = $user->getCity();\n $geocodeAddress = $address . \",\" . $city;\n $geo = $this->container->get('simon_user.geocoder');\n $coord = $geo->geocode($geocodeAddress);\n $geometry = new Geometry();\n $geometry->setLat($coord[0]);\n $geometry->setLng($coord[1]);\n $geometry->setUser($user);\n $em->persist($geometry);\n $em->flush();\n return $this->render('@FOSUser/Registration/confirmed.html.twig', array(\n 'user' => $user,\n 'targetUrl' => $this->getTargetUrlFromSession(),\n ));\n }", "public function resendConfirmationMailAction()\n {\n // @todo find a better way to fetch the data\n $result = GeneralUtility::_GP('tx_femanager_pi1');\n if (is_array($result)) {\n if (GeneralUtility::validEmail($result['user']['email'])) {\n $user = $this->userRepository->findFirstByEmail($result['user']['email']);\n if (is_a($user, User::class)) {\n $this->sendCreateUserConfirmationMail($user);\n $this->addFlashMessage(\n LocalizationUtility::translate('resendConfirmationMailSend'),\n '',\n AbstractMessage::INFO\n );\n $this->redirect('resendConfirmationDialogue');\n }\n }\n }\n $this->addFlashMessage(\n LocalizationUtility::translate('resendConfirmationMailFail'),\n LocalizationUtility::translate('validationError'),\n AbstractMessage::ERROR\n );\n $this->redirect('resendConfirmationDialogue');\n }", "public function customerForgotpassword($observer)\n {\n \n $settings = Mage::helper('smsnotifications/data')->getSettings();\n\n $customer_email =$_POST[\"email\"];\n $customer = Mage::getModel(\"customer/customer\");\n $customer->setWebsiteId(Mage::app()->getWebsite()->getId());\n $customer->loadByEmail($customer_email);\n $fname=$customer->getFirstname();\n $lname=$customer->getLastname();\n $email= $customer->getEmail();\n$telephone= $customer->getAddressesCollection()->getFirstitem()->getTelephone();\n\nif ($telephone) {\n $text = Mage::getStoreConfig('smsnotifications/customer_notification/password_status');\n $text = str_replace('{{firstname}}', $fname, $text);\n $text = str_replace('{{lastname}}', $lname, $text);\n $text = str_replace('{{emailid}}', $email, $text);\n //$text = str_replace('{{name}}', $customer_name, $text);\n $link=Mage::helper('customer')->getForgotPasswordUrl();\n $text = str_replace('{{link}}', $link, $text);\n array_push($settings['order_noficication_recipients'], $telephone);\n\n $result = Mage::helper('smsnotifications/data')->sendSms($text, $settings['order_noficication_recipients']);\n return;\n }\n\n }", "public function postRegister(Request $request)\n {\n $rules = [\n 'username' => 'required|min:6|unique:users|max:15',\n 'email' => 'required|email|unique:users',\n 'password' => 'required|confirmed|min:6|max:60'\n ];\n\n $input = Input::only(\n 'username',\n 'email',\n 'password',\n 'password_confirmation'\n );\n\n $validator = Validator::make($input, $rules);\n\n if($validator->fails())\n {\n return Redirect::back()->withInput()->withErrors($validator);\n }\n $confirmation_code = str_random(30);\n //$code = ['confirmation_code' => '$confirmation_code'];\n\n User::create([\n 'username' => Input::get('username'),\n 'email' => Input::get('email'),\n 'password' => bcrypt(Input::get('password')),\n 'profile' => 'avatar.png',\n 'chat_key' => str_random(30),\n 'confirmation_code' => $confirmation_code\n ]);\n\n Mail::send('emails.verify', ['confirmation_code' => $confirmation_code], function($message) {\n $message->to(Input::get('email'), Input::get('username'))\n ->subject('Email verification');\n });\n\n Session::flash('flash_message','alt');\n\n return redirect ('/auth/login');\n }", "public function actionCustomiseconfirm()\n\t{\n\t\tif(isset($_SESSION) && isset($_SESSION['userRegisterVal']) && $_SESSION['userRegisterVal']['email'] != '')\n\t\t{\n\t\t\t$this->layout =\"homeinner\";\n\t\t\t$modelUser=new Users;\n\t\t\t$modelGifts=new Gift;\n\n\t\t\t//simply redirecting to Confirm page...\n\t\t\t$this->render('customizejerseyconfirm',array(\n\t\t\t\t'modelUser'=>$modelUser,\n\t\t\t));\n\t\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\t//Redirect to home page\n\t\t\t$this->redirect('../index.php', '');\n\t\t}\n\t}", "public function customer_register_callback(){\n\t\t$token = $_POST['token'];\n\t\t$this->customer_getregisterstatus($token);\n\t}", "public function registerUser()\n {\n $password = $this->input->post('password');\n $confirm_password = $this->input->post('cpassword');\n $email = $this->input->post('email');\n\n if($password != $confirm_password) {\n $this->session->set_flashdata('error_msg', 'A senha e a confirmação da senha não correspondem');\n redirect('home/Registrar_Conta');\n }\n\n if(empty($email)) {\n $this->session->set_flashdata('error_msg', 'O e-mail é obrigado');\n redirect('home/Registrar_Conta');\n }\n\n\n /*password encryption*/\n $CURRENT_PASSWORD = password_hash($password, PASSWORD_BCRYPT);\n\n $firstname = $this->input->post('firstname');\n $middlename = $this->input->post('middlename');\n $lastname = $this->input->post('lastname');\n $username = $this->input->post('username');\n $telecom = $this->input->post('telecom');\n $address1 = $this->input->post('address1');\n $city = $this->input->post('city');\n $postcode = $this->input->post('postcode');\n $country = $this->input->post('country');\n $region = $this->input->post('region');\n $password = $CURRENT_PASSWORD;\n\n $subject = \"Thank you for registering with us\";\n $message = \"Thank you for registering with us\";\n // $status = $this->sendMail($email, $subject, $message);\n $status = true;\n\n if(!$status) {\n $this->session->set_flashdata('error_msg', 'Diante de algum problema técnico, voltarei em breve');\n redirect('home/Registrar_Conta');\n } else { \n $this->authentication_worker->register($firstname, $middlename, $lastname, $username, $telecom, $address1, $city, $postcode, $country, $region, $email, $password); \n\n $this->session->set_flashdata('success_msg', 'Usuário registrado com sucesso');\n redirect('home/Entrar');\n } \n }", "function confirm_user_signup($user_name, $user_email)\n {\n }", "function register_user($first_name, $last_name, $username, $email, $password){\r\n\r\n $first_name = escape($first_name);\r\n $last_name = escape($last_name);\r\n $username = escape($username);\r\n $email = escape($email);\r\n $password = escape($password);\r\n\r\n if(email_exists($email)){\r\n return false;\r\n } elseif (username_exists($username)) {\r\n return false;\r\n } else {\r\n $password = password_hash($password, PASSWORD_BCRYPT, array('cost'=>12)); //md5($password);\r\n $validation_code = md5($username . microtime());\r\n\r\n $sql = \"INSERT INTO users(first_name, last_name, username, email, password, validation_code, active)\";\r\n $sql.= \" VALUES('$first_name', '$last_name', '$username', '$email', '$password', '$validation_code', 0)\";\r\n $result = query($sql);\r\n confirm($result);\r\n \r\n $subject = \"Activate account\";\r\n $msg = \" Please click the link below to activate your Account\r\n\r\n <a href=\\\"\".Config::DEV_URL.\"/activate.php?email={$email}&code={$validation_code}\\\">Reset Password</a>\r\n \";\r\n\r\n $headers = \"From: noreplay@mywebsite.com\";\r\n\r\n send_email($email, $subject, $msg, $headers);\r\n\r\n return true;\r\n }\r\n return false;\r\n}", "public function register()\n {\n if ($this->getIsNewRecord() == false) {\n throw new \\RuntimeException('Calling \"' . __CLASS__ . '::' . __METHOD__ . '\" on existing user');\n }\n\n if ($this->module->enableConfirmation == false) {\n $this->confirmed_at = time();\n }\n\n if ($this->module->enableGeneratingPassword) {\n $this->password = Password::generate(8);\n }\n\n $this->trigger(self::USER_REGISTER_INIT);\n\n if ($this->save(false)) {\n Yii::getLogger()->log($this->getErrors(), Logger::LEVEL_INFO);\n $this->trigger(self::USER_REGISTER_DONE);\n if ($this->module->enableConfirmation) {\n $token = \\Yii::createObject([\n 'class' => \\dektrium\\user\\models\\Token::className(),\n 'type' => \\dektrium\\user\\models\\Token::TYPE_CONFIRMATION,\n ]);\n $token->link('user', $this);\n $this->mailer->sendConfirmationMessage($this, $token);\n } else {\n \\Yii::$app->user->login($this);\n }\n if ($this->module->enableGeneratingPassword) {\n $this->mailer->sendWelcomeMessage($this);\n }\n \\Yii::$app->session->setFlash('info', $this->getFlashMessage());\n \\Yii::getLogger()->log('User has been registered', Logger::LEVEL_INFO);\n return true;\n }\n\n \\Yii::getLogger()->log('An error occurred while registering user account', Logger::LEVEL_ERROR);\n\n return false;\n }", "function confirm_registration($registration_code)\n {\n /* Check the users table for the activation code */\n $this->db->select('id');\n $this->db->from('users');\n $this->db->where('activation_code',$registration_code);\n $result = $this->db->get();\n if($result->num_rows == 1){\n /* Activate account */\n $data = array(\n 'activated' => 1\n );\n $this->db->where('activation_code',$registration_code);\n $this->db->update('users',$data);\n $user = $result->row_array();\n $email = $this->get_email($user['id']);\n return $email;\n } else {\n return false;\n }\n }", "public function confirmed()\n {\n \n $this->alert('success', 'Hello World!', [\n 'position' => 'top-end', \n 'timer' => 3000, \n 'toast' => true, \n 'text' => '', \n 'confirmButtonText' => 'Ok', \n 'cancelButtonText' => 'Cancel', \n 'showCancelButton' => true, \n 'showConfirmButton' => true, \n ]);\n }", "public function confirmed()\n {\n \n $this->alert('success', 'Hello World!', [\n 'position' => 'top-end', \n 'timer' => 3000, \n 'toast' => true, \n 'text' => '', \n 'confirmButtonText' => 'Ok', \n 'cancelButtonText' => 'Cancel', \n 'showCancelButton' => true, \n 'showConfirmButton' => true, \n ]);\n }", "function resend_account_activation($sToken) {\n\n\t\t//see if the token is an expired one\n\t\t$aResult = $this->common_model->isValidToken($sToken, 'account_activation');\n\t\t$aTokenStatus = c('token_status');\n\n\t\tif($aResult['status'] == $aTokenStatus['expired']){\n\n\t\t\t$oToken = $aResult['oToken'];\n\t\t\t$oUser = $this->user_model->getUserBy('id', $oToken->user_id);\n\t\t\t//confirmation email to user\n\t\t\t$account_activation_code = $this->common_model->generateToken('account_activation', $oUser->id);\n\t\t\t$arr_email['name']\t\t\t\t= $oUser->first_name . ' ' . $oUser->last_name;\n\t\t\t$arr_email['activation_url']\t= site_url('user/account_activation/'.$account_activation_code);\n\t\t\t$arr_email['help_url']\t\t\t= site_url('help');\n\n\n\t\t\t$this->load->helper('custom_mail');\n\t\t\tif(sendMail($oUser->email_id, $arr_email, 'registration_activation_link')){\n\t\t\t\t$this->session->set_flashdata ('success_message', 'Please Check your email now.');\n\t\t\t}else{\n\t\t\t\t$this->session->set_flashdata ('info_message', 'Confirmation mail is not sent');\n\t\t\t}\n\t\t}\n\n\t\tredirect('home');\n\t}", "public function signupActivate($token)\n {\n $user = User::where('activation_token', $token)->first();\n\n if (!$user) {\n $msg = __('auth.token_invalid');\n return ApiResponse::errorResponse('UNAUTHORIZED_ERROR', $msg, []);\n //return $this->errorResponse($msg,[]);\n //return response()->json([\n // 'message' => __('auth.token_invalid')\n //], 404);\n }\n\n $user->active = true;\n $user->activation_token = '';\n $user->save();\n\n $user->notify(new SignupActivated($user));\n $msg = __('auth.active_success');\n return ApiResponse::successResponse('SUCCESS', $msg, []);\n //return $this->successResponse($msg,$user);\n //return $user;\n }", "public function register() {\n\t\t\tif($this->Session->read('Auth.User.id')){\n\t\t\t\t$this->redirect('/');\n\t\t\t}\n\t\t\telse {\n\n\t\t\t\tif(!empty($this->request->data)){\n\n\t\t\t\t\t$this->User->create($this->request->data);\n\t\t\t\t\t// Validation des données\n\t\t\t\t\tif($this->User->validates()) {\n\n\t\t\t\t\t\t$token = md5(time() .' - '. uniqid());\n\n\t\t\t\t\t\t$this->User->create(array(\n\t\t\t\t\t\t\t\"email\" \t\t=> $this->request->data['User']['email'],\n\t\t\t\t\t\t\t\"password\" \t\t=> $this->Auth->password($this->request->data['User']['password']),\n\t\t\t\t\t\t\t\"token\" \t\t=> $token\n\t\t\t\t\t\t\t));\n\n\t\t\t\t\t\t// Si tout est ok, on sauvegarde\n\t\t\t\t\t\t$this->User->save();\n\n\t\t\t\t\t\t// Envoie de l'email d'activation à l'utilisateur\n\t\t\t\t\t\t$CakeEmail = new CakeEmail('default');\n\t\t\t\t\t\t$CakeEmail->to($this->request->data['User']['email']);\n\t\t\t\t\t\t$CakeEmail->subject('Dezordre: Confirmation d\\'inscription');\n\t\t\t\t\t\t$CakeEmail->viewVars($this->request->data['User'] + array(\n\t\t\t\t\t\t\t'token' => $token,\n\t\t\t\t\t\t\t'id'\t=> $this->User->id,\n\n\t\t\t\t\t\t\t));\n\t\t\t\t\t\t$CakeEmail->emailFormat('text');\n\t\t\t\t\t\t$CakeEmail->template('register');\n\t\t\t\t\t\t$CakeEmail->send();\n\n\n\t\t\t\t\t\t$this->Session->setFlash(\"Votre compte à bien été créer. Un lien vous à été envoyé par email afin d'activer votre compte.\", 'alert', array('class' => 'success'));\n\t\t\t\t\t\t$this->redirect(array('controller' => 'pages', 'action' => 'display', 'home'));\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\n\t\t\t\t\telse {\n\t\t\t\t\t\t\t$this->Session->setFlash(\"Erreur, merci de corriger\", 'alert', array('class' => 'danger'));\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\t\t}", "public function resend()\n {\n if (!$this->validate()) {\n return false;\n }\n\n $user = $this->finder->findUserByEmail($this->email);\n\n if ($user instanceof User && !$user->isConfirmed) {\n /** @var Token $token */\n $token = \\Yii::createObject([\n 'class' => Token::className(),\n 'user_id' => $user->id,\n 'type' => Token::TYPE_CONFIRMATION,\n ]);\n $token->save(false);\n $this->mailer->sendConfirmationMessage($user, $token);\n }\n\n \\Yii::$app->session->setFlash(\n 'info',\n \\Yii::t(\n 'user',\n 'A message has been sent to your email address. It contains a confirmation link that you must click to complete registration.'\n )\n );\n\n return true;\n }", "protected function notify(User $user){\n// '<a href=\"'.action('ProfileController@getActivate', $user->activation_code).'\">Activate My Email</a>';\n// //$msgBody = 'Your activation code is '.$user->phoneActivationCode;\n// $msgBody = 'Thank you for registering with our consultation services,\\nAn activation email has been sent to your mail, please activate it in order to access your account.';\n $emailData= [\n 'name'=>$user->name,\n 'link'=>action('UserController@getActivate', $user->activation_code)\n ];\n SharedFunctions::sendEmailTo('emails.welcome', $user->email,\n 'Register mail', $emailData);\n //SharedFunctions::sendSMS($user->phone, $msgBody);\n }", "private function notifyNewPassword(sfGuardUser $user, $password)\n {\n// $message = Swift_Message::newInstance()\n// ->setFrom(sfConfig::get('app_sf_guard_plugin_default_from_email', 'from@noreply.com'))\n// ->setTo($this->user->email_address)\n// ->setSubject('New Password for '.$this->user->username)\n// ->setBody($this->getPartial('sfGuardForgotPassword/new_password', array('user' => $this->user, 'password' => $request['sf_guard_user']['password'])))\n// ;\n//\n// $this->getMailer()->send($message);\n\n $vars = array('user' => $user, 'password' => $password);\n\n $message_html = $this->getPartial('rtGuardForgotPassword/email_new_password_html', $vars);\n $message_html = $this->getPartial('rtEmail/layout_html', array('content' => $message_html));\n\n $message_plain = $this->getPartial('rtGuardForgotPassword/email_new_password_plain', $vars);\n $message_plain = $this->getPartial('rtEmail/layout_plain', array('content' => html_entity_decode($message_plain)));\n\n $message = Swift_Message::newInstance()\n ->setFrom($this->getAdminEmail())\n ->setTo($user->getEmailAddress())\n ->setSubject('New Password for '.$user->username)\n ->setBody($message_html, 'text/html')\n ->addPart($message_plain, 'text/plain');\n\n $this->getMailer()->send($message);\n }", "public function sendPhoneVerificationNotification();", "public function confirmed()\n {\n if(!Auth::check()){\n return redirect()->route('auth.registration');\n }\n\n return view('confirm');\n }", "function users_user_activation($args)\n{\n $code = base64_decode(FormUtil::getPassedValue('code', (isset($args['code']) ? $args['code'] : null), 'GETPOST'));\n $code = explode('#', $code);\n\n if (!isset($code[0]) || !isset($code[1])) {\n return LogUtil::registerError(__('Error! Could not activate your account. Please contact the site administrator.'));\n }\n $uid = $code[0];\n $code = $code[1];\n\n // Get user Regdate\n $regdate = pnUserGetVar('user_regdate', $uid);\n\n // Checking length in case the date has been stripped from its space in the mail.\n if (strlen($code) == 18) {\n if (!strpos($code, ' ')) {\n $code = substr($code, 0, 10) . ' ' . substr($code, -8);\n }\n }\n\n if (DataUtil::hash($regdate, 'md5') == DataUtil::hash($code, 'md5')) {\n $returncode = pnModAPIFunc('Users', 'user', 'activateuser',\n array('uid' => $uid,\n 'regdate' => $regdate));\n\n if (!$returncode) {\n return LogUtil::registerError(__('Error! Could not activate your account. Please contact the site administrator.'));\n }\n LogUtil::registerStatus(__('Done! Account activated.'));\n return pnRedirect(pnModURL('Users', 'user', 'loginscreen'));\n } else {\n return LogUtil::registerError(__('Sorry! You entered an invalid confirmation code. Please correct your entry and try again.'));\n }\n}", "function userConfirmation($data){\n\t\t$requiredData['action'] = $this->getPassword(@trim($data->action));\n\t\t$user_name_id = explode(\"#/#\",$requiredData['action']);\n\t\t$rec = $this->query(\"UPDATE `users` SET `status`=1 where `user_name` = '\".@$user_name_id[0].\"' AND `id`= \".@$user_name_id[1]);\n\t\tif($rec){\n\t\t\t$url = HTTP_HOST.\"confirm.php?action=1\";\n\t\t\techo \"<meta http-equiv=Refresh content=0;url=\".$url.\">\";\t\t\t\n\t\t\texit;\n\t\t}else{\n\t\t\t$url = HTTP_HOST.\"confirm.php?action=0\";\n\t\t\techo \"<meta http-equiv=Refresh content=0;url=\".$url.\">\";\t\t\t\n\t\t\texit;\t\t\n\t\t}\n\t}", "public function register(Request $request)\n {\n $input = $request->all();\n // trim phone number\n // if($input['phone_number'] != '') {\n // $input['phone_number'] = $input['country_code'].preg_replace('/[\\-\\s]/','',$input['phone_number']);\n // }\n\n $validator = $this->validator($input);\n\n if($validator->passes()) {\n $data = $this->create($input)->toArray();\n\n $data['confirmation_token'] = str_random(40);\n $data['confirmation_code'] = $this->generateCode();\n $user = User::find($data['id']);\n $user->confirmation_token = $data['confirmation_token'];\n $user->confirmation_code = $data['confirmation_code'];\n $user->save();\n\n // TODO: send sms\n\n if( env('EMAIL_VERIFICATION') ) {\n Mail::send('mails.confirmation', $data, function($message) use($data) {\n $message->to($data['email']);\n $message->subject('Email Verification');\n });\n }\n // IDEA: Login user after register\n $data['user'] = User::info()\n ->where('id', $user->id)\n ->first();\n $data['access_token'] = $user->createToken('THE GRID')->accessToken;\n\n return response()->json($data);\n\n // if( env('SMS') ) {\n // $sms = $this->sendSMS($user->phone_number, $data['confirmation_code']);\n // } else {\n // $sms = true;\n // }\n // if( $sms ) {\n // // return response()->json(['message' => 'A confirmation code will be send to the mobile number provided', 'user' => $user], 200)->withCookie(Cookie::make('user', $user, 30));\n // return response()->json(['message' => 'A confirmation code will be sent to your email', 'user' => $user]);\n // // return response()->json(['message' => 'A confirmation link will be send to the email address provided', 'user' => $user], 200);\n // } else {\n // return response()->json(['message' => 'Sorry! Something went wrong while sending SMS'], 500);\n // }\n }\n return response()->json($validator->errors(), 422);\n }", "function register()\n\t{\n\t\tif ($this->tank_auth->is_logged_in()) {\t\t\t\t\t\t\t\t\t// logged in\n\t\t\tredirect('');\n\n\t\t} elseif ($this->tank_auth->is_logged_in(FALSE)) {\t\t\t\t\t\t// logged in, not activated\n\t\t\tredirect('/auth/send_again/');\n\n\t\t} elseif (config_item('allow_client_registration') == 'FALSE') {\t// registration is off\n\t\t\t$this->session->set_flashdata('response_status', 'error');\n\t\t\t$this->session->set_flashdata('message', lang('auth_message_registration_disabled'));\n\t\t\tredirect('login');\n\n\t\t} else {\n\t\t\t$use_username = config_item('use_username');\n\t\t\tif ($use_username) {\n\t\t\t\t$this->form_validation->set_rules('username', lang('username'), 'trim|required|xss_clean|min_length['.config_item('username_min_length').']|max_length['.config_item('username_max_length').']');\n\t\t\t}\n $this->form_validation->set_rules('fullname', lang('full_name'), 'trim|required|xss_clean');\n\t\t\t$this->form_validation->set_rules('email', lang('email'), 'trim|required|xss_clean|valid_email');\n\t\t\t$this->form_validation->set_rules('password', lang('password'), 'trim|required|xss_clean|min_length['.config_item('password_min_length').']|max_length['.config_item('password_max_length').']');\n\t\t\t$this->form_validation->set_rules('confirm_password', lang('confirm_password'), 'trim|required|xss_clean|matches[password]');\n\n\t\t\t$captcha_registration\t= config_item('captcha_registration');\n\t\t\t$use_recaptcha\t= config_item('use_recaptcha');\n\t\t\tif ($captcha_registration == 'TRUE') {\n\t\t\t\tif ($use_recaptcha) {\n\t\t\t\t\t$this->form_validation->set_rules('recaptcha_response_field', 'Confirmation Code', 'trim|xss_clean|required|callback__check_recaptcha');\n\t\t\t\t} else {\n\t\t\t\t\t$this->form_validation->set_rules('captcha', 'Confirmation Code', 'trim|xss_clean|required|callback__check_captcha');\n\t\t\t\t}\n\t\t\t}\n\t\t\t$data['errors'] = array();\n\t\t\t$email_activation = config_item('email_activation');\n $individual = $this->input->post('company_name') == '' ? 1:0;\n\n\t\t\tif ($this->form_validation->run($this)) {\t\t\t\t\t\t\t\t// validation ok\n\t\t\t\tif (!is_null($data = $this->tank_auth->create_user(\n $use_username ? $this->form_validation->set_value('username') : '',\n $this->form_validation->set_value('email'),\n $this->form_validation->set_value('password'),\n $this->input->post('fullname'),\n '-',\n '2',\n '',\n $email_activation,\n $individual == 1 ? $this->input->post('fullname'):$this->input->post('company_name'),\n $individual\n ))) {\t // success\n\n\t\t\t\t\t$data['site_name'] = config_item('company_name');\n\n\t\t\t\t\tif ($email_activation) {\t\t\t\t\t\t\t\t\t// send \"activate\" email\n\t\t\t\t\t\t$data['activation_period'] = config_item('email_activation_expire') / 3600;\n\n\t\t\t\t\t\t$this->_send_email('activate', $data['email'], $data);\n\n\t\t\t\t\t\tunset($data['password']); // Clear password (just for any case)\n\n $this->session->set_flashdata('message', lang('auth_message_registration_completed_1'));\n \t\t\t\t\tredirect('/auth/login');\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (config_item('email_account_details') == 'TRUE') {\t// send \"welcome\" email\n\n\t\t\t\t\t\t\t$this->_send_email('welcome', $data['email'], $data);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tunset($data['password']); // Clear password (just for any case)\n\t\t\t$this->session->set_flashdata('message', lang('auth_message_registration_completed_2'));\n\t\t\t\t\t\tredirect('/auth/login');\n\t\t\t\t\t\t//$this->_show_message($this->lang->line('auth_message_registration_completed_2').' '.anchor('/auth/login/', 'Login'));\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t$errors = $this->tank_auth->get_error_message();\n\t\t\t\t\tforeach ($errors as $k => $v)\t$data['errors'][$k] = $this->lang->line($v);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($captcha_registration == 'TRUE') {\n\t\t\t\tif ($use_recaptcha) {\n\t\t\t\t\t$data['recaptcha_html'] = $this->_create_recaptcha();\n\t\t\t\t} else {\n\t\t\t\t\t$data['captcha_html'] = $this->_create_captcha();\n\t\t\t\t}\n\t\t\t}\n\t\t\t$data['use_username'] = $use_username;\n\t\t\t$data['captcha_registration'] = $captcha_registration;\n\t\t\t$data['use_recaptcha'] = $use_recaptcha;\n\t$this->load->module('layouts');\n\t$this->load->library('template');\n\t$this->template->title('Register - '.config_item('company_name'));\n\t$this->template\n\t->set_layout('login')\n\t->build('auth/register_form',isset($data) ? $data : NULL);\n\n\t\t}\n\t}", "public function passwordChange($observer)\n{\n\n $settings = Mage::helper('smsnotifications/data')->getSettings();\n $customer = $observer->getEvent()->getCustomer();\n $fname=$customer->getFirstname();\n $lname=$customer->getLastname();\n $email= $customer->getEmail();\n $telephone= $customer->getAddressesCollection()->getFirstitem()->getTelephone();\n if ($telephone) {\n $text = Mage::getStoreConfig('smsnotifications/customer_notification/change_password');\n $text = str_replace('{{firstname}}', $fname, $text);\n $text = str_replace('{{lastname}}', $lname, $text);\n $text = str_replace('{{emailid}}', $email, $text);\n // $text = str_replace('{{name}}', $customer_name, $text);\n }\n array_push($settings['order_noficication_recipients'], $telephone);\n $result = Mage::helper('smsnotifications/data')->sendSms($text, $settings['order_noficication_recipients']);\n return $this;\n}", "public function onUserSignUp($event) \n {\n $event->user->notify(new NotifyUser($event->user, 'signup'));\n }", "function registerUser($username, $firstname, $lastname, $email, $password) {\n\tglobal $connection;\n\n\t$username = escape($_POST['username']);\n\t$firstname = escape($_POST['firstname']);\n\t$lastname = escape($_POST['lastname']);\n\t$email = escape($_POST['email']);\n\t$password = escape($_POST['password']);\n\n\t$password = password_hash($password, PASSWORD_BCRYPT, array('cost' => 12));\n\n\t$query = \"INSERT INTO users (username, user_firstname, user_lastname, user_email, user_password, user_role) \";\n\t$query .= \"VALUES('{$username}', '{$firstname}', '{$lastname}', '{$email}', '{$password}', 'subscriber' )\";\n\t$register_user = mysqli_query($connection, $query);\n\tconfirm($register_user);\n\n}", "protected function _registerPaymentSuccess()\n {\n $payment = $this->_order->getPayment();\n $payment->setTransactionId($this->getRequestData('transaction_id'))\n ->setPreparedMessage($this->_createNotifyComment(''))\n ->registerCaptureNotification($this->getRequestData('paid'));\n $this->_order->save();\n\n // notify customer\n $invoice = $payment->getCreatedInvoice();\n if ($invoice && !$this->_order->getEmailSent()) {\n $this->_order->sendNewOrderEmail()->addStatusHistoryComment(\n Mage::helper('payssion')->__('Notified customer about invoice #%s.', $invoice->getIncrementId())\n )\n ->setIsCustomerNotified(true)\n ->save();\n }\n }", "public function sendAccountActivationEmail(User $user, Token $token): void;", "public function handleRegistration()\n {\n $user = $this->repository->signup(\\Input::all());\n\n if ($user->id) {\n if (\\Config::get('confide::signup_email')) {\n \\Mail::queueOn(\n \\Config::get('confide::email_queue'),\n \\Config::get('confide::email_account_confirmation'),\n compact('user'),\n function ($message) use ($user) {\n $message\n ->to($user->email, $user->username)\n ->subject(\\Lang::get('confide::confide.email.account_confirmation.subject'));\n }\n );\n }\n \\Notification::success(\n \\Notification::message(\\Lang::get('users::app.user.registered'))->flash()\n );\n\n return \\Redirect::route('app.session.login');\n\n } else {\n $errors = $user->errors()->all(':message');\n\n if (is_array($errors) && $errors) {\n foreach ($errors as $error) {\n \\Notification::error(\n \\Notification::message(\\Lang::get($error))->flash()\n );\n }\n } else {\n \\Notification::error(\n \\Notification::message(\\Lang::get('users::app.registration.failed'))->flash()\n );\n }\n\n\n return \\Redirect::route('app.session.register');\n }\n }", "function confirmEmail($hashcode){\n if($this->setting_model->verifyEmail($hashcode)){\n $this->session->set_flashdata('msg', '<div class=\"alert alert-success text-center\">Email address is confirmed. Please login to the system</div>');\n redirect('login');\n }else{\n $this->session->set_flashdata('msg', '<div class=\"alert alert-danger text-center\">Email address is not confirmed. Please contact Londontec City Campus Admin.</div>');\n redirect('login');\n }\n\t}", "public function registr($email, $password, $confirmPassword){ \n if(empty($email)){ \n $this->message = [\"error\", \"Missing email\"];\n }\n elseif(!filter_var($email, FILTER_VALIDATE_EMAIL)){\n $this->message = [\"error\", \"Email is not valid\"];\n }\n elseif(empty($password)){ \n $this->message = [\"error\", \"Missing password\"];\n }\n elseif(empty($confirmPassword)){\n $this->message = [\"error\", \"Missing confirm password\"];\n }\n elseif ($password != $confirmPassword) { \n $this->message = [\"error\", \"Passwords do not match\"];\n } else { \n $result = dibi::query('SELECT COUNT(*)\n FROM [user]\n WHERE [email] = %s', $email, 'LIMIT 1');\n $userExist = $result->fetchSingle();\n if ($userExist){ \n $this->message = [\"error\", \"User already exists\"];\n } \n else { \n //password_hash, PASSWORD_BCRYPT = BLOWFISH\n $options = [\n 'salt' => mcrypt_create_iv(22, MCRYPT_DEV_URANDOM),\n 'cost' => 12\n ];\n $password_result = password_hash($password, PASSWORD_BCRYPT, $options);\n \n $arr = [\n 'email' => $email,\n 'password' => $password_result \n ];\n dibi::query('INSERT INTO [user]', $arr); \n $this->__setSession($email);\n mkdir(\"files/\".$email, 0700);\n parent::redirection(\"app.php?page=showrecord\");\n } \n }\n }", "public function getConfirm($token)\n\t{\n\t\tUser::whereToken($token)->firstOrFail()->confirmEmail();\n\n\t\t\\Session::flash('success.message', \"Thank You. Your email is confirmed.\");\n\n\t\treturn redirect('user/settings');\n\t}", "public function registration($user){\n\t\tmt_srand((float) microtime()*1000000);\n\t\t$code = mt_rand(1000000000, 9999999999);\n\t\t\n\t\t// note : si le formulaire est validé, on assume que le tableau user est bien initalisé\t\t\t\t\n\t\t$user['code'] = $code;\n\t\t$password = $user['password'];\n\t\t$user['password'] = md5($user['password']);\n\t\t\n\t\t$this->userDAO->register_user($user);\n\t\t\t\t\t\t\n\t\t//on envoi un mail de registration\t\t\t\t\t\t\t\t\t\t\n\t\tEmail::registerConfirmMail($user['email'],$user['login'],$password,$code);\n }", "private function signupWithActivation($model, $user,$password)\n {\n if ($model->sendAccountActivationEmail($user,$password))\n {\n\n Yii::$app->session->setFlash('success',\n // Yii::t('app', 'Hello').' '.Html::encode($user->username). '. ' .\n Yii::t('app', 'Thank you for register with us! Login details with an activation link has been sent to your mail id to activate your account.'));\n }\n // email could not be sent\n else\n {\n // display error message to user\n Yii::$app->session->setFlash('error',\n Yii::t('app', 'We couldn\\'t send you account activation email, please contact us.'));\n\n // log this error, so we can debug possible problem easier.\n Yii::error('Signup failed!\n User '.Html::encode($user->username).' could not sign up.\n Possible causes: verification email could not be sent.');\n }\n }", "public function postRegister(Request $request)\r\n {\r\n $this->validate($request, $this->validateCreating());\r\n\r\n $user = $this->create($request->all());\r\n if (config('taki.confirm_after_created')) {\r\n $token = app('auth.password.tokens')->createNewToken();\r\n $user->is_activated = 0;\r\n $user->token = $token;\r\n $user->save();\r\n Mail::queue(config('taki.emails.activate'), compact('token', 'user'), function ($m) use ($user, $token) {\r\n $m->subject(config('taki.emails.activate_subject'));\r\n $m->to($user->getEmailForPasswordReset());\r\n });\r\n } else {\r\n Auth::login($user);\r\n }\r\n\r\n if (method_exists($this, 'userRegistered')) {\r\n $this->userRegistered($request, $user);\r\n }\r\n\r\n\r\n return redirect($this->getPostRegisterRedirectPath());\r\n }", "public function registershop(RegisterRequest $request)\n {\n $emailVerificationRequired = config('settings.mail.email_verification') == 1 && $request->filled('email');\n $phoneVerificationRequired = config('settings.sms.phone_verification') == 1 && $request->filled('phone');\n\n // New User\n $user = new User();\n $input = $request->only($user->getFillable());\n foreach ($input as $key => $value) {\n $user->{$key} = $value;\n }\n\n $user->country_code = config('country.code');\n $user->language_code = config('app.locale');\n $user->password = Hash::make($request->input('password'));\n $user->phone_hidden = $request->input('phone_hidden');\n $user->user_type_id = $request->input('company');\n $user->ip_addr = Ip::get();\n $user->ip_addr = Ip::get();\n $user->verified_email = 1;\n $user->verified_phone = 1;\n\n // Email verification key generation\n if ($emailVerificationRequired) {\n $user->email_token = md5(microtime() . mt_rand());\n $user->verified_email = 0;\n }\n\n // Mobile activation key generation\n if ($phoneVerificationRequired) {\n $user->phone_token = mt_rand(100000, 999999);\n $user->verified_phone = 0;\n }\n\n // Save\n $user->save();\n\n // Message Notification & Redirection\n $request->session()->flash('message', t(\"Your account has been created.\"));\n $nextUrl = config('app.locale') . '/register/finish';\n\n // Send Admin Notification Email\n if (config('settings.mail.admin_notification') == 1) {\n try {\n // Get all admin users\n $admins = User::permission(Permission::getStaffPermissions())->get();\n if ($admins->count() > 0) {\n Notification::send($admins, new UserNotification($user));\n /*\n foreach ($admins as $admin) {\n Notification::route('mail', $admin->email)->notify(new UserNotification($user));\n }\n */\n }\n } catch (\\Exception $e) {\n flash($e->getMessage())->error();\n }\n }\n\n // Send Verification Link or Code\n if ($emailVerificationRequired || $phoneVerificationRequired) {\n\n // Save the Next URL before verification\n session(['userNextUrl' => $nextUrl]);\n\n // Email\n if ($emailVerificationRequired) {\n // Send Verification Link by Email\n $this->sendVerificationEmail($user);\n\n // Show the Re-send link\n $this->showReSendVerificationEmailLink($user, 'user');\n }\n\n // Phone\n if ($phoneVerificationRequired) {\n // Send Verification Code by SMS\n $this->sendVerificationSms($user);\n\n // Show the Re-send link\n $this->showReSendVerificationSmsLink($user, 'user');\n\n // Go to Phone Number verification\n $nextUrl = config('app.locale') . '/verify/user/phone/';\n }\n\n // Send Confirmation Email or SMS,\n // When User clicks on the Verification Link or enters the Verification Code.\n // Done in the \"app/Observers/UserObserver.php\" file.\n\n }\n else\n {\n\n // Send Confirmation Email or SMS\n if (config('settings.mail.confirmation') == 1) {\n try {\n $user->notify(new UserActivated($user));\n } catch (\\Exception $e) {\n flash($e->getMessage())->error();\n }\n }\n\n // Redirect to the user area If Email or Phone verification is not required\n if (Auth::loginUsingId($user->id)) {\n return redirect()->intended(config('app.locale') . '/account');\n }\n\n }\n\n // Redirection\n $success['token'] = $user->createToken('theqqaPassport')->accessToken;\n $success['name'] = $user->name;\n return response()->json([\n 'status' => 'success',\n 'data' => $success,\n ]);\n }", "public function postCreateUser(){\n\n if (Admin::isAdmin(Helper::userId())) {\n $email = Input::get('email');\n $password = Input::get('password');\n $password_confirm = Input::get('password_confirm');\n\n\n if (\n isset($email) && $email != \"\" &&\n isset($password) && $password != \"\" &&\n isset($password_confirm) && $password_confirm != \"\"\n ) {\n\n if ($password != $password_confirm) {\n return json_encode(['error' => \"Passwords do not match.\"]);\n }\n\n if(User::where('email', '=', $email)->first()){\n return json_encode(['error' => \"Email already exists.\"]);\n }\n\n\n $user = [\n 'email' => $email,\n 'password' => Hash::make($password),\n 'gcm_token' => '',\n ];\n\n User::insert($user);\n Helper::dbLogger('AdminController', 'user', 'insert', 'postCreateUser', User::email(Helper::userId()), 'email:' . $email);\n\n try {\n Notifier::sendConfirmationEmail($email);\n return json_encode(['success' => 1]);\n } catch (Exception $e) {\n return json_encode([\n 'success' => 1\n ]);\n }\n }\n else {\n return json_encode(['error' => \"There are missing parameters.\"]);\n }\n }\n else {\n return json_encode(array('status' => 0, 'message' => 'You are not allowed to access this function.'));\n }\n\n }", "public function registerActivate($token)\n\t{\n\n\t $user = User::where('activation_token', $token)->first();\n\t if (!$user) {\n\t return response()->json([\n\t 'message' => 'This activation token is invalid.'\n\t ], 404);\n\t }\n\t $user->active = true;\n\t $user->activation_token = '';\n\t $user->save();\n\n\t return redirect('https://superwallet.herokuapp.com/verification');\n\n\t}", "public function sendConfirmationEmailMessage(UserInterface $user): void;", "public function complete_supplier_registration($uid,$password)\n\t{\n\t\t$query=\"select ud.*,sd.* from `\".parent::SUFFIX.\"user_details` ud left join `\".parent::SUFFIX.\"supplier_details` sd on ud.user_id=sd.user_id where ud.user_type='S' and ud.user_status='Active' and ud.user_id='\".$uid.\"'\";\t\t\n\t\t$resultpassword= mysql_query($query);\n\t\t$resultfetchquery=mysql_fetch_object($resultpassword);\n\t\t$user_id=base64_encode($uid);\n\t\t//$link=\"<a href='\".AbstractDB::SITE_PATH.\"user_verification.php?user_id=\".$user_id.\"'>Clcik here</a>\";\n\t\t$this->automailCls->send_automail_user('complete_supplier_registration',\n\t\tarray('first_name'=>$resultfetchquery->first_name,\n\t\t\t'last_name'=>$resultfetchquery->last_name,\n\t\t\t'contact_name'=>$resultfetchquery->contact_name,\n\t\t\t'email'=>$resultfetchquery->email,\n\t\t\t'username'=>$resultfetchquery->username,\n\t\t\t'password'=>$password),\n\t\t\tarray($resultfetchquery->email));\n\t}", "public function customerRegisterSuccess($observer)\n{\n\n $settings = Mage::helper('smsnotifications/data')->getSettings();\n $customer = $observer->getEvent()->getCustomer();\n $fname=$customer->getFirstname();\n $lname=$customer->getLastname();\n $email= $customer->getEmail();\n\n $telephone= $customer->getAddressesCollection()->getFirstitem()->getTelephone();\n\n if ($telephone) {\n $text =$settings['customer_notification_message'];\n $text = str_replace('{{firstname}}', $fname, $text);\n $text = str_replace('{{lastname}}', $lname, $text);\n $text = str_replace('{{emailid}}', $email, $text);\n }\n \n array_push($settings['order_noficication_recipients'], $telephone);\n $result = Mage::helper('smsnotifications/data')->sendSms($text, $settings['order_noficication_recipients']);\n return;\n}", "function studnetconfirmEmail($hashcode){\n if($this->setting_model->studentverifyEmail($hashcode)){\n $this->session->set_flashdata('msg', '<div class=\"alert alert-success text-center\">Email address is confirmed. Please login to the system</div>');\n redirect('student_login');\n }else{\n $this->session->set_flashdata('msg', '<div class=\"alert alert-danger text-center\">Email address is not confirmed. Please contact Londontec City Campus Admin.</div>');\n redirect('student_login');\n }\n\t}", "public function confirmRegistration($token, Request $request)\n {\n $unconfirmedUsers = User::notConfirmed()->get();\n\n foreach($unconfirmedUsers as $user){\n if($user->token == $token)\n {\n $user->confirmed = true;\n $user->token = null;\n $user->save();\n Auth::guard($this->getGuard())->login($user);\n\n return redirect($this->firstRedirectTo);\n }\n }\n\n return redirect('/');\n }", "public function newUser () {\n if (!empty($_POST)) {\n $this->checkSignIn();\n\n if (empty($_SESSION['errors'])) {\n $date = date('Y-m-d');\n $bytes = openssl_random_pseudo_bytes(20);\n $this->registration_token = UtilsClass::generator(10);\n $sql = \"INSERT INTO users (avatar,\n cover,\n birthdate,\n email,\n nickname,\n location,\n password,\n creation_date,\n registration_token,\n activated,\n phone,\n username)\n VALUES (:avatar,\n :cover,\n :birthdate,\n :email,\n :nickname,\n :location,\n :password,\n :creation_date,\n :registration_token,\n 0,\n :phone,\n :username)\";\n $query = $this->bdd->prepare($sql);\n $query->bindParam(':avatar', $this->avatar);\n $query->bindParam(':cover', $this->cover);\n $query->bindParam(':birthdate', $this->birthdate);\n $query->bindParam(':email', $this->email);\n $query->bindParam(':nickname', $this->nickname, PDO::PARAM_STR);\n $query->bindParam(':location', $this->location, PDO::PARAM_STR);\n $query->bindParam(':password', $this->password, PDO::PARAM_STR);\n $query->bindParam(':creation_date', $date);\n $query->bindParam(':registration_token', $this->registration_token, PDO::PARAM_STR);\n $query->bindParam(':phone', $this->phone, PDO::PARAM_STR);\n $query->bindParam(':username', $this->username, PDO::PARAM_STR);\n $query->execute();\n $id = $this->bdd->lastInsertId();\n ThemeClass::create($id);\n\n $message = \"<!DOCTYPE html>\n <html>\n <head>\n <title>Mail confirmation TwittaWac</title>\n </head>\n <body>\n <p>Bonjour, voici le lien d'activation pour votre compte TweetaWac : </p>\n <a href='http://\".$_SERVER['HTTP_HOST'].URL.\"/users/validation.php?token=$this->registration_token&email=\".$this->email.\"'>Activer votre compte</a>\n </body>\n </html>\";\n UtilsClass::sendMail($this->email, $message);\n }\n }\n }", "protected function activation_email(Request $request) {\n $activationToken = $request->get('activation_token');\n if($request->get('password') == $request->get('password_confirmation')) {\n $userPassword = bcrypt($request->get('password'));\n }\n\n /* Validation Rules */\n $ValidationRules = [\n 'activation_token' => 'required|min:24|max:26',\n 'password' => 'required|min:8|max:30|regex:/^(?=.*[a-z])(?=.*[A-Z])(?=.*\\d).+$/|confirmed'\n ];\n\n /* Error Messages */\n $ErrorMessages = [\n 'password.min' => 'Please enter a valid password',\n 'password.regex' => 'Please enter a secure password - contains an upper case letter, a lower case letter, a digit and a special character',\n 'password.confirmed' => 'Passwords are not matching'\n ];\n\n /* Validation */\n $this->validate($request, $ValidationRules, $ErrorMessages);\n\n $userCount = DB::table('users')->where([['verification_token', $activationToken], ['verified', 'false']])->count();\n if($userCount > 0) {\n\n /* Querying the user table by passing Email verification token */\n $user = DB::table('users')->where([['verification_token', $activationToken], ['verified', 'false']])->first();\n\n /* Updating Status of Verification */\n DB::table('users')->where('verification_token', $activationToken)->update(['password'=>$userPassword,'verified'=> true]);\n\n /**\n * Sending welcome email to the user\n * @author Tittu Varghese (tittu@servntire.com)\n *\n * @param array | $user\n */\n\n $emailVariables_UserName = $user->first_name;\n $emailVariables_SubTitle = \"Welcome to Bytacoin!\";\n $emailVariables_MainTitle = \"Get Started with Bytacoin\";\n $emailVariables_EmailText = \"Thank you for completing registration with us. We are happy to serve for you and click below button to login to your dashboard and checkout our awesome offerings.\";\n $emailVariables_ButtonLink = \"https://bytacoin.telrpay.com/\";\n $emailVariables_ButtonText = \"GET STARTED\";\n\n $emailTemplate = new EmailTemplates($emailVariables_UserName,$emailVariables_SubTitle,$emailVariables_MainTitle,$emailVariables_EmailText,$emailVariables_ButtonLink,$emailVariables_ButtonText);\n\n $emailContent = $emailTemplate->GenerateEmailTemplate();\n $mail = new Email(true,$emailContent);\n $mail->addAddress($user->email,$user->first_name);\n $mail->Subject = 'Welcome to Bytacoin!';\n $mail->send();\n\n return redirect('login')->with('success', 'Your account has been activated. Please login to access dashboard.');\n\n } else {\n return redirect('login')->with('error', 'Looks like the activation link is expired or not valid.');\n }\n }", "public function postRegistrationConfirmation(postRegistrationConfirmation $request,$hash)\n {\n //get data\n $code = $request->input('code');\n //update from db\n $registrationRequest = $this->requestRepository->confirmRegistration($hash);\n if (!$registrationRequest) {\n return $this->redirect\n ->route('auth.get_registration');\n }\n //set session\n $this->session->set('__registration_request_id', $registrationRequest->id);\n //output\n return $this->redirect\n ->route('auth.get_registration_final', ['hash' => $hash]);\n }", "public function newRegistration() {\n $this->registerModel->getUserRegistrationInput();\n $this->registerView->setUsernameValue($this->registerView->getUsername());\n $this->registerModel->validateRegisterInputIfSubmitted();\n if ($this->registerModel->isValidationOk()) {\n $this->registerModel->hashPassword();\n $this->registerModel->saveUserToDatabase();\n $this->loginView->setUsernameValue($this->registerView->getUsername());\n $this->loginView->setLoginMessage(\"Registered new user.\");\n $this->layoutView->render(false, $this->loginView);\n } else {\n $this->layoutView->render(false, $this->registerView);\n }\n \n }", "public function sendConfirmation( ){\n\t\t$data = Request::only(['email']);\n\t\t$email = $data['email'];\n\t\t$token = str_random(30);\n\t\t$domain = substr(strrchr($email, \"@\"), 1);\n\n\t\tif( in_array( $domain, explode( ',', env('ACCEPTABLE_EMAIL_DOMAINS') ) ) ){\n\t\t\ttry {\n\t\t\t\t// Check if student exists already\n\t\t\t\tUser::where('email', $email)->firstOrFail();\n\n\t\t\t} catch (ModelNotFoundException $e) {\n\t\t\t\t// Send email verification if they are\n\t\t\t\tMail::send('emails.verification_code', ['email' => $email, 'confirmation_code' => $token], function ($m) use($email) {\n\t\t $m->from('admin@'.env('USER_DOMAIN'), env('SITE_TITLE') );\n\n\t\t $m->to($email)->subject('Verify Your Email For '.env('SITE_TITLE'));\n\t\t });\n\n\t\t VerificationCode::create([\n\t\t \t'email' => $email,\n\t\t \t'confirmation_code' => $token\n\t\t ]);\n\n\t\t return View::make('emails.thank_you');\n\t\t\t}\n\t\t} else{\n\t\t\treturn Redirect::back()->withErrors(['That email is not on our approved list of student emails']);\n\t\t}\n\t}", "private function sendConfirmationMail() {\n\t\t\t\t$subject = 'Confirmation Mail';\n\t\t\t\t$from = 'mohammedshoib@momeen.com';\n\t\t\t\t$replyTo = 'no-reply@momeen.com';\n\t\t\t\t\n\t\t\t\t//include some fancy stuff here, token is md5 of email\n\t\t\t\t$message = \"<a href='http://www.momeen.com/eCommerce/register/confirmUser.php?token=$this->token'> Confirm</a>\";\n\n\t\t\t\t$headers = \"From: \".\"$from\".\"\\r\\n\";\n\t\t\t\t$headers .= \"Reply-To: \".\"$replyTo\".\"\\r\\n\";\n\t\t\t\t$headers .= \"MIME-Version:1.0\\r\\n\";\n\t\t\t\t$headers .= \"Content-Type:text/html; charset=ISO-8859-1\\r\\n\";\n\t\t\t\tif(!mail($this->email, $subject, $message, $headers)) {\n\t\t\t\t\t$this->response['status'] = 0;\n\t\t\t\t\t$this->response['message'] = 'Confirmation mail did not sent. Contact admin';\n\t\t\t\t}\n\t\t\t}", "protected function updateConfirmString()\n {\n $confirmString = $this->createConfirmString();\n $this->getSubscriber()->setConfirmstring($confirmString);\n\n $this->getRepository()->persist($this->getSubscriber());\n }", "public function succeeded(RegistrationPostSuccessEvent $event): void\n {\n }" ]
[ "0.7287198", "0.6778617", "0.6683177", "0.6617858", "0.65666336", "0.6493096", "0.64821607", "0.64651227", "0.64589316", "0.6447523", "0.6439053", "0.63581145", "0.6276923", "0.62643945", "0.62418467", "0.6215683", "0.620263", "0.61945486", "0.61901003", "0.61698943", "0.61636466", "0.6161756", "0.6160559", "0.6148999", "0.61338556", "0.6133082", "0.6126584", "0.6121147", "0.6110487", "0.6098964", "0.60740906", "0.6073235", "0.6065691", "0.606447", "0.6063208", "0.6058942", "0.60480654", "0.60426027", "0.6026843", "0.6023404", "0.60168403", "0.6013292", "0.59932125", "0.59903115", "0.5988552", "0.59855187", "0.5971882", "0.5971708", "0.5968772", "0.59674376", "0.5963051", "0.59588534", "0.5958446", "0.59568584", "0.5951224", "0.59471995", "0.59420353", "0.5939949", "0.5938668", "0.5938668", "0.5936988", "0.59339476", "0.5930059", "0.5929683", "0.59243214", "0.5921313", "0.59189224", "0.59164304", "0.5907821", "0.59069544", "0.5901783", "0.5901092", "0.5894267", "0.58926785", "0.58881557", "0.58738136", "0.58699775", "0.5869319", "0.5868847", "0.5862861", "0.58534276", "0.5852736", "0.5851459", "0.58410394", "0.5840597", "0.5834691", "0.5831468", "0.5831152", "0.5815669", "0.5808799", "0.58087283", "0.5803273", "0.5799827", "0.5795717", "0.5795088", "0.57946116", "0.57745826", "0.57737255", "0.5773125", "0.5767393" ]
0.79506135
0
onRegistrationSuccess User is generated and stored in database Generate and send SMS with confirmation code to user
public function onRegistrationSuccess($event) { $url = $this->container->get('router')->generate('ukm_user_registration_check_sms'); $event->setResponse(new RedirectResponse($url)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function actionRegister()\n {\n if (isset($this->request['mobile'])) {\n $mobile = $this->request['mobile'];\n $user = Users::model()->find('username = :mobile', [':mobile' => $mobile]);\n\n $code = Controller::generateRandomInt();\n if (!$user) {\n $user = new Users();\n $user->username = $mobile;\n $user->password = $mobile;\n $user->status = Users::STATUS_PENDING;\n $user->mobile = $mobile;\n }\n\n $user->verification_token = $code;\n if ($user->save()) {\n $userDetails = UserDetails::model()->findByAttributes(['user_id' => $user->id]);\n $userDetails->credit = SiteSetting::getOption('base_credit');\n $userDetails->save();\n }\n\n Notify::SendSms(\"کد فعال سازی شما در آچارچی:\\n\" . $code, $mobile);\n\n $this->_sendResponse(200, CJSON::encode(['status' => true]));\n } else\n $this->_sendResponse(400, CJSON::encode(['status' => false, 'message' => 'Mobile variable is required.']));\n }", "function register()\n {\n $saveData = null;\n // result is an array data if save data to db success, else it is false\n $saveData = $this->model->khachhang->registerCustomerAccount();\n // if save data success, send mail to user\n if ($saveData != false) {\n $linkVerify = baseUrl('user/verify/') . $saveData['activation'];\n $title = \"Verification Link | MobileShop| Subscription\";\n $content = \"\";\n $content .= \"Xin chào \" . $saveData['username'] . \",<br /><br />\";\n $content .= \"Vui lòng kích vào nút bên dưới để xác nhận tài khoản của bạn trên website \" . BASE_URL . \".<br />\";\n $content .= \"<span style='background-color:#07c;margin-top:15px;width: 115px;height: 40px;display:block;border-radius: 40px;cursor: pointer;'>\n <span style='display:block;padding:10px;cursor: pointer;'>\n <a href='{$linkVerify}' target='_blank' style='color:white;'>\n VERIFY EMAIL\n </a>\n </span>\n </span>\";\n $nTo = $saveData['username'];\n $mTo = $saveData['email'];\n $diachicc = \"\";\n $mailSuccess = sendMail($title, $content, $nTo, $mTo, $diachicc);\n if ($mailSuccess) {\n redirect('user/success');\n } else {\n redirect('user/fail');\n }\n } else {\n redirect('user/fail');\n }\n\n }", "public function newUser () {\n if (!empty($_POST)) {\n $this->checkSignIn();\n\n if (empty($_SESSION['errors'])) {\n $date = date('Y-m-d');\n $bytes = openssl_random_pseudo_bytes(20);\n $this->registration_token = UtilsClass::generator(10);\n $sql = \"INSERT INTO users (avatar,\n cover,\n birthdate,\n email,\n nickname,\n location,\n password,\n creation_date,\n registration_token,\n activated,\n phone,\n username)\n VALUES (:avatar,\n :cover,\n :birthdate,\n :email,\n :nickname,\n :location,\n :password,\n :creation_date,\n :registration_token,\n 0,\n :phone,\n :username)\";\n $query = $this->bdd->prepare($sql);\n $query->bindParam(':avatar', $this->avatar);\n $query->bindParam(':cover', $this->cover);\n $query->bindParam(':birthdate', $this->birthdate);\n $query->bindParam(':email', $this->email);\n $query->bindParam(':nickname', $this->nickname, PDO::PARAM_STR);\n $query->bindParam(':location', $this->location, PDO::PARAM_STR);\n $query->bindParam(':password', $this->password, PDO::PARAM_STR);\n $query->bindParam(':creation_date', $date);\n $query->bindParam(':registration_token', $this->registration_token, PDO::PARAM_STR);\n $query->bindParam(':phone', $this->phone, PDO::PARAM_STR);\n $query->bindParam(':username', $this->username, PDO::PARAM_STR);\n $query->execute();\n $id = $this->bdd->lastInsertId();\n ThemeClass::create($id);\n\n $message = \"<!DOCTYPE html>\n <html>\n <head>\n <title>Mail confirmation TwittaWac</title>\n </head>\n <body>\n <p>Bonjour, voici le lien d'activation pour votre compte TweetaWac : </p>\n <a href='http://\".$_SERVER['HTTP_HOST'].URL.\"/users/validation.php?token=$this->registration_token&email=\".$this->email.\"'>Activer votre compte</a>\n </body>\n </html>\";\n UtilsClass::sendMail($this->email, $message);\n }\n }\n }", "public function onRegistrationConfirm(GetResponseUserEvent $event) {\n\t\trequire_once('UKM/inc/password.inc.php');\n\t\t\n\t\t$tokenGenerator = $this->container->get('fos_user.util.token_generator');\n\t\t$password = UKM_ordpass(true); // true gives numbers before words\n\t\t$event->getUser()->setPlainPassword( $password );\n\n \t\t$text = $this->container->getParameter('ukmdelta.sms.password.created');\n\t\t\n\t\t$UKMSMS = $this->container->get('ukmsms');\n try {\n\t $UKMSMS->sendSMS( $event->getUser()->getPhone(), str_replace('#code', $password, $text) );\n\t } catch( Exception $e ) {\n\t\t $this->container->get('session')->getFlashBag()->add('error', 'Kunne ikke sende engangskode på SMS ('.$e->getMessage().')');\n\t }\n\n\t}", "public function registration($user){\n\t\tmt_srand((float) microtime()*1000000);\n\t\t$code = mt_rand(1000000000, 9999999999);\n\t\t\n\t\t// note : si le formulaire est validé, on assume que le tableau user est bien initalisé\t\t\t\t\n\t\t$user['code'] = $code;\n\t\t$password = $user['password'];\n\t\t$user['password'] = md5($user['password']);\n\t\t\n\t\t$this->userDAO->register_user($user);\n\t\t\t\t\t\t\n\t\t//on envoi un mail de registration\t\t\t\t\t\t\t\t\t\t\n\t\tEmail::registerConfirmMail($user['email'],$user['login'],$password,$code);\n }", "public function confirmRegistration() {\n $this->form_validation->set_rules('email', 'Email', 'required');\n $this->form_validation->set_rules('temp_code', 'Temporärer Code', 'required');\n\n if ($this->form_validation->run() === FALSE) {\n \t$this->error(400, 'Validation error');\n }\n \n $this->loadUser();\n \n if ($this->user_model->getValue('temp_code') != $this->input->post('temp_code')) {\n \tlog_message('error', 'db: ' . $this->user_model->getValue('temp_code') . ' provided: ' . $this->input->post('temp_code'));\n \t$this->error(404, 'Verification error');\n }\n \n if ($this->user_model->getValue('temp_code_valid_until') < date('Y-m-d H:i:s')) {\n \t$this->error(408, 'Code timed out');\n }\n \n // if the email is confirmed, we don't care for correct or valid code\n if ($this->user_model->getValue('confirmed') == 1) {\n\t\t\t$data['confirmed'] = 'confirmed';\n\t\t\t$this->response($data);\n }\n \n $this->user_model->setValue('confirmed', 1);\n if (! $this->user_model->updateConfirmed()) {\n \t$this->error(400, 'Confirmation error');\n }\n \n $data['confirmed'] = 'confirmed';\n $this->response($data);\n }", "public function register(Request $request)\n {\n $input = $request->all();\n // trim phone number\n // if($input['phone_number'] != '') {\n // $input['phone_number'] = $input['country_code'].preg_replace('/[\\-\\s]/','',$input['phone_number']);\n // }\n\n $validator = $this->validator($input);\n\n if($validator->passes()) {\n $data = $this->create($input)->toArray();\n\n $data['confirmation_token'] = str_random(40);\n $data['confirmation_code'] = $this->generateCode();\n $user = User::find($data['id']);\n $user->confirmation_token = $data['confirmation_token'];\n $user->confirmation_code = $data['confirmation_code'];\n $user->save();\n\n // TODO: send sms\n\n if( env('EMAIL_VERIFICATION') ) {\n Mail::send('mails.confirmation', $data, function($message) use($data) {\n $message->to($data['email']);\n $message->subject('Email Verification');\n });\n }\n // IDEA: Login user after register\n $data['user'] = User::info()\n ->where('id', $user->id)\n ->first();\n $data['access_token'] = $user->createToken('THE GRID')->accessToken;\n\n return response()->json($data);\n\n // if( env('SMS') ) {\n // $sms = $this->sendSMS($user->phone_number, $data['confirmation_code']);\n // } else {\n // $sms = true;\n // }\n // if( $sms ) {\n // // return response()->json(['message' => 'A confirmation code will be send to the mobile number provided', 'user' => $user], 200)->withCookie(Cookie::make('user', $user, 30));\n // return response()->json(['message' => 'A confirmation code will be sent to your email', 'user' => $user]);\n // // return response()->json(['message' => 'A confirmation link will be send to the email address provided', 'user' => $user], 200);\n // } else {\n // return response()->json(['message' => 'Sorry! Something went wrong while sending SMS'], 500);\n // }\n }\n return response()->json($validator->errors(), 422);\n }", "function userRegistration($data){\n\t\t$response\t= array();\n\t\t$requiredData['email'] = @trim($data->email);\n\t\t$requiredData['user_name'] = @trim($data->user_name);\n\t\t$requiredData['password'] = $this->setPassword(@trim($data->password));\n\n\t\tforeach($requiredData AS $key=>$val){\n\t\t\tif(trim($val) == ''){\n\t\t\t\t$response['status']\t= 'Error';\n\t\t\t\t$response['message'] = 'Please Specify '.ucwords(str_replace(\"_\",\" \",$key));\t\t\t\t\n\t\t\t\treturn $response;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif($this->checkUserByUserName(addslashes($requiredData['user_name']))){\n\t\t\t\t$response['status']\t= 'Error';\n\t\t\t\t$response['message'] = 'User already exists with this user name '. $requiredData['user_name'];\t\t\t\t\n\t\t\t\treturn $response;\n\t\t}\n\t\t\n\t\tif($this->checkUserByEmail(addslashes($requiredData['email']))){\n\t\t\t\t$response['status']\t= 'Error';\n\t\t\t\t$response['message'] = 'User already exists with this email '.$requiredData['email'];\t\t\t\t\n\t\t\t\treturn $response;\n\t\t}\n\t\t\n\t\t\n\t\t\t$query\t= \"INSERT INTO `users` (`email`, `user_name`, `password`, `auth_code`, `user_type`, `logtime`) VALUES ('\".$requiredData['email'].\"', '\".$requiredData['user_name'].\"', '\".$requiredData['password'].\"', '\".@trim($data->password).\"', '1', '\".date('Y-m-d H:i:s').\"')\";\n\t\t\t$this->query($query);\n\t\t\n\t\t\t\t\n\t\t\n\t\t$user_id = $this->lastInsertedId();\t\t\n\t\t/*$to = $requiredData['email'];\n\t\t$subject = \"TrackMyHeritage account \";\t\t\n\t\t$tokan = $this->setPassword($requiredData['user_name'].\"#/#\".$user_id);\n\t\t$message = \"Dear \".$requiredData['user_name'].\",<br><br>\n\t\t\t\t\tThanks for registered with TrackMyHeritage!<br>\n\t\t\t\t\tYour account has been created successfully. Your login credentials are given below:<br>\n\t\t\t\t\t<b>User Name - \".$requiredData['user_name'].\" <br>\n\t\t\t\t\tPassword - \".@trim($data->password).\" <br><br></b>\n\t\t\t\t\tIf you didn't sign up to TrackMyHeritage, please discard this e-mail and we won't e-mail you again.<br><br>\n\t\t\t\t\tWith Regards<br>\n\t\t\t\t\tTeam Support\";\n\t\t$this->sendMail($message,$to,$subject,$from=CONTACT_EMAIL);*/\n\t\t$response['status']\t= 'Success';\n\t\t$response['message'] = 'User registered successfully';\n\t\t$response['user_id'] = $user_id;\t\t\n\t\t$response['user_name'] = $requiredData['user_name'];\t\t\n\t\t$response['user_type'] = 1;\t\t\n\t\treturn $response;\n\t}", "public function postCreateUser(){\n\n if (Admin::isAdmin(Helper::userId())) {\n $email = Input::get('email');\n $password = Input::get('password');\n $password_confirm = Input::get('password_confirm');\n\n\n if (\n isset($email) && $email != \"\" &&\n isset($password) && $password != \"\" &&\n isset($password_confirm) && $password_confirm != \"\"\n ) {\n\n if ($password != $password_confirm) {\n return json_encode(['error' => \"Passwords do not match.\"]);\n }\n\n if(User::where('email', '=', $email)->first()){\n return json_encode(['error' => \"Email already exists.\"]);\n }\n\n\n $user = [\n 'email' => $email,\n 'password' => Hash::make($password),\n 'gcm_token' => '',\n ];\n\n User::insert($user);\n Helper::dbLogger('AdminController', 'user', 'insert', 'postCreateUser', User::email(Helper::userId()), 'email:' . $email);\n\n try {\n Notifier::sendConfirmationEmail($email);\n return json_encode(['success' => 1]);\n } catch (Exception $e) {\n return json_encode([\n 'success' => 1\n ]);\n }\n }\n else {\n return json_encode(['error' => \"There are missing parameters.\"]);\n }\n }\n else {\n return json_encode(array('status' => 0, 'message' => 'You are not allowed to access this function.'));\n }\n\n }", "public function customer_signup($edata) {\n\t\t\t\t$details = email_template_detail(\"customerregister\");\n\t\t\t\t//$smsdetails = sms_template_detail(\"supplierregister\");\n\n\t\t\t\t$message = $this->mailHeader;\n\t\t\t\t$message .= $details[0]->temp_body;\n\t\t\t\t$message .= $this->mailFooter;\n\n\t\t\t\t//sendsms($smsdetails[0]->temp_body, $edata['phone'], \"supplierregister\");\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($edata['email']);\n\t\t\t\t$this->email->subject($details[0]->temp_subject);\n\t\t\t\t$this->email->message($message);\n\t\t\t\t$this->email->send();\n\t\t}", "public function send_sms_verification_code()\n\t{\n\t\t$user_id = Input::get('userId');\n\t\t$phone_number = Input::get('phoneNumber');\n\n\t\t// check if a verify record already exists\n\t\t$verify_record = $this->notifyRepo->smsVerificationCodeByUserId($user_id);\n\n\t\t// create the code, save it, send to user\n\t\t$verify_record = $this->notifyRepo->smsSendVerifyCode($user_id, $phone_number, $verify_record);\n\n\t\t$result = Twilio::message('+'.$phone_number, 'EriePaJobs - Your verification code is '.$verify_record->verification_code);\n\t}", "public function register_user() {\n $this -> load -> library('form_validation');\n $this -> load -> helper('send_email');\n\n $this -> form_validation -> set_error_delimiters('<p>', '</p>');\n $this -> form_validation -> set_rules('user_firstname', 'nombre', \"required|trim\");\n $this -> form_validation -> set_rules('user_lastname', 'apellido', \"required|trim\");\n $this -> form_validation -> set_rules('user_email', 'email', \"required|trim|valid_email\");\n $this -> form_validation -> set_rules('user_email2', 'confirmar email', \"required|trim|valid_email|matches[user_email]\");\n $this -> form_validation -> set_rules('user_password', 'contraseña', (!$this -> input -> post('user_id') ? 'required|' : '') . \"trim|min_length[4]\");\n\n $query = $this -> basic -> get_where('users', array('user_email' => $this -> input -> post('user_email')));\n\n if ($query -> num_rows() > 0) {\n $response['html'] = 'El email ya existe';\n $response['error'] = '1';\n echo json_encode($response);\n return false;\n }\n\n if ($this -> form_validation -> run() == TRUE) {\n if (trim($this -> input -> post('user_password')) == '')\n unset($_POST['user_password']);\n unset($_POST['user_password2']);\n unset($_POST['user_email2']);\n if (!$this -> input -> post('user_id'))\n $_POST['user_created'] = date('Y-m-d G:i:s');\n $data = $this -> basic -> save('users', 'user_id', $this -> input -> post());\n\n $msg = \"<h2>Bienvendio xxx\t\" . $this -> input -> post('user_firstname') . \"!</h2>\";\n $msg .= \"Gracias por registrarte en <br/><br/>\";\n $msg .= \"Recuerda tu clave de acceso para que puedas siempre entrar y ver tu perfil, en el que podrás hacer seguimiento a tus compras y envios. <br/><br/>\";\n $msg .= \"Un saludo, <br/><br/>\";\n $msg .= \"El equipo de xxx <br/><br/>\";\n\n $contact_send = array('to' => $this -> input -> post('user_email'), 'subject' => 'Bienvendio - Courrier Box', 'message' => $msg);\n\n $html = 'Se ha guardado el usuario exitosamente';\n\n send_email($contact_send, $html);\n\n } else {\n $response['html'] = validation_errors();\n $response['error'] = '1';\n echo json_encode($response);\n }\n }", "public function registerUser() {\n\t\t\t\t//check for email id existence\n\t\t\t\t$userExistence = $this->checkUserExistence();\n\t\t\t\tif(!$userExistence) {\n\t\t\t\t\t$this->response['status'] = 0;\n\t\t\t\t\t$this->response['message'] = 'Email id already exists. Please try different email id!';\n\t\t\t\t\treturn false;\t\t\t\t\t\n\t\t\t\t}\n\n\t\t\t\t$sql = \"insert into register(name, email, password, orig_password, address, mobile, landline, logo, photo, licence_aggrement,token, create_time) \";\n\t\t\t\t$sql .= \" values('$this->name', '$this->email', '$this->crypPwd', '$this->password', '$this->addr', '$this->mobile', '$this->landline', '$this->logoPath', '$this->photoPath', $this->licence, '$this->token', NOW())\";\n\t\t\t\t\n\t\t\t\t//store it in db now\n\t\t\t\t$result = returnQueryResult($sql);\n\t\t\t\tif($result == false) {\n\t\t\t\t\t$this->response['status'] = 0;\n\t\t\t\t\t$this->response['message'] = 'Sorry! Something went wrong. Try Again';\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\t//create user directory\n\t\t\t\t$dir = \"../registered_users/$this->email\";\n\t\t\t\tmkdir($dir, 0777, true);\n\t\t\t\tchmod($dir, 0777);\n\n\t\t\t\t//now move files to user directory\n\t\t\t\tmove_uploaded_file($this->logo['tmp_name'], $this->logoPath); //logo\n\t\t\t\tmove_uploaded_file($this->yourPhoto['tmp_name'], $this->photoPath); //your photo\n\n\t\t\t\t//now send confirmation mail to user\n\t\t\t\t$this->sendConfirmationMail();\n\t\t\t}", "function registerUser( $data ){\n $utm_medium = isset($_COOKIE['utm_medium']) ? $_COOKIE['utm_medium']: $this->session->userdata('utm_medium');\n $utm_source = isset($_COOKIE['utm_source']) ? $_COOKIE['utm_source']: $this->session->userdata('utm_source');\n $reference = $this->session->userdata('reference');\n $password = addslashes( $data['password'] );\n $email = addslashes( trim(strtolower($data['email'])) );\n $username = addslashes( trim(strtolower($data['username'])) );\n\n $phone = 0919111001;\n if(isset($data['phone'])){\n $phone = addslashes( $data['phone'] );\n if(substr($phone,0,2) == '84') $phone = substr_replace($phone,'0',0,2);\n if(substr($phone,0,3) == '084') $phone = substr_replace($phone,'0',0,3);\n }\n /*Ban IP*/\n if( ban_ip() ){\n $this->retval['msg'] = 'Địa chỉ IP trên máy của bạn đã bị ban, vui lòng liên hệ admin !';\n return json_encode($this->retval); exit(); \n }\n \n if($this->validateUser($username)){\n $this->retval['msg'] = $this->validateUser($username);\n return json_encode($this->retval);\n }\n if($this->validateEmail($email)){\n $this->retval['msg'] = $this->validateEmail($email);\n return json_encode($this->retval);\n }\n if($this->validatePassword($password)){\n $this->retval['msg'] = $this->validatePassword($password );\n return json_encode($this->retval);\n }\n if($phone && !$this->validateNumberic($phone)){\n $this->retval['msg'] = \"Định dạng số điện thoại không chính xác\";\n return json_encode($this->retval);\n }\n $salt = $this->createSalt();\n $dataIns = array(\n 'username' => $username,\n 'salt' => $salt,\n 'password' => $this->createPassword($password, $salt),\n 'email' => strtolower($email),\n 'registerip' => getIP(),\n 'utm_source' => $utm_source,\n 'utm_medium' => $utm_medium,\n 'utm_campaign' => date('Y_m'),\n 'referer' => strtolower($reference),\n 'regdate' => time(),\n 'created' => date( 'Y-m-d H:i:s')\n );\n if($this->db->insert(PREFIX.$this->table, $dataIns)){\n $uid = $this->db->insert_id();\n \n if (0){\n $dt_in = array('username' => $username, 'count' => '10', 'created' => date(\"Y-m-d H:i:s\", time()));\n $this->db->insert(\"cli_lathinh_user\", $dt_in);\n }\n\n \n //add bua cho event dap trung\n if(0){\n $check_con = modules::run('daptrung_config/check_event');\n if( $check_con ){ //chua den thoi diem thi van cho add bua\n $dt_bua = array('user_id'=>$uid,'username' => $username, 'count' => 10, 'message'=>'Add 10 búa tài khoản đăng ký lần đầu','created' => date(\"Y-m-d H:i:s\", time()));\n $this->db->insert(PREFIX.'daptrung_count',$dt_bua);\n }\n }\n\n $data_profile = array(\n 'uid' => $uid,\n 'phone' => $phone,\n );\n $this->db->insert('cli_user_profiles', $data_profile);\n // CALL FUNCTION SEND MAIL\n \n // $this->sendEmailGiftCode($uid, $username, $email);\n\n if($this->session->userdata('redirect')) $this->retval['redirect'] = $this->session->userdata('redirect');\n else $this->retval['redirect'] = \"\";\n $this->retval['status'] = 1;\n $this->retval['msg'] = 'Đăng ký thành công';\n $this->session->set_userdata('username',$username);\n $this->session->set_userdata('uid',$uid);\n $this->session->set_userdata('first_login',1);\n return json_encode($this->retval);\n }\n }", "public function onRegistrationInitialize(GetResponseUserEvent $event)\n {\n\t\t$user = $event->getUser();\n\t\t\n\t\t$tokenGenerator = $this->container->get('fos_user.util.token_generator');\n\t\t$password = substr($tokenGenerator->generateToken(), 0, 8); // 8 chars\t\t\n\t\t$password = '1234';\n\t\t\n\t\t$smscode = (int) ( rand(10,99).''.rand(10,99) ); #.''.rand(10,99) );\n\t\t\n\t\t$user->setPlainPassword( $password );\n\t\t$user->setSmsValidationCode( $smscode );\n }", "public function store()\n\t{\t\n\t\t$validator = $this->_registrar->validator($this->_request->all());\n\t\tif($validator->passes())\n\t\t{\n\t\t\t$this->_user = $this->_registrar->create($this->_request->all());\n\t\t\tif($this->_user->id)\n\t\t\t{\n\t\t\t\t$token = str_random(20);\n\t\t\t\tMail::send('emails.activation', ['token' => $token], function($message)\n\t\t\t\t{\n\t\t\t\t $message->to($this->_user->email, $this->_user->firstname.\" \".$this->_user->lastname)->subject('Activate your account !');\n\t\t\t\t});\t\n\t\t\t\treturn response(DB::update('update users set activation_token = ? where id = ?', [$token, $this->_user->id]));\n\t\t\t}\n\t\t}\n\t\treturn response(0);\n\t}", "public function generate() {\n\n /** @var $code String generate code */\n\n $code = (new Users())->phoneNumber_GenerateCode();\n\n /** @var $user Array get the details of a current user */\n\n $user = (new Users())->current_user();\n\n /**\n * @var $phone_format String format mobile phone number\n * to non space and non special character format\n */\n\n $phone_format = preg_replace(\"/[\\W\\s]/m\",\"\",$user['CP']);\n\n /** @var $template String a message to send **/\n\n $template = \"From SCOA, use this code to verify your account '{$code}' \";\n\n /** @void send sms and notify the current user */\n\n sms::send($phone_format,$template);\n\n }", "public function resendCode($phone)\n\t{\t\n\t\t$user = new User();\n\t\t$user->phone = $phone;\n\t\t$user->phone_token = mt_rand(100000, 999999);\n\n\t\t$querry = \"UPDATE \". DBTool::rawTable('users') . \" SET phone_token = '\" . $user->phone_token . \"', verified_phone = 0 WHERE phone = '\" . $phone . \"'\";\n\t\t$updated = DB::update(DB::raw($querry));\n\t\t$updated = ArrayHelper::fromObject($updated);\n\n\t\t// Send Verification Code by SMS\n\t\t// $this->sendVerificationCode($user);\n\n\t\tif(!(NotifyController::SendNotification(\n\t\t\t\t['1' => 'NOFIFY_SMS'],\n\t\t\t\t['phone' => \"$phone\",\n\t\t\t\t'message'=>\"$this->message $user->phone_token\",\n\t\t\t\t'verify' => 1]\n\t\t))){\n\t\t\treturn redirect()->back();\n\t\t}\n\t\t$data = [];\n\t\t\n\t\t// References\n\t\t$data['countries'] = CountryLocalizationHelper::transAll(CountryLocalization::getCountries());\n\t\t$data['genders'] = Gender::trans()->get();\n\t\t$data['phone'] = $phone;\n\t\t// Meta Tags\n\t\tMetaTag::set('title', getMetaTag('title', 'register'));\n\t\tMetaTag::set('description', strip_tags(getMetaTag('description', 'register')));\n\t\tMetaTag::set('keywords', getMetaTag('keywords', 'register'));\n\t\t\n\t\treturn view('auth.register.indexSecond', $data);\n\t}", "public function user_register() {\r\n// $captcha_text = $this->simple_captcha->get_captcha_text('captcha');\r\n//// \r\n// if ($captcha_input == $captcha_text) {\r\n\r\n $data = $this->input->post(NULL);\r\n $chars = \"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789\";\r\n $data['user_id'] = substr(str_shuffle($chars), 0, 12);\r\n $data['date_of_reg'] = date('d-m-Y h:i:s');\r\n $data['password'] = md5($this->input->post('password', TRUE));\r\n// if ($_FILES['govt_proof']['name'] != '') {\r\n// $data['govt_proof'] = $this->upload_file('govt_proof');\r\n// }\r\n $data['status'] = \"Pending\";\r\n $this->cms_model->insert_data('users', $data);\r\n\r\n $name = $this->input->post('name', TRUE);\r\n $email = $this->input->post('email', TRUE);\r\n $mobile = $this->input->post('mobile', TRUE);\r\n $password = $this->input->post('password', TRUE);\r\n// $amount = $this->input->post('amount', TRUE);\r\n// $bank_draftno = $this->input->post('bank_draftno', TRUE);\r\n// $date = $this->input->post('date', TRUE);\r\n\r\n $to_mail = $this->data[\"contact\"]->cemail;\r\n $from_email = $this->data[\"contact\"]->from_email;\r\n $site = $this->data[\"site\"]->tittle;\r\n\r\n $message = \"\r\n Hi,\\r\\n\r\n Name : $name \\r\\n\r\n Email : $email \\r\\n\r\n Number : $mobile\\r\\n\";\r\n// Rs. : $amount \\r\\n\r\n// Bank Draft. No. : $bank_draftno \\r\\n\r\n// Date : $date \\r\\n\r\n //echo $message;exit;\r\n $this->load->library('email');\r\n $this->email->from($from_email);\r\n $this->email->to($to_mail);\r\n $this->email->subject($subject);\r\n $this->email->message($message);\r\n\r\n $email_from = $from_email;\r\n $headers = \"MIME-Version: 1.0\" . \"\\r\\n\";\r\n $headers .= \"Content-type:text/html;charset=iso-8859-1\" . \"\\r\\n\";\r\n $headers .= 'From: ' . $email_from . \"\\r\\n\";\r\n $headers .= 'Reply-To: ' . $email_from . \"\\r\\n\";\r\n $mail = mail($to_mail, $site, $message, $headers);\r\n\r\n //$send = $this->email->send();\r\n if ($mail) {\r\n $this->session->set_flashdata('msg', 'Succesfully sent your request');\r\n redirect('index');\r\n } else {\r\n $this->session->set_flashdata('err', 'Your request cannot sent please try again');\r\n redirect('index');\r\n }\r\n// } else {\r\n// $this->session->set_flashdata('error', 'You have entered wrong captcha');\r\n// redirect('join_us');\r\n// }\r\n }", "function createUser($f_name, $l_name, $email, $username, $passsword, $profilePicture, $birthday, $phonenumber, $education, $location, $skill, $notes)\n{\n global $db, $BASE_URL;\n $command = \"INSERT INTO `user_accounts`(`firstname`, `lastname`, `email`, `username`, `password`, `confirmStatus`, `activationCode`,profilePicture,Birthday,phoneNumber,Education,Location,Skill,Notes)\n VALUES (?, ?, ?, ?, ?, ?, ?,?,?,?,null,null,null,null)\";\n $hashPass = password_hash($passsword, PASSWORD_DEFAULT);\n $activationCode = generateCode(16);\n $stmt = $db->prepare($command);\n $stmt->execute(array($f_name, $l_name, $email, $username, $hashPass, 0, $activationCode, $profilePicture, $birthday, $phonenumber));\n $newAccount = $db->lastInsertId();\n // Send mail\n // die();\n sendMail(\n $email,\n $l_name,\n 'Confirm email',\n \"Your activation code is:\n <a href=\\\"$BASE_URL/confirmEmail.php?activationCode=$activationCode\\\">$BASE_URL/confirmEmail.php?activationCode=$activationCode</a>\"\n );\n return $newAccount;\n}", "public function p_signup() \n {\n $_POST = DB::instance(DB_NAME)->sanitize($_POST);\n $q = 'SELECT user_id\n FROM users \n WHERE email = \"'.$_POST['email'].'\"';\n $user_id = DB::instance(DB_NAME)->select_field($q);\n if ($user_id!=NULL)\n {\n $error=\"User account already exists.\";\n $this->template->content = View::instance('v_users_signup');\n $this->template->content->error=$error;\n echo $this->template;\n }\n else\n {\n\t\t\n //Inserting the user into the database\n\t\t\t$_POST['created']=Time::now();\n\t\t\t$_POST['modified']=Time::now();\n\t\t\t$_POST['password']=sha1(PASSWORD_SALT.$_POST['password']);\n\t\t\t$_POST['token']=sha1(TOKEN_SALT.$_POST['email'].Utils::generate_random_string());\n\t\t\t$_POST['activation_key']=str_shuffle($_POST['password'].$POST['token']);\n\t\t\t$activation_link=\"http://\".$_SERVER['SERVER_NAME'].\"/users/p_activate/\".$_POST['activation_key'];\n\t\t\t$name=$_POST['first_name'];\n\t\t\t$name.=\" \";\n\t\t\t$name.=$_POST['last_name'];\n\t\t\t$user_id = DB::instance(DB_NAME)->insert('users', $_POST);\n\t\t\t\n\t\t//Sending the confirmation mail\n\t\t\t$to[]=Array(\"name\"=>$name, \"email\"=>$_POST['email']);\n\t\t\t$subject=\"Confirmation letter\";\n\t\t\t$from=Array(\"name\"=>APP_NAME, \"email\"=>APP_EMAIL); \n $body = View::instance('signup_email');\n $body->name=$name;\n $body->activation_link=$activation_link;\n\n\n\t\t\t$email = Email::send($to, $from, $subject, $body, false, $cc, $bcc);\n\t\t\t\n\t\t\tRouter::redirect('/');\n } \n }", "public function register() {\n\n // If it is not a valid password\n if (!$this->valid_password()) {\n return \"Invalid Password. It must be six characters\";\n }\n\n // If the mobile is valid\n if (!$this->valid_mobile()) {\n return \"Mobile Number is Invalid. It must be 10 numeric digits\";\n }\n\n // If there is a user with that username\n if (User::find($this->username, 'username') !== null) {\n return \"Username already taken\";\n }\n\n // Now we create the user on the database\n if ($this->create_record()) {\n echo \"<br><br>Record Created\";\n // We update the sync the object with the database\n if ($this->update_object('username')) {\n return true;\n echo \"<br><br>Object Updated\";\n }\n }\n\n return \"Sorry, an error has ocurred. Try again later\";\n }", "function sendNewUser($userData, $code)\n {\n $this->getCountryCode($userData->country_id);\n $template = 'USR001';\n $username = \"$userData->first_name $userData->last_name\";\n $replace = ['[UserName]', '[UserActivationCode]'];\n $with = [$username, $code];\n $to = $this->countryCode . (int) $userData->mobile_no;\n parent::sendSms($to, $replace, $with, $template);\n }", "public function registerNewUser()\n\t{\n\t\t$Request= new Request();\n\t\t\n\t\t$Controler_Main= Controler_Main::getInstance();\n\t\t$ErrorString=\"\";\n\t\tif(strlen($Request->getAsString(\"tb_Name\"))<3){$ErrorString.=\":T_REGISTER_ERROR1: <br />\";}\n\t\tif(strlen($Request->getAsString(\"tb_Pass\"))<5){$ErrorString.=\":T_REGISTER_ERROR2: <br />\";}\n\t\tif(strlen($Request->getAsString(\"tb_Pass\"))===$Request->getAsString(\"tb_PassConfirme\")){$ErrorString.=\":T_REGISTER_ERROR3:<br />\";}\n\t\t$UserFinder= new UserFinder();\n\t\tif(strlen($Request->getAsString(\"tb_Mail\"))>3)\n\t\t{\n\t\t\t$User=$UserFinder->findByMail($Request->getAsString(\"tb_Mail\"));\n\t\t\tif($User->getId()!=0)\n\t\t\t{\n\t\t\t\t$ErrorString.=\":T_REGISTER_ERROR4: <br />\";\n\t\t\t}\n\t\t}else\n\t\t{\n\t\t\t$ErrorString.=\":T_REGISTER_ERROR5: <br />\";\n\t\t}\t\n\t\tif(strlen($Request->getAsString(\"tb_Mail\"))===$Request->getAsString(\"tb_MailConfirme\")){$ErrorString.=\":T_REGISTER_ERROR6:<br />\";}\n\t\tif(strlen($Request->getAsString(\"tb_Name\")))\n\t\t{\n\t\t\t$User=$UserFinder->findByName($Request->getAsString(\"tb_Name\"));\n\t\t\tif($User->getId()!=0){$ErrorString.=\":T_REGISTER_ERROR7: <br />\";}\n\t\t}\n\t\t\n\t\t\n\t\tif(!$this->isMailCorrect($Request->getAsString(\"tb_Mail\")))\n\t\t{\n\t\t\t$ErrorString.=\":T_REGISTER_ERROR8: <br />\";\n\t\t}\t\n\t\t\n\t\tif(strtolower($_SESSION['Captcha'])!=(strtolower($Request->getAsString(\"tb_Captcha\"))))\n\t\t{\n\t\t\t$ErrorString.=\":T_REGISTER_ERROR9: <br />\";\n\t\t}\n\t\t\t\n\t\tif(strlen($ErrorString)!=0)\n\t\t{\n\t\t\t$this->showRegister($ErrorString);\n\t\t\t$this->setCaptchaCode();\n\t\t\treturn false;\n\t\t}\n\t\t$User= new User(0,$Request->getAsString(\"tb_Name\"),md5($Request->getAsString(\"tb_Pass\")),$Request->getAsString(\"tb_Mail\"),0,1,0,0);\t\n\t\t$UserManager= new UserManager();\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t// user Ordner anlegen\n\t\t\n\t\t// htaccess zugriff legen\n\t\tif(!is_dir(STORE_FOLDER.\"/\".md5($User->getName())))\n\t\t{\n\t\t\tmkdir(STORE_FOLDER.\"/\".md5($User->getName()), 0777);// ordner erstellen\n\t\t\t$User->setFolder(STORE_FOLDER.\"/\".md5($User->getName()));\n\t\t}else\n\t\t{\n\t\t\t$Folder=STORE_FOLDER.\"/\".md5($User->getName()+mktime());\n\t\t\tmkdir($Folder, 0777);\n\t\t\t$User->setFolder($Folder);\n\t\t}\n\t\t\n\t\t$User->setSpaceMax(MAXSPACE);\n\t\t//var_dump(\"und den UserFinder eintragen\");\n\t\t$UserManager->insertUser($User);// user in die db eintragen\n\t\tif(!$UserManager->getLastInsertId())\n\t\t{\n\t\t\t$this->showRegister($ErrorString);\n\t\t\treturn false;\n\t\t}\n\t\t$User->setId($UserManager->getLastInsertId());\n\t\t$this->userLogin();\n\t\t\n\n\t}", "protected function register() {\n\n\t\tif (request('code')) {\n\n\t\t\tif (request('code') == session('user_data')['code']) {\n\n\t\t\t\t$user = User::create([\n\t\t\t\t\t'name' => session('user_data')['name'],\n\t\t\t\t\t'email' => session('user_data')['email'],\n\t\t\t\t\t'phone' => session('user_data')['phone'],\n\t\t\t\t\t'password' => bcrypt(session('user_data')['password']),\n\t\t\t\t]);\n\n\t\t\t\tsession()->forget('user_data');\n\t\t\t\tauth()->login($user);\n\t\t\t\treturn redirect('/')->with('success', trans('user.register_complate'));\n\n\t\t\t} else {\n\t\t\t\tsession()->flash('error', trans('user.invalid_code'));\n\t\t\t\treturn view('auth.code_verfiy');\n\t\t\t}\n\n\t\t} else {\n\n\t\t\t$data = request()->all();\n\t\t\t$data['code'] = rand(1000, 9999); //generate random code\n\n\t\t\t$mobily = new Mobily();\n\n\t\t\t$mobily->send(request('sender_phone'), 'Your code is : ' . $data['code']);\n\n\t\t\tif ($mobily) {\n\t\t\t\tsession(['user_data' => $data]);\n\t\t\t\treturn view('booking.code_verfiy')->with('userdata', session('user_data'));\n\t\t\t} else {\n\t\t\t\treturn $mobily;\n\t\t\t}\n\t\t\t/*\n\t\t\t\tNexmo::message()->send([\n\t\t\t\t\t'type' => 'unicode',\n\t\t\t\t\t'to' => request('phone'),\n\t\t\t\t\t'from' => 'hisham',\n\t\t\t\t\t'text' => 'Your code is : ' . $data['code'],\n\t\t\t*/\n\n\t\t\tsession(['user_data' => $data]);\n\t\t\treturn view('auth.code_verfiy')->with('userdata', session('user_data'));\n\n\t\t}\n\n\t}", "public function actionRegistration() {\n\n $first_name = Yii::$app->request->post('first_name');\n $last_name = Yii::$app->request->post('last_name');\n $code = Yii::$app->request->post('code');\n $sample_code = Yii::$app->request->post('sample_code');\n $collector_code = Yii::$app->request->post('collector_code');\n $user = new User();\n $result = $user->registration($first_name,$last_name,$code,$sample_code, $collector_code);\n if(array_key_exists('error',$result))\n throw new \\yii\\web\\HttpException(400, 'Error occurred:'. json_encode($result['error']));\n return $result;\n }", "function register(){\r\n //FullName\r\n $fullName = $this->safety($_REQUEST['reg_fullName']);\r\n \t$_SESSION['reg_fullName'] = $fullName;\r\n //Email\r\n \t$email = $this->safety($_REQUEST['reg_email']);\r\n \tif (! filter_var($email, FILTER_VALIDATE_EMAIL) ){\r\n \t\t$errors[] = \"Invalid email format\";\r\n \t}\r\n \telseif( $this->emailExists($email) ) {\r\n \t\t\t$errors[] = \"Email already in use\";\r\n \t}\r\n \t$_SESSION['reg_email'] = $email; //Stores email into session variable\r\n \t//Password\r\n \t$password = $_REQUEST['reg_password'];\r\n //Fav. Quote\r\n \t$quote = $this->safety($_REQUEST['reg_quote']);\r\n //Current date\r\n \t$date = date(\"Y-m-d\");\r\n //Validate name\r\n \tif(strlen($fullName) > 100 || strlen($fullName) < 2) {\r\n \t\t$errors[] = \"Your name must be between 2 and 100 characters\";\r\n \t}\r\n //Validate password\r\n \tif (strlen($password) < 6) {\r\n \t $errors[] = \"Password is too short!\";\r\n \t}\r\n \t/* Check Password Strength */\r\n /* More about regular expressions https://www.w3schools.com/php/php_regex.asp */\r\n \tif (!preg_match(\"#[0-9]+#\", $password)) {\r\n \t $errors[] = \"Password must include at least one number!\";\r\n \t}\r\n \tif (!preg_match(\"#[a-zA-Z]+#\", $password)) {\r\n \t $errors[] = \"Password must include at least one letter!\";\r\n \t}\r\n // only proceed if there are no errors.\r\n \tif(empty($errors)) {\r\n //Encrypt before sending to database\r\n $password = password_hash($password, PASSWORD_DEFAULT);\r\n \t\t//Assign a random profile picture\r\n \t\t$number = rand(1, 16); //Random number between 1 and 16\r\n \t\t$avatar = 'assets/avatars/'.$number.'.png';\r\n \t\t// prepare data to be inserted\r\n $data = [\r\n 'fullName' => $fullName,\r\n 'email' => $email,\r\n 'password' => $password,\r\n 'quote' => $quote,\r\n 'signup_date' => $date,\r\n 'avatar' => $avatar\r\n ];\r\n // wrap structure with `backticks` and content with regular \"quotemarks\"\r\n $columns = '`'.implode('`,`',array_keys($data)).'`';\r\n $values = '\"'.implode('\",\"', $data).'\"';\r\n $sql = \"INSERT INTO `users` ($columns) VALUES ($values) \";\r\n if ( $this->q($sql) ){\r\n // redirect if registration was successful.\r\n header('Location: '.site_root.'?login_form&reg_success='.$email);\r\n \t\t}\r\n \t\telse{\t$errors[] = \"Something went wrong: \".$this->ixd->error; }\r\n \t}\r\n return $errors;\r\n }", "public function signUp()\n\t{\n\t\tif($this->session->userdata('VB_USER_ID') <> ''):\n\t\t\tredirect(base_url().'my-profile');\n\t\tendif;\n\t\tif($this->input->post('FormType') == 'registrationForm'):\n\t\t\tif(($this->input->post('user_email') <> \"\") && ($this->input->post('mobile_number') <> \"\") && ($this->input->post('password') <> \"\")):\n\t\t\t\t$user_name \t\t=\tstripslashes($this->input->post('user_name'));\n\t\t\t\t$user_email \t=\ttrim($this->input->post('user_email'));\n\t\t\t\t$mobile_number \t=\ttrim($this->input->post('mobile_number'));\n\t\t\t\t$password \t\t=\tstripslashes($this->input->post('password'));\n\t\t\t\t\n\t\t\t\t$existData \t\t=\t$this->common_model->getAllData('vb_users','mobile_number',$mobile_number);\n\t\t\t\tif($existData == ''):\n\t\t\t\t\t$existEmail \t\t=\t$this->common_model->getAllData('vb_users','user_email',$user_email);\n\t\t\t\t\tif($existEmail == ''):\n\t\t\t\t\t\t$param['full_name'] \t\t=\tstripslashes($this->input->post('full_name'));\n\t\t\t\t\t\t$param['user_email'] \t\t=\tstripslashes($this->input->post('user_email'));\n\t\t\t\t\t\t$param['mobile_number'] \t=\ttrim($this->input->post('mobile_number'));\n\t\t\t\t\t\t$param['password'] \t\t\t=\t$this->common_model->encriptPassword($this->input->post('password'));\n\t\t\t\t\t\t$param['user_phone_otp']\t=\t4321;/*(int)generateRandomString(4,n);*/\n\t\t\t\t\t\t$param['user_phone_verify']\t=\t'N';\n\t\t\t\t\t\t\n\t\t\t\t\t\t$param['creation_ip']\t\t=\tcurrentIp();\n\t\t\t\t\t\t$param['creation_date']\t\t=\tcurrentDateTime();\n\t\t\t\t\t\t$param['status']\t\t\t=\t'I';\n\t\t\t\t\t\t$lastInsertId = $this->common_model->addData('users',$param);\t\t\t\t\t\t\t\n\t\t\t\t\t\t$Uparam['user_id']\t\t\t=\tgenerateUniqueId($lastInsertId);\n\t\t\t\t\t\t$Uwhere['id']\t\t\t\t=\t$lastInsertId;\n\t\t\t\t\t\t$this->common_model->editDataByMultipleCondition('users',$Uparam,$Uwhere);\n\t\t\t\t\t\t \n\t\t\t\t\t\t$this->session->set_userdata('VB_REGISTER_MOBILE',$param['mobile_number']);\n\t\t\t\t\t\techo 'success';die;\n\t\t\t\t\telse:\n\t\t\t\t\t\techo \"invalidemail\";die;\n\t\t\t\t\tendif;\n\t\t\t\telse:\n\t\t\t\t\techo \"invalidphone\";die;\n\t\t\t\tendif;\n\t\t\telse:\n\t\t\t\techo \"wentWrong\";die;\n\t\t\tendif;\n\t\tendif;\n\t\t\n\t\t$this->layouts->set_title(stripcslashes('Sign Up | VBloggers'));\n\t\t$this->layouts->set_keyword(stripcslashes('Sign Up | VBloggers'));\n\t\t$this->layouts->set_description(stripcslashes('Sign Up | VBloggers'));\n\t\t\n\t\t$this->layouts->login_view('user/signup',array(),$data);\n\t}", "public function create()\n\t{\n\t\t$check_email = \" SELECT * FROM admin WHERE \";\n\t\t$check_email .= \" (email = '\".$this->email.\"') \";\n\t\t$check_email_query = mysqli_query($this->plug, $check_email);\n\t\tif(!$check_email_query)\n\t\t{\n\t\t\techo 'Error checking email query <br />'.mysqli_error($this->plug);\n\t\t}elseif (mysqli_num_rows($check_email_query)) {\n\t\t\t# code...\n\t\t\techo ' <b>'.$this->email.'</b> already exits !';\n\t\t}else{\n\t\t\t# check if phone number already exits\n\t\t\t$check_phone = \" SELECT * FROM admin WHERE \";\n\t\t\t$check_phone .= \" (phone = '\".$this->phone.\"') \";\n\t\t\t$check_phone_query = mysqli_query($this->plug, $check_phone);\n\t\t\tif(!$check_phone_query)\n\t\t\t{\n\t\t\t\techo 'Error running phone check query <br />'.mysqli_error($this->plug);\n\t\t\t}elseif (mysqli_num_rows($check_phone_query)) {\n\t\t\t\t# code...\n\t\t\t\techo ' <b>'.$this->phone.'</b> already exits !';\n\t\t\t}else{\n\t\t\t\t# sign up user \n\t\t\t\t$add_user = \" INSERT INTO admin \";\n\t\t\t\t$add_user .= \" (username, email, password, phone, date ) \";\n\t\t\t\t$add_user .= \" VALUES('\".$this->username.\"', '\".$this->email.\"', \";\n\t\t\t\t$add_user .= \" '\".$this->password.\"', '\".$this->phone.\"', '\".$this->date.\"') \";\n\t\t\t\t$add_user_query = mysqli_query($this->plug, $add_user);\n\t\t\t\tif(!$add_user_query)\n\t\t\t\t{\n\t\t\t\t\techo 'Error running add user query <br />'.mysqli_error($this->plug);\n\t\t\t\t}elseif(mysqli_affected_rows($this->plug))\n\t\t\t\t{\n\t\t\t\t\techo ' Thanks for signing up. <br />';\n\t\t\t\t\techo ' Activation code has been sent! ';\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "function registerUser()\n {\n $DBA = new DatabaseInterface();\n $fields = array(0 => 'title', 1 => 'first_name', 2 => 'last_name', 3 => 'contacttelephone', 4 => 'contactemail', 5 => 'password', 6 => 'username', 7 => 'dob', 8 => 'house', 9 => 'street', 10 => 'town', 11 => 'county', 12 => 'pcode', 13 => 'optout', 14 => 'newsletter', 15 => 'auth_level', 16 => 'store_owner');\n $fieldvals = array(0 => $this->Title, 1 => $this->FirstName, 2 => $this->LastName, 3 => $this->ContactTelephone, 4 => $this->ContactEmail, 5 => $this->Password, 6 => $this->Username, 7 => $this->DOB, 8 => $this->House, 9 => $this->Street, 10 => $this->Town, 11 => $this->County, 12 => $this->PCode, 13 => $this->Optout, 14 => $this->NewsletterSubscriber, 15 => $this->AuthLevel, 16 => 1);\n $rs = $DBA->insertQuery(DBUSERTABLE, $fields, $fieldvals);\n if ($rs == 1)\n {\n $this->RegistrationSuccess = 1;\n }\n if (isset($this->PCode))\n {\n $this->geoLocate();\n }\n }", "public function registration ($data){\n $this->Email->from(array($this->noreply => $this->team));\n $this->Email->to($data['email']);\n $this->Email->emailFormat('both');\n $this->Email->subject('One more Step required to complete your Registration at '.$this->web.'!');\n $this->Email->template('reg_user');\n $this->Email->viewVars(array('viewData' => $data));\n return $this->Email->send();\n }", "public function store()\n\t{\n\t\t$input = array_add(Input::get(), 'userId', Auth::id());\n\t\t$this->condoRegistrationValidation->validate( Input::all() );\n\t\t$this->execute(CondoRegisterCommand::class, $input);\n\t\treturn $this->sendJsonMessage('success',200);\n\t}", "public function register()\n {\n if ($this->getIsNewRecord() == false) {\n throw new \\RuntimeException('Calling \"' . __CLASS__ . '::' . __METHOD__ . '\" on existing user');\n }\n\n if ($this->module->enableConfirmation == false) {\n $this->confirmed_at = time();\n }\n\n if ($this->module->enableGeneratingPassword) {\n $this->password = Password::generate(8);\n }\n\n $this->trigger(self::USER_REGISTER_INIT);\n\n if ($this->save(false)) {\n Yii::getLogger()->log($this->getErrors(), Logger::LEVEL_INFO);\n $this->trigger(self::USER_REGISTER_DONE);\n if ($this->module->enableConfirmation) {\n $token = \\Yii::createObject([\n 'class' => \\dektrium\\user\\models\\Token::className(),\n 'type' => \\dektrium\\user\\models\\Token::TYPE_CONFIRMATION,\n ]);\n $token->link('user', $this);\n $this->mailer->sendConfirmationMessage($this, $token);\n } else {\n \\Yii::$app->user->login($this);\n }\n if ($this->module->enableGeneratingPassword) {\n $this->mailer->sendWelcomeMessage($this);\n }\n \\Yii::$app->session->setFlash('info', $this->getFlashMessage());\n \\Yii::getLogger()->log('User has been registered', Logger::LEVEL_INFO);\n return true;\n }\n\n \\Yii::getLogger()->log('An error occurred while registering user account', Logger::LEVEL_ERROR);\n\n return false;\n }", "public function store(Request $request){\n $rules =[\n 'u_name' => 'required',\n 'email' => 'unique:public_users,email',\n 'phone' => ['unique:public_users,phone',],\n 'location' => 'required',\n ];\n\n $customMessages = [\n 'required' => 'The :attribute field can not be blank.',\n 'unique' => 'The :attribute is already exists.'\n ];\n\n $this->validate($request, $rules, $customMessages);\n\n if(isset($request->updateid)){\n $data=public_users::find($request->updateid);\n }\n else{\n $data=new public_users();\n }\n $data->name=$request->u_name;\n $data->email=$request->email;\n $data->phone=$request->phone;\n $data->location=$request->location;\n $data->num_of_sends=1;\n $data->status=0;\n $rand = rand(10000,99999);\n $data->sms_code = $rand;\n $data->token=Str::random(32);\n session()->put([\n 'tmp_EM'=>$request->email\n ]);\n $smsContent = \"Hi $request->u_name,Use this code to activate your account.$rand\";\n\n try{\n $data->num_of_sends=1;\n $data->save();\n //$this->SendActiveMail($data);\n $this->SendActiveSms($data,$smsContent);\n //session()->flash('success_msg','Successfully Registered !');\n echo '<div class=\"col-md-5 col-lg-5 col-sm-10 col-10 mx-auto login-div\" style=\"margin-top: 40px;\">\n <div class=\"alert alert-success\">\n <a href=\"#\" class=\"close\" data-dismiss=\"alert\" aria-label=\"close\">&times;</a>\n Congratulations! your account is registered, you will shortly receive an OTP to activate your account.\n </div>\n <div class=\"card shadow\" style=\"border-radius: 10px;\">\n <div class=\"card-body\">\n <form role=\"form\" method=\"POST\" action=\"/public/register/otp\" autocomplete=\"off\"> \n <div class=\"form-group\">\n <label for=\"u_name\" class=\"control-label pull-left\" style=\"padding-right: 25px;\">Enter OTP to verify mobile number :</label>\n <input type=\"text\" class=\"form-control\" id=\"IdPublicOtp\" name=\"otp\" required autofocus >\n <input type=\"hidden\" class=\"form-control\" id=\"IdPublicToken\" name=\"_token\" value=\"'.csrf_token().'\">\n </div>\n <div class=\"form-group\">\n <div class=\"float-left\">\n <button type=\"submit\" id=\"IdOtpSubmit\" class=\"btn btn-primary\" style=\"display: inline;\">Submit</button>\n <a href=\"#\" class=\"btn btn-link\" id=\"IdPublicResendSms\" style=\"font-size: 14px;display: inline;\">\n Resend OTP !\n </a><br/>\n </div>\n </div><br/></form></div></div></div>';\n }\n catch(\\Exception $exception){\n echo '<div class=\"col-md-5 col-lg-5 col-sm-10 col-10 mx-auto login-div\" style=\"margin-top: 40px;\">\n <div class=\"alert alert-danger\">\n <a href=\"#\" class=\"close\" data-dismiss=\"alert\" aria-label=\"close\">&times;</a>\n Something went wrong!\n </div>';\n }\n }", "public function handleRegistration()\n {\n $user = $this->repository->signup(\\Input::all());\n\n if ($user->id) {\n if (\\Config::get('confide::signup_email')) {\n \\Mail::queueOn(\n \\Config::get('confide::email_queue'),\n \\Config::get('confide::email_account_confirmation'),\n compact('user'),\n function ($message) use ($user) {\n $message\n ->to($user->email, $user->username)\n ->subject(\\Lang::get('confide::confide.email.account_confirmation.subject'));\n }\n );\n }\n \\Notification::success(\n \\Notification::message(\\Lang::get('users::app.user.registered'))->flash()\n );\n\n return \\Redirect::route('app.session.login');\n\n } else {\n $errors = $user->errors()->all(':message');\n\n if (is_array($errors) && $errors) {\n foreach ($errors as $error) {\n \\Notification::error(\n \\Notification::message(\\Lang::get($error))->flash()\n );\n }\n } else {\n \\Notification::error(\n \\Notification::message(\\Lang::get('users::app.registration.failed'))->flash()\n );\n }\n\n\n return \\Redirect::route('app.session.register');\n }\n }", "public function supplier_signup($edata) {\n\t\t\t\t$details = email_template_detail(\"supplierregister\");\n\t\t\t\t//$smsdetails = sms_template_detail(\"supplierregister\");\n\n\t\t\t\t$message = $this->mailHeader;\n\t\t\t\t$message .= $details[0]->temp_body;\n\t\t\t\t$message .= $this->mailFooter;\n\n\t\t\t\t//sendsms($smsdetails[0]->temp_body, $edata['phone'], \"supplierregister\");\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($edata['email']);\n\t\t\t\t$this->email->subject($details[0]->temp_subject);\n\t\t\t\t$this->email->message($message);\n\t\t\t\t$this->email->send();\n\t\t}", "function registerUser() {\n\n\tglobal $db;\n\tglobal $password;\n\tglobal $username;\n\tglobal $firstname;\n\tglobal $lastname;\n\tglobal $email;\n\tglobal $register;\n\n\t$password = password_hash($password, PASSWORD_BCRYPT, array('cost' => 12));\n\n $query = \"INSERT INTO \";\n $query .= \"user(username, user_password, user_email, user_firstname, user_lastname, user_role, date) \";\n $query .= \"VALUES('{$username}', '{$password}', '{$email}', '{$firstname}', '{$lastname}', 'Costumer', now())\";\n\n $result = mysqli_query($db, $query);\n\n confirmQuery($result);\n\n $register = \"<p class='alert-success'>You have been registered</p>\";\n}", "public function registrationAction($data){ \n try {\n \n if(!isset($data['mobile_no']) || !isset($data['device_id'])) {\n Library::logging('alert',\"API : registration : \".ERROR_INPUT);\n Library::output(false, '0', ERROR_INPUT, null);\n } else {\n $result = array();\n $mobile_no = $data['mobile_no'];\n $device_id = $data['device_id'];\n $record = Users::find( array(array(\"mobile_no\"=>$mobile_no, \"is_deleted\"=>0)) );\n $jaxlPassword = \"12345\";\n if( count($record) > 0 && $record[0]->is_active == 0 ){\n $db = Library::getMongo();\n $db->execute('return db.users.remove({\"_id\" :ObjectId(\"'.$record[0]->_id.'\") })');\n }\n if(count($record) > 0 && $record[0]->is_active != 0 && ($data['mobile_no']!=\"7503522085\"&&$data['mobile_no']!=\"+17503522085\"&&$data['mobile_no']!=\"+917503522085\"&& $data['mobile_no']!=\"8503522085\"&&$data['mobile_no']!=\"+18503522085\"&&$data['mobile_no']!=\"+918503522085\") ) {\n $result['user_id'] = $record[0]->_id;\n $result['token'] = $record[0]->hash;\n $db = Library::getMongo();\n if( empty($record[0]->jaxl_id) ){\n $jaxlCredentials = $this->registerOnEjabberd( $mobile_no, $jaxlPassword );\n $db->execute('return db.users.update({\"_id\" :ObjectId(\"'.$record[0]->_id.'\") },{$set:{jaxl_id : \"'.$jaxlCredentials[\"jaxl_id\"].'\",jaxl_password:\"'.$jaxlCredentials[\"jaxl_password\"].'\"}, $unset:{password:\"\"} })');\n $result = array_merge( $result, $jaxlCredentials ); \n }else{\n $result[\"jaxl_id\"] = $record[0]->jaxl_id;\n $result[\"jaxl_password\"] = $jaxlPassword;\n $db->execute( 'return db.users.update({\"_id\" :ObjectId(\"'.$record[0]->_id.'\") },{ $unset:{password:\"\"} })');\n // $result = array_merge( $result, $jaxlCredentials ); \n }\n $result[\"recovery_email_id\"] = $record[0]->recovery_email_id;\n $result[\"created\"] = 0;\n Library::output(true, '1', OTP_SENT, $result);\n } else {\n $user = new Users();\n $otp = Library::getOTP();\n if($data['mobile_no']==\"7503522085\"||$data['mobile_no']==\"+17503522085\"||$data['mobile_no']==\"+917503522085\" || $data['mobile_no']==\"8503522085\"||$data['mobile_no']==\"+18503522085\"||$data['mobile_no']==\"+918503522085\"){\n $otp = \"1614\";\n }\n $user->mobile_no = $mobile_no;\n $user->country_code = isset($data['country_code'])?$data['country_code']:'';\n $user->otp = $otp;\n $user->device_id = $device_id;\n $user->date = time();\n $user->is_active = 0;\n $user->is_deleted = 0;\n $user->profile_image = DEFAULT_PROFILE_IMAGE;\n \n if ($user->save() == false) {\n foreach ($user->getMessages() as $message) {\n $errors[] = $message->getMessage();\n }\n \n Library::logging('error',\"API : registration : \".$errors.\" \".$mobile_no);\n Library::output(false, '0', $errors, null);\n } else {\n \n /**************** code to register user on ejabber server ********************************/\n $jaxlCredentials = $this->registerOnEjabberd( $mobile_no, $jaxlPassword );\n $user->jaxl_id = $jaxlCredentials[\"jaxl_id\"];\n $user->jaxl_password = $jaxlCredentials[\"jaxl_password\"];\n $user->save();\n $result = array_merge( $result, $jaxlCredentials);\n /************* register code end ********************************/\n \n $result['user_id'] = $user->_id;\n $result['otp'] = $otp;\n $result[\"created\"] = 1;\n \n $message = \"Hi, Your OTP(One Time Password) for registration on Sociabile is : $otp\";\n Library::sendSMS($message,$user->country_code.$user->mobile_no);\n \n Library::output(true, '1', OTP_SENT, $result);\n }\n }\n }\n } catch (Exception $e) {\n Library::logging('error',\"API : registration : \".$e.\" \".$data['mobile_no']);\n Library::output(false, '0', ERROR_REQUEST, null);\n }\n }", "public function registershop(RegisterRequest $request)\n {\n $emailVerificationRequired = config('settings.mail.email_verification') == 1 && $request->filled('email');\n $phoneVerificationRequired = config('settings.sms.phone_verification') == 1 && $request->filled('phone');\n\n // New User\n $user = new User();\n $input = $request->only($user->getFillable());\n foreach ($input as $key => $value) {\n $user->{$key} = $value;\n }\n\n $user->country_code = config('country.code');\n $user->language_code = config('app.locale');\n $user->password = Hash::make($request->input('password'));\n $user->phone_hidden = $request->input('phone_hidden');\n $user->user_type_id = $request->input('company');\n $user->ip_addr = Ip::get();\n $user->ip_addr = Ip::get();\n $user->verified_email = 1;\n $user->verified_phone = 1;\n\n // Email verification key generation\n if ($emailVerificationRequired) {\n $user->email_token = md5(microtime() . mt_rand());\n $user->verified_email = 0;\n }\n\n // Mobile activation key generation\n if ($phoneVerificationRequired) {\n $user->phone_token = mt_rand(100000, 999999);\n $user->verified_phone = 0;\n }\n\n // Save\n $user->save();\n\n // Message Notification & Redirection\n $request->session()->flash('message', t(\"Your account has been created.\"));\n $nextUrl = config('app.locale') . '/register/finish';\n\n // Send Admin Notification Email\n if (config('settings.mail.admin_notification') == 1) {\n try {\n // Get all admin users\n $admins = User::permission(Permission::getStaffPermissions())->get();\n if ($admins->count() > 0) {\n Notification::send($admins, new UserNotification($user));\n /*\n foreach ($admins as $admin) {\n Notification::route('mail', $admin->email)->notify(new UserNotification($user));\n }\n */\n }\n } catch (\\Exception $e) {\n flash($e->getMessage())->error();\n }\n }\n\n // Send Verification Link or Code\n if ($emailVerificationRequired || $phoneVerificationRequired) {\n\n // Save the Next URL before verification\n session(['userNextUrl' => $nextUrl]);\n\n // Email\n if ($emailVerificationRequired) {\n // Send Verification Link by Email\n $this->sendVerificationEmail($user);\n\n // Show the Re-send link\n $this->showReSendVerificationEmailLink($user, 'user');\n }\n\n // Phone\n if ($phoneVerificationRequired) {\n // Send Verification Code by SMS\n $this->sendVerificationSms($user);\n\n // Show the Re-send link\n $this->showReSendVerificationSmsLink($user, 'user');\n\n // Go to Phone Number verification\n $nextUrl = config('app.locale') . '/verify/user/phone/';\n }\n\n // Send Confirmation Email or SMS,\n // When User clicks on the Verification Link or enters the Verification Code.\n // Done in the \"app/Observers/UserObserver.php\" file.\n\n }\n else\n {\n\n // Send Confirmation Email or SMS\n if (config('settings.mail.confirmation') == 1) {\n try {\n $user->notify(new UserActivated($user));\n } catch (\\Exception $e) {\n flash($e->getMessage())->error();\n }\n }\n\n // Redirect to the user area If Email or Phone verification is not required\n if (Auth::loginUsingId($user->id)) {\n return redirect()->intended(config('app.locale') . '/account');\n }\n\n }\n\n // Redirection\n $success['token'] = $user->createToken('theqqaPassport')->accessToken;\n $success['name'] = $user->name;\n return response()->json([\n 'status' => 'success',\n 'data' => $success,\n ]);\n }", "public function registration(){\n\t\t\n\t\tif (($name = $this->input->get_post('name')) && ($emailId = $this->input->get_post('emailId')) && \n ($mobileNo = $this->input->get_post('mobileNo')) && ($password = $this->input->get_post('password')) && \n ($branchId = $this->input->get_post('branchId'))) {\n\t\t\t$data = array(\n 'name' => $name,\n 'email' => $emailId,\n 'phone' => $mobileNo,\n 'password' => $password,\n 'shop_id' => $branchId\n );\n $ret = $this->Lootel_model->registration($data);\n\t\t\tif($ret){\n\t\t\t\t$response = array(\"status\"=>true,\"message\"=>\"Success\",\"userid\"=>$ret);\n\t\t\t}else{\n\t\t\t\t$response = array(\"status\"=>false,\"message\"=>\"Record not saved\");\n\t\t\t}\n\t\t\t\n\t\t}else{\n\t\t\t$response = array(\"status\"=>false,\"message\"=>\"Required parameter not found\");\n\t\t}\n\t\t\n\t\techo json_encode($response);\n\t}", "public function registerAction()\n {\n Lb_Points_Helper_Data::debug_log(\"Registration request sent to LB\", true);\n $txtName = $_POST['txtName'];\n $txtEmail = $_POST['txtEmail'];\n $txtPhoneNumber = $_POST['txtPhoneNumber'];\n $result = Lb_Points_Helper_Data::registerUser($txtName,$txtEmail,$txtPhoneNumber);\n echo json_encode($result);\n }", "function success()\n {\n $message = null;\n $message = \"Một email đã được gửi tới hòm thư của bạn. <br />\";\n $message .= \"Vui lòng kiểm tra hộp thư đến và kích hoạt tài khoản.\";\n $this->view->load('frontend/user/register_success', [\n 'message' => $message\n ]);\n }", "function userSignUp ( $_email ) {\n\t\t$_sql_statement = '';\n\t\t$_bind_parameters = array ();\n\t\t$_duplicateEmailCheck;\n\t\t$_createUserInfo;\n\t\t$_resultVerification ;\n\t\t$_emailVerificationKey = '';\n\t\t$_accountPassword = '';\n\t\t\n\t\t$this->gframeDatabase = new GframeDatabase($this->db_info);\n\t\t\n\t\t$_query_request = array();\n\t\t$_query_result = array();\n\n\t\tif ( ($connection_result = $this->gframeDatabase->connect_database ()) !== TRUE ) {\n\t\t\treturn $this->gframeDatabase->returnAjaxResponseArray(false,'Failed @ connect_database',$connection_result);\n\t\t} else {\n\t\t\t// duplicate email check\n\t\t\t$_duplicateEmailCheck = $this->duplicateEmailCheck( $_email );\n\t\t\tif ($_duplicateEmailCheck['response']===FALSE) {\n\t\t\t\t$this->gframeDatabase->close_database_connection();\n\t\t\t\treturn $_duplicateEmailCheck; // error then exit\n\t\t\t}\n\n\t\t\t// generate account password \n\t\t\t$_accountPassword = $this->returnGeneratedPassword(8);\n\t\t\t\n\t\t\t// create user record\n\t\t\t$_createUserInfo = $this->createUserInfo( $_email,$_accountPassword );\n\t\t\t\n\t\t\t$_resultVerification = $this->queryResultVerification ($_createUserInfo,'createUserInfo');\n\t\t\tif($_resultVerification['response'] === FALSE) {\n\t\t\t\t$this->gframeDatabase->close_database_connection();\n\t\t\t\treturn $_resultVerification; // error then exit\n\t\t\t}\n\t\t\t\n\t\t\t// generate e mail verification key\n\t\t\t$_emailVerificationKey = $this->returnGeneratedPassword(32);\n\n\t\t\t// create user meta and email verification key\n\t\t\t// $_createUserInfo['result']['result'] has the last insert ID\n\t\t\t$_createUserInfoMeta = $this->createUserRecordMeta( $_createUserInfo['result']['result'],$_emailVerificationKey);\n\t\t\t$_resultVerification = $this->queryResultVerification ($_createUserInfoMeta,'createUserRecordMeta');\n\t\t\tif($_resultVerification['response'] === FALSE) {\n\t\t\t\t$this->gframeDatabase->close_database_connection();\n\t\t\t\treturn $_resultVerification; // error then exit\n\t\t\t}\n\t\t\t\n\t\t\t// closing the connection\n\t\t\t$this->gframeDatabase->close_database_connection();\n\t\t\t\n\t\t\t// send out \n\t\t\tif($this->sendOutVerificationEmail ( $_email,$_accountPassword,$_emailVerificationKey )) {\n\t\t\t\treturn $this->gframeDatabase->returnAjaxResponseArray(true,'OK',null);\n\t\t\t} else {\n\t\t\t\treturn $this->gframeDatabase->returnAjaxResponseArray(false,'failedAtSendingEmail',null);\n\t\t\t}\t\t\t\n\t\t}\n\t}", "public function regNewUser( $data ){\n\n\t\t$success = parent::regNewUser( $data );\n\t\n\t\tif( is_array( $success ) ){\n\t\t \treturn $this->createAnswer( 1,\"Username or email already exist\",403 );\n\t\t}elseif ( $success ){\n\t\t\treturn $this->createAnswer( 0,\"Congratulation you got permission\" );\n\t\t}else{\n\t\t return $this->createAnswer( 1,\"invalid query\",402 );\n\t\t}\n\t}", "function RegisterUser(){\r\n\t\tif(!isset($_POST['submitted'])){\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\t$formvars = array();\r\n\r\n\t\tif(!$this->ValidateRegistrationSubmission()){\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\t$itemPicture = $this->upLoadUserPic();\r\n\t\tif($itemPicture != false){\r\n\t\t\t$formvars['Upic'] = $this->upLoadUserPic();\r\n\t\t}\r\n\t\t\r\n\t\t$this->CollectRegistrationSubmission($formvars);\r\n\t\t\r\n\t\tif(!$this->comparePswd($formvars)){\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\tif(!$this->SaveToEventAdvDatabase($formvars)){\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\t/*if(!$this->sendConfimMail($formvars)){\r\n\t\t\treturn false;\r\n\t\t}*/\r\n\r\n\t\t//$this->SendAdminIntimationEmail($formvars);\r\n\r\n\t\treturn true;\r\n\t}", "public function doRegister()\n {\n\n //check if all the fields are filled\n if (!Request::checkVars(Request::postData(), array('username', 'password'))) {\n echo json_encode(array(\"swal\" => array(\"title\" => \"Oops!\", \"text\" => \"Complete all the fields!\", \"type\" => \"error\")));\n exit;\n }\n\n //create the user entity based on filled data\n $userEntity = new User(Request::postData());\n\n //check if the user exists and get it as entity if exists\n if ($this->repository->findUser($userEntity)) {\n echo json_encode(array(\"swal\" => array(\"title\" => \"Oops!\", \"text\" => \"The username/email already exists!\", \"type\" => \"error\")));\n exit;\n }\n\n //add the user into DB\n $this->repository->addUser($userEntity);\n\n echo json_encode(\n array(\n \"swal\" => array(\"title\" => \"Success!\", \"text\" => \"Your account has been created!\", \"type\" => \"success\", \"hideConfirmButton\" => true),\n \"redirect\" => array(\"url\" => BASE_URL . '/index.php?page=home', 'time' => 1)\n )\n );\n }", "public function newRegistration() {\n $this->registerModel->getUserRegistrationInput();\n $this->registerView->setUsernameValue($this->registerView->getUsername());\n $this->registerModel->validateRegisterInputIfSubmitted();\n if ($this->registerModel->isValidationOk()) {\n $this->registerModel->hashPassword();\n $this->registerModel->saveUserToDatabase();\n $this->loginView->setUsernameValue($this->registerView->getUsername());\n $this->loginView->setLoginMessage(\"Registered new user.\");\n $this->layoutView->render(false, $this->loginView);\n } else {\n $this->layoutView->render(false, $this->registerView);\n }\n \n }", "public function register() {\n\t\t$user_email = $this->input->post(\"email\");\n\t\t$user_password = md5($this->input->post('password'));\n\t\t$user_reg_ip = ip2long($this->input->ip_address());\n\t\t\n\t\t$re = $this->user_lib->save_reg_userInfo($user_email,$user_password,$user_reg_ip);\n\t\t\n\t\tif($re===false){\n\t\t\t//set mc error\n\t\t}\n\t\t/*if(!$this->email_lib->send_active_email($user_email)){\n\t\t\t//send mail error\n\t\t}*/\n\t\t$uid = $this->user_lib->active_process($user_email);\n\t\tif($uid===false){\n\t\t\treturn false;\t\t//for active error\n\t\t}\n\t//\t$this->_set_login_cookie($uid);\n\t\tredirect('/regsuccess'); \n\t}", "function register(){\n\n $cust=new Customer();\n \n //get each field from form\n $first_name=$_POST['first_name'];\n $last_name=$_POST['last_name'];\n $vehicle_number=$_POST['vehicle_number'];\n $address=$_POST['address'];\n $e_mail=$_POST['email'];\n $password=$_POST['password'];\n $mobile_tel_no=$_POST['mobile_tel_no'];\n $home_tel_no=$_POST['home_tel_no'];\n\n //hash the password\n //$hashed=md5($password);\n $hashed = sha1($password);\n\n //$hashed = password_hash($password,PASSWORD_BCRYPT);\n $vehicle_type=Vehicle_regex::validate($vehicle_number);\n //insert data\n $result=$cust->insert_record($first_name,$last_name,$vehicle_number,$address,$hashed,$e_mail,$mobile_tel_no,$home_tel_no,$vehicle_type);\n echo(\"resultstart\");\n echo($result);\n echo(\"resultend\");\n //ON SUCCESS, send an email to customer address\n $mail=new Mailer();\n\n $subject=\"Welcome to Cleancar Reservation System!\";\n $body=\"<strong>Dear Mr./Mrs. $last_name,</strong></br>Thank you for\n registering with Cleancar reservation System.\";\n\n //call function in class\n $mail->mailto($subject,$e_mail,$body);\n }", "public function registration(){\n\n\t\t\t$userData = $this->Common_model->selRowData(PREFIX.\"user\",\"\",\"emailId ='\".$_POST['email2'].\"'\");\n\t\t\t $topRatedFuncies= $this->Common_model->selTableData(\"fc_flyers\",\"GROUP_CONCAT(keywords) AS funcyName\",\"createdOn BETWEEN '\".date('Y-m-d',strtotime('-30 days')).\"' AND '\".date('Y-m-d').\"'\",\"viewCount DESC\",\"5\");\n\t\t\n\n\t\t\tif(isset($_POST[\"firstName\"]) && isset($_POST[\"email2\"]) && $userData ==\"\"){\n\t\t\t\n\t\t\t\t\n\t\t $insertData\t\t\t\t=\tarray();\n\n\t\t\t\t$insertData[\"firstName\"]=\tucfirst($_POST[\"firstName\"]);\n\t\t\t\t$insertData[\"lastName\"]\t=\tucfirst($_POST[\"lastName\"]);\n\t\t\t\t$insertData[\"emailId\"]\t=\ttrim(strtolower($_POST[\"email2\"]));\n\t\t\t\t$insertData[\"password\"]\t=\tmd5(trim($_POST[\"password1\"]));\n\t\t\t // $insertData[\"funcies\"]\t= $topRatedFuncies[0]->funcyName ;\n\t\t\t\t/*if ($_POST[\"txt_keyword\"]!=\"\") {\n\t\t\t\t\t$insertData[\"funcies\"]\t=\timplode(\",\",$_POST[\"txt_keyword\"]);\n\t\t\t\t}else{\n\t\t\t\t\t\n\t\t\t\t\t $insertData[\"funcies\"]\t=$topRatedFuncies[0]->funcyName ;\n\t\t\t\t}*/\n\t\t\t\t\n\t\t\t\t/*$insertData[\"contactNumber\"]\t=\t$_POST[\"txt_contactNumber\"];\n\t\t\t\t$insertData[\"altContactNumber\"]\t=\t$_POST[\"txt_altContactNumber\"];\n\t\t\t\t//$insertData[\"password\"]\t=\t$_POST[\"txt_password\"];\n\t\t\t\t$insertData[\"city\"]\t=\t$_POST[\"txt_city\"];\n\t\t\t\t$insertData[\"status\"]\t=\t$_POST[\"txt_status\"];\n\t\t\t\t$insertData[\"address\"]\t=\t$_POST[\"txtarea_address\"];\n\t\t\t\t$insertData[\"zipcode\"]\t=\t$_POST[\"txt_zipcode\"];\t*/\n\t\t\t\t$insertedUserId\t\t\t\t\t=\t$this->Common_model->insert(PREFIX.\"user\",$insertData);\n\t\t\t\n\t\t\tif($insertedUserId){\n\t\t\t\t/*//send email URL to registered \n\t\t\t\t$settings = array();\n\t\t\t\t$settings[\"template\"] \t\t\t\t= \"welcome_to_funcano.html\";\n\t\t\t\t$settings[\"email\"] \t\t\t\t\t= trim($insertData['emailId']); \n\t\t\t\t$settings[\"subject\"] \t\t\t\t= \"Warm welcome from the Funcano\";\n\t\t\t\t$contentarr['[[[NAME]]]']\t\t\t=\ttrim($insertData[\"firstName\"]);\n\t\t\t\t$contentarr['[[[USERNAME]]]']\t\t=\t$insertData[\"emailId\"];\n\t\t\t\t$contentarr['[[[PASSWORD]]]']\t\t=\t$insertData[\"password\"];\n\t\t\t\t//$contentarr['[[[DASHURL]]]']\t\t=\tBASEURL.'/login';\n\t\t\t\t$settings[\"contentarr\"] \t= \t$contentarr;\n\t\t\t\t$this->common_lib->sendMail($settings);*/\n\t\t\t\t//insert into hr_verification\n\t\t\t\t$insertVeri['userId']\t\t=\t$insertedUserId;\n\t\t\t\t$insertVeri['verifyType']\t=\t1;\n\t\t\t\t$insertVeri['code']\t\t\t=\tgenerateStrongPassword(16,false,'lud');\t\t\t\t\t\t\n\t\t\t\t$insertStatus = $this->Common_model->insert(\"fc_verification\", $insertVeri);\n\t\t\t\tif($insertStatus){\n\t\t\t\t\t//Send verification email\n\t\t\t\t\t$settings = array();\n\t\t\t\t\t$settings[\"template\"] \t\t\t\t= \t\"verify_account.html\";\n\t\t\t\t\t$settings[\"email\"] \t\t\t\t\t= \t$insertData['emailId']; //\"darvatkarg@gmail.com\";\n\t\t\t\t\t$settings[\"subject\"] \t\t\t\t=\t\"Funcano - verify account\";\n\t\t\t\t\t$contentarr['[[[VERIFYURL]]]']\t\t=\tBASEURL.\"/home/verify-account/\".$insertVeri['code'];\n\t\t\t\t\t$settings[\"contentarr\"] \t\t\t= \t$contentarr;\n\t\t\t\t\t$this->common_lib->sendMail($settings);\t\n\t\t\t\t\t\n\t\t\t\t\t$outputData['result']\t=\t\"Success\";\n\t\t\t\t}\n\t\t\n\t\t\t}\n\t\t} else{\n\t\t\t$outputData['result']\t=\t\"Failed\";\n\t\t\t\n\t\t}\n\t\t$this->load->viewF('ajaxresult',$outputData);\n\t}", "function register_user($first_name, $last_name, $username, $password, $email){\n\n // call the escape function to escape the variable \n // to prevent sql injecction \n\n $first_name = escape($first_name); \n $last_name = escape($last_name);\n $username = escape($username);\n $password = escape($password);\n $email = escape($email);\n \n\n // if the user enters an email that is already taken \n // deny the registration\n\n if(email_exists($email)){\n \n return false; \n }\n\n // if the user enters a username that is already taken\n // deny the registration \n else if(username_exists($username)){\n\n return false; \n\n } \n else \n { // if the user information is verified proceed to insertion in the user table \n\n\n // encrypt the message using password to encrypt the message \n $password = password_hash($password, PASSWORD_BCRYPT, array('cost'=>12));\n\n $validation_code = md5($username . microtime()); // create random validation codes\n\n // insert the user information to the user table with the validation code\n // Also make sure that the user activation state is set to 0 for this moment \n $sql = \"INSERT INTO users(first_name, last_name, username, password ,validation_code, active, email)\";\n $sql.= \"VALUES('$first_name','$last_name','$username','$password','$validation_code',0, '$email')\";\n\n $result = query($sql); // send the information\n\n // send a link to the user email with the validation code\n $subject = \"Activate Account\";\n $msg = \"Please click the link below to activate your account \n \n <a href =\\\"\".Config::DEVELOPMENT_URL.\"/activate.php?email=$email&code=$validation_code\\\">\n \n LINK HERE</a>\"; \n \n \n // setup a email header \n $headers = \"From: noreply@localhost\";\n\n // send the link\n send_email($email, $subject, $msg, $headers);\n\n return true;\n \n }\n}", "function addUser($data)\n{\n global $link;\n $username = $data['Username'];\n $hashedPassword = password_hash($data['Password'], PASSWORD_BCRYPT);\n $firstName = $data['FirstName'];\n $lastName = $data['LastName'];\n $address = $data['Address'];\n $email = $data['EmailAddress'];\n $activationCode = uniqid($username);\n $query = \"insert into Users(username,password,firstname,lastname,address,emailaddress,roleID,activationCode) values('$username','$hashedPassword','$firstName','$lastName','$address','$email',2,'$activationCode');\";\n if (mysqli_query($link, $query)) {\n sendEmailVerification(mysqli_insert_id($link), $email, $activationCode);\n } else {\n printError($link);\n }\n}", "function insert_in_sms_table($user_id,$phone_num,$generated_code){\r\n $sql = \"INSERT INTO `sms_verification` (user_id,phone_num,scode) VALUES ('{$user_id}','{$phone_num}','{$generated_code}')\";\r\n db()->query($sql);\r\n}", "public function registerInFrontEnd($params)\n {\n $model = $this->getModel($params['User'], 'User');\n $this->result->processed('model', $model);\n\n $model->setScenario('register_frontend');\n if (!$model->validate()) {\n return $this->result->fail(ERROR_INVALID_DATA, 'Submitted data is missing or invalid.');\n }\n \n include_once(Yii::getPathOfAlias(\"webroot\").'/protected/modules/Core/extensions/web/helpers/string.php');\n $registerSuccess = FALSE;\n $passwordForSendEmail = randomString('lower',12);\n $anotherUser = User::model()->findByAttributes(array('email'=>$model->email));\n if (!is_null($anotherUser))\n {\n $anotherUser->first_name = $model->first_name;\n $anotherUser->last_name = $model->last_name;\n $anotherUser->password = md5($passwordForSendEmail);\n $anotherUser->status = User::STATUS_ACTIVE;\n if ($anotherUser->update(array('first_name','last_name','password','status')))\n $registerSuccess = TRUE; \n }\n else\n {\n $model->username = $model->email;\n $model->password = md5($passwordForSendEmail);\n $model->status = User::STATUS_ACTIVE;\n if ($model->save(FALSE)) $registerSuccess = TRUE; \n }\n\n if ($registerSuccess == TRUE) {\n Yii::import('application.modules.Core.extensions.vendors.mail.YiiMailMessage');\n $messageObj = new YiiMailMessage;\n $messageObj->setSubject(\n\t '['.Settings::SITE_NAME.'] '.\n\t Language::t(Yii::app()->language,'Frontend.Message.MailSubject','Thanks for registering !')\n );\n $messageObj->setFrom(Settings::ADMIN_EMAIL);\n $messageObj->setTo($model->email);\n Yii::app()->mail->viewPath = 'application.runtime.emails'; \n $messageObj->view = 'registration_email'.'_'.Yii::app()->language;\n // create content\n $messageObj->setBody(array(\n 'user_email'=>$model->email,\n 'site_name'=>Settings::SITE_NAME,\n 'login_page_url'=>Yii::app()->createAbsoluteUrl('/site/login'),\n 'site_url'=>baseUrl(),\n 'user_password'=>$passwordForSendEmail,\n ), 'text/html');\n if (!Yii::app()->mail->send($messageObj))\n $this->result->fail('SEND_MAIL_FAILED', Yii::t('Ads/Ads','Registration Email was sent failed!'));\n } else\n $this->result->fail(ERROR_HANDLING_DB, Yii::t('User.User','Error while saving submitted data into database.'));\n return $this->result;\n }", "public function register() {\n\t\t\n\t\t// DB connection\n\t\t$db = Database::getInstance();\n \t$mysqli = $db->getConnection();\n\t\t\n $data = (\"INSERT INTO user (username,password,first_name,\n last_name,dob,address,postcode,email)\n VALUES ('{$this->_username}',\n '{$this->_sha1}',\n '{$this->_first_name}',\n '{$this->_last_name}',\n '{$this->_dob}',\n '{$this->_address}',\n '{$this->_postcode}',\n '{$this->_email}')\");\n\t\t\t\t\t\t \n\t\t\t$result = $mysqli->query($data);\n if ( $mysqli->affected_rows < 1)\n // checks if data has been succesfully inputed\n $this->_errors[] = 'could not process form';\n }", "public function customerRegistration($data){\n $name = mysqli_real_escape_string($this->db->link, $data['name'] );\n $address = mysqli_real_escape_string($this->db->link, $data['address'] );\n $city = mysqli_real_escape_string($this->db->link, $data['city'] );\n $country = mysqli_real_escape_string($this->db->link, $data['country'] );\n $zip = mysqli_real_escape_string($this->db->link, $data['zip'] );\n $phone = mysqli_real_escape_string($this->db->link, $data['phone'] );\n $email = mysqli_real_escape_string($this->db->link, $data['email'] );\n $pass = mysqli_real_escape_string($this->db->link, md5($data['pass'] ));\n //zijn alle velden ingevuld? indien niet -> message aan gebruiker\n if ($name == \"\" || $address == \"\" || $city == \"\" || $country == \"\" || $zip == \"\" || $phone == \"\" || $email == \"\" || $pass == \"\") {\n $msg = \"<span class='error'>Alle velden moeten ingevuld worden.</span> \";\n return $msg;\n }\n //eerst controleren of dit email adres nog niet bestaat = customer reeds is geregistreerd\n $mailquery = \"SELECT * FROM tbl_customer WHERE email='$email' LIMIT 1 \";\n $mailchk = $this->db->select($mailquery);\n //als hij al bestaat:\n if ($mailchk != false) {\n $msg = \"<span class='error'>Dit email adres is reeds in gebruik</span> \";\n return $msg;\n //als hij nog NIET bestaat\n }else{\n $query = \"INSERT INTO tbl_customer(name, address, city, country, zip, phone, email, pass) \n VALUES ('{$name}','{$address}','{$city}','{$country}','{$zip}','{$phone}','{$email}','{$pass}')\";\n $inserted_row = $this->db->insert($query);\n if ($inserted_row) {\n $msg = \"<span class='success'>Welkom bij de BoozeBaron familie!</span>\";\n return $msg;\n }else {\n $msg = \"<span class='error'>Registratie is mislukt :(</span>\";\n return $msg;\n }\n }\n }", "public function postRegister(Request $request)\n {\n $rules = [\n 'username' => 'required|min:6|unique:users|max:15',\n 'email' => 'required|email|unique:users',\n 'password' => 'required|confirmed|min:6|max:60'\n ];\n\n $input = Input::only(\n 'username',\n 'email',\n 'password',\n 'password_confirmation'\n );\n\n $validator = Validator::make($input, $rules);\n\n if($validator->fails())\n {\n return Redirect::back()->withInput()->withErrors($validator);\n }\n $confirmation_code = str_random(30);\n //$code = ['confirmation_code' => '$confirmation_code'];\n\n User::create([\n 'username' => Input::get('username'),\n 'email' => Input::get('email'),\n 'password' => bcrypt(Input::get('password')),\n 'profile' => 'avatar.png',\n 'chat_key' => str_random(30),\n 'confirmation_code' => $confirmation_code\n ]);\n\n Mail::send('emails.verify', ['confirmation_code' => $confirmation_code], function($message) {\n $message->to(Input::get('email'), Input::get('username'))\n ->subject('Email verification');\n });\n\n Session::flash('flash_message','alt');\n\n return redirect ('/auth/login');\n }", "function processRegistration() {\n\n $_SESSION['registerMsg'] = \"unknown\";\n\n/* ... setup and perform validation on the basic data the new account form should have provided us */\n $this->load->library( 'form_validation' );\n $this->form_validation->set_rules( \"r_email\", \"Email Address\", \"required|valid_email\" );\n $this->form_validation->set_rules( \"r_password\", \"Password\", \"required|min_length[8]|callback_checkPasswordComplexity\" );\n $this->form_validation->set_rules( \"passwordConf\", \"Password Confirmation\", \"required|matches[r_password]\" );\n $this->form_validation->set_rules( \"firstname\", \"First Name\", \"required\" );\n $this->form_validation->set_rules( \"lastname\", \"Last Name\", \"required\" );\n $this->form_validation->set_rules( \"homephone\", \"Home Phone\", \"required|exact_length[10]|numeric\" );\n $this->form_validation->set_rules( \"workphone\", \"Work Phone\", \"exact_length[10]|numeric\" );\n $this->form_validation->set_rules( \"cellphone\", \"Cell Phone\", \"exact_length[10]|numeric\" );\n $this->form_validation->set_rules( \"altemail\", \"Alternative Email\", \"valid_email\" );\n\n /* ... validate the information in the form */\n if ($this->form_validation->run()) {\n\n/* ... need to check to ensure we don't have an entry for this email account (since that is our unique key) */\n if (!$this->Model_Account->checkEmail( $this->input->post( 'r_email' ) )) {\n\n/* ... add the new user record to the database */\n $data = array(\n \"EmailAccount\" => $this->input->post( 'r_email' ),\n \"Password\" => md5( $this->input->post( 'r_password' ) ),\n \"FirstName\" => $this->input->post( 'firstname' ),\n \"LastName\" => $this->input->post( 'lastname' ),\n \"HomePhone\" => $this->input->post( 'homephone' ),\n \"WorkPhone\" => $this->input->post( 'workphone' ),\n \"CellPhone\" => $this->input->post( 'cellphone' ),\n \"AltEmail\" => $this->input->post( 'altemail' ),\n \"Status\" => 'ACTIVE',\n );\n $userId = $this->Model_Account->addAccount( $data );\n\n/* ... there are a few related tasks we need to take care of using the numeric user ID for this account */\n if ( $userId > 0) {\n\n/* ... see if we need to update any team contacts to use reference a known account, not just a stored email address */\n $this->Model_Team->contactArriving( $data['EmailAccount'], $userId );\n\n/* ... log the account into the website */\n $this->Model_Account->loginAccount( $userId );\n $_SESSION['registerMsg'] = \"valid\";\n\n/* ... send the account owner an email with the registration details */\n $this->Model_Account->sendRegistrationEmail( $userId, $this->input->post( 'r_password' ), TRUE );\n\n }\n\n }\n else {\n\n/* ... indicate that the form failed validation in some way -- this will help display appropriate field error messages */\n $_SESSION['registerMsg'] = \"invalid\";\n }\n\n }\n\n/* ... time to go */\n $this->register();\n return;\n }", "public function customerRegisterSuccess($observer)\n{\n\n $settings = Mage::helper('smsnotifications/data')->getSettings();\n $customer = $observer->getEvent()->getCustomer();\n $fname=$customer->getFirstname();\n $lname=$customer->getLastname();\n $email= $customer->getEmail();\n\n $telephone= $customer->getAddressesCollection()->getFirstitem()->getTelephone();\n\n if ($telephone) {\n $text =$settings['customer_notification_message'];\n $text = str_replace('{{firstname}}', $fname, $text);\n $text = str_replace('{{lastname}}', $lname, $text);\n $text = str_replace('{{emailid}}', $email, $text);\n }\n \n array_push($settings['order_noficication_recipients'], $telephone);\n $result = Mage::helper('smsnotifications/data')->sendSms($text, $settings['order_noficication_recipients']);\n return;\n}", "public function insert_new_user($data)\n {\n foreach($data as $key=>$val) $$key=get_magic_quotes_gpc()?$val:addslashes($val);\n $password = md5($password);\n $query = new Query;\n $count = $query->select('COUNT(*) as count')->from('core_users')->where(\"email = '$email'\")->orWhere(\"phone_number = '$phone_number'\")->All();\n if($count[0]['count']==0)\n {\n $query = Yii::$app->db;\n $result = $query->createCommand()->insert('core_users', [\n \"user_name\"=>$user_name,\n \"email\"=>$email,\n \"password\"=>$password,\n \"phone_number\"=>$phone_number,\n //\"phone_prefix\"=>'91',\n \"user_status\"=>'1',\n \"company_name\"=>$company_name,\n \"designation\"=>$designation,\n \"company_email\"=>$company_email,\n \"company_address\"=>$address,\n \"user_type\"=>1\n ])->execute();\n \n \n $subject=\"Big Equipments India | User Registration\";\n //get message to send to user\n $message = Mail_settings::get_registration_message();\n //send email to user\n Mail_settings::send_email_notification($email,$subject,$message);\n \n if($result)\n {\n return true;\n }\n return false;\n }\n return false;\n \n }", "public function customerRegistration( $data ){\n \n $first_name = $this->fm->validation($data['first_name']);\n $last_name = $this->fm->validation($data['last_name']);\n $username = $this->fm->validation($data['username']);\n $email = $this->fm->validation($data['email']);\n $gender = $this->fm->validation($data['gender']);\n $phone = $this->fm->validation($data['phone']);\n $password = $this->fm->validation ( md5 ( $data ['password'] ) );\n\n $first_name = mysqli_real_escape_string( $this->db->link, $data['first_name']);\n $last_name = mysqli_real_escape_string( $this->db->link, $data['last_name']);\n $username = mysqli_real_escape_string( $this->db->link, $data['username']);\n $email = mysqli_real_escape_string( $this->db->link, $data['email']);\n $gender = mysqli_real_escape_string( $this->db->link, $data['gender']);\n $phone = mysqli_real_escape_string( $this->db->link, $data['phone']);\n $password = mysqli_real_escape_string( $this->db->link, md5($data['password']));\n\n if ( $first_name == \"\" || $last_name == \"\" || $username == \"\" || $email == \"\" || $gender == \"\" || $phone == \"\" || $password == \"\" ) {\n $msg = \"<span class='error'>Field must not be empty !</span>\";\n return $msg;\n } \n $mailquery = \"SELECT * FROM tbl_customer WHERE email= '$email' LIMIT 1\";\n $mailChk = $this->db->select($mailquery);\n if ($mailChk != false) {\n $msg = \"<span class='error'>Email already exist !</span>\";\n return $msg;\n } else {\n $query = \"INSERT INTO tbl_customer (first_name, last_name, username, email, gender, phone, password ) VALUES('$first_name', '$last_name', '$username', '$email', '$gender', '$phone','$password')\";\n $inserted_rows = $this->db->insert($query);\n\n if ($inserted_rows) {\n $msg = \"<span class='success succ-reg'>Registration Successfully.<a class='login-reg' href='login.php'>login </a> </span>\"; \n return $msg;\n } else {\n $msg = \"<span class='error'> Something Wrong !</span>\";\n return $msg;\n } \n }\n\n }", "function post_registration($email, $hash_pass, $first_name, $last_name){\n // Build the query to create a user account\n $query = \"INSERT INTO UserAccount (email, hash_pass, first_name, last_name) VALUES (?,?,?,?)\";\n // Create an array of the parameters for paramater binding\n $params = array($email, $hash_pass, $first_name, $last_name);\n // Execute the query\n if ($this->db->query($query, $params)){\n $data['success'] = \"Much success! Account created. Go login.\\n\";\n } else {\n $data['error'] = \"Error! Account registration failed.\\n\";\n }\n // Pass back the data\n return $data;\n }", "public function signup(Request $request, EbulkSMS $sms)\n {\n\n $verificationCode = 'S-'.mt_rand(1000000, 9999999);\n $user = new User;\n\n $user->username = $request->username;\n $user->email = $request->email;\n $user->phone = $request->phone;\n $user->church_username = $request->username;\n $user->activation_token = $request->email ?\n str_random(60) : $verificationCode;\n $user->account_type = 'diamond';\n \n if ($user->save()) {\n \n if($user->email){\n $user->notify(new ConfirmEmail($user)); \n }\n\n\n if($user->phone){\n $message = \"$verificationCode is your Sedmic verification code\";\n $sms->fromSender('Sedmic')\n ->composeMessage($message)\n ->addRecipients($user->phone)\n ->send();\n }\n \n return response()->json([\n 'successMessage' => $user->email ? \n 'A verification email has been sent' : \n 'A verification code has been sent to your phone',\n ], 201); \n\n } else {\n return response()->json([\n 'errorMessage' => 'Internal server error'\n ], 500);\n }\n }", "public function register(){\n \n $data[\"title\"] = \"Register\";\n \n if(isset($_POST[\"register_button\"])){\n \n $name = $_POST[\"register_name\"];\n $email = $_POST[\"register_email\"];\n $password1 = $_POST[\"register_password\"];\n $password2 = $_POST[\"confirm_password\"];\n \n //Validation (this will be expanded)\n if($name == \"\"){\n $error[\"no_name\"] = \"Name is required\";\n }\n \n if($email == \"\"){\n $error[\"no_email\"] = \"Email is required\";\n } else if(!filter_var($email, FILTER_VALIDATE_EMAIL)){\n $error[\"not_valid_email\"] = \"Not a valid email\";\n } else if($this->_model->exists($email)){\n $error[\"email_exists\"] = \"This email is already registered\";\n }\n \n if($password1 == \"\"){\n $error[\"no_password\"] = \"Password is required\";\n } else if(strlen($password1) < 8){\n $error[\"password_short\"] = \"Password must be atleast 9 characters\";\n } else if(ctype_lower($password1)){\n $error[\"no_uppercase\"] = \"Password must contain atleast one upper case letter\";\n } else if($password1 != $password2){\n $error[\"no_password_match\"] = \"Passwords do not match\";\n }\n \n // For the captcha\n $rainCaptcha = new \\Helpers\\RainCaptcha();\n \n if(!$rainCaptcha->checkAnswer($_POST['captcha'])){\n $error[\"captcha\"] = \"Not valid captcha.\";\n }\n \n //If no errors were detected then we'll carry on and register the user\n if(!$error){\n \n $postdata = array(\n \"name\" => $name,\n \"email\" => $email,\n \"password\" => Password::make($password1)\n );\n $this->_model->insert_user($postdata);\n \n $this->_model->sendVerificationEmail($email, $name);\n \n Session::set(\"message\", \"A verification email has been sent to the entered email address.\");\n }\n }\n \n View::renderTemplate(\"header\", $data);\n View::render(\"auth/register\", $data, $error);\n View::renderTemplate(\"footer\", $data);\n }", "public function register_send_code($user_by, $user_value, $user)\n {\n // Check Only For Mobile\n if ($user_by != 'billing_phone') {\n return;\n }\n\n // User ID\n $user_id = 0;\n if ($user != false) {\n $user_id = $user->ID;\n }\n\n if (isset($_REQUEST['do_action']) and $_REQUEST['do_action'] == \"register_code\") {\n\n // Get User Mobile\n $user_mobile = $user_value;\n\n // Check Validation Mobile Number\n $mobile_check = Persian_ACL::validate_mobile($user_mobile);\n if ($mobile_check['success'] === false) {\n wp_send_json_error(array(\n 'message' => $mobile_check['text']\n ), 400);\n }\n\n // Check User Before Exist\n if (username_exists($user_mobile) != false) {\n wp_send_json_error(array(\n 'code' => 'already_register_login',\n 'message' => apply_filters('wordpress_acl_exists_username_error', __('This username is already registered.', 'wordpress-acl'))\n ), 400);\n }\n\n // Generate New Code\n $code = self::generate_new_otp_code('mobile', $user_mobile, $user_id);\n\n // Send SMS\n $get_sms_text = \\WP_SMS_Helper::get_text_message(array(\n 'option_name' => 'sms-new-user-register-code',\n 'params' => array('[code]' => $code['code'])\n ));\n \\WP_SMS_Helper::send_sms($user_mobile, $get_sms_text);\n\n // Result\n wp_send_json_success(array(\n 'message' => __('The registration authentication code was sent to your mobile number.', 'wordpress-acl')\n ), 200);\n }\n }", "public function moRegistration()\n\t{\n\t\n\t\t$this->Checklogin();\n\t\tsetAActivityLogs('Transaction_activity','AAmoregistration_view');\n\t\t$data ['resultMobile']=$this->setting_model->getAllmobile();\n\t\t$data ['include']='admin/setting/moregistration';\n\t\t$data ['admin_section']='manage_mobile';\n\t\t$this->load->view('backend/container',$data);\n\t\n\t}", "function registerUser()\n {\n $DBA = new DatabaseInterface();\n $fields = array(0 => 'title', 1 => 'first_name', 2 => 'last_name', 3 => 'contacttelephone', 4 => 'contactemail', 5 => 'password', 6 => 'username', 7 => 'dob', 8 => 'house', 9 => 'street', 10 => 'town', 11 => 'county', 12 => 'pcode', 13 => 'optout', 14 => 'newsletter', 15 => 'auth_level');\n $fieldvals = array(0 => $this->Title, 1 => $this->FirstName, 2 => $this->LastName, 3 => $this->ContactTelephone, 4 => $this->ContactEmail, 5 => $this->Password, 6 => $this->Username, 7 => $this->DOB, 8 => $this->House, 9 => $this->Street, 10 => $this->Town, 11 => $this->County, 12 => $this->PCode, 13 => $this->Optout, 14 => $this->NewsletterSubscriber, 15 => $this->AuthLevel);\n $rs = $DBA->insertQuery(DBUSERTABLE, $fields, $fieldvals);\n if ($rs == 1)\n {\n $this->RegistrationSuccess = 1;\n }\n if (isset($this->PCode))\n {\n $this->geoLocate();\n }\n unset($DBA, $rs, $fields, $fieldvals);\n $DBA = new DatabaseInterface();\n $fields = array(0 => 'id');\n $idfields = array(0 => 'username');\n $idvals = array(0 => $this->Username);\n $rs = $DBA->selectQuery(DBUSERTABLE, $fields, $idfields, $idvals);\n if (!isset($rs[2]))\n {\n while ($res = mysql_fetch_array($rs[0]))\n {\n $this->setUserVar('ID', $res['id']);\n }\n }\n unset($DBA, $rs, $fields, $idfields, $idvals);\n }", "public function index(){ //mobile,password,is_social,device_type,device_tokken,email,name\n\n\t\t$this->validate_registration();\n\t\t$_POST['password'] = md5($this->input->post('password')); \n\t\t$_POST['name'] = ucwords(strtolower($this->input->post('name')));\n\t\t$_POST['email'] = strtolower($this->input->post('email'));\n\t\t$user_data = $this->input->post();\n\t\t$return_id = $this->users_model->save_user($user_data);\n\t\tif($return_id){\n\t\t\treturn_data(true,'Registration successful.',$this->users_model->get_user($return_id));\n\t\t}\n\t\treturn_data(false,'Registration Failed.',array());\n\t}", "function registrationSave($conn){\r\n\t\t@extract($_REQUEST);\r\n\t\t$query =\"select email,id,verified_status from user where email='\".$emailId.\"' AND ( encryption_key != '' OR verified_status = '1' )\";\r\n\t\t$result =$conn->query($query);\r\n\t\tif($result->num_rows > 0){\r\n\t\t\t$_SESSION['msg']=\"mail id already registered\";\r\n\t\t\theader(\"Location:index.php?page=registration\");\r\n\t\t\texit;\r\n\t\t} else {\r\n\t\t\t$str =\"abcdefghijklmnopqrstuvwxyz1234567890\";\r\n\t\t\t$encKey =substr(str_shuffle($str),0,10);\r\n\t\t\t$query =\"insert into user (email,role,encryption_key)values('\".$emailId.\"','2','\".$encKey.\"')\";\r\n\t\t\tif($conn->query($query)){\r\n\t\t\t\t$scriptName =explode(\"?\",$_SERVER['REQUEST_URI']);\r\n\t\t\t\trequire dirname(__FILE__).'/library/PHPMailer/PHPMailerAutoload.php';\r\n\t\t\t\t$mail = new PHPMailer;\r\n\t\t\t\t$mail->isSMTP(); // Set mailer to use SMTP\r\n\t\t\t\t$mail->Host = 'smtp.gmail.com'; // Specify main and backup SMTP servers\r\n\t\t\t\t$mail->SMTPAuth = true; // Enable SMTP authentication\r\n\t\t\t\t$mail->Username = $this->mailUserName; // SMTP username\r\n\t\t\t\t$mail->Password = $this->mailPassword; // SMTP password\r\n\t\t\t\t$mail->SMTPSecure = 'ssl'; // Enable TLS encryption, `ssl` also accepted\r\n\t\t\t\t$mail->Port = 465; // TCP port to connect to\r\n\r\n\t\t\t\t$mail->setFrom($this->mailUserName);\r\n\t\t\t\t$mail->addAddress($emailId); // Add a recipient\r\n\t\t\t\t$mail->isHTML(true); // Set email format to HTML\r\n\t\t\t\t$mail->Subject = 'Email Verification - Color Elephant Dev Portal';\r\n\t\t\t\t$mail->Body = \"Hi, <br><br>\r\nThanks for registering at our portal. <br><br>\r\nPlease click on the below link to activate and complete your registration process. <br><br><br>\r\nhttp://\".$_SERVER['HTTP_HOST'].$scriptName[0].\"?page=emailVerification&q=\".$encKey.\" <br><br><br>\r\nRegards, <br>\r\nTamilvanan - Colorelephant Testing Team\";\r\n\t\t\t\tif(!$mail->send()) {\r\n\t\t\t\t\t$_SESSION['msg']=\"Mail server down. Please try after some time.\";\r\n\t\t\t\t\theader(\"Location:index.php?page=registration\");\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$_SESSION['msg']=\"Please Check your inbox or spam folder for activating your account\";\r\n\t\t\t\t\theader(\"Location:index.php?page=loginForm\");\r\n\t\t\t\t}\r\n\t\t\t\texit;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public function AddNewUser()\r\n {\r\n $aUser = array(\r\n 'sFunction' => 'AddNewUser',\r\n 'result' => 'false'\r\n );\r\n \r\n if(isset($_GET['Email']))\r\n {\r\n $mail = $_GET['Email'];\r\n \r\n //Check if user is allready created with that username\r\n $sQuery = $this->conPDO->prepare(\"SELECT sUsername FROM users WHERE sUsername = :email LIMIT 1\");\r\n $sQuery->bindValue(\":email\", $mail);\r\n $sQuery->execute();\r\n \r\n if($sQuery->rowCount() == 0)\r\n {\r\n \r\n //Create the user token\r\n $number = uniqid();\r\n $sUserToken = $this->oBcrypt->genHash($number);\r\n\r\n //Opret en bruger med email som brugernavn, med med en token som skal sendes med email, og det er den token som identifisere hvem brugeren er \r\n //Insert the user into the database, prepare statement runs the security\r\n $sQuery = $this->conPDO->prepare(\"INSERT INTO users (sUsername,iUserRole,sUserCreateToken) VALUES (:sUsername, :iUserRole, :sUserToken)\");\r\n\r\n $sQuery->bindValue(':sUsername', $mail);\r\n $sQuery->bindValue(':iUserRole', '1');\r\n $sQuery->bindValue(':sUserToken', $sUserToken);\r\n\r\n\r\n try\r\n {\r\n $sQuery->execute();\r\n $iUserId = $this->conPDO->lastInsertId();\r\n //Get last inserted id and generate a hash of that to save in the database (the hash is generate with a random string and the iUserId)\r\n //The generated hash is the id to be passed with ajax\r\n $iUserIdHashed = $this->oBcrypt->genHash($iUserId);\r\n\r\n //Update the user\r\n $sQuery = $this->conPDO->prepare(\"UPDATE users SET iUserIdHashed = ? WHERE iUserId = ?\");\r\n\r\n $sQuery->bindValue(1, $iUserIdHashed);\r\n $sQuery->bindValue(2, $iUserId);\r\n\r\n $sQuery->execute(); \r\n }\r\n catch(PDOException $e)\r\n {\r\n die($e->getMessage());\r\n }\r\n\r\n $sMessage = \"Ny bruger til My Local Café, Tryk på dette <a href='http://mylocalcafe.dk/register?sUserToken=$sUserToken'>link</a> for at oprette din profil\";\r\n $sTo = $mail;\r\n $sFrom = 'support@mylocalcafe.dk';\r\n $sSubject = 'Ny konto hos MyLocal';\r\n\r\n $this->oEmail->SendEmail($sTo, $sFrom, $sSubject, $sMessage);\r\n\r\n $aUser['result'] = 'true';\r\n }\r\n \r\n return $aUser;\r\n }\r\n }", "public function notify() \n {\n $user = User::find()->where(['username' => $this->username])->one();\n if (!$user) {\n return false;\n }\n \n if ($this->isPhone()) {\n // Notify by SMS\n if (!$this->password) {\n return false;\n }\n Yii::$app->sms->send($user->username, 'Your password is: ' . $this->password);\n } else {\n // Notify by email\n $user->generateVerificationToken();\n if ($user->save()) {\n $mail = Yii::$app->mailer->compose('notify', ['model' => $user])\n ->setFrom('mail@example.com')\n ->setTo($user->username)\n ->setSubject('Complete Your Registration')\n ->send();\n }\n }\n \n return true;\n }", "public function postRegistration(postRegistration $request)\n { \n //get data\n $data = $request->only(['company_phone','company_name', 'user_email' ,'user_name','input_phone']);\n //check phone\n if($data['input_phone'] != \"\"){\n $inputPhoneNumber = $this->phoneService->toDbFormat($data['input_phone']);\n $phone_exists = $this->contactsRepository->check($data['input_phone']);\n }\n //check status\n $sms_confirmation_status = $this->ConfigModelRepository->confirmationStatus();\n //send SMS\n if ($sms_confirmation_status == 1) {\n $smsConfirmation = $this->OtherRepository->createSmsConfirmation($data['input_phone']);\n $message = $this->lang()->trans('text._sms.registration_code', ['code' => $smsConfirmation->code]);\n $address= $smsConfirmation->to;\n $this->smsService->send($address, $message);\n }\n //create request\n try {\n $sms_confirmation_id = $sms_confirmation_status == 1 \n ? $smsConfirmation->id \n : NULL;\n $confirmation = ($sms_confirmation_status == 1);\n $registrationRequest = $this->requestRepository->createRegistrationRequest($data,$sms_confirmation_id,$confirmation);\n $hash = md5($registrationRequest->id . 'SALT1313');\n } catch (Exception $e) {\n $this->logs($e);\n //redirect\n return $this->redirect\n ->refresh();\n }\n //set session\n $this->session->set('__registration_request_id', $registrationRequest->id);\n //redirect\n\n $route = $sms_confirmation_status == 1 \n ? 'auth.get_registration_confirmation' \n : 'auth.get_registration_final';\n //output\n return $this->redirect\n ->route($route, [$hash]);\n }", "public function registerAction()\n {\n Zend_Registry::set('SubCategory', SubCategory::USERREGISTER);\n \t$form = new User_Form_Register();\n $data = $this->_request->getPost();\n if(!$data){\n // Display empty form\n $this->view->registerForm = $form;\n return;\n }\n\n if (!$form->isValid($data) || $this->_request->getParam('emailFailure')) {\n // Display form with errors\n $this->view->registerForm = $form;\n $this->view->emailFailure = $this->_request->getParam('emailFailure', null);\n return;\n }\n\n // Parameters for email and user creation\n $params = array(\n User::COLUMN_USERNAME => $form->getValue(User::INPUT_USERNAME),\n User::COLUMN_PASSWORD => $form->getValue(User::INPUT_PASSWORD),\n User::COLUMN_EMAIL => $form->getValue(User::INPUT_EMAIL),\n //User::COLUMN_OPENID_IDENTITY => $form->getValue(User::INPUT_OPENID_IDENTITY),\n User::INPUT_AUTH_METHOD => $form->getValue(User::INPUT_AUTH_METHOD),\n );\n\n try{\n // Create user in database\n $user = $this->_createNewUser($params);\n $userId = $user->{User::COLUMN_USERID};\n\n $params['activationKey'] = $user->activationKey;\n $params['link'] = APP_URL.Globals::getRouter()->assemble(array(),'userconfirmation');\n $params['link'] .= '?'.User::COLUMN_USERID.\"=$userId&\".self::ACTIVATION_KEY_PARAMNAME.\"={$user->activationKey}\";\n $params['site'] = APP_NAME;\n } catch (Exception $e){\n \t$msg = \"Error while creating user and/or blog. \".$e->getMessage();\n Globals::getLogger()->registrationError($msg);\n \t$userId = null;\n }\n\n if($userId === null){\n // Redirect to error page in case of user creation failure\n $this->_helper->redirectToRoute('usererror',array('errorCode'=>User::CREATION_FAILURE));\n }\n\n try{\n // Send Email\n $emailStatus = $this->_helper->emailer()->sendEmail($params[User::COLUMN_EMAIL], $params);\n } catch (Exception $e) {\n $emailStatus = false;\n $msg = \"Email error 2 \".$e->getMessage();\n Globals::getLogger()->registrationError($msg);\n }\n\n if(!$emailStatus){\n // If there was en error sending the email, delete user row, and forward to current page\n $this->_cleanupUser($userId);\n $this->_forward('register', null, null, array('emailFailure'=>1));\n return;\n }\n\n // Success !\n $this->_savePendingUserIdentity($userId);\n $this->_helper->redirectToRoute('userpending');\n }", "public function registerNewUser()\n\t{\n\t\t# make the call to the API\n\t\t$response = App::make('ApiClient')->post('register', Input::all());\n\n\t\t# if we successfully register a new user\n\t\tif(isset($response['success']))\n\t\t{\n\t\t\tUser::startSession($response['success']['data']['user']);\n\n\t\t\t# grab the data array from the response\n\t\t\tSession::flash('success', $response['success']['data']);\n\n\t\t\t# show the user profile screen\n\t\t\treturn Redirect::route('profile');\n\t\t}\n\t\t# there was a problem registering the user\n\t\telse \n\t\t{\n\t\t\t# save the API response to some flash data\n\t\t\tSession::flash('registration-errors', getErrors($response));\n\n\t\t\t# also flash the input so we can replay it out onto the reg form again\n\t\t\tInput::flash();\n\n\t\t\t# ... and show the sign up form again\n\t\t\treturn Redirect::back();\n\t\t}\n\t}", "public function register() {\n \n $this->form_validation->set_rules('email', 'Email', 'required|valid_email');\n $this->form_validation->set_rules('password', 'Passwort', 'required');\n $this->form_validation->set_rules('dataprotection', 'Datenschutz', 'required');\n \n if ($this->form_validation->run() === FALSE) {\n \t$this->error(400, 'Validation error');\n }\n \n if (strtolower($this->input->post('dataprotection')) == 'true') {\n \t// TODO: save acceptance or acceptance date to db, i.e. hand over to model\n } else {\n \t$this->error(404, 'Dataprotection error');\n } \n \n $this->user_model->setValue('email', $this->input->post('email'));\n $this->user_model->setValue(\n \t'hashed_password', \n \tpassword_hash($this->input->post('password'), PASSWORD_DEFAULT));\n\n if (! $this->user_model->newUser()) {\n\t\t\t$this->error(409, 'Duplicate');\n }\n\n\t\t$this->sendConfirmationMail($this->input->post('email'));\n\t\t$data['msg'] = $this->input->post('email') . ' registered.';\n\t\t$this->responseWithCode(201, $data);\n }", "public function register_user() {\n //validate user input and store response\n $validate = $this->validate_registration_form();\n if($validate['status'] == \"Error\") {\n return $validate;\n }\n //make sure email does not already exist\n $verify = $this->verify_email();\n if($verify['status'] == \"Error\") {\n return $verify;\n }\n $array = array();\n try {\n $this->password = password_hash($this->password, PASSWORD_DEFAULT);\n\n $stmt = $this->conn->prepare(\"INSERT INTO users (first_name, last_name, email, password) VALUES(:first_name, :last_name, :email, :password)\");\n\n $stmt->bindParam(':first_name', $this->first_name);\n $stmt->bindParam(':last_name', $this->last_name);\n $stmt->bindParam(':email', $this->email);\n $stmt->bindParam(':password', $this->password);\n\n $stmt->execute();\n\n $user_id = $this->conn->lastInsertId();\n $payload = array(\n \"user\" => $this->first_name,\n \"id\" => $user_id,\n \"exp\" => time()+2000,\n );\n\n $this->generate_token($payload);\n\n $array['status'] = \"Success\";\n return $array;\n\n } catch(\\Exception $e) {\n $array['status'] = \"Error\";\n $errors[] = \"Server Error\";\n $array['errors'] = $errors;\n return $array;\n }\n\n $array['status'] = \"Error\";\n $errors[] = \"Registration could not be completed\";\n $array['errors'] = $errors;\n return $array;\n\n }", "function facebook_user_register_post(){\n\t\t$fb_id=$this->post('fb_id');\n\t\t$fullname=$this->post('fullname');\n\t\t$email=$this->post('email');\n\t\t$username=$this->post('username');\n\t\t$this->load->model('users_model');\n\t\t$data=$this->users_model->get_by_exact_email($email);\n\t\tif($data!=null){\n\t\t\t$this->response(array('ok'=>'0'));\n\t\t}\n\t\t$data=null;\n\t\t$data=$this->users_model->get_by_exact_name($username);\n\t\tif($data!=null){\n\t\t\t$this->response(array('ok'=>'1'));\n\t\t}\n\n\t\t$data=array(\n\t\t\t'fb_id'=>$fb_id,\n\t\t\t'user_name'=>$username,\n\t\t\t'email'=>$email,\n\t\t\t'full_name'=>$fullname,\n\t\t\t'avt'=> get_facebook_avt($fb_id, 200, 200),\n\t\t\t'perm'=>USER\n\t\t\t);\n\t\t$insert_id = $this->users_model->insert($data);\n\t\tif($insert_id!=0){\n\t\t\t$this->response($this->users_model->get_by_fb_id($fb_id));\n\t\t}else{\n\t\t\t$this->response(array('ok'=>'2'));\n\t\t}\n\t\t$this->response(array('ok'=>'2'));\n\t}", "public function store()\n\t{\n $validator = Validator::make(Input::all(), Publisher::$rules);\n \n if ($validator->passes()) {\n // validation has passed, save user in DB\n $publiser = new Publisher;\n $publiser->firstname = Input::get('firstname');\n $publiser->lastname = Input::get('lastname');\n $publiser->email = Input::get('email');\n $publiser->msisdn = Input::get('msisdn');\n $publiser->active = false;\n $publiser->isadmin = false;\n $publiser->password = Hash::make(Input::get('password'));\n \n if ($publiser->save()) {\n $this->smsNotify($publiser->msisdn);\n //Write log\n Log::info('New publisher registered',compact(Input::all()));\n //Setting flash message\n Flash::success('Thanks for registering! We will get back to you after validating your account.');\n return Redirect::to('login');\n } \n continue ;\n\n } \n //Write log\n Log::error('Could not register user because ',compact($validator->messages()));\n\n Flash::error($validator->messages());\n // validation has failed, display error messages \n return Redirect::to('register');\n}", "public function userregistration($MSALToken) {\n\t\t$ch = curl_init('https://graph.microsoft.com/v1.0/me'); // Initialise cURL\n\t\t$authorization = \"Authorization: Bearer \".$MSALToken; // Prepare the authorisation token\n\t\tcurl_setopt($ch, CURLOPT_HTTPHEADER, array( $authorization )); // Inject the token into the header\n\t\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\t\tcurl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); // This will follow any redirects\n\t\t$response = curl_exec($ch); // Execute the cURL statement\n\t\tcurl_close($ch); // Close the cURL connection\n\t\t$data = json_decode($response);\n\t\tif(isset($data->error))\n\t\t\treturn json_encode($data);\n\t\t$newtoken = hash('sha512', \"accesstokenforhhsteamscan\".$data->id.$MSALToken).\".\".bin2hex(random_bytes(512));\n\t\t//return $newtoken;\n\t\t$rows_affected = $this->db->action_query(\n\t\t\t\"INSERT INTO `gebruikers`\n\t\t\t\t(`id`, `givenName`, `surname`, `displayName`, `userPrincipalName`, `mail`, `preferredLanguage`, `token`)\n\t\t\t\tVALUES (?, ?, ?, ?, ?, ?, ?, ?)\n\t\t\t\tON DUPLICATE KEY UPDATE\n\t\t\t\tgivenName=VALUES(givenName), surname=VALUES(surname), displayName=VALUES(displayName), userPrincipalName=VALUES(userPrincipalName), mail=VALUES(mail), preferredLanguage=VALUES(preferredLanguage)\",\n\t\t\t\"ssssssss\",\n\t\t\tarray($data->id, $data->givenName, $data->surname, $data->displayName, $data->userPrincipalName, $data->mail, $data->preferredLanguage, $newtoken)\n\t\t);\n\t\t\n\t\tforeach ($this->db->query(\"SELECT * FROM `gebruikers` where id=?\", \"s\", array($data->id)) as $row) {\n\t\t\t$result = $row;\n\t\t}\n\t\treturn json_encode($result??[\"error\"=>\"Gebruiker niet gevonden\"]);\n\t}", "private function generateUser()\n {\n \t$user=new User();\n \t$user->scenario = 'registration';\n \t$user->username=$this->user_name_prefix . '_' . time() . ++$this->userNameCounter;\n \t$user->email=time() . ++$this->emailCounter . $this->faker->unique()->email;\n \t$user->language = Yii::$app->language;\n \t$user->status = User::STATUS_ENABLED;\n \t$this->userId = $user->save(false) ? $user->id:false;\n \t$this->data[] = ['id'=>$user->id,'type'=>'user'];\n \treturn true;\n }", "public function register()\n\t{\n\t\t$rsp = new Response();\n\n\t\t//Do we have all the required fields ?\n\t\tif(empty($_POST['user_name']) ||\n empty($_POST['user_email']) ||\n empty($_POST['user_passwd']) ||\n empty($_POST['user_passwd_confirm']))\n {\n\t\t\t$rsp->setFailure(400, \"One or more fields are missing.\")\n ->send();\n }\n\n //Is password confirmation correct ?\n if($_POST['user_passwd'] !== $_POST['user_passwd_confirm'])\n {\n $rsp->setFailure(409, \"`user_passwd` and `user_passwd_confirm` does not match.\")\n ->send();\n\n return;\n }\n\n //Is email valid ?\n if(!filter_var($_POST['user_email'], FILTER_VALIDATE_EMAIL))\n {\n $rsp->setFailure(409, \"`user_email` is not a valid email.\")\n ->send();\n\n return;\n }\n\n //Is email banned?\n if(Response::read(\"ban\", \"is\", \"email\", $_POST['user_email'])[\"code\"] == 401)\n {\n $rsp->setFailure(406, \"The email used is banned.\")\n ->send();\n\n return;\n }\n\n //Is user unique?\n if(!$this->model->isUnique($_POST['user_email']))\n {\n $rsp->setFailure(403, \"This email is already in use. You might want to log in.\")\n ->send();\n\n return;\n }\n\n //Register the user\n $userID = $this->model->addUser($_POST['user_name'], $_POST['user_email'], $_POST['user_passwd'], time());\n\n //Send an activation email\n if(!$this->model->sendMail($userID, $_POST['user_email'], time()))\n {\n $rsp->setFailure(400, \"Error while sending the activation email.\")\n ->send();\n\n return;\n }\n\n $rsp->setSuccess(201, \"User added and activation mail sent.\")\n ->bindValue(\"email\", $_POST['user_email'])\n ->bindValue(\"userID\", $userID)\n ->send();\n\t}", "public function run()\n\t{\n\t\t$controller = $this->controller;\n\t\t\n\t\t$model = new GNRegisterByInformation;\n\t\tif(isset($_POST['GNRegisterByInformation']))\n\t\t{\n\t\t\t$model->attributes = $_POST['GNRegisterByInformation'];\n\t\t\t\t\n\t\t\t// Check your email registered and activated or not?\n\t\t\t$controller->attachbehavior('checkEmail', 'greennet.modules.registration.behaviors.GNCheckExistingEmailBehavior');\n\t\t\t$controller->checkEmail->run($model->email);\n\t\t\t\n\t\t\t// If the information is posted has been added to the user temporarily, send another activation code.\n\t\t\ttry {\n\t\t\t\t$validate = $model->validate();\n\t\t\t} catch (Exception $ex) {\n\t\t\t\tif ($controller->isJsonRequest) {\n\t\t\t\t\tajaxOut(array(\n\t\t\t\t\t\t'error'\t\t=> true,\n\t\t\t\t\t\t'message'\t=> $ex->getMessage(),\n\t\t\t\t\t\t'url'\t\t=> GNRouter::createUrl($this->validation_failure_uri)\n\t\t\t\t\t));\n\t\t\t\t} else {\n\t\t\t\t\tYii::app()->jlbd->dialog->notify(array(\n\t\t\t\t\t\t'error'\t\t=> true,\n\t\t\t\t\t\t'type' \t\t=> 'success',\n\t\t\t\t\t\t'autoHide'\t=> true,\n\t\t\t\t\t\t'message'\t=> $ex->getMessage(),\n\t\t\t\t\t));\n\t\t\t\t\n\t\t\t\t\t$controller->refresh();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif ($validate) {\n\t\t\t\ttry {\n\t\t\t\t\t$modelTmpUser = new GNTmpUser;\n\t\t\t\t\t\t\n\t\t\t\t\tif ($modelTmpUser->createUser($model->attributes)) {\n\t\t\t\t\t\t$validationCode = $modelTmpUser->createValidationCode();\n\n\t\t\t\t\t\t$strActiveUrl = GNRouter::createAbsoluteUrl($this->validation_uri, array('code' => $validationCode));\n\n\t\t\t\t\t\tYii::app()->mail->viewPath = $this->mailViewPath;\n\n\t\t\t\t\t\t//Notice was send activation information via email\n\t\t\t\t\t\t$message = Yii::t(\"greennet\", '<p>Congratulations!</p>\n\t\t\t\t\t\t\tYou’ve just completed the first step in registering as a GreenNet member.<br/>\n\t\t\t\t\t\t\tWe’ll now send a verification email to: <b>{email}</b><br/>\n\t\t\t\t\t\t\tWhen you receive it, just click on the appropriate link or button and that’s the process complete.<br/>\n\t\t\t\t\t\t\tWe’ll send the email immediately but it may take a little time to arrive in your inbox.', array('{email}'=>$model->email)\n\t\t\t\t\t\t);\n\n\t\t\t\t\t\tif ($controller->isJsonRequest) {\n\t\t\t\t\t\t\tajaxOut(array(\n\t\t\t\t\t\t\t\t'error'\t\t=> false,\n\t\t\t\t\t\t\t\t'type'\t\t=> 'success',\n\t\t\t\t\t\t\t\t'message'\t=> $message,\n\t\t\t\t\t\t\t\t'url'\t\t=> GNRouter::createUrl($this->validation_success_uri)\n\t\t\t\t\t\t\t), false);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// Send activation code to email\n\t\t\t\t\t\t\t$sendMail = Yii::app()->mail->sendMailWithTemplate($modelTmpUser->email, Yii::t(\"greennet\", 'GreenNet membership confirmation'), 'sendMailActivationAccount',$data=array('strActiveUrl'=>$strActiveUrl, 'user'=>$modelTmpUser));\n\t\t\t\t\t\t\tif(!empty($validationCode) && $sendMail == false)\n\t\t\t\t\t\t\t$modelTmpUser->saveAttributes(array('has_sent_code'=>1));\n\t\t\t\t\t\t\texit;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// Send activation code to email\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$sendMail = Yii::app()->mail->sendMailWithTemplate($modelTmpUser->email, Yii::t(\"greennet\", 'GreenNet membership confirmation'), 'sendMailActivationAccount',$data=array('strActiveUrl'=>$strActiveUrl, 'user'=>$modelTmpUser));\n\t\t\t\t\t\t\tif(!empty($validationCode) && $sendMail == false)\n\t\t\t\t\t\t\t$modelTmpUser->saveAttributes(array('has_sent_code'=>1));\n\n\t\t\t\t\t\t\tYii::app()->jlbd->dialog->notify(array(\n\t\t\t\t\t\t\t\t'error'\t\t=> false,\n\t\t\t\t\t\t\t\t'type'\t\t=> 'success',\n\t\t\t\t\t\t\t\t'autoHide'\t=> true,\n\t\t\t\t\t\t\t\t'message'\t=> $message\n\t\t\t\t\t\t\t));\n\t\t\t\t\t\t\t$controller->redirect('/');\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif ($controller->isJsonRequest) {\n\t\t\t\t\t\t\tajaxOut(array(\n\t\t\t\t\t\t\t\t'error'\t\t=> true,\n\t\t\t\t\t\t\t\t'type'\t\t=> 'error',\n\t\t\t\t\t\t\t\t'message'\t=> Yii::t(\"greennet\", 'Cannot create user!'),\n\t\t\t\t\t\t\t\t'errors'\t=> $modelTmpUser->errors,\n\t\t\t\t\t\t\t));\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tYii::app()->jlbd->dialog->notify(array(\n\t\t\t\t\t\t\t\t'error'\t\t=> true,\n\t\t\t\t\t\t\t\t'type'\t\t=> 'error',\n\t\t\t\t\t\t\t\t'autoHide'\t=> true,\n\t\t\t\t\t\t\t\t'message'\t=> Yii::t(\"greennet\", 'Cannot create user!')\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} catch (Exception $ex) {\n\t\t\t\t\tif ($controller->isJsonRequest) {\n\t\t\t\t\t\tajaxOut(array(\n\t\t\t\t\t\t\t'error'\t\t=> true,\n\t\t\t\t\t\t\t'message'\t=> $ex->getMessage(),\n\t\t\t\t\t\t));\n\t\t\t\t\t} else {\n\t\t\t\t\t\tYii::app()->jlbd->dialog->notify(array(\n\t\t\t\t\t\t\t'error'\t\t=> true,\n\t\t\t\t\t\t\t'type' \t\t=> 'success',\n\t\t\t\t\t\t\t'autoHide'\t=> true,\n\t\t\t\t\t\t\t'message'\t=> $ex->getMessage(),\n\t\t\t\t\t\t));\n\t\t\t\t\t\t$controller->refresh();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$controller->render($this->viewFile, array('model'=>$model));\n\t}", "public function register()\n\t{\n\t\t$input = Input::All();\n\t\t\n\t\t$validation = Validator::make($input, User::$rules);\n\t\t\n\t\tif ($validation->passes() && $data['user'] = $this->repo->register($input))\n\t\t{\t\t\t\n\t\t\t$data['activationCode'] = $data['user']->getActivationCode();\n\t\t\t//Send activation code\n\t\t\t$body = View::make('emails.auth.account_activation',$data);\n\t\t\tEmailController::sendMail($data['user']->email, $data['user']->first_name.' '.$data['user']->last_name, 'Welcome to Leadcliq', $body);\n\t\t\t// Create a Milestones entry to track user's checkpoints.\n\t\t\tMilestone::create(array('user_id' => $data['user']->id));\n\t\t\t\n\t\t\treturn View::make('authentication.activation_message',$data);\t\t\t\n\t\t}\n\t\treturn Redirect::route('register')\n\t\t->withInput()\n\t\t->withErrors($validation)\n\t\t->with('message', 'There were validation errors.');\n\t}", "protected function register(Request $request)\n { \n \n $user= User::create([\n \n 'f_name' => $request->f_name,\n 'l_name' => $request->l_name,\n 'u_name' => str_slug($request->f_name.$request->l_name),\n 'p_number' => $request->p_number,\n 'email' => $request->email,\n 'password' => Hash::make($request->password),\n 'street_address' => $request->street_address,\n 'Division_id' => $request->Divition_id,\n 'District_id' => $request->District_id,\n 'ip_address' => request()->ip(),\n 'remember_token' => str_random(50),\n 'status' => 0,\n\n ]);\n\n $user-> notify (new verifyreg ($user) );\n\n session()->flash('success','A Confirmation Email has sent to you.. please check and Confirma ');\n return redirect('/');\n }", "function register(){\r\n\t\tif(!isset($_POST['username']) || !isset($_POST['email']) ){\r\n\t\t\r\n\t\t\t//build response\r\n\t\t\t$this->res->success = false;\r\n\t\t\t$this->res->message = \"Invalid Request\";\r\n\t\t\treturn;\r\n\t\t}\r\n\t\r\n\t\t//get inputs\r\n\t\t$username = $_POST['username'];\r\n\t\t$email = $_POST['email'];\r\n\t\t\r\n\t\t$v = new DooValidator;\r\n\t\t//validate\r\n\t\tif(($error = $v->testEmail($_POST['email'])) != null){\r\n\t\t\t$this->res->success = false;\r\n\t\t\t$this->res->message = $error;\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\t//check if username or email already exist in users db\r\n\t\t$u = Doo::db()->find('Users', array(\r\n\t\t\t'where' => \"username = :username OR email = :email\", \r\n\t\t\t'param' => array(':username' => $username, ':email' => $email)\r\n\t\t\t)\r\n\t\t);\r\n\t\t\r\n\t\t\r\n\t\tif(!empty($u)){\r\n\t\t\t//build response\r\n\t\t\t$this->res->success = false;\r\n\t\t\t$this->res->message = \"Username or Email already exist\";\r\n\t\t\treturn;\r\n\t\t\r\n\t\t}\r\n\t\t\r\n\t\t//generate temp password\r\n\t\t$tmpPassword = $this->str_rand(6);\r\n\t\t\r\n\r\n\t\t//send email with temp password\r\n\t\t$to = $email;\r\n\r\n\t\t// Your subject\r\n\t\t$subject = \"Your temp password here\";\r\n\r\n\t\t// From\r\n\t\t$header=\"from: Register-EVAS <sandip.sandhu@ericsson.com>\";\r\n\t\t//$header = null;\r\n\t\t\r\n\t\t// Your message\r\n\t\t$message = \"Your Comfirmation password \\r\\n\";\r\n\t\t$message.= \"$tmpPassword\";\r\n\t\t\r\n\t\t//ini_set ( \"SMTP\", \"smtp-server.example.com\" ); \r\n\t\t\r\n\t\t// send email\r\n\t\tif(!mail($to, $subject, $message, $header)){\r\n\t\t\t//build response\r\n\t\t\t$this->res->success = false;\r\n\t\t\t$this->res->message = \"Error sending email to $email\";\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\t//store new user temp password \r\n\t\tDoo::loadModel('Users');\r\n\t\t$u = new Users;\r\n\t\t$u->username = $username;\r\n\t\t$u->email = $email;\r\n\t\t$u->isEnabled = 1;\r\n\t\t$u->change_password_on_login = 1;\r\n\t\t$u->password = md5($tmpPassword);\r\n\t\t$u->default_basemap = \"Google Streets\";\r\n\t\t$u->cluster_zoom_level = 15;\r\n\t\t$u->is_enabled = 1;\r\n\t\t $u->client = \"T-Mobile\";\r\n\t\t$u->insert();\r\n\t\t\t\r\n\t\t//success!\r\n\t\t$this->res->success = true;\r\n\t}", "function userRegistration($email, $password, $confirmPassword) {\n\t\tif ($email == null && empty($email)) {\n return false;\n exit();\n\t}\n\n\tif ($password == null && empty($password)) {\n return false;\n exit();\n\t}\n\n\tif ($confirmPassword == null && empty($confirmPassword)) {\n return false;\n exit();\n\t}\n\n\tif ($email != null && $password != null && $confirmPassword != null) {\n\t\t\t// Checking if email is valid or not\n\t\t\tif ($password == $confirmPassword) {\n\t\t\t\t/**\n\t\t\t\t * dependency isUserRegistered()\n\t\t\t\t * Hash password here an run insert query\n\t\t\t\t * insert is working properly\n \t\t* TODO: Run insert query here\n\t\t\t\t */\n\t\t\t\t$registerData = $this->connection->prepare(\"INSERT INTO `win` VALUES ('$email','$password')\");\n\t\t\t\t$registerData->execute();\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse {\n \t\treturn false;\n \t\t//Password and confirm password must match\n\t\t\t\texit();\n\t\t\t}\n\t\t}\n\t}", "public function storeRegistrationForm()\n { \n if(auth()->check())\n { \n auth()->destroy();\n return redirect()->to(url()->to('/'));\n }\n\n $inputs = request()->get();\n\n // this is if username is not allowed\n if(!$this->config->app->auth->usernames){\n $inputs['username'] = $inputs['email'];\n }\n\n $validator = new RegistrationValidator;\n $validation = $validator->validate($inputs);\n\n if (count($validation)) {\n session()->set('input', $inputs);\n\n return redirect()->to(url()->previous())\n ->withError(RegistrationValidator::toHtml($validation));\n }\n\n $token = bin2hex(random_bytes(100));\n\n // $connection = db()->connection();\n $connection = db();\n\n try {\n $connection->begin();\n\n $user = new Users;\n\n $success = $user->create([\n 'email' => $inputs['email'],\n 'username' => $inputs['username'],\n 'name' => $inputs['name'],\n 'password' => security()->hash($inputs['password']),\n 'token' => $token,\n ]);\n\n if ($success === false) {\n throw new Exception(\n 'It seems we can\\'t create an account, '.\n 'please check your access credentials!'\n );\n }\n\n queue(\n // 'Components\\Queue\\Email@registeredSender',\n \\Components\\Queue\\Email::class,\n [\n 'function' => 'registeredSender',\n 'template' => 'emails.registered-inlined',\n 'to' => $inputs['email'],\n 'url' => route('activateUser', ['token' => $token]),\n 'subject' => 'You are now registered, activation is required.',\n ]\n );\n\n $connection->commit();\n\n } catch (TransactionFailed $e) {\n $connection->rollback();\n throw $e;\n } catch (Exception $e) {\n $connection->rollback();\n throw $e;\n }\n\n return redirect()->to(route('showLoginForm'))\n ->withSuccess(lang()->get('responses/register.creation_success'));\n }", "public function register_action() \n\t{\n $rules = array(\n 'username' => 'required',\n 'email' => 'valid_email|required',\n 'password' => 'required',\n 'password2' => 'required',\n 'securityq1' => 'required',\n 'securityq2' => 'required',\n 'securitya1' => 'required',\n 'securitya2' => 'required',\n\n );\n \n // Readible array\n $readible = \n [ \n 'securityq1' => 'Security Queston 1',\n 'securityq2' => 'Security Queston 2',\n 'securitya1' => 'Security Answer 1',\n 'securitya2' => 'Security Answer 2'\n ];\n\n // readible inputs\n FormValidation::set_field_names($readible);\n \n //validate the info\n $validated = FormValidation::is_valid($_POST, $rules);\n \n // Check if validation was successful\n if($validated !== TRUE): \n \n //exit with an error\n exit(Alert::error(false, true, $validated));\n\n endif;\n\n\n UserModel::register();\n }", "public function successRegisterFamily(Request $request)\n {\n $validate = Validator::make($request->only('agree'), [\n 'agree' => 'required'\n ], [\n 'agree.required' => trans('validate.check_agrre.required'),\n\n ]);\n\n if ($validate->fails()) {\n return redirect()\n ->back()\n ->withInput()\n ->withErrors($validate->errors());\n }\n\n if (!Session::has('newMember')) {\n return redirect('confirm-register-family');\n }\n\n if (!$request->has('agree')) {\n return redirect()->back();\n }\n\n $infoMember = Session::get('newMember');\n \n $dataSyoutai = Syoutai::where('syoutai_mail', $infoMember['mail'])->first();\n \n $dataUserL = User::where('knr_user_id',$dataSyoutai->knr_user_id)->first();\n if(!$dataSyoutai) {\n return redirect('confirm-register-family')->withErrors('error_message', Lang::trans('register.An error occurred, please try again'));\n }\n $id = substr($dataSyoutai->knr_user_id ,1 ,10);\n \n // F+社員Global-ID+ 連番\n $number = User::where('knr_user_id','LIKE',\"%{$id}%\")->whereYear('regis_lmt_ymd',date('Y'))->get();\n\n $number = count($number);\n\n $guid = HelperFunc::makeUniqueCode(User::class, 'guid', 36);\n \n $dataUser = User::where('mail',$dataSyoutai->syoutai_mail)->first();\n \n if (!empty($dataUser) && $dataUser->regis_status == User::STT_NOT_REGIST) {\n \n $user = User::find($dataUser->knr_user_id);\n \n $user->fill($infoMember);\n\n $ip = $request->ip();\n \n $user->zip_no = $infoMember['zip_first'] . $infoMember['zip_second'];\n $user->regis_status = User::STT_NOT_REGIST;\n $user->company_mei = User::COMPANY_MEI_FAMILY;\n $user->kengine_status = User::NOT_LINKED;\n $user->enavi_status = User::NOT_LINKED;\n $user->lixil_online_status = User::NOT_LINKED;\n $user->renkei_status_1 = User::NOT_LINKED;\n $user->renkei_status_2 = User::NOT_LINKED;\n $user->renkei_status_3 = User::NOT_LINKED;\n $user->genba_zyusyo_flg = User::GENBA_ZYUSYO_FAMILY;\n $user->guid = $guid;\n $user->syokai_knr_user_id = $dataSyoutai->knr_user_id;\n $user->touroku_cd = $dataSyoutai->syoutai_cd;\n $user->syahan_kakeritsu = User::SYAHAN_KEKARITSU_FAMILY;\n $user->regis_ymd = null;\n $user->regis_lmt_ymd = $dataUserL->regis_lmt_ymd;\n $user->pre_regis_ymd = Carbon::now()->format('Y-m-d');\n $user->pre_regis_lmt_ymd = Carbon::now()->copy()->addDays(User::DATE_LIMMIT)->format('Y-m-d');\n $user->kankei_flg = User::KANKEI_FAMILY;\n $user->admin_flg = User::USER_ADMIN;\n $user->emp_cd = User::NOT_LINKED;\n $user->del_flg = User::USER_DEL_FLG_DEFAULT;\n $user->upd_terminal_ip_addr = $ip;\n \n } else {\n /** User $user */\n $user = new User();\n\n // fill data information of user\n $user->fill($infoMember);\n\n $ip = $request->ip();\n $id = User::CH_FAMILY . $id . User::CODE_NEW_MEMBER_FAMILY.$number;\n $user->knr_user_id = HelperFunc::checkIdUserUnique(User::class,'knr_user_id',$id);\n $user->zip_no = $infoMember['zip_first'] . $infoMember['zip_second'];\n $user->regis_status = User::STT_NOT_REGIST;\n $user->company_mei = User::COMPANY_MEI_FAMILY;\n $user->kengine_status = User::NOT_LINKED;\n $user->enavi_status = User::NOT_LINKED;\n $user->lixil_online_status = User::NOT_LINKED;\n $user->renkei_status_1 = User::NOT_LINKED;\n $user->renkei_status_2 = User::NOT_LINKED;\n $user->renkei_status_3 = User::NOT_LINKED;\n $user->genba_zyusyo_flg = User::GENBA_ZYUSYO_FAMILY;\n $user->guid = $guid;\n $user->syokai_knr_user_id = $dataSyoutai->knr_user_id;\n $user->touroku_cd = $dataSyoutai->syoutai_cd;\n $user->syahan_kakeritsu = User::SYAHAN_KEKARITSU_FAMILY;\n $user->regis_ymd = null;\n $user->regis_lmt_ymd = $dataUserL->regis_lmt_ymd;\n $user->pre_regis_ymd = Carbon::now()->format('Y-m-d');\n $user->pre_regis_lmt_ymd = Carbon::now()->copy()->addDays(User::DATE_LIMMIT)->format('Y-m-d');\n $user->kankei_flg = User::KANKEI_FAMILY;\n $user->admin_flg = User::USER_ADMIN;\n $user->emp_cd = User::NOT_LINKED;\n $user->del_flg = User::USER_DEL_FLG_DEFAULT;\n $user->upd_terminal_ip_addr = $ip;\n \n }\n \n DB::beginTransaction();\n try {\n // Create member\n $user->save();\n\n /** @var Syoutai */\n $dataUpdate = array('syoutai_regis_ymd' => Carbon::now()->format('Y-m-d'));\n $dataSyoutai = Syoutai::where('syoutai_mail',$infoMember['mail'])->update($dataUpdate);\n\n DB::commit();\n } catch (Exception $ex) {\n throw $ex;\n DB::rollback();\n return redirect()->back()\n ->withErrors('error_message', Lang::trans('register.An error occurred, please try again'));\n }\n\n // send mail confirm\n $dateend = Carbon::now()->addDays(User::DATE_LIMMIT)->format('Y-m-d');\n $year = substr($dateend,0,4);\n $month = substr($dateend,5,2);\n $day = substr($dateend,8,2);\n\n Mail::to($infoMember['mail'] )->queue(new EmailQueue(\n 'mails.confirm-register-family',\n Lang::get('register.sub_register_family'),\n [\n 'guid' => $guid,\n 'name' => $user->sei_local . ' ' . $user->mei_local,\n 'date_limit' => $year.'年'.$month.'月'.$day.'日',\n ]\n ));\n return redirect('thanks-rgister-family');\n }", "function register(){\n //El $this->load->view(); sirve para cargar una vista en el navegador.(\n $this->load->model(\"User_mdl\",\"User_mdl\",true);\n $username = $this->input->post(\"user\");\n $firstname = $this->input->post(\"first_name\");\n $lastname = $this->input->post(\"last_name\");\n $password = $this->input->post(\"password\");\n $confirmPassword = $this->input->post(\"confirmpassword\");\n $email = $this->input->post(\"email\");\n $secquestion1 = $this->input->post(\"secquestion1\");\n $secanswer1 = $this->input->post(\"secanswer1\");\n $code = $this->input->post(\"codeemployee\");\n $confirm = $this->input->post(\"confirmcode\");\n $check = $this->User_mdl->check_register($username, $email);\n if(!$check){\n if($username!=\"\" || $firstname!=\"\" || $lastname!=\"\" || $password!=\"\" || $confirmPassword!=\"\" || $email!=\"\" || $secanswer1!=\"\"){\n if($confirmPassword == $password){\n if($code == $confirm && $code == \"empleado\"){\n $rolebd = '\"employee\"';\n $this->User_mdl->register_user($username, $firstname, $lastname, $password, $email, $secquestion1, $secanswer1, $rolebd);\n $this->load->helper('url');\n redirect('/');\n return;\n }\n $rolebd = '\"students\"';\n $this->User_mdl->register_user($username, $firstname, $lastname, $password, $email, $secquestion1, $secanswer1, $rolebd);\n $this->load->helper('url');\n redirect('/');\n }\n }\n }else{\n echo \"<h4 class='text-center danger'>Usuario y Email Existentes</h4>\";\n $this->load->view('head');\n $this->load->view('welcome_message');\n $this->load->view('footer');\n }\n }", "public function register() {\n\t\t\tif($this->Session->read('Auth.User.id')){\n\t\t\t\t$this->redirect('/');\n\t\t\t}\n\t\t\telse {\n\n\t\t\t\tif(!empty($this->request->data)){\n\n\t\t\t\t\t$this->User->create($this->request->data);\n\t\t\t\t\t// Validation des données\n\t\t\t\t\tif($this->User->validates()) {\n\n\t\t\t\t\t\t$token = md5(time() .' - '. uniqid());\n\n\t\t\t\t\t\t$this->User->create(array(\n\t\t\t\t\t\t\t\"email\" \t\t=> $this->request->data['User']['email'],\n\t\t\t\t\t\t\t\"password\" \t\t=> $this->Auth->password($this->request->data['User']['password']),\n\t\t\t\t\t\t\t\"token\" \t\t=> $token\n\t\t\t\t\t\t\t));\n\n\t\t\t\t\t\t// Si tout est ok, on sauvegarde\n\t\t\t\t\t\t$this->User->save();\n\n\t\t\t\t\t\t// Envoie de l'email d'activation à l'utilisateur\n\t\t\t\t\t\t$CakeEmail = new CakeEmail('default');\n\t\t\t\t\t\t$CakeEmail->to($this->request->data['User']['email']);\n\t\t\t\t\t\t$CakeEmail->subject('Dezordre: Confirmation d\\'inscription');\n\t\t\t\t\t\t$CakeEmail->viewVars($this->request->data['User'] + array(\n\t\t\t\t\t\t\t'token' => $token,\n\t\t\t\t\t\t\t'id'\t=> $this->User->id,\n\n\t\t\t\t\t\t\t));\n\t\t\t\t\t\t$CakeEmail->emailFormat('text');\n\t\t\t\t\t\t$CakeEmail->template('register');\n\t\t\t\t\t\t$CakeEmail->send();\n\n\n\t\t\t\t\t\t$this->Session->setFlash(\"Votre compte à bien été créer. Un lien vous à été envoyé par email afin d'activer votre compte.\", 'alert', array('class' => 'success'));\n\t\t\t\t\t\t$this->redirect(array('controller' => 'pages', 'action' => 'display', 'home'));\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\n\t\t\t\t\telse {\n\t\t\t\t\t\t\t$this->Session->setFlash(\"Erreur, merci de corriger\", 'alert', array('class' => 'danger'));\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\t\t}", "public function registration(Request $request) {\n \n $input = $request->all();\n \t\t\n // run the validation rules on the inputs from the form\n $validator = Validator::make($input, MerchantDetail::$regisMerchantRules);\n // if the validator fails, redirect back to the form\n if ($validator->fails()) {\n\t\t \n\t\t $errors = $validator->messages()->toArray();\n $message = CustomHelper::checkEmailMobileNoExists($errors);\n \n // If validation falis redirect back to login.\n return response()->json(['success' => $this->failureStatus, 'message' => $message], $this->failureStatusCode );\n\t\t\t \n } else {\n \n $credentialDetailSave = new Credential();\n $credentialId = $credentialDetailSave->saveCredentials( $input );\n\n $addressDetailSave = new Address();\n $addressId = $addressDetailSave->saveAddress( $input );\n\n $MerchantDetailSave = new MerchantDetail();\n $MerchantId = $MerchantDetailSave->saveMerchants( $input, $addressId);\n\n if( isset( $MerchantId ) && !empty( $MerchantId ) ) { \n \n $merchantDetail = new MerchantDetail();\n $vendors = $merchantDetail->getMobileNoBasedVendorId( Input::get('mobile_number') );\n\n $merchantPoint = new MerchantPoint();\n $amt = $merchantPoint->getMerchantPoints();\n $merPoint = ( isset( $amt->amount ) && !empty( $amt->amount ) ? $amt->amount : 0 ); \n \n $MerchantZoinBal = new ZoinBalance();\n $MerchantZoinBal->merchantZoinBalanceCreate( $vendors['vendor_id'], $merPoint );\n \n if( isset( $vendors ) && !empty( $vendors ) ) {\n CustomHelper::sendEmailNotification($MerchantId, Config::get('constant.ZOINUSER.ADMIN'));\n CustomHelper::sendEmailNotification($MerchantId, Config::get('constant.ZOINUSER.MERCHANT'));\n $content = Config::get('constant.NOTIFICATION.SMS.REGISTER');\n CustomHelper::sendSmsService( Input::get('mobile_number'), $content ); // send sms\n } \n // print_r(error_get_last());\n // If Merchant save Success.\n return response()->json(['success' => $this->successStatus, 'message' => $this->printMerchantRegisterSuccess(), 'vendorId' => $vendors['vendor_id'] ], $this->successStatusCode );\t \n\n } else {\n\n // If Merchant save falis.\n return response()->json(['success' => $this->failureStatus, 'message' => $this->printMerchantRegisterFalse() ], $this->failureStatusCode );\n\n } \n \n } \n\n }", "function merchantRegister($userDetails){\n\ttry {\n\t\t$user = new MangoPay\\UserLegal();\n\t\t$user->Name \t\t\t\t\t\t\t\t\t= $userDetails['CompanyName'];\n\t\t$user->Email \t\t\t\t\t\t\t\t\t= $userDetails['Email'];\n\t\t$user->LegalPersonType \t\t\t\t\t\t\t= \"BUSINESS\";\n\t\t$user->LegalRepresentativeFirstName\t\t\t\t= $userDetails['FirstName'];\n\t\t$user->LegalRepresentativeLastName \t\t\t\t= $userDetails['LastName'];\n\t\t$user->LegalRepresentativeEmail\t\t\t\t\t= $userDetails['Email'];\n\t\t$user->HeadquartersAddress\t\t\t\t\t\t= $userDetails['Address'];\n\t\t$user->LegalRepresentativeBirthday \t\t\t\t= strtotime($userDetails['Birthday']);\n\t\t$user->LegalRepresentativeNationality\t\t\t= $userDetails['Country'];\n\t\t$user->LegalRepresentativeCountryOfResidence\t= $userDetails['Country'];\n\t\t$user->Tag\t\t\t\t\t\t\t\t\t\t= 'Merchant - ' . $userDetails['CompanyName'];\n\t\t\n\t\t//call create function\n\t\t$createdUser \t\t\t\t= $mangoPayApi->Users->Create($user);\n\t\tif(isset($createdUser->Id)) {\n\t\t\treturn $createdUser->Id;\n\t\t}\n\t\telse {\n\t\t\treturn 0;\n\t\t}\n\t}\n\tcatch(Exception $e) {\n\t\treturn $e;//error in field values\n\t}\n}", "public function register($m)\n {\n\n if (!strlen($m->email)) {\n return new Message('{\"error\": \"blank_email\", \"text\": \"Не указан email\"}');\n }\n\n // check email\n $user = new Message('{\"action\": \"load\", \"urn\": \"urn:Actor:User:System\"}');\n $user->email = $m->email;\n $r = $user->deliver();\n if (count($r)) {\n return new Message('{\"error\": \"user_exists\", \"text\": \"Пользователь с таким email существует\"}');\n }\n\n // create user\n $user = new Message('{\"action\": \"create\", \"urn\": \"urn:Actor:User:System\"}');\n $user->email = $m->email;\n\n $E = Entity::ref('Actor:User:System');\n foreach ($E->usereditfields as $fname) {\n $user->$fname = $m->$fname;\n }\n\n $user->wallet = (float) INITIAL_DEPOSIT;\n $user->bonus = (float) INITIAL_BONUS;\n\n // activate default?\n $user->active = false; // TODO CONFIGURABLE\n\n // gen pass or use provided\n if ($m->providedpassword) {\n // TODO CHECK - AND password IN $E->usereditfields\n\n if ($m->providedpassword == $m->providedpasswordcopy) {\n $user->password = $m->providedpassword;\n } else {\n return new Message('{\"error\": \"password_mismatch\", \"text\": \"Пароль в повторном введении не совпадает\"}');\n }\n } else {\n if (SIMPLEPASSWORDS === true) {\n $user->password = Security::generateSimplePassword();\n } else {\n $user->password = Security::generatePassword();\n }\n }\n $plainPassword = $user->password;\n $m->password = $plainPassword;\n $m->dynamicsalt = mt_rand(1, 2147483647);\n $user->dynamicsalt = $m->dynamicsalt;\n $hashedSaltedPassword = sha1($m->dynamicsalt . $user->password . SECURITY_SALT_STATIC);\n $user->password = $hashedSaltedPassword;\n\n if ($m->id) {\n if (ENV == 'DEVELOPMENT' || ENV == 'TEST') {\n $user->id = $m->id;\n } else {\n throw new SecurityException('Register user with provided id failed');\n }\n }\n\n\n $r = $user->deliver();\n $r->password = $plainPassword;\n unset($r->dynamicsalt);\n Broker::instance()->send($r, \"MANAGERS\", \"user.onregister\");\n\n if ($m->autologin) {\n //Log::info('autologin', 'register');\n // auto login, redirect to /account\n $l = new Message('{\"action\": \"authentificate\", \"urn\": \"urn:Actor:User:System\"}');\n $l->email = $user->email;\n $l->password = $plainPassword;\n $l->guestmode = true;\n $autologgedin = $l->deliver();\n Log::info($autologgedin, 'register');\n if ($autologgedin->error) {\n throw new Exception('Autologin failed '.$autologgedin->error);\n }\n $r->autologgedin = 'yes';\n }\n return $r;\n }", "function do_registration()\n {\n $machinery_types_id=$_POST['machinery_types'];\n $machinery_name=$_POST['maname'];\n $quantity=$_POST['quantity'];\n $modelno=$_POST['modelno'];\n $engineno=$_POST['engineno'];\n $plateno=$_POST['plateno'];\n $owner=$_POST['owner'];\n $assignedlot=$_POST['assignedlot'];\n $remark=$_POST['remark'];\n $insertedby=$this->session->userdata('user');\n $inserted_date=date('d/m/y');\n\n $info=array(\n\n 'machinery_types'=>$machinery_types_id,\n 'machinery_name'=>$machinery_name,\n 'quantity'=>$quantity,\n 'model_no'=>$modelno,\n 'engine_no'=>engineno,\n 'plate_no'=>$plateno,\n 'owner'=>$owner,\n 'assigned_lot'=>$assignedlot,\n /* 'Date_of_produce'=>$inserteddate,\n 'Store_name'=>$insertedby,*/\n 'remark'=>$remark\n\n );\n // pass data to the model\n $is_inserted=$this->machinery_model->register_machinery($info);\n if($is_inserted==true){\n $this->session->set_flashdata('msg','<div class=\"alert alert-success\"> machinary successfly registered</div>');\n redirect(base_url('index.php/machinery/register'));\n }else{\n $this->session->set_flashdata('msg','<div class=\"alert alert-warning\"> machinary not registered</div>');\n redirect(base_url('index.php/machinery/register'));\n }\n\n }", "public function new_registration()\r\n\t{\r\n\t\tif(capthca::Code_check(post::variable('security_code','is_set')))\r\n\t\t{\r\n\t\t\t//build post data\r\n\t\t\t$this->username = post::variable('username','string');\r\n\t\t\t$this->email = post::variable('email','string');\r\n\t\r\n\t\t\t//Generate a random password this makes the hash even more random\r\n\t\t\t$this->salt = common::generate_random_string(16);\r\n\t\r\n\t\t\t//TODO use POST class!\r\n\t\t\t$string = $_SERVER['SERVER_NAME'].Settings::singleton()->get_setting('random_key').CMS::time().$this->username.$this->email.$this->salt;\r\n\t\t\t$this->hash = md5($string).sha1($string);\r\n\t\t\t\r\n\t\t\t$this->save_registration();\r\n\t\t\treturn $this->send_registration();\r\n\t\t}\r\n\r\n\t\treturn false;\r\n\t}", "function register() {\n $this->load->library('form_validation');\n $this->form_validation->set_rules('username','Full Name','trim|required|max_length[128]|xss_clean');\n $this->form_validation->set_rules('email','Email','trim|required|valid_email|xss_clean|max_length[128]');\n $this->form_validation->set_rules('password','Password','required|max_length[20]');\n // $this->form_validation->set_rules('isDjs','isDjs','required');\n if($this->form_validation->run() == FALSE)\n {\n echo json_encode(array('status' => \"failed\", 'msg' => \"Validation failed.\"));die;\n }\n else {\n $name = ucwords(strtolower($this->input->post('username')));\n $email = $this->input->post('email');\n $password = $this->input->post('password');\n // $isDjs = $this->input->post('isDjs'); // 1->for DJS 2-> Normal not Djs \n /* Check if the same email is already registered */\n $checkSameEmail = $this->customer_model->checkEmailExists($email);\n /* Register new user */\n if (!$checkSameEmail) {\n \n // $dj =2;\n // if($isDjs != \"\")\n // {\n // $dj = $isDjs;\n // }\n \n $userInfo = array('username' => $name, 'email' => $email, 'password' => getHashedPassword($password),/*'isDjs'=>$dj,*/ 'created_at' => date('Y-m-d H:i:s'), 'updated_at' => date('Y-m-d H:i:s'));\n\n $insert_id = $this->customer_model->register($userInfo);\n\n echo json_encode(array('status' => \"Success\", 'msg' => \"User registered successfully.\"));die;\n } else {\n echo json_encode(array('status' => \"failed\", 'msg' => \"Same email was already registered.\"));die;\n }\n }\n\n exit(1);\n }", "public function register_post()\n {\n\n $first_name = strip_tags($_POST['first_name']);\n $last_name = strip_tags($_POST['last_name']);\n $email = strip_tags($_POST['email']);\n $password = $_POST['password'];\n $photo_path = 'default.png';\n $phone = '';\n $create_at = time();\n $update_at = time();\n $roles = 1;\n\n $token = base64_encode(random_bytes(32));\n\n $emailConfig = [\n 'protocol' => 'smtp',\n 'smtp_host' => 'ssl://smtp.googlemail.com',\n 'smtp_user' => 'indradullanov1@gmail.com',\n 'smtp_pass' => 'emansudirman123',\n 'smtp_port' => 465,\n 'mailtype' => 'html',\n 'charset' => 'utf-8',\n 'newline' => \"\\r\\n\"\n ];\n\n if (!empty($first_name) && !empty($last_name) && !empty($email) && !empty($password)) {\n // $data['email'] = $email;\n $user_check = $this->user->check_user($email);\n\n if ($user_check > 0) {\n $this->response([\n 'status' => false,\n 'message' => 'Email already registered, check your email for verification'\n ], 404);\n } else {\n $data = [\n 'first_name' => $first_name,\n 'last_name' => $last_name,\n 'email' => $email,\n 'password' => password_hash($password, PASSWORD_DEFAULT),\n 'photo_profile_path' => $photo_path,\n 'phone' => $phone,\n 'create_at' => $create_at,\n 'update_at' => $update_at,\n 'is_active' => 0,\n 'roles' => $roles,\n 'deleted_at' => '',\n 'last_login' => ''\n ];\n\n $insertdata = $this->user->insertdata($data);\n\n if ($insertdata) {\n\n $this->email->initialize($emailConfig);\n $this->email->from('indradullanov1@gmail.com', 'User Activation');\n $this->email->to($email);\n $this->email->subject('Account Verification');\n $this->email->message('Click this link to verify you account : <a href=\"' . base_url() . 'auth/verify?email=' . $email . '&token=' . urlencode($token) . '\">Activate</a>');\n if ($this->email->send()) {\n $this->response([\n 'status' => true,\n 'message' => 'Success registered, please check email for verification your account'\n ], 200);\n } else {\n $this->response([\n 'status' => false,\n 'message' => 'Failed to register'\n ], 404);\n }\n } else {\n $this->response([\n 'status' => false,\n 'message' => 'Failed to register'\n ], 404);\n }\n }\n } else {\n $this->response([\n 'status' => false,\n 'message' => 'Something wrong'\n ], 404);\n }\n }", "public function showRegistrationForm()\n {\n // $customer = [\n // 'is_vendor' => 'vendor_val',\n // 'is_user' => 'user_val',\n // 'is_pwd' => 'pwd_val',\n // 'name' => 'name_val',\n // 'email' => 'email_val',\n // 'company' => 'company_val',\n // 'address1' => 'address1_val',\n // 'phone' => 'phone_val',\n // 'region' => 'region_val',\n // 'country' => 'country_val',\n // 'postalcode' => 'postalcode_val',\n // 'city' => 'city_val',\n // ];\n\n // dd($customer['phone']);\n \n // $client = new Client();\n // $res = $client->get('http://quicklicensemanager.com/qlmdemov11/qlmLicenseServer/qlmservice.asmx/GetActivationKeyWithExpiryDate?is_productid=1&is_majorversion=1&is_minorversion=0&is_expduration=30');\n // // echo $res->getStatusCode(); // 200\n // echo $res->getBody(); // { \"type\": \"User\", .\n\n\n\n if (!Auth::guard($this->getGuard())->guest()) {\n return Redirect::to($this->redirectPath());\n }\n\n// $dataArray = [\n// 'param' => [\n// 'countries' => trans('common.countries'),\n// 'provinces' => json_encode(trans('common.provinces')),\n// 'partners' => trans('common.partners') \n// ]\n// ];\n \n // if ($request->isMethod('post')) {\n\n // $validator = $this->validatorRegister($request->all());\n\n // if ($validator->fails()) {\n // $request->flash();\n // return view('user.auth.register', $dataArray)\n // ->withErrors($validator)\n // ->withInput($request->input());\n // }\n\n // if (!Captcha::check($request->captcha)) {\n // $request->flash();\n // return view('user.auth.register', $dataArray)->withErrors($validator)\n // ->withInput($request->input())\n // ->with('errorMsg', trans('common.error.invalid_captcha'));\n // }\n\n // try {\n\n // $customer = User::where(['email' => $request->email])->first();\n // // if already exist show the reload the resiter page with already_exists message\n // if (!empty($customer)) {\n\n // $errorMsg = trans('common.error.already_exists');\n // $errorMsg = str_replace('%1', trans('customer.label_email'), $errorMsg);\n // $errorMsg = str_replace('%2', $request->email, $errorMsg);\n\n // $request->flash();\n // return view('user.auth.register', $dataArray)\n // ->withErrors($validator)\n // ->withInput($request->input())\n // ->with('errorMsg', $errorMsg);\n // }\n\n // // if it gets to this point then create the user.\n // $ret = $this->createUser($request->all());\n // // Auth::guard($this->getGuard())->login($ret);\n\n // $emailConfig = $this->getConfig('email');\n // if ($emailConfig && !empty($emailConfig['sender_email'])) {\n\n // // Thanks email to the registered user\n // Mail::send('user.emails.register_thanks', [], function ($message) use($request, $emailConfig) {\n\n // $message->from($emailConfig['sender_email'], empty($emailConfig['sender_name']) ? trans('email.config.sender_name') : $emailConfig['sender_name']);\n // // $message->to($request->email)->subject(trans('email.subject.customer_register_thanks'));\n // $message->to($request->email)->subject( 'Thank You for Your Request to Retrive Your SBCC License Key' );\n\n // });\n\n // // Notification email to admin/group of new user registration\n // if (!empty($emailConfig['email_group_registration_notification'])) {\n // $data = [\n // 'first_name' => $request->first_name,\n // 'last_name' => $request->last_name,\n // 'email' => $request->email,\n // 'phone' => $request->phone,\n // 'organization_name' => $request->shool_name,\n // 'address' => $request->address,\n // 'city' => $request->city,\n // 'state' => $request->state,\n // 'zip_code' => $request->zip_code\n // // 'partner_type' => getPartnerTypeById($request->partner_type),\n // // 'referred_person' => $request->referred_person,\n // ];\n // Mail::send('user.emails.register_notification', $data, function ($message) use($emailConfig) {\n // \n // if (strpos($emailConfig['email_group_registration_notification'], \",\")){\n // $addrArray = explode(',', $emailConfig['email_group_registration_notification']);\n // foreach ($addrArray as $k => $v) {\n // $addrArray[$k] = trim($v);\n // }\n // \n // }else {\n // $addrArray[0] = trim($emailConfig['email_group_registration_notification']);\n // }\n\n // $message->from($emailConfig['sender_email'], empty($emailConfig['sender_name']) ? trans('email.config.sender_name') : $emailConfig['sender_name']);\n // $message->to($addrArray)->subject(trans('email.subject.customer_register_notification'));\n\n // });\n // }\n\n // }\n\n // return view('user.auth.register_thanks');\n\n // } catch (Exception $e) {\n // \n // return view('user.auth.register', $dataArray)->with('errorMsg', trans('common.error.db_save_failed'));\n\n // }\n // }\n\n // return view('user.auth.register', $dataArray);\n return view('user.auth.register');\n }", "public function userRegistration($data){\n\t\t\t$name = $data['name'];\n\t\t\t$username = $data['username'];\n\t\t\t$email = $data['email'];\n\t\t\t$password = $data['password'];\n\n\t\t\t$chk_email = $this->checkEmail($email);\n\n\n\n\t\t\tif ($name ==\"\" OR $username ==\"\" OR $email ==\"\" OR $password ==\"\"){\n\t\t\t\t$msg = \"<span class='alert alert-danger'><strong>*</strong> Field must not be empty!</span>\" ;\n\n\t\t\t\treturn $msg;\n\t\t\t}\n\n\t\t\tif (strlen($username) < 3){\n\t\t\t\t$msg = \"<span class='alert alert-danger'><strong>*</strong> Username is too short!</span>\" ;\n\n\t\t\t\treturn $msg;\n\n\t\t\t}elseif(preg_match('/[^a-z0-9_-]+/i',$username)){\n\t\t\t\t$msg = \"<span class='alert alert-danger'><strong>*</strong> Username must contain only alphanumeric,dashes,underscore!</span>\" ;\n\n\t\t\t\treturn $msg;\n\n\t\t\t}\n\n\t\t\tif (filter_var($email,FILTER_VALIDATE_EMAIL) === false){\n\t\t\t\t$msg = \"<span class='alert alert-danger'><strong>*</strong>Invalid email!</span>\" ;\n\n\t\t\t\treturn $msg;\n\t\t\t}\n\n\t\t\tif ($chk_email == true){\n\t\t\t\t$msg = \"<span class='alert alert-danger'><strong>*</strong>Email already exist!</span>\" ;\n\n\t\t\t\treturn $msg;\n\t\t\t}\n\n\t\t\tif (strlen($password) < 6){\n\t\t\t\t$msg = \"<span class='alert alert-danger'><strong>*</strong>Password should be 6 or more characters!</span>\" ;\n\n\t\t\t\treturn $msg;\n\t\t\t}\n\n\n\t\t\t$sql = \"INSERT INTO tbl_user(Name, Username, Email, Password)\n\t\t\tVALUES(:Name, :Username, :Email, :Password)\";\n\t\t\t$query = $this->db->conn->prepare($sql);\n\n\t\t\t$query->bindValue(\":Name\", $name);\n\t\t\t$query->bindValue(\":Username\", $username);\n\t\t\t$query->bindValue(\":Email\", $email);\n\t\t\t$query->bindValue(\":Password\", md5($password));\n\t\t\t$result = $query->execute();\n\n\t\t\tif ($result){\n\t\t\t\t$msg = \"<span class='alert alert-success'><strong>*</strong>Registered successfully!</span>\" ;\n\n\t\t\t\treturn $msg;\n\t\t\t}\n\n\t\t}" ]
[ "0.7327455", "0.72309893", "0.70205325", "0.69993407", "0.6900392", "0.6837023", "0.68263656", "0.6782659", "0.6754651", "0.6750414", "0.6743832", "0.6724283", "0.6714291", "0.66852146", "0.666885", "0.6636891", "0.660642", "0.66039693", "0.660278", "0.6598729", "0.6564416", "0.65299094", "0.6526295", "0.6526234", "0.6517699", "0.6510202", "0.64954776", "0.6476327", "0.6468583", "0.6468095", "0.64653015", "0.6460423", "0.6455797", "0.6454923", "0.64343315", "0.6433775", "0.64296484", "0.64273334", "0.6426489", "0.64253837", "0.6418017", "0.64137626", "0.63811797", "0.63745385", "0.6371931", "0.6371482", "0.6366173", "0.6362998", "0.63466483", "0.6344111", "0.63416123", "0.63408136", "0.63286245", "0.6325444", "0.63240796", "0.63144016", "0.6312192", "0.6307772", "0.6302634", "0.6297582", "0.62955874", "0.62929374", "0.62895113", "0.6287697", "0.62863195", "0.6286211", "0.6285329", "0.6285173", "0.6279181", "0.6278654", "0.6275674", "0.6275093", "0.62710047", "0.62689704", "0.62680584", "0.62628233", "0.6249596", "0.6247606", "0.6246497", "0.62433696", "0.6242762", "0.6238469", "0.6236867", "0.62365353", "0.6231356", "0.62307954", "0.6220968", "0.621698", "0.6213211", "0.6210556", "0.62068003", "0.6205778", "0.62051004", "0.61984676", "0.6190442", "0.6181914", "0.6170637", "0.61705834", "0.61686236", "0.616247" ]
0.64785445
27
onRegistrationInitialize Generate and set SMS confirmation code (should be tokenized) Sets a random password to prohibit logon
public function onRegistrationInitialize(GetResponseUserEvent $event) { $user = $event->getUser(); $tokenGenerator = $this->container->get('fos_user.util.token_generator'); $password = substr($tokenGenerator->generateToken(), 0, 8); // 8 chars $password = '1234'; $smscode = (int) ( rand(10,99).''.rand(10,99) ); #.''.rand(10,99) ); $user->setPlainPassword( $password ); $user->setSmsValidationCode( $smscode ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function generateEmailConfirmToken()\n {\n $this->email_confirm_token = Yii::$app->security->generateRandomString();\n }", "public function generatePasswordResetToken()\n {\n $this->password = Yii::$app->security->generateRandomString() . '_' . time();\n }", "public static function generatePhoneConfirmationToken()\n\t{\n\t\tfor($i=0; $i<8; $i++)\n\t\t\t$tmp .= rand(0, 9);\n\n\t\treturn $tmp;\n\t}", "public function __construct()\n {\n $this->rememberIdentifier = bin2hex(random_bytes(32));\n $this->enabled = '0';\n $this->confirmationToken = bin2hex(random_bytes(32));\n }", "public function generateAccountActivationToken()\n {\n $this->account_activation_token = Yii::$app->security->generateRandomString();\n }", "public function generateEmailVerificationToken()\n {\n $this->verification_token = Yii::$app->security->generateRandomString() . '_' . time();\n }", "public function generateEmailVerificationToken()\n {\n $this->verification_token = Yii::$app->security->generateRandomString() . '_' . time();\n }", "public function generateEmailVerificationToken()\n {\n $this->verification_token = Yii::$app->security->generateRandomString() . '_' . time();\n }", "public function generatePasswordResetToken()\n {\n $this->password_reset_token = UsniAdaptor::app()->security->generateRandomString() . '_' . time();\n }", "public function onRegistrationConfirm(GetResponseUserEvent $event) {\n\t\trequire_once('UKM/inc/password.inc.php');\n\t\t\n\t\t$tokenGenerator = $this->container->get('fos_user.util.token_generator');\n\t\t$password = UKM_ordpass(true); // true gives numbers before words\n\t\t$event->getUser()->setPlainPassword( $password );\n\n \t\t$text = $this->container->getParameter('ukmdelta.sms.password.created');\n\t\t\n\t\t$UKMSMS = $this->container->get('ukmsms');\n try {\n\t $UKMSMS->sendSMS( $event->getUser()->getPhone(), str_replace('#code', $password, $text) );\n\t } catch( Exception $e ) {\n\t\t $this->container->get('session')->getFlashBag()->add('error', 'Kunne ikke sende engangskode på SMS ('.$e->getMessage().')');\n\t }\n\n\t}", "public function generatePasswordResetToken(): void\n {\n $this->password_reset_token = Yii::$app->security->generateRandomString() . '_' . time();\n }", "public function generatePasswordResetToken()\n {\n $this->pwd_reset_token = Yii::$app->security->generateRandomString() . '_' . time();\n }", "public function generatePasswordResetToken() {\n\t\t$this->txt_password_reset_token = Yii::$app->security->generateRandomString () . '_' . time ();\n\t}", "public function generatePasswordResetToken() {\n $this->password_reset_token = Yii::$app->security->generateRandomString();\n }", "public function generatePasswordResetToken()\n {\n $this->password_reset_token = Yii::$app->getSecurity()->generateRandomString() . '_' . time();\n }", "public function generatePasswordResetToken()\n {\n $this->passwordResetToken = Yii::$app->security->generateRandomString() . '_' . time();\n }", "public function generatePasswordResetToken()\r\n {\r\n $this->password_reset_token = Yii::$app->getSecurity()->generateRandomString() . '_' . time();\r\n }", "public function generatePasswordResetToken(){\n $this->password_reset_token = Yii::$app->security->generateRandomString() . '_' . time();\n }", "public function generatePasswordResetToken()\n {\n $this->reset_token = \"P\" . Yii::$app->security->generateRandomString() . '_' . time();\n }", "public function generatePasswordResetToken()\n {\n $this->password_reset_token = Security::instance()->generateRandomString() . '_' . time();\n }", "public function generatePasswordResetToken()\n {\n $this->password_reset_token = Yii::$app->security->generateRandomString() . '_' . time();\n }", "public function generatePasswordResetToken()\n {\n $this->password_reset_token = Yii::$app->security->generateRandomString() . '_' . time();\n }", "public function generatePasswordResetToken()\n {\n $this->password_reset_token = Yii::$app->security->generateRandomString() . '_' . time();\n }", "public function generatePasswordResetToken()\n {\n $this->password_reset_token = Yii::$app->security->generateRandomString() . '_' . time();\n }", "public function generatePasswordResetToken()\n {\n $this->password_reset_token = Yii::$app->security->generateRandomString() . '_' . time();\n }", "public function generatePasswordResetToken()\n {\n $this->password_reset_token = Yii::$app->security->generateRandomString() . '_' . time();\n }", "public function generatePasswordResetToken()\n {\n $this->password_reset_token = Yii::$app->security->generateRandomString() . '_' . time();\n }", "public function generatePasswordResetToken()\n {\n $this->password_reset_token = Yii::$app->security->generateRandomString() . '_' . time();\n }", "public function generatePasswordResetToken()\n {\n $this->password_reset_token = Yii::$app->security->generateRandomString() . '_' . time();\n }", "public function generatePasswordResetToken()\n {\n $this->password_reset_token = Yii::$app->security->generateRandomString() . '_' . time();\n }", "public function generatePasswordResetToken()\n {\n $this->password_reset_token = Yii::$app->security->generateRandomString() . '_' . time();\n }", "public function generatePasswordResetToken()\n {\n $this->password_reset_token = Yii::$app->security->generateRandomString() . '_' . time();\n }", "public function generatePasswordResetToken()\n {\n $this->password_reset_token = Yii::$app->security->generateRandomString() . '_' . time();\n }", "public function generatePasswordResetToken()\n {\n $this->password_reset_token = Yii::$app->security->generateRandomString() . '_' . time();\n }", "public function generatePasswordResetToken()\n {\n $this->password_reset_token = Yii::$app->security->generateRandomString() . '_' . time();\n }", "public function generatePasswordResetToken()\n {\n $this->password_reset_token = Yii::$app->security->generateRandomString() . '_' . time();\n }", "public function generatePasswordResetToken()\n {\n $this->password_reset_token = Yii::$app->security->generateRandomString() . '_' . time();\n }", "public function generatePasswordResetToken()\n {\n $this->password_reset_token = Yii::$app->security->generateRandomString() . '_' . time();\n }", "public function generatePasswordResetToken()\n {\n $this->password_reset_token = Yii::$app->security->generateRandomString() . '_' . time();\n }", "public function generatePasswordResetToken()\n {\n $this->password_reset_token = Yii::$app->security->generateRandomString() . '_' . time();\n }", "public function generatePasswordResetToken()\n {\n $this->password_reset_token = Yii::$app->security->generateRandomString() . '_' . time();\n }", "public function generatePasswordResetToken()\n {\n $this->password_reset_token = Yii::$app->security->generateRandomString() . '_' . time();\n }", "public function generatePasswordResetToken()\n {\n $this->password_reset_token = Yii::$app->security->generateRandomString() . '_' . time();\n }", "public function generatePasswordResetToken()\n {\n $this->password_reset_token = Yii::$app->security->generateRandomString() . '_' . time();\n }", "public function generatePasswordResetToken()\r\n {\r\n $this->password_reset_token = Yii::$app->security->generateRandomString() . '_' . time();\r\n }", "public function generatePasswordResetToken() {\n $this->password_reset_token = Yii::$app->security->generateRandomString() . '_' . time();\n }", "public function generatePasswordResetToken() {\n $this->password_reset_token = Yii::$app->security->generateRandomString() . '_' . time();\n }", "public function generatePasswordResetToken() {\n $this->password_reset_token = Yii::$app->security->generateRandomString() . '_' . time();\n }", "public function generatePasswordResetToken()\n {\n $this->password_reset_token = Yii::$app->security->generateRandomString() . '_' . time();\n }", "public function generatePasswordResetToken()\n\t{\n\t\t$this->password_reset_token = Yii::$app->security->generateRandomString() . '_' . time();\n\t}", "public function createVerificationCode()\n {\n return $code = random_int(config('twilio-verify.random_int.initial_value'), config('twilio-verify.random_int.final_value'));\n }", "public function initPassword() {\n\t\t$this->salt = mt_rand();\n\t\t$clearPassword = mt_rand();\n\t\t$this->password = sha1($this->salt . $clearPassword);\n\t\treturn $clearPassword;\t\n\t}", "public function generate() {\n\n /** @var $code String generate code */\n\n $code = (new Users())->phoneNumber_GenerateCode();\n\n /** @var $user Array get the details of a current user */\n\n $user = (new Users())->current_user();\n\n /**\n * @var $phone_format String format mobile phone number\n * to non space and non special character format\n */\n\n $phone_format = preg_replace(\"/[\\W\\s]/m\",\"\",$user['CP']);\n\n /** @var $template String a message to send **/\n\n $template = \"From SCOA, use this code to verify your account '{$code}' \";\n\n /** @void send sms and notify the current user */\n\n sms::send($phone_format,$template);\n\n }", "public function generatePasswordResetToken()\n {\n $this->password_reset_token = (new Security)->generateRandomKey() . '_' . time();\n }", "public function generatePasswordResetToken()\n {\n $this->password_reset_token = Security::generateRandomKey() . '_' . time();\n }", "public function generatePasswordResetToken()\n {\n $this->password_reset_token = Security::generateRandomKey() . '_' . time();\n }", "public function generatePasswordResetToken()\n {\n $this->password_reset_token = Security::generateRandomKey() . '_' . time();\n }", "protected function _generateVerificationKey() {\n\t\treturn mt_rand(111111,999999);\n\t}", "public function generatePasswordResetToken() {\n $this->password_reset_token = Security::generateRandomKey() . '_' . time();\n }", "public function generateAccessToken()\n {\n $this->verification_token = Yii::$app->security->generateRandomString($length = 16);\n }", "public function generatePasswordResetToken()\n {\n $security = new Security();\n $this->password_reset_token = $security->generateRandomKey() . '_' . time();\n }", "public function generateEmailConfirmationToken()\n\t{\n\t\treturn hash('sha512', microtime());\n\t}", "public function textToVerify()\n {\n $code = random_int(100000, 999999);\n\n $sid = config('services.twilio.sid');\n $token = config('services.twilio.token');\n $from = config('services.twilio.number');\n\n $this->forceFill([\n 'verification_code' => $code,\n 'code_sent_at' => $this->freshTimestamp(),\n ])->save();\n\n $country_code = $this->user()->country_code ?? config('auth.defaults.country_code');\n $to = strval($country_code.$this->user->phone);\n $amount = $this->amount - $this->fee;\n\n $message = \"Hello from Auric Shops! Your One Time Password for a Withdrawal of ₹\".$amount.\" is: \".$code.\" \\n For Security reasons, don't share it with anyone!\";\n\n\n $client = new Client($sid, $token);\n\n $client->messages->create(\n $to,\n [\n \"body\" => $message,\n \"from\" => $from\n ]\n );\n }", "protected function generateConfirmationCode()\n {\n $this->attributes['user_activation_key'] = Hash::make($this->user_email . time());\n\n if (is_null($this->attributes['user_activation_key']))\n return false; // failed to create user_activation_key\n else\n return true;\n }", "public function generatePasswordResetToken() {\n $this->employer_password_reset_token = Yii::$app->security->generateRandomString() . '_' . time();\n }", "private function generatePassword() {\n // account is not wide open if conventional logins are permitted\n $guid = '';\n\n for ($i = 0; ($i < 8); $i++) {\n $guid .= sprintf(\"%x\", mt_rand(0, 15));\n }\n\n return $guid;\n }", "public function generate_recovery_mode_token()\n {\n }", "function wp_ajax_nopriv_generate_password()\n {\n }", "function generateActivationToken($gen = null) // used in: class.newuser.php, user-resend-activation.php\r\n\r\n{\r\n\r\n\tdo\r\n\r\n\t{\r\n\r\n\t\t$gen = md5(uniqid(mt_rand(), false));\r\n\r\n\t}\r\n\r\n\twhile(validateActivationToken($gen)); // this function is on line 1310, or close\r\n\r\n\treturn $gen;\r\n\r\n}", "private function tokenInit()\n {\n $tempSession = uniqid();\n echo \"************************************************* MONZO AUTHENTICATION WORKFLOW ***********************************************************\\n\";\n echo \"Please visit the following URL in your browser and follow instructions \\n\";\n echo \"###########\\n\";\n echo \"\\n\";\n echo \"https://auth.monzo.com/?client_id=$this->clientId&redirect_uri=$this->redirectUri&response_type=code&state=$tempSession \\n\";\n echo \"\\n\";\n echo \"###########\\n\";\n echo \"When you get email from Monzo, copy the link button (Right click -> Copy link Location) from the email and paste here. Do not click it. \\n\";\n echo \"*********************************************************************************************************************************************\\n\";\n $verificationUrl = readline(\"Email link: \");\n parse_str(parse_url($verificationUrl, PHP_URL_QUERY) , $urlParams);\n if (array_key_exists('code', $urlParams) && array_key_exists('state', $urlParams))\n {\n if ($urlParams['state'] === $tempSession)\n {\n $data = array(\n 'grant_type' => 'authorization_code',\n 'client_id' => $this->clientId,\n 'client_secret' => $this->clientSecret,\n 'redirect_uri' => $this->redirectUri,\n 'code' => $urlParams['code']\n );\n $tokenData = $this->getJson('/oauth2/token', $data, false);\n if (isset($tokenData['access_token']) && isset($tokenData['refresh_token']))\n {\n $this->bearerToken = $tokenData['access_token'];\n $this->refreshToken = $tokenData['refresh_token'];\n if ($this->validateTokens())\n {\n $this->storeTokens($tokenData['access_token'], $tokenData['refresh_token']);\n }\n else\n {\n syslog(LOG_ERR, \"Monzo: Newly created tokens not valid\");\n throw new Exception('Monzo: Newly created Tokens not valid');\n }\n }\n else\n {\n syslog(LOG_ERR, \"Monzo: Tokens not found\");\n throw new Exception('Monzo: Tokens not found');\n }\n }\n else\n {\n syslog(LOG_ERR, \"Monzo: State does not match the one that was sent to Monzo.\");\n throw new Exception('Monzo: State does not match the one that was sent to Monzo.');\n }\n }\n else\n {\n syslog(LOG_ERR, \"Monzo: Code and State ids not found in the email URL\");\n throw new Exception('Monzo: Code and State ids not found in the email URL');\n }\n }", "public function generateConfirmationCode()\n {\n return h(str_random(30));\n }", "function send_auth_code_at_login($user)\n{\n\t$user_info = get_userdata($user);\n\t\n\t$user_login = $user_info->data->user_login;\n\n\t$user_email = $user_info->data->user_email;\t\n\n\t$user_name = $user_info->data->first_name;\t\n\n\t$user_phone = get_user_meta( $user, 'user_phone', true );\n\t//$user_phone = urldecode($u_phone);\n\n\t$user_fname = get_user_meta( $user, 'first_name', true );\n\n\t$code = get_user_meta( $user, 'has_to_be_activated', true );\n\n\t$subject = 'Your New Authentication Code';\n\n\n\t$message1 = \"<html><body style='background:#f3f3f3;padding:20px 0;'><table border='0' cellpadding='0' cellspacing='0' style='margin:auto; max-width: 520px;width:100%;font-family: Arial;padding:20px;background:#fff;'><tbody>\";\n\t$message1 .=\"<tr><td style='font-size: 16px;'>Hello \".ucfirst($user_fname).\",</td></tr><tr height=20></tr>\";\n\t$message1 .=\"<tr><td style='font-size: 16px; line-height: 20px;'>Welcome to Raise it Fast!</td></tr><tr height=30></tr>\";\n\t$message1 .=\"<tr><td style='font-size: 16px; line-height: 20px;'>Please use this code to authenticate your account with Raise it Fast. <span style='background: #aaaaaa none repeat scroll 0 0;height: 45px;text-align: center;width: 101px;'>\".$code.\"</span></td></tr><tr height=20></tr>\";\n\t$message1 .=\"<tr><td style='font-size: 16px; line-height: 20px;'>'If you have any questions or concerns don't hesitate to use our website chat function, call us, or email us by going to our help page at \".site_url('/contact-us/').\" Or, you can simply reply to this email. '</td></tr><tr height=30></tr>\"; \n\t$message1 .=\"<tr><td style='font-size: 16px; margin-top: 20px;'>Thanks for becoming a part of the Raise It Fast community! </td></tr></tbody></table><table border='0' cellpadding='0' cellspacing='0' style='margin:20px auto 0; max-width: 520px;width:100%;'>\"; \n\n\t$message1 .=\"<tr><td style='color: #999999; font-size: 12px; text-align: center;'>1401 Lavaca St #503, Austin, TX 78701</td></tr><tr height=20></tr>\"; \n\t$message1 .=\"<tr><td style='color: #999999; font-size: 12px; text-align: center;'><a href=\".site_url().\" style='text-decoration:none; color: #999999;'>The Raise it Fast Team</a></td></tr>\"; \n\t$message1 .=\"</table></body></html>\";\n\n\twp_mail($user_email, $subject, $message1);\n\n//=========Send Auth Code Via Text message ==================//\n\n\t$account_sid = get_option('twilio_account_sid'); \n\t$auth_token = get_option('twilio_auth_token'); \n //require('lib/twilio-php-latest/Services/Twilio.php');\n\t$client = new Services_Twilio($account_sid, $auth_token); \n //$from = '+12182265630'; \n\t$from = get_option('twilio_phone_no');\n\n\ttry\n\t{\n\t\t$client->account->messages->sendMessage( $from, $user_phone, \"Hello $user_fname, Your Authentication code is $code\");\n\t}\n\tcatch (Exception $e)\n\t{ \n\n\t\techo \"11-\";\n\t}\n}", "function cng_pwd_token() {\n $token = bin2hex(random_bytes(32));\n $_SESSION['cng_pwd_token'] = $token;\n return $token;\n }", "abstract protected function getConfirmationSecret();", "function psswrdhsh_activate()\n{\n\tglobal $lang, $mybb;\n\n\tif (psswrdhsh_core_edits('activate') === false) {\n\t\tpsswrdhsh_uninstall();\n\n\t\tflash_message($lang->error_pwh_activate, 'error');\n\t\tadmin_redirect('index.php?module=config-plugins');\n\t}\n\t\n\t// assume core edits succeeded\n\t\n\tif ($mybb->settings['regtype'] == \"randompass\") {\n\t\t\n\t\t// Sending the user a random password, which thus becomes _their_ password\n\t\t// for at least some amount of time, in plain text across media that may or\n\t\t// may not be secure and/or confidential is just an absolutely braindamaged\n\t\t// idea that should never, ever be used on a modern site. </endrant>\n\n\t\t$decent_regtype_optionscode = \"select\ninstant=Instant Activation\nverify=Send Email Verification\nadmin=Administrator Activation\nboth=Email Verification & Administrator Activation\";\n\t\t\n\t\t\n\t\t$db->update_query(\"settings\", [\"value\" => \"verify\"], \"name = 'regtype'\");\n\t\t$db->update_query(\"settings\", [\"optionscode\" => $decent_regtype_optionscode], \"name = 'regtype'\");\n\t\trebuild_settings();\n\t}\n\t\n\tif (!$mybb->settings[\"requirecomplexpasswords\"]) {\n\t\t$db->update_query(\"settings\", [\"value\" => 1], \"name = 'requirecomplexpasswords'\");\n\t\trebuild_settings();\n\t}\n\t\n\t// Since we're requiring complex passwords, the min length should already be\n\t// considered 8 in the core, so that part is alright. But let's remove the unnecessary\n\t// ceiling to the password length, since bcrypt will work with the first 72\n\t// characters of input and 72 bytes really isn't all that much data to send.\n\t\n\tif ($mybb->settings[\"maxpasswordlength\"] < 72) {\n\t\t$db->update_query(\"settings\", [\"value\" => 72], \"name = 'maxpasswordlength'\");\n\t\trebuild_settings();\n\t}\n\t\n\t// redirect back informing the admin of any settings we changed\n\tflash_message($lang->pwh_activate_regtype_changed, 'error');\n\tadmin_redirect('index.php?module=config-plugins');\n}", "public static function generarVerificationToken(){\n return str_random(40);\n }", "function signup_token() {\n $token = bin2hex(random_bytes(32));\n $_SESSION['signup_token'] = $token;\n return $token;\n }", "function new_pwd_token() {\n $token = bin2hex(random_bytes(32));\n $_SESSION['new_pwd_token'] = $token;\n return $token;\n }", "public static function generateToken()\r\n {\r\n $_SESSION['CSRF_TOKEN'] = bin2hex(openssl_random_pseudo_bytes(32));\r\n }", "public function oauthGenerateVerificationCode()\n {\n return substr(md5(rand()), 0, 6);\n }", "public function generateEmailResetToken()\n {\n $this->reset_token = \"E\" . Yii::$app->security->generateRandomString() . '_' . time();\n }", "function generatePassword() {\n // 57 prefixes\n $aPrefix = array('aero', 'anti', 'ante', 'ande', 'auto', \n 'ba', 'be', 'bi', 'bio', 'bo', 'bu', 'by', \n 'ca', 'ce', 'ci', 'cou', 'co', 'cu', 'cy', \n 'da', 'de', 'di', 'duo', 'dy', \n 'eco', 'ergo', 'exa', \n 'geo', 'gyno', \n 'he', 'hy', 'ki',\n 'intra', \n 'ma', 'mi', 'me', 'mo', 'my', \n 'na', 'ni', 'ne', 'no', 'ny', \n 'omni', \n 'pre', 'pro', 'per', \n 'sa', 'se', 'si', 'su', 'so', 'sy', \n 'ta', 'te', 'tri',\n 'uni');\n\n // 30 suffices\n $aSuffix = array('acy', 'al', 'ance', 'ate', 'able', 'an', \n 'dom', \n 'ence', 'er', 'en',\n 'fy', 'ful', \n 'ment', 'ness',\n 'ist', 'ity', 'ify', 'ize', 'ise', 'ible', 'ic', 'ical', 'ous', 'ish', 'ive', \n 'less', \n 'sion',\n 'tion', 'ty', \n 'or');\n\n // 8 vowel sounds \n $aVowels = array('a', 'o', 'e', 'i', 'y', 'u', 'ou', 'oo'); \n\n // 20 random consonants \n $aConsonants = array('w', 'r', 't', 'p', 's', 'd', 'f', 'g', 'h', 'j', \n 'k', 'l', 'z', 'x', 'c', 'v', 'b', 'n', 'm', 'qu');\n\n // Some consonants can be doubled\n $aDoubles = array('n', 'm', 't', 's');\n\n // \"Salt\"\n $aSalt = array('!', '#', '%', '?');\n\n $pwd = $aPrefix[array_rand($aPrefix)];\n\n // add random consonant(s)\n $c = $aConsonants[array_rand($aConsonants)];\n if ( in_array( $c, $aDoubles ) ) {\n // 33% chance of doubling it\n if (rand(0, 2) == 1) { \n $c .= $c;\n }\n }\n $pwd .= $c;\n\n // add random vowel\n $pwd .= $aVowels[array_rand($aVowels)];\n\n $pwdSuffix = $aSuffix[array_rand($aSuffix)];\n // If the suffix begins with a vovel, add one or more consonants\n if ( in_array( $pwdSuffix[0], $aVowels ) ) {\n $pwd .= $aConsonants[array_rand($aConsonants)];\n }\n $pwd .= $pwdSuffix;\n\n $pwd .= rand(2, 999);\n # $pwd .= $aSalt[array_rand($aSalt)];\n\n // 50% chance of capitalizing the first letter\n if (rand(0, 1) == 1) {\n $pwd = ucfirst($pwd);\n }\n return $pwd;\n }", "function generatePassword() {\n\t//* (c) Hitech Scripts 2003\n\t//* For more information, visit http://www.hitech-scripts.com\n\t//* modified for phpgiftreg by Chris Clonch\n\tmt_srand((double) microtime() * 1000000);\n\t$newstring = \"\";\n\tif ($GLOBALS[\"OPT\"][\"password_length\"] > 0) {\n\t\twhile(strlen($newstring) < $GLOBALS[\"OPT\"][\"password_length\"]) {\n\t\t\tswitch (mt_rand(1,3)) {\n\t\t\t\tcase 1: $newstring .= chr(mt_rand(48,57)); break; // 0-9\n\t\t\t\tcase 2: $newstring .= chr(mt_rand(65,90)); break; // A-Z\n\t\t\t\tcase 3: $newstring .= chr(mt_rand(97,122)); break; // a-z\n\t\t\t}\n\t\t}\n\t}\n\treturn $newstring;\n}", "function gen_pin(){\n $rand_num = rand(6, 12);\n $permitted_chars = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';\n $pin = substr(str_shuffle($permitted_chars), 0, $rand_num);\n return $pin;\n }", "public function generateAuthKey()\n {\n $this->token = Yii::$app->security->generateRandomString(32);\n }", "public function confirmRegistration() {\n $this->form_validation->set_rules('email', 'Email', 'required');\n $this->form_validation->set_rules('temp_code', 'Temporärer Code', 'required');\n\n if ($this->form_validation->run() === FALSE) {\n \t$this->error(400, 'Validation error');\n }\n \n $this->loadUser();\n \n if ($this->user_model->getValue('temp_code') != $this->input->post('temp_code')) {\n \tlog_message('error', 'db: ' . $this->user_model->getValue('temp_code') . ' provided: ' . $this->input->post('temp_code'));\n \t$this->error(404, 'Verification error');\n }\n \n if ($this->user_model->getValue('temp_code_valid_until') < date('Y-m-d H:i:s')) {\n \t$this->error(408, 'Code timed out');\n }\n \n // if the email is confirmed, we don't care for correct or valid code\n if ($this->user_model->getValue('confirmed') == 1) {\n\t\t\t$data['confirmed'] = 'confirmed';\n\t\t\t$this->response($data);\n }\n \n $this->user_model->setValue('confirmed', 1);\n if (! $this->user_model->updateConfirmed()) {\n \t$this->error(400, 'Confirmation error');\n }\n \n $data['confirmed'] = 'confirmed';\n $this->response($data);\n }", "public function emailConfirmationToken() {\n \n $token = $this->generateSecureToken(15);\n // Check if that there isn't already a Password Reset with the same token\n while(User::where('email_confirmation_token', $token)->count() != 0) {\n // If there is already a Password Reset with the same token, generate a new one and check again\n $token = $this->generateSecureToken(15);\n }\n\n $this->email_confirmation_token = $token;\n \n return $token;\n }", "function generate_otp_code(){\n return rand(1000,9999);\n}", "public static function generatePassword() {\n\t\t$consonants = array (\n\t\t\t\t\"b\",\n\t\t\t\t\"c\",\n\t\t\t\t\"d\",\n\t\t\t\t\"f\",\n\t\t\t\t\"g\",\n\t\t\t\t\"h\",\n\t\t\t\t\"j\",\n\t\t\t\t\"k\",\n\t\t\t\t\"l\",\n\t\t\t\t\"m\",\n\t\t\t\t\"n\",\n\t\t\t\t\"p\",\n\t\t\t\t\"r\",\n\t\t\t\t\"s\",\n\t\t\t\t\"t\",\n\t\t\t\t\"v\",\n\t\t\t\t\"w\",\n\t\t\t\t\"x\",\n\t\t\t\t\"y\",\n\t\t\t\t\"z\" \n\t\t);\n\t\t$vocals = array (\n\t\t\t\t\"a\",\n\t\t\t\t\"e\",\n\t\t\t\t\"i\",\n\t\t\t\t\"o\",\n\t\t\t\t\"u\" \n\t\t);\n\t\t\n\t\t$password = '';\n\t\t\n\t\tsrand ( ( double ) microtime () * 1000000 );\n\t\tfor($i = 1; $i <= 4; $i ++) {\n\t\t\t$password .= $consonants [rand ( 0, 19 )];\n\t\t\t$password .= $vocals [rand ( 0, 4 )];\n\t\t}\n\t\t$password .= rand ( 0, 9 );\n\t\t\n\t\treturn $password;\n\t}", "public function send_sms_verification_code()\n\t{\n\t\t$user_id = Input::get('userId');\n\t\t$phone_number = Input::get('phoneNumber');\n\n\t\t// check if a verify record already exists\n\t\t$verify_record = $this->notifyRepo->smsVerificationCodeByUserId($user_id);\n\n\t\t// create the code, save it, send to user\n\t\t$verify_record = $this->notifyRepo->smsSendVerifyCode($user_id, $phone_number, $verify_record);\n\n\t\t$result = Twilio::message('+'.$phone_number, 'EriePaJobs - Your verification code is '.$verify_record->verification_code);\n\t}", "public function testCreatePasswordRecoveryToken()\n {\n }", "public final function setUp() : void {\nparent::setUp();\n\n$password = \"mypassword12\";\n$this->VALID_HASH = password_hash($password, PASSWORD_ARGON2I, [\"time_cost\" => 7]);\n$this->VALID_ACTIVATION = bin2hex(random_bytes(16));\n}", "public function generateResetpasswordKey(){\n\t\t$this->resetpassword_key = $this->passwordGenerator();\n\t}", "public static function generatePassword() {\r\n return StringGenerator::generateRandomAlphaAndNumbersAndSpecial(12);\r\n }", "public function crateSmsCode(){\n // generate a pin based on 2 * 7 digits + a random character\n $pin = mt_rand(100, 999)\n . mt_rand(100, 999);\n // shuffle the result\n $string = str_shuffle($pin);\n return $string;\n }", "function register()\n\t{\n\t\tif ($this->tank_auth->is_logged_in()) {\t\t\t\t\t\t\t\t\t// logged in\n\t\t\tredirect('');\n\n\t\t} elseif ($this->tank_auth->is_logged_in(FALSE)) {\t\t\t\t\t\t// logged in, not activated\n\t\t\tredirect('/auth/send_again/');\n\n\t\t} elseif (config_item('allow_client_registration') == 'FALSE') {\t// registration is off\n\t\t\t$this->session->set_flashdata('response_status', 'error');\n\t\t\t$this->session->set_flashdata('message', lang('auth_message_registration_disabled'));\n\t\t\tredirect('login');\n\n\t\t} else {\n\t\t\t$use_username = config_item('use_username');\n\t\t\tif ($use_username) {\n\t\t\t\t$this->form_validation->set_rules('username', lang('username'), 'trim|required|xss_clean|min_length['.config_item('username_min_length').']|max_length['.config_item('username_max_length').']');\n\t\t\t}\n $this->form_validation->set_rules('fullname', lang('full_name'), 'trim|required|xss_clean');\n\t\t\t$this->form_validation->set_rules('email', lang('email'), 'trim|required|xss_clean|valid_email');\n\t\t\t$this->form_validation->set_rules('password', lang('password'), 'trim|required|xss_clean|min_length['.config_item('password_min_length').']|max_length['.config_item('password_max_length').']');\n\t\t\t$this->form_validation->set_rules('confirm_password', lang('confirm_password'), 'trim|required|xss_clean|matches[password]');\n\n\t\t\t$captcha_registration\t= config_item('captcha_registration');\n\t\t\t$use_recaptcha\t= config_item('use_recaptcha');\n\t\t\tif ($captcha_registration == 'TRUE') {\n\t\t\t\tif ($use_recaptcha) {\n\t\t\t\t\t$this->form_validation->set_rules('recaptcha_response_field', 'Confirmation Code', 'trim|xss_clean|required|callback__check_recaptcha');\n\t\t\t\t} else {\n\t\t\t\t\t$this->form_validation->set_rules('captcha', 'Confirmation Code', 'trim|xss_clean|required|callback__check_captcha');\n\t\t\t\t}\n\t\t\t}\n\t\t\t$data['errors'] = array();\n\t\t\t$email_activation = config_item('email_activation');\n $individual = $this->input->post('company_name') == '' ? 1:0;\n\n\t\t\tif ($this->form_validation->run($this)) {\t\t\t\t\t\t\t\t// validation ok\n\t\t\t\tif (!is_null($data = $this->tank_auth->create_user(\n $use_username ? $this->form_validation->set_value('username') : '',\n $this->form_validation->set_value('email'),\n $this->form_validation->set_value('password'),\n $this->input->post('fullname'),\n '-',\n '2',\n '',\n $email_activation,\n $individual == 1 ? $this->input->post('fullname'):$this->input->post('company_name'),\n $individual\n ))) {\t // success\n\n\t\t\t\t\t$data['site_name'] = config_item('company_name');\n\n\t\t\t\t\tif ($email_activation) {\t\t\t\t\t\t\t\t\t// send \"activate\" email\n\t\t\t\t\t\t$data['activation_period'] = config_item('email_activation_expire') / 3600;\n\n\t\t\t\t\t\t$this->_send_email('activate', $data['email'], $data);\n\n\t\t\t\t\t\tunset($data['password']); // Clear password (just for any case)\n\n $this->session->set_flashdata('message', lang('auth_message_registration_completed_1'));\n \t\t\t\t\tredirect('/auth/login');\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (config_item('email_account_details') == 'TRUE') {\t// send \"welcome\" email\n\n\t\t\t\t\t\t\t$this->_send_email('welcome', $data['email'], $data);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tunset($data['password']); // Clear password (just for any case)\n\t\t\t$this->session->set_flashdata('message', lang('auth_message_registration_completed_2'));\n\t\t\t\t\t\tredirect('/auth/login');\n\t\t\t\t\t\t//$this->_show_message($this->lang->line('auth_message_registration_completed_2').' '.anchor('/auth/login/', 'Login'));\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t$errors = $this->tank_auth->get_error_message();\n\t\t\t\t\tforeach ($errors as $k => $v)\t$data['errors'][$k] = $this->lang->line($v);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($captcha_registration == 'TRUE') {\n\t\t\t\tif ($use_recaptcha) {\n\t\t\t\t\t$data['recaptcha_html'] = $this->_create_recaptcha();\n\t\t\t\t} else {\n\t\t\t\t\t$data['captcha_html'] = $this->_create_captcha();\n\t\t\t\t}\n\t\t\t}\n\t\t\t$data['use_username'] = $use_username;\n\t\t\t$data['captcha_registration'] = $captcha_registration;\n\t\t\t$data['use_recaptcha'] = $use_recaptcha;\n\t$this->load->module('layouts');\n\t$this->load->library('template');\n\t$this->template->title('Register - '.config_item('company_name'));\n\t$this->template\n\t->set_layout('login')\n\t->build('auth/register_form',isset($data) ? $data : NULL);\n\n\t\t}\n\t}", "function wp_ajax_generate_password()\n {\n }", "function user_token() {\n $token = bin2hex(random_bytes(32));\n $_SESSION['user_verify_token'] = $token;\n return $token;\n }", "public static function generateRandomPassword ()\n {\n return rand(10000, 99999);\n }", "public function testPasswordStringGeneration()\n {\n $generator = $this->getTokenGeneratorForTesting(new PseudoRandom());\n\n $resultOne = $generator->getPasswordString(20);\n $resultTwo = $generator->getPasswordString(20);\n\n $this->assertNotEquals($resultOne, $resultTwo);\n\n $resultOne = $generator->getPasswordString(20, false);\n $resultTwo = $generator->getPasswordString(20, false);\n\n $this->assertNotEquals($resultOne, $resultTwo);\n\n $generator->seedRandomGenerator(42);\n $resultOne = $generator->getPasswordString(20);\n\n $generator->seedRandomGenerator(42);\n $resultTwo = $generator->getPasswordString(20);\n\n $this->assertEquals($resultOne, $resultTwo);\n }" ]
[ "0.6584804", "0.64181626", "0.63855356", "0.6331763", "0.627644", "0.62717324", "0.62717324", "0.62717324", "0.6249721", "0.62210727", "0.62186676", "0.62156683", "0.62088174", "0.61958724", "0.6188039", "0.61834437", "0.61576223", "0.61516786", "0.6144041", "0.61360705", "0.61200345", "0.61200345", "0.61200345", "0.61200345", "0.61200345", "0.61200345", "0.61200345", "0.61200345", "0.61200345", "0.61200345", "0.61200345", "0.61200345", "0.61200345", "0.61200345", "0.61200345", "0.61200345", "0.61200345", "0.61200345", "0.61200345", "0.61200345", "0.61200345", "0.61200345", "0.61200345", "0.61200345", "0.6087247", "0.6086084", "0.6086084", "0.6086084", "0.60814667", "0.6075262", "0.60419965", "0.60332745", "0.60256857", "0.59975713", "0.59801877", "0.59801877", "0.59801877", "0.59469384", "0.59411085", "0.593481", "0.59164757", "0.5899695", "0.58873254", "0.5886009", "0.586832", "0.58673644", "0.58581114", "0.5841919", "0.5832258", "0.5825991", "0.58221", "0.582181", "0.581814", "0.581516", "0.5815113", "0.5808748", "0.57852405", "0.57850593", "0.5770247", "0.57552725", "0.57550377", "0.5747133", "0.5738831", "0.57386786", "0.5722502", "0.5720982", "0.57133585", "0.5695484", "0.5695458", "0.5694102", "0.56936485", "0.56924236", "0.5677023", "0.567451", "0.56649035", "0.56606287", "0.56558514", "0.5650559", "0.5642727", "0.56377256" ]
0.69271153
0
Authorize request if access token provided
public function peel($object, \Closure $next){ // Assuming $object is route object: if($token = $this->request->getHeader('X-Auth')){ if($user = $this->userModel->findByToken($token)){ AuthService::setUser($user); } } return $next($object); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function hasAccessToken();", "private function isAuthorized($access_token) {\n return ($access_token == self::ACCESS_TOKEN);\n }", "public function authorize(){\n $token = $this->retrieveToken(); $this->setToken($token);\n }", "public function authorize(UserToken $token);", "public function access_token() {\n\t\ttry {\n\t\t\tif ($this->request->is('post')) {\n\t\t\t\t$this->OAuth2Lib->grantAccessToken();\n\t\t\t}\n\t\t} catch(Exception $e) {\n\t\t\t$this->fail($e);\n\t\t}\n\t}", "public function is_accesstoken($accesstoken){\n $this->accessToken = false;\n\n if(!empty($accesstoken)){\n $isAuthorized = $this->wpdb->get_row( \"SELECT id FROM {$this->wpdb_prefix}access_tokens WHERE accessToken = '{$accesstoken}' LIMIT 1\" ); \n if(!empty($isAuthorized)) {\n $this->accessToken = true;\n }\n }\n }", "abstract public function authorize();", "abstract public function authorize();", "public function oAuthAuthorize($token)\n {\n\theader('Location: ' . self::SECURE_API_URL .\n\t '/oauth/authorize?oauth_token=' . $token);\n }", "public function authorize()\n {\n return session('storefront_key') || request()->session()->has('api_credential');\n }", "public function authorize();", "public function authorize();", "protected function isAccessTokenPresent()\n {\n if (!isset($this->params['access_token'])) {\n throw new InstagramRequestException(\"{$this->path} - api requires an authenticated users access token.\", 400);\n }\n }", "public function authorize()\n {\n dd($this->request->get('user_id'));\n try {\n $user = \\JWTAuth::parseToken()->authenticate();\n if ($user->id == $this->request->get('user_id')) {\n return true;\n }\n throw new JWTTokenException(\"token错误\");\n } catch (\\Exception $e) {\n throw new JWTTokenException(\"token错误\");\n }\n }", "public function get_access_token()\n\t{\n\t\t$this->auth_user_authorized = false;\n\t\t$url = $this->auth_url_access;\n\t\t$this->oauth_callback = null; //!< not needed for access\n\n\n\t\tif (!$this->oauth_token)\n\t\t{\n\t\t\treturn false; //!< don't have a token to exchange with an access one\n\t\t}\n\n\t\t$this->get_token($url, true);\n\n\t\tif ($this->http_response_code == SPConstants::HTTP_OK && $this->oauth_token)\n\t\t{\n\t\t\t$this->oauth_verifier = null; //!< don't need it any more if it has been provided\n\t\t\t$this->auth_user_authorized = true;\n\t\t\t$this->__oauth_access_token = \"true\";\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "function ExchangeRequestForAccess()\n{\n $consumer_key = $_GET['consumer_key'];\n $oauth_token = $_GET['oauth_token'];\n $user_id = $_GET['usr_id'];\n\n try\n {\n OAuthRequester::requestAccessToken($consumer_key, $oauth_token, $user_id);\n }\n catch (OAuthException $e)\n {\n // Something wrong with the oauth_token.\n // Could be:\n // 1. Was already ok\n // 2. We were not authorized\n die($e->getMessage());\n }\n \n echo 'Authorization Given. <a href=\"index.php?action=Request\">Click to make a signed request</a>.';\n}", "public function authorize() {\r\n\t\t\r\n\t\t$user_id = $this->Session->read('Auth.' . $this->authorizeActionSettings['userIdKey']);\r\n\t\tif (empty($user_id)) {\r\n\t\t\t$this->Session->write('Auth.redirect', Router::reverse($this->request));\r\n\t\t\treturn $this->redirect($this->authorizeActionSettings['loginUrl'], 401);\r\n\t\t}\r\n\t\t\r\n\t\t$client_data = $this->OAuth2->validateAuthorizeRequest();\r\n\t\t\r\n\t\tif (empty($client_data)) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\t$api_key = $client_data['client_id'];\r\n\t\t\r\n\t\t$post_scope = !empty($this->request->data['scope']) ? $this->request->data['scope'] : null;\r\n\t\t$get_scope = !empty($this->request->query['scope']) ? $this->request->query['scope'] : null;\r\n\t\t$scope = !empty($post_scope) ? $post_scope : $get_scope;\r\n\t\t\r\n\t\tif (!isset($this->OAuth2Authorization)) {\r\n\t\t\t$this->loadModel('OAuth2.OAuth2Authorization');\r\n\t\t}\r\n\t\t\r\n\t\t$existing_authorization = $this->OAuth2Authorization->getExisting(\r\n\t\t\t$api_key,\r\n\t\t\t$user_id,\r\n\t\t\t$scope\r\n\t\t);\r\n\t\t\t\r\n\t\t$show_permissions_page = false;\r\n\t\tif (empty($existing_authorization) && $this->request->is('get')) {\r\n\t\t\t$show_permissions_page = true;\r\n\t\t}\r\n\t\t\r\n\t\t$proceed_with_authorization = false;\r\n\t\tif (!empty($existing_authorization) || $this->request->is('post')){\r\n\t\t\t$proceed_with_authorization = true;\r\n\t\t}\r\n\t\t\r\n\t\tif ($show_permissions_page) {\r\n\t\t\r\n\t\t\t$this->set('client', $client_data);\r\n\t\t\t\r\n\t\t} elseif ($proceed_with_authorization) {\r\n\t\t\t\r\n\t\t\t$allow = false;\r\n\t\t\tif (!empty($existing_authorization) || !empty($this->request->data['allow'])) {\r\n\t\t\t\t$allow = true;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t$response = $this->OAuth2->handleAuthorizeRequest($allow, $user_id);\r\n\t\t\t\r\n\t\t\tif (empty($response)) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\treturn $this->redirect($response->getHttpHeader('Location'), $response->getStatusCode());\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t}", "function new_access_token($token, $consumer) {\n // for the user associated with this token if the request token \n // is authorized \n // should also invalidate the request token \n }", "public function authorize()\n {\n $token_sent = request()->bearerToken();\n\n if (empty(auth()->user()) && !empty($token_sent)) {\n $token = CompanyToken::whereToken($token_sent)->first();\n\n $user = $token->user;\n Auth::login($user);\n }\n\n return auth()->user()->can('create', Invoice::class);\n }", "public function checkAuthorizeRequest(sfWebRequest $request)\n\t{\n\t\t$sfToken = Doctrine::getTable('sfOauthServerRequestToken')->findOneByToken($request->getParameter('oauth_token'));\n\t\tif (!$sfToken)\n\t\t\t\treturn false;\t\n\t\treturn true;\n\t}", "public function getAccessToken($access_token);", "public function onAuthenticationRequired(Request $request, TokenInterface $token): Response;", "public function beforeAction($action)\n {\n if (!parent::beforeAction($action)) {\n return false;\n }\n \n if ($action->id == 'authorize' || $action->id == 'accesstoken') {\n return true;\n }\n \n $request = Yii::$app->getRequest();\n $authHeader = $request->getHeaders()->get('Authorization');\n // Find access token using HttpBearer method\n if ($authHeader !== null && preg_match('/^Bearer\\s+(.*?)$/', $authHeader, $matches)) {\n $token = $matches[1];\n }\n // Find access token from query parameter if no token from HttpBearer\n if (!isset($token)) {\n $token = $request->getQueryParam('access_token');\n }\n \n $customer = Customer::find()->where(['token_code' => $token])->andWhere(['>', 'token_expired', time()])->one();\n \n if ($customer !== null) {\n $this->customer_id = $customer->id;\n \n return true;\n }\n \n throw new UnauthorizedHttpException('Unauthorized access!');\n }", "public function authenticate() {\n if ($this->client->isAccessTokenExpired()) {\n $token = $this->client->getAccessToken();\n var_dump($token);\n// $this->client->getAuth()->refreshToken($token['refresh_token']);\n $_SESSION[self::ACCESS_TOKEN] = $this->client->getAccessToken();\n }\n\n return true;\n }", "public function isAuthorized( $request_vars ){\n // auth token\n \n $isAuthorized = false;\n\n $userInfo = $this->fbAuth->setAccessToken( $request_vars->getParam( 'accessToken' ) );\n\n// print_r( $userInfo );\n \n $this->userId = $userInfo['id'];\n\n if( is_array( $userInfo ) ) \n $isAuthorized = true;\n else\n echo 'not autorized';\n\n return $isAuthorized;\n }", "public function authorize() {\n\t\t$authorization = false;\n\t\t// Clickjacking prevention (supported by IE8+, FF3.6.9+, Opera10.5+, Safari4+, Chrome 4.1.249.1042+)\n\t\t$this->OAuth->setVariable('auth_code_lifetime', 60);\n\t\t$this->response->header('X-Frame-Options: DENY');\n\t\ttry {\n\t\t\t$OAuthParams = $this->OAuth->getAuthorizeParams();\n\t\t} catch (Exception $e){\n\t\t\t$e->sendHttpResponse();\n\t\t}\n\t\tif (!empty($OAuthParams)) {\n\t\t\t$clientCredencials = $this->OAuth->checkClientCredentials($OAuthParams['client_id']);\n\t\t\tlist($redirectUri, $authorization) = $this->OAuth->getAuthResult($clientCredencials, $clientCredencials['user_id'], $OAuthParams);\n\t\t\tif (!empty($authorization['query']['code'])) {\n\t\t\t\t$authorization = $authorization['query'];\n\t\t\t}\n\t\t}\n\n\t\t$this->set(array('authorization' => $authorization, '_serialize' => 'authorization'));\n\t}", "public function authorize()\n {\n $user = JWTAuth::parseToken()->authenticate();\n $organisation = Organization::findOrFail($this->route('organizations'));\n return $organisation->admin_id == $user->id;\n }", "public function authorizeConsumerRequestToken( $token, $user_id, $referrer_host = '' ) { \n\t\t$tokens = get_option('oauth_consumer_tokens');\n\t\tif (array_key_exists($token, $tokens)) {\n\t\t\t$tokens[$token]['user'] = $user_id;\n\t\t\t$tokens[$token]['authorized'] = true;\n\t\t\tupdate_option('oauth_consumer_tokens', $tokens);\n\t\t}\n\t}", "private function allowAccess($token, $callback, $insertAccess = true)\n\t{\n\t\tif($insertAccess)\n\t\t{\n\t\t\t$now = new DateTime('NOW', $this->registry['core.default_timezone']);\n\n\t\t\t$this->getSql()->replace($this->registry['table.oauth_access'], array(\n\n\t\t\t\t'apiId' => $this->apiId,\n\t\t\t\t'userId' => $this->user->getId(),\n\t\t\t\t'allowed' => 1,\n\t\t\t\t'date' => $now->format(DateTime::SQL),\n\n\t\t\t));\n\n\t\t\t$accessId = $this->getSql()->getLastInsertId();\n\n\t\t\t// insert rights\n\t\t\t$this->insertAppRights($accessId);\n\t\t}\n\n\t\t// approve token\n\t\t$verifier = Security::generateToken(32);\n\t\t$con = new Condition(array('token', '=', $token));\n\n\t\t$this->getSql()->update($this->registry['table.oauth_request'], array(\n\n\t\t\t'userId' => $this->user->getId(),\n\t\t\t'status' => Oauth\\Record::APPROVED,\n\t\t\t'verifier' => $verifier,\n\n\t\t), $con);\n\n\t\t// redirect if callback available\n\t\tif($callback != 'oob')\n\t\t{\n\t\t\t$url = new Url($callback);\n\n\t\t\t$url->addParam('oauth_token', $token);\n\t\t\t$url->addParam('oauth_verifier', $verifier);\n\n\t\t\theader('Location: ' . strval($url));\n\n\t\t\texit;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->template->assign('verifier', $verifier);\n\t\t}\n\t}", "function authorize($request) {\n return $this->Session->get('auth-valid');\n }", "public function authorize(): bool\n {\n return auth('api')->check();\n }", "public function authorize(): bool\n {\n return auth('api')->check();\n }", "abstract public function url_access_token();", "private function verify_request()\n{\n $headers = $this->input->request_headers();\n // Extract the token\n $token = $headers['Authorization'];\n // Use try-catch\n // JWT library throws exception if the token is not valid\n try {\n // Validate the token\n // Successfull validation will return the decoded user data else returns false\n $data = AUTHORIZATION::validateToken($token);\n if ($data === false) {\n $status = parent::HTTP_UNAUTHORIZED;\n $response = ['status' => $status, 'msg' => 'Unauthorized Access!'];\n $this->response($response, $status);\n exit();\n } else {\n return $data;\n }\n } catch (Exception $e) {\n // Token is invalid\n // Send the unathorized access message\n $status = parent::HTTP_UNAUTHORIZED;\n $response = ['status' => $status, 'msg' => 'Unauthorized Access! '];\n $this->response($response, $status);\n }\n}", "public function authorize()\n\t{\n\t\t$state = md5(uniqid(rand(), TRUE));\n\t\t$this->oauth->ci->session->set_userdata('state', $state);\n\t\t\t\n\t\t$params = array(\n\t\t\t'client_id' => $this->_config['client_id'],\n\t\t\t'redirect_uri' => $this->_config['redirect_uri'],\n\t\t\t'state' => $state,\n\t\t\t'scope' => 'email'\n\t\t);\n\t\t\n\t\t$url = $this->_authorize_endpoint.http_build_query($params);\n\t\tredirect($url);\n\t}", "public function authorizeToken($token) {\r\n return ($token===\"ZGV2czppZHNs\");\r\n }", "public function resource(){\n\t\tif (!$this->server->verifyResourceRequest(OAuth2\\Request::createFromGlobals())) {\n\t\t $this->server->getResponse()->send();\n\t\t echo json_encode(array('status' => false, 'message' => 'NO ACCESS TOKEN'));\n\t\t die;\n\t\t}\t\t\n }", "public function authorize()\n {\n return true; // TODO: authorize implementation\n }", "protected function request_token() {\r\n\t\t$code = $this->tmhOAuth->request(\r\n\t\t\t'POST',\r\n\t\t\t$this->tmhOAuth->url('oauth/request_token', ''),\r\n\t\t\tarray(\r\n\t\t\t\t'oauth_callback' => SocialHelper::php_self()\r\n\t\t\t)\r\n\t\t);\r\n\r\n\t\tif ($code == 200) {\r\n\t\t\t$_SESSION['oauth'] = $this->tmhOAuth->extract_params($this->tmhOAuth->response['response']);\r\n\t\t\t$this->authorize();\r\n\t\t} else {\r\n\t\t\t$this->addError();\r\n\t\t}\r\n\t}", "function new_access_token($token, $consumer, $verifier = null) {\n // for the user associated with this token if the request token\n // is authorized\n // should also invalidate the request token\n }", "public function token() {\r\n\t\t\r\n\t\t$response = $this->OAuth2->getAccessTokenData();\r\n\t\t\r\n\t\tif (empty($response)) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\t$this->set($response);\r\n\t\t\r\n\t}", "public function authorizeRequest($request)\n\t{\n\t\t$headers = $request->headers->all();\n\t\t$authUser = $headers['php-auth-user'][0];\n\t\t$authPass = $headers['php-auth-pw'][0];\n\n\t\t$username = Crypto::decryptWithPassword($authUser, $_ENV['APP_SECRET']);\n\t\t$apiKey = $authPass;\n\t\t$userRepo = $this->getDoctrine()->getRepository(User::class);\n\t\t$user \t = $userRepo->findOneBy(['email' => $username, 'api_key' => $apiKey]);\n\n\t\tif ($user == null || !in_array('ROLE_ADMIN', $user->getRoles())) {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}", "private function authorisationRequest() \n {\n $url = 'https://oauth2.constantcontact.com/oauth2/oauth/siteowner/authorize?';\n $url.='response_type=code';\n $url.='&client_id='.$this->apikey;\n $url.='&redirect_uri='.$this->redirectURL;\n \n $response = $this->makeRequest($url);\n echo $response;\n die($response);\n //now wait for redirectURL to be called\n }", "public function auth ()\n {\n $params = ['grant_type'=>'client_credentials'];\n $headers = ['Authorization' => 'Basic ' . base64_encode($this->_client_id.':'.$this->_client_secret)];\n $this->_request(Request::AUTH_URL, CurlClient::POST, $params, $headers);\n $token = Arr::get ($this->_body, 'access_token');\n $this->token($token);\n return ( ! empty ($token));\n }", "function attemptOAuthLogin(Request $request, Response $response, $args){\n if(isset($_SESSION['access_token'])){\n //echo \"already Logged In\";\n header('Location: https://cc-contest-arena.herokuapp.com');\n die();\n return $response;\n }\n\n\t$CC_URL = \"https://api.codechef.com/oauth/authorize\";\n\t\n\t$params = array('response_type'=>'code', 'client_id'=> $GLOBALS['CLIENT_ID'], \t\t\t\t\t\t\t\t'redirect_uri'=> $GLOBALS['REDIRECT_URI'], 'state'=> 'xyz');\n \n \n\t$reqMaker = CurlRequestMaker::getInstance();\n $reqMaker->makeRedirectRequest($CC_URL,$params);\n \n return $response;\n}", "abstract public function is_authorized_response($response);", "public static function set_token_access() {\n if (SesLibrary::_get('_uuid') || SesLibrary::_get('_uuid') == null) {\n $param = [\n 'uri' => config('app.base_api_uri') . '/generate-token-access?deviceid=' . SesLibrary::_get('_uuid'),\n 'method' => 'GET'\n ];\n $this->__init_request_api($param);\n }\n }", "protected function hasAccessToken()\n {\n return (bool)$this->_accessToken;\n }", "public function authorize(): bool\n {\n return true;\n }", "public function authorize() : bool\n {\n // TODO check request to xhr in middleware\n return true;\n }", "public function authorize()\n {\n return auth('customer')->check();\n }", "abstract public function queryAccessToken();", "public function isAuthorized() {}", "public function authorize(): bool\n {\n return true;\n }", "protected function getAccessToken($oauth_token) {\n\n\t}", "public function authorize (): bool\n {\n return true;\n }", "public function accessAction() {\n if (!$_SESSION['request_token']) {\n return self::redirect('request');\n }\n\n $tok = $_SESSION['request_token'];\n $this->api->setOAuthToken($tok->getKey(), $tok->getSecret());\n $this->api->login('access')->post()->loadTokenFromResponse();\n $_SESSION['access_token'] = $this->api->getOAuthToken();\n $_SESSION['username'] = $this->api->getUsername();\n $_SESSION['subdomain'] = $this->api->getSubdomain();\n\n return self::redirect('index');\n }", "public function authorize()\n {\n return True;\n }", "public function authorize()\n {\n return True;\n }", "public function authorize()\n {\n return True;\n }", "public function authorize()\n {\n return True;\n }", "public function authorize()\n {\n return True;\n }", "public function authorize()\n {\n return True;\n }", "public function authorize()\n {\n return True;\n }", "private function __get_access_token() {\r\n // Access token exists in a cookie\r\n if($_COOKIE[ACCESS_TOKEN_COOKIE_NAME]) {\r\n parse_str($_COOKIE[ACCESS_TOKEN_COOKIE_NAME], $tok); \r\n return $tok;\r\n }\r\n\r\n // Handling a redirect back from login\r\n else if($_COOKIE[REQUEST_TOKEN_COOKIE_NAME] && $_REQUEST['oauth_verifier'] && $_REQUEST['oauth_token']) {\r\n $tok = YMClient::oauth_token_from_query_string($_COOKIE[REQUEST_TOKEN_COOKIE_NAME]);\r\n\r\n if($tok['oauth_token'] != $_REQUEST['oauth_token']) {\r\n throw new Exception(\"Cookie and URL disagree about request token value\");\r\n }\r\n\r\n $tok['oauth_verifier'] = $_REQUEST['oauth_verifier']; \r\n $newtok = $this->ymc->oauth_get_access_token($tok);\r\n\r\n setcookie(REQUEST_TOKEN_COOKIE_NAME, \"\", time()-3600);\r\n setcookie(ACCESS_TOKEN_COOKIE_NAME, YMClient::oauth_token_to_query_string($newtok));\r\n return $newtok;\r\n }\r\n\r\n // Sending the user to login to grant access to this app\r\n else {\r\n list ($tok, $url) = $this->ymc->oauth_get_request_token($this->callbackURL);\r\n setcookie(REQUEST_TOKEN_COOKIE_NAME, YMClient::oauth_token_to_query_string($tok));\r\n header(\"Location: $url\");\r\n }\r\n }", "protected function authorize() {\r\n\t\t$authurl = $this->tmhOAuth->url(\"oauth/authorize\", '') . \"?oauth_token={$_SESSION['oauth']['oauth_token']}\";\r\n\t\theader(\"Location: \".$authurl);\r\n\t\texit;\r\n\r\n\t\t// in case the redirect doesn't fire\r\n\t\t$this->addMsg('<p>To complete the OAuth flow please visit URL: <a href=\"' . $authurl . '\">' . $authurl . '</a></p>');\r\n\t}", "public function authorize()\r\r\n {\r\r\n return true;\r\r\n }", "public function authorize(): bool\r\n {\r\n return true;\r\n }", "public function authorize(): bool\n {\n return MoonShineAuth::guard()->check();\n }", "public function authorize(): bool\n {\n return true;\n }", "public function authorize(): bool\n {\n return true;\n }", "public function authorize(): bool\n {\n return true;\n }", "public function authorize(): bool\n {\n return true;\n }", "public function authorize(): bool\n {\n return true;\n }", "public function authorize(): bool\n {\n return true;\n }", "public function authorize(): bool\n {\n return true;\n }", "public function authorize(): bool\n {\n return true;\n }", "public function authorize(): bool\n {\n return true;\n }", "public function authorize(): bool\n {\n return true;\n }", "public function authorize(): bool\n {\n return true;\n }", "public function authorize(): bool\n {\n return true;\n }", "public function authorize(): bool\n {\n return true;\n }", "public function authorize(): bool\n {\n return true;\n }", "public function authorize(): bool\n {\n return true;\n }", "public function authorize(): bool\n {\n return true;\n }", "public function authorize(): bool\n {\n return true;\n }", "public function authorize(): bool\n {\n return true;\n }", "public function authorize(): bool\n {\n return true;\n }", "public function authorize(): bool\n {\n return true;\n }", "public function authorize(): bool\n {\n return true;\n }", "public function authorize(): bool\n {\n return true;\n }", "public function authorize(): bool\n {\n return true;\n }", "public function authorize(): bool\n {\n return true;\n }", "public function authorize(): bool\n {\n return true;\n }", "public function authorize(): bool\n {\n return true;\n }", "public function authorize(): bool\n {\n return true;\n }", "public function authorize(): bool\n {\n return true;\n }", "public function authorize(): bool\n {\n return true;\n }", "public function authorize(): bool\n {\n return true;\n }", "public function authorize(): bool\n {\n return true;\n }", "public function authorize(): bool\n {\n return true;\n }" ]
[ "0.739423", "0.71400684", "0.70866954", "0.70571905", "0.6952787", "0.66862655", "0.6642475", "0.6642475", "0.6619785", "0.66091913", "0.6605581", "0.6605581", "0.6604072", "0.65928596", "0.6563597", "0.65446275", "0.6536638", "0.653567", "0.6533504", "0.6529775", "0.6528792", "0.65193516", "0.6465135", "0.64013666", "0.6401349", "0.6389293", "0.63819844", "0.63699895", "0.6347414", "0.6335355", "0.6333669", "0.6333669", "0.63079166", "0.6298973", "0.6270465", "0.62692964", "0.62687427", "0.62682664", "0.62603116", "0.6235884", "0.62356997", "0.6230359", "0.62096924", "0.6205693", "0.62045324", "0.61972", "0.61947197", "0.61942095", "0.61882776", "0.6182731", "0.6176093", "0.6174157", "0.6170518", "0.61697114", "0.61694235", "0.61677796", "0.61673564", "0.616709", "0.616709", "0.616709", "0.616709", "0.616709", "0.616709", "0.616709", "0.61634827", "0.61573964", "0.6154546", "0.6153518", "0.61467445", "0.61401707", "0.61401707", "0.61401707", "0.61401707", "0.61401707", "0.61401707", "0.61401707", "0.61401707", "0.61401707", "0.61401707", "0.61401707", "0.61401707", "0.61401707", "0.61401707", "0.61401707", "0.61401707", "0.61401707", "0.61401707", "0.61401707", "0.61401707", "0.61401707", "0.61401707", "0.61401707", "0.61401707", "0.61401707", "0.61401707", "0.61401707", "0.61401707", "0.61401707", "0.61401707", "0.61401707", "0.61401707" ]
0.0
-1