query
stringlengths 9
43.3k
| document
stringlengths 17
1.17M
| metadata
dict | negatives
sequencelengths 0
30
| negative_scores
sequencelengths 0
30
| document_score
stringlengths 5
10
| document_rank
stringclasses 2
values |
---|---|---|---|---|---|---|
Parse XBM image and extract the pixels into an array of HEX pixels | static function parseXbmToArray($xbmBlob, $hexa = true) {
$pattern = "#{(.*?)}#s";
preg_match($pattern, $xbmBlob, $matches);
$explodedPixels = explode(",", $matches[1]);
array_pop($explodedPixels);
// Iterate and cleanup whitespaces and \n
$cleanPixels = array();
foreach ($explodedPixels as $pixel) {
$pixel = preg_replace('/\s+/', '', $pixel);
if (!$hexa) {
$cleanPixels[] = hexdec($pixel);
continue;
}
$cleanPixels[] = $pixel;
}
return $cleanPixels;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getPixels(): array;",
"function readBMP($p_sFile) {\n $file = fopen($p_sFile,\"rb\");\n $read = fread($file,10);\n while(!feof($file)&&($read<>\"\"))\n $read .= fread($file,1024);\n\n $temp = unpack(\"H*\",$read);\n $hex = $temp[1];\n $header = substr($hex,0,108);\n\n // Process the header\n // Structure: http://www.fastgraph.com/help/bmp_header_format.html\n if (substr($header,0,4)==\"424d\")\n {\n // Cut it in parts of 2 bytes\n $header_parts = str_split($header,2);\n\n // Get the width 4 bytes\n $width = hexdec($header_parts[19].$header_parts[18]);\n\n // Get the height 4 bytes\n $height = hexdec($header_parts[23].$header_parts[22]);\n\n // Unset the header params\n unset($header_parts);\n }\n\n // Define starting X and Y\n $x = 0;\n $y = 1;\n\n // Create newimage\n $image = imagecreatetruecolor($width,$height);\n\n // Grab the body from the image\n $body = substr($hex,108);\n\n // Calculate if padding at the end-line is needed\n // Divided by two to keep overview.\n // 1 byte = 2 HEX-chars\n $body_size = (strlen($body)/2);\n $header_size = ($width*$height);\n\n // Use end-line padding? Only when needed\n $usePadding = ($body_size>($header_size*3)+4);\n\n // Using a for-loop with index-calculation instaid of str_split to avoid large memory consumption\n // Calculate the next DWORD-position in the body\n for ($i=0;$i<$body_size;$i+=3)\n {\n // Calculate line-ending and padding\n if ($x>=$width)\n {\n // If padding needed, ignore image-padding\n // Shift i to the ending of the current 32-bit-block\n if ($usePadding)\n $i += $width%4;\n\n // Reset horizontal position\n $x = 0;\n\n // Raise the height-position (bottom-up)\n $y++;\n\n // Reached the image-height? Break the for-loop\n if ($y>$height)\n break;\n }\n\n // Calculation of the RGB-pixel (defined as BGR in image-data)\n // Define $i_pos as absolute position in the body\n $i_pos = $i*2;\n $r = hexdec($body[$i_pos+4].$body[$i_pos+5]);\n $g = hexdec($body[$i_pos+2].$body[$i_pos+3]);\n $b = hexdec($body[$i_pos].$body[$i_pos+1]);\n\n // Calculate and draw the pixel\n $color = imagecolorallocate($image,$r,$g,$b);\n imagesetpixel($image,$x,$height-$y,$color);\n\n // Raise the horizontal position\n $x++;\n }\n\n // Unset the body / free the memory\n unset($body);\n\n // Return image-object\n return $image;\n }",
"public function getParts() : array\n {\n return [\n 'r' => mb_substr($this->hexString, 1, 2),\n 'g' => mb_substr($this->hexString, 3, 2),\n 'b' => mb_substr($this->hexString, 5, 2),\n ];\n }",
"function processBmpIntoArray($img) { // Some size detected\n // make use of imagecopy, imagecreatetruecolor, imagecolorat\n\n if (imagesx($img) % 16 !== 0 || imagesy($img) % 24 !== 0) {\n return 'Layer does not fit expected dimensions';\n }\n\n // if here image is determined as fitting with a 144x144 grid 20736 tiles each with 384 pixels\n\n // imagejpeg($img, 'test.jpg'); //Check image is correct, is correct\n // die;\n\n $grid = array();\n\n for ($y=0; $y < 144; $y++) {\n\n $xgrid = array();\n for ($x=0; $x < 144; $x++) {\n\n\n $string = '';\n // collect all 16x24 pixel data into $string\n $xstart = $x * 16;\n $ystart = $y * 24;\n\n for ($ty=0; $ty < 24; $ty++) {\n\n for ($tx=0; $tx < 16; $tx++) {\n\n $string .= imagecolorat($img, $xstart + $tx, $ystart + $ty);\n\n }\n\n }\n\n array_push($xgrid, $string);\n\n }\n\n array_push($grid, $xgrid);\n\n }\n\n return $grid;\n\n }",
"function imagecreatefrombmp($path){\n $file=fopen($path,'rb');\n $read=fread($file,10);\n while(!feof($file)&&($read<>'')) $read.=fread($file,1024);\n $temp=unpack(\"H*\",$read);\n $hex=$temp[1];\n $header=substr($hex,0,108);\n if(substr($header,0,4)=='424d'){\n $header_parts=str_split($header,2);\n $width=hexdec($header_parts[19].$header_parts[18]);\n $height=hexdec($header_parts[23].$header_parts[22]);\n unset($header_parts);\n }\n $x=0;\n $y=1;\n $image=imagecreatetruecolor($width,$height);\n $body=substr($hex,108);\n $body_size=(strlen($body)/2);\n $header_size=($width*$height);\n $usePadding=($body_size>($header_size*3)+4);\n for($i=0;$i<$body_size;$i+=3){\n if($x>=$width){\n if($usePadding) $i+=$width%4;\n $x=0;\n $y++;\n if($y>$height) break;\n }\n $i_pos=$i*2;\n $r=hexdec($body[$i_pos+4].$body[$i_pos+5]);\n $g=hexdec($body[$i_pos+2].$body[$i_pos+3]);\n $b=hexdec($body[$i_pos].$body[$i_pos+1]);\n $color=imagecolorallocate($image,$r,$g,$b);\n imagesetpixel($image,$x,$height-$y,$color);\n $x++;\n }\n unset($body);\n return $image;\n}",
"private static function parseHexComponents(string $str): array\n {\n $len = strlen($str);\n\n $r = $g = $b = $a = null;\n\n if ($len === 6 || $len === 8) {\n $r = hexdec($str[0] . $str[1]);\n $g = hexdec($str[2] . $str[3]);\n $b = hexdec($str[4] . $str[5]);\n $a = $len === 8 ? hexdec($str[6] . $str[7]) : 255;\n } elseif ($len === 3 || $len == 4) {\n $r = hexdec($str[0] . $str[0]);\n $g = hexdec($str[1] . $str[1]);\n $b = hexdec($str[2] . $str[2]);\n $a = $len === 4 ? hexdec($str[3] . $str[3]) : 255;\n }\n\n return [$r, $g, $b, $a];\n }",
"function woobizz_beforefooter_hextorgb($hex) {\r\n$hex = str_replace(\"#\", \"\", $hex);\r\nif(strlen($hex) == 3) {\r\n $r = hexdec(substr($hex,0,1).substr($hex,0,1));\r\n $g = hexdec(substr($hex,1,1).substr($hex,1,1));\r\n $b = hexdec(substr($hex,2,1).substr($hex,2,1));\r\n} else {\r\n $r = hexdec(substr($hex,0,2));\r\n $g = hexdec(substr($hex,2,2));\r\n $b = hexdec(substr($hex,4,2));\r\n}\r\n$rgb = array($r, $g, $b);\r\nreturn implode(\",\", $rgb); // returns the rgb values separated by commas\r\n//return $rgb; // returns an array with the rgb values\r\n}",
"function imagecreatefrombmp($p_sFile) {\n $file = fopen($p_sFile,\"rb\");\n $read = fread($file,10);\n while(!feof($file)&&($read<>\"\"))\n $read .= fread($file,1024);\n $temp = unpack(\"H*\",$read);\n $hex = $temp[1];\n $header = substr($hex,0,108);\n // Process the header\n // Structure: http://www.fastgraph.com/help/bmp_header_format.html\n if (substr($header,0,4)==\"424d\") {\n // Cut it in parts of 2 bytes\n $header_parts = str_split($header,2);\n // Get the width 4 bytes\n $width = hexdec($header_parts[19].$header_parts[18]);\n // Get the height 4 bytes\n $height = hexdec($header_parts[23].$header_parts[22]);\n // Unset the header params\n unset($header_parts);\n }\n // Define starting X and Y\n $x = 0;\n $y = 1;\n // Create newimage\n $image = imagecreatetruecolor($width,$height);\n // Grab the body from the image\n $body = substr($hex,108);\n // Calculate if padding at the end-line is needed\n // Divided by two to keep overview.\n // 1 byte = 2 HEX-chars\n $body_size = (strlen($body)/2);\n $header_size = ($width*$height);\n // Use end-line padding? Only when needed\n $usePadding = ($body_size>($header_size*3)+4);\n // Using a for-loop with index-calculation instaid of str_split to avoid large memory consumption\n // Calculate the next DWORD-position in the body\n for ($i=0;$i<$body_size;$i+=3) {\n // Calculate line-ending and padding\n if ($x>=$width) {\n // If padding needed, ignore image-padding\n // Shift i to the ending of the current 32-bit-block\n if ($usePadding)\n $i += $width%4;\n // Reset horizontal position\n $x = 0;\n // Raise the height-position (bottom-up)\n $y++;\n // Reached the image-height? Break the for-loop\n if ($y>$height)\n break;\n }\n // Calculation of the RGB-pixel (defined as BGR in image-data)\n // Define $i_pos as absolute position in the body\n $i_pos = $i*2;\n $r = hexdec($body[$i_pos+4].$body[$i_pos+5]);\n $g = hexdec($body[$i_pos+2].$body[$i_pos+3]);\n $b = hexdec($body[$i_pos].$body[$i_pos+1]);\n // Calculate and draw the pixel\n $color = imagecolorallocate($image,$r,$g,$b);\n imagesetpixel($image,$x,$height-$y,$color);\n // Raise the horizontal position\n $x++;\n }\n // Unset the body / free the memory\n unset($body);\n // Return image-object\n return $image;\n}",
"public function imagecreatefrombmpstring($im)\r\n\t\t{\r\n\t\t\t//so that ide type guys don't bitch like crazy..\r\n\t\t\t$type = $size = $reserved = $offset = $width = $height = $planes = $bits = $compression = $imagesize = $xrest = $yres = $ncolor = $important = 0;\r\n\t\t\t$header = unpack(\"vtype/Vsize/v2reserved/Voffset\", substr($im,0,14));\r\n\t\t\t$info = unpack(\"Vsize/Vwidth/Vheight/vplanes/vbits/Vcompression/Vimagesize/Vxres/Vyres/Vncolor/Vimportant\", substr($im,14,40));\r\n\r\n\t\t\textract($info);\r\n\t\t\textract($header);\r\n\r\n\t\t\tif($type != 0x4D42) return false; // signature \"BM\"\r\n\r\n\t\t\t$palette_size = $offset - 54;\r\n\r\n\t\t\t// $ncolor = $palette_size / 4;\r\n\t\t\t//\t$gd_header = \"\";\r\n\t\t\t//\t// true-color vs. palette\r\n\t\t\t//\t$gd_header .= ($palette_size == 0) ? \"\\xFF\\xFE\" : \"\\xFF\\xFF\";\r\n\t\t\t//\t$gd_header .= pack(\"n2\", $width, $height);\r\n\t\t\t//\t$gd_header .= ($palette_size == 0) ? \"\\x01\" : \"\\x00\";\r\n\t\t\t//\tif($palette_size) $gd_header .= pack(\"n\", $ncolor);\r\n\t\t\t//\t// no transparency\r\n\t\t\t//\t$gd_header .= \"\\xFF\\xFF\\xFF\\xFF\";\r\n\r\n\t\t\t$imres=imagecreatetruecolor($width,$height);\r\n\t\t\timagealphablending($imres,false);\r\n\t\t\timagesavealpha($imres,true);\r\n\t\t\t$pal=array();\r\n\r\n\t\t\tif($palette_size) {\r\n\t\t\t\t$palette = substr($im, 54, $palette_size);\r\n\t\t\t//\t$gd_palette = \"\";\r\n\t\t\t\t$j = 0; $n=0;\r\n\t\t\t\twhile($j < $palette_size) {\r\n\t\t\t\t\t$b = ord($palette{$j++});\r\n\t\t\t\t\t$g = ord($palette{$j++});\r\n\t\t\t\t\t$r = ord($palette{$j++});\r\n\t\t\t\t\t$a = ord($palette{$j++});\r\n\t\t\t\t\t//if ( ($r==255) && ($g==0) && ($b==255)) $a=127; // alpha = 255 on 0xFF00FF\r\n\t\t\t\t\tif ( ($r>=240) && ($g<=15) && ($b>=240)) $a=127; // alpha = 255 on 0xFF00FF\r\n\t\t\t\t\t$pal[$n++]=imagecolorallocatealpha($imres, $r, $g, $b, $a);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t$scan_line_size = (($bits * $width) + 7) >> 3;\r\n\t\t\t$scan_line_align = ($scan_line_size & 0x03) ? 4 - ($scan_line_size & 0x03): 0;\r\n\r\n\t\t\tfor($i = 0, $l = $height - 1; $i < $height; $i++, $l--) {\r\n\t\t\t\t// BMP stores scan lines starting from bottom\r\n\t\t\t\t$scan_line = substr($im, $offset + (($scan_line_size + $scan_line_align) * $l), $scan_line_size);\r\n\t\t\t\tif($bits == 24) {\r\n\t\t\t\t\t$j = 0; $n=0;\r\n\t\t\t\t\twhile($j < $scan_line_size) {\r\n\t\t\t\t\t\t$b = ord($scan_line{$j++});\r\n\t\t\t\t\t\t$g = ord($scan_line{$j++});\r\n\t\t\t\t\t\t$r = ord($scan_line{$j++});\r\n\t\t\t\t\t\t$a = 0;\r\n\t\t\t\t\t\t//if ( ($r==255) && ($g==0) && ($b==255)) $a=127; // alpha = 255 on 0xFF00FF\r\n\t\t\t\t\t\tif ( ($r>=240) && ($g<=15) && ($b>=240)) $a=127; // alpha is >= 0xF0 on red and blue\r\n\t\t\t\t\t\t$col=imagecolorallocatealpha($imres, $r, $g, $b, $a);\r\n\t\t\t\t\t\timagesetpixel($imres, $n++, $i, $col);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse if($bits == 8) {\r\n\t\t\t\t\t$j=0;\r\n\t\t\t\t\twhile($j<$scan_line_size) {\r\n\t\t\t\t\t\t$col=$pal[ord($scan_line{$j++})];\r\n\t\t\t\t\t\timagesetpixel($imres, $j-1, $i, $col);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse if($bits == 4) {\r\n\t\t\t\t\t$j = 0; $n=0;\r\n\t\t\t\t\twhile($j < $scan_line_size) {\r\n\t\t\t\t\t\t$byte = ord($scan_line{$j++});\r\n\t\t\t\t\t\t$p1 = $byte >> 4;\r\n\t\t\t\t\t\t$p2 = $byte & 0x0F;\r\n\t\t\t\t\t\timagesetpixel($imres, $n++, $i, $pal[$p1]);\r\n\t\t\t\t\t\timagesetpixel($imres, $n++, $i, $pal[$p2]);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse if($bits == 1) {\r\n\t\t\t\t\t$j = 0; $n=0;\r\n\t\t\t\t\twhile($j < $scan_line_size) {\r\n\t\t\t\t\t\t$byte = ord($scan_line{$j++});\r\n\t\t\t\t\t\t$p1 = (int) (($byte & 0x80) != 0);\r\n\t\t\t\t\t\t$p2 = (int) (($byte & 0x40) != 0);\r\n\t\t\t\t\t\t$p3 = (int) (($byte & 0x20) != 0);\r\n\t\t\t\t\t\t$p4 = (int) (($byte & 0x10) != 0);\r\n\t\t\t\t\t\t$p5 = (int) (($byte & 0x08) != 0);\r\n\t\t\t\t\t\t$p6 = (int) (($byte & 0x04) != 0);\r\n\t\t\t\t\t\t$p7 = (int) (($byte & 0x02) != 0);\r\n\t\t\t\t\t\t$p8 = (int) (($byte & 0x01) != 0);\r\n\t\t\t\t\t\timagesetpixel($imres, $n++, $i, $pal[$p1]);\r\n\t\t\t\t\t\timagesetpixel($imres, $n++, $i, $pal[$p2]);\r\n\t\t\t\t\t\timagesetpixel($imres, $n++, $i, $pal[$p3]);\r\n\t\t\t\t\t\timagesetpixel($imres, $n++, $i, $pal[$p4]);\r\n\t\t\t\t\t\timagesetpixel($imres, $n++, $i, $pal[$p5]);\r\n\t\t\t\t\t\timagesetpixel($imres, $n++, $i, $pal[$p6]);\r\n\t\t\t\t\t\timagesetpixel($imres, $n++, $i, $pal[$p7]);\r\n\t\t\t\t\t\timagesetpixel($imres, $n++, $i, $pal[$p8]);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn $imres;\r\n\t\t}",
"private static function imageParse()\n {\n while (self::$X + 1 < imagesx(self::$IMAGE) && self::$Y + 1 < imagesy(self::$IMAGE)) {\n /**\n * Get next pixel\n */\n self::nextPixel();\n $rgb = self::getPixelColour(self::$X, self::$Y);\n $colour = self::getColourValue($rgb);\n if ($colour == strtoupper(Data::$COLOUR)) {\n break;\n }\n }\n if (empty($colour)) {\n throw new Exception(\"The colour that you entered couldn't be found\", 500);\n }\n }",
"function glyphAt( $img, $glyphX, $glyphY )\n{\n $bytes = [];\n $startX = ($glyphX * 9)+1;\n $startY = ($glyphY * 9)+1;\n\n $value = 0;\n for( $y=0 ; $y<8 ; $y++ ) {\n $mask = 0x80;\n for( $x=0 ; $x<8 ; $x++ ) {\n\n $xpos = $startX + $x;\n $ypos = $startY + $y;\n $c = imagecolorat( $img, $xpos, $ypos );\n if( $c == 0 ) {\n $c = '.';\n\n } else {\n $c = '#';\n $value |= $mask;\n }\n\n $mask = $mask / 2;\n\n }\n $bytes[] = $value;\n $value = 0;\n }\n return $bytes; \n}",
"public function getPixels() : SPLFixedArray;",
"private function buildMatrix(): array\n {\n if ($this->imageMatrix === null) {\n $img = [];\n $height = $this->getHeight();\n $width = $this->getWidth();\n for ($i = 0; $i < $height; $i++) {\n $imgX = [];\n for ($j = 0; $j < $width; $j++) {\n $pxColor = imagecolorat($this->image, $j, $i);\n $rgb = [];\n $rgb[0] = ($pxColor >> 16) & 0xFF;\n $rgb[1] = ($pxColor >> 8) & 0xFF;\n $rgb[2] = $pxColor & 0xFF;\n\n $imgX[$j] = $rgb;\n }\n $img[$i] = $imgX;\n }\n\n $this->imageMatrix = $img;\n }\n\n return $this->imageMatrix;\n }",
"public function colorMem()\n {\n $cmd='echo m d800 dbf0 | nc '.$this->ip.' '.$this->port;\n $str=shell_exec($cmd);\n //echo $str;\n\n $dat=new SplFixedArray(1000);//load\n $p=0;\n $rows=explode(\"\\n\", $str);\n foreach($rows as $l=>$row){\n\n $row=trim($row);\n //>C:0400 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20\n preg_match(\"/>C:[0-9a-f]{4} ([0-9a-f ]{50}+)/\", $row, $o);//each row hold 16 bytes\n if(!$o)continue;\n if ($o[1]) {\n $nibs=array_filter(explode(\" \", $o[1]));\n //$nibs=$nibs);\n //echo \"[$l]\\t\".$o[1].\"\\n\";\n foreach($nibs as $nib){\n if($p<1000){\n $dat[$p]=hexdec($nib);\n $p++;\n }\n }\n }\n }\n return $dat;\n\n }",
"private function imagecreatefrombmp($filename)\n\t{\n\t\tif (!$f1 = fopen($filename, 'rb')) {\n\t\t\treturn false;\n\t\t}\n\n\t\t$file = unpack(\"vfile_type/Vfile_size/Vreserved/Vbitmap_offset\", fread($f1, 14));\n\t\t\n\t\tif ($file['file_type'] != 19778) {\n\t\t\treturn false;\n\t\t}\n\n\t\t$bmp = unpack('Vheader_size/Vwidth/Vheight/vplanes/vbits_per_pixel'.\n\t\t\t\t\t '/Vcompression/Vsize_bitmap/Vhoriz_resolution'.\n\t\t\t\t\t '/Vvert_resolution/Vcolors_used/Vcolors_important', fread($f1, 40));\n\n\t\t$bmp['colors'] = pow(2, $bmp['bits_per_pixel']);\n\t\t\n\t\tif ($bmp['size_bitmap'] == 0) {\n\t\t\t$bmp['size_bitmap'] = $file['file_size'] - $file['bitmap_offset'];\n\t\t}\n\n\t\t$bmp['bytes_per_pixel'] = $bmp['bits_per_pixel'] / 8;\n\t\t$bmp['bytes_per_pixel2'] = ceil($bmp['bytes_per_pixel']);\n\t\t$bmp['decal'] = ($bmp['width'] * $bmp['bytes_per_pixel'] / 4);\n\t\t$bmp['decal'] -= floor($bmp['width'] * $bmp['bytes_per_pixel'] / 4);\n\t\t$bmp['decal'] = 4 - (4 * $bmp['decal']);\n\t\t\n\t\tif ($bmp['decal'] == 4) {\n\t\t\t$bmp['decal'] = 0;\n\t\t}\n\n\t\t$palette = array();\n\n\t\tif ($bmp['colors'] < 16777216) {\n\t\t\t$palette = unpack('V' . $bmp['colors'], fread($f1, $bmp['colors'] * 4));\n\t\t}\n\n\t\t$img = fread($f1, $bmp['size_bitmap']);\n\t\t$vide = chr(0);\n\n\t\t$res = imagecreatetruecolor($bmp['width'], $bmp['height']);\n\t\t$P = 0;\n\t\t$Y = $bmp['height'] - 1;\n\n\t\twhile ($Y >= 0) {\n\t\t\t$X = 0;\n\t\t\twhile ($X < $bmp['width']) {\n\t\t\t\tif ($bmp['bits_per_pixel'] == 24) {\n\t\t\t\t\t$color = unpack(\"V\", substr($img, $P, 3) . $vide);\n\t\t\t\t} elseif ($bmp['bits_per_pixel'] == 16) {\n\t\t\t\t\t$color = unpack(\"n\", substr($img, $P, 2));\n\t\t\t\t\t$color[1] = $palette[$color[1] + 1];\n\t\t\t\t} elseif ($bmp['bits_per_pixel'] == 8) { \n\t\t\t\t\t$color = unpack(\"n\", $vide . substr($img, $P, 1));\n\t\t\t\t\t$color[1] = $palette[$color[1] + 1];\n\t\t\t\t} elseif ($bmp['bits_per_pixel'] == 4) {\n\t\t\t\t\t$color = unpack(\"n\", $vide . substr($img, floor($P), 1));\n\t\t\t\tif (($P * 2) % 2 == 0) $color[1] = ($color[1] >> 4) ; else $color[1] = ($color[1] & 0x0F);\n\t\t\t\t\t$color[1] = $palette[$color[1] + 1];\n\t\t\t\t} elseif ($bmp['bits_per_pixel'] == 1) {\n\t\t\t\t\t$color = unpack(\"n\", $vide . substr($img, floor($P), 1));\n\n\t\t\t\t\tif (($P * 8) % 8 == 0) $color[1] = $color[1] >> 7;\n\t\t\t\t\telseif (($P * 8) % 8 == 1) $color[1] = ($color[1] & 0x40) >> 6;\n\t\t\t\t\telseif (($P * 8) % 8 == 2) $color[1] = ($color[1] & 0x20) >> 5;\n\t\t\t\t\telseif (($P * 8) % 8 == 3) $color[1] = ($color[1] & 0x10) >> 4;\n\t\t\t\t\telseif (($P * 8) % 8 == 4) $color[1] = ($color[1] & 0x8) >> 3;\n\t\t\t\t\telseif (($P * 8) % 8 == 5) $color[1] = ($color[1] & 0x4) >> 2;\n\t\t\t\t\telseif (($P * 8) % 8 == 6) $color[1] = ($color[1] & 0x2) >> 1;\n\t\t\t\t\telseif (($P * 8) % 8 == 7) $color[1] = ($color[1] & 0x1);\n\n\t\t\t\t\t$color[1] = $palette[$color[1] + 1];\n\t\t\t\t} else {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\n\t\t\t\timagesetpixel($res,$X,$Y,$color[1]);\n\n\t\t\t\t$X++;\n\t\t\t\t$P += $bmp['bytes_per_pixel'];\n\t\t\t}\n\t\t\t$Y--;\n\t\t\t$P+=$bmp['decal'];\n\t\t}\n\n\t\tfclose($f1);\n\n\t\treturn $res;\n\t}",
"public function getImageColors () {}",
"function imagecreatefrombmp($filename) {\r\n\t if (! $f1 = fopen($filename,\"rb\")) return FALSE;\r\n\r\n\t //1 : Chargement des ent?tes FICHIER\r\n\t $FILE = unpack(\"vfile_type/Vfile_size/Vreserved/Vbitmap_offset\", fread($f1,14));\r\n\t if ($FILE['file_type'] != 19778) return FALSE;\r\n\r\n\t //2 : Chargement des ent?tes BMP\r\n\t $BMP = unpack('Vheader_size/Vwidth/Vheight/vplanes/vbits_per_pixel'.\r\n\t\t\t\t\t '/Vcompression/Vsize_bitmap/Vhoriz_resolution'.\r\n\t\t\t\t\t '/Vvert_resolution/Vcolors_used/Vcolors_important', fread($f1,40));\r\n\t $BMP['colors'] = pow(2,$BMP['bits_per_pixel']);\r\n\t if ($BMP['size_bitmap'] == 0) $BMP['size_bitmap'] = $FILE['file_size'] - $FILE['bitmap_offset'];\r\n\t $BMP['bytes_per_pixel'] = $BMP['bits_per_pixel']/8;\r\n\t $BMP['bytes_per_pixel2'] = ceil($BMP['bytes_per_pixel']);\r\n\t $BMP['decal'] = ($BMP['width']*$BMP['bytes_per_pixel']/4);\r\n\t $BMP['decal'] -= floor($BMP['width']*$BMP['bytes_per_pixel']/4);\r\n\t $BMP['decal'] = 4-(4*$BMP['decal']);\r\n\t if ($BMP['decal'] == 4) $BMP['decal'] = 0;\r\n\r\n\t //3 : Chargement des couleurs de la palette\r\n\t $PALETTE = array();\r\n\t if ($BMP['colors'] < 16777216)\r\n\t {\r\n\t\t$PALETTE = unpack('V'.$BMP['colors'], fread($f1,$BMP['colors']*4));\r\n\t }\r\n\r\n\t //4 : Cr?ation de l'image\r\n\t $IMG = fread($f1,$BMP['size_bitmap']);\r\n\t $VIDE = chr(0);\r\n\r\n\t $res = imagecreatetruecolor($BMP['width'],$BMP['height']);\r\n\t $P = 0;\r\n\t $Y = $BMP['height']-1;\r\n\t while ($Y >= 0)\r\n\t {\r\n\t\t$X=0;\r\n\t\twhile ($X < $BMP['width'])\r\n\t\t{\r\n\t\t if ($BMP['bits_per_pixel'] == 24)\r\n\t\t\t$COLOR = @unpack(\"V\",substr($IMG,$P,3).$VIDE);\r\n\t\t elseif ($BMP['bits_per_pixel'] == 16)\r\n\t\t {\r\n\t\t\t$COLOR = @unpack(\"n\",substr($IMG,$P,2));\r\n\t\t\t$COLOR[1] = $PALETTE[$COLOR[1]+1];\r\n\t\t }\r\n\t\t elseif ($BMP['bits_per_pixel'] == 8)\r\n\t\t {\r\n\t\t\t$COLOR = @unpack(\"n\",$VIDE.substr($IMG,$P,1));\r\n\t\t\t$COLOR[1] = $PALETTE[$COLOR[1]+1];\r\n\t\t }\r\n\t\t elseif ($BMP['bits_per_pixel'] == 4)\r\n\t\t {\r\n\t\t\t$COLOR = @unpack(\"n\",$VIDE.substr($IMG,floor($P),1));\r\n\t\t\tif (($P*2)%2 == 0) $COLOR[1] = ($COLOR[1] >> 4) ; else $COLOR[1] = ($COLOR[1] & 0x0F);\r\n\t\t\t$COLOR[1] = $PALETTE[$COLOR[1]+1];\r\n\t\t }\r\n\t\t elseif ($BMP['bits_per_pixel'] == 1)\r\n\t\t {\r\n\t\t\t$COLOR = @unpack(\"n\",$VIDE.substr($IMG,floor($P),1));\r\n\t\t\tif (($P*8)%8 == 0) $COLOR[1] = $COLOR[1] >>7;\r\n\t\t\telseif (($P*8)%8 == 1) $COLOR[1] = ($COLOR[1] & 0x40)>>6;\r\n\t\t\telseif (($P*8)%8 == 2) $COLOR[1] = ($COLOR[1] & 0x20)>>5;\r\n\t\t\telseif (($P*8)%8 == 3) $COLOR[1] = ($COLOR[1] & 0x10)>>4;\r\n\t\t\telseif (($P*8)%8 == 4) $COLOR[1] = ($COLOR[1] & 0x8)>>3;\r\n\t\t\telseif (($P*8)%8 == 5) $COLOR[1] = ($COLOR[1] & 0x4)>>2;\r\n\t\t\telseif (($P*8)%8 == 6) $COLOR[1] = ($COLOR[1] & 0x2)>>1;\r\n\t\t\telseif (($P*8)%8 == 7) $COLOR[1] = ($COLOR[1] & 0x1);\r\n\t\t\t$COLOR[1] = $PALETTE[$COLOR[1]+1];\r\n\t\t }\r\n\t\t else\r\n\t\t\treturn FALSE;\r\n\t\t imagesetpixel($res,$X,$Y,$COLOR[1]);\r\n\t\t $X++;\r\n\t\t $P += $BMP['bytes_per_pixel'];\r\n\t\t}\r\n\t\t$Y--;\r\n\t\t$P+=$BMP['decal'];\r\n\t }\r\n\r\n\t //Fermeture du fichier\r\n\t fclose($f1);\r\n\r\n\t return $res;\r\n\r\n\t}",
"public static function parse( $xml = null ) {\n\n\t\t/**\n\t\t * Parse the XML file.\n\t\t * XML copied from http://www.colourlovers.com/api/palettes/top?numResults=100\n\t\t */\n\t\t$xml_url = ( is_null( $xml ) ) ? trailingslashit( kirki_url() ).'assets/xml/colourlovers-top.xml' : $xml;\n\t\t$feed_xml = simplexml_load_file( $xml_url );\n\n\t\t$palettes = array();\n\t\tforeach ( $feed_xml->palette as $result ) {\n\t\t\t$palettes[] = (array) $result->colors->hex;\n\t\t}\n\n\t\treturn $palettes;\n\n\t}",
"function imagecreatefrombmp($file) {\r\nglobal $CurrentBit, $echoMode;\r\n\r\n$f = fopen($file, \"r\");\r\n$Header = fread($f, 2);\r\n\r\nif ($Header == \"BM\") {\r\n$Size = freaddword($f);\r\n$Reserved1 = freadword($f);\r\n$Reserved2 = freadword($f);\r\n$FirstByteOfImage = freaddword($f);\r\n\r\n$SizeBITMAPINFOHEADER = freaddword($f);\r\n$Width = freaddword($f);\r\n$Height = freaddword($f);\r\n$biPlanes = freadword($f);\r\n$biBitCount = freadword($f);\r\n$RLECompression = freaddword($f);\r\n$WidthxHeight = freaddword($f);\r\n$biXPelsPerMeter = freaddword($f);\r\n$biYPelsPerMeter = freaddword($f);\r\n$NumberOfPalettesUsed = freaddword($f);\r\n$NumberOfImportantColors = freaddword($f);\r\n\r\nif ($biBitCount < 24) {\r\n$img = imagecreate($Width, $Height);\r\n$Colors = pow(2, $biBitCount);\r\nfor ($p = 0; $p < $Colors; $p++) {\r\n$B = freadbyte($f);\r\n$G = freadbyte($f);\r\n$R = freadbyte($f);\r\n$Reserved = freadbyte($f);\r\n$Palette[] = imagecolorallocate($img, $R, $G, $B);\r\n};\r\n\r\nif ($RLECompression == 0) {\r\n$Zbytek = (4 - ceil(($Width / (8 / $biBitCount))) % 4) % 4;\r\n\r\nfor ($y = $Height -1; $y >= 0; $y--) {\r\n$CurrentBit = 0;\r\nfor ($x = 0; $x < $Width; $x++) {\r\n$C = freadbits($f, $biBitCount);\r\nimagesetpixel($img, $x, $y, $Palette[$C]);\r\n};\r\nif ($CurrentBit != 0) {\r\nfreadbyte($f);\r\n};\r\nfor ($g = 0; $g < $Zbytek; $g++)\r\nfreadbyte($f);\r\n};\r\n\r\n};\r\n};\r\n\r\nif ($RLECompression == 1) //$BI_RLE8\r\n{\r\n$y = $Height;\r\n\r\n$pocetb = 0;\r\n\r\nwhile (true) {\r\n$y--;\r\n$prefix = freadbyte($f);\r\n$suffix = freadbyte($f);\r\n$pocetb += 2;\r\n\r\n$echoit = false;\r\n\r\nif ($echoit)\r\necho \"Prefix: $prefix Suffix: $suffix<BR>\";\r\nif (($prefix == 0) and ($suffix == 1))\r\nbreak;\r\nif (feof($f))\r\nbreak;\r\n\r\nwhile (!(($prefix == 0) and ($suffix == 0))) {\r\nif ($prefix == 0) {\r\n$pocet = $suffix;\r\n$Data .= fread($f, $pocet);\r\n$pocetb += $pocet;\r\nif ($pocetb % 2 == 1) {\r\nfreadbyte($f);\r\n$pocetb++;\r\n};\r\n};\r\nif ($prefix > 0) {\r\n$pocet = $prefix;\r\nfor ($r = 0; $r < $pocet; $r++)\r\n$Data .= chr($suffix);\r\n};\r\n$prefix = freadbyte($f);\r\n$suffix = freadbyte($f);\r\n$pocetb += 2;\r\nif ($echoit)\r\necho \"Prefix: $prefix Suffix: $suffix<BR>\";\r\n};\r\n\r\nfor ($x = 0; $x < strlen($Data); $x++) {\r\nimagesetpixel($img, $x, $y, $Palette[ord($Data[$x])]);\r\n};\r\n$Data = \"\";\r\n\r\n};\r\n\r\n};\r\n\r\nif ($RLECompression == 2) //$BI_RLE4\r\n{\r\n$y = $Height;\r\n$pocetb = 0;\r\n\r\n/*while(!feof($f))\r\necho freadbyte($f).\"_\".freadbyte($f).\"<BR>\";*/\r\nwhile (true) {\r\n//break;\r\n$y--;\r\n$prefix = freadbyte($f);\r\n$suffix = freadbyte($f);\r\n$pocetb += 2;\r\n\r\n$echoit = false;\r\n\r\nif ($echoit)\r\necho \"Prefix: $prefix Suffix: $suffix<BR>\";\r\nif (($prefix == 0) and ($suffix == 1))\r\nbreak;\r\nif (feof($f))\r\nbreak;\r\n\r\nwhile (!(($prefix == 0) and ($suffix == 0))) {\r\nif ($prefix == 0) {\r\n$pocet = $suffix;\r\n\r\n$CurrentBit = 0;\r\nfor ($h = 0; $h < $pocet; $h++)\r\n$Data .= chr(freadbits($f, 4));\r\nif ($CurrentBit != 0)\r\nfreadbits($f, 4);\r\n$pocetb += ceil(($pocet / 2));\r\nif ($pocetb % 2 == 1) {\r\nfreadbyte($f);\r\n$pocetb++;\r\n};\r\n};\r\nif ($prefix > 0) {\r\n$pocet = $prefix;\r\n$i = 0;\r\nfor ($r = 0; $r < $pocet; $r++) {\r\nif ($i % 2 == 0) {\r\n$Data .= chr($suffix % 16);\r\n} else {\r\n$Data .= chr(floor($suffix / 16));\r\n};\r\n$i++;\r\n};\r\n};\r\n$prefix = freadbyte($f);\r\n$suffix = freadbyte($f);\r\n$pocetb += 2;\r\nif ($echoit)\r\necho \"Prefix: $prefix Suffix: $suffix<BR>\";\r\n};\r\n\r\nfor ($x = 0; $x < strlen($Data); $x++) {\r\nimagesetpixel($img, $x, $y, $Palette[ord($Data[$x])]);\r\n};\r\n$Data = \"\";\r\n\r\n};\r\n\r\n};\r\n\r\nif ($biBitCount == 24) {\r\n$img = imagecreatetruecolor($Width, $Height);\r\n$Zbytek = $Width % 4;\r\n\r\nfor ($y = $Height -1; $y >= 0; $y--) {\r\nfor ($x = 0; $x < $Width; $x++) {\r\n$B = freadbyte($f);\r\n$G = freadbyte($f);\r\n$R = freadbyte($f);\r\n$color = imagecolorexact($img, $R, $G, $B);\r\nif ($color == -1)\r\n$color = imagecolorallocate($img, $R, $G, $B);\r\nimagesetpixel($img, $x, $y, $color);\r\n}\r\nfor ($z = 0; $z < $Zbytek; $z++)\r\nfreadbyte($f);\r\n};\r\n};\r\nreturn $img;\r\n\r\n};\r\n\r\nfclose($f);\r\n\r\n}",
"private function getBinaryData(){\n\t\t$this->imageData = we_base_file::load(WEBEDITION_PATH . '../' . $this->imagePath);\n\t}",
"public function getPixelIterator () {}",
"public static function getRgbFromHex(string $hex): array {\n switch (strlen($hex)) {\n case 3:\n [$red, $green, $blue] = str_split($hex);\n\n $red .= $red;\n $green .= $green;\n $blue .= $blue;\n break;\n case 6:\n default:\n [$red, $green, $blue] = str_split($hex, 2);\n }\n\n return [$red, $green, $blue];\n }",
"function getImgColors( $image) {\n\t $imgColors = 0;\n\t \n $cmd = $this->imPath.'identify -format %k '.$image;\n \n $output = array();\n $execStatus = false;\n exec( $cmd, $output, $execStatus);\n \n // shell returns 0 if program exits successfully\n if ( $execStatus == 0) {\n $imgColors = intval( $output[0]);\n }\n\t \n\t return $imgColors;\n\t}",
"private function getCharFromImage(){\n\t\tfor($i = 0;$i <= 38;$i+=2){\n\t\t\tfor($x = 0;$x<=38;$x+=2){\n\t\t\t\t$tp[] = imagecolorat($this->tinyImage,$x,$i) > 10000000 ? 0 : 1;\n\t\t\t}\n\t\t}\t\n\t\n$sql = \"SELECT chr FROM chars\nORDER BY (IF(tp0 = \" . $tp['0'] . \",1,0)+IF(tp1 = \" . $tp['1'] . \",1,0)+IF(tp2 = \" . $tp['2'] . \",1,0)+IF(tp3 = \" . $tp['3'] . \",1,0)+IF(tp4 = \" . $tp['4'] . \",1,0)+IF(tp5 = \" . $tp['5'] . \",1,0)+IF(tp6 = \" . $tp['6'] . \",1,0)+IF(tp7 = \" . $tp['7'] . \",1,0)+IF(tp8 = \" . $tp['8'] . \",1,0)+IF(tp9 = \" . $tp['9'] . \",1,0)+IF(tp10 = \" . $tp['10'] . \",1,0)+IF(tp11 = \" . $tp['11'] . \",1,0)+IF(tp12 = \" . $tp['12'] . \",1,0)+IF(tp13 = \" . $tp['13'] . \",1,0)+IF(tp14 = \" . $tp['14'] . \",1,0)+IF(tp15 = \" . $tp['15'] . \",1,0)+IF(tp16 = \" . $tp['16'] . \",1,0)+IF(tp17 = \" . $tp['17'] . \",1,0)+IF(tp18 = \" . $tp['18'] . \",1,0)+IF(tp19 = \" . $tp['19'] . \",1,0)+IF(tp20 = \" . $tp['20'] . \",1,0)+IF(tp21 = \" . $tp['21'] . \",1,0)+IF(tp22 = \" . $tp['22'] . \",1,0)+IF(tp23 = \" . $tp['23'] . \",1,0)+IF(tp24 = \" . $tp['24'] . \",1,0)+IF(tp25 = \" . $tp['25'] . \",1,0)+IF(tp26 = \" . $tp['26'] . \",1,0)+IF(tp27 = \" . $tp['27'] . \",1,0)+IF(tp28 = \" . $tp['28'] . \",1,0)+IF(tp29 = \" . $tp['29'] . \",1,0)+IF(tp30 = \" . $tp['30'] . \",1,0)+IF(tp31 = \" . $tp['31'] . \",1,0)+IF(tp32 = \" . $tp['32'] . \",1,0)+IF(tp33 = \" . $tp['33'] . \",1,0)+IF(tp34 = \" . $tp['34'] . \",1,0)+IF(tp35 = \" . $tp['35'] . \",1,0)+IF(tp36 = \" . $tp['36'] . \",1,0)+IF(tp37 = \" . $tp['37'] . \",1,0)+IF(tp38 = \" . $tp['38'] . \",1,0)+IF(tp39 = \" . $tp['39'] . \",1,0)+IF(tp40 = \" . $tp['40'] . \",1,0)+IF(tp41 = \" . $tp['41'] . \",1,0)+IF(tp42 = \" . $tp['42'] . \",1,0)+IF(tp43 = \" . $tp['43'] . \",1,0)+IF(tp44 = \" . $tp['44'] . \",1,0)+IF(tp45 = \" . $tp['45'] . \",1,0)+IF(tp46 = \" . $tp['46'] . \",1,0)+IF(tp47 = \" . $tp['47'] . \",1,0)+IF(tp48 = \" . $tp['48'] . \",1,0)+IF(tp49 = \" . $tp['49'] . \",1,0)+IF(tp50 = \" . $tp['50'] . \",1,0)+IF(tp51 = \" . $tp['51'] . \",1,0)+IF(tp52 = \" . $tp['52'] . \",1,0)+IF(tp53 = \" . $tp['53'] . \",1,0)+IF(tp54 = \" . $tp['54'] . \",1,0)+IF(tp55 = \" . $tp['55'] . \",1,0)+IF(tp56 = \" . $tp['56'] . \",1,0)+IF(tp57 = \" . $tp['57'] . \",1,0)+IF(tp58 = \" . $tp['58'] . \",1,0)+IF(tp59 = \" . $tp['59'] . \",1,0)+IF(tp60 = \" . $tp['60'] . \",1,0)+IF(tp61 = \" . $tp['61'] . \",1,0)+IF(tp62 = \" . $tp['62'] . \",1,0)+IF(tp63 = \" . $tp['63'] . \",1,0)+IF(tp64 = \" . $tp['64'] . \",1,0)+IF(tp65 = \" . $tp['65'] . \",1,0)+IF(tp66 = \" . $tp['66'] . \",1,0)+IF(tp67 = \" . $tp['67'] . \",1,0)+IF(tp68 = \" . $tp['68'] . \",1,0)+IF(tp69 = \" . $tp['69'] . \",1,0)+IF(tp70 = \" . $tp['70'] . \",1,0)+IF(tp71 = \" . $tp['71'] . \",1,0)+IF(tp72 = \" . $tp['72'] . \",1,0)+IF(tp73 = \" . $tp['73'] . \",1,0)+IF(tp74 = \" . $tp['74'] . \",1,0)+IF(tp75 = \" . $tp['75'] . \",1,0)+IF(tp76 = \" . $tp['76'] . \",1,0)+IF(tp77 = \" . $tp['77'] . \",1,0)+IF(tp78 = \" . $tp['78'] . \",1,0)+IF(tp79 = \" . $tp['79'] . \",1,0)+IF(tp80 = \" . $tp['80'] . \",1,0)+IF(tp81 = \" . $tp['81'] . \",1,0)+IF(tp82 = \" . $tp['82'] . \",1,0)+IF(tp83 = \" . $tp['83'] . \",1,0)+IF(tp84 = \" . $tp['84'] . \",1,0)+IF(tp85 = \" . $tp['85'] . \",1,0)+IF(tp86 = \" . $tp['86'] . \",1,0)+IF(tp87 = \" . $tp['87'] . \",1,0)+IF(tp88 = \" . $tp['88'] . \",1,0)+IF(tp89 = \" . $tp['89'] . \",1,0)+IF(tp90 = \" . $tp['90'] . \",1,0)+IF(tp91 = \" . $tp['91'] . \",1,0)+IF(tp92 = \" . $tp['92'] . \",1,0)+IF(tp93 = \" . $tp['93'] . \",1,0)+IF(tp94 = \" . $tp['94'] . \",1,0)+IF(tp95 = \" . $tp['95'] . \",1,0)+IF(tp96 = \" . $tp['96'] . \",1,0)+IF(tp97 = \" . $tp['97'] . \",1,0)+IF(tp98 = \" . $tp['98'] . \",1,0)+IF(tp99 = \" . $tp['99'] . \",1,0)+IF(tp100 = \" . $tp['100'] . \",1,0)+IF(tp101 = \" . $tp['101'] . \",1,0)+IF(tp102 = \" . $tp['102'] . \",1,0)+IF(tp103 = \" . $tp['103'] . \",1,0)+IF(tp104 = \" . $tp['104'] . \",1,0)+IF(tp105 = \" . $tp['105'] . \",1,0)+IF(tp106 = \" . $tp['106'] . \",1,0)+IF(tp107 = \" . $tp['107'] . \",1,0)+IF(tp108 = \" . $tp['108'] . \",1,0)+IF(tp109 = \" . $tp['109'] . \",1,0)+IF(tp110 = \" . $tp['110'] . \",1,0)+IF(tp111 = \" . $tp['111'] . \",1,0)+IF(tp112 = \" . $tp['112'] . \",1,0)+IF(tp113 = \" . $tp['113'] . \",1,0)+IF(tp114 = \" . $tp['114'] . \",1,0)+IF(tp115 = \" . $tp['115'] . \",1,0)+IF(tp116 = \" . $tp['116'] . \",1,0)+IF(tp117 = \" . $tp['117'] . \",1,0)+IF(tp118 = \" . $tp['118'] . \",1,0)+IF(tp119 = \" . $tp['119'] . \",1,0)+IF(tp120 = \" . $tp['120'] . \",1,0)+IF(tp121 = \" . $tp['121'] . \",1,0)+IF(tp122 = \" . $tp['122'] . \",1,0)+IF(tp123 = \" . $tp['123'] . \",1,0)+IF(tp124 = \" . $tp['124'] . \",1,0)+IF(tp125 = \" . $tp['125'] . \",1,0)+IF(tp126 = \" . $tp['126'] . \",1,0)+IF(tp127 = \" . $tp['127'] . \",1,0)+IF(tp128 = \" . $tp['128'] . \",1,0)+IF(tp129 = \" . $tp['129'] . \",1,0)+IF(tp130 = \" . $tp['130'] . \",1,0)+IF(tp131 = \" . $tp['131'] . \",1,0)+IF(tp132 = \" . $tp['132'] . \",1,0)+IF(tp133 = \" . $tp['133'] . \",1,0)+IF(tp134 = \" . $tp['134'] . \",1,0)+IF(tp135 = \" . $tp['135'] . \",1,0)+IF(tp136 = \" . $tp['136'] . \",1,0)+IF(tp137 = \" . $tp['137'] . \",1,0)+IF(tp138 = \" . $tp['138'] . \",1,0)+IF(tp139 = \" . $tp['139'] . \",1,0)+IF(tp140 = \" . $tp['140'] . \",1,0)+IF(tp141 = \" . $tp['141'] . \",1,0)+IF(tp142 = \" . $tp['142'] . \",1,0)+IF(tp143 = \" . $tp['143'] . \",1,0)+IF(tp144 = \" . $tp['144'] . \",1,0)+IF(tp145 = \" . $tp['145'] . \",1,0)+IF(tp146 = \" . $tp['146'] . \",1,0)+IF(tp147 = \" . $tp['147'] . \",1,0)+IF(tp148 = \" . $tp['148'] . \",1,0)+IF(tp149 = \" . $tp['149'] . \",1,0)+IF(tp150 = \" . $tp['150'] . \",1,0)+IF(tp151 = \" . $tp['151'] . \",1,0)+IF(tp152 = \" . $tp['152'] . \",1,0)+IF(tp153 = \" . $tp['153'] . \",1,0)+IF(tp154 = \" . $tp['154'] . \",1,0)+IF(tp155 = \" . $tp['155'] . \",1,0)+IF(tp156 = \" . $tp['156'] . \",1,0)+IF(tp157 = \" . $tp['157'] . \",1,0)+IF(tp158 = \" . $tp['158'] . \",1,0)+IF(tp159 = \" . $tp['159'] . \",1,0)+IF(tp160 = \" . $tp['160'] . \",1,0)+IF(tp161 = \" . $tp['161'] . \",1,0)+IF(tp162 = \" . $tp['162'] . \",1,0)+IF(tp163 = \" . $tp['163'] . \",1,0)+IF(tp164 = \" . $tp['164'] . \",1,0)+IF(tp165 = \" . $tp['165'] . \",1,0)+IF(tp166 = \" . $tp['166'] . \",1,0)+IF(tp167 = \" . $tp['167'] . \",1,0)+IF(tp168 = \" . $tp['168'] . \",1,0)+IF(tp169 = \" . $tp['169'] . \",1,0)+IF(tp170 = \" . $tp['170'] . \",1,0)+IF(tp171 = \" . $tp['171'] . \",1,0)+IF(tp172 = \" . $tp['172'] . \",1,0)+IF(tp173 = \" . $tp['173'] . \",1,0)+IF(tp174 = \" . $tp['174'] . \",1,0)+IF(tp175 = \" . $tp['175'] . \",1,0)+IF(tp176 = \" . $tp['176'] . \",1,0)+IF(tp177 = \" . $tp['177'] . \",1,0)+IF(tp178 = \" . $tp['178'] . \",1,0)+IF(tp179 = \" . $tp['179'] . \",1,0)+IF(tp180 = \" . $tp['180'] . \",1,0)+IF(tp181 = \" . $tp['181'] . \",1,0)+IF(tp182 = \" . $tp['182'] . \",1,0)+IF(tp183 = \" . $tp['183'] . \",1,0)+IF(tp184 = \" . $tp['184'] . \",1,0)+IF(tp185 = \" . $tp['185'] . \",1,0)+IF(tp186 = \" . $tp['186'] . \",1,0)+IF(tp187 = \" . $tp['187'] . \",1,0)+IF(tp188 = \" . $tp['188'] . \",1,0)+IF(tp189 = \" . $tp['189'] . \",1,0)+IF(tp190 = \" . $tp['190'] . \",1,0)+IF(tp191 = \" . $tp['191'] . \",1,0)+IF(tp192 = \" . $tp['192'] . \",1,0)+IF(tp193 = \" . $tp['193'] . \",1,0)+IF(tp194 = \" . $tp['194'] . \",1,0)+IF(tp195 = \" . $tp['195'] . \",1,0)+IF(tp196 = \" . $tp['196'] . \",1,0)+IF(tp197 = \" . $tp['197'] . \",1,0)+IF(tp198 = \" . $tp['198'] . \",1,0)+IF(tp199 = \" . $tp['199'] . \",1,0)+IF(tp200 = \" . $tp['200'] . \",1,0)+IF(tp201 = \" . $tp['201'] . \",1,0)+IF(tp202 = \" . $tp['202'] . \",1,0)+IF(tp203 = \" . $tp['203'] . \",1,0)+IF(tp204 = \" . $tp['204'] . \",1,0)+IF(tp205 = \" . $tp['205'] . \",1,0)+IF(tp206 = \" . $tp['206'] . \",1,0)+IF(tp207 = \" . $tp['207'] . \",1,0)+IF(tp208 = \" . $tp['208'] . \",1,0)+IF(tp209 = \" . $tp['209'] . \",1,0)+IF(tp210 = \" . $tp['210'] . \",1,0)+IF(tp211 = \" . $tp['211'] . \",1,0)+IF(tp212 = \" . $tp['212'] . \",1,0)+IF(tp213 = \" . $tp['213'] . \",1,0)+IF(tp214 = \" . $tp['214'] . \",1,0)+IF(tp215 = \" . $tp['215'] . \",1,0)+IF(tp216 = \" . $tp['216'] . \",1,0)+IF(tp217 = \" . $tp['217'] . \",1,0)+IF(tp218 = \" . $tp['218'] . \",1,0)+IF(tp219 = \" . $tp['219'] . \",1,0)+IF(tp220 = \" . $tp['220'] . \",1,0)+IF(tp221 = \" . $tp['221'] . \",1,0)+IF(tp222 = \" . $tp['222'] . \",1,0)+IF(tp223 = \" . $tp['223'] . \",1,0)+IF(tp224 = \" . $tp['224'] . \",1,0)+IF(tp225 = \" . $tp['225'] . \",1,0)+IF(tp226 = \" . $tp['226'] . \",1,0)+IF(tp227 = \" . $tp['227'] . \",1,0)+IF(tp228 = \" . $tp['228'] . \",1,0)+IF(tp229 = \" . $tp['229'] . \",1,0)+IF(tp230 = \" . $tp['230'] . \",1,0)+IF(tp231 = \" . $tp['231'] . \",1,0)+IF(tp232 = \" . $tp['232'] . \",1,0)+IF(tp233 = \" . $tp['233'] . \",1,0)+IF(tp234 = \" . $tp['234'] . \",1,0)+IF(tp235 = \" . $tp['235'] . \",1,0)+IF(tp236 = \" . $tp['236'] . \",1,0)+IF(tp237 = \" . $tp['237'] . \",1,0)+IF(tp238 = \" . $tp['238'] . \",1,0)+IF(tp239 = \" . $tp['239'] . \",1,0)+IF(tp240 = \" . $tp['240'] . \",1,0)+IF(tp241 = \" . $tp['241'] . \",1,0)+IF(tp242 = \" . $tp['242'] . \",1,0)+IF(tp243 = \" . $tp['243'] . \",1,0)+IF(tp244 = \" . $tp['244'] . \",1,0)+IF(tp245 = \" . $tp['245'] . \",1,0)+IF(tp246 = \" . $tp['246'] . \",1,0)+IF(tp247 = \" . $tp['247'] . \",1,0)+IF(tp248 = \" . $tp['248'] . \",1,0)+IF(tp249 = \" . $tp['249'] . \",1,0)+IF(tp250 = \" . $tp['250'] . \",1,0)+IF(tp251 = \" . $tp['251'] . \",1,0)+IF(tp252 = \" . $tp['252'] . \",1,0)+IF(tp253 = \" . $tp['253'] . \",1,0)+IF(tp254 = \" . $tp['254'] . \",1,0)+IF(tp255 = \" . $tp['255'] . \",1,0)+IF(tp256 = \" . $tp['256'] . \",1,0)+IF(tp257 = \" . $tp['257'] . \",1,0)+IF(tp258 = \" . $tp['258'] . \",1,0)+IF(tp259 = \" . $tp['259'] . \",1,0)+IF(tp260 = \" . $tp['260'] . \",1,0)+IF(tp261 = \" . $tp['261'] . \",1,0)+IF(tp262 = \" . $tp['262'] . \",1,0)+IF(tp263 = \" . $tp['263'] . \",1,0)+IF(tp264 = \" . $tp['264'] . \",1,0)+IF(tp265 = \" . $tp['265'] . \",1,0)+IF(tp266 = \" . $tp['266'] . \",1,0)+IF(tp267 = \" . $tp['267'] . \",1,0)+IF(tp268 = \" . $tp['268'] . \",1,0)+IF(tp269 = \" . $tp['269'] . \",1,0)+IF(tp270 = \" . $tp['270'] . \",1,0)+IF(tp271 = \" . $tp['271'] . \",1,0)+IF(tp272 = \" . $tp['272'] . \",1,0)+IF(tp273 = \" . $tp['273'] . \",1,0)+IF(tp274 = \" . $tp['274'] . \",1,0)+IF(tp275 = \" . $tp['275'] . \",1,0)+IF(tp276 = \" . $tp['276'] . \",1,0)+IF(tp277 = \" . $tp['277'] . \",1,0)+IF(tp278 = \" . $tp['278'] . \",1,0)+IF(tp279 = \" . $tp['279'] . \",1,0)+IF(tp280 = \" . $tp['280'] . \",1,0)+IF(tp281 = \" . $tp['281'] . \",1,0)+IF(tp282 = \" . $tp['282'] . \",1,0)+IF(tp283 = \" . $tp['283'] . \",1,0)+IF(tp284 = \" . $tp['284'] . \",1,0)+IF(tp285 = \" . $tp['285'] . \",1,0)+IF(tp286 = \" . $tp['286'] . \",1,0)+IF(tp287 = \" . $tp['287'] . \",1,0)+IF(tp288 = \" . $tp['288'] . \",1,0)+IF(tp289 = \" . $tp['289'] . \",1,0)+IF(tp290 = \" . $tp['290'] . \",1,0)+IF(tp291 = \" . $tp['291'] . \",1,0)+IF(tp292 = \" . $tp['292'] . \",1,0)+IF(tp293 = \" . $tp['293'] . \",1,0)+IF(tp294 = \" . $tp['294'] . \",1,0)+IF(tp295 = \" . $tp['295'] . \",1,0)+IF(tp296 = \" . $tp['296'] . \",1,0)+IF(tp297 = \" . $tp['297'] . \",1,0)+IF(tp298 = \" . $tp['298'] . \",1,0)+IF(tp299 = \" . $tp['299'] . \",1,0)+IF(tp300 = \" . $tp['300'] . \",1,0)+IF(tp301 = \" . $tp['301'] . \",1,0)+IF(tp302 = \" . $tp['302'] . \",1,0)+IF(tp303 = \" . $tp['303'] . \",1,0)+IF(tp304 = \" . $tp['304'] . \",1,0)+IF(tp305 = \" . $tp['305'] . \",1,0)+IF(tp306 = \" . $tp['306'] . \",1,0)+IF(tp307 = \" . $tp['307'] . \",1,0)+IF(tp308 = \" . $tp['308'] . \",1,0)+IF(tp309 = \" . $tp['309'] . \",1,0)+IF(tp310 = \" . $tp['310'] . \",1,0)+IF(tp311 = \" . $tp['311'] . \",1,0)+IF(tp312 = \" . $tp['312'] . \",1,0)+IF(tp313 = \" . $tp['313'] . \",1,0)+IF(tp314 = \" . $tp['314'] . \",1,0)+IF(tp315 = \" . $tp['315'] . \",1,0)+IF(tp316 = \" . $tp['316'] . \",1,0)+IF(tp317 = \" . $tp['317'] . \",1,0)+IF(tp318 = \" . $tp['318'] . \",1,0)+IF(tp319 = \" . $tp['319'] . \",1,0)+IF(tp320 = \" . $tp['320'] . \",1,0)+IF(tp321 = \" . $tp['321'] . \",1,0)+IF(tp322 = \" . $tp['322'] . \",1,0)+IF(tp323 = \" . $tp['323'] . \",1,0)+IF(tp324 = \" . $tp['324'] . \",1,0)+IF(tp325 = \" . $tp['325'] . \",1,0)+IF(tp326 = \" . $tp['326'] . \",1,0)+IF(tp327 = \" . $tp['327'] . \",1,0)+IF(tp328 = \" . $tp['328'] . \",1,0)+IF(tp329 = \" . $tp['329'] . \",1,0)+IF(tp330 = \" . $tp['330'] . \",1,0)+IF(tp331 = \" . $tp['331'] . \",1,0)+IF(tp332 = \" . $tp['332'] . \",1,0)+IF(tp333 = \" . $tp['333'] . \",1,0)+IF(tp334 = \" . $tp['334'] . \",1,0)+IF(tp335 = \" . $tp['335'] . \",1,0)+IF(tp336 = \" . $tp['336'] . \",1,0)+IF(tp337 = \" . $tp['337'] . \",1,0)+IF(tp338 = \" . $tp['338'] . \",1,0)+IF(tp339 = \" . $tp['339'] . \",1,0)+IF(tp340 = \" . $tp['340'] . \",1,0)+IF(tp341 = \" . $tp['341'] . \",1,0)+IF(tp342 = \" . $tp['342'] . \",1,0)+IF(tp343 = \" . $tp['343'] . \",1,0)+IF(tp344 = \" . $tp['344'] . \",1,0)+IF(tp345 = \" . $tp['345'] . \",1,0)+IF(tp346 = \" . $tp['346'] . \",1,0)+IF(tp347 = \" . $tp['347'] . \",1,0)+IF(tp348 = \" . $tp['348'] . \",1,0)+IF(tp349 = \" . $tp['349'] . \",1,0)+IF(tp350 = \" . $tp['350'] . \",1,0)+IF(tp351 = \" . $tp['351'] . \",1,0)+IF(tp352 = \" . $tp['352'] . \",1,0)+IF(tp353 = \" . $tp['353'] . \",1,0)+IF(tp354 = \" . $tp['354'] . \",1,0)+IF(tp355 = \" . $tp['355'] . \",1,0)+IF(tp356 = \" . $tp['356'] . \",1,0)+IF(tp357 = \" . $tp['357'] . \",1,0)+IF(tp358 = \" . $tp['358'] . \",1,0)+IF(tp359 = \" . $tp['359'] . \",1,0)+IF(tp360 = \" . $tp['360'] . \",1,0)+IF(tp361 = \" . $tp['361'] . \",1,0)+IF(tp362 = \" . $tp['362'] . \",1,0)+IF(tp363 = \" . $tp['363'] . \",1,0)+IF(tp364 = \" . $tp['364'] . \",1,0)+IF(tp365 = \" . $tp['365'] . \",1,0)+IF(tp366 = \" . $tp['366'] . \",1,0)+IF(tp367 = \" . $tp['367'] . \",1,0)+IF(tp368 = \" . $tp['368'] . \",1,0)+IF(tp369 = \" . $tp['369'] . \",1,0)+IF(tp370 = \" . $tp['370'] . \",1,0)+IF(tp371 = \" . $tp['371'] . \",1,0)+IF(tp372 = \" . $tp['372'] . \",1,0)+IF(tp373 = \" . $tp['373'] . \",1,0)+IF(tp374 = \" . $tp['374'] . \",1,0)+IF(tp375 = \" . $tp['375'] . \",1,0)+IF(tp376 = \" . $tp['376'] . \",1,0)+IF(tp377 = \" . $tp['377'] . \",1,0)+IF(tp378 = \" . $tp['378'] . \",1,0)+IF(tp379 = \" . $tp['379'] . \",1,0)+IF(tp380 = \" . $tp['380'] . \",1,0)+IF(tp381 = \" . $tp['381'] . \",1,0)+IF(tp382 = \" . $tp['382'] . \",1,0)+IF(tp383 = \" . $tp['383'] . \",1,0)+IF(tp384 = \" . $tp['384'] . \",1,0)+IF(tp385 = \" . $tp['385'] . \",1,0)+IF(tp386 = \" . $tp['386'] . \",1,0)+IF(tp387 = \" . $tp['387'] . \",1,0)+IF(tp388 = \" . $tp['388'] . \",1,0)+IF(tp389 = \" . $tp['389'] . \",1,0)+IF(tp390 = \" . $tp['390'] . \",1,0)+IF(tp391 = \" . $tp['391'] . \",1,0)+IF(tp392 = \" . $tp['392'] . \",1,0)+IF(tp393 = \" . $tp['393'] . \",1,0)+IF(tp394 = \" . $tp['394'] . \",1,0)+IF(tp395 = \" . $tp['395'] . \",1,0)+IF(tp396 = \" . $tp['396'] . \",1,0)+IF(tp397 = \" . $tp['397'] . \",1,0)+IF(tp398 = \" . $tp['398'] . \",1,0)+IF(tp399 = \" . $tp['399'] . \",1,0))\nDESC;\";\n\n\t$result = mysql_query($sql);\n\t$s = mysql_fetch_assoc($result);\t\n\t$this->imageString .= $s['chr'];\n\t}",
"function hex2rgb($hex)\n\t{\n\t return array(\n\t hexdec(substr($hex,1,2)),\n\t hexdec(substr($hex,3,2)),\n\t hexdec(substr($hex,5,2))\n\t );\n\t}",
"private static function parseRGBAComponents(string $str): array\n {\n $params = preg_split('/(\\s*[\\/,]\\s*)|(\\s+)/', Str::trim($str));\n if (count($params) !== 3 && count($params) !== 4) {\n return [null, null, null, null];\n }\n\n $r = self::parseRGBAComponent($params[0]);\n $g = self::parseRGBAComponent($params[1]);\n $b = self::parseRGBAComponent($params[2]);\n $a = count($params) < 4 ? 255 : self::parseRGBAComponent($params[3], 1, 255);\n\n return [$r, $g, $b, $a];\n }",
"public function getLogoColorAsAnRgbArray() : array\n {\n if (empty($this->logo_color)) {\n return [0, 0, 0];\n }\n\n $color = str_replace('rgb(', '', $this->logo_color);\n $color = str_replace(')', '', $color);\n\n return explode(',', $color);\n }",
"function get_dpi($filename){\n $a = fopen($filename,'r'); \n $string = fread($a,20); \n fclose($a); \n \n # get the value of byte 14th up to 18th \n $data = bin2hex(substr($string,14,4)); \n $x = substr($data,0,4); \n $y = substr($data,4,4); \n return array(hexdec($x),hexdec($y)); \n \n }",
"function unpackXML($xml_blob) {\n $data = array();\n $result = preg_match_all('|<datum>(.*)</datum>|U', $xml_blob, $data);\n \n $data_elements = array();\n foreach($data[1] as $datum) {\n $key = array();\n $result = preg_match('|<key>(.*)</key>|U', $datum, $key);\n \n $value = array();\n $result = preg_match('|<value>(.*)</value>|U', $datum, $value);\n\n $data_elements[$key[1]] = $value[1] ;\n }\n \n return $data_elements;\n}",
"public function getImage() {\n\t\t\tif(strlen($this->text) === 0)\n\t\t\t\treturn null;\n\t\t\t\n\t\t\t$code = array();\n\t\t\tfor($i = 0, $textLength = strlen($this->text); $i < $textLength; ++$i) {\n\t\t\t\tassert(isset($this->encoding[$this->text[$i]]));\n\t\t\t\t$symbolCode = $this->encoding[$this->text[$i]];\n\t\t\t\t\n\t\t\t\tfor($j = 0, $symbolCodeLength = strlen($symbolCode); $j < $symbolCodeLength; ++$j) {\n\t\t\t\t\t$barWidth = ($symbolCode[$j] === '0') ? 1 : self::WIDE_BAR_WIDTH;\n\t\t\t\t\tfor($k = 0; $k < $barWidth; ++$k)\n\t\t\t\t\t\t$code[] = ($j % 2 === 0);\n\t\t\t\t}\n\t\t\t\t$code[] = 0;\n\t\t\t}\n\t\t\t$codeWidth = count($code);\n\t\t\t\n\t\t\t$image = new Image($codeWidth, 1);\n\t\t\tfor($x = 0; $x < $codeWidth; ++$x)\n\t\t\t\t$image->setPixel($x, 0, $code[$x]);\n\t\t\t\n\t\t\treturn $image;\n\t\t}"
] | [
"0.5964973",
"0.58951575",
"0.57265",
"0.56796134",
"0.56376845",
"0.5637018",
"0.55111474",
"0.5486265",
"0.5456922",
"0.54397446",
"0.54337925",
"0.5346833",
"0.5242696",
"0.52082103",
"0.51703376",
"0.5152419",
"0.5116059",
"0.50761396",
"0.5041994",
"0.50380164",
"0.50259686",
"0.49912128",
"0.49201715",
"0.4909474",
"0.49068204",
"0.4895781",
"0.48684973",
"0.48674834",
"0.48659095",
"0.48614043"
] | 0.73619294 | 0 |
Categorize Transactions ( manual categorization and recategorization by the consumer ). | public function categorizeTransactions()
{
$this->cobSessionToken = $_SESSION['login_response']['Body']->userContext->cobrandConversationCredentials->sessionToken;
$this->userSessionToken = $_SESSION['login_response']['Body']->userContext->conversationCredentials->sessionToken;
$sendParameters = array('cobSessionToken' => $this->cobSessionToken, 'userSessionToken' => $this->userSessionToken);
$sendParameters['userCategorizationObjects[0].container'] = 'bank'; //BANK, CREDIT_CARD, INVESTMENT, INSURANCE, LOAN, REWARD_PROGRAM, MORTGAGE.
$sendParameters['userCategorizationObjects[0].containerTransactionId'] = '';
$sendParameters['userCategorizationObjects[0].targetTransactionCategoryId'] = '';
$sendParameters['userCategorizationObjects[0].categoryLevelId'] = '';
$sendParameters['userCategorizationObjects[0].transactionType'] = '';
$this->response_to_request = $this->api_call('categorizeTransactions', $sendParameters);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getUserTransactionCategories()\r\n {\r\n $cat_types = $this->getTransactionCategoryTypes(true);\r\n\r\n $this->cobSessionToken = $_SESSION['login_response']['Body']->userContext->cobrandConversationCredentials->sessionToken;\r\n $this->userSessionToken = $_SESSION['login_response']['Body']->userContext->conversationCredentials->sessionToken;\r\n $sendParameters = array('cobSessionToken' => $this->cobSessionToken, 'userSessionToken' => $this->userSessionToken);\r\n\r\n $this->response_to_request = $this->api_call('getUserTransactionCategories', $sendParameters);\r\n\r\n $HTML = '<h2>Users Transaction Category</h2>';\r\n\r\n if($this->response_to_request['Body']->errorOccurred == true){\r\n $HTML .= $this->response_to_request['Body']->message;\r\n }\r\n if($this->response_to_request['Body']->errorCode > 0) {\r\n $HTML .= 'Error Code : '.$this->response_to_request['Body']->errorCode.', '.$this->response_to_request['Body']->errorDetail;\r\n }\r\n else{\r\n $HTML .= '<table border=\"1\" cellpadding=\"\" width=\"100%\">';\r\n $HTML .= '<thead>';\r\n $HTML .= '<tr><th>categoryId</th><th>categoryName</th><th>CategoryTypeId</th><th>isBudgetable</th><th>localizedCategoryName</th><th>categoryLevelId</th></tr>';\r\n $HTML .= '</thead>';\r\n $HTML .= '<tbody>';\r\n\r\n if(sizeof($this->response_to_request['Body']) > 0) {\r\n foreach ($this->response_to_request['Body'] as $body) {\r\n $HTML .= '<tr><td>'.$body->categoryId.'</td><td><a href=\"#\">'.$body->categoryName.'</a></td><td>'.$cat_types[$body->transactionCategoryTypeId].'</td><td>'.$body->isBudgetable.'</td><td>'.$body->localizedCategoryName.'</td><td>'.$body->categoryLevelId.'</td></tr>';\r\n }\r\n }\r\n else{\r\n $HTML .= '<tr><td>data not found.</td></tr>';\r\n }\r\n\r\n $HTML .= '</tbody>';\r\n $HTML .= '</table>';\r\n }\r\n return $HTML;\r\n }",
"function process_categories()\n {\n }",
"public function collectTransactions(){ }",
"public function collectTransactions() {}",
"private function select_category_transfers()\r\n\t{\r\n\t\t$settings = array(\r\n\t\t\t'title' => \"Category/Status\",\r\n\t\t\t'fieldList' => \"categories\",\r\n\t\t\t'fieldPrefix' => \"category_\",\r\n\t\t\t'tbl_in' => 'bugtracker_categories',\r\n\t\t\t'colId_in' => 'category_id',\r\n\t\t\t'colName_in' => 'category_name',\r\n\t\t\t'tbl_out' => 'tracker_module_status',\r\n\t\t\t'colId_out' => 'status_id',\r\n\t\t\t'colName_out' => 'title',\r\n\t\t\t'stage' => 10,\r\n\t\t);\r\n\t\t$this->select_transfers($settings);\r\n\t}",
"abstract public function getEventActionCategory(): string;",
"public function getEventActionCategory(): string;",
"public function getPaymentCategories();",
"public function expense_category()\n {\n $this->data['categories'] = $this->db->order_by('name', 'asc')->get_where('transaction_category', ['type' => 2])->result();\n $this->admin_template('expense_category', $this->data);\n }",
"protected function _collectTransaction(){ }",
"public function csc_transactions()\n\t{\n\t\t$ci =& get_instance();\n\t\t$data = array(\n\t\t\t'additions' => array(),\n\t\t\t'issuances' => array(),\n\t\t\t'new' => 0.00,\n\t\t\t'issuance' => 0.00,\n\t\t);\n\n\t\t// Get TVMIR transactions\n\t\t$sql = \"SELECT\n\t\t\t\t\t\t\tt.id,\n\t\t\t\t\t\t\tt.transfer_category,\n\t\t\t\t\t\t\tt.transfer_reference_num,\n\t\t\t\t\t\t\tDATE( t.transfer_datetime ) AS business_date,\n\t\t\t\t\t\t\tt.transfer_tvm_id,\n\t\t\t\t\t\t\tSUM( ti.quantity * ip.iprice_unit_price ) AS amount,\n\t\t\t\t\t\t\tCASE WHEN t.origin_id IS NULL AND t.destination_id = \".$this->st_store_id.\" THEN 'addition'\n\t\t\t\t\t\t\t\tWHEN t.origin_id = \".$this->st_store_id.\" AND t.destination_id IS NULL THEN 'issuance'\n\t\t\t\t\t\t\t\tELSE 'unknown' END AS transaction_type\n\t\t\t\t\t\tFROM transfers AS t\n\t\t\t\t\t\tLEFT JOIN transfer_items AS ti\n\t\t\t\t\t\t\tON ti.transfer_id = t.id\n\t\t\t\t\t\tLEFT JOIN items AS i\n\t\t\t\t\t\t\tON i.id = ti.item_id\n\t\t\t\t\t\tLEFT JOIN item_prices AS ip\n\t\t\t\t\t\t\tON ip.iprice_item_id = i.id\n\t\t\t\t\t\tLEFT JOIN shifts AS s\n\t\t\t\t\t\t\tON s.id = t.transfer_init_shift_id\n\t\t\t\t\t\tWHERE\n\t\t\t\t\t\t\t( t.origin_id = \".$this->st_store_id.\" OR t.destination_id = \".$this->st_store_id.\" )\n\t\t\t\t\t\t\tAND ( t.sender_shift = \".$this->st_from_shift_id.\" OR t.recipient_shift = \".$this->st_from_shift_id.\" )\n\t\t\t\t\t\t\tAND t.transfer_datetime BETWEEN '\".$this->st_from_date.\" 00:00:00' AND '\".$this->st_from_date.\" 23:59:59'\n\t\t\t\t\t\t\tAND t.transfer_category = \".TRANSFER_CATEGORY_CSC_APPLICATION.\"\n\t\t\t\t\t\t\tAND i.item_class = 'cash'\n\t\t\t\t\t\t\tAND t.transfer_status IN (\".implode( ',', array( TRANSFER_APPROVED, TRANSFER_RECEIVED ) ).\")\n\t\t\t\t\t\t\tAND ti.transfer_item_status NOT IN (\".implode( ',', array( TRANSFER_ITEM_CANCELLED, TRANSFER_ITEM_VOIDED ) ).\")\n\t\t\t\t\t\tGROUP BY t.id, t.transfer_category, t.transfer_reference_num, DATE( t.transfer_datetime ), t.transfer_tvm_id\";\n\t\t$query = $ci->db->query( $sql );\n\t\t$r = $query->result_array();\n\n\t\tforeach( $r as $row )\n\t\t{\n\t\t\tswitch( $row['transaction_type'] )\n\t\t\t{\n\t\t\t\tcase 'addition':\n\t\t\t\t\t$data['additions'][] = $row;\n\t\t\t\t\t$data['new'] += $row['amount'];\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 'issuance':\n\t\t\t\t\t$data['issuances'][] = $row;\n\t\t\t\t\t$data['issuance'] = $row['amount'];\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\treturn $data;\n\t}",
"private function confirm_category_transfers()\r\n\t{\r\n\t\t$settings = array(\r\n\t\t\t'title' => \"Category/Status\",\r\n\t\t\t'fieldList' => \"categories\",\r\n\t\t\t'fieldPrefix' => \"category_\",\r\n\t\t\t'tbl_in' => 'bugtracker_categories',\r\n\t\t\t'colId_in' => 'category_id',\r\n\t\t\t'colName_in' => 'category_name',\r\n\t\t\t'tbl_out' => 'tracker_module_status',\r\n\t\t\t'colId_out' => 'status_id',\r\n\t\t\t'colName_out' => 'title',\r\n\t\t\t'stage' => 11,\r\n\t\t);\r\n\t\t$this->confirm_transfers($settings,$this->categories);\r\n\t}",
"public function income_category()\n {\n $this->data['categories'] = $this->db->order_by('name', 'asc')->get_where('transaction_category', ['type' => 1])->result();\n $this->admin_template('income_category', $this->data);\n }",
"function insertarCategoria(){\n\t\t$this->procedimiento='cd.ft_categoria_ime';\n\t\t$this->transaccion='CD_CAT_INS';\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('nombre','nombre','varchar');\n\t\t$this->setParametro('id_moneda','id_moneda','int4');\n\t\t$this->setParametro('codigo','codigo','varchar');\n\t\t$this->setParametro('monto','monto','numeric');\n\t\t$this->setParametro('estado_reg','estado_reg','varchar');\n\t\t$this->setParametro('id_tipo_categoria','id_tipo_categoria','int4');\n\n\t\t//Ejecuta la instruccion\n\t\t$this->armarConsulta();\n\t\t$this->ejecutarConsulta();\n\n\t\t//Devuelve la respuesta\n\t\treturn $this->respuesta;\n\t}",
"function categoria(){\n\t\t\tswitch($this->method){\n\t\t\t\tcase 'POST':\n\t\t\t\t\tif(isset($_POST['categoria'])){\n\t\t\t\t\t\treturn $this->model->agregarCategoria($_POST['categoria']);\n\t\t\t\t\t} else {\n\t\t\t\t\t\treturn 'Datos Mal Enviados';\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 'PUT':\n\t\t\t\t\tif(count($this->args) === 1 &&\n\t\t\t\t\t isset($this->formData->categoria)){\n\t\t\t\t\t\treturn $this->model->modificarCategoria($this->args[0], $this->formData->categoria);\n\t\t\t\t\t} else {\n\t\t\t\t\t\treturn 'Datos Mal Enviados';\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 'DELETE':\n\t\t\t\t\tif(count($this->args) === 1){\n\t\t\t\t\t\treturn $this->model->eliminarCategoria($this->args[0]);\n\t\t\t\t\t} else {\n\t\t\t\t\t\treturn 'Datos Mal Enviados';\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 'GET':\n\t\t\t\t\treturn $this->model->leerCategorias();\n\t\t\t\t\tbreak;\n\n\t\t\t\tdefault:\n\t\t\t\t\treturn 'Metodo Desconocido';\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"public function createTransction() {\n }",
"public function createTransction() {\n }",
"public function getTransactionCategoryTypes($data_only = false)\r\n {\r\n $this->cobSessionToken = $_SESSION['login_response']['Body']->userContext->cobrandConversationCredentials->sessionToken;\r\n $this->userSessionToken = $_SESSION['login_response']['Body']->userContext->conversationCredentials->sessionToken;\r\n $sendParameters = array('cobSessionToken' => $this->cobSessionToken, 'userSessionToken' => $this->userSessionToken);\r\n\r\n $sendParameters['siteFilter.siteLevel'] = 'POPULAR_CITY'; //POPULAR_ZIP, POPULAR_CITY, POPULAR_STATE, POPULAR_COUNTRY\r\n\r\n $this->response_to_request = $this->api_call('getTransactionCategoryTypes', $sendParameters);\r\n\r\n $HTML = '<h2>Transaction Category Types</h2>';\r\n\r\n if($this->response_to_request['Body']->errorOccurred == true){\r\n echo $this->response_to_request['Body']->message;\r\n }\r\n if($this->response_to_request['Body']->errorCode > 0) {\r\n echo 'Error Code : '.$this->response_to_request['Body']->errorCode.', '.$this->response_to_request['Body']->errorDetail;\r\n }\r\n else{\r\n $cat_types = array();\r\n $HTML .= '<table border=\"1\" cellpadding=\"\" width=\"100%\">';\r\n $HTML .= '<thead>';\r\n $HTML .= '<tr><th>typeId</th><th>typeName</th><th>localizedTypeName</th></tr>';\r\n $HTML .= '</thead>';\r\n $HTML .= '<tbody>';\r\n\r\n if(sizeof($this->response_to_request['Body']) > 0) {\r\n foreach ($this->response_to_request['Body'] as $body) {\r\n $cat_types[$body->typeId] = $body->typeName; \r\n $HTML .= '<tr><td>'.$body->typeId.'</td><td><a href=\"#\">'.$body->typeName.'</a></td><td>'.$body->localizedTypeName.'</td></tr>';\r\n }\r\n }\r\n else{\r\n $HTML .= '<tr><td>data not found.</td></tr>';\r\n }\r\n\r\n $HTML .= '</tbody>';\r\n $HTML .= '</table>';\r\n\r\n if($data_only){\r\n return $cat_types;\r\n }\r\n else{\r\n return $HTML;\r\n }\r\n }\r\n }",
"function cats($_content=null,$msg='')\n\t{\n\t\tif ($_GET['msg']) $msg = $_GET['msg'];\n\n\t\tif ($_content['admin'] && $_content['nm']['action'] == 'admin')\n\t\t{\n\t\t\t$_content['nm']['action'] = $_content['admin'];\n\t\t}\n\t\tif($_content['nm']['action'])\n\t\t{\n\t\t\tif (!count($_content['nm']['selected']) && !$_content['nm']['select_all'])\n\t\t\t{\n\t\t\t\t$msg = lang('You need to select some entries first');\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t// Some processing to add values in for links and cats\n\t\t\t\t$multi_action = $_content['nm']['action'];\n\t\t\t\t// Action has an additional action - add / delete, etc. Buttons named <multi-action>_action[action_name]\n\t\t\t\tif(in_array($multi_action, array('reader','writer')))\n\t\t\t\t{\n\t\t\t\t\t$_content['nm']['action'] .= '_' . key($_content[$multi_action.'_popup'][$multi_action . '_action'] ?? []);\n\n\t\t\t\t\tif(is_array($_content[$multi_action.'_popup'][$multi_action]))\n\t\t\t\t\t{\n\t\t\t\t\t\t$_content[$multi_action] = implode(',',$_content[$multi_action.'_popup'][$multi_action]);\n\t\t\t\t\t}\n\t\t\t\t\t$_content['nm']['action'] .= '_' . $_content[$multi_action];\n\t\t\t\t\tunset($_content['nm'][$multi_action]);\n\t\t\t\t}\n\t\t\t\t$success = $failed = $action_msg = null;\n\t\t\t\tif ($this->action($_content['nm']['action'],$_content['nm']['selected'],$_content['nm']['select_all'],\n\t\t\t\t\t$success,$failed,$action_msg,'cats',$msg,$_content['nm']['checkboxes']['no_notifications']))\n\t\t\t\t{\n\t\t\t\t\t$msg .= lang('%1 entries %2',$success,$action_msg);\n\t\t\t\t}\n\t\t\t\telseif(is_null($msg))\n\t\t\t\t{\n\t\t\t\t\t$msg .= lang('%1 entries %2, %3 failed because of insufficent rights !!!',$success,$action_msg,$failed);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$content = array(\n\t\t\t'msg' => $msg,\n\t\t\t'nm' => Api\\Cache::getSession('news_admin', 'cats'),\n\t\t);\n\t\tif (!is_array($content['nm']))\n\t\t{\n\t\t\t$content['nm'] = array(\n\t\t\t\t'get_rows' =>\t'news_admin.news_admin_ui.get_cats', // I method/callback to request the data for the rows eg. 'notes.bo.get_rows'\n\t\t\t\t'start' =>\t0, // IO position in list\n\t\t\t\t'no_cat' =>\ttrue, // IO category, if not 'no_cat' => True\n\t\t\t\t'search' =>\t'', // IO search pattern\n\t\t\t\t'order' => 'news_date',// IO name of the column to sort after (optional for the sortheaders)\n\t\t\t\t'sort' => 'DESC', // IO direction of the sort: 'ASC' or 'DESC'\n\t\t\t\t'col_filter' => array(), // IO array of column-name value pairs (optional for the filterheaders)\n\t\t\t\t'no_filter' => true,\n\t\t\t\t'no_filter2' => true,\n\t\t\t\t'row_id' => 'id',\n\t\t\t\t'actions' => $this->get_actions()\n\t\t\t);\n\t\t}\n\t\t$this->tpl->read('news_admin.cats');\n\t\tif($_GET['user'])\n\t\t{\n\t\t\t$this->tpl->set_dom_id(\"news_admin-cats-user\");\n\t\t}\n\t\treturn $this->tpl->exec('news_admin.news_admin_ui.cats', $content, array(\n\t\t\t'owner' => array(Api\\Categories::GLOBAL_ACCOUNT => lang('All users'))\n\t\t));\n\t}",
"function CategoriesToTags($categories) {\n ZLog::Write(LOGLEVEL_DEBUG, 'Zimbra->CategoriesToTags(): ' . 'Categories '. print_r( $categories, true ) );\n\t\n $itemTagCount = count($categories);\n\n $itemTagIds = array();\n\n $userTagCount = count($this->_usertags);\n\n for ($i=0;$i<$itemTagCount;$i++) {\n $tagname = $categories[$i];\n \t\n $newtag = true;\n for ($j=0;$j<$userTagCount;$j++) {\n if ($tagname == $this->_usertags[$j]['name']) {\n $itemTagIds[] = $this->_usertags[$j]['id'];\n $newtag = false;\n break;\n }\n }\n\n if (($newtag) && (trim($tagname) != \"\")) {\n // Default to Orange unless \"Special Tags\"\n $color = 0; // Orange;\n\n // Create User's New Tags\n $soap ='<CreateTagRequest xmlns=\"urn:zimbraMail\">\n <tag name=\"'.$tagname.'\" color=\"'.$color.'\" />\n </CreateTagRequest>\t';\n\n $returnJSON = true;\n $tagresponse = $this->SoapRequest($soap, false, false, $returnJSON);\n if($tagresponse) {\n $newUserTag = json_decode($tagresponse, true);\n unset($tagresponse);\n\n if (isset($newUserTag['Body']['CreateTagResponse']['tag'][0])) {\n $newUserTag = $newUserTag['Body']['CreateTagResponse']['tag'][0];\n\n // Append the new tag to the user's tags.\n if (!isset($this->_usertags)) $this->_usertags = array();\n \n $this->_usertags[] = $newUserTag;\n\n $userTagCount = count($this->_usertags);\n for ($j=0;$j<$userTagCount;$j++) {\n if ($tagname == $this->_usertags[$j]['name']) {\n $itemTagIds[] = $this->_usertags[$j]['id'];\n break;\n }\n }\n\n }\n }\n // End Create User's New Tags\n }\n \n }\n\t \n //ZLog::Write(LOGLEVEL_DEBUG, 'Zimbra->CategoriesToTags(): ' . 'Tag List ['.$itemTagIds.'] ' );\n\t return $itemTagIds;\n\t \n\t}",
"public function Agregar()\r\n {\r\n echo \"Aqui agrega una categoria\";\r\n }",
"abstract public function category();",
"function TransactionTypeToWord($type)\n{\n switch ($type)\n {\n case TRANSACTION_DROPADD:\n $retval = \"Drop / Add\";\n break;\n\n case TRANSACTION_DROP:\n $retval = \"Drop\";\n break;\n\n case TRANSACTION_IR:\n $retval = \"IR\";\n break; \n\n case TRANSACTION_TRADE:\n $retval = \"Trade\";\n break;\n\n case TRANSACTION_PAY:\n $retval = \"Pay\";\n break;\n\n case TRANSACTION_RECEIVE: \n $retval = \"Receive\";\n break;\n\n case TRANSACTION_PAY_FUTURE_CONSIDERATIONS:\n $retval = \"Pay\";\n break;\n\n case TRANSACTION_RECEIVE_FUTURE_CONSIDERATIONS:\n $retval = \"Receive\";\n break;\n\n case TRANSACTION_PAY_TO_LEAGUE:\n $retval = \"Paid\";\n break;\n\n case TRANSACTION_RECEIVE_FROM_LEAGUE:\n $retval = \"Receive\";\n break;\n\n default:\n $retval = \"Unknown\";\n break;\n }\n return $retval;\n}",
"public function category()\n {\n $xml = file_get_contents('php://input');\n $feed = $this->sc['VbDataTransferCategory']->startProcess($xml);\n unset($xml);\n print $feed;\n }",
"public function transactions()\n {\n return [\n self::SCENARIO_DEFAULT => self::OP_ALL,\n ];\n }",
"public function hookCategoryAddition()\n {\n $this->logInFile('--hookCategoryAddition--');\n if ($this->is_checked_synch_category == 'true') {\n $this->importCategories();\n }\n }",
"public function actionCreate()\n {\n $model = new Transaction();\n\n if ($model->load(Yii::$app->request->post())) {\n //transform of category_id for DB from Widget View\n if ($model->sub == null) {\n $model->sub = '_1';\n }\n $cond = ltrim($model->sub, '_') - 1;\n $arrId = Category::find()->select(['id', 'lft', 'name', 'user_id'])\n ->where(['user_id' => 1])\n ->orWhere(['user_id' => Yii::$app->user->identity->getId()])\n ->andWhere(['!=', 'name', 'Transfer'])\n ->orderBy('lft')->asArray()->all();\n $model->category_id = $arrId[$cond]['id'];\n\n // sign of amount.begin.\n // $model->amount = abs($model->amount);\n // $catQ = Category::findOne(['id' => $model->category_id]);\n // $cat = Category::findOne(['id' => $model->category_id, 'name' => 'Expense']);\n // $parents = $catQ->parents()->where(['name' => 'Expense'])->asArray()->all();\n // if ($cat !== null || $parents !== null) {\n // $model->amount = -$model->amount;\n // }\n // sign of amount.end.\n if ($model->save()) {\n return $this->redirect(['view', 'id' => $model->id])\n && Account::updateAllCounters(['amount' => $model->amount], ['id' => $model->account_id]);\n }\n }\n return $this->render('create', [\n 'model' => $model,\n ]);\n }",
"public function transactionCategories(Request $request)\n {\n return $this->categories;\n }",
"function categorias($url) {\n\t// obtenemos TODOS los resultados de medline\n\t$datos = obtenerContenidos($url);\n\t$tagName = \"content\";\n\tsalidaCategorias($datos,$tagName);\n}",
"function categories_custom( $category = array() ) {\r\n return \\query\\main::group_categories( $category );\r\n}"
] | [
"0.5723613",
"0.55295664",
"0.5520275",
"0.55127907",
"0.53858966",
"0.5265541",
"0.5213959",
"0.51632226",
"0.5157857",
"0.5155219",
"0.5149142",
"0.5133805",
"0.50884193",
"0.49977776",
"0.49102566",
"0.48720562",
"0.48720562",
"0.4850774",
"0.4828683",
"0.4820124",
"0.48161456",
"0.48113573",
"0.48055467",
"0.47672224",
"0.47669232",
"0.47649336",
"0.47416472",
"0.47394678",
"0.4734482",
"0.47115797"
] | 0.79442686 | 0 |
Remove Site Item Account. | public function removeItemAccount()
{
$this->cobSessionToken = $_SESSION['login_response']['Body']->userContext->cobrandConversationCredentials->sessionToken;
$this->userSessionToken = $_SESSION['login_response']['Body']->userContext->conversationCredentials->sessionToken;
$itemAccountId = $_GET['itemAccountId'];
$SiteAccId = $_GET['SiteAccId'];
$sendParameters = array('cobSessionToken' => $this->cobSessionToken, 'userSessionToken' => $this->userSessionToken, 'itemAccountId' => $itemAccountId);
$this->response_to_request = $this->api_call('removeItemAccount', $sendParameters);
header('Location:site_summaries.php?SiteAccId='.$SiteAccId);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function removeAccount()\n\t{\n\t\t$serviceManager = $this->getServiceManager();\n\n\t\t$session = $serviceManager->get('\\DragonJsonServerAccount\\Service\\Session')->getSession();\n\t\t$serviceAccount = $serviceManager->get('\\DragonJsonServerAccount\\Service\\Account');\n\t\t$account = $serviceAccount->getAccountByAccountId($session->getAccountId());\n\t\t$serviceAccount->removeAccount($account);\n\t}",
"function deleteTradeItem() {\r\n \r\n $userID = buckys_is_logged_in();\r\n $paramItemID = get_secure_integer($_REQUEST['itemID']);\r\n \r\n if (is_numeric($paramItemID) && $userID) {\r\n \r\n $tradeItemIns = new BuckysTradeItem();\r\n $tradeItemIns->removeItemByUserID($paramItemID, $userID);\r\n \r\n }\r\n \r\n \r\n}",
"public function removeAccountAction()\n {\n $this->getResponse()->setHeader('Content-type', 'application/json', true);\n\n /** @var Nosto_Tagging_Helper_Account $accountHelper */\n $accountHelper = Mage::helper('nosto_tagging/account');\n\n $store = $this->getSelectedStore();\n if ($this->getRequest()->isPost() && $store !== null) {\n $account = $accountHelper->find($store);\n if ($account !== null && $accountHelper->remove($account, $store)) {\n $responseBody = array(\n 'success' => true,\n 'redirect_url' => $accountHelper->getIframeUrl(\n $store,\n null, // we don't have an account anymore\n array(\n 'message_type' => NostoMessage::TYPE_SUCCESS,\n 'message_code' => NostoMessage::CODE_ACCOUNT_DELETE,\n )\n )\n );\n }\n }\n\n if (!isset($responseBody)) {\n $responseBody = array(\n 'success' => false,\n 'redirect_url' => $accountHelper->getIframeUrl(\n $store,\n $accountHelper->find($store),\n array(\n 'message_type' => NostoMessage::TYPE_ERROR,\n 'message_code' => NostoMessage::CODE_ACCOUNT_DELETE,\n )\n )\n );\n }\n\n $this->getResponse()->setBody(json_encode($responseBody));\n }",
"public function removeitem($item);",
"public function removeAuthItem($name);",
"public function removeUser($accountName);",
"function SocialAuth_WP_remove() {}",
"function custom_my_account_menu_items( $items ) {\n unset($items['downloads']);\n return $items;\n}",
"public function removeaccount() {\r\n if (!$this->app->module(\"auth\")->hasaccess($this->moduleName, 'manage.edit'))return false;\r\n $id = $this->param(\"id\", null);\r\n if($id) {\r\n $this->app->db->remove(\"ads/gacodes\", [\"_id\" => $id]);\r\n }\r\n\r\n return $id ? '{\"success\":true}' : '{\"success\":false}';\r\n }",
"public function removeFromBasket($item) \n {\n $this->getEmosECPageArray($item, \"c_rmv\");\n }",
"public function account_manager_delete_accounts() {\n \n // Delete accounts\n (new MidrubBaseUserAppsCollectionPlannerHelpers\\Accounts)->delete_accounts();\n \n }",
"private function delete_item_from_db($item_id,$site_id=site_id){\n try {\n\n $stm=$this->uFunc->pdo(\"uCat\")->prepare(\"DELETE FROM\n u235_items\n WHERE\n item_id=:item_id AND\n site_id=:site_id\n \");\n $stm->bindParam(':item_id', $item_id,PDO::PARAM_INT);\n $stm->bindParam(':site_id', $site_id,PDO::PARAM_INT);\n $stm->execute();\n }\n catch(PDOException $e) {$this->uFunc->error('uCat/common/570'/*.$e->getMessage()*/);}\n }",
"function culturefeed_pages_remove_active_page() {\n\n unset($_SESSION['culturefeed']['page']);;\n\n $account = DrupalCultureFeed::getLoggedInAccount();\n $data = isset($account->data) ? $account->data : array();\n unset($data['culturefeed_pages_id']);\n $account->data = $data;\n\n user_save($account);\n\n}",
"function remove_tools_menu_item(){\n \n $user = wp_get_current_user();\n if ( ! $user->has_cap( 'manage_options' ) ) {\n remove_menu_page( 'tools.php' ); \n } \n}",
"function terminus_api_site_team_member_remove($site_uuid, $user_uuid) {\n $realm = 'site';\n $uuid = $site_uuid;\n $path = 'team/' . $user_uuid;\n $method = 'DELETE';\n\n return terminus_request($realm, $uuid, $path, $method);\n}",
"public function destroy(Item $item)\n {\n $destroyed = $item->delete();\n if ($destroyed) {\n return redirect('/profile');\n }\n }",
"function delete_item($item, $uid){\n\t\t$conn = getConnection();\n\t\t$conn->osc_dbExec(\"DELETE FROM %st_item_watchlist WHERE fk_i_item_id = %d AND fk_i_user_id = %d LIMIT 1\", DB_TABLE_PREFIX , $item, $uid);\n\t}",
"public function account_manager_remove_account_from_group() {\n \n // Remove account\n (new MidrubBaseUserAppsCollectionPlannerHelpers\\Groups)->remove_account();\n \n }",
"public function destroy(Item $item)\n {\n abort_if(Gate::denies('user_item_access'), Response::HTTP_FORBIDDEN, '403 Forbiden');\n $item->delete();\n }",
"public function remove( $item );",
"public function remove($item);",
"function removeAddress()\n {\n $user = common_current_user();\n\n $screenname = $this->trimmed('screenname');\n $transport = $this->trimmed('transport');\n\n // Maybe an old tab open...?\n\n $user_im_prefs = new User_im_prefs();\n $user_im_prefs->user_id = $user->id;\n if(! ($user_im_prefs->find() && $user_im_prefs->fetch())) {\n // TRANS: Message given trying to remove an IM address that is not\n // TRANS: registered for the active user.\n $this->showForm(_('That is not your screenname.'));\n return;\n }\n\n $result = $user_im_prefs->delete();\n\n if (!$result) {\n common_log_db_error($user, 'UPDATE', __FILE__);\n // TRANS: Server error thrown on database error removing a registered IM address.\n $this->serverError(_('Could not update user IM preferences.'));\n return;\n }\n\n // XXX: unsubscribe to the old address\n\n // TRANS: Message given after successfully removing a registered Instant Messaging address.\n $this->showForm(_('The IM address was removed.'), true);\n }",
"static function item_deleted($item) {\n $existing_password = ORM::factory(\"items_albumpassword\")->where(\"album_id\", \"=\", $item->id)->find_all();\n if (count($existing_password) > 0) {\n foreach ($existing_password as $one_password) {\n db::build()->delete(\"albumpassword_idcaches\")->where(\"password_id\", \"=\", $one_password->id)->execute();\n }\n db::build()->delete(\"items_albumpasswords\")->where(\"album_id\", \"=\", $item->id)->execute();\n message::success(t(\"Password Removed.\"));\n } else {\n db::build()->delete(\"albumpassword_idcaches\")->where(\"item_id\", \"=\", $item->id)->execute();\n }\n }",
"function delete_menu_item () {\n\t\t$file_name = 'app/views/app_header.php';\n\t\t$file_content = file_get_contents($file_name);\n\t\t$hook = '\t\t\t\t\tif (AppUser::has_permission(\\''.$this->name['class'].'_read\\')) {'.PHP_EOL;\n\t\t$hook .= '\t\t\t\t\t\techo \\'<li\\'.(($this->page_title == \\''.$this->name['plural'].'\\') ? \\' class=\"active\"\\' : \\'\\').\\'>'.\n\t\t\t'<a href=\"\\'.$this->url.\\'/'.$this->name['variable'].'\"><i class=\"fa fa-link\"></i> <span>'.$this->name['plural'].'</span></a></li>\\';'.PHP_EOL;\n\t\t$hook .= '\t\t\t\t\t}'.PHP_EOL;\n\t\t\n\t\tfile_put_contents($file_name, str_replace($hook, '', $file_content));\n\t}",
"private function deleteItem() {\n $user = Yii::app()->user->id;\n $command = Yii::app()->db->createCommand('DELETE FROM ' . $this->tableName() . ' WHERE dos_usernames_username=:user');\n $command->bindParam(\":user\", $user, PDO::PARAM_STR);\n $command->execute();\n }",
"public function delete($account)\n {\n $account->purge();\n }",
"public function delete_account()\n\t{\n\t\t$this->load->model('Main_model');\n\t\t$customer_id=$this->uri->segment(3);\n\t\t$this->Main_model->delete_account_data($customer_id);\n\t\tredirect('Main/edit_delete_account');\n\t}",
"function terminus_api_site_delete($site_uuid) {\n $realm = 'site';\n $uuid = $site_uuid;\n $path = '';\n $method = 'DELETE';\n return terminus_request($realm, $uuid, $path, $method);\n}",
"public function deleteAccount(User $user) {\n \t$agent = Agent::whereId($user->agent_id)->first();\n \t$agent->delete();\n $user->delete();\n return redirect(route('admin_all_accounts_agent', $user->username))->withSuccess('Account for <i>' . $user->username. '</i> was successfully deleted');\n }",
"public function removeByItemName(string $itemName): void;"
] | [
"0.6726243",
"0.61249006",
"0.6078991",
"0.60736334",
"0.604714",
"0.60386944",
"0.60192734",
"0.5987646",
"0.5949523",
"0.5949506",
"0.57996374",
"0.5782412",
"0.57812434",
"0.57740146",
"0.57707775",
"0.57378083",
"0.5731816",
"0.5711329",
"0.5686523",
"0.56778735",
"0.5650437",
"0.56434083",
"0.56421614",
"0.5625731",
"0.55740374",
"0.55714875",
"0.5546435",
"0.5541445",
"0.55364746",
"0.55322695"
] | 0.8263729 | 0 |
Get the first Player of this Squad that has the leader property set to true | public function leader() : ?Player
{
foreach ($this->players as $player) {
if ($player->leader) {
return $player;
}
}
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getPlayer()\n {\n return $this->hasOne(Player::class, ['id' => 'player_id']);\n }",
"public function firstPlayer()\n {\n return $this->belongsTo('App\\\\Models\\\\Player');\n }",
"public function getLeader()\n {\n return $this->leader;\n }",
"public function isLeader() {\n\t\treturn $this->leader;\n\t}",
"public function getOthePlayer()\n\t{\n\t\tif ($this->playerOnTurn === $this->playerOne){\n\t\t\treturn $this->playerTwo;\n\t\t}\n\t\treturn $this->playerOne;\n\t}",
"protected function getPlayer()\n {\n return $this->fixtures->getReference('player-1');\n }",
"public function getPlayer() : Player {\n\t\treturn $this->player;\n\t}",
"public function getSpymaster(): Player\n {\n return $this->players->getSpymaster();\n }",
"public function decideFirstPlayer(): IPlayer\n {\n if ($this->hero->getSpeed() !== $this->beast->getSpeed()) {\n $this->attacker = $this->hero->getSpeed() > $this->beast->getSpeed() ? $this->hero : $this->beast;\n return $this->attacker;\n } else {\n $this->attacker = $this->hero->getLuck() > $this->beast->getLuck() ? $this->hero : $this->beast;\n return $this->attacker;\n }\n }",
"public function getPlayer()\n {\n if( isset($this->data['player_id']) )\n {\n $player = new OTS_Player();\n $player->load($this->data['player_id']);\n return $player;\n }\n // not set\n else\n {\n return null;\n }\n }",
"public function guildMember()\n {\n return $this->hasOne(GuildMember::class, 'm_idPlayer', 'm_idPlayer');\n }",
"private function getLeaderScore(){\n return $this->getRankedUsers()[0];\n }",
"public function getOperative(): Player\n {\n return $this->players->getOperative();\n }",
"public function getCurrentPlayer()\n\t\t{\n\t\t\tif ($this->turn === 1)\n\t\t\t{\n\t\t\t\treturn $this->player1;\n\t\t\t}\t//end if\n\t\t\t\n\t\t\treturn $this->player2;\n\t\t}",
"private function getMatchWinner(): Player\n {\n $hands = $this->hands;\n $f = $this->matchPlayers[ 0 ];\n $s = $this->matchPlayers[ 1 ];\n\n foreach( $hands as $hand )\n {\n $next = next( $hands );\n $nextHand = !$next ? $hands[ 0 ] : $next;\n\n if( $f->getHand() === $hand && ( $s->getHand() === $hand || $s->getHand() === $nextHand ) )\n {\n return $f;\n }\n }\n\n return $s;\n }",
"public function getCurrentPlayer()\r\n\t{\r\n\t\treturn $this->currentPlayer;\r\n\t}",
"public function getPlayerOne(): GameCharacterAbstract\n {\n return $this->player_1;\n }",
"public function ReadOneByPlayer(Player $player) {\n try {\n if( ($this->_requete = $this->_db->prepare(' SELECT `GAME`.*\n FROM `GAME`\n JOIN `PLAYER` ON `GAME`.`GAM_player_fk`=`PLAYER`.`PLA_id`\n JOIN `REJOIN` ON `REJOIN`.`REJ_game_fk` = `GAME`.`GAM_id`\n WHERE `GAME`.`GAM_player_fk`=:id\n OR `REJ_player_fk`=:id\n ')) !== false ) {\n if($this->_requete->bindValue('id', $player->get_playerid())){\n if($this->_requete->execute()) {\n if(($data = $this->_requete->fetch(PDO::FETCH_ASSOC))!==false) { \n return new Game($data); \n } \n } \n } return false;\n }\n } catch (PDOException $e) {\n throw new Exception($e->getMessage(),$e->getCode(),$e);\n }\n }",
"function get_team_leader($user_id=NULL) {\n if (!$user_id)\n $user_id = $_SESSION['user_id'];\n\n //Check to make sure that you're not a tl\n if (check_supervisor($user_id))\n return $user_id;\n\n //Also, if you're an admin...\n if (check_app_admin($user_id))\n return $user_id;\n \n else {\n $sql = \"SELECT tl_id FROM teams WHERE user_id=\".$user_id;\n $result = $_SESSION['dbconn']->query($sql) or die(\"Error checking team membership\");\n\n if ($result->num_rows!=0) {\n $out = $result->fetch_array();\n return $out[0];\n }\n else\n return false;\n }\n}",
"function isCourseLeader(){\n\t\t$result = $this->db->exec('SELECT courseID FROM courseLeader WHERE userID = ?', $this->f3->get('SESSION.userID'));\n\t\tif(empty($result)){\n\t\t\treturn false;\n\t\t}else{\n\t\t\treturn $result[0]['courseID'];\n\t\t}\n\t}",
"public function show(Player $player)\n {\n $player->load('team');\n return $player;\n }",
"public function findNextPlayer()\n {\n $nextPlayer = 1 + $this->currentPlayerIndex;\n if ($nextPlayer == $this->nrOfPlayers) {\n $nextPlayer = 0;\n }\n\n return $nextPlayer;\n //return $nextPlayer == $this->nrOfPlayers ? 0 : $nextPlayer;\n }",
"public function getLeader() {\n $leader = null;\n $timeout = static::REQUEST_CONNECT_TIMEOUT;\n foreach ($this->servers as $server) {\n list($host, $port) = explode(':', $server);\n $leader = `curl -L --connect-timeout $timeout http://$host:$port/v2/leader 2>/dev/null`;\n }\n \n return $leader;\n }",
"public function getWinner() : Player\r\n {\r\n \r\n $valid_hands = array(self::ROCK, self::PAPER, self::SCISSOR);\r\n\r\n if (count($this->players) <= 1) {\r\n throw new CancelledTournamentException(\"Too few players to start a tournament\");\r\n }\r\n\r\n foreach ($this->players as $player) {\r\n\r\n if (!in_array($player->getHand(), $valid_hands)) {\r\n throw new InvalidTournamentException(\"Error for player having an invalid hand\");\r\n }\r\n }\r\n\r\n if ($this->simulate_rsp() && isset($this->players)) {\r\n\r\n return $this->players[0]; \r\n\r\n }\r\n }",
"public function isClanLeader(): bool\n {\n return (($clan = Clan::findByMember($this)) && $this->id() == $clan->getLeaderID());\n }",
"public function getPlayer(): string {\n\t\treturn $this->player;\n\t}",
"public function profile ( $player ) {\n\t\t$url = $this->api_url.\"/json/profile/\".urlencode($player);\n\t\t$object = self::_request($url);\n\t\tif(!is_object($object) || ($object->Success != 1 && $object->Success != false)){\n\t\t\treturn FALSE;\n\t\t}\n\t\treturn $object;\n\t}",
"public function first(): User\n {\n return $this->getIterator()->current();\n }",
"public function byUsername($username)\n {\n $query = $this->db->prepare('SELECT UUID FROM BAT_players WHERE BAT_player = :player');\n $query->execute([':player' => $username]);\n\n $result = $query->fetch();\n\n if ($result)\n {\n return Player::fromNameAndUuid($username, UuidUtilities::createJavaUuid($result[0]));\n }\n\n // We didn't find them in the database\n return FALSE;\n }",
"public function getCurrentPlayer()\n {\n return $this->currentPlayerIndex;\n }"
] | [
"0.6866935",
"0.66311723",
"0.6576462",
"0.6386022",
"0.62763333",
"0.6239849",
"0.62387055",
"0.6224871",
"0.62210715",
"0.6126802",
"0.6048104",
"0.60473573",
"0.6013143",
"0.6005566",
"0.59930485",
"0.58805597",
"0.58495665",
"0.58439124",
"0.57275164",
"0.56842107",
"0.56669337",
"0.56666636",
"0.56597334",
"0.5651376",
"0.5639184",
"0.56250095",
"0.5602846",
"0.5591283",
"0.55612165",
"0.5483485"
] | 0.76671857 | 0 |
Returns the accept header | public function getAcceptHeader()
{
return "application/vnd.zend.serverapi+xml;version=1.2";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getAccept()\n {\n return $this->accept;\n }",
"public function getAccept()\n {\n return $this->accept;\n }",
"public function getAccept() {\n return $this->accept;\n }",
"function getAcceptEncoding(){\n return $this->get('Accept-Encoding','');\n }",
"function getAccept(){\n return $this->get('Accept','');\n }",
"private function selectAcceptHeader($accept)\n {\n if (count($accept) === 0 || (count($accept) === 1 && $accept[0] === '')) {\n return null;\n } elseif (preg_grep(\"/application\\/json/i\", $accept)) {\n return 'application/json';\n } else {\n return implode(',', $accept);\n }\n }",
"public function getAcceptedContentTypes()\n {\n $accept = $this->getHeader('Accept');\n $accept = explode(',', $accept);\n array_walk($accept, 'trim');\n return $accept;\n }",
"public function selectHeaderAccept($accept)\n {\n if (count($accept) === 0 or (count($accept) === 1 and $accept[0] === '')) {\n return null;\n } elseif (preg_grep(\"/application\\/json/i\", $accept)) {\n return 'application/json';\n } else {\n return implode(',', $accept);\n }\n }",
"function Accept($type) {\n\t\t\n\t\t$this->headers[] = \"Accept-Type: $type\";\n\t}",
"function awd_gettype_fromheader(){\r\n\t$accept = $_SERVER['HTTP_ACCEPT'];\r\n\t\r\n\tif(!isset($accept))\r\n\t\treturn \"html\";\r\n\t\r\n\t$new_accept = [];\r\n foreach ($accept as $mimeType) {\r\n if (strpos($mimeType, '+') !== false) { // Contains +\r\n $arr = explode('/', $mimeType);\r\n $type = $arr[0];\r\n $medias = explode('+', $arr[1]);\r\n foreach ($medias as $media) {\r\n $new_accept[] = strtolower($type.\"/\".$media); // Flatten\r\n }\r\n } else {\r\n $new_accept[] = $mimeType;\r\n }\r\n }\r\n \r\n\t$unique_accept = array_unique($new_accept);\r\n\t\r\n\tif(in_array(\"application/xml\", $unique_accept))\r\n\t\treturn \"xml\";\r\n\t\r\n\tif(in_array(\"application/json\", $unique_accept))\r\n\t\treturn \"json\";\r\n\t\r\n\treturn \"html\";\r\n}",
"public function getAcceptableContentTypes()\n {\n if (null !== $this->acceptableContentTypes) {\n return $this->acceptableContentTypes;\n }\n\n return $this->acceptableContentTypes = array_keys(AcceptHeader::fromString($this->header('Accept'))->all());\n }",
"function GetHeader() {\n$a = explode(\";\",$_SERVER['HTTP_ACCEPT']);\n$b = explode(\",\",$a[0]);\n\nif(in_array(\"application/rdf+xml\",$b)) {\n\theader(\"Content-type: application/rdf+xml\");\n\treturn 0;\n} else if(in_array(\"text/rdf+xml\",$b)) { \n\theader(\"Content-type: text/rdf+xml\");\n\treturn 1;\n} else { \n\theader(\"Content-type: text/xml\");\n\treturn 2;\n}\n\n}",
"public function testAcceptHeaderDetector(): void\n {\n $request = new ServerRequest();\n $request = $request->withEnv('HTTP_ACCEPT', 'application/json, text/plain, */*');\n $this->assertTrue($request->is('json'));\n\n $request = new ServerRequest();\n $request = $request->withEnv('HTTP_ACCEPT', 'text/plain, */*');\n $this->assertFalse($request->is('json'));\n\n $request = new ServerRequest();\n $request = $request->withEnv('HTTP_ACCEPT', 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8');\n $this->assertFalse($request->is('json'));\n $this->assertFalse($request->is('xml'));\n $this->assertFalse($request->is('xml'));\n }",
"public function getAcceptableContentTypes()\n {\n if (null !== $this->acceptableContentTypes) {\n return $this->acceptableContentTypes;\n }\n return $this->acceptableContentTypes = array_keys(AcceptHeader::fromString($this->headers->get('Accept'))->all());\n }",
"public function negotiateContentType(array $accept) {\n\t\t\t\n\t\tif (null === $header = $this->get('accept')) {\n\t\t\treturn $accept[0];\n\t\t}\n\t\t\n\t\t$object = new NegotiatedHeader('accept', $header);\n\t\t\n\t\treturn $object->negotiate($accept);\n\t}",
"public function getBestAccept()\n {\n if (empty($this->accept)) {\n return null;\n }\n\n try {\n $negotiaor = new Negotiator();\n $accept = $negotiaor->getBest($this->accept, $this->validAccepts);\n if ($accept instanceof AcceptHeader === false) {\n return $this->accept;\n }\n } catch (\\Exception $e) {\n return $this->accept;\n }\n\n return $accept->getValue();\n }",
"public function getAcceptableContent($accept) {\n // Sort acceptable headers by precedence\n $acceptable = preg_split('/\\s*,\\s*/', $accept);\n usort($acceptable, function($a, $b) {\n\treturn RESTServer::getMediaPrecedence($a) - RESTServer::getMediaPrecedence($b);\n });\n\n // Get intersection between acceptable and registered types\n foreach ($acceptable as $a) {\n foreach ($this->contentTypes as $b) {\n\tlist($type, $subtype) = explode('/', $b);\n\tif (preg_match('/(\\*|'.$type.')\\/(\\*|'.$subtype.')/', $a)) return $b;\n }\n }\n\n return null;\n }",
"function get_accept() {\n\n\tglobal $MARKUPS, $CONFIG;\n\n\t// ----------- ACCEPT -----------\n\n\t$this->accept = array();\n\t$accept_str = $_SERVER['HTTP_ACCEPT'];\n\n\t// Redefining Accept-List if we know this device.\n\tif ($data = db_get(\"select agent,accept from accept order by agent\")) {\n\t\tforeach ($data as $rec) {\n\t\t\tif (@preg_match('/'.trim($rec['agent']).'/i',$_SERVER['HTTP_USER_AGENT'])) {\n\t\t\t\t$accept_str = $rec['accept'];\n\t\t\t};\n\t\t};\n\t};\n\n\t// Fill accepted MIME types list of object.\n\t$accept_str = strtolower($accept_str);\n\t$acc = explode(',',$accept_str);\n\tforeach($acc as $val) {\n\t\t$this->accept[trim($val)] = 1;\n\t};\n\n\t// ----------- MARKUP -----------\n\n\t$this->markup = $CONFIG['wap']['default_markup'];\n\n\t// Try to get markup by 'm' request parameter.\n\tif(\t$_REQUEST['m'] ){\n\n\t\t// If known markup, set it by request parameter\n\t\tif ( $MARKUPS[$_REQUEST['m']] ) {\n\t\t\t$this->markup = $_REQUEST['m'];\n\t\t};\n\n\t// Otherwise try to set \n\t} elseif ($this->accept['application/vnd.wap.xhtml+xml'] or $this->accept['application/xhtml+xml'] ) {\n\t $this->markup = 'xhtml';\n\t}\n\n\t// Misha: never show XHTML for SE T610\n\tif (\n\t\t\t(preg_match('/SonyEricssonT610/', $_SERVER['HTTP_USER_AGENT']))\n\t\t\tor (preg_match('/SonyEricssonT230/', $_SERVER['HTTP_USER_AGENT']))\n\t\t\t) {\n\t\t$this->markup = 'wml';\n\t\t}\n\n}",
"public function getAcceptUnknown() {\n return $this->acceptUnknown;\n }",
"private function getAccept(UriInterface $url, array $httpHeader = []): ?string\n {\n if (!empty($httpHeader['accept'])) {\n $this->logger->info('Found accept header \"{accept}\" for url \"{url}\" from site config', ['accept' => $httpHeader['accept'], 'url' => (string) $url]);\n\n return $httpHeader['accept'];\n }\n\n return null;\n }",
"public function provider_accept_set()\n\t{\n\t\treturn array(\n\t\t\tarray(\n\t\t\t\t'text/html',\n\t\t\t\tNULL\n\t\t\t),\n\t\t\tarray(\n\t\t\t\tarray('application/xml', 'text/html'),\n\t\t\t\tarray('application/xml', 'text/html')\n\t\t\t),\n\t\t\tarray(\n\t\t\t\tarray('Application/XML', 'text/html'),\n\t\t\t\tarray('application/xml', 'text/html')\n\t\t\t),\n\t\t);\n\t}",
"public function getAcceptLanguage()\n {\n return $this->accept_language;\n }",
"public function getAcceptLanguage()\n {\n return $this->getHeaderLine('ACCEPT_LANGUAGE');\n }",
"public function get_content_type() {\n\t\tif ($this->HTTP_ACCEPT) {\n\t\t\t$mediaTypes = explode(\",\", $this->HTTP_ACCEPT);\n\t\t\t$type = array();\n\t\t\tforeach ($mediaTypes as $mediaType) {\n\t\t\t\t$tmp = explode(\";\", $mediaType);\n\t\t\t\t$tmp = explode(\"/\", $tmp[0]);\n\t\t\t\t$type[] = $tmp[1];\n\t\t\t}\n\t\t\treturn $type;\n\t\t} \n\t\treturn false;\n\t}",
"public function getFormatFromHeader() {\n Request::header('Content-Type');\n return false;\n }",
"protected function matchAccept($header, $supported)\n {\n $matches = $this->sortAccept($header);\n foreach ($matches as $key => $q) {\n if (isset($supported[$key])) {\n return $supported[$key];\n }\n }\n // If any (i.e. \"*\") is acceptable, return the first supported format\n if (isset($matches['*'])) {\n return array_shift($supported);\n }\n return null;\n }",
"public function setAccept($value)\n {\n return $this->setParameter('accept', $value);\n }",
"public function testAccepts(): void\n {\n $request = new ServerRequest(['environment' => [\n 'HTTP_ACCEPT' => 'text/xml,application/xml;q=0.9,application/xhtml+xml,text/html,text/plain,image/png',\n ]]);\n\n $result = $request->accepts();\n $expected = [\n 'text/xml', 'application/xhtml+xml', 'text/html', 'text/plain', 'image/png', 'application/xml',\n ];\n $this->assertEquals($expected, $result, 'Content types differ.');\n\n $result = $request->accepts('text/html');\n $this->assertTrue($result);\n\n $result = $request->accepts('image/gif');\n $this->assertFalse($result);\n }",
"function getClientEncoding() {\n if (!isset($_SERVER['HTTP_ACCEPT_ENCODING'])) {\n return false;\n }\n\n $encoding = false;\n\n if (false !== strpos($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip')) {\n $encoding = 'gzip';\n }\n\n if (false !== strpos($_SERVER['HTTP_ACCEPT_ENCODING'], 'x-gzip')) {\n $encoding = 'x-gzip';\n }\n\n return $encoding;\n }",
"private function _detect_format()\n {\n \tif(array_key_exists('format', $this->args) && array_key_exists($this->args['format'], $this->supported_formats))\n \t{\n \t\treturn $this->args['format'];\n \t}\n \t\n \t// If a HTTP_ACCEPT header is present...\n\t if($this->input->server('HTTP_ACCEPT'))\n\t {\n\t \t// Check to see if it matches a supported format\n\t \tforeach(array_keys($this->supported_formats) as $format)\n\t \t{\n\t\t \tif(strpos($this->input->server('HTTP_ACCEPT'), $format) !== FALSE)\n\t\t \t{\n\t\t \t\treturn $format;\n\t\t \t}\n\t \t}\n\t }\n\t \n\t // If it doesnt match any or no HTTP_ACCEPT header exists, uses the first (default) supported format\n\t list($default)=array_keys($this->supported_formats);\n\t return $default;\n }"
] | [
"0.73515964",
"0.73515964",
"0.7277011",
"0.7102227",
"0.6955907",
"0.6931501",
"0.68657386",
"0.68213516",
"0.67396605",
"0.6716946",
"0.64750236",
"0.6438096",
"0.6432133",
"0.64035434",
"0.63742745",
"0.6313609",
"0.62966555",
"0.6290304",
"0.62637",
"0.61395735",
"0.60983384",
"0.6042844",
"0.60287195",
"0.60198206",
"0.59820014",
"0.5882933",
"0.5870876",
"0.5821976",
"0.5807796",
"0.5792041"
] | 0.80439943 | 1 |
Test set flash message for next request | public function testSetFlashForNextRequest()
{
$f = new Flash();
$f->set('foo', 'bar');
$f->save();
$this->assertEquals('bar', $_SESSION['light.flash']['foo']);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function flash() {\n\t\t$_SESSION['flash']['request'] = $this->requestData;\n\t}",
"public function testLoadsFlashFromPreviousRequest()\n {\n $_SESSION['light.flash'] = array('info' => 'foo');\n $f = new Flash();\n $f->loadMessages();\n $this->assertEquals('foo', $f['info']);\n }",
"public function flash()\n {\n $data = (serialize($this->messages));\n session(['flashy' => $data]);\n }",
"public function testKeepFlashFromPreviousRequest()\n {\n $_SESSION['light.flash'] = array('info' => 'foo');\n $f = new Flash();\n $f->loadMessages();\n $f->keep();\n $f->save();\n $this->assertEquals('foo', $_SESSION['light.flash']['info']);\n }",
"protected function setFlash()\r\n\t{\r\n\t\t$this->getSession()->setFlash('notice', \"pi.session.flash.welcom\");\r\n\t}",
"public function testFlashRefresh()\n {\n // ok, the session var \"flash is here\"\n $this->assertEquals($this->flash_msg,\n $this->app['session']->get('flash'));\n\n // bootstrap flash messages\n bootstrap_flash($this->app['session'], $this->app['twig']);\n\n // and it should not be here anymore\n $this->assertNull($this->app['session']->get('flash'),\n 'The session \"flash\" could not be refreshed');\n }",
"public function testSetFlashForCurrentRequest()\n {\n $f = new Flash();\n $f->now('foo', 'bar');\n $this->assertEquals('bar', $f['foo']);\n }",
"public function showFlashMessages()\n {\n session()->flash('error', $this->errorMessages);\n session()->flash('info', $this->infoMessages);\n session()->flash('success', $this->successMessages);\n session()->flash('warning', $this->warningMessages);\n }",
"public function testFlashMessagesFromPreviousRequestDoNotPersist()\n {\n $_SESSION['light.flash'] = array('info' => 'foo');\n $f = new Flash();\n $f->save();\n $this->assertEmpty($_SESSION['light.flash']);\n }",
"public static function set_message($message) {\n $_SESSION[\"flash_message\"] = $message;\n }",
"public function setMessages()\n {\n $flash = $this->session->getSegment('flash\\messages');\n $flash->set(\"flash\", $this->data);\n }",
"protected function setFlashMessage()\n {\n Factory::getApplication()->enqueueMessage( Text::_('PLG_EXTENSION_MFI_TEMPLATE_OPCACHE_RESET_LOG_ADMIN_MSSG'), 'warning' );\n }",
"function flash($status, $message) {\n $_SESSION['flash'] = ['status' => $status, 'message' => $message];\n }",
"protected function flash()\n {\n $this->sessionStore->flash($this->configRepository->get('notification::session_prefix').$this->container, $this->getFlashable()->toJson());\n }",
"function msg($mesaj, $yonlendirme = NULL, $renk='info',$tip = NULL, $flashName='msg')\n{\n $cikti =\n '<div class=\"alert alert-' . $tip . ' alert-' . $renk . '\" role=\"alert\">\n <button type=\"button\" class=\"close\" data-dismiss=\"alert\" aria-label=\"Close\">\n <span aria-hidden=\"true\">×</span>\n </button>\n <strong>Uyarı!</strong> ' . $mesaj . '\n </div>';\n\n get_instance()->session->set_flashdata($flashName, $cikti);\n\n if ($yonlendirme != NULL) redirect(base_url($yonlendirme));\n}",
"protected function addDummyFlashMessage()\n {\n\n $flashMessage = new FlashMessage(\n 'If you see this message, the list view is successfully extended',\n 'Xclass',\n FlashMessage::OK\n );\n\n // Add FlashMessage\n $flashMessageService = GeneralUtility::makeInstance(FlashMessageService::class);\n /** @var $flashMessageQueue \\TYPO3\\CMS\\Core\\Messaging\\FlashMessageQueue */\n $flashMessageQueue = $flashMessageService->getMessageQueueByIdentifier();\n $flashMessageQueue->enqueue($flashMessage);\n }",
"public function setFlash()\n {\n }",
"function flash($message)\n{\n\tsession()->flash(\"flash\",$message);\n}",
"function flashSuccess($msg, $url = null) {\n\t\t\n\t\t$this->Session->setFlash($msg, 'success');\n\t\t\n\t\tif (!empty($url))\n\t\t{\n\t\t\t$this->redirect($url, null, true);\t\n\t\t}\n\n\t}",
"function setFlash ($key, $msg) {\n $_SESSION[$key] = $msg;\n }",
"public function thankyouAction(){\n $this->view->msg = $this->_getParam('msg');\n }",
"public function testBootstraping()\n {\n $has_flash = function($twig) {\n return isset($twig->getGlobals()['flash']);\n };\n\n // empty flash message?? ok, ok...\n $this->assertFalse($has_flash($this->app['twig']));\n\n // bootstrap the message\n bootstrap_flash($this->app['session'], $this->app['twig']);\n\n // And do we have a winner?\n $this->assertEquals($this->flash_msg, \n $this->app['twig']->getGlobals()['flash'], \n \"Can't retrieve the flash message from twig.\");\n }",
"public static function finalFlash() {\n if(self::exists('names')) {\n foreach ($_SESSION['names'] as $name) {\n echo '<span style=\"font-size: 1.5em; color: red; align: center;\">'.Session::flash($name).\"</span>\";\n }\n }\n}",
"protected function setFlash($msg)\n {\n $this->session->flash = $msg;\n }",
"function set_flash_message($type,$message, $url)\n\t{\n\t $ci =& get_instance();\n\t \n\t if (empty($url))\n\t {\n\t $ci->session->set_flashdata(\"system_message\", \"<div class='$type'>$message</div>\");\n\t }\n\t else\n\t {\n\t $ci->session->set_flashdata(\"system_message\", \"<div class='$type'>$message</div>\");\n\t redirect($url);\n\t }\n\t \n\t}",
"function set_flash($name, $message_type, $message, $redirect=TRUE)\n{\n $CI =& get_instance();\n $CI->session->set_flashdata($name, array('message_type' => $message_type, 'message' => $message));\n if ($redirect)\n redirect($redirect);\n}",
"public static function setFlash($message, $delay = 5000) \n {\n $_SESSION['yum_message'] = Yum::t($message);\n $_SESSION['yum_delay'] = $delay;\n }",
"public function addFlash()\n {\n }",
"function testUploadCanOnlyBeDoneFromFlash() {\n\t\t$this->testAction('/admin/documents_test/upload.json', array('return' => 'result'));\n\t\t$this->assertEqual(Configure::read('DocumentsTest.error'), 'error404');\n\t}",
"function setFlash($messages, $type = 'danger'){\n if(!isset($_SESSION)){\n session_start();\n }\n $_SESSION['flash'] = ['messages' => $messages, 'type' => $type];\n}"
] | [
"0.73966",
"0.69172716",
"0.6859976",
"0.67338955",
"0.6689407",
"0.66617054",
"0.65166515",
"0.64302707",
"0.63450944",
"0.63335645",
"0.6248773",
"0.62344337",
"0.62186396",
"0.61883754",
"0.6177949",
"0.6136246",
"0.6127145",
"0.61222196",
"0.6101183",
"0.6087829",
"0.6084257",
"0.60492724",
"0.60342133",
"0.6029595",
"0.6026732",
"0.6017772",
"0.59823734",
"0.59634113",
"0.5939635",
"0.5906536"
] | 0.76918626 | 0 |
Test loads flash from previous request | public function testLoadsFlashFromPreviousRequest()
{
$_SESSION['light.flash'] = array('info' => 'foo');
$f = new Flash();
$f->loadMessages();
$this->assertEquals('foo', $f['info']);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function testKeepFlashFromPreviousRequest()\n {\n $_SESSION['light.flash'] = array('info' => 'foo');\n $f = new Flash();\n $f->loadMessages();\n $f->keep();\n $f->save();\n $this->assertEquals('foo', $_SESSION['light.flash']['info']);\n }",
"public function testFlashMessagesFromPreviousRequestDoNotPersist()\n {\n $_SESSION['light.flash'] = array('info' => 'foo');\n $f = new Flash();\n $f->save();\n $this->assertEmpty($_SESSION['light.flash']);\n }",
"public function testSetFlashForNextRequest()\n {\n $f = new Flash();\n $f->set('foo', 'bar');\n $f->save();\n $this->assertEquals('bar', $_SESSION['light.flash']['foo']);\n }",
"public function testFlashRefresh()\n {\n // ok, the session var \"flash is here\"\n $this->assertEquals($this->flash_msg,\n $this->app['session']->get('flash'));\n\n // bootstrap flash messages\n bootstrap_flash($this->app['session'], $this->app['twig']);\n\n // and it should not be here anymore\n $this->assertNull($this->app['session']->get('flash'),\n 'The session \"flash\" could not be refreshed');\n }",
"public function flash() {\n\t\t$_SESSION['flash']['request'] = $this->requestData;\n\t}",
"public function testSetFlashForCurrentRequest()\n {\n $f = new Flash();\n $f->now('foo', 'bar');\n $this->assertEquals('bar', $f['foo']);\n }",
"public function flash()\n {\n $data = (serialize($this->messages));\n session(['flashy' => $data]);\n }",
"function testUploadCanOnlyBeDoneFromFlash() {\n\t\t$this->testAction('/admin/documents_test/upload.json', array('return' => 'result'));\n\t\t$this->assertEqual(Configure::read('DocumentsTest.error'), 'error404');\n\t}",
"public function testFlashMessageSupressed() {\n\t\t$Request = new CakeRequest();\n\t\t$Request->addDetector('api', array('callback' => function() {\n\t\t\treturn true;\n\t\t}));\n\n\t\t$subject = new CrudSubject(array('request' => $Request));\n\n\t\t$apiListener = new ApiListener($subject);\n\n\t\t$event = new CakeEvent('Crud.setFlash', $subject);\n\t\t$apiListener->setFlash($event);\n\n\t\t$stopped = $event->isStopped();\n\t\t$this->assertTrue($stopped, 'Set flash event is expected to be stopped');\n\t}",
"public function addFlash()\n {\n }",
"public function testBootstraping()\n {\n $has_flash = function($twig) {\n return isset($twig->getGlobals()['flash']);\n };\n\n // empty flash message?? ok, ok...\n $this->assertFalse($has_flash($this->app['twig']));\n\n // bootstrap the message\n bootstrap_flash($this->app['session'], $this->app['twig']);\n\n // And do we have a winner?\n $this->assertEquals($this->flash_msg, \n $this->app['twig']->getGlobals()['flash'], \n \"Can't retrieve the flash message from twig.\");\n }",
"public function flash_notification()\n\t{\n\t\theader(\"Content-type: application/json\");\n\n\t\tif (isset($_SESSION['flash'])) {\n\t\techo json_encode($_SESSION['flash']);\n\t\t}else{\n\t\t\techo \"[]\";\n\t\t}\n\n\n\t\tunset($_SESSION['flash']);\n\n\t}",
"public static function isFlashRequest(){\n return ('Shockwave Flash' == self::header('USER_AGENT'));\n }",
"public function emptyFlash() {\n\t\t$_SESSION['flash']['request'] = [];\n\t}",
"public function setFlash()\n {\n }",
"protected function flash()\n {\n $this->sessionStore->flash($this->configRepository->get('notification::session_prefix').$this->container, $this->getFlashable()->toJson());\n }",
"public function getFlash()\n {\n }",
"function checkFlash() {\n $ci = & get_instance();\n $ci->load->library('session');\n if ($ci->session->flashdata('class')):\n $data['class'] = $ci->session->flashdata('class');\n $data['error'] = $ci->session->flashdata('error');\n $ci->load->view('errors/flashdata', $data);\n endif;\n}",
"public function isFlashRequest()\n\t{\n\t\treturn ($this->getHeader('USER_AGENT') == 'Shockwave Flash');\n\t}",
"public function flashSession(Request $request)\n {\n session()->flash('hakAkses','admin');\n //membuat 1 flash session menggunakan request object\n $request->session()->flush('hakAkses','admin');\n //membuat 1 flash session menggunakan facade function\n Session::flash('hakAkses','admin');\n echo \"Flash session hakAkses sudah di buat\";\n }",
"public function testFlashWithStack(): void\n {\n $result = $this->Flash->render('stack');\n $expected = [\n ['div' => ['class' => 'message']], 'This is a calling', '/div',\n ['div' => ['id' => 'notificationLayout']],\n '<h1', 'Alert!', '/h1',\n '<h3', 'Notice!', '/h3',\n '<p', 'This is a test of the emergency broadcasting system', '/p',\n '/div',\n ['div' => ['id' => 'classy-message']], 'Recorded', '/div',\n ];\n $this->assertHtml($expected, $result);\n $this->assertNull($this->View->getRequest()->getSession()->read('Flash.stack'));\n }",
"function getFlash(string $_name)\n{\n // If we have the flash.\n if(hasFlash($_name))\n {\n // Store the flash message.\n $flash = $_SESSION['FLASH'][$_name];\n\n // Unset the flash.\n unset($_SESSION['FLASH'][$_name]);\n\n // Return the flash by name.\n return $flash;\n }\n\n // Otherwise return null.\n return null;\n}",
"protected function recover_flash_message_from_cookie() {\n $this->flash_message = Cookie::read('flash');\n Cookie::delete('flash');\n }",
"private function expireFlash() {\n\t\t$_SESSION[$this->token . '_flash'] = array();\n\t}",
"public function testFlashWithPrefix(): void\n {\n $this->View->setRequest($this->View->getRequest()->withParam('prefix', 'Admin'));\n $result = $this->Flash->render('flash');\n $expected = 'flash element from Admin prefix folder';\n $this->assertStringContainsString($expected, $result);\n }",
"protected function setFlash()\r\n\t{\r\n\t\t$this->getSession()->setFlash('notice', \"pi.session.flash.welcom\");\r\n\t}",
"public function testFlashWithTheme(): void\n {\n $this->loadPlugins(['TestTheme']);\n\n $this->View->setTheme('TestTheme');\n $result = $this->Flash->render('flash');\n $expected = 'flash element from TestTheme';\n $this->assertStringContainsString($expected, $result);\n }",
"public function keepFlash($name);",
"function customFlash($url, $class, $message) {\n $ci = & get_instance();\n $ci->load->helper('url');\n $ci->load->library('session');\n $ci->session->set_flashdata('class', $class);\n $ci->session->set_flashdata('error', $message);\n redirect($url);\n}",
"public static function getFlash(){\n\t\tif(isset($_SESSION['flash_message'])){\n\t\t\t$ret = $_SESSION['flash_message'];\n\t\t\t//delete from session so message only displayed once\n\t\t\tunset($_SESSION['flash_message']);\n\t\t\treturn $ret;\n\t\t}\n\t\treturn false;\n\t}"
] | [
"0.7979388",
"0.73950803",
"0.73855895",
"0.72899395",
"0.7125349",
"0.6723887",
"0.63890225",
"0.63548553",
"0.63418525",
"0.6226122",
"0.61974686",
"0.6166957",
"0.6060881",
"0.6050158",
"0.60472983",
"0.60200906",
"0.60163254",
"0.5949726",
"0.591794",
"0.59029937",
"0.5896032",
"0.5856117",
"0.58407336",
"0.58007425",
"0.57898325",
"0.57807904",
"0.5774936",
"0.57677966",
"0.5752098",
"0.5749086"
] | 0.854079 | 0 |
Test keep flash message for next request | public function testKeepFlashFromPreviousRequest()
{
$_SESSION['light.flash'] = array('info' => 'foo');
$f = new Flash();
$f->loadMessages();
$f->keep();
$f->save();
$this->assertEquals('foo', $_SESSION['light.flash']['info']);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function testSetFlashForNextRequest()\n {\n $f = new Flash();\n $f->set('foo', 'bar');\n $f->save();\n $this->assertEquals('bar', $_SESSION['light.flash']['foo']);\n }",
"public function flash() {\n\t\t$_SESSION['flash']['request'] = $this->requestData;\n\t}",
"public function testLoadsFlashFromPreviousRequest()\n {\n $_SESSION['light.flash'] = array('info' => 'foo');\n $f = new Flash();\n $f->loadMessages();\n $this->assertEquals('foo', $f['info']);\n }",
"public function testFlashMessagesFromPreviousRequestDoNotPersist()\n {\n $_SESSION['light.flash'] = array('info' => 'foo');\n $f = new Flash();\n $f->save();\n $this->assertEmpty($_SESSION['light.flash']);\n }",
"public function testFlashRefresh()\n {\n // ok, the session var \"flash is here\"\n $this->assertEquals($this->flash_msg,\n $this->app['session']->get('flash'));\n\n // bootstrap flash messages\n bootstrap_flash($this->app['session'], $this->app['twig']);\n\n // and it should not be here anymore\n $this->assertNull($this->app['session']->get('flash'),\n 'The session \"flash\" could not be refreshed');\n }",
"public function flash()\n {\n $data = (serialize($this->messages));\n session(['flashy' => $data]);\n }",
"public function testSetFlashForCurrentRequest()\n {\n $f = new Flash();\n $f->now('foo', 'bar');\n $this->assertEquals('bar', $f['foo']);\n }",
"function testUploadCanOnlyBeDoneFromFlash() {\n\t\t$this->testAction('/admin/documents_test/upload.json', array('return' => 'result'));\n\t\t$this->assertEqual(Configure::read('DocumentsTest.error'), 'error404');\n\t}",
"public function testFlashMessageSupressed() {\n\t\t$Request = new CakeRequest();\n\t\t$Request->addDetector('api', array('callback' => function() {\n\t\t\treturn true;\n\t\t}));\n\n\t\t$subject = new CrudSubject(array('request' => $Request));\n\n\t\t$apiListener = new ApiListener($subject);\n\n\t\t$event = new CakeEvent('Crud.setFlash', $subject);\n\t\t$apiListener->setFlash($event);\n\n\t\t$stopped = $event->isStopped();\n\t\t$this->assertTrue($stopped, 'Set flash event is expected to be stopped');\n\t}",
"public function showFlashMessages()\n {\n session()->flash('error', $this->errorMessages);\n session()->flash('info', $this->infoMessages);\n session()->flash('success', $this->successMessages);\n session()->flash('warning', $this->warningMessages);\n }",
"protected function setFlash()\r\n\t{\r\n\t\t$this->getSession()->setFlash('notice', \"pi.session.flash.welcom\");\r\n\t}",
"function flashSuccess($msg, $url = null) {\n\t\t\n\t\t$this->Session->setFlash($msg, 'success');\n\t\t\n\t\tif (!empty($url))\n\t\t{\n\t\t\t$this->redirect($url, null, true);\t\n\t\t}\n\n\t}",
"function flash($status, $message) {\n $_SESSION['flash'] = ['status' => $status, 'message' => $message];\n }",
"function msg($mesaj, $yonlendirme = NULL, $renk='info',$tip = NULL, $flashName='msg')\n{\n $cikti =\n '<div class=\"alert alert-' . $tip . ' alert-' . $renk . '\" role=\"alert\">\n <button type=\"button\" class=\"close\" data-dismiss=\"alert\" aria-label=\"Close\">\n <span aria-hidden=\"true\">×</span>\n </button>\n <strong>Uyarı!</strong> ' . $mesaj . '\n </div>';\n\n get_instance()->session->set_flashdata($flashName, $cikti);\n\n if ($yonlendirme != NULL) redirect(base_url($yonlendirme));\n}",
"function flash($message)\n{\n\tsession()->flash(\"flash\",$message);\n}",
"public function emptyFlash() {\n\t\t$_SESSION['flash']['request'] = [];\n\t}",
"protected function flash()\n {\n $this->sessionStore->flash($this->configRepository->get('notification::session_prefix').$this->container, $this->getFlashable()->toJson());\n }",
"public function flash_notification()\n\t{\n\t\theader(\"Content-type: application/json\");\n\n\t\tif (isset($_SESSION['flash'])) {\n\t\techo json_encode($_SESSION['flash']);\n\t\t}else{\n\t\t\techo \"[]\";\n\t\t}\n\n\n\t\tunset($_SESSION['flash']);\n\n\t}",
"private function expireFlash() {\n\t\t$_SESSION[$this->token . '_flash'] = array();\n\t}",
"public static function finalFlash() {\n if(self::exists('names')) {\n foreach ($_SESSION['names'] as $name) {\n echo '<span style=\"font-size: 1.5em; color: red; align: center;\">'.Session::flash($name).\"</span>\";\n }\n }\n}",
"public function flashSession(Request $request)\n {\n session()->flash('hakAkses','admin');\n //membuat 1 flash session menggunakan request object\n $request->session()->flush('hakAkses','admin');\n //membuat 1 flash session menggunakan facade function\n Session::flash('hakAkses','admin');\n echo \"Flash session hakAkses sudah di buat\";\n }",
"public function testBootstraping()\n {\n $has_flash = function($twig) {\n return isset($twig->getGlobals()['flash']);\n };\n\n // empty flash message?? ok, ok...\n $this->assertFalse($has_flash($this->app['twig']));\n\n // bootstrap the message\n bootstrap_flash($this->app['session'], $this->app['twig']);\n\n // And do we have a winner?\n $this->assertEquals($this->flash_msg, \n $this->app['twig']->getGlobals()['flash'], \n \"Can't retrieve the flash message from twig.\");\n }",
"function set_flash($name, $message_type, $message, $redirect=TRUE)\n{\n $CI =& get_instance();\n $CI->session->set_flashdata($name, array('message_type' => $message_type, 'message' => $message));\n if ($redirect)\n redirect($redirect);\n}",
"protected function setFlashMessage()\n {\n Factory::getApplication()->enqueueMessage( Text::_('PLG_EXTENSION_MFI_TEMPLATE_OPCACHE_RESET_LOG_ADMIN_MSSG'), 'warning' );\n }",
"function redirection(){\n if(empty($_SESSION['alreadyMessaged']) || $_SESSION['alreadyMessaged'] == false){\n Header('Location: http://localhost:3000/index.php');\n }\n }",
"function set_flash_message($type,$message, $url)\n\t{\n\t $ci =& get_instance();\n\t \n\t if (empty($url))\n\t {\n\t $ci->session->set_flashdata(\"system_message\", \"<div class='$type'>$message</div>\");\n\t }\n\t else\n\t {\n\t $ci->session->set_flashdata(\"system_message\", \"<div class='$type'>$message</div>\");\n\t redirect($url);\n\t }\n\t \n\t}",
"public function reflash() {\n\t\tforeach ($this->currentFlashData as $key => $value) {\n\t\t\t$this->flash($key, $value);\n\t\t}\n\t}",
"public function keepFlash($name);",
"protected function addDummyFlashMessage()\n {\n\n $flashMessage = new FlashMessage(\n 'If you see this message, the list view is successfully extended',\n 'Xclass',\n FlashMessage::OK\n );\n\n // Add FlashMessage\n $flashMessageService = GeneralUtility::makeInstance(FlashMessageService::class);\n /** @var $flashMessageQueue \\TYPO3\\CMS\\Core\\Messaging\\FlashMessageQueue */\n $flashMessageQueue = $flashMessageService->getMessageQueueByIdentifier();\n $flashMessageQueue->enqueue($flashMessage);\n }",
"function setFlash($messages, $type = 'danger'){\n if(!isset($_SESSION)){\n session_start();\n }\n $_SESSION['flash'] = ['messages' => $messages, 'type' => $type];\n}"
] | [
"0.742483",
"0.7278279",
"0.711459",
"0.6887994",
"0.6798227",
"0.6718141",
"0.6339502",
"0.6226123",
"0.61831146",
"0.6178247",
"0.60591555",
"0.603502",
"0.6029524",
"0.59763443",
"0.5975779",
"0.59751827",
"0.59659916",
"0.59481573",
"0.59414977",
"0.5938989",
"0.588919",
"0.5855866",
"0.58243996",
"0.58140504",
"0.5813162",
"0.58048886",
"0.57781154",
"0.57591194",
"0.5754131",
"0.572951"
] | 0.73616195 | 1 |
Test flash messages from previous request do not persist to next request | public function testFlashMessagesFromPreviousRequestDoNotPersist()
{
$_SESSION['light.flash'] = array('info' => 'foo');
$f = new Flash();
$f->save();
$this->assertEmpty($_SESSION['light.flash']);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function testKeepFlashFromPreviousRequest()\n {\n $_SESSION['light.flash'] = array('info' => 'foo');\n $f = new Flash();\n $f->loadMessages();\n $f->keep();\n $f->save();\n $this->assertEquals('foo', $_SESSION['light.flash']['info']);\n }",
"public function testLoadsFlashFromPreviousRequest()\n {\n $_SESSION['light.flash'] = array('info' => 'foo');\n $f = new Flash();\n $f->loadMessages();\n $this->assertEquals('foo', $f['info']);\n }",
"public function flash() {\n\t\t$_SESSION['flash']['request'] = $this->requestData;\n\t}",
"public function testFlashRefresh()\n {\n // ok, the session var \"flash is here\"\n $this->assertEquals($this->flash_msg,\n $this->app['session']->get('flash'));\n\n // bootstrap flash messages\n bootstrap_flash($this->app['session'], $this->app['twig']);\n\n // and it should not be here anymore\n $this->assertNull($this->app['session']->get('flash'),\n 'The session \"flash\" could not be refreshed');\n }",
"public function testSetFlashForNextRequest()\n {\n $f = new Flash();\n $f->set('foo', 'bar');\n $f->save();\n $this->assertEquals('bar', $_SESSION['light.flash']['foo']);\n }",
"public function flash()\n {\n $data = (serialize($this->messages));\n session(['flashy' => $data]);\n }",
"public function emptyFlash() {\n\t\t$_SESSION['flash']['request'] = [];\n\t}",
"public function setMessages()\n {\n $flash = $this->session->getSegment('flash\\messages');\n $flash->set(\"flash\", $this->data);\n }",
"public function showFlashMessages()\n {\n session()->flash('error', $this->errorMessages);\n session()->flash('info', $this->infoMessages);\n session()->flash('success', $this->successMessages);\n session()->flash('warning', $this->warningMessages);\n }",
"public function testFlashMessageSupressed() {\n\t\t$Request = new CakeRequest();\n\t\t$Request->addDetector('api', array('callback' => function() {\n\t\t\treturn true;\n\t\t}));\n\n\t\t$subject = new CrudSubject(array('request' => $Request));\n\n\t\t$apiListener = new ApiListener($subject);\n\n\t\t$event = new CakeEvent('Crud.setFlash', $subject);\n\t\t$apiListener->setFlash($event);\n\n\t\t$stopped = $event->isStopped();\n\t\t$this->assertTrue($stopped, 'Set flash event is expected to be stopped');\n\t}",
"private function persist_flashdata() {\n\n\t\t$flashkeys = $this->EE->TMPL->fetch_param('persist_flashdata');\n\t\tif($flashkeys == FALSE) {\n\t\t\treturn;\n\t\t}\n\n\t\tforeach(explode(',',$flashkeys) as $key) {\n\n\t\t\tif(isset($this->EE->session->flashdata[$key])) {\n\t\t\t\t$this->EE->session->flashdata[':new:'.$key] = $this->EE->session->flashdata[$key];\n\t\t\t\t$this->EE->session->_set_flash_cookie();\n\t\t\t}\n\t\t}\n\t}",
"public function testSetFlashForCurrentRequest()\n {\n $f = new Flash();\n $f->now('foo', 'bar');\n $this->assertEquals('bar', $f['foo']);\n }",
"protected function flash()\n {\n $this->sessionStore->flash($this->configRepository->get('notification::session_prefix').$this->container, $this->getFlashable()->toJson());\n }",
"public function flash_notification()\n\t{\n\t\theader(\"Content-type: application/json\");\n\n\t\tif (isset($_SESSION['flash'])) {\n\t\techo json_encode($_SESSION['flash']);\n\t\t}else{\n\t\t\techo \"[]\";\n\t\t}\n\n\n\t\tunset($_SESSION['flash']);\n\n\t}",
"function session_flash($name, $message = null) {\n if (is_null($message)) {\n $message = array_get($_SESSION, $name, '');\n unset($_SESSION[$name]);\n return $message;\n }\n return $_SESSION[$name] = $message;\n}",
"protected function recover_flash_message_from_cookie() {\n $this->flash_message = Cookie::read('flash');\n Cookie::delete('flash');\n }",
"function setFlash($messages, $type = 'danger'){\n if(!isset($_SESSION)){\n session_start();\n }\n $_SESSION['flash'] = ['messages' => $messages, 'type' => $type];\n}",
"function getFlashMessage()\n{\n // on test si $_SESSION['flash'] existe\n if (isset($_SESSION['flash'])) {\n //on stock les message dans une variable intermédiaire\n $messages = $_SESSION['flash']; // stocks les messages dans une variables\n unset($_SESSION['flash']); // Vide la session 'flash'\n\n return $messages;//ensuite on retourne les messages\n }\n return []; //On retourne un tableau vide pour dire qu'on a pas de messages ensuite on va dans common\n}",
"public function flashSession(Request $request)\n {\n session()->flash('hakAkses','admin');\n //membuat 1 flash session menggunakan request object\n $request->session()->flush('hakAkses','admin');\n //membuat 1 flash session menggunakan facade function\n Session::flash('hakAkses','admin');\n echo \"Flash session hakAkses sudah di buat\";\n }",
"private function check_message() {\t\tif(isset($_SESSION['message'])) {\n\t\t\t// Add it as an attribute and erase the stored version\n $this->message = $_SESSION['message'];\n unset($_SESSION['message']);\n } else {\n $this->message = \"\";\n }\n\t}",
"private function expireFlash() {\n\t\t$_SESSION[$this->token . '_flash'] = array();\n\t}",
"private function checkMessage() {\t\tif(isset($_SESSION['message'])) {\n\t\t\t// Add it as an attribute and erase the stored version\n\t\t\t$this->message = $_SESSION['message'];\n\t\t\tunset($_SESSION['message']);\n\t\t} else {\n\t\t\t$this->message = \"\";\n\t\t}\n\t}",
"function flash($message)\n{\n\tsession()->flash(\"flash\",$message);\n}",
"function flash($status, $message) {\n $_SESSION['flash'] = ['status' => $status, 'message' => $message];\n }",
"function flash($name = '', $message = '', $class = 'alert alert-success') {\n if (!empty($name)) {\n if (!empty($message) && empty($_SESSION[$name])) {\n if (!empty($_SESSION[$name])) {\n unset($_SESSION[$name]);\n }\n\n if (!empty($_SESSION[$name . '_class'])) {\n unset($_SESSION[$name . '_class']);\n }\n\n $_SESSION[$name] = $message;\n $_SESSION[$name . '_class'] = $class;\n } elseif (empty($message) && !empty($_SESSION[$name])) {\n\n $class = !empty($_SESSION[$name . '_class']) ? $_SESSION[$name . '_class'] : '';\n echo '<div class=\"' . $class . '\" id=\"msg-flash\">' . $_SESSION[$name] . '</div>';\n unset($_SESSION[$name]);\n unset($_SESSION[$name . '_class']);\n }\n }\n}",
"function flash($name = '', $message = '', $class = 'alert alert-success')\n{\n if (!empty($name)) {\n if (!empty($message) && empty($_SESSION[$name])) {\n if (!empty($_SESSION[$name])) {\n unset($_SESSION[$name]);\n }\n\n if (!empty($_SESSION[$name . '_class'])) {\n unset($_SESSION[$name . '_class']);\n }\n\n $_SESSION[$name] = $message;\n $_SESSION[$name . '_class'] = $class;\n } elseif (empty($message) && !empty($_SESSION[$name])) {\n $class = !empty($_SESSION[$name . '_class']) ? $_SESSION[$name . '_class'] : '';\n echo '<div class=\"' . $class . '\" id=\"msg-flash\">' . $_SESSION[$name] . '</div>';\n unset($_SESSION[$name]);\n unset($_SESSION[$name . '_class']);\n }\n }\n}",
"public static function getFlash(){\n\t\tif(isset($_SESSION['flash_message'])){\n\t\t\t$ret = $_SESSION['flash_message'];\n\t\t\t//delete from session so message only displayed once\n\t\t\tunset($_SESSION['flash_message']);\n\t\t\treturn $ret;\n\t\t}\n\t\treturn false;\n\t}",
"public static function addFlashMessages(){\n\t\t$messages = self::bddSelect(\"SELECT message_text FROM shaoline_flash_message WHERE message_only_for_logged = 0 AND current_date() >= message_start_date AND current_date() <= message_stop_date\");\n\t\twhile ($row = $messages->fetchAssoc()) {\n\t\t\tShaContext::addFlashMessage($row[\"message_text\"]);\n\t\t}\n\t\t\n\t\tif (ShaContext::getUser()->isAuthentified()){\n\t\t\t// Getting message for logged user\n\t\t\t$messages = self::bddSelect(\"\n\t\t\tSELECT message_id, message_text\n\t\t\tFROM shaoline_flash_message\n\t\t\tWHERE\n\t\t\t\tmessage_only_for_logged = 1 AND\n\t\t\t\tcurrent_date() >= message_start_date AND\n\t\t\t\tcurrent_date() <= message_stop_date AND\n\t\t\t\tmessage_id NOT IN (SELECT message_id FROM shaoline_user_flash_message WHERE user_id = \".ShaContext::getUser()->getValue(\"user_id\").\")\n\t\t\t\");\n\t\t\twhile ($row = $messages->fetchAssoc()) {\n\t\t\t\tShaContext::addFlashMessage($row[\"message_text\"]);\n\t\t\t\t$shaUserFlashMessage = new ShaUserFlashMessage();\n\t\t\t\t$shaUserFlashMessage\n\t\t\t\t\t->setValue(\"user_id\", ShaContext::getUser().getValue(\"user_id\"))\n\t\t\t\t\t->setValue(\"message_id\", $row[\"message_id\"])\n\t\t\t\t\t->save()\n\t\t\t\t;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\n\t}",
"function flash($name = '', $message = '', $class = 'alert alert-success'){\n if(!empty($name)){\n // If msg is passed in and not already set in a session, we want to set that session\n if(!empty($message) && empty($_SESSION[$name])){\n if(!empty($_SESSION[$name])){\n unset($_SESSION[$name]);\n }\n if(!empty($_SESSION[$name.'_class'])){\n unset($_SESSION[$name.'_class']);\n }\n \n $_SESSION[$name] = $message; // Kind of key/value combo implementation\n $_SESSION[$name. '_class'] = $class;\n } elseif(empty($message) && !empty($_SESSION[$name])){\n $class = !empty($_SESSION[$name. '_class']) ? $_SESSION[$name. '_class'] : '';\n echo '<div class=\"'.$class.'\" id=\"msg-flash\">' . $_SESSION[$name] . '</div>';\n unset($_SESSION[$name]);\n unset($_SESSION[$name.'_class']);\n \n }\n }\n}",
"private function moveMessages() {\n \n # $this->messages is empty until it's received the $_SESSION array\n # if we've already called this function, $this->messages won't be empty\n \n if ( !empty( $this->messages ) ) return true;\n \n # don't proceed unless the $_SESSION has something for us\n # if we've already called this function, $_SESSION['flash_messages'] will be null\n \n if ( empty( $_SESSION['flash_messages'] ) ) return false;\n \n if ( is_null( $_SESSION['flash_messages'] ) ) return false;\n \n # assign $_SESSION array to $this->messages\n \n $this->messages = $_SESSION['flash_messages'];\n \n $this->clear();\n \n return true;\n \n }"
] | [
"0.8152677",
"0.78559625",
"0.758362",
"0.7261031",
"0.72169656",
"0.7168068",
"0.6774978",
"0.6615867",
"0.6550152",
"0.6541575",
"0.6532683",
"0.64674085",
"0.6428192",
"0.640928",
"0.6407284",
"0.64026964",
"0.6400016",
"0.639082",
"0.6380153",
"0.63427943",
"0.6342125",
"0.6334319",
"0.6322886",
"0.6310845",
"0.63107276",
"0.6297464",
"0.6254454",
"0.62481606",
"0.62425405",
"0.6240115"
] | 0.81620896 | 0 |
Test set Flash using array access | public function testFlashArrayAccess()
{
$_SESSION['light.flash'] = array('info' => 'foo');
$f = new Flash();
$f['info'] = 'bar';
$f->save();
$this->assertTrue(isset($f['info']));
$this->assertEquals('bar', $f['info']);
unset($f['info']);
$this->assertFalse(isset($f['info']));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function setFlash(string $_name, $val)\n{\n // Set the flash messae.\n $_SESSION['FLASH'][$_name] = $val;\n}",
"public function setFlash()\n {\n }",
"public function testSetFlashForNextRequest()\n {\n $f = new Flash();\n $f->set('foo', 'bar');\n $f->save();\n $this->assertEquals('bar', $_SESSION['light.flash']['foo']);\n }",
"public function testGetSettingArray()\n {\n app('Settings')->add('testing', '123');\n app('Settings')->add('testing2', '1234');\n $getSetting = app('Settings')->get(['testing', 'testing2']);\n\n $getMultpleSetting = $getSetting->where('name', 'testing')->first();\n\n\t\t$showSetting = app('Settings')->show($getSetting, 'testing');\n\n $this->assertTrue($getMultpleSetting->value === '123');\n\t\t$this->assertTrue($showSetting === '123');\n }",
"public function mSet($array) {}",
"public function testSetFlashForCurrentRequest()\n {\n $f = new Flash();\n $f->now('foo', 'bar');\n $this->assertEquals('bar', $f['foo']);\n }",
"public function set_flash($value){\n\t\t$this->set('HarmonySetFlash',$value);\n\t}",
"public function testSetDataArray()\n {\n $same = $this->uut->setData(self::SOME_DATA);\n $this->assertSame($this->uut, $same);\n }",
"public function testLoadsFlashFromPreviousRequest()\n {\n $_SESSION['light.flash'] = array('info' => 'foo');\n $f = new Flash();\n $f->loadMessages();\n $this->assertEquals('foo', $f['info']);\n }",
"function flash($id, $value)\n {\n if (!isset($_SESSION[$this->prefix]['flash'][$id]))\n $_SESSION[$this->prefix]['flash'][$id] = array();\n array_push($_SESSION[$this->prefix]['flash'][$id], $value);\n }",
"public function getFlash()\n {\n }",
"public function testArrayAccessSet(): void\n {\n $validator = new Validator();\n $validator\n ->add('email', 'alpha', ['rule' => 'alphanumeric'])\n ->add('title', 'cool', ['rule' => 'isCool', 'provider' => 'thing']);\n $validator['name'] = $validator->field('title');\n $this->assertSame($validator->field('title'), $validator->field('name'));\n $validator['name'] = ['alpha' => ['rule' => 'alphanumeric']];\n $this->assertEquals($validator->field('email'), $validator->field('email'));\n }",
"public function setFlash($name, $value);",
"private function arrayTest($function)\n {\n $flash = new PhFlash($this->classes);\n $class = $this->getClass($function);\n $implicit = '';\n $html = '';\n $template = '<div%s>%s</div>' . PHP_EOL;\n $message = array(\n 'sample message 1',\n 'sample message 2',\n );\n\n if ($this->notHtml) {\n $flash->setAutomaticHtml(false);\n $html = ' no HTML';\n $expected = $message[0]\n . $message[1];\n } else {\n $expected = sprintf($template, $class, $message[0])\n . sprintf($template, $class, $message[1]);\n }\n\n if ($this->notImplicit) {\n $flash->setImplicitFlush(false);\n $implicit = ' no implicit';\n $actual = $flash->$function($message);\n } else {\n $actual = $this->getObResponse($flash, $function, $message);\n }\n\n $this->assertEquals(\n $expected,\n $actual,\n \"Flash\\\\Direct {$function} (array){$implicit}{$html} does not produce the correct message\"\n );\n }",
"public function setArraySession(string $key, $value) :void;",
"static function set_flashdata( $key, $value ) {\n\t\t$_SESSION['flash_data'][$key] = $value;\n\t}",
"public function testGetParamWithArray()\n {\n $r = array('filters' => array(0=>0, 1=>1));\n $this->request->setParams($r);\n $this->assertSame($r['filters'], $this->request->getParam('filters', true) );\n }",
"function msession_set_array($session, $tuples)\n{\n}",
"public function testGetFieldArray(): void\n {\n // setup\n $arr = [\n 'foo' => 'bar'\n ];\n\n // test body\n /** @var string $result */\n $result = Functional::getField($arr, 'foo');\n\n // assertions\n $this->assertEquals('bar', $result);\n }",
"final public function offsetSet($key,$value):void\n {\n static::throw('arrayAccess','setNotAllowed');\n }",
"public function ageFlashData() {\n $flash = $this->storage->get(self::FLASH_KEY);\n $flash['old'] = $flash['new'];\n $flash['new'] = [];\n $this->storage->set(self::FLASH_KEY, $flash);\n }",
"public function testArrayRead()\n {\n $requestBody = json_encode(array(\"key\"=>\"value\"));\n\n (new Put($requestBody))->globalize();\n global $_PUT;\n\n $this->assertEquals(\"value\", $_PUT->asArray()['key']);\n \n $this->assertEquals(\"value\", (new Put($requestBody))->offsetGet(\"key\"));\n }",
"public function offsetSet( $offset, $value ) {}",
"public function set($array = null) {\n\t\tif (!empty($array)) {\n\t\t\tforeach ($array AS $key=>$value) {\n\t\t\t\t$this->_vars[$key] = $value;\n\t\t\t}\n\t\t}\n\t}",
"public function testBeauficationAndArrayFunctions()\n\t{\n\t\t$bean = R::dispense( 'bean' );\n\t\t$bean->isReallyAwesome = TRUE;\n\t\tasrt( isset( $bean->isReallyAwesome ), TRUE );\n\t\tasrt( isset( $bean->is_really_awesome ), TRUE );\n\t\tunset( $bean->is_really_awesome );\n\t\tasrt( isset( $bean->isReallyAwesome ), FALSE );\n\t\tasrt( isset( $bean->is_really_awesome ), FALSE );\n\t}",
"public function testKeepFlashFromPreviousRequest()\n {\n $_SESSION['light.flash'] = array('info' => 'foo');\n $f = new Flash();\n $f->loadMessages();\n $f->keep();\n $f->save();\n $this->assertEquals('foo', $_SESSION['light.flash']['info']);\n }",
"public function setArray($data);",
"public function addFlash()\n {\n }",
"protected function arrayupdate() {\n \n }",
"public function test_set_many_values($value) {\n $this->assertEquals(1, $this->store->set_many(array(\n 'test' => $value,\n )));\n\n $this->assertEquals($value, $this->store->get('test'));\n }"
] | [
"0.57681656",
"0.56724447",
"0.56088084",
"0.5542801",
"0.549868",
"0.52806497",
"0.5259803",
"0.5186348",
"0.5179776",
"0.5152556",
"0.51511097",
"0.5142757",
"0.51064205",
"0.5073695",
"0.5060283",
"0.5055123",
"0.50454426",
"0.4996248",
"0.49889165",
"0.49840033",
"0.49759376",
"0.49460888",
"0.4925187",
"0.49116585",
"0.4910287",
"0.49052703",
"0.48954144",
"0.48727974",
"0.4867201",
"0.48493776"
] | 0.7263933 | 0 |
Display a allPayment of the resource. | public function allPayment()
{
return view('superadmin.finance.all');
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function show(Payments $payments)\n {\n //\n }",
"public function show(Payment $payment)\n {\n //\n }",
"public function show(Payment $payment)\n {\n //\n }",
"public function show(Payment $payment)\n {\n //\n }",
"public function show(Payment $payment)\n {\n //\n }",
"public function show(Payment $payment)\n {\n //\n }",
"public function show(Payment $payment)\n {\n //\n }",
"public function show(Payment $payment)\n {\n //\n }",
"public function show(Payment $payment)\n {\n //\n }",
"public function index()\n {\n $payments = Payment::all();\n\n return $this->showAll($payments);\n }",
"public function index()\n {\n echo \"<pre>\";\n\n $payments = Paypalpayment::getAll(array('count' => 1, 'start_index' => 0), $this->_apiContext);\n\n dd($payments);\n }",
"public function list(){\n\t\t$data['list'] = ProductPayment::all();\n\t\treturn view(\"payment_list\",$data);\n\t}",
"public function index()\n {\n //\n // $objs = bank_payment::all();\n\n $objs = DB::table('bank_payments')\n ->orderby('id', 'desc')\n ->paginate(15);\n\n $data['objs'] = $objs;\n return view('admin.payment.index', $data);\n }",
"public function index()\n {\n //\n return Payment::with('patient')->get();\n }",
"public function show(Payment $payment)\n\t{\n\t\t//\n\t}",
"public function actionIndex() {\n $dataProvider = new ActiveDataProvider([\n 'query' => Payment::find(),\n ]);\n\n return $this->render('index', [\n 'dataProvider' => $dataProvider,\n ]);\n }",
"public function index()\n {\n $payment = Payment::latest()->paginate(10);\n\n return view('backend.payment.index', compact('payment'));\n }",
"public function index()\n {\n return view('backend.auth.payments.index')->withPayments($this->paymentsRepository\n ->orderBy('id', 'asc')\n ->paginate(25));\n }",
"public function index()\n {\n return EquityPaymentResource::collection(EquityPayment::paginate());\n }",
"public function list_paypalPayments()\n {\n $payments = PaypalPayment::orderBy('id', 'asc')->get();\n return view('Admin.Payments.paypal-payments', compact('payments'));\n }",
"public function index()\n {\n $payments = Payment::latest()->get();\n return view('admin.payment.index',compact('payments'));\n }",
"public function index()\n {\n //\n $payments = PaymentType::all();\n return view('admin.payments.index',compact('payments'));\n }",
"public function show()\n\t{\n\t\n\t\t$data['payments']=$this->Payment_model->get_payment();\n\t\t\t\t\n\t\tif(($data['payments'])==FALSE){\n\t\t\tshow_404();\n\t\t}\n\t\tforeach ($data['payments'] as $row) {\n\t\t $r= $row;\n\t\t}\n\t\t$this->output->set_status_header(200)\n\t\t->set_content_type('application/json', 'utf-8')\n \t->set_output(json_encode($r));\n\t}",
"public function index()\n {\n $payment = Payment::with('doctors', 'patients')->get();\n return view('admin.payment.indexPayment', compact('payment'));\n }",
"public function index()\n {\n $payments = Payment::all();\n return view('admin.payments.index' , compact('payments'));\n }",
"public function index()\n {\n $resources = PaymentType::all();\n\n return $this->success(null, $resources);\n }",
"public function actionPaymentmethodlist()\n {\n return $this->render('paymentmethodlist', [\n 'dataProvider' => $this->dataProviderPaymentMethod,\n 'languages'=>$this->dictionary,\n ]); \n }",
"public function index() {\n $pageSizes = explode(\",\", $this->configItems['rdn.admin.paginator-sizes']);\n \n // Load paginator default value\n $pageDefault = $this->configItems['rdn.admin.paginator-default.value'];\n \n // Add breadcrumbs\n $this->addBreadcrumb('Pagos', route('management/payments'));\n \n // Set Title and subtitle\n $this->title = 'Pagos';\n \n // Find all audits\n $payments = PaymentModel::with('user')->get();\n \n // Display view\n return $this->view('pages.admin.management.payments.index')\n ->with('payments', $payments)\n ->with('pageDefault', $pageDefault)\n ->with('pageSizes', $pageSizes);\n ;\n }",
"public function index()\n {\n $payreq = PaymentRequest::get();\n if($payreq == null){\n $payreq = false;\n }\n return view('admin.payment.index', compact('payreq'));\n }",
"public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $entities = $em->getRepository('PayPaymentBundle:Payment\\Payment')->findAll();\n\n return array(\n 'entities' => $entities,\n );\n }"
] | [
"0.7245364",
"0.7144711",
"0.7144711",
"0.7144711",
"0.7144711",
"0.7144711",
"0.7144711",
"0.7144711",
"0.7144711",
"0.71144795",
"0.7097055",
"0.69841486",
"0.6961703",
"0.6925126",
"0.6924704",
"0.6889228",
"0.68598044",
"0.68510723",
"0.6844925",
"0.67726994",
"0.67600286",
"0.67577904",
"0.67419404",
"0.6725073",
"0.6688981",
"0.66869307",
"0.6674867",
"0.6674699",
"0.6666853",
"0.66256"
] | 0.7787912 | 0 |
Display a paymentRequest of the resource. | public function paymentRequest()
{
return view('superadmin.finance.request');
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function show(Payment $payment)\n {\n //\n }",
"public function show(Payment $payment)\n {\n //\n }",
"public function show(Payment $payment)\n {\n //\n }",
"public function show(Payment $payment)\n {\n //\n }",
"public function show(Payment $payment)\n {\n //\n }",
"public function show(Payment $payment)\n {\n //\n }",
"public function show(Payment $payment)\n {\n //\n }",
"public function show(Payment $payment)\n {\n //\n }",
"public function show(Payment $payment)\n\t{\n\t\t//\n\t}",
"public function show()\n {\n if($_SERVER['REQUEST_METHOD'] == 'GET') {\n\n $token = $_GET['paymentId'];\n\n $payment = Paypalpayment::getById($token, $this->_apiContext);\n\n dd($payment);\n\n }\n\n }",
"public function show(payment_account $payment_account)\n {\n //\n }",
"public function show(PaymentItem $paymentItem)\n {\n //\n }",
"public function show()\n {\n return view('public.payment');\n }",
"public function showForm(Request $request)\n {\n return view('payments.paypal');\n }",
"public function show(Payments $payments)\n {\n //\n }",
"public function show( $payment)\n {\n //\n return view('payments.show',compact('payment'));\n }",
"public function show(StudentPayment $studentPayment)\n {\n //\n }",
"public function show(Payment $payment)\n {\n return $this->showOne($payment);\n }",
"public function show(Request $request) {\n if ($this->paymentPolicy->view($this->userModel->getUserAuth())) {\n $payments = $this->paymentModel->getPayments($request->expenses_id)->get();\n $status = $this->statusModel->getAll();\n\n foreach ($payments as $p) {\n foreach ($status as $s) {\n if ($p->status_id === $s->status_id) {\n $p->status = $s->name;\n }\n }\n }\n session()->put('expense', $request->expenses_id);\n\n $page = $request->get('page', 1);\n $perPage = 4;\n\n return view('admin.payment', [\n 'payment' => $payments->forPage($page, $perPage),\n 'pagination' => \\BootstrapComponents::pagination($payments, $page, $perPage, '', ['arrows' => true]),\n ]);\n }\n session()->flash('message', 'Nie posiadasz uprawnień, aby wyświetlić listę płatności!');\n return view('admin.payment', [\n 'pagination' => \\BootstrapComponents::pagination(null, 0, 4, '', ['arrows' => true]),\n ]);\n }",
"public function show(PaymentMethod $paymentMethod)\n {\n //\n }",
"public function show(PaymentStatus $paymentStatus)\n {\n //\n }",
"public function payment()\n {\n return view(\"public.payment\");\n }",
"public function executeShowReceipt (sfWebRequest $request) {\r\n changeLanguageCulture::languageCulture($request, $this);\r\n $transaction_id = $request->getParameter('tid');\r\n $transaction = CompanyTransactionPeer::retrieveByPK($transaction_id);\r\n\r\n $this->renderPartial('company/refill_receipt', array(\r\n 'company' => CompanyPeer::retrieveByPK($transaction->getCompanyId()),\r\n 'transaction' => $transaction,\r\n 'vat' => sfConfig::get('app_vat_percentage'),\r\n ));\r\n\r\n return sfView::NONE;\r\n }",
"public function getPayment()\n\t{\n\t\treturn View::make('reservation.payment');\n\t}",
"public function new(){\n\t\treturn view(\"payment\");\n\t}",
"public function show(PurchaseRequest $purchaseRequest)\n {\n //\n }",
"public function paymentAction(){\n \t$flashMessenger = new FlashMessenger();\n \n \t$app = array (\n \t\t\t'name' => 'documentation',\n \t 'title' => ' Authorize Net Widget Example'\n \t);\n \n \t$cart = array (\n \t\t\t'item' => 'Application Fee',\n \t\t\t'quantity' => '1',\n \t\t\t'total' => '125',\n \t\t\t'description' => 'Demonstration for developers',\n \t 'invoice' => 'Y3A9SS4I1N4$E'\n \t\t\t \n \t);\n \t$vm = new ViewModel();\n \t$vm->app = $app;\n \t$vm->cart = $cart;\n \t$vm->messages = ($flashMessenger->hasMessages()) ? $flashMessenger->getMessages() : NULL;\n \treturn $vm;\n }",
"public function showAction(AccountPayment $accountPayment)\n {\n $editForm = $this->createEditForm($accountPayment);\n $deleteForm = $this->createDeleteForm($accountPayment);\n\n return $this->render('UniAdminBundle:AccountPayment:show.html.twig', array(\n 'accountPayment' => $accountPayment,\n 'editForm' => $editForm->createView(),\n 'deleteForm' => $deleteForm->createView(),\n ));\n }",
"public function show(User $user, UserPayment $userPayment): View|Factory|Application|RedirectResponse\n {\n // Make sure the logged in $user is the consultation \"owner\"\n if (Auth::id() === $userPayment->user_id) {\n return view('my-space::user-payments.show', ['userPayment' => $userPayment]);\n }\n Flash::error('You may not view someone else\\'s payment');\n return redirect()->route('my-space.dashboard');\n }",
"public function executeShowReceipt(sfWebRequest $request) {\r\n changeLanguageCulture::languageCulture($request, $this);\r\n $transaction_id = $request->getParameter('tid');\r\n $transaction = CompanyTransactionPeer::retrieveByPK($transaction_id);\r\n\r\n $this->renderPartial('company/refill_receipt', array(\r\n 'company' => CompanyPeer::retrieveByPK($transaction->getCompanyId()),\r\n 'transaction' => $transaction,\r\n 'vat' => 0,\r\n ));\r\n\r\n return sfView::NONE;\r\n }"
] | [
"0.69099313",
"0.69099313",
"0.69099313",
"0.69099313",
"0.69099313",
"0.69099313",
"0.69099313",
"0.69099313",
"0.6843653",
"0.6492915",
"0.63983136",
"0.6380443",
"0.6242986",
"0.62105757",
"0.6194038",
"0.61857617",
"0.61592007",
"0.613654",
"0.6059003",
"0.6056322",
"0.60497355",
"0.60023165",
"0.59663826",
"0.59383875",
"0.59184724",
"0.590574",
"0.58983076",
"0.58639926",
"0.5856107",
"0.58358085"
] | 0.69415796 | 0 |
Check if plugin has any paid plans. | function has_paid_plan( $plans ) {
if ( ! is_array( $plans ) || 0 === count( $plans ) ) {
return false;
}
/**
* @var FS_Plugin_Plan[] $plans
*/
for ( $i = 0, $len = count( $plans ); $i < $len; $i ++ ) {
if ( ! $plans[ $i ]->is_free() ) {
return true;
}
}
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected function has_paid_plan() {\n\t\t\treturn isset( $this->_paid_plan );\n\t\t}",
"abstract protected function local_has_paid_plan();",
"public function hasPayments();",
"protected function has_free_plan() {\n\t\t\treturn isset( $this->_free_plan );\n\t\t}",
"private static function _canManagePlans()\n {\n $license = new \\pm_License();\n $properties = $license->getProperties();\n\n $hasHostingPlans = $properties['can-manage-customers'];\n $hasResellerPlans = $properties['can-manage-resellers'];\n\n if (!$hasHostingPlans || !$hasResellerPlans) {\n return false;\n } else {\n return true;\n }\n }",
"public function canRenewPlan()\n {\n return (\n config('cashier.renew_free_plan') == 'yes' ||\n (config('cashier.renew_free_plan') == 'no' && $this->plan->getBillableAmount() > 0)\n );\n }",
"function has_free_plan( $plans ) {\n\t\t\tif ( ! is_array( $plans ) || 0 === count( $plans ) ) {\n\t\t\t\treturn true;\n\t\t\t}\n\n\t\t\t/**\n\t\t\t * @var FS_Plugin_Plan[] $plans\n\t\t\t */\n\t\t\tfor ( $i = 0, $len = count( $plans ); $i < $len; $i ++ ) {\n\t\t\t\tif ( $plans[ $i ]->is_free() ) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn false;\n\t\t}",
"function cp_payments_is_enabled() {\n\tglobal $cp_options;\n\n\tif ( ! current_theme_supports( 'app-payments' ) || ! current_theme_supports( 'app-price-format' ) )\n\t\treturn false;\n\n\tif ( ! $cp_options->charge_ads )\n\t\treturn false;\n\n\tif ( $cp_options->price_scheme == 'featured' && ! is_numeric( $cp_options->sys_feat_price ) )\n\t\treturn false;\n\n\treturn true;\n}",
"function have_payment_plans( $category = array() ) {\r\n return \\query\\payments::have_plans( $category );\r\n}",
"public function unpaid()\n {\n return in_array($this->payment_status, [self::PENDING]);\n }",
"public function is_available() {\n\t\t\n if( is_admin() ){ return false; }\n\n $enable = false;\n \n if ( ! empty( $this->enable_for_methods ) ) {\n \n $enable = $this->is_available_for_shipping_method();\n \n }else{\n\n $enable = true;\n \n }\n \n \n //When customer want to pay from account\n if ( ! empty( $_GET['pay_for_order'] ) ) {\n \n if ( ! empty( $wp->query_vars['order-pay'] ) ) {\n $order_id = absint( $wp->query_vars['order-pay'] );\n $p_method = get_post_meta( $order_id, '_payment_method',true);\n if(!empty($p_method) && $p_method == 'gopay' ){\n return parent::is_available();\n }\n }\n \n }\n\n\n \n //Check WooCommerce Subscriptions is active and control order\n $plugins = get_option('active_plugins');\n if(in_array('woocommerce-subscriptions/woocommerce-subscriptions.php',$plugins)){\n if ( ! empty( $wp->query_vars['order-pay'] ) ) {\n $order_id = absint( $wp->query_vars['order-pay'] );\n if ( WC_Subscriptions_Order::order_contains_subscription( $order_id ) ) {\n return parent::is_available();\n } \n } \n }\n\n \n\t\t\t\n if( $enable == false ){\n $enable = $this->is_downloadable_product_in_cart();\n }\t\n if( $enable == false ){\n $enable = $this->is_virtual_product_in_cart();\n }\n \n \n \n \n if( $enable == false ){\n return false;\n }else{\n return parent::is_available();\n }\n \n }",
"public static function hasPayments() {\n \n $c = new Criteria();\n \n $c->add(ListingTimePeer::USER_ID, sfContext::getInstance()->getUser()->getGuardUser()->getId());\n $c->add(ListingTimePeer::PAYMENT_STATUS, 'Paid');\n \n $count = ListingTimePeer::doCount($c);\n \n if ($count > 0) {\n \n return true;\n \n }\n \n return false;\n }",
"public function hasPayOwners()\n {\n return $this->accounts()->where('paid', false)->exists() ? false : true;\n }",
"public function isPaid()\n {\n \n }",
"function isPaid()\n\t{\n\t\tif( $this->status === POT_CLOSED )\n\t\t\treturn true;\n\t\tif(!count($this->contribs))\n\t\t\treturn false;\n\t\t\n\t\t$tmp = null;\n\t\tforeach($this->contribs as $seatnum=>$contrib)\n\t\t{\n\t\t\t$sum = array_sum($contrib);\n\t\t\tif(is_null($tmp))\n\t\t\t\t$tmp = $sum;\n\t\t\tif($sum != $tmp)\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\treturn true;\n\t}",
"public function isOrderPaid();",
"private function _is_purchased($plan,$id,$type)\n\t{\n\t\t// check with platform to see if this plan has already been purchased for this user\n\t\treturn TRUE;\t\n\t}",
"public function isPaid()\n {\n return $this->status == 'success';\n }",
"public function hasPayments(): bool\n {\n return 0 < $this->payments->count();\n }",
"function _jr_no_addons_available( $plan, $addons = '' ) {\n\n\t$addons = $addons ? $addons: jr_get_addons();\n\n\t$active_addons = array();\n\t$plans_count = $empty_count = $disabled_count = 0;\n\tforeach ( $addons as $addon ) {\n\t\tif ( empty($plan[$addon][0])) {\n\t\t\t$empty_count++;\n\t\t}\n\t\tif ( _jr_addon_disabled( $addon ) || ! _jr_addon_valid( $addon ) ) {\n\t\t\t$disabled_count++;\n\t\t}\n\t\tif ( ! empty($plan[$addon][0]) || ! _jr_addon_disabled( $addon ) ) {\n\t\t\t$active_addons[] = $addon;\n\t\t}\n\t\t$plans_count++;\n\t}\n\n\tif ( $disabled_count == $plans_count ) {\n\t\t$available = false;\n\t} elseif ( $empty_count == $plans_count ) {\n\t\tif( $disabled_count == $plans_count ) {\n\t\t\t$available = false;\n\t\t} else {\n\t\t\t$available = true;\n\t\t}\n\t} else {\n\t\t$available = true;\n\t}\n\n\treturn apply_filters( 'jr_no_addons_available', $available, $plan );\n}",
"static public function maybe_renew_subscripton_plan( $post_id ) {\n $form = self::get_form_by_post( $post_id );\n $post = get_post( $post_id );\n \n //** STEP 1. Determine if the current property is sponsored and renewal of Subscription Plan is enabled */\n \n //** Be sure that it's sponsored form */\n $sponsored = !empty( $form[ 'feps_credits' ] ) && $form[ 'feps_credits' ] == 'true' ? true : false;\n if( !$sponsored ) {\n return false;\n }\n \n //** Be sure that renewal of subscription plan is enabled */\n $enabled = get_post_meta( $post->ID, FEPS_RENEW_PLAN, true );\n if( $enabled === 'true' ) {\n return false;\n }\n \n //** STEP 2. Determine if subscription plan for renewal still exists. */\n \n //** Get Subscription plan for renewal */\n $plan = get_post_meta( $post->ID, FEPS_META_PLAN, true );\n if( isset( $plan[ 'slug' ] ) && isset( $form[ 'subscription_plans' ][ $plan[ 'slug' ] ] ) ) {\n $_plan = $plan[ 'slug' ];\n $_credits = $form[ 'subscription_plans' ][ $plan[ 'slug' ] ][ 'price' ];\n } else {\n foreach( $form[ 'subscription_plans' ] as $k => $d ) {\n if( $d[ 'name' ] == $plan[ 'name' ] ) {\n $_plan = $k;\n $_credits = $form[ 'subscription_plans' ][ $k ][ 'price' ];\n }\n }\n }\n //** Property's subscription plan doesn't exist anymore. Break. */\n if( !isset( $_plan ) ) {\n return false;\n }\n \n //** STEP 3. Determine if user has enough credits on their balance to renew Subscription plan */\n $user = get_userdata( $post->post_author );\n $credits = get_the_author_meta( FEPS_USER_CREDITS, $user->ID );\n if( $credits < $_credits ) {\n return false;\n }\n \n //** STEP 4. Renew Subscription plan and Expired Time */\n $credits -= $_credits;\n update_user_meta( $user->ID, FEPS_USER_CREDITS, $credits );\n //** Update Subscription plan data */\n self::set_subscription_plan( $post->ID, $_plan );\n //** Update expired time */\n self::maybe_set_expired_time( $post->ID );\n \n //** Send notification to user */\n $subject = __( 'Renewal of Subscription Plan', ud_get_wpp_feps()->domain );\n $message = sprintf(__('Hello [display_name]%1$s%1$sPublish time for Your %2$s \"[property_title]\" has expired.%1$s%1$sSubscription Plan has been renewed and [credits] credits were withdrawn from your balance.%1$s%1$sClick this link to view all your [status] %3$s:%1$s[url]', ud_get_wpp_feps()->domain), PHP_EOL, WPP_F::property_label( 'singular' ), WPP_F::property_label( 'plural' ) );\n WPP_Mail::feps_post_status_updated( $post->ID, array_filter( array(\n 'subject' => $subject,\n 'message' => $message,\n 'crm_log_message' => '',\n 'data' => array_filter( array(\n 'url' => WPP_F::base_url( FEPS_VIEW_PAGE, \"status=publish\" ),\n 'status' => @$wp_post_statuses['publish']->label,\n 'credits' => $_credits,\n ) ),\n ) ) );\n \n return true;\n }",
"function has_trial_plan( $plans ) {\n\t\t\tif ( ! is_array( $plans ) || 0 === count( $plans ) ) {\n\t\t\t\treturn true;\n\t\t\t}\n\n\t\t\t/**\n\t\t\t * @var FS_Plugin_Plan[] $plans\n\t\t\t */\n\t\t\tfor ( $i = 0, $len = count( $plans ); $i < $len; $i ++ ) {\n\t\t\t\tif ( $plans[ $i ]->has_trial() ) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn false;\n\t\t}",
"public function install()\n {\n //if not, create them (may need to create ONLY a classifieds or auctions plan if coming from non-GCA)\n $db = DataAccess::getInstance();\n\n $sql = \"SELECT `price_plan_id` FROM \" . geoTables::price_plans_table . \" WHERE `type_of_billing` = '2' AND `applies_to` = ?\";\n $classResult = $db->GetOne($sql, array(1));\n $aucResult = $db->GetOne($sql, array(2));\n\n $sql = \"INSERT INTO \" . geoTables::price_plans_table . \" (`name`,`description`,`type_of_billing`,`max_ads_allowed`,`applies_to`) VALUES (?,?,?,?,?)\";\n $addPlan = $db->Prepare($sql);\n if (!$classResult) {\n //no classified subscription price plan exists -- make one\n $db->Execute($addPlan, array('Default Classifieds Subscription Plan', 'This plan was created automatically by the Subscription Pricing addon.', '2', '1000', '1'));\n geoAdmin::m(\"No previous Subscription-based Classifieds Price Plan found -- creating one.\", geoAdmin::NOTICE);\n }\n\n if (!$aucResult) {\n //no auction subscription price plan exists -- make one\n $db->Execute($addPlan, array('Default Auctions Subscription Plan', 'This plan was created automatically by the Subscription Pricing addon.', '2', '1000', '2'));\n geoAdmin::m(\"No previous Subscription-based Auctions Price Plan found -- creating one.\", geoAdmin::NOTICE);\n }\n\n if (!$classResult || !$aucResult) {\n geoAdmin::m(\"One or more Subscription Price Plans have been automatically created for you. You still need to <a href='index.php?page=pricing_price_plans&mc=pricing'>configure</a> them and then attach them to a User Group for use.\", geoAdmin::NOTICE);\n }\n\n //add the cron to expire subscriptions.\n $cron_add = geoCron::getInstance()->set('subscription_pricing:expire_subscriptions', 'addon', 3600);\n if (!$cron_add) {\n geoAdmin::m('Cron Install Failed.', geoAdmin::ERROR);\n return false;\n }\n\n return true;\n }",
"public function is_available() {\n\t\n\t\tif ( $this->enabled != 'yes' ) {\n\t\t\treturn false;\n\t\t}\n\n\t\tif ( ! in_array( Jigoshop_Base::get_options()->get_option( 'jigoshop_currency' ), $this->allowed_currency ) ) {\n\t\t\treturn false;\n\t\t}\n\n\t\tif ( ! in_array( $this->shop_base_country, $this->merchant_countries )) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\treturn true;\n\t}",
"public function needsCharge()\n {\n if ($this->getData('listOrderId')->first() || $this->paid) {\n $expiredDate = new Carbon((is_null($this->date_paid) ? date('Y-m-d') : $this->date_paid));\n $now = Carbon::now();\n if ($expiredDate->diffInYears($now) < 1) {\n return false;\n }\n }\n return true;\n }",
"public function isPlanned()\n {\n return $this->status == self::STATUS_PLANNED;\n }",
"abstract protected function get_local_paid_plan_pricing_count();",
"public function getPaid(): bool\n {\n return $this->paid;\n }",
"function cp_have_pending_payment( $post_id ) {\n\n\tif ( ! cp_payments_is_enabled() )\n\t\treturn false;\n\n\t$order = appthemes_get_order_connected_to( $post_id );\n\tif ( ! $order || ! in_array( $order->get_status(), array( APPTHEMES_ORDER_PENDING, APPTHEMES_ORDER_FAILED ) ) )\n\t\treturn false;\n\n\treturn true;\n}",
"public static function hasProjectBillingFeature()\n {\n return Features::hasProjectBillingFeature();\n }"
] | [
"0.76066506",
"0.75038713",
"0.69843775",
"0.6804844",
"0.67439854",
"0.66607857",
"0.66554517",
"0.6627973",
"0.65480125",
"0.64772576",
"0.64424694",
"0.64423865",
"0.6384441",
"0.63567454",
"0.6344841",
"0.63283825",
"0.6326892",
"0.63247687",
"0.6283088",
"0.627293",
"0.6243156",
"0.62337315",
"0.6219824",
"0.618024",
"0.61781114",
"0.61714935",
"0.61437833",
"0.6122587",
"0.61090577",
"0.60894376"
] | 0.7660558 | 0 |
Find all plans that have trial. | function get_trial_plans( $plans ) {
$trial_plans = array();
if ( is_array( $plans ) && 0 < count( $plans ) ) {
/**
* @var FS_Plugin_Plan[] $plans
*/
for ( $i = 0, $len = count( $plans ); $i < $len; $i ++ ) {
if ( $plans[ $i ]->has_trial() ) {
$trial_plans[] = $plans[ $i ];
}
}
}
return $trial_plans;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static function plans(): Collection\n {\n return collect(static::$plans);\n }",
"public function findPlans() {\n \t\treturn $this->find('all', array(\n \t\t\t'order' => 'TrainingPlan.id ASC',\n \t\t\t'contain' => array('ExercisesTrainingPlan' => 'Exercise')\n \t\t));\n \t}",
"public function getPlans(): Collection\n {\n return $this->plans;\n }",
"public function getAllPlan(): array;",
"public function plans()\n {\n return $this->morphedByMany('App\\Models\\Plan', 'cartable');\n }",
"public function findActivePlan(): array;",
"public function collectSierraTecnologiaPlans()\n {\n return $this->plan->all();\n }",
"public function allPlans()\n {\n return $this->action->all();\n }",
"public function getPlans()\n {\n $FinanceApi = new FinanceApi();\n $plans = $FinanceApi->getPlans();\n\n return $plans;\n }",
"function has_trial_plan( $plans ) {\n\t\t\tif ( ! is_array( $plans ) || 0 === count( $plans ) ) {\n\t\t\t\treturn true;\n\t\t\t}\n\n\t\t\t/**\n\t\t\t * @var FS_Plugin_Plan[] $plans\n\t\t\t */\n\t\t\tfor ( $i = 0, $len = count( $plans ); $i < $len; $i ++ ) {\n\t\t\t\tif ( $plans[ $i ]->has_trial() ) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn false;\n\t\t}",
"public function getPlans(){\n \n $response = array();\n \n //Select record\n $this->db->select('*');\n $query = $this->db->get('plan');\n $response = $query->result_array();\n \n return $response;\n \n }",
"public function retrieveAllPlans(array $attributes = array())\n {\n return $this->createRequest(\"/plans\");\n }",
"public function index()\n {\n //\n $plans = Plan::all();\n\n return $plans;\n }",
"public function query(StripeSubscriptionsPlans $plan)\n {\n /* only for Package */\n /*$users = DB::Table('users')->select('users.id as id', 'users.first_name', 'users.last_name','users.email','users.country_code','users.mobile_number', 'users.status','companies.name as company_name','users.created_at',DB::raw('CONCAT(\"+\",users.country_code,\" \",users.mobile_number) AS mobile'))\n ->leftJoin('companies', function($join) {\n $join->on('users.company_id', '=', 'companies.id');\n })->where('user_type','Driver')->groupBy('id');*/\n\n $plans = $plan->get();\n\n return $plans;\n }",
"private function _getSubscriptionPlans() {\n $subscriptionDetailsModel = new SubscriptionDetailsModel();\n $this->_subscriptionPlans = $subscriptionDetailsModel->getSubscriptionPlans();\n }",
"public function list() {\n return new CollectionRequestBuilder(\n $this->identity,\n $this,\n 'licensing_plans',\n function ($project)\n {\n return new LicensingPlan((array) $project);\n },\n new LicensingPlanCollection()\n );\n }",
"private function get_all() {\n $data = [];\n\n foreach(['free', 'custom'] as $plan) {\n $data[] = [\n 'id' => settings()->{'plan_' . $plan}->plan_id,\n 'name' => settings()->{'plan_' . $plan}->name,\n 'description' => settings()->{'plan_' . $plan}->description,\n 'price' => settings()->{'plan_' . $plan}->price,\n 'color' => settings()->{'plan_' . $plan}->color,\n 'status' => settings()->{'plan_' . $plan}->status,\n 'settings' => settings()->{'plan_' . $plan}->settings,\n ];\n }\n\n $data_result = database()->query(\"SELECT * FROM `plans`\");\n while($row = $data_result->fetch_object()) {\n\n /* Prepare the data */\n $row = [\n 'id' => (int) $row->plan_id,\n\n 'name' => $row->name,\n 'description' => $row->description,\n 'monthly_price' => (float) $row->monthly_price,\n 'annual_price' => (float) $row->annual_price,\n 'lifetime_price' => (float) $row->lifetime_price,\n 'trial_days' => (int) $row->trial_days,\n 'settings' => json_decode($row->settings),\n 'taxes_ids' => json_decode($row->taxes_ids),\n 'color' => $row->color,\n 'status' => (int) $row->status,\n 'date' => $row->date,\n ];\n\n $data[] = $row;\n }\n\n Response::jsonapi_success($data);\n }",
"public static function yearlyPlans(): Collection\n {\n return static::plans()->where('interval', 'yearly');\n }",
"public function test_subscription_trial(){\n Carbon::setTestNow(Carbon::create(2020, 1, 1, 12, 0, 0));\n\n $planType = $this->createPlanType('user_membership');\n $plan = $this->createPlan('plan', $planType);\n $period = Subscriptions::period($this->faker->sentence(3), 'period', $plan)\n ->setLimitedNonRecurringPeriod(12, PlanPeriod::UNIT_MONTH)\n ->setTrialDays(10)\n ->create();\n\n $user = $this->createUser();\n $user->subscribeTo($period);\n $currentSubscription = $user->currentSubscription($planType);\n\n $this->assertEquals($user->subscriptions()->byType($planType)->count(), 1);\n $this->assertNotNull($currentSubscription);\n $this->assertTrue($currentSubscription->isOnTrial());\n $this->assertEquals($currentSubscription->remainingTrialDays(), 9);\n\n Carbon::setTestNow(Carbon::create(2020, 1, 11, 12, 0, 1));\n\n $this->assertFalse($currentSubscription->isOnTrial());\n $this->assertEquals($currentSubscription->remainingTrialDays(), 0);\n\n Carbon::setTestNow(); \n }",
"public function getBillingPlans()\n {\n # GET /billing_plans\n }",
"public function test_plan_period_builder_trial_days(){\n $planType = $this->createPlanType();\n $plan = $this->createPlan('recurrent_plan', $planType);\n\n //Negative trial days\n $planNegativeTrialPeriod = Subscriptions::period($this->faker->sentence(3), 'period', $plan)\n ->setTrialDays(-5)\n ->create();\n\n $this->assertEquals($planNegativeTrialPeriod->trial_days, 0);\n $this->assertFalse($planNegativeTrialPeriod->hasTrial());\n\n //Correct trial days\n $planCorrectTrailPeriod = Subscriptions::period($this->faker->sentence(3), 'period', $plan)\n ->setLimitedNonRecurringPeriod(12, PlanPeriod::UNIT_MONTH)\n ->setTrialDays(5)\n ->create();\n\n $this->assertEquals($planCorrectTrailPeriod->trial_days, 5);\n $this->assertTrue($planCorrectTrailPeriod->hasTrial());\n }",
"function getActivePlansForPricingPage()\r\n {\r\n $this->db->select(\"id, name, is_featured, tagline,price, outlets, employees, clients, treatments, products, stations, suppliers, emails_per_month AS 'Email Campaigns', \r\n texts_per_month AS 'Included Texts', texts_cost_each AS 'Extra Text Cost', has_stock_control AS '*Stock Control', has_reports AS '*Reports', \r\n has_pos AS '*POS', has_online_booking AS '*Online Booking', has_rewards AS '*Rewards Scheme', has_gift_cards AS '*Gift Cards'\");\r\n $this->db->where('is_active', 1);\r\n $this->db->where('is_visible', 1);\r\n $this->db->order_by('price', 'ASC');\r\n $q = $this->db->get('plans');\r\n return $q->result_array();\r\n }",
"public function index()\n {\n if(!Auth::user()->can('Visualizar planos')){\n return redirect()->back();\n }\n $peer_page = 15;\n $search = Input::get('search');\n $plans = Plan::with('subscriptions')->withCount(['subscriptions' => function (Builder $query) {\n $query->where('starts_on', '<', Carbon::now()->toDateTimeString());\n $query->where('expires_on', '>', Carbon::now());\n }]);\n if ($search <> \"\") {\n $plans->where(function ($q) use ($search) {\n $q->where('name', \"like\", \"%{$search}%\");\n });\n }\n $plans = $plans->paginate($peer_page);\n if ($search) {\n $plans->appends(['search' => $search]);\n }\n\n return view('dashboard.plan.list', compact('plans'));\n }",
"public function getAllPlans($options) {\n return $this->api->plan->all($options);\n }",
"public static function monthlyPlans(): Collection\n {\n return static::plans()->where('interval', 'monthly');\n }",
"public function index()\n {\n return AdminPlanResource::collection(Plan::all());\n }",
"public function plans()\n\t{\n\t\t$plans=\\Stripe\\Plan::all();\n\t\treturn view('admin.plans.index',compact('plans'));\n\t}",
"public function test_plans_visibility(){\n $planType = $this->createPlanType();\n\n $isVisible = true;\n $visiblePlan = $this->createPlan('visible_plan', $planType, false, [], $isVisible);\n\n $isVisible = false;\n $visiblePlan = $this->createPlan('hidden_plan', $planType, false, [], $isVisible);\n\n $this->assertEquals($planType->plans()->visible()->count(), 1);\n $this->assertEquals($planType->plans()->withHiddens()->hidden()->count(), 1);\n $this->assertEquals($planType->plans()->withHiddens()->count(), 2);\n }",
"public function test_create_paid_access_plan() {\n\t\twp_set_current_user( $this->user_allowed );\n\n\t\t$course = $this->factory->course->create_and_get();\n\t\t$sample_args = array_merge(\n\t\t\t$this->sample_access_plan_args,\n\t\t\tarray(\n\t\t\t\t'post_id' => $course->get( 'id' ),\n\t\t\t\t'price' => 10,\n\t\t\t)\n\t\t);\n\n\t\t$response = $this->perform_mock_request(\n\t\t\t'POST',\n\t\t\t$this->route,\n\t\t\t$sample_args\n\t\t);\n\n\t\t// Check that the access plan has the following properties values:\n\t\t$paid_props = array(\n\t\t\t'is_free' => 'no',\n\t\t);\n\n\t\t$ap = new LLMS_Access_Plan( $response->get_data()['id'] );\n\t\tforeach ( $paid_props as $prop => $value ) {\n\t\t\t$this->assertEquals( $value, $ap->get( $prop ), $prop );\n\t\t}\n\n\t\t// Now test that if the frequency is 0 (default) and we enable the trial, the trial is still disabled.\n\t\t$sample_args['trial_enabled'] = true;\n\n\t\t$response = $this->perform_mock_request(\n\t\t\t'POST',\n\t\t\t$this->route,\n\t\t\t$sample_args\n\t\t);\n\n\t\t// Check that the access plan has the following properties values:\n\t\t$paid_props = array(\n\t\t\t'is_free' => 'no',\n\t\t\t'trial_offer' => 'no',\n\t\t\t'frequency' => 0,\n\t\t);\n\n\t\t$ap = new LLMS_Access_Plan( $response->get_data()['id'] );\n\t\tforeach ( $paid_props as $prop => $value ) {\n\t\t\t$this->assertEquals( $value, $ap->get( $prop ), $prop );\n\t\t}\n\n\t\t// Test that a frequency > 0 unlocks trials.\n\t\t$sample_args['frequency'] = 1;\n\t\t$response = $this->perform_mock_request(\n\t\t\t'POST',\n\t\t\t$this->route,\n\t\t\t$sample_args\n\t\t);\n\t\t$this->assertTrue(\n\t\t\tllms_parse_bool(\n\t\t\t\t( new LLMS_Access_Plan( $response->get_data()['id'] ) )->get( 'trial_offer' )\n\t\t\t)\n\t\t);\n\t}",
"public function testWorkflow_Trial_Active_Prorated_Alt()\n {\n Setting::set('is_trial_inclusive', false);\n\n $plan = $this->setUpPlan();\n $plan->plan_monthly_behavior = 'monthly_prorate';\n $plan->plan_month_day = Carbon::now()->addDays(10)->day;\n $plan->trial_days = 14;\n $plan->save();\n\n list($user, $plan, $membership, $service, $invoice) = $payload = $this->generateMembership($plan);\n $this->assertNotNull($plan, $membership, $service, $service->status, $invoice, $invoice->status);\n\n $this->assertEquals(Status::STATUS_TRIAL, $service->status->code);\n $this->assertEquals(Carbon::now(), $service->current_period_start, '', 5);\n $this->assertEquals(Carbon::now()->addDays(14), $service->current_period_end, '', 5);\n $this->assertEquals(1, $service->is_active);\n\n $now = $this->timeTravelDay(5);\n $this->workerProcess();\n\n // Pay the first invoice, activate membership\n $invoice->submitManualPayment('Testing');\n\n list($user, $plan, $membership, $service, $invoice) = $payload = $this->reloadMembership($payload);\n\n $expectedDate = clone $now;\n $expectedPrice = $plan->adjustPrice(100, $expectedDate->addDays(9));\n\n $this->assertEquals(1, $service->invoices()->count());\n $this->assertEquals($expectedPrice, $invoice->total);\n $this->assertEquals($now->addMonth()->addDays(5), $service->service_period_end, '', 5);\n }"
] | [
"0.67779994",
"0.66522866",
"0.65950686",
"0.6589642",
"0.6472536",
"0.6442719",
"0.6405042",
"0.64039505",
"0.6379233",
"0.63298696",
"0.63051933",
"0.62683266",
"0.62453806",
"0.615786",
"0.60734445",
"0.5988479",
"0.59614855",
"0.59530574",
"0.5902595",
"0.5836147",
"0.58355474",
"0.5816324",
"0.57946926",
"0.5774467",
"0.57616454",
"0.57604814",
"0.567736",
"0.56385285",
"0.5614764",
"0.5610931"
] | 0.7019816 | 0 |
Check if plugin has any trial plan. | function has_trial_plan( $plans ) {
if ( ! is_array( $plans ) || 0 === count( $plans ) ) {
return true;
}
/**
* @var FS_Plugin_Plan[] $plans
*/
for ( $i = 0, $len = count( $plans ); $i < $len; $i ++ ) {
if ( $plans[ $i ]->has_trial() ) {
return true;
}
}
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function trialAvailable() {\n\t\t$result = true;\n\n\t\t// return cached version\n\t\tif (!is_null($this->cached_trial_available))\n\t\t\treturn $this->cached_trial_available;\n\n\t\t// prepare variables for processing\n\t\t$address = $_SERVER['REMOTE_ADDR'];\n\t\t$manager = SapphireWavesTrialManager::getInstance();\n\n\t\t// remove old entries\n\t\t$manager->deleteData(array(\n\t\t\t'timestamp'\t=> array(\n\t\t\t\t\t'operator'\t=> '<',\n\t\t\t\t\t'value'\t\t=> time() - (7 * 24 * 60 * 60)\n\t\t\t\t)\n\t\t));\n\n\t\t// check if we have existing records\n\t\t$record = $manager->getSingleItem(\n\t\t\t\t\t\t$manager->getFieldNames(),\n\t\t\t\t\t\tarray('address' => $address)\n\t\t\t\t\t);\n\n\t\tif (is_object($record))\n\t\t\t$result = ($record->timestamp >= time() - (7 * 24 * 60 * 60)) && $record->times_used <= 2;\n\n\t\t// cache result for further use in current execution\n\t\t$this->cached_trial_available = $result;\n\n\t\treturn $result;\n\t}",
"protected function has_paid_plan() {\n\t\t\treturn isset( $this->_paid_plan );\n\t\t}",
"protected function has_free_plan() {\n\t\t\treturn isset( $this->_free_plan );\n\t\t}",
"public function isTrialMode()\n {\n return !$this->isOnPublicDomain();\n }",
"public function onTrial($name = 'default', $plan = null)\n {\n if (func_num_args() === 0 && $this->onGenericTrial()) {\n return true;\n }\n\n $subscription = $this->subscription($name);\n\n if (! $subscription || ! $subscription->onTrial()) {\n return false;\n }\n\n return $plan ? $subscription->hasPlan($plan) : true;\n }",
"function idaho_plugin_check( $plugin ) {\n\t\treturn ( is_plugin_active( $plugin ) );\n\t}",
"function has_paid_plan( $plans ) {\n\t\t\tif ( ! is_array( $plans ) || 0 === count( $plans ) ) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\t/**\n\t\t\t * @var FS_Plugin_Plan[] $plans\n\t\t\t */\n\t\t\tfor ( $i = 0, $len = count( $plans ); $i < $len; $i ++ ) {\n\t\t\t\tif ( ! $plans[ $i ]->is_free() ) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn false;\n\t\t}",
"abstract protected function local_has_paid_plan();",
"public function moptConfigTransactionTrialsExist()\n {\n $DBConfig = Shopware()->Db()->getConfig();\n $sql = \"SELECT * FROM INFORMATION_SCHEMA.COLUMNS\n WHERE TABLE_SCHEMA='\" . $DBConfig['dbname'] . \"'\n AND TABLE_NAME='s_plugin_mopt_payone_config'\n AND COLUMN_NAME ='trans_max_trials'\";\n try {\n $result = Shopware()->Db()->query($sql);\n\n return $result->rowCount() !== 0;\n } catch (Zend_Db_Statement_Exception $e) {\n } catch (Zend_Db_Adapter_Exception $e) {\n }\n }",
"public function has_trial(): bool {\n\t\t/**\n\t\t * Filters whether a transaction has a trial.\n\t\t *\n\t\t * @since 4.5.0\n\t\t *\n\t\t * @param bool $has_trial True if it has a trial, false otherwise.\n\t\t * @param Transaction $transaction Transaction model.\n\t\t *\n\t\t * @return bool True if it has a trial, false otherwise.\n\t\t */\n\t\treturn apply_filters(\n\t\t\t'learndash_model_transaction_has_trial',\n\t\t\t(bool) $this->getAttribute( self::$meta_key_has_trial, false ),\n\t\t\t$this\n\t\t);\n\t}",
"public function hasExpiredGenericTrial()\n {\n if (is_null($this->customer)) {\n return false;\n }\n\n return $this->customer->hasExpiredGenericTrial();\n }",
"function _jr_no_addons_available( $plan, $addons = '' ) {\n\n\t$addons = $addons ? $addons: jr_get_addons();\n\n\t$active_addons = array();\n\t$plans_count = $empty_count = $disabled_count = 0;\n\tforeach ( $addons as $addon ) {\n\t\tif ( empty($plan[$addon][0])) {\n\t\t\t$empty_count++;\n\t\t}\n\t\tif ( _jr_addon_disabled( $addon ) || ! _jr_addon_valid( $addon ) ) {\n\t\t\t$disabled_count++;\n\t\t}\n\t\tif ( ! empty($plan[$addon][0]) || ! _jr_addon_disabled( $addon ) ) {\n\t\t\t$active_addons[] = $addon;\n\t\t}\n\t\t$plans_count++;\n\t}\n\n\tif ( $disabled_count == $plans_count ) {\n\t\t$available = false;\n\t} elseif ( $empty_count == $plans_count ) {\n\t\tif( $disabled_count == $plans_count ) {\n\t\t\t$available = false;\n\t\t} else {\n\t\t\t$available = true;\n\t\t}\n\t} else {\n\t\t$available = true;\n\t}\n\n\treturn apply_filters( 'jr_no_addons_available', $available, $plan );\n}",
"private function _is_purchased($plan,$id,$type)\n\t{\n\t\t// check with platform to see if this plan has already been purchased for this user\n\t\treturn TRUE;\t\n\t}",
"protected function isJustActivated() {\n if ( \\get_option('wpt_plugin_loaded') == $this->plugin_slug ) {\n return true;\n }\n }",
"public function hasQueryPlan(){\n return $this->_has(1);\n }",
"public function hasAnActiveSubscription()\n {\n foreach (Plan::getPlans() as $key => $plan) {\n if ($this->subscribed($plan['name'])) {\n if ($this->subscription($plan['name'])->cancelled() == false) {\n //Esta suscripto a plan y además no esta en status de cancelado\n //es decir no esta en grace period\n return true;\n }\n }\n }\n return false;\n }",
"public function check_tablepress() {\n\n\t\tif( class_exists( 'TablePress' ) && in_array( 'tablepress/tablepress.php', (array) get_option( 'active_plugins', array() ) ) )\n\t\t\treturn true;\n\n\t\telse\n\t\t\treturn false;\n\n\t}",
"function jr_check_plan( $errors ){\n\n\tif ( empty( $_POST['plan'] ) ) {\n\t\t$errors->add( 'no-plan', __( 'You must select a Plan to continue.', APP_TD ) );\n\t\treturn $errors;\n\t}\n\n\t$plan_id = (int) $_POST['plan'];\n\t$plan = get_post( $plan_id );\n\tif ( ! $plan ) {\n\n\t\t$user_plan_id = _jr_sanitized_plan( $_POST['plan'] );\n\t\t$user_plan = _jr_user_pack_meta( get_current_user_id(), $user_plan_id );\n\n\t\tif ( ! $user_plan ) {\n\t\t\t$errors->add( 'invalid-plan', __( 'Invalid Plan.', APP_TD ) );\n\t\t\treturn $errors;\n\t\t}\n\t}\n\n\treturn $errors;\n}",
"function has_free_plan( $plans ) {\n\t\t\tif ( ! is_array( $plans ) || 0 === count( $plans ) ) {\n\t\t\t\treturn true;\n\t\t\t}\n\n\t\t\t/**\n\t\t\t * @var FS_Plugin_Plan[] $plans\n\t\t\t */\n\t\t\tfor ( $i = 0, $len = count( $plans ); $i < $len; $i ++ ) {\n\t\t\t\tif ( $plans[ $i ]->is_free() ) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn false;\n\t\t}",
"public function isAvailable()\n\t{\n Mage::getModel('tiramizoo/debug')->log('Start validating Tiramizoo rate immediate');\n\n $return = true;\n\n if (parent::isAvailable() == false) {\n $return = false;\n } elseif (!$this->getRetailLocation()->getParam('immediate_time_window_enabled')) {\n Mage::getModel('tiramizoo/debug')->log('Rate is not enabled');\n $return = false;\n } else {\n $timeWindow = $this->getImmediateTimeWindow();\n\n if ($timeWindow === null) {\n Mage::getModel('tiramizoo/debug')->log('There are no valid time window');\n $return = false;\n }\n }\n\n Mage::getModel('tiramizoo/debug')->log('End validating Tiramizoo rate immediate');\n\n\t\treturn $return;\n\t}",
"public function hasExpiredTrial($name = 'default', $plan = null)\n {\n if (func_num_args() === 0 && $this->hasExpiredGenericTrial()) {\n return true;\n }\n\n $subscription = $this->subscription($name);\n\n if (! $subscription || ! $subscription->hasExpiredTrial()) {\n return false;\n }\n\n return $plan ? $subscription->hasPlan($plan) : true;\n }",
"function pluginCheck($plugin) {\r\n list($ret, $modules) = GalleryCoreApi::fetchPluginStatus('module');\r\n if ($ret) {\r\n print \"checking plugin:\".$plugin.\" - \".$ret->getAsHtml();\r\n }\r\n if ($modules[$plugin]['active'] && $modules[$plugin]['available']) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n}",
"abstract protected function local_has_free_plan();",
"static function mu_plugin_exists() {\r\n\t\treturn file_exists( WPMU_PLUGIN_DIR . '/health-check-disable-plugins.php' );\r\n\t}",
"public function hasAGracePeriodPlan()\n {\n foreach (Plan::getPlans() as $key => $plan) {\n if ($this->subscribed($plan['name'])) {\n if ($this->subscription($plan['name'])->onGracePeriod()) {\n return true;\n }\n }\n }\n return false;\n }",
"private static function _canManagePlans()\n {\n $license = new \\pm_License();\n $properties = $license->getProperties();\n\n $hasHostingPlans = $properties['can-manage-customers'];\n $hasResellerPlans = $properties['can-manage-resellers'];\n\n if (!$hasHostingPlans || !$hasResellerPlans) {\n return false;\n } else {\n return true;\n }\n }",
"public function onGenericTrial()\n {\n if (is_null($this->customer)) {\n return false;\n }\n\n return $this->customer->onGenericTrial();\n }",
"static public function maybe_renew_subscripton_plan( $post_id ) {\n $form = self::get_form_by_post( $post_id );\n $post = get_post( $post_id );\n \n //** STEP 1. Determine if the current property is sponsored and renewal of Subscription Plan is enabled */\n \n //** Be sure that it's sponsored form */\n $sponsored = !empty( $form[ 'feps_credits' ] ) && $form[ 'feps_credits' ] == 'true' ? true : false;\n if( !$sponsored ) {\n return false;\n }\n \n //** Be sure that renewal of subscription plan is enabled */\n $enabled = get_post_meta( $post->ID, FEPS_RENEW_PLAN, true );\n if( $enabled === 'true' ) {\n return false;\n }\n \n //** STEP 2. Determine if subscription plan for renewal still exists. */\n \n //** Get Subscription plan for renewal */\n $plan = get_post_meta( $post->ID, FEPS_META_PLAN, true );\n if( isset( $plan[ 'slug' ] ) && isset( $form[ 'subscription_plans' ][ $plan[ 'slug' ] ] ) ) {\n $_plan = $plan[ 'slug' ];\n $_credits = $form[ 'subscription_plans' ][ $plan[ 'slug' ] ][ 'price' ];\n } else {\n foreach( $form[ 'subscription_plans' ] as $k => $d ) {\n if( $d[ 'name' ] == $plan[ 'name' ] ) {\n $_plan = $k;\n $_credits = $form[ 'subscription_plans' ][ $k ][ 'price' ];\n }\n }\n }\n //** Property's subscription plan doesn't exist anymore. Break. */\n if( !isset( $_plan ) ) {\n return false;\n }\n \n //** STEP 3. Determine if user has enough credits on their balance to renew Subscription plan */\n $user = get_userdata( $post->post_author );\n $credits = get_the_author_meta( FEPS_USER_CREDITS, $user->ID );\n if( $credits < $_credits ) {\n return false;\n }\n \n //** STEP 4. Renew Subscription plan and Expired Time */\n $credits -= $_credits;\n update_user_meta( $user->ID, FEPS_USER_CREDITS, $credits );\n //** Update Subscription plan data */\n self::set_subscription_plan( $post->ID, $_plan );\n //** Update expired time */\n self::maybe_set_expired_time( $post->ID );\n \n //** Send notification to user */\n $subject = __( 'Renewal of Subscription Plan', ud_get_wpp_feps()->domain );\n $message = sprintf(__('Hello [display_name]%1$s%1$sPublish time for Your %2$s \"[property_title]\" has expired.%1$s%1$sSubscription Plan has been renewed and [credits] credits were withdrawn from your balance.%1$s%1$sClick this link to view all your [status] %3$s:%1$s[url]', ud_get_wpp_feps()->domain), PHP_EOL, WPP_F::property_label( 'singular' ), WPP_F::property_label( 'plural' ) );\n WPP_Mail::feps_post_status_updated( $post->ID, array_filter( array(\n 'subject' => $subject,\n 'message' => $message,\n 'crm_log_message' => '',\n 'data' => array_filter( array(\n 'url' => WPP_F::base_url( FEPS_VIEW_PAGE, \"status=publish\" ),\n 'status' => @$wp_post_statuses['publish']->label,\n 'credits' => $_credits,\n ) ),\n ) ) );\n \n return true;\n }",
"function is_plugin_installed() {\n require_once ABSPATH . 'wp-admin/includes/plugin.php';\n\n if ( is_plugin_active( 'wedevs-project-manager/cpm.php' ) ) {\n return true;\n }\n\n if ( is_plugin_active( 'wedevs-project-manager-pro/cpm.php' ) ) {\n \n $this->parent_path = dirname( dirname( __FILE__ ) ) . '/wedevs-project-manager-pro';\n\n return true;\n }\n\n return false;\n }",
"public function canRenewPlan()\n {\n return (\n config('cashier.renew_free_plan') == 'yes' ||\n (config('cashier.renew_free_plan') == 'no' && $this->plan->getBillableAmount() > 0)\n );\n }"
] | [
"0.6590071",
"0.65729386",
"0.653654",
"0.63913685",
"0.63844734",
"0.6235815",
"0.62056977",
"0.6177004",
"0.61589825",
"0.6126732",
"0.59830034",
"0.5959842",
"0.59487456",
"0.5946369",
"0.5906772",
"0.59036213",
"0.58877623",
"0.5840834",
"0.5811911",
"0.5804289",
"0.57957345",
"0.57938486",
"0.57589006",
"0.57470644",
"0.5745891",
"0.5730654",
"0.5724381",
"0.57115847",
"0.5707147",
"0.5706348"
] | 0.7163387 | 0 |
/ set fiqh parameter from configuration file | function set_fiqh_parameter(){
$this->FIQH_isFajrByInterval=$this->cfgArray['fajr']?$this->cfgArray['fajr']:0;
if($this->FIQH_isFajrByInterval){
$this->FIQH_fajrInterval=$this->cfgArray['fajr_interval']?$this->cfgArray['fajr_interval']:90.0;
}else{
$this->FIQH_fajrDepr=$this->cfgArray['fajr_depr']?$this->cfgArray['fajr_depr']:18.0;
}
$this->FIQH_asrShadowRatio=$this->cfgArray['ashr']?($this->cfgArray['ashr']==1?2:$this->cfgArray['ashr_shadow']):1;
$this->FIQH_isIshaByInterval=$this->cfgArray['isha']?$this->cfgArray['isha']:0;
if($this->FIQH_isIshaByInterval){
$this->FIQH_ishaInterval=$this->cfgArray['isha_interval']?$this->cfgArray['isha_interval']:90.0;
}else{
$this->FIQH_ishaDepr=$this->cfgArray['isha_depr']?$this->cfgArray['isha_depr']:18.0;
}
$this->FIQH_isImsyakByInterval=$this->cfgArray['imsyak']?$this->cfgArray['imsyak']:0;
if($this->FIQH_isImsyakByInterval){
$this->FIQH_imsyakInterval=$this->cfgArray['imsyak_interval']?$this->cfgArray['imsyak_interval']:10.0;
}else{
$this->FIQH_imsyakDepr=$this->cfgArray['imsyak_depr']?$this->cfgArray['imsyak_depr']:1.5;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function setConfigfile();",
"function setConf($key,$val,$path=array()){\n\treturn getConf($key,$path,false,1,$val);\n}",
"public function set($varName,$varValue){$this->conf[$varName]=$varValue;}",
"private function _cargaVarConfig()\r\n {\r\n $config_variables = simplexml_load_file('configuration.xml');\r\n foreach ($config_variables as $key => $value) {\r\n switch ($key) {\r\n case \"sdmModule_id\":\r\n $this->_moduleID = $value; break;\r\n case \"widget_name\":\r\n $this->_widget_name = $value; break;\r\n }\r\n } \r\n }",
"private static function setParts(string $config)\n {\n $parts = explode('.', $config, 2);\n self::$file = $parts[0];\n self::$config = isset($parts[1]) ? 'params.' . $parts[1] : 'params';\n\n if (isset(self::$data[self::$file])) return;\n if (!self::$dir) throw new \\InvalidArgumentException(\"Config files directory missing. Please, use 'setDir' method before.\");\n\n $config_file_path = self::$dir . self::$file . '.php';\n $array_data = require($config_file_path);\n $params = ['params' => $array_data];\n self::$data[self::$file] = new Data($params);\n }",
"public function setConfig(): void;",
"public function setCfg($mixed, $val = null);",
"public static function setRecordByName( $name, $value ){\n sm_debug::write(\"Set parameters: name = \".$name.\"; value=\".$value, 7);\n\n try {\n\n $results = sm_config::$db->query(\n array(\n \"query\" => \"\n UPDATE config\n SET\n value = ?s(value)\n WHERE\n name = ?s(name)\"\n , \"binds\" => array(\n \"name\" => $name\n , \"value\" => $value\n )\n )\n );\n\n if ( $results['affected_rows'] == 1) {\n sm_debug::write(\"configuration is loaded: name=\".$name.\" value = \".$value, 7);\n }\n elseif( $results['affected_rows'] > 1 ){\n throw new sm_exception( \"configuration error: Too main \\\"$name\\\" options: \".$results['affected_rows'] );\n }\n else {\n sm_debug::write(\"configuration error: option $name not found\", 1);\n throw new sm_exception( \"configuration error: option $name not found\" );\n }\n } catch ( Exception $e ) {\n sm_debug::write(\"configuration error: can't read the parameter from the DB\", 1);\n throw new sm_exception( $e->getMessage() );\n }\n }",
"function set_fiqh_parameter_post(){\r\n $this->FIQH_isFajrByInterval=isset($_POST['fajr'])?$_POST['fajr']:0;\r\n if($this->FIQH_isFajrByInterval){\r\n $this->FIQH_fajrInterval=isset($_POST['fajr_interval'])?$_POST['fajr_interval']:90.0;\r\n }else{ \r\n $this->FIQH_fajrDepr=isset($_POST['fajr_depr'])?$_POST['fajr_depr']:18.0;\r\n } \r\n $this->FIQH_asrShadowRatio=isset($_POST['ashr'])?($_POST['ashr']==1?2:isset($_POST['ashr_shadow'])?$_POST['ashr_shadow']:2):1;\r\n $this->FIQH_isIshaByInterval=isset($_POST['isha'])?$_POST['isha']:0;\r\n if($this->FIQH_isIshaByInterval){\r\n $this->FIQH_ishaInterval=isset($_POST['isha_interval'])?$_POST['isha_interval']:90.0;\r\n }else{\r\n $this->FIQH_ishaDepr=isset($_POST['isha_depr'])?$_POST['isha_depr']:18.0;\r\n }\r\n $this->FIQH_isImsyakByInterval=isset($_POST['imsyak'])?$_POST['imsyak']:0;\r\n if($this->FIQH_isImsyakByInterval){\r\n $this->FIQH_imsyakInterval=isset($_POST['imsyak_interval'])?$_POST['imsyak_interval']:10.0; \r\n }else{\r\n $this->FIQH_imsyakDepr=isset($_POST['imsyak_depr'])?$_POST['imsyak_depr']:1.5;\r\n } \r\n }",
"abstract public function setupConfig();",
"public function setConfig($name, $value = null);",
"protected function configure()\n {\n $this->setName(self::NAME);\n\n $this->addOption(self::OPTION_LANGUAGE, substr(self::OPTION_LANGUAGE, 0, 1), InputOption::VALUE_REQUIRED, \"\", \"pl\");\n $this->addOption(self::OPTION_FPS, null, InputOption::VALUE_REQUIRED, \"\", 23.976);\n\n $this->addArgument(self::ARGUMENT_FILE, InputArgument::IS_ARRAY | InputArgument::REQUIRED);\n }",
"function pais_params($filename='pais_params.cfg') {\n\ttry {\n\t\tglobal $cfg, $dic;\n\t\tif (file_exists($filename)) {\n\t if ($handle = fopen($filename, 'r')) {\n\t while (!feof($handle)) {\n\t list($type, $name, $value) = preg_split(\"/\\||=/\", fgets($handle), 3);\n\t\t\t\t\tif (trim($type)!='#') { \n\t\t\t\t\t#PARAMS $pais[mexico][variable]\n\t\t\t\t\t\t$pais_params[trim($type)][trim($name)] = trim($value);\n\t\t\t\t\t\t$val.=$type.' | '.$name.' = '.$value.\"<br/>\\n\\r\";\n\t\t\t\t\t}\t\n\t }\t \n\t }\t \n\t\t\treturn $val;\n\t\t}else{\n\t\t\t$msj = \"¡ERROR CRÍTICO!<br/> No se ha logrado cargar el archivo diccionario, por favor, contacte al administrador del sistema.<br/>\";\n\t \tthrow new Exception($msj, 1); \t\n\t }\t\n\t} catch (Exception $e) {\t\t\n\t\tprint($e->getMessage());\n\t\treturn false;\n\t}\t \n}",
"function update_config_param (\r\n $exper ,\r\n $SVC ,\r\n $service ,\r\n $sect ,\r\n $param ,\r\n $descr ,\r\n $val ,\r\n $type='String')\r\n{\r\n $val_current = $SVC->ifacectrldb($service)->get_config_param_val_r (\r\n $sect ,\r\n $param ,\r\n $exper->instrument()->name() ,\r\n $exper->name()) ;\r\n\r\n if (is_null($val)) return $val_current ;\r\n\r\n $val = trim(\"{$val}\") ; // always turn it into the string even if it's a number\r\n // to allow detecting '' which means a command to remove\r\n // the parameter from the database.\r\n\r\n if ($val_current !== $val) {\r\n if ($val === '') {\r\n $SVC->ifacectrldb($service)->remove_config_param (\r\n $sect ,\r\n $param ,\r\n $exper->instrument()->name() ,\r\n $exper->name()) ;\r\n } else {\r\n $SVC->ifacectrldb($service)->set_config_param_val (\r\n $sect ,\r\n $param ,\r\n $exper->instrument()->name() ,\r\n $exper->name() ,\r\n $val ,\r\n $descr ,\r\n $type) ;\r\n }\r\n }\r\n return $val ;\r\n}",
"abstract protected function define_my_settings();",
"protected function configure()\n {\n $this\n ->setName('training:update-configuration')\n ->setDescription('Updated configuration')\n ->addArgument('id_configuration', InputArgument::REQUIRED)\n ->addArgument('value', InputArgument::REQUIRED)\n ;\n }",
"public function config()\n {\n global $c, $s, $m, $t, $q, $u;\n\n parent::config();\n\n\n $this->i_var['writable_var_list'][]= \"current_url\";\n\n $this->has['share_data']= true;\n $this->i_var['readable_data_list'][]= \"all_data\";\n\n $this->set_title($t->services, \"h2\");\n\n $this->select_name= \"id_serv\";\n \n \n $this->data_source=\"select_service1\";\n\n $this->id_tag= \"id_serv\"; // default\n$this->label_tag= \"name_serv\"; // default\n\n$this->has['submit']= false;\n $this->has['form']= false;\n\n $this->default= $t->unknown;\n }",
"public function configure()\n {\n $this->setOptions(array(\n '-vn' => '',\n '-ar' => '44100',\n '-ac' => '2',\n '-ab' => '192',\n '-f' => 'mp3',\n ));\n }",
"public function setConfigFilePath($configFilePath);",
"private function setConfig()\r\n {\r\n $this->aConfig = include_once $this->sRootDir.'/config.php';\r\n }",
"function configure($sName, $mValue)\n\t{\n\t\tif ('requestURI' == $sName) {\n\t\t\t$this->sRequestURI = $mValue;\n\t\t} else if ('deferScriptGeneration' == $sName) {\n\t\t\tif (true === $mValue || false === $mValue)\n\t\t\t\t$this->bDeferScriptGeneration = $mValue;\n\t\t} else if ('deferScriptValidateHash' == $sName) {\n\t\t\tif (true === $mValue || false === $mValue)\n\t\t\t\t$this->bValidateHash = $mValue;\n\t\t}\n\t}",
"function get_cfg_var ($option) {}",
"function pnConfigSetVar($name, $value = '')\n{\n $name = isset($name) ? (string) $name : '';\n\n // The database parameter are not allowed to change\n if (empty($name) || $name == 'dbtype' || $name == 'dbhost' || $name == 'dbuname' || $name == 'dbpass' || $name == 'dbname' || $name == 'system' || $name == 'prefix' || $name == 'encoded') {\n return false;\n }\n\n // set the variable\n if (pnModSetVar(PN_CONFIG_MODULE, $name, $value)) {\n // Update my vars\n $GLOBALS['PNConfig']['System'][$name] = $value;\n return true;\n }\n\n return false;\n}",
"function __construct( $config_file )\n {\n // save file name\n $this->file_name = $config_file;\n \n // check if file exists\n if( file_exists('app/settings/'.$config_file.'.set') ){\n \n // open the file for reading\n $file = fopen('app/settings/'.$config_file.'.set','r');\n \n // bail on fail\n if( !$file ){\n return;\n }\n \n // read all lines\n while(!feof($file)){\n \n // line \n $line = trim(fgets($file));\n\n // check for comment\n if( strlen($line) == 0 || substr($line,0,1) == ';' ){\n continue;\n }\n \n // get the key value pair\n $key_vals = explode('=',$line,2);\n \n // trim and save them\n $this->settings[trim($key_vals[0])] =trim($key_vals[1]);\n \n }\n }\n }",
"static function setConfig($name, $value) {\n $trimmed = trim($name);\n if($trimmed) {\n self::$config_data[$trimmed] = $value;\n } else {\n throw new Angie_Core_Error_InvalidParamValue('name', $name, 'Name value must be present');\n } // if\n }",
"public function __set($parameter_name, $parameter_value) {\r\n $this->full_configuration[$parameter_name] = $parameter_value;\r\n }",
"function set_config($DBSETUP) {\n // populating the global $CONFIG variable for the application\n if(!isset($DBSETUP)) { return; }\n global $db,$CONFIG;\n $res = $db->consulta('SELECT keyword,parameter,value FROM '.$DBSETUP);\n while($row=$db->fetch_assoc($res)) {\n $CONFIG[$row['keyword']][$row['parameter']]=$row['value'];\n }\n}",
"public function setAction()\n {\n // check for help mode\n if ($this->requestOptions->getFlagHelp()) {\n return $this->setHelp();\n }\n\n // output header\n $this->consoleHeader('Setting requested configuration');\n\n // get needed options to shorten code\n $path = realpath($this->requestOptions->getPath());\n $configName = $this->requestOptions->getConfigName();\n $configValue = $this->requestOptions->getConfigValue();\n $configFile = $path . '/config/autoload/local.php';\n\n // check for config name\n if (!$configName) {\n return $this->sendError(\n 'config get <configName> was not provided'\n );\n }\n\n // start output\n $this->console->write(' => Reading configuration file ');\n $this->console->writeLine($configFile, Color::GREEN);\n $this->console->write(' => Changing configuration data for key ');\n $this->console->write($configName, Color::GREEN);\n $this->console->write(' to value ');\n $this->console->writeLine($configValue, Color::GREEN);\n $this->console->write(' => Writing configuration file ');\n $this->console->writeLine($configFile, Color::GREEN);\n $this->console->writeLine();\n\n // check for value\n if ($configValue === 'null') {\n $configValue = null;\n }\n\n // write local config file\n $configData = new ModuleConfig($configFile);\n $configData->write($configName, $configValue);\n\n // continue output\n $this->console->write(' Done ', Color::NORMAL, Color::CYAN);\n $this->console->write(' ');\n $this->console->writeLine('Configuration data was changed.');\n\n // output footer\n $this->consoleFooter('requested configuration was successfully changed');\n\n }",
"abstract public function configQB($QB);",
"private function loadParams($filename) {\n //gets paras from the file\n $siteparams = SpycSceau::YAMLLoad(SCEAU_ROOT_DIR . '/lib/sceau/const/' . $filename);\n //reads all params and stores each one localy\n foreach ($siteparams as $key => $value) {\n $funcname = \"set$key\";\n $this->$funcname($value);\n }\n }"
] | [
"0.6754381",
"0.60486877",
"0.5979442",
"0.5795658",
"0.5793054",
"0.57874006",
"0.572452",
"0.57176596",
"0.5714052",
"0.56867194",
"0.5678918",
"0.5661655",
"0.565192",
"0.5644838",
"0.55975085",
"0.5580266",
"0.5569929",
"0.5567377",
"0.556696",
"0.554852",
"0.5546766",
"0.55442923",
"0.5536527",
"0.55213404",
"0.54966784",
"0.54951173",
"0.54941976",
"0.5494024",
"0.5477125",
"0.54704285"
] | 0.6999729 | 0 |
/ set fiqh parameter from posting variables | function set_fiqh_parameter_post(){
$this->FIQH_isFajrByInterval=isset($_POST['fajr'])?$_POST['fajr']:0;
if($this->FIQH_isFajrByInterval){
$this->FIQH_fajrInterval=isset($_POST['fajr_interval'])?$_POST['fajr_interval']:90.0;
}else{
$this->FIQH_fajrDepr=isset($_POST['fajr_depr'])?$_POST['fajr_depr']:18.0;
}
$this->FIQH_asrShadowRatio=isset($_POST['ashr'])?($_POST['ashr']==1?2:isset($_POST['ashr_shadow'])?$_POST['ashr_shadow']:2):1;
$this->FIQH_isIshaByInterval=isset($_POST['isha'])?$_POST['isha']:0;
if($this->FIQH_isIshaByInterval){
$this->FIQH_ishaInterval=isset($_POST['isha_interval'])?$_POST['isha_interval']:90.0;
}else{
$this->FIQH_ishaDepr=isset($_POST['isha_depr'])?$_POST['isha_depr']:18.0;
}
$this->FIQH_isImsyakByInterval=isset($_POST['imsyak'])?$_POST['imsyak']:0;
if($this->FIQH_isImsyakByInterval){
$this->FIQH_imsyakInterval=isset($_POST['imsyak_interval'])?$_POST['imsyak_interval']:10.0;
}else{
$this->FIQH_imsyakDepr=isset($_POST['imsyak_depr'])?$_POST['imsyak_depr']:1.5;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function setInputValue() {\n\t\tglobal $_POST;\n\t\t$name = func_get_arg(0);\n\t\tif ($name) {\n\t\t\t## name field exists from parameters, now check if it exist from $_POST\n\t\t\tif (isset($_POST[$name])) {\n\t\t\t\t## print the value stored in $_POST['$name']\n\t\t\t\tprint $_POST[$name];\n\t\t\t} \n\t\t}\n\t}",
"function processPostVars()\n {\n $this->relation = $_POST['se_rel'];\n }",
"public function setQuicksilverVariables() {\n $this->site_name = $this->getPantheonSiteName();\n $this->site_id = $this->getPantheonSiteId();\n $this->site_env = $this->getPantheonEnvironment();\n $this->user_fullname = $_POST['user_fullname'];\n $this->user_email = $_POST['user_email'];\n $this->workflow_id = $_POST['trace_id'];\n $this->workflow_description = $_POST['wf_description'];\n $this->workflow_type = $_POST['wf_type'];\n $this->workflow_stage = $_POST['stage'];\n $this->workflow = ucfirst($this->workflow_stage) . ' ' . str_replace('_', ' ', $this->workflow_type);\n $this->workflow_label = \"Quicksilver workflow\";\n $this->quicksilver_description = $_POST['qs_description'];\n $this->environment_link = \"https://$this->site_env-$this->site_name.pantheonsite.io\";\n $this->dashboard_link = \"https://dashboard.pantheon.io/sites/$this->site_id#$this->site_env\";\n }",
"function postvar($v,$d=''){return (isset($_POST[$v]))?$_POST[$v]:$d; }",
"public function quickCreateParam()\r\n\t{\r\n\t\tforeach( Cache::instance()->get('table_child_1_base_fields') as $val){\r\n\t\t\techo '$'.\"data['{$val[\"Field\"]}'] = \".'$request->post(\\'txt_'.$val[\"Field\"].\"');<br/>\";\r\n\t\t}\r\n\t}",
"function paramPost($key) {\n\tglobal $app;\n\treturn $app->request()->post($key);\n}",
"function set_fiqh_parameter(){\r\n $this->FIQH_isFajrByInterval=$this->cfgArray['fajr']?$this->cfgArray['fajr']:0;\r\n if($this->FIQH_isFajrByInterval){\r\n $this->FIQH_fajrInterval=$this->cfgArray['fajr_interval']?$this->cfgArray['fajr_interval']:90.0;\r\n }else{ \r\n $this->FIQH_fajrDepr=$this->cfgArray['fajr_depr']?$this->cfgArray['fajr_depr']:18.0;\r\n } \r\n $this->FIQH_asrShadowRatio=$this->cfgArray['ashr']?($this->cfgArray['ashr']==1?2:$this->cfgArray['ashr_shadow']):1;\r\n $this->FIQH_isIshaByInterval=$this->cfgArray['isha']?$this->cfgArray['isha']:0;\r\n if($this->FIQH_isIshaByInterval){\r\n $this->FIQH_ishaInterval=$this->cfgArray['isha_interval']?$this->cfgArray['isha_interval']:90.0;\r\n }else{\r\n $this->FIQH_ishaDepr=$this->cfgArray['isha_depr']?$this->cfgArray['isha_depr']:18.0;\r\n }\r\n $this->FIQH_isImsyakByInterval=$this->cfgArray['imsyak']?$this->cfgArray['imsyak']:0;\r\n if($this->FIQH_isImsyakByInterval){\r\n $this->FIQH_imsyakInterval=$this->cfgArray['imsyak_interval']?$this->cfgArray['imsyak_interval']:10.0; \r\n }else{\r\n $this->FIQH_imsyakDepr=$this->cfgArray['imsyak_depr']?$this->cfgArray['imsyak_depr']:1.5;\r\n } \r\n }",
"protected function set_params() {}",
"public function setParam()\n {\n $this->param = array();\n $s=count($this->uri);\n if ($s>2) {\n for ($i=2; $i < $s ; $i++) {\n if (!(empty($this->uri[$i]))) {\n $this->param[]=$this->uri[$i];\n }\n }\n }\n /*\n if(REQUEST_METHOD === 'POST')\n $this->param = $_POST;\n else if (REQUEST_METHOD === 'GET')\n $this->param = ! empty($this->uri[2]) ? $this->uri[2] : '';\n */\n }",
"private function _set_submit_vars()\n\t{\n\t\t$post\t= $this->input->post();\n\t\t\n\t\t/* /REMOVED THIS FOR ONECLICKSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS BIAAAAAAATCHS!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n\t\t// grab funnel action info\n\t\t$action\t= $this->platform->post('sales_funnel/action/get_funnel_action',array('action_id' => $post['action_id'], 'funnel_id' => $this->_funnel_id));\n\n\t\t// if not successful, then this page doesn't have access to be submitted in this funnel\n\t\tif ( ! $action['success'])\n\t\t\tshow_error('You are attempting to load an invalid page. Please <a href=\"/initialize/'.$this->_partner_id.'/'.$this->_funnel_id.'\">click here</a> to continue.');\n\t\t\t\n\t\t// set the next page id\n\t\t$post['next_page_id']\t= $action['data']['next_page_id'];\t// This variable determins the next page to show\n\t\t*/\n\t\t\n\t\t// set the add service boolean\n\t\t$post['add_service']\t= TRUE;\t// This boolean tells us whether to add a service or not\n\n\t\t// set funnel variables\n\t\t$post['partner_id']\t\t= $this->_partner_id;\n\t\t$post['funnel_id']\t\t= $this->_funnel_id;\n\t\t$post['funnel_type']\t= $this->_funnel_type;\n\t\t$post['affiliate_id']\t= $this->_affiliate_id;\n\t\t$post['offer_id']\t\t= $this->_offer_id;\n\t\t$post['_id']\t\t\t= $this->_id;\n\t\t\n\t\t// return $post\n\t\treturn $post;\n\t}",
"public function set_to_POST()\n {\n $this->set_game_id($_POST['game_id']);\n $this->set_game_date($_POST['game_date']);\n $this->set_member_snack($_POST['member_snack']);\n $this->set_member_host($_POST['member_host']);\n $this->set_member_gear($_POST['member_gear']);\n $this->set_member_caller($_POST['member_caller']);\n $this->set_stamp($_POST['stamp']);\n }",
"function bbp_post_request()\n{\n}",
"function _set_value(){\r\r\n\t\t//extract\r\r\n\t\textract($_POST);\r\r\n\t\t// init\r\r\n\t\t$value = '';\r\r\n\t\t// options\r\r\n\t\tswitch($value_is['options']){\r\r\n\t\t\tcase 'flat':\r\r\n\t\t\t\t$value = (float)$value_is['flat'];\r\r\n\t\t\tbreak;\r\r\n\t\t\tcase 'percent':\r\r\n\t\t\t\t$value = (float)$value_is['percent']. '%';\r\r\n\t\t\tbreak;\r\r\n\t\t\tcase 'sub_pack_bc':// with billing cycle\r\r\n\t\t\tcase 'sub_pack':// without billing cycle\r\r\n\t\t\t\t// format: 'sub_pack#5_6_M_pro-membership' -- without billing cycle\r\r\n\t\t\t\t// format: 'sub_pack#5_6_M_pro-membership_0' -- with billing cycle\r\r\n\t\t\t\t// pack post\r\r\n\t\t\t\t$sub_pack = $value_is['sub_pack'];\r\r\n\t\t\t\t// lifetime\r\r\n\t\t\t\tif($sub_pack['duration_type'] == 'l') $sub_pack['duration_unit'] = 1;\r\r\n\t\t\t\t// membership_type\r\r\n\t\t\t\t$sub_pack['membership_type'] = strtolower(preg_replace('/[\\_]+/', '-', $sub_pack['membership_type']));\t\t\t\t\r\r\n\t\t\t\t// array\r\r\n\t\t\t\t$options = array((float)$sub_pack['cost'], (int)$sub_pack['duration_unit'], $sub_pack['duration_type'], $sub_pack['membership_type']);\t\t\t\t\t\t\t\t \r\r\n\t\t\t\t// billing cycle\r\r\n\t\t\t\tif(isset($sub_pack['num_cycles'])){\r\r\n\t\t\t\t\t// num_cycles, 2 is limited\r\r\n\t\t\t\t\tif((int)$sub_pack['num_cycles'] == 2) $sub_pack['num_cycles'] = (int)$sub_pack['num_cycles_limited'];\t\r\r\n\t\t\t\t\t// append\r\r\n\t\t\t\t\t$options[] = $sub_pack['num_cycles'];\r\r\n\t\t\t\t}\t\t\t \r\r\n\t\t\t\t// set\r\r\n\t\t\t\t$value = 'sub_pack#'. implode('_', $options);\t\r\r\n\t\t\tbreak;\r\r\n\t\t\tcase 'sub_pack_trial':\r\r\n\t\t\t\t// format: sub_pack_trial#5_6_M_1\r\r\n\t\t\t\t// pack post\r\r\n\t\t\t\t$sub_pack = $value_is['sub_pack_trial'];\r\r\n\t\t\t\t// lifetime\r\r\n\t\t\t\tif($sub_pack['duration_type'] == 'l') $sub_pack['duration_unit'] = 1;\t\t\t\t\r\r\n\t\t\t\t// array\r\r\n\t\t\t\t$options = array((float)$sub_pack['cost'], (int)$sub_pack['duration_unit'], $sub_pack['duration_type'], (int)$sub_pack['num_cycles']);\r\r\n\t\t\t\t// set\r\r\n\t\t\t\t$value = 'sub_pack_trial#'. implode('_', $options);\r\r\n\t\t\tbreak;\r\r\n\t\t}\r\r\n\t\t// return \r\r\n\t\treturn $value;\r\r\n\t}",
"protected function setRequestVariables()\n {\n $this->action = filter_input(INPUT_POST, 'action');\n \n if(isset($this->uri[1]))\n $this->urlAction = $this->uri[1];\n else\n $this->urlAction = '';\n \n $this->message = filter_input(INPUT_POST, 'message');\n }",
"public function setInputsFromPOST() \n {\n $this->name = $_POST['name'];\n $this->plate = $_POST['plate'];\n $this->additionalInfo = $_POST['additionalInfo'];\n $this->overwrite = $_POST['overwrite'];\n parent::setFileFromPOST();\n\n if (empty($_POST['bactid']) && empty($_POST['vcid'])) \n {\n // Should never happen due to JS on client side.\n $errorMessage = \"Error: VCID and Bacteria External ID not specified. \\n\";\n $destination = \"http://vdm.sdsu.edu/data/input/input_test.php\";\n parent::reportErrorFatal($errorMessage, $destination);\n } \n elseif (isset($_POST['bactid'])) \n {\n $this->bactid = $_POST['bactid'];\n $this->vcid = $_POST['other'];\n } \n elseif (isset($_POST['vcid'])) \n {\n $this->vcid = $_POST['vcid'];\n $this->bactid = $_POST['other'];\n } \n }",
"public function getPostParameter($key = null);",
"private function storeParams()\n\t{\n\t\tforeach( $this->fields as $fieldName => $fieldAttributes ) {\n\t\t\tif( $fieldAttributes['type'] === 'image' ) {\n\t\t\t\tif( $new_file = $this->handleUploadImage( $fieldName, $fieldAttributes['root'] ) )\n\t\t\t\t\t$this->record->$fieldName = $new_file; \n\t\t\t\t\t\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$this->record->$fieldName = $_REQUEST[$fieldName];\n\t\t\t}\n\t\t}\n\t\n\t}",
"function processPostVars()\n {\n assignPostIfExists($this->task_id, $this->rs, 'task_id');\n assignPostIfExists($this->year, $this->rs, 'year');\n\n $this->datefrom = $this->rs['datefrom']\n = czechToSQLDateTime(\n trimStrip($_POST['datefrom'])) .\n \" \" . self::TASK_LIMIT_TIME;\n $this->dateto = $this->rs['dateto']\n = czechToSQLDateTime(\n trimStrip($_POST['dateto'])) .\n \" \" . self::TASK_LIMIT_TIME;\n }",
"protected function postArguments($query,$post_argument){\n\n }",
"private function setQueryParams()\n\t{\n\t\tif ( isset($_POST['posts']) ) $this->query_params['posts__in'] = $_POST['posts'];\n\t\tif ( isset($_POST['status']) && $_POST['status'] !== 'all' ) $this->query_params['post_status'] = $_POST['status'];\n\t\tif ( isset($_POST['status']) && $_POST['status'] == 'all' ) $this->query_params['post_status'] = array('publish','pending','trash');\n\t\tif ( isset($_POST['site']) && $_POST['site'] !== 'all' ) $this->query_params['site'] = $_POST['site'];\n\t\tif ( isset($_POST['offset']) ) $this->query_params['offset'] = intval($_POST['offset']);\n\t\tif ( isset($_POST['number']) ) $this->query_params['number'] = intval($_POST['number']);\n\t\tif ( isset($_POST['thumbnailsonly']) ) $this->query_params['thumbnailsonly'] = $_POST['thumbnailsonly'];\n\t\tif ( isset($_POST['thumbnailsize']) ) $this->query_params['thumbnailsize'] = $_POST['thumbnailsize'];\n\t}",
"function processPostVars()\n {\n $this->points = $_POST['points'];\n $this->comments = $_POST['comments'];\n // $this->dumpVar ( 'points POST', $this->points );\n\n assignPostIfExists($this->type, $this->rs, 'type');\n }",
"public function set_member_forum_query_vars()\n {\n }",
"private function postGetSettings()\n {\n $get = filter_input_array(INPUT_GET);\n $post = filter_input_array(INPUT_POST);\n// printf('%1$32b %2$32b <br>', $get, $post);\n $tmp = $post ? $post : ($get ? $get : null);\n \n if (!$tmp)return;\n \n// eee($tmp, __FILE__, __LINE__);\n foreach ($tmp as $k => $v)\n {\n $this->sett .= \"$k = $v; \";\n }\n }",
"abstract protected function getPostedValue();",
"function setvalue( $fieldname ){\n if(isset($_POST[$fieldname])){\n echo $_POST[$fieldname];\n }\n }",
"function processPostVar($notVar=array())\n\t{\n\t\tglobal $HTTP_POST_VARS;\n\t\treset($HTTP_POST_VARS);\n\t\twhile (list($key, $val) = @each($HTTP_POST_VARS)) \n\t\t{\n\t\t\tif(is_string($val))\n\t\t\t\t$GLOBALS[$key] = stripslashes($val);\n\t\t\tif(!in_array($key,$notVar) && is_string($val))\n\t\t\t\t{\n\t\t\t\t$val=stripslashes($val);\n\t\t\t\t$val=(str_replace(\"\\\"\",\""\",$val));\n\t \t\t $GLOBALS[$key] = $val;\n\t\t\t\t}\n\t\t}\n\t\treset($HTTP_POST_VARS);\n\t}",
"function getPostParameter($name)\n{\n\t$data = isset($_POST[$name]) ? $_POST[$name] : null;\n\tif(!is_null($data) && get_magic_quotes_gpc() && is_string($data))\n\t{\n\t\t$data = stripslashes($data);\n\t}\n\t$data = trim($data);\n\t$data = htmlentities($data, ENT_QUOTES, 'UTF-8');\n\treturn $data;\n}",
"public function useDataPost(){\n\t\t\t$this->data = $_POST;\t\t\t\n\t\t}",
"private function setFieldPost()\n {\n $table = $_GET['table'];\n $idUser = $_SESSION['uID'];\n $result = $this->query(\"SELECT id_temp FROM $table ORDER BY id DESC LIMIT 1\");\n if ($this->affected_rows == 0) {\n $idTemp = 1;\n } else {\n $idTemp = (int) $result->fetch_object()->id_temp + 1;\n }\n $imagesList = \"\";\n $this->loadImages($table, $idUser, $idTemp, $imagesList);\n $this->setFieldPostEdit($idUser, $idTemp, $imagesList);\n }",
"function postParam($name, $default=\"\")\n{\t\n\treturn isset($_POST[$name]) && (@$_POST[$name]!=\"\") ? utf8_decode($_POST[$name]) : $default;\n}"
] | [
"0.6420381",
"0.61507815",
"0.6136794",
"0.6104854",
"0.6082282",
"0.60769886",
"0.60599107",
"0.6052531",
"0.600157",
"0.6000446",
"0.5970915",
"0.5924296",
"0.58358765",
"0.5784853",
"0.57607204",
"0.57589096",
"0.57475924",
"0.57451546",
"0.5734972",
"0.5720544",
"0.5692134",
"0.56807095",
"0.5672641",
"0.5669856",
"0.5642835",
"0.5634191",
"0.56151503",
"0.5610068",
"0.560871",
"0.56020534"
] | 0.7166753 | 0 |
/ Computes astro constants for Jan 0 of given year | function compute_astro_constants($year){
//abstract;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function date_get_school_year($year, $month) {\n $years = array();\n $years['first_year'] = ($month < 8) ? ($year - 1) : $year;\n $years['second_year'] = $years['first_year'] + 1;\n return $years;\n}",
"function getCcExpYear();",
"public function year();",
"function days_of_year($pmonth,$pday,$pyear)\n{\n //global $day_in_jalali_month;\n $result=0;\n for($i=1;$i<$pmonth;$i++){\n $result+=$this->day_in_jalali_month[(int)$i];\n }\n return $result+$pday;\n}",
"function schrikkeljaar($year)\n{\n # Check for valid parameters #\n if (/*!is_int($year) ||*/ $year < 0)\n {\n printf('Wrong parameter for $year in function schrikkeljaar. It must be a positive integer.');\n exit();\n }\n\n # In the Gregorian calendar there is a leap year every year divisible by four\n # except for years which are both divisible by 100 and not divisible by 400.\n\n if ($year % 4 != 0)\n {\n return 28;\n }\n else\n {\n if ($year % 100 != 0)\n {\n return 29; # Leap year\n }\n else\n {\n if ($year % 400 != 0)\n {\n return 28;\n }\n else\n {\n return 29; # Leap year\n }\n }\n }\n}",
"function centuryFromYear($year) {\n $century = ceil($year/100);\n return $century;\n}",
"public function subYear($value = 1);",
"function isAtypicalCommonYear($year)\r\n{\r\n\treturn $year % 100 == 0 and !($year % 400 == 0);\r\n}",
"function startYear2FiscalYearLabel($year) {\n // output 17/18\n //\n return substr($year, -2).'/'.substr($year+1, -2);\n}",
"public function getYear();",
"private function setValentinNap(int $year)\n {\n return Carbon::create($year, 2, 14, 0, 0, 0);\n }",
"function get_this_year()\n{\n return jdate('Y', time(), '', 'asia/tehran', 'en');\n}",
"public function year($value);",
"public function yearly(): self;",
"public function startOfCentury();",
"function dayOfProgrammer($year) {\n \n \n if($year>1918){\n if($year%400==0 || ($year%4==0 && $year%100!=0)){\n $day = 256-244;\n \n return $day.'.09.'.$year;\n }\n else{\n $day = 256-243;\n return $day.'.09.'.$year;\n \n }\n }\n elseif($year<1918){\n if($year%4==0){\n $day = 256-244;\n \n return $day.'.09.'.$year;\n \n }\n else{\n $day = 256-243;\n return $day.'.09.'.$year;\n \n }\n }\n elseif($year==1918){\n $day = 256-230;\n \n return $day.'.09.'.$year;\n }\n\n\n}",
"function days_of_year($jmonth, $jday, $jyear)\r\n {\r\n\r\n $year = \"\";\r\n\r\n $month = \"\";\r\n\r\n $year = \"\";\r\n\r\n $result = \"\";\r\n\r\n if ($jmonth == \"01\")\r\n return $jday;\r\n\r\n for ($i = 1; $i < $jmonth || $i == 12; $i++) {\r\n\r\n list($year, $month, $day) = self::jalali_to_gregorian($jyear, $i, \"1\");\r\n\r\n $result += self::lastday($month, $day, $year);\r\n\r\n }\r\n\r\n return $result + $jday;\r\n\r\n }",
"function getAnio()\n{\n\tdate_default_timezone_set('America/El_Salvador');\n\treturn (int)date('Y');\n}",
"function getYears();",
"public function getPentecost(?int $year = null): Date {\n return $this->getEasterSunday($year)->jumpDays(49);\n }",
"function GetSchoolYear($timeStamp){\r\n\r\n // if the month is Jan -> Aug then the year is this year, other wise it is next year\r\n if (date('n',$timeStamp) < 9) {\r\n $schoolYear = date('Y',$timeStamp);\r\n } else {\r\n $schoolYear = date('Y',$timeStamp) + 1;\r\n } // if\r\n return $schoolYear;\r\n\r\n}",
"function date_get_current_school_year() {\n $date = getdate();\n $year = $date['year'];\n $month = $date['mon'];\n return date_get_school_year($year, $month);\n}",
"function easter_date($year = false)\n{\n}",
"public function startOfYear();",
"public function get(int $year);",
"public function yearlyRecurringRevenue();",
"function get_from_year()\r\n\t{\r\n\t\treturn isset( $_REQUEST[ 'from_year' ] ) ? $_REQUEST[ 'from_year' ]\t: date('Y');\r\n\t}",
"function get_calendar_years(){\n\t\t$this_year = date(\"Y\") + 10;\n\t\t\n\t\t$return = array();\n\t\tfor( $i = $this_year; $i > 1997; --$i ){\n\t\t\t$return[ $i ] = $i;\n\t\t}\n\t\treturn $return;\n\t}",
"function Calcularedad($nacimiento) {\n list($ano, $mes, $dia) = explode(\"-\", $nacimiento);\n $anodif = date(\"Y\") - $ano;\n $mesdif = date(\"m\") - $mes;\n $diadif = date(\"d\") - $dia;\n\n if (($diadif < 0) or ($mesdif < 0)) {\n $anodif = $anodif - 1;\n }\n\n if ($nacimiento == '') { $anodif = ''; }\n\n return $anodif;\n\n}",
"function getMonthsInYear($y=null)\n {\n return 12;\n }"
] | [
"0.6184653",
"0.6081332",
"0.60403067",
"0.5980593",
"0.59487534",
"0.5881641",
"0.5829014",
"0.5821116",
"0.56882334",
"0.5669904",
"0.5592578",
"0.55607146",
"0.5525534",
"0.54818106",
"0.54738796",
"0.54386145",
"0.5392101",
"0.53716046",
"0.53518283",
"0.5307379",
"0.5305086",
"0.52921015",
"0.52516323",
"0.52486116",
"0.5243017",
"0.52403843",
"0.5220336",
"0.5217686",
"0.5210351",
"0.520843"
] | 0.75559974 | 0 |
input in rad, return qDirec (deg), qDistance (Km) | function qibla($longitude,$latitude){
// lat0=21°25'24", long0=39°49'24" are Makkah's latitude and longitude
// var lat0 = 0.373907703, long0 = -0.695048285, dflong
// direction to Kiblah in rad
$lat0 = 0.373907703;
$long0 = -0.695048285;
$dflong = $longitude - $long0;
if(abs($dflong) < 1e-8) $qDirec = 0; // from Mecca
else{
$qDirec = atan2(sin($dflong),cos($latitude)*tan($lat0)-sin($latitude)*cos($dflong))*180/pi();
if($qDirec<0) $qDirec += 360;
$qDirec = round($qDirec,2);
}
// qDistance in km to Kiblah
$sF = ($latitude + $lat0)/2;
$cF = cos($sF);
$sF = sin($sF);
$sG = ($latitude - $lat0)/2;
$cG = cos($sG);
$sG = sin($sG);
$sL = ($longitude - $long0)/2;
$cL = cos($sL);
$sL = sin($sL);
$S = $sG*$sG*$cL*$cL + $cF*$cF*$sL*$sL;
$C = $cG*$cG*$cL*$cL + $sF*$sF*$sL*$sL;
$W = atan(sqrt($S/$C));
$R = sqrt($S*$C)/$W;
$S = ( (3.0*$R-1.0)*$sF*$sF*$cG*$cG/(2.0*$C) - (3.0*$R+1.0)*$cF*$cF*$sG*$sG/(2.0*$S) )/298.257;
$qDistance = 2.0*$W*6378.14*(1.0+$S); // in Km
$qDistance = round($qDistance,3);
return array($qDirec,$qDistance);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function distance($lat1, $lng1, $lat2, $lng2, $unit = 'k') {\n $earth_radius = 6378137; // Terre = sphère de 6378km de rayon\n $rlo1 = deg2rad($lng1);\n $rla1 = deg2rad($lat1);\n $rlo2 = deg2rad($lng2);\n $rla2 = deg2rad($lat2);\n $dlo = ($rlo2 - $rlo1) / 2;\n $dla = ($rla2 - $rla1) / 2;\n $a = (sin($dla) * sin($dla)) + cos($rla1) * cos($rla2) * (sin($dlo) * sin($dlo));\n $d = 2 * atan2(sqrt($a), sqrt(1 - $a));\n //\n $meter = ($earth_radius * $d);\n if ($unit === 'k') {\n return $meter / 1000;\n }\n\n return $meter;\n}",
"function keraRuumala($raadius){\n $ruumala = 4 * pi() * pow($raadius, 2); // 4 pi raadius ruudus\n return round($ruumala, 2); // ümmardame - 2 koma kohta\n}",
"function deg2rad ($number) {}",
"function getDistance($lat1, $lng1, $lat2, $lng2) {\r\n\r\n\t//Haversine Formula to Calculate Distance\r\n\t\r\n $radius = 3959; //approximate mean radius of the earth in miles, can change to any unit of measurement, will get results back in that unit\r\n\r\n $delta_Rad_Lat = deg2rad($lat2 - $lat1); //Latitude delta in radians\r\n $delta_Rad_Lng = deg2rad($lng2 - $lng1); //Longitude delta in radians\r\n $rad_Lat1 = deg2rad($lat1); //Latitude 1 in radians\r\n $rad_Lat2 = deg2rad($lat2); //Latitude 2 in radians\r\n\r\n $sq_Half_Chord = sin($delta_Rad_Lat / 2) * sin($delta_Rad_Lat / 2) + cos($rad_Lat1) * cos($rad_Lat2) * sin($delta_Rad_Lng / 2) * sin($delta_Rad_Lng / 2); //Square of half the chord length\r\n $ang_Dist_Rad = 2 * asin(sqrt($sq_Half_Chord)); //Angular distance in radians\r\n $distance = $radius * $ang_Dist_Rad; \r\n\r\n return $distance; \r\n}",
"function rad( $num ) {\n return ( $num * M_PI ) / 180;\n}",
"function rad2deg ($number) {}",
"public function rad_to_deg() { # :: Float -> Float\n return new Num\\Float(rad2deg($this->value));\n }",
"function radian() {\n return $this->returnObjectWith(deg2rad($this->value()));\n }",
"function distance($lat1, $lon1, $lat2, $lon2, $unit)\n{\n\n $theta = $lon1 - $lon2;\n $dist = sin(deg2rad($lat1)) * sin(deg2rad($lat2)) + cos(deg2rad($lat1)) * cos(deg2rad($lat2)) * cos(deg2rad($theta));\n $dist = acos($dist);\n $dist = rad2deg($dist);\n $miles = $dist * 60 * 1.1515;\n $unit = strtoupper($unit);\n\n if ($unit == \"K\") {\n return ($miles * 1.609344);\n } else if ($unit == \"N\") {\n return ($miles * 0.8684);\n } else {\n return $miles;\n }\n}",
"function distance($lat1, $lon1, $lat2, $lon2, $unit) \n {\n\n $theta = $lon1 - $lon2;\n $dist = sin(deg2rad($lat1)) * sin(deg2rad($lat2)) + cos(deg2rad($lat1)) * cos(deg2rad($lat2)) * cos(deg2rad($theta));\n $dist = acos($dist);\n $dist = rad2deg($dist);\n $miles = $dist * 60 * 1.1515;\n $unit = strtoupper($unit);\n\n if ($unit == \"K\") {\n return ($miles * 1.609344);\n } else if ($unit == \"N\") {\n return ($miles * 0.8684);\n } else {\n return $miles;\n }\n }",
"function distance($lat1, $lon1, $lat2, $lon2, $unit) {\n \n \t$theta = $lon1 - $lon2;\n \t$dist = sin(deg2rad($lat1)) * sin(deg2rad($lat2)) + cos(deg2rad($lat1)) * cos(deg2rad($lat2)) * cos(deg2rad($theta));\n \t$dist = acos($dist);\n \t$dist = rad2deg($dist);\n \t$miles = $dist * 60 * 1.1515;\n \t$unit = strtoupper($unit);\n \n \tif ($unit == \"K\") {\n \t\treturn ($miles * 1.609344);\n \t} else if ($unit == \"N\") {\n \t\treturn ($miles * 0.8684);\n \t} else {\n \t\treturn $miles;\n \t}\n }",
"function gps_distance($lat1, $lon1, $lat2, $lon2, $unit = 'km')\n {\n //$earth_radius = 3960.00;\n $mi_in_km = 1.609344;\n\n $delta_lat = abs($lat2 - $lat1);\n $delta_lon = abs($lon2 - $lon1);\n\n $distance = sin(deg2rad($lat1)) * sin(deg2rad($lat2)) + cos(deg2rad($lat1)) * cos(deg2rad($lat2)) * cos(deg2rad($delta_lon)) ;\n $distance = acos($distance);\n $distance = rad2deg($distance);\n $distance = $distance * 60 * 1.1515;\n $distance = round($distance, 4);\n\n switch (strtolower($unit))\n {\n case 'mi': \n return $distance;\n break;\n case 'km': \n default: \n return $distance * $mi_in_km;\n break;\n }\n\n // should never get here\n return 0;\n }",
"function distance($lat1, $lon1, $lat2, $lon2, $unit = 'M') { \r\n\r\n $theta = $lon1 - $lon2; \r\n $dist = sin(deg2rad($lat1)) * sin(deg2rad($lat2)) + cos(deg2rad($lat1)) * cos(deg2rad($lat2)) * cos(deg2rad($theta)); \r\n $dist = acos($dist); \r\n $dist = rad2deg($dist); \r\n $miles = $dist * 60 * 1.1515;\r\n $unit = strtoupper($unit);\r\n\r\n if ($unit == \"K\") {\r\n return ($miles * 1.609344); \r\n } else if ($unit == \"M\") {\r\n return round($miles * 1.609344*1000); \r\n } else if ($unit == \"N\") {\r\n return ($miles * 0.8684);\r\n } else {\r\n return $miles;\r\n }\r\n}",
"public function calcNumKmComTanqueCheio()\n {\n $km = $this -> volumeTanque * 15;\n return $km;\n }",
"function distance($lat1, $lon1, $lat2, $lon2, $unit) { \n\t$theta = $lon1 - $lon2; \n\t$dist = sin(deg2rad($lat1)) * sin(deg2rad($lat2)) + cos(deg2rad($lat1)) * cos(deg2rad($lat2)) * cos(deg2rad($theta)); \n\t$dist = acos($dist); \n\t$dist = rad2deg($dist); \n\t$miles = $dist * 60 * 1.1515;\n\t$unit = strtoupper($unit);\n\t\n\tif ($unit == \"K\") {\n\treturn ($miles * 1.609344); \n\t} else if ($unit == \"N\") {\n\t return ($miles * 0.8684);\n\t} else {\n\t\treturn $miles;\n\t }\n\t}",
"function distance($lat1, $lon1, $lat2, $lon2) {\r\n\r\n\t $theta = $lon1 - $lon2;\r\n\t $dist = sin(deg2rad($lat1)) * sin(deg2rad($lat2)) + cos(deg2rad($lat1)) * cos(deg2rad($lat2)) * cos(deg2rad($theta));\r\n\t $dist = acos($dist);\r\n\t $dist = rad2deg($dist);\r\n\t $miles = $dist * 60 * 1.1515; \r\n\t return (round($miles * 1.609344)); // ajustement en KM\r\n\t}",
"function distance($tx, $rx, $unit = 'M') {\n\t\t// Calc LatLongs\n\t\t$my = qra2latlong($tx);\n\t\t$stn = qra2latlong($rx);\n\n\t\t// Feed in Lat Longs plus the unit type\n\t\ttry\n\t\t{\n\t\t\t$total_distance = distance($my[0], $my[1], $stn[0], $stn[1], $unit);\n\t\t}\n\t\tcatch (Exception $e)\n\t\t{\n\t\t\t$total_distance = 0;\n\t\t}\n\n\t\t// Return the distance\n\t\treturn $total_distance;\n\t}",
"public function asteiksi($rad) {\n echo $rad . \" radiaania on \" . rad2deg($rad) . \" astetta.<br>\"; \n }",
"function distance($lat1, $lon1, $lat2, $lon2, $unit) {\n if (($lat1 == $lat2) && ($lon1 == $lon2)) {\n return 0;\n }\n else {\n $theta = $lon1 - $lon2;\n $dist = sin(deg2rad($lat1)) * sin(deg2rad($lat2)) + cos(deg2rad($lat1)) * cos(deg2rad($lat2)) * cos(deg2rad($theta));\n $dist = acos($dist);\n $dist = rad2deg($dist);\n $miles = $dist * 60 * 1.1515;\n $unit = strtoupper($unit);\n\n if ($unit == \"K\") {\n return ($miles * 1.609344);\n } else if ($unit == \"N\") {\n return ($miles * 0.8684);\n } else {\n return $miles;\n }\n }\n}",
"function distance($lat1, $lon1, $lat2, $lon2, $unit) {\n\n $theta = $lon1 - $lon2;\n $dist = sin(deg2rad($lat1)) * sin(deg2rad($lat2)) + cos(deg2rad($lat1)) * cos(deg2rad($lat2)) * cos(deg2rad($theta));\n $dist = acos($dist);\n $dist = rad2deg($dist);\n $miles = $dist * 60 * 1.1515;\n $unit = strtoupper($unit);\n\n if ($unit == \"K\") {\n return ($miles * 1.609344);\n } else if ($unit == \"N\") {\n return ($miles * 0.8684);\n } else {\n return $miles;\n }\n }",
"public function radiaaneiksi($deg) {\n echo $deg . \" astetta on \" . deg2rad($deg) . \" radiaania.<br>\";\n }",
"function DistanceFromLatLonInKm(\n $latitudeFrom, $longitudeFrom, $latitudeTo, $longitudeTo, $earthRadius = 6371000)\n{\n // convert from degrees to radians\n $latFrom = deg2rad($latitudeFrom);\n $lonFrom = deg2rad($longitudeFrom);\n $latTo = deg2rad($latitudeTo);\n $lonTo = deg2rad($longitudeTo);\n\n $lonDelta = $lonTo - $lonFrom;\n $a = pow(cos($latTo) * sin($lonDelta), 2) +\n pow(cos($latFrom) * sin($latTo) - sin($latFrom) * cos($latTo) * cos($lonDelta), 2);\n $b = sin($latFrom) * sin($latTo) + cos($latFrom) * cos($latTo) * cos($lonDelta);\n\n $angle = atan2(sqrt($a), $b);\n return $angle * $earthRadius;\n}",
"function calcDistance(\n $latitudeFrom, $longitudeFrom, $latitudeTo, $longitudeTo, $earthRadius = 6371000)\n{\n $latFrom = deg2rad($latitudeFrom);\n $lonFrom = deg2rad($longitudeFrom);\n $latTo = deg2rad($latitudeTo);\n $lonTo = deg2rad($longitudeTo);\n\n $latDelta = $latTo - $latFrom;\n $lonDelta = $lonTo - $lonFrom;\n\n $angle = 2 * asin(sqrt(pow(sin($latDelta / 2), 2) +\n cos($latFrom) * cos($latTo) * pow(sin($lonDelta / 2), 2)));\n return $angle * $earthRadius;\n}",
"public function radius() : float;",
"private static function calcRadius( $point = array( 0, 0 ), $r )\n {\n $lat1 = $point[0];\n $lon1 = $point[1];\n\n $d = 0.00015; //Umkreis\n $r = 6.371; //Erdradius in km\n\n $latN = rad2deg(asin(sin(deg2rad($lat1)) * cos($d / $r) + cos(deg2rad($lat1)) * sin($d / $r) * cos(deg2rad(0))));\n $latS = rad2deg(asin(sin(deg2rad($lat1)) * cos($d / $r) + cos(deg2rad($lat1)) * sin($d / $r) * cos(deg2rad(180))));\n $lonE = rad2deg(deg2rad($lon1) + atan2(sin(deg2rad(90)) * sin($d / $r) * cos(deg2rad($lat1)), cos($d / $r) - sin(deg2rad($lat1)) * sin(deg2rad($latN))));\n $lonW = rad2deg(deg2rad($lon1) + atan2(sin(deg2rad(270)) * sin($d / $r) * cos(deg2rad($lat1)), cos($d / $r) - sin(deg2rad($lat1)) * sin(deg2rad($latN))));\n\n return array( 'lat_north' => $latN, 'lat_south' => $latS, 'lng_east' => $lonE, 'lng_west' => $lonW );\n }",
"static function rotationZ($rad)\r\n {\r\n $c = cos($rad);\r\n $s = sin($rad);\r\n self::$m_rotZ[0] = $c;\r\n self::$m_rotZ[1] = -$s;\r\n self::$m_rotZ[4] = $s;\r\n self::$m_rotZ[5] = $c;\r\n return self::$m_rotZ;\r\n }",
"public function getCircumference()\n {\n return 2 * pi() * $this->radius;\n }",
"function destination($lat,$lon, $bearing, $distance,$units=\"mi\") {\n\t $radius = strcasecmp($units, \"km\") ? 3963.19 : 6378.137;\n\t $rLat = deg2rad($lat);\n\t $rLon = deg2rad($lon);\n\t $rBearing = deg2rad($bearing);\n\t $rAngDist = $distance / $radius;\n\n\t $rLatB = asin(sin($rLat) * cos($rAngDist) + \n\t cos($rLat) * sin($rAngDist) * cos($rBearing));\n\n\t $rLonB = $rLon + atan2(sin($rBearing) * sin($rAngDist) * cos($rLat), \n\t cos($rAngDist) - sin($rLat) * sin($rLatB));\n\n\t return array(\"lat\" => rad2deg($rLatB), \"lon\" => rad2deg($rLonB));\n\t}",
"function distanceCalculation($point1_lat, $point1_long, $point2_lat, $point2_long, $unit = 'km', $decimals = 2) {\n\t$degrees = rad2deg(acos((sin(deg2rad($point1_lat))*sin(deg2rad($point2_lat))) + (cos(deg2rad($point1_lat))*cos(deg2rad($point2_lat))*cos(deg2rad($point1_long-$point2_long)))));\n \n\t// Convert the distance in degrees to the chosen unit (kilometres, miles or nautical miles)\n\tswitch($unit) {\n\t\tcase 'km':\n\t\t\t$distance = $degrees * 111.13384; // 1 degree = 111.13384 km, based on the average diameter of the Earth (12,735 km)\n\t\t\tbreak;\n\t\tcase 'mi':\n\t\t\t$distance = $degrees * 69.05482; // 1 degree = 69.05482 miles, based on the average diameter of the Earth (7,913.1 miles)\n\t\t\tbreak;\n\t\tcase 'nmi':\n\t\t\t$distance = $degrees * 59.97662; // 1 degree = 59.97662 nautic miles, based on the average diameter of the Earth (6,876.3 nautical miles)\n\t}\n\treturn round($distance, $decimals);\n}",
"static function get_distance(midgardmvc_helper_location_spot $from, midgardmvc_helper_location_spot $to, $unit = 'K', $round = true)\n {\n return $from->distance_to($to, $unit, $round);\n }"
] | [
"0.56683624",
"0.562752",
"0.5577594",
"0.5567227",
"0.554785",
"0.5525456",
"0.55108",
"0.5448753",
"0.5367243",
"0.53548753",
"0.5345324",
"0.53410125",
"0.5339005",
"0.5332021",
"0.5318061",
"0.5290196",
"0.52883166",
"0.52329546",
"0.5218386",
"0.5206848",
"0.52056277",
"0.51547027",
"0.51328117",
"0.51314104",
"0.51248515",
"0.5113478",
"0.5109788",
"0.509682",
"0.5091128",
"0.50640225"
] | 0.6089196 | 0 |
Gets visitor country code | protected function getVisitorCountry()
{
return strtolower(geoip()->getLocation()->iso_code);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getVisitorCountryCode() {\n\t\t\n\t\treturn isset($_SERVER[\"HTTP_CF_IPCOUNTRY\"]) ? $_SERVER[\"HTTP_CF_IPCOUNTRY\"] : \"CA\";\n\t\t\n\t}",
"public function countryCode();",
"static function getCountryCode() {\n $ch = curl_init('http://freegeoip.net/json/'.serverValue('REMOTE_ADDR'));\n curl_setopt($ch,CURLOPT_RETURNTRANSFER,true);\n $json = '';\n if (($json = curl_exec($ch)) !== false) {\n // return country code\n $country = json_decode($json,true)['country_code'];\n // Save for one month\n setcookie(\"country\",$country,time()+2592000);\n } else {\n // return false if api failed\n $country = \"LocalHost_CountryCode\";\n }\n curl_close($ch);\n return (strlen($country) > 0) ? $country : 'LocalHost_CountryCode' ;\n }",
"public function getCountry_code() {\r\n\t\treturn $this->country_code;\r\n\t}",
"public function getCountryCode();",
"private function getCountryCode() {\n\n return substr($this->vatId['vatId'], 0, 2);\n }",
"public static function getCountry()\n {\n self::loadLocation();\n\n return session()->get('location.country') ?: null;\n }",
"function ip_visitor_country()\n{\n\n $client = @$_SERVER['HTTP_CLIENT_IP'];\n $forward = @$_SERVER['HTTP_X_FORWARDED_FOR'];\n $remote = $_SERVER['REMOTE_ADDR'];\n $country = \"Unknown\";\n\n if(filter_var($client, FILTER_VALIDATE_IP))\n {\n $ip = $client;\n }\n elseif(filter_var($forward, FILTER_VALIDATE_IP))\n {\n $ip = $forward;\n }\n else\n {\n $ip = $remote;\n }\n $ch = curl_init();\n curl_setopt($ch, CURLOPT_URL, \"http://www.geoplugin.net/json.gp?ip=\".$ip);\n curl_setopt($ch, CURLOPT_HEADER, 0);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);\n $ip_data_in = curl_exec($ch); // string\n curl_close($ch);\n\n $ip_data = json_decode($ip_data_in,true);\n $ip_data = str_replace('"', '\"', $ip_data); // for PHP 5.2 see stackoverflow.com/questions/3110487/\n\n if($ip_data && $ip_data['geoplugin_countryCode'] != null) {\n $country = $ip_data['geoplugin_countryCode'];\n }\n\n return $country;\n}",
"function getCountrySource()\n{\n\n\tif(trackIP() == 'IN')\n\t{\n\t\treturn 'IND';\n\t}\n\telse\n\treturn 'FOR';\n}",
"public function getCountryCode(): string\n {\n if ($this->timezone === '') {\n return CountryUnknown::COUNTRY_CODE_IV;\n }\n\n if ($this->timezone === 'Europe/Kyiv') {\n $this->timezone = 'Europe/Kiev';\n }\n\n try {\n $dateTimeZone = new DateTimeZone($this->timezone);\n $location = $dateTimeZone->getLocation();\n\n if ($location === false) {\n return CountryUnknown::COUNTRY_CODE_IV;\n }\n\n $countryCode = $location['country_code'];\n\n if ($countryCode === '??') {\n return CountryUnknown::COUNTRY_CODE_UK;\n }\n\n return $countryCode;\n } catch (Exception) {\n return CountryUnknown::COUNTRY_CODE_IV;\n }\n }",
"public function getConnectingCountryCode() {\n\t\t$headers = $this->requestAdapter->getHeaders();\n\t\treturn $headers['cf-ipcountry'];\n\t}",
"public function getCountryCode(): string\n {\n return $this->{self::COUNTRY_CODE};\n }",
"public function getCountryCode()\n {\n $cookie = Mage::getModel('core/cookie')->get('ipar_iparcelSession');\n $json = json_decode($cookie);\n $magentoDefault = Mage::getStoreConfig('general/country/default');\n\n if ($json == false || is_null($json->locale)) {\n $countryCode = $magentoDefault;\n } else {\n $countryCode = $json->locale;\n }\n\n return $countryCode;\n }",
"public function getCountry() : string {\n return $this->country;\n }",
"public function getCountry()\n\t{\n\t\treturn $this->getKeyValue('country'); \n\n\t}",
"function get_country()\n {\n return ($this->country);\n }",
"public function getCountryCode()\n {\n return $this->country_code;\n }",
"public function getCountryCode()\n {\n return $this->country_code;\n }",
"public function getCountryCode(): string\n {\n return $this->data[self::FIELD_COUNTRY_CODE];\n }",
"abstract public function countryCode();",
"public function getCountryCode()\n {\n return isset($this->vatId['vatId']) ? substr($this->vatId['vatId'], 0, 2) : null;\n }",
"public function getCountry();",
"public function getCountry();",
"public function getCountry();",
"public function getCountryCode(): int;",
"public function getCountryCode() {\r\n\t\treturn $this->country_code;\r\n\t}",
"public function getCountry()\n {\n return $this->country;\n }",
"public function getCountry()\n {\n return $this->country;\n }",
"public function getCountry()\n {\n return $this->country;\n }",
"public function getCountry()\n {\n return $this->country;\n }"
] | [
"0.8224562",
"0.8165748",
"0.79602635",
"0.78863245",
"0.7808391",
"0.77393866",
"0.77351767",
"0.7714888",
"0.77052945",
"0.76410365",
"0.7609954",
"0.76062715",
"0.758478",
"0.7568925",
"0.7542878",
"0.7538561",
"0.75235397",
"0.75235397",
"0.75218475",
"0.7515891",
"0.7512148",
"0.74829257",
"0.74829257",
"0.74829257",
"0.74811697",
"0.74721366",
"0.7417059",
"0.7417059",
"0.7417059",
"0.7417059"
] | 0.86287004 | 0 |
Forcibly inserts the specified entity in the cache. This is an advanced function and should be used sparingly. | public function forceCache(Entity $entity)
{
$keyField = $this->keyField;
$key = $entity->$keyField;
$this->entities[$key] = $entity;
unset($this->falseEntities[$key]);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function updateAndCacheEntity($cacheKey,$time,$entity){\r\n $this->updateEntity($entity);\r\n $cache=Zend_Registry::get(\"cache\");\r\n if($cache){\r\n if(!$time) $time=self::cacheSeconds;\r\n $cache->save($entity,$cacheKey,array($this->_name),$time);\r\n }\r\n }",
"abstract protected function insert($entity);",
"public function insert($entity) {\n \treturn parent::insert($this->hydrator->extract($entity));\n }",
"public function insert($entity);",
"function insertEntity($entity) \n {\n $this->manager->persist($entity);\n // actually executes the queries (i.e. the INSERT query)\n $this->manager->flush();\n }",
"function hook_entity_insert(\\Drupal\\Core\\Entity\\EntityInterface $entity) {\n // Insert the new entity into a fictional table of all entities.\n \\Drupal::database()->insert('example_entity')\n ->fields([\n 'type' => $entity->getEntityTypeId(),\n 'id' => $entity->id(),\n 'created' => REQUEST_TIME,\n 'updated' => REQUEST_TIME,\n ])\n ->execute();\n}",
"public function add(object $entity): void;",
"protected static function addCacheOfEntityKey($key, $value)\n {\n self::$entityKeyCache[$key] = $value;\n }",
"function hook_ENTITY_TYPE_insert(\\Drupal\\Core\\Entity\\EntityInterface $entity) {\n // Insert the new entity into a fictional table of this type of entity.\n \\Drupal::database()->insert('example_entity')\n ->fields([\n 'id' => $entity->id(),\n 'created' => REQUEST_TIME,\n 'updated' => REQUEST_TIME,\n ])\n ->execute();\n}",
"public function createItemByEntity($entity){ \n $this->entityManager->persist($entity);\n $this->entityManager->flush();\n }",
"abstract public function add($entity);",
"public function addEntity(?Identifiable $entity): void\n {\n if ($entity !== null && $entity->getType() == $this->type) {\n $this->entities[] = $entity;\n }\n }",
"protected function persist($entity)\n {\n $oid = spl_object_hash($entity);\n if (!isset($this->newObjects[$oid])) {\n $this->newObjects[$oid] = $entity;\n }\n }",
"function insert(EntityPost $entity)\n {\n $givenIdentifier = $entity->getUid();\n $givenIdentifier = $this->attainNextIdentifier($givenIdentifier);\n\n if (!$dateCreated = $entity->getDateTimeCreated())\n $dateCreated = new \\DateTime();\n\n\n # Convert given entity to Persistence Entity Object To Insert\n $entityMongo = new Mongo\\EntityPost(new HydrateGetters($entity));\n $entityMongo->setUid($givenIdentifier);\n $entityMongo->setDateTimeCreated($dateCreated);\n\n # Persist BinData Record\n $r = $this->_query()->insertOne($entityMongo);\n\n\n # Give back entity with given id and meta record info\n $entity = clone $entity;\n $entity->setUid( $r->getInsertedId() );\n return $entity;\n }",
"public function Add($entity) {\r\n }",
"public function insert(BaseEntity $entity) {\n\t}",
"public function storeEntity( EntityDocument $entity ): void;",
"public function Add($entity) {\n }",
"public function add (object $entity);",
"private function _persistAndFlush( $entity ) {\n \t\t$this->em->persist( $entity );\n try {\n\t $this->em->flush();\n\t } catch( Exception $e ) {\n\t\t if( $this->environment == 'dev' ) {\n\t\t \tthrow new Exception('Entity Manager Error: '. $e->getMessage());\n\t\t }\n\t\t\tthrow new Exception( 'Unknown EM error: '. $e->getCode() .' - '. $e->getMessage() );\n\t }\n\t\treturn $entity;\n }",
"function add( $entity );",
"function add($entity);",
"function hook_entity_insert($entity, $type) {\n // Insert the new entity into a fictional table of all entities.\n $info = entity_get_info($type);\n list($id) = entity_extract_ids($type, $entity);\n db_insert('example_entity')\n ->fields(array(\n 'type' => $type,\n 'id' => $id,\n 'created' => REQUEST_TIME,\n 'updated' => REQUEST_TIME,\n ))\n ->execute();\n}",
"public function add(EntityInterface $entity);",
"public function upsert(EntityInterface $entity, array $options = []);",
"public function persist($entity){\n\t\t// Starting a transaction if not started yet.\n\t\tif(!$this->transactionStarted){\n\t\t\t$this->transactionStarted = true;\n\t\t\t$this->db->execute('START TRANSACTION');\n\t\t}\n\t\t\n\t\t$entityColumns = $this->getColumns();\n\t\t\n\t\t// Creating a query builder.\n if($entity->isNew()){\n \t$qb = new InsertQueryBuilder($this->getTable());\n }else{\n \t$qb = new UpdateQueryBuilder($this->getTable());\n\t\t\t\n\t\t\t// If the query is an update, we have to add a WHERE clause.\n\t\t\tforeach($this->getKey() as $key){\n $getter = 'get'.ucwords($key);\n \n\t\t\t\t$qb->where($entityColumns[$key] . '=:whereparam' . $key);\n\t\t\t\t$qb->setParam('whereparam' . $key,$entity->$getter());\n }\n }\n\t\t\n\t\t// Adding the values for each attribute.\n foreach($entityColumns as $objCol=>$sqlCol){\n $getter = 'get'.ucwords($objCol);\n\t\t\t$value = $entity->$getter();\n\t\t\t\n\t\t\t// Adding the attribute to the query only if not null.\n\t\t\tif($value !== null){\n \t\t$qb->addColumn($sqlCol,':valueparam'.$objCol);\n\t\t\t\t$qb->setParam('valueparam' . $objCol,$entity->$getter());\n\t\t\t}\n }\n\t\t\n\t\t$query = $qb->getQuery();\n\t\t\n if($this->db->execute($query) == 1){\n \t// Updating the entity ID if newly created.\n\t\t\tif($entity->isNew()){\n \t$entity->setId($this->db->insertId());\t\n\t\t\t}\n\t\t\treturn true;\n }else{\n \treturn false;\n }\n\t}",
"public function add(EntityInterface $entity):self;",
"function save(EntityPost $entity)\n {\n if ($entity->getUid()) {\n // It Must Be Update\n\n /* Currently With Version 1.1.2 Of MongoDB driver library\n * Entity Not Replaced Entirely\n *\n * $this->_query()->updateOne(\n [\n '_id' => $entity->getUid(),\n ]\n , $entity\n , ['upsert' => true]\n );*/\n\n $this->_query()->deleteOne([\n '_id' => $this->attainNextIdentifier( $entity->getUid() ),\n ]);\n }\n\n $entity = $this->insert($entity);\n return $entity;\n }",
"function persist($entity);",
"public function put(Entity $entity)\n {\n return $this->curlSend($entity, 'PUT');\n }"
] | [
"0.6397151",
"0.63647527",
"0.6229213",
"0.61960906",
"0.6134933",
"0.60748625",
"0.5958106",
"0.59078497",
"0.590518",
"0.5833488",
"0.5821964",
"0.5787301",
"0.57644236",
"0.5716182",
"0.5661273",
"0.55858004",
"0.55827814",
"0.5578017",
"0.5565415",
"0.5563101",
"0.5520681",
"0.5495437",
"0.5487101",
"0.54674256",
"0.54570264",
"0.5439878",
"0.53720623",
"0.53673804",
"0.5366153",
"0.5351266"
] | 0.71602696 | 0 |
test count with Filtertered | public function testCountFiltered()
{
$this->assertSame(1, $this->repository->count('2', 'pdf'));
$this->assertSame(5, $this->repository->count('2', 'image'));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function filteredCount();",
"public function count($filter = []): int;",
"public function count();",
"public function count();",
"public function count();",
"public function count();",
"public function count();",
"public function count();",
"public function count();",
"public function count();",
"public function count();",
"public function count();",
"public function getCount(UserFilter $filter): int;",
"public function count()\n {\n return count($this->filtered);\n }",
"function count_filtered_sec(){\n\n\t\t\t/* mga list of Q*/\n\t\t\t$this->get_dataTable_q();\n\n\t\t\t/*taga select nung mga Q*/\n\t\t\t$Q = $this->db->get();\n\t\t\treturn $Q->num_rows();\n\t\t}",
"public function count($filter = FALSE)\n\t{\n\t\treturn count($this->filter_items($filter));\n\t}",
"public function countOffers(\\Closure $filter);",
"public function count() {}",
"public function count() {}",
"public function count() {}",
"public function count() {}",
"public function count_all($filter = FALSE)\n\t{\n\t\t$count = 0;\n\t\t\n\t\tforeach ($this->filter_items($filter) as $item)\n\t\t{\n\t\t\t$count += $item->quantity();\n\t\t}\n\t\t\n\t\treturn $count;\n\t}",
"function count_filtered()\n\t{\n\t\t$this->_get_datatables_query();\n\t\t$query = $this->db->get();\n\t\treturn $query->num_rows();\n\t}",
"function test_record_count_and_total_count_with_filter(){\n\t\tself::clear_get_values();\n\n\t\tadd_filter('frm_display_entry_content', 'frm_get_current_entry_num_out_of_total', 20, 7);\n\n\t\t// Check page 1, page size of 1\n\t\t$dynamic_view = self::get_view_by_key( 'dynamic-view' );\n\t\t$dynamic_view->frm_page_size = 1;\n\t\t$string = 'Viewing entry 1 to 1 (of 3 entries)';\n\t\t$d = self::get_default_args( $dynamic_view, array( 'Jamie', $string ), array( 'Steph', 'Steve' ) );\n\t\tself::run_get_display_data_tests( $d, 'view with record_count and total_count test' );\n\n\t\t// Check page 2, page size of 1\n\t\t$_GET['frm-page-'. $dynamic_view->ID] = 2;\n\t\t$string = 'Viewing entry 2 to 2 (of 3 entries)';\n\t\t$dynamic_view = self::reset_view( 'dynamic-view' );\n\t\t$dynamic_view->frm_page_size = 1;\n\t\t$d = self::get_default_args( $dynamic_view, array( 'Steph', $string ), array( 'Jamie', 'Steve' ) );\n\t\tself::run_get_display_data_tests( $d, 'view with record_count and total_count test 2' );\n\n\t\t// Check page 1 with a page size of 2\n\t\t$_GET['frm-page-'. $dynamic_view->ID] = 1;\n\t\t$dynamic_view = self::reset_view( 'dynamic-view' );\n\t\t$dynamic_view->frm_page_size = 2;\n\t\t$string = 'Viewing entry 1 to 2 (of 3 entries)';\n\t\t$d = self::get_default_args( $dynamic_view, array( 'Jamie', 'Steph', $string ), array( 'Steve' ) );\n\t\tself::run_get_display_data_tests( $d, 'view with record_count and total_count test 3' );\n\t}",
"public function count(?callable $filter = null): int\n\t{\n\t\tif ($filter) {\n\t\t\treturn $this->clone()->filter($filter)->count();\n\t\t}\n\n\t\treturn count($this->collection);\n\t}",
"public function count_filtered(string $author_name):int;",
"public function count()\n {\n $arr = $this->applyFilters();\n if (count($this->group)>0)\n $arr = $this->applyGroup($arr);\n if (count($this->tree)>0)\n $arr = $this->applyTree($arr);\n $this->reset();\n return count($arr);\n }",
"public function testCount(): void\n {\n self::assertSame(count($this->value), $this->class->count());\n }",
"public function testUserCount()\n {\n $users=User::all();\n $users->count();\n $this->assertEquals(50,count($users),\"Should return 50 users\");\n }",
"public function countActivity($additionActivityFilter = array());"
] | [
"0.8240692",
"0.7372956",
"0.66635734",
"0.66635734",
"0.66635734",
"0.66635734",
"0.66635734",
"0.66635734",
"0.66635734",
"0.66635734",
"0.66635734",
"0.66635734",
"0.66192895",
"0.65983164",
"0.6588036",
"0.6473053",
"0.6470916",
"0.6461827",
"0.6461827",
"0.6461827",
"0.6461827",
"0.6426158",
"0.6318916",
"0.6309133",
"0.62811714",
"0.6266185",
"0.62553585",
"0.6190293",
"0.6183141",
"0.61827505"
] | 0.81998277 | 1 |
Compute the check digit | function GetCheckDigit($barcode)
{
$sum=0;
for($i=1;$i<=11;$i+=2)
$sum+=3*$barcode[$i];
for($i=0;$i<=10;$i+=2)
$sum+=$barcode[$i];
$r=$sum%10;
if($r>0)
$r=10-$r;
return $r;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function GetCheckDigit($barcode) {\n $sum = 0;\n for ($i = 1; $i <= 11; $i+=2)\n $sum+=3 * $barcode[$i];\n for ($i = 0; $i <= 10; $i+=2)\n $sum+=$barcode[$i];\n $r = $sum % 10;\n if ($r > 0)\n $r = 10 - $r;\n return $r;\n }",
"function getCheckDigit($digits)\r\n\t{\r\n\t\t$odd_total = 0;\r\n\t\t$even_total = 0;\r\n\r\n\t\tfor( $i=0; $i < strlen($digits); $i++)\r\n\t\t{\r\n\t\t\tif((($i+1)%2) == 0)\r\n\t\t\t{\r\n\t\t\t\t/* Sum even digits */\r\n\t\t\t\t$even_total += $digits[$i];\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\t/* Sum odd digits */\r\n\t\t\t\t$odd_total += $digits[$i];\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t$sum = (3 * $odd_total) + $even_total;\r\n\r\n\t\t/* Get the remainder MOD 10*/\r\n\t\t$check_digit = $sum % 10;\r\n\r\n\t\t/* If the result is not zero, subtract the result from ten. */\r\n\t\treturn ($check_digit > 0) ? 10 - $check_digit : $check_digit;\r\n\t}",
"function TestCheckDigit($barcode) {\n $sum = 0;\n for ($i = 1; $i <= 11; $i+=2)\n $sum+=3 * $barcode[$i];\n for ($i = 0; $i <= 10; $i+=2)\n $sum+=$barcode[$i];\n return ($sum + $barcode[12]) % 10 == 0;\n }",
"private static function calculateCheckDigit(string $data): int\n {\n // The digits are multiplied by 3 and 1 alternately from right to left.\n // To make it work with ean-8 from left to right, prepend a 0\n if(Str::length($data) === 7) {\n $data = '0' . $data;\n }\n $check_sum = 0;\n foreach (str_split($data) as $index => $digit) {\n if ((int)$digit > 0) {\n $check_sum += $index % 2 === 0 ? (int)$digit : (int)$digit * 3;\n }\n }\n // subtract this sum from the next multiple of ten and that's your check digit!\n return ((int)ceil($check_sum / 10) * 10) - $check_sum;\n }",
"function HRVATCheckDigit($vatnumber) {\r\n\r\n $product = 10;\r\n $sum = 0;\r\n $checkdigit = 0;\r\n\r\n for ($i = 0; $i < 10; $i++) {\r\n\r\n\t// Extract the next digit and implement the algorithm\r\n\t$sum = ($vatnumber[$i] + $product) % 10;\r\n\tif ($sum == 0) {$sum = 10; }\r\n\t$product = (2 * $sum) % 11;\r\n }\r\n\r\n // Now check that we have the right check digit\r\n if (($product + substr($vatnumber,10,1)*1) % 10 == 1)\r\n\treturn true;\r\n else\r\n\treturn false;\r\n}",
"function TestCheckDigit($barcode)\n\t{\n\t\t$sum=0;\n\t\tfor($i=1;$i<=11;$i+=2)\n\t\t\t$sum+=3*$barcode[$i];\n\t\tfor($i=0;$i<=10;$i+=2)\n\t\t\t$sum+=$barcode[$i];\n\t\treturn ($sum+$barcode[12])%10==0;\n\t}",
"function RSVATCheckDigit($vatnumber) {\r\n\r\n $product = 10;\r\n $sum = 0;\r\n $checkdigit = 0;\r\n\r\n for ($i = 0; $i < 8; $i++) {\r\n\r\n\t// Extract the next digit and implement the algorithm\r\n\t$sum = ($vatnumber[$i] + $product) % 10;\r\n\tif ($sum == 0) { $sum = 10; }\r\n\t$product = (2 * $sum) % 11;\r\n }\r\n\r\n // Now check that we have the right check digit\r\n if (($product + $vatnumber[8] * 1) % 10 == 1)\r\n\treturn true;\r\n else\r\n\treturn false;\r\n}",
"function DEVATCheckDigit ($vatnumber) {\r\n\r\n $product = 10;\r\n $sum = 0;\r\n $checkdigit = 0;\r\n for ($i = 0; $i < 8; $i++) {\r\n\r\n // Extract the next digit and implement perculiar algorithm!.\r\n $sum = ($vatnumber[$i] + $product) % 10;\r\n if ($sum == 0) {$sum = 10;}\r\n $product = (2 * $sum) % 11;\r\n }\r\n\r\n // Establish check digit.\r\n if (11 - $product == 10) {$checkdigit = 0;} else {$checkdigit = 11 - $product;}\r\n\r\n // Compare it with the last digit of the VAT number. If the same,\r\n // then it is a valid check digit.\r\n if ($checkdigit == substr($vatnumber,8,1))\r\n return true;\r\n else\r\n return false;\r\n\r\n}",
"private static function computeCheckDigit(string $kvnr)\n {\n // converts first character of KVNR to integer using ASCII\n $digitChar = ord($kvnr[0]) - 64;\n\n // checks if conversion gave expected values (A->1 ... Z->26)\n if ($digitChar <= 26 && $digitChar >= 1) {\n $kvnrDigits = [];\n\n // adds 0 left-padding for values less than 10\n $digitChar = str_pad(strval($digitChar), 2, \"0\", STR_PAD_LEFT);\n\n // sets first 2 element of digits array\n $kvnrDigits[] = intval($digitChar[0]);\n $kvnrDigits[] = intval($digitChar[1]);\n\n // sets last 8 element of digits array\n for ($i = 2; $i < 10; $i++) {\n $kvnrDigits[$i] = intval($kvnr[$i - 1]);\n }\n\n $kvnrDigitsWeighted = [];\n for ($i = 0; $i < 10; $i++) {\n // sets weight array: (1, 2, 1, 2, ...)\n $weight = ($i % 2 == 0) ? 1 : 2;\n\n // multiplies digit array with weight array\n $kvnrDigitWeighted = $kvnrDigits[$i] * $weight;\n\n // if resulting number is >= 10 then it's digit are summed\n $kvnrDigitsWeighted[$i] = array_sum(str_split($kvnrDigitWeighted));\n }\n\n // computes check digit by summing each item in array and applying module-10\n return array_sum($kvnrDigitsWeighted) % 10;\n }\n\n return -1;\n }",
"function generate_upc_checkdigit($upc_code)\n{\n $odd_total = 0;\n $even_total = 0;\n \n for($i=0; $i<11; $i++)\n {\n if((($i+1)%2) == 0) {\n /* Sum even digits */\n $even_total += $upc_code[$i];\n } else {\n /* Sum odd digits */\n $odd_total += $upc_code[$i];\n }\n }\n \n $sum = (3 * $odd_total) + $even_total;\n \n /* Get the remainder MOD 10*/\n $check_digit = $sum % 10;\n \n /* If the result is not zero, subtract the result from ten. */\n return ($check_digit > 0) ? 10 - $check_digit : $check_digit;\n}",
"function CHEVATCheckDigit($vatnumber) {\r\n // Extract the next digit and multiply by the counter.\r\n $multipliers = array(5,4,3,2,7,6,5,4);\r\n $total = 0;\r\n for ($i = 0; $i < 8; $i++)\r\n\t $total = $total + $vatnumber[$i] * $multipliers[$i];\r\n\r\n // Establish check digit.\r\n $total = 11 - $total % 11;\r\n if ($total == 10) return false;\r\n if ($total == 11) $total = 0;\r\n\r\n // Check to see if the check digit given is correct, If not, we have an error with the VAT number\r\n if ($total == substr($vatnumber, 8,1))\r\n\treturn true;\r\n else\r\n\treturn false;\r\n}",
"function DKVATCheckDigit ($vatnumber) {\r\n\r\n $total = 0;\r\n $multipliers = Array(2,7,6,5,4,3,2,1);\r\n\r\n // Extract the next digit and multiply by the counter.\r\n for ($i = 0; $i < 8; $i++) $total = $total + $vatnumber[$i] * $multipliers[$i];\r\n\r\n // Establish check digit.\r\n $total = $total % 11;\r\n\r\n // The remainder should be 0 for it to be valid..\r\n if ($total == 0)\r\n return true;\r\n else\r\n return false;\r\n}",
"function SIVATCheckDigit ($vatnumber)\r\n{\r\n\r\n\t$total = 0;\r\n\t$multipliers = Array(8,7,6,5,4,3,2);\r\n\r\n\t// Extract the next digit and multiply by the counter.\r\n\tfor ($i = 0; $i < 7; $i++) $total = $total + $vatnumber[$i] * $multipliers[$i];\r\n\r\n\t// Establish check digits by subtracting 97 from $total until negative.\r\n\t$total = 11 - $total % 11;\r\n\tif ($total > 9) {$total = 0;};\r\n\r\n\t// Compare the number with the last character of the VAT number. If it is the\r\n\t// same, then it's a valid check digit.\r\n\tif ($total == substr($vatnumber,7,1))\r\n\t\treturn true;\r\n\telse\r\n\t\treturn false;\r\n}",
"function HUVATCheckDigit ($vatnumber)\r\n{\r\n\r\n\t$total = 0;\r\n\t$multipliers = Array(9,7,3,1,9,7,3);\r\n\r\n\t// Extract the next digit and multiply by the counter.\r\n\tfor ($i = 0; $i < 7; $i++) $total = $total + $vatnumber[$i] * $multipliers[$i];\r\n\r\n\t// Establish check digit.\r\n\t$total = 10 - $total % 10;\r\n\tif ($total == 10) $total = 0;\r\n\r\n\t// Compare it with the last character of the VAT number. If it is the same,\r\n\t// then it's a valid check digit.\r\n\tif ($total == substr($vatnumber,7,1))\r\n\t\treturn true;\r\n\telse\r\n\t\treturn false;\r\n}",
"function EEVATCheckDigit ($vatnumber) {\r\n\r\n $total = 0;\r\n $multipliers = Array(3,7,1,3,7,1,3,7);\r\n\r\n // Extract the next digit and multiply by the counter.\r\n for ($i = 0; $i < 8; $i++) $total = $total + $vatnumber[$i] * $multipliers[$i];\r\n\r\n // Establish check digits using modulus 10.\r\n $total = 10 - $total % 10;\r\n if ($total == 10) $total = 0;\r\n\r\n // Compare it with the last character of the VAT number. If it is the same,\r\n // then it's a valid check digit.\r\n if ($total == substr($vatnumber,8,1))\r\n return true;\r\n else\r\n return false;\r\n\r\n}",
"function NLVATCheckDigit ($vatnumber)\r\n{\r\n\r\n\t$total = 0; //\r\n\t$multipliers = Array(9,8,7,6,5,4,3,2);\r\n\r\n\t// Extract the next digit and multiply by the counter.\r\n\tfor ($i = 0; $i < 8; $i++) $total = $total + $vatnumber[$i] * $multipliers[$i];\r\n\r\n\t// Establish check digits by getting modulus 11.\r\n\t$total = $total % 11;\r\n\tif ($total > 9) {$total = 0;};\r\n\r\n\t// Compare it with the last character of the VAT number. If it is the same,\r\n\t// then it's a valid check digit.\r\n\tif ($total == substr($vatnumber,8,1))\r\n\t\treturn true;\r\n\telse\r\n\t\treturn false;\r\n}",
"function verification_caractere_alphanumerique($chaine){\n $taille=taille_chaine($chaine);\n for ($j=0; $j < $taille; $j++) { \n $i = 1;\n for( $x = \"0\"; $i <= 10; $x++ ) {\n if ($chaine[$j]==$x) {\n $resultat=1;\n }\n $i++;\n }\n }\n return $resultat;\n }",
"function UKVATCheckDigit ($vatnumber)\r\n{\r\n\t$multipliers = Array(8,7,6,5,4,3,2);\r\n\r\n\t// Government departments\r\n\tif ($vatnumber.substr(0,2) == 'GD')\r\n\t{\r\n\t\tif ($vatnumber.substr(2,3) < 500)\r\n\t\t\treturn true;\r\n\t\telse\r\n\t\t\treturn false;\r\n\t}\r\n\r\n\t// Health authorities\r\n\tif ($vatnumber.substr(0,2) == 'HA')\r\n\t{\r\n\t\tif ($vatnumber.substr(2,3) > 499)\r\n\t\t\treturn true;\r\n\t\telse\r\n\t\t\treturn false;\r\n\t}\r\n\r\n\t// Standard and commercial numbers\r\n\t\t$total = 0;\r\n\r\n\t\t// 0 VAT numbers disallowed!\r\n\t\tif (($vatnumber + 0) == 0) return false;\r\n\r\n\t\t// Check range is OK for modulus 97 calculation\r\n\t\t$no = substr($vatnumber, 0,7);\r\n\r\n\t\t// Extract the next digit and multiply by the counter.\r\n\t\tfor ($i = 0; $i < 7; $i++) $total = $total + $vatnumber[$i] * $multipliers[$i];\r\n\r\n\t\t// Old numbers use a simple 97 modulus, but new numbers use an adaptation of that (less\r\n\t\t// 55). Our VAT number could use either system, so we check it against both.\r\n\r\n\t\t// Establish check digits by subtracting 97 from $total until negative.\r\n\t\t$cd = $total;\r\n\t\twhile ($cd > 0) {$cd = $cd - 97;}\r\n\r\n\t\t// Get the absolute value and compare it with the last two characters of the\r\n\t\t// VAT number. If the same, then it is a valid traditional check digit.\r\n\t\t$cd = abs($cd);\r\n\t\tif ($cd == substr($vatnumber,7,2) && $no < 9990001 && ($no < 100000 || $no > 999999) && ($no < 9490001 || $no > 9700000)) return true;\r\n\r\n\t\t// Now try the new method by subtracting 55 from the check digit if we can - else add 42\r\n\t\tif ($cd >= 55)\r\n\t\t\t$cd = $cd - 55;\r\n\t\telse\r\n\t\t\t$cd = $cd + 42;\r\n\r\n\t\tif ($cd == substr($vatnumber,7,2) && $no > 1000000)\r\n\t\t\treturn true;\r\n\t\telse\r\n\t\t\treturn false;\r\n\r\n\t// We don't check 12 and 13 digit UK numbers - not only can we not find any,\r\n\t// but the information found on the format is contradictory.\r\n\r\n\treturn true;\r\n}",
"function MTVATCheckDigit ($vatnumber)\r\n{\r\n\r\n\t$total = 0;\r\n\t$multipliers = Array(3,4,6,7,8,9);\r\n\r\n\t// Extract the next digit and multiply by the counter.\r\n\tfor ($i = 0; $i < 6; $i++) $total = $total + $vatnumber[$i] * $multipliers[$i];\r\n\r\n\t// Establish check digits by getting modulus 37.\r\n\t$total = 37 - $total % 37;\r\n\r\n\t// Compare it with the last character of the VAT number. If it is the same,\r\n\t// then it's a valid check digit.\r\n\tif ($total == substr($vatnumber,6,2) * 1)\r\n\t\treturn true;\r\n\telse\r\n\t\treturn false;\r\n}",
"function ITVATCheckDigit ($vatnumber)\r\n{\r\n\r\n\t$total = 0;\r\n\t$multipliers = Array(1,2,1,2,1,2,1,2,1,2);\r\n\t$temp;\r\n\r\n\t// The last three digits are the issuing office, and cannot exceed more 201\r\n\t$temp= substr($vatnumber, 0,7);\r\n\tif ($temp==0) return false;\r\n\t$temp=substr($vatnumber,7,3);\r\n\tif (($temp<1) || ($temp>201) && $temp != 999 && $temp != 888) return false;\r\n\r\n\t// Extract the next digit and multiply by the appropriate\r\n\tfor ($i = 0; $i < 10; $i++)\r\n\t{\r\n\t\t$temp = $vatnumber[$i] * $multipliers[$i];\r\n\t\tif ($temp > 9)\r\n\t\t\t$total = $total + floor($temp/10) + $temp % 10;\r\n\t\telse\r\n\t\t\t$total = $total + $temp;\r\n\t}\r\n\r\n\t// Establish check digit.\r\n\t$total = 10 - $total % 10;\r\n\tif ($total > 9) {$total = 0;};\r\n\r\n\t// Compare it with the last character of the VAT number. If it is the same,\r\n\t// then it's a valid check digit.\r\n\tif ($total == substr($vatnumber,10,1))\r\n\t\treturn true;\r\n\telse\r\n\t\treturn false;\r\n\r\n}",
"function PTVATCheckDigit ($vatnumber)\r\n{\r\n\r\n\t$total = 0;\r\n\t$multipliers = Array(9,8,7,6,5,4,3,2);\r\n\r\n\t// Extract the next digit and multiply by the counter.\r\n\tfor ($i = 0; $i < 8; $i++) $total = $total + $vatnumber[$i] * $multipliers[$i];\r\n\r\n\t// Establish check digits subtracting modulus 11 from 11.\r\n\t$total = 11 - $total % 11;\r\n\tif ($total > 9) {$total = 0;};\r\n\r\n\t// Compare it with the last character of the VAT number. If it is the same, then it's a valid\r\n\t// check digit.\r\n\tif ($total == substr($vatnumber,8,1))\r\n\t\treturn true;\r\n\telse\r\n\t\treturn false;\r\n}",
"function CYVATCheckDigit ($vatnumber) {\r\n\r\n // Not allowed to start with '12'\r\n if (substr($vatnumber, 0,2) == '12') return false;\r\n\r\n // Extract the next digit and multiply by the counter.\r\n $total = 0;\r\n for ($i = 0; $i < 8; $i++) {\r\n $temp = $vatnumber[$i];\r\n if ($i % 2 == 0) {\r\n switch ($temp) {\r\n case 0: $temp = 1; break;\r\n case 1: $temp = 0; break;\r\n case 2: $temp = 5; break;\r\n case 3: $temp = 7; break;\r\n case 4: $temp = 9; break;\r\n default: $temp = $temp*2 + 3;\r\n }\r\n }\r\n $total = $total + $temp;\r\n }\r\n\r\n // Establish check digit using modulus 26, and translate to char. equivalent.\r\n $total = $total % 26;\r\n $total = chr($total+65);\r\n\r\n // Check to see if the check digit given is correct\r\n if ($total == substr($vatnumber,8,1))\r\n return true;\r\n else\r\n return false;\r\n}",
"function FIVATCheckDigit ($vatnumber) {\r\n\r\n $total = 0;\r\n $multipliers = Array(7,9,10,5,8,4,2);\r\n\r\n // Extract the next digit and multiply by the counter.\r\n for ($i = 0; $i < 7; $i++) $total = $total + $vatnumber[$i] * $multipliers[$i];\r\n\r\n // Establish check digit.\r\n $total = 11 - $total % 11;\r\n if ($total > 9) {$total = 0;};\r\n\r\n // Compare it with the last character of the VAT number. If it is the same,\r\n // then it's a valid check digit.\r\n if ($total == substr($vatnumber,7,1))\r\n return true;\r\n else\r\n return false;\r\n}",
"public function calculateCheckDigit(string $number): string\n {\n $this->assertNumber($number);\n\n $sum = 0;\n\n foreach (array_reverse(str_split($number)) as $pos => $digit) {\n $sum += $digit * $this->getWeight($pos, 2);\n }\n\n // Calculate check digit from remainder\n return self::$remainderToCheck[11 - $sum % 11];\n }",
"function luhn_check($cc_num) {\n\n\t // Set the string length and parity\n\t $number_length=strlen($cc_num);\n\t $parity=$number_length % 2;\n\n\t // Loop through each digit and do the maths\n\t $total=0;\n\t for ($i=0; $i<$number_length; $i++) {\n\t\t$digit=$cc_num[$i];\n\t\t// Multiply alternate digits by two\n\t\tif ($i % 2 == $parity) {\n\t\t $digit*=2;\n\t\t // If the sum is two digits, add them together (in effect)\n\t\t if ($digit > 9) {\n\t\t\t$digit-=9;\n\t\t }\n\t\t}\n\t\t// Total up the digits\n\t\t$total+=$digit;\n\t }\n\n\t // If the total mod 10 equals 0, the number is valid\n\t return ($total % 10 == 0) ? TRUE : FALSE;\n\n\t}",
"function BGVATCheckDigit ($vatnumber) {\r\n\r\n if (strlen($vatnumber) == 9) {\r\n\r\n\t// Check the check digit of 9 digit Bulgarian VAT numbers.\r\n\t$total = 0;\r\n\r\n\t// First try to calculate the check digit using the first multipliers\r\n\t$temp = 0;\r\n\tfor ($i = 0; $i < 8; $i++)\r\n\t\t$temp = $temp + $vatnumber[$i] * ($i+1);\r\n\r\n\t// See if we have a check digit yet\r\n\t$total = $temp % 11;\r\n\tif ($total != 10) {\r\n\t if ($total == substr($vatnumber, 8))\r\n\t\treturn true;\r\n\t else\r\n\t\treturn false;\r\n\t}\r\n\r\n\t// We got a modulus of 10 before so we have to keep going. Calculate the new check digit using the\r\n\t// different multipliers\r\n\t$temp = 0;\r\n\tfor ($i = 0; $i < 8; $i++)\r\n\t\t$temp = $temp + $vatnumber[$i] * ($i+3);\r\n\r\n\t// See if we have a check digit yet. If we still have a modulus of 10, set it to 0.\r\n\t$total = $temp % 11;\r\n\tif ($total == 10) $total = 0;\r\n\tif ($total == substr($vatnumber, 8))\r\n\t return true;\r\n\telse\r\n\t return false;\r\n }\r\n\r\n // 10 digit VAT code - see if it relates to a standard physical person\r\n $result = preg_match(\"/^\\d\\d[0-5]\\d[0-3]\\d\\d{4}$/\", $vatnumber);\r\n if ($result)\r\n {\r\n\t// Check month\r\n\t$month = substr($vatnumber, 2, 2);\r\n\tif (($month > 0 && $month < 13) || ($month > 20 & $month < 33)) {\r\n\r\n\t // Extract the next digit and multiply by the counter.\r\n\t $total = 0;\r\n\t $multipliers = Array(2,4,8,5,10,9,7,3,6);\r\n\r\n\t for ($i = 0; $i < 9; $i++)\r\n\t\t $total = $total + $vatnumber[$i] * $multipliers[$i];\r\n\r\n\t // Establish check digit.\r\n\t $total = $total % 11;\r\n\t if ($total == 10)\r\n\t\t $total = 0;\r\n\r\n\t // Check to see if the check digit given is correct, If not, try next type of person\r\n\t if ($total == substr($vatnumber, 9,1))\r\n\t\t return true;\r\n\t}\r\n }\r\n\r\n // It doesn't relate to a standard physical person - see if it relates to a foreigner.\r\n\r\n // Extract the next digit and multiply by the counter.\r\n $total = 0;\r\n $multipliers = Array(21,19,17,13,11,9,7,3,1);\r\n for ($i = 0; $i < 9; $i++)\r\n\t $total = $total + $vatnumber[$i] * $multipliers[$i];\r\n\r\n // Check to see if the check digit given is correct, If not, try next type of person\r\n if ($total % 10 == substr($vatnumber, 9,1)) \r\n\t return true;\r\n\r\n // Finally, if not yet identified, see if it conforms to a miscellaneous VAT number\r\n\r\n // Extract the next digit and multiply by the counter.\r\n $total = 0;\r\n $multipliers = Array(4,3,2,7,6,5,4,3,2);\r\n for ($i = 0; $i < 9; $i++)\r\n\t $total = $total + $vatnumber[$i] * $multipliers[$i];\r\n\r\n // Establish check digit.\r\n $total = 11 - $total % 11;\r\n if ($total == 10) return false;\r\n if ($total == 11) $total = 0;\r\n\r\n // Check to see if the check digit given is correct, If not, we have an error with the VAT number\r\n if ($total == substr($vatnumber,9,1))\r\n\treturn true;\r\n else\r\n\treturn false;\r\n}",
"function PLVATCheckDigit ($vatnumber)\r\n{\r\n\r\n\t$total = 0;\r\n\t$multipliers = Array(6,5,7,2,3,4,5,6,7);\r\n\r\n\t// Extract the next digit and multiply by the counter.\r\n\tfor ($i = 0; $i < 9; $i++) $total = $total + $vatnumber[$i] * $multipliers[$i];\r\n\r\n\t// Establish check digits subtracting modulus 11 from 11.\r\n\t$total = $total % 11;\r\n\tif ($total > 9) {$total = 0;};\r\n\r\n\t// Compare it with the last character of the VAT number. If it is the same, then it's a valid\r\n\t// check digit.\r\n\tif ($total == substr($vatnumber,9,1))\r\n\t\treturn true;\r\n\telse\r\n\t\treturn false;\r\n}",
"function ROVATCheckDigit ($vatnumber)\r\n{\r\n\r\n\t$multipliers = Array(7,5,3,2,1,7,5,3,2,1);\r\n\r\n\t// Extract the next digit and multiply by the counter.\r\n\t$VATlen = strlen($vatnumber);\r\n\t$multipliers = array_splice($multipliers, -$VATlen);\r\n\r\n\t$total = 0;\r\n\tfor ($i = 0; $i < strlen($vatnumber)-1; $i++)\r\n\t{\r\n\t\t$total = $total + $vatnumber[$i] * $multipliers[$i];\r\n\t}\r\n\r\n\t// Establish check digits by getting modulus 11.\r\n\t$total = (10 * $total) % 11;\r\n\tif ($total == 10) $total = 0;\r\n\r\n\t// Compare it with the last character of the VAT number. If it is the same, then it's a valid\r\n\t// check digit.\r\n\tif ($total == substr($vatnumber,strlen($vatnumber)-1, 1))\r\n\t\treturn true;\r\n\telse\r\n\t\treturn false;\r\n}",
"function ATVATCheckDigit ($vatnumber) {\r\n\r\n $total = 0;\r\n $multipliers = Array(1,2,1,2,1,2,1);\r\n $temp = 0;\r\n\r\n // Extract the next digit and multiply by the appropriate multiplier.\r\n for ($i = 0; $i < 7; $i++) {\r\n $temp = $vatnumber[$i] * $multipliers[$i];\r\n if ($temp > 9)\r\n $total = $total + floor($temp/10) + $temp%10;\r\n else\r\n $total = $total + $temp;\r\n }\r\n\r\n // Establish check digit.\r\n $total = 10 - ($total+4) % 10;\r\n if ($total == 10) $total = 0;\r\n\r\n // Compare it with the last character of the VAT number. If it is the same,\r\n // then it's a valid check digit.\r\n if ($total == substr ($vatnumber,7,2))\r\n return true;\r\n else\r\n return false;\r\n}",
"function CZVATCheckDigit($vatnumber) {\r\n\r\n $total = 0;\r\n $multipliers = array(8,7,6,5,4,3,2);\r\n\r\n $czexp = array ();\r\n $czexp[0] = \"/^\\d{8}$/\";\r\n $czexp[1] = \"/^[0-5][0-9][0|1|5|6]\\d[0-3]\\d\\d{3}$/\";\r\n $czexp[2] = \"/^6\\d{8}$/\";\r\n $czexp[3] = \"/^\\d{2}[0-3|5-8]\\d[0-3]\\d\\d{4}$/\";\r\n $i = 0;\r\n\r\n // Legal entities\r\n if (preg_match($czexp[0], $vatnumber)) {\r\n\r\n\t// Extract the next digit and multiply by the counter.\r\n\tfor ($i = 0; $i < 7; $i++)\r\n\t $total = $total + $vatnumber[$i] * $multipliers[$i];\r\n\r\n\t// Establish check digit.\r\n\t$total = 11 - $total % 11;\r\n\tif ($total == 10) $total = 0;\r\n\tif ($total == 11) $total = 1;\r\n\r\n\t// Compare it with the last character of the VAT number. If it is the same,\r\n\t// then it's a valid check digit.\r\n\tif ($total == substr($vatnumber, 7, 1))\r\n\t return true;\r\n\telse\r\n\t return false;\r\n }\r\n\r\n // Individuals type 1\r\n else if (preg_match($czexp[1], $vatnumber)) {\r\n\tif ($temp = substr($vatnumber, 0, 2) > 53) return false;\r\n\treturn true;\r\n }\r\n\r\n // Individuals type 2\r\n else if (preg_match($czexp[2], $vatnumber)) {\r\n\r\n\t// Extract the next digit and multiply by the counter.\r\n\tfor ($i = 0; $i < 7; $i++)\r\n\t\t$total = $total + $vatnumber[$i+1] * $multipliers[$i];\r\n\r\n\t// Establish check digit.\r\n\t$total = 11 - $total % 11;\r\n\tif ($total == 10) $total = 0;\r\n\tif ($total == 11) $total = 1;\r\n\r\n\t// Convert calculated check digit according to a lookup table;\r\n\t$lookup = array(8,7,6,5,4,3,2,1,0,9,10);\r\n\tif ($lookup[$total-1] == substr($vatnumber, 8, 1))\r\n\t return true;\r\n\telse\r\n\t return false;\r\n }\r\n\r\n // Individuals type 3\r\n else if (preg_match($czexp[3], $vatnumber)) {\r\n\t// $temp = Number(vatnumber.slice(0,2)) + Number(vatnumber.slice(2,4)) + Number(vatnumber.slice(4,6)) + Number(vatnumber.slice(6,8)) + Number(vatnumber.slice(8));\r\n\t$temp = substr($vatnumber, 0, 2) + substr($vatnumber, 2, 2) + substr($vatnumber, 4, 2) + substr($vatnumber, 6, 2) + substr($vatnumber, 8);\r\n\tif ($temp % 11 == 0 && ($vatnumber + 0) % 11 == 0)\r\n\t return true;\r\n\telse\r\n\t return false;\r\n }\r\n\r\n // else error\r\n return false;\r\n}"
] | [
"0.74427456",
"0.7156535",
"0.70644003",
"0.6975878",
"0.69301915",
"0.6882249",
"0.6798649",
"0.6776452",
"0.67719984",
"0.6702945",
"0.66187793",
"0.6572368",
"0.65631723",
"0.64906716",
"0.6461726",
"0.64286214",
"0.6395416",
"0.63788563",
"0.6333884",
"0.63144845",
"0.6308619",
"0.6295361",
"0.62905777",
"0.6267277",
"0.62580943",
"0.625533",
"0.6223926",
"0.62190646",
"0.62129915",
"0.6212484"
] | 0.7293174 | 1 |
Test validity of check digit | function TestCheckDigit($barcode)
{
$sum=0;
for($i=1;$i<=11;$i+=2)
$sum+=3*$barcode[$i];
for($i=0;$i<=10;$i+=2)
$sum+=$barcode[$i];
return ($sum+$barcode[12])%10==0;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function TestCheckDigit($barcode) {\n $sum = 0;\n for ($i = 1; $i <= 11; $i+=2)\n $sum+=3 * $barcode[$i];\n for ($i = 0; $i <= 10; $i+=2)\n $sum+=$barcode[$i];\n return ($sum + $barcode[12]) % 10 == 0;\n }",
"function CHEVATCheckDigit($vatnumber) {\r\n // Extract the next digit and multiply by the counter.\r\n $multipliers = array(5,4,3,2,7,6,5,4);\r\n $total = 0;\r\n for ($i = 0; $i < 8; $i++)\r\n\t $total = $total + $vatnumber[$i] * $multipliers[$i];\r\n\r\n // Establish check digit.\r\n $total = 11 - $total % 11;\r\n if ($total == 10) return false;\r\n if ($total == 11) $total = 0;\r\n\r\n // Check to see if the check digit given is correct, If not, we have an error with the VAT number\r\n if ($total == substr($vatnumber, 8,1))\r\n\treturn true;\r\n else\r\n\treturn false;\r\n}",
"function luhn_check($cc_num) {\n\n\t // Set the string length and parity\n\t $number_length=strlen($cc_num);\n\t $parity=$number_length % 2;\n\n\t // Loop through each digit and do the maths\n\t $total=0;\n\t for ($i=0; $i<$number_length; $i++) {\n\t\t$digit=$cc_num[$i];\n\t\t// Multiply alternate digits by two\n\t\tif ($i % 2 == $parity) {\n\t\t $digit*=2;\n\t\t // If the sum is two digits, add them together (in effect)\n\t\t if ($digit > 9) {\n\t\t\t$digit-=9;\n\t\t }\n\t\t}\n\t\t// Total up the digits\n\t\t$total+=$digit;\n\t }\n\n\t // If the total mod 10 equals 0, the number is valid\n\t return ($total % 10 == 0) ? TRUE : FALSE;\n\n\t}",
"function SKVATCheckDigit ($vatnumber)\r\n{\r\n\r\n\t// Check that the modulus of the whole VAT number is 0 - else error\r\n\tif (modLargeNumber($vatnumber, 11) == 0)\r\n\t\treturn true;\r\n\telse\r\n\t\treturn false;\r\n\r\n}",
"function check_number($number) {\n\tfor($x = 0; $x < strlen($number); $x++ ) {\n\t\t$digit = substr($number,$x,1);\n\t\t\n\t\tif( $digit != \"0\" && $digit != \"1\" && $digit != \"2\" && $digit != \"3\" && $digit != \"4\" &&\n\t\t\t$digit != \"5\" && $digit != \"6\" && $digit != \"7\" && $digit != \"8\" && $digit != \"9\" ) \n\t\t\treturn false;\n\t}\n\t\n\treturn true;\n}",
"function DKVATCheckDigit ($vatnumber) {\r\n\r\n $total = 0;\r\n $multipliers = Array(2,7,6,5,4,3,2,1);\r\n\r\n // Extract the next digit and multiply by the counter.\r\n for ($i = 0; $i < 8; $i++) $total = $total + $vatnumber[$i] * $multipliers[$i];\r\n\r\n // Establish check digit.\r\n $total = $total % 11;\r\n\r\n // The remainder should be 0 for it to be valid..\r\n if ($total == 0)\r\n return true;\r\n else\r\n return false;\r\n}",
"abstract public function validate($number): bool;",
"function SIVATCheckDigit ($vatnumber)\r\n{\r\n\r\n\t$total = 0;\r\n\t$multipliers = Array(8,7,6,5,4,3,2);\r\n\r\n\t// Extract the next digit and multiply by the counter.\r\n\tfor ($i = 0; $i < 7; $i++) $total = $total + $vatnumber[$i] * $multipliers[$i];\r\n\r\n\t// Establish check digits by subtracting 97 from $total until negative.\r\n\t$total = 11 - $total % 11;\r\n\tif ($total > 9) {$total = 0;};\r\n\r\n\t// Compare the number with the last character of the VAT number. If it is the\r\n\t// same, then it's a valid check digit.\r\n\tif ($total == substr($vatnumber,7,1))\r\n\t\treturn true;\r\n\telse\r\n\t\treturn false;\r\n}",
"function validation ($isbn)\n{\n\t\n\t$sum = ( substr($isbn, 0, 1) * 10 ) + ( substr($isbn, 1, 1) * 9 )\n\t+ (substr($isbn, 2, 1) *8) + (substr($isbn,3,1) *7) + (substr($isbn,4,1) *6) + (substr($isbn,5,1) *5)\n\t+ (substr($isbn,6,1) *4) + (substr($isbn,7,1) *3) + (substr($isbn,8,1) *2);\n\n\t# handle the last digit which can be X sometimes\n\t$lastDigit = substr($isbn,9,1);\n\t# conditional to test what the last digit is\n\tif ($lastDigit==\"X\") {\n\t\t# multiply 1 by 10 = 10\n\t\t$sum = $sum + 10;\n\t} else {\n\t\t# multiply 1 by lastDigit\n\t\t$sum = $sum + $lastDigit;\n\t}\n\t\n\t$remainder = $sum % 11;\n\techo \"Checking $isbn for validity...<br>\";\n\tif ($remainder==0) {\n\t\t# this is valid!\n\t\treturn TRUE;\n\t} else {\n\t\t# this is not valid\n\t\treturn FALSE;\n\t}\n}",
"function HRVATCheckDigit($vatnumber) {\r\n\r\n $product = 10;\r\n $sum = 0;\r\n $checkdigit = 0;\r\n\r\n for ($i = 0; $i < 10; $i++) {\r\n\r\n\t// Extract the next digit and implement the algorithm\r\n\t$sum = ($vatnumber[$i] + $product) % 10;\r\n\tif ($sum == 0) {$sum = 10; }\r\n\t$product = (2 * $sum) % 11;\r\n }\r\n\r\n // Now check that we have the right check digit\r\n if (($product + substr($vatnumber,10,1)*1) % 10 == 1)\r\n\treturn true;\r\n else\r\n\treturn false;\r\n}",
"function isValid(string $number = \"\"): bool\n{\n $stripped = preg_replace('/[[:space:]]/u', '', $number);\n\n return isValidLength($stripped) && is_numeric($stripped) && evenlyDivisibleByTen(luhn($stripped));\n}",
"function FRVATCheckDigit ($vatnumber)\r\n{\r\n\tif (!preg_match(\"/^\\d{11}$/\", $vatnumber )) return true;\r\n\r\n\t// Extract the last nine digits as an integer.\r\n\t$total = substr($vatnumber, 2);\r\n\r\n\t// Establish check digit.\r\n\t// $total = ($total*100+12) % 97;\r\n\t// The standard PHP functions cannot cope with a VAT number\r\n\t// like FR00300076965 as it is essential for the computation\r\n\t// to work correctly as the input number is < PHP_INT_MAX\r\n\t$total = modLargeNumber($total . \"12\", 97);\r\n\r\n\t// Compare it with the last character of the VAT number. If it is the same,\r\n\t// then it's a valid check digit.\r\n\r\n\tif ($total == substr($vatnumber,0,2))\r\n\t\treturn true;\r\n\telse\r\n\t\treturn false;\r\n}",
"function PTVATCheckDigit ($vatnumber)\r\n{\r\n\r\n\t$total = 0;\r\n\t$multipliers = Array(9,8,7,6,5,4,3,2);\r\n\r\n\t// Extract the next digit and multiply by the counter.\r\n\tfor ($i = 0; $i < 8; $i++) $total = $total + $vatnumber[$i] * $multipliers[$i];\r\n\r\n\t// Establish check digits subtracting modulus 11 from 11.\r\n\t$total = 11 - $total % 11;\r\n\tif ($total > 9) {$total = 0;};\r\n\r\n\t// Compare it with the last character of the VAT number. If it is the same, then it's a valid\r\n\t// check digit.\r\n\tif ($total == substr($vatnumber,8,1))\r\n\t\treturn true;\r\n\telse\r\n\t\treturn false;\r\n}",
"function PLVATCheckDigit ($vatnumber)\r\n{\r\n\r\n\t$total = 0;\r\n\t$multipliers = Array(6,5,7,2,3,4,5,6,7);\r\n\r\n\t// Extract the next digit and multiply by the counter.\r\n\tfor ($i = 0; $i < 9; $i++) $total = $total + $vatnumber[$i] * $multipliers[$i];\r\n\r\n\t// Establish check digits subtracting modulus 11 from 11.\r\n\t$total = $total % 11;\r\n\tif ($total > 9) {$total = 0;};\r\n\r\n\t// Compare it with the last character of the VAT number. If it is the same, then it's a valid\r\n\t// check digit.\r\n\tif ($total == substr($vatnumber,9,1))\r\n\t\treturn true;\r\n\telse\r\n\t\treturn false;\r\n}",
"function NOVATCheckDigit($vatnumber) {\r\n // See http://www.brreg.no/english/coordination/number.html\r\n\r\n $total = 0;\r\n $multipliers = array(3,2,7,6,5,4,3,2);\r\n\r\n // Extract the next digit and multiply by the counter.\r\n for ($i = 0; $i < 8; $i++) $total = $total + $vatnumber[$i] * $multipliers[$i];\r\n\r\n // Establish check digits by getting modulus 11. Check digits > 9 are invalid\r\n $total = 11 - $total % 11;\r\n if ($total == 11) {$total = 0;}\r\n if ($total < 10) {\r\n\r\n\t// Compare it with the last character of the VAT number. If it is the same, then it's a valid\r\n\t// check digit.\r\n\tif ($total == substr($vatnumber,8,1))\r\n\t\treturn true;\r\n\telse\r\n\t\treturn false;\r\n }\r\n}",
"public static function digits( $digit )\n {\n return ! preg_match( \"/[^0-9]/\", $digit );\n }",
"function EEVATCheckDigit ($vatnumber) {\r\n\r\n $total = 0;\r\n $multipliers = Array(3,7,1,3,7,1,3,7);\r\n\r\n // Extract the next digit and multiply by the counter.\r\n for ($i = 0; $i < 8; $i++) $total = $total + $vatnumber[$i] * $multipliers[$i];\r\n\r\n // Establish check digits using modulus 10.\r\n $total = 10 - $total % 10;\r\n if ($total == 10) $total = 0;\r\n\r\n // Compare it with the last character of the VAT number. If it is the same,\r\n // then it's a valid check digit.\r\n if ($total == substr($vatnumber,8,1))\r\n return true;\r\n else\r\n return false;\r\n\r\n}",
"function DEVATCheckDigit ($vatnumber) {\r\n\r\n $product = 10;\r\n $sum = 0;\r\n $checkdigit = 0;\r\n for ($i = 0; $i < 8; $i++) {\r\n\r\n // Extract the next digit and implement perculiar algorithm!.\r\n $sum = ($vatnumber[$i] + $product) % 10;\r\n if ($sum == 0) {$sum = 10;}\r\n $product = (2 * $sum) % 11;\r\n }\r\n\r\n // Establish check digit.\r\n if (11 - $product == 10) {$checkdigit = 0;} else {$checkdigit = 11 - $product;}\r\n\r\n // Compare it with the last digit of the VAT number. If the same,\r\n // then it is a valid check digit.\r\n if ($checkdigit == substr($vatnumber,8,1))\r\n return true;\r\n else\r\n return false;\r\n\r\n}",
"function ROVATCheckDigit ($vatnumber)\r\n{\r\n\r\n\t$multipliers = Array(7,5,3,2,1,7,5,3,2,1);\r\n\r\n\t// Extract the next digit and multiply by the counter.\r\n\t$VATlen = strlen($vatnumber);\r\n\t$multipliers = array_splice($multipliers, -$VATlen);\r\n\r\n\t$total = 0;\r\n\tfor ($i = 0; $i < strlen($vatnumber)-1; $i++)\r\n\t{\r\n\t\t$total = $total + $vatnumber[$i] * $multipliers[$i];\r\n\t}\r\n\r\n\t// Establish check digits by getting modulus 11.\r\n\t$total = (10 * $total) % 11;\r\n\tif ($total == 10) $total = 0;\r\n\r\n\t// Compare it with the last character of the VAT number. If it is the same, then it's a valid\r\n\t// check digit.\r\n\tif ($total == substr($vatnumber,strlen($vatnumber)-1, 1))\r\n\t\treturn true;\r\n\telse\r\n\t\treturn false;\r\n}",
"function HUVATCheckDigit ($vatnumber)\r\n{\r\n\r\n\t$total = 0;\r\n\t$multipliers = Array(9,7,3,1,9,7,3);\r\n\r\n\t// Extract the next digit and multiply by the counter.\r\n\tfor ($i = 0; $i < 7; $i++) $total = $total + $vatnumber[$i] * $multipliers[$i];\r\n\r\n\t// Establish check digit.\r\n\t$total = 10 - $total % 10;\r\n\tif ($total == 10) $total = 0;\r\n\r\n\t// Compare it with the last character of the VAT number. If it is the same,\r\n\t// then it's a valid check digit.\r\n\tif ($total == substr($vatnumber,7,1))\r\n\t\treturn true;\r\n\telse\r\n\t\treturn false;\r\n}",
"function UKVATCheckDigit ($vatnumber)\r\n{\r\n\t$multipliers = Array(8,7,6,5,4,3,2);\r\n\r\n\t// Government departments\r\n\tif ($vatnumber.substr(0,2) == 'GD')\r\n\t{\r\n\t\tif ($vatnumber.substr(2,3) < 500)\r\n\t\t\treturn true;\r\n\t\telse\r\n\t\t\treturn false;\r\n\t}\r\n\r\n\t// Health authorities\r\n\tif ($vatnumber.substr(0,2) == 'HA')\r\n\t{\r\n\t\tif ($vatnumber.substr(2,3) > 499)\r\n\t\t\treturn true;\r\n\t\telse\r\n\t\t\treturn false;\r\n\t}\r\n\r\n\t// Standard and commercial numbers\r\n\t\t$total = 0;\r\n\r\n\t\t// 0 VAT numbers disallowed!\r\n\t\tif (($vatnumber + 0) == 0) return false;\r\n\r\n\t\t// Check range is OK for modulus 97 calculation\r\n\t\t$no = substr($vatnumber, 0,7);\r\n\r\n\t\t// Extract the next digit and multiply by the counter.\r\n\t\tfor ($i = 0; $i < 7; $i++) $total = $total + $vatnumber[$i] * $multipliers[$i];\r\n\r\n\t\t// Old numbers use a simple 97 modulus, but new numbers use an adaptation of that (less\r\n\t\t// 55). Our VAT number could use either system, so we check it against both.\r\n\r\n\t\t// Establish check digits by subtracting 97 from $total until negative.\r\n\t\t$cd = $total;\r\n\t\twhile ($cd > 0) {$cd = $cd - 97;}\r\n\r\n\t\t// Get the absolute value and compare it with the last two characters of the\r\n\t\t// VAT number. If the same, then it is a valid traditional check digit.\r\n\t\t$cd = abs($cd);\r\n\t\tif ($cd == substr($vatnumber,7,2) && $no < 9990001 && ($no < 100000 || $no > 999999) && ($no < 9490001 || $no > 9700000)) return true;\r\n\r\n\t\t// Now try the new method by subtracting 55 from the check digit if we can - else add 42\r\n\t\tif ($cd >= 55)\r\n\t\t\t$cd = $cd - 55;\r\n\t\telse\r\n\t\t\t$cd = $cd + 42;\r\n\r\n\t\tif ($cd == substr($vatnumber,7,2) && $no > 1000000)\r\n\t\t\treturn true;\r\n\t\telse\r\n\t\t\treturn false;\r\n\r\n\t// We don't check 12 and 13 digit UK numbers - not only can we not find any,\r\n\t// but the information found on the format is contradictory.\r\n\r\n\treturn true;\r\n}",
"function checkDigits($element) {\n\tif (!preg_match (\"/[^0-9]/\", $element)) {\n\t\treturn 0;\n\t}\n\telse {\n\t\treturn\t1;\n\t}\n}",
"function NLVATCheckDigit ($vatnumber)\r\n{\r\n\r\n\t$total = 0; //\r\n\t$multipliers = Array(9,8,7,6,5,4,3,2);\r\n\r\n\t// Extract the next digit and multiply by the counter.\r\n\tfor ($i = 0; $i < 8; $i++) $total = $total + $vatnumber[$i] * $multipliers[$i];\r\n\r\n\t// Establish check digits by getting modulus 11.\r\n\t$total = $total % 11;\r\n\tif ($total > 9) {$total = 0;};\r\n\r\n\t// Compare it with the last character of the VAT number. If it is the same,\r\n\t// then it's a valid check digit.\r\n\tif ($total == substr($vatnumber,8,1))\r\n\t\treturn true;\r\n\telse\r\n\t\treturn false;\r\n}",
"function testDigits($key)\n\t{\n\t\tif (!$this->keyExists($key)) {\n\t\t\treturn false;\n\t\t}\n\t\tif (Inspekt::isDigits($this->_getValue($key))) {\n\t\t\treturn $this->_getValue($key);\n\t\t}\n\n\t\treturn FALSE;\n\t}",
"function RSVATCheckDigit($vatnumber) {\r\n\r\n $product = 10;\r\n $sum = 0;\r\n $checkdigit = 0;\r\n\r\n for ($i = 0; $i < 8; $i++) {\r\n\r\n\t// Extract the next digit and implement the algorithm\r\n\t$sum = ($vatnumber[$i] + $product) % 10;\r\n\tif ($sum == 0) { $sum = 10; }\r\n\t$product = (2 * $sum) % 11;\r\n }\r\n\r\n // Now check that we have the right check digit\r\n if (($product + $vatnumber[8] * 1) % 10 == 1)\r\n\treturn true;\r\n else\r\n\treturn false;\r\n}",
"public function testIsNumberContain()\n {\n //Create object\n $passwordGenerator = new Eftakhairul\\RandomPasswordGenerator();\n $output = preg_match(\"/[0-9]/i\", $passwordGenerator->useNumbers(3)->generatePassword());\n\n //checking number exists inside password string or not\n $this->assertEquals(true, $output);\n }",
"function SEVATCheckDigit ($vatnumber)\r\n{\r\n\t$R = 0;\r\n\t$digit;\r\n\tfor ($i = 0; $i < 9; $i=$i+2) {\r\n\t\t$digit = $vatnumber[$i] + 0;\r\n\t\t$R = $R + floor($digit / 5) + (($digit * 2) % 10);\r\n\t}\r\n\r\n\t// Calculate S where S = C2 + C4 + C6 + C8\r\n\t$S = 0;\r\n\tfor ($i = 1; $i < 9; $i=$i+2)\r\n\t\t$S = $S + $vatnumber[$i] + 0;\r\n\r\n\t// Calculate the Check Digit\r\n\t$cd = (10 - ($R + $S) % 10) % 10;\r\n\r\n\t// Compare it with the 10th character of the VAT number. If it is the same, then it's a valid\r\n\t// check digit.\r\n\r\n\tif ($cd == substr($vatnumber, 9,1))\r\n\t\treturn true;\r\n\telse\r\n\t\treturn false;\r\n\r\n}",
"function LUVATCheckDigit ($vatnumber)\r\n{\r\n\tif (substr($vatnumber,0,6) % 89 == substr($vatnumber,6,2))\r\n\t\treturn true;\r\n\telse\r\n\t\treturn false;\r\n}",
"function luhn_check($number) {\n $number=preg_replace('/\\D/', '', $number);\n\n // Set the string length and parity\n $number_length=strlen($number);\n $parity=$number_length % 2;\n\n // Loop through each digit and do the maths\n $total=0;\n for ($i=0; $i<$number_length; $i++) {\n $digit=$number[$i];\n // Multiply alternate digits by two\n if ($i % 2 == $parity) {\n $digit*=2;\n // If the sum is two digits, add them together (in effect)\n if ($digit > 9) {\n $digit-=9;\n }\n }\n // Total up the digits\n $total+=$digit;\n }\n\n // If the total mod 10 equals 0, the number is valid\n return ($total % 10 == 0) ? TRUE : FALSE;\n\n}",
"function MTVATCheckDigit ($vatnumber)\r\n{\r\n\r\n\t$total = 0;\r\n\t$multipliers = Array(3,4,6,7,8,9);\r\n\r\n\t// Extract the next digit and multiply by the counter.\r\n\tfor ($i = 0; $i < 6; $i++) $total = $total + $vatnumber[$i] * $multipliers[$i];\r\n\r\n\t// Establish check digits by getting modulus 37.\r\n\t$total = 37 - $total % 37;\r\n\r\n\t// Compare it with the last character of the VAT number. If it is the same,\r\n\t// then it's a valid check digit.\r\n\tif ($total == substr($vatnumber,6,2) * 1)\r\n\t\treturn true;\r\n\telse\r\n\t\treturn false;\r\n}"
] | [
"0.7495239",
"0.71169454",
"0.7007471",
"0.69979376",
"0.69882584",
"0.69435924",
"0.69144875",
"0.689838",
"0.6895801",
"0.68752295",
"0.6834104",
"0.68305826",
"0.6818394",
"0.6811119",
"0.6801575",
"0.6785435",
"0.6765897",
"0.67615485",
"0.67594624",
"0.6748151",
"0.6733693",
"0.672717",
"0.6726437",
"0.67112195",
"0.6700681",
"0.66841745",
"0.668324",
"0.66797054",
"0.6654056",
"0.6641873"
] | 0.7469826 | 1 |
set up the defaults for the whatsapp to be initialized only once so that each time this is not repeated | private static function init ()
{
//check if the key and from is already set for the session
if ( self::$key && self::$from ) return;
//fetch the key and from the property table
self::$key = LaravelUtility::getProperty('notification.whatsApp.key', false);
self::$from = LaravelUtility::getProperty('notification.whatsApp.from.mobile', false);
//if either of them is missing then dont do anything
if ( !( self::$key && self::$from ) ) return;
//decrypt the values against the params
self::$key = Crypt::decrypt(self::$key);
self::$from = Crypt::decrypt(self::$from);
//get the default country code of the user
self::$country_code = LaravelUtility::getProperty('notification.whatsApp.country.code', '91');
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private function init()\n {\n if (!self::$appId || !self::$appSecret){\n self::$appId = config('wechat.configure.appId');\n self::$appSecret = config('wechat.configure.appSecret');\n }\n }",
"private static function setDefaults()\n\t{\n\t\tself::$ini['show_newsletter_signup'] = 0;\n\t\tself::$ini['admin_password'] = 'admin';\n\t\tself::$ini['timezone'] = 'UTC';\n\t}",
"public function load_with_defaults ()\n {\n $this->load_from_client ('app_title', '');\n $this->load_from_client ('app_id', '');\n $this->load_from_client ('app_prefix', '');\n $this->load_from_client ('app_url', '');\n $this->load_from_client ('app_folder', '');\n $this->load_from_client ('folder_name', '');\n $this->load_from_client ('entry_name', '');\n $this->load_from_client ('author_name', '');\n $this->load_from_client ('author_email', '');\n }",
"private final function _init_defaults() {\n\t\t// We need to ALWAYS load the cryptography file regardless of installation state.\n\t\trequire APPPATH . '/config/settings/cryptography.php';\n\t\t// Convert to properties.\n\t\t$this->cryptography = new ConfigObject($cryptography);\n\t\t// Load the config files.\n\t\trequire APPPATH . '/config/settings/paths.php';\n\t\trequire APPPATH . '/config/settings/board.php';\n\t\trequire APPPATH . '/config/settings/user.php';\n\t\t// Translate arrays into properties. Set the resultant to their respective properties.\n\t\t$this->paths = new ConfigObject($paths);\n\t\t$this->board = new ConfigObject($board);\n\t\t$this->user = new ConfigObject($user);\n\t}",
"function init_settings() {\n\t$subject = get_option('login-alert_subject');\n\t$body = get_option('login-alert_body');\n\t$exclude_admin = get_option('login-alert_exclude_admin');\n\n\tif (!$subject) {\n\t\tregister_setting('login-alert_options', 'login-alert_subject', 'esc_attr');\n\t\tadd_option('login-alert_subject', 'New login at %SITENAME%');\n\t}\n\n\tif (!$body) {\n\t\tregister_setting('login-alert_options', 'login-alert_body', 'esc_attr');\n\t\tadd_option('login-alert_body', '%USERNAME% logged in at %DATE% %TIME%');\n\t}\n\n\tif (!$exclude_admin) {\n\t\tregister_setting('login-alert_options', 'login-alert_exclude_admin', 'esc_attr');\n\t\tadd_option('login-alert_exclude_admin', 0);\n\t}\n\n}",
"public function init_settings()\n\t{\n\t\t// No-op\n\t}",
"private function _setDefaults()\n {\n $this->setDefault('mysql_server', \t'localhost');\n $this->setDefault('mysql_username', 'root');\n $this->setDefault('mysql_dbname', \t'piwam');\n }",
"protected function define_my_settings() {\r\n // No particular settings for this activity\r\n }",
"private function initCoreSetting()\n {\n $this->viewPath = config('mockup.MOCKUP_VIEWS_PATH');\n $this->templateName = config('mockup.TEMPLATE_NAME');\n\n \\App::singleton('user_current_language', function () {\n return 1;\n });\n }",
"public static function __init() {\n static::$_config = Libraries::get('li3_swifter') + array(\n 'from' => null,\n 'to' => null,\n 'host' => 'smtp.example.org',\n 'port' => 25,\n 'username' => null,\n 'password' => null,\n );\n }",
"protected function define_my_settings() {\n // No particular settings for this activity\n }",
"protected function define_my_settings() {\n // No particular settings for this activity\n }",
"private static function setDefaults()\r\n\t{\r\n\t\tself::$routing = array(\r\n\t\t\t'/' => array( 'Page', '_kiki/index' ),\r\n\t\t);\r\n\r\n\t\tself::$siteName = $_SERVER['SERVER_NAME'];\r\n\r\n\t\tself::$mailSender = isset($_SERVER['SERVER_ADMIN']) ? $_SERVER['SERVER_ADMIN'] : null;\r\n\r\n\t\tself::$siteLogo = self::$kikiPrefix. \"/img/kiki-inverse-74x50.png\";\r\n\t}",
"public function init() {\n\t\tregister_setting( $this->key, $this->key );\n\t}",
"public function init() {\n\t\tregister_setting( $this->key, $this->key );\n\t}",
"public function init() {\n\t\tregister_setting( $this->key, $this->key );\n\t}",
"public function init()\n {\n global $kong_helpdesk_options;\n\n $this->options = $kong_helpdesk_options;\n }",
"public static function init(){\n FeatherqConstants::roles();\n FeatherqConstants::frontlineSms();\n FeatherqConstants::twilio();\n FeatherqConstants::android();\n }",
"public function setDefaults();",
"public function setDefaults();",
"private function connectToWhatsApp()\n {\n $this->register = new \\Registration($this->login, $this->debug);\n $this->whatsapp = new \\WhatsProt($this->login, $this->nickname, $this->debug);\n $this->whatsapp->eventManager()->bind('onCodeRegister', [$this, 'onCodeRegister']);\n $this->whatsapp->eventManager()->bind('onCodeRegisterFailed', [$this, 'onCodeRegisterFailed']);\n $this->whatsapp->eventManager()->bind('onCodeRequest', [$this, 'onCodeRequest']);\n \n \n }",
"public function set_defaults() {\n if(!isset($this->soma_enabled))\n $this->soma_enabled = false;\n\n // Display on: Pages / Posts / CPTs\n if(!isset($this->display_on_posts))\n $this->display_on_posts = true;\n\n if(!isset($this->display_on_pages))\n $this->display_on_pages = false;\n\n if(!isset($this->display_on_cpts))\n $this->display_on_cpts = false;\n\n // Vertical Position: Top, Bottom, Both\n if(!isset($this->vertical_pos))\n $this->vertical_pos = 'top';\n\n // Horizontal Position: Left, Right\n if(!isset($this->horizontal_pos))\n $this->horizontal_pos = 'left';\n\n // Text Wrap: true/false\n if(!isset($this->wrap))\n $this->wrap = true;\n\n // Buttons Enabled: facebook, twitter, pinterest, linkedin, googleplus\n if(!isset($this->facebook))\n $this->facebook = true;\n\n if(!isset($this->twitter))\n $this->twitter = true;\n\n if(!isset($this->pinterest))\n $this->pinterest = false;\n\n if(!isset($this->linkedin))\n $this->linkedin = false;\n\n if(!isset($this->googleplus))\n $this->googleplus = false;\n\n // Button Style: horizontal, vertical\n if(!isset($this->button_style))\n $this->button_style = 'basic';\n\n // Button Counts: true/false\n /*\n if(!isset($this->button_counts))\n $this->button_counts = true;\n */\n }",
"static function init() {\n\t\tself::$Data = get_option(self::OPT_SETTINGS);\n\n\t\t//when the plugin updated, this will be true\n\t\tif (empty(self::$Data) || self::$Version > self::$Data['version']){\n\t\t\tself::SetDefaults();\n\t\t}\n\t}",
"private function initBaseSettings() {\n\t\t$this->bs = array(\n\t\t\t'currentPeriodStart' => new DateTime(),\n\t\t\t'currentPeriodEnd' => new DateTime(),\n\t\t\t'maxSmsInPeriod' => $this->ff['NumberOfSMS'],\n\t\t\t'smsSentInPeriod' => 0,\n\t\t\t'smsSent' => 0,\n\t\t\t'limitText' => ''\n\t\t);\n\t}",
"protected function initialiseDefaultValues()\n {\n\n }",
"public function loadDefaultConfigs() {\n $this->setMode();\n $this->setHostname();\n $this->setLocale();\n $this->setCharset();\n $this->setEncoding();\n $this->setWordwrap();\n }",
"public function setDefaults() {\n if (null === $this->getNotificationSound()) {\n $this->setNotificationSound(self::DEFAULT_SOUND);\n }\n if (null === $this->getIsAnonymousConnection()) {\n $this->setIsAnonymousConnection(false);\n }\n }",
"function set_default_settings( $defaults ) {\n\t\t$defaults['mailchimp-api-key'] = '';\n\t\t$defaults['mailchimp-label'] = __( 'Sign up to receive updates via email!', 'LION' );\n\t\t$defaults['mailchimp-optin'] = true;\n\t\t$defaults['mailchimp-double-optin'] = true;\n\t\treturn $defaults;\n\t}",
"private function setUpDefaults()\n {\n// $this->defaults = Config::get('defaults'); ????????????????\n $defaults = Config::get('defaults');\n\n// foreach ($this->defaults as $key => $default) { ????????????\n foreach ($defaults as $key => $default) {\n $this->$key = $default;\n }\n }",
"protected function define_my_settings() {\n }"
] | [
"0.7103529",
"0.68448734",
"0.67606264",
"0.6716878",
"0.64293",
"0.64116836",
"0.6360572",
"0.6336852",
"0.6317219",
"0.6301372",
"0.62656015",
"0.62656015",
"0.62543756",
"0.6240641",
"0.6240641",
"0.6240641",
"0.6228899",
"0.6184345",
"0.614086",
"0.614086",
"0.6106513",
"0.61029416",
"0.60841763",
"0.6082966",
"0.6064731",
"0.6039126",
"0.60305005",
"0.60077757",
"0.60075825",
"0.5940921"
] | 0.7014628 | 1 |
GMT format time string. | protected function getGMT() {
return gmdate ( 'D, d M Y H:i:s' ) . ' GMT';
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getGMT($format = self::RFC1123)\n\t{\n\t\treturn date($format, $this->timestamp);\n\t}",
"function getDateGMTByTS($timestamp)\r\n\t{\r\n\t\treturn gmdate('Y-m-d H:i:s', $timestamp);\r\n\t}",
"function getDateGMT($date=null)\r\n\t{\r\n\t\t$dt = new Date($date);\r\n\t\t$dt->setTZbyID(Date_API::getPreferredTimezone());\r\n\t\t$dt->toUTC();\r\n\t\treturn $dt->format('%Y-%m-%d %H:%M:%S');\r\n\t}",
"function tpl_strftime($format, $time = null) {\n\tif (null === $time) \n\t\t$time = time();\n\telse if ($time <= 0)\n\t\treturn '';\n\t$offset = /*isset($_SESSION['synd']['timezone_offset']) ? \n\t\t$_SESSION['synd']['timezone_offset'] : */0;\n\t$gmt = sprintf('%+03d%02d', -floor($offset/60), abs($offset%60));\n\t$format = str_replace('%O', $gmt, $format);\n\t$format = str_replace('%Z', \"GMT$gmt\", $format);\n\t//return gmstrftime($format, $time - $offset*60);\n\treturn strftime($format, $time - $offset*60);\n}",
"public static function gmt($string = null) {\r\n\t\tif ($string != null) {\r\n\t\t\t$string = self::fromString($string);\r\n\t\t} else {\r\n\t\t\t$string = time();\r\n\t\t}\r\n\t\t$hour = intval(self::date(\"G\", $string));\r\n\t\t$minute = intval(self::date(\"i\", $string));\r\n\t\t$second = intval(self::date(\"s\", $string));\r\n\t\t$month = intval(self::date(\"n\", $string));\r\n\t\t$day = intval(self::date(\"j\", $string));\r\n\t\t$year = intval(self::date(\"Y\", $string));\r\n\r\n\t\treturn gmmktime($hour, $minute, $second, $month, $day, $year);\r\n\t}",
"public static function GMT($time = null)\n\t{\n\t\treturn is_null($time) ? date(self::RFC1123) : date(self::RFC1123, $time);\n\t}",
"public function adjustToGMT($datetime){\n\t\t$strongcal = $this->avalanche->getModule(\"strongcal\");\n\t\tif(module_taskman_task::isDateTime($datetime)){\n\t\t\t$strongcal = $this->avalanche->getModule(\"strongcal\");\n\t\t\t$timezone = $strongcal->timezone();\n\t\t\t$dd = $datetime;\n\t\t\t$dt = substr($dd, 11);\n\t\t\t$dd = substr($dd, 0, 10);\n\t\t\t$d = $strongcal->adjust_back($dd, $dt, $timezone);\n\t\t\t$d = $d[\"date\"] . \" \" . $d[\"time\"];\n\t\t\treturn $d;\n\t\t}else{\n\t\t\treturn $datetime;\n\t\t}\n\t}",
"public function getDate(bool $gmt = false): string;",
"public function toTimeString();",
"function smarty_function_gmtfa ( $params , Smarty_Internal_Template $template ) {\n\n $GMT = new DateTimeZone('GMT');\n $Tehran = new DateTimeZone('Asia/Tehran');\n $date = new DateTime($params['time'] , $GMT);\n $date->setTimezone($Tehran);\n\n // return $date->format($params['format']);\n $dateTime = str_replace(array( '0' , '1' , '2' , '3' , '4' , '5' , '6' , '7' , '8' , '9' ) , array( '۰' , '۱' , '۲' , '۳' , '۴' , '۵' , '۶' , '۷' , '۸' , '۹' ) , $date->format($params['format']));\n\n return $dateTime;\n}",
"public function GMT($NGMT=null,$to=null)\n\t{\n\t\t$NGMT = empty($NGMT)?$this->time():$NGMT;\n\t\t$time_offset = empty($to)?$this->core->conf->system->core->GMT:$to;\n\t\t$plus = $time_offset[0]=='+'?true:false;\n\t\t$time_offset = array($time_offset[1].$time_offset[2],$time_offset[3],$time_offset[4]);\n\n\t\t$time_offset = $time_offset[0] * 60 * 60 + $time_offset[1] * 60;\n\n\t\t$time = $plus?$NGMT-$time_offset:$NGMT+$time_offset;\n\n\t\treturn $time;\n\t}",
"public static function formatDate($time)\n\t{\n\t\t$time = DateTime::from($time);\n\t\t$time->setTimezone(new \\DateTimeZone('GMT'));\n\t\treturn $time->format('D, d M Y H:i:s \\G\\M\\T');\n\t}",
"public function timeFormat()\n\t{\n\t\treturn $this->format_time;\n\t}",
"public function getTimeFormat();",
"public function adjustFromGMT($datetime){\n\t\tif(module_taskman_task::isDateTime($datetime)){\n\t\t\t$strongcal = $this->avalanche->getModule(\"strongcal\");\n\t\t\t$timezone = $strongcal->timezone();\n\t\t\t$dd = $datetime;\n\t\t\t$dt = substr($dd, 11);\n\t\t\t$dd = substr($dd, 0, 10);\n\t\t\t$d = $strongcal->adjust($dd, $dt, $timezone);\n\t\t\t$d = $d[\"date\"] . \" \" . $d[\"time\"];\n\t\t\treturn $d;\n\t\t}else{\n\t\t\treturn $datetime;\n\t\t}\n\t}",
"public function getTimeFormatted(): string\n {\n return $this->getTime()->format(self::DEFAULT_TIME_FORMAT);\n }",
"public function gmtShift($mode=null)\n {\n if(!$mode) return false;\n else\n {\n $session = wcmSession::getInstance();\n $userObj = new wcmUser;\n $userObj->refresh($session->userId);\n\n if($mode=='write')\n $gmtShift = $userObj->timezone * -1; // value type : 1, -1...\n elseif($mode=='read')\n $gmtShift = $userObj->timezone;\n \n if(substr($gmtShift,0,1) != '-') $gmtShift = '+'.$gmtShift;\n }\n \n $properties = getPublicProperties($this);\n foreach ($properties as $property => $value)\n {\n if(is_string($value) && ($property != 'createdAt') && ($property != 'modifiedAt'))\n {\n if (preg_match(\"/^([0-9]{2,4})-([0-1][0-9])-([0-3][0-9]) (?:([0-2][0-9]):([0-5][0-9]))?/\", trim($value)))\n { \n /*\n wcmtrace('MODE GMT => '.$mode);\n wcmtrace('DATE from => '.$this->$property);\n wcmtrace('DATE op => '.$gmtShift.\" hours\");\n */\n $date = new DateTime($this->$property);\n $date->modify($gmtShift.\" hours\"); // format type : +1 hours, -3 hours\n $this->$property = $date->format(\"Y-m-d H:i:s\");\n /*\n wcmtrace('DATE to => '.$this->$property);\n */\n }\n }\n }\n }",
"function format_tz($a)\n{\n\t$h = floor($a);\n\t$m = ($a - floor($a)) * 60;\n\treturn ($a >= 0?\"+\":\"-\") . (strlen(abs($h)) > 1?\"\":\"0\") . abs($h) .\n\t\t\":\" . ($m==0?\"00\":$m);\n}",
"public static function getTime() : string{\n $t = (object) self::$time;\n $h = $t->hour == 0 ? 12 : $t->hour;\n $h = $h > 12 ? $h-12 : $h;\n \n $h = sprintf(\"%02d\", $h );\n $ampm = $t->hour < 12 ? 'am' : 'pm';\n \n return \"Day $t->day - $h $ampm\";\n }",
"public function formatTime(): string\n {\n return $this->format('H:i:s');\n }",
"public function to_string() {\n\n\t\treturn sprintf( '%s:%s%s', $this->hours, $this->minutes, $this->am_pm );\n\t}",
"public function timeFormatted()\n {\n return $this->entity->created_at->format('F jS, Y @ g:ia');\n }",
"function gmtDateTime($timezone, $format) {\n\tif($timezone == '') {\n\t\t$timezone = 0;\n\t}\n\t$zone = 3600 * $timezone;\n\tif($format == '') {\n\t\t$format = 'Y/m/d H:i:s';\n\t}\n\t$GMTDateTime = gmdate($format, time()+ $zone);\n\treturn $GMTDateTime;\n}",
"private function get_timezone_string() {\n\n\t\t$timezone = wc_timezone_string();\n\n\t\t// convert +05:30 and +05:00 into Etc/GMT+5 - we ignore the minutes because Facebook does not allow minute offsets\n\t\tif ( preg_match( '/([+-])(\\d{2}):\\d{2}/', $timezone, $matches ) ) {\n\n\t\t\t$hours = (int) $matches[2];\n\t\t\t$timezone = \"Etc/GMT{$matches[1]}{$hours}\";\n\t\t}\n\n\t\treturn $timezone;\n\t}",
"function get_gmt_time_from_offset($time_diff)\r\n{\r\n $sign = substr($time_diff, 0, 1);\r\n $tmp = explode(':', str_replace(array('+','-'), '', $time_diff));\r\n\r\n $tmp_time_diff = $tmp[0]+($tmp[1]/60);\r\n\r\n $offset = $sign.$tmp_time_diff;\r\n $dateFormat = \"Y-m-d G:i:s\"; \r\n $timeNdate = gmdate($dateFormat, time()+(3600*$offset));\r\n return $timeNdate;\r\n}",
"function timestr($timestamp) {\n global $t;\n $time = strftime(\"%A, %e. %B %Y, %H:%M:%S %Z\", $timestamp);\n return $time;\n}",
"function dateChgmtFormat($date) {\n\t\tlist($j,$m,$a) = explode(\"/\",$date);\n\t\treturn \"$a/$m/$j\";\n}",
"protected function _getGmDate( $date )\n {\n return gmdate('D, d M Y H:i:s', $date) . ' GMT';\n }",
"function formatTime($timestamp, $format = false) {\n\tglobal $config;\n\t\n\t$format = (!$format) ? $config['timeFormat'] : $format;\n\t$value = substr($config['timeOffset'], 1);\n\t\n\tswitch (substr($config['timeOffset'], 0, 1)) {\n\t\tcase '+':\n\t\t\t$timestamp += $value; \n\t\t\tbreak;\n\t\tcase '-':\n\t\t\t$timestamp -= $value;\n\t\t\tbreak;\n\t}\n//\tdie($format);\n\treturn strftime($format, $timestamp);\n}",
"function time_str($x) {\n if ($x == 0) return \"---\";\n return gmdate('j M Y, G:i:s', $x) . \" UTC\";\n}"
] | [
"0.6931609",
"0.66498625",
"0.6594348",
"0.65209156",
"0.6439615",
"0.6350325",
"0.6329934",
"0.6322833",
"0.6282387",
"0.62662244",
"0.6241074",
"0.62123084",
"0.61874974",
"0.6166758",
"0.6138897",
"0.61380506",
"0.61365634",
"0.6118005",
"0.6044626",
"0.6029335",
"0.59947556",
"0.59894407",
"0.59433305",
"0.5941722",
"0.59256774",
"0.59067905",
"0.58689404",
"0.58647305",
"0.5858383",
"0.5842179"
] | 0.7520989 | 0 |
Does the collection contain the given protocol | public function has(ProtocolInterface $protocol): bool
{
return in_array($protocol, $this->protocols);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function isSupportedProtocol(string $protocol): bool;",
"protected static function isValidProtocol($protocol)\n\t{\n\t\t$list = self::getProtocolList();\n\t\treturn isset($list[$protocol]);\n\t}",
"public function hasProtocol(): bool\n {\n return !empty($this->protocol);\n }",
"public function containsAll(CollectionInterface $collection): bool;",
"public final function collection_isa_ok($collection, $type, $msg = null)\n {\n $validType = true;\n foreach ($collection as $object) {\n $validType &= ($object instanceof $type);\n }\n $this->ok($validType, $msg);\n }",
"public function has();",
"public function has($type);",
"public static function isValid(ProtocolInterface $protocol): bool\n {\n return in_array(get_class($protocol), self::ALLOWED, true);\n }",
"public function has($interface);",
"public function test_collection_contains_returns_true_when_array() {\n\t\t$collection = self::$collection;\n\n\t\t$result = $collection->contains( 'color', 'green' );\n\t\t$this->assertTrue( $result );\n\t}",
"public function has() {}",
"public function containsCollection()\n\t{\n\t\treturn $this->containsCollection;\n\t}",
"public function containsProduct(ProductInterface $product): bool ;",
"public function hasProtocol($protocol_name)\n {\n return isset($this->_protocols[trim($protocol_name)]);\n }",
"function url_exists_in_collection($url, $collection) {\n $maybe_exists = $collection->findOne(array(\"url\" => $url));\n // If so: return\n if (is_array($maybe_exists)) {\n return true;\n }\n\n return false;\n }",
"public function hasCollection($type)\n\t{\n\t\treturn isset($this->_collections[$type]);\n\t}",
"public function test_collection_contains_returns_false_when_array() {\n\t\t$collection = self::$collection;\n\n\t\t$result = $collection->contains( 'color', 'im_not_there' );\n\t\t$this->assertFalse( $result );\n\t}",
"public function has(): bool;",
"public function has(){ }",
"public function hasAddlist(){\n return $this->_has(3);\n }",
"public function hasType(){\r\n return $this->_has(3);\r\n }",
"public function test_collection_has_returns_true() {\n\t\t$collection = self::$collection;\n\n\t\t$result = $collection->has('name');\n\t\t$this->assertTrue( $result );\n\t}",
"public function hasCollection(): bool\n {\n return $this->has(ConfigUtil::COLLECTION);\n }",
"function has($interface, $name='');",
"public function has_items();",
"protected function isImplemented($rule)\n {\n return in_array($rule, $this->clientRules) || in_array($rule, $this->serverRules);\n }",
"public function hasItem(){\r\n return $this->_has(8);\r\n }",
"public static function is_implements($obj_or_class,$interface) {\n return class_exists($obj_or_class) && in_array($interface, class_implements($obj_or_class));\n }",
"public function has($service) {}",
"public function hasKind(){\n return $this->_has(1);\n }"
] | [
"0.6220428",
"0.6067881",
"0.60196805",
"0.5976138",
"0.58843917",
"0.5859172",
"0.58338624",
"0.58160186",
"0.57544625",
"0.5735482",
"0.56359756",
"0.561437",
"0.5608654",
"0.55869985",
"0.5550069",
"0.5544775",
"0.55156887",
"0.5496132",
"0.5472849",
"0.54312986",
"0.5405701",
"0.5403542",
"0.5348387",
"0.5344605",
"0.53133965",
"0.5307229",
"0.5304749",
"0.5303624",
"0.52938473",
"0.5283112"
] | 0.6739594 | 0 |
Throws if the given protocol is unsupported | public static function throwIfUnsupported(ProtocolInterface $protocol)
{
if (!self::isValid($protocol)) {
throw new InvalidVersionException(
'Unsupported version: ' . $protocol::header(),
ExceptionCode::BAD_VERSION
);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function isSupportedProtocol(string $protocol): bool;",
"public static function protocolViolation() : self\n {\n return self::error('protocol_violation');\n }",
"public static function checkProtocol($protocol) {\n return (substr($protocol, -1) == ':') ? $protocol : \"$protocol:\";\n }",
"public function testWithProtocolVersionInvalid(): void\n {\n $this->expectException(InvalidArgumentException::class);\n $this->expectExceptionMessage('Unsupported protocol version `no good` provided');\n $request = new ServerRequest();\n $request->withProtocolVersion('no good');\n }",
"public function getProtocol();",
"public function setProtocol($protocol)\n {\n $this->protocol = $protocol;\n }",
"public function testProto($protocol) {\n\t\tif (!is_int($protocol)) {\n\t\t\t$protocol = ($protocol && $protocol != 'off')? Route::PROTO_HTTPS : Route::PROTO_HTTP;\n\t\t}\n\t\treturn $this->protocol & $protocol;\n\t}",
"public function testEncodeSchemeThrowsForInvalidArgumentScheme(): void\n {\n $this->expectException(\\InvalidArgumentException::class);\n Rfc3986::encodeScheme(\"1\");\n }",
"public function getHttpProtocol();",
"public function getProtocol(): string;",
"public function testAutomaticProtocolType()\n {\n $schemeType = $this->determineUrlScheme();\n\n // Don't pass in a scheme type. Ensure it determines this itself.\n $result = UrlHelper::url('someendpoint');\n $conformsScheme = (strpos($result, $schemeType) !== false);\n $this->assertTrue($conformsScheme);\n }",
"protected static function isValidProtocol($protocol)\n\t{\n\t\t$list = self::getProtocolList();\n\t\treturn isset($list[$protocol]);\n\t}",
"public function testUrlWithProtocol(): void\n {\n $validator = new Validator();\n $this->assertProxyMethod($validator, 'urlWithProtocol', null, [true], 'url');\n $this->assertNotEmpty($validator->validate(['username' => 'google.com']));\n\n $fieldName = 'field_name';\n $rule = 'urlWithProtocol';\n $expectedMessage = 'The provided value must be a URL with protocol';\n $this->assertValidationMessage($fieldName, $rule, $expectedMessage);\n }",
"public function setProtocol($protocol)\n\t{\n\t\tif($protocol === 1)\n\t\t{\n\t\t\t$this->protocol = HTTP_VERSION_1_1;\n\t\t}else\n\t\t{\n\t\t\t$this->protocol = HTTP_VERSION_1_0;\n\t\t}\n\t}",
"public function setProtocol(AbstractProtocol $protocol);",
"public function getCustomBrowserProtocol(): ?string {\n $val = $this->getBackingStore()->get('customBrowserProtocol');\n if (is_null($val) || is_string($val)) {\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'customBrowserProtocol'\");\n }",
"public function setProtocol($var)\n {\n GPBUtil::checkString($var, True);\n $this->protocol = $var;\n\n return $this;\n }",
"public function setProtocol($var)\n {\n GPBUtil::checkString($var, True);\n $this->protocol = $var;\n\n return $this;\n }",
"public function getCustomDialerAppProtocol(): ?string {\n $val = $this->getBackingStore()->get('customDialerAppProtocol');\n if (is_null($val) || is_string($val)) {\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'customDialerAppProtocol'\");\n }",
"public static function getProtocol($data)\n {\n self::$_log = \\Seraphp\\Log\\LogFactory::getInstance();\n if (preg_match('/^(GET|POST|HEAD) (.+) HTTP\\/(\\d\\.\\d)/', $data)) {\n return 'http';\n } else {\n return 'other';\n }\n }",
"public function test_set_protocol($protocol, $expected)\n\t{\n\t\t$request = Request::factory();\n\n\t\t// Set the supplied protocol\n\t\t$result = $request->protocol($protocol);\n\n\t\t// Test the set value\n\t\t$this->assertSame($request->protocol(), $expected);\n\n\t\t// Test the return value\n\t\t$this->assertTrue($request instanceof $result);\n\t}",
"public function hasProtocol(): bool\n {\n return !empty($this->protocol);\n }",
"public function testCheckingForUnsupportedAlgorithm()\n {\n $this->assertFalse(Algorithms::has('foo'));\n }",
"protected function getSslProtocol(){\n\t\t$version = $this->getForcedSslVersion();\n\t\t$rs = null;\n\t\tswitch ($version) {\n\t\t\tcase self::SSL_VERSION_TLSV11:\n\t\t\t\t$rs = 'tlsv1.1';\n\t\t\t\tbreak;\n\t\t\tcase self::SSL_VERSION_TLSV12:\n\t\t\t\t$rs = 'tlsv1.2';\n\t\t\t\tbreak;\n\t\t\tcase self::SSL_VERSION_TLSV13:\n\t\t\t\t$rs = 'tlsv1.3';\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\t$rs = 'ssl';\n\t\t}\n\t\tif ($rs === null) {\n\t\t\tthrow new Exception(\"Invalid state.\");\n\t\t}\n\n\t\t$possibleTransportProtocols = stream_get_transports();\n\t\tif (!in_array($rs, $possibleTransportProtocols)) {\n\t\t\tthrow new Exception(\n\t\t\t\t\tCustomweb_Core_String::_(\n\t\t\t\t\t\t\t\"The enforced SSL protocol is '@actual'. But this protocol is not supported by the web server. Supported stream protocols by the web server are @supported.\")->format(\n\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t'@actual' => $rs,\n\t\t\t\t\t\t\t\t'@supported' => implode(',', $possibleTransportProtocols)\n\t\t\t\t\t\t\t))->toString());\n\t\t}\n\n\t\treturn $rs;\n\t}",
"protected function assertExtensions()\n {\n if (!extension_loaded('sockets')) {\n throw new NotSupportedException(\n 'The \"sockets\" extension is required by this connection backend.'\n );\n }\n\n if (!extension_loaded('phpiredis')) {\n throw new NotSupportedException(\n 'The \"phpiredis\" extension is required by this connection backend.'\n );\n }\n }",
"function ss_allow_my_protocol( $protocols ){\n $protocols[] = 'slowfeeds';\n\t$protocols[] = 'websub';\n return $protocols;\n}",
"public function setProtocol($protocol) {\n\t\t$protocol = strtolower($protocol);\n\t\tif ($protocol != 'http' && $protocol != 'https') {\n\t\t\tthrow new Exception(\"You can either use HTTP or HTTPS in the URL. Other protocols are not supported.\");\n\t\t}\n\t\t$this->url->setScheme($protocol);\n\t\treturn $this;\n\t}",
"private function assertExtensions()\n {\n if (!extension_loaded('curl')) {\n throw new NotSupportedException(\n 'The \"curl\" extension is required by this connection backend.'\n );\n }\n\n if (!extension_loaded('phpiredis')) {\n throw new NotSupportedException(\n 'The \"phpiredis\" extension is required by this connection backend.'\n );\n }\n }",
"protected function _validateProtocolParams($protocolParams, $requiredParams = [])\n {\n // validate version if specified.\n if (isset($protocolParams['oauth_version'])) {\n $this->_validateVersionParam($protocolParams['oauth_version']);\n }\n\n // Required parameters validation. Default to minimum required params if not provided.\n if (empty($requiredParams)) {\n $requiredParams = [\n \"oauth_consumer_key\",\n \"oauth_signature\",\n \"oauth_signature_method\",\n \"oauth_nonce\",\n \"oauth_timestamp\",\n ];\n }\n $this->_checkRequiredParams($protocolParams, $requiredParams);\n\n if (isset(\n $protocolParams['oauth_token']\n ) && !$this->_tokenProvider->validateOauthToken(\n $protocolParams['oauth_token']\n )\n ) {\n throw new OauthInputException(new Phrase('The token length is invalid. Check the length and try again.'));\n }\n\n // Validate signature method.\n if (!in_array($protocolParams['oauth_signature_method'], self::getSupportedSignatureMethods())) {\n throw new OauthInputException(\n new Phrase(\n 'Signature method %1 is not supported',\n [$protocolParams['oauth_signature_method']]\n )\n );\n }\n\n $consumer = $this->_tokenProvider->getConsumerByKey($protocolParams['oauth_consumer_key']);\n $this->_nonceGenerator->validateNonce(\n $consumer,\n $protocolParams['oauth_nonce'],\n $protocolParams['oauth_timestamp']\n );\n }",
"public function protocol($value = null) {\n if (!is_null($value) && in_array($value, ['http', 'https'])) {\n $this->_Protocol = $value;\n }\n\n return $this->_Protocol;\n }"
] | [
"0.678399",
"0.6456418",
"0.638564",
"0.6301306",
"0.6032837",
"0.59509015",
"0.59506565",
"0.5919909",
"0.5905618",
"0.5826054",
"0.58259577",
"0.58120686",
"0.57834893",
"0.5555288",
"0.5554629",
"0.5548877",
"0.5512162",
"0.5512162",
"0.550291",
"0.5502337",
"0.5497651",
"0.5477628",
"0.5455592",
"0.545477",
"0.5435461",
"0.5415362",
"0.5396453",
"0.53917974",
"0.53799725",
"0.53649235"
] | 0.7061103 | 0 |
Get a collection containing protocol version 1. | public static function v1(): self
{
throw new InvalidVersionException("Version 1 was removed", ExceptionCode::OBSOLETE_PROTOCOL);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getProtocolVersions(): array {\n return $this->protocolVersions;\n }",
"public function get(): Collection;",
"final public function openCollection(?string $version = null): Contracts\\OpenCollection\n {\n return $this->uses('OpenCollection', $version);\n }",
"public function all(): Collection\n {\n $this->method = 'GET';\n\n $this->setOptions([\n 'headers' => [\n 'Accept' => 'application/json',\n 'Content-type' => 'application/json',\n ],\n 'auth' => [config('paymongo.secret_key'), ''],\n ]);\n\n return $this->request();\n }",
"public function v1(): Notion\n {\n $this->setVersion('v1');\n\n return $this;\n }",
"public function getApiCollection() : ?\\ArrayIterator;",
"public function getAvailabilityData(): Collection\n {\n return new Collection();\n }",
"public function toCollection(): Collection\n {\n return Collection::make($this->toArray());\n }",
"public function getCollection();",
"public function getCollection();",
"public function getCollection() {\n\t\t$colelction = $this->tsValue('collection');\n\t\tvar_dump($collection);\n\t\treturn $this->tsValue('collection');\n\t}",
"public function getSingleCollection()\n {\n return $this->sendAPIRequest('GET',\"/collections/{$this->transactionReference}\");\n }",
"public function getChannels()\n {\n $resultString = $this->requestMaker->performRequest($this->url);\n\n $channel = $this->serializer->deserialize(\n $resultString,\n 'Ist1\\ChannelBundle\\Entity\\ChannelCollection',\n $this->format\n );\n\n return $channel;\n }",
"public function getCollection()\n {\n return parent::getCollection();\n }",
"public function getCollection($name);",
"public function getCustomOneProductCollection()\n {\n $collection = $this->getLinkInstance()->useCustomOneLinks()\n ->getProductCollection()\n ->setIsStrongMode();\n $collection->setProduct($this);\n return $collection;\n }",
"public function limitedPhpVersions(): Collection\n {\n return collect(static::LIMITED_PHP_VERSIONS);\n }",
"public function getVersions();",
"public function getVersions();",
"public function getVersions();",
"public function get (string $name): Collection\n {\n return $this->payloads->get($name);\n }",
"public function getList()\n {\n /** @var \\KienAHT\\Poll\\Model\\ResourceModel\\CusAnswer\\Collection $collection */\n $collection = $this->CusAnswerCollectionFactory->create();\n return $collection;\n }",
"public function toCollection(): Collection\n {\n return $this->manager->getComponent();\n }",
"public function getCollection() {\n if ($this->collection == null) {\n $this->collection = new \\Broker\\Collection ( SITE_CACHE_DATABASE_DIR, $this->configuration );\n }\n return $this->collection;\n }",
"public function getItems(): Collection;",
"public function getVersions(){\n\t\n\t\tif( empty($this->_allversions) ){\n\t\t\n\t\t\t$query = \"SELECT a.* \"\n\t\t\t.\"FROM #__zbrochure_client_versions AS a \"\n\t\t\t.\"WHERE a.client_id = \".$this->_id\n\t\t\t;\n\t\t\t\t\t\n\t\t\t$this->_db->setQuery( $query );\n\t\t\t$this->_allversions = $this->_db->loadObjectlist();\n\t\t\n\t\t}\n\t\t\n\t\treturn $this->_allversions;\n\t\t\n\t}",
"public function getAllUnmappedConnectorsOfEPC1() {\r\n\t\t$unmappedConnectors = array();\r\n\t\t$connectors = $this->epc1->getAllConnectors();\r\n\t\tforeach ( $connectors as $id => $type ) {\r\n\t\t\tif ( !$this->mappingExistsFrom($id) ) {\r\n\t\t\t\t$unmappedConnectors[$id] = $type;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn $unmappedConnectors;\r\n\t}",
"public function get($collection);",
"public function get($collection);",
"public function collection()\n {\n return \\Statamic\\API\\Content::collection($this->collectionName());\n }"
] | [
"0.53702855",
"0.51689595",
"0.5123429",
"0.5112646",
"0.5112112",
"0.5087198",
"0.5071823",
"0.50617605",
"0.503883",
"0.503883",
"0.498474",
"0.49267972",
"0.49117666",
"0.4869115",
"0.4837182",
"0.482474",
"0.4818372",
"0.48057383",
"0.48057383",
"0.48057383",
"0.48025918",
"0.47729427",
"0.47490832",
"0.4743587",
"0.47375745",
"0.47310174",
"0.47196645",
"0.47132525",
"0.47132525",
"0.47125977"
] | 0.5288395 | 1 |
Get a collection containing protocol version 2. | public static function v2(): self
{
throw new InvalidVersionException("Version 2 was removed", ExceptionCode::OBSOLETE_PROTOCOL);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getCustomTwoProductCollection()\n {\n $collection = $this->getLinkInstance()->useCustomTwoLinks()\n ->getProductCollection()\n ->setIsStrongMode();\n $collection->setProduct($this);\n return $collection;\n }",
"public function getProtocolVersions(): array {\n return $this->protocolVersions;\n }",
"public function getCustomTwoLinkCollection()\n {\n $collection = $this->getLinkInstance()->useCustomTwoLinks()\n ->getLinkCollection();\n $collection->setProduct($this);\n $collection->addLinkTypeIdFilter();\n $collection->addProductIdFilter();\n $collection->joinAttributes();\n return $collection;\n }",
"public function get_v2() {\n $this->permission('Garden.Settings.Manage');\n\n $this->schema(\n new Schema(['$ref' => 'https://raw.githubusercontent.com/OAI/OpenAPI-Specification/master/schemas/v2.0/schema.json']),\n 'out'\n );\n\n $this->getSession()->getPermissions()->setAdmin(true);\n return $this->swaggerModel->getSwaggerObject();\n }",
"public function get(): Collection;",
"public function withHttp2Upgrade(): self\n {\n $new = clone $this;\n $new->allowHttp2Upgrade = true;\n\n return $new;\n }",
"public function toCollection(): Collection\n {\n return Collection::make($this->toArray());\n }",
"private static function getMailServerProtocols(): array {\n $protocols = [\n 'imap' => [\n //TRANS: IMAP mail server protocol\n 'label' => __('IMAP'),\n 'protocol' => 'Laminas\\Mail\\Protocol\\Imap',\n 'storage' => 'Laminas\\Mail\\Storage\\Imap',\n ],\n 'pop' => [\n //TRANS: POP3 mail server protocol\n 'label' => __('POP'),\n 'protocol' => 'Laminas\\Mail\\Protocol\\Pop3',\n 'storage' => 'Laminas\\Mail\\Storage\\Pop3',\n ]\n ];\n\n $additionnal_protocols = Plugin::doHookFunction('mail_server_protocols', []);\n if (is_array($additionnal_protocols)) {\n foreach ($additionnal_protocols as $key => $additionnal_protocol) {\n if (array_key_exists($key, $protocols)) {\n trigger_error(\n sprintf('Protocol \"%s\" is already defined and cannot be overwritten.', $key),\n E_USER_WARNING\n );\n continue; // already exists, do not overwrite\n }\n\n if (!array_key_exists('label', $additionnal_protocol)\n || !array_key_exists('protocol', $additionnal_protocol)\n || !array_key_exists('storage', $additionnal_protocol)) {\n trigger_error(\n sprintf('Invalid specs for protocol \"%s\".', $key),\n E_USER_WARNING\n );\n continue;\n }\n $protocols[$key] = $additionnal_protocol;\n }\n } else {\n trigger_error(\n 'Invalid value returned by \"mail_server_protocols\" hook.',\n E_USER_WARNING\n );\n }\n\n return $protocols;\n }",
"public function getApiCollection() : ?\\ArrayIterator;",
"public function getOauth2()\n {\n return $this->readOneof(20);\n }",
"public function getAvailabilityData(): Collection\n {\n return new Collection();\n }",
"function _setPackageVersion2_1()\n {\n $info = array(\n 'version' => '2.1',\n 'xmlns' => 'http://pear.php.net/dtd/package-2.1',\n 'xmlns:tasks' => 'http://pear.php.net/dtd/tasks-1.0',\n 'xmlns:xsi' => 'http://www.w3.org/2001/XMLSchema-instance',\n 'xsi:schemaLocation' => 'http://pear.php.net/dtd/tasks-1.0\n http://pear.php.net/dtd/tasks-1.0.xsd\n http://pear.php.net/dtd/package-2.1\n http://pear.php.net/dtd/package-2.1.xsd',\n );\n if (!isset($this->_packageInfo['attribs'])) {\n $this->_packageInfo = array_merge(array('attribs' => $info), $this->_packageInfo);\n } else {\n $this->_packageInfo['attribs'] = $info;\n }\n }",
"public function getCvv2()\n {\n return $this->cvv2;\n }",
"public function getImagel2c2() {\n return $this->get(self::IMAGEL2C2);\n }",
"public function getListingSubtype2()\n {\n return $this->listingSubtype2;\n }",
"public function withoutHttp2Upgrade(): self\n {\n $new = clone $this;\n $new->allowHttp2Upgrade = false;\n\n return $new;\n }",
"public static function get() : Collection\n {\n return Collection::make([\n __DIR__ . '/../../config/auth.php' => 'auth',\n __DIR__ . '/../../config/broadcasting.php' => 'broadcasting',\n __DIR__ . '/../../config/cache.php' => 'cache',\n __DIR__ . '/../../config/clockwork.php' => 'clockwork',\n __DIR__ . '/../../config/cors.php' => 'cors',\n __DIR__ . '/../../config/database.php' => 'database',\n __DIR__ . '/../../config/filesystems.php' => 'filesystems',\n __DIR__ . '/../../config/logging.php' => 'logging',\n __DIR__ . '/../../config/hashing.php' => 'hashing',\n __DIR__ . '/../../config/mail.php' => 'mail',\n __DIR__ . '/../../config/sanctum.php' => 'sanctum',\n __DIR__ . '/../../config/session.php' => 'session',\n __DIR__ . '/../../config/queue.php' => 'queue',\n __DIR__ . '/../../config/view.php' => 'view',\n __DIR__ . '/../../config/ziggy.php' => 'ziggy',\n ]);\n }",
"protected function nested_composite_data_types_2_2() {\n // Get the composite data types that should be nested\n $composite_data_types = $this->composite_data_types();\n\n // Create the nested composite (UDT)\n foreach ($composite_data_types as $composite_data_type) {\n // Define the user data type\n $type = Cassandra\\Type::userType(\n \"y\", $composite_data_type[0],\n \"z\", $composite_data_type[0]\n );\n $name = $this->generate_user_data_type_name($type);\n $type = $type->withName($name);\n\n // Create the nested composite data type (one value only)\n $nested_composite_data_types[] = array(\n $type,\n array(\n $type->create(\n \"y\", $composite_data_type[1][0],\n \"z\", $composite_data_type[1][1]\n )\n )\n );\n }\n\n // Return the nested composite data types\n return $nested_composite_data_types;\n }",
"public function getChannelDeposits(): Collection;",
"public function getSockets()\n\t{\n\t\t//static::$logger->sendMessage(\"Received call to getSockets\", LogLevel::TRACE);\n\t\t$return = $this->motherCollection->getSockets();\n\t\t//static::$logger->sendMessage(\"Finished call to getSockets\", LogLevel::TRACE);\n\t\t\n\t\treturn $return;\n\t}",
"public function collect(): Collection\n {\n return new Collection($this->items);\n }",
"public function getCollection();",
"public function getCollection();",
"public function getListeProduitsV2()\n {\n return $this->return;\n }",
"final public static function get()\n\t{\n\t\treturn array(\n\t\t\t'ArrayOfstring' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfstring',\n\t\t\t'ArrayOfint' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfint',\n\t\t\t'ArrayOfanyType' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfanyType',\n\t\t\t'Version' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\Version',\n\t\t\t'LoginData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\LoginData',\n\t\t\t'AllotmentRequest' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\AllotmentRequest',\n\t\t\t'AllotmentAccount' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\AllotmentAccount',\n\t\t\t'CRS' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\CRS',\n\t\t\t'ArrayOfCacheConfigurationData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfCacheConfigurationData',\n\t\t\t'CacheConfigurationData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\CacheConfigurationData',\n\t\t\t'ArrayOfAirportMCT' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfAirportMCT',\n\t\t\t'AirportMCT' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\AirportMCT',\n\t\t\t'ArrayOfPaymentFilter' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfPaymentFilter',\n\t\t\t'PaymentFilter' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\PaymentFilter',\n\t\t\t'ArrayOfPaymentFilterDetails' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfPaymentFilterDetails',\n\t\t\t'PaymentFilterDetails' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\PaymentFilterDetails',\n\t\t\t'Vayant' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\Vayant',\n\t\t\t'ArrayOfCharterAccount' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfCharterAccount',\n\t\t\t'CharterAccount' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\CharterAccount',\n\t\t\t'ArrayOfTouroperator' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfTouroperator',\n\t\t\t'Touroperator' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\Touroperator',\n\t\t\t'GDSFares' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\GDSFares',\n\t\t\t'ArrayOfPercentageConfig' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfPercentageConfig',\n\t\t\t'PercentageConfig' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\PercentageConfig',\n\t\t\t'EnhancedFeederSearch' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\EnhancedFeederSearch',\n\t\t\t'XtremePricer' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\XtremePricer',\n\t\t\t'RequestVayantData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\RequestVayantData',\n\t\t\t'ArrayOfAgent' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfAgent',\n\t\t\t'Agent' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\Agent',\n\t\t\t'SharedPrice' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\SharedPrice',\n\t\t\t'SurchargeData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\SurchargeData',\n\t\t\t'CacheInfoData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\CacheInfoData',\n\t\t\t'AllotmentResponse' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\AllotmentResponse',\n\t\t\t'ArrayOfTaxDetail' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfTaxDetail',\n\t\t\t'TaxDetail' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\TaxDetail',\n\t\t\t'FareTypeData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\FareTypeData',\n\t\t\t'RuleModificationInfo' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\RuleModificationInfo',\n\t\t\t'ArrayOfRuleInfo' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfRuleInfo',\n\t\t\t'RuleInfo' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\RuleInfo',\n\t\t\t'ModuleResponseData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\ModuleResponseData',\n\t\t\t'TotalPrice' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\TotalPrice',\n\t\t\t'ResponseInfoDetails' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\ResponseInfoDetails',\n\t\t\t'ArrayOfRaisedException' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfRaisedException',\n\t\t\t'RaisedException' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\RaisedException',\n\t\t\t'Contact' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\Contact',\n\t\t\t'ArrayOfPhoneDetails' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfPhoneDetails',\n\t\t\t'PhoneDetails' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\PhoneDetails',\n\t\t\t'APISDetails' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\APISDetails',\n\t\t\t'ArrayOfPassengerBoarding' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfPassengerBoarding',\n\t\t\t'PassengerBoarding' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\PassengerBoarding',\n\t\t\t'ArrayOfSKRequestData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfSKRequestData',\n\t\t\t'SKRequestData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\SKRequestData',\n\t\t\t'ArrayOfSSRRequestData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfSSRRequestData',\n\t\t\t'SSRRequestData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\SSRRequestData',\n\t\t\t'ArrayOfQuoteTax' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfQuoteTax',\n\t\t\t'QuoteTax' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\QuoteTax',\n\t\t\t'ArrayOfQuoteResponseExchangeRate' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfQuoteResponseExchangeRate',\n\t\t\t'QuoteResponseExchangeRate' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\QuoteResponseExchangeRate',\n\t\t\t'ArrayOfBlackoutDateData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfBlackoutDateData',\n\t\t\t'BlackoutDateData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\BlackoutDateData',\n\t\t\t'ArrayOfOSIRequestData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfOSIRequestData',\n\t\t\t'OSIRequestData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\OSIRequestData',\n\t\t\t'FormOfIdentification' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\FormOfIdentification',\n\t\t\t'ArrayOfAPISDetails' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfAPISDetails',\n\t\t\t'ArrayOfStatusData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfStatusData',\n\t\t\t'StatusData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\StatusData',\n\t\t\t'ArrayOfVersionData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfVersionData',\n\t\t\t'VersionData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\VersionData',\n\t\t\t'UserAccessData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\UserAccessData',\n\t\t\t'ArrayOfUserPccData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfUserPccData',\n\t\t\t'UserPccData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\UserPccData',\n\t\t\t'ArrayOfCacheDurationDefinition' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfCacheDurationDefinition',\n\t\t\t'CacheDurationDefinition' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\CacheDurationDefinition',\n\t\t\t'CharterFaresSettings' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\CharterFaresSettings',\n\t\t\t'EnhancedFeederSearchSetting' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\EnhancedFeederSearchSetting',\n\t\t\t'GDSServerSettings' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\GDSServerSettings',\n\t\t\t'GetFareRestrictionData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\GetFareRestrictionData',\n\t\t\t'PreferenceSettings' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\PreferenceSettings',\n\t\t\t'WebFaresSettings' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\WebFaresSettings',\n\t\t\t'ArrayOfWebCarrier' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfWebCarrier',\n\t\t\t'WebCarrier' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\WebCarrier',\n\t\t\t'XtremePricerSettings' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\XtremePricerSettings',\n\t\t\t'ExtenalCounting' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\ExtenalCounting',\n\t\t\t'ArrayOfCommandIPData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfCommandIPData',\n\t\t\t'CommandIPData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\CommandIPData',\n\t\t\t'ArrayOfEntryClient' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfEntryClient',\n\t\t\t'EntryClient' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\EntryClient',\n\t\t\t'RequestGDSData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\RequestGDSData',\n\t\t\t'ArrayOfRequestFareGroup' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfRequestFareGroup',\n\t\t\t'RequestFareGroup' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\RequestFareGroup',\n\t\t\t'ArrayOfRequestCarrierData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfRequestCarrierData',\n\t\t\t'RequestCarrierData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\RequestCarrierData',\n\t\t\t'RequestConfigurationData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\RequestConfigurationData',\n\t\t\t'RequestCRSConfigData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\RequestCRSConfigData',\n\t\t\t'RequestFareData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\RequestFareData',\n\t\t\t'RequestCharterData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\RequestCharterData',\n\t\t\t'RequestNetData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\RequestNetData',\n\t\t\t'RequestWebData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\RequestWebData',\n\t\t\t'ArrayOfRequestLegData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfRequestLegData',\n\t\t\t'RequestLegData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\RequestLegData',\n\t\t\t'RequestToleranceData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\RequestToleranceData',\n\t\t\t'ArrayOfRequestPassengerData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfRequestPassengerData',\n\t\t\t'RequestPassengerData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\RequestPassengerData',\n\t\t\t'CurrencyData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\CurrencyData',\n\t\t\t'ResponseCurrencyData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\ResponseCurrencyData',\n\t\t\t'FareRequestData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\FareRequestData',\n\t\t\t'ArrayOfFareRequestCarrier' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfFareRequestCarrier',\n\t\t\t'FareRequestCarrier' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\FareRequestCarrier',\n\t\t\t'FareRequestConfiguration' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\FareRequestConfiguration',\n\t\t\t'FareRequestFare' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\FareRequestFare',\n\t\t\t'FareRequestCharter' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\FareRequestCharter',\n\t\t\t'FareRequestNet' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\FareRequestNet',\n\t\t\t'FareRequestVayant' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\FareRequestVayant',\n\t\t\t'FareRequestWeb' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\FareRequestWeb',\n\t\t\t'ArrayOfFareRequestLeg' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfFareRequestLeg',\n\t\t\t'FareRequestLeg' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\FareRequestLeg',\n\t\t\t'ArrayOfFareRequestConnection' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfFareRequestConnection',\n\t\t\t'FareRequestConnection' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\FareRequestConnection',\n\t\t\t'ArrayOfFareRequestSegment' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfFareRequestSegment',\n\t\t\t'FareRequestSegment' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\FareRequestSegment',\n\t\t\t'FareRequestStay' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\FareRequestStay',\n\t\t\t'ArrayOfFareRequestPassenger' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfFareRequestPassenger',\n\t\t\t'FareRequestPassenger' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\FareRequestPassenger',\n\t\t\t'FareRequestPricing' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\FareRequestPricing',\n\t\t\t'ArrayOfBoardingResponseDetail' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfBoardingResponseDetail',\n\t\t\t'BoardingResponseDetail' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\BoardingResponseDetail',\n\t\t\t'ArrayOfBoardingResponseBaggageDetail' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfBoardingResponseBaggageDetail',\n\t\t\t'BoardingResponseBaggageDetail' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\BoardingResponseBaggageDetail',\n\t\t\t'BoardingResponseData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\BoardingResponseData',\n\t\t\t'CRSProfileData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\CRSProfileData',\n\t\t\t'ArrayOfQueueData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfQueueData',\n\t\t\t'QueueData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\QueueData',\n\t\t\t'MultiChannelQueryRequestData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\MultiChannelQueryRequestData',\n\t\t\t'ArrayOfQueryRuleData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfQueryRuleData',\n\t\t\t'QueryRuleData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\QueryRuleData',\n\t\t\t'BaseRuleData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\BaseRuleData',\n\t\t\t'ArrayOfQueryActionData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfQueryActionData',\n\t\t\t'QueryActionData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\QueryActionData',\n\t\t\t'ArrayOfCarrierData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfCarrierData',\n\t\t\t'CarrierData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\CarrierData',\n\t\t\t'QuerySearchCriteriaData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\QuerySearchCriteriaData',\n\t\t\t'ArrayOfDetailedPaymentMethod' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfDetailedPaymentMethod',\n\t\t\t'DetailedPaymentMethod' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\DetailedPaymentMethod',\n\t\t\t'PaymentMethods' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\PaymentMethods',\n\t\t\t'FareResponseData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\FareResponseData',\n\t\t\t'ArrayOfFareResponseFare' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfFareResponseFare',\n\t\t\t'FareResponseFare' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\FareResponseFare',\n\t\t\t'FareResponseFlight' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\FareResponseFlight',\n\t\t\t'ArrayOfFareResponseLeg' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfFareResponseLeg',\n\t\t\t'FareResponseLeg' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\FareResponseLeg',\n\t\t\t'ArrayOfFareResponseConnection' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfFareResponseConnection',\n\t\t\t'FareResponseConnection' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\FareResponseConnection',\n\t\t\t'ArrayOfFareResponseSegment' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfFareResponseSegment',\n\t\t\t'FareResponseSegment' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\FareResponseSegment',\n\t\t\t'ArrayOfFareResponseDatePair' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfFareResponseDatePair',\n\t\t\t'FareResponseDatePair' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\FareResponseDatePair',\n\t\t\t'FareResponseLegFareInfo' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\FareResponseLegFareInfo',\n\t\t\t'FareResponseRouting' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\FareResponseRouting',\n\t\t\t'FareResponseRule' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\FareResponseRule',\n\t\t\t'FareResponseTicket' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\FareResponseTicket',\n\t\t\t'ArrayOfFareResponseLegPassenger' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfFareResponseLegPassenger',\n\t\t\t'FareResponseLegPassenger' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\FareResponseLegPassenger',\n\t\t\t'ArrayOfFareResponseUserData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfFareResponseUserData',\n\t\t\t'FareResponseUserData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\FareResponseUserData',\n\t\t\t'ArrayOfFareResponsePassenger' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfFareResponsePassenger',\n\t\t\t'FareResponsePassenger' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\FareResponsePassenger',\n\t\t\t'FareResponseETicket' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\FareResponseETicket',\n\t\t\t'FareResponsePTicket' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\FareResponsePTicket',\n\t\t\t'BookRequestData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\BookRequestData',\n\t\t\t'BookRequestBackOffice' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\BookRequestBackOffice',\n\t\t\t'BookRequestConfiguration' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\BookRequestConfiguration',\n\t\t\t'BookRequestCRSConfiguration' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\BookRequestCRSConfiguration',\n\t\t\t'BookRequestCharter' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\BookRequestCharter',\n\t\t\t'BookRequestWebFare' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\BookRequestWebFare',\n\t\t\t'BookRequestFare' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\BookRequestFare',\n\t\t\t'BookRequestCorporate' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\BookRequestCorporate',\n\t\t\t'ArrayOfBookRequestLeg' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfBookRequestLeg',\n\t\t\t'BookRequestLeg' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\BookRequestLeg',\n\t\t\t'ArrayOfBookRequestSegment' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfBookRequestSegment',\n\t\t\t'BookRequestSegment' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\BookRequestSegment',\n\t\t\t'ArrayOfBookRequestOSI' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfBookRequestOSI',\n\t\t\t'BookRequestOSI' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\BookRequestOSI',\n\t\t\t'ArrayOfBookRequestPassenger' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfBookRequestPassenger',\n\t\t\t'BookRequestPassenger' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\BookRequestPassenger',\n\t\t\t'ArrayOfBookRequestSeatData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfBookRequestSeatData',\n\t\t\t'BookRequestSeatData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\BookRequestSeatData',\n\t\t\t'BookRequestPayment' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\BookRequestPayment',\n\t\t\t'ArrayOfBookRequestRemark' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfBookRequestRemark',\n\t\t\t'BookRequestRemark' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\BookRequestRemark',\n\t\t\t'ChangeFlightWebFare' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\ChangeFlightWebFare',\n\t\t\t'CreditCardData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\CreditCardData',\n\t\t\t'CreditCardRequest' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\CreditCardRequest',\n\t\t\t'AccountData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\AccountData',\n\t\t\t'PriceData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\PriceData',\n\t\t\t'Response' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\Response',\n\t\t\t'WebResponseDetails' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\WebResponseDetails',\n\t\t\t'ArrayOfBookResponseSeatReservation' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfBookResponseSeatReservation',\n\t\t\t'BookResponseSeatReservation' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\BookResponseSeatReservation',\n\t\t\t'BookResponseData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\BookResponseData',\n\t\t\t'ArrayOfBookResponseLeg' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfBookResponseLeg',\n\t\t\t'BookResponseLeg' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\BookResponseLeg',\n\t\t\t'ArrayOfBookResponseSegment' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfBookResponseSegment',\n\t\t\t'BookResponseSegment' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\BookResponseSegment',\n\t\t\t'ArrayOfBookResponsePassenger' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfBookResponsePassenger',\n\t\t\t'BookResponsePassenger' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\BookResponsePassenger',\n\t\t\t'BookResponseSurcharges' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\BookResponseSurcharges',\n\t\t\t'DetailsRequestData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\DetailsRequestData',\n\t\t\t'ArrayOfDetailsRequestLeg' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfDetailsRequestLeg',\n\t\t\t'DetailsRequestLeg' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\DetailsRequestLeg',\n\t\t\t'ArrayOfDetailsRequestSegment' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfDetailsRequestSegment',\n\t\t\t'DetailsRequestSegment' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\DetailsRequestSegment',\n\t\t\t'DetailsResponseData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\DetailsResponseData',\n\t\t\t'ArrayOfDetailsResponseLeg' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfDetailsResponseLeg',\n\t\t\t'DetailsResponseLeg' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\DetailsResponseLeg',\n\t\t\t'ArrayOfDetailsResponseSegment' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfDetailsResponseSegment',\n\t\t\t'DetailsResponseSegment' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\DetailsResponseSegment',\n\t\t\t'TermsAndConditionsRequestData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\TermsAndConditionsRequestData',\n\t\t\t'TermsAndConditionsRequestCharter' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\TermsAndConditionsRequestCharter',\n\t\t\t'TermsAndConditionsResponseData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\TermsAndConditionsResponseData',\n\t\t\t'RuleTextRequestData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\RuleTextRequestData',\n\t\t\t'RuleTextRequestCharter' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\RuleTextRequestCharter',\n\t\t\t'ArrayOfRuleTextRequestLeg' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfRuleTextRequestLeg',\n\t\t\t'RuleTextRequestLeg' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\RuleTextRequestLeg',\n\t\t\t'ArrayOfRuleTextRequestSegment' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfRuleTextRequestSegment',\n\t\t\t'RuleTextRequestSegment' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\RuleTextRequestSegment',\n\t\t\t'ArrayOfRuleTextRequestPassenger' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfRuleTextRequestPassenger',\n\t\t\t'RuleTextRequestPassenger' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\RuleTextRequestPassenger',\n\t\t\t'RuleTextResponseData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\RuleTextResponseData',\n\t\t\t'ArrayOfRuleTextResponseRule' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfRuleTextResponseRule',\n\t\t\t'RuleTextResponseRule' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\RuleTextResponseRule',\n\t\t\t'ArrayOfRuleTextResponsePassengerType' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfRuleTextResponsePassengerType',\n\t\t\t'RuleTextResponsePassengerType' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\RuleTextResponsePassengerType',\n\t\t\t'ArrayOfRuleTextResponseTitle' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfRuleTextResponseTitle',\n\t\t\t'RuleTextResponseTitle' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\RuleTextResponseTitle',\n\t\t\t'ArrayOfRuleTextResponseLine' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfRuleTextResponseLine',\n\t\t\t'RuleTextResponseLine' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\RuleTextResponseLine',\n\t\t\t'RuleRequestData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\RuleRequestData',\n\t\t\t'RuleResponseData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\RuleResponseData',\n\t\t\t'ArrayOfRuleResponseInformation' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfRuleResponseInformation',\n\t\t\t'RuleResponseInformation' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\RuleResponseInformation',\n\t\t\t'ArrayOfRuleResponseRule' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfRuleResponseRule',\n\t\t\t'RuleResponseRule' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\RuleResponseRule',\n\t\t\t'ArrayOfRuleResponseLocation' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfRuleResponseLocation',\n\t\t\t'RuleResponseLocation' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\RuleResponseLocation',\n\t\t\t'ArrayOfRuleResponseBlackoutDate' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfRuleResponseBlackoutDate',\n\t\t\t'RuleResponseBlackoutDate' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\RuleResponseBlackoutDate',\n\t\t\t'ArrayOfRuleResponseBlackoutNumber' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfRuleResponseBlackoutNumber',\n\t\t\t'RuleResponseBlackoutNumber' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\RuleResponseBlackoutNumber',\n\t\t\t'ArrayOfRuleResponseCarrier' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfRuleResponseCarrier',\n\t\t\t'RuleResponseCarrier' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\RuleResponseCarrier',\n\t\t\t'ArrayOfRuleResponseExtendedTicketInfo' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfRuleResponseExtendedTicketInfo',\n\t\t\t'RuleResponseExtendedTicketInfo' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\RuleResponseExtendedTicketInfo',\n\t\t\t'ArrayOfRuleResponseTicketType' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfRuleResponseTicketType',\n\t\t\t'RuleResponseTicketType' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\RuleResponseTicketType',\n\t\t\t'ArrayOfRuleResponsePassengerType' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfRuleResponsePassengerType',\n\t\t\t'RuleResponsePassengerType' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\RuleResponsePassengerType',\n\t\t\t'RuleResponseUserDefinedField' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\RuleResponseUserDefinedField',\n\t\t\t'ArrayOfRuleResponseWeekdaySurcharge' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfRuleResponseWeekdaySurcharge',\n\t\t\t'RuleResponseWeekdaySurcharge' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\RuleResponseWeekdaySurcharge',\n\t\t\t'QuoteRequestData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\QuoteRequestData',\n\t\t\t'ArrayOfQuoteRequestLeg' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfQuoteRequestLeg',\n\t\t\t'QuoteRequestLeg' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\QuoteRequestLeg',\n\t\t\t'ArrayOfQuoteRequestSegment' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfQuoteRequestSegment',\n\t\t\t'QuoteRequestSegment' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\QuoteRequestSegment',\n\t\t\t'ArrayOfQuoteRequestFarebase' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfQuoteRequestFarebase',\n\t\t\t'QuoteRequestFarebase' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\QuoteRequestFarebase',\n\t\t\t'ArrayOfQuoteRequestNetData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfQuoteRequestNetData',\n\t\t\t'QuoteRequestNetData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\QuoteRequestNetData',\n\t\t\t'ArrayOfQuoteRequestPasType' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfQuoteRequestPasType',\n\t\t\t'QuoteRequestPasType' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\QuoteRequestPasType',\n\t\t\t'QuoteRequestWebFareData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\QuoteRequestWebFareData',\n\t\t\t'QuoteResponseData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\QuoteResponseData',\n\t\t\t'ArrayOfQuoteResponseFare' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfQuoteResponseFare',\n\t\t\t'QuoteResponseFare' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\QuoteResponseFare',\n\t\t\t'ArrayOfCancelation' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfCancelation',\n\t\t\t'Cancelation' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\Cancelation',\n\t\t\t'PaxValues' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\PaxValues',\n\t\t\t'ArrayOfQuoteResponseLeg' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfQuoteResponseLeg',\n\t\t\t'QuoteResponseLeg' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\QuoteResponseLeg',\n\t\t\t'ArrayOfSeasonDateData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfSeasonDateData',\n\t\t\t'SeasonDateData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\SeasonDateData',\n\t\t\t'ArrayOfQuoteResponseUserData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfQuoteResponseUserData',\n\t\t\t'QuoteResponseUserData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\QuoteResponseUserData',\n\t\t\t'ArrayOfQuoteResponsePassenger' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfQuoteResponsePassenger',\n\t\t\t'QuoteResponsePassenger' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\QuoteResponsePassenger',\n\t\t\t'ArrayOfQuoteResponseSurcharge' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfQuoteResponseSurcharge',\n\t\t\t'QuoteResponseSurcharge' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\QuoteResponseSurcharge',\n\t\t\t'ArrayOfQuoteResponseSegment' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfQuoteResponseSegment',\n\t\t\t'QuoteResponseSegment' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\QuoteResponseSegment',\n\t\t\t'QuoteResponseTicket' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\QuoteResponseTicket',\n\t\t\t'ArrayOfQuoteTicketResponseLeg' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfQuoteTicketResponseLeg',\n\t\t\t'QuoteTicketResponseLeg' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\QuoteTicketResponseLeg',\n\t\t\t'ArrayOfQuoteTicketResponseSeg' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfQuoteTicketResponseSeg',\n\t\t\t'QuoteTicketResponseSeg' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\QuoteTicketResponseSeg',\n\t\t\t'PNRRequestData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\PNRRequestData',\n\t\t\t'PNRRequestCharter' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\PNRRequestCharter',\n\t\t\t'PNRRequestWeb' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\PNRRequestWeb',\n\t\t\t'PNRResponseData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\PNRResponseData',\n\t\t\t'ArrayOfPNRResponseInfo' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfPNRResponseInfo',\n\t\t\t'PNRResponseInfo' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\PNRResponseInfo',\n\t\t\t'ArrayOfPNRResponseLocation' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfPNRResponseLocation',\n\t\t\t'PNRResponseLocation' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\PNRResponseLocation',\n\t\t\t'ArrayOfPNRResponseOSI' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfPNRResponseOSI',\n\t\t\t'PNRResponseOSI' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\PNRResponseOSI',\n\t\t\t'ArrayOfPNRResponsePassenger' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfPNRResponsePassenger',\n\t\t\t'PNRResponsePassenger' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\PNRResponsePassenger',\n\t\t\t'ArrayOfPNRResponseSeatPreferrence' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfPNRResponseSeatPreferrence',\n\t\t\t'PNRResponseSeatPreferrence' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\PNRResponseSeatPreferrence',\n\t\t\t'ArrayOfPNRResponseSSR' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfPNRResponseSSR',\n\t\t\t'PNRResponseSSR' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\PNRResponseSSR',\n\t\t\t'ArrayOfPNRResponseTKNO' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfPNRResponseTKNO',\n\t\t\t'PNRResponseTKNO' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\PNRResponseTKNO',\n\t\t\t'ArrayOfPNRResponsePhone' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfPNRResponsePhone',\n\t\t\t'PNRResponsePhone' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\PNRResponsePhone',\n\t\t\t'ArrayOfPNRResponseSKElement' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfPNRResponseSKElement',\n\t\t\t'PNRResponseSKElement' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\PNRResponseSKElement',\n\t\t\t'ArrayOfPNRResponseSegment' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfPNRResponseSegment',\n\t\t\t'PNRResponseSegment' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\PNRResponseSegment',\n\t\t\t'ArrayOfPNRResponseStoredFare' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfPNRResponseStoredFare',\n\t\t\t'PNRResponseStoredFare' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\PNRResponseStoredFare',\n\t\t\t'PNRResponseFareDetails' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\PNRResponseFareDetails',\n\t\t\t'ArrayOfPNRResponseTax' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfPNRResponseTax',\n\t\t\t'PNRResponseTax' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\PNRResponseTax',\n\t\t\t'PNRResponseTicketingDetails' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\PNRResponseTicketingDetails',\n\t\t\t'ArrayOfPNRResponseStoredFareTKTSement' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfPNRResponseStoredFareTKTSement',\n\t\t\t'PNRResponseStoredFareTKTSement' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\PNRResponseStoredFareTKTSement',\n\t\t\t'ArrayOfPNRResponseTicketInfo' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfPNRResponseTicketInfo',\n\t\t\t'PNRResponseTicketInfo' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\PNRResponseTicketInfo',\n\t\t\t'ArrayOfPNRResponseDocumentInfo' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfPNRResponseDocumentInfo',\n\t\t\t'PNRResponseDocumentInfo' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\PNRResponseDocumentInfo',\n\t\t\t'ArrayOfPNRResponseFareInfo' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfPNRResponseFareInfo',\n\t\t\t'PNRResponseFareInfo' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\PNRResponseFareInfo',\n\t\t\t'QueueRequestData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\QueueRequestData',\n\t\t\t'CancelRequestData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\CancelRequestData',\n\t\t\t'CancelRequestCharter' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\CancelRequestCharter',\n\t\t\t'CancelRequestConfiguration' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\CancelRequestConfiguration',\n\t\t\t'CancelRequestPaymentData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\CancelRequestPaymentData',\n\t\t\t'CancelRequestWeb' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\CancelRequestWeb',\n\t\t\t'ArrayOfResponseFareData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfResponseFareData',\n\t\t\t'ResponseFareData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\ResponseFareData',\n\t\t\t'ResponseFlightData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\ResponseFlightData',\n\t\t\t'ResponseLegFareInfo' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\ResponseLegFareInfo',\n\t\t\t'ResponseRule' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\ResponseRule',\n\t\t\t'ResponseTicket' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\ResponseTicket',\n\t\t\t'ArrayOfResponseUserData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfResponseUserData',\n\t\t\t'ResponseUserData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\ResponseUserData',\n\t\t\t'ArrayOfResponsePassengerData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfResponsePassengerData',\n\t\t\t'ResponsePassengerData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\ResponsePassengerData',\n\t\t\t'ArrayOfCommonResponseLeg' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfCommonResponseLeg',\n\t\t\t'CommonResponseLeg' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\CommonResponseLeg',\n\t\t\t'ArrayOfCommonSegmentData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfCommonSegmentData',\n\t\t\t'CommonSegmentData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\CommonSegmentData',\n\t\t\t'ArrayOfCommonResponsePassenger' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfCommonResponsePassenger',\n\t\t\t'CommonResponsePassenger' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\CommonResponsePassenger',\n\t\t\t'CommonBookSurcharges' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\CommonBookSurcharges',\n\t\t\t'ArrayOfLegData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfLegData',\n\t\t\t'LegData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\LegData',\n\t\t\t'ArrayOfLegConnectionData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfLegConnectionData',\n\t\t\t'LegConnectionData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\LegConnectionData',\n\t\t\t'ArrayOfFareSegmentData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfFareSegmentData',\n\t\t\t'FareSegmentData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\FareSegmentData',\n\t\t\t'SegmentData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\SegmentData',\n\t\t\t'CancelResponseData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\CancelResponseData',\n\t\t\t'ArrayOfCancelResponseAllotment' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfCancelResponseAllotment',\n\t\t\t'CancelResponseAllotment' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\CancelResponseAllotment',\n\t\t\t'CancelResponsePNR' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\CancelResponsePNR',\n\t\t\t'ModifyRequestData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\ModifyRequestData',\n\t\t\t'ArrayOfModifyRequestContact' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfModifyRequestContact',\n\t\t\t'ModifyRequestContact' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\ModifyRequestContact',\n\t\t\t'ArrayOfModifyRequestFormOfPayment' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfModifyRequestFormOfPayment',\n\t\t\t'ModifyRequestFormOfPayment' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\ModifyRequestFormOfPayment',\n\t\t\t'ArrayOfModifyRequestLeg' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfModifyRequestLeg',\n\t\t\t'ModifyRequestLeg' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\ModifyRequestLeg',\n\t\t\t'ArrayOfModifyRequestSegment' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfModifyRequestSegment',\n\t\t\t'ModifyRequestSegment' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\ModifyRequestSegment',\n\t\t\t'ArrayOfModifyRequestPassenger' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfModifyRequestPassenger',\n\t\t\t'ModifyRequestPassenger' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\ModifyRequestPassenger',\n\t\t\t'ArrayOfModifyRequestFF' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfModifyRequestFF',\n\t\t\t'ModifyRequestFF' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\ModifyRequestFF',\n\t\t\t'ArrayOfModifyRequestOSI' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfModifyRequestOSI',\n\t\t\t'ModifyRequestOSI' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\ModifyRequestOSI',\n\t\t\t'ArrayOfModifyRequestSSR' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfModifyRequestSSR',\n\t\t\t'ModifyRequestSSR' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\ModifyRequestSSR',\n\t\t\t'ArrayOfModifyStatus' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfModifyStatus',\n\t\t\t'ModifyStatus' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\ModifyStatus',\n\t\t\t'ModifyRequestWebConfig' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\ModifyRequestWebConfig',\n\t\t\t'ArrayOfModifyRequestvFMacro' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfModifyRequestvFMacro',\n\t\t\t'ModifyRequestvFMacro' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\ModifyRequestvFMacro',\n\t\t\t'ModifyBookingResponseData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\ModifyBookingResponseData',\n\t\t\t'ArrayOfModuleResponseContact' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfModuleResponseContact',\n\t\t\t'ModuleResponseContact' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\ModuleResponseContact',\n\t\t\t'ArrayOfModifyResponseFormOfPayment' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfModifyResponseFormOfPayment',\n\t\t\t'ModifyResponseFormOfPayment' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\ModifyResponseFormOfPayment',\n\t\t\t'ArrayOfModifyResponsePassenger' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfModifyResponsePassenger',\n\t\t\t'ModifyResponsePassenger' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\ModifyResponsePassenger',\n\t\t\t'ArrayOfModifyResponseAPIS' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfModifyResponseAPIS',\n\t\t\t'ModifyResponseAPIS' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\ModifyResponseAPIS',\n\t\t\t'ArrayOfModifyResponseFF' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfModifyResponseFF',\n\t\t\t'ModifyResponseFF' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\ModifyResponseFF',\n\t\t\t'ArrayOfModifyResponseOSI' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfModifyResponseOSI',\n\t\t\t'ModifyResponseOSI' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\ModifyResponseOSI',\n\t\t\t'ArrayOfModifyResponseSSR' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfModifyResponseSSR',\n\t\t\t'ModifyResponseSSR' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\ModifyResponseSSR',\n\t\t\t'ArrayOfModifyResponseRemark' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfModifyResponseRemark',\n\t\t\t'ModifyResponseRemark' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\ModifyResponseRemark',\n\t\t\t'ArrayOfModifyResponseStatus' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfModifyResponseStatus',\n\t\t\t'ModifyResponseStatus' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\ModifyResponseStatus',\n\t\t\t'ArrayOfModifyResponseSegment' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfModifyResponseSegment',\n\t\t\t'ModifyResponseSegment' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\ModifyResponseSegment',\n\t\t\t'ArrayOfModifyResponsevfMacro' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfModifyResponsevfMacro',\n\t\t\t'ModifyResponsevfMacro' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\ModifyResponsevfMacro',\n\t\t\t'RoutingRequestData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\RoutingRequestData',\n\t\t\t'RoutingResponseData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\RoutingResponseData',\n\t\t\t'ArrayOfRoutingResponseInformation' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfRoutingResponseInformation',\n\t\t\t'RoutingResponseInformation' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\RoutingResponseInformation',\n\t\t\t'ArrayOfRoutingResponseRouting' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfRoutingResponseRouting',\n\t\t\t'RoutingResponseRouting' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\RoutingResponseRouting',\n\t\t\t'ArrayOfRoutingResponseSegment' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfRoutingResponseSegment',\n\t\t\t'RoutingResponseSegment' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\RoutingResponseSegment',\n\t\t\t'ArrayOfRoutingResponseLocation' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfRoutingResponseLocation',\n\t\t\t'RoutingResponseLocation' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\RoutingResponseLocation',\n\t\t\t'ArrayOfRoutingResponsePassenger' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfRoutingResponsePassenger',\n\t\t\t'RoutingResponsePassenger' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\RoutingResponsePassenger',\n\t\t\t'ArrayOfRoutingResponseTime' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfRoutingResponseTime',\n\t\t\t'RoutingResponseTime' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\RoutingResponseTime',\n\t\t\t'ArrayOfRoutingResponseStop' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfRoutingResponseStop',\n\t\t\t'RoutingResponseStop' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\RoutingResponseStop',\n\t\t\t'ArrayOfRoutingResponseVia' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfRoutingResponseVia',\n\t\t\t'RoutingResponseVia' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\RoutingResponseVia',\n\t\t\t'TicketRequestData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\TicketRequestData',\n\t\t\t'TicketResponseData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\TicketResponseData',\n\t\t\t'ArrayOfTicketResponseInformation' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfTicketResponseInformation',\n\t\t\t'TicketResponseInformation' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\TicketResponseInformation',\n\t\t\t'ArrayOfTicketResponseTicket' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfTicketResponseTicket',\n\t\t\t'TicketResponseTicket' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\TicketResponseTicket',\n\t\t\t'ArrayOfTicketResponseLeg' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfTicketResponseLeg',\n\t\t\t'TicketResponseLeg' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\TicketResponseLeg',\n\t\t\t'ArrayOfTicketResponsePassenger' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfTicketResponsePassenger',\n\t\t\t'TicketResponsePassenger' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\TicketResponsePassenger',\n\t\t\t'ValidateFlightDateRequestData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\ValidateFlightDateRequestData',\n\t\t\t'ValidateFlightDateResponseData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\ValidateFlightDateResponseData',\n\t\t\t'SupplierRequestData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\SupplierRequestData',\n\t\t\t'SupplierResponseData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\SupplierResponseData',\n\t\t\t'ArrayOfSupplierData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfSupplierData',\n\t\t\t'SupplierData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\SupplierData',\n\t\t\t'AvailabilityRequestData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\AvailabilityRequestData',\n\t\t\t'AvailabilityRequestCharter' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\AvailabilityRequestCharter',\n\t\t\t'ArrayOfAvailabilityRequestLegType' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfAvailabilityRequestLegType',\n\t\t\t'AvailabilityRequestLegType' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\AvailabilityRequestLegType',\n\t\t\t'ArrayOfAvailabilityRequestSegmentType' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfAvailabilityRequestSegmentType',\n\t\t\t'AvailabilityRequestSegmentType' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\AvailabilityRequestSegmentType',\n\t\t\t'ArrayOfAvailabilityRequestPassengerType' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfAvailabilityRequestPassengerType',\n\t\t\t'AvailabilityRequestPassengerType' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\AvailabilityRequestPassengerType',\n\t\t\t'AvailabilityResponseData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\AvailabilityResponseData',\n\t\t\t'ArrayOfAvailabilityResponseLegType' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfAvailabilityResponseLegType',\n\t\t\t'AvailabilityResponseLegType' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\AvailabilityResponseLegType',\n\t\t\t'ArrayOfAvailabilityResponseAlternativeType' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfAvailabilityResponseAlternativeType',\n\t\t\t'AvailabilityResponseAlternativeType' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\AvailabilityResponseAlternativeType',\n\t\t\t'ArrayOfAvailabilityResponseSegmentType' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfAvailabilityResponseSegmentType',\n\t\t\t'AvailabilityResponseSegmentType' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\AvailabilityResponseSegmentType',\n\t\t\t'ArrayOfAvailabilityResponseDatePair' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfAvailabilityResponseDatePair',\n\t\t\t'AvailabilityResponseDatePair' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\AvailabilityResponseDatePair',\n\t\t\t'DisplayRequestData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\DisplayRequestData',\n\t\t\t'ArrayOfDisplayRequestCarrier' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfDisplayRequestCarrier',\n\t\t\t'DisplayRequestCarrier' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\DisplayRequestCarrier',\n\t\t\t'DisplayRequestConfiguration' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\DisplayRequestConfiguration',\n\t\t\t'DisplayRequestFare' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\DisplayRequestFare',\n\t\t\t'DisplayRequestCharter' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\DisplayRequestCharter',\n\t\t\t'DisplayRequestGDSFares' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\DisplayRequestGDSFares',\n\t\t\t'DisplayRequestNet' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\DisplayRequestNet',\n\t\t\t'DisplayRequestWeb' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\DisplayRequestWeb',\n\t\t\t'ArrayOfDisplayRequestLeg' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfDisplayRequestLeg',\n\t\t\t'DisplayRequestLeg' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\DisplayRequestLeg',\n\t\t\t'ArrayOfDisplayRequestConnection' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfDisplayRequestConnection',\n\t\t\t'DisplayRequestConnection' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\DisplayRequestConnection',\n\t\t\t'ArrayOfDisplayRequestSegment' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfDisplayRequestSegment',\n\t\t\t'DisplayRequestSegment' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\DisplayRequestSegment',\n\t\t\t'DisplayRequestStay' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\DisplayRequestStay',\n\t\t\t'ArrayOfDisplayRequestPassenger' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfDisplayRequestPassenger',\n\t\t\t'DisplayRequestPassenger' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\DisplayRequestPassenger',\n\t\t\t'DisplayResponseData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\DisplayResponseData',\n\t\t\t'ArrayOfDisplayResponseFare' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfDisplayResponseFare',\n\t\t\t'DisplayResponseFare' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\DisplayResponseFare',\n\t\t\t'DisplayResponseFlight' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\DisplayResponseFlight',\n\t\t\t'ArrayOfDisplayResponseLeg' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfDisplayResponseLeg',\n\t\t\t'DisplayResponseLeg' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\DisplayResponseLeg',\n\t\t\t'DisplayResponseAdvancedPurchase' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\DisplayResponseAdvancedPurchase',\n\t\t\t'DisplayResponseCodeValuePair' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\DisplayResponseCodeValuePair',\n\t\t\t'DisplayResponseRouting' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\DisplayResponseRouting',\n\t\t\t'ArrayOfDisplayResponseCodeValuePair' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfDisplayResponseCodeValuePair',\n\t\t\t'DisplayResponseRule' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\DisplayResponseRule',\n\t\t\t'ArrayOfDisplayResponseUserInfo' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfDisplayResponseUserInfo',\n\t\t\t'DisplayResponseUserInfo' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\DisplayResponseUserInfo',\n\t\t\t'DisplayResponseTicket' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\DisplayResponseTicket',\n\t\t\t'ArrayOfDisplayResponsePassengerTicket' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfDisplayResponsePassengerTicket',\n\t\t\t'DisplayResponsePassengerTicket' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\DisplayResponsePassengerTicket',\n\t\t\t'ArrayOfDisplayResponsePassenger' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfDisplayResponsePassenger',\n\t\t\t'DisplayResponsePassenger' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\DisplayResponsePassenger',\n\t\t\t'DisplayResponseETicket' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\DisplayResponseETicket',\n\t\t\t'DisplayResponsePTicket' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\DisplayResponsePTicket',\n\t\t\t'TaxRequestData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\TaxRequestData',\n\t\t\t'ArrayOfTaxRequestLeg' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfTaxRequestLeg',\n\t\t\t'TaxRequestLeg' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\TaxRequestLeg',\n\t\t\t'ArrayOfTaxRequestSegment' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfTaxRequestSegment',\n\t\t\t'TaxRequestSegment' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\TaxRequestSegment',\n\t\t\t'ArrayOfTaxRequestPassenger' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfTaxRequestPassenger',\n\t\t\t'TaxRequestPassenger' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\TaxRequestPassenger',\n\t\t\t'TaxResponseData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\TaxResponseData',\n\t\t\t'ArrayOfTaxResponsePassenger' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfTaxResponsePassenger',\n\t\t\t'TaxResponsePassenger' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\TaxResponsePassenger',\n\t\t\t'BoardingRequestData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\BoardingRequestData',\n\t\t\t'BoardingRequestConfiguration' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\BoardingRequestConfiguration',\n\t\t\t'BoardingRequestCharterFare' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\BoardingRequestCharterFare',\n\t\t\t'BoardingRequestWebFare' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\BoardingRequestWebFare',\n\t\t\t'PaymentRequestData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\PaymentRequestData',\n\t\t\t'PaymentRequestCharter' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\PaymentRequestCharter',\n\t\t\t'PaymentRequestWeb' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\PaymentRequestWeb',\n\t\t\t'RoutingsRequestData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\RoutingsRequestData',\n\t\t\t'RoutingsResponseData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\RoutingsResponseData',\n\t\t\t'ArrayOfRoutingsResponseRouting' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfRoutingsResponseRouting',\n\t\t\t'RoutingsResponseRouting' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\RoutingsResponseRouting',\n\t\t\t'CalendarRequestData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\CalendarRequestData',\n\t\t\t'CalendarRequestConfigData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\CalendarRequestConfigData',\n\t\t\t'CalendarResponseData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\CalendarResponseData',\n\t\t\t'ArrayOfCalendarResponseCell' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfCalendarResponseCell',\n\t\t\t'CalendarResponseCell' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\CalendarResponseCell',\n\t\t\t'SeatMapRequestData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\SeatMapRequestData',\n\t\t\t'ArrayOfSeatMapSegmentData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfSeatMapSegmentData',\n\t\t\t'SeatMapSegmentData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\SeatMapSegmentData',\n\t\t\t'ArrayOfSeatMapFrequentFlyerData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfSeatMapFrequentFlyerData',\n\t\t\t'SeatMapFrequentFlyerData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\SeatMapFrequentFlyerData',\n\t\t\t'SeatMapResponseData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\SeatMapResponseData',\n\t\t\t'ArrayOfSeatMapExceptionData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfSeatMapExceptionData',\n\t\t\t'SeatMapExceptionData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\SeatMapExceptionData',\n\t\t\t'ArrayOfSeatMapData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfSeatMapData',\n\t\t\t'SeatMapData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\SeatMapData',\n\t\t\t'ArrayOfSeatMapDetailData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfSeatMapDetailData',\n\t\t\t'SeatMapDetailData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\SeatMapDetailData',\n\t\t\t'ArrayOfSeatMapAirRowData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfSeatMapAirRowData',\n\t\t\t'SeatMapAirRowData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\SeatMapAirRowData',\n\t\t\t'ArrayOfSeatMapAirSeatData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfSeatMapAirSeatData',\n\t\t\t'SeatMapAirSeatData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\SeatMapAirSeatData',\n\t\t\t'SeatMapAvailabilityData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\SeatMapAvailabilityData',\n\t\t\t'ArrayOfSeatMapCharacteristicData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfSeatMapCharacteristicData',\n\t\t\t'SeatMapCharacteristicData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\SeatMapCharacteristicData',\n\t\t\t'ArrayOfSeatMapSurchargeDetail' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfSeatMapSurchargeDetail',\n\t\t\t'SeatMapSurchargeDetail' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\SeatMapSurchargeDetail',\n\t\t\t'BrowseRequestData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\BrowseRequestData',\n\t\t\t'ArrayOfBrowseRequestQueueStruct' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfBrowseRequestQueueStruct',\n\t\t\t'BrowseRequestQueueStruct' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\BrowseRequestQueueStruct',\n\t\t\t'BrowseResponseData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\BrowseResponseData',\n\t\t\t'ArrayOfBrowseResponseQueueItem' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfBrowseResponseQueueItem',\n\t\t\t'BrowseResponseQueueItem' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\BrowseResponseQueueItem',\n\t\t\t'ArrayOfBrowseResponseRecordLocatorItem' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfBrowseResponseRecordLocatorItem',\n\t\t\t'BrowseResponseRecordLocatorItem' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\BrowseResponseRecordLocatorItem',\n\t\t\t'SeatResRequestData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\SeatResRequestData',\n\t\t\t'ArrayOfSeatResSegmentData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfSeatResSegmentData',\n\t\t\t'SeatResSegmentData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\SeatResSegmentData',\n\t\t\t'ArrayOfSeatResSeatData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfSeatResSeatData',\n\t\t\t'SeatResSeatData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\SeatResSeatData',\n\t\t\t'SeatResResponseData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\SeatResResponseData',\n\t\t\t'ArrayOfSeatResResponseSegment' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfSeatResResponseSegment',\n\t\t\t'SeatResResponseSegment' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\SeatResResponseSegment',\n\t\t\t'ArrayOfSeatResSeatStatus' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfSeatResSeatStatus',\n\t\t\t'SeatResSeatStatus' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\SeatResSeatStatus',\n\t\t\t'RebookRequestData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\RebookRequestData',\n\t\t\t'ArrayOfRebookRequestSegment' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfRebookRequestSegment',\n\t\t\t'RebookRequestSegment' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\RebookRequestSegment',\n\t\t\t'TaxesAndFeesRequestData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\TaxesAndFeesRequestData',\n\t\t\t'TaxesAndFeesConfig' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\TaxesAndFeesConfig',\n\t\t\t'TaxesAndFeesCharter' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\TaxesAndFeesCharter',\n\t\t\t'TaxesAndFeesWeb' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\TaxesAndFeesWeb',\n\t\t\t'TaxesAndFeesResponseData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\TaxesAndFeesResponseData',\n\t\t\t'PreferenceRequestData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\PreferenceRequestData',\n\t\t\t'ArrayOfPreferenceTravelDates' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfPreferenceTravelDates',\n\t\t\t'PreferenceTravelDates' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\PreferenceTravelDates',\n\t\t\t'PreferenceResponseData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\PreferenceResponseData',\n\t\t\t'ArrayOfPreferenceResponseItem' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfPreferenceResponseItem',\n\t\t\t'PreferenceResponseItem' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\PreferenceResponseItem',\n\t\t\t'TicketBookingRequestData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\TicketBookingRequestData',\n\t\t\t'ArrayOfTicketBookingRequestAdvanced' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfTicketBookingRequestAdvanced',\n\t\t\t'TicketBookingRequestAdvanced' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\TicketBookingRequestAdvanced',\n\t\t\t'TicketBookingRequestIssue' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\TicketBookingRequestIssue',\n\t\t\t'TicketBookingRequestCommission' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\TicketBookingRequestCommission',\n\t\t\t'TicketBookingRequestPaxText' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\TicketBookingRequestPaxText',\n\t\t\t'ArrayOfTicketBookingRequestPayment' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfTicketBookingRequestPayment',\n\t\t\t'TicketBookingRequestPayment' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\TicketBookingRequestPayment',\n\t\t\t'ArrayOfTicketBookingRequestPassenger' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfTicketBookingRequestPassenger',\n\t\t\t'TicketBookingRequestPassenger' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\TicketBookingRequestPassenger',\n\t\t\t'ArrayOfTicketBookingRequestSegment' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfTicketBookingRequestSegment',\n\t\t\t'TicketBookingRequestSegment' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\TicketBookingRequestSegment',\n\t\t\t'TicketBookingResponseData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\TicketBookingResponseData',\n\t\t\t'ArrayOfTicketBookingResponsePassenger' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfTicketBookingResponsePassenger',\n\t\t\t'TicketBookingResponsePassenger' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\TicketBookingResponsePassenger',\n\t\t\t'TicketBookingResponsePassengerDetails' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\TicketBookingResponsePassengerDetails',\n\t\t\t'TicketBookingResponseTicket' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\TicketBookingResponseTicket',\n\t\t\t'TicketBookingResponseFare' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\TicketBookingResponseFare',\n\t\t\t'ArrayOfTicketBookingResponseSegment' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfTicketBookingResponseSegment',\n\t\t\t'TicketBookingResponseSegment' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\TicketBookingResponseSegment',\n\t\t\t'ReissueRequestPayment' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\ReissueRequestPayment',\n\t\t\t'ChangeFlightRequestData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\ChangeFlightRequestData',\n\t\t\t'ChangeFlightConfiguration' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\ChangeFlightConfiguration',\n\t\t\t'ArrayOfChangeFlightSegment' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfChangeFlightSegment',\n\t\t\t'ChangeFlightSegment' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\ChangeFlightSegment',\n\t\t\t'ChangeFlightSurcharge' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\ChangeFlightSurcharge',\n\t\t\t'RemoveRequestData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\RemoveRequestData',\n\t\t\t'ArrayOfRemovePNRData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfRemovePNRData',\n\t\t\t'RemovePNRData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\RemovePNRData',\n\t\t\t'ArrayOfRemoveQueueData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfRemoveQueueData',\n\t\t\t'RemoveQueueData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\RemoveQueueData',\n\t\t\t'RemoveResponseData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\RemoveResponseData',\n\t\t\t'ArrayOfRemoveResponsePNRData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfRemoveResponsePNRData',\n\t\t\t'RemoveResponsePNRData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\RemoveResponsePNRData',\n\t\t\t'ArrayOfRemoveResponseQueueData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfRemoveResponseQueueData',\n\t\t\t'RemoveResponseQueueData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\RemoveResponseQueueData',\n\t\t\t'ProcessingRequestData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\ProcessingRequestData',\n\t\t\t'ArrayOfProcessingRequestProcess' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfProcessingRequestProcess',\n\t\t\t'ProcessingRequestProcess' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\ProcessingRequestProcess',\n\t\t\t'ArrayOfProcessingRequestAction' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfProcessingRequestAction',\n\t\t\t'ProcessingRequestAction' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\ProcessingRequestAction',\n\t\t\t'ProcessingRequestQueue' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\ProcessingRequestQueue',\n\t\t\t'ArrayOfProcessingRequestRule' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfProcessingRequestRule',\n\t\t\t'ProcessingRequestRule' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\ProcessingRequestRule',\n\t\t\t'ProcessingResponseData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\ProcessingResponseData',\n\t\t\t'ArrayOfProcessingResponseProcess' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfProcessingResponseProcess',\n\t\t\t'ProcessingResponseProcess' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\ProcessingResponseProcess',\n\t\t\t'ArrayOfProcessingResponseContact' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfProcessingResponseContact',\n\t\t\t'ProcessingResponseContact' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\ProcessingResponseContact',\n\t\t\t'ArrayOfProcessResponseStatus' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfProcessResponseStatus',\n\t\t\t'ProcessResponseStatus' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\ProcessResponseStatus',\n\t\t\t'ArrayOfProcessResponseSegment' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfProcessResponseSegment',\n\t\t\t'ProcessResponseSegment' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\ProcessResponseSegment',\n\t\t\t'ProcessResponseSegmentDetails' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\ProcessResponseSegmentDetails',\n\t\t\t'CancelTicketRequestData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\CancelTicketRequestData',\n\t\t\t'ArrayOfCancelTicketRequestTicket' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfCancelTicketRequestTicket',\n\t\t\t'CancelTicketRequestTicket' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\CancelTicketRequestTicket',\n\t\t\t'CancelTicketPricePercentage' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\CancelTicketPricePercentage',\n\t\t\t'CancelTicketResponseData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\CancelTicketResponseData',\n\t\t\t'ArrayOfCancelTicketResponseTicket' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfCancelTicketResponseTicket',\n\t\t\t'CancelTicketResponseTicket' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\CancelTicketResponseTicket',\n\t\t\t'RevalidateRequestData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\RevalidateRequestData',\n\t\t\t'RevalidateResponseData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\RevalidateResponseData',\n\t\t\t'ArrayOfRevalidateResponseTicketNumber' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfRevalidateResponseTicketNumber',\n\t\t\t'RevalidateResponseTicketNumber' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\RevalidateResponseTicketNumber',\n\t\t\t'ReissueRequestData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\ReissueRequestData',\n\t\t\t'ReissueResponseData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\ReissueResponseData',\n\t\t\t'ReissueResponseTicketNumber' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\ReissueResponseTicketNumber',\n\t\t\t'FareComplexRequestData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\FareComplexRequestData',\n\t\t\t'ArrayOfFareComplexConfiguration' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfFareComplexConfiguration',\n\t\t\t'FareComplexConfiguration' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\FareComplexConfiguration',\n\t\t\t'ArrayOfFareComplexFare' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfFareComplexFare',\n\t\t\t'FareComplexFare' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\FareComplexFare',\n\t\t\t'MCTData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\MCTData',\n\t\t\t'ArrayOfFareComplexPassengeGroup' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfFareComplexPassengeGroup',\n\t\t\t'FareComplexPassengeGroup' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\FareComplexPassengeGroup',\n\t\t\t'ArrayOfFareComplexTicketGroup' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfFareComplexTicketGroup',\n\t\t\t'FareComplexTicketGroup' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\FareComplexTicketGroup',\n\t\t\t'ArrayOfFareComplexLeg' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfFareComplexLeg',\n\t\t\t'FareComplexLeg' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\FareComplexLeg',\n\t\t\t'FareComplexResponseData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\FareComplexResponseData',\n\t\t\t'ArrayOfFareComplexResponseFare' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfFareComplexResponseFare',\n\t\t\t'FareComplexResponseFare' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\FareComplexResponseFare',\n\t\t\t'ArrayOfFareComplexResponseFareItem' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfFareComplexResponseFareItem',\n\t\t\t'FareComplexResponseFareItem' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\FareComplexResponseFareItem',\n\t\t\t'FareComplexResponseFareDetails' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\FareComplexResponseFareDetails',\n\t\t\t'CorporateRequestData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\CorporateRequestData',\n\t\t\t'CorporateResponseData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\CorporateResponseData',\n\t\t\t'ArrayOfCorporateCarrierData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfCorporateCarrierData',\n\t\t\t'CorporateCarrierData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\CorporateCarrierData',\n\t\t\t'ArrayOfCorporateQuoteData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\ArrayType\\\\ArrayOfCorporateQuoteData',\n\t\t\t'CorporateQuoteData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\CorporateQuoteData',\n\t\t\t'NativeRequestData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\NativeRequestData',\n\t\t\t'NativeResponseData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\NativeResponseData',\n\t\t\t'UpdateUserList' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\UpdateUserList',\n\t\t\t'UpdateUserListResponse' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\UpdateUserListResponse',\n\t\t\t'UpdateUserAgreementList' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\UpdateUserAgreementList',\n\t\t\t'UpdateUserAgreementListResponse' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\UpdateUserAgreementListResponse',\n\t\t\t'GetFares' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\GetFares',\n\t\t\t'GetFaresResponse' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\GetFaresResponse',\n\t\t\t'BookFare' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\BookFare',\n\t\t\t'BookFareResponse' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\BookFareResponse',\n\t\t\t'GetFlightDetails' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\GetFlightDetails',\n\t\t\t'GetFlightDetailsResponse' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\GetFlightDetailsResponse',\n\t\t\t'GetTermsAndConditions' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\GetTermsAndConditions',\n\t\t\t'GetTermsAndConditionsResponse' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\GetTermsAndConditionsResponse',\n\t\t\t'GetRuleInformationText' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\GetRuleInformationText',\n\t\t\t'GetRuleInformationTextResponse' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\GetRuleInformationTextResponse',\n\t\t\t'GetRuleInformation' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\GetRuleInformation',\n\t\t\t'GetRuleInformationResponse' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\GetRuleInformationResponse',\n\t\t\t'GetFareQuote' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\GetFareQuote',\n\t\t\t'GetFareQuoteResponse' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\GetFareQuoteResponse',\n\t\t\t'RetrievePassengerNameRecord' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\RetrievePassengerNameRecord',\n\t\t\t'RetrievePassengerNameRecordResponse' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\RetrievePassengerNameRecordResponse',\n\t\t\t'QueueBooking' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\QueueBooking',\n\t\t\t'QueueBookingResponse' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\QueueBookingResponse',\n\t\t\t'CancelBooking' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\CancelBooking',\n\t\t\t'CancelBookingResponse' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\CancelBookingResponse',\n\t\t\t'ModifyBooking' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\ModifyBooking',\n\t\t\t'ModifyBookingResponse' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\ModifyBookingResponse',\n\t\t\t'GetRoutingInformation' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\GetRoutingInformation',\n\t\t\t'GetRoutingInformationResponse' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\GetRoutingInformationResponse',\n\t\t\t'GetTicketInformation' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\GetTicketInformation',\n\t\t\t'GetTicketInformationResponse' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\GetTicketInformationResponse',\n\t\t\t'ValidateFlightDate' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\ValidateFlightDate',\n\t\t\t'ValidateFlightDateResponse' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\ValidateFlightDateResponse',\n\t\t\t'GetSupplier' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\GetSupplier',\n\t\t\t'GetSupplierResponse' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\GetSupplierResponse',\n\t\t\t'GetAvailability' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\GetAvailability',\n\t\t\t'GetAvailabilityResponse' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\GetAvailabilityResponse',\n\t\t\t'GetFareDisplay' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\GetFareDisplay',\n\t\t\t'GetFareDisplayResponse' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\GetFareDisplayResponse',\n\t\t\t'GetTax' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\GetTax',\n\t\t\t'GetTaxResponse' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\GetTaxResponse',\n\t\t\t'GetBoardingDetails' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\GetBoardingDetails',\n\t\t\t'GetBoardingDetailsResponse' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\GetBoardingDetailsResponse',\n\t\t\t'GetPaymentMethods' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\GetPaymentMethods',\n\t\t\t'GetPaymentMethodsResponse' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\GetPaymentMethodsResponse',\n\t\t\t'GetStatus' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\GetStatus',\n\t\t\t'GetStatusResponse' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\GetStatusResponse',\n\t\t\t'GetVersions' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\GetVersions',\n\t\t\t'GetVersionsResponse' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\GetVersionsResponse',\n\t\t\t'GetRoutings' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\GetRoutings',\n\t\t\t'GetRoutingsResponse' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\GetRoutingsResponse',\n\t\t\t'GetMultiChannelQueryInformation' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\GetMultiChannelQueryInformation',\n\t\t\t'GetMultiChannelQueryInformationResponse' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\GetMultiChannelQueryInformationResponse',\n\t\t\t'DoCreditCardPayment' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\DoCreditCardPayment',\n\t\t\t'DoCreditCardPaymentResponse' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\DoCreditCardPaymentResponse',\n\t\t\t'GetCalendarDisplay' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\GetCalendarDisplay',\n\t\t\t'GetCalendarDisplayResponse' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\GetCalendarDisplayResponse',\n\t\t\t'GetSeatMaps' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\GetSeatMaps',\n\t\t\t'GetSeatMapsResponse' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\GetSeatMapsResponse',\n\t\t\t'BrowseQueue' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\BrowseQueue',\n\t\t\t'BrowseQueueResponse' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\BrowseQueueResponse',\n\t\t\t'SeatReservation' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\SeatReservation',\n\t\t\t'SeatReservationResponse' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\SeatReservationResponse',\n\t\t\t'Rebook' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\Rebook',\n\t\t\t'RebookResponse' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\RebookResponse',\n\t\t\t'GetUserConfigurationData' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\GetUserConfigurationData',\n\t\t\t'GetUserConfigurationDataResponse' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\GetUserConfigurationDataResponse',\n\t\t\t'GetTaxesAndFees' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\GetTaxesAndFees',\n\t\t\t'GetTaxesAndFeesResponse' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\GetTaxesAndFeesResponse',\n\t\t\t'GetPreferenceSearch' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\GetPreferenceSearch',\n\t\t\t'GetPreferenceSearchResponse' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\GetPreferenceSearchResponse',\n\t\t\t'GetEntryClients' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\GetEntryClients',\n\t\t\t'GetEntryClientsResponse' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\GetEntryClientsResponse',\n\t\t\t'TicketBooking' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\TicketBooking',\n\t\t\t'TicketBookingResponse' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\TicketBookingResponse',\n\t\t\t'ChangeFlightBooking' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\ChangeFlightBooking',\n\t\t\t'ChangeFlightBookingResponse' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\ChangeFlightBookingResponse',\n\t\t\t'ConvertCurrency' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\ConvertCurrency',\n\t\t\t'ConvertCurrencyResponse' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\ConvertCurrencyResponse',\n\t\t\t'RemoveBookingFromQueue' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\RemoveBookingFromQueue',\n\t\t\t'RemoveBookingFromQueueResponse' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\RemoveBookingFromQueueResponse',\n\t\t\t'PNRProcessing' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\PNRProcessing',\n\t\t\t'PNRProcessingResponse' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\PNRProcessingResponse',\n\t\t\t'CancelTicket' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\CancelTicket',\n\t\t\t'CancelTicketResponse' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\CancelTicketResponse',\n\t\t\t'RevalidateTicket' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\RevalidateTicket',\n\t\t\t'RevalidateTicketResponse' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\RevalidateTicketResponse',\n\t\t\t'ReissueTicket' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\ReissueTicket',\n\t\t\t'ReissueTicketResponse' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\ReissueTicketResponse',\n\t\t\t'GetFaresComplex' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\GetFaresComplex',\n\t\t\t'GetFaresComplexResponse' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\GetFaresComplexResponse',\n\t\t\t'GetCorpCodes' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\GetCorpCodes',\n\t\t\t'GetCorpCodesResponse' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\GetCorpCodesResponse',\n\t\t\t'NativeCommand' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\NativeCommand',\n\t\t\t'NativeCommandResponse' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\NativeCommandResponse',\n\t\t\t'FlightAPIFault' => '\\\\Fincallorca\\\\HitchHikerApi\\\\Wsdl\\\\v3_1_388_1\\\\StructType\\\\FlightAPIFault',\n\t\t);\n\t}",
"public function getChannels()\n {\n $resultString = $this->requestMaker->performRequest($this->url);\n\n $channel = $this->serializer->deserialize(\n $resultString,\n 'Ist1\\ChannelBundle\\Entity\\ChannelCollection',\n $this->format\n );\n\n return $channel;\n }",
"public function getCollections()\n {\n return $this->collections;\n }",
"public function getProtocol();",
"public function servers(): Collection\n {\n return $this->servers;\n }",
"public function getAvailableProtocolVersions()\n {\n return [\n static::ACME_01 => 'ACME v1',\n static::ACME_02 => 'ACME v2',\n ];\n }"
] | [
"0.5624559",
"0.55697405",
"0.5390396",
"0.5293899",
"0.5057458",
"0.5010583",
"0.49649444",
"0.49488497",
"0.4911972",
"0.48699474",
"0.48285124",
"0.48252594",
"0.48181814",
"0.48101425",
"0.47937843",
"0.47901207",
"0.47881937",
"0.4770604",
"0.47693643",
"0.47662964",
"0.47488356",
"0.4743362",
"0.4743362",
"0.4727895",
"0.4721872",
"0.4719471",
"0.4710566",
"0.47019747",
"0.4692059",
"0.46918586"
] | 0.56653166 | 0 |
Get a collection containing protocol version 3. | public static function v3(): self
{
return new self(new Version3);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getProtocolVersions(): array {\n return $this->protocolVersions;\n }",
"public function get(): Collection;",
"public function toCollection(): Collection\n {\n return Collection::make($this->toArray());\n }",
"public function getItems(): Collection;",
"public function getList()\n {\n /** @var \\KienAHT\\Poll\\Model\\ResourceModel\\CusAnswer\\Collection $collection */\n $collection = $this->CusAnswerCollectionFactory->create();\n return $collection;\n }",
"public function collect(): Collection\n {\n return new Collection($this->items);\n }",
"public function getCollection();",
"public function getCollection();",
"public function fetchAll(): Collection\n {\n $certificateCollection = new Collection();\n\n $sql = '\n SELECT c.*\n FROM certificate AS c\n WHERE c.locale = :locale\n AND c.visible = 1\n ORDER BY c.issue_date DESC';\n\n $STH = $this->getDb()->prepare($sql);\n $STH->execute([\n 'locale' => Language::getLocale(),\n ]);\n\n while ($row = $STH->fetch()) {\n $certificateCollection->add(new Certificate($row));\n }\n\n return $certificateCollection;\n }",
"public function getChannels()\n {\n $resultString = $this->requestMaker->performRequest($this->url);\n\n $channel = $this->serializer->deserialize(\n $resultString,\n 'Ist1\\ChannelBundle\\Entity\\ChannelCollection',\n $this->format\n );\n\n return $channel;\n }",
"public function getCollection()\n {\n return $this->_data;\n }",
"public function getCollection() {\n\t\t$colelction = $this->tsValue('collection');\n\t\tvar_dump($collection);\n\t\treturn $this->tsValue('collection');\n\t}",
"public function getItems(): Collection\n {\n return $this->items;\n }",
"public function getTransportProtocol3AllowableValues()\n {\n return [\n self::TRANSPORT_PROTOCOL3_UDP,\n self::TRANSPORT_PROTOCOL3_TCP,\n self::TRANSPORT_PROTOCOL3_TLS,\n self::TRANSPORT_PROTOCOL3_AUTO,\n ];\n }",
"public function getAvailabilityData(): Collection\n {\n return new Collection();\n }",
"public function getCollection() {\n if ($this->collection == null) {\n $this->collection = new \\Broker\\Collection ( SITE_CACHE_DATABASE_DIR, $this->configuration );\n }\n return $this->collection;\n }",
"public function all(): Collection\n {\n $this->method = 'GET';\n\n $this->setOptions([\n 'headers' => [\n 'Accept' => 'application/json',\n 'Content-type' => 'application/json',\n ],\n 'auth' => [config('paymongo.secret_key'), ''],\n ]);\n\n return $this->request();\n }",
"public function getDependencies(array $except = []): Collection;",
"public function toCollection(): Collection\n {\n return $this->manager->getComponent();\n }",
"public function getCollection()\n {\n return parent::getCollection();\n }",
"public function getAvailableProtocolVersions()\n {\n return [\n static::ACME_01 => 'ACME v1',\n static::ACME_02 => 'ACME v2',\n ];\n }",
"public function getM3U8List()\n {\n $expo = new ExportM3U8();\n\n $this->m3u8list = $expo->makePlaylist($this->songsArray, \n $this->windowsDriveLetter, $this->linuxFolderPrefix, \n $this->signedIN);\n\n return $this->m3u8list;\n }",
"public function get(): Collection\n {\n $builder = $this->query();\n\n return $builder->get();\n }",
"public function get_third_party(){\n\t\t$data = array();\n\t\treturn $data;\n\t}",
"public function getCollectionComponents()\n { \n return $this->stored_components;\n }",
"public function getCollections()\n {\n return $this->collections;\n }",
"final public function paymentOrderCollection(): Contracts\\PaymentOrderCollection\n {\n return $this->uses('PaymentOrderCollection', 'v5');\n }",
"public function getCurrencies(): Collection\n {\n $settings = ProductSetting::getCachedSettings();\n\n return country()->all()->map(function (Country $country) use ($settings) {\n $setting = $settings\n ->where('configurable_id', $country->currency->id)\n ->where('configurable_type', get_class($country->currency))\n ->where('key', 'vat')\n ->first();\n\n return new Fluent([\n 'id' => $country->currency->id,\n 'code' => $country->currency->code,\n 'symbol' => $country->currency->symbol,\n 'vat' => $setting->value ?? 21,\n ]);\n });\n }",
"public static function get() : Collection\n {\n return Collection::make([\n __DIR__ . '/../../config/auth.php' => 'auth',\n __DIR__ . '/../../config/broadcasting.php' => 'broadcasting',\n __DIR__ . '/../../config/cache.php' => 'cache',\n __DIR__ . '/../../config/clockwork.php' => 'clockwork',\n __DIR__ . '/../../config/cors.php' => 'cors',\n __DIR__ . '/../../config/database.php' => 'database',\n __DIR__ . '/../../config/filesystems.php' => 'filesystems',\n __DIR__ . '/../../config/logging.php' => 'logging',\n __DIR__ . '/../../config/hashing.php' => 'hashing',\n __DIR__ . '/../../config/mail.php' => 'mail',\n __DIR__ . '/../../config/sanctum.php' => 'sanctum',\n __DIR__ . '/../../config/session.php' => 'session',\n __DIR__ . '/../../config/queue.php' => 'queue',\n __DIR__ . '/../../config/view.php' => 'view',\n __DIR__ . '/../../config/ziggy.php' => 'ziggy',\n ]);\n }",
"public function collection(): Collection\n {\n return $this->collection;\n }"
] | [
"0.56785285",
"0.5255418",
"0.50251245",
"0.5011292",
"0.50066733",
"0.49728698",
"0.49337187",
"0.49337187",
"0.4860238",
"0.4856755",
"0.48149815",
"0.4810446",
"0.47882468",
"0.47756588",
"0.47754413",
"0.47535664",
"0.47326308",
"0.4725982",
"0.47198543",
"0.4711116",
"0.47095034",
"0.47080517",
"0.46991608",
"0.46974617",
"0.4696173",
"0.46915078",
"0.4689871",
"0.46848068",
"0.46776032",
"0.4672512"
] | 0.5417638 | 1 |
Map Icons tab in location form | function gmw_ps_location_form_map_icons_tab( $tabs ) {
$tabs['map_icons'] = array(
'label' => __( 'Map Marker ', 'gmw-premium-settings' ),
'icon' => 'gmw-icon-map-pin',
'priority' => 30,
);
return $tabs;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function gmw_ps_location_form_map_icons_panel( $form ) {\n\n\t$addon_data = gmw_get_addon_data( $form->slug );\n\t$prefix = $addon_data['prefix'];\n\n\t// get saved icon\n\t$saved_icon = ! empty( $form->saved_location->map_icon ) ? $form->saved_location->map_icon : '_default.png';\n\t?>\n\t<div id=\"map_icons-tab-panel\" class=\"section-wrapper map-icons\">\n\n\t\t<?php do_action( 'gmw_lf_' . $prefix . '_map_icons_section_start', $form ); ?>\n\n\t\t<div class=\"icons-wrapper\">\n\t\t\t<?php\n\t\t\t$icons_data = gmw_get_icons();\n\n\t\t\tif ( ! empty( $icons_data[ $prefix . '_map_icons' ] ) ) {\n\n\t\t\t\t$map_icons = $icons_data[ $prefix . '_map_icons' ]['all_icons'];\n\t\t\t\t$icons_url = $icons_data[ $prefix . '_map_icons' ]['url'];\n\t\t\t\t$cic = 1;\n\n\t\t\t\tforeach ( $map_icons as $map_icon ) {\n\n\t\t\t\t\t$checked = ( ( $saved_icon == $map_icon ) || 1 === $cic ) ? 'checked=\"checked\"' : '';\n\n\t\t\t\t\techo '<label>';\n\t\t\t\t\techo '<input type=\"radio\" name=\"gmw_location_form[map_icon]\" value=\"' . esc_attr( $map_icon ) . '\" ' . $checked . ' />';\n\t\t\t\t\techo '<img src=\"' . esc_url( $icons_url . $map_icon ) . '\" />';\n\t\t\t\t\techo '</label>';\n\n\t\t\t\t\t$cic++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t?>\n\t\t</div>\n\t\t<?php do_action( 'gmw_lf_' . $prefix . '_map_icons_section_end', $form ); ?>\n\t</div>\n\t<?php\n}",
"abstract protected function form_icon();",
"function rec_epl_address_bar_map_icon_callback() { ?>\n\t<span class=\"epl-map-button-wrapper map-view\">\n\t\t<?php if ( is_single() ) { ?>\n\t\t\t<a class=\"epl-button epl-map-button\" href=\"#epl-advanced-map-single\">Map</a>\n\t\t<?php } else { ?>\n\t\t\t<a class=\"epl-button epl-map-button\" href=\"<?php the_permalink() ?>#epl-advanced-map-single\">Map</a>\n\t\t<?php } ?>\n\t</span>\n<?php\n}",
"public function icons() {\n\t\trequire_once FUSION_BUILDER_PLUGIN_DIR . 'inc/admin-screens/icons.php';\n\t}",
"function js_icons() {\n\t\t/* If we're in the backend, get an absolute path. Frontend can use a relative path. */\n\t\tif (TYPO3_MODE=='BE')\t{\n\t\t\t$path = t3lib_div::getIndpEnv('TYPO3_SITE_URL').t3lib_extMgm::siteRelPath('wec_map');\n\t\t} else {\n\t\t\t$path = t3lib_extMgm::siteRelPath('wec_map');\n\t\t}\n\n\t\t// add default icon set\n\t\t$this->icons[] = '\nWecMap.addIcon(\"' . $this->mapName .'\", \"default\", \"'.$path.'images/mm_20_red.png\", \"'.$path.'images/mm_20_shadow.png\", new GSize(12, 20), new GSize(22, 20), new GPoint(6, 20), new GPoint(5, 1));\n\t\t\t';\n\t\treturn implode(\"\\n\", $this->icons);\n\t}",
"public function getIconFarm();",
"function atto_matrix_get_fontawesome_icon_map() {\n return [\n 'atto_matrix:icon' => 'fa-th'\n ];\n}",
"function MAPS_geticonForm($icon = array()) {\n\n global $_CONF, $_TABLES, $_MAPS_CONF, $LANG_MAPS_1, $LANG_configselects, $LANG_ACCESS, $_USER, $_GROUPS, $_SCRIPTS;\n \n\t$display = COM_startBlock('<h1>' . $LANG_MAPS_1['icon_edit'] . '</h1>');\n\t\n\t$template = COM_newTemplate($_CONF['path'] . 'plugins/maps/templates');\n\t$template->set_file(array('icon' => 'icon_form.thtml'));\n\t$template->set_var('yes', $LANG_MAPS_1['yes']);\n\t$template->set_var('no', $LANG_MAPS_1['no']);\n\t\n\t//informations\n\t$template->set_var('icon_presentation', $LANG_MAPS_1['icon_presentation']);\n\t$template->set_var('informations', $LANG_MAPS_1['informations']);\n\t$template->set_var('name_label', $LANG_MAPS_1['icon_name_label']);\n\t$template->set_var('name', stripslashes($icon['icon_name']));\n\t$template->set_var('required_field', $LANG_MAPS_1['required_field']);\n\t\n\t//Image\n\t$template->set_var('image', $LANG_MAPS_1['image']);\n\t$template->set_var('image_message', $LANG_MAPS_1['image_message']);\n\t$icon_image = $_MAPS_CONF['path_icons_images'] . $icon['icon_image'];\n\tif (is_file($icon_image)) {\n\t\t$template->set_var('icon_image','<p>' . $LANG_MAPS_1['image_replace'] . '<p><p><img src=\"' . $_MAPS_CONF['images_icons_url'] . $icon['icon_image'] .'\" alt=\"' . $icon['icon_image'] . '\" /></p>');\n\t} else {\n\t\t$template->set_var('icon_image', '');\n\t}\n\t\n\t//Form validation\n\t$template->set_var('save_button', $LANG_MAPS_1['save_button']);\n\t\n\tif ($icon['icon_id'] > 0) {\n\t\t$template->set_var('delete_button', '<option value=\"delete\">' . $LANG_MAPS_1['delete_button'] . '</option>');\n\t} else {\n\t\t$template->set_var('delete_button', '');\n\t}\n\t$template->set_var('ok_button', $LANG_MAPS_1['ok_button']);\n\tif (isset($icon['icon_id']) && $icon['icon_id'] != '') {\n\t\t$template->set_var('id', '<input type=\"hidden\" name=\"id\" value=\"' . $icon['icon_id'] .'\" />');\n\t} else {\n\t\t$template->set_var('id', '');\n\t}\n\t\n\t$display .= $template->parse('output', 'icon');\n\n\n $display .= COM_endBlock();\n\n return $display;\n}",
"function ca_elements_icon_map( $icon_map ) {\n\t\t$icon_map['si_custom_elements'] = CA_EXTENSION_URL . '/assets/svg/icons.svg';\n\t\treturn $icon_map;\n\t}",
"private function augment_settings_map_markers() {\n\n\t\t$related_to = 'map_end_icon,default_icons';\n\t\t$new_options[ 'default_icons' ] = array( 'related_to' => $related_to , 'type' => 'checkbox' );\n\n\t\t$this->attach_to_slp( $new_options , array( 'page'=> 'slp_experience','section' => 'map', 'group' => 'markers' ) );\n\t}",
"function process_im_icons()\n\t{\n\t}",
"function process_im_icons()\n\t{\n\t}",
"function process_im_icons()\n\t{\n\t}",
"public function getIcon();",
"public function getIcon();",
"function gmw_ps_modify_group_map_icon( $args, $group, $gmw ) {\n\n $map_icon = '_default.png';\n\n //set default map icon usage if not exist\n if ( ! isset( $gmw['map_markers']['usage'] ) ) {\n $usage = $gmw['map_markers']['usage'] = 'global';\n } else {\n $usage = $gmw['map_markers']['usage'];\n }\n\n $global_icon = isset( $gmw['map_markers']['default_marker'] ) ? $gmw['map_markers']['default_marker'] : '_default.png';\n \n //if same global map icon\n if ( $usage == 'global' ) {\n $map_icon = $gmw['map_markers']['default_marker'];\n //per group map icon \n } elseif ( $usage == 'per_group' && isset( $group->map_icon ) ) {\n $map_icon = $group->map_icon;\n //avatar map icon\n } elseif ( $usage == 'avatar' ) {\n $avatar = bp_core_fetch_avatar( array( \n 'item_id' => $group->id,\n 'object' => 'group', \n 'type' => 'thumb', \n 'width' => 30, \n 'height' => 30, \n 'html' => false \n ) );\n\n $map_icon = array(\n 'url' => ( $avatar ) ? $avatar : GMW_PS_URL . '/friends/assets/ map-icons/_no_avatar.png',\n 'scaledSize' => array(\n 'height' => 30,\n 'width' => 30\n )\n );\n\n //oterwise, default map icon \n } else {\n $map_icon = '_default.png';\n }\n \n //generate the map icon\n if ( $usage != 'avatar' ) {\n\n if ( $map_icon == '_default.png' ) {\n $map_icon = 'https://chart.googleapis.com/chart?chst=d_map_pin_letter&chld='. $group->location_count.'|FF776B|000000';\n } else {\n $icons = gmw_get_icons();\n $map_icon = $icons['gl_map_icons']['url'].$map_icon;\n }\n }\n\n $args['map_icon'] = $map_icon;\n\n return $args;\n}",
"function MAPS_listIcons()\n{\n global $_CONF, $_TABLES, $_IMAGE_TYPE, $LANG_ADMIN, $LANG_MAPS_1;\n\n require_once $_CONF['path_system'] . 'lib-admin.php';\n\n $retval = '';\n\n $header_arr = array( // display 'text' and use table field 'field'\n array('text' => $LANG_MAPS_1['id'], 'field' => 'icon_id', 'sort' => true),\n array('text' => $LANG_MAPS_1['icons'], 'field' => 'icon_name', 'sort' => true),\n array('text' => $LANG_MAPS_1['image'], 'field' => 'icon_image', 'sort' => false),\n );\n $defsort_arr = array('field' => 'icon_name', 'direction' => 'asc');\n\n $text_arr = array(\n 'has_extras' => true,\n 'form_url' => $_CONF['site_admin_url'] . '/plugins/maps/icons.php'\n );\n\t\n\t$sql = \"SELECT\n\t *\n FROM {$_TABLES['maps_map_icons']}\n\t\t\tWHERE 1=1\";\n\n $query_arr = array(\n 'sql' => $sql,\n\t\t'query_fields' => array('icon_name'),\n 'default_filter' => ''\n );\n\n $retval .= ADMIN_list('icons', 'MAPS_getListField_icons',\n $header_arr, $text_arr, $query_arr, $defsort_arr);\n\n return $retval;\n}",
"function menuMapa(){\n\tadd_menu_page( 'mapa_load', 'Mapa Telefónica', 'read', 'mapa_load', 'mapa_load', 'dashicons-admin-site');\n}",
"function pods_ui_tiles()\n{\n $icon = '';\n add_object_page('Tiles', 'Tiles', 'read', 'tiles', '', $icon);\n add_submenu_page('tiles', 'Tiles', 'Tiles', 'read', 'tiles', 'tile_page');\n}",
"public function icon ( ) { return NULL; }",
"function cptmm_setup_menu(){\n add_menu_page(\n 'CPT map marker',\n 'CPT map marker',\n 'manage_options',\n 'CPT-map-marker',\n 'cptmm_setup_menu_content',\n 'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTguMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0iQ2FwYV8xIiB4PSIwcHgiIHk9IjBweCIgdmlld0JveD0iMCAwIDI5Ni45OTkgMjk2Ljk5OSIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMjk2Ljk5OSAyOTYuOTk5OyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSIgd2lkdGg9IjUxMnB4IiBoZWlnaHQ9IjUxMnB4Ij4KPGc+Cgk8cGF0aCBkPSJNMTQxLjkxNCwxODUuODAyYzEuODgzLDEuNjU2LDQuMjM0LDIuNDg2LDYuNTg3LDIuNDg2YzIuMzUzLDAsNC43MDUtMC44Myw2LjU4Ny0yLjQ4NiAgIGMyLjM4NS0yLjEwMSw1OC4zOTEtNTIuMDIxLDU4LjM5MS0xMDMuNzkzYzAtMzUuODQyLTI5LjE0OC02NS4wMDItNjQuOTc3LTY1LjAwMmMtMzUuODMsMC02NC45NzksMjkuMTYtNjQuOTc5LDY1LjAwMiAgIEM4My41MjEsMTMzLjc4MSwxMzkuNTI5LDE4My43MDEsMTQxLjkxNCwxODUuODAyeiBNMTQ4LjUwMSw2NS4wMjVjOS4zMDIsMCwxNi44NDUsNy42MDIsMTYuODQ1LDE2Ljk4NCAgIGMwLDkuMzgxLTcuNTQzLDE2Ljk4NC0xNi44NDUsMTYuOTg0Yy05LjMwNSwwLTE2Ljg0Ny03LjYwNC0xNi44NDctMTYuOTg0QzEzMS42NTQsNzIuNjI3LDEzOS4xOTYsNjUuMDI1LDE0OC41MDEsNjUuMDI1eiIgZmlsbD0iIzAwMDAwMCIvPgoJPHBhdGggZD0iTTI3My4zNTcsMTg1Ljc3M2wtNy41MjctMjYuMzc3Yy0xLjIyMi00LjI4MS01LjEzMy03LjIzMi05LjU4My03LjIzMmgtNTMuNzE5Yy0xLjk0MiwyLjg4Ny0zLjk5MSw1Ljc4NS02LjE1OCw4LjY5OSAgIGMtMTUuMDU3LDIwLjIzLTMwLjM2NCwzMy45MTQtMzIuMDYxLDM1LjQxYy00LjM3LDMuODQ4LTkuOTgzLDUuOTY3LTE1LjgwOCw1Ljk2N2MtNS44MjEsMC0xMS40MzQtMi4xMTctMTUuODEtNS45NjkgICBjLTEuNjk1LTEuNDk0LTE3LjAwNC0xNS4xOC0zMi4wNi0zNS40MDhjLTIuMTY3LTIuOTE0LTQuMjE2LTUuODEzLTYuMTU4LTguNjk5aC01My43MmMtNC40NSwwLTguMzYxLDIuOTUxLTkuNTgzLDcuMjMyICAgbC04Ljk3MSwzMS40MzZsMjAwLjUyOSwzNi43M0wyNzMuMzU3LDE4NS43NzN6IiBmaWxsPSIjMDAwMDAwIi8+Cgk8cGF0aCBkPSJNMjk2LjYxNywyNjcuMjkxbC0xOS4yMy02Ny4zOTZsLTk1LjQxMiw4MC4wOThoMTA1LjA2YzMuMTI3LDAsNi4wNzItMS40NjcsNy45NTUtMy45NjMgICBDMjk2Ljg3MywyNzMuNTMzLDI5Ny40NzQsMjcwLjI5NywyOTYuNjE3LDI2Ny4yOTF6IiBmaWxsPSIjMDAwMDAwIi8+Cgk8cGF0aCBkPSJNNDguNzkzLDIwOS44ODhsLTMwLjQ0LTUuNTc2TDAuMzgzLDI2Ny4yOTFjLTAuODU3LDMuMDA2LTAuMjU2LDYuMjQyLDEuNjI4LDguNzM4YzEuODgzLDIuNDk2LDQuODI4LDMuOTYzLDcuOTU1LDMuOTYzICAgaDM4LjgyN1YyMDkuODg4eiIgZmlsbD0iIzAwMDAwMCIvPgoJPHBvbHlnb24gcG9pbnRzPSI2Mi43NDYsMjEyLjQ0NSA2Mi43NDYsMjc5Ljk5MiAxNjAuMjczLDI3OS45OTIgMjA4Ljg1NywyMzkuMjA3ICAiIGZpbGw9IiMwMDAwMDAiLz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8L3N2Zz4K',\n 30\n );\n}",
"protected function get__icon()\n\t{\n\t\treturn 'camera';\n\t}",
"public function getIcon() {}",
"public function get_icon() {\r\n return 'eicon-google-maps';\r\n }",
"public static function getIcon();",
"public static function tf_icon_picker() {\n\t\t$icon_fonts = self::get_types();\n\t\tif ( ! empty( $icon_fonts ) ) {\n\t\t\tinclude trailingslashit( dirname( __FILE__ ) ) . 'views/template.php';\n\t\t}\n\t\tdie;\n\t}",
"public function slcr_add_new_icon_set_to_iconbox() { \n\t\t\t$icons_name = \"flaticon\";\n\t\t $param = WPBMap::getParam( 'vc_icon', 'type' );\n\t $param['value'][__( 'Custom Pack', 'moppers' )] = $icons_name;\n\t vc_update_shortcode_param( 'vc_icon', $param ); \n\t // list of icons that add \n\t add_filter( 'vc_iconpicker-type-flaticon', array( $this, 'slcr_add_icon_array' ), 15 ); \n\t add_action( 'vc_base_register_front_css', array( $this, 'slcr_vc_iconpicker_base_register_css' ), 15 );\n \t\tadd_action( 'vc_base_register_admin_css', array( $this, 'slcr_vc_iconpicker_base_register_css' ), 15 );\n\n \t\tadd_action( 'vc_backend_editor_enqueue_js_css', array( $this, 'slcr_vc_iconpicker_editor_css' ), 15 );\n \t\tadd_action( 'vc_frontend_editor_enqueue_js_css', array( $this, 'slcr_vc_iconpicker_editor_css' ), 15 );\n }",
"function vc_iconpicker_type_iconsmind( $icons ) {\n\t$iconsmind_icons = array(\n\t\tarray(\"iconsmind-Aquarius\" => \"iconsmind-Aquarius\"), \n\t\tarray(\"iconsmind-Aquarius-2\" => \"iconsmind-Aquarius-2\"), \n\t\tarray(\"iconsmind-Aries\" => \"iconsmind-Aries\"), \n\t\tarray(\"iconsmind-Aries-2\" => \"iconsmind-Aries-2\"), \n\t\tarray(\"iconsmind-Cancer\" => \"iconsmind-Cancer\"), \n\t\tarray(\"iconsmind-Cancer-2\" => \"iconsmind-Cancer-2\"), \n\t\tarray(\"iconsmind-Capricorn\" => \"iconsmind-Capricorn\"), \n\t\tarray(\"iconsmind-Capricorn-2\" => \"iconsmind-Capricorn-2\"), \n\t\tarray(\"iconsmind-Gemini\" => \"iconsmind-Gemini\"), \n\t\tarray(\"iconsmind-Gemini-2\" => \"iconsmind-Gemini-2\"), \n\t\tarray(\"iconsmind-Leo\" => \"iconsmind-Leo\"), \n\t\tarray(\"iconsmind-Leo-2\" => \"iconsmind-Leo-2\"), \n\t\tarray(\"iconsmind-Libra\" => \"iconsmind-Libra\"), \n\t\tarray(\"iconsmind-Libra-2\" => \"iconsmind-Libra-2\"), \n\t\tarray(\"iconsmind-Pisces\" => \"iconsmind-Pisces\"), \n\t\tarray(\"iconsmind-Pisces-2\" => \"iconsmind-Pisces-2\"), \n\t\tarray(\"iconsmind-Sagittarus\" => \"iconsmind-Sagittarus\"), \n\t\tarray(\"iconsmind-Sagittarus-2\" => \"iconsmind-Sagittarus-2\"), \n\t\tarray(\"iconsmind-Scorpio\" => \"iconsmind-Scorpio\"), \n\t\tarray(\"iconsmind-Scorpio-2\" => \"iconsmind-Scorpio-2\"), \n\t\tarray(\"iconsmind-Taurus\" => \"iconsmind-Taurus\"), \n\t\tarray(\"iconsmind-Taurus-2\" => \"iconsmind-Taurus-2\"), \n\t\tarray(\"iconsmind-Virgo\" => \"iconsmind-Virgo\"), \n\t\tarray(\"iconsmind-Virgo-2\" => \"iconsmind-Virgo-2\"), \n\t\tarray(\"iconsmind-Add-Window\" => \"iconsmind-Add-Window\"), \n\t\tarray(\"iconsmind-Approved-Window\" => \"iconsmind-Approved-Window\"), \n\t\tarray(\"iconsmind-Block-Window\" => \"iconsmind-Block-Window\"), \n\t\tarray(\"iconsmind-Close-Window\" => \"iconsmind-Close-Window\"), \n\t\tarray(\"iconsmind-Code-Window\" => \"iconsmind-Code-Window\"), \n\t\tarray(\"iconsmind-Delete-Window\" => \"iconsmind-Delete-Window\"), \n\t\tarray(\"iconsmind-Download-Window\" => \"iconsmind-Download-Window\"), \n\t\tarray(\"iconsmind-Duplicate-Window\" => \"iconsmind-Duplicate-Window\"), \n\t\tarray(\"iconsmind-Error-404Window\" => \"iconsmind-Error-404Window\"), \n\t\tarray(\"iconsmind-Favorite-Window\" => \"iconsmind-Favorite-Window\"), \n\t\tarray(\"iconsmind-Font-Window\" => \"iconsmind-Font-Window\"), \n\t\tarray(\"iconsmind-Full-ViewWindow\" => \"iconsmind-Full-ViewWindow\"), \n\t\tarray(\"iconsmind-Height-Window\" => \"iconsmind-Height-Window\"), \n\t\tarray(\"iconsmind-Home-Window\" => \"iconsmind-Home-Window\"), \n\t\tarray(\"iconsmind-Info-Window\" => \"iconsmind-Info-Window\"), \n\t\tarray(\"iconsmind-Loading-Window\" => \"iconsmind-Loading-Window\"), \n\t\tarray(\"iconsmind-Lock-Window\" => \"iconsmind-Lock-Window\"), \n\t\tarray(\"iconsmind-Love-Window\" => \"iconsmind-Love-Window\"), \n\t\tarray(\"iconsmind-Maximize-Window\" => \"iconsmind-Maximize-Window\"), \n\t\tarray(\"iconsmind-Minimize-Maximize-Close-Window\" => \"iconsmind-Minimize-Maximize-Close-Window\"), \n\t\tarray(\"iconsmind-Minimize-Window\" => \"iconsmind-Minimize-Window\"), \n\t\tarray(\"iconsmind-Navigation-LeftWindow\" => \"iconsmind-Navigation-LeftWindow\"), \n\t\tarray(\"iconsmind-Navigation-RightWindow\" => \"iconsmind-Navigation-RightWindow\"), \n\t\tarray(\"iconsmind-Network-Window\" => \"iconsmind-Network-Window\"), \n\t\tarray(\"iconsmind-New-Tab\" => \"iconsmind-New-Tab\"), \n\t\tarray(\"iconsmind-One-Window\" => \"iconsmind-One-Window\"), \n\t\tarray(\"iconsmind-Refresh-Window\" => \"iconsmind-Refresh-Window\"), \n\t\tarray(\"iconsmind-Remove-Window\" => \"iconsmind-Remove-Window\"), \n\t\tarray(\"iconsmind-Restore-Window\" => \"iconsmind-Restore-Window\"), \n\t\tarray(\"iconsmind-Save-Window\" => \"iconsmind-Save-Window\"), \n\t\tarray(\"iconsmind-Settings-Window\" => \"iconsmind-Settings-Window\"), \n\t\tarray(\"iconsmind-Share-Window\" => \"iconsmind-Share-Window\"), \n\t\tarray(\"iconsmind-Sidebar-Window\" => \"iconsmind-Sidebar-Window\"), \n\t\tarray(\"iconsmind-Split-FourSquareWindow\" => \"iconsmind-Split-FourSquareWindow\"), \n\t\tarray(\"iconsmind-Split-Horizontal\" => \"iconsmind-Split-Horizontal\"), \n\t\tarray(\"iconsmind-Split-Horizontal2Window\" => \"iconsmind-Split-Horizontal2Window\"), \n\t\tarray(\"iconsmind-Split-Vertical\" => \"iconsmind-Split-Vertical\"), \n\t\tarray(\"iconsmind-Split-Vertical2\" => \"iconsmind-Split-Vertical2\"), \n\t\tarray(\"iconsmind-Split-Window\" => \"iconsmind-Split-Window\"), \n\t\tarray(\"iconsmind-Time-Window\" => \"iconsmind-Time-Window\"), \n\t\tarray(\"iconsmind-Touch-Window\" => \"iconsmind-Touch-Window\"), \n\t\tarray(\"iconsmind-Two-Windows\" => \"iconsmind-Two-Windows\"), \n\t\tarray(\"iconsmind-Upload-Window\" => \"iconsmind-Upload-Window\"), \n\t\tarray(\"iconsmind-URL-Window\" => \"iconsmind-URL-Window\"), \n\t\tarray(\"iconsmind-Warning-Window\" => \"iconsmind-Warning-Window\"), \n\t\tarray(\"iconsmind-Width-Window\" => \"iconsmind-Width-Window\"), \n\t\tarray(\"iconsmind-Window-2\" => \"iconsmind-Window-2\"), \n\t\tarray(\"iconsmind-Windows-2\" => \"iconsmind-Windows-2\"), \n\t\tarray(\"iconsmind-Autumn\" => \"iconsmind-Autumn\"), \n\t\tarray(\"iconsmind-Celsius\" => \"iconsmind-Celsius\"), \n\t\tarray(\"iconsmind-Cloud-Hail\" => \"iconsmind-Cloud-Hail\"), \n\t\tarray(\"iconsmind-Cloud-Moon\" => \"iconsmind-Cloud-Moon\"), \n\t\tarray(\"iconsmind-Cloud-Rain\" => \"iconsmind-Cloud-Rain\"), \n\t\tarray(\"iconsmind-Cloud-Snow\" => \"iconsmind-Cloud-Snow\"), \n\t\tarray(\"iconsmind-Cloud-Sun\" => \"iconsmind-Cloud-Sun\"), \n\t\tarray(\"iconsmind-Clouds-Weather\" => \"iconsmind-Clouds-Weather\"), \n\t\tarray(\"iconsmind-Cloud-Weather\" => \"iconsmind-Cloud-Weather\"), \n\t\tarray(\"iconsmind-Drop\" => \"iconsmind-Drop\"), \n\t\tarray(\"iconsmind-Dry\" => \"iconsmind-Dry\"), \n\t\tarray(\"iconsmind-Fahrenheit\" => \"iconsmind-Fahrenheit\"), \n\t\tarray(\"iconsmind-Fog-Day\" => \"iconsmind-Fog-Day\"), \n\t\tarray(\"iconsmind-Fog-Night\" => \"iconsmind-Fog-Night\"), \n\t\tarray(\"iconsmind-Full-Moon\" => \"iconsmind-Full-Moon\"), \n\t\tarray(\"iconsmind-Half-Moon\" => \"iconsmind-Half-Moon\"), \n\t\tarray(\"iconsmind-No-Drop\" => \"iconsmind-No-Drop\"), \n\t\tarray(\"iconsmind-Rainbow\" => \"iconsmind-Rainbow\"), \n\t\tarray(\"iconsmind-Rainbow-2\" => \"iconsmind-Rainbow-2\"), \n\t\tarray(\"iconsmind-Rain-Drop\" => \"iconsmind-Rain-Drop\"), \n\t\tarray(\"iconsmind-Sleet\" => \"iconsmind-Sleet\"), \n\t\tarray(\"iconsmind-Snow\" => \"iconsmind-Snow\"), \n\t\tarray(\"iconsmind-Snowflake\" => \"iconsmind-Snowflake\"), \n\t\tarray(\"iconsmind-Snowflake-2\" => \"iconsmind-Snowflake-2\"), \n\t\tarray(\"iconsmind-Snowflake-3\" => \"iconsmind-Snowflake-3\"), \n\t\tarray(\"iconsmind-Snow-Storm\" => \"iconsmind-Snow-Storm\"), \n\t\tarray(\"iconsmind-Spring\" => \"iconsmind-Spring\"), \n\t\tarray(\"iconsmind-Storm\" => \"iconsmind-Storm\"), \n\t\tarray(\"iconsmind-Summer\" => \"iconsmind-Summer\"), \n\t\tarray(\"iconsmind-Sun\" => \"iconsmind-Sun\"), \n\t\tarray(\"iconsmind-Sun-CloudyRain\" => \"iconsmind-Sun-CloudyRain\"), \n\t\tarray(\"iconsmind-Sunrise\" => \"iconsmind-Sunrise\"), \n\t\tarray(\"iconsmind-Sunset\" => \"iconsmind-Sunset\"), \n\t\tarray(\"iconsmind-Temperature\" => \"iconsmind-Temperature\"), \n\t\tarray(\"iconsmind-Temperature-2\" => \"iconsmind-Temperature-2\"), \n\t\tarray(\"iconsmind-Thunder\" => \"iconsmind-Thunder\"), \n\t\tarray(\"iconsmind-Thunderstorm\" => \"iconsmind-Thunderstorm\"), \n\t\tarray(\"iconsmind-Twister\" => \"iconsmind-Twister\"), \n\t\tarray(\"iconsmind-Umbrella-2\" => \"iconsmind-Umbrella-2\"), \n\t\tarray(\"iconsmind-Umbrella-3\" => \"iconsmind-Umbrella-3\"), \n\t\tarray(\"iconsmind-Wave\" => \"iconsmind-Wave\"), \n\t\tarray(\"iconsmind-Wave-2\" => \"iconsmind-Wave-2\"), \n\t\tarray(\"iconsmind-Windsock\" => \"iconsmind-Windsock\"), \n\t\tarray(\"iconsmind-Wind-Turbine\" => \"iconsmind-Wind-Turbine\"), \n\t\tarray(\"iconsmind-Windy\" => \"iconsmind-Windy\"), \n\t\tarray(\"iconsmind-Winter\" => \"iconsmind-Winter\"), \n\t\tarray(\"iconsmind-Winter-2\" => \"iconsmind-Winter-2\"), \n\t\tarray(\"iconsmind-Cinema\" => \"iconsmind-Cinema\"), \n\t\tarray(\"iconsmind-Clapperboard-Close\" => \"iconsmind-Clapperboard-Close\"), \n\t\tarray(\"iconsmind-Clapperboard-Open\" => \"iconsmind-Clapperboard-Open\"), \n\t\tarray(\"iconsmind-D-Eyeglasses\" => \"iconsmind-D-Eyeglasses\"), \n\t\tarray(\"iconsmind-D-Eyeglasses2\" => \"iconsmind-D-Eyeglasses2\"), \n\t\tarray(\"iconsmind-Director\" => \"iconsmind-Director\"), \n\t\tarray(\"iconsmind-Film\" => \"iconsmind-Film\"), \n\t\tarray(\"iconsmind-Film-Strip\" => \"iconsmind-Film-Strip\"), \n\t\tarray(\"iconsmind-Film-Video\" => \"iconsmind-Film-Video\"), \n\t\tarray(\"iconsmind-Flash-Video\" => \"iconsmind-Flash-Video\"), \n\t\tarray(\"iconsmind-HD-Video\" => \"iconsmind-HD-Video\"), \n\t\tarray(\"iconsmind-Movie\" => \"iconsmind-Movie\"), \n\t\tarray(\"iconsmind-Old-TV\" => \"iconsmind-Old-TV\"), \n\t\tarray(\"iconsmind-Reel\" => \"iconsmind-Reel\"), \n\t\tarray(\"iconsmind-Tripod-andVideo\" => \"iconsmind-Tripod-andVideo\"), \n\t\tarray(\"iconsmind-TV\" => \"iconsmind-TV\"), \n\t\tarray(\"iconsmind-Video\" => \"iconsmind-Video\"), \n\t\tarray(\"iconsmind-Video-2\" => \"iconsmind-Video-2\"), \n\t\tarray(\"iconsmind-Video-3\" => \"iconsmind-Video-3\"), \n\t\tarray(\"iconsmind-Video-4\" => \"iconsmind-Video-4\"), \n\t\tarray(\"iconsmind-Video-5\" => \"iconsmind-Video-5\"), \n\t\tarray(\"iconsmind-Video-6\" => \"iconsmind-Video-6\"), \n\t\tarray(\"iconsmind-Video-Len\" => \"iconsmind-Video-Len\"), \n\t\tarray(\"iconsmind-Video-Len2\" => \"iconsmind-Video-Len2\"), \n\t\tarray(\"iconsmind-Video-Photographer\" => \"iconsmind-Video-Photographer\"), \n\t\tarray(\"iconsmind-Video-Tripod\" => \"iconsmind-Video-Tripod\"), \n\t\tarray(\"iconsmind-Affiliate\" => \"iconsmind-Affiliate\"), \n\t\tarray(\"iconsmind-Background\" => \"iconsmind-Background\"), \n\t\tarray(\"iconsmind-Billing\" => \"iconsmind-Billing\"), \n\t\tarray(\"iconsmind-Control\" => \"iconsmind-Control\"), \n\t\tarray(\"iconsmind-Control-2\" => \"iconsmind-Control-2\"), \n\t\tarray(\"iconsmind-Crop-2\" => \"iconsmind-Crop-2\"), \n\t\tarray(\"iconsmind-Dashboard\" => \"iconsmind-Dashboard\"), \n\t\tarray(\"iconsmind-Duplicate-Layer\" => \"iconsmind-Duplicate-Layer\"), \n\t\tarray(\"iconsmind-Filter-2\" => \"iconsmind-Filter-2\"), \n\t\tarray(\"iconsmind-Gear\" => \"iconsmind-Gear\"), \n\t\tarray(\"iconsmind-Gear-2\" => \"iconsmind-Gear-2\"), \n\t\tarray(\"iconsmind-Gears\" => \"iconsmind-Gears\"), \n\t\tarray(\"iconsmind-Gears-2\" => \"iconsmind-Gears-2\"), \n\t\tarray(\"iconsmind-Information\" => \"iconsmind-Information\"), \n\t\tarray(\"iconsmind-Layer-Backward\" => \"iconsmind-Layer-Backward\"), \n\t\tarray(\"iconsmind-Layer-Forward\" => \"iconsmind-Layer-Forward\"), \n\t\tarray(\"iconsmind-Library\" => \"iconsmind-Library\"), \n\t\tarray(\"iconsmind-Loading\" => \"iconsmind-Loading\"), \n\t\tarray(\"iconsmind-Loading-2\" => \"iconsmind-Loading-2\"), \n\t\tarray(\"iconsmind-Loading-3\" => \"iconsmind-Loading-3\"), \n\t\tarray(\"iconsmind-Magnifi-Glass\" => \"iconsmind-Magnifi-Glass\"), \n\t\tarray(\"iconsmind-Magnifi-Glass2\" => \"iconsmind-Magnifi-Glass2\"), \n\t\tarray(\"iconsmind-Magnifi-Glass22\" => \"iconsmind-Magnifi-Glass22\"), \n\t\tarray(\"iconsmind-Mouse-Pointer\" => \"iconsmind-Mouse-Pointer\"), \n\t\tarray(\"iconsmind-On-off\" => \"iconsmind-On-off\"), \n\t\tarray(\"iconsmind-On-Off-2\" => \"iconsmind-On-Off-2\"), \n\t\tarray(\"iconsmind-On-Off-3\" => \"iconsmind-On-Off-3\"), \n\t\tarray(\"iconsmind-Preview\" => \"iconsmind-Preview\"), \n\t\tarray(\"iconsmind-Pricing\" => \"iconsmind-Pricing\"), \n\t\tarray(\"iconsmind-Profile\" => \"iconsmind-Profile\"), \n\t\tarray(\"iconsmind-Project\" => \"iconsmind-Project\"), \n\t\tarray(\"iconsmind-Rename\" => \"iconsmind-Rename\"), \n\t\tarray(\"iconsmind-Repair\" => \"iconsmind-Repair\"), \n\t\tarray(\"iconsmind-Save\" => \"iconsmind-Save\"), \n\t\tarray(\"iconsmind-Scroller\" => \"iconsmind-Scroller\"), \n\t\tarray(\"iconsmind-Scroller-2\" => \"iconsmind-Scroller-2\"), \n\t\tarray(\"iconsmind-Share\" => \"iconsmind-Share\"), \n\t\tarray(\"iconsmind-Statistic\" => \"iconsmind-Statistic\"), \n\t\tarray(\"iconsmind-Support\" => \"iconsmind-Support\"), \n\t\tarray(\"iconsmind-Switch\" => \"iconsmind-Switch\"), \n\t\tarray(\"iconsmind-Upgrade\" => \"iconsmind-Upgrade\"), \n\t\tarray(\"iconsmind-User\" => \"iconsmind-User\"), \n\t\tarray(\"iconsmind-Wrench\" => \"iconsmind-Wrench\"), \n\t\tarray(\"iconsmind-Air-Balloon\" => \"iconsmind-Air-Balloon\"), \n\t\tarray(\"iconsmind-Airship\" => \"iconsmind-Airship\"), \n\t\tarray(\"iconsmind-Bicycle\" => \"iconsmind-Bicycle\"), \n\t\tarray(\"iconsmind-Bicycle-2\" => \"iconsmind-Bicycle-2\"), \n\t\tarray(\"iconsmind-Bike-Helmet\" => \"iconsmind-Bike-Helmet\"), \n\t\tarray(\"iconsmind-Bus\" => \"iconsmind-Bus\"), \n\t\tarray(\"iconsmind-Bus-2\" => \"iconsmind-Bus-2\"), \n\t\tarray(\"iconsmind-Cable-Car\" => \"iconsmind-Cable-Car\"), \n\t\tarray(\"iconsmind-Car\" => \"iconsmind-Car\"), \n\t\tarray(\"iconsmind-Car-2\" => \"iconsmind-Car-2\"), \n\t\tarray(\"iconsmind-Car-3\" => \"iconsmind-Car-3\"), \n\t\tarray(\"iconsmind-Car-Wheel\" => \"iconsmind-Car-Wheel\"), \n\t\tarray(\"iconsmind-Gaugage\" => \"iconsmind-Gaugage\"), \n\t\tarray(\"iconsmind-Gaugage-2\" => \"iconsmind-Gaugage-2\"), \n\t\tarray(\"iconsmind-Helicopter\" => \"iconsmind-Helicopter\"), \n\t\tarray(\"iconsmind-Helicopter-2\" => \"iconsmind-Helicopter-2\"), \n\t\tarray(\"iconsmind-Helmet\" => \"iconsmind-Helmet\"), \n\t\tarray(\"iconsmind-Jeep\" => \"iconsmind-Jeep\"), \n\t\tarray(\"iconsmind-Jeep-2\" => \"iconsmind-Jeep-2\"), \n\t\tarray(\"iconsmind-Jet\" => \"iconsmind-Jet\"), \n\t\tarray(\"iconsmind-Motorcycle\" => \"iconsmind-Motorcycle\"), \n\t\tarray(\"iconsmind-Plane\" => \"iconsmind-Plane\"), \n\t\tarray(\"iconsmind-Plane-2\" => \"iconsmind-Plane-2\"), \n\t\tarray(\"iconsmind-Road\" => \"iconsmind-Road\"), \n\t\tarray(\"iconsmind-Road-2\" => \"iconsmind-Road-2\"), \n\t\tarray(\"iconsmind-Rocket\" => \"iconsmind-Rocket\"), \n\t\tarray(\"iconsmind-Sailing-Ship\" => \"iconsmind-Sailing-Ship\"), \n\t\tarray(\"iconsmind-Scooter\" => \"iconsmind-Scooter\"), \n\t\tarray(\"iconsmind-Scooter-Front\" => \"iconsmind-Scooter-Front\"), \n\t\tarray(\"iconsmind-Ship\" => \"iconsmind-Ship\"), \n\t\tarray(\"iconsmind-Ship-2\" => \"iconsmind-Ship-2\"), \n\t\tarray(\"iconsmind-Skateboard\" => \"iconsmind-Skateboard\"), \n\t\tarray(\"iconsmind-Skateboard-2\" => \"iconsmind-Skateboard-2\"), \n\t\tarray(\"iconsmind-Taxi\" => \"iconsmind-Taxi\"), \n\t\tarray(\"iconsmind-Taxi-2\" => \"iconsmind-Taxi-2\"), \n\t\tarray(\"iconsmind-Taxi-Sign\" => \"iconsmind-Taxi-Sign\"), \n\t\tarray(\"iconsmind-Tractor\" => \"iconsmind-Tractor\"), \n\t\tarray(\"iconsmind-traffic-Light\" => \"iconsmind-traffic-Light\"), \n\t\tarray(\"iconsmind-Traffic-Light2\" => \"iconsmind-Traffic-Light2\"), \n\t\tarray(\"iconsmind-Train\" => \"iconsmind-Train\"), \n\t\tarray(\"iconsmind-Train-2\" => \"iconsmind-Train-2\"), \n\t\tarray(\"iconsmind-Tram\" => \"iconsmind-Tram\"), \n\t\tarray(\"iconsmind-Truck\" => \"iconsmind-Truck\"), \n\t\tarray(\"iconsmind-Yacht\" => \"iconsmind-Yacht\"), \n\t\tarray(\"iconsmind-Double-Tap\" => \"iconsmind-Double-Tap\"), \n\t\tarray(\"iconsmind-Drag\" => \"iconsmind-Drag\"), \n\t\tarray(\"iconsmind-Drag-Down\" => \"iconsmind-Drag-Down\"), \n\t\tarray(\"iconsmind-Drag-Left\" => \"iconsmind-Drag-Left\"), \n\t\tarray(\"iconsmind-Drag-Right\" => \"iconsmind-Drag-Right\"), \n\t\tarray(\"iconsmind-Drag-Up\" => \"iconsmind-Drag-Up\"), \n\t\tarray(\"iconsmind-Finger-DragFourSides\" => \"iconsmind-Finger-DragFourSides\"), \n\t\tarray(\"iconsmind-Finger-DragTwoSides\" => \"iconsmind-Finger-DragTwoSides\"), \n\t\tarray(\"iconsmind-Five-Fingers\" => \"iconsmind-Five-Fingers\"), \n\t\tarray(\"iconsmind-Five-FingersDrag\" => \"iconsmind-Five-FingersDrag\"), \n\t\tarray(\"iconsmind-Five-FingersDrag2\" => \"iconsmind-Five-FingersDrag2\"), \n\t\tarray(\"iconsmind-Five-FingersTouch\" => \"iconsmind-Five-FingersTouch\"), \n\t\tarray(\"iconsmind-Flick\" => \"iconsmind-Flick\"), \n\t\tarray(\"iconsmind-Four-Fingers\" => \"iconsmind-Four-Fingers\"), \n\t\tarray(\"iconsmind-Four-FingersDrag\" => \"iconsmind-Four-FingersDrag\"), \n\t\tarray(\"iconsmind-Four-FingersDrag2\" => \"iconsmind-Four-FingersDrag2\"), \n\t\tarray(\"iconsmind-Four-FingersTouch\" => \"iconsmind-Four-FingersTouch\"), \n\t\tarray(\"iconsmind-Hand-Touch\" => \"iconsmind-Hand-Touch\"), \n\t\tarray(\"iconsmind-Hand-Touch2\" => \"iconsmind-Hand-Touch2\"), \n\t\tarray(\"iconsmind-Hand-TouchSmartphone\" => \"iconsmind-Hand-TouchSmartphone\"), \n\t\tarray(\"iconsmind-One-Finger\" => \"iconsmind-One-Finger\"), \n\t\tarray(\"iconsmind-One-FingerTouch\" => \"iconsmind-One-FingerTouch\"), \n\t\tarray(\"iconsmind-Pinch\" => \"iconsmind-Pinch\"), \n\t\tarray(\"iconsmind-Press\" => \"iconsmind-Press\"), \n\t\tarray(\"iconsmind-Rotate-Gesture\" => \"iconsmind-Rotate-Gesture\"), \n\t\tarray(\"iconsmind-Rotate-Gesture2\" => \"iconsmind-Rotate-Gesture2\"), \n\t\tarray(\"iconsmind-Rotate-Gesture3\" => \"iconsmind-Rotate-Gesture3\"), \n\t\tarray(\"iconsmind-Scroll\" => \"iconsmind-Scroll\"), \n\t\tarray(\"iconsmind-Scroll-Fast\" => \"iconsmind-Scroll-Fast\"), \n\t\tarray(\"iconsmind-Spread\" => \"iconsmind-Spread\"), \n\t\tarray(\"iconsmind-Star-Track\" => \"iconsmind-Star-Track\"), \n\t\tarray(\"iconsmind-Tap\" => \"iconsmind-Tap\"), \n\t\tarray(\"iconsmind-Three-Fingers\" => \"iconsmind-Three-Fingers\"), \n\t\tarray(\"iconsmind-Three-FingersDrag\" => \"iconsmind-Three-FingersDrag\"), \n\t\tarray(\"iconsmind-Three-FingersDrag2\" => \"iconsmind-Three-FingersDrag2\"), \n\t\tarray(\"iconsmind-Three-FingersTouch\" => \"iconsmind-Three-FingersTouch\"), \n\t\tarray(\"iconsmind-Thumb\" => \"iconsmind-Thumb\"), \n\t\tarray(\"iconsmind-Two-Fingers\" => \"iconsmind-Two-Fingers\"), \n\t\tarray(\"iconsmind-Two-FingersDrag\" => \"iconsmind-Two-FingersDrag\"), \n\t\tarray(\"iconsmind-Two-FingersDrag2\" => \"iconsmind-Two-FingersDrag2\"), \n\t\tarray(\"iconsmind-Two-FingersScroll\" => \"iconsmind-Two-FingersScroll\"), \n\t\tarray(\"iconsmind-Two-FingersTouch\" => \"iconsmind-Two-FingersTouch\"), \n\t\tarray(\"iconsmind-Zoom-Gesture\" => \"iconsmind-Zoom-Gesture\"), \n\t\tarray(\"iconsmind-Alarm-Clock\" => \"iconsmind-Alarm-Clock\"), \n\t\tarray(\"iconsmind-Alarm-Clock2\" => \"iconsmind-Alarm-Clock2\"), \n\t\tarray(\"iconsmind-Calendar-Clock\" => \"iconsmind-Calendar-Clock\"), \n\t\tarray(\"iconsmind-Clock\" => \"iconsmind-Clock\"), \n\t\tarray(\"iconsmind-Clock-2\" => \"iconsmind-Clock-2\"), \n\t\tarray(\"iconsmind-Clock-3\" => \"iconsmind-Clock-3\"), \n\t\tarray(\"iconsmind-Clock-4\" => \"iconsmind-Clock-4\"), \n\t\tarray(\"iconsmind-Clock-Back\" => \"iconsmind-Clock-Back\"), \n\t\tarray(\"iconsmind-Clock-Forward\" => \"iconsmind-Clock-Forward\"), \n\t\tarray(\"iconsmind-Hour\" => \"iconsmind-Hour\"), \n\t\tarray(\"iconsmind-Old-Clock\" => \"iconsmind-Old-Clock\"), \n\t\tarray(\"iconsmind-Over-Time\" => \"iconsmind-Over-Time\"), \n\t\tarray(\"iconsmind-Over-Time2\" => \"iconsmind-Over-Time2\"), \n\t\tarray(\"iconsmind-Sand-watch\" => \"iconsmind-Sand-watch\"), \n\t\tarray(\"iconsmind-Sand-watch2\" => \"iconsmind-Sand-watch2\"), \n\t\tarray(\"iconsmind-Stopwatch\" => \"iconsmind-Stopwatch\"), \n\t\tarray(\"iconsmind-Stopwatch-2\" => \"iconsmind-Stopwatch-2\"), \n\t\tarray(\"iconsmind-Time-Backup\" => \"iconsmind-Time-Backup\"), \n\t\tarray(\"iconsmind-Time-Fire\" => \"iconsmind-Time-Fire\"), \n\t\tarray(\"iconsmind-Time-Machine\" => \"iconsmind-Time-Machine\"), \n\t\tarray(\"iconsmind-Timer\" => \"iconsmind-Timer\"), \n\t\tarray(\"iconsmind-Watch\" => \"iconsmind-Watch\"), \n\t\tarray(\"iconsmind-Watch-2\" => \"iconsmind-Watch-2\"), \n\t\tarray(\"iconsmind-Watch-3\" => \"iconsmind-Watch-3\"), \n\t\tarray(\"iconsmind-A-Z\" => \"iconsmind-A-Z\"), \n\t\tarray(\"iconsmind-Bold-Text\" => \"iconsmind-Bold-Text\"), \n\t\tarray(\"iconsmind-Bulleted-List\" => \"iconsmind-Bulleted-List\"), \n\t\tarray(\"iconsmind-Font-Color\" => \"iconsmind-Font-Color\"), \n\t\tarray(\"iconsmind-Font-Name\" => \"iconsmind-Font-Name\"), \n\t\tarray(\"iconsmind-Font-Size\" => \"iconsmind-Font-Size\"), \n\t\tarray(\"iconsmind-Font-Style\" => \"iconsmind-Font-Style\"), \n\t\tarray(\"iconsmind-Font-StyleSubscript\" => \"iconsmind-Font-StyleSubscript\"), \n\t\tarray(\"iconsmind-Font-StyleSuperscript\" => \"iconsmind-Font-StyleSuperscript\"), \n\t\tarray(\"iconsmind-Function\" => \"iconsmind-Function\"), \n\t\tarray(\"iconsmind-Italic-Text\" => \"iconsmind-Italic-Text\"), \n\t\tarray(\"iconsmind-Line-SpacingText\" => \"iconsmind-Line-SpacingText\"), \n\t\tarray(\"iconsmind-Lowercase-Text\" => \"iconsmind-Lowercase-Text\"), \n\t\tarray(\"iconsmind-Normal-Text\" => \"iconsmind-Normal-Text\"), \n\t\tarray(\"iconsmind-Numbering-List\" => \"iconsmind-Numbering-List\"), \n\t\tarray(\"iconsmind-Strikethrough-Text\" => \"iconsmind-Strikethrough-Text\"), \n\t\tarray(\"iconsmind-Sum\" => \"iconsmind-Sum\"), \n\t\tarray(\"iconsmind-Text-Box\" => \"iconsmind-Text-Box\"), \n\t\tarray(\"iconsmind-Text-Effect\" => \"iconsmind-Text-Effect\"), \n\t\tarray(\"iconsmind-Text-HighlightColor\" => \"iconsmind-Text-HighlightColor\"), \n\t\tarray(\"iconsmind-Text-Paragraph\" => \"iconsmind-Text-Paragraph\"), \n\t\tarray(\"iconsmind-Under-LineText\" => \"iconsmind-Under-LineText\"), \n\t\tarray(\"iconsmind-Uppercase-Text\" => \"iconsmind-Uppercase-Text\"), \n\t\tarray(\"iconsmind-Wrap-Text\" => \"iconsmind-Wrap-Text\"), \n\t\tarray(\"iconsmind-Z-A\" => \"iconsmind-Z-A\"), \n\t\tarray(\"iconsmind-Aerobics\" => \"iconsmind-Aerobics\"), \n\t\tarray(\"iconsmind-Aerobics-2\" => \"iconsmind-Aerobics-2\"), \n\t\tarray(\"iconsmind-Aerobics-3\" => \"iconsmind-Aerobics-3\"), \n\t\tarray(\"iconsmind-Archery\" => \"iconsmind-Archery\"), \n\t\tarray(\"iconsmind-Archery-2\" => \"iconsmind-Archery-2\"), \n\t\tarray(\"iconsmind-Ballet-Shoes\" => \"iconsmind-Ballet-Shoes\"), \n\t\tarray(\"iconsmind-Baseball\" => \"iconsmind-Baseball\"), \n\t\tarray(\"iconsmind-Basket-Ball\" => \"iconsmind-Basket-Ball\"), \n\t\tarray(\"iconsmind-Bodybuilding\" => \"iconsmind-Bodybuilding\"), \n\t\tarray(\"iconsmind-Bowling\" => \"iconsmind-Bowling\"), \n\t\tarray(\"iconsmind-Bowling-2\" => \"iconsmind-Bowling-2\"), \n\t\tarray(\"iconsmind-Box\" => \"iconsmind-Box\"), \n\t\tarray(\"iconsmind-Chess\" => \"iconsmind-Chess\"), \n\t\tarray(\"iconsmind-Cricket\" => \"iconsmind-Cricket\"), \n\t\tarray(\"iconsmind-Dumbbell\" => \"iconsmind-Dumbbell\"), \n\t\tarray(\"iconsmind-Football\" => \"iconsmind-Football\"), \n\t\tarray(\"iconsmind-Football-2\" => \"iconsmind-Football-2\"), \n\t\tarray(\"iconsmind-Footprint\" => \"iconsmind-Footprint\"), \n\t\tarray(\"iconsmind-Footprint-2\" => \"iconsmind-Footprint-2\"), \n\t\tarray(\"iconsmind-Goggles\" => \"iconsmind-Goggles\"), \n\t\tarray(\"iconsmind-Golf\" => \"iconsmind-Golf\"), \n\t\tarray(\"iconsmind-Golf-2\" => \"iconsmind-Golf-2\"), \n\t\tarray(\"iconsmind-Gymnastics\" => \"iconsmind-Gymnastics\"), \n\t\tarray(\"iconsmind-Hokey\" => \"iconsmind-Hokey\"), \n\t\tarray(\"iconsmind-Jump-Rope\" => \"iconsmind-Jump-Rope\"), \n\t\tarray(\"iconsmind-Life-Jacket\" => \"iconsmind-Life-Jacket\"), \n\t\tarray(\"iconsmind-Medal\" => \"iconsmind-Medal\"), \n\t\tarray(\"iconsmind-Medal-2\" => \"iconsmind-Medal-2\"), \n\t\tarray(\"iconsmind-Medal-3\" => \"iconsmind-Medal-3\"), \n\t\tarray(\"iconsmind-Parasailing\" => \"iconsmind-Parasailing\"), \n\t\tarray(\"iconsmind-Pilates\" => \"iconsmind-Pilates\"), \n\t\tarray(\"iconsmind-Pilates-2\" => \"iconsmind-Pilates-2\"), \n\t\tarray(\"iconsmind-Pilates-3\" => \"iconsmind-Pilates-3\"), \n\t\tarray(\"iconsmind-Ping-Pong\" => \"iconsmind-Ping-Pong\"), \n\t\tarray(\"iconsmind-Rafting\" => \"iconsmind-Rafting\"), \n\t\tarray(\"iconsmind-Running\" => \"iconsmind-Running\"), \n\t\tarray(\"iconsmind-Running-Shoes\" => \"iconsmind-Running-Shoes\"), \n\t\tarray(\"iconsmind-Skate-Shoes\" => \"iconsmind-Skate-Shoes\"), \n\t\tarray(\"iconsmind-Ski\" => \"iconsmind-Ski\"), \n\t\tarray(\"iconsmind-Skydiving\" => \"iconsmind-Skydiving\"), \n\t\tarray(\"iconsmind-Snorkel\" => \"iconsmind-Snorkel\"), \n\t\tarray(\"iconsmind-Soccer-Ball\" => \"iconsmind-Soccer-Ball\"), \n\t\tarray(\"iconsmind-Soccer-Shoes\" => \"iconsmind-Soccer-Shoes\"), \n\t\tarray(\"iconsmind-Swimming\" => \"iconsmind-Swimming\"), \n\t\tarray(\"iconsmind-Tennis\" => \"iconsmind-Tennis\"), \n\t\tarray(\"iconsmind-Tennis-Ball\" => \"iconsmind-Tennis-Ball\"), \n\t\tarray(\"iconsmind-Trekking\" => \"iconsmind-Trekking\"), \n\t\tarray(\"iconsmind-Trophy\" => \"iconsmind-Trophy\"), \n\t\tarray(\"iconsmind-Trophy-2\" => \"iconsmind-Trophy-2\"), \n\t\tarray(\"iconsmind-Volleyball\" => \"iconsmind-Volleyball\"), \n\t\tarray(\"iconsmind-weight-Lift\" => \"iconsmind-weight-Lift\"), \n\t\tarray(\"iconsmind-Speach-Bubble\" => \"iconsmind-Speach-Bubble\"), \n\t\tarray(\"iconsmind-Speach-Bubble2\" => \"iconsmind-Speach-Bubble2\"), \n\t\tarray(\"iconsmind-Speach-Bubble3\" => \"iconsmind-Speach-Bubble3\"), \n\t\tarray(\"iconsmind-Speach-Bubble4\" => \"iconsmind-Speach-Bubble4\"), \n\t\tarray(\"iconsmind-Speach-Bubble5\" => \"iconsmind-Speach-Bubble5\"), \n\t\tarray(\"iconsmind-Speach-Bubble6\" => \"iconsmind-Speach-Bubble6\"), \n\t\tarray(\"iconsmind-Speach-Bubble7\" => \"iconsmind-Speach-Bubble7\"), \n\t\tarray(\"iconsmind-Speach-Bubble8\" => \"iconsmind-Speach-Bubble8\"), \n\t\tarray(\"iconsmind-Speach-Bubble9\" => \"iconsmind-Speach-Bubble9\"), \n\t\tarray(\"iconsmind-Speach-Bubble10\" => \"iconsmind-Speach-Bubble10\"), \n\t\tarray(\"iconsmind-Speach-Bubble11\" => \"iconsmind-Speach-Bubble11\"), \n\t\tarray(\"iconsmind-Speach-Bubble12\" => \"iconsmind-Speach-Bubble12\"), \n\t\tarray(\"iconsmind-Speach-Bubble13\" => \"iconsmind-Speach-Bubble13\"), \n\t\tarray(\"iconsmind-Speach-BubbleAsking\" => \"iconsmind-Speach-BubbleAsking\"), \n\t\tarray(\"iconsmind-Speach-BubbleComic\" => \"iconsmind-Speach-BubbleComic\"), \n\t\tarray(\"iconsmind-Speach-BubbleComic2\" => \"iconsmind-Speach-BubbleComic2\"), \n\t\tarray(\"iconsmind-Speach-BubbleComic3\" => \"iconsmind-Speach-BubbleComic3\"), \n\t\tarray(\"iconsmind-Speach-BubbleComic4\" => \"iconsmind-Speach-BubbleComic4\"), \n\t\tarray(\"iconsmind-Speach-BubbleDialog\" => \"iconsmind-Speach-BubbleDialog\"), \n\t\tarray(\"iconsmind-Speach-Bubbles\" => \"iconsmind-Speach-Bubbles\"), \n\t\tarray(\"iconsmind-Aim\" => \"iconsmind-Aim\"), \n\t\tarray(\"iconsmind-Ask\" => \"iconsmind-Ask\"), \n\t\tarray(\"iconsmind-Bebo\" => \"iconsmind-Bebo\"), \n\t\tarray(\"iconsmind-Behance\" => \"iconsmind-Behance\"), \n\t\tarray(\"iconsmind-Betvibes\" => \"iconsmind-Betvibes\"), \n\t\tarray(\"iconsmind-Bing\" => \"iconsmind-Bing\"), \n\t\tarray(\"iconsmind-Blinklist\" => \"iconsmind-Blinklist\"), \n\t\tarray(\"iconsmind-Blogger\" => \"iconsmind-Blogger\"), \n\t\tarray(\"iconsmind-Brightkite\" => \"iconsmind-Brightkite\"), \n\t\tarray(\"iconsmind-Delicious\" => \"iconsmind-Delicious\"), \n\t\tarray(\"iconsmind-Deviantart\" => \"iconsmind-Deviantart\"), \n\t\tarray(\"iconsmind-Digg\" => \"iconsmind-Digg\"), \n\t\tarray(\"iconsmind-Diigo\" => \"iconsmind-Diigo\"), \n\t\tarray(\"iconsmind-Doplr\" => \"iconsmind-Doplr\"), \n\t\tarray(\"iconsmind-Dribble\" => \"iconsmind-Dribble\"), \n\t\tarray(\"iconsmind-Email\" => \"iconsmind-Email\"), \n\t\tarray(\"iconsmind-Evernote\" => \"iconsmind-Evernote\"), \n\t\tarray(\"iconsmind-Facebook\" => \"iconsmind-Facebook\"), \n\t\tarray(\"iconsmind-Facebook-2\" => \"iconsmind-Facebook-2\"), \n\t\tarray(\"iconsmind-Feedburner\" => \"iconsmind-Feedburner\"), \n\t\tarray(\"iconsmind-Flickr\" => \"iconsmind-Flickr\"), \n\t\tarray(\"iconsmind-Formspring\" => \"iconsmind-Formspring\"), \n\t\tarray(\"iconsmind-Forsquare\" => \"iconsmind-Forsquare\"), \n\t\tarray(\"iconsmind-Friendfeed\" => \"iconsmind-Friendfeed\"), \n\t\tarray(\"iconsmind-Friendster\" => \"iconsmind-Friendster\"), \n\t\tarray(\"iconsmind-Furl\" => \"iconsmind-Furl\"), \n\t\tarray(\"iconsmind-Google\" => \"iconsmind-Google\"), \n\t\tarray(\"iconsmind-Google-Buzz\" => \"iconsmind-Google-Buzz\"), \n\t\tarray(\"iconsmind-Google-Plus\" => \"iconsmind-Google-Plus\"), \n\t\tarray(\"iconsmind-Gowalla\" => \"iconsmind-Gowalla\"), \n\t\tarray(\"iconsmind-ICQ\" => \"iconsmind-ICQ\"), \n\t\tarray(\"iconsmind-ImDB\" => \"iconsmind-ImDB\"), \n\t\tarray(\"iconsmind-Instagram\" => \"iconsmind-Instagram\"), \n\t\tarray(\"iconsmind-Last-FM\" => \"iconsmind-Last-FM\"), \n\t\tarray(\"iconsmind-Like\" => \"iconsmind-Like\"), \n\t\tarray(\"iconsmind-Like-2\" => \"iconsmind-Like-2\"), \n\t\tarray(\"iconsmind-Linkedin\" => \"iconsmind-Linkedin\"), \n\t\tarray(\"iconsmind-Linkedin-2\" => \"iconsmind-Linkedin-2\"), \n\t\tarray(\"iconsmind-Livejournal\" => \"iconsmind-Livejournal\"), \n\t\tarray(\"iconsmind-Metacafe\" => \"iconsmind-Metacafe\"), \n\t\tarray(\"iconsmind-Mixx\" => \"iconsmind-Mixx\"), \n\t\tarray(\"iconsmind-Myspace\" => \"iconsmind-Myspace\"), \n\t\tarray(\"iconsmind-Newsvine\" => \"iconsmind-Newsvine\"), \n\t\tarray(\"iconsmind-Orkut\" => \"iconsmind-Orkut\"), \n\t\tarray(\"iconsmind-Picasa\" => \"iconsmind-Picasa\"), \n\t\tarray(\"iconsmind-Pinterest\" => \"iconsmind-Pinterest\"), \n\t\tarray(\"iconsmind-Plaxo\" => \"iconsmind-Plaxo\"), \n\t\tarray(\"iconsmind-Plurk\" => \"iconsmind-Plurk\"), \n\t\tarray(\"iconsmind-Posterous\" => \"iconsmind-Posterous\"), \n\t\tarray(\"iconsmind-QIK\" => \"iconsmind-QIK\"), \n\t\tarray(\"iconsmind-Reddit\" => \"iconsmind-Reddit\"), \n\t\tarray(\"iconsmind-Reverbnation\" => \"iconsmind-Reverbnation\"), \n\t\tarray(\"iconsmind-RSS\" => \"iconsmind-RSS\"), \n\t\tarray(\"iconsmind-Sharethis\" => \"iconsmind-Sharethis\"), \n\t\tarray(\"iconsmind-Shoutwire\" => \"iconsmind-Shoutwire\"), \n\t\tarray(\"iconsmind-Skype\" => \"iconsmind-Skype\"), \n\t\tarray(\"iconsmind-Soundcloud\" => \"iconsmind-Soundcloud\"), \n\t\tarray(\"iconsmind-Spurl\" => \"iconsmind-Spurl\"), \n\t\tarray(\"iconsmind-Stumbleupon\" => \"iconsmind-Stumbleupon\"), \n\t\tarray(\"iconsmind-Technorati\" => \"iconsmind-Technorati\"), \n\t\tarray(\"iconsmind-Tumblr\" => \"iconsmind-Tumblr\"), \n\t\tarray(\"iconsmind-Twitter\" => \"iconsmind-Twitter\"), \n\t\tarray(\"iconsmind-Twitter-2\" => \"iconsmind-Twitter-2\"), \n\t\tarray(\"iconsmind-Unlike\" => \"iconsmind-Unlike\"), \n\t\tarray(\"iconsmind-Unlike-2\" => \"iconsmind-Unlike-2\"), \n\t\tarray(\"iconsmind-Ustream\" => \"iconsmind-Ustream\"), \n\t\tarray(\"iconsmind-Viddler\" => \"iconsmind-Viddler\"), \n\t\tarray(\"iconsmind-Vimeo\" => \"iconsmind-Vimeo\"), \n\t\tarray(\"iconsmind-Wordpress\" => \"iconsmind-Wordpress\"), \n\t\tarray(\"iconsmind-Xanga\" => \"iconsmind-Xanga\"), \n\t\tarray(\"iconsmind-Xing\" => \"iconsmind-Xing\"), \n\t\tarray(\"iconsmind-Yahoo\" => \"iconsmind-Yahoo\"), \n\t\tarray(\"iconsmind-Yahoo-Buzz\" => \"iconsmind-Yahoo-Buzz\"), \n\t\tarray(\"iconsmind-Yelp\" => \"iconsmind-Yelp\"), \n\t\tarray(\"iconsmind-Youtube\" => \"iconsmind-Youtube\"), \n\t\tarray(\"iconsmind-Zootool\" => \"iconsmind-Zootool\"), \n\t\tarray(\"iconsmind-Bisexual\" => \"iconsmind-Bisexual\"), \n\t\tarray(\"iconsmind-Cancer2\" => \"iconsmind-Cancer2\"), \n\t\tarray(\"iconsmind-Couple-Sign\" => \"iconsmind-Couple-Sign\"), \n\t\tarray(\"iconsmind-David-Star\" => \"iconsmind-David-Star\"), \n\t\tarray(\"iconsmind-Family-Sign\" => \"iconsmind-Family-Sign\"), \n\t\tarray(\"iconsmind-Female-2\" => \"iconsmind-Female-2\"), \n\t\tarray(\"iconsmind-Gey\" => \"iconsmind-Gey\"), \n\t\tarray(\"iconsmind-Heart\" => \"iconsmind-Heart\"), \n\t\tarray(\"iconsmind-Homosexual\" => \"iconsmind-Homosexual\"), \n\t\tarray(\"iconsmind-Inifity\" => \"iconsmind-Inifity\"), \n\t\tarray(\"iconsmind-Lesbian\" => \"iconsmind-Lesbian\"), \n\t\tarray(\"iconsmind-Lesbians\" => \"iconsmind-Lesbians\"), \n\t\tarray(\"iconsmind-Love\" => \"iconsmind-Love\"), \n\t\tarray(\"iconsmind-Male-2\" => \"iconsmind-Male-2\"), \n\t\tarray(\"iconsmind-Men\" => \"iconsmind-Men\"), \n\t\tarray(\"iconsmind-No-Smoking\" => \"iconsmind-No-Smoking\"), \n\t\tarray(\"iconsmind-Paw\" => \"iconsmind-Paw\"), \n\t\tarray(\"iconsmind-Quotes\" => \"iconsmind-Quotes\"), \n\t\tarray(\"iconsmind-Quotes-2\" => \"iconsmind-Quotes-2\"), \n\t\tarray(\"iconsmind-Redirect\" => \"iconsmind-Redirect\"), \n\t\tarray(\"iconsmind-Retweet\" => \"iconsmind-Retweet\"), \n\t\tarray(\"iconsmind-Ribbon\" => \"iconsmind-Ribbon\"), \n\t\tarray(\"iconsmind-Ribbon-2\" => \"iconsmind-Ribbon-2\"), \n\t\tarray(\"iconsmind-Ribbon-3\" => \"iconsmind-Ribbon-3\"), \n\t\tarray(\"iconsmind-Sexual\" => \"iconsmind-Sexual\"), \n\t\tarray(\"iconsmind-Smoking-Area\" => \"iconsmind-Smoking-Area\"), \n\t\tarray(\"iconsmind-Trace\" => \"iconsmind-Trace\"), \n\t\tarray(\"iconsmind-Venn-Diagram\" => \"iconsmind-Venn-Diagram\"), \n\t\tarray(\"iconsmind-Wheelchair\" => \"iconsmind-Wheelchair\"), \n\t\tarray(\"iconsmind-Women\" => \"iconsmind-Women\"), \n\t\tarray(\"iconsmind-Ying-Yang\" => \"iconsmind-Ying-Yang\"), \n\t\tarray(\"iconsmind-Add-Bag\" => \"iconsmind-Add-Bag\"), \n\t\tarray(\"iconsmind-Add-Basket\" => \"iconsmind-Add-Basket\"), \n\t\tarray(\"iconsmind-Add-Cart\" => \"iconsmind-Add-Cart\"), \n\t\tarray(\"iconsmind-Bag-Coins\" => \"iconsmind-Bag-Coins\"), \n\t\tarray(\"iconsmind-Bag-Items\" => \"iconsmind-Bag-Items\"), \n\t\tarray(\"iconsmind-Bag-Quantity\" => \"iconsmind-Bag-Quantity\"), \n\t\tarray(\"iconsmind-Bar-Code\" => \"iconsmind-Bar-Code\"), \n\t\tarray(\"iconsmind-Basket-Coins\" => \"iconsmind-Basket-Coins\"), \n\t\tarray(\"iconsmind-Basket-Items\" => \"iconsmind-Basket-Items\"), \n\t\tarray(\"iconsmind-Basket-Quantity\" => \"iconsmind-Basket-Quantity\"), \n\t\tarray(\"iconsmind-Bitcoin\" => \"iconsmind-Bitcoin\"), \n\t\tarray(\"iconsmind-Car-Coins\" => \"iconsmind-Car-Coins\"), \n\t\tarray(\"iconsmind-Car-Items\" => \"iconsmind-Car-Items\"), \n\t\tarray(\"iconsmind-CartQuantity\" => \"iconsmind-CartQuantity\"), \n\t\tarray(\"iconsmind-Cash-Register\" => \"iconsmind-Cash-Register\"), \n\t\tarray(\"iconsmind-Cash-register2\" => \"iconsmind-Cash-register2\"), \n\t\tarray(\"iconsmind-Checkout\" => \"iconsmind-Checkout\"), \n\t\tarray(\"iconsmind-Checkout-Bag\" => \"iconsmind-Checkout-Bag\"), \n\t\tarray(\"iconsmind-Checkout-Basket\" => \"iconsmind-Checkout-Basket\"), \n\t\tarray(\"iconsmind-Full-Basket\" => \"iconsmind-Full-Basket\"), \n\t\tarray(\"iconsmind-Full-Cart\" => \"iconsmind-Full-Cart\"), \n\t\tarray(\"iconsmind-Fyll-Bag\" => \"iconsmind-Fyll-Bag\"), \n\t\tarray(\"iconsmind-Home\" => \"iconsmind-Home\"), \n\t\tarray(\"iconsmind-Password-2shopping\" => \"iconsmind-Password-2shopping\"), \n\t\tarray(\"iconsmind-Password-shopping\" => \"iconsmind-Password-shopping\"), \n\t\tarray(\"iconsmind-QR-Code\" => \"iconsmind-QR-Code\"), \n\t\tarray(\"iconsmind-Receipt\" => \"iconsmind-Receipt\"), \n\t\tarray(\"iconsmind-Receipt-2\" => \"iconsmind-Receipt-2\"), \n\t\tarray(\"iconsmind-Receipt-3\" => \"iconsmind-Receipt-3\"), \n\t\tarray(\"iconsmind-Receipt-4\" => \"iconsmind-Receipt-4\"), \n\t\tarray(\"iconsmind-Remove-Bag\" => \"iconsmind-Remove-Bag\"), \n\t\tarray(\"iconsmind-Remove-Basket\" => \"iconsmind-Remove-Basket\"), \n\t\tarray(\"iconsmind-Remove-Cart\" => \"iconsmind-Remove-Cart\"), \n\t\tarray(\"iconsmind-Shop\" => \"iconsmind-Shop\"), \n\t\tarray(\"iconsmind-Shop-2\" => \"iconsmind-Shop-2\"), \n\t\tarray(\"iconsmind-Shop-3\" => \"iconsmind-Shop-3\"), \n\t\tarray(\"iconsmind-Shop-4\" => \"iconsmind-Shop-4\"), \n\t\tarray(\"iconsmind-Shopping-Bag\" => \"iconsmind-Shopping-Bag\"), \n\t\tarray(\"iconsmind-Shopping-Basket\" => \"iconsmind-Shopping-Basket\"), \n\t\tarray(\"iconsmind-Shopping-Cart\" => \"iconsmind-Shopping-Cart\"), \n\t\tarray(\"iconsmind-Tag-2\" => \"iconsmind-Tag-2\"), \n\t\tarray(\"iconsmind-Tag-3\" => \"iconsmind-Tag-3\"), \n\t\tarray(\"iconsmind-Tag-4\" => \"iconsmind-Tag-4\"), \n\t\tarray(\"iconsmind-Tag-5\" => \"iconsmind-Tag-5\"), \n\t\tarray(\"iconsmind-This-SideUp\" => \"iconsmind-This-SideUp\"), \n\t\tarray(\"iconsmind-Broke-Link2\" => \"iconsmind-Broke-Link2\"), \n\t\tarray(\"iconsmind-Coding\" => \"iconsmind-Coding\"), \n\t\tarray(\"iconsmind-Consulting\" => \"iconsmind-Consulting\"), \n\t\tarray(\"iconsmind-Copyright\" => \"iconsmind-Copyright\"), \n\t\tarray(\"iconsmind-Idea-2\" => \"iconsmind-Idea-2\"), \n\t\tarray(\"iconsmind-Idea-3\" => \"iconsmind-Idea-3\"), \n\t\tarray(\"iconsmind-Idea-4\" => \"iconsmind-Idea-4\"), \n\t\tarray(\"iconsmind-Idea-5\" => \"iconsmind-Idea-5\"), \n\t\tarray(\"iconsmind-Internet\" => \"iconsmind-Internet\"), \n\t\tarray(\"iconsmind-Internet-2\" => \"iconsmind-Internet-2\"), \n\t\tarray(\"iconsmind-Link-2\" => \"iconsmind-Link-2\"), \n\t\tarray(\"iconsmind-Management\" => \"iconsmind-Management\"), \n\t\tarray(\"iconsmind-Monitor-Analytics\" => \"iconsmind-Monitor-Analytics\"), \n\t\tarray(\"iconsmind-Monitoring\" => \"iconsmind-Monitoring\"), \n\t\tarray(\"iconsmind-Optimization\" => \"iconsmind-Optimization\"), \n\t\tarray(\"iconsmind-Search-People\" => \"iconsmind-Search-People\"), \n\t\tarray(\"iconsmind-Tag\" => \"iconsmind-Tag\"), \n\t\tarray(\"iconsmind-Target\" => \"iconsmind-Target\"), \n\t\tarray(\"iconsmind-Target-Market\" => \"iconsmind-Target-Market\"), \n\t\tarray(\"iconsmind-Testimonal\" => \"iconsmind-Testimonal\"), \n\t\tarray(\"iconsmind-Computer-Secure\" => \"iconsmind-Computer-Secure\"), \n\t\tarray(\"iconsmind-Eye-Scan\" => \"iconsmind-Eye-Scan\"), \n\t\tarray(\"iconsmind-Finger-Print\" => \"iconsmind-Finger-Print\"), \n\t\tarray(\"iconsmind-Firewall\" => \"iconsmind-Firewall\"), \n\t\tarray(\"iconsmind-Key-Lock\" => \"iconsmind-Key-Lock\"), \n\t\tarray(\"iconsmind-Laptop-Secure\" => \"iconsmind-Laptop-Secure\"), \n\t\tarray(\"iconsmind-Layer-1532\" => \"iconsmind-Layer-1532\"), \n\t\tarray(\"iconsmind-Lock\" => \"iconsmind-Lock\"), \n\t\tarray(\"iconsmind-Lock-2\" => \"iconsmind-Lock-2\"), \n\t\tarray(\"iconsmind-Lock-3\" => \"iconsmind-Lock-3\"), \n\t\tarray(\"iconsmind-Password\" => \"iconsmind-Password\"), \n\t\tarray(\"iconsmind-Password-Field\" => \"iconsmind-Password-Field\"), \n\t\tarray(\"iconsmind-Police\" => \"iconsmind-Police\"), \n\t\tarray(\"iconsmind-Safe-Box\" => \"iconsmind-Safe-Box\"), \n\t\tarray(\"iconsmind-Security-Block\" => \"iconsmind-Security-Block\"), \n\t\tarray(\"iconsmind-Security-Bug\" => \"iconsmind-Security-Bug\"), \n\t\tarray(\"iconsmind-Security-Camera\" => \"iconsmind-Security-Camera\"), \n\t\tarray(\"iconsmind-Security-Check\" => \"iconsmind-Security-Check\"), \n\t\tarray(\"iconsmind-Security-Settings\" => \"iconsmind-Security-Settings\"), \n\t\tarray(\"iconsmind-Securiy-Remove\" => \"iconsmind-Securiy-Remove\"), \n\t\tarray(\"iconsmind-Shield\" => \"iconsmind-Shield\"), \n\t\tarray(\"iconsmind-Smartphone-Secure\" => \"iconsmind-Smartphone-Secure\"), \n\t\tarray(\"iconsmind-SSL\" => \"iconsmind-SSL\"), \n\t\tarray(\"iconsmind-Tablet-Secure\" => \"iconsmind-Tablet-Secure\"), \n\t\tarray(\"iconsmind-Type-Pass\" => \"iconsmind-Type-Pass\"), \n\t\tarray(\"iconsmind-Unlock\" => \"iconsmind-Unlock\"), \n\t\tarray(\"iconsmind-Unlock-2\" => \"iconsmind-Unlock-2\"), \n\t\tarray(\"iconsmind-Unlock-3\" => \"iconsmind-Unlock-3\"), \n\t\tarray(\"iconsmind-Ambulance\" => \"iconsmind-Ambulance\"), \n\t\tarray(\"iconsmind-Astronaut\" => \"iconsmind-Astronaut\"), \n\t\tarray(\"iconsmind-Atom\" => \"iconsmind-Atom\"), \n\t\tarray(\"iconsmind-Bacteria\" => \"iconsmind-Bacteria\"), \n\t\tarray(\"iconsmind-Band-Aid\" => \"iconsmind-Band-Aid\"), \n\t\tarray(\"iconsmind-Bio-Hazard\" => \"iconsmind-Bio-Hazard\"), \n\t\tarray(\"iconsmind-Biotech\" => \"iconsmind-Biotech\"), \n\t\tarray(\"iconsmind-Brain\" => \"iconsmind-Brain\"), \n\t\tarray(\"iconsmind-Chemical\" => \"iconsmind-Chemical\"), \n\t\tarray(\"iconsmind-Chemical-2\" => \"iconsmind-Chemical-2\"), \n\t\tarray(\"iconsmind-Chemical-3\" => \"iconsmind-Chemical-3\"), \n\t\tarray(\"iconsmind-Chemical-4\" => \"iconsmind-Chemical-4\"), \n\t\tarray(\"iconsmind-Chemical-5\" => \"iconsmind-Chemical-5\"), \n\t\tarray(\"iconsmind-Clinic\" => \"iconsmind-Clinic\"), \n\t\tarray(\"iconsmind-Cube-Molecule\" => \"iconsmind-Cube-Molecule\"), \n\t\tarray(\"iconsmind-Cube-Molecule2\" => \"iconsmind-Cube-Molecule2\"), \n\t\tarray(\"iconsmind-Danger\" => \"iconsmind-Danger\"), \n\t\tarray(\"iconsmind-Danger-2\" => \"iconsmind-Danger-2\"), \n\t\tarray(\"iconsmind-DNA\" => \"iconsmind-DNA\"), \n\t\tarray(\"iconsmind-DNA-2\" => \"iconsmind-DNA-2\"), \n\t\tarray(\"iconsmind-DNA-Helix\" => \"iconsmind-DNA-Helix\"), \n\t\tarray(\"iconsmind-First-Aid\" => \"iconsmind-First-Aid\"), \n\t\tarray(\"iconsmind-Flask\" => \"iconsmind-Flask\"), \n\t\tarray(\"iconsmind-Flask-2\" => \"iconsmind-Flask-2\"), \n\t\tarray(\"iconsmind-Helix-2\" => \"iconsmind-Helix-2\"), \n\t\tarray(\"iconsmind-Hospital\" => \"iconsmind-Hospital\"), \n\t\tarray(\"iconsmind-Hurt\" => \"iconsmind-Hurt\"), \n\t\tarray(\"iconsmind-Medical-Sign\" => \"iconsmind-Medical-Sign\"), \n\t\tarray(\"iconsmind-Medicine\" => \"iconsmind-Medicine\"), \n\t\tarray(\"iconsmind-Medicine-2\" => \"iconsmind-Medicine-2\"), \n\t\tarray(\"iconsmind-Medicine-3\" => \"iconsmind-Medicine-3\"), \n\t\tarray(\"iconsmind-Microscope\" => \"iconsmind-Microscope\"), \n\t\tarray(\"iconsmind-Neutron\" => \"iconsmind-Neutron\"), \n\t\tarray(\"iconsmind-Nuclear\" => \"iconsmind-Nuclear\"), \n\t\tarray(\"iconsmind-Physics\" => \"iconsmind-Physics\"), \n\t\tarray(\"iconsmind-Plasmid\" => \"iconsmind-Plasmid\"), \n\t\tarray(\"iconsmind-Plaster\" => \"iconsmind-Plaster\"), \n\t\tarray(\"iconsmind-Pulse\" => \"iconsmind-Pulse\"), \n\t\tarray(\"iconsmind-Radioactive\" => \"iconsmind-Radioactive\"), \n\t\tarray(\"iconsmind-Safety-PinClose\" => \"iconsmind-Safety-PinClose\"), \n\t\tarray(\"iconsmind-Safety-PinOpen\" => \"iconsmind-Safety-PinOpen\"), \n\t\tarray(\"iconsmind-Spermium\" => \"iconsmind-Spermium\"), \n\t\tarray(\"iconsmind-Stethoscope\" => \"iconsmind-Stethoscope\"), \n\t\tarray(\"iconsmind-Temperature2\" => \"iconsmind-Temperature2\"), \n\t\tarray(\"iconsmind-Test-Tube\" => \"iconsmind-Test-Tube\"), \n\t\tarray(\"iconsmind-Test-Tube2\" => \"iconsmind-Test-Tube2\"), \n\t\tarray(\"iconsmind-Virus\" => \"iconsmind-Virus\"), \n\t\tarray(\"iconsmind-Virus-2\" => \"iconsmind-Virus-2\"), \n\t\tarray(\"iconsmind-Virus-3\" => \"iconsmind-Virus-3\"), \n\t\tarray(\"iconsmind-X-ray\" => \"iconsmind-X-ray\"), \n\t\tarray(\"iconsmind-Auto-Flash\" => \"iconsmind-Auto-Flash\"), \n\t\tarray(\"iconsmind-Camera\" => \"iconsmind-Camera\"), \n\t\tarray(\"iconsmind-Camera-2\" => \"iconsmind-Camera-2\"), \n\t\tarray(\"iconsmind-Camera-3\" => \"iconsmind-Camera-3\"), \n\t\tarray(\"iconsmind-Camera-4\" => \"iconsmind-Camera-4\"), \n\t\tarray(\"iconsmind-Camera-5\" => \"iconsmind-Camera-5\"), \n\t\tarray(\"iconsmind-Camera-Back\" => \"iconsmind-Camera-Back\"), \n\t\tarray(\"iconsmind-Crop\" => \"iconsmind-Crop\"), \n\t\tarray(\"iconsmind-Daylight\" => \"iconsmind-Daylight\"), \n\t\tarray(\"iconsmind-Edit\" => \"iconsmind-Edit\"), \n\t\tarray(\"iconsmind-Eye\" => \"iconsmind-Eye\"), \n\t\tarray(\"iconsmind-Film2\" => \"iconsmind-Film2\"), \n\t\tarray(\"iconsmind-Film-Cartridge\" => \"iconsmind-Film-Cartridge\"), \n\t\tarray(\"iconsmind-Filter\" => \"iconsmind-Filter\"), \n\t\tarray(\"iconsmind-Flash\" => \"iconsmind-Flash\"), \n\t\tarray(\"iconsmind-Flash-2\" => \"iconsmind-Flash-2\"), \n\t\tarray(\"iconsmind-Fluorescent\" => \"iconsmind-Fluorescent\"), \n\t\tarray(\"iconsmind-Gopro\" => \"iconsmind-Gopro\"), \n\t\tarray(\"iconsmind-Landscape\" => \"iconsmind-Landscape\"), \n\t\tarray(\"iconsmind-Len\" => \"iconsmind-Len\"), \n\t\tarray(\"iconsmind-Len-2\" => \"iconsmind-Len-2\"), \n\t\tarray(\"iconsmind-Len-3\" => \"iconsmind-Len-3\"), \n\t\tarray(\"iconsmind-Macro\" => \"iconsmind-Macro\"), \n\t\tarray(\"iconsmind-Memory-Card\" => \"iconsmind-Memory-Card\"), \n\t\tarray(\"iconsmind-Memory-Card2\" => \"iconsmind-Memory-Card2\"), \n\t\tarray(\"iconsmind-Memory-Card3\" => \"iconsmind-Memory-Card3\"), \n\t\tarray(\"iconsmind-No-Flash\" => \"iconsmind-No-Flash\"), \n\t\tarray(\"iconsmind-Panorama\" => \"iconsmind-Panorama\"), \n\t\tarray(\"iconsmind-Photo\" => \"iconsmind-Photo\"), \n\t\tarray(\"iconsmind-Photo-2\" => \"iconsmind-Photo-2\"), \n\t\tarray(\"iconsmind-Photo-3\" => \"iconsmind-Photo-3\"), \n\t\tarray(\"iconsmind-Photo-Album\" => \"iconsmind-Photo-Album\"), \n\t\tarray(\"iconsmind-Photo-Album2\" => \"iconsmind-Photo-Album2\"), \n\t\tarray(\"iconsmind-Photo-Album3\" => \"iconsmind-Photo-Album3\"), \n\t\tarray(\"iconsmind-Photos\" => \"iconsmind-Photos\"), \n\t\tarray(\"iconsmind-Portrait\" => \"iconsmind-Portrait\"), \n\t\tarray(\"iconsmind-Retouching\" => \"iconsmind-Retouching\"), \n\t\tarray(\"iconsmind-Retro-Camera\" => \"iconsmind-Retro-Camera\"), \n\t\tarray(\"iconsmind-secound\" => \"iconsmind-secound\"), \n\t\tarray(\"iconsmind-secound2\" => \"iconsmind-secound2\"), \n\t\tarray(\"iconsmind-Selfie\" => \"iconsmind-Selfie\"), \n\t\tarray(\"iconsmind-Shutter\" => \"iconsmind-Shutter\"), \n\t\tarray(\"iconsmind-Signal\" => \"iconsmind-Signal\"), \n\t\tarray(\"iconsmind-Snow2\" => \"iconsmind-Snow2\"), \n\t\tarray(\"iconsmind-Sport-Mode\" => \"iconsmind-Sport-Mode\"), \n\t\tarray(\"iconsmind-Studio-Flash\" => \"iconsmind-Studio-Flash\"), \n\t\tarray(\"iconsmind-Studio-Lightbox\" => \"iconsmind-Studio-Lightbox\"), \n\t\tarray(\"iconsmind-Timer2\" => \"iconsmind-Timer2\"), \n\t\tarray(\"iconsmind-Tripod-2\" => \"iconsmind-Tripod-2\"), \n\t\tarray(\"iconsmind-Tripod-withCamera\" => \"iconsmind-Tripod-withCamera\"), \n\t\tarray(\"iconsmind-Tripod-withGopro\" => \"iconsmind-Tripod-withGopro\"), \n\t\tarray(\"iconsmind-Add-User\" => \"iconsmind-Add-User\"), \n\t\tarray(\"iconsmind-Add-UserStar\" => \"iconsmind-Add-UserStar\"), \n\t\tarray(\"iconsmind-Administrator\" => \"iconsmind-Administrator\"), \n\t\tarray(\"iconsmind-Alien\" => \"iconsmind-Alien\"), \n\t\tarray(\"iconsmind-Alien-2\" => \"iconsmind-Alien-2\"), \n\t\tarray(\"iconsmind-Assistant\" => \"iconsmind-Assistant\"), \n\t\tarray(\"iconsmind-Baby\" => \"iconsmind-Baby\"), \n\t\tarray(\"iconsmind-Baby-Cry\" => \"iconsmind-Baby-Cry\"), \n\t\tarray(\"iconsmind-Boy\" => \"iconsmind-Boy\"), \n\t\tarray(\"iconsmind-Business-Man\" => \"iconsmind-Business-Man\"), \n\t\tarray(\"iconsmind-Business-ManWoman\" => \"iconsmind-Business-ManWoman\"), \n\t\tarray(\"iconsmind-Business-Mens\" => \"iconsmind-Business-Mens\"), \n\t\tarray(\"iconsmind-Business-Woman\" => \"iconsmind-Business-Woman\"), \n\t\tarray(\"iconsmind-Checked-User\" => \"iconsmind-Checked-User\"), \n\t\tarray(\"iconsmind-Chef\" => \"iconsmind-Chef\"), \n\t\tarray(\"iconsmind-Conference\" => \"iconsmind-Conference\"), \n\t\tarray(\"iconsmind-Cool-Guy\" => \"iconsmind-Cool-Guy\"), \n\t\tarray(\"iconsmind-Criminal\" => \"iconsmind-Criminal\"), \n\t\tarray(\"iconsmind-Dj\" => \"iconsmind-Dj\"), \n\t\tarray(\"iconsmind-Doctor\" => \"iconsmind-Doctor\"), \n\t\tarray(\"iconsmind-Engineering\" => \"iconsmind-Engineering\"), \n\t\tarray(\"iconsmind-Farmer\" => \"iconsmind-Farmer\"), \n\t\tarray(\"iconsmind-Female\" => \"iconsmind-Female\"), \n\t\tarray(\"iconsmind-Female-22\" => \"iconsmind-Female-22\"), \n\t\tarray(\"iconsmind-Find-User\" => \"iconsmind-Find-User\"), \n\t\tarray(\"iconsmind-Geek\" => \"iconsmind-Geek\"), \n\t\tarray(\"iconsmind-Genius\" => \"iconsmind-Genius\"), \n\t\tarray(\"iconsmind-Girl\" => \"iconsmind-Girl\"), \n\t\tarray(\"iconsmind-Headphone\" => \"iconsmind-Headphone\"), \n\t\tarray(\"iconsmind-Headset\" => \"iconsmind-Headset\"), \n\t\tarray(\"iconsmind-ID-2\" => \"iconsmind-ID-2\"), \n\t\tarray(\"iconsmind-ID-3\" => \"iconsmind-ID-3\"), \n\t\tarray(\"iconsmind-ID-Card\" => \"iconsmind-ID-Card\"), \n\t\tarray(\"iconsmind-King-2\" => \"iconsmind-King-2\"), \n\t\tarray(\"iconsmind-Lock-User\" => \"iconsmind-Lock-User\"), \n\t\tarray(\"iconsmind-Love-User\" => \"iconsmind-Love-User\"), \n\t\tarray(\"iconsmind-Male\" => \"iconsmind-Male\"), \n\t\tarray(\"iconsmind-Male-22\" => \"iconsmind-Male-22\"), \n\t\tarray(\"iconsmind-MaleFemale\" => \"iconsmind-MaleFemale\"), \n\t\tarray(\"iconsmind-Man-Sign\" => \"iconsmind-Man-Sign\"), \n\t\tarray(\"iconsmind-Mens\" => \"iconsmind-Mens\"), \n\t\tarray(\"iconsmind-Network\" => \"iconsmind-Network\"), \n\t\tarray(\"iconsmind-Nurse\" => \"iconsmind-Nurse\"), \n\t\tarray(\"iconsmind-Pac-Man\" => \"iconsmind-Pac-Man\"), \n\t\tarray(\"iconsmind-Pilot\" => \"iconsmind-Pilot\"), \n\t\tarray(\"iconsmind-Police-Man\" => \"iconsmind-Police-Man\"), \n\t\tarray(\"iconsmind-Police-Woman\" => \"iconsmind-Police-Woman\"), \n\t\tarray(\"iconsmind-Professor\" => \"iconsmind-Professor\"), \n\t\tarray(\"iconsmind-Punker\" => \"iconsmind-Punker\"), \n\t\tarray(\"iconsmind-Queen-2\" => \"iconsmind-Queen-2\"), \n\t\tarray(\"iconsmind-Remove-User\" => \"iconsmind-Remove-User\"), \n\t\tarray(\"iconsmind-Robot\" => \"iconsmind-Robot\"), \n\t\tarray(\"iconsmind-Speak\" => \"iconsmind-Speak\"), \n\t\tarray(\"iconsmind-Speak-2\" => \"iconsmind-Speak-2\"), \n\t\tarray(\"iconsmind-Spy\" => \"iconsmind-Spy\"), \n\t\tarray(\"iconsmind-Student-Female\" => \"iconsmind-Student-Female\"), \n\t\tarray(\"iconsmind-Student-Male\" => \"iconsmind-Student-Male\"), \n\t\tarray(\"iconsmind-Student-MaleFemale\" => \"iconsmind-Student-MaleFemale\"), \n\t\tarray(\"iconsmind-Students\" => \"iconsmind-Students\"), \n\t\tarray(\"iconsmind-Superman\" => \"iconsmind-Superman\"), \n\t\tarray(\"iconsmind-Talk-Man\" => \"iconsmind-Talk-Man\"), \n\t\tarray(\"iconsmind-Teacher\" => \"iconsmind-Teacher\"), \n\t\tarray(\"iconsmind-Waiter\" => \"iconsmind-Waiter\"), \n\t\tarray(\"iconsmind-WomanMan\" => \"iconsmind-WomanMan\"), \n\t\tarray(\"iconsmind-Woman-Sign\" => \"iconsmind-Woman-Sign\"), \n\t\tarray(\"iconsmind-Wonder-Woman\" => \"iconsmind-Wonder-Woman\"), \n\t\tarray(\"iconsmind-Worker\" => \"iconsmind-Worker\"), \n\t\tarray(\"iconsmind-Anchor\" => \"iconsmind-Anchor\"), \n\t\tarray(\"iconsmind-Army-Key\" => \"iconsmind-Army-Key\"), \n\t\tarray(\"iconsmind-Balloon\" => \"iconsmind-Balloon\"), \n\t\tarray(\"iconsmind-Barricade\" => \"iconsmind-Barricade\"), \n\t\tarray(\"iconsmind-Batman-Mask\" => \"iconsmind-Batman-Mask\"), \n\t\tarray(\"iconsmind-Binocular\" => \"iconsmind-Binocular\"), \n\t\tarray(\"iconsmind-Boom\" => \"iconsmind-Boom\"), \n\t\tarray(\"iconsmind-Bucket\" => \"iconsmind-Bucket\"), \n\t\tarray(\"iconsmind-Button\" => \"iconsmind-Button\"), \n\t\tarray(\"iconsmind-Cannon\" => \"iconsmind-Cannon\"), \n\t\tarray(\"iconsmind-Chacked-Flag\" => \"iconsmind-Chacked-Flag\"), \n\t\tarray(\"iconsmind-Chair\" => \"iconsmind-Chair\"), \n\t\tarray(\"iconsmind-Coffee-Machine\" => \"iconsmind-Coffee-Machine\"), \n\t\tarray(\"iconsmind-Crown\" => \"iconsmind-Crown\"), \n\t\tarray(\"iconsmind-Crown-2\" => \"iconsmind-Crown-2\"), \n\t\tarray(\"iconsmind-Dice\" => \"iconsmind-Dice\"), \n\t\tarray(\"iconsmind-Dice-2\" => \"iconsmind-Dice-2\"), \n\t\tarray(\"iconsmind-Domino\" => \"iconsmind-Domino\"), \n\t\tarray(\"iconsmind-Door-Hanger\" => \"iconsmind-Door-Hanger\"), \n\t\tarray(\"iconsmind-Drill\" => \"iconsmind-Drill\"), \n\t\tarray(\"iconsmind-Feather\" => \"iconsmind-Feather\"), \n\t\tarray(\"iconsmind-Fire-Hydrant\" => \"iconsmind-Fire-Hydrant\"), \n\t\tarray(\"iconsmind-Flag\" => \"iconsmind-Flag\"), \n\t\tarray(\"iconsmind-Flag-2\" => \"iconsmind-Flag-2\"), \n\t\tarray(\"iconsmind-Flashlight\" => \"iconsmind-Flashlight\"), \n\t\tarray(\"iconsmind-Footprint2\" => \"iconsmind-Footprint2\"), \n\t\tarray(\"iconsmind-Gas-Pump\" => \"iconsmind-Gas-Pump\"), \n\t\tarray(\"iconsmind-Gift-Box\" => \"iconsmind-Gift-Box\"), \n\t\tarray(\"iconsmind-Gun\" => \"iconsmind-Gun\"), \n\t\tarray(\"iconsmind-Gun-2\" => \"iconsmind-Gun-2\"), \n\t\tarray(\"iconsmind-Gun-3\" => \"iconsmind-Gun-3\"), \n\t\tarray(\"iconsmind-Hammer\" => \"iconsmind-Hammer\"), \n\t\tarray(\"iconsmind-Identification-Badge\" => \"iconsmind-Identification-Badge\"), \n\t\tarray(\"iconsmind-Key\" => \"iconsmind-Key\"), \n\t\tarray(\"iconsmind-Key-2\" => \"iconsmind-Key-2\"), \n\t\tarray(\"iconsmind-Key-3\" => \"iconsmind-Key-3\"), \n\t\tarray(\"iconsmind-Lamp\" => \"iconsmind-Lamp\"), \n\t\tarray(\"iconsmind-Lego\" => \"iconsmind-Lego\"), \n\t\tarray(\"iconsmind-Life-Safer\" => \"iconsmind-Life-Safer\"), \n\t\tarray(\"iconsmind-Light-Bulb\" => \"iconsmind-Light-Bulb\"), \n\t\tarray(\"iconsmind-Light-Bulb2\" => \"iconsmind-Light-Bulb2\"), \n\t\tarray(\"iconsmind-Luggafe-Front\" => \"iconsmind-Luggafe-Front\"), \n\t\tarray(\"iconsmind-Luggage-2\" => \"iconsmind-Luggage-2\"), \n\t\tarray(\"iconsmind-Magic-Wand\" => \"iconsmind-Magic-Wand\"), \n\t\tarray(\"iconsmind-Magnet\" => \"iconsmind-Magnet\"), \n\t\tarray(\"iconsmind-Mask\" => \"iconsmind-Mask\"), \n\t\tarray(\"iconsmind-Menorah\" => \"iconsmind-Menorah\"), \n\t\tarray(\"iconsmind-Mirror\" => \"iconsmind-Mirror\"), \n\t\tarray(\"iconsmind-Movie-Ticket\" => \"iconsmind-Movie-Ticket\"), \n\t\tarray(\"iconsmind-Office-Lamp\" => \"iconsmind-Office-Lamp\"), \n\t\tarray(\"iconsmind-Paint-Brush\" => \"iconsmind-Paint-Brush\"), \n\t\tarray(\"iconsmind-Paint-Bucket\" => \"iconsmind-Paint-Bucket\"), \n\t\tarray(\"iconsmind-Paper-Plane\" => \"iconsmind-Paper-Plane\"), \n\t\tarray(\"iconsmind-Post-Sign\" => \"iconsmind-Post-Sign\"), \n\t\tarray(\"iconsmind-Post-Sign2ways\" => \"iconsmind-Post-Sign2ways\"), \n\t\tarray(\"iconsmind-Puzzle\" => \"iconsmind-Puzzle\"), \n\t\tarray(\"iconsmind-Razzor-Blade\" => \"iconsmind-Razzor-Blade\"), \n\t\tarray(\"iconsmind-Scale\" => \"iconsmind-Scale\"), \n\t\tarray(\"iconsmind-Screwdriver\" => \"iconsmind-Screwdriver\"), \n\t\tarray(\"iconsmind-Sewing-Machine\" => \"iconsmind-Sewing-Machine\"), \n\t\tarray(\"iconsmind-Sheriff-Badge\" => \"iconsmind-Sheriff-Badge\"), \n\t\tarray(\"iconsmind-Stroller\" => \"iconsmind-Stroller\"), \n\t\tarray(\"iconsmind-Suitcase\" => \"iconsmind-Suitcase\"), \n\t\tarray(\"iconsmind-Teddy-Bear\" => \"iconsmind-Teddy-Bear\"), \n\t\tarray(\"iconsmind-Telescope\" => \"iconsmind-Telescope\"), \n\t\tarray(\"iconsmind-Tent\" => \"iconsmind-Tent\"), \n\t\tarray(\"iconsmind-Thread\" => \"iconsmind-Thread\"), \n\t\tarray(\"iconsmind-Ticket\" => \"iconsmind-Ticket\"), \n\t\tarray(\"iconsmind-Time-Bomb\" => \"iconsmind-Time-Bomb\"), \n\t\tarray(\"iconsmind-Tourch\" => \"iconsmind-Tourch\"), \n\t\tarray(\"iconsmind-Vase\" => \"iconsmind-Vase\"), \n\t\tarray(\"iconsmind-Video-GameController\" => \"iconsmind-Video-GameController\"), \n\t\tarray(\"iconsmind-Conservation\" => \"iconsmind-Conservation\"), \n\t\tarray(\"iconsmind-Eci-Icon\" => \"iconsmind-Eci-Icon\"), \n\t\tarray(\"iconsmind-Environmental\" => \"iconsmind-Environmental\"), \n\t\tarray(\"iconsmind-Environmental-2\" => \"iconsmind-Environmental-2\"), \n\t\tarray(\"iconsmind-Environmental-3\" => \"iconsmind-Environmental-3\"), \n\t\tarray(\"iconsmind-Fire-Flame\" => \"iconsmind-Fire-Flame\"), \n\t\tarray(\"iconsmind-Fire-Flame2\" => \"iconsmind-Fire-Flame2\"), \n\t\tarray(\"iconsmind-Flowerpot\" => \"iconsmind-Flowerpot\"), \n\t\tarray(\"iconsmind-Forest\" => \"iconsmind-Forest\"), \n\t\tarray(\"iconsmind-Green-Energy\" => \"iconsmind-Green-Energy\"), \n\t\tarray(\"iconsmind-Green-House\" => \"iconsmind-Green-House\"), \n\t\tarray(\"iconsmind-Landscape2\" => \"iconsmind-Landscape2\"), \n\t\tarray(\"iconsmind-Leafs\" => \"iconsmind-Leafs\"), \n\t\tarray(\"iconsmind-Leafs-2\" => \"iconsmind-Leafs-2\"), \n\t\tarray(\"iconsmind-Light-BulbLeaf\" => \"iconsmind-Light-BulbLeaf\"), \n\t\tarray(\"iconsmind-Palm-Tree\" => \"iconsmind-Palm-Tree\"), \n\t\tarray(\"iconsmind-Plant\" => \"iconsmind-Plant\"), \n\t\tarray(\"iconsmind-Recycling\" => \"iconsmind-Recycling\"), \n\t\tarray(\"iconsmind-Recycling-2\" => \"iconsmind-Recycling-2\"), \n\t\tarray(\"iconsmind-Seed\" => \"iconsmind-Seed\"), \n\t\tarray(\"iconsmind-Trash-withMen\" => \"iconsmind-Trash-withMen\"), \n\t\tarray(\"iconsmind-Tree\" => \"iconsmind-Tree\"), \n\t\tarray(\"iconsmind-Tree-2\" => \"iconsmind-Tree-2\"), \n\t\tarray(\"iconsmind-Tree-3\" => \"iconsmind-Tree-3\"), \n\t\tarray(\"iconsmind-Audio\" => \"iconsmind-Audio\"), \n\t\tarray(\"iconsmind-Back-Music\" => \"iconsmind-Back-Music\"), \n\t\tarray(\"iconsmind-Bell\" => \"iconsmind-Bell\"), \n\t\tarray(\"iconsmind-Casette-Tape\" => \"iconsmind-Casette-Tape\"), \n\t\tarray(\"iconsmind-CD-2\" => \"iconsmind-CD-2\"), \n\t\tarray(\"iconsmind-CD-Cover\" => \"iconsmind-CD-Cover\"), \n\t\tarray(\"iconsmind-Cello\" => \"iconsmind-Cello\"), \n\t\tarray(\"iconsmind-Clef\" => \"iconsmind-Clef\"), \n\t\tarray(\"iconsmind-Drum\" => \"iconsmind-Drum\"), \n\t\tarray(\"iconsmind-Earphones\" => \"iconsmind-Earphones\"), \n\t\tarray(\"iconsmind-Earphones-2\" => \"iconsmind-Earphones-2\"), \n\t\tarray(\"iconsmind-Electric-Guitar\" => \"iconsmind-Electric-Guitar\"), \n\t\tarray(\"iconsmind-Equalizer\" => \"iconsmind-Equalizer\"), \n\t\tarray(\"iconsmind-First\" => \"iconsmind-First\"), \n\t\tarray(\"iconsmind-Guitar\" => \"iconsmind-Guitar\"), \n\t\tarray(\"iconsmind-Headphones\" => \"iconsmind-Headphones\"), \n\t\tarray(\"iconsmind-Keyboard3\" => \"iconsmind-Keyboard3\"), \n\t\tarray(\"iconsmind-Last\" => \"iconsmind-Last\"), \n\t\tarray(\"iconsmind-Loud\" => \"iconsmind-Loud\"), \n\t\tarray(\"iconsmind-Loudspeaker\" => \"iconsmind-Loudspeaker\"), \n\t\tarray(\"iconsmind-Mic\" => \"iconsmind-Mic\"), \n\t\tarray(\"iconsmind-Microphone\" => \"iconsmind-Microphone\"), \n\t\tarray(\"iconsmind-Microphone-2\" => \"iconsmind-Microphone-2\"), \n\t\tarray(\"iconsmind-Microphone-3\" => \"iconsmind-Microphone-3\"), \n\t\tarray(\"iconsmind-Microphone-4\" => \"iconsmind-Microphone-4\"), \n\t\tarray(\"iconsmind-Microphone-5\" => \"iconsmind-Microphone-5\"), \n\t\tarray(\"iconsmind-Microphone-6\" => \"iconsmind-Microphone-6\"), \n\t\tarray(\"iconsmind-Microphone-7\" => \"iconsmind-Microphone-7\"), \n\t\tarray(\"iconsmind-Mixer\" => \"iconsmind-Mixer\"), \n\t\tarray(\"iconsmind-Mp3-File\" => \"iconsmind-Mp3-File\"), \n\t\tarray(\"iconsmind-Music-Note\" => \"iconsmind-Music-Note\"), \n\t\tarray(\"iconsmind-Music-Note2\" => \"iconsmind-Music-Note2\"), \n\t\tarray(\"iconsmind-Music-Note3\" => \"iconsmind-Music-Note3\"), \n\t\tarray(\"iconsmind-Music-Note4\" => \"iconsmind-Music-Note4\"), \n\t\tarray(\"iconsmind-Music-Player\" => \"iconsmind-Music-Player\"), \n\t\tarray(\"iconsmind-Mute\" => \"iconsmind-Mute\"), \n\t\tarray(\"iconsmind-Next-Music\" => \"iconsmind-Next-Music\"), \n\t\tarray(\"iconsmind-Old-Radio\" => \"iconsmind-Old-Radio\"), \n\t\tarray(\"iconsmind-On-Air\" => \"iconsmind-On-Air\"), \n\t\tarray(\"iconsmind-Piano\" => \"iconsmind-Piano\"), \n\t\tarray(\"iconsmind-Play-Music\" => \"iconsmind-Play-Music\"), \n\t\tarray(\"iconsmind-Radio\" => \"iconsmind-Radio\"), \n\t\tarray(\"iconsmind-Record\" => \"iconsmind-Record\"), \n\t\tarray(\"iconsmind-Record-Music\" => \"iconsmind-Record-Music\"), \n\t\tarray(\"iconsmind-Rock-andRoll\" => \"iconsmind-Rock-andRoll\"), \n\t\tarray(\"iconsmind-Saxophone\" => \"iconsmind-Saxophone\"), \n\t\tarray(\"iconsmind-Sound\" => \"iconsmind-Sound\"), \n\t\tarray(\"iconsmind-Sound-Wave\" => \"iconsmind-Sound-Wave\"), \n\t\tarray(\"iconsmind-Speaker\" => \"iconsmind-Speaker\"), \n\t\tarray(\"iconsmind-Stop-Music\" => \"iconsmind-Stop-Music\"), \n\t\tarray(\"iconsmind-Trumpet\" => \"iconsmind-Trumpet\"), \n\t\tarray(\"iconsmind-Voice\" => \"iconsmind-Voice\"), \n\t\tarray(\"iconsmind-Volume-Down\" => \"iconsmind-Volume-Down\"), \n\t\tarray(\"iconsmind-Volume-Up\" => \"iconsmind-Volume-Up\"), \n\t\tarray(\"iconsmind-Back\" => \"iconsmind-Back\"), \n\t\tarray(\"iconsmind-Back-2\" => \"iconsmind-Back-2\"), \n\t\tarray(\"iconsmind-Eject\" => \"iconsmind-Eject\"), \n\t\tarray(\"iconsmind-Eject-2\" => \"iconsmind-Eject-2\"), \n\t\tarray(\"iconsmind-End\" => \"iconsmind-End\"), \n\t\tarray(\"iconsmind-End-2\" => \"iconsmind-End-2\"), \n\t\tarray(\"iconsmind-Next\" => \"iconsmind-Next\"), \n\t\tarray(\"iconsmind-Next-2\" => \"iconsmind-Next-2\"), \n\t\tarray(\"iconsmind-Pause\" => \"iconsmind-Pause\"), \n\t\tarray(\"iconsmind-Pause-2\" => \"iconsmind-Pause-2\"), \n\t\tarray(\"iconsmind-Power-2\" => \"iconsmind-Power-2\"), \n\t\tarray(\"iconsmind-Power-3\" => \"iconsmind-Power-3\"), \n\t\tarray(\"iconsmind-Record2\" => \"iconsmind-Record2\"), \n\t\tarray(\"iconsmind-Record-2\" => \"iconsmind-Record-2\"), \n\t\tarray(\"iconsmind-Repeat\" => \"iconsmind-Repeat\"), \n\t\tarray(\"iconsmind-Repeat-2\" => \"iconsmind-Repeat-2\"), \n\t\tarray(\"iconsmind-Shuffle\" => \"iconsmind-Shuffle\"), \n\t\tarray(\"iconsmind-Shuffle-2\" => \"iconsmind-Shuffle-2\"), \n\t\tarray(\"iconsmind-Start\" => \"iconsmind-Start\"), \n\t\tarray(\"iconsmind-Start-2\" => \"iconsmind-Start-2\"), \n\t\tarray(\"iconsmind-Stop\" => \"iconsmind-Stop\"), \n\t\tarray(\"iconsmind-Stop-2\" => \"iconsmind-Stop-2\"), \n\t\tarray(\"iconsmind-Compass\" => \"iconsmind-Compass\"), \n\t\tarray(\"iconsmind-Compass-2\" => \"iconsmind-Compass-2\"), \n\t\tarray(\"iconsmind-Compass-Rose\" => \"iconsmind-Compass-Rose\"), \n\t\tarray(\"iconsmind-Direction-East\" => \"iconsmind-Direction-East\"), \n\t\tarray(\"iconsmind-Direction-North\" => \"iconsmind-Direction-North\"), \n\t\tarray(\"iconsmind-Direction-South\" => \"iconsmind-Direction-South\"), \n\t\tarray(\"iconsmind-Direction-West\" => \"iconsmind-Direction-West\"), \n\t\tarray(\"iconsmind-Edit-Map\" => \"iconsmind-Edit-Map\"), \n\t\tarray(\"iconsmind-Geo\" => \"iconsmind-Geo\"), \n\t\tarray(\"iconsmind-Geo2\" => \"iconsmind-Geo2\"), \n\t\tarray(\"iconsmind-Geo3\" => \"iconsmind-Geo3\"), \n\t\tarray(\"iconsmind-Geo22\" => \"iconsmind-Geo22\"), \n\t\tarray(\"iconsmind-Geo23\" => \"iconsmind-Geo23\"), \n\t\tarray(\"iconsmind-Geo24\" => \"iconsmind-Geo24\"), \n\t\tarray(\"iconsmind-Geo2-Close\" => \"iconsmind-Geo2-Close\"), \n\t\tarray(\"iconsmind-Geo2-Love\" => \"iconsmind-Geo2-Love\"), \n\t\tarray(\"iconsmind-Geo2-Number\" => \"iconsmind-Geo2-Number\"), \n\t\tarray(\"iconsmind-Geo2-Star\" => \"iconsmind-Geo2-Star\"), \n\t\tarray(\"iconsmind-Geo32\" => \"iconsmind-Geo32\"), \n\t\tarray(\"iconsmind-Geo33\" => \"iconsmind-Geo33\"), \n\t\tarray(\"iconsmind-Geo34\" => \"iconsmind-Geo34\"), \n\t\tarray(\"iconsmind-Geo3-Close\" => \"iconsmind-Geo3-Close\"), \n\t\tarray(\"iconsmind-Geo3-Love\" => \"iconsmind-Geo3-Love\"), \n\t\tarray(\"iconsmind-Geo3-Number\" => \"iconsmind-Geo3-Number\"), \n\t\tarray(\"iconsmind-Geo3-Star\" => \"iconsmind-Geo3-Star\"), \n\t\tarray(\"iconsmind-Geo-Close\" => \"iconsmind-Geo-Close\"), \n\t\tarray(\"iconsmind-Geo-Love\" => \"iconsmind-Geo-Love\"), \n\t\tarray(\"iconsmind-Geo-Number\" => \"iconsmind-Geo-Number\"), \n\t\tarray(\"iconsmind-Geo-Star\" => \"iconsmind-Geo-Star\"), \n\t\tarray(\"iconsmind-Global-Position\" => \"iconsmind-Global-Position\"), \n\t\tarray(\"iconsmind-Globe\" => \"iconsmind-Globe\"), \n\t\tarray(\"iconsmind-Globe-2\" => \"iconsmind-Globe-2\"), \n\t\tarray(\"iconsmind-Location\" => \"iconsmind-Location\"), \n\t\tarray(\"iconsmind-Location-2\" => \"iconsmind-Location-2\"), \n\t\tarray(\"iconsmind-Map\" => \"iconsmind-Map\"), \n\t\tarray(\"iconsmind-Map2\" => \"iconsmind-Map2\"), \n\t\tarray(\"iconsmind-Map-Marker\" => \"iconsmind-Map-Marker\"), \n\t\tarray(\"iconsmind-Map-Marker2\" => \"iconsmind-Map-Marker2\"), \n\t\tarray(\"iconsmind-Map-Marker3\" => \"iconsmind-Map-Marker3\"), \n\t\tarray(\"iconsmind-Road2\" => \"iconsmind-Road2\"), \n\t\tarray(\"iconsmind-Satelite\" => \"iconsmind-Satelite\"), \n\t\tarray(\"iconsmind-Satelite-2\" => \"iconsmind-Satelite-2\"), \n\t\tarray(\"iconsmind-Street-View\" => \"iconsmind-Street-View\"), \n\t\tarray(\"iconsmind-Street-View2\" => \"iconsmind-Street-View2\"), \n\t\tarray(\"iconsmind-Android-Store\" => \"iconsmind-Android-Store\"), \n\t\tarray(\"iconsmind-Apple-Store\" => \"iconsmind-Apple-Store\"), \n\t\tarray(\"iconsmind-Box2\" => \"iconsmind-Box2\"), \n\t\tarray(\"iconsmind-Dropbox\" => \"iconsmind-Dropbox\"), \n\t\tarray(\"iconsmind-Google-Drive\" => \"iconsmind-Google-Drive\"), \n\t\tarray(\"iconsmind-Google-Play\" => \"iconsmind-Google-Play\"), \n\t\tarray(\"iconsmind-Paypal\" => \"iconsmind-Paypal\"), \n\t\tarray(\"iconsmind-Skrill\" => \"iconsmind-Skrill\"), \n\t\tarray(\"iconsmind-X-Box\" => \"iconsmind-X-Box\"), \n\t\tarray(\"iconsmind-Add\" => \"iconsmind-Add\"), \n\t\tarray(\"iconsmind-Back2\" => \"iconsmind-Back2\"), \n\t\tarray(\"iconsmind-Broken-Link\" => \"iconsmind-Broken-Link\"), \n\t\tarray(\"iconsmind-Check\" => \"iconsmind-Check\"), \n\t\tarray(\"iconsmind-Check-2\" => \"iconsmind-Check-2\"), \n\t\tarray(\"iconsmind-Circular-Point\" => \"iconsmind-Circular-Point\"), \n\t\tarray(\"iconsmind-Close\" => \"iconsmind-Close\"), \n\t\tarray(\"iconsmind-Cursor\" => \"iconsmind-Cursor\"), \n\t\tarray(\"iconsmind-Cursor-Click\" => \"iconsmind-Cursor-Click\"), \n\t\tarray(\"iconsmind-Cursor-Click2\" => \"iconsmind-Cursor-Click2\"), \n\t\tarray(\"iconsmind-Cursor-Move\" => \"iconsmind-Cursor-Move\"), \n\t\tarray(\"iconsmind-Cursor-Move2\" => \"iconsmind-Cursor-Move2\"), \n\t\tarray(\"iconsmind-Cursor-Select\" => \"iconsmind-Cursor-Select\"), \n\t\tarray(\"iconsmind-Down\" => \"iconsmind-Down\"), \n\t\tarray(\"iconsmind-Download\" => \"iconsmind-Download\"), \n\t\tarray(\"iconsmind-Downward\" => \"iconsmind-Downward\"), \n\t\tarray(\"iconsmind-Endways\" => \"iconsmind-Endways\"), \n\t\tarray(\"iconsmind-Forward\" => \"iconsmind-Forward\"), \n\t\tarray(\"iconsmind-Left\" => \"iconsmind-Left\"), \n\t\tarray(\"iconsmind-Link\" => \"iconsmind-Link\"), \n\t\tarray(\"iconsmind-Next2\" => \"iconsmind-Next2\"), \n\t\tarray(\"iconsmind-Orientation\" => \"iconsmind-Orientation\"), \n\t\tarray(\"iconsmind-Pointer\" => \"iconsmind-Pointer\"), \n\t\tarray(\"iconsmind-Previous\" => \"iconsmind-Previous\"), \n\t\tarray(\"iconsmind-Redo\" => \"iconsmind-Redo\"), \n\t\tarray(\"iconsmind-Refresh\" => \"iconsmind-Refresh\"), \n\t\tarray(\"iconsmind-Reload\" => \"iconsmind-Reload\"), \n\t\tarray(\"iconsmind-Remove\" => \"iconsmind-Remove\"), \n\t\tarray(\"iconsmind-Repeat2\" => \"iconsmind-Repeat2\"), \n\t\tarray(\"iconsmind-Reset\" => \"iconsmind-Reset\"), \n\t\tarray(\"iconsmind-Rewind\" => \"iconsmind-Rewind\"), \n\t\tarray(\"iconsmind-Right\" => \"iconsmind-Right\"), \n\t\tarray(\"iconsmind-Rotation\" => \"iconsmind-Rotation\"), \n\t\tarray(\"iconsmind-Rotation-390\" => \"iconsmind-Rotation-390\"), \n\t\tarray(\"iconsmind-Spot\" => \"iconsmind-Spot\"), \n\t\tarray(\"iconsmind-Start-ways\" => \"iconsmind-Start-ways\"), \n\t\tarray(\"iconsmind-Synchronize\" => \"iconsmind-Synchronize\"), \n\t\tarray(\"iconsmind-Synchronize-2\" => \"iconsmind-Synchronize-2\"), \n\t\tarray(\"iconsmind-Undo\" => \"iconsmind-Undo\"), \n\t\tarray(\"iconsmind-Up\" => \"iconsmind-Up\"), \n\t\tarray(\"iconsmind-Upload\" => \"iconsmind-Upload\"), \n\t\tarray(\"iconsmind-Upward\" => \"iconsmind-Upward\"), \n\t\tarray(\"iconsmind-Yes\" => \"iconsmind-Yes\"), \n\t\tarray(\"iconsmind-Barricade2\" => \"iconsmind-Barricade2\"), \n\t\tarray(\"iconsmind-Crane\" => \"iconsmind-Crane\"), \n\t\tarray(\"iconsmind-Dam\" => \"iconsmind-Dam\"), \n\t\tarray(\"iconsmind-Drill2\" => \"iconsmind-Drill2\"), \n\t\tarray(\"iconsmind-Electricity\" => \"iconsmind-Electricity\"), \n\t\tarray(\"iconsmind-Explode\" => \"iconsmind-Explode\"), \n\t\tarray(\"iconsmind-Factory\" => \"iconsmind-Factory\"), \n\t\tarray(\"iconsmind-Fuel\" => \"iconsmind-Fuel\"), \n\t\tarray(\"iconsmind-Helmet2\" => \"iconsmind-Helmet2\"), \n\t\tarray(\"iconsmind-Helmet-2\" => \"iconsmind-Helmet-2\"), \n\t\tarray(\"iconsmind-Laser\" => \"iconsmind-Laser\"), \n\t\tarray(\"iconsmind-Mine\" => \"iconsmind-Mine\"), \n\t\tarray(\"iconsmind-Oil\" => \"iconsmind-Oil\"), \n\t\tarray(\"iconsmind-Petrol\" => \"iconsmind-Petrol\"), \n\t\tarray(\"iconsmind-Pipe\" => \"iconsmind-Pipe\"), \n\t\tarray(\"iconsmind-Power-Station\" => \"iconsmind-Power-Station\"), \n\t\tarray(\"iconsmind-Refinery\" => \"iconsmind-Refinery\"), \n\t\tarray(\"iconsmind-Saw\" => \"iconsmind-Saw\"), \n\t\tarray(\"iconsmind-Shovel\" => \"iconsmind-Shovel\"), \n\t\tarray(\"iconsmind-Solar\" => \"iconsmind-Solar\"), \n\t\tarray(\"iconsmind-Wheelbarrow\" => \"iconsmind-Wheelbarrow\"), \n\t\tarray(\"iconsmind-Windmill\" => \"iconsmind-Windmill\"), \n\t\tarray(\"iconsmind-Aa\" => \"iconsmind-Aa\"), \n\t\tarray(\"iconsmind-Add-File\" => \"iconsmind-Add-File\"), \n\t\tarray(\"iconsmind-Address-Book\" => \"iconsmind-Address-Book\"), \n\t\tarray(\"iconsmind-Address-Book2\" => \"iconsmind-Address-Book2\"), \n\t\tarray(\"iconsmind-Add-SpaceAfterParagraph\" => \"iconsmind-Add-SpaceAfterParagraph\"), \n\t\tarray(\"iconsmind-Add-SpaceBeforeParagraph\" => \"iconsmind-Add-SpaceBeforeParagraph\"), \n\t\tarray(\"iconsmind-Airbrush\" => \"iconsmind-Airbrush\"), \n\t\tarray(\"iconsmind-Aligator\" => \"iconsmind-Aligator\"), \n\t\tarray(\"iconsmind-Align-Center\" => \"iconsmind-Align-Center\"), \n\t\tarray(\"iconsmind-Align-JustifyAll\" => \"iconsmind-Align-JustifyAll\"), \n\t\tarray(\"iconsmind-Align-JustifyCenter\" => \"iconsmind-Align-JustifyCenter\"), \n\t\tarray(\"iconsmind-Align-JustifyLeft\" => \"iconsmind-Align-JustifyLeft\"), \n\t\tarray(\"iconsmind-Align-JustifyRight\" => \"iconsmind-Align-JustifyRight\"), \n\t\tarray(\"iconsmind-Align-Left\" => \"iconsmind-Align-Left\"), \n\t\tarray(\"iconsmind-Align-Right\" => \"iconsmind-Align-Right\"), \n\t\tarray(\"iconsmind-Alpha\" => \"iconsmind-Alpha\"), \n\t\tarray(\"iconsmind-AMX\" => \"iconsmind-AMX\"), \n\t\tarray(\"iconsmind-Anchor2\" => \"iconsmind-Anchor2\"), \n\t\tarray(\"iconsmind-Android\" => \"iconsmind-Android\"), \n\t\tarray(\"iconsmind-Angel\" => \"iconsmind-Angel\"), \n\t\tarray(\"iconsmind-Angel-Smiley\" => \"iconsmind-Angel-Smiley\"), \n\t\tarray(\"iconsmind-Angry\" => \"iconsmind-Angry\"), \n\t\tarray(\"iconsmind-Apple\" => \"iconsmind-Apple\"), \n\t\tarray(\"iconsmind-Apple-Bite\" => \"iconsmind-Apple-Bite\"), \n\t\tarray(\"iconsmind-Argentina\" => \"iconsmind-Argentina\"), \n\t\tarray(\"iconsmind-Arrow-Around\" => \"iconsmind-Arrow-Around\"), \n\t\tarray(\"iconsmind-Arrow-Back\" => \"iconsmind-Arrow-Back\"), \n\t\tarray(\"iconsmind-Arrow-Back2\" => \"iconsmind-Arrow-Back2\"), \n\t\tarray(\"iconsmind-Arrow-Back3\" => \"iconsmind-Arrow-Back3\"), \n\t\tarray(\"iconsmind-Arrow-Barrier\" => \"iconsmind-Arrow-Barrier\"), \n\t\tarray(\"iconsmind-Arrow-Circle\" => \"iconsmind-Arrow-Circle\"), \n\t\tarray(\"iconsmind-Arrow-Cross\" => \"iconsmind-Arrow-Cross\"), \n\t\tarray(\"iconsmind-Arrow-Down\" => \"iconsmind-Arrow-Down\"), \n\t\tarray(\"iconsmind-Arrow-Down2\" => \"iconsmind-Arrow-Down2\"), \n\t\tarray(\"iconsmind-Arrow-Down3\" => \"iconsmind-Arrow-Down3\"), \n\t\tarray(\"iconsmind-Arrow-DowninCircle\" => \"iconsmind-Arrow-DowninCircle\"), \n\t\tarray(\"iconsmind-Arrow-Fork\" => \"iconsmind-Arrow-Fork\"), \n\t\tarray(\"iconsmind-Arrow-Forward\" => \"iconsmind-Arrow-Forward\"), \n\t\tarray(\"iconsmind-Arrow-Forward2\" => \"iconsmind-Arrow-Forward2\"), \n\t\tarray(\"iconsmind-Arrow-From\" => \"iconsmind-Arrow-From\"), \n\t\tarray(\"iconsmind-Arrow-Inside\" => \"iconsmind-Arrow-Inside\"), \n\t\tarray(\"iconsmind-Arrow-Inside45\" => \"iconsmind-Arrow-Inside45\"), \n\t\tarray(\"iconsmind-Arrow-InsideGap\" => \"iconsmind-Arrow-InsideGap\"), \n\t\tarray(\"iconsmind-Arrow-InsideGap45\" => \"iconsmind-Arrow-InsideGap45\"), \n\t\tarray(\"iconsmind-Arrow-Into\" => \"iconsmind-Arrow-Into\"), \n\t\tarray(\"iconsmind-Arrow-Join\" => \"iconsmind-Arrow-Join\"), \n\t\tarray(\"iconsmind-Arrow-Junction\" => \"iconsmind-Arrow-Junction\"), \n\t\tarray(\"iconsmind-Arrow-Left\" => \"iconsmind-Arrow-Left\"), \n\t\tarray(\"iconsmind-Arrow-Left2\" => \"iconsmind-Arrow-Left2\"), \n\t\tarray(\"iconsmind-Arrow-LeftinCircle\" => \"iconsmind-Arrow-LeftinCircle\"), \n\t\tarray(\"iconsmind-Arrow-Loop\" => \"iconsmind-Arrow-Loop\"), \n\t\tarray(\"iconsmind-Arrow-Merge\" => \"iconsmind-Arrow-Merge\"), \n\t\tarray(\"iconsmind-Arrow-Mix\" => \"iconsmind-Arrow-Mix\"), \n\t\tarray(\"iconsmind-Arrow-Next\" => \"iconsmind-Arrow-Next\"), \n\t\tarray(\"iconsmind-Arrow-OutLeft\" => \"iconsmind-Arrow-OutLeft\"), \n\t\tarray(\"iconsmind-Arrow-OutRight\" => \"iconsmind-Arrow-OutRight\"), \n\t\tarray(\"iconsmind-Arrow-Outside\" => \"iconsmind-Arrow-Outside\"), \n\t\tarray(\"iconsmind-Arrow-Outside45\" => \"iconsmind-Arrow-Outside45\"), \n\t\tarray(\"iconsmind-Arrow-OutsideGap\" => \"iconsmind-Arrow-OutsideGap\"), \n\t\tarray(\"iconsmind-Arrow-OutsideGap45\" => \"iconsmind-Arrow-OutsideGap45\"), \n\t\tarray(\"iconsmind-Arrow-Over\" => \"iconsmind-Arrow-Over\"), \n\t\tarray(\"iconsmind-Arrow-Refresh\" => \"iconsmind-Arrow-Refresh\"), \n\t\tarray(\"iconsmind-Arrow-Refresh2\" => \"iconsmind-Arrow-Refresh2\"), \n\t\tarray(\"iconsmind-Arrow-Right\" => \"iconsmind-Arrow-Right\"), \n\t\tarray(\"iconsmind-Arrow-Right2\" => \"iconsmind-Arrow-Right2\"), \n\t\tarray(\"iconsmind-Arrow-RightinCircle\" => \"iconsmind-Arrow-RightinCircle\"), \n\t\tarray(\"iconsmind-Arrow-Shuffle\" => \"iconsmind-Arrow-Shuffle\"), \n\t\tarray(\"iconsmind-Arrow-Squiggly\" => \"iconsmind-Arrow-Squiggly\"), \n\t\tarray(\"iconsmind-Arrow-Through\" => \"iconsmind-Arrow-Through\"), \n\t\tarray(\"iconsmind-Arrow-To\" => \"iconsmind-Arrow-To\"), \n\t\tarray(\"iconsmind-Arrow-TurnLeft\" => \"iconsmind-Arrow-TurnLeft\"), \n\t\tarray(\"iconsmind-Arrow-TurnRight\" => \"iconsmind-Arrow-TurnRight\"), \n\t\tarray(\"iconsmind-Arrow-Up\" => \"iconsmind-Arrow-Up\"), \n\t\tarray(\"iconsmind-Arrow-Up2\" => \"iconsmind-Arrow-Up2\"), \n\t\tarray(\"iconsmind-Arrow-Up3\" => \"iconsmind-Arrow-Up3\"), \n\t\tarray(\"iconsmind-Arrow-UpinCircle\" => \"iconsmind-Arrow-UpinCircle\"), \n\t\tarray(\"iconsmind-Arrow-XLeft\" => \"iconsmind-Arrow-XLeft\"), \n\t\tarray(\"iconsmind-Arrow-XRight\" => \"iconsmind-Arrow-XRight\"), \n\t\tarray(\"iconsmind-ATM\" => \"iconsmind-ATM\"), \n\t\tarray(\"iconsmind-At-Sign\" => \"iconsmind-At-Sign\"), \n\t\tarray(\"iconsmind-Baby-Clothes\" => \"iconsmind-Baby-Clothes\"), \n\t\tarray(\"iconsmind-Baby-Clothes2\" => \"iconsmind-Baby-Clothes2\"), \n\t\tarray(\"iconsmind-Bag\" => \"iconsmind-Bag\"), \n\t\tarray(\"iconsmind-Bakelite\" => \"iconsmind-Bakelite\"), \n\t\tarray(\"iconsmind-Banana\" => \"iconsmind-Banana\"), \n\t\tarray(\"iconsmind-Bank\" => \"iconsmind-Bank\"), \n\t\tarray(\"iconsmind-Bar-Chart\" => \"iconsmind-Bar-Chart\"), \n\t\tarray(\"iconsmind-Bar-Chart2\" => \"iconsmind-Bar-Chart2\"), \n\t\tarray(\"iconsmind-Bar-Chart3\" => \"iconsmind-Bar-Chart3\"), \n\t\tarray(\"iconsmind-Bar-Chart4\" => \"iconsmind-Bar-Chart4\"), \n\t\tarray(\"iconsmind-Bar-Chart5\" => \"iconsmind-Bar-Chart5\"), \n\t\tarray(\"iconsmind-Bat\" => \"iconsmind-Bat\"), \n\t\tarray(\"iconsmind-Bathrobe\" => \"iconsmind-Bathrobe\"), \n\t\tarray(\"iconsmind-Battery-0\" => \"iconsmind-Battery-0\"), \n\t\tarray(\"iconsmind-Battery-25\" => \"iconsmind-Battery-25\"), \n\t\tarray(\"iconsmind-Battery-50\" => \"iconsmind-Battery-50\"), \n\t\tarray(\"iconsmind-Battery-75\" => \"iconsmind-Battery-75\"), \n\t\tarray(\"iconsmind-Battery-100\" => \"iconsmind-Battery-100\"), \n\t\tarray(\"iconsmind-Battery-Charge\" => \"iconsmind-Battery-Charge\"), \n\t\tarray(\"iconsmind-Bear\" => \"iconsmind-Bear\"), \n\t\tarray(\"iconsmind-Beard\" => \"iconsmind-Beard\"), \n\t\tarray(\"iconsmind-Beard-2\" => \"iconsmind-Beard-2\"), \n\t\tarray(\"iconsmind-Beard-3\" => \"iconsmind-Beard-3\"), \n\t\tarray(\"iconsmind-Bee\" => \"iconsmind-Bee\"), \n\t\tarray(\"iconsmind-Beer\" => \"iconsmind-Beer\"), \n\t\tarray(\"iconsmind-Beer-Glass\" => \"iconsmind-Beer-Glass\"), \n\t\tarray(\"iconsmind-Bell2\" => \"iconsmind-Bell2\"), \n\t\tarray(\"iconsmind-Belt\" => \"iconsmind-Belt\"), \n\t\tarray(\"iconsmind-Belt-2\" => \"iconsmind-Belt-2\"), \n\t\tarray(\"iconsmind-Belt-3\" => \"iconsmind-Belt-3\"), \n\t\tarray(\"iconsmind-Berlin-Tower\" => \"iconsmind-Berlin-Tower\"), \n\t\tarray(\"iconsmind-Beta\" => \"iconsmind-Beta\"), \n\t\tarray(\"iconsmind-Big-Bang\" => \"iconsmind-Big-Bang\"), \n\t\tarray(\"iconsmind-Big-Data\" => \"iconsmind-Big-Data\"), \n\t\tarray(\"iconsmind-Bikini\" => \"iconsmind-Bikini\"), \n\t\tarray(\"iconsmind-Bilk-Bottle2\" => \"iconsmind-Bilk-Bottle2\"), \n\t\tarray(\"iconsmind-Bird\" => \"iconsmind-Bird\"), \n\t\tarray(\"iconsmind-Bird-DeliveringLetter\" => \"iconsmind-Bird-DeliveringLetter\"), \n\t\tarray(\"iconsmind-Birthday-Cake\" => \"iconsmind-Birthday-Cake\"), \n\t\tarray(\"iconsmind-Bishop\" => \"iconsmind-Bishop\"), \n\t\tarray(\"iconsmind-Blackboard\" => \"iconsmind-Blackboard\"), \n\t\tarray(\"iconsmind-Black-Cat\" => \"iconsmind-Black-Cat\"), \n\t\tarray(\"iconsmind-Block-Cloud\" => \"iconsmind-Block-Cloud\"), \n\t\tarray(\"iconsmind-Blood\" => \"iconsmind-Blood\"), \n\t\tarray(\"iconsmind-Blouse\" => \"iconsmind-Blouse\"), \n\t\tarray(\"iconsmind-Blueprint\" => \"iconsmind-Blueprint\"), \n\t\tarray(\"iconsmind-Board\" => \"iconsmind-Board\"), \n\t\tarray(\"iconsmind-Bone\" => \"iconsmind-Bone\"), \n\t\tarray(\"iconsmind-Bones\" => \"iconsmind-Bones\"), \n\t\tarray(\"iconsmind-Book\" => \"iconsmind-Book\"), \n\t\tarray(\"iconsmind-Bookmark\" => \"iconsmind-Bookmark\"), \n\t\tarray(\"iconsmind-Books\" => \"iconsmind-Books\"), \n\t\tarray(\"iconsmind-Books-2\" => \"iconsmind-Books-2\"), \n\t\tarray(\"iconsmind-Boot\" => \"iconsmind-Boot\"), \n\t\tarray(\"iconsmind-Boot-2\" => \"iconsmind-Boot-2\"), \n\t\tarray(\"iconsmind-Bottom-ToTop\" => \"iconsmind-Bottom-ToTop\"), \n\t\tarray(\"iconsmind-Bow\" => \"iconsmind-Bow\"), \n\t\tarray(\"iconsmind-Bow-2\" => \"iconsmind-Bow-2\"), \n\t\tarray(\"iconsmind-Bow-3\" => \"iconsmind-Bow-3\"), \n\t\tarray(\"iconsmind-Box-Close\" => \"iconsmind-Box-Close\"), \n\t\tarray(\"iconsmind-Box-Full\" => \"iconsmind-Box-Full\"), \n\t\tarray(\"iconsmind-Box-Open\" => \"iconsmind-Box-Open\"), \n\t\tarray(\"iconsmind-Box-withFolders\" => \"iconsmind-Box-withFolders\"), \n\t\tarray(\"iconsmind-Bra\" => \"iconsmind-Bra\"), \n\t\tarray(\"iconsmind-Brain2\" => \"iconsmind-Brain2\"), \n\t\tarray(\"iconsmind-Brain-2\" => \"iconsmind-Brain-2\"), \n\t\tarray(\"iconsmind-Brazil\" => \"iconsmind-Brazil\"), \n\t\tarray(\"iconsmind-Bread\" => \"iconsmind-Bread\"), \n\t\tarray(\"iconsmind-Bread-2\" => \"iconsmind-Bread-2\"), \n\t\tarray(\"iconsmind-Bridge\" => \"iconsmind-Bridge\"), \n\t\tarray(\"iconsmind-Broom\" => \"iconsmind-Broom\"), \n\t\tarray(\"iconsmind-Brush\" => \"iconsmind-Brush\"), \n\t\tarray(\"iconsmind-Bug\" => \"iconsmind-Bug\"), \n\t\tarray(\"iconsmind-Building\" => \"iconsmind-Building\"), \n\t\tarray(\"iconsmind-Butterfly\" => \"iconsmind-Butterfly\"), \n\t\tarray(\"iconsmind-Cake\" => \"iconsmind-Cake\"), \n\t\tarray(\"iconsmind-Calculator\" => \"iconsmind-Calculator\"), \n\t\tarray(\"iconsmind-Calculator-2\" => \"iconsmind-Calculator-2\"), \n\t\tarray(\"iconsmind-Calculator-3\" => \"iconsmind-Calculator-3\"), \n\t\tarray(\"iconsmind-Calendar\" => \"iconsmind-Calendar\"), \n\t\tarray(\"iconsmind-Calendar-2\" => \"iconsmind-Calendar-2\"), \n\t\tarray(\"iconsmind-Calendar-3\" => \"iconsmind-Calendar-3\"), \n\t\tarray(\"iconsmind-Calendar-4\" => \"iconsmind-Calendar-4\"), \n\t\tarray(\"iconsmind-Camel\" => \"iconsmind-Camel\"), \n\t\tarray(\"iconsmind-Can\" => \"iconsmind-Can\"), \n\t\tarray(\"iconsmind-Can-2\" => \"iconsmind-Can-2\"), \n\t\tarray(\"iconsmind-Canada\" => \"iconsmind-Canada\"), \n\t\tarray(\"iconsmind-Candle\" => \"iconsmind-Candle\"), \n\t\tarray(\"iconsmind-Candy\" => \"iconsmind-Candy\"), \n\t\tarray(\"iconsmind-Candy-Cane\" => \"iconsmind-Candy-Cane\"), \n\t\tarray(\"iconsmind-Cap\" => \"iconsmind-Cap\"), \n\t\tarray(\"iconsmind-Cap-2\" => \"iconsmind-Cap-2\"), \n\t\tarray(\"iconsmind-Cap-3\" => \"iconsmind-Cap-3\"), \n\t\tarray(\"iconsmind-Cardigan\" => \"iconsmind-Cardigan\"), \n\t\tarray(\"iconsmind-Cardiovascular\" => \"iconsmind-Cardiovascular\"), \n\t\tarray(\"iconsmind-Castle\" => \"iconsmind-Castle\"), \n\t\tarray(\"iconsmind-Cat\" => \"iconsmind-Cat\"), \n\t\tarray(\"iconsmind-Cathedral\" => \"iconsmind-Cathedral\"), \n\t\tarray(\"iconsmind-Cauldron\" => \"iconsmind-Cauldron\"), \n\t\tarray(\"iconsmind-CD\" => \"iconsmind-CD\"), \n\t\tarray(\"iconsmind-Charger\" => \"iconsmind-Charger\"), \n\t\tarray(\"iconsmind-Checkmate\" => \"iconsmind-Checkmate\"), \n\t\tarray(\"iconsmind-Cheese\" => \"iconsmind-Cheese\"), \n\t\tarray(\"iconsmind-Cheetah\" => \"iconsmind-Cheetah\"), \n\t\tarray(\"iconsmind-Chef-Hat\" => \"iconsmind-Chef-Hat\"), \n\t\tarray(\"iconsmind-Chef-Hat2\" => \"iconsmind-Chef-Hat2\"), \n\t\tarray(\"iconsmind-Chess-Board\" => \"iconsmind-Chess-Board\"), \n\t\tarray(\"iconsmind-Chicken\" => \"iconsmind-Chicken\"), \n\t\tarray(\"iconsmind-Chile\" => \"iconsmind-Chile\"), \n\t\tarray(\"iconsmind-Chimney\" => \"iconsmind-Chimney\"), \n\t\tarray(\"iconsmind-China\" => \"iconsmind-China\"), \n\t\tarray(\"iconsmind-Chinese-Temple\" => \"iconsmind-Chinese-Temple\"), \n\t\tarray(\"iconsmind-Chip\" => \"iconsmind-Chip\"), \n\t\tarray(\"iconsmind-Chopsticks\" => \"iconsmind-Chopsticks\"), \n\t\tarray(\"iconsmind-Chopsticks-2\" => \"iconsmind-Chopsticks-2\"), \n\t\tarray(\"iconsmind-Christmas\" => \"iconsmind-Christmas\"), \n\t\tarray(\"iconsmind-Christmas-Ball\" => \"iconsmind-Christmas-Ball\"), \n\t\tarray(\"iconsmind-Christmas-Bell\" => \"iconsmind-Christmas-Bell\"), \n\t\tarray(\"iconsmind-Christmas-Candle\" => \"iconsmind-Christmas-Candle\"), \n\t\tarray(\"iconsmind-Christmas-Hat\" => \"iconsmind-Christmas-Hat\"), \n\t\tarray(\"iconsmind-Christmas-Sleigh\" => \"iconsmind-Christmas-Sleigh\"), \n\t\tarray(\"iconsmind-Christmas-Snowman\" => \"iconsmind-Christmas-Snowman\"), \n\t\tarray(\"iconsmind-Christmas-Sock\" => \"iconsmind-Christmas-Sock\"), \n\t\tarray(\"iconsmind-Christmas-Tree\" => \"iconsmind-Christmas-Tree\"), \n\t\tarray(\"iconsmind-Chrome\" => \"iconsmind-Chrome\"), \n\t\tarray(\"iconsmind-Chrysler-Building\" => \"iconsmind-Chrysler-Building\"), \n\t\tarray(\"iconsmind-City-Hall\" => \"iconsmind-City-Hall\"), \n\t\tarray(\"iconsmind-Clamp\" => \"iconsmind-Clamp\"), \n\t\tarray(\"iconsmind-Claps\" => \"iconsmind-Claps\"), \n\t\tarray(\"iconsmind-Clothing-Store\" => \"iconsmind-Clothing-Store\"), \n\t\tarray(\"iconsmind-Cloud\" => \"iconsmind-Cloud\"), \n\t\tarray(\"iconsmind-Cloud2\" => \"iconsmind-Cloud2\"), \n\t\tarray(\"iconsmind-Cloud3\" => \"iconsmind-Cloud3\"), \n\t\tarray(\"iconsmind-Cloud-Camera\" => \"iconsmind-Cloud-Camera\"), \n\t\tarray(\"iconsmind-Cloud-Computer\" => \"iconsmind-Cloud-Computer\"), \n\t\tarray(\"iconsmind-Cloud-Email\" => \"iconsmind-Cloud-Email\"), \n\t\tarray(\"iconsmind-Cloud-Laptop\" => \"iconsmind-Cloud-Laptop\"), \n\t\tarray(\"iconsmind-Cloud-Lock\" => \"iconsmind-Cloud-Lock\"), \n\t\tarray(\"iconsmind-Cloud-Music\" => \"iconsmind-Cloud-Music\"), \n\t\tarray(\"iconsmind-Cloud-Picture\" => \"iconsmind-Cloud-Picture\"), \n\t\tarray(\"iconsmind-Cloud-Remove\" => \"iconsmind-Cloud-Remove\"), \n\t\tarray(\"iconsmind-Clouds\" => \"iconsmind-Clouds\"), \n\t\tarray(\"iconsmind-Cloud-Secure\" => \"iconsmind-Cloud-Secure\"), \n\t\tarray(\"iconsmind-Cloud-Settings\" => \"iconsmind-Cloud-Settings\"), \n\t\tarray(\"iconsmind-Cloud-Smartphone\" => \"iconsmind-Cloud-Smartphone\"), \n\t\tarray(\"iconsmind-Cloud-Tablet\" => \"iconsmind-Cloud-Tablet\"), \n\t\tarray(\"iconsmind-Cloud-Video\" => \"iconsmind-Cloud-Video\"), \n\t\tarray(\"iconsmind-Clown\" => \"iconsmind-Clown\"), \n\t\tarray(\"iconsmind-CMYK\" => \"iconsmind-CMYK\"), \n\t\tarray(\"iconsmind-Coat\" => \"iconsmind-Coat\"), \n\t\tarray(\"iconsmind-Cocktail\" => \"iconsmind-Cocktail\"), \n\t\tarray(\"iconsmind-Coconut\" => \"iconsmind-Coconut\"), \n\t\tarray(\"iconsmind-Coffee\" => \"iconsmind-Coffee\"), \n\t\tarray(\"iconsmind-Coffee-2\" => \"iconsmind-Coffee-2\"), \n\t\tarray(\"iconsmind-Coffee-Bean\" => \"iconsmind-Coffee-Bean\"), \n\t\tarray(\"iconsmind-Coffee-toGo\" => \"iconsmind-Coffee-toGo\"), \n\t\tarray(\"iconsmind-Coffin\" => \"iconsmind-Coffin\"), \n\t\tarray(\"iconsmind-Coin\" => \"iconsmind-Coin\"), \n\t\tarray(\"iconsmind-Coins\" => \"iconsmind-Coins\"), \n\t\tarray(\"iconsmind-Coins-2\" => \"iconsmind-Coins-2\"), \n\t\tarray(\"iconsmind-Coins-3\" => \"iconsmind-Coins-3\"), \n\t\tarray(\"iconsmind-Colombia\" => \"iconsmind-Colombia\"), \n\t\tarray(\"iconsmind-Colosseum\" => \"iconsmind-Colosseum\"), \n\t\tarray(\"iconsmind-Column\" => \"iconsmind-Column\"), \n\t\tarray(\"iconsmind-Column-2\" => \"iconsmind-Column-2\"), \n\t\tarray(\"iconsmind-Column-3\" => \"iconsmind-Column-3\"), \n\t\tarray(\"iconsmind-Comb\" => \"iconsmind-Comb\"), \n\t\tarray(\"iconsmind-Comb-2\" => \"iconsmind-Comb-2\"), \n\t\tarray(\"iconsmind-Communication-Tower\" => \"iconsmind-Communication-Tower\"), \n\t\tarray(\"iconsmind-Communication-Tower2\" => \"iconsmind-Communication-Tower2\"), \n\t\tarray(\"iconsmind-Compass2\" => \"iconsmind-Compass2\"), \n\t\tarray(\"iconsmind-Compass-22\" => \"iconsmind-Compass-22\"), \n\t\tarray(\"iconsmind-Computer\" => \"iconsmind-Computer\"), \n\t\tarray(\"iconsmind-Computer-2\" => \"iconsmind-Computer-2\"), \n\t\tarray(\"iconsmind-Computer-3\" => \"iconsmind-Computer-3\"), \n\t\tarray(\"iconsmind-Confused\" => \"iconsmind-Confused\"), \n\t\tarray(\"iconsmind-Contrast\" => \"iconsmind-Contrast\"), \n\t\tarray(\"iconsmind-Cookie-Man\" => \"iconsmind-Cookie-Man\"), \n\t\tarray(\"iconsmind-Cookies\" => \"iconsmind-Cookies\"), \n\t\tarray(\"iconsmind-Cool\" => \"iconsmind-Cool\"), \n\t\tarray(\"iconsmind-Costume\" => \"iconsmind-Costume\"), \n\t\tarray(\"iconsmind-Cow\" => \"iconsmind-Cow\"), \n\t\tarray(\"iconsmind-CPU\" => \"iconsmind-CPU\"), \n\t\tarray(\"iconsmind-Cranium\" => \"iconsmind-Cranium\"), \n\t\tarray(\"iconsmind-Credit-Card\" => \"iconsmind-Credit-Card\"), \n\t\tarray(\"iconsmind-Credit-Card2\" => \"iconsmind-Credit-Card2\"), \n\t\tarray(\"iconsmind-Credit-Card3\" => \"iconsmind-Credit-Card3\"), \n\t\tarray(\"iconsmind-Croissant\" => \"iconsmind-Croissant\"), \n\t\tarray(\"iconsmind-Crying\" => \"iconsmind-Crying\"), \n\t\tarray(\"iconsmind-Cupcake\" => \"iconsmind-Cupcake\"), \n\t\tarray(\"iconsmind-Danemark\" => \"iconsmind-Danemark\"), \n\t\tarray(\"iconsmind-Data\" => \"iconsmind-Data\"), \n\t\tarray(\"iconsmind-Data-Backup\" => \"iconsmind-Data-Backup\"), \n\t\tarray(\"iconsmind-Data-Block\" => \"iconsmind-Data-Block\"), \n\t\tarray(\"iconsmind-Data-Center\" => \"iconsmind-Data-Center\"), \n\t\tarray(\"iconsmind-Data-Clock\" => \"iconsmind-Data-Clock\"), \n\t\tarray(\"iconsmind-Data-Cloud\" => \"iconsmind-Data-Cloud\"), \n\t\tarray(\"iconsmind-Data-Compress\" => \"iconsmind-Data-Compress\"), \n\t\tarray(\"iconsmind-Data-Copy\" => \"iconsmind-Data-Copy\"), \n\t\tarray(\"iconsmind-Data-Download\" => \"iconsmind-Data-Download\"), \n\t\tarray(\"iconsmind-Data-Financial\" => \"iconsmind-Data-Financial\"), \n\t\tarray(\"iconsmind-Data-Key\" => \"iconsmind-Data-Key\"), \n\t\tarray(\"iconsmind-Data-Lock\" => \"iconsmind-Data-Lock\"), \n\t\tarray(\"iconsmind-Data-Network\" => \"iconsmind-Data-Network\"), \n\t\tarray(\"iconsmind-Data-Password\" => \"iconsmind-Data-Password\"), \n\t\tarray(\"iconsmind-Data-Power\" => \"iconsmind-Data-Power\"), \n\t\tarray(\"iconsmind-Data-Refresh\" => \"iconsmind-Data-Refresh\"), \n\t\tarray(\"iconsmind-Data-Save\" => \"iconsmind-Data-Save\"), \n\t\tarray(\"iconsmind-Data-Search\" => \"iconsmind-Data-Search\"), \n\t\tarray(\"iconsmind-Data-Security\" => \"iconsmind-Data-Security\"), \n\t\tarray(\"iconsmind-Data-Settings\" => \"iconsmind-Data-Settings\"), \n\t\tarray(\"iconsmind-Data-Sharing\" => \"iconsmind-Data-Sharing\"), \n\t\tarray(\"iconsmind-Data-Shield\" => \"iconsmind-Data-Shield\"), \n\t\tarray(\"iconsmind-Data-Signal\" => \"iconsmind-Data-Signal\"), \n\t\tarray(\"iconsmind-Data-Storage\" => \"iconsmind-Data-Storage\"), \n\t\tarray(\"iconsmind-Data-Stream\" => \"iconsmind-Data-Stream\"), \n\t\tarray(\"iconsmind-Data-Transfer\" => \"iconsmind-Data-Transfer\"), \n\t\tarray(\"iconsmind-Data-Unlock\" => \"iconsmind-Data-Unlock\"), \n\t\tarray(\"iconsmind-Data-Upload\" => \"iconsmind-Data-Upload\"), \n\t\tarray(\"iconsmind-Data-Yes\" => \"iconsmind-Data-Yes\"), \n\t\tarray(\"iconsmind-Death\" => \"iconsmind-Death\"), \n\t\tarray(\"iconsmind-Debian\" => \"iconsmind-Debian\"), \n\t\tarray(\"iconsmind-Dec\" => \"iconsmind-Dec\"), \n\t\tarray(\"iconsmind-Decrase-Inedit\" => \"iconsmind-Decrase-Inedit\"), \n\t\tarray(\"iconsmind-Deer\" => \"iconsmind-Deer\"), \n\t\tarray(\"iconsmind-Deer-2\" => \"iconsmind-Deer-2\"), \n\t\tarray(\"iconsmind-Delete-File\" => \"iconsmind-Delete-File\"), \n\t\tarray(\"iconsmind-Depression\" => \"iconsmind-Depression\"), \n\t\tarray(\"iconsmind-Device-SyncwithCloud\" => \"iconsmind-Device-SyncwithCloud\"), \n\t\tarray(\"iconsmind-Diamond\" => \"iconsmind-Diamond\"), \n\t\tarray(\"iconsmind-Digital-Drawing\" => \"iconsmind-Digital-Drawing\"), \n\t\tarray(\"iconsmind-Dinosaur\" => \"iconsmind-Dinosaur\"), \n\t\tarray(\"iconsmind-Diploma\" => \"iconsmind-Diploma\"), \n\t\tarray(\"iconsmind-Diploma-2\" => \"iconsmind-Diploma-2\"), \n\t\tarray(\"iconsmind-Disk\" => \"iconsmind-Disk\"), \n\t\tarray(\"iconsmind-Dog\" => \"iconsmind-Dog\"), \n\t\tarray(\"iconsmind-Dollar\" => \"iconsmind-Dollar\"), \n\t\tarray(\"iconsmind-Dollar-Sign\" => \"iconsmind-Dollar-Sign\"), \n\t\tarray(\"iconsmind-Dollar-Sign2\" => \"iconsmind-Dollar-Sign2\"), \n\t\tarray(\"iconsmind-Dolphin\" => \"iconsmind-Dolphin\"), \n\t\tarray(\"iconsmind-Door\" => \"iconsmind-Door\"), \n\t\tarray(\"iconsmind-Double-Circle\" => \"iconsmind-Double-Circle\"), \n\t\tarray(\"iconsmind-Doughnut\" => \"iconsmind-Doughnut\"), \n\t\tarray(\"iconsmind-Dove\" => \"iconsmind-Dove\"), \n\t\tarray(\"iconsmind-Down2\" => \"iconsmind-Down2\"), \n\t\tarray(\"iconsmind-Down-2\" => \"iconsmind-Down-2\"), \n\t\tarray(\"iconsmind-Down-3\" => \"iconsmind-Down-3\"), \n\t\tarray(\"iconsmind-Download2\" => \"iconsmind-Download2\"), \n\t\tarray(\"iconsmind-Download-fromCloud\" => \"iconsmind-Download-fromCloud\"), \n\t\tarray(\"iconsmind-Dress\" => \"iconsmind-Dress\"), \n\t\tarray(\"iconsmind-Duck\" => \"iconsmind-Duck\"), \n\t\tarray(\"iconsmind-DVD\" => \"iconsmind-DVD\"), \n\t\tarray(\"iconsmind-Eagle\" => \"iconsmind-Eagle\"), \n\t\tarray(\"iconsmind-Ear\" => \"iconsmind-Ear\"), \n\t\tarray(\"iconsmind-Eggs\" => \"iconsmind-Eggs\"), \n\t\tarray(\"iconsmind-Egypt\" => \"iconsmind-Egypt\"), \n\t\tarray(\"iconsmind-Eifel-Tower\" => \"iconsmind-Eifel-Tower\"), \n\t\tarray(\"iconsmind-Elbow\" => \"iconsmind-Elbow\"), \n\t\tarray(\"iconsmind-El-Castillo\" => \"iconsmind-El-Castillo\"), \n\t\tarray(\"iconsmind-Elephant\" => \"iconsmind-Elephant\"), \n\t\tarray(\"iconsmind-Embassy\" => \"iconsmind-Embassy\"), \n\t\tarray(\"iconsmind-Empire-StateBuilding\" => \"iconsmind-Empire-StateBuilding\"), \n\t\tarray(\"iconsmind-Empty-Box\" => \"iconsmind-Empty-Box\"), \n\t\tarray(\"iconsmind-End2\" => \"iconsmind-End2\"), \n\t\tarray(\"iconsmind-Envelope\" => \"iconsmind-Envelope\"), \n\t\tarray(\"iconsmind-Envelope-2\" => \"iconsmind-Envelope-2\"), \n\t\tarray(\"iconsmind-Eraser\" => \"iconsmind-Eraser\"), \n\t\tarray(\"iconsmind-Eraser-2\" => \"iconsmind-Eraser-2\"), \n\t\tarray(\"iconsmind-Eraser-3\" => \"iconsmind-Eraser-3\"), \n\t\tarray(\"iconsmind-Euro\" => \"iconsmind-Euro\"), \n\t\tarray(\"iconsmind-Euro-Sign\" => \"iconsmind-Euro-Sign\"), \n\t\tarray(\"iconsmind-Euro-Sign2\" => \"iconsmind-Euro-Sign2\"), \n\t\tarray(\"iconsmind-Evil\" => \"iconsmind-Evil\"), \n\t\tarray(\"iconsmind-Eye2\" => \"iconsmind-Eye2\"), \n\t\tarray(\"iconsmind-Eye-Blind\" => \"iconsmind-Eye-Blind\"), \n\t\tarray(\"iconsmind-Eyebrow\" => \"iconsmind-Eyebrow\"), \n\t\tarray(\"iconsmind-Eyebrow-2\" => \"iconsmind-Eyebrow-2\"), \n\t\tarray(\"iconsmind-Eyebrow-3\" => \"iconsmind-Eyebrow-3\"), \n\t\tarray(\"iconsmind-Eyeglasses-Smiley\" => \"iconsmind-Eyeglasses-Smiley\"), \n\t\tarray(\"iconsmind-Eyeglasses-Smiley2\" => \"iconsmind-Eyeglasses-Smiley2\"), \n\t\tarray(\"iconsmind-Eye-Invisible\" => \"iconsmind-Eye-Invisible\"), \n\t\tarray(\"iconsmind-Eye-Visible\" => \"iconsmind-Eye-Visible\"), \n\t\tarray(\"iconsmind-Face-Style\" => \"iconsmind-Face-Style\"), \n\t\tarray(\"iconsmind-Face-Style2\" => \"iconsmind-Face-Style2\"), \n\t\tarray(\"iconsmind-Face-Style3\" => \"iconsmind-Face-Style3\"), \n\t\tarray(\"iconsmind-Face-Style4\" => \"iconsmind-Face-Style4\"), \n\t\tarray(\"iconsmind-Face-Style5\" => \"iconsmind-Face-Style5\"), \n\t\tarray(\"iconsmind-Face-Style6\" => \"iconsmind-Face-Style6\"), \n\t\tarray(\"iconsmind-Factory2\" => \"iconsmind-Factory2\"), \n\t\tarray(\"iconsmind-Fan\" => \"iconsmind-Fan\"), \n\t\tarray(\"iconsmind-Fashion\" => \"iconsmind-Fashion\"), \n\t\tarray(\"iconsmind-Fax\" => \"iconsmind-Fax\"), \n\t\tarray(\"iconsmind-File\" => \"iconsmind-File\"), \n\t\tarray(\"iconsmind-File-Block\" => \"iconsmind-File-Block\"), \n\t\tarray(\"iconsmind-File-Bookmark\" => \"iconsmind-File-Bookmark\"), \n\t\tarray(\"iconsmind-File-Chart\" => \"iconsmind-File-Chart\"), \n\t\tarray(\"iconsmind-File-Clipboard\" => \"iconsmind-File-Clipboard\"), \n\t\tarray(\"iconsmind-File-ClipboardFileText\" => \"iconsmind-File-ClipboardFileText\"), \n\t\tarray(\"iconsmind-File-ClipboardTextImage\" => \"iconsmind-File-ClipboardTextImage\"), \n\t\tarray(\"iconsmind-File-Cloud\" => \"iconsmind-File-Cloud\"), \n\t\tarray(\"iconsmind-File-Copy\" => \"iconsmind-File-Copy\"), \n\t\tarray(\"iconsmind-File-Copy2\" => \"iconsmind-File-Copy2\"), \n\t\tarray(\"iconsmind-File-CSV\" => \"iconsmind-File-CSV\"), \n\t\tarray(\"iconsmind-File-Download\" => \"iconsmind-File-Download\"), \n\t\tarray(\"iconsmind-File-Edit\" => \"iconsmind-File-Edit\"), \n\t\tarray(\"iconsmind-File-Excel\" => \"iconsmind-File-Excel\"), \n\t\tarray(\"iconsmind-File-Favorite\" => \"iconsmind-File-Favorite\"), \n\t\tarray(\"iconsmind-File-Fire\" => \"iconsmind-File-Fire\"), \n\t\tarray(\"iconsmind-File-Graph\" => \"iconsmind-File-Graph\"), \n\t\tarray(\"iconsmind-File-Hide\" => \"iconsmind-File-Hide\"), \n\t\tarray(\"iconsmind-File-Horizontal\" => \"iconsmind-File-Horizontal\"), \n\t\tarray(\"iconsmind-File-HorizontalText\" => \"iconsmind-File-HorizontalText\"), \n\t\tarray(\"iconsmind-File-HTML\" => \"iconsmind-File-HTML\"), \n\t\tarray(\"iconsmind-File-JPG\" => \"iconsmind-File-JPG\"), \n\t\tarray(\"iconsmind-File-Link\" => \"iconsmind-File-Link\"), \n\t\tarray(\"iconsmind-File-Loading\" => \"iconsmind-File-Loading\"), \n\t\tarray(\"iconsmind-File-Lock\" => \"iconsmind-File-Lock\"), \n\t\tarray(\"iconsmind-File-Love\" => \"iconsmind-File-Love\"), \n\t\tarray(\"iconsmind-File-Music\" => \"iconsmind-File-Music\"), \n\t\tarray(\"iconsmind-File-Network\" => \"iconsmind-File-Network\"), \n\t\tarray(\"iconsmind-File-Pictures\" => \"iconsmind-File-Pictures\"), \n\t\tarray(\"iconsmind-File-Pie\" => \"iconsmind-File-Pie\"), \n\t\tarray(\"iconsmind-File-Presentation\" => \"iconsmind-File-Presentation\"), \n\t\tarray(\"iconsmind-File-Refresh\" => \"iconsmind-File-Refresh\"), \n\t\tarray(\"iconsmind-Files\" => \"iconsmind-Files\"), \n\t\tarray(\"iconsmind-File-Search\" => \"iconsmind-File-Search\"), \n\t\tarray(\"iconsmind-File-Settings\" => \"iconsmind-File-Settings\"), \n\t\tarray(\"iconsmind-File-Share\" => \"iconsmind-File-Share\"), \n\t\tarray(\"iconsmind-File-TextImage\" => \"iconsmind-File-TextImage\"), \n\t\tarray(\"iconsmind-File-Trash\" => \"iconsmind-File-Trash\"), \n\t\tarray(\"iconsmind-File-TXT\" => \"iconsmind-File-TXT\"), \n\t\tarray(\"iconsmind-File-Upload\" => \"iconsmind-File-Upload\"), \n\t\tarray(\"iconsmind-File-Video\" => \"iconsmind-File-Video\"), \n\t\tarray(\"iconsmind-File-Word\" => \"iconsmind-File-Word\"), \n\t\tarray(\"iconsmind-File-Zip\" => \"iconsmind-File-Zip\"), \n\t\tarray(\"iconsmind-Financial\" => \"iconsmind-Financial\"), \n\t\tarray(\"iconsmind-Finger\" => \"iconsmind-Finger\"), \n\t\tarray(\"iconsmind-Fingerprint\" => \"iconsmind-Fingerprint\"), \n\t\tarray(\"iconsmind-Fingerprint-2\" => \"iconsmind-Fingerprint-2\"), \n\t\tarray(\"iconsmind-Firefox\" => \"iconsmind-Firefox\"), \n\t\tarray(\"iconsmind-Fire-Staion\" => \"iconsmind-Fire-Staion\"), \n\t\tarray(\"iconsmind-Fish\" => \"iconsmind-Fish\"), \n\t\tarray(\"iconsmind-Fit-To\" => \"iconsmind-Fit-To\"), \n\t\tarray(\"iconsmind-Fit-To2\" => \"iconsmind-Fit-To2\"), \n\t\tarray(\"iconsmind-Flag2\" => \"iconsmind-Flag2\"), \n\t\tarray(\"iconsmind-Flag-22\" => \"iconsmind-Flag-22\"), \n\t\tarray(\"iconsmind-Flag-3\" => \"iconsmind-Flag-3\"), \n\t\tarray(\"iconsmind-Flag-4\" => \"iconsmind-Flag-4\"), \n\t\tarray(\"iconsmind-Flamingo\" => \"iconsmind-Flamingo\"), \n\t\tarray(\"iconsmind-Folder\" => \"iconsmind-Folder\"), \n\t\tarray(\"iconsmind-Folder-Add\" => \"iconsmind-Folder-Add\"), \n\t\tarray(\"iconsmind-Folder-Archive\" => \"iconsmind-Folder-Archive\"), \n\t\tarray(\"iconsmind-Folder-Binder\" => \"iconsmind-Folder-Binder\"), \n\t\tarray(\"iconsmind-Folder-Binder2\" => \"iconsmind-Folder-Binder2\"), \n\t\tarray(\"iconsmind-Folder-Block\" => \"iconsmind-Folder-Block\"), \n\t\tarray(\"iconsmind-Folder-Bookmark\" => \"iconsmind-Folder-Bookmark\"), \n\t\tarray(\"iconsmind-Folder-Close\" => \"iconsmind-Folder-Close\"), \n\t\tarray(\"iconsmind-Folder-Cloud\" => \"iconsmind-Folder-Cloud\"), \n\t\tarray(\"iconsmind-Folder-Delete\" => \"iconsmind-Folder-Delete\"), \n\t\tarray(\"iconsmind-Folder-Download\" => \"iconsmind-Folder-Download\"), \n\t\tarray(\"iconsmind-Folder-Edit\" => \"iconsmind-Folder-Edit\"), \n\t\tarray(\"iconsmind-Folder-Favorite\" => \"iconsmind-Folder-Favorite\"), \n\t\tarray(\"iconsmind-Folder-Fire\" => \"iconsmind-Folder-Fire\"), \n\t\tarray(\"iconsmind-Folder-Hide\" => \"iconsmind-Folder-Hide\"), \n\t\tarray(\"iconsmind-Folder-Link\" => \"iconsmind-Folder-Link\"), \n\t\tarray(\"iconsmind-Folder-Loading\" => \"iconsmind-Folder-Loading\"), \n\t\tarray(\"iconsmind-Folder-Lock\" => \"iconsmind-Folder-Lock\"), \n\t\tarray(\"iconsmind-Folder-Love\" => \"iconsmind-Folder-Love\"), \n\t\tarray(\"iconsmind-Folder-Music\" => \"iconsmind-Folder-Music\"), \n\t\tarray(\"iconsmind-Folder-Network\" => \"iconsmind-Folder-Network\"), \n\t\tarray(\"iconsmind-Folder-Open\" => \"iconsmind-Folder-Open\"), \n\t\tarray(\"iconsmind-Folder-Open2\" => \"iconsmind-Folder-Open2\"), \n\t\tarray(\"iconsmind-Folder-Organizing\" => \"iconsmind-Folder-Organizing\"), \n\t\tarray(\"iconsmind-Folder-Pictures\" => \"iconsmind-Folder-Pictures\"), \n\t\tarray(\"iconsmind-Folder-Refresh\" => \"iconsmind-Folder-Refresh\"), \n\t\tarray(\"iconsmind-Folder-Remove\" => \"iconsmind-Folder-Remove\"), \n\t\tarray(\"iconsmind-Folders\" => \"iconsmind-Folders\"), \n\t\tarray(\"iconsmind-Folder-Search\" => \"iconsmind-Folder-Search\"), \n\t\tarray(\"iconsmind-Folder-Settings\" => \"iconsmind-Folder-Settings\"), \n\t\tarray(\"iconsmind-Folder-Share\" => \"iconsmind-Folder-Share\"), \n\t\tarray(\"iconsmind-Folder-Trash\" => \"iconsmind-Folder-Trash\"), \n\t\tarray(\"iconsmind-Folder-Upload\" => \"iconsmind-Folder-Upload\"), \n\t\tarray(\"iconsmind-Folder-Video\" => \"iconsmind-Folder-Video\"), \n\t\tarray(\"iconsmind-Folder-WithDocument\" => \"iconsmind-Folder-WithDocument\"), \n\t\tarray(\"iconsmind-Folder-Zip\" => \"iconsmind-Folder-Zip\"), \n\t\tarray(\"iconsmind-Foot\" => \"iconsmind-Foot\"), \n\t\tarray(\"iconsmind-Foot-2\" => \"iconsmind-Foot-2\"), \n\t\tarray(\"iconsmind-Fork\" => \"iconsmind-Fork\"), \n\t\tarray(\"iconsmind-Formula\" => \"iconsmind-Formula\"), \n\t\tarray(\"iconsmind-Fountain-Pen\" => \"iconsmind-Fountain-Pen\"), \n\t\tarray(\"iconsmind-Fox\" => \"iconsmind-Fox\"), \n\t\tarray(\"iconsmind-Frankenstein\" => \"iconsmind-Frankenstein\"), \n\t\tarray(\"iconsmind-French-Fries\" => \"iconsmind-French-Fries\"), \n\t\tarray(\"iconsmind-Frog\" => \"iconsmind-Frog\"), \n\t\tarray(\"iconsmind-Fruits\" => \"iconsmind-Fruits\"), \n\t\tarray(\"iconsmind-Full-Screen\" => \"iconsmind-Full-Screen\"), \n\t\tarray(\"iconsmind-Full-Screen2\" => \"iconsmind-Full-Screen2\"), \n\t\tarray(\"iconsmind-Full-View\" => \"iconsmind-Full-View\"), \n\t\tarray(\"iconsmind-Full-View2\" => \"iconsmind-Full-View2\"), \n\t\tarray(\"iconsmind-Funky\" => \"iconsmind-Funky\"), \n\t\tarray(\"iconsmind-Funny-Bicycle\" => \"iconsmind-Funny-Bicycle\"), \n\t\tarray(\"iconsmind-Gamepad\" => \"iconsmind-Gamepad\"), \n\t\tarray(\"iconsmind-Gamepad-2\" => \"iconsmind-Gamepad-2\"), \n\t\tarray(\"iconsmind-Gay\" => \"iconsmind-Gay\"), \n\t\tarray(\"iconsmind-Geek2\" => \"iconsmind-Geek2\"), \n\t\tarray(\"iconsmind-Gentleman\" => \"iconsmind-Gentleman\"), \n\t\tarray(\"iconsmind-Giraffe\" => \"iconsmind-Giraffe\"), \n\t\tarray(\"iconsmind-Glasses\" => \"iconsmind-Glasses\"), \n\t\tarray(\"iconsmind-Glasses-2\" => \"iconsmind-Glasses-2\"), \n\t\tarray(\"iconsmind-Glasses-3\" => \"iconsmind-Glasses-3\"), \n\t\tarray(\"iconsmind-Glass-Water\" => \"iconsmind-Glass-Water\"), \n\t\tarray(\"iconsmind-Gloves\" => \"iconsmind-Gloves\"), \n\t\tarray(\"iconsmind-Go-Bottom\" => \"iconsmind-Go-Bottom\"), \n\t\tarray(\"iconsmind-Gorilla\" => \"iconsmind-Gorilla\"), \n\t\tarray(\"iconsmind-Go-Top\" => \"iconsmind-Go-Top\"), \n\t\tarray(\"iconsmind-Grave\" => \"iconsmind-Grave\"), \n\t\tarray(\"iconsmind-Graveyard\" => \"iconsmind-Graveyard\"), \n\t\tarray(\"iconsmind-Greece\" => \"iconsmind-Greece\"), \n\t\tarray(\"iconsmind-Hair\" => \"iconsmind-Hair\"), \n\t\tarray(\"iconsmind-Hair-2\" => \"iconsmind-Hair-2\"), \n\t\tarray(\"iconsmind-Hair-3\" => \"iconsmind-Hair-3\"), \n\t\tarray(\"iconsmind-Halloween-HalfMoon\" => \"iconsmind-Halloween-HalfMoon\"), \n\t\tarray(\"iconsmind-Halloween-Moon\" => \"iconsmind-Halloween-Moon\"), \n\t\tarray(\"iconsmind-Hamburger\" => \"iconsmind-Hamburger\"), \n\t\tarray(\"iconsmind-Hand\" => \"iconsmind-Hand\"), \n\t\tarray(\"iconsmind-Hands\" => \"iconsmind-Hands\"), \n\t\tarray(\"iconsmind-Handshake\" => \"iconsmind-Handshake\"), \n\t\tarray(\"iconsmind-Hanger\" => \"iconsmind-Hanger\"), \n\t\tarray(\"iconsmind-Happy\" => \"iconsmind-Happy\"), \n\t\tarray(\"iconsmind-Hat\" => \"iconsmind-Hat\"), \n\t\tarray(\"iconsmind-Hat-2\" => \"iconsmind-Hat-2\"), \n\t\tarray(\"iconsmind-Haunted-House\" => \"iconsmind-Haunted-House\"), \n\t\tarray(\"iconsmind-HD\" => \"iconsmind-HD\"), \n\t\tarray(\"iconsmind-HDD\" => \"iconsmind-HDD\"), \n\t\tarray(\"iconsmind-Heart2\" => \"iconsmind-Heart2\"), \n\t\tarray(\"iconsmind-Heels\" => \"iconsmind-Heels\"), \n\t\tarray(\"iconsmind-Heels-2\" => \"iconsmind-Heels-2\"), \n\t\tarray(\"iconsmind-Hello\" => \"iconsmind-Hello\"), \n\t\tarray(\"iconsmind-Hipo\" => \"iconsmind-Hipo\"), \n\t\tarray(\"iconsmind-Hipster-Glasses\" => \"iconsmind-Hipster-Glasses\"), \n\t\tarray(\"iconsmind-Hipster-Glasses2\" => \"iconsmind-Hipster-Glasses2\"), \n\t\tarray(\"iconsmind-Hipster-Glasses3\" => \"iconsmind-Hipster-Glasses3\"), \n\t\tarray(\"iconsmind-Hipster-Headphones\" => \"iconsmind-Hipster-Headphones\"), \n\t\tarray(\"iconsmind-Hipster-Men\" => \"iconsmind-Hipster-Men\"), \n\t\tarray(\"iconsmind-Hipster-Men2\" => \"iconsmind-Hipster-Men2\"), \n\t\tarray(\"iconsmind-Hipster-Men3\" => \"iconsmind-Hipster-Men3\"), \n\t\tarray(\"iconsmind-Hipster-Sunglasses\" => \"iconsmind-Hipster-Sunglasses\"), \n\t\tarray(\"iconsmind-Hipster-Sunglasses2\" => \"iconsmind-Hipster-Sunglasses2\"), \n\t\tarray(\"iconsmind-Hipster-Sunglasses3\" => \"iconsmind-Hipster-Sunglasses3\"), \n\t\tarray(\"iconsmind-Holly\" => \"iconsmind-Holly\"), \n\t\tarray(\"iconsmind-Home2\" => \"iconsmind-Home2\"), \n\t\tarray(\"iconsmind-Home-2\" => \"iconsmind-Home-2\"), \n\t\tarray(\"iconsmind-Home-3\" => \"iconsmind-Home-3\"), \n\t\tarray(\"iconsmind-Home-4\" => \"iconsmind-Home-4\"), \n\t\tarray(\"iconsmind-Honey\" => \"iconsmind-Honey\"), \n\t\tarray(\"iconsmind-Hong-Kong\" => \"iconsmind-Hong-Kong\"), \n\t\tarray(\"iconsmind-Hoodie\" => \"iconsmind-Hoodie\"), \n\t\tarray(\"iconsmind-Horror\" => \"iconsmind-Horror\"), \n\t\tarray(\"iconsmind-Horse\" => \"iconsmind-Horse\"), \n\t\tarray(\"iconsmind-Hospital2\" => \"iconsmind-Hospital2\"), \n\t\tarray(\"iconsmind-Host\" => \"iconsmind-Host\"), \n\t\tarray(\"iconsmind-Hot-Dog\" => \"iconsmind-Hot-Dog\"), \n\t\tarray(\"iconsmind-Hotel\" => \"iconsmind-Hotel\"), \n\t\tarray(\"iconsmind-Hub\" => \"iconsmind-Hub\"), \n\t\tarray(\"iconsmind-Humor\" => \"iconsmind-Humor\"), \n\t\tarray(\"iconsmind-Ice-Cream\" => \"iconsmind-Ice-Cream\"), \n\t\tarray(\"iconsmind-Idea\" => \"iconsmind-Idea\"), \n\t\tarray(\"iconsmind-Inbox\" => \"iconsmind-Inbox\"), \n\t\tarray(\"iconsmind-Inbox-Empty\" => \"iconsmind-Inbox-Empty\"), \n\t\tarray(\"iconsmind-Inbox-Forward\" => \"iconsmind-Inbox-Forward\"), \n\t\tarray(\"iconsmind-Inbox-Full\" => \"iconsmind-Inbox-Full\"), \n\t\tarray(\"iconsmind-Inbox-Into\" => \"iconsmind-Inbox-Into\"), \n\t\tarray(\"iconsmind-Inbox-Out\" => \"iconsmind-Inbox-Out\"), \n\t\tarray(\"iconsmind-Inbox-Reply\" => \"iconsmind-Inbox-Reply\"), \n\t\tarray(\"iconsmind-Increase-Inedit\" => \"iconsmind-Increase-Inedit\"), \n\t\tarray(\"iconsmind-Indent-FirstLine\" => \"iconsmind-Indent-FirstLine\"), \n\t\tarray(\"iconsmind-Indent-LeftMargin\" => \"iconsmind-Indent-LeftMargin\"), \n\t\tarray(\"iconsmind-Indent-RightMargin\" => \"iconsmind-Indent-RightMargin\"), \n\t\tarray(\"iconsmind-India\" => \"iconsmind-India\"), \n\t\tarray(\"iconsmind-Internet-Explorer\" => \"iconsmind-Internet-Explorer\"), \n\t\tarray(\"iconsmind-Internet-Smiley\" => \"iconsmind-Internet-Smiley\"), \n\t\tarray(\"iconsmind-iOS-Apple\" => \"iconsmind-iOS-Apple\"), \n\t\tarray(\"iconsmind-Israel\" => \"iconsmind-Israel\"), \n\t\tarray(\"iconsmind-Jacket\" => \"iconsmind-Jacket\"), \n\t\tarray(\"iconsmind-Jamaica\" => \"iconsmind-Jamaica\"), \n\t\tarray(\"iconsmind-Japan\" => \"iconsmind-Japan\"), \n\t\tarray(\"iconsmind-Japanese-Gate\" => \"iconsmind-Japanese-Gate\"), \n\t\tarray(\"iconsmind-Jeans\" => \"iconsmind-Jeans\"), \n\t\tarray(\"iconsmind-Joystick\" => \"iconsmind-Joystick\"), \n\t\tarray(\"iconsmind-Juice\" => \"iconsmind-Juice\"), \n\t\tarray(\"iconsmind-Kangoroo\" => \"iconsmind-Kangoroo\"), \n\t\tarray(\"iconsmind-Kenya\" => \"iconsmind-Kenya\"), \n\t\tarray(\"iconsmind-Keyboard\" => \"iconsmind-Keyboard\"), \n\t\tarray(\"iconsmind-Keypad\" => \"iconsmind-Keypad\"), \n\t\tarray(\"iconsmind-King\" => \"iconsmind-King\"), \n\t\tarray(\"iconsmind-Kiss\" => \"iconsmind-Kiss\"), \n\t\tarray(\"iconsmind-Knee\" => \"iconsmind-Knee\"), \n\t\tarray(\"iconsmind-Knife\" => \"iconsmind-Knife\"), \n\t\tarray(\"iconsmind-Knight\" => \"iconsmind-Knight\"), \n\t\tarray(\"iconsmind-Koala\" => \"iconsmind-Koala\"), \n\t\tarray(\"iconsmind-Korea\" => \"iconsmind-Korea\"), \n\t\tarray(\"iconsmind-Lantern\" => \"iconsmind-Lantern\"), \n\t\tarray(\"iconsmind-Laptop\" => \"iconsmind-Laptop\"), \n\t\tarray(\"iconsmind-Laptop-2\" => \"iconsmind-Laptop-2\"), \n\t\tarray(\"iconsmind-Laptop-3\" => \"iconsmind-Laptop-3\"), \n\t\tarray(\"iconsmind-Laptop-Phone\" => \"iconsmind-Laptop-Phone\"), \n\t\tarray(\"iconsmind-Laptop-Tablet\" => \"iconsmind-Laptop-Tablet\"), \n\t\tarray(\"iconsmind-Laughing\" => \"iconsmind-Laughing\"), \n\t\tarray(\"iconsmind-Leaning-Tower\" => \"iconsmind-Leaning-Tower\"), \n\t\tarray(\"iconsmind-Left2\" => \"iconsmind-Left2\"), \n\t\tarray(\"iconsmind-Left-2\" => \"iconsmind-Left-2\"), \n\t\tarray(\"iconsmind-Left-3\" => \"iconsmind-Left-3\"), \n\t\tarray(\"iconsmind-Left-ToRight\" => \"iconsmind-Left-ToRight\"), \n\t\tarray(\"iconsmind-Leg\" => \"iconsmind-Leg\"), \n\t\tarray(\"iconsmind-Leg-2\" => \"iconsmind-Leg-2\"), \n\t\tarray(\"iconsmind-Lemon\" => \"iconsmind-Lemon\"), \n\t\tarray(\"iconsmind-Leopard\" => \"iconsmind-Leopard\"), \n\t\tarray(\"iconsmind-Letter-Close\" => \"iconsmind-Letter-Close\"), \n\t\tarray(\"iconsmind-Letter-Open\" => \"iconsmind-Letter-Open\"), \n\t\tarray(\"iconsmind-Letter-Sent\" => \"iconsmind-Letter-Sent\"), \n\t\tarray(\"iconsmind-Library2\" => \"iconsmind-Library2\"), \n\t\tarray(\"iconsmind-Lighthouse\" => \"iconsmind-Lighthouse\"), \n\t\tarray(\"iconsmind-Line-Chart\" => \"iconsmind-Line-Chart\"), \n\t\tarray(\"iconsmind-Line-Chart2\" => \"iconsmind-Line-Chart2\"), \n\t\tarray(\"iconsmind-Line-Chart3\" => \"iconsmind-Line-Chart3\"), \n\t\tarray(\"iconsmind-Line-Chart4\" => \"iconsmind-Line-Chart4\"), \n\t\tarray(\"iconsmind-Line-Spacing\" => \"iconsmind-Line-Spacing\"), \n\t\tarray(\"iconsmind-Linux\" => \"iconsmind-Linux\"), \n\t\tarray(\"iconsmind-Lion\" => \"iconsmind-Lion\"), \n\t\tarray(\"iconsmind-Lollipop\" => \"iconsmind-Lollipop\"), \n\t\tarray(\"iconsmind-Lollipop-2\" => \"iconsmind-Lollipop-2\"), \n\t\tarray(\"iconsmind-Loop\" => \"iconsmind-Loop\"), \n\t\tarray(\"iconsmind-Love2\" => \"iconsmind-Love2\"), \n\t\tarray(\"iconsmind-Mail\" => \"iconsmind-Mail\"), \n\t\tarray(\"iconsmind-Mail-2\" => \"iconsmind-Mail-2\"), \n\t\tarray(\"iconsmind-Mail-3\" => \"iconsmind-Mail-3\"), \n\t\tarray(\"iconsmind-Mail-Add\" => \"iconsmind-Mail-Add\"), \n\t\tarray(\"iconsmind-Mail-Attachement\" => \"iconsmind-Mail-Attachement\"), \n\t\tarray(\"iconsmind-Mail-Block\" => \"iconsmind-Mail-Block\"), \n\t\tarray(\"iconsmind-Mailbox-Empty\" => \"iconsmind-Mailbox-Empty\"), \n\t\tarray(\"iconsmind-Mailbox-Full\" => \"iconsmind-Mailbox-Full\"), \n\t\tarray(\"iconsmind-Mail-Delete\" => \"iconsmind-Mail-Delete\"), \n\t\tarray(\"iconsmind-Mail-Favorite\" => \"iconsmind-Mail-Favorite\"), \n\t\tarray(\"iconsmind-Mail-Forward\" => \"iconsmind-Mail-Forward\"), \n\t\tarray(\"iconsmind-Mail-Gallery\" => \"iconsmind-Mail-Gallery\"), \n\t\tarray(\"iconsmind-Mail-Inbox\" => \"iconsmind-Mail-Inbox\"), \n\t\tarray(\"iconsmind-Mail-Link\" => \"iconsmind-Mail-Link\"), \n\t\tarray(\"iconsmind-Mail-Lock\" => \"iconsmind-Mail-Lock\"), \n\t\tarray(\"iconsmind-Mail-Love\" => \"iconsmind-Mail-Love\"), \n\t\tarray(\"iconsmind-Mail-Money\" => \"iconsmind-Mail-Money\"), \n\t\tarray(\"iconsmind-Mail-Open\" => \"iconsmind-Mail-Open\"), \n\t\tarray(\"iconsmind-Mail-Outbox\" => \"iconsmind-Mail-Outbox\"), \n\t\tarray(\"iconsmind-Mail-Password\" => \"iconsmind-Mail-Password\"), \n\t\tarray(\"iconsmind-Mail-Photo\" => \"iconsmind-Mail-Photo\"), \n\t\tarray(\"iconsmind-Mail-Read\" => \"iconsmind-Mail-Read\"), \n\t\tarray(\"iconsmind-Mail-Removex\" => \"iconsmind-Mail-Removex\"), \n\t\tarray(\"iconsmind-Mail-Reply\" => \"iconsmind-Mail-Reply\"), \n\t\tarray(\"iconsmind-Mail-ReplyAll\" => \"iconsmind-Mail-ReplyAll\"), \n\t\tarray(\"iconsmind-Mail-Search\" => \"iconsmind-Mail-Search\"), \n\t\tarray(\"iconsmind-Mail-Send\" => \"iconsmind-Mail-Send\"), \n\t\tarray(\"iconsmind-Mail-Settings\" => \"iconsmind-Mail-Settings\"), \n\t\tarray(\"iconsmind-Mail-Unread\" => \"iconsmind-Mail-Unread\"), \n\t\tarray(\"iconsmind-Mail-Video\" => \"iconsmind-Mail-Video\"), \n\t\tarray(\"iconsmind-Mail-withAtSign\" => \"iconsmind-Mail-withAtSign\"), \n\t\tarray(\"iconsmind-Mail-WithCursors\" => \"iconsmind-Mail-WithCursors\"), \n\t\tarray(\"iconsmind-Mans-Underwear\" => \"iconsmind-Mans-Underwear\"), \n\t\tarray(\"iconsmind-Mans-Underwear2\" => \"iconsmind-Mans-Underwear2\"), \n\t\tarray(\"iconsmind-Marker\" => \"iconsmind-Marker\"), \n\t\tarray(\"iconsmind-Marker-2\" => \"iconsmind-Marker-2\"), \n\t\tarray(\"iconsmind-Marker-3\" => \"iconsmind-Marker-3\"), \n\t\tarray(\"iconsmind-Martini-Glass\" => \"iconsmind-Martini-Glass\"), \n\t\tarray(\"iconsmind-Master-Card\" => \"iconsmind-Master-Card\"), \n\t\tarray(\"iconsmind-Maximize\" => \"iconsmind-Maximize\"), \n\t\tarray(\"iconsmind-Megaphone\" => \"iconsmind-Megaphone\"), \n\t\tarray(\"iconsmind-Mexico\" => \"iconsmind-Mexico\"), \n\t\tarray(\"iconsmind-Milk-Bottle\" => \"iconsmind-Milk-Bottle\"), \n\t\tarray(\"iconsmind-Minimize\" => \"iconsmind-Minimize\"), \n\t\tarray(\"iconsmind-Money\" => \"iconsmind-Money\"), \n\t\tarray(\"iconsmind-Money-2\" => \"iconsmind-Money-2\"), \n\t\tarray(\"iconsmind-Money-Bag\" => \"iconsmind-Money-Bag\"), \n\t\tarray(\"iconsmind-Monitor\" => \"iconsmind-Monitor\"), \n\t\tarray(\"iconsmind-Monitor-2\" => \"iconsmind-Monitor-2\"), \n\t\tarray(\"iconsmind-Monitor-3\" => \"iconsmind-Monitor-3\"), \n\t\tarray(\"iconsmind-Monitor-4\" => \"iconsmind-Monitor-4\"), \n\t\tarray(\"iconsmind-Monitor-5\" => \"iconsmind-Monitor-5\"), \n\t\tarray(\"iconsmind-Monitor-Laptop\" => \"iconsmind-Monitor-Laptop\"), \n\t\tarray(\"iconsmind-Monitor-phone\" => \"iconsmind-Monitor-phone\"), \n\t\tarray(\"iconsmind-Monitor-Tablet\" => \"iconsmind-Monitor-Tablet\"), \n\t\tarray(\"iconsmind-Monitor-Vertical\" => \"iconsmind-Monitor-Vertical\"), \n\t\tarray(\"iconsmind-Monkey\" => \"iconsmind-Monkey\"), \n\t\tarray(\"iconsmind-Monster\" => \"iconsmind-Monster\"), \n\t\tarray(\"iconsmind-Morocco\" => \"iconsmind-Morocco\"), \n\t\tarray(\"iconsmind-Mouse\" => \"iconsmind-Mouse\"), \n\t\tarray(\"iconsmind-Mouse-2\" => \"iconsmind-Mouse-2\"), \n\t\tarray(\"iconsmind-Mouse-3\" => \"iconsmind-Mouse-3\"), \n\t\tarray(\"iconsmind-Moustache-Smiley\" => \"iconsmind-Moustache-Smiley\"), \n\t\tarray(\"iconsmind-Museum\" => \"iconsmind-Museum\"), \n\t\tarray(\"iconsmind-Mushroom\" => \"iconsmind-Mushroom\"), \n\t\tarray(\"iconsmind-Mustache\" => \"iconsmind-Mustache\"), \n\t\tarray(\"iconsmind-Mustache-2\" => \"iconsmind-Mustache-2\"), \n\t\tarray(\"iconsmind-Mustache-3\" => \"iconsmind-Mustache-3\"), \n\t\tarray(\"iconsmind-Mustache-4\" => \"iconsmind-Mustache-4\"), \n\t\tarray(\"iconsmind-Mustache-5\" => \"iconsmind-Mustache-5\"), \n\t\tarray(\"iconsmind-Navigate-End\" => \"iconsmind-Navigate-End\"), \n\t\tarray(\"iconsmind-Navigat-Start\" => \"iconsmind-Navigat-Start\"), \n\t\tarray(\"iconsmind-Nepal\" => \"iconsmind-Nepal\"), \n\t\tarray(\"iconsmind-Netscape\" => \"iconsmind-Netscape\"), \n\t\tarray(\"iconsmind-New-Mail\" => \"iconsmind-New-Mail\"), \n\t\tarray(\"iconsmind-Newspaper\" => \"iconsmind-Newspaper\"), \n\t\tarray(\"iconsmind-Newspaper-2\" => \"iconsmind-Newspaper-2\"), \n\t\tarray(\"iconsmind-No-Battery\" => \"iconsmind-No-Battery\"), \n\t\tarray(\"iconsmind-Noose\" => \"iconsmind-Noose\"), \n\t\tarray(\"iconsmind-Note\" => \"iconsmind-Note\"), \n\t\tarray(\"iconsmind-Notepad\" => \"iconsmind-Notepad\"), \n\t\tarray(\"iconsmind-Notepad-2\" => \"iconsmind-Notepad-2\"), \n\t\tarray(\"iconsmind-Office\" => \"iconsmind-Office\"), \n\t\tarray(\"iconsmind-Old-Camera\" => \"iconsmind-Old-Camera\"), \n\t\tarray(\"iconsmind-Old-Cassette\" => \"iconsmind-Old-Cassette\"), \n\t\tarray(\"iconsmind-Old-Sticky\" => \"iconsmind-Old-Sticky\"), \n\t\tarray(\"iconsmind-Old-Sticky2\" => \"iconsmind-Old-Sticky2\"), \n\t\tarray(\"iconsmind-Old-Telephone\" => \"iconsmind-Old-Telephone\"), \n\t\tarray(\"iconsmind-Open-Banana\" => \"iconsmind-Open-Banana\"), \n\t\tarray(\"iconsmind-Open-Book\" => \"iconsmind-Open-Book\"), \n\t\tarray(\"iconsmind-Opera\" => \"iconsmind-Opera\"), \n\t\tarray(\"iconsmind-Opera-House\" => \"iconsmind-Opera-House\"), \n\t\tarray(\"iconsmind-Orientation2\" => \"iconsmind-Orientation2\"), \n\t\tarray(\"iconsmind-Orientation-2\" => \"iconsmind-Orientation-2\"), \n\t\tarray(\"iconsmind-Ornament\" => \"iconsmind-Ornament\"), \n\t\tarray(\"iconsmind-Owl\" => \"iconsmind-Owl\"), \n\t\tarray(\"iconsmind-Paintbrush\" => \"iconsmind-Paintbrush\"), \n\t\tarray(\"iconsmind-Palette\" => \"iconsmind-Palette\"), \n\t\tarray(\"iconsmind-Panda\" => \"iconsmind-Panda\"), \n\t\tarray(\"iconsmind-Pantheon\" => \"iconsmind-Pantheon\"), \n\t\tarray(\"iconsmind-Pantone\" => \"iconsmind-Pantone\"), \n\t\tarray(\"iconsmind-Pants\" => \"iconsmind-Pants\"), \n\t\tarray(\"iconsmind-Paper\" => \"iconsmind-Paper\"), \n\t\tarray(\"iconsmind-Parrot\" => \"iconsmind-Parrot\"), \n\t\tarray(\"iconsmind-Pawn\" => \"iconsmind-Pawn\"), \n\t\tarray(\"iconsmind-Pen\" => \"iconsmind-Pen\"), \n\t\tarray(\"iconsmind-Pen-2\" => \"iconsmind-Pen-2\"), \n\t\tarray(\"iconsmind-Pen-3\" => \"iconsmind-Pen-3\"), \n\t\tarray(\"iconsmind-Pen-4\" => \"iconsmind-Pen-4\"), \n\t\tarray(\"iconsmind-Pen-5\" => \"iconsmind-Pen-5\"), \n\t\tarray(\"iconsmind-Pen-6\" => \"iconsmind-Pen-6\"), \n\t\tarray(\"iconsmind-Pencil\" => \"iconsmind-Pencil\"), \n\t\tarray(\"iconsmind-Pencil-Ruler\" => \"iconsmind-Pencil-Ruler\"), \n\t\tarray(\"iconsmind-Penguin\" => \"iconsmind-Penguin\"), \n\t\tarray(\"iconsmind-Pentagon\" => \"iconsmind-Pentagon\"), \n\t\tarray(\"iconsmind-People-onCloud\" => \"iconsmind-People-onCloud\"), \n\t\tarray(\"iconsmind-Pepper\" => \"iconsmind-Pepper\"), \n\t\tarray(\"iconsmind-Pepper-withFire\" => \"iconsmind-Pepper-withFire\"), \n\t\tarray(\"iconsmind-Petronas-Tower\" => \"iconsmind-Petronas-Tower\"), \n\t\tarray(\"iconsmind-Philipines\" => \"iconsmind-Philipines\"), \n\t\tarray(\"iconsmind-Phone\" => \"iconsmind-Phone\"), \n\t\tarray(\"iconsmind-Phone-2\" => \"iconsmind-Phone-2\"), \n\t\tarray(\"iconsmind-Phone-3\" => \"iconsmind-Phone-3\"), \n\t\tarray(\"iconsmind-Phone-3G\" => \"iconsmind-Phone-3G\"), \n\t\tarray(\"iconsmind-Phone-4G\" => \"iconsmind-Phone-4G\"), \n\t\tarray(\"iconsmind-Phone-Simcard\" => \"iconsmind-Phone-Simcard\"), \n\t\tarray(\"iconsmind-Phone-SMS\" => \"iconsmind-Phone-SMS\"), \n\t\tarray(\"iconsmind-Phone-Wifi\" => \"iconsmind-Phone-Wifi\"), \n\t\tarray(\"iconsmind-Pi\" => \"iconsmind-Pi\"), \n\t\tarray(\"iconsmind-Pie-Chart\" => \"iconsmind-Pie-Chart\"), \n\t\tarray(\"iconsmind-Pie-Chart2\" => \"iconsmind-Pie-Chart2\"), \n\t\tarray(\"iconsmind-Pie-Chart3\" => \"iconsmind-Pie-Chart3\"), \n\t\tarray(\"iconsmind-Pipette\" => \"iconsmind-Pipette\"), \n\t\tarray(\"iconsmind-Piramids\" => \"iconsmind-Piramids\"), \n\t\tarray(\"iconsmind-Pizza\" => \"iconsmind-Pizza\"), \n\t\tarray(\"iconsmind-Pizza-Slice\" => \"iconsmind-Pizza-Slice\"), \n\t\tarray(\"iconsmind-Plastic-CupPhone\" => \"iconsmind-Plastic-CupPhone\"), \n\t\tarray(\"iconsmind-Plastic-CupPhone2\" => \"iconsmind-Plastic-CupPhone2\"), \n\t\tarray(\"iconsmind-Plate\" => \"iconsmind-Plate\"), \n\t\tarray(\"iconsmind-Plates\" => \"iconsmind-Plates\"), \n\t\tarray(\"iconsmind-Plug-In\" => \"iconsmind-Plug-In\"), \n\t\tarray(\"iconsmind-Plug-In2\" => \"iconsmind-Plug-In2\"), \n\t\tarray(\"iconsmind-Poland\" => \"iconsmind-Poland\"), \n\t\tarray(\"iconsmind-Police-Station\" => \"iconsmind-Police-Station\"), \n\t\tarray(\"iconsmind-Polo-Shirt\" => \"iconsmind-Polo-Shirt\"), \n\t\tarray(\"iconsmind-Portugal\" => \"iconsmind-Portugal\"), \n\t\tarray(\"iconsmind-Post-Mail\" => \"iconsmind-Post-Mail\"), \n\t\tarray(\"iconsmind-Post-Mail2\" => \"iconsmind-Post-Mail2\"), \n\t\tarray(\"iconsmind-Post-Office\" => \"iconsmind-Post-Office\"), \n\t\tarray(\"iconsmind-Pound\" => \"iconsmind-Pound\"), \n\t\tarray(\"iconsmind-Pound-Sign\" => \"iconsmind-Pound-Sign\"), \n\t\tarray(\"iconsmind-Pound-Sign2\" => \"iconsmind-Pound-Sign2\"), \n\t\tarray(\"iconsmind-Power\" => \"iconsmind-Power\"), \n\t\tarray(\"iconsmind-Power-Cable\" => \"iconsmind-Power-Cable\"), \n\t\tarray(\"iconsmind-Prater\" => \"iconsmind-Prater\"), \n\t\tarray(\"iconsmind-Present\" => \"iconsmind-Present\"), \n\t\tarray(\"iconsmind-Presents\" => \"iconsmind-Presents\"), \n\t\tarray(\"iconsmind-Printer\" => \"iconsmind-Printer\"), \n\t\tarray(\"iconsmind-Projector\" => \"iconsmind-Projector\"), \n\t\tarray(\"iconsmind-Projector-2\" => \"iconsmind-Projector-2\"), \n\t\tarray(\"iconsmind-Pumpkin\" => \"iconsmind-Pumpkin\"), \n\t\tarray(\"iconsmind-Punk\" => \"iconsmind-Punk\"), \n\t\tarray(\"iconsmind-Queen\" => \"iconsmind-Queen\"), \n\t\tarray(\"iconsmind-Quill\" => \"iconsmind-Quill\"), \n\t\tarray(\"iconsmind-Quill-2\" => \"iconsmind-Quill-2\"), \n\t\tarray(\"iconsmind-Quill-3\" => \"iconsmind-Quill-3\"), \n\t\tarray(\"iconsmind-Ram\" => \"iconsmind-Ram\"), \n\t\tarray(\"iconsmind-Redhat\" => \"iconsmind-Redhat\"), \n\t\tarray(\"iconsmind-Reload2\" => \"iconsmind-Reload2\"), \n\t\tarray(\"iconsmind-Reload-2\" => \"iconsmind-Reload-2\"), \n\t\tarray(\"iconsmind-Remote-Controll\" => \"iconsmind-Remote-Controll\"), \n\t\tarray(\"iconsmind-Remote-Controll2\" => \"iconsmind-Remote-Controll2\"), \n\t\tarray(\"iconsmind-Remove-File\" => \"iconsmind-Remove-File\"), \n\t\tarray(\"iconsmind-Repeat3\" => \"iconsmind-Repeat3\"), \n\t\tarray(\"iconsmind-Repeat-22\" => \"iconsmind-Repeat-22\"), \n\t\tarray(\"iconsmind-Repeat-3\" => \"iconsmind-Repeat-3\"), \n\t\tarray(\"iconsmind-Repeat-4\" => \"iconsmind-Repeat-4\"), \n\t\tarray(\"iconsmind-Resize\" => \"iconsmind-Resize\"), \n\t\tarray(\"iconsmind-Retro\" => \"iconsmind-Retro\"), \n\t\tarray(\"iconsmind-RGB\" => \"iconsmind-RGB\"), \n\t\tarray(\"iconsmind-Right2\" => \"iconsmind-Right2\"), \n\t\tarray(\"iconsmind-Right-2\" => \"iconsmind-Right-2\"), \n\t\tarray(\"iconsmind-Right-3\" => \"iconsmind-Right-3\"), \n\t\tarray(\"iconsmind-Right-ToLeft\" => \"iconsmind-Right-ToLeft\"), \n\t\tarray(\"iconsmind-Robot2\" => \"iconsmind-Robot2\"), \n\t\tarray(\"iconsmind-Roller\" => \"iconsmind-Roller\"), \n\t\tarray(\"iconsmind-Roof\" => \"iconsmind-Roof\"), \n\t\tarray(\"iconsmind-Rook\" => \"iconsmind-Rook\"), \n\t\tarray(\"iconsmind-Router\" => \"iconsmind-Router\"), \n\t\tarray(\"iconsmind-Router-2\" => \"iconsmind-Router-2\"), \n\t\tarray(\"iconsmind-Ruler\" => \"iconsmind-Ruler\"), \n\t\tarray(\"iconsmind-Ruler-2\" => \"iconsmind-Ruler-2\"), \n\t\tarray(\"iconsmind-Safari\" => \"iconsmind-Safari\"), \n\t\tarray(\"iconsmind-Safe-Box2\" => \"iconsmind-Safe-Box2\"), \n\t\tarray(\"iconsmind-Santa-Claus\" => \"iconsmind-Santa-Claus\"), \n\t\tarray(\"iconsmind-Santa-Claus2\" => \"iconsmind-Santa-Claus2\"), \n\t\tarray(\"iconsmind-Santa-onSled\" => \"iconsmind-Santa-onSled\"), \n\t\tarray(\"iconsmind-Scarf\" => \"iconsmind-Scarf\"), \n\t\tarray(\"iconsmind-Scissor\" => \"iconsmind-Scissor\"), \n\t\tarray(\"iconsmind-Scotland\" => \"iconsmind-Scotland\"), \n\t\tarray(\"iconsmind-Sea-Dog\" => \"iconsmind-Sea-Dog\"), \n\t\tarray(\"iconsmind-Search-onCloud\" => \"iconsmind-Search-onCloud\"), \n\t\tarray(\"iconsmind-Security-Smiley\" => \"iconsmind-Security-Smiley\"), \n\t\tarray(\"iconsmind-Serbia\" => \"iconsmind-Serbia\"), \n\t\tarray(\"iconsmind-Server\" => \"iconsmind-Server\"), \n\t\tarray(\"iconsmind-Server-2\" => \"iconsmind-Server-2\"), \n\t\tarray(\"iconsmind-Servers\" => \"iconsmind-Servers\"), \n\t\tarray(\"iconsmind-Share-onCloud\" => \"iconsmind-Share-onCloud\"), \n\t\tarray(\"iconsmind-Shark\" => \"iconsmind-Shark\"), \n\t\tarray(\"iconsmind-Sheep\" => \"iconsmind-Sheep\"), \n\t\tarray(\"iconsmind-Shirt\" => \"iconsmind-Shirt\"), \n\t\tarray(\"iconsmind-Shoes\" => \"iconsmind-Shoes\"), \n\t\tarray(\"iconsmind-Shoes-2\" => \"iconsmind-Shoes-2\"), \n\t\tarray(\"iconsmind-Short-Pants\" => \"iconsmind-Short-Pants\"), \n\t\tarray(\"iconsmind-Shuffle2\" => \"iconsmind-Shuffle2\"), \n\t\tarray(\"iconsmind-Shuffle-22\" => \"iconsmind-Shuffle-22\"), \n\t\tarray(\"iconsmind-Singapore\" => \"iconsmind-Singapore\"), \n\t\tarray(\"iconsmind-Skeleton\" => \"iconsmind-Skeleton\"), \n\t\tarray(\"iconsmind-Skirt\" => \"iconsmind-Skirt\"), \n\t\tarray(\"iconsmind-Skull\" => \"iconsmind-Skull\"), \n\t\tarray(\"iconsmind-Sled\" => \"iconsmind-Sled\"), \n\t\tarray(\"iconsmind-Sled-withGifts\" => \"iconsmind-Sled-withGifts\"), \n\t\tarray(\"iconsmind-Sleeping\" => \"iconsmind-Sleeping\"), \n\t\tarray(\"iconsmind-Slippers\" => \"iconsmind-Slippers\"), \n\t\tarray(\"iconsmind-Smart\" => \"iconsmind-Smart\"), \n\t\tarray(\"iconsmind-Smartphone\" => \"iconsmind-Smartphone\"), \n\t\tarray(\"iconsmind-Smartphone-2\" => \"iconsmind-Smartphone-2\"), \n\t\tarray(\"iconsmind-Smartphone-3\" => \"iconsmind-Smartphone-3\"), \n\t\tarray(\"iconsmind-Smartphone-4\" => \"iconsmind-Smartphone-4\"), \n\t\tarray(\"iconsmind-Smile\" => \"iconsmind-Smile\"), \n\t\tarray(\"iconsmind-Smoking-Pipe\" => \"iconsmind-Smoking-Pipe\"), \n\t\tarray(\"iconsmind-Snake\" => \"iconsmind-Snake\"), \n\t\tarray(\"iconsmind-Snow-Dome\" => \"iconsmind-Snow-Dome\"), \n\t\tarray(\"iconsmind-Snowflake2\" => \"iconsmind-Snowflake2\"), \n\t\tarray(\"iconsmind-Snowman\" => \"iconsmind-Snowman\"), \n\t\tarray(\"iconsmind-Socks\" => \"iconsmind-Socks\"), \n\t\tarray(\"iconsmind-Soup\" => \"iconsmind-Soup\"), \n\t\tarray(\"iconsmind-South-Africa\" => \"iconsmind-South-Africa\"), \n\t\tarray(\"iconsmind-Space-Needle\" => \"iconsmind-Space-Needle\"), \n\t\tarray(\"iconsmind-Spain\" => \"iconsmind-Spain\"), \n\t\tarray(\"iconsmind-Spam-Mail\" => \"iconsmind-Spam-Mail\"), \n\t\tarray(\"iconsmind-Speaker2\" => \"iconsmind-Speaker2\"), \n\t\tarray(\"iconsmind-Spell-Check\" => \"iconsmind-Spell-Check\"), \n\t\tarray(\"iconsmind-Spell-CheckABC\" => \"iconsmind-Spell-CheckABC\"), \n\t\tarray(\"iconsmind-Spider\" => \"iconsmind-Spider\"), \n\t\tarray(\"iconsmind-Spiderweb\" => \"iconsmind-Spiderweb\"), \n\t\tarray(\"iconsmind-Spoder\" => \"iconsmind-Spoder\"), \n\t\tarray(\"iconsmind-Spoon\" => \"iconsmind-Spoon\"), \n\t\tarray(\"iconsmind-Sports-Clothings1\" => \"iconsmind-Sports-Clothings1\"), \n\t\tarray(\"iconsmind-Sports-Clothings2\" => \"iconsmind-Sports-Clothings2\"), \n\t\tarray(\"iconsmind-Sports-Shirt\" => \"iconsmind-Sports-Shirt\"), \n\t\tarray(\"iconsmind-Spray\" => \"iconsmind-Spray\"), \n\t\tarray(\"iconsmind-Squirrel\" => \"iconsmind-Squirrel\"), \n\t\tarray(\"iconsmind-Stamp\" => \"iconsmind-Stamp\"), \n\t\tarray(\"iconsmind-Stamp-2\" => \"iconsmind-Stamp-2\"), \n\t\tarray(\"iconsmind-Stapler\" => \"iconsmind-Stapler\"), \n\t\tarray(\"iconsmind-Star\" => \"iconsmind-Star\"), \n\t\tarray(\"iconsmind-Starfish\" => \"iconsmind-Starfish\"), \n\t\tarray(\"iconsmind-Start2\" => \"iconsmind-Start2\"), \n\t\tarray(\"iconsmind-St-BasilsCathedral\" => \"iconsmind-St-BasilsCathedral\"), \n\t\tarray(\"iconsmind-St-PaulsCathedral\" => \"iconsmind-St-PaulsCathedral\"), \n\t\tarray(\"iconsmind-Structure\" => \"iconsmind-Structure\"), \n\t\tarray(\"iconsmind-Student-Hat\" => \"iconsmind-Student-Hat\"), \n\t\tarray(\"iconsmind-Student-Hat2\" => \"iconsmind-Student-Hat2\"), \n\t\tarray(\"iconsmind-Suit\" => \"iconsmind-Suit\"), \n\t\tarray(\"iconsmind-Sum2\" => \"iconsmind-Sum2\"), \n\t\tarray(\"iconsmind-Sunglasses\" => \"iconsmind-Sunglasses\"), \n\t\tarray(\"iconsmind-Sunglasses-2\" => \"iconsmind-Sunglasses-2\"), \n\t\tarray(\"iconsmind-Sunglasses-3\" => \"iconsmind-Sunglasses-3\"), \n\t\tarray(\"iconsmind-Sunglasses-Smiley\" => \"iconsmind-Sunglasses-Smiley\"), \n\t\tarray(\"iconsmind-Sunglasses-Smiley2\" => \"iconsmind-Sunglasses-Smiley2\"), \n\t\tarray(\"iconsmind-Sunglasses-W\" => \"iconsmind-Sunglasses-W\"), \n\t\tarray(\"iconsmind-Sunglasses-W2\" => \"iconsmind-Sunglasses-W2\"), \n\t\tarray(\"iconsmind-Sunglasses-W3\" => \"iconsmind-Sunglasses-W3\"), \n\t\tarray(\"iconsmind-Surprise\" => \"iconsmind-Surprise\"), \n\t\tarray(\"iconsmind-Sushi\" => \"iconsmind-Sushi\"), \n\t\tarray(\"iconsmind-Sweden\" => \"iconsmind-Sweden\"), \n\t\tarray(\"iconsmind-Swimming-Short\" => \"iconsmind-Swimming-Short\"), \n\t\tarray(\"iconsmind-Swimmwear\" => \"iconsmind-Swimmwear\"), \n\t\tarray(\"iconsmind-Switzerland\" => \"iconsmind-Switzerland\"), \n\t\tarray(\"iconsmind-Sync\" => \"iconsmind-Sync\"), \n\t\tarray(\"iconsmind-Sync-Cloud\" => \"iconsmind-Sync-Cloud\"), \n\t\tarray(\"iconsmind-Tablet\" => \"iconsmind-Tablet\"), \n\t\tarray(\"iconsmind-Tablet-2\" => \"iconsmind-Tablet-2\"), \n\t\tarray(\"iconsmind-Tablet-3\" => \"iconsmind-Tablet-3\"), \n\t\tarray(\"iconsmind-Tablet-Orientation\" => \"iconsmind-Tablet-Orientation\"), \n\t\tarray(\"iconsmind-Tablet-Phone\" => \"iconsmind-Tablet-Phone\"), \n\t\tarray(\"iconsmind-Tablet-Vertical\" => \"iconsmind-Tablet-Vertical\"), \n\t\tarray(\"iconsmind-Tactic\" => \"iconsmind-Tactic\"), \n\t\tarray(\"iconsmind-Taj-Mahal\" => \"iconsmind-Taj-Mahal\"), \n\t\tarray(\"iconsmind-Teapot\" => \"iconsmind-Teapot\"), \n\t\tarray(\"iconsmind-Tee-Mug\" => \"iconsmind-Tee-Mug\"), \n\t\tarray(\"iconsmind-Telephone\" => \"iconsmind-Telephone\"), \n\t\tarray(\"iconsmind-Telephone-2\" => \"iconsmind-Telephone-2\"), \n\t\tarray(\"iconsmind-Temple\" => \"iconsmind-Temple\"), \n\t\tarray(\"iconsmind-Thailand\" => \"iconsmind-Thailand\"), \n\t\tarray(\"iconsmind-The-WhiteHouse\" => \"iconsmind-The-WhiteHouse\"), \n\t\tarray(\"iconsmind-Three-ArrowFork\" => \"iconsmind-Three-ArrowFork\"), \n\t\tarray(\"iconsmind-Thumbs-DownSmiley\" => \"iconsmind-Thumbs-DownSmiley\"), \n\t\tarray(\"iconsmind-Thumbs-UpSmiley\" => \"iconsmind-Thumbs-UpSmiley\"), \n\t\tarray(\"iconsmind-Tie\" => \"iconsmind-Tie\"), \n\t\tarray(\"iconsmind-Tie-2\" => \"iconsmind-Tie-2\"), \n\t\tarray(\"iconsmind-Tie-3\" => \"iconsmind-Tie-3\"), \n\t\tarray(\"iconsmind-Tiger\" => \"iconsmind-Tiger\"), \n\t\tarray(\"iconsmind-Time-Clock\" => \"iconsmind-Time-Clock\"), \n\t\tarray(\"iconsmind-To-Bottom\" => \"iconsmind-To-Bottom\"), \n\t\tarray(\"iconsmind-To-Bottom2\" => \"iconsmind-To-Bottom2\"), \n\t\tarray(\"iconsmind-Token\" => \"iconsmind-Token\"), \n\t\tarray(\"iconsmind-To-Left\" => \"iconsmind-To-Left\"), \n\t\tarray(\"iconsmind-Tomato\" => \"iconsmind-Tomato\"), \n\t\tarray(\"iconsmind-Tongue\" => \"iconsmind-Tongue\"), \n\t\tarray(\"iconsmind-Tooth\" => \"iconsmind-Tooth\"), \n\t\tarray(\"iconsmind-Tooth-2\" => \"iconsmind-Tooth-2\"), \n\t\tarray(\"iconsmind-Top-ToBottom\" => \"iconsmind-Top-ToBottom\"), \n\t\tarray(\"iconsmind-To-Right\" => \"iconsmind-To-Right\"), \n\t\tarray(\"iconsmind-To-Top\" => \"iconsmind-To-Top\"), \n\t\tarray(\"iconsmind-To-Top2\" => \"iconsmind-To-Top2\"), \n\t\tarray(\"iconsmind-Tower\" => \"iconsmind-Tower\"), \n\t\tarray(\"iconsmind-Tower-2\" => \"iconsmind-Tower-2\"), \n\t\tarray(\"iconsmind-Tower-Bridge\" => \"iconsmind-Tower-Bridge\"), \n\t\tarray(\"iconsmind-Transform\" => \"iconsmind-Transform\"), \n\t\tarray(\"iconsmind-Transform-2\" => \"iconsmind-Transform-2\"), \n\t\tarray(\"iconsmind-Transform-3\" => \"iconsmind-Transform-3\"), \n\t\tarray(\"iconsmind-Transform-4\" => \"iconsmind-Transform-4\"), \n\t\tarray(\"iconsmind-Tree2\" => \"iconsmind-Tree2\"), \n\t\tarray(\"iconsmind-Tree-22\" => \"iconsmind-Tree-22\"), \n\t\tarray(\"iconsmind-Triangle-ArrowDown\" => \"iconsmind-Triangle-ArrowDown\"), \n\t\tarray(\"iconsmind-Triangle-ArrowLeft\" => \"iconsmind-Triangle-ArrowLeft\"), \n\t\tarray(\"iconsmind-Triangle-ArrowRight\" => \"iconsmind-Triangle-ArrowRight\"), \n\t\tarray(\"iconsmind-Triangle-ArrowUp\" => \"iconsmind-Triangle-ArrowUp\"), \n\t\tarray(\"iconsmind-T-Shirt\" => \"iconsmind-T-Shirt\"), \n\t\tarray(\"iconsmind-Turkey\" => \"iconsmind-Turkey\"), \n\t\tarray(\"iconsmind-Turn-Down\" => \"iconsmind-Turn-Down\"), \n\t\tarray(\"iconsmind-Turn-Down2\" => \"iconsmind-Turn-Down2\"), \n\t\tarray(\"iconsmind-Turn-DownFromLeft\" => \"iconsmind-Turn-DownFromLeft\"), \n\t\tarray(\"iconsmind-Turn-DownFromRight\" => \"iconsmind-Turn-DownFromRight\"), \n\t\tarray(\"iconsmind-Turn-Left\" => \"iconsmind-Turn-Left\"), \n\t\tarray(\"iconsmind-Turn-Left3\" => \"iconsmind-Turn-Left3\"), \n\t\tarray(\"iconsmind-Turn-Right\" => \"iconsmind-Turn-Right\"), \n\t\tarray(\"iconsmind-Turn-Right3\" => \"iconsmind-Turn-Right3\"), \n\t\tarray(\"iconsmind-Turn-Up\" => \"iconsmind-Turn-Up\"), \n\t\tarray(\"iconsmind-Turn-Up2\" => \"iconsmind-Turn-Up2\"), \n\t\tarray(\"iconsmind-Turtle\" => \"iconsmind-Turtle\"), \n\t\tarray(\"iconsmind-Tuxedo\" => \"iconsmind-Tuxedo\"), \n\t\tarray(\"iconsmind-Ukraine\" => \"iconsmind-Ukraine\"), \n\t\tarray(\"iconsmind-Umbrela\" => \"iconsmind-Umbrela\"), \n\t\tarray(\"iconsmind-United-Kingdom\" => \"iconsmind-United-Kingdom\"), \n\t\tarray(\"iconsmind-United-States\" => \"iconsmind-United-States\"), \n\t\tarray(\"iconsmind-University\" => \"iconsmind-University\"), \n\t\tarray(\"iconsmind-Up2\" => \"iconsmind-Up2\"), \n\t\tarray(\"iconsmind-Up-2\" => \"iconsmind-Up-2\"), \n\t\tarray(\"iconsmind-Up-3\" => \"iconsmind-Up-3\"), \n\t\tarray(\"iconsmind-Upload2\" => \"iconsmind-Upload2\"), \n\t\tarray(\"iconsmind-Upload-toCloud\" => \"iconsmind-Upload-toCloud\"), \n\t\tarray(\"iconsmind-Usb\" => \"iconsmind-Usb\"), \n\t\tarray(\"iconsmind-Usb-2\" => \"iconsmind-Usb-2\"), \n\t\tarray(\"iconsmind-Usb-Cable\" => \"iconsmind-Usb-Cable\"), \n\t\tarray(\"iconsmind-Vector\" => \"iconsmind-Vector\"), \n\t\tarray(\"iconsmind-Vector-2\" => \"iconsmind-Vector-2\"), \n\t\tarray(\"iconsmind-Vector-3\" => \"iconsmind-Vector-3\"), \n\t\tarray(\"iconsmind-Vector-4\" => \"iconsmind-Vector-4\"), \n\t\tarray(\"iconsmind-Vector-5\" => \"iconsmind-Vector-5\"), \n\t\tarray(\"iconsmind-Vest\" => \"iconsmind-Vest\"), \n\t\tarray(\"iconsmind-Vietnam\" => \"iconsmind-Vietnam\"), \n\t\tarray(\"iconsmind-View-Height\" => \"iconsmind-View-Height\"), \n\t\tarray(\"iconsmind-View-Width\" => \"iconsmind-View-Width\"), \n\t\tarray(\"iconsmind-Visa\" => \"iconsmind-Visa\"), \n\t\tarray(\"iconsmind-Voicemail\" => \"iconsmind-Voicemail\"), \n\t\tarray(\"iconsmind-VPN\" => \"iconsmind-VPN\"), \n\t\tarray(\"iconsmind-Wacom-Tablet\" => \"iconsmind-Wacom-Tablet\"), \n\t\tarray(\"iconsmind-Walkie-Talkie\" => \"iconsmind-Walkie-Talkie\"), \n\t\tarray(\"iconsmind-Wallet\" => \"iconsmind-Wallet\"), \n\t\tarray(\"iconsmind-Wallet-2\" => \"iconsmind-Wallet-2\"), \n\t\tarray(\"iconsmind-Warehouse\" => \"iconsmind-Warehouse\"), \n\t\tarray(\"iconsmind-Webcam\" => \"iconsmind-Webcam\"), \n\t\tarray(\"iconsmind-Wifi\" => \"iconsmind-Wifi\"), \n\t\tarray(\"iconsmind-Wifi-2\" => \"iconsmind-Wifi-2\"), \n\t\tarray(\"iconsmind-Wifi-Keyboard\" => \"iconsmind-Wifi-Keyboard\"), \n\t\tarray(\"iconsmind-Window\" => \"iconsmind-Window\"), \n\t\tarray(\"iconsmind-Windows\" => \"iconsmind-Windows\"), \n\t\tarray(\"iconsmind-Windows-Microsoft\" => \"iconsmind-Windows-Microsoft\"), \n\t\tarray(\"iconsmind-Wine-Bottle\" => \"iconsmind-Wine-Bottle\"), \n\t\tarray(\"iconsmind-Wine-Glass\" => \"iconsmind-Wine-Glass\"), \n\t\tarray(\"iconsmind-Wink\" => \"iconsmind-Wink\"), \n\t\tarray(\"iconsmind-Wireless\" => \"iconsmind-Wireless\"), \n\t\tarray(\"iconsmind-Witch\" => \"iconsmind-Witch\"), \n\t\tarray(\"iconsmind-Witch-Hat\" => \"iconsmind-Witch-Hat\"), \n\t\tarray(\"iconsmind-Wizard\" => \"iconsmind-Wizard\"), \n\t\tarray(\"iconsmind-Wolf\" => \"iconsmind-Wolf\"), \n\t\tarray(\"iconsmind-Womans-Underwear\" => \"iconsmind-Womans-Underwear\"), \n\t\tarray(\"iconsmind-Womans-Underwear2\" => \"iconsmind-Womans-Underwear2\"), \n\t\tarray(\"iconsmind-Worker-Clothes\" => \"iconsmind-Worker-Clothes\"), \n\t\tarray(\"iconsmind-Wreath\" => \"iconsmind-Wreath\"), \n\t\tarray(\"iconsmind-Zebra\" => \"iconsmind-Zebra\"), \n\t\tarray(\"iconsmind-Zombie\" => \"iconsmind-Zombie\")\n\t);\n\treturn array_merge( $icons, $iconsmind_icons );\n}",
"private function getIconForType($type)\n {\n switch ($type) {\n case Location::MANUSCRIPT:\n return 'mdi-content-create';\n\n case Location::BOOK:\n return 'mdi-action-book';\n\n case Location::URL:\n return 'mdi-av-web';\n\n case Location::MAGAZINE:\n return 'mdi-action-account-box';\n }\n }",
"public function menu_icon() {\n\n\t\t$menu_cap = apply_filters( 'wpforms_manage_cap', 'manage_options' );\n\n\t\tif ( ! current_user_can( $menu_cap ) ) {\n\t\t\treturn;\n\t\t}\n\t\t?>\n\t\t\n\t\t<?php\n\t}"
] | [
"0.6967473",
"0.6921403",
"0.6221058",
"0.61857504",
"0.6142463",
"0.6105862",
"0.60932505",
"0.60763544",
"0.60668695",
"0.57973635",
"0.57801956",
"0.57801956",
"0.57801956",
"0.5715502",
"0.5715502",
"0.5701184",
"0.56366324",
"0.5615017",
"0.5590119",
"0.55843",
"0.5576714",
"0.5561155",
"0.55600625",
"0.55529624",
"0.55441016",
"0.5508601",
"0.5443794",
"0.5433188",
"0.5419369",
"0.5409441"
] | 0.78276557 | 0 |
Map icons panel in Location form | function gmw_ps_location_form_map_icons_panel( $form ) {
$addon_data = gmw_get_addon_data( $form->slug );
$prefix = $addon_data['prefix'];
// get saved icon
$saved_icon = ! empty( $form->saved_location->map_icon ) ? $form->saved_location->map_icon : '_default.png';
?>
<div id="map_icons-tab-panel" class="section-wrapper map-icons">
<?php do_action( 'gmw_lf_' . $prefix . '_map_icons_section_start', $form ); ?>
<div class="icons-wrapper">
<?php
$icons_data = gmw_get_icons();
if ( ! empty( $icons_data[ $prefix . '_map_icons' ] ) ) {
$map_icons = $icons_data[ $prefix . '_map_icons' ]['all_icons'];
$icons_url = $icons_data[ $prefix . '_map_icons' ]['url'];
$cic = 1;
foreach ( $map_icons as $map_icon ) {
$checked = ( ( $saved_icon == $map_icon ) || 1 === $cic ) ? 'checked="checked"' : '';
echo '<label>';
echo '<input type="radio" name="gmw_location_form[map_icon]" value="' . esc_attr( $map_icon ) . '" ' . $checked . ' />';
echo '<img src="' . esc_url( $icons_url . $map_icon ) . '" />';
echo '</label>';
$cic++;
}
}
?>
</div>
<?php do_action( 'gmw_lf_' . $prefix . '_map_icons_section_end', $form ); ?>
</div>
<?php
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"abstract protected function form_icon();",
"function gmw_ps_location_form_map_icons_tab( $tabs ) {\n\n\t$tabs['map_icons'] = array(\n\t\t'label' => __( 'Map Marker ', 'gmw-premium-settings' ),\n\t\t'icon' => 'gmw-icon-map-pin',\n\t\t'priority' => 30,\n\t);\n\n\treturn $tabs;\n}",
"function js_icons() {\n\t\t/* If we're in the backend, get an absolute path. Frontend can use a relative path. */\n\t\tif (TYPO3_MODE=='BE')\t{\n\t\t\t$path = t3lib_div::getIndpEnv('TYPO3_SITE_URL').t3lib_extMgm::siteRelPath('wec_map');\n\t\t} else {\n\t\t\t$path = t3lib_extMgm::siteRelPath('wec_map');\n\t\t}\n\n\t\t// add default icon set\n\t\t$this->icons[] = '\nWecMap.addIcon(\"' . $this->mapName .'\", \"default\", \"'.$path.'images/mm_20_red.png\", \"'.$path.'images/mm_20_shadow.png\", new GSize(12, 20), new GSize(22, 20), new GPoint(6, 20), new GPoint(5, 1));\n\t\t\t';\n\t\treturn implode(\"\\n\", $this->icons);\n\t}",
"function rec_epl_address_bar_map_icon_callback() { ?>\n\t<span class=\"epl-map-button-wrapper map-view\">\n\t\t<?php if ( is_single() ) { ?>\n\t\t\t<a class=\"epl-button epl-map-button\" href=\"#epl-advanced-map-single\">Map</a>\n\t\t<?php } else { ?>\n\t\t\t<a class=\"epl-button epl-map-button\" href=\"<?php the_permalink() ?>#epl-advanced-map-single\">Map</a>\n\t\t<?php } ?>\n\t</span>\n<?php\n}",
"private function augment_settings_map_markers() {\n\n\t\t$related_to = 'map_end_icon,default_icons';\n\t\t$new_options[ 'default_icons' ] = array( 'related_to' => $related_to , 'type' => 'checkbox' );\n\n\t\t$this->attach_to_slp( $new_options , array( 'page'=> 'slp_experience','section' => 'map', 'group' => 'markers' ) );\n\t}",
"function MAPS_geticonForm($icon = array()) {\n\n global $_CONF, $_TABLES, $_MAPS_CONF, $LANG_MAPS_1, $LANG_configselects, $LANG_ACCESS, $_USER, $_GROUPS, $_SCRIPTS;\n \n\t$display = COM_startBlock('<h1>' . $LANG_MAPS_1['icon_edit'] . '</h1>');\n\t\n\t$template = COM_newTemplate($_CONF['path'] . 'plugins/maps/templates');\n\t$template->set_file(array('icon' => 'icon_form.thtml'));\n\t$template->set_var('yes', $LANG_MAPS_1['yes']);\n\t$template->set_var('no', $LANG_MAPS_1['no']);\n\t\n\t//informations\n\t$template->set_var('icon_presentation', $LANG_MAPS_1['icon_presentation']);\n\t$template->set_var('informations', $LANG_MAPS_1['informations']);\n\t$template->set_var('name_label', $LANG_MAPS_1['icon_name_label']);\n\t$template->set_var('name', stripslashes($icon['icon_name']));\n\t$template->set_var('required_field', $LANG_MAPS_1['required_field']);\n\t\n\t//Image\n\t$template->set_var('image', $LANG_MAPS_1['image']);\n\t$template->set_var('image_message', $LANG_MAPS_1['image_message']);\n\t$icon_image = $_MAPS_CONF['path_icons_images'] . $icon['icon_image'];\n\tif (is_file($icon_image)) {\n\t\t$template->set_var('icon_image','<p>' . $LANG_MAPS_1['image_replace'] . '<p><p><img src=\"' . $_MAPS_CONF['images_icons_url'] . $icon['icon_image'] .'\" alt=\"' . $icon['icon_image'] . '\" /></p>');\n\t} else {\n\t\t$template->set_var('icon_image', '');\n\t}\n\t\n\t//Form validation\n\t$template->set_var('save_button', $LANG_MAPS_1['save_button']);\n\t\n\tif ($icon['icon_id'] > 0) {\n\t\t$template->set_var('delete_button', '<option value=\"delete\">' . $LANG_MAPS_1['delete_button'] . '</option>');\n\t} else {\n\t\t$template->set_var('delete_button', '');\n\t}\n\t$template->set_var('ok_button', $LANG_MAPS_1['ok_button']);\n\tif (isset($icon['icon_id']) && $icon['icon_id'] != '') {\n\t\t$template->set_var('id', '<input type=\"hidden\" name=\"id\" value=\"' . $icon['icon_id'] .'\" />');\n\t} else {\n\t\t$template->set_var('id', '');\n\t}\n\t\n\t$display .= $template->parse('output', 'icon');\n\n\n $display .= COM_endBlock();\n\n return $display;\n}",
"public function icons() {\n\t\trequire_once FUSION_BUILDER_PLUGIN_DIR . 'inc/admin-screens/icons.php';\n\t}",
"function ca_elements_icon_map( $icon_map ) {\n\t\t$icon_map['si_custom_elements'] = CA_EXTENSION_URL . '/assets/svg/icons.svg';\n\t\treturn $icon_map;\n\t}",
"function gmw_ps_modify_group_map_icon( $args, $group, $gmw ) {\n\n $map_icon = '_default.png';\n\n //set default map icon usage if not exist\n if ( ! isset( $gmw['map_markers']['usage'] ) ) {\n $usage = $gmw['map_markers']['usage'] = 'global';\n } else {\n $usage = $gmw['map_markers']['usage'];\n }\n\n $global_icon = isset( $gmw['map_markers']['default_marker'] ) ? $gmw['map_markers']['default_marker'] : '_default.png';\n \n //if same global map icon\n if ( $usage == 'global' ) {\n $map_icon = $gmw['map_markers']['default_marker'];\n //per group map icon \n } elseif ( $usage == 'per_group' && isset( $group->map_icon ) ) {\n $map_icon = $group->map_icon;\n //avatar map icon\n } elseif ( $usage == 'avatar' ) {\n $avatar = bp_core_fetch_avatar( array( \n 'item_id' => $group->id,\n 'object' => 'group', \n 'type' => 'thumb', \n 'width' => 30, \n 'height' => 30, \n 'html' => false \n ) );\n\n $map_icon = array(\n 'url' => ( $avatar ) ? $avatar : GMW_PS_URL . '/friends/assets/ map-icons/_no_avatar.png',\n 'scaledSize' => array(\n 'height' => 30,\n 'width' => 30\n )\n );\n\n //oterwise, default map icon \n } else {\n $map_icon = '_default.png';\n }\n \n //generate the map icon\n if ( $usage != 'avatar' ) {\n\n if ( $map_icon == '_default.png' ) {\n $map_icon = 'https://chart.googleapis.com/chart?chst=d_map_pin_letter&chld='. $group->location_count.'|FF776B|000000';\n } else {\n $icons = gmw_get_icons();\n $map_icon = $icons['gl_map_icons']['url'].$map_icon;\n }\n }\n\n $args['map_icon'] = $map_icon;\n\n return $args;\n}",
"public function get_icon() {\r\n return 'eicon-google-maps';\r\n }",
"public function slcr_add_new_icon_set_to_iconbox() { \n\t\t\t$icons_name = \"flaticon\";\n\t\t $param = WPBMap::getParam( 'vc_icon', 'type' );\n\t $param['value'][__( 'Custom Pack', 'moppers' )] = $icons_name;\n\t vc_update_shortcode_param( 'vc_icon', $param ); \n\t // list of icons that add \n\t add_filter( 'vc_iconpicker-type-flaticon', array( $this, 'slcr_add_icon_array' ), 15 ); \n\t add_action( 'vc_base_register_front_css', array( $this, 'slcr_vc_iconpicker_base_register_css' ), 15 );\n \t\tadd_action( 'vc_base_register_admin_css', array( $this, 'slcr_vc_iconpicker_base_register_css' ), 15 );\n\n \t\tadd_action( 'vc_backend_editor_enqueue_js_css', array( $this, 'slcr_vc_iconpicker_editor_css' ), 15 );\n \t\tadd_action( 'vc_frontend_editor_enqueue_js_css', array( $this, 'slcr_vc_iconpicker_editor_css' ), 15 );\n }",
"public function populateMapIconDirectory() {\n\t\t$iconPath = 'fileadmin/ext/mymap/Resources/Public/Icons/';\n \t\tif (!is_dir(Environment::getPublicPath() . '/' . $iconPath)) {\n $fileSystem = new FileSystem();\n if (Environment::getPublicPath() != Environment::getProjectPath()) {\n // we are in composerMode\n \t\t\t$sourceDir = Environment::getProjectPath() . '/vendor/wsr/mymap/Resources/Public/';\n } else {\n $sourceDir = Environment::getPublicPath() .'/typo3conf/ext/mymap/Resources/Public/';\n }\n $fileSystem->mirror($sourceDir, 'fileadmin/ext/mymap/Resources/Public/');\n\t\t\t$this->addFlashMessage('Directory ' . $iconPath . ' created for use with own mapIcons!', '', \\TYPO3\\CMS\\Core\\Messaging\\AbstractMessage::INFO);\n }\n\t}",
"function MAPS_listIcons()\n{\n global $_CONF, $_TABLES, $_IMAGE_TYPE, $LANG_ADMIN, $LANG_MAPS_1;\n\n require_once $_CONF['path_system'] . 'lib-admin.php';\n\n $retval = '';\n\n $header_arr = array( // display 'text' and use table field 'field'\n array('text' => $LANG_MAPS_1['id'], 'field' => 'icon_id', 'sort' => true),\n array('text' => $LANG_MAPS_1['icons'], 'field' => 'icon_name', 'sort' => true),\n array('text' => $LANG_MAPS_1['image'], 'field' => 'icon_image', 'sort' => false),\n );\n $defsort_arr = array('field' => 'icon_name', 'direction' => 'asc');\n\n $text_arr = array(\n 'has_extras' => true,\n 'form_url' => $_CONF['site_admin_url'] . '/plugins/maps/icons.php'\n );\n\t\n\t$sql = \"SELECT\n\t *\n FROM {$_TABLES['maps_map_icons']}\n\t\t\tWHERE 1=1\";\n\n $query_arr = array(\n 'sql' => $sql,\n\t\t'query_fields' => array('icon_name'),\n 'default_filter' => ''\n );\n\n $retval .= ADMIN_list('icons', 'MAPS_getListField_icons',\n $header_arr, $text_arr, $query_arr, $defsort_arr);\n\n return $retval;\n}",
"protected function get__icon()\n\t{\n\t\treturn 'camera';\n\t}",
"public function getIcon();",
"public function getIcon();",
"public function getIconFarm();",
"function atto_matrix_get_fontawesome_icon_map() {\n return [\n 'atto_matrix:icon' => 'fa-th'\n ];\n}",
"function cr_location_map_meta_box() {\n\n\t$screens = array( 'location' );\n\n\tforeach ( $screens as $screen ) {\n\n\t\tadd_meta_box( 'myplugin_sectionid', __( 'Карта', 'myplugin_textdomain' ), 'cr_location_map_meta_box_callback', $screen,'normal' ,'high');\n\t}\n}",
"function vc_iconpicker_type_iconsmind( $icons ) {\n\t$iconsmind_icons = array(\n\t\tarray(\"iconsmind-Aquarius\" => \"iconsmind-Aquarius\"), \n\t\tarray(\"iconsmind-Aquarius-2\" => \"iconsmind-Aquarius-2\"), \n\t\tarray(\"iconsmind-Aries\" => \"iconsmind-Aries\"), \n\t\tarray(\"iconsmind-Aries-2\" => \"iconsmind-Aries-2\"), \n\t\tarray(\"iconsmind-Cancer\" => \"iconsmind-Cancer\"), \n\t\tarray(\"iconsmind-Cancer-2\" => \"iconsmind-Cancer-2\"), \n\t\tarray(\"iconsmind-Capricorn\" => \"iconsmind-Capricorn\"), \n\t\tarray(\"iconsmind-Capricorn-2\" => \"iconsmind-Capricorn-2\"), \n\t\tarray(\"iconsmind-Gemini\" => \"iconsmind-Gemini\"), \n\t\tarray(\"iconsmind-Gemini-2\" => \"iconsmind-Gemini-2\"), \n\t\tarray(\"iconsmind-Leo\" => \"iconsmind-Leo\"), \n\t\tarray(\"iconsmind-Leo-2\" => \"iconsmind-Leo-2\"), \n\t\tarray(\"iconsmind-Libra\" => \"iconsmind-Libra\"), \n\t\tarray(\"iconsmind-Libra-2\" => \"iconsmind-Libra-2\"), \n\t\tarray(\"iconsmind-Pisces\" => \"iconsmind-Pisces\"), \n\t\tarray(\"iconsmind-Pisces-2\" => \"iconsmind-Pisces-2\"), \n\t\tarray(\"iconsmind-Sagittarus\" => \"iconsmind-Sagittarus\"), \n\t\tarray(\"iconsmind-Sagittarus-2\" => \"iconsmind-Sagittarus-2\"), \n\t\tarray(\"iconsmind-Scorpio\" => \"iconsmind-Scorpio\"), \n\t\tarray(\"iconsmind-Scorpio-2\" => \"iconsmind-Scorpio-2\"), \n\t\tarray(\"iconsmind-Taurus\" => \"iconsmind-Taurus\"), \n\t\tarray(\"iconsmind-Taurus-2\" => \"iconsmind-Taurus-2\"), \n\t\tarray(\"iconsmind-Virgo\" => \"iconsmind-Virgo\"), \n\t\tarray(\"iconsmind-Virgo-2\" => \"iconsmind-Virgo-2\"), \n\t\tarray(\"iconsmind-Add-Window\" => \"iconsmind-Add-Window\"), \n\t\tarray(\"iconsmind-Approved-Window\" => \"iconsmind-Approved-Window\"), \n\t\tarray(\"iconsmind-Block-Window\" => \"iconsmind-Block-Window\"), \n\t\tarray(\"iconsmind-Close-Window\" => \"iconsmind-Close-Window\"), \n\t\tarray(\"iconsmind-Code-Window\" => \"iconsmind-Code-Window\"), \n\t\tarray(\"iconsmind-Delete-Window\" => \"iconsmind-Delete-Window\"), \n\t\tarray(\"iconsmind-Download-Window\" => \"iconsmind-Download-Window\"), \n\t\tarray(\"iconsmind-Duplicate-Window\" => \"iconsmind-Duplicate-Window\"), \n\t\tarray(\"iconsmind-Error-404Window\" => \"iconsmind-Error-404Window\"), \n\t\tarray(\"iconsmind-Favorite-Window\" => \"iconsmind-Favorite-Window\"), \n\t\tarray(\"iconsmind-Font-Window\" => \"iconsmind-Font-Window\"), \n\t\tarray(\"iconsmind-Full-ViewWindow\" => \"iconsmind-Full-ViewWindow\"), \n\t\tarray(\"iconsmind-Height-Window\" => \"iconsmind-Height-Window\"), \n\t\tarray(\"iconsmind-Home-Window\" => \"iconsmind-Home-Window\"), \n\t\tarray(\"iconsmind-Info-Window\" => \"iconsmind-Info-Window\"), \n\t\tarray(\"iconsmind-Loading-Window\" => \"iconsmind-Loading-Window\"), \n\t\tarray(\"iconsmind-Lock-Window\" => \"iconsmind-Lock-Window\"), \n\t\tarray(\"iconsmind-Love-Window\" => \"iconsmind-Love-Window\"), \n\t\tarray(\"iconsmind-Maximize-Window\" => \"iconsmind-Maximize-Window\"), \n\t\tarray(\"iconsmind-Minimize-Maximize-Close-Window\" => \"iconsmind-Minimize-Maximize-Close-Window\"), \n\t\tarray(\"iconsmind-Minimize-Window\" => \"iconsmind-Minimize-Window\"), \n\t\tarray(\"iconsmind-Navigation-LeftWindow\" => \"iconsmind-Navigation-LeftWindow\"), \n\t\tarray(\"iconsmind-Navigation-RightWindow\" => \"iconsmind-Navigation-RightWindow\"), \n\t\tarray(\"iconsmind-Network-Window\" => \"iconsmind-Network-Window\"), \n\t\tarray(\"iconsmind-New-Tab\" => \"iconsmind-New-Tab\"), \n\t\tarray(\"iconsmind-One-Window\" => \"iconsmind-One-Window\"), \n\t\tarray(\"iconsmind-Refresh-Window\" => \"iconsmind-Refresh-Window\"), \n\t\tarray(\"iconsmind-Remove-Window\" => \"iconsmind-Remove-Window\"), \n\t\tarray(\"iconsmind-Restore-Window\" => \"iconsmind-Restore-Window\"), \n\t\tarray(\"iconsmind-Save-Window\" => \"iconsmind-Save-Window\"), \n\t\tarray(\"iconsmind-Settings-Window\" => \"iconsmind-Settings-Window\"), \n\t\tarray(\"iconsmind-Share-Window\" => \"iconsmind-Share-Window\"), \n\t\tarray(\"iconsmind-Sidebar-Window\" => \"iconsmind-Sidebar-Window\"), \n\t\tarray(\"iconsmind-Split-FourSquareWindow\" => \"iconsmind-Split-FourSquareWindow\"), \n\t\tarray(\"iconsmind-Split-Horizontal\" => \"iconsmind-Split-Horizontal\"), \n\t\tarray(\"iconsmind-Split-Horizontal2Window\" => \"iconsmind-Split-Horizontal2Window\"), \n\t\tarray(\"iconsmind-Split-Vertical\" => \"iconsmind-Split-Vertical\"), \n\t\tarray(\"iconsmind-Split-Vertical2\" => \"iconsmind-Split-Vertical2\"), \n\t\tarray(\"iconsmind-Split-Window\" => \"iconsmind-Split-Window\"), \n\t\tarray(\"iconsmind-Time-Window\" => \"iconsmind-Time-Window\"), \n\t\tarray(\"iconsmind-Touch-Window\" => \"iconsmind-Touch-Window\"), \n\t\tarray(\"iconsmind-Two-Windows\" => \"iconsmind-Two-Windows\"), \n\t\tarray(\"iconsmind-Upload-Window\" => \"iconsmind-Upload-Window\"), \n\t\tarray(\"iconsmind-URL-Window\" => \"iconsmind-URL-Window\"), \n\t\tarray(\"iconsmind-Warning-Window\" => \"iconsmind-Warning-Window\"), \n\t\tarray(\"iconsmind-Width-Window\" => \"iconsmind-Width-Window\"), \n\t\tarray(\"iconsmind-Window-2\" => \"iconsmind-Window-2\"), \n\t\tarray(\"iconsmind-Windows-2\" => \"iconsmind-Windows-2\"), \n\t\tarray(\"iconsmind-Autumn\" => \"iconsmind-Autumn\"), \n\t\tarray(\"iconsmind-Celsius\" => \"iconsmind-Celsius\"), \n\t\tarray(\"iconsmind-Cloud-Hail\" => \"iconsmind-Cloud-Hail\"), \n\t\tarray(\"iconsmind-Cloud-Moon\" => \"iconsmind-Cloud-Moon\"), \n\t\tarray(\"iconsmind-Cloud-Rain\" => \"iconsmind-Cloud-Rain\"), \n\t\tarray(\"iconsmind-Cloud-Snow\" => \"iconsmind-Cloud-Snow\"), \n\t\tarray(\"iconsmind-Cloud-Sun\" => \"iconsmind-Cloud-Sun\"), \n\t\tarray(\"iconsmind-Clouds-Weather\" => \"iconsmind-Clouds-Weather\"), \n\t\tarray(\"iconsmind-Cloud-Weather\" => \"iconsmind-Cloud-Weather\"), \n\t\tarray(\"iconsmind-Drop\" => \"iconsmind-Drop\"), \n\t\tarray(\"iconsmind-Dry\" => \"iconsmind-Dry\"), \n\t\tarray(\"iconsmind-Fahrenheit\" => \"iconsmind-Fahrenheit\"), \n\t\tarray(\"iconsmind-Fog-Day\" => \"iconsmind-Fog-Day\"), \n\t\tarray(\"iconsmind-Fog-Night\" => \"iconsmind-Fog-Night\"), \n\t\tarray(\"iconsmind-Full-Moon\" => \"iconsmind-Full-Moon\"), \n\t\tarray(\"iconsmind-Half-Moon\" => \"iconsmind-Half-Moon\"), \n\t\tarray(\"iconsmind-No-Drop\" => \"iconsmind-No-Drop\"), \n\t\tarray(\"iconsmind-Rainbow\" => \"iconsmind-Rainbow\"), \n\t\tarray(\"iconsmind-Rainbow-2\" => \"iconsmind-Rainbow-2\"), \n\t\tarray(\"iconsmind-Rain-Drop\" => \"iconsmind-Rain-Drop\"), \n\t\tarray(\"iconsmind-Sleet\" => \"iconsmind-Sleet\"), \n\t\tarray(\"iconsmind-Snow\" => \"iconsmind-Snow\"), \n\t\tarray(\"iconsmind-Snowflake\" => \"iconsmind-Snowflake\"), \n\t\tarray(\"iconsmind-Snowflake-2\" => \"iconsmind-Snowflake-2\"), \n\t\tarray(\"iconsmind-Snowflake-3\" => \"iconsmind-Snowflake-3\"), \n\t\tarray(\"iconsmind-Snow-Storm\" => \"iconsmind-Snow-Storm\"), \n\t\tarray(\"iconsmind-Spring\" => \"iconsmind-Spring\"), \n\t\tarray(\"iconsmind-Storm\" => \"iconsmind-Storm\"), \n\t\tarray(\"iconsmind-Summer\" => \"iconsmind-Summer\"), \n\t\tarray(\"iconsmind-Sun\" => \"iconsmind-Sun\"), \n\t\tarray(\"iconsmind-Sun-CloudyRain\" => \"iconsmind-Sun-CloudyRain\"), \n\t\tarray(\"iconsmind-Sunrise\" => \"iconsmind-Sunrise\"), \n\t\tarray(\"iconsmind-Sunset\" => \"iconsmind-Sunset\"), \n\t\tarray(\"iconsmind-Temperature\" => \"iconsmind-Temperature\"), \n\t\tarray(\"iconsmind-Temperature-2\" => \"iconsmind-Temperature-2\"), \n\t\tarray(\"iconsmind-Thunder\" => \"iconsmind-Thunder\"), \n\t\tarray(\"iconsmind-Thunderstorm\" => \"iconsmind-Thunderstorm\"), \n\t\tarray(\"iconsmind-Twister\" => \"iconsmind-Twister\"), \n\t\tarray(\"iconsmind-Umbrella-2\" => \"iconsmind-Umbrella-2\"), \n\t\tarray(\"iconsmind-Umbrella-3\" => \"iconsmind-Umbrella-3\"), \n\t\tarray(\"iconsmind-Wave\" => \"iconsmind-Wave\"), \n\t\tarray(\"iconsmind-Wave-2\" => \"iconsmind-Wave-2\"), \n\t\tarray(\"iconsmind-Windsock\" => \"iconsmind-Windsock\"), \n\t\tarray(\"iconsmind-Wind-Turbine\" => \"iconsmind-Wind-Turbine\"), \n\t\tarray(\"iconsmind-Windy\" => \"iconsmind-Windy\"), \n\t\tarray(\"iconsmind-Winter\" => \"iconsmind-Winter\"), \n\t\tarray(\"iconsmind-Winter-2\" => \"iconsmind-Winter-2\"), \n\t\tarray(\"iconsmind-Cinema\" => \"iconsmind-Cinema\"), \n\t\tarray(\"iconsmind-Clapperboard-Close\" => \"iconsmind-Clapperboard-Close\"), \n\t\tarray(\"iconsmind-Clapperboard-Open\" => \"iconsmind-Clapperboard-Open\"), \n\t\tarray(\"iconsmind-D-Eyeglasses\" => \"iconsmind-D-Eyeglasses\"), \n\t\tarray(\"iconsmind-D-Eyeglasses2\" => \"iconsmind-D-Eyeglasses2\"), \n\t\tarray(\"iconsmind-Director\" => \"iconsmind-Director\"), \n\t\tarray(\"iconsmind-Film\" => \"iconsmind-Film\"), \n\t\tarray(\"iconsmind-Film-Strip\" => \"iconsmind-Film-Strip\"), \n\t\tarray(\"iconsmind-Film-Video\" => \"iconsmind-Film-Video\"), \n\t\tarray(\"iconsmind-Flash-Video\" => \"iconsmind-Flash-Video\"), \n\t\tarray(\"iconsmind-HD-Video\" => \"iconsmind-HD-Video\"), \n\t\tarray(\"iconsmind-Movie\" => \"iconsmind-Movie\"), \n\t\tarray(\"iconsmind-Old-TV\" => \"iconsmind-Old-TV\"), \n\t\tarray(\"iconsmind-Reel\" => \"iconsmind-Reel\"), \n\t\tarray(\"iconsmind-Tripod-andVideo\" => \"iconsmind-Tripod-andVideo\"), \n\t\tarray(\"iconsmind-TV\" => \"iconsmind-TV\"), \n\t\tarray(\"iconsmind-Video\" => \"iconsmind-Video\"), \n\t\tarray(\"iconsmind-Video-2\" => \"iconsmind-Video-2\"), \n\t\tarray(\"iconsmind-Video-3\" => \"iconsmind-Video-3\"), \n\t\tarray(\"iconsmind-Video-4\" => \"iconsmind-Video-4\"), \n\t\tarray(\"iconsmind-Video-5\" => \"iconsmind-Video-5\"), \n\t\tarray(\"iconsmind-Video-6\" => \"iconsmind-Video-6\"), \n\t\tarray(\"iconsmind-Video-Len\" => \"iconsmind-Video-Len\"), \n\t\tarray(\"iconsmind-Video-Len2\" => \"iconsmind-Video-Len2\"), \n\t\tarray(\"iconsmind-Video-Photographer\" => \"iconsmind-Video-Photographer\"), \n\t\tarray(\"iconsmind-Video-Tripod\" => \"iconsmind-Video-Tripod\"), \n\t\tarray(\"iconsmind-Affiliate\" => \"iconsmind-Affiliate\"), \n\t\tarray(\"iconsmind-Background\" => \"iconsmind-Background\"), \n\t\tarray(\"iconsmind-Billing\" => \"iconsmind-Billing\"), \n\t\tarray(\"iconsmind-Control\" => \"iconsmind-Control\"), \n\t\tarray(\"iconsmind-Control-2\" => \"iconsmind-Control-2\"), \n\t\tarray(\"iconsmind-Crop-2\" => \"iconsmind-Crop-2\"), \n\t\tarray(\"iconsmind-Dashboard\" => \"iconsmind-Dashboard\"), \n\t\tarray(\"iconsmind-Duplicate-Layer\" => \"iconsmind-Duplicate-Layer\"), \n\t\tarray(\"iconsmind-Filter-2\" => \"iconsmind-Filter-2\"), \n\t\tarray(\"iconsmind-Gear\" => \"iconsmind-Gear\"), \n\t\tarray(\"iconsmind-Gear-2\" => \"iconsmind-Gear-2\"), \n\t\tarray(\"iconsmind-Gears\" => \"iconsmind-Gears\"), \n\t\tarray(\"iconsmind-Gears-2\" => \"iconsmind-Gears-2\"), \n\t\tarray(\"iconsmind-Information\" => \"iconsmind-Information\"), \n\t\tarray(\"iconsmind-Layer-Backward\" => \"iconsmind-Layer-Backward\"), \n\t\tarray(\"iconsmind-Layer-Forward\" => \"iconsmind-Layer-Forward\"), \n\t\tarray(\"iconsmind-Library\" => \"iconsmind-Library\"), \n\t\tarray(\"iconsmind-Loading\" => \"iconsmind-Loading\"), \n\t\tarray(\"iconsmind-Loading-2\" => \"iconsmind-Loading-2\"), \n\t\tarray(\"iconsmind-Loading-3\" => \"iconsmind-Loading-3\"), \n\t\tarray(\"iconsmind-Magnifi-Glass\" => \"iconsmind-Magnifi-Glass\"), \n\t\tarray(\"iconsmind-Magnifi-Glass2\" => \"iconsmind-Magnifi-Glass2\"), \n\t\tarray(\"iconsmind-Magnifi-Glass22\" => \"iconsmind-Magnifi-Glass22\"), \n\t\tarray(\"iconsmind-Mouse-Pointer\" => \"iconsmind-Mouse-Pointer\"), \n\t\tarray(\"iconsmind-On-off\" => \"iconsmind-On-off\"), \n\t\tarray(\"iconsmind-On-Off-2\" => \"iconsmind-On-Off-2\"), \n\t\tarray(\"iconsmind-On-Off-3\" => \"iconsmind-On-Off-3\"), \n\t\tarray(\"iconsmind-Preview\" => \"iconsmind-Preview\"), \n\t\tarray(\"iconsmind-Pricing\" => \"iconsmind-Pricing\"), \n\t\tarray(\"iconsmind-Profile\" => \"iconsmind-Profile\"), \n\t\tarray(\"iconsmind-Project\" => \"iconsmind-Project\"), \n\t\tarray(\"iconsmind-Rename\" => \"iconsmind-Rename\"), \n\t\tarray(\"iconsmind-Repair\" => \"iconsmind-Repair\"), \n\t\tarray(\"iconsmind-Save\" => \"iconsmind-Save\"), \n\t\tarray(\"iconsmind-Scroller\" => \"iconsmind-Scroller\"), \n\t\tarray(\"iconsmind-Scroller-2\" => \"iconsmind-Scroller-2\"), \n\t\tarray(\"iconsmind-Share\" => \"iconsmind-Share\"), \n\t\tarray(\"iconsmind-Statistic\" => \"iconsmind-Statistic\"), \n\t\tarray(\"iconsmind-Support\" => \"iconsmind-Support\"), \n\t\tarray(\"iconsmind-Switch\" => \"iconsmind-Switch\"), \n\t\tarray(\"iconsmind-Upgrade\" => \"iconsmind-Upgrade\"), \n\t\tarray(\"iconsmind-User\" => \"iconsmind-User\"), \n\t\tarray(\"iconsmind-Wrench\" => \"iconsmind-Wrench\"), \n\t\tarray(\"iconsmind-Air-Balloon\" => \"iconsmind-Air-Balloon\"), \n\t\tarray(\"iconsmind-Airship\" => \"iconsmind-Airship\"), \n\t\tarray(\"iconsmind-Bicycle\" => \"iconsmind-Bicycle\"), \n\t\tarray(\"iconsmind-Bicycle-2\" => \"iconsmind-Bicycle-2\"), \n\t\tarray(\"iconsmind-Bike-Helmet\" => \"iconsmind-Bike-Helmet\"), \n\t\tarray(\"iconsmind-Bus\" => \"iconsmind-Bus\"), \n\t\tarray(\"iconsmind-Bus-2\" => \"iconsmind-Bus-2\"), \n\t\tarray(\"iconsmind-Cable-Car\" => \"iconsmind-Cable-Car\"), \n\t\tarray(\"iconsmind-Car\" => \"iconsmind-Car\"), \n\t\tarray(\"iconsmind-Car-2\" => \"iconsmind-Car-2\"), \n\t\tarray(\"iconsmind-Car-3\" => \"iconsmind-Car-3\"), \n\t\tarray(\"iconsmind-Car-Wheel\" => \"iconsmind-Car-Wheel\"), \n\t\tarray(\"iconsmind-Gaugage\" => \"iconsmind-Gaugage\"), \n\t\tarray(\"iconsmind-Gaugage-2\" => \"iconsmind-Gaugage-2\"), \n\t\tarray(\"iconsmind-Helicopter\" => \"iconsmind-Helicopter\"), \n\t\tarray(\"iconsmind-Helicopter-2\" => \"iconsmind-Helicopter-2\"), \n\t\tarray(\"iconsmind-Helmet\" => \"iconsmind-Helmet\"), \n\t\tarray(\"iconsmind-Jeep\" => \"iconsmind-Jeep\"), \n\t\tarray(\"iconsmind-Jeep-2\" => \"iconsmind-Jeep-2\"), \n\t\tarray(\"iconsmind-Jet\" => \"iconsmind-Jet\"), \n\t\tarray(\"iconsmind-Motorcycle\" => \"iconsmind-Motorcycle\"), \n\t\tarray(\"iconsmind-Plane\" => \"iconsmind-Plane\"), \n\t\tarray(\"iconsmind-Plane-2\" => \"iconsmind-Plane-2\"), \n\t\tarray(\"iconsmind-Road\" => \"iconsmind-Road\"), \n\t\tarray(\"iconsmind-Road-2\" => \"iconsmind-Road-2\"), \n\t\tarray(\"iconsmind-Rocket\" => \"iconsmind-Rocket\"), \n\t\tarray(\"iconsmind-Sailing-Ship\" => \"iconsmind-Sailing-Ship\"), \n\t\tarray(\"iconsmind-Scooter\" => \"iconsmind-Scooter\"), \n\t\tarray(\"iconsmind-Scooter-Front\" => \"iconsmind-Scooter-Front\"), \n\t\tarray(\"iconsmind-Ship\" => \"iconsmind-Ship\"), \n\t\tarray(\"iconsmind-Ship-2\" => \"iconsmind-Ship-2\"), \n\t\tarray(\"iconsmind-Skateboard\" => \"iconsmind-Skateboard\"), \n\t\tarray(\"iconsmind-Skateboard-2\" => \"iconsmind-Skateboard-2\"), \n\t\tarray(\"iconsmind-Taxi\" => \"iconsmind-Taxi\"), \n\t\tarray(\"iconsmind-Taxi-2\" => \"iconsmind-Taxi-2\"), \n\t\tarray(\"iconsmind-Taxi-Sign\" => \"iconsmind-Taxi-Sign\"), \n\t\tarray(\"iconsmind-Tractor\" => \"iconsmind-Tractor\"), \n\t\tarray(\"iconsmind-traffic-Light\" => \"iconsmind-traffic-Light\"), \n\t\tarray(\"iconsmind-Traffic-Light2\" => \"iconsmind-Traffic-Light2\"), \n\t\tarray(\"iconsmind-Train\" => \"iconsmind-Train\"), \n\t\tarray(\"iconsmind-Train-2\" => \"iconsmind-Train-2\"), \n\t\tarray(\"iconsmind-Tram\" => \"iconsmind-Tram\"), \n\t\tarray(\"iconsmind-Truck\" => \"iconsmind-Truck\"), \n\t\tarray(\"iconsmind-Yacht\" => \"iconsmind-Yacht\"), \n\t\tarray(\"iconsmind-Double-Tap\" => \"iconsmind-Double-Tap\"), \n\t\tarray(\"iconsmind-Drag\" => \"iconsmind-Drag\"), \n\t\tarray(\"iconsmind-Drag-Down\" => \"iconsmind-Drag-Down\"), \n\t\tarray(\"iconsmind-Drag-Left\" => \"iconsmind-Drag-Left\"), \n\t\tarray(\"iconsmind-Drag-Right\" => \"iconsmind-Drag-Right\"), \n\t\tarray(\"iconsmind-Drag-Up\" => \"iconsmind-Drag-Up\"), \n\t\tarray(\"iconsmind-Finger-DragFourSides\" => \"iconsmind-Finger-DragFourSides\"), \n\t\tarray(\"iconsmind-Finger-DragTwoSides\" => \"iconsmind-Finger-DragTwoSides\"), \n\t\tarray(\"iconsmind-Five-Fingers\" => \"iconsmind-Five-Fingers\"), \n\t\tarray(\"iconsmind-Five-FingersDrag\" => \"iconsmind-Five-FingersDrag\"), \n\t\tarray(\"iconsmind-Five-FingersDrag2\" => \"iconsmind-Five-FingersDrag2\"), \n\t\tarray(\"iconsmind-Five-FingersTouch\" => \"iconsmind-Five-FingersTouch\"), \n\t\tarray(\"iconsmind-Flick\" => \"iconsmind-Flick\"), \n\t\tarray(\"iconsmind-Four-Fingers\" => \"iconsmind-Four-Fingers\"), \n\t\tarray(\"iconsmind-Four-FingersDrag\" => \"iconsmind-Four-FingersDrag\"), \n\t\tarray(\"iconsmind-Four-FingersDrag2\" => \"iconsmind-Four-FingersDrag2\"), \n\t\tarray(\"iconsmind-Four-FingersTouch\" => \"iconsmind-Four-FingersTouch\"), \n\t\tarray(\"iconsmind-Hand-Touch\" => \"iconsmind-Hand-Touch\"), \n\t\tarray(\"iconsmind-Hand-Touch2\" => \"iconsmind-Hand-Touch2\"), \n\t\tarray(\"iconsmind-Hand-TouchSmartphone\" => \"iconsmind-Hand-TouchSmartphone\"), \n\t\tarray(\"iconsmind-One-Finger\" => \"iconsmind-One-Finger\"), \n\t\tarray(\"iconsmind-One-FingerTouch\" => \"iconsmind-One-FingerTouch\"), \n\t\tarray(\"iconsmind-Pinch\" => \"iconsmind-Pinch\"), \n\t\tarray(\"iconsmind-Press\" => \"iconsmind-Press\"), \n\t\tarray(\"iconsmind-Rotate-Gesture\" => \"iconsmind-Rotate-Gesture\"), \n\t\tarray(\"iconsmind-Rotate-Gesture2\" => \"iconsmind-Rotate-Gesture2\"), \n\t\tarray(\"iconsmind-Rotate-Gesture3\" => \"iconsmind-Rotate-Gesture3\"), \n\t\tarray(\"iconsmind-Scroll\" => \"iconsmind-Scroll\"), \n\t\tarray(\"iconsmind-Scroll-Fast\" => \"iconsmind-Scroll-Fast\"), \n\t\tarray(\"iconsmind-Spread\" => \"iconsmind-Spread\"), \n\t\tarray(\"iconsmind-Star-Track\" => \"iconsmind-Star-Track\"), \n\t\tarray(\"iconsmind-Tap\" => \"iconsmind-Tap\"), \n\t\tarray(\"iconsmind-Three-Fingers\" => \"iconsmind-Three-Fingers\"), \n\t\tarray(\"iconsmind-Three-FingersDrag\" => \"iconsmind-Three-FingersDrag\"), \n\t\tarray(\"iconsmind-Three-FingersDrag2\" => \"iconsmind-Three-FingersDrag2\"), \n\t\tarray(\"iconsmind-Three-FingersTouch\" => \"iconsmind-Three-FingersTouch\"), \n\t\tarray(\"iconsmind-Thumb\" => \"iconsmind-Thumb\"), \n\t\tarray(\"iconsmind-Two-Fingers\" => \"iconsmind-Two-Fingers\"), \n\t\tarray(\"iconsmind-Two-FingersDrag\" => \"iconsmind-Two-FingersDrag\"), \n\t\tarray(\"iconsmind-Two-FingersDrag2\" => \"iconsmind-Two-FingersDrag2\"), \n\t\tarray(\"iconsmind-Two-FingersScroll\" => \"iconsmind-Two-FingersScroll\"), \n\t\tarray(\"iconsmind-Two-FingersTouch\" => \"iconsmind-Two-FingersTouch\"), \n\t\tarray(\"iconsmind-Zoom-Gesture\" => \"iconsmind-Zoom-Gesture\"), \n\t\tarray(\"iconsmind-Alarm-Clock\" => \"iconsmind-Alarm-Clock\"), \n\t\tarray(\"iconsmind-Alarm-Clock2\" => \"iconsmind-Alarm-Clock2\"), \n\t\tarray(\"iconsmind-Calendar-Clock\" => \"iconsmind-Calendar-Clock\"), \n\t\tarray(\"iconsmind-Clock\" => \"iconsmind-Clock\"), \n\t\tarray(\"iconsmind-Clock-2\" => \"iconsmind-Clock-2\"), \n\t\tarray(\"iconsmind-Clock-3\" => \"iconsmind-Clock-3\"), \n\t\tarray(\"iconsmind-Clock-4\" => \"iconsmind-Clock-4\"), \n\t\tarray(\"iconsmind-Clock-Back\" => \"iconsmind-Clock-Back\"), \n\t\tarray(\"iconsmind-Clock-Forward\" => \"iconsmind-Clock-Forward\"), \n\t\tarray(\"iconsmind-Hour\" => \"iconsmind-Hour\"), \n\t\tarray(\"iconsmind-Old-Clock\" => \"iconsmind-Old-Clock\"), \n\t\tarray(\"iconsmind-Over-Time\" => \"iconsmind-Over-Time\"), \n\t\tarray(\"iconsmind-Over-Time2\" => \"iconsmind-Over-Time2\"), \n\t\tarray(\"iconsmind-Sand-watch\" => \"iconsmind-Sand-watch\"), \n\t\tarray(\"iconsmind-Sand-watch2\" => \"iconsmind-Sand-watch2\"), \n\t\tarray(\"iconsmind-Stopwatch\" => \"iconsmind-Stopwatch\"), \n\t\tarray(\"iconsmind-Stopwatch-2\" => \"iconsmind-Stopwatch-2\"), \n\t\tarray(\"iconsmind-Time-Backup\" => \"iconsmind-Time-Backup\"), \n\t\tarray(\"iconsmind-Time-Fire\" => \"iconsmind-Time-Fire\"), \n\t\tarray(\"iconsmind-Time-Machine\" => \"iconsmind-Time-Machine\"), \n\t\tarray(\"iconsmind-Timer\" => \"iconsmind-Timer\"), \n\t\tarray(\"iconsmind-Watch\" => \"iconsmind-Watch\"), \n\t\tarray(\"iconsmind-Watch-2\" => \"iconsmind-Watch-2\"), \n\t\tarray(\"iconsmind-Watch-3\" => \"iconsmind-Watch-3\"), \n\t\tarray(\"iconsmind-A-Z\" => \"iconsmind-A-Z\"), \n\t\tarray(\"iconsmind-Bold-Text\" => \"iconsmind-Bold-Text\"), \n\t\tarray(\"iconsmind-Bulleted-List\" => \"iconsmind-Bulleted-List\"), \n\t\tarray(\"iconsmind-Font-Color\" => \"iconsmind-Font-Color\"), \n\t\tarray(\"iconsmind-Font-Name\" => \"iconsmind-Font-Name\"), \n\t\tarray(\"iconsmind-Font-Size\" => \"iconsmind-Font-Size\"), \n\t\tarray(\"iconsmind-Font-Style\" => \"iconsmind-Font-Style\"), \n\t\tarray(\"iconsmind-Font-StyleSubscript\" => \"iconsmind-Font-StyleSubscript\"), \n\t\tarray(\"iconsmind-Font-StyleSuperscript\" => \"iconsmind-Font-StyleSuperscript\"), \n\t\tarray(\"iconsmind-Function\" => \"iconsmind-Function\"), \n\t\tarray(\"iconsmind-Italic-Text\" => \"iconsmind-Italic-Text\"), \n\t\tarray(\"iconsmind-Line-SpacingText\" => \"iconsmind-Line-SpacingText\"), \n\t\tarray(\"iconsmind-Lowercase-Text\" => \"iconsmind-Lowercase-Text\"), \n\t\tarray(\"iconsmind-Normal-Text\" => \"iconsmind-Normal-Text\"), \n\t\tarray(\"iconsmind-Numbering-List\" => \"iconsmind-Numbering-List\"), \n\t\tarray(\"iconsmind-Strikethrough-Text\" => \"iconsmind-Strikethrough-Text\"), \n\t\tarray(\"iconsmind-Sum\" => \"iconsmind-Sum\"), \n\t\tarray(\"iconsmind-Text-Box\" => \"iconsmind-Text-Box\"), \n\t\tarray(\"iconsmind-Text-Effect\" => \"iconsmind-Text-Effect\"), \n\t\tarray(\"iconsmind-Text-HighlightColor\" => \"iconsmind-Text-HighlightColor\"), \n\t\tarray(\"iconsmind-Text-Paragraph\" => \"iconsmind-Text-Paragraph\"), \n\t\tarray(\"iconsmind-Under-LineText\" => \"iconsmind-Under-LineText\"), \n\t\tarray(\"iconsmind-Uppercase-Text\" => \"iconsmind-Uppercase-Text\"), \n\t\tarray(\"iconsmind-Wrap-Text\" => \"iconsmind-Wrap-Text\"), \n\t\tarray(\"iconsmind-Z-A\" => \"iconsmind-Z-A\"), \n\t\tarray(\"iconsmind-Aerobics\" => \"iconsmind-Aerobics\"), \n\t\tarray(\"iconsmind-Aerobics-2\" => \"iconsmind-Aerobics-2\"), \n\t\tarray(\"iconsmind-Aerobics-3\" => \"iconsmind-Aerobics-3\"), \n\t\tarray(\"iconsmind-Archery\" => \"iconsmind-Archery\"), \n\t\tarray(\"iconsmind-Archery-2\" => \"iconsmind-Archery-2\"), \n\t\tarray(\"iconsmind-Ballet-Shoes\" => \"iconsmind-Ballet-Shoes\"), \n\t\tarray(\"iconsmind-Baseball\" => \"iconsmind-Baseball\"), \n\t\tarray(\"iconsmind-Basket-Ball\" => \"iconsmind-Basket-Ball\"), \n\t\tarray(\"iconsmind-Bodybuilding\" => \"iconsmind-Bodybuilding\"), \n\t\tarray(\"iconsmind-Bowling\" => \"iconsmind-Bowling\"), \n\t\tarray(\"iconsmind-Bowling-2\" => \"iconsmind-Bowling-2\"), \n\t\tarray(\"iconsmind-Box\" => \"iconsmind-Box\"), \n\t\tarray(\"iconsmind-Chess\" => \"iconsmind-Chess\"), \n\t\tarray(\"iconsmind-Cricket\" => \"iconsmind-Cricket\"), \n\t\tarray(\"iconsmind-Dumbbell\" => \"iconsmind-Dumbbell\"), \n\t\tarray(\"iconsmind-Football\" => \"iconsmind-Football\"), \n\t\tarray(\"iconsmind-Football-2\" => \"iconsmind-Football-2\"), \n\t\tarray(\"iconsmind-Footprint\" => \"iconsmind-Footprint\"), \n\t\tarray(\"iconsmind-Footprint-2\" => \"iconsmind-Footprint-2\"), \n\t\tarray(\"iconsmind-Goggles\" => \"iconsmind-Goggles\"), \n\t\tarray(\"iconsmind-Golf\" => \"iconsmind-Golf\"), \n\t\tarray(\"iconsmind-Golf-2\" => \"iconsmind-Golf-2\"), \n\t\tarray(\"iconsmind-Gymnastics\" => \"iconsmind-Gymnastics\"), \n\t\tarray(\"iconsmind-Hokey\" => \"iconsmind-Hokey\"), \n\t\tarray(\"iconsmind-Jump-Rope\" => \"iconsmind-Jump-Rope\"), \n\t\tarray(\"iconsmind-Life-Jacket\" => \"iconsmind-Life-Jacket\"), \n\t\tarray(\"iconsmind-Medal\" => \"iconsmind-Medal\"), \n\t\tarray(\"iconsmind-Medal-2\" => \"iconsmind-Medal-2\"), \n\t\tarray(\"iconsmind-Medal-3\" => \"iconsmind-Medal-3\"), \n\t\tarray(\"iconsmind-Parasailing\" => \"iconsmind-Parasailing\"), \n\t\tarray(\"iconsmind-Pilates\" => \"iconsmind-Pilates\"), \n\t\tarray(\"iconsmind-Pilates-2\" => \"iconsmind-Pilates-2\"), \n\t\tarray(\"iconsmind-Pilates-3\" => \"iconsmind-Pilates-3\"), \n\t\tarray(\"iconsmind-Ping-Pong\" => \"iconsmind-Ping-Pong\"), \n\t\tarray(\"iconsmind-Rafting\" => \"iconsmind-Rafting\"), \n\t\tarray(\"iconsmind-Running\" => \"iconsmind-Running\"), \n\t\tarray(\"iconsmind-Running-Shoes\" => \"iconsmind-Running-Shoes\"), \n\t\tarray(\"iconsmind-Skate-Shoes\" => \"iconsmind-Skate-Shoes\"), \n\t\tarray(\"iconsmind-Ski\" => \"iconsmind-Ski\"), \n\t\tarray(\"iconsmind-Skydiving\" => \"iconsmind-Skydiving\"), \n\t\tarray(\"iconsmind-Snorkel\" => \"iconsmind-Snorkel\"), \n\t\tarray(\"iconsmind-Soccer-Ball\" => \"iconsmind-Soccer-Ball\"), \n\t\tarray(\"iconsmind-Soccer-Shoes\" => \"iconsmind-Soccer-Shoes\"), \n\t\tarray(\"iconsmind-Swimming\" => \"iconsmind-Swimming\"), \n\t\tarray(\"iconsmind-Tennis\" => \"iconsmind-Tennis\"), \n\t\tarray(\"iconsmind-Tennis-Ball\" => \"iconsmind-Tennis-Ball\"), \n\t\tarray(\"iconsmind-Trekking\" => \"iconsmind-Trekking\"), \n\t\tarray(\"iconsmind-Trophy\" => \"iconsmind-Trophy\"), \n\t\tarray(\"iconsmind-Trophy-2\" => \"iconsmind-Trophy-2\"), \n\t\tarray(\"iconsmind-Volleyball\" => \"iconsmind-Volleyball\"), \n\t\tarray(\"iconsmind-weight-Lift\" => \"iconsmind-weight-Lift\"), \n\t\tarray(\"iconsmind-Speach-Bubble\" => \"iconsmind-Speach-Bubble\"), \n\t\tarray(\"iconsmind-Speach-Bubble2\" => \"iconsmind-Speach-Bubble2\"), \n\t\tarray(\"iconsmind-Speach-Bubble3\" => \"iconsmind-Speach-Bubble3\"), \n\t\tarray(\"iconsmind-Speach-Bubble4\" => \"iconsmind-Speach-Bubble4\"), \n\t\tarray(\"iconsmind-Speach-Bubble5\" => \"iconsmind-Speach-Bubble5\"), \n\t\tarray(\"iconsmind-Speach-Bubble6\" => \"iconsmind-Speach-Bubble6\"), \n\t\tarray(\"iconsmind-Speach-Bubble7\" => \"iconsmind-Speach-Bubble7\"), \n\t\tarray(\"iconsmind-Speach-Bubble8\" => \"iconsmind-Speach-Bubble8\"), \n\t\tarray(\"iconsmind-Speach-Bubble9\" => \"iconsmind-Speach-Bubble9\"), \n\t\tarray(\"iconsmind-Speach-Bubble10\" => \"iconsmind-Speach-Bubble10\"), \n\t\tarray(\"iconsmind-Speach-Bubble11\" => \"iconsmind-Speach-Bubble11\"), \n\t\tarray(\"iconsmind-Speach-Bubble12\" => \"iconsmind-Speach-Bubble12\"), \n\t\tarray(\"iconsmind-Speach-Bubble13\" => \"iconsmind-Speach-Bubble13\"), \n\t\tarray(\"iconsmind-Speach-BubbleAsking\" => \"iconsmind-Speach-BubbleAsking\"), \n\t\tarray(\"iconsmind-Speach-BubbleComic\" => \"iconsmind-Speach-BubbleComic\"), \n\t\tarray(\"iconsmind-Speach-BubbleComic2\" => \"iconsmind-Speach-BubbleComic2\"), \n\t\tarray(\"iconsmind-Speach-BubbleComic3\" => \"iconsmind-Speach-BubbleComic3\"), \n\t\tarray(\"iconsmind-Speach-BubbleComic4\" => \"iconsmind-Speach-BubbleComic4\"), \n\t\tarray(\"iconsmind-Speach-BubbleDialog\" => \"iconsmind-Speach-BubbleDialog\"), \n\t\tarray(\"iconsmind-Speach-Bubbles\" => \"iconsmind-Speach-Bubbles\"), \n\t\tarray(\"iconsmind-Aim\" => \"iconsmind-Aim\"), \n\t\tarray(\"iconsmind-Ask\" => \"iconsmind-Ask\"), \n\t\tarray(\"iconsmind-Bebo\" => \"iconsmind-Bebo\"), \n\t\tarray(\"iconsmind-Behance\" => \"iconsmind-Behance\"), \n\t\tarray(\"iconsmind-Betvibes\" => \"iconsmind-Betvibes\"), \n\t\tarray(\"iconsmind-Bing\" => \"iconsmind-Bing\"), \n\t\tarray(\"iconsmind-Blinklist\" => \"iconsmind-Blinklist\"), \n\t\tarray(\"iconsmind-Blogger\" => \"iconsmind-Blogger\"), \n\t\tarray(\"iconsmind-Brightkite\" => \"iconsmind-Brightkite\"), \n\t\tarray(\"iconsmind-Delicious\" => \"iconsmind-Delicious\"), \n\t\tarray(\"iconsmind-Deviantart\" => \"iconsmind-Deviantart\"), \n\t\tarray(\"iconsmind-Digg\" => \"iconsmind-Digg\"), \n\t\tarray(\"iconsmind-Diigo\" => \"iconsmind-Diigo\"), \n\t\tarray(\"iconsmind-Doplr\" => \"iconsmind-Doplr\"), \n\t\tarray(\"iconsmind-Dribble\" => \"iconsmind-Dribble\"), \n\t\tarray(\"iconsmind-Email\" => \"iconsmind-Email\"), \n\t\tarray(\"iconsmind-Evernote\" => \"iconsmind-Evernote\"), \n\t\tarray(\"iconsmind-Facebook\" => \"iconsmind-Facebook\"), \n\t\tarray(\"iconsmind-Facebook-2\" => \"iconsmind-Facebook-2\"), \n\t\tarray(\"iconsmind-Feedburner\" => \"iconsmind-Feedburner\"), \n\t\tarray(\"iconsmind-Flickr\" => \"iconsmind-Flickr\"), \n\t\tarray(\"iconsmind-Formspring\" => \"iconsmind-Formspring\"), \n\t\tarray(\"iconsmind-Forsquare\" => \"iconsmind-Forsquare\"), \n\t\tarray(\"iconsmind-Friendfeed\" => \"iconsmind-Friendfeed\"), \n\t\tarray(\"iconsmind-Friendster\" => \"iconsmind-Friendster\"), \n\t\tarray(\"iconsmind-Furl\" => \"iconsmind-Furl\"), \n\t\tarray(\"iconsmind-Google\" => \"iconsmind-Google\"), \n\t\tarray(\"iconsmind-Google-Buzz\" => \"iconsmind-Google-Buzz\"), \n\t\tarray(\"iconsmind-Google-Plus\" => \"iconsmind-Google-Plus\"), \n\t\tarray(\"iconsmind-Gowalla\" => \"iconsmind-Gowalla\"), \n\t\tarray(\"iconsmind-ICQ\" => \"iconsmind-ICQ\"), \n\t\tarray(\"iconsmind-ImDB\" => \"iconsmind-ImDB\"), \n\t\tarray(\"iconsmind-Instagram\" => \"iconsmind-Instagram\"), \n\t\tarray(\"iconsmind-Last-FM\" => \"iconsmind-Last-FM\"), \n\t\tarray(\"iconsmind-Like\" => \"iconsmind-Like\"), \n\t\tarray(\"iconsmind-Like-2\" => \"iconsmind-Like-2\"), \n\t\tarray(\"iconsmind-Linkedin\" => \"iconsmind-Linkedin\"), \n\t\tarray(\"iconsmind-Linkedin-2\" => \"iconsmind-Linkedin-2\"), \n\t\tarray(\"iconsmind-Livejournal\" => \"iconsmind-Livejournal\"), \n\t\tarray(\"iconsmind-Metacafe\" => \"iconsmind-Metacafe\"), \n\t\tarray(\"iconsmind-Mixx\" => \"iconsmind-Mixx\"), \n\t\tarray(\"iconsmind-Myspace\" => \"iconsmind-Myspace\"), \n\t\tarray(\"iconsmind-Newsvine\" => \"iconsmind-Newsvine\"), \n\t\tarray(\"iconsmind-Orkut\" => \"iconsmind-Orkut\"), \n\t\tarray(\"iconsmind-Picasa\" => \"iconsmind-Picasa\"), \n\t\tarray(\"iconsmind-Pinterest\" => \"iconsmind-Pinterest\"), \n\t\tarray(\"iconsmind-Plaxo\" => \"iconsmind-Plaxo\"), \n\t\tarray(\"iconsmind-Plurk\" => \"iconsmind-Plurk\"), \n\t\tarray(\"iconsmind-Posterous\" => \"iconsmind-Posterous\"), \n\t\tarray(\"iconsmind-QIK\" => \"iconsmind-QIK\"), \n\t\tarray(\"iconsmind-Reddit\" => \"iconsmind-Reddit\"), \n\t\tarray(\"iconsmind-Reverbnation\" => \"iconsmind-Reverbnation\"), \n\t\tarray(\"iconsmind-RSS\" => \"iconsmind-RSS\"), \n\t\tarray(\"iconsmind-Sharethis\" => \"iconsmind-Sharethis\"), \n\t\tarray(\"iconsmind-Shoutwire\" => \"iconsmind-Shoutwire\"), \n\t\tarray(\"iconsmind-Skype\" => \"iconsmind-Skype\"), \n\t\tarray(\"iconsmind-Soundcloud\" => \"iconsmind-Soundcloud\"), \n\t\tarray(\"iconsmind-Spurl\" => \"iconsmind-Spurl\"), \n\t\tarray(\"iconsmind-Stumbleupon\" => \"iconsmind-Stumbleupon\"), \n\t\tarray(\"iconsmind-Technorati\" => \"iconsmind-Technorati\"), \n\t\tarray(\"iconsmind-Tumblr\" => \"iconsmind-Tumblr\"), \n\t\tarray(\"iconsmind-Twitter\" => \"iconsmind-Twitter\"), \n\t\tarray(\"iconsmind-Twitter-2\" => \"iconsmind-Twitter-2\"), \n\t\tarray(\"iconsmind-Unlike\" => \"iconsmind-Unlike\"), \n\t\tarray(\"iconsmind-Unlike-2\" => \"iconsmind-Unlike-2\"), \n\t\tarray(\"iconsmind-Ustream\" => \"iconsmind-Ustream\"), \n\t\tarray(\"iconsmind-Viddler\" => \"iconsmind-Viddler\"), \n\t\tarray(\"iconsmind-Vimeo\" => \"iconsmind-Vimeo\"), \n\t\tarray(\"iconsmind-Wordpress\" => \"iconsmind-Wordpress\"), \n\t\tarray(\"iconsmind-Xanga\" => \"iconsmind-Xanga\"), \n\t\tarray(\"iconsmind-Xing\" => \"iconsmind-Xing\"), \n\t\tarray(\"iconsmind-Yahoo\" => \"iconsmind-Yahoo\"), \n\t\tarray(\"iconsmind-Yahoo-Buzz\" => \"iconsmind-Yahoo-Buzz\"), \n\t\tarray(\"iconsmind-Yelp\" => \"iconsmind-Yelp\"), \n\t\tarray(\"iconsmind-Youtube\" => \"iconsmind-Youtube\"), \n\t\tarray(\"iconsmind-Zootool\" => \"iconsmind-Zootool\"), \n\t\tarray(\"iconsmind-Bisexual\" => \"iconsmind-Bisexual\"), \n\t\tarray(\"iconsmind-Cancer2\" => \"iconsmind-Cancer2\"), \n\t\tarray(\"iconsmind-Couple-Sign\" => \"iconsmind-Couple-Sign\"), \n\t\tarray(\"iconsmind-David-Star\" => \"iconsmind-David-Star\"), \n\t\tarray(\"iconsmind-Family-Sign\" => \"iconsmind-Family-Sign\"), \n\t\tarray(\"iconsmind-Female-2\" => \"iconsmind-Female-2\"), \n\t\tarray(\"iconsmind-Gey\" => \"iconsmind-Gey\"), \n\t\tarray(\"iconsmind-Heart\" => \"iconsmind-Heart\"), \n\t\tarray(\"iconsmind-Homosexual\" => \"iconsmind-Homosexual\"), \n\t\tarray(\"iconsmind-Inifity\" => \"iconsmind-Inifity\"), \n\t\tarray(\"iconsmind-Lesbian\" => \"iconsmind-Lesbian\"), \n\t\tarray(\"iconsmind-Lesbians\" => \"iconsmind-Lesbians\"), \n\t\tarray(\"iconsmind-Love\" => \"iconsmind-Love\"), \n\t\tarray(\"iconsmind-Male-2\" => \"iconsmind-Male-2\"), \n\t\tarray(\"iconsmind-Men\" => \"iconsmind-Men\"), \n\t\tarray(\"iconsmind-No-Smoking\" => \"iconsmind-No-Smoking\"), \n\t\tarray(\"iconsmind-Paw\" => \"iconsmind-Paw\"), \n\t\tarray(\"iconsmind-Quotes\" => \"iconsmind-Quotes\"), \n\t\tarray(\"iconsmind-Quotes-2\" => \"iconsmind-Quotes-2\"), \n\t\tarray(\"iconsmind-Redirect\" => \"iconsmind-Redirect\"), \n\t\tarray(\"iconsmind-Retweet\" => \"iconsmind-Retweet\"), \n\t\tarray(\"iconsmind-Ribbon\" => \"iconsmind-Ribbon\"), \n\t\tarray(\"iconsmind-Ribbon-2\" => \"iconsmind-Ribbon-2\"), \n\t\tarray(\"iconsmind-Ribbon-3\" => \"iconsmind-Ribbon-3\"), \n\t\tarray(\"iconsmind-Sexual\" => \"iconsmind-Sexual\"), \n\t\tarray(\"iconsmind-Smoking-Area\" => \"iconsmind-Smoking-Area\"), \n\t\tarray(\"iconsmind-Trace\" => \"iconsmind-Trace\"), \n\t\tarray(\"iconsmind-Venn-Diagram\" => \"iconsmind-Venn-Diagram\"), \n\t\tarray(\"iconsmind-Wheelchair\" => \"iconsmind-Wheelchair\"), \n\t\tarray(\"iconsmind-Women\" => \"iconsmind-Women\"), \n\t\tarray(\"iconsmind-Ying-Yang\" => \"iconsmind-Ying-Yang\"), \n\t\tarray(\"iconsmind-Add-Bag\" => \"iconsmind-Add-Bag\"), \n\t\tarray(\"iconsmind-Add-Basket\" => \"iconsmind-Add-Basket\"), \n\t\tarray(\"iconsmind-Add-Cart\" => \"iconsmind-Add-Cart\"), \n\t\tarray(\"iconsmind-Bag-Coins\" => \"iconsmind-Bag-Coins\"), \n\t\tarray(\"iconsmind-Bag-Items\" => \"iconsmind-Bag-Items\"), \n\t\tarray(\"iconsmind-Bag-Quantity\" => \"iconsmind-Bag-Quantity\"), \n\t\tarray(\"iconsmind-Bar-Code\" => \"iconsmind-Bar-Code\"), \n\t\tarray(\"iconsmind-Basket-Coins\" => \"iconsmind-Basket-Coins\"), \n\t\tarray(\"iconsmind-Basket-Items\" => \"iconsmind-Basket-Items\"), \n\t\tarray(\"iconsmind-Basket-Quantity\" => \"iconsmind-Basket-Quantity\"), \n\t\tarray(\"iconsmind-Bitcoin\" => \"iconsmind-Bitcoin\"), \n\t\tarray(\"iconsmind-Car-Coins\" => \"iconsmind-Car-Coins\"), \n\t\tarray(\"iconsmind-Car-Items\" => \"iconsmind-Car-Items\"), \n\t\tarray(\"iconsmind-CartQuantity\" => \"iconsmind-CartQuantity\"), \n\t\tarray(\"iconsmind-Cash-Register\" => \"iconsmind-Cash-Register\"), \n\t\tarray(\"iconsmind-Cash-register2\" => \"iconsmind-Cash-register2\"), \n\t\tarray(\"iconsmind-Checkout\" => \"iconsmind-Checkout\"), \n\t\tarray(\"iconsmind-Checkout-Bag\" => \"iconsmind-Checkout-Bag\"), \n\t\tarray(\"iconsmind-Checkout-Basket\" => \"iconsmind-Checkout-Basket\"), \n\t\tarray(\"iconsmind-Full-Basket\" => \"iconsmind-Full-Basket\"), \n\t\tarray(\"iconsmind-Full-Cart\" => \"iconsmind-Full-Cart\"), \n\t\tarray(\"iconsmind-Fyll-Bag\" => \"iconsmind-Fyll-Bag\"), \n\t\tarray(\"iconsmind-Home\" => \"iconsmind-Home\"), \n\t\tarray(\"iconsmind-Password-2shopping\" => \"iconsmind-Password-2shopping\"), \n\t\tarray(\"iconsmind-Password-shopping\" => \"iconsmind-Password-shopping\"), \n\t\tarray(\"iconsmind-QR-Code\" => \"iconsmind-QR-Code\"), \n\t\tarray(\"iconsmind-Receipt\" => \"iconsmind-Receipt\"), \n\t\tarray(\"iconsmind-Receipt-2\" => \"iconsmind-Receipt-2\"), \n\t\tarray(\"iconsmind-Receipt-3\" => \"iconsmind-Receipt-3\"), \n\t\tarray(\"iconsmind-Receipt-4\" => \"iconsmind-Receipt-4\"), \n\t\tarray(\"iconsmind-Remove-Bag\" => \"iconsmind-Remove-Bag\"), \n\t\tarray(\"iconsmind-Remove-Basket\" => \"iconsmind-Remove-Basket\"), \n\t\tarray(\"iconsmind-Remove-Cart\" => \"iconsmind-Remove-Cart\"), \n\t\tarray(\"iconsmind-Shop\" => \"iconsmind-Shop\"), \n\t\tarray(\"iconsmind-Shop-2\" => \"iconsmind-Shop-2\"), \n\t\tarray(\"iconsmind-Shop-3\" => \"iconsmind-Shop-3\"), \n\t\tarray(\"iconsmind-Shop-4\" => \"iconsmind-Shop-4\"), \n\t\tarray(\"iconsmind-Shopping-Bag\" => \"iconsmind-Shopping-Bag\"), \n\t\tarray(\"iconsmind-Shopping-Basket\" => \"iconsmind-Shopping-Basket\"), \n\t\tarray(\"iconsmind-Shopping-Cart\" => \"iconsmind-Shopping-Cart\"), \n\t\tarray(\"iconsmind-Tag-2\" => \"iconsmind-Tag-2\"), \n\t\tarray(\"iconsmind-Tag-3\" => \"iconsmind-Tag-3\"), \n\t\tarray(\"iconsmind-Tag-4\" => \"iconsmind-Tag-4\"), \n\t\tarray(\"iconsmind-Tag-5\" => \"iconsmind-Tag-5\"), \n\t\tarray(\"iconsmind-This-SideUp\" => \"iconsmind-This-SideUp\"), \n\t\tarray(\"iconsmind-Broke-Link2\" => \"iconsmind-Broke-Link2\"), \n\t\tarray(\"iconsmind-Coding\" => \"iconsmind-Coding\"), \n\t\tarray(\"iconsmind-Consulting\" => \"iconsmind-Consulting\"), \n\t\tarray(\"iconsmind-Copyright\" => \"iconsmind-Copyright\"), \n\t\tarray(\"iconsmind-Idea-2\" => \"iconsmind-Idea-2\"), \n\t\tarray(\"iconsmind-Idea-3\" => \"iconsmind-Idea-3\"), \n\t\tarray(\"iconsmind-Idea-4\" => \"iconsmind-Idea-4\"), \n\t\tarray(\"iconsmind-Idea-5\" => \"iconsmind-Idea-5\"), \n\t\tarray(\"iconsmind-Internet\" => \"iconsmind-Internet\"), \n\t\tarray(\"iconsmind-Internet-2\" => \"iconsmind-Internet-2\"), \n\t\tarray(\"iconsmind-Link-2\" => \"iconsmind-Link-2\"), \n\t\tarray(\"iconsmind-Management\" => \"iconsmind-Management\"), \n\t\tarray(\"iconsmind-Monitor-Analytics\" => \"iconsmind-Monitor-Analytics\"), \n\t\tarray(\"iconsmind-Monitoring\" => \"iconsmind-Monitoring\"), \n\t\tarray(\"iconsmind-Optimization\" => \"iconsmind-Optimization\"), \n\t\tarray(\"iconsmind-Search-People\" => \"iconsmind-Search-People\"), \n\t\tarray(\"iconsmind-Tag\" => \"iconsmind-Tag\"), \n\t\tarray(\"iconsmind-Target\" => \"iconsmind-Target\"), \n\t\tarray(\"iconsmind-Target-Market\" => \"iconsmind-Target-Market\"), \n\t\tarray(\"iconsmind-Testimonal\" => \"iconsmind-Testimonal\"), \n\t\tarray(\"iconsmind-Computer-Secure\" => \"iconsmind-Computer-Secure\"), \n\t\tarray(\"iconsmind-Eye-Scan\" => \"iconsmind-Eye-Scan\"), \n\t\tarray(\"iconsmind-Finger-Print\" => \"iconsmind-Finger-Print\"), \n\t\tarray(\"iconsmind-Firewall\" => \"iconsmind-Firewall\"), \n\t\tarray(\"iconsmind-Key-Lock\" => \"iconsmind-Key-Lock\"), \n\t\tarray(\"iconsmind-Laptop-Secure\" => \"iconsmind-Laptop-Secure\"), \n\t\tarray(\"iconsmind-Layer-1532\" => \"iconsmind-Layer-1532\"), \n\t\tarray(\"iconsmind-Lock\" => \"iconsmind-Lock\"), \n\t\tarray(\"iconsmind-Lock-2\" => \"iconsmind-Lock-2\"), \n\t\tarray(\"iconsmind-Lock-3\" => \"iconsmind-Lock-3\"), \n\t\tarray(\"iconsmind-Password\" => \"iconsmind-Password\"), \n\t\tarray(\"iconsmind-Password-Field\" => \"iconsmind-Password-Field\"), \n\t\tarray(\"iconsmind-Police\" => \"iconsmind-Police\"), \n\t\tarray(\"iconsmind-Safe-Box\" => \"iconsmind-Safe-Box\"), \n\t\tarray(\"iconsmind-Security-Block\" => \"iconsmind-Security-Block\"), \n\t\tarray(\"iconsmind-Security-Bug\" => \"iconsmind-Security-Bug\"), \n\t\tarray(\"iconsmind-Security-Camera\" => \"iconsmind-Security-Camera\"), \n\t\tarray(\"iconsmind-Security-Check\" => \"iconsmind-Security-Check\"), \n\t\tarray(\"iconsmind-Security-Settings\" => \"iconsmind-Security-Settings\"), \n\t\tarray(\"iconsmind-Securiy-Remove\" => \"iconsmind-Securiy-Remove\"), \n\t\tarray(\"iconsmind-Shield\" => \"iconsmind-Shield\"), \n\t\tarray(\"iconsmind-Smartphone-Secure\" => \"iconsmind-Smartphone-Secure\"), \n\t\tarray(\"iconsmind-SSL\" => \"iconsmind-SSL\"), \n\t\tarray(\"iconsmind-Tablet-Secure\" => \"iconsmind-Tablet-Secure\"), \n\t\tarray(\"iconsmind-Type-Pass\" => \"iconsmind-Type-Pass\"), \n\t\tarray(\"iconsmind-Unlock\" => \"iconsmind-Unlock\"), \n\t\tarray(\"iconsmind-Unlock-2\" => \"iconsmind-Unlock-2\"), \n\t\tarray(\"iconsmind-Unlock-3\" => \"iconsmind-Unlock-3\"), \n\t\tarray(\"iconsmind-Ambulance\" => \"iconsmind-Ambulance\"), \n\t\tarray(\"iconsmind-Astronaut\" => \"iconsmind-Astronaut\"), \n\t\tarray(\"iconsmind-Atom\" => \"iconsmind-Atom\"), \n\t\tarray(\"iconsmind-Bacteria\" => \"iconsmind-Bacteria\"), \n\t\tarray(\"iconsmind-Band-Aid\" => \"iconsmind-Band-Aid\"), \n\t\tarray(\"iconsmind-Bio-Hazard\" => \"iconsmind-Bio-Hazard\"), \n\t\tarray(\"iconsmind-Biotech\" => \"iconsmind-Biotech\"), \n\t\tarray(\"iconsmind-Brain\" => \"iconsmind-Brain\"), \n\t\tarray(\"iconsmind-Chemical\" => \"iconsmind-Chemical\"), \n\t\tarray(\"iconsmind-Chemical-2\" => \"iconsmind-Chemical-2\"), \n\t\tarray(\"iconsmind-Chemical-3\" => \"iconsmind-Chemical-3\"), \n\t\tarray(\"iconsmind-Chemical-4\" => \"iconsmind-Chemical-4\"), \n\t\tarray(\"iconsmind-Chemical-5\" => \"iconsmind-Chemical-5\"), \n\t\tarray(\"iconsmind-Clinic\" => \"iconsmind-Clinic\"), \n\t\tarray(\"iconsmind-Cube-Molecule\" => \"iconsmind-Cube-Molecule\"), \n\t\tarray(\"iconsmind-Cube-Molecule2\" => \"iconsmind-Cube-Molecule2\"), \n\t\tarray(\"iconsmind-Danger\" => \"iconsmind-Danger\"), \n\t\tarray(\"iconsmind-Danger-2\" => \"iconsmind-Danger-2\"), \n\t\tarray(\"iconsmind-DNA\" => \"iconsmind-DNA\"), \n\t\tarray(\"iconsmind-DNA-2\" => \"iconsmind-DNA-2\"), \n\t\tarray(\"iconsmind-DNA-Helix\" => \"iconsmind-DNA-Helix\"), \n\t\tarray(\"iconsmind-First-Aid\" => \"iconsmind-First-Aid\"), \n\t\tarray(\"iconsmind-Flask\" => \"iconsmind-Flask\"), \n\t\tarray(\"iconsmind-Flask-2\" => \"iconsmind-Flask-2\"), \n\t\tarray(\"iconsmind-Helix-2\" => \"iconsmind-Helix-2\"), \n\t\tarray(\"iconsmind-Hospital\" => \"iconsmind-Hospital\"), \n\t\tarray(\"iconsmind-Hurt\" => \"iconsmind-Hurt\"), \n\t\tarray(\"iconsmind-Medical-Sign\" => \"iconsmind-Medical-Sign\"), \n\t\tarray(\"iconsmind-Medicine\" => \"iconsmind-Medicine\"), \n\t\tarray(\"iconsmind-Medicine-2\" => \"iconsmind-Medicine-2\"), \n\t\tarray(\"iconsmind-Medicine-3\" => \"iconsmind-Medicine-3\"), \n\t\tarray(\"iconsmind-Microscope\" => \"iconsmind-Microscope\"), \n\t\tarray(\"iconsmind-Neutron\" => \"iconsmind-Neutron\"), \n\t\tarray(\"iconsmind-Nuclear\" => \"iconsmind-Nuclear\"), \n\t\tarray(\"iconsmind-Physics\" => \"iconsmind-Physics\"), \n\t\tarray(\"iconsmind-Plasmid\" => \"iconsmind-Plasmid\"), \n\t\tarray(\"iconsmind-Plaster\" => \"iconsmind-Plaster\"), \n\t\tarray(\"iconsmind-Pulse\" => \"iconsmind-Pulse\"), \n\t\tarray(\"iconsmind-Radioactive\" => \"iconsmind-Radioactive\"), \n\t\tarray(\"iconsmind-Safety-PinClose\" => \"iconsmind-Safety-PinClose\"), \n\t\tarray(\"iconsmind-Safety-PinOpen\" => \"iconsmind-Safety-PinOpen\"), \n\t\tarray(\"iconsmind-Spermium\" => \"iconsmind-Spermium\"), \n\t\tarray(\"iconsmind-Stethoscope\" => \"iconsmind-Stethoscope\"), \n\t\tarray(\"iconsmind-Temperature2\" => \"iconsmind-Temperature2\"), \n\t\tarray(\"iconsmind-Test-Tube\" => \"iconsmind-Test-Tube\"), \n\t\tarray(\"iconsmind-Test-Tube2\" => \"iconsmind-Test-Tube2\"), \n\t\tarray(\"iconsmind-Virus\" => \"iconsmind-Virus\"), \n\t\tarray(\"iconsmind-Virus-2\" => \"iconsmind-Virus-2\"), \n\t\tarray(\"iconsmind-Virus-3\" => \"iconsmind-Virus-3\"), \n\t\tarray(\"iconsmind-X-ray\" => \"iconsmind-X-ray\"), \n\t\tarray(\"iconsmind-Auto-Flash\" => \"iconsmind-Auto-Flash\"), \n\t\tarray(\"iconsmind-Camera\" => \"iconsmind-Camera\"), \n\t\tarray(\"iconsmind-Camera-2\" => \"iconsmind-Camera-2\"), \n\t\tarray(\"iconsmind-Camera-3\" => \"iconsmind-Camera-3\"), \n\t\tarray(\"iconsmind-Camera-4\" => \"iconsmind-Camera-4\"), \n\t\tarray(\"iconsmind-Camera-5\" => \"iconsmind-Camera-5\"), \n\t\tarray(\"iconsmind-Camera-Back\" => \"iconsmind-Camera-Back\"), \n\t\tarray(\"iconsmind-Crop\" => \"iconsmind-Crop\"), \n\t\tarray(\"iconsmind-Daylight\" => \"iconsmind-Daylight\"), \n\t\tarray(\"iconsmind-Edit\" => \"iconsmind-Edit\"), \n\t\tarray(\"iconsmind-Eye\" => \"iconsmind-Eye\"), \n\t\tarray(\"iconsmind-Film2\" => \"iconsmind-Film2\"), \n\t\tarray(\"iconsmind-Film-Cartridge\" => \"iconsmind-Film-Cartridge\"), \n\t\tarray(\"iconsmind-Filter\" => \"iconsmind-Filter\"), \n\t\tarray(\"iconsmind-Flash\" => \"iconsmind-Flash\"), \n\t\tarray(\"iconsmind-Flash-2\" => \"iconsmind-Flash-2\"), \n\t\tarray(\"iconsmind-Fluorescent\" => \"iconsmind-Fluorescent\"), \n\t\tarray(\"iconsmind-Gopro\" => \"iconsmind-Gopro\"), \n\t\tarray(\"iconsmind-Landscape\" => \"iconsmind-Landscape\"), \n\t\tarray(\"iconsmind-Len\" => \"iconsmind-Len\"), \n\t\tarray(\"iconsmind-Len-2\" => \"iconsmind-Len-2\"), \n\t\tarray(\"iconsmind-Len-3\" => \"iconsmind-Len-3\"), \n\t\tarray(\"iconsmind-Macro\" => \"iconsmind-Macro\"), \n\t\tarray(\"iconsmind-Memory-Card\" => \"iconsmind-Memory-Card\"), \n\t\tarray(\"iconsmind-Memory-Card2\" => \"iconsmind-Memory-Card2\"), \n\t\tarray(\"iconsmind-Memory-Card3\" => \"iconsmind-Memory-Card3\"), \n\t\tarray(\"iconsmind-No-Flash\" => \"iconsmind-No-Flash\"), \n\t\tarray(\"iconsmind-Panorama\" => \"iconsmind-Panorama\"), \n\t\tarray(\"iconsmind-Photo\" => \"iconsmind-Photo\"), \n\t\tarray(\"iconsmind-Photo-2\" => \"iconsmind-Photo-2\"), \n\t\tarray(\"iconsmind-Photo-3\" => \"iconsmind-Photo-3\"), \n\t\tarray(\"iconsmind-Photo-Album\" => \"iconsmind-Photo-Album\"), \n\t\tarray(\"iconsmind-Photo-Album2\" => \"iconsmind-Photo-Album2\"), \n\t\tarray(\"iconsmind-Photo-Album3\" => \"iconsmind-Photo-Album3\"), \n\t\tarray(\"iconsmind-Photos\" => \"iconsmind-Photos\"), \n\t\tarray(\"iconsmind-Portrait\" => \"iconsmind-Portrait\"), \n\t\tarray(\"iconsmind-Retouching\" => \"iconsmind-Retouching\"), \n\t\tarray(\"iconsmind-Retro-Camera\" => \"iconsmind-Retro-Camera\"), \n\t\tarray(\"iconsmind-secound\" => \"iconsmind-secound\"), \n\t\tarray(\"iconsmind-secound2\" => \"iconsmind-secound2\"), \n\t\tarray(\"iconsmind-Selfie\" => \"iconsmind-Selfie\"), \n\t\tarray(\"iconsmind-Shutter\" => \"iconsmind-Shutter\"), \n\t\tarray(\"iconsmind-Signal\" => \"iconsmind-Signal\"), \n\t\tarray(\"iconsmind-Snow2\" => \"iconsmind-Snow2\"), \n\t\tarray(\"iconsmind-Sport-Mode\" => \"iconsmind-Sport-Mode\"), \n\t\tarray(\"iconsmind-Studio-Flash\" => \"iconsmind-Studio-Flash\"), \n\t\tarray(\"iconsmind-Studio-Lightbox\" => \"iconsmind-Studio-Lightbox\"), \n\t\tarray(\"iconsmind-Timer2\" => \"iconsmind-Timer2\"), \n\t\tarray(\"iconsmind-Tripod-2\" => \"iconsmind-Tripod-2\"), \n\t\tarray(\"iconsmind-Tripod-withCamera\" => \"iconsmind-Tripod-withCamera\"), \n\t\tarray(\"iconsmind-Tripod-withGopro\" => \"iconsmind-Tripod-withGopro\"), \n\t\tarray(\"iconsmind-Add-User\" => \"iconsmind-Add-User\"), \n\t\tarray(\"iconsmind-Add-UserStar\" => \"iconsmind-Add-UserStar\"), \n\t\tarray(\"iconsmind-Administrator\" => \"iconsmind-Administrator\"), \n\t\tarray(\"iconsmind-Alien\" => \"iconsmind-Alien\"), \n\t\tarray(\"iconsmind-Alien-2\" => \"iconsmind-Alien-2\"), \n\t\tarray(\"iconsmind-Assistant\" => \"iconsmind-Assistant\"), \n\t\tarray(\"iconsmind-Baby\" => \"iconsmind-Baby\"), \n\t\tarray(\"iconsmind-Baby-Cry\" => \"iconsmind-Baby-Cry\"), \n\t\tarray(\"iconsmind-Boy\" => \"iconsmind-Boy\"), \n\t\tarray(\"iconsmind-Business-Man\" => \"iconsmind-Business-Man\"), \n\t\tarray(\"iconsmind-Business-ManWoman\" => \"iconsmind-Business-ManWoman\"), \n\t\tarray(\"iconsmind-Business-Mens\" => \"iconsmind-Business-Mens\"), \n\t\tarray(\"iconsmind-Business-Woman\" => \"iconsmind-Business-Woman\"), \n\t\tarray(\"iconsmind-Checked-User\" => \"iconsmind-Checked-User\"), \n\t\tarray(\"iconsmind-Chef\" => \"iconsmind-Chef\"), \n\t\tarray(\"iconsmind-Conference\" => \"iconsmind-Conference\"), \n\t\tarray(\"iconsmind-Cool-Guy\" => \"iconsmind-Cool-Guy\"), \n\t\tarray(\"iconsmind-Criminal\" => \"iconsmind-Criminal\"), \n\t\tarray(\"iconsmind-Dj\" => \"iconsmind-Dj\"), \n\t\tarray(\"iconsmind-Doctor\" => \"iconsmind-Doctor\"), \n\t\tarray(\"iconsmind-Engineering\" => \"iconsmind-Engineering\"), \n\t\tarray(\"iconsmind-Farmer\" => \"iconsmind-Farmer\"), \n\t\tarray(\"iconsmind-Female\" => \"iconsmind-Female\"), \n\t\tarray(\"iconsmind-Female-22\" => \"iconsmind-Female-22\"), \n\t\tarray(\"iconsmind-Find-User\" => \"iconsmind-Find-User\"), \n\t\tarray(\"iconsmind-Geek\" => \"iconsmind-Geek\"), \n\t\tarray(\"iconsmind-Genius\" => \"iconsmind-Genius\"), \n\t\tarray(\"iconsmind-Girl\" => \"iconsmind-Girl\"), \n\t\tarray(\"iconsmind-Headphone\" => \"iconsmind-Headphone\"), \n\t\tarray(\"iconsmind-Headset\" => \"iconsmind-Headset\"), \n\t\tarray(\"iconsmind-ID-2\" => \"iconsmind-ID-2\"), \n\t\tarray(\"iconsmind-ID-3\" => \"iconsmind-ID-3\"), \n\t\tarray(\"iconsmind-ID-Card\" => \"iconsmind-ID-Card\"), \n\t\tarray(\"iconsmind-King-2\" => \"iconsmind-King-2\"), \n\t\tarray(\"iconsmind-Lock-User\" => \"iconsmind-Lock-User\"), \n\t\tarray(\"iconsmind-Love-User\" => \"iconsmind-Love-User\"), \n\t\tarray(\"iconsmind-Male\" => \"iconsmind-Male\"), \n\t\tarray(\"iconsmind-Male-22\" => \"iconsmind-Male-22\"), \n\t\tarray(\"iconsmind-MaleFemale\" => \"iconsmind-MaleFemale\"), \n\t\tarray(\"iconsmind-Man-Sign\" => \"iconsmind-Man-Sign\"), \n\t\tarray(\"iconsmind-Mens\" => \"iconsmind-Mens\"), \n\t\tarray(\"iconsmind-Network\" => \"iconsmind-Network\"), \n\t\tarray(\"iconsmind-Nurse\" => \"iconsmind-Nurse\"), \n\t\tarray(\"iconsmind-Pac-Man\" => \"iconsmind-Pac-Man\"), \n\t\tarray(\"iconsmind-Pilot\" => \"iconsmind-Pilot\"), \n\t\tarray(\"iconsmind-Police-Man\" => \"iconsmind-Police-Man\"), \n\t\tarray(\"iconsmind-Police-Woman\" => \"iconsmind-Police-Woman\"), \n\t\tarray(\"iconsmind-Professor\" => \"iconsmind-Professor\"), \n\t\tarray(\"iconsmind-Punker\" => \"iconsmind-Punker\"), \n\t\tarray(\"iconsmind-Queen-2\" => \"iconsmind-Queen-2\"), \n\t\tarray(\"iconsmind-Remove-User\" => \"iconsmind-Remove-User\"), \n\t\tarray(\"iconsmind-Robot\" => \"iconsmind-Robot\"), \n\t\tarray(\"iconsmind-Speak\" => \"iconsmind-Speak\"), \n\t\tarray(\"iconsmind-Speak-2\" => \"iconsmind-Speak-2\"), \n\t\tarray(\"iconsmind-Spy\" => \"iconsmind-Spy\"), \n\t\tarray(\"iconsmind-Student-Female\" => \"iconsmind-Student-Female\"), \n\t\tarray(\"iconsmind-Student-Male\" => \"iconsmind-Student-Male\"), \n\t\tarray(\"iconsmind-Student-MaleFemale\" => \"iconsmind-Student-MaleFemale\"), \n\t\tarray(\"iconsmind-Students\" => \"iconsmind-Students\"), \n\t\tarray(\"iconsmind-Superman\" => \"iconsmind-Superman\"), \n\t\tarray(\"iconsmind-Talk-Man\" => \"iconsmind-Talk-Man\"), \n\t\tarray(\"iconsmind-Teacher\" => \"iconsmind-Teacher\"), \n\t\tarray(\"iconsmind-Waiter\" => \"iconsmind-Waiter\"), \n\t\tarray(\"iconsmind-WomanMan\" => \"iconsmind-WomanMan\"), \n\t\tarray(\"iconsmind-Woman-Sign\" => \"iconsmind-Woman-Sign\"), \n\t\tarray(\"iconsmind-Wonder-Woman\" => \"iconsmind-Wonder-Woman\"), \n\t\tarray(\"iconsmind-Worker\" => \"iconsmind-Worker\"), \n\t\tarray(\"iconsmind-Anchor\" => \"iconsmind-Anchor\"), \n\t\tarray(\"iconsmind-Army-Key\" => \"iconsmind-Army-Key\"), \n\t\tarray(\"iconsmind-Balloon\" => \"iconsmind-Balloon\"), \n\t\tarray(\"iconsmind-Barricade\" => \"iconsmind-Barricade\"), \n\t\tarray(\"iconsmind-Batman-Mask\" => \"iconsmind-Batman-Mask\"), \n\t\tarray(\"iconsmind-Binocular\" => \"iconsmind-Binocular\"), \n\t\tarray(\"iconsmind-Boom\" => \"iconsmind-Boom\"), \n\t\tarray(\"iconsmind-Bucket\" => \"iconsmind-Bucket\"), \n\t\tarray(\"iconsmind-Button\" => \"iconsmind-Button\"), \n\t\tarray(\"iconsmind-Cannon\" => \"iconsmind-Cannon\"), \n\t\tarray(\"iconsmind-Chacked-Flag\" => \"iconsmind-Chacked-Flag\"), \n\t\tarray(\"iconsmind-Chair\" => \"iconsmind-Chair\"), \n\t\tarray(\"iconsmind-Coffee-Machine\" => \"iconsmind-Coffee-Machine\"), \n\t\tarray(\"iconsmind-Crown\" => \"iconsmind-Crown\"), \n\t\tarray(\"iconsmind-Crown-2\" => \"iconsmind-Crown-2\"), \n\t\tarray(\"iconsmind-Dice\" => \"iconsmind-Dice\"), \n\t\tarray(\"iconsmind-Dice-2\" => \"iconsmind-Dice-2\"), \n\t\tarray(\"iconsmind-Domino\" => \"iconsmind-Domino\"), \n\t\tarray(\"iconsmind-Door-Hanger\" => \"iconsmind-Door-Hanger\"), \n\t\tarray(\"iconsmind-Drill\" => \"iconsmind-Drill\"), \n\t\tarray(\"iconsmind-Feather\" => \"iconsmind-Feather\"), \n\t\tarray(\"iconsmind-Fire-Hydrant\" => \"iconsmind-Fire-Hydrant\"), \n\t\tarray(\"iconsmind-Flag\" => \"iconsmind-Flag\"), \n\t\tarray(\"iconsmind-Flag-2\" => \"iconsmind-Flag-2\"), \n\t\tarray(\"iconsmind-Flashlight\" => \"iconsmind-Flashlight\"), \n\t\tarray(\"iconsmind-Footprint2\" => \"iconsmind-Footprint2\"), \n\t\tarray(\"iconsmind-Gas-Pump\" => \"iconsmind-Gas-Pump\"), \n\t\tarray(\"iconsmind-Gift-Box\" => \"iconsmind-Gift-Box\"), \n\t\tarray(\"iconsmind-Gun\" => \"iconsmind-Gun\"), \n\t\tarray(\"iconsmind-Gun-2\" => \"iconsmind-Gun-2\"), \n\t\tarray(\"iconsmind-Gun-3\" => \"iconsmind-Gun-3\"), \n\t\tarray(\"iconsmind-Hammer\" => \"iconsmind-Hammer\"), \n\t\tarray(\"iconsmind-Identification-Badge\" => \"iconsmind-Identification-Badge\"), \n\t\tarray(\"iconsmind-Key\" => \"iconsmind-Key\"), \n\t\tarray(\"iconsmind-Key-2\" => \"iconsmind-Key-2\"), \n\t\tarray(\"iconsmind-Key-3\" => \"iconsmind-Key-3\"), \n\t\tarray(\"iconsmind-Lamp\" => \"iconsmind-Lamp\"), \n\t\tarray(\"iconsmind-Lego\" => \"iconsmind-Lego\"), \n\t\tarray(\"iconsmind-Life-Safer\" => \"iconsmind-Life-Safer\"), \n\t\tarray(\"iconsmind-Light-Bulb\" => \"iconsmind-Light-Bulb\"), \n\t\tarray(\"iconsmind-Light-Bulb2\" => \"iconsmind-Light-Bulb2\"), \n\t\tarray(\"iconsmind-Luggafe-Front\" => \"iconsmind-Luggafe-Front\"), \n\t\tarray(\"iconsmind-Luggage-2\" => \"iconsmind-Luggage-2\"), \n\t\tarray(\"iconsmind-Magic-Wand\" => \"iconsmind-Magic-Wand\"), \n\t\tarray(\"iconsmind-Magnet\" => \"iconsmind-Magnet\"), \n\t\tarray(\"iconsmind-Mask\" => \"iconsmind-Mask\"), \n\t\tarray(\"iconsmind-Menorah\" => \"iconsmind-Menorah\"), \n\t\tarray(\"iconsmind-Mirror\" => \"iconsmind-Mirror\"), \n\t\tarray(\"iconsmind-Movie-Ticket\" => \"iconsmind-Movie-Ticket\"), \n\t\tarray(\"iconsmind-Office-Lamp\" => \"iconsmind-Office-Lamp\"), \n\t\tarray(\"iconsmind-Paint-Brush\" => \"iconsmind-Paint-Brush\"), \n\t\tarray(\"iconsmind-Paint-Bucket\" => \"iconsmind-Paint-Bucket\"), \n\t\tarray(\"iconsmind-Paper-Plane\" => \"iconsmind-Paper-Plane\"), \n\t\tarray(\"iconsmind-Post-Sign\" => \"iconsmind-Post-Sign\"), \n\t\tarray(\"iconsmind-Post-Sign2ways\" => \"iconsmind-Post-Sign2ways\"), \n\t\tarray(\"iconsmind-Puzzle\" => \"iconsmind-Puzzle\"), \n\t\tarray(\"iconsmind-Razzor-Blade\" => \"iconsmind-Razzor-Blade\"), \n\t\tarray(\"iconsmind-Scale\" => \"iconsmind-Scale\"), \n\t\tarray(\"iconsmind-Screwdriver\" => \"iconsmind-Screwdriver\"), \n\t\tarray(\"iconsmind-Sewing-Machine\" => \"iconsmind-Sewing-Machine\"), \n\t\tarray(\"iconsmind-Sheriff-Badge\" => \"iconsmind-Sheriff-Badge\"), \n\t\tarray(\"iconsmind-Stroller\" => \"iconsmind-Stroller\"), \n\t\tarray(\"iconsmind-Suitcase\" => \"iconsmind-Suitcase\"), \n\t\tarray(\"iconsmind-Teddy-Bear\" => \"iconsmind-Teddy-Bear\"), \n\t\tarray(\"iconsmind-Telescope\" => \"iconsmind-Telescope\"), \n\t\tarray(\"iconsmind-Tent\" => \"iconsmind-Tent\"), \n\t\tarray(\"iconsmind-Thread\" => \"iconsmind-Thread\"), \n\t\tarray(\"iconsmind-Ticket\" => \"iconsmind-Ticket\"), \n\t\tarray(\"iconsmind-Time-Bomb\" => \"iconsmind-Time-Bomb\"), \n\t\tarray(\"iconsmind-Tourch\" => \"iconsmind-Tourch\"), \n\t\tarray(\"iconsmind-Vase\" => \"iconsmind-Vase\"), \n\t\tarray(\"iconsmind-Video-GameController\" => \"iconsmind-Video-GameController\"), \n\t\tarray(\"iconsmind-Conservation\" => \"iconsmind-Conservation\"), \n\t\tarray(\"iconsmind-Eci-Icon\" => \"iconsmind-Eci-Icon\"), \n\t\tarray(\"iconsmind-Environmental\" => \"iconsmind-Environmental\"), \n\t\tarray(\"iconsmind-Environmental-2\" => \"iconsmind-Environmental-2\"), \n\t\tarray(\"iconsmind-Environmental-3\" => \"iconsmind-Environmental-3\"), \n\t\tarray(\"iconsmind-Fire-Flame\" => \"iconsmind-Fire-Flame\"), \n\t\tarray(\"iconsmind-Fire-Flame2\" => \"iconsmind-Fire-Flame2\"), \n\t\tarray(\"iconsmind-Flowerpot\" => \"iconsmind-Flowerpot\"), \n\t\tarray(\"iconsmind-Forest\" => \"iconsmind-Forest\"), \n\t\tarray(\"iconsmind-Green-Energy\" => \"iconsmind-Green-Energy\"), \n\t\tarray(\"iconsmind-Green-House\" => \"iconsmind-Green-House\"), \n\t\tarray(\"iconsmind-Landscape2\" => \"iconsmind-Landscape2\"), \n\t\tarray(\"iconsmind-Leafs\" => \"iconsmind-Leafs\"), \n\t\tarray(\"iconsmind-Leafs-2\" => \"iconsmind-Leafs-2\"), \n\t\tarray(\"iconsmind-Light-BulbLeaf\" => \"iconsmind-Light-BulbLeaf\"), \n\t\tarray(\"iconsmind-Palm-Tree\" => \"iconsmind-Palm-Tree\"), \n\t\tarray(\"iconsmind-Plant\" => \"iconsmind-Plant\"), \n\t\tarray(\"iconsmind-Recycling\" => \"iconsmind-Recycling\"), \n\t\tarray(\"iconsmind-Recycling-2\" => \"iconsmind-Recycling-2\"), \n\t\tarray(\"iconsmind-Seed\" => \"iconsmind-Seed\"), \n\t\tarray(\"iconsmind-Trash-withMen\" => \"iconsmind-Trash-withMen\"), \n\t\tarray(\"iconsmind-Tree\" => \"iconsmind-Tree\"), \n\t\tarray(\"iconsmind-Tree-2\" => \"iconsmind-Tree-2\"), \n\t\tarray(\"iconsmind-Tree-3\" => \"iconsmind-Tree-3\"), \n\t\tarray(\"iconsmind-Audio\" => \"iconsmind-Audio\"), \n\t\tarray(\"iconsmind-Back-Music\" => \"iconsmind-Back-Music\"), \n\t\tarray(\"iconsmind-Bell\" => \"iconsmind-Bell\"), \n\t\tarray(\"iconsmind-Casette-Tape\" => \"iconsmind-Casette-Tape\"), \n\t\tarray(\"iconsmind-CD-2\" => \"iconsmind-CD-2\"), \n\t\tarray(\"iconsmind-CD-Cover\" => \"iconsmind-CD-Cover\"), \n\t\tarray(\"iconsmind-Cello\" => \"iconsmind-Cello\"), \n\t\tarray(\"iconsmind-Clef\" => \"iconsmind-Clef\"), \n\t\tarray(\"iconsmind-Drum\" => \"iconsmind-Drum\"), \n\t\tarray(\"iconsmind-Earphones\" => \"iconsmind-Earphones\"), \n\t\tarray(\"iconsmind-Earphones-2\" => \"iconsmind-Earphones-2\"), \n\t\tarray(\"iconsmind-Electric-Guitar\" => \"iconsmind-Electric-Guitar\"), \n\t\tarray(\"iconsmind-Equalizer\" => \"iconsmind-Equalizer\"), \n\t\tarray(\"iconsmind-First\" => \"iconsmind-First\"), \n\t\tarray(\"iconsmind-Guitar\" => \"iconsmind-Guitar\"), \n\t\tarray(\"iconsmind-Headphones\" => \"iconsmind-Headphones\"), \n\t\tarray(\"iconsmind-Keyboard3\" => \"iconsmind-Keyboard3\"), \n\t\tarray(\"iconsmind-Last\" => \"iconsmind-Last\"), \n\t\tarray(\"iconsmind-Loud\" => \"iconsmind-Loud\"), \n\t\tarray(\"iconsmind-Loudspeaker\" => \"iconsmind-Loudspeaker\"), \n\t\tarray(\"iconsmind-Mic\" => \"iconsmind-Mic\"), \n\t\tarray(\"iconsmind-Microphone\" => \"iconsmind-Microphone\"), \n\t\tarray(\"iconsmind-Microphone-2\" => \"iconsmind-Microphone-2\"), \n\t\tarray(\"iconsmind-Microphone-3\" => \"iconsmind-Microphone-3\"), \n\t\tarray(\"iconsmind-Microphone-4\" => \"iconsmind-Microphone-4\"), \n\t\tarray(\"iconsmind-Microphone-5\" => \"iconsmind-Microphone-5\"), \n\t\tarray(\"iconsmind-Microphone-6\" => \"iconsmind-Microphone-6\"), \n\t\tarray(\"iconsmind-Microphone-7\" => \"iconsmind-Microphone-7\"), \n\t\tarray(\"iconsmind-Mixer\" => \"iconsmind-Mixer\"), \n\t\tarray(\"iconsmind-Mp3-File\" => \"iconsmind-Mp3-File\"), \n\t\tarray(\"iconsmind-Music-Note\" => \"iconsmind-Music-Note\"), \n\t\tarray(\"iconsmind-Music-Note2\" => \"iconsmind-Music-Note2\"), \n\t\tarray(\"iconsmind-Music-Note3\" => \"iconsmind-Music-Note3\"), \n\t\tarray(\"iconsmind-Music-Note4\" => \"iconsmind-Music-Note4\"), \n\t\tarray(\"iconsmind-Music-Player\" => \"iconsmind-Music-Player\"), \n\t\tarray(\"iconsmind-Mute\" => \"iconsmind-Mute\"), \n\t\tarray(\"iconsmind-Next-Music\" => \"iconsmind-Next-Music\"), \n\t\tarray(\"iconsmind-Old-Radio\" => \"iconsmind-Old-Radio\"), \n\t\tarray(\"iconsmind-On-Air\" => \"iconsmind-On-Air\"), \n\t\tarray(\"iconsmind-Piano\" => \"iconsmind-Piano\"), \n\t\tarray(\"iconsmind-Play-Music\" => \"iconsmind-Play-Music\"), \n\t\tarray(\"iconsmind-Radio\" => \"iconsmind-Radio\"), \n\t\tarray(\"iconsmind-Record\" => \"iconsmind-Record\"), \n\t\tarray(\"iconsmind-Record-Music\" => \"iconsmind-Record-Music\"), \n\t\tarray(\"iconsmind-Rock-andRoll\" => \"iconsmind-Rock-andRoll\"), \n\t\tarray(\"iconsmind-Saxophone\" => \"iconsmind-Saxophone\"), \n\t\tarray(\"iconsmind-Sound\" => \"iconsmind-Sound\"), \n\t\tarray(\"iconsmind-Sound-Wave\" => \"iconsmind-Sound-Wave\"), \n\t\tarray(\"iconsmind-Speaker\" => \"iconsmind-Speaker\"), \n\t\tarray(\"iconsmind-Stop-Music\" => \"iconsmind-Stop-Music\"), \n\t\tarray(\"iconsmind-Trumpet\" => \"iconsmind-Trumpet\"), \n\t\tarray(\"iconsmind-Voice\" => \"iconsmind-Voice\"), \n\t\tarray(\"iconsmind-Volume-Down\" => \"iconsmind-Volume-Down\"), \n\t\tarray(\"iconsmind-Volume-Up\" => \"iconsmind-Volume-Up\"), \n\t\tarray(\"iconsmind-Back\" => \"iconsmind-Back\"), \n\t\tarray(\"iconsmind-Back-2\" => \"iconsmind-Back-2\"), \n\t\tarray(\"iconsmind-Eject\" => \"iconsmind-Eject\"), \n\t\tarray(\"iconsmind-Eject-2\" => \"iconsmind-Eject-2\"), \n\t\tarray(\"iconsmind-End\" => \"iconsmind-End\"), \n\t\tarray(\"iconsmind-End-2\" => \"iconsmind-End-2\"), \n\t\tarray(\"iconsmind-Next\" => \"iconsmind-Next\"), \n\t\tarray(\"iconsmind-Next-2\" => \"iconsmind-Next-2\"), \n\t\tarray(\"iconsmind-Pause\" => \"iconsmind-Pause\"), \n\t\tarray(\"iconsmind-Pause-2\" => \"iconsmind-Pause-2\"), \n\t\tarray(\"iconsmind-Power-2\" => \"iconsmind-Power-2\"), \n\t\tarray(\"iconsmind-Power-3\" => \"iconsmind-Power-3\"), \n\t\tarray(\"iconsmind-Record2\" => \"iconsmind-Record2\"), \n\t\tarray(\"iconsmind-Record-2\" => \"iconsmind-Record-2\"), \n\t\tarray(\"iconsmind-Repeat\" => \"iconsmind-Repeat\"), \n\t\tarray(\"iconsmind-Repeat-2\" => \"iconsmind-Repeat-2\"), \n\t\tarray(\"iconsmind-Shuffle\" => \"iconsmind-Shuffle\"), \n\t\tarray(\"iconsmind-Shuffle-2\" => \"iconsmind-Shuffle-2\"), \n\t\tarray(\"iconsmind-Start\" => \"iconsmind-Start\"), \n\t\tarray(\"iconsmind-Start-2\" => \"iconsmind-Start-2\"), \n\t\tarray(\"iconsmind-Stop\" => \"iconsmind-Stop\"), \n\t\tarray(\"iconsmind-Stop-2\" => \"iconsmind-Stop-2\"), \n\t\tarray(\"iconsmind-Compass\" => \"iconsmind-Compass\"), \n\t\tarray(\"iconsmind-Compass-2\" => \"iconsmind-Compass-2\"), \n\t\tarray(\"iconsmind-Compass-Rose\" => \"iconsmind-Compass-Rose\"), \n\t\tarray(\"iconsmind-Direction-East\" => \"iconsmind-Direction-East\"), \n\t\tarray(\"iconsmind-Direction-North\" => \"iconsmind-Direction-North\"), \n\t\tarray(\"iconsmind-Direction-South\" => \"iconsmind-Direction-South\"), \n\t\tarray(\"iconsmind-Direction-West\" => \"iconsmind-Direction-West\"), \n\t\tarray(\"iconsmind-Edit-Map\" => \"iconsmind-Edit-Map\"), \n\t\tarray(\"iconsmind-Geo\" => \"iconsmind-Geo\"), \n\t\tarray(\"iconsmind-Geo2\" => \"iconsmind-Geo2\"), \n\t\tarray(\"iconsmind-Geo3\" => \"iconsmind-Geo3\"), \n\t\tarray(\"iconsmind-Geo22\" => \"iconsmind-Geo22\"), \n\t\tarray(\"iconsmind-Geo23\" => \"iconsmind-Geo23\"), \n\t\tarray(\"iconsmind-Geo24\" => \"iconsmind-Geo24\"), \n\t\tarray(\"iconsmind-Geo2-Close\" => \"iconsmind-Geo2-Close\"), \n\t\tarray(\"iconsmind-Geo2-Love\" => \"iconsmind-Geo2-Love\"), \n\t\tarray(\"iconsmind-Geo2-Number\" => \"iconsmind-Geo2-Number\"), \n\t\tarray(\"iconsmind-Geo2-Star\" => \"iconsmind-Geo2-Star\"), \n\t\tarray(\"iconsmind-Geo32\" => \"iconsmind-Geo32\"), \n\t\tarray(\"iconsmind-Geo33\" => \"iconsmind-Geo33\"), \n\t\tarray(\"iconsmind-Geo34\" => \"iconsmind-Geo34\"), \n\t\tarray(\"iconsmind-Geo3-Close\" => \"iconsmind-Geo3-Close\"), \n\t\tarray(\"iconsmind-Geo3-Love\" => \"iconsmind-Geo3-Love\"), \n\t\tarray(\"iconsmind-Geo3-Number\" => \"iconsmind-Geo3-Number\"), \n\t\tarray(\"iconsmind-Geo3-Star\" => \"iconsmind-Geo3-Star\"), \n\t\tarray(\"iconsmind-Geo-Close\" => \"iconsmind-Geo-Close\"), \n\t\tarray(\"iconsmind-Geo-Love\" => \"iconsmind-Geo-Love\"), \n\t\tarray(\"iconsmind-Geo-Number\" => \"iconsmind-Geo-Number\"), \n\t\tarray(\"iconsmind-Geo-Star\" => \"iconsmind-Geo-Star\"), \n\t\tarray(\"iconsmind-Global-Position\" => \"iconsmind-Global-Position\"), \n\t\tarray(\"iconsmind-Globe\" => \"iconsmind-Globe\"), \n\t\tarray(\"iconsmind-Globe-2\" => \"iconsmind-Globe-2\"), \n\t\tarray(\"iconsmind-Location\" => \"iconsmind-Location\"), \n\t\tarray(\"iconsmind-Location-2\" => \"iconsmind-Location-2\"), \n\t\tarray(\"iconsmind-Map\" => \"iconsmind-Map\"), \n\t\tarray(\"iconsmind-Map2\" => \"iconsmind-Map2\"), \n\t\tarray(\"iconsmind-Map-Marker\" => \"iconsmind-Map-Marker\"), \n\t\tarray(\"iconsmind-Map-Marker2\" => \"iconsmind-Map-Marker2\"), \n\t\tarray(\"iconsmind-Map-Marker3\" => \"iconsmind-Map-Marker3\"), \n\t\tarray(\"iconsmind-Road2\" => \"iconsmind-Road2\"), \n\t\tarray(\"iconsmind-Satelite\" => \"iconsmind-Satelite\"), \n\t\tarray(\"iconsmind-Satelite-2\" => \"iconsmind-Satelite-2\"), \n\t\tarray(\"iconsmind-Street-View\" => \"iconsmind-Street-View\"), \n\t\tarray(\"iconsmind-Street-View2\" => \"iconsmind-Street-View2\"), \n\t\tarray(\"iconsmind-Android-Store\" => \"iconsmind-Android-Store\"), \n\t\tarray(\"iconsmind-Apple-Store\" => \"iconsmind-Apple-Store\"), \n\t\tarray(\"iconsmind-Box2\" => \"iconsmind-Box2\"), \n\t\tarray(\"iconsmind-Dropbox\" => \"iconsmind-Dropbox\"), \n\t\tarray(\"iconsmind-Google-Drive\" => \"iconsmind-Google-Drive\"), \n\t\tarray(\"iconsmind-Google-Play\" => \"iconsmind-Google-Play\"), \n\t\tarray(\"iconsmind-Paypal\" => \"iconsmind-Paypal\"), \n\t\tarray(\"iconsmind-Skrill\" => \"iconsmind-Skrill\"), \n\t\tarray(\"iconsmind-X-Box\" => \"iconsmind-X-Box\"), \n\t\tarray(\"iconsmind-Add\" => \"iconsmind-Add\"), \n\t\tarray(\"iconsmind-Back2\" => \"iconsmind-Back2\"), \n\t\tarray(\"iconsmind-Broken-Link\" => \"iconsmind-Broken-Link\"), \n\t\tarray(\"iconsmind-Check\" => \"iconsmind-Check\"), \n\t\tarray(\"iconsmind-Check-2\" => \"iconsmind-Check-2\"), \n\t\tarray(\"iconsmind-Circular-Point\" => \"iconsmind-Circular-Point\"), \n\t\tarray(\"iconsmind-Close\" => \"iconsmind-Close\"), \n\t\tarray(\"iconsmind-Cursor\" => \"iconsmind-Cursor\"), \n\t\tarray(\"iconsmind-Cursor-Click\" => \"iconsmind-Cursor-Click\"), \n\t\tarray(\"iconsmind-Cursor-Click2\" => \"iconsmind-Cursor-Click2\"), \n\t\tarray(\"iconsmind-Cursor-Move\" => \"iconsmind-Cursor-Move\"), \n\t\tarray(\"iconsmind-Cursor-Move2\" => \"iconsmind-Cursor-Move2\"), \n\t\tarray(\"iconsmind-Cursor-Select\" => \"iconsmind-Cursor-Select\"), \n\t\tarray(\"iconsmind-Down\" => \"iconsmind-Down\"), \n\t\tarray(\"iconsmind-Download\" => \"iconsmind-Download\"), \n\t\tarray(\"iconsmind-Downward\" => \"iconsmind-Downward\"), \n\t\tarray(\"iconsmind-Endways\" => \"iconsmind-Endways\"), \n\t\tarray(\"iconsmind-Forward\" => \"iconsmind-Forward\"), \n\t\tarray(\"iconsmind-Left\" => \"iconsmind-Left\"), \n\t\tarray(\"iconsmind-Link\" => \"iconsmind-Link\"), \n\t\tarray(\"iconsmind-Next2\" => \"iconsmind-Next2\"), \n\t\tarray(\"iconsmind-Orientation\" => \"iconsmind-Orientation\"), \n\t\tarray(\"iconsmind-Pointer\" => \"iconsmind-Pointer\"), \n\t\tarray(\"iconsmind-Previous\" => \"iconsmind-Previous\"), \n\t\tarray(\"iconsmind-Redo\" => \"iconsmind-Redo\"), \n\t\tarray(\"iconsmind-Refresh\" => \"iconsmind-Refresh\"), \n\t\tarray(\"iconsmind-Reload\" => \"iconsmind-Reload\"), \n\t\tarray(\"iconsmind-Remove\" => \"iconsmind-Remove\"), \n\t\tarray(\"iconsmind-Repeat2\" => \"iconsmind-Repeat2\"), \n\t\tarray(\"iconsmind-Reset\" => \"iconsmind-Reset\"), \n\t\tarray(\"iconsmind-Rewind\" => \"iconsmind-Rewind\"), \n\t\tarray(\"iconsmind-Right\" => \"iconsmind-Right\"), \n\t\tarray(\"iconsmind-Rotation\" => \"iconsmind-Rotation\"), \n\t\tarray(\"iconsmind-Rotation-390\" => \"iconsmind-Rotation-390\"), \n\t\tarray(\"iconsmind-Spot\" => \"iconsmind-Spot\"), \n\t\tarray(\"iconsmind-Start-ways\" => \"iconsmind-Start-ways\"), \n\t\tarray(\"iconsmind-Synchronize\" => \"iconsmind-Synchronize\"), \n\t\tarray(\"iconsmind-Synchronize-2\" => \"iconsmind-Synchronize-2\"), \n\t\tarray(\"iconsmind-Undo\" => \"iconsmind-Undo\"), \n\t\tarray(\"iconsmind-Up\" => \"iconsmind-Up\"), \n\t\tarray(\"iconsmind-Upload\" => \"iconsmind-Upload\"), \n\t\tarray(\"iconsmind-Upward\" => \"iconsmind-Upward\"), \n\t\tarray(\"iconsmind-Yes\" => \"iconsmind-Yes\"), \n\t\tarray(\"iconsmind-Barricade2\" => \"iconsmind-Barricade2\"), \n\t\tarray(\"iconsmind-Crane\" => \"iconsmind-Crane\"), \n\t\tarray(\"iconsmind-Dam\" => \"iconsmind-Dam\"), \n\t\tarray(\"iconsmind-Drill2\" => \"iconsmind-Drill2\"), \n\t\tarray(\"iconsmind-Electricity\" => \"iconsmind-Electricity\"), \n\t\tarray(\"iconsmind-Explode\" => \"iconsmind-Explode\"), \n\t\tarray(\"iconsmind-Factory\" => \"iconsmind-Factory\"), \n\t\tarray(\"iconsmind-Fuel\" => \"iconsmind-Fuel\"), \n\t\tarray(\"iconsmind-Helmet2\" => \"iconsmind-Helmet2\"), \n\t\tarray(\"iconsmind-Helmet-2\" => \"iconsmind-Helmet-2\"), \n\t\tarray(\"iconsmind-Laser\" => \"iconsmind-Laser\"), \n\t\tarray(\"iconsmind-Mine\" => \"iconsmind-Mine\"), \n\t\tarray(\"iconsmind-Oil\" => \"iconsmind-Oil\"), \n\t\tarray(\"iconsmind-Petrol\" => \"iconsmind-Petrol\"), \n\t\tarray(\"iconsmind-Pipe\" => \"iconsmind-Pipe\"), \n\t\tarray(\"iconsmind-Power-Station\" => \"iconsmind-Power-Station\"), \n\t\tarray(\"iconsmind-Refinery\" => \"iconsmind-Refinery\"), \n\t\tarray(\"iconsmind-Saw\" => \"iconsmind-Saw\"), \n\t\tarray(\"iconsmind-Shovel\" => \"iconsmind-Shovel\"), \n\t\tarray(\"iconsmind-Solar\" => \"iconsmind-Solar\"), \n\t\tarray(\"iconsmind-Wheelbarrow\" => \"iconsmind-Wheelbarrow\"), \n\t\tarray(\"iconsmind-Windmill\" => \"iconsmind-Windmill\"), \n\t\tarray(\"iconsmind-Aa\" => \"iconsmind-Aa\"), \n\t\tarray(\"iconsmind-Add-File\" => \"iconsmind-Add-File\"), \n\t\tarray(\"iconsmind-Address-Book\" => \"iconsmind-Address-Book\"), \n\t\tarray(\"iconsmind-Address-Book2\" => \"iconsmind-Address-Book2\"), \n\t\tarray(\"iconsmind-Add-SpaceAfterParagraph\" => \"iconsmind-Add-SpaceAfterParagraph\"), \n\t\tarray(\"iconsmind-Add-SpaceBeforeParagraph\" => \"iconsmind-Add-SpaceBeforeParagraph\"), \n\t\tarray(\"iconsmind-Airbrush\" => \"iconsmind-Airbrush\"), \n\t\tarray(\"iconsmind-Aligator\" => \"iconsmind-Aligator\"), \n\t\tarray(\"iconsmind-Align-Center\" => \"iconsmind-Align-Center\"), \n\t\tarray(\"iconsmind-Align-JustifyAll\" => \"iconsmind-Align-JustifyAll\"), \n\t\tarray(\"iconsmind-Align-JustifyCenter\" => \"iconsmind-Align-JustifyCenter\"), \n\t\tarray(\"iconsmind-Align-JustifyLeft\" => \"iconsmind-Align-JustifyLeft\"), \n\t\tarray(\"iconsmind-Align-JustifyRight\" => \"iconsmind-Align-JustifyRight\"), \n\t\tarray(\"iconsmind-Align-Left\" => \"iconsmind-Align-Left\"), \n\t\tarray(\"iconsmind-Align-Right\" => \"iconsmind-Align-Right\"), \n\t\tarray(\"iconsmind-Alpha\" => \"iconsmind-Alpha\"), \n\t\tarray(\"iconsmind-AMX\" => \"iconsmind-AMX\"), \n\t\tarray(\"iconsmind-Anchor2\" => \"iconsmind-Anchor2\"), \n\t\tarray(\"iconsmind-Android\" => \"iconsmind-Android\"), \n\t\tarray(\"iconsmind-Angel\" => \"iconsmind-Angel\"), \n\t\tarray(\"iconsmind-Angel-Smiley\" => \"iconsmind-Angel-Smiley\"), \n\t\tarray(\"iconsmind-Angry\" => \"iconsmind-Angry\"), \n\t\tarray(\"iconsmind-Apple\" => \"iconsmind-Apple\"), \n\t\tarray(\"iconsmind-Apple-Bite\" => \"iconsmind-Apple-Bite\"), \n\t\tarray(\"iconsmind-Argentina\" => \"iconsmind-Argentina\"), \n\t\tarray(\"iconsmind-Arrow-Around\" => \"iconsmind-Arrow-Around\"), \n\t\tarray(\"iconsmind-Arrow-Back\" => \"iconsmind-Arrow-Back\"), \n\t\tarray(\"iconsmind-Arrow-Back2\" => \"iconsmind-Arrow-Back2\"), \n\t\tarray(\"iconsmind-Arrow-Back3\" => \"iconsmind-Arrow-Back3\"), \n\t\tarray(\"iconsmind-Arrow-Barrier\" => \"iconsmind-Arrow-Barrier\"), \n\t\tarray(\"iconsmind-Arrow-Circle\" => \"iconsmind-Arrow-Circle\"), \n\t\tarray(\"iconsmind-Arrow-Cross\" => \"iconsmind-Arrow-Cross\"), \n\t\tarray(\"iconsmind-Arrow-Down\" => \"iconsmind-Arrow-Down\"), \n\t\tarray(\"iconsmind-Arrow-Down2\" => \"iconsmind-Arrow-Down2\"), \n\t\tarray(\"iconsmind-Arrow-Down3\" => \"iconsmind-Arrow-Down3\"), \n\t\tarray(\"iconsmind-Arrow-DowninCircle\" => \"iconsmind-Arrow-DowninCircle\"), \n\t\tarray(\"iconsmind-Arrow-Fork\" => \"iconsmind-Arrow-Fork\"), \n\t\tarray(\"iconsmind-Arrow-Forward\" => \"iconsmind-Arrow-Forward\"), \n\t\tarray(\"iconsmind-Arrow-Forward2\" => \"iconsmind-Arrow-Forward2\"), \n\t\tarray(\"iconsmind-Arrow-From\" => \"iconsmind-Arrow-From\"), \n\t\tarray(\"iconsmind-Arrow-Inside\" => \"iconsmind-Arrow-Inside\"), \n\t\tarray(\"iconsmind-Arrow-Inside45\" => \"iconsmind-Arrow-Inside45\"), \n\t\tarray(\"iconsmind-Arrow-InsideGap\" => \"iconsmind-Arrow-InsideGap\"), \n\t\tarray(\"iconsmind-Arrow-InsideGap45\" => \"iconsmind-Arrow-InsideGap45\"), \n\t\tarray(\"iconsmind-Arrow-Into\" => \"iconsmind-Arrow-Into\"), \n\t\tarray(\"iconsmind-Arrow-Join\" => \"iconsmind-Arrow-Join\"), \n\t\tarray(\"iconsmind-Arrow-Junction\" => \"iconsmind-Arrow-Junction\"), \n\t\tarray(\"iconsmind-Arrow-Left\" => \"iconsmind-Arrow-Left\"), \n\t\tarray(\"iconsmind-Arrow-Left2\" => \"iconsmind-Arrow-Left2\"), \n\t\tarray(\"iconsmind-Arrow-LeftinCircle\" => \"iconsmind-Arrow-LeftinCircle\"), \n\t\tarray(\"iconsmind-Arrow-Loop\" => \"iconsmind-Arrow-Loop\"), \n\t\tarray(\"iconsmind-Arrow-Merge\" => \"iconsmind-Arrow-Merge\"), \n\t\tarray(\"iconsmind-Arrow-Mix\" => \"iconsmind-Arrow-Mix\"), \n\t\tarray(\"iconsmind-Arrow-Next\" => \"iconsmind-Arrow-Next\"), \n\t\tarray(\"iconsmind-Arrow-OutLeft\" => \"iconsmind-Arrow-OutLeft\"), \n\t\tarray(\"iconsmind-Arrow-OutRight\" => \"iconsmind-Arrow-OutRight\"), \n\t\tarray(\"iconsmind-Arrow-Outside\" => \"iconsmind-Arrow-Outside\"), \n\t\tarray(\"iconsmind-Arrow-Outside45\" => \"iconsmind-Arrow-Outside45\"), \n\t\tarray(\"iconsmind-Arrow-OutsideGap\" => \"iconsmind-Arrow-OutsideGap\"), \n\t\tarray(\"iconsmind-Arrow-OutsideGap45\" => \"iconsmind-Arrow-OutsideGap45\"), \n\t\tarray(\"iconsmind-Arrow-Over\" => \"iconsmind-Arrow-Over\"), \n\t\tarray(\"iconsmind-Arrow-Refresh\" => \"iconsmind-Arrow-Refresh\"), \n\t\tarray(\"iconsmind-Arrow-Refresh2\" => \"iconsmind-Arrow-Refresh2\"), \n\t\tarray(\"iconsmind-Arrow-Right\" => \"iconsmind-Arrow-Right\"), \n\t\tarray(\"iconsmind-Arrow-Right2\" => \"iconsmind-Arrow-Right2\"), \n\t\tarray(\"iconsmind-Arrow-RightinCircle\" => \"iconsmind-Arrow-RightinCircle\"), \n\t\tarray(\"iconsmind-Arrow-Shuffle\" => \"iconsmind-Arrow-Shuffle\"), \n\t\tarray(\"iconsmind-Arrow-Squiggly\" => \"iconsmind-Arrow-Squiggly\"), \n\t\tarray(\"iconsmind-Arrow-Through\" => \"iconsmind-Arrow-Through\"), \n\t\tarray(\"iconsmind-Arrow-To\" => \"iconsmind-Arrow-To\"), \n\t\tarray(\"iconsmind-Arrow-TurnLeft\" => \"iconsmind-Arrow-TurnLeft\"), \n\t\tarray(\"iconsmind-Arrow-TurnRight\" => \"iconsmind-Arrow-TurnRight\"), \n\t\tarray(\"iconsmind-Arrow-Up\" => \"iconsmind-Arrow-Up\"), \n\t\tarray(\"iconsmind-Arrow-Up2\" => \"iconsmind-Arrow-Up2\"), \n\t\tarray(\"iconsmind-Arrow-Up3\" => \"iconsmind-Arrow-Up3\"), \n\t\tarray(\"iconsmind-Arrow-UpinCircle\" => \"iconsmind-Arrow-UpinCircle\"), \n\t\tarray(\"iconsmind-Arrow-XLeft\" => \"iconsmind-Arrow-XLeft\"), \n\t\tarray(\"iconsmind-Arrow-XRight\" => \"iconsmind-Arrow-XRight\"), \n\t\tarray(\"iconsmind-ATM\" => \"iconsmind-ATM\"), \n\t\tarray(\"iconsmind-At-Sign\" => \"iconsmind-At-Sign\"), \n\t\tarray(\"iconsmind-Baby-Clothes\" => \"iconsmind-Baby-Clothes\"), \n\t\tarray(\"iconsmind-Baby-Clothes2\" => \"iconsmind-Baby-Clothes2\"), \n\t\tarray(\"iconsmind-Bag\" => \"iconsmind-Bag\"), \n\t\tarray(\"iconsmind-Bakelite\" => \"iconsmind-Bakelite\"), \n\t\tarray(\"iconsmind-Banana\" => \"iconsmind-Banana\"), \n\t\tarray(\"iconsmind-Bank\" => \"iconsmind-Bank\"), \n\t\tarray(\"iconsmind-Bar-Chart\" => \"iconsmind-Bar-Chart\"), \n\t\tarray(\"iconsmind-Bar-Chart2\" => \"iconsmind-Bar-Chart2\"), \n\t\tarray(\"iconsmind-Bar-Chart3\" => \"iconsmind-Bar-Chart3\"), \n\t\tarray(\"iconsmind-Bar-Chart4\" => \"iconsmind-Bar-Chart4\"), \n\t\tarray(\"iconsmind-Bar-Chart5\" => \"iconsmind-Bar-Chart5\"), \n\t\tarray(\"iconsmind-Bat\" => \"iconsmind-Bat\"), \n\t\tarray(\"iconsmind-Bathrobe\" => \"iconsmind-Bathrobe\"), \n\t\tarray(\"iconsmind-Battery-0\" => \"iconsmind-Battery-0\"), \n\t\tarray(\"iconsmind-Battery-25\" => \"iconsmind-Battery-25\"), \n\t\tarray(\"iconsmind-Battery-50\" => \"iconsmind-Battery-50\"), \n\t\tarray(\"iconsmind-Battery-75\" => \"iconsmind-Battery-75\"), \n\t\tarray(\"iconsmind-Battery-100\" => \"iconsmind-Battery-100\"), \n\t\tarray(\"iconsmind-Battery-Charge\" => \"iconsmind-Battery-Charge\"), \n\t\tarray(\"iconsmind-Bear\" => \"iconsmind-Bear\"), \n\t\tarray(\"iconsmind-Beard\" => \"iconsmind-Beard\"), \n\t\tarray(\"iconsmind-Beard-2\" => \"iconsmind-Beard-2\"), \n\t\tarray(\"iconsmind-Beard-3\" => \"iconsmind-Beard-3\"), \n\t\tarray(\"iconsmind-Bee\" => \"iconsmind-Bee\"), \n\t\tarray(\"iconsmind-Beer\" => \"iconsmind-Beer\"), \n\t\tarray(\"iconsmind-Beer-Glass\" => \"iconsmind-Beer-Glass\"), \n\t\tarray(\"iconsmind-Bell2\" => \"iconsmind-Bell2\"), \n\t\tarray(\"iconsmind-Belt\" => \"iconsmind-Belt\"), \n\t\tarray(\"iconsmind-Belt-2\" => \"iconsmind-Belt-2\"), \n\t\tarray(\"iconsmind-Belt-3\" => \"iconsmind-Belt-3\"), \n\t\tarray(\"iconsmind-Berlin-Tower\" => \"iconsmind-Berlin-Tower\"), \n\t\tarray(\"iconsmind-Beta\" => \"iconsmind-Beta\"), \n\t\tarray(\"iconsmind-Big-Bang\" => \"iconsmind-Big-Bang\"), \n\t\tarray(\"iconsmind-Big-Data\" => \"iconsmind-Big-Data\"), \n\t\tarray(\"iconsmind-Bikini\" => \"iconsmind-Bikini\"), \n\t\tarray(\"iconsmind-Bilk-Bottle2\" => \"iconsmind-Bilk-Bottle2\"), \n\t\tarray(\"iconsmind-Bird\" => \"iconsmind-Bird\"), \n\t\tarray(\"iconsmind-Bird-DeliveringLetter\" => \"iconsmind-Bird-DeliveringLetter\"), \n\t\tarray(\"iconsmind-Birthday-Cake\" => \"iconsmind-Birthday-Cake\"), \n\t\tarray(\"iconsmind-Bishop\" => \"iconsmind-Bishop\"), \n\t\tarray(\"iconsmind-Blackboard\" => \"iconsmind-Blackboard\"), \n\t\tarray(\"iconsmind-Black-Cat\" => \"iconsmind-Black-Cat\"), \n\t\tarray(\"iconsmind-Block-Cloud\" => \"iconsmind-Block-Cloud\"), \n\t\tarray(\"iconsmind-Blood\" => \"iconsmind-Blood\"), \n\t\tarray(\"iconsmind-Blouse\" => \"iconsmind-Blouse\"), \n\t\tarray(\"iconsmind-Blueprint\" => \"iconsmind-Blueprint\"), \n\t\tarray(\"iconsmind-Board\" => \"iconsmind-Board\"), \n\t\tarray(\"iconsmind-Bone\" => \"iconsmind-Bone\"), \n\t\tarray(\"iconsmind-Bones\" => \"iconsmind-Bones\"), \n\t\tarray(\"iconsmind-Book\" => \"iconsmind-Book\"), \n\t\tarray(\"iconsmind-Bookmark\" => \"iconsmind-Bookmark\"), \n\t\tarray(\"iconsmind-Books\" => \"iconsmind-Books\"), \n\t\tarray(\"iconsmind-Books-2\" => \"iconsmind-Books-2\"), \n\t\tarray(\"iconsmind-Boot\" => \"iconsmind-Boot\"), \n\t\tarray(\"iconsmind-Boot-2\" => \"iconsmind-Boot-2\"), \n\t\tarray(\"iconsmind-Bottom-ToTop\" => \"iconsmind-Bottom-ToTop\"), \n\t\tarray(\"iconsmind-Bow\" => \"iconsmind-Bow\"), \n\t\tarray(\"iconsmind-Bow-2\" => \"iconsmind-Bow-2\"), \n\t\tarray(\"iconsmind-Bow-3\" => \"iconsmind-Bow-3\"), \n\t\tarray(\"iconsmind-Box-Close\" => \"iconsmind-Box-Close\"), \n\t\tarray(\"iconsmind-Box-Full\" => \"iconsmind-Box-Full\"), \n\t\tarray(\"iconsmind-Box-Open\" => \"iconsmind-Box-Open\"), \n\t\tarray(\"iconsmind-Box-withFolders\" => \"iconsmind-Box-withFolders\"), \n\t\tarray(\"iconsmind-Bra\" => \"iconsmind-Bra\"), \n\t\tarray(\"iconsmind-Brain2\" => \"iconsmind-Brain2\"), \n\t\tarray(\"iconsmind-Brain-2\" => \"iconsmind-Brain-2\"), \n\t\tarray(\"iconsmind-Brazil\" => \"iconsmind-Brazil\"), \n\t\tarray(\"iconsmind-Bread\" => \"iconsmind-Bread\"), \n\t\tarray(\"iconsmind-Bread-2\" => \"iconsmind-Bread-2\"), \n\t\tarray(\"iconsmind-Bridge\" => \"iconsmind-Bridge\"), \n\t\tarray(\"iconsmind-Broom\" => \"iconsmind-Broom\"), \n\t\tarray(\"iconsmind-Brush\" => \"iconsmind-Brush\"), \n\t\tarray(\"iconsmind-Bug\" => \"iconsmind-Bug\"), \n\t\tarray(\"iconsmind-Building\" => \"iconsmind-Building\"), \n\t\tarray(\"iconsmind-Butterfly\" => \"iconsmind-Butterfly\"), \n\t\tarray(\"iconsmind-Cake\" => \"iconsmind-Cake\"), \n\t\tarray(\"iconsmind-Calculator\" => \"iconsmind-Calculator\"), \n\t\tarray(\"iconsmind-Calculator-2\" => \"iconsmind-Calculator-2\"), \n\t\tarray(\"iconsmind-Calculator-3\" => \"iconsmind-Calculator-3\"), \n\t\tarray(\"iconsmind-Calendar\" => \"iconsmind-Calendar\"), \n\t\tarray(\"iconsmind-Calendar-2\" => \"iconsmind-Calendar-2\"), \n\t\tarray(\"iconsmind-Calendar-3\" => \"iconsmind-Calendar-3\"), \n\t\tarray(\"iconsmind-Calendar-4\" => \"iconsmind-Calendar-4\"), \n\t\tarray(\"iconsmind-Camel\" => \"iconsmind-Camel\"), \n\t\tarray(\"iconsmind-Can\" => \"iconsmind-Can\"), \n\t\tarray(\"iconsmind-Can-2\" => \"iconsmind-Can-2\"), \n\t\tarray(\"iconsmind-Canada\" => \"iconsmind-Canada\"), \n\t\tarray(\"iconsmind-Candle\" => \"iconsmind-Candle\"), \n\t\tarray(\"iconsmind-Candy\" => \"iconsmind-Candy\"), \n\t\tarray(\"iconsmind-Candy-Cane\" => \"iconsmind-Candy-Cane\"), \n\t\tarray(\"iconsmind-Cap\" => \"iconsmind-Cap\"), \n\t\tarray(\"iconsmind-Cap-2\" => \"iconsmind-Cap-2\"), \n\t\tarray(\"iconsmind-Cap-3\" => \"iconsmind-Cap-3\"), \n\t\tarray(\"iconsmind-Cardigan\" => \"iconsmind-Cardigan\"), \n\t\tarray(\"iconsmind-Cardiovascular\" => \"iconsmind-Cardiovascular\"), \n\t\tarray(\"iconsmind-Castle\" => \"iconsmind-Castle\"), \n\t\tarray(\"iconsmind-Cat\" => \"iconsmind-Cat\"), \n\t\tarray(\"iconsmind-Cathedral\" => \"iconsmind-Cathedral\"), \n\t\tarray(\"iconsmind-Cauldron\" => \"iconsmind-Cauldron\"), \n\t\tarray(\"iconsmind-CD\" => \"iconsmind-CD\"), \n\t\tarray(\"iconsmind-Charger\" => \"iconsmind-Charger\"), \n\t\tarray(\"iconsmind-Checkmate\" => \"iconsmind-Checkmate\"), \n\t\tarray(\"iconsmind-Cheese\" => \"iconsmind-Cheese\"), \n\t\tarray(\"iconsmind-Cheetah\" => \"iconsmind-Cheetah\"), \n\t\tarray(\"iconsmind-Chef-Hat\" => \"iconsmind-Chef-Hat\"), \n\t\tarray(\"iconsmind-Chef-Hat2\" => \"iconsmind-Chef-Hat2\"), \n\t\tarray(\"iconsmind-Chess-Board\" => \"iconsmind-Chess-Board\"), \n\t\tarray(\"iconsmind-Chicken\" => \"iconsmind-Chicken\"), \n\t\tarray(\"iconsmind-Chile\" => \"iconsmind-Chile\"), \n\t\tarray(\"iconsmind-Chimney\" => \"iconsmind-Chimney\"), \n\t\tarray(\"iconsmind-China\" => \"iconsmind-China\"), \n\t\tarray(\"iconsmind-Chinese-Temple\" => \"iconsmind-Chinese-Temple\"), \n\t\tarray(\"iconsmind-Chip\" => \"iconsmind-Chip\"), \n\t\tarray(\"iconsmind-Chopsticks\" => \"iconsmind-Chopsticks\"), \n\t\tarray(\"iconsmind-Chopsticks-2\" => \"iconsmind-Chopsticks-2\"), \n\t\tarray(\"iconsmind-Christmas\" => \"iconsmind-Christmas\"), \n\t\tarray(\"iconsmind-Christmas-Ball\" => \"iconsmind-Christmas-Ball\"), \n\t\tarray(\"iconsmind-Christmas-Bell\" => \"iconsmind-Christmas-Bell\"), \n\t\tarray(\"iconsmind-Christmas-Candle\" => \"iconsmind-Christmas-Candle\"), \n\t\tarray(\"iconsmind-Christmas-Hat\" => \"iconsmind-Christmas-Hat\"), \n\t\tarray(\"iconsmind-Christmas-Sleigh\" => \"iconsmind-Christmas-Sleigh\"), \n\t\tarray(\"iconsmind-Christmas-Snowman\" => \"iconsmind-Christmas-Snowman\"), \n\t\tarray(\"iconsmind-Christmas-Sock\" => \"iconsmind-Christmas-Sock\"), \n\t\tarray(\"iconsmind-Christmas-Tree\" => \"iconsmind-Christmas-Tree\"), \n\t\tarray(\"iconsmind-Chrome\" => \"iconsmind-Chrome\"), \n\t\tarray(\"iconsmind-Chrysler-Building\" => \"iconsmind-Chrysler-Building\"), \n\t\tarray(\"iconsmind-City-Hall\" => \"iconsmind-City-Hall\"), \n\t\tarray(\"iconsmind-Clamp\" => \"iconsmind-Clamp\"), \n\t\tarray(\"iconsmind-Claps\" => \"iconsmind-Claps\"), \n\t\tarray(\"iconsmind-Clothing-Store\" => \"iconsmind-Clothing-Store\"), \n\t\tarray(\"iconsmind-Cloud\" => \"iconsmind-Cloud\"), \n\t\tarray(\"iconsmind-Cloud2\" => \"iconsmind-Cloud2\"), \n\t\tarray(\"iconsmind-Cloud3\" => \"iconsmind-Cloud3\"), \n\t\tarray(\"iconsmind-Cloud-Camera\" => \"iconsmind-Cloud-Camera\"), \n\t\tarray(\"iconsmind-Cloud-Computer\" => \"iconsmind-Cloud-Computer\"), \n\t\tarray(\"iconsmind-Cloud-Email\" => \"iconsmind-Cloud-Email\"), \n\t\tarray(\"iconsmind-Cloud-Laptop\" => \"iconsmind-Cloud-Laptop\"), \n\t\tarray(\"iconsmind-Cloud-Lock\" => \"iconsmind-Cloud-Lock\"), \n\t\tarray(\"iconsmind-Cloud-Music\" => \"iconsmind-Cloud-Music\"), \n\t\tarray(\"iconsmind-Cloud-Picture\" => \"iconsmind-Cloud-Picture\"), \n\t\tarray(\"iconsmind-Cloud-Remove\" => \"iconsmind-Cloud-Remove\"), \n\t\tarray(\"iconsmind-Clouds\" => \"iconsmind-Clouds\"), \n\t\tarray(\"iconsmind-Cloud-Secure\" => \"iconsmind-Cloud-Secure\"), \n\t\tarray(\"iconsmind-Cloud-Settings\" => \"iconsmind-Cloud-Settings\"), \n\t\tarray(\"iconsmind-Cloud-Smartphone\" => \"iconsmind-Cloud-Smartphone\"), \n\t\tarray(\"iconsmind-Cloud-Tablet\" => \"iconsmind-Cloud-Tablet\"), \n\t\tarray(\"iconsmind-Cloud-Video\" => \"iconsmind-Cloud-Video\"), \n\t\tarray(\"iconsmind-Clown\" => \"iconsmind-Clown\"), \n\t\tarray(\"iconsmind-CMYK\" => \"iconsmind-CMYK\"), \n\t\tarray(\"iconsmind-Coat\" => \"iconsmind-Coat\"), \n\t\tarray(\"iconsmind-Cocktail\" => \"iconsmind-Cocktail\"), \n\t\tarray(\"iconsmind-Coconut\" => \"iconsmind-Coconut\"), \n\t\tarray(\"iconsmind-Coffee\" => \"iconsmind-Coffee\"), \n\t\tarray(\"iconsmind-Coffee-2\" => \"iconsmind-Coffee-2\"), \n\t\tarray(\"iconsmind-Coffee-Bean\" => \"iconsmind-Coffee-Bean\"), \n\t\tarray(\"iconsmind-Coffee-toGo\" => \"iconsmind-Coffee-toGo\"), \n\t\tarray(\"iconsmind-Coffin\" => \"iconsmind-Coffin\"), \n\t\tarray(\"iconsmind-Coin\" => \"iconsmind-Coin\"), \n\t\tarray(\"iconsmind-Coins\" => \"iconsmind-Coins\"), \n\t\tarray(\"iconsmind-Coins-2\" => \"iconsmind-Coins-2\"), \n\t\tarray(\"iconsmind-Coins-3\" => \"iconsmind-Coins-3\"), \n\t\tarray(\"iconsmind-Colombia\" => \"iconsmind-Colombia\"), \n\t\tarray(\"iconsmind-Colosseum\" => \"iconsmind-Colosseum\"), \n\t\tarray(\"iconsmind-Column\" => \"iconsmind-Column\"), \n\t\tarray(\"iconsmind-Column-2\" => \"iconsmind-Column-2\"), \n\t\tarray(\"iconsmind-Column-3\" => \"iconsmind-Column-3\"), \n\t\tarray(\"iconsmind-Comb\" => \"iconsmind-Comb\"), \n\t\tarray(\"iconsmind-Comb-2\" => \"iconsmind-Comb-2\"), \n\t\tarray(\"iconsmind-Communication-Tower\" => \"iconsmind-Communication-Tower\"), \n\t\tarray(\"iconsmind-Communication-Tower2\" => \"iconsmind-Communication-Tower2\"), \n\t\tarray(\"iconsmind-Compass2\" => \"iconsmind-Compass2\"), \n\t\tarray(\"iconsmind-Compass-22\" => \"iconsmind-Compass-22\"), \n\t\tarray(\"iconsmind-Computer\" => \"iconsmind-Computer\"), \n\t\tarray(\"iconsmind-Computer-2\" => \"iconsmind-Computer-2\"), \n\t\tarray(\"iconsmind-Computer-3\" => \"iconsmind-Computer-3\"), \n\t\tarray(\"iconsmind-Confused\" => \"iconsmind-Confused\"), \n\t\tarray(\"iconsmind-Contrast\" => \"iconsmind-Contrast\"), \n\t\tarray(\"iconsmind-Cookie-Man\" => \"iconsmind-Cookie-Man\"), \n\t\tarray(\"iconsmind-Cookies\" => \"iconsmind-Cookies\"), \n\t\tarray(\"iconsmind-Cool\" => \"iconsmind-Cool\"), \n\t\tarray(\"iconsmind-Costume\" => \"iconsmind-Costume\"), \n\t\tarray(\"iconsmind-Cow\" => \"iconsmind-Cow\"), \n\t\tarray(\"iconsmind-CPU\" => \"iconsmind-CPU\"), \n\t\tarray(\"iconsmind-Cranium\" => \"iconsmind-Cranium\"), \n\t\tarray(\"iconsmind-Credit-Card\" => \"iconsmind-Credit-Card\"), \n\t\tarray(\"iconsmind-Credit-Card2\" => \"iconsmind-Credit-Card2\"), \n\t\tarray(\"iconsmind-Credit-Card3\" => \"iconsmind-Credit-Card3\"), \n\t\tarray(\"iconsmind-Croissant\" => \"iconsmind-Croissant\"), \n\t\tarray(\"iconsmind-Crying\" => \"iconsmind-Crying\"), \n\t\tarray(\"iconsmind-Cupcake\" => \"iconsmind-Cupcake\"), \n\t\tarray(\"iconsmind-Danemark\" => \"iconsmind-Danemark\"), \n\t\tarray(\"iconsmind-Data\" => \"iconsmind-Data\"), \n\t\tarray(\"iconsmind-Data-Backup\" => \"iconsmind-Data-Backup\"), \n\t\tarray(\"iconsmind-Data-Block\" => \"iconsmind-Data-Block\"), \n\t\tarray(\"iconsmind-Data-Center\" => \"iconsmind-Data-Center\"), \n\t\tarray(\"iconsmind-Data-Clock\" => \"iconsmind-Data-Clock\"), \n\t\tarray(\"iconsmind-Data-Cloud\" => \"iconsmind-Data-Cloud\"), \n\t\tarray(\"iconsmind-Data-Compress\" => \"iconsmind-Data-Compress\"), \n\t\tarray(\"iconsmind-Data-Copy\" => \"iconsmind-Data-Copy\"), \n\t\tarray(\"iconsmind-Data-Download\" => \"iconsmind-Data-Download\"), \n\t\tarray(\"iconsmind-Data-Financial\" => \"iconsmind-Data-Financial\"), \n\t\tarray(\"iconsmind-Data-Key\" => \"iconsmind-Data-Key\"), \n\t\tarray(\"iconsmind-Data-Lock\" => \"iconsmind-Data-Lock\"), \n\t\tarray(\"iconsmind-Data-Network\" => \"iconsmind-Data-Network\"), \n\t\tarray(\"iconsmind-Data-Password\" => \"iconsmind-Data-Password\"), \n\t\tarray(\"iconsmind-Data-Power\" => \"iconsmind-Data-Power\"), \n\t\tarray(\"iconsmind-Data-Refresh\" => \"iconsmind-Data-Refresh\"), \n\t\tarray(\"iconsmind-Data-Save\" => \"iconsmind-Data-Save\"), \n\t\tarray(\"iconsmind-Data-Search\" => \"iconsmind-Data-Search\"), \n\t\tarray(\"iconsmind-Data-Security\" => \"iconsmind-Data-Security\"), \n\t\tarray(\"iconsmind-Data-Settings\" => \"iconsmind-Data-Settings\"), \n\t\tarray(\"iconsmind-Data-Sharing\" => \"iconsmind-Data-Sharing\"), \n\t\tarray(\"iconsmind-Data-Shield\" => \"iconsmind-Data-Shield\"), \n\t\tarray(\"iconsmind-Data-Signal\" => \"iconsmind-Data-Signal\"), \n\t\tarray(\"iconsmind-Data-Storage\" => \"iconsmind-Data-Storage\"), \n\t\tarray(\"iconsmind-Data-Stream\" => \"iconsmind-Data-Stream\"), \n\t\tarray(\"iconsmind-Data-Transfer\" => \"iconsmind-Data-Transfer\"), \n\t\tarray(\"iconsmind-Data-Unlock\" => \"iconsmind-Data-Unlock\"), \n\t\tarray(\"iconsmind-Data-Upload\" => \"iconsmind-Data-Upload\"), \n\t\tarray(\"iconsmind-Data-Yes\" => \"iconsmind-Data-Yes\"), \n\t\tarray(\"iconsmind-Death\" => \"iconsmind-Death\"), \n\t\tarray(\"iconsmind-Debian\" => \"iconsmind-Debian\"), \n\t\tarray(\"iconsmind-Dec\" => \"iconsmind-Dec\"), \n\t\tarray(\"iconsmind-Decrase-Inedit\" => \"iconsmind-Decrase-Inedit\"), \n\t\tarray(\"iconsmind-Deer\" => \"iconsmind-Deer\"), \n\t\tarray(\"iconsmind-Deer-2\" => \"iconsmind-Deer-2\"), \n\t\tarray(\"iconsmind-Delete-File\" => \"iconsmind-Delete-File\"), \n\t\tarray(\"iconsmind-Depression\" => \"iconsmind-Depression\"), \n\t\tarray(\"iconsmind-Device-SyncwithCloud\" => \"iconsmind-Device-SyncwithCloud\"), \n\t\tarray(\"iconsmind-Diamond\" => \"iconsmind-Diamond\"), \n\t\tarray(\"iconsmind-Digital-Drawing\" => \"iconsmind-Digital-Drawing\"), \n\t\tarray(\"iconsmind-Dinosaur\" => \"iconsmind-Dinosaur\"), \n\t\tarray(\"iconsmind-Diploma\" => \"iconsmind-Diploma\"), \n\t\tarray(\"iconsmind-Diploma-2\" => \"iconsmind-Diploma-2\"), \n\t\tarray(\"iconsmind-Disk\" => \"iconsmind-Disk\"), \n\t\tarray(\"iconsmind-Dog\" => \"iconsmind-Dog\"), \n\t\tarray(\"iconsmind-Dollar\" => \"iconsmind-Dollar\"), \n\t\tarray(\"iconsmind-Dollar-Sign\" => \"iconsmind-Dollar-Sign\"), \n\t\tarray(\"iconsmind-Dollar-Sign2\" => \"iconsmind-Dollar-Sign2\"), \n\t\tarray(\"iconsmind-Dolphin\" => \"iconsmind-Dolphin\"), \n\t\tarray(\"iconsmind-Door\" => \"iconsmind-Door\"), \n\t\tarray(\"iconsmind-Double-Circle\" => \"iconsmind-Double-Circle\"), \n\t\tarray(\"iconsmind-Doughnut\" => \"iconsmind-Doughnut\"), \n\t\tarray(\"iconsmind-Dove\" => \"iconsmind-Dove\"), \n\t\tarray(\"iconsmind-Down2\" => \"iconsmind-Down2\"), \n\t\tarray(\"iconsmind-Down-2\" => \"iconsmind-Down-2\"), \n\t\tarray(\"iconsmind-Down-3\" => \"iconsmind-Down-3\"), \n\t\tarray(\"iconsmind-Download2\" => \"iconsmind-Download2\"), \n\t\tarray(\"iconsmind-Download-fromCloud\" => \"iconsmind-Download-fromCloud\"), \n\t\tarray(\"iconsmind-Dress\" => \"iconsmind-Dress\"), \n\t\tarray(\"iconsmind-Duck\" => \"iconsmind-Duck\"), \n\t\tarray(\"iconsmind-DVD\" => \"iconsmind-DVD\"), \n\t\tarray(\"iconsmind-Eagle\" => \"iconsmind-Eagle\"), \n\t\tarray(\"iconsmind-Ear\" => \"iconsmind-Ear\"), \n\t\tarray(\"iconsmind-Eggs\" => \"iconsmind-Eggs\"), \n\t\tarray(\"iconsmind-Egypt\" => \"iconsmind-Egypt\"), \n\t\tarray(\"iconsmind-Eifel-Tower\" => \"iconsmind-Eifel-Tower\"), \n\t\tarray(\"iconsmind-Elbow\" => \"iconsmind-Elbow\"), \n\t\tarray(\"iconsmind-El-Castillo\" => \"iconsmind-El-Castillo\"), \n\t\tarray(\"iconsmind-Elephant\" => \"iconsmind-Elephant\"), \n\t\tarray(\"iconsmind-Embassy\" => \"iconsmind-Embassy\"), \n\t\tarray(\"iconsmind-Empire-StateBuilding\" => \"iconsmind-Empire-StateBuilding\"), \n\t\tarray(\"iconsmind-Empty-Box\" => \"iconsmind-Empty-Box\"), \n\t\tarray(\"iconsmind-End2\" => \"iconsmind-End2\"), \n\t\tarray(\"iconsmind-Envelope\" => \"iconsmind-Envelope\"), \n\t\tarray(\"iconsmind-Envelope-2\" => \"iconsmind-Envelope-2\"), \n\t\tarray(\"iconsmind-Eraser\" => \"iconsmind-Eraser\"), \n\t\tarray(\"iconsmind-Eraser-2\" => \"iconsmind-Eraser-2\"), \n\t\tarray(\"iconsmind-Eraser-3\" => \"iconsmind-Eraser-3\"), \n\t\tarray(\"iconsmind-Euro\" => \"iconsmind-Euro\"), \n\t\tarray(\"iconsmind-Euro-Sign\" => \"iconsmind-Euro-Sign\"), \n\t\tarray(\"iconsmind-Euro-Sign2\" => \"iconsmind-Euro-Sign2\"), \n\t\tarray(\"iconsmind-Evil\" => \"iconsmind-Evil\"), \n\t\tarray(\"iconsmind-Eye2\" => \"iconsmind-Eye2\"), \n\t\tarray(\"iconsmind-Eye-Blind\" => \"iconsmind-Eye-Blind\"), \n\t\tarray(\"iconsmind-Eyebrow\" => \"iconsmind-Eyebrow\"), \n\t\tarray(\"iconsmind-Eyebrow-2\" => \"iconsmind-Eyebrow-2\"), \n\t\tarray(\"iconsmind-Eyebrow-3\" => \"iconsmind-Eyebrow-3\"), \n\t\tarray(\"iconsmind-Eyeglasses-Smiley\" => \"iconsmind-Eyeglasses-Smiley\"), \n\t\tarray(\"iconsmind-Eyeglasses-Smiley2\" => \"iconsmind-Eyeglasses-Smiley2\"), \n\t\tarray(\"iconsmind-Eye-Invisible\" => \"iconsmind-Eye-Invisible\"), \n\t\tarray(\"iconsmind-Eye-Visible\" => \"iconsmind-Eye-Visible\"), \n\t\tarray(\"iconsmind-Face-Style\" => \"iconsmind-Face-Style\"), \n\t\tarray(\"iconsmind-Face-Style2\" => \"iconsmind-Face-Style2\"), \n\t\tarray(\"iconsmind-Face-Style3\" => \"iconsmind-Face-Style3\"), \n\t\tarray(\"iconsmind-Face-Style4\" => \"iconsmind-Face-Style4\"), \n\t\tarray(\"iconsmind-Face-Style5\" => \"iconsmind-Face-Style5\"), \n\t\tarray(\"iconsmind-Face-Style6\" => \"iconsmind-Face-Style6\"), \n\t\tarray(\"iconsmind-Factory2\" => \"iconsmind-Factory2\"), \n\t\tarray(\"iconsmind-Fan\" => \"iconsmind-Fan\"), \n\t\tarray(\"iconsmind-Fashion\" => \"iconsmind-Fashion\"), \n\t\tarray(\"iconsmind-Fax\" => \"iconsmind-Fax\"), \n\t\tarray(\"iconsmind-File\" => \"iconsmind-File\"), \n\t\tarray(\"iconsmind-File-Block\" => \"iconsmind-File-Block\"), \n\t\tarray(\"iconsmind-File-Bookmark\" => \"iconsmind-File-Bookmark\"), \n\t\tarray(\"iconsmind-File-Chart\" => \"iconsmind-File-Chart\"), \n\t\tarray(\"iconsmind-File-Clipboard\" => \"iconsmind-File-Clipboard\"), \n\t\tarray(\"iconsmind-File-ClipboardFileText\" => \"iconsmind-File-ClipboardFileText\"), \n\t\tarray(\"iconsmind-File-ClipboardTextImage\" => \"iconsmind-File-ClipboardTextImage\"), \n\t\tarray(\"iconsmind-File-Cloud\" => \"iconsmind-File-Cloud\"), \n\t\tarray(\"iconsmind-File-Copy\" => \"iconsmind-File-Copy\"), \n\t\tarray(\"iconsmind-File-Copy2\" => \"iconsmind-File-Copy2\"), \n\t\tarray(\"iconsmind-File-CSV\" => \"iconsmind-File-CSV\"), \n\t\tarray(\"iconsmind-File-Download\" => \"iconsmind-File-Download\"), \n\t\tarray(\"iconsmind-File-Edit\" => \"iconsmind-File-Edit\"), \n\t\tarray(\"iconsmind-File-Excel\" => \"iconsmind-File-Excel\"), \n\t\tarray(\"iconsmind-File-Favorite\" => \"iconsmind-File-Favorite\"), \n\t\tarray(\"iconsmind-File-Fire\" => \"iconsmind-File-Fire\"), \n\t\tarray(\"iconsmind-File-Graph\" => \"iconsmind-File-Graph\"), \n\t\tarray(\"iconsmind-File-Hide\" => \"iconsmind-File-Hide\"), \n\t\tarray(\"iconsmind-File-Horizontal\" => \"iconsmind-File-Horizontal\"), \n\t\tarray(\"iconsmind-File-HorizontalText\" => \"iconsmind-File-HorizontalText\"), \n\t\tarray(\"iconsmind-File-HTML\" => \"iconsmind-File-HTML\"), \n\t\tarray(\"iconsmind-File-JPG\" => \"iconsmind-File-JPG\"), \n\t\tarray(\"iconsmind-File-Link\" => \"iconsmind-File-Link\"), \n\t\tarray(\"iconsmind-File-Loading\" => \"iconsmind-File-Loading\"), \n\t\tarray(\"iconsmind-File-Lock\" => \"iconsmind-File-Lock\"), \n\t\tarray(\"iconsmind-File-Love\" => \"iconsmind-File-Love\"), \n\t\tarray(\"iconsmind-File-Music\" => \"iconsmind-File-Music\"), \n\t\tarray(\"iconsmind-File-Network\" => \"iconsmind-File-Network\"), \n\t\tarray(\"iconsmind-File-Pictures\" => \"iconsmind-File-Pictures\"), \n\t\tarray(\"iconsmind-File-Pie\" => \"iconsmind-File-Pie\"), \n\t\tarray(\"iconsmind-File-Presentation\" => \"iconsmind-File-Presentation\"), \n\t\tarray(\"iconsmind-File-Refresh\" => \"iconsmind-File-Refresh\"), \n\t\tarray(\"iconsmind-Files\" => \"iconsmind-Files\"), \n\t\tarray(\"iconsmind-File-Search\" => \"iconsmind-File-Search\"), \n\t\tarray(\"iconsmind-File-Settings\" => \"iconsmind-File-Settings\"), \n\t\tarray(\"iconsmind-File-Share\" => \"iconsmind-File-Share\"), \n\t\tarray(\"iconsmind-File-TextImage\" => \"iconsmind-File-TextImage\"), \n\t\tarray(\"iconsmind-File-Trash\" => \"iconsmind-File-Trash\"), \n\t\tarray(\"iconsmind-File-TXT\" => \"iconsmind-File-TXT\"), \n\t\tarray(\"iconsmind-File-Upload\" => \"iconsmind-File-Upload\"), \n\t\tarray(\"iconsmind-File-Video\" => \"iconsmind-File-Video\"), \n\t\tarray(\"iconsmind-File-Word\" => \"iconsmind-File-Word\"), \n\t\tarray(\"iconsmind-File-Zip\" => \"iconsmind-File-Zip\"), \n\t\tarray(\"iconsmind-Financial\" => \"iconsmind-Financial\"), \n\t\tarray(\"iconsmind-Finger\" => \"iconsmind-Finger\"), \n\t\tarray(\"iconsmind-Fingerprint\" => \"iconsmind-Fingerprint\"), \n\t\tarray(\"iconsmind-Fingerprint-2\" => \"iconsmind-Fingerprint-2\"), \n\t\tarray(\"iconsmind-Firefox\" => \"iconsmind-Firefox\"), \n\t\tarray(\"iconsmind-Fire-Staion\" => \"iconsmind-Fire-Staion\"), \n\t\tarray(\"iconsmind-Fish\" => \"iconsmind-Fish\"), \n\t\tarray(\"iconsmind-Fit-To\" => \"iconsmind-Fit-To\"), \n\t\tarray(\"iconsmind-Fit-To2\" => \"iconsmind-Fit-To2\"), \n\t\tarray(\"iconsmind-Flag2\" => \"iconsmind-Flag2\"), \n\t\tarray(\"iconsmind-Flag-22\" => \"iconsmind-Flag-22\"), \n\t\tarray(\"iconsmind-Flag-3\" => \"iconsmind-Flag-3\"), \n\t\tarray(\"iconsmind-Flag-4\" => \"iconsmind-Flag-4\"), \n\t\tarray(\"iconsmind-Flamingo\" => \"iconsmind-Flamingo\"), \n\t\tarray(\"iconsmind-Folder\" => \"iconsmind-Folder\"), \n\t\tarray(\"iconsmind-Folder-Add\" => \"iconsmind-Folder-Add\"), \n\t\tarray(\"iconsmind-Folder-Archive\" => \"iconsmind-Folder-Archive\"), \n\t\tarray(\"iconsmind-Folder-Binder\" => \"iconsmind-Folder-Binder\"), \n\t\tarray(\"iconsmind-Folder-Binder2\" => \"iconsmind-Folder-Binder2\"), \n\t\tarray(\"iconsmind-Folder-Block\" => \"iconsmind-Folder-Block\"), \n\t\tarray(\"iconsmind-Folder-Bookmark\" => \"iconsmind-Folder-Bookmark\"), \n\t\tarray(\"iconsmind-Folder-Close\" => \"iconsmind-Folder-Close\"), \n\t\tarray(\"iconsmind-Folder-Cloud\" => \"iconsmind-Folder-Cloud\"), \n\t\tarray(\"iconsmind-Folder-Delete\" => \"iconsmind-Folder-Delete\"), \n\t\tarray(\"iconsmind-Folder-Download\" => \"iconsmind-Folder-Download\"), \n\t\tarray(\"iconsmind-Folder-Edit\" => \"iconsmind-Folder-Edit\"), \n\t\tarray(\"iconsmind-Folder-Favorite\" => \"iconsmind-Folder-Favorite\"), \n\t\tarray(\"iconsmind-Folder-Fire\" => \"iconsmind-Folder-Fire\"), \n\t\tarray(\"iconsmind-Folder-Hide\" => \"iconsmind-Folder-Hide\"), \n\t\tarray(\"iconsmind-Folder-Link\" => \"iconsmind-Folder-Link\"), \n\t\tarray(\"iconsmind-Folder-Loading\" => \"iconsmind-Folder-Loading\"), \n\t\tarray(\"iconsmind-Folder-Lock\" => \"iconsmind-Folder-Lock\"), \n\t\tarray(\"iconsmind-Folder-Love\" => \"iconsmind-Folder-Love\"), \n\t\tarray(\"iconsmind-Folder-Music\" => \"iconsmind-Folder-Music\"), \n\t\tarray(\"iconsmind-Folder-Network\" => \"iconsmind-Folder-Network\"), \n\t\tarray(\"iconsmind-Folder-Open\" => \"iconsmind-Folder-Open\"), \n\t\tarray(\"iconsmind-Folder-Open2\" => \"iconsmind-Folder-Open2\"), \n\t\tarray(\"iconsmind-Folder-Organizing\" => \"iconsmind-Folder-Organizing\"), \n\t\tarray(\"iconsmind-Folder-Pictures\" => \"iconsmind-Folder-Pictures\"), \n\t\tarray(\"iconsmind-Folder-Refresh\" => \"iconsmind-Folder-Refresh\"), \n\t\tarray(\"iconsmind-Folder-Remove\" => \"iconsmind-Folder-Remove\"), \n\t\tarray(\"iconsmind-Folders\" => \"iconsmind-Folders\"), \n\t\tarray(\"iconsmind-Folder-Search\" => \"iconsmind-Folder-Search\"), \n\t\tarray(\"iconsmind-Folder-Settings\" => \"iconsmind-Folder-Settings\"), \n\t\tarray(\"iconsmind-Folder-Share\" => \"iconsmind-Folder-Share\"), \n\t\tarray(\"iconsmind-Folder-Trash\" => \"iconsmind-Folder-Trash\"), \n\t\tarray(\"iconsmind-Folder-Upload\" => \"iconsmind-Folder-Upload\"), \n\t\tarray(\"iconsmind-Folder-Video\" => \"iconsmind-Folder-Video\"), \n\t\tarray(\"iconsmind-Folder-WithDocument\" => \"iconsmind-Folder-WithDocument\"), \n\t\tarray(\"iconsmind-Folder-Zip\" => \"iconsmind-Folder-Zip\"), \n\t\tarray(\"iconsmind-Foot\" => \"iconsmind-Foot\"), \n\t\tarray(\"iconsmind-Foot-2\" => \"iconsmind-Foot-2\"), \n\t\tarray(\"iconsmind-Fork\" => \"iconsmind-Fork\"), \n\t\tarray(\"iconsmind-Formula\" => \"iconsmind-Formula\"), \n\t\tarray(\"iconsmind-Fountain-Pen\" => \"iconsmind-Fountain-Pen\"), \n\t\tarray(\"iconsmind-Fox\" => \"iconsmind-Fox\"), \n\t\tarray(\"iconsmind-Frankenstein\" => \"iconsmind-Frankenstein\"), \n\t\tarray(\"iconsmind-French-Fries\" => \"iconsmind-French-Fries\"), \n\t\tarray(\"iconsmind-Frog\" => \"iconsmind-Frog\"), \n\t\tarray(\"iconsmind-Fruits\" => \"iconsmind-Fruits\"), \n\t\tarray(\"iconsmind-Full-Screen\" => \"iconsmind-Full-Screen\"), \n\t\tarray(\"iconsmind-Full-Screen2\" => \"iconsmind-Full-Screen2\"), \n\t\tarray(\"iconsmind-Full-View\" => \"iconsmind-Full-View\"), \n\t\tarray(\"iconsmind-Full-View2\" => \"iconsmind-Full-View2\"), \n\t\tarray(\"iconsmind-Funky\" => \"iconsmind-Funky\"), \n\t\tarray(\"iconsmind-Funny-Bicycle\" => \"iconsmind-Funny-Bicycle\"), \n\t\tarray(\"iconsmind-Gamepad\" => \"iconsmind-Gamepad\"), \n\t\tarray(\"iconsmind-Gamepad-2\" => \"iconsmind-Gamepad-2\"), \n\t\tarray(\"iconsmind-Gay\" => \"iconsmind-Gay\"), \n\t\tarray(\"iconsmind-Geek2\" => \"iconsmind-Geek2\"), \n\t\tarray(\"iconsmind-Gentleman\" => \"iconsmind-Gentleman\"), \n\t\tarray(\"iconsmind-Giraffe\" => \"iconsmind-Giraffe\"), \n\t\tarray(\"iconsmind-Glasses\" => \"iconsmind-Glasses\"), \n\t\tarray(\"iconsmind-Glasses-2\" => \"iconsmind-Glasses-2\"), \n\t\tarray(\"iconsmind-Glasses-3\" => \"iconsmind-Glasses-3\"), \n\t\tarray(\"iconsmind-Glass-Water\" => \"iconsmind-Glass-Water\"), \n\t\tarray(\"iconsmind-Gloves\" => \"iconsmind-Gloves\"), \n\t\tarray(\"iconsmind-Go-Bottom\" => \"iconsmind-Go-Bottom\"), \n\t\tarray(\"iconsmind-Gorilla\" => \"iconsmind-Gorilla\"), \n\t\tarray(\"iconsmind-Go-Top\" => \"iconsmind-Go-Top\"), \n\t\tarray(\"iconsmind-Grave\" => \"iconsmind-Grave\"), \n\t\tarray(\"iconsmind-Graveyard\" => \"iconsmind-Graveyard\"), \n\t\tarray(\"iconsmind-Greece\" => \"iconsmind-Greece\"), \n\t\tarray(\"iconsmind-Hair\" => \"iconsmind-Hair\"), \n\t\tarray(\"iconsmind-Hair-2\" => \"iconsmind-Hair-2\"), \n\t\tarray(\"iconsmind-Hair-3\" => \"iconsmind-Hair-3\"), \n\t\tarray(\"iconsmind-Halloween-HalfMoon\" => \"iconsmind-Halloween-HalfMoon\"), \n\t\tarray(\"iconsmind-Halloween-Moon\" => \"iconsmind-Halloween-Moon\"), \n\t\tarray(\"iconsmind-Hamburger\" => \"iconsmind-Hamburger\"), \n\t\tarray(\"iconsmind-Hand\" => \"iconsmind-Hand\"), \n\t\tarray(\"iconsmind-Hands\" => \"iconsmind-Hands\"), \n\t\tarray(\"iconsmind-Handshake\" => \"iconsmind-Handshake\"), \n\t\tarray(\"iconsmind-Hanger\" => \"iconsmind-Hanger\"), \n\t\tarray(\"iconsmind-Happy\" => \"iconsmind-Happy\"), \n\t\tarray(\"iconsmind-Hat\" => \"iconsmind-Hat\"), \n\t\tarray(\"iconsmind-Hat-2\" => \"iconsmind-Hat-2\"), \n\t\tarray(\"iconsmind-Haunted-House\" => \"iconsmind-Haunted-House\"), \n\t\tarray(\"iconsmind-HD\" => \"iconsmind-HD\"), \n\t\tarray(\"iconsmind-HDD\" => \"iconsmind-HDD\"), \n\t\tarray(\"iconsmind-Heart2\" => \"iconsmind-Heart2\"), \n\t\tarray(\"iconsmind-Heels\" => \"iconsmind-Heels\"), \n\t\tarray(\"iconsmind-Heels-2\" => \"iconsmind-Heels-2\"), \n\t\tarray(\"iconsmind-Hello\" => \"iconsmind-Hello\"), \n\t\tarray(\"iconsmind-Hipo\" => \"iconsmind-Hipo\"), \n\t\tarray(\"iconsmind-Hipster-Glasses\" => \"iconsmind-Hipster-Glasses\"), \n\t\tarray(\"iconsmind-Hipster-Glasses2\" => \"iconsmind-Hipster-Glasses2\"), \n\t\tarray(\"iconsmind-Hipster-Glasses3\" => \"iconsmind-Hipster-Glasses3\"), \n\t\tarray(\"iconsmind-Hipster-Headphones\" => \"iconsmind-Hipster-Headphones\"), \n\t\tarray(\"iconsmind-Hipster-Men\" => \"iconsmind-Hipster-Men\"), \n\t\tarray(\"iconsmind-Hipster-Men2\" => \"iconsmind-Hipster-Men2\"), \n\t\tarray(\"iconsmind-Hipster-Men3\" => \"iconsmind-Hipster-Men3\"), \n\t\tarray(\"iconsmind-Hipster-Sunglasses\" => \"iconsmind-Hipster-Sunglasses\"), \n\t\tarray(\"iconsmind-Hipster-Sunglasses2\" => \"iconsmind-Hipster-Sunglasses2\"), \n\t\tarray(\"iconsmind-Hipster-Sunglasses3\" => \"iconsmind-Hipster-Sunglasses3\"), \n\t\tarray(\"iconsmind-Holly\" => \"iconsmind-Holly\"), \n\t\tarray(\"iconsmind-Home2\" => \"iconsmind-Home2\"), \n\t\tarray(\"iconsmind-Home-2\" => \"iconsmind-Home-2\"), \n\t\tarray(\"iconsmind-Home-3\" => \"iconsmind-Home-3\"), \n\t\tarray(\"iconsmind-Home-4\" => \"iconsmind-Home-4\"), \n\t\tarray(\"iconsmind-Honey\" => \"iconsmind-Honey\"), \n\t\tarray(\"iconsmind-Hong-Kong\" => \"iconsmind-Hong-Kong\"), \n\t\tarray(\"iconsmind-Hoodie\" => \"iconsmind-Hoodie\"), \n\t\tarray(\"iconsmind-Horror\" => \"iconsmind-Horror\"), \n\t\tarray(\"iconsmind-Horse\" => \"iconsmind-Horse\"), \n\t\tarray(\"iconsmind-Hospital2\" => \"iconsmind-Hospital2\"), \n\t\tarray(\"iconsmind-Host\" => \"iconsmind-Host\"), \n\t\tarray(\"iconsmind-Hot-Dog\" => \"iconsmind-Hot-Dog\"), \n\t\tarray(\"iconsmind-Hotel\" => \"iconsmind-Hotel\"), \n\t\tarray(\"iconsmind-Hub\" => \"iconsmind-Hub\"), \n\t\tarray(\"iconsmind-Humor\" => \"iconsmind-Humor\"), \n\t\tarray(\"iconsmind-Ice-Cream\" => \"iconsmind-Ice-Cream\"), \n\t\tarray(\"iconsmind-Idea\" => \"iconsmind-Idea\"), \n\t\tarray(\"iconsmind-Inbox\" => \"iconsmind-Inbox\"), \n\t\tarray(\"iconsmind-Inbox-Empty\" => \"iconsmind-Inbox-Empty\"), \n\t\tarray(\"iconsmind-Inbox-Forward\" => \"iconsmind-Inbox-Forward\"), \n\t\tarray(\"iconsmind-Inbox-Full\" => \"iconsmind-Inbox-Full\"), \n\t\tarray(\"iconsmind-Inbox-Into\" => \"iconsmind-Inbox-Into\"), \n\t\tarray(\"iconsmind-Inbox-Out\" => \"iconsmind-Inbox-Out\"), \n\t\tarray(\"iconsmind-Inbox-Reply\" => \"iconsmind-Inbox-Reply\"), \n\t\tarray(\"iconsmind-Increase-Inedit\" => \"iconsmind-Increase-Inedit\"), \n\t\tarray(\"iconsmind-Indent-FirstLine\" => \"iconsmind-Indent-FirstLine\"), \n\t\tarray(\"iconsmind-Indent-LeftMargin\" => \"iconsmind-Indent-LeftMargin\"), \n\t\tarray(\"iconsmind-Indent-RightMargin\" => \"iconsmind-Indent-RightMargin\"), \n\t\tarray(\"iconsmind-India\" => \"iconsmind-India\"), \n\t\tarray(\"iconsmind-Internet-Explorer\" => \"iconsmind-Internet-Explorer\"), \n\t\tarray(\"iconsmind-Internet-Smiley\" => \"iconsmind-Internet-Smiley\"), \n\t\tarray(\"iconsmind-iOS-Apple\" => \"iconsmind-iOS-Apple\"), \n\t\tarray(\"iconsmind-Israel\" => \"iconsmind-Israel\"), \n\t\tarray(\"iconsmind-Jacket\" => \"iconsmind-Jacket\"), \n\t\tarray(\"iconsmind-Jamaica\" => \"iconsmind-Jamaica\"), \n\t\tarray(\"iconsmind-Japan\" => \"iconsmind-Japan\"), \n\t\tarray(\"iconsmind-Japanese-Gate\" => \"iconsmind-Japanese-Gate\"), \n\t\tarray(\"iconsmind-Jeans\" => \"iconsmind-Jeans\"), \n\t\tarray(\"iconsmind-Joystick\" => \"iconsmind-Joystick\"), \n\t\tarray(\"iconsmind-Juice\" => \"iconsmind-Juice\"), \n\t\tarray(\"iconsmind-Kangoroo\" => \"iconsmind-Kangoroo\"), \n\t\tarray(\"iconsmind-Kenya\" => \"iconsmind-Kenya\"), \n\t\tarray(\"iconsmind-Keyboard\" => \"iconsmind-Keyboard\"), \n\t\tarray(\"iconsmind-Keypad\" => \"iconsmind-Keypad\"), \n\t\tarray(\"iconsmind-King\" => \"iconsmind-King\"), \n\t\tarray(\"iconsmind-Kiss\" => \"iconsmind-Kiss\"), \n\t\tarray(\"iconsmind-Knee\" => \"iconsmind-Knee\"), \n\t\tarray(\"iconsmind-Knife\" => \"iconsmind-Knife\"), \n\t\tarray(\"iconsmind-Knight\" => \"iconsmind-Knight\"), \n\t\tarray(\"iconsmind-Koala\" => \"iconsmind-Koala\"), \n\t\tarray(\"iconsmind-Korea\" => \"iconsmind-Korea\"), \n\t\tarray(\"iconsmind-Lantern\" => \"iconsmind-Lantern\"), \n\t\tarray(\"iconsmind-Laptop\" => \"iconsmind-Laptop\"), \n\t\tarray(\"iconsmind-Laptop-2\" => \"iconsmind-Laptop-2\"), \n\t\tarray(\"iconsmind-Laptop-3\" => \"iconsmind-Laptop-3\"), \n\t\tarray(\"iconsmind-Laptop-Phone\" => \"iconsmind-Laptop-Phone\"), \n\t\tarray(\"iconsmind-Laptop-Tablet\" => \"iconsmind-Laptop-Tablet\"), \n\t\tarray(\"iconsmind-Laughing\" => \"iconsmind-Laughing\"), \n\t\tarray(\"iconsmind-Leaning-Tower\" => \"iconsmind-Leaning-Tower\"), \n\t\tarray(\"iconsmind-Left2\" => \"iconsmind-Left2\"), \n\t\tarray(\"iconsmind-Left-2\" => \"iconsmind-Left-2\"), \n\t\tarray(\"iconsmind-Left-3\" => \"iconsmind-Left-3\"), \n\t\tarray(\"iconsmind-Left-ToRight\" => \"iconsmind-Left-ToRight\"), \n\t\tarray(\"iconsmind-Leg\" => \"iconsmind-Leg\"), \n\t\tarray(\"iconsmind-Leg-2\" => \"iconsmind-Leg-2\"), \n\t\tarray(\"iconsmind-Lemon\" => \"iconsmind-Lemon\"), \n\t\tarray(\"iconsmind-Leopard\" => \"iconsmind-Leopard\"), \n\t\tarray(\"iconsmind-Letter-Close\" => \"iconsmind-Letter-Close\"), \n\t\tarray(\"iconsmind-Letter-Open\" => \"iconsmind-Letter-Open\"), \n\t\tarray(\"iconsmind-Letter-Sent\" => \"iconsmind-Letter-Sent\"), \n\t\tarray(\"iconsmind-Library2\" => \"iconsmind-Library2\"), \n\t\tarray(\"iconsmind-Lighthouse\" => \"iconsmind-Lighthouse\"), \n\t\tarray(\"iconsmind-Line-Chart\" => \"iconsmind-Line-Chart\"), \n\t\tarray(\"iconsmind-Line-Chart2\" => \"iconsmind-Line-Chart2\"), \n\t\tarray(\"iconsmind-Line-Chart3\" => \"iconsmind-Line-Chart3\"), \n\t\tarray(\"iconsmind-Line-Chart4\" => \"iconsmind-Line-Chart4\"), \n\t\tarray(\"iconsmind-Line-Spacing\" => \"iconsmind-Line-Spacing\"), \n\t\tarray(\"iconsmind-Linux\" => \"iconsmind-Linux\"), \n\t\tarray(\"iconsmind-Lion\" => \"iconsmind-Lion\"), \n\t\tarray(\"iconsmind-Lollipop\" => \"iconsmind-Lollipop\"), \n\t\tarray(\"iconsmind-Lollipop-2\" => \"iconsmind-Lollipop-2\"), \n\t\tarray(\"iconsmind-Loop\" => \"iconsmind-Loop\"), \n\t\tarray(\"iconsmind-Love2\" => \"iconsmind-Love2\"), \n\t\tarray(\"iconsmind-Mail\" => \"iconsmind-Mail\"), \n\t\tarray(\"iconsmind-Mail-2\" => \"iconsmind-Mail-2\"), \n\t\tarray(\"iconsmind-Mail-3\" => \"iconsmind-Mail-3\"), \n\t\tarray(\"iconsmind-Mail-Add\" => \"iconsmind-Mail-Add\"), \n\t\tarray(\"iconsmind-Mail-Attachement\" => \"iconsmind-Mail-Attachement\"), \n\t\tarray(\"iconsmind-Mail-Block\" => \"iconsmind-Mail-Block\"), \n\t\tarray(\"iconsmind-Mailbox-Empty\" => \"iconsmind-Mailbox-Empty\"), \n\t\tarray(\"iconsmind-Mailbox-Full\" => \"iconsmind-Mailbox-Full\"), \n\t\tarray(\"iconsmind-Mail-Delete\" => \"iconsmind-Mail-Delete\"), \n\t\tarray(\"iconsmind-Mail-Favorite\" => \"iconsmind-Mail-Favorite\"), \n\t\tarray(\"iconsmind-Mail-Forward\" => \"iconsmind-Mail-Forward\"), \n\t\tarray(\"iconsmind-Mail-Gallery\" => \"iconsmind-Mail-Gallery\"), \n\t\tarray(\"iconsmind-Mail-Inbox\" => \"iconsmind-Mail-Inbox\"), \n\t\tarray(\"iconsmind-Mail-Link\" => \"iconsmind-Mail-Link\"), \n\t\tarray(\"iconsmind-Mail-Lock\" => \"iconsmind-Mail-Lock\"), \n\t\tarray(\"iconsmind-Mail-Love\" => \"iconsmind-Mail-Love\"), \n\t\tarray(\"iconsmind-Mail-Money\" => \"iconsmind-Mail-Money\"), \n\t\tarray(\"iconsmind-Mail-Open\" => \"iconsmind-Mail-Open\"), \n\t\tarray(\"iconsmind-Mail-Outbox\" => \"iconsmind-Mail-Outbox\"), \n\t\tarray(\"iconsmind-Mail-Password\" => \"iconsmind-Mail-Password\"), \n\t\tarray(\"iconsmind-Mail-Photo\" => \"iconsmind-Mail-Photo\"), \n\t\tarray(\"iconsmind-Mail-Read\" => \"iconsmind-Mail-Read\"), \n\t\tarray(\"iconsmind-Mail-Removex\" => \"iconsmind-Mail-Removex\"), \n\t\tarray(\"iconsmind-Mail-Reply\" => \"iconsmind-Mail-Reply\"), \n\t\tarray(\"iconsmind-Mail-ReplyAll\" => \"iconsmind-Mail-ReplyAll\"), \n\t\tarray(\"iconsmind-Mail-Search\" => \"iconsmind-Mail-Search\"), \n\t\tarray(\"iconsmind-Mail-Send\" => \"iconsmind-Mail-Send\"), \n\t\tarray(\"iconsmind-Mail-Settings\" => \"iconsmind-Mail-Settings\"), \n\t\tarray(\"iconsmind-Mail-Unread\" => \"iconsmind-Mail-Unread\"), \n\t\tarray(\"iconsmind-Mail-Video\" => \"iconsmind-Mail-Video\"), \n\t\tarray(\"iconsmind-Mail-withAtSign\" => \"iconsmind-Mail-withAtSign\"), \n\t\tarray(\"iconsmind-Mail-WithCursors\" => \"iconsmind-Mail-WithCursors\"), \n\t\tarray(\"iconsmind-Mans-Underwear\" => \"iconsmind-Mans-Underwear\"), \n\t\tarray(\"iconsmind-Mans-Underwear2\" => \"iconsmind-Mans-Underwear2\"), \n\t\tarray(\"iconsmind-Marker\" => \"iconsmind-Marker\"), \n\t\tarray(\"iconsmind-Marker-2\" => \"iconsmind-Marker-2\"), \n\t\tarray(\"iconsmind-Marker-3\" => \"iconsmind-Marker-3\"), \n\t\tarray(\"iconsmind-Martini-Glass\" => \"iconsmind-Martini-Glass\"), \n\t\tarray(\"iconsmind-Master-Card\" => \"iconsmind-Master-Card\"), \n\t\tarray(\"iconsmind-Maximize\" => \"iconsmind-Maximize\"), \n\t\tarray(\"iconsmind-Megaphone\" => \"iconsmind-Megaphone\"), \n\t\tarray(\"iconsmind-Mexico\" => \"iconsmind-Mexico\"), \n\t\tarray(\"iconsmind-Milk-Bottle\" => \"iconsmind-Milk-Bottle\"), \n\t\tarray(\"iconsmind-Minimize\" => \"iconsmind-Minimize\"), \n\t\tarray(\"iconsmind-Money\" => \"iconsmind-Money\"), \n\t\tarray(\"iconsmind-Money-2\" => \"iconsmind-Money-2\"), \n\t\tarray(\"iconsmind-Money-Bag\" => \"iconsmind-Money-Bag\"), \n\t\tarray(\"iconsmind-Monitor\" => \"iconsmind-Monitor\"), \n\t\tarray(\"iconsmind-Monitor-2\" => \"iconsmind-Monitor-2\"), \n\t\tarray(\"iconsmind-Monitor-3\" => \"iconsmind-Monitor-3\"), \n\t\tarray(\"iconsmind-Monitor-4\" => \"iconsmind-Monitor-4\"), \n\t\tarray(\"iconsmind-Monitor-5\" => \"iconsmind-Monitor-5\"), \n\t\tarray(\"iconsmind-Monitor-Laptop\" => \"iconsmind-Monitor-Laptop\"), \n\t\tarray(\"iconsmind-Monitor-phone\" => \"iconsmind-Monitor-phone\"), \n\t\tarray(\"iconsmind-Monitor-Tablet\" => \"iconsmind-Monitor-Tablet\"), \n\t\tarray(\"iconsmind-Monitor-Vertical\" => \"iconsmind-Monitor-Vertical\"), \n\t\tarray(\"iconsmind-Monkey\" => \"iconsmind-Monkey\"), \n\t\tarray(\"iconsmind-Monster\" => \"iconsmind-Monster\"), \n\t\tarray(\"iconsmind-Morocco\" => \"iconsmind-Morocco\"), \n\t\tarray(\"iconsmind-Mouse\" => \"iconsmind-Mouse\"), \n\t\tarray(\"iconsmind-Mouse-2\" => \"iconsmind-Mouse-2\"), \n\t\tarray(\"iconsmind-Mouse-3\" => \"iconsmind-Mouse-3\"), \n\t\tarray(\"iconsmind-Moustache-Smiley\" => \"iconsmind-Moustache-Smiley\"), \n\t\tarray(\"iconsmind-Museum\" => \"iconsmind-Museum\"), \n\t\tarray(\"iconsmind-Mushroom\" => \"iconsmind-Mushroom\"), \n\t\tarray(\"iconsmind-Mustache\" => \"iconsmind-Mustache\"), \n\t\tarray(\"iconsmind-Mustache-2\" => \"iconsmind-Mustache-2\"), \n\t\tarray(\"iconsmind-Mustache-3\" => \"iconsmind-Mustache-3\"), \n\t\tarray(\"iconsmind-Mustache-4\" => \"iconsmind-Mustache-4\"), \n\t\tarray(\"iconsmind-Mustache-5\" => \"iconsmind-Mustache-5\"), \n\t\tarray(\"iconsmind-Navigate-End\" => \"iconsmind-Navigate-End\"), \n\t\tarray(\"iconsmind-Navigat-Start\" => \"iconsmind-Navigat-Start\"), \n\t\tarray(\"iconsmind-Nepal\" => \"iconsmind-Nepal\"), \n\t\tarray(\"iconsmind-Netscape\" => \"iconsmind-Netscape\"), \n\t\tarray(\"iconsmind-New-Mail\" => \"iconsmind-New-Mail\"), \n\t\tarray(\"iconsmind-Newspaper\" => \"iconsmind-Newspaper\"), \n\t\tarray(\"iconsmind-Newspaper-2\" => \"iconsmind-Newspaper-2\"), \n\t\tarray(\"iconsmind-No-Battery\" => \"iconsmind-No-Battery\"), \n\t\tarray(\"iconsmind-Noose\" => \"iconsmind-Noose\"), \n\t\tarray(\"iconsmind-Note\" => \"iconsmind-Note\"), \n\t\tarray(\"iconsmind-Notepad\" => \"iconsmind-Notepad\"), \n\t\tarray(\"iconsmind-Notepad-2\" => \"iconsmind-Notepad-2\"), \n\t\tarray(\"iconsmind-Office\" => \"iconsmind-Office\"), \n\t\tarray(\"iconsmind-Old-Camera\" => \"iconsmind-Old-Camera\"), \n\t\tarray(\"iconsmind-Old-Cassette\" => \"iconsmind-Old-Cassette\"), \n\t\tarray(\"iconsmind-Old-Sticky\" => \"iconsmind-Old-Sticky\"), \n\t\tarray(\"iconsmind-Old-Sticky2\" => \"iconsmind-Old-Sticky2\"), \n\t\tarray(\"iconsmind-Old-Telephone\" => \"iconsmind-Old-Telephone\"), \n\t\tarray(\"iconsmind-Open-Banana\" => \"iconsmind-Open-Banana\"), \n\t\tarray(\"iconsmind-Open-Book\" => \"iconsmind-Open-Book\"), \n\t\tarray(\"iconsmind-Opera\" => \"iconsmind-Opera\"), \n\t\tarray(\"iconsmind-Opera-House\" => \"iconsmind-Opera-House\"), \n\t\tarray(\"iconsmind-Orientation2\" => \"iconsmind-Orientation2\"), \n\t\tarray(\"iconsmind-Orientation-2\" => \"iconsmind-Orientation-2\"), \n\t\tarray(\"iconsmind-Ornament\" => \"iconsmind-Ornament\"), \n\t\tarray(\"iconsmind-Owl\" => \"iconsmind-Owl\"), \n\t\tarray(\"iconsmind-Paintbrush\" => \"iconsmind-Paintbrush\"), \n\t\tarray(\"iconsmind-Palette\" => \"iconsmind-Palette\"), \n\t\tarray(\"iconsmind-Panda\" => \"iconsmind-Panda\"), \n\t\tarray(\"iconsmind-Pantheon\" => \"iconsmind-Pantheon\"), \n\t\tarray(\"iconsmind-Pantone\" => \"iconsmind-Pantone\"), \n\t\tarray(\"iconsmind-Pants\" => \"iconsmind-Pants\"), \n\t\tarray(\"iconsmind-Paper\" => \"iconsmind-Paper\"), \n\t\tarray(\"iconsmind-Parrot\" => \"iconsmind-Parrot\"), \n\t\tarray(\"iconsmind-Pawn\" => \"iconsmind-Pawn\"), \n\t\tarray(\"iconsmind-Pen\" => \"iconsmind-Pen\"), \n\t\tarray(\"iconsmind-Pen-2\" => \"iconsmind-Pen-2\"), \n\t\tarray(\"iconsmind-Pen-3\" => \"iconsmind-Pen-3\"), \n\t\tarray(\"iconsmind-Pen-4\" => \"iconsmind-Pen-4\"), \n\t\tarray(\"iconsmind-Pen-5\" => \"iconsmind-Pen-5\"), \n\t\tarray(\"iconsmind-Pen-6\" => \"iconsmind-Pen-6\"), \n\t\tarray(\"iconsmind-Pencil\" => \"iconsmind-Pencil\"), \n\t\tarray(\"iconsmind-Pencil-Ruler\" => \"iconsmind-Pencil-Ruler\"), \n\t\tarray(\"iconsmind-Penguin\" => \"iconsmind-Penguin\"), \n\t\tarray(\"iconsmind-Pentagon\" => \"iconsmind-Pentagon\"), \n\t\tarray(\"iconsmind-People-onCloud\" => \"iconsmind-People-onCloud\"), \n\t\tarray(\"iconsmind-Pepper\" => \"iconsmind-Pepper\"), \n\t\tarray(\"iconsmind-Pepper-withFire\" => \"iconsmind-Pepper-withFire\"), \n\t\tarray(\"iconsmind-Petronas-Tower\" => \"iconsmind-Petronas-Tower\"), \n\t\tarray(\"iconsmind-Philipines\" => \"iconsmind-Philipines\"), \n\t\tarray(\"iconsmind-Phone\" => \"iconsmind-Phone\"), \n\t\tarray(\"iconsmind-Phone-2\" => \"iconsmind-Phone-2\"), \n\t\tarray(\"iconsmind-Phone-3\" => \"iconsmind-Phone-3\"), \n\t\tarray(\"iconsmind-Phone-3G\" => \"iconsmind-Phone-3G\"), \n\t\tarray(\"iconsmind-Phone-4G\" => \"iconsmind-Phone-4G\"), \n\t\tarray(\"iconsmind-Phone-Simcard\" => \"iconsmind-Phone-Simcard\"), \n\t\tarray(\"iconsmind-Phone-SMS\" => \"iconsmind-Phone-SMS\"), \n\t\tarray(\"iconsmind-Phone-Wifi\" => \"iconsmind-Phone-Wifi\"), \n\t\tarray(\"iconsmind-Pi\" => \"iconsmind-Pi\"), \n\t\tarray(\"iconsmind-Pie-Chart\" => \"iconsmind-Pie-Chart\"), \n\t\tarray(\"iconsmind-Pie-Chart2\" => \"iconsmind-Pie-Chart2\"), \n\t\tarray(\"iconsmind-Pie-Chart3\" => \"iconsmind-Pie-Chart3\"), \n\t\tarray(\"iconsmind-Pipette\" => \"iconsmind-Pipette\"), \n\t\tarray(\"iconsmind-Piramids\" => \"iconsmind-Piramids\"), \n\t\tarray(\"iconsmind-Pizza\" => \"iconsmind-Pizza\"), \n\t\tarray(\"iconsmind-Pizza-Slice\" => \"iconsmind-Pizza-Slice\"), \n\t\tarray(\"iconsmind-Plastic-CupPhone\" => \"iconsmind-Plastic-CupPhone\"), \n\t\tarray(\"iconsmind-Plastic-CupPhone2\" => \"iconsmind-Plastic-CupPhone2\"), \n\t\tarray(\"iconsmind-Plate\" => \"iconsmind-Plate\"), \n\t\tarray(\"iconsmind-Plates\" => \"iconsmind-Plates\"), \n\t\tarray(\"iconsmind-Plug-In\" => \"iconsmind-Plug-In\"), \n\t\tarray(\"iconsmind-Plug-In2\" => \"iconsmind-Plug-In2\"), \n\t\tarray(\"iconsmind-Poland\" => \"iconsmind-Poland\"), \n\t\tarray(\"iconsmind-Police-Station\" => \"iconsmind-Police-Station\"), \n\t\tarray(\"iconsmind-Polo-Shirt\" => \"iconsmind-Polo-Shirt\"), \n\t\tarray(\"iconsmind-Portugal\" => \"iconsmind-Portugal\"), \n\t\tarray(\"iconsmind-Post-Mail\" => \"iconsmind-Post-Mail\"), \n\t\tarray(\"iconsmind-Post-Mail2\" => \"iconsmind-Post-Mail2\"), \n\t\tarray(\"iconsmind-Post-Office\" => \"iconsmind-Post-Office\"), \n\t\tarray(\"iconsmind-Pound\" => \"iconsmind-Pound\"), \n\t\tarray(\"iconsmind-Pound-Sign\" => \"iconsmind-Pound-Sign\"), \n\t\tarray(\"iconsmind-Pound-Sign2\" => \"iconsmind-Pound-Sign2\"), \n\t\tarray(\"iconsmind-Power\" => \"iconsmind-Power\"), \n\t\tarray(\"iconsmind-Power-Cable\" => \"iconsmind-Power-Cable\"), \n\t\tarray(\"iconsmind-Prater\" => \"iconsmind-Prater\"), \n\t\tarray(\"iconsmind-Present\" => \"iconsmind-Present\"), \n\t\tarray(\"iconsmind-Presents\" => \"iconsmind-Presents\"), \n\t\tarray(\"iconsmind-Printer\" => \"iconsmind-Printer\"), \n\t\tarray(\"iconsmind-Projector\" => \"iconsmind-Projector\"), \n\t\tarray(\"iconsmind-Projector-2\" => \"iconsmind-Projector-2\"), \n\t\tarray(\"iconsmind-Pumpkin\" => \"iconsmind-Pumpkin\"), \n\t\tarray(\"iconsmind-Punk\" => \"iconsmind-Punk\"), \n\t\tarray(\"iconsmind-Queen\" => \"iconsmind-Queen\"), \n\t\tarray(\"iconsmind-Quill\" => \"iconsmind-Quill\"), \n\t\tarray(\"iconsmind-Quill-2\" => \"iconsmind-Quill-2\"), \n\t\tarray(\"iconsmind-Quill-3\" => \"iconsmind-Quill-3\"), \n\t\tarray(\"iconsmind-Ram\" => \"iconsmind-Ram\"), \n\t\tarray(\"iconsmind-Redhat\" => \"iconsmind-Redhat\"), \n\t\tarray(\"iconsmind-Reload2\" => \"iconsmind-Reload2\"), \n\t\tarray(\"iconsmind-Reload-2\" => \"iconsmind-Reload-2\"), \n\t\tarray(\"iconsmind-Remote-Controll\" => \"iconsmind-Remote-Controll\"), \n\t\tarray(\"iconsmind-Remote-Controll2\" => \"iconsmind-Remote-Controll2\"), \n\t\tarray(\"iconsmind-Remove-File\" => \"iconsmind-Remove-File\"), \n\t\tarray(\"iconsmind-Repeat3\" => \"iconsmind-Repeat3\"), \n\t\tarray(\"iconsmind-Repeat-22\" => \"iconsmind-Repeat-22\"), \n\t\tarray(\"iconsmind-Repeat-3\" => \"iconsmind-Repeat-3\"), \n\t\tarray(\"iconsmind-Repeat-4\" => \"iconsmind-Repeat-4\"), \n\t\tarray(\"iconsmind-Resize\" => \"iconsmind-Resize\"), \n\t\tarray(\"iconsmind-Retro\" => \"iconsmind-Retro\"), \n\t\tarray(\"iconsmind-RGB\" => \"iconsmind-RGB\"), \n\t\tarray(\"iconsmind-Right2\" => \"iconsmind-Right2\"), \n\t\tarray(\"iconsmind-Right-2\" => \"iconsmind-Right-2\"), \n\t\tarray(\"iconsmind-Right-3\" => \"iconsmind-Right-3\"), \n\t\tarray(\"iconsmind-Right-ToLeft\" => \"iconsmind-Right-ToLeft\"), \n\t\tarray(\"iconsmind-Robot2\" => \"iconsmind-Robot2\"), \n\t\tarray(\"iconsmind-Roller\" => \"iconsmind-Roller\"), \n\t\tarray(\"iconsmind-Roof\" => \"iconsmind-Roof\"), \n\t\tarray(\"iconsmind-Rook\" => \"iconsmind-Rook\"), \n\t\tarray(\"iconsmind-Router\" => \"iconsmind-Router\"), \n\t\tarray(\"iconsmind-Router-2\" => \"iconsmind-Router-2\"), \n\t\tarray(\"iconsmind-Ruler\" => \"iconsmind-Ruler\"), \n\t\tarray(\"iconsmind-Ruler-2\" => \"iconsmind-Ruler-2\"), \n\t\tarray(\"iconsmind-Safari\" => \"iconsmind-Safari\"), \n\t\tarray(\"iconsmind-Safe-Box2\" => \"iconsmind-Safe-Box2\"), \n\t\tarray(\"iconsmind-Santa-Claus\" => \"iconsmind-Santa-Claus\"), \n\t\tarray(\"iconsmind-Santa-Claus2\" => \"iconsmind-Santa-Claus2\"), \n\t\tarray(\"iconsmind-Santa-onSled\" => \"iconsmind-Santa-onSled\"), \n\t\tarray(\"iconsmind-Scarf\" => \"iconsmind-Scarf\"), \n\t\tarray(\"iconsmind-Scissor\" => \"iconsmind-Scissor\"), \n\t\tarray(\"iconsmind-Scotland\" => \"iconsmind-Scotland\"), \n\t\tarray(\"iconsmind-Sea-Dog\" => \"iconsmind-Sea-Dog\"), \n\t\tarray(\"iconsmind-Search-onCloud\" => \"iconsmind-Search-onCloud\"), \n\t\tarray(\"iconsmind-Security-Smiley\" => \"iconsmind-Security-Smiley\"), \n\t\tarray(\"iconsmind-Serbia\" => \"iconsmind-Serbia\"), \n\t\tarray(\"iconsmind-Server\" => \"iconsmind-Server\"), \n\t\tarray(\"iconsmind-Server-2\" => \"iconsmind-Server-2\"), \n\t\tarray(\"iconsmind-Servers\" => \"iconsmind-Servers\"), \n\t\tarray(\"iconsmind-Share-onCloud\" => \"iconsmind-Share-onCloud\"), \n\t\tarray(\"iconsmind-Shark\" => \"iconsmind-Shark\"), \n\t\tarray(\"iconsmind-Sheep\" => \"iconsmind-Sheep\"), \n\t\tarray(\"iconsmind-Shirt\" => \"iconsmind-Shirt\"), \n\t\tarray(\"iconsmind-Shoes\" => \"iconsmind-Shoes\"), \n\t\tarray(\"iconsmind-Shoes-2\" => \"iconsmind-Shoes-2\"), \n\t\tarray(\"iconsmind-Short-Pants\" => \"iconsmind-Short-Pants\"), \n\t\tarray(\"iconsmind-Shuffle2\" => \"iconsmind-Shuffle2\"), \n\t\tarray(\"iconsmind-Shuffle-22\" => \"iconsmind-Shuffle-22\"), \n\t\tarray(\"iconsmind-Singapore\" => \"iconsmind-Singapore\"), \n\t\tarray(\"iconsmind-Skeleton\" => \"iconsmind-Skeleton\"), \n\t\tarray(\"iconsmind-Skirt\" => \"iconsmind-Skirt\"), \n\t\tarray(\"iconsmind-Skull\" => \"iconsmind-Skull\"), \n\t\tarray(\"iconsmind-Sled\" => \"iconsmind-Sled\"), \n\t\tarray(\"iconsmind-Sled-withGifts\" => \"iconsmind-Sled-withGifts\"), \n\t\tarray(\"iconsmind-Sleeping\" => \"iconsmind-Sleeping\"), \n\t\tarray(\"iconsmind-Slippers\" => \"iconsmind-Slippers\"), \n\t\tarray(\"iconsmind-Smart\" => \"iconsmind-Smart\"), \n\t\tarray(\"iconsmind-Smartphone\" => \"iconsmind-Smartphone\"), \n\t\tarray(\"iconsmind-Smartphone-2\" => \"iconsmind-Smartphone-2\"), \n\t\tarray(\"iconsmind-Smartphone-3\" => \"iconsmind-Smartphone-3\"), \n\t\tarray(\"iconsmind-Smartphone-4\" => \"iconsmind-Smartphone-4\"), \n\t\tarray(\"iconsmind-Smile\" => \"iconsmind-Smile\"), \n\t\tarray(\"iconsmind-Smoking-Pipe\" => \"iconsmind-Smoking-Pipe\"), \n\t\tarray(\"iconsmind-Snake\" => \"iconsmind-Snake\"), \n\t\tarray(\"iconsmind-Snow-Dome\" => \"iconsmind-Snow-Dome\"), \n\t\tarray(\"iconsmind-Snowflake2\" => \"iconsmind-Snowflake2\"), \n\t\tarray(\"iconsmind-Snowman\" => \"iconsmind-Snowman\"), \n\t\tarray(\"iconsmind-Socks\" => \"iconsmind-Socks\"), \n\t\tarray(\"iconsmind-Soup\" => \"iconsmind-Soup\"), \n\t\tarray(\"iconsmind-South-Africa\" => \"iconsmind-South-Africa\"), \n\t\tarray(\"iconsmind-Space-Needle\" => \"iconsmind-Space-Needle\"), \n\t\tarray(\"iconsmind-Spain\" => \"iconsmind-Spain\"), \n\t\tarray(\"iconsmind-Spam-Mail\" => \"iconsmind-Spam-Mail\"), \n\t\tarray(\"iconsmind-Speaker2\" => \"iconsmind-Speaker2\"), \n\t\tarray(\"iconsmind-Spell-Check\" => \"iconsmind-Spell-Check\"), \n\t\tarray(\"iconsmind-Spell-CheckABC\" => \"iconsmind-Spell-CheckABC\"), \n\t\tarray(\"iconsmind-Spider\" => \"iconsmind-Spider\"), \n\t\tarray(\"iconsmind-Spiderweb\" => \"iconsmind-Spiderweb\"), \n\t\tarray(\"iconsmind-Spoder\" => \"iconsmind-Spoder\"), \n\t\tarray(\"iconsmind-Spoon\" => \"iconsmind-Spoon\"), \n\t\tarray(\"iconsmind-Sports-Clothings1\" => \"iconsmind-Sports-Clothings1\"), \n\t\tarray(\"iconsmind-Sports-Clothings2\" => \"iconsmind-Sports-Clothings2\"), \n\t\tarray(\"iconsmind-Sports-Shirt\" => \"iconsmind-Sports-Shirt\"), \n\t\tarray(\"iconsmind-Spray\" => \"iconsmind-Spray\"), \n\t\tarray(\"iconsmind-Squirrel\" => \"iconsmind-Squirrel\"), \n\t\tarray(\"iconsmind-Stamp\" => \"iconsmind-Stamp\"), \n\t\tarray(\"iconsmind-Stamp-2\" => \"iconsmind-Stamp-2\"), \n\t\tarray(\"iconsmind-Stapler\" => \"iconsmind-Stapler\"), \n\t\tarray(\"iconsmind-Star\" => \"iconsmind-Star\"), \n\t\tarray(\"iconsmind-Starfish\" => \"iconsmind-Starfish\"), \n\t\tarray(\"iconsmind-Start2\" => \"iconsmind-Start2\"), \n\t\tarray(\"iconsmind-St-BasilsCathedral\" => \"iconsmind-St-BasilsCathedral\"), \n\t\tarray(\"iconsmind-St-PaulsCathedral\" => \"iconsmind-St-PaulsCathedral\"), \n\t\tarray(\"iconsmind-Structure\" => \"iconsmind-Structure\"), \n\t\tarray(\"iconsmind-Student-Hat\" => \"iconsmind-Student-Hat\"), \n\t\tarray(\"iconsmind-Student-Hat2\" => \"iconsmind-Student-Hat2\"), \n\t\tarray(\"iconsmind-Suit\" => \"iconsmind-Suit\"), \n\t\tarray(\"iconsmind-Sum2\" => \"iconsmind-Sum2\"), \n\t\tarray(\"iconsmind-Sunglasses\" => \"iconsmind-Sunglasses\"), \n\t\tarray(\"iconsmind-Sunglasses-2\" => \"iconsmind-Sunglasses-2\"), \n\t\tarray(\"iconsmind-Sunglasses-3\" => \"iconsmind-Sunglasses-3\"), \n\t\tarray(\"iconsmind-Sunglasses-Smiley\" => \"iconsmind-Sunglasses-Smiley\"), \n\t\tarray(\"iconsmind-Sunglasses-Smiley2\" => \"iconsmind-Sunglasses-Smiley2\"), \n\t\tarray(\"iconsmind-Sunglasses-W\" => \"iconsmind-Sunglasses-W\"), \n\t\tarray(\"iconsmind-Sunglasses-W2\" => \"iconsmind-Sunglasses-W2\"), \n\t\tarray(\"iconsmind-Sunglasses-W3\" => \"iconsmind-Sunglasses-W3\"), \n\t\tarray(\"iconsmind-Surprise\" => \"iconsmind-Surprise\"), \n\t\tarray(\"iconsmind-Sushi\" => \"iconsmind-Sushi\"), \n\t\tarray(\"iconsmind-Sweden\" => \"iconsmind-Sweden\"), \n\t\tarray(\"iconsmind-Swimming-Short\" => \"iconsmind-Swimming-Short\"), \n\t\tarray(\"iconsmind-Swimmwear\" => \"iconsmind-Swimmwear\"), \n\t\tarray(\"iconsmind-Switzerland\" => \"iconsmind-Switzerland\"), \n\t\tarray(\"iconsmind-Sync\" => \"iconsmind-Sync\"), \n\t\tarray(\"iconsmind-Sync-Cloud\" => \"iconsmind-Sync-Cloud\"), \n\t\tarray(\"iconsmind-Tablet\" => \"iconsmind-Tablet\"), \n\t\tarray(\"iconsmind-Tablet-2\" => \"iconsmind-Tablet-2\"), \n\t\tarray(\"iconsmind-Tablet-3\" => \"iconsmind-Tablet-3\"), \n\t\tarray(\"iconsmind-Tablet-Orientation\" => \"iconsmind-Tablet-Orientation\"), \n\t\tarray(\"iconsmind-Tablet-Phone\" => \"iconsmind-Tablet-Phone\"), \n\t\tarray(\"iconsmind-Tablet-Vertical\" => \"iconsmind-Tablet-Vertical\"), \n\t\tarray(\"iconsmind-Tactic\" => \"iconsmind-Tactic\"), \n\t\tarray(\"iconsmind-Taj-Mahal\" => \"iconsmind-Taj-Mahal\"), \n\t\tarray(\"iconsmind-Teapot\" => \"iconsmind-Teapot\"), \n\t\tarray(\"iconsmind-Tee-Mug\" => \"iconsmind-Tee-Mug\"), \n\t\tarray(\"iconsmind-Telephone\" => \"iconsmind-Telephone\"), \n\t\tarray(\"iconsmind-Telephone-2\" => \"iconsmind-Telephone-2\"), \n\t\tarray(\"iconsmind-Temple\" => \"iconsmind-Temple\"), \n\t\tarray(\"iconsmind-Thailand\" => \"iconsmind-Thailand\"), \n\t\tarray(\"iconsmind-The-WhiteHouse\" => \"iconsmind-The-WhiteHouse\"), \n\t\tarray(\"iconsmind-Three-ArrowFork\" => \"iconsmind-Three-ArrowFork\"), \n\t\tarray(\"iconsmind-Thumbs-DownSmiley\" => \"iconsmind-Thumbs-DownSmiley\"), \n\t\tarray(\"iconsmind-Thumbs-UpSmiley\" => \"iconsmind-Thumbs-UpSmiley\"), \n\t\tarray(\"iconsmind-Tie\" => \"iconsmind-Tie\"), \n\t\tarray(\"iconsmind-Tie-2\" => \"iconsmind-Tie-2\"), \n\t\tarray(\"iconsmind-Tie-3\" => \"iconsmind-Tie-3\"), \n\t\tarray(\"iconsmind-Tiger\" => \"iconsmind-Tiger\"), \n\t\tarray(\"iconsmind-Time-Clock\" => \"iconsmind-Time-Clock\"), \n\t\tarray(\"iconsmind-To-Bottom\" => \"iconsmind-To-Bottom\"), \n\t\tarray(\"iconsmind-To-Bottom2\" => \"iconsmind-To-Bottom2\"), \n\t\tarray(\"iconsmind-Token\" => \"iconsmind-Token\"), \n\t\tarray(\"iconsmind-To-Left\" => \"iconsmind-To-Left\"), \n\t\tarray(\"iconsmind-Tomato\" => \"iconsmind-Tomato\"), \n\t\tarray(\"iconsmind-Tongue\" => \"iconsmind-Tongue\"), \n\t\tarray(\"iconsmind-Tooth\" => \"iconsmind-Tooth\"), \n\t\tarray(\"iconsmind-Tooth-2\" => \"iconsmind-Tooth-2\"), \n\t\tarray(\"iconsmind-Top-ToBottom\" => \"iconsmind-Top-ToBottom\"), \n\t\tarray(\"iconsmind-To-Right\" => \"iconsmind-To-Right\"), \n\t\tarray(\"iconsmind-To-Top\" => \"iconsmind-To-Top\"), \n\t\tarray(\"iconsmind-To-Top2\" => \"iconsmind-To-Top2\"), \n\t\tarray(\"iconsmind-Tower\" => \"iconsmind-Tower\"), \n\t\tarray(\"iconsmind-Tower-2\" => \"iconsmind-Tower-2\"), \n\t\tarray(\"iconsmind-Tower-Bridge\" => \"iconsmind-Tower-Bridge\"), \n\t\tarray(\"iconsmind-Transform\" => \"iconsmind-Transform\"), \n\t\tarray(\"iconsmind-Transform-2\" => \"iconsmind-Transform-2\"), \n\t\tarray(\"iconsmind-Transform-3\" => \"iconsmind-Transform-3\"), \n\t\tarray(\"iconsmind-Transform-4\" => \"iconsmind-Transform-4\"), \n\t\tarray(\"iconsmind-Tree2\" => \"iconsmind-Tree2\"), \n\t\tarray(\"iconsmind-Tree-22\" => \"iconsmind-Tree-22\"), \n\t\tarray(\"iconsmind-Triangle-ArrowDown\" => \"iconsmind-Triangle-ArrowDown\"), \n\t\tarray(\"iconsmind-Triangle-ArrowLeft\" => \"iconsmind-Triangle-ArrowLeft\"), \n\t\tarray(\"iconsmind-Triangle-ArrowRight\" => \"iconsmind-Triangle-ArrowRight\"), \n\t\tarray(\"iconsmind-Triangle-ArrowUp\" => \"iconsmind-Triangle-ArrowUp\"), \n\t\tarray(\"iconsmind-T-Shirt\" => \"iconsmind-T-Shirt\"), \n\t\tarray(\"iconsmind-Turkey\" => \"iconsmind-Turkey\"), \n\t\tarray(\"iconsmind-Turn-Down\" => \"iconsmind-Turn-Down\"), \n\t\tarray(\"iconsmind-Turn-Down2\" => \"iconsmind-Turn-Down2\"), \n\t\tarray(\"iconsmind-Turn-DownFromLeft\" => \"iconsmind-Turn-DownFromLeft\"), \n\t\tarray(\"iconsmind-Turn-DownFromRight\" => \"iconsmind-Turn-DownFromRight\"), \n\t\tarray(\"iconsmind-Turn-Left\" => \"iconsmind-Turn-Left\"), \n\t\tarray(\"iconsmind-Turn-Left3\" => \"iconsmind-Turn-Left3\"), \n\t\tarray(\"iconsmind-Turn-Right\" => \"iconsmind-Turn-Right\"), \n\t\tarray(\"iconsmind-Turn-Right3\" => \"iconsmind-Turn-Right3\"), \n\t\tarray(\"iconsmind-Turn-Up\" => \"iconsmind-Turn-Up\"), \n\t\tarray(\"iconsmind-Turn-Up2\" => \"iconsmind-Turn-Up2\"), \n\t\tarray(\"iconsmind-Turtle\" => \"iconsmind-Turtle\"), \n\t\tarray(\"iconsmind-Tuxedo\" => \"iconsmind-Tuxedo\"), \n\t\tarray(\"iconsmind-Ukraine\" => \"iconsmind-Ukraine\"), \n\t\tarray(\"iconsmind-Umbrela\" => \"iconsmind-Umbrela\"), \n\t\tarray(\"iconsmind-United-Kingdom\" => \"iconsmind-United-Kingdom\"), \n\t\tarray(\"iconsmind-United-States\" => \"iconsmind-United-States\"), \n\t\tarray(\"iconsmind-University\" => \"iconsmind-University\"), \n\t\tarray(\"iconsmind-Up2\" => \"iconsmind-Up2\"), \n\t\tarray(\"iconsmind-Up-2\" => \"iconsmind-Up-2\"), \n\t\tarray(\"iconsmind-Up-3\" => \"iconsmind-Up-3\"), \n\t\tarray(\"iconsmind-Upload2\" => \"iconsmind-Upload2\"), \n\t\tarray(\"iconsmind-Upload-toCloud\" => \"iconsmind-Upload-toCloud\"), \n\t\tarray(\"iconsmind-Usb\" => \"iconsmind-Usb\"), \n\t\tarray(\"iconsmind-Usb-2\" => \"iconsmind-Usb-2\"), \n\t\tarray(\"iconsmind-Usb-Cable\" => \"iconsmind-Usb-Cable\"), \n\t\tarray(\"iconsmind-Vector\" => \"iconsmind-Vector\"), \n\t\tarray(\"iconsmind-Vector-2\" => \"iconsmind-Vector-2\"), \n\t\tarray(\"iconsmind-Vector-3\" => \"iconsmind-Vector-3\"), \n\t\tarray(\"iconsmind-Vector-4\" => \"iconsmind-Vector-4\"), \n\t\tarray(\"iconsmind-Vector-5\" => \"iconsmind-Vector-5\"), \n\t\tarray(\"iconsmind-Vest\" => \"iconsmind-Vest\"), \n\t\tarray(\"iconsmind-Vietnam\" => \"iconsmind-Vietnam\"), \n\t\tarray(\"iconsmind-View-Height\" => \"iconsmind-View-Height\"), \n\t\tarray(\"iconsmind-View-Width\" => \"iconsmind-View-Width\"), \n\t\tarray(\"iconsmind-Visa\" => \"iconsmind-Visa\"), \n\t\tarray(\"iconsmind-Voicemail\" => \"iconsmind-Voicemail\"), \n\t\tarray(\"iconsmind-VPN\" => \"iconsmind-VPN\"), \n\t\tarray(\"iconsmind-Wacom-Tablet\" => \"iconsmind-Wacom-Tablet\"), \n\t\tarray(\"iconsmind-Walkie-Talkie\" => \"iconsmind-Walkie-Talkie\"), \n\t\tarray(\"iconsmind-Wallet\" => \"iconsmind-Wallet\"), \n\t\tarray(\"iconsmind-Wallet-2\" => \"iconsmind-Wallet-2\"), \n\t\tarray(\"iconsmind-Warehouse\" => \"iconsmind-Warehouse\"), \n\t\tarray(\"iconsmind-Webcam\" => \"iconsmind-Webcam\"), \n\t\tarray(\"iconsmind-Wifi\" => \"iconsmind-Wifi\"), \n\t\tarray(\"iconsmind-Wifi-2\" => \"iconsmind-Wifi-2\"), \n\t\tarray(\"iconsmind-Wifi-Keyboard\" => \"iconsmind-Wifi-Keyboard\"), \n\t\tarray(\"iconsmind-Window\" => \"iconsmind-Window\"), \n\t\tarray(\"iconsmind-Windows\" => \"iconsmind-Windows\"), \n\t\tarray(\"iconsmind-Windows-Microsoft\" => \"iconsmind-Windows-Microsoft\"), \n\t\tarray(\"iconsmind-Wine-Bottle\" => \"iconsmind-Wine-Bottle\"), \n\t\tarray(\"iconsmind-Wine-Glass\" => \"iconsmind-Wine-Glass\"), \n\t\tarray(\"iconsmind-Wink\" => \"iconsmind-Wink\"), \n\t\tarray(\"iconsmind-Wireless\" => \"iconsmind-Wireless\"), \n\t\tarray(\"iconsmind-Witch\" => \"iconsmind-Witch\"), \n\t\tarray(\"iconsmind-Witch-Hat\" => \"iconsmind-Witch-Hat\"), \n\t\tarray(\"iconsmind-Wizard\" => \"iconsmind-Wizard\"), \n\t\tarray(\"iconsmind-Wolf\" => \"iconsmind-Wolf\"), \n\t\tarray(\"iconsmind-Womans-Underwear\" => \"iconsmind-Womans-Underwear\"), \n\t\tarray(\"iconsmind-Womans-Underwear2\" => \"iconsmind-Womans-Underwear2\"), \n\t\tarray(\"iconsmind-Worker-Clothes\" => \"iconsmind-Worker-Clothes\"), \n\t\tarray(\"iconsmind-Wreath\" => \"iconsmind-Wreath\"), \n\t\tarray(\"iconsmind-Zebra\" => \"iconsmind-Zebra\"), \n\t\tarray(\"iconsmind-Zombie\" => \"iconsmind-Zombie\")\n\t);\n\treturn array_merge( $icons, $iconsmind_icons );\n}",
"function cptmm_setup_menu(){\n add_menu_page(\n 'CPT map marker',\n 'CPT map marker',\n 'manage_options',\n 'CPT-map-marker',\n 'cptmm_setup_menu_content',\n 'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTguMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0iQ2FwYV8xIiB4PSIwcHgiIHk9IjBweCIgdmlld0JveD0iMCAwIDI5Ni45OTkgMjk2Ljk5OSIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMjk2Ljk5OSAyOTYuOTk5OyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSIgd2lkdGg9IjUxMnB4IiBoZWlnaHQ9IjUxMnB4Ij4KPGc+Cgk8cGF0aCBkPSJNMTQxLjkxNCwxODUuODAyYzEuODgzLDEuNjU2LDQuMjM0LDIuNDg2LDYuNTg3LDIuNDg2YzIuMzUzLDAsNC43MDUtMC44Myw2LjU4Ny0yLjQ4NiAgIGMyLjM4NS0yLjEwMSw1OC4zOTEtNTIuMDIxLDU4LjM5MS0xMDMuNzkzYzAtMzUuODQyLTI5LjE0OC02NS4wMDItNjQuOTc3LTY1LjAwMmMtMzUuODMsMC02NC45NzksMjkuMTYtNjQuOTc5LDY1LjAwMiAgIEM4My41MjEsMTMzLjc4MSwxMzkuNTI5LDE4My43MDEsMTQxLjkxNCwxODUuODAyeiBNMTQ4LjUwMSw2NS4wMjVjOS4zMDIsMCwxNi44NDUsNy42MDIsMTYuODQ1LDE2Ljk4NCAgIGMwLDkuMzgxLTcuNTQzLDE2Ljk4NC0xNi44NDUsMTYuOTg0Yy05LjMwNSwwLTE2Ljg0Ny03LjYwNC0xNi44NDctMTYuOTg0QzEzMS42NTQsNzIuNjI3LDEzOS4xOTYsNjUuMDI1LDE0OC41MDEsNjUuMDI1eiIgZmlsbD0iIzAwMDAwMCIvPgoJPHBhdGggZD0iTTI3My4zNTcsMTg1Ljc3M2wtNy41MjctMjYuMzc3Yy0xLjIyMi00LjI4MS01LjEzMy03LjIzMi05LjU4My03LjIzMmgtNTMuNzE5Yy0xLjk0MiwyLjg4Ny0zLjk5MSw1Ljc4NS02LjE1OCw4LjY5OSAgIGMtMTUuMDU3LDIwLjIzLTMwLjM2NCwzMy45MTQtMzIuMDYxLDM1LjQxYy00LjM3LDMuODQ4LTkuOTgzLDUuOTY3LTE1LjgwOCw1Ljk2N2MtNS44MjEsMC0xMS40MzQtMi4xMTctMTUuODEtNS45NjkgICBjLTEuNjk1LTEuNDk0LTE3LjAwNC0xNS4xOC0zMi4wNi0zNS40MDhjLTIuMTY3LTIuOTE0LTQuMjE2LTUuODEzLTYuMTU4LTguNjk5aC01My43MmMtNC40NSwwLTguMzYxLDIuOTUxLTkuNTgzLDcuMjMyICAgbC04Ljk3MSwzMS40MzZsMjAwLjUyOSwzNi43M0wyNzMuMzU3LDE4NS43NzN6IiBmaWxsPSIjMDAwMDAwIi8+Cgk8cGF0aCBkPSJNMjk2LjYxNywyNjcuMjkxbC0xOS4yMy02Ny4zOTZsLTk1LjQxMiw4MC4wOThoMTA1LjA2YzMuMTI3LDAsNi4wNzItMS40NjcsNy45NTUtMy45NjMgICBDMjk2Ljg3MywyNzMuNTMzLDI5Ny40NzQsMjcwLjI5NywyOTYuNjE3LDI2Ny4yOTF6IiBmaWxsPSIjMDAwMDAwIi8+Cgk8cGF0aCBkPSJNNDguNzkzLDIwOS44ODhsLTMwLjQ0LTUuNTc2TDAuMzgzLDI2Ny4yOTFjLTAuODU3LDMuMDA2LTAuMjU2LDYuMjQyLDEuNjI4LDguNzM4YzEuODgzLDIuNDk2LDQuODI4LDMuOTYzLDcuOTU1LDMuOTYzICAgaDM4LjgyN1YyMDkuODg4eiIgZmlsbD0iIzAwMDAwMCIvPgoJPHBvbHlnb24gcG9pbnRzPSI2Mi43NDYsMjEyLjQ0NSA2Mi43NDYsMjc5Ljk5MiAxNjAuMjczLDI3OS45OTIgMjA4Ljg1NywyMzkuMjA3ICAiIGZpbGw9IiMwMDAwMDAiLz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8L3N2Zz4K',\n 30\n );\n}",
"public function icon ( ) { return NULL; }",
"function addMarkerIcon($dataArray) {\n\t\tif (empty($dataArray)) {\n\t\t\treturn false;\n\t\t} else {\n\t\t \t$this->icons[] = 'WecMap.addIcon(\"' . $this->mapName . '\", \"' . $dataArray['iconID'] . '\", \"' . $dataArray['imagepath'] . '\", \"' . $dataArray['shadowpath'] . '\", new GSize(' . $dataArray['width'] . ', ' . $dataArray['height'] . '), new GSize(' . $dataArray['shadowWidth'] . ', ' . $dataArray['shadowHeight'] . '), new GPoint(' . $dataArray['anchorX'] . ', ' . $dataArray['anchorY'] . '), new GPoint(' . $dataArray['infoAnchorX'] . ', ' . $dataArray['infoAnchorY'] . '));\n\t\t\t';\n\t\t\treturn true;\n\t\t}\n\n\t}",
"function wp_ozh_yourls_customicon( $in ) {\r\n\treturn wp_ozh_yourls_pluginurl().'res/icon.gif';\r\n}",
"function process_im_icons()\n\t{\n\t}",
"function process_im_icons()\n\t{\n\t}",
"function process_im_icons()\n\t{\n\t}",
"function qode_restaurant_map_map() {\n\t\t\tbridge_qode_add_admin_page(array(\n\t\t\t\t'title' => 'Restaurant',\n\t\t\t\t'slug' => '_restaurant',\n\t\t\t\t'icon' => 'fa fa-cutlery'\n\t\t\t));\n\n\t\t\t//#Working Hours panel\n\t\t\t$panel_working_hours = bridge_qode_add_admin_panel(array(\n\t\t\t\t'page' => '_restaurant',\n\t\t\t\t'name' => 'panel_working_hours',\n\t\t\t\t'title' => 'Working Hours'\n\t\t\t));\n\n\t\t\t$monday_group = bridge_qode_add_admin_group(array(\n\t\t\t\t'name' => 'monday_group',\n\t\t\t\t'title' => 'Monday',\n\t\t\t\t'parent' => $panel_working_hours,\n\t\t\t\t'description' => 'Working hours for Monday'\n\t\t\t));\n\n\t\t\t$monday_row = bridge_qode_add_admin_row(array(\n\t\t\t\t'name' => 'monday_row',\n\t\t\t\t'parent' => $monday_group\n\t\t\t));\n\n\t\t\tbridge_qode_add_admin_field(array(\n\t\t\t\t'name' => 'wh_monday_from',\n\t\t\t\t'type' => 'textsimple',\n\t\t\t\t'label' => 'From',\n\t\t\t\t'parent' => $monday_row\n\t\t\t));\n\n\t\t\tbridge_qode_add_admin_field(array(\n\t\t\t\t'name' => 'wh_monday_to',\n\t\t\t\t'type' => 'textsimple',\n\t\t\t\t'label' => 'To',\n\t\t\t\t'parent' => $monday_row\n\t\t\t));\n\t\t\tbridge_qode_add_admin_field(array(\n\t\t\t\t'name' => 'wh_monday_closed',\n\t\t\t\t'type' => 'yesnosimple',\n\t\t\t\t'default_value' => 'no',\n\t\t\t\t'label' => esc_html__('Closed', 'qode-restaurant'),\n\t\t\t\t'parent' => $monday_row,\n\t\t\t));\n\t\t\tbridge_qode_add_admin_field(array(\n\t\t\t\t'name' => 'wh_monday_description',\n\t\t\t\t'type' => 'textsimple',\n\t\t\t\t'label' => esc_html__('Description', 'qode-restaurant'),\n\t\t\t\t'parent' => $monday_row\n\t\t\t));\n\t\t\t$tuesday_group = bridge_qode_add_admin_group(array(\n\t\t\t\t'name' => 'tuesday_group',\n\t\t\t\t'title' => 'Tuesday',\n\t\t\t\t'parent' => $panel_working_hours,\n\t\t\t\t'description' => 'Working hours for Tuesday'\n\t\t\t));\n\n\t\t\t$tuesday_row = bridge_qode_add_admin_row(array(\n\t\t\t\t'name' => 'tuesday_row',\n\t\t\t\t'parent' => $tuesday_group\n\t\t\t));\n\n\t\t\tbridge_qode_add_admin_field(array(\n\t\t\t\t'name' => 'wh_tuesday_from',\n\t\t\t\t'type' => 'textsimple',\n\t\t\t\t'label' => 'From',\n\t\t\t\t'parent' => $tuesday_row\n\t\t\t));\n\n\t\t\tbridge_qode_add_admin_field(array(\n\t\t\t\t'name' => 'wh_tuesday_to',\n\t\t\t\t'type' => 'textsimple',\n\t\t\t\t'label' => 'To',\n\t\t\t\t'parent' => $tuesday_row\n\t\t\t));\n\t\t\tbridge_qode_add_admin_field(array(\n\t\t\t\t'name' => 'wh_tuesday_closed',\n\t\t\t\t'type' => 'yesnosimple',\n\t\t\t\t'default_value' => 'no',\n\t\t\t\t'label' => esc_html__('Closed', 'qode-restaurant'),\n\t\t\t\t'parent' => $tuesday_row,\n\t\t\t));\n\t\t\tbridge_qode_add_admin_field(array(\n\t\t\t\t'name' => 'wh_tuesday_description',\n\t\t\t\t'type' => 'textsimple',\n\t\t\t\t'label' => esc_html__('Description', 'qode-restaurant'),\n\t\t\t\t'parent' => $tuesday_row\n\t\t\t));\n\n\t\t\t$wednesday_group = bridge_qode_add_admin_group(array(\n\t\t\t\t'name' => 'wednesday_group',\n\t\t\t\t'title' => 'Wednesday',\n\t\t\t\t'parent' => $panel_working_hours,\n\t\t\t\t'description' => 'Working hours for Wednesday'\n\t\t\t));\n\n\t\t\t$wednesday_row = bridge_qode_add_admin_row(array(\n\t\t\t\t'name' => 'wednesday_row',\n\t\t\t\t'parent' => $wednesday_group\n\t\t\t));\n\n\t\t\tbridge_qode_add_admin_field(array(\n\t\t\t\t'name' => 'wh_wednesday_from',\n\t\t\t\t'type' => 'textsimple',\n\t\t\t\t'label' => 'From',\n\t\t\t\t'parent' => $wednesday_row\n\t\t\t));\n\n\t\t\tbridge_qode_add_admin_field(array(\n\t\t\t\t'name' => 'wh_wednesday_to',\n\t\t\t\t'type' => 'textsimple',\n\t\t\t\t'label' => 'To',\n\t\t\t\t'parent' => $wednesday_row\n\t\t\t));\n\t\t\tbridge_qode_add_admin_field(array(\n\t\t\t\t'name' => 'wh_wednesday_closed',\n\t\t\t\t'type' => 'yesnosimple',\n\t\t\t\t'default_value' => 'no',\n\t\t\t\t'label' => esc_html__('Closed', 'qode-restaurant'),\n\t\t\t\t'parent' => $wednesday_row,\n\t\t\t));\n\t\t\tbridge_qode_add_admin_field(array(\n\t\t\t\t'name' => 'wh_wednesday_description',\n\t\t\t\t'type' => 'textsimple',\n\t\t\t\t'label' => esc_html__('Description', 'qode-restaurant'),\n\t\t\t\t'parent' => $wednesday_row\n\t\t\t));\n\n\t\t\t$thursday_group = bridge_qode_add_admin_group(array(\n\t\t\t\t'name' => 'thursday_group',\n\t\t\t\t'title' => 'Thursday',\n\t\t\t\t'parent' => $panel_working_hours,\n\t\t\t\t'description' => 'Working hours for Thursday'\n\t\t\t));\n\n\t\t\t$thursday_row = bridge_qode_add_admin_row(array(\n\t\t\t\t'name' => 'thursday_row',\n\t\t\t\t'parent' => $thursday_group\n\t\t\t));\n\n\t\t\tbridge_qode_add_admin_field(array(\n\t\t\t\t'name' => 'wh_thursday_from',\n\t\t\t\t'type' => 'textsimple',\n\t\t\t\t'label' => 'From',\n\t\t\t\t'parent' => $thursday_row\n\t\t\t));\n\n\t\t\tbridge_qode_add_admin_field(array(\n\t\t\t\t'name' => 'wh_thursday_to',\n\t\t\t\t'type' => 'textsimple',\n\t\t\t\t'label' => 'To',\n\t\t\t\t'parent' => $thursday_row\n\t\t\t));\n\t\t\tbridge_qode_add_admin_field(array(\n\t\t\t\t'name' => 'wh_thursday_closed',\n\t\t\t\t'type' => 'yesnosimple',\n\t\t\t\t'default_value' => 'no',\n\t\t\t\t'label' => esc_html__('Closed', 'qode-restaurant'),\n\t\t\t\t'parent' => $thursday_row,\n\t\t\t));\n\t\t\tbridge_qode_add_admin_field(array(\n\t\t\t\t'name' => 'wh_thursday_description',\n\t\t\t\t'type' => 'textsimple',\n\t\t\t\t'label' => esc_html__('Description', 'qode-restaurant'),\n\t\t\t\t'parent' => $thursday_row\n\t\t\t));\n\n\t\t\t$friday_group = bridge_qode_add_admin_group(array(\n\t\t\t\t'name' => 'friday_group',\n\t\t\t\t'title' => 'Friday',\n\t\t\t\t'parent' => $panel_working_hours,\n\t\t\t\t'description' => 'Working hours for Friday'\n\t\t\t));\n\n\t\t\t$friday_row = bridge_qode_add_admin_row(array(\n\t\t\t\t'name' => 'friday_row',\n\t\t\t\t'parent' => $friday_group\n\t\t\t));\n\n\t\t\tbridge_qode_add_admin_field(array(\n\t\t\t\t'name' => 'wh_friday_from',\n\t\t\t\t'type' => 'textsimple',\n\t\t\t\t'label' => 'From',\n\t\t\t\t'parent' => $friday_row\n\t\t\t));\n\n\t\t\tbridge_qode_add_admin_field(array(\n\t\t\t\t'name' => 'wh_friday_to',\n\t\t\t\t'type' => 'textsimple',\n\t\t\t\t'label' => 'To',\n\t\t\t\t'parent' => $friday_row\n\t\t\t));\n\n\t\t\tbridge_qode_add_admin_field(array(\n\t\t\t\t'name' => 'wh_friday_closed',\n\t\t\t\t'type' => 'yesnosimple',\n\t\t\t\t'default_value' => 'no',\n\t\t\t\t'label' => esc_html__('Closed', 'qode-restaurant'),\n\t\t\t\t'parent' => $friday_row,\n\t\t\t));\n\n\t\t\tbridge_qode_add_admin_field(array(\n\t\t\t\t'name' => 'wh_friday_description',\n\t\t\t\t'type' => 'textsimple',\n\t\t\t\t'label' => esc_html__('Description', 'qode-restaurant'),\n\t\t\t\t'parent' => $friday_row\n\t\t\t));\n\n\t\t\t$saturday_group = bridge_qode_add_admin_group(array(\n\t\t\t\t'name' => 'saturday_group',\n\t\t\t\t'title' => 'Saturday',\n\t\t\t\t'parent' => $panel_working_hours,\n\t\t\t\t'description' => 'Working hours for Saturday'\n\t\t\t));\n\n\t\t\t$saturday_row = bridge_qode_add_admin_row(array(\n\t\t\t\t'name' => 'saturday_row',\n\t\t\t\t'parent' => $saturday_group\n\t\t\t));\n\n\t\t\tbridge_qode_add_admin_field(array(\n\t\t\t\t'name' => 'wh_saturday_from',\n\t\t\t\t'type' => 'textsimple',\n\t\t\t\t'label' => 'From',\n\t\t\t\t'parent' => $saturday_row\n\t\t\t));\n\n\t\t\tbridge_qode_add_admin_field(array(\n\t\t\t\t'name' => 'wh_saturday_to',\n\t\t\t\t'type' => 'textsimple',\n\t\t\t\t'label' => 'To',\n\t\t\t\t'parent' => $saturday_row\n\t\t\t));\n\n\t\t\tbridge_qode_add_admin_field(array(\n\t\t\t\t'name' => 'wh_saturday_closed',\n\t\t\t\t'type' => 'yesnosimple',\n\t\t\t\t'default_value' => 'no',\n\t\t\t\t'label' => esc_html__('Closed', 'qode-restaurant'),\n\t\t\t\t'parent' => $saturday_row,\n\t\t\t));\n\n\t\t\tbridge_qode_add_admin_field(array(\n\t\t\t\t'name' => 'wh_saturday_description',\n\t\t\t\t'type' => 'textsimple',\n\t\t\t\t'label' => esc_html__('Description', 'qode-restaurant'),\n\t\t\t\t'parent' => $saturday_row\n\t\t\t));\n\n\t\t\t$sunday_group = bridge_qode_add_admin_group(array(\n\t\t\t\t'name' => 'sunday_group',\n\t\t\t\t'title' => 'Sunday',\n\t\t\t\t'parent' => $panel_working_hours,\n\t\t\t\t'description' => 'Working hours for Sunday'\n\t\t\t));\n\n\t\t\t$sunday_row = bridge_qode_add_admin_row(array(\n\t\t\t\t'name' => 'sunday_row',\n\t\t\t\t'parent' => $sunday_group\n\t\t\t));\n\n\t\t\tbridge_qode_add_admin_field(array(\n\t\t\t\t'name' => 'wh_sunday_from',\n\t\t\t\t'type' => 'textsimple',\n\t\t\t\t'label' => 'From',\n\t\t\t\t'parent' => $sunday_row\n\t\t\t));\n\n\t\t\tbridge_qode_add_admin_field(array(\n\t\t\t\t'name' => 'wh_sunday_to',\n\t\t\t\t'type' => 'textsimple',\n\t\t\t\t'label' => 'To',\n\t\t\t\t'parent' => $sunday_row\n\t\t\t));\n\n\t\t\tbridge_qode_add_admin_field(array(\n\t\t\t\t'name' => 'wh_sunday_closed',\n\t\t\t\t'type' => 'yesnosimple',\n\t\t\t\t'default_value' => 'no',\n\t\t\t\t'label' => esc_html__('Closed', 'qode-restaurant'),\n\t\t\t\t'parent' => $sunday_row,\n\t\t\t));\n\n\t\t\tbridge_qode_add_admin_field(array(\n\t\t\t\t'name' => 'wh_sunday_description',\n\t\t\t\t'type' => 'textsimple',\n\t\t\t\t'label' => esc_html__('Description', 'qode-restaurant'),\n\t\t\t\t'parent' => $sunday_row\n\t\t\t));\n\t\t}",
"public function getIcon() {}",
"public function menu_icon() {\n\n\t\t$menu_cap = apply_filters( 'wpforms_manage_cap', 'manage_options' );\n\n\t\tif ( ! current_user_can( $menu_cap ) ) {\n\t\t\treturn;\n\t\t}\n\t\t?>\n\t\t\n\t\t<?php\n\t}"
] | [
"0.71284056",
"0.6972551",
"0.65028185",
"0.64583737",
"0.64006513",
"0.6279775",
"0.6257246",
"0.6183525",
"0.6058578",
"0.59257984",
"0.591534",
"0.5907242",
"0.5782717",
"0.5757315",
"0.5739973",
"0.5739973",
"0.5712507",
"0.5704054",
"0.5703579",
"0.56878567",
"0.56815463",
"0.56704557",
"0.5652891",
"0.5643253",
"0.5636403",
"0.5636403",
"0.5636403",
"0.55813193",
"0.5577501",
"0.5571936"
] | 0.7479961 | 0 |
Adds a minus clause | public function minus(Query $query){
$this->links[] = array(
'type' => 'MINUS',
'query' => $query
);
return $this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static public function neg($op1)\n {\n return new Node\\Math('-', [$op1]);\n }",
"public function isNegative();",
"public static function subtract($a = nil, $b = nil)\n {\n return \\phln\\math\\subtract($a, $b);\n }",
"public function subtract($a, $b) {\n\t\techo $a - $b;\n\t}",
"public function __construct(\\PhpParser\\Node\\Expr\\AssignOp\\Minus $statement)\n {\n $this->signal = '-';\n parent::__construct($statement);\n }",
"final public function dispatchMinus(Minus $minus)\n {\n $this->overrideableDispatchMinus($minus);\n }",
"public function subtract(Money $subtrahend);",
"public function includeNegative($set = true)\n {\n $this->includeNegative = $set;\n }",
"public function subtract(Subtraction $other)\n {\n if (!$other instanceof static) {\n throw new \\InvalidArgumentException('Only non complex numbers of the same type may be subtracted');\n }\n\n $newValue = clone $this;\n $newValue->value -= $other->value;\n\n return $newValue;\n }",
"public function minus($interval): self\n\t{\n\t\tif (is_numeric($interval)) {\n\t\t\t$interval .= ' seconds';\n\t\t}\n\n\t\t$dateTime = clone $this->dateTime;\n\t\t$dateTime->modify('-' . (string) $interval);\n\n\t\treturn new self($dateTime);\n\t}",
"public function isNegativeNumber($message)\n {\n\n $reg = \"/^-[1-9][0-9]*$/\"; // negetive number expression\n\n if(! preg_match($reg, \"{$this->value}\") and $this->checking) {\n $this->logError($this->key, $message);\n }\n\n return $this;\n\n }",
"public function subtract(PhysicalQuantity $quantity);",
"function negative(Complex $c1) {\n return complex(- $c1->getReal(), - $c1->getIm());\n}",
"public function negate()\n\t{\n\t\tif (key_exists($this->operator, self::REVERSE)) {\n\t\t\tif ($this->operator == self::XOR_OPERATOR) {\n\t\t\t\t$this->arguments = new Logical(self::XOR_OPERATOR, $this->arguments);\n\t\t\t}\n\t\t\telseif (in_array($this->operator, [self::AND_OPERATOR, self::OR_OPERATOR])) {\n\t\t\t\t$this->negateArguments();\n\t\t\t}\n\t\t\t$this->operator = self::REVERSE[$this->operator];\n\t\t}\n\t}",
"#[@test]\n public function subtraction() {\n $this->assertEquals(\n new AssignmentNode(['variable' => new VariableNode('a'), 'op' => '-=', 'expression' => new VariableNode('b')]),\n $this->optimize(new AssignmentNode([\n 'variable' => new VariableNode('a'), \n 'op' => '=', \n 'expression' => new BinaryOpNode(['lhs' => new VariableNode('a'), 'op' => '-', 'rhs' => new VariableNode('b')])\n ]))\n );\n }",
"public function subtract( Integer $integer ) {\n\t\treturn parent::subtract($integer);\n\t}",
"public function provideSubtractTest()\n\t{\n\t\treturn array(\n\t\t\tarray('0', '6', '-6'),\n\t\t\tarray('1', '1', '0'),\n\t\t\tarray('6', '3', '3'),\n\t\t\tarray('200', '250', '-50'),\n\t\t\tarray('10', '300', '-290'),\n\t\t\tarray('-1', '-1', '0'),\n\t\t\tarray('-5', '5', '-10'),\n\t\t\tarray('5', '-5', '10'),\n\t\t\tarray('0', '0', '0'),\n\t\t\tarray('5', '0', '5'),\n\t\t\tarray('5', '6', '-1'),\n\t\t\tarray(\n\t\t\t\t'2147483647',\n\t\t\t\t'9223372036854775808',\n\t\t\t\t'-9223372034707292161',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'18446744073709551618',\n\t\t\t\t '4000000000000',\n\t\t\t\t'18446740073709551618',\n\t\t\t),\n\t\t);\n\t}",
"public function abs($operand);",
"public function minus(Duration $duration): Duration\n {\n return $this->plus($duration->negated());\n }",
"public function testSubtraction() {\n \n $this->assertEquals( 0, $this->Calculation->calculate(['1','-','1']));\n $this->assertEquals(-1, $this->Calculation->calculate(['1','-','1', '-', '1']));\n $this->assertEquals( 0, $this->Calculation->calculate(['-1.5','-','-1.5']));\n $this->assertEquals( 0.05, $this->Calculation->calculate(['1','-','0.95']));\n\n }",
"public function not( $clause )\n {\n return \"!$clause\";\n }",
"public static function static_subtractExact($a = null, $b = null)\n {\n throw new NotImplementedException(__METHOD__);\n }",
"public function sub($leftOperand, $rightOperand);",
"public function _subtract($other) {\n\t\tif ($other instanceof SassString) {\n\t\t\tif ($other->hasUnits()) {\n\t\t\t\tthrow new SassStringException(\"Number is not unitless: $other\");\n\t\t\t}\n\t\t\t$this->value = substr($this->value, $other->value);\n\t\t}\n\t\telse {\n\t\t\t$this->value = str_replace($other->value, '', $this->value);\n\t\t}\n\t\treturn $this;\n\t}",
"function negate ($number)\n{\n return -1 * $number;\n}",
"function sub(Complex $c1, Complex $c2) {\n return add($c1, negative($c2));\n}",
"public function subtractDay($day)\n {\n $this->controlTimestamp();\n $this->timestamp = strtotime(\"-\".$day.\" day\", $this->timestamp);\n return $this;\n }",
"public static function negative($complex): Complex\n {\n $complex = Complex::validateComplexArgument($complex);\n\n return new Complex(\n -1 * $complex->getReal(),\n -1 * $complex->getImaginary(),\n $complex->getSuffix()\n );\n }",
"public function _add_having_no_value( $column_name, $operator ) {\n\t\t$conditions = \\is_array( $column_name ) ? $column_name : [ $column_name ];\n\t\t$result = $this;\n\t\tforeach ( $conditions as $column ) {\n\t\t\t$column = $this->_quote_identifier( $column );\n\t\t\t$result = $result->_add_having( \"{$column} {$operator}\" );\n\t\t}\n\n\t\treturn $result;\n\t}",
"public function isNotNegativeNumber($message)\n {\n\n $reg = \"/^-[1-9][0-9]*$/\"; // negetive number expression\n\n if(preg_match($reg, \"{$this->value}\") and $this->checking) { // match\n $this->logError($this->key, $message);\n }\n\n return $this;\n\n }"
] | [
"0.63539964",
"0.631006",
"0.6028777",
"0.5956926",
"0.5859218",
"0.5803621",
"0.57908",
"0.5749717",
"0.5668652",
"0.56627023",
"0.56616104",
"0.56426346",
"0.5593499",
"0.55471635",
"0.55463743",
"0.54982656",
"0.5448494",
"0.5372413",
"0.5342336",
"0.5320095",
"0.5306855",
"0.5263358",
"0.52389896",
"0.5231125",
"0.5215469",
"0.5209181",
"0.52026516",
"0.51884305",
"0.5167653",
"0.51329136"
] | 0.64199543 | 0 |
Setting the first result. | public function setFirstResult($first){
$this->firstResult = (int)$first;
return $this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function setFirstResult($firstResult)\n {\n $this->firstResult = $firstResult;\n }",
"public function setFirstResult($firstResult)\n {\n $this->firstResult = $firstResult;\n }",
"public function setFirstResult($firstResult)\n {\n $this->firstResult = $firstResult;\n\n return $this;\n }",
"public function setResult($result)\n\t{\n\t\t// Allow only a set of results\n\t\tif ( !in_array($result, array(1, 0, -1)))\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\t$this->result = $result;\n\t}",
"public function first()\n {\n $this->assert = Result::FIRST;\n return $this;\n }",
"public function getFirstResult()\n {\n return $this->firstResult;\n }",
"public function getFirstResult()\n {\n return $this->firstResult;\n }",
"public function setIteratorFirstRow () {}",
"public function setFirstIterator () {}",
"public function get_first_result() {\n return (!empty($this->_result)) ? $this->_result[0] : (object) ['error' => 'No results found!'];\n }",
"function first($defaultResult = null);",
"public function first(){\r\n return reset($this->_results);\r\n }",
"public function nextResult();",
"public function setResult( $value ) {\r\n\t\t$this->result = $value;\r\n\t}",
"public function setResult(Result $result);",
"public function setFirstIterator() {\n\t}",
"function one($defaultResult = null);",
"public function first(){\n return $this->result()[0];\n}",
"public function first() {\n $this->index = 0;\n }",
"public function getNextResult();",
"protected function getFirstResultParam()\n {\n return $this->firstResultParam;\n }",
"public function first(){\n $return = $this->limit(0,1)->getData();\n $this->reInit();\n return $return->fetch();\n }",
"public function setResult(IterationResult $result)\n {\n $this->result = $result;\n }",
"public function executeOne() {\n return head($this->execute());\n }",
"public function setResult($result = null)\n {\n $this->result = $result;\n\n return $this;\n }",
"public function first(){\n\t\treturn $this->results()[0];\n\t}",
"public function set_result($object = stdClass) \n\t{\n\t\t$this->result_object = $object;\n\t\treturn $this; \n\t}",
"public function single()\n {\n $this->assert = Result::SINGLE;\n return $this;\n }",
"public function setResult($result)\n {\n $this->result = $result;\n return $this;\n }",
"public function setResult($result)\n {\n $this->result = $result;\n return $this;\n }"
] | [
"0.7719036",
"0.7719036",
"0.71910816",
"0.68920875",
"0.6868418",
"0.6773792",
"0.6773792",
"0.65811074",
"0.64302206",
"0.64255005",
"0.6395457",
"0.63841397",
"0.63571507",
"0.6315354",
"0.6303647",
"0.6274291",
"0.62668693",
"0.6205127",
"0.61338216",
"0.60817856",
"0.6078627",
"0.6041871",
"0.5920843",
"0.58802974",
"0.5873047",
"0.58570004",
"0.58084536",
"0.57854337",
"0.5781241",
"0.5781241"
] | 0.8131054 | 0 |
function normalizes array of objectID > value: array is expected to be sorted by value decs function divides each value by the first one, so results is in [0,1] interval | private function normalize($array, $first=null){
$result = array();
// print_r($array);
if(is_array($array)){
foreach($array as $object=>$value){
if($first == null){
$first = $value;
if($first == 0){
$first=1;
}
}
$newval = $value / $first;
if($newval <= 0){
$newval = 0;
}
$result[$object] = $newval;
}
}
return $result;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"abstract protected function _normalizeArray($value);",
"abstract protected function _normalizeArray($value);",
"abstract protected function _normalizeArray($value);",
"function sort(array $array): array\n {\n if (\\count($array) > 1) {\n\n // Find out the middle of the current data set and split it there to obtain to halfs\n $array_middle = \\round(\\count($array) / 2, 0, PHP_ROUND_HALF_DOWN);\n // and now for some recursive magic\n $array_part1 = $this->sort(\\array_slice($array, 0, $array_middle));\n $array_part2 = $this->sort(\\array_slice($array, $array_middle, \\count($array)));\n\n $this->merge($array, $array_part1, $array_part2);\n }\n\n return $array;\n }",
"function array_divide($array)\n {\n return array(array_keys($array), array_values($array));\n }",
"function array_divide($array)\n {\n return array(array_keys($array), array_values($array));\n }",
"function clean_up_array(\n $array\n ){\n foreach($array as $base_val){\n $counter = 0;\n foreach($array as $mask_key => $mask_val){\n if($base_val == $mask_val){\n ++$counter;\n if($counter > 1){\n unset($array[$mask_key]);\n }\n }\n }\n }\n \n return $array;\n }",
"function array_divide($array)\n{\n\treturn array(array_keys($array), array_values($array));\n}",
"public static function normalize($array)\n {\n // $array = static::transformEntriesToTrue($array);\n $array = static::dot($array);\n $array = static::collect($array);\n\n return $array;\n }",
"function scale(array $array, $min, $max): array {\n $lowest = min($array);\n $highest = max($array);\n\n return array_map(function ($elem) use ($lowest, $highest, $min, $max) {\n return ($max - $min) * ($elem - $lowest) / ($highest - $lowest) + $min;\n }, $array);\n}",
"function normalize($arr, $times, $min, $max, $allow_null = true) {\n $count = count($arr);\n $last_non_null = 0;\n $ret = [];\n $i = 0;\n foreach ($times as $time) {\n if ($i === $count) {\n $ret[] = ($allow_null) ? null : $last_non_null;\n continue;\n }\n $float = floatval($arr[$i]['value']);\n if ($arr[$i]['recorded'] == $time) { // found an exact match\n if ($allow_null) {\n $ret[] = ($arr[$i]['value'] === null) ? null : $float;\n } else {\n if ($arr[$i]['value'] === null) {\n $ret[] = $last_non_null;\n } else {\n $ret[] = $float;\n $last_non_null = $float;\n }\n }\n if ($arr[$i]['value'] !== null) {\n if ($float > $max) {\n $max = $float;\n } if ($float < $min) {\n $min = $float;\n }\n }\n $i++;\n } elseif ($arr[$i]['recorded'] < $time) { // the value we want (indicated by $time) is at a higher index in the $arr\n // echo \"Couldnt find match for {$time} (iteration < time @ {$arr[$i]['recorded']})\\n\";die;\n while ($arr[$i]['recorded'] < $time) { // try to catch up\n if ($i === $count-1) {\n break;\n }\n $i++;\n }\n if ($arr[$i]['recorded'] == $time) { // if we did find another point in the array that matches $time\n if ($arr[$i]['value'] === null) {\n $ret[] = ($allow_null) ? null : $last_non_null;\n } else {\n $ret[] = $arr[$i]['value'];\n if ($float > $max) {\n $max = $float;\n } if ($float < $min) {\n $min = $float;\n }\n }\n $i++;\n } else { // if the there's no $arr[$i]['value'] that has a corresponding $arr[$i]['recorded'] == $time\n $ret[] = ($allow_null) ? null : $last_non_null; \n }\n } else { // the value we want is at a lower index of the array, meaning it doesn't exist\n // echo \"Couldnt find match for {$time} (iteration > time @ {$arr[$i]['recorded']})\\n\";\n $ret[] = ($allow_null) ? null : $last_non_null;\n }\n }\n return [$ret, $min, $max];\n}",
"function sortInsert(array $array): array {\n // Count of all objects\n $length = count($array);\n for ($i = 0; $i < $length - 1; $i++) {\n // Get next object key\n $nextValueKey = $i + 1;\n // Get next object value in buffer\n $nextValue = $array[$nextValueKey];\n\n //Examine all previous objects\n for ($y = 0; $y < $nextValueKey; $y++) {\n if ($array[$nextValueKey] < $array[$y]) {\n for ($k = $nextValueKey - 1; $k >= $y; $k--) {\n $array[$k + 1] = $array[$k];\n }\n $array[$y] = $nextValue;\n }\n }\n }\n\n return $array;\n}",
"function ArrayNormalize($array) {\n $result = [];\n foreach ($array as $key => $items) {\n foreach ($items as $arr => $value) {\n $result[$value] = $key;\n }\n }\n return $result;\n}",
"function array_high_low_1d($arr) {\n\n\tif(is_array($arr) && count($arr) > 0) {\n\n\t\t$return_arr = array();\n\t\t$return_arr['high'] = 0;\n\t\tforeach($arr as $value) {\n\t\t\tif($value > $high_num)\n\t\t\t\t$return_arr['high'] = $value;\n\t\t\t}\n\t\t\n\t\t$return_arr['low'] = $return_arr['high'];\n\t\tforeach($arr as $value) {\n\t\tif($value < $return_arr['low']) \n\t\t\t$return_arr['low'] = $value;\n\t\t\t}\n\t\t\n\t\treturn $return_arr;\n\t\t}\n\t\n\tdebug_text_print(\"passed value not an array for array2d_sort()\");\n\treturn 0;\n\t}",
"public function callNormalizeArray(array $array): array\n {\n return $this->normalizeArray($array);\n }",
"public static function Normalise($src, $columnName,$toMin = 0,$toMax = 100)\n {\n\n $unique = array();\n\n foreach ($src as $key => $value)\n $unique[$value[$columnName]] = $unique[$value[$columnName]] + 1;\n\n ksort($unique); // we can get min and max this way\n\n $fromMin = util::first_key($unique);\n $fromMax = util::last_key($unique);\n\n\n $fromRange = $fromMax - $fromMin;\n $toRange = $toMax - $toMin;\n\n\n $conversion = array();\n foreach ($unique as $old_value => $value_count)\n $conversion[$old_value] = (( ($old_value - $fromMin) / $fromRange) * $toRange) + $toMin ; // store old value with new normalise value\n\n\n $result = array();\n foreach ($src as $rowKey => $rowValue)\n {\n foreach ($rowValue as $cellKey => $cellValue)\n {\n $result[$rowKey][$cellKey] = $cellValue;\n\n // converst this value to it's normalised form\n if ($cellKey == $columnName)\n $result[$rowKey][$columnName] = $conversion[$cellValue];\n\n }\n\n }\n\n return $result;\n\n }",
"function min (array $values) {}",
"function sapXepMang($arr){\n\tforeach($arr as $key => $val){\n\t\tforeach($arr as $key2 => $item){\n\t\t\tif($arr[$key] > $arr[$key2]){\n\t\t\t\t$tg = $arr[$key];\n\t\t\t\t$arr[$key] = $arr[$key2];\n\t\t\t\t$arr[$key2] = $tg;\n\t\t\t}\n\t\t}\n\t}\n\treturn $arr;\n}",
"function array_round(array $array): array\n{\n $keys = array_keys($array);\n\n $values = array_map(function ($value) {\n if (is_numeric($value)) {\n return round($value);\n }\n\n return $value;\n }, $array);\n\n return array_combine($keys, $values);\n}",
"static function ditchFirstNumericLevel($Array){\n \n foreach($Array as $useless_key=>$Values)\n foreach($Values as $key=>$SubValues)\n $NewArray[]=$SubValues;\n\n return $NewArray;\n }",
"private static function factors($value) {\n $startVal = floor(sqrt($value));\n $factorArray = [];\n\n for ($i = $startVal; $i > 1; --$i) {\n if (($value % $i) == 0) {\n $factorArray = array_merge($factorArray, self::factors($value / $i));\n $factorArray = array_merge($factorArray, self::factors($i));\n\n if ($i <= sqrt($value)) {\n break;\n }\n }\n }\n\n if (!empty($factorArray)) {\n rsort($factorArray);\n\n return $factorArray;\n }\n\n return [(int) $value];\n }",
"public function normalize(object $object): array;",
"function ArrayToDynamicArrayNumbersWithOptimalSize(&$array){\n $c = count($array);\n $n = (log($c) - 1.0)/log(3.0/2.0);\n $newCapacity = floor($n) + 1.0;\n\n $da = CreateDynamicArrayNumbersWithInitialCapacity($newCapacity);\n\n for($i = 0.0; $i < count($array); $i = $i + 1.0){\n $da->array[$i] = $array[$i];\n }\n\n return $da;\n}",
"function CleanUpArrayOfInt($array)\n{\n $result = array();\n if (isNullOrEmptyArray($array)) {\n return $result;\n }\n reset($array);\n foreach ($array as $key => $value) {\n if (isInteger($value)) {\n $result[] = $value;\n }\n }\n reset($array);\n\n return $result;\n}",
"function getEncodesObjectIds($array)\n{\n if (!empty($array)) {\n foreach ($array as $key => $value) {\n if (is_array($value)) {\n $array[$key] = getEncodesObjectIds($value);\n } else if(is_object($value)){\n\n $array[$key] = (object)getEncodesObjectIds((array)$value);\n } else {\n $array[$key] = is_null($array[$key]) ? \"\" : $array[$key];\n //encodes all key if id found in key\n if (stristr($key, \"id\") && $key != \"validat\") {\n $array[$key] = encodes($value);\n }\n }\n }\n }\n return $array;\n}",
"function removeSmallest(array $array): array\n{\n if (count($array)) {\n $copy = $array;\n unset($copy[array_search(min($array), $array)]);\n return $copy;\n }\n\n return $array;\n}",
"function distribution($array)\r\n{\r\n $noDups = removeDups($array);\r\n sort($noDups);\r\n $distArray = array();\r\n foreach ($noDups as $noDupVal)\r\n {\r\n $dupCount = 0;\r\n foreach ($array as $arrayVal)\r\n {\r\n if($arrayVal == $noDupVal)\r\n {\r\n $dupCount ++;\r\n }\r\n }\r\n $distArray[$noDupVal] = $dupCount;\r\n }\r\n return $distArray;\r\n}",
"public static function divide($array)\n {\n return [\n array_keys($array),\n array_values($array),\n ];\n }",
"public static function divide($array)\n {\n return [array_keys($array), array_values($array)];\n }",
"function get_max_and_min($array){\n\t$max = $array[0];\n\t$min = $array[0];\n \n\tfor($i = 0; $i < count($array); $i++) {\n\t\tif($array[$i]>$max)\n\t\t{\n\t\t\t$max = $array[$i];\n\t\t}\n\t\telseif($array[$i] < $min)\n\t\t{\n\t\t\t$min = $array[$i];\n\t\t}\n\t}\n\t$new_array = array(\"max\" => $max, \"min\" => $min);\n\tvar_dump($new_array);\n}"
] | [
"0.55453414",
"0.55453414",
"0.55453414",
"0.5272571",
"0.5236643",
"0.5236643",
"0.52066237",
"0.52046245",
"0.5137414",
"0.51277596",
"0.50641626",
"0.504633",
"0.49956426",
"0.4986724",
"0.4890873",
"0.4883006",
"0.4854216",
"0.48476025",
"0.48375285",
"0.47927183",
"0.47120073",
"0.47106546",
"0.46828866",
"0.466902",
"0.4658232",
"0.4649512",
"0.4633986",
"0.46211",
"0.4620708",
"0.4620307"
] | 0.65794504 | 0 |
creates class type Query (parameters, if any is expected to be stored as variables by other methods before createQuery() is called) | private function createQuery() {
$this->query = new Query($this->sql, $this->attributesArray);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"abstract protected function constructQuery();",
"public function createQuery()\n\t{\n\t}",
"public function createQuery()\n\t{\n\t}",
"public function createQuery() {\n\t\t// TODO: Implement createQuery() method.\n\t}",
"abstract public function newQuery();",
"abstract public function newQuery();",
"protected function createQueryObject()\n {\n $this->query = Zig_Model_Query::create();\n }",
"public static function query()\n {\n return (new static(...func_get_args()))->newQuery();\n }",
"public function createQuery(): Query\n {\n return new Query($this->measurementManager, $this->className);\n }",
"public function build_query();",
"public function createQuery() {\n $queryArr = array();\n\n $this->addSelect($queryArr);\n $this->addFrom($queryArr);\n $this->addWhere($queryArr);\n $this->addGroupBy($queryArr);\n $this->addSortBy($queryArr);\n $this->addHaving($queryArr);\n\n $this->query = implode(' ', $queryArr) . ';';\n }",
"function createSimpleQuery() {\n \n \n $t = new QuerySimple($_GET['query']);\n $this->queryObj = $t;\n \n }",
"public function getQueryClass() {\n\t\t$class = self::queryClassName();\n\t\treturn $class::create();\n\t}",
"function query($class)\r\n{\r\n\t$query = new Query($class);\r\n\r\n\tif (func_num_args() > 1)\r\n\t{\r\n\t\t$idx = 1;\r\n\t\t\r\n\t\tif (is_object(func_get_arg(1)))\r\n\t\t{\r\n\t\t\t$query->filter($filter);\r\n\t\t\t++$idx;\r\n\t\t}\r\n\t\t\r\n\t\tif (is_array(func_get_arg($idx)))\r\n\t\t{\r\n\t\t\t$query->params(func_get_arg($idx++));\r\n\t\t}\r\n\t\t\r\n\t\tif (func_num_args() > $idx)\r\n\t\t{\r\n\t\t\t$query->constraints(func_get_arg($idx));\r\n\t\t\t\r\n\t\t\tif (func_num_args() == $idx + 3)\r\n\t\t\t{\r\n\t\t\t\t$query->page(func_get_arg($idx + 1), func_get_arg($idx + 2));\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\t\r\n\treturn $query->execute();\r\n}",
"static function create($class, $constraints = \"\")\r\n\t{\r\n\t\treturn new Query($class, $constraints);\r\n\t}",
"protected function createQuery()\n {\n return \\PropelQuery::from($this->modelClass);\n }",
"public function generateQuery();",
"public function newQuery() : QueryBuilder;",
"public function getAsClasses($query, array $parameters = [], $class, array $constructorParameters = []);",
"public function getOneClass($query, array $parameters = [], $class, array $constructorParameters = []);",
"public function newModelQuery();",
"public function createQuery($phql){ }",
"public function query(): Query\n {\n return new Query($this);\n }",
"protected abstract function createQueryBuilder();",
"public function createQuery(string $phql): QueryInterface\n {\n }",
"public function query(): Query\n {\n return $this->make(Query::class);\n }",
"protected function baseQuery()\n {\n return $this->classMapper->createInstance($this->name)->newQuery();\n }",
"public function getQuery() {\r\n\t\t$rec = new $this->className();\r\n\t\treturn $rec->buildFetchQuery($this->queryData);\r\n\t}",
"public function query()\n {\n \t$class = Config::get('modeeling.database.builder.builder', Builder::class);\n return new $class( $this, $this->getQueryGrammar(), $this->getPostProcessor() );\n }",
"public function query ($query_etc);"
] | [
"0.7929051",
"0.772388",
"0.772388",
"0.7559981",
"0.746545",
"0.746545",
"0.74200565",
"0.73563844",
"0.7312514",
"0.7270798",
"0.7134269",
"0.7129673",
"0.70797914",
"0.68990004",
"0.6852006",
"0.6846515",
"0.6842145",
"0.6816235",
"0.67749345",
"0.67714316",
"0.67441505",
"0.6685803",
"0.66811675",
"0.6669522",
"0.65219784",
"0.64819044",
"0.64801466",
"0.6473923",
"0.64561456",
"0.6427641"
] | 0.7912829 | 1 |
returns response for the given query | public function getQueryResponse() {
return $this->queryResponse;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private function _handle_query()\n\t{\n\t\t$settings = array_merge($this->_api_settings, $this->_api_method);\n\t\t$merged = array_merge($settings, $this->_request);\n\t\t//var_dump($merged);exit;\n\t\t$request = $this->payments->filter_values($merged);\t\n\t\t//var_dump($request);exit;\n\t\t$this->_request = http_build_query($request);\n\t\t$this->_http_query = $this->_api_endpoint.$this->_request;\n\t\t\n\t\t//var_dump($this->_http_query);exit;\n\t\t$request = $this->payments->gateway_request($this->_http_query);\t\n\t\t\n\t\t$response = $this->_parse_response($request);\n\t\t\n\t\treturn $response;\n\t}",
"public function query($query = ''){\n\t\t$response = array(\n\t\t\t'success' \t=> FALSE,\n\t\t\t'query' \t=> $query,\n\t\t\t'elapsed' \t=> microtime(TRUE)\t//for benchmarking\n\t\t);\n\t\t\n\t\ttry {\n\t\t\tif (empty($query)){\n\t\t\t\tthrow new Exception(__METHOD__.' query not supplied');\t\n\t\t\t}\n\t\t\t\n\t\t\t$url = $this->cnf['endpoints']['query'].\"?q=\".urlencode($query);\n\t\t\t$call = $this->_execute('GET', $url);\n\t\t\tif ($call){\n\t\t\t\tforeach($call as $key => $val){\n\t\t\t\t\t$response['result'] = $call;\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\tthrow new Exception(__METHOD__.' execute call failed');\t\n\t\t\t}\n\t\t\t\n\t\t\t$response['success'] = TRUE;\n\t\t}catch(Exception $e){\n\t\t\t$response['error'] = $e->getMessage();\n\t\t}\n\t\t\n\t\t$response['elapsed'] = microtime(TRUE) - $response['elapsed'];\n\t\t\n\t\treturn $response;\n\t}",
"public static function middleware_get($query) {\n $graphQLquery = '{\"query\": \"query { ' . $query . ' } \"}';\n $response = (new Client)->request('post', 'https://umd-hub.herokuapp.com/graphql', [\n 'headers' => [\n 'Content-Type' => 'application/json',\n ],\n 'body' => $graphQLquery,\n ]);\n $result = Json::decode($response->getBody());\n return $result;\n }",
"public function query()\n {\n\n $schema = ExpressSchema::get();\n\n $body = json_decode(Request::getInstance()->getContent());\n\n $variables = ($body->variables?$body->variables:null);\n\n $result = \\GraphQL\\GraphQL::executeQuery($schema, $body->query, null, array(), $variables);\n\n $response = new JsonResponse($result);\n\n $response->send();\n\n }",
"public function get_response();",
"public function execute($query = null) {\n\n\t\tif (! empty($query)) {\n\t\t\t$this->setQuery($query);\n\t\t}\n\n\t\t$this->url = $this->baseUrl.'?q='.urlencode($this->query).\"&format=\".$this->format;\n\n\t\tif ($this->diagnostics) {\n\t\t\t$this->url .= '&diagnostics=true';\n\t\t}\n\t\tif (! empty($this->env)) {\n\t\t\t$this->url .= '&env='.urlencode($this->env);\n\t\t}\n\t\t\n\t\t$result = invoke($this->execute, array('url' => $this->url));\n\n\t\t$this->response = new Response($result, $this);\n\n\t\treturn $this;\n\t}",
"public function get($query)\n {\n return $this->call('/api/' . $this->getResource() . '/' . $query);\n }",
"public function query($query)\n {\n // Perform re-login if required.\n $this->checkLogin();\n\n // Make sure the query ends with ;\n $query = (strripos($query, ';') != strlen($query)-1)\n ? trim($query .= ';')\n : trim($query);\n\n $getdata = [\n 'operation' => 'query',\n 'sessionName' => $this->sessionName,\n 'query' => $query\n ];\n\n return $this->sendHttpRequest($getdata, 'GET');\n }",
"abstract public function getResponse();",
"function query() {}",
"function query() {}",
"public function lookup($query = '')\n {\n $this->Result = new Result();\n $this->Config = new Config($this->specialWhois, $this->customConfigFile);\n \n try {\n if ($query == '') {\n throw new NoQueryException('No lookup query given');\n }\n \n $this->prepare($query);\n \n if (isset($this->Query->ip)) {\n $config = $this->Config->get('iana');\n } else {\n if (isset($this->Query->tldGroup)) {\n $config = $this->Config->get($this->Query->tldGroup, $this->Query->idnTld);\n } else {\n $config = $this->Config->get($this->Query->asn);\n }\n \n if ($config['server'] == '' || $this->Query->domain == '') {\n $config = $this->Config->get('iana');\n }\n }\n \n $this->Config->setCurrent($config);\n $this->call();\n } catch (AbstractException $e) {\n if ($this->throwExceptions) {\n throw $e;\n }\n \n $this->Result->addItem('exception', $e->getMessage());\n $this->Result->addItem('rawdata', $this->rawdata);\n \n if (isset($this->Query)) {\n \n if (isset($this->Query->ip)) {\n $this->Result->addItem('name', $this->Query->ip);\n } else {\n $this->Result->addItem('name', $this->Query->fqdn);\n }\n } else {\n $this->Result->addItem('name', $query);\n }\n }\n \n // call cleanUp method\n $this->Result->cleanUp($this->Config->getCurrent(), $this->dateformat);\n \n // peparing output of Result by format\n switch ($this->format) {\n case 'json':\n return $this->Result->toJson();\n break;\n case 'serialize':\n return $this->Result->serialize();\n break;\n case 'array':\n return $this->Result->toArray();\n break;\n case 'xml':\n return $this->Result->toXml();\n break;\n default:\n return $this->Result;\n }\n }",
"public function query($query);",
"public function query($query);",
"public function query($query);",
"public function query($query);",
"public function query();",
"public function query();",
"public function query();",
"public function query();",
"public function get(string $query): ResponseInterface\n {\n return $this->request('get', $query);\n }",
"public function getResponse(): Response;",
"public function get($query): array;",
"public function searchByQuery($query){\n\t\t$data = $this->db->query($query);\n\t\t$response = \"\";\n\t\t//guardamos todos los registros en una variable\n\t\t$registros = $data->fetchall(PDO::FETCH_ASSOC);\n\n\t\t$cant_registros = count($registros);\n\n\t\t//hacemos que la funcion se adapte dependiendo de cuantos registros devuelve la consulta\n\n\t\tif($cant_registros > 1){\n\n\t\t\t\treturn $registros;\n\n\t\t}elseif($cant_registros == 1){\n\n\t\t\tforeach ($registros as $row) {\n\n\t\t\t\tfor($x=0;$x < $cant_registros;$x++){\n\t\t\t\t\t\t\n\t\t\t\t\t$response = $row;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t\treturn $response;\n\n\t\t}\n\n\t}",
"public function query() {}",
"public function getResponse() {}",
"public function searchByQueryOne($query)\n\t{\n\n\n\t\t$data = $this->db->query($query);\n\t\t$response = [];\n\t\t//guardamos todos los registros en una variable\n\t\t$registros = $data->fetch(PDO::FETCH_ASSOC);\n\t\t//FETCH_ASSOC devuelve el arreglo indexado por el nombre de la columna seguido del valor\n\t\t\t\n\t\tif($registros){\n\t\t\t$response = new $this;\n\n\t\t\tforeach ($registros as $key => $value) {\n\n\t\t\t\t $response->$key = $value;\n\t\t\t}\n\n\t\t\treturn $response;\n\n\t\t}else{\n\n\t\t\treturn false;\n\t\t}\n\n\t\t\n\t\t\n\t}",
"public function requestResponse ()\n {\n // include database and instantiate database obj\n include_once './config/database.php';\n $database = new Database();\n $db = $database->getConnection();\n\n /*\n * decides which file to include depending on \n * $this->object then will choose object's function \n * depending on $this->method\n */\n switch ($this->object)\n {\n case 'proposal-votes':\n return $this->proposalVotesResponse($db);\n break;\n case 'sabats':\n return $this->sabatsResponse($db);\n break;\n case 'login':\n return $this->loginResponse($db);\n break;\n case 'sabat-results':\n return $this->sabatResultsResponse($db);\n break;\n }\n }",
"public function search($query){\n \t// body\n \t$query = \"eminem\";\n \t$endpoint = \"https://deezerdevs-deezer.p.rapidapi.com/search?q=$query\";\n \t$headers = array(\n \t\t'X-RapidAPI-Host' => 'deezerdevs-deezer.p.rapidapi.com',\n \t\t'X-RapidAPI-Key' => 'd791aee083msh80400db9ca623b4p194c82jsn64602fd48536'\n \t);\n\n \t$ch = curl_init();\n curl_setopt($ch, CURLOPT_URL, $endpoint);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 200);\n curl_setopt($ch, CURLOPT_TIMEOUT, 200);\n curl_setopt($ch, CURLOPT_HEADER, $headers);\n $res = curl_exec($ch);\n $data = json_decode($res, true);\n\n return $res;\n }",
"public function getResponse();"
] | [
"0.68573475",
"0.66544783",
"0.6614525",
"0.648614",
"0.6480336",
"0.6432443",
"0.64269304",
"0.63892215",
"0.6349182",
"0.6320871",
"0.6320871",
"0.631047",
"0.6289018",
"0.6289018",
"0.6289018",
"0.6289018",
"0.622793",
"0.622793",
"0.622793",
"0.622793",
"0.6202237",
"0.62005526",
"0.619951",
"0.61598784",
"0.6146679",
"0.61258155",
"0.61125845",
"0.61044055",
"0.6103768",
"0.6101451"
] | 0.66821605 | 1 |
Set user context for Raven_Client. | public function setUserContext()
{
if ($this->userContext === null) {
return;
}
if (is_callable($this->userContext)) {
$this->userContext = call_user_func($this->userContext, $this->client);
}
$this->client->user_context($this->userContext);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function on_set_current_user()\n {\n $current_user = wp_get_current_user();\n\n // Default user context to anonymous.\n $user_context = [\n 'id' => 0,\n 'name' => 'anonymous'\n ];\n\n // Determine whether the user is logged in assign their details.\n if ($current_user instanceof \\WP_User) {\n if ($current_user->exists()) {\n $user_context = [\n 'id' => $current_user->ID,\n 'name' => $current_user->display_name,\n 'email' => $current_user->user_email,\n 'username' => $current_user->user_login\n ];\n }\n }\n\n // Filter the user context so that plugins that manage users on their\n // own can provide alternate user context. ie. members plugin\n if (has_filter('wp_sentry_user_context')) {\n $user_context = apply_filters(\n 'wp_sentry_user_context',\n $user_context\n );\n }\n\n // Finally assign the user context to the client.\n $this->set_user_context($user_context);\n }",
"public function on_set_current_user(): void {\n\t\t$this->get_client()->configureScope( function ( Scope $scope ) {\n\t\t\t$scope->setUser( $this->get_current_user_info() );\n\t\t} );\n\t}",
"private function setUser()\n {\n $this->cas_user = phpCAS::getUser();\n Session::put('cas_user', $this->cas_user);\n }",
"public function set_user()\n\t{\n\n\t}",
"public function setContext(?Context $context): void\n {\n $this->assertInitialized();\n\n $this->authz = $this->authz->inContextOf($context);\n $this->updateSession();\n }",
"public function set_user_context(array $data)\n {\n $this->context['user'] = $data;\n }",
"public function updateUserContext(UserContext $context);",
"public abstract function getUserContext();",
"protected function setLocaleUser()\r\n\t{\r\n\t\tif(method_exists($this->event->getAuthenticationToken()->getUser()->getLangCode(), 'getId'))\r\n\t\t\t$this->getSession()->setLocale($this->event->getAuthenticationToken()->getUser()->getLangCode()->getId());\r\n\t\telse\r\n\t\t\t$this->getSession()->setLocale($this->container->get('pi_app_admin.locale_manager')->parseDefaultLanguage());\r\n\t}",
"public function init ( )\n {\n $this->getHelper('ContextSwitch')\n ->addActionContext('get-user-role-id', array('json'))\n ->initContext();\n\n }",
"public function setup()\n\t{\n\t\t// Load up the settings, set the Kayako URL and initialize the API object.\n\t\t$this->_load_settings();\n\n\t\tglobal $current_user;\n\t\twp_get_current_user();\n\t\tif ($current_user->ID) {\n\t\t\t$this->user = $current_user;\n\t\t}\n\t}",
"public function __construct()\n {\n wp_set_current_user(1);\n }",
"public static function set_current_user( $user_id ) {\n\t\twp_set_current_user( $user_id );\n\t}",
"public function set_root_user( $user ) {\n\t\t$this->root_user = $user;\n\t}",
"public function set_user($user)\n {\n $this->user = $user;\n }",
"public function set_context($context) {\n $this->_context = $context;\n }",
"public function setUser( RPC_User $user );",
"public function init()\n {\n // Check if Logged in User is Supervisor or Admin\n $user_details = Auth::user();\n\n if (!empty($user_details->parent_id)) {\n $this->cust_id = $user_details->parent_id;\n $user = User::find($this->cust_id);\n $this->who = 'supervisor';\n }else{\n $this->cust_id = $user_details->id;\n $user = Auth::user();\n $this->who = 'admin';\n }\n $this->pk = $user_details->id;\n\n $this->user = $user;\n\n }",
"function loadUserContext()\n{\n\tglobal $context, $txt, $modSettings;\n\n\t// Set up the contextual user array.\n\t$context['user'] = array(\n\t\t'id' => (int) User::$info->id,\n\t\t'is_logged' => User::$info->is_guest === false,\n\t\t'is_guest' => (bool) User::$info->is_guest,\n\t\t'is_admin' => (bool) User::$info->is_admin,\n\t\t'is_mod' => (bool) User::$info->is_mod,\n\t\t'is_moderator' => (bool) User::$info->is_moderator,\n\t\t// A user can mod if they have permission to see the mod center, or they are a board/group/approval moderator.\n\t\t'can_mod' => (bool) User::$info->canMod($modSettings['postmod_active']),\n\t\t'username' => User::$info->username,\n\t\t'language' => User::$info->language,\n\t\t'email' => User::$info->email,\n\t\t'ignoreusers' => User::$info->ignoreusers,\n\t);\n\n\t// @todo Base language is being loaded to late, placed here temporarily\n\tTxt::load('index+Addons', true, true);\n\n\t// Something for the guests\n\tif (!$context['user']['is_guest'])\n\t{\n\t\t$context['user']['name'] = User::$info->name;\n\t}\n\telseif (!empty($txt['guest_title']))\n\t{\n\t\t$context['user']['name'] = $txt['guest_title'];\n\t}\n\n\t$context['user']['smiley_set'] = determineSmileySet(User::$info->smiley_set, $modSettings['smiley_sets_known']);\n\t$context['smiley_enabled'] = User::$info->smiley_set !== 'none';\n\t$context['user']['smiley_path'] = $modSettings['smileys_url'] . '/' . $context['user']['smiley_set'] . '/';\n}",
"public function init()\n\t{\n\t\tparent::init();\n\t\t$this->user = Instance::ensure( $this->user, User::className() );\n\t}",
"public function set_current_user($user_id) {\n $this->current_user = $user_id;\n }",
"public function setUserId( $user );",
"protected function setAuthenticatedUser(){\n $this->user = auth()->user();\n }",
"public static function refreshUserContext()\n {\n if (E::userIsConnected()) {\n $userId = E::getUserId();\n\n // we need to update the connexionData, which is the source of the UserContext when the user is connected\n $connexionData = ConnexionLayer::buildConnexionDataByUserId($userId);\n// az(__FILE__, $connexionData, SessionUser::getAll());\n SessionUser::setValues($connexionData);\n CartLayer::create()->refreshCartItems();\n Hooks::call(\"Ekom_UserContext_refreshUserContextAfter\");\n }\n self::buildUserContext();\n }",
"public function init()\n {\n \t$auth = Zend_Auth::getInstance();\n\t\tif($auth->hasIdentity())\n \t\t$this->_user_id = Zend_Auth::getInstance()->getIdentity()->user_id;\n }",
"public function setCurrentUser( User $user );",
"public function setCurrentUser($user);",
"private function setCurrentUser()\n {\n if ( $this->session->userdata ) { //if session => get user props\n $id = $this->session->userdata( 'id' );\n $this->user = $this->user_model->get( $id );\n } else {\n redirect( 'user/login' );\n }\n }",
"static function init()\n\t{\n\t\t// \n\t\tself::$user = \\crm\\user::withsession();\n\t\tif (self::$user) \n\t\t{}\n\t}",
"public function init()\n\t{\n\t\t// not all versions of the php extension support this method\n\t\tif ( ! function_exists( 'newrelic_set_user_attributes' ) )\n\t\t{\n\t\t\treturn;\n\t\t}// END if\n\n\t\t// see https://newrelic.com/docs/features/browser-traces#set_user_attributes\n\t\t// for docs on how to use the user info in the transaction trace\n\t\tif ( is_user_logged_in() )\n\t\t{\n\t\t\t$user = wp_get_current_user();\n\t\t\tnewrelic_set_user_attributes( $user->ID, '', array_shift( $user->roles ) );\n\t\t}// END if\n\t\telse\n\t\t{\n\t\t\tnewrelic_set_user_attributes( 'not-logged-in', '', 'no-role' );\n\t\t}// END else\n\t}"
] | [
"0.68539494",
"0.6369477",
"0.6334529",
"0.6264651",
"0.5989442",
"0.5925576",
"0.58972526",
"0.5875845",
"0.58538395",
"0.57555294",
"0.5706241",
"0.5665565",
"0.56526256",
"0.5645854",
"0.5609114",
"0.5604935",
"0.55947465",
"0.5570612",
"0.5551691",
"0.55484086",
"0.5534615",
"0.55327237",
"0.55317",
"0.5526038",
"0.5516326",
"0.5514498",
"0.55072635",
"0.5490635",
"0.5469373",
"0.5461963"
] | 0.74680597 | 0 |
Analyzes querystring content and parses it into module/manager/action and params. | function parseQueryString(/*SGL_Url*/$url)
{
$ret = array();
// catch case for default page, ie, home
if (empty($url->url)) {
return $ret;
}
$parts = array_filter(explode('/', $url->url), 'strlen');
$numElems = count($parts);
// we need at least 1 element
if ($numElems < 1) {
return $ret;
}
$ret['moduleName'] = $parts[0];
$ret['managerName'] = isset($parts[1]) ? $parts[1] : $parts[0];
$actionExists = (isset($parts[2]) && $parts[2] == 'action') ? true : false;
$ret['action'] = ($actionExists) ? $parts[3] : null;
// parse params
$idx = ($actionExists) ? 4 : 2;
// break out if no params detected
if ($numElems <= $idx) {
return $ret;
}
$aTmp = array();
for ($x = $idx; $x < $numElems; $x++) {
if ($x % 2) { // if index is odd
$aTmp['varValue'] = urldecode($parts[$x]);
} else {
// parsing the parameters
$aTmp['varName'] = urldecode($parts[$x]);
}
// if a name/value pair exists, add it to request
if (count($aTmp) == 2) {
$ret[$aTmp['varName']] = $aTmp['varValue'];
$aTmp = array();
}
}
return $ret;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function parse()\r\n\t{\r\n \r\n $queryElements = explode('/', $this->strQuery);\r\n \r\n if(empty($this->routerDefined[$queryElements[1]]))\r\n {\r\n Texit('Request is not valid!');\r\n }else{\r\n $this->params['module'] = $this->name;\r\n $this->params['controller'] = $this->routerDefined[$queryElements[1]][0];\r\n $this->params['action'] = $this->routerDefined[$queryElements[1]][1];\r\n }\r\n unset($queryElements[0]);\r\n unset($queryElements[1]);\r\n \r\n $vars = array();\r\n \r\n foreach((array)$queryElements as $key=>$param){\r\n \r\n $temp = explode('=', $param); \r\n if(count($temp)>0){\r\n if(!empty($temp[0])){\r\n $vars[$temp[0]] = empty($temp[1])?'':$temp[1];\r\n $this->params = array_merge($this->params,$vars); \r\n }\r\n \r\n \r\n \r\n }\r\n \r\n \r\n \r\n }\r\n \r\n\t}",
"private function parseUrl()\n {\n $url = parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH);\n $url = explode('/', trim($url, '/'), 3);\n\n // Define Controller\n if (isset($url[0]) && $url[0] != null):\n $this->controller = $url[0];\n endif;\n\n // Define Action\n if (isset($url[1]) && $url[1] != null):\n $this->action = $url[1];\n endif;\n\n // Define Params\n if (isset($url[2]) && $url[2] != null):\n $this->params = explode('/', $url[2]);\n endif;\n\n }",
"public function parse_request() {\n\t\tglobal $wp;\n\n\t\t// Map query vars to their keys, or get them if endpoints are not supported\n\t\tforeach ( $this->query_vars as $key => $var ) {\n\t\t\tif ( isset( $_GET[ $var ] ) ) {\n\t\t\t\t$wp->query_vars[ $key ] = $_GET[ $var ];\n\t\t\t}\n\n\t\t\telseif ( isset( $wp->query_vars[ $var ] ) ) {\n\t\t\t\t$wp->query_vars[ $key ] = $wp->query_vars[ $var ];\n\t\t\t}\n\t\t}\n\t}",
"protected function parse_request(){\r\n\t\tif (isset($_GET['action'])){\r\n\t\t\t$action = $_GET['action'];\r\n\t\t\t//simple request mode\r\n\t\t\tif ($action == \"get\"){\r\n\t\t\t\t//data request\r\n\t\t\t\tif (isset($_GET['id'])){\r\n\t\t\t\t\t//single entity data request\r\n\t\t\t\t\t$this->request->set_filter($this->config->id[\"name\"],$_GET['id'],\"=\");\r\n\t\t\t\t} else {\r\n\t\t\t\t\t//loading collection of items\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t//data saving\r\n\t\t\t\t$this->editing = true;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tif (isset($_GET['editing']) && isset($_POST['ids']))\r\n\t\t\t\t$this->editing = true;\t\t\t\r\n\t\t\t\r\n\t\t\tparent::parse_request();\r\n\t\t}\r\n\t}",
"function parseUri() {\n\t\t$module = $this->indexModuleName;\n\t\t$action = 'index';\n\n\t\tif (isset($_SERVER['REQUEST_URI'])) {\n\t\t\t$uri = $_SERVER['REQUEST_URI'];\n\t\t\tif ($uri != '/' && $_SERVER['HTTP_HOST'].$uri != $this->domain.'/') {\n\t\t\t\ttry {\n\t\t\t\t\t$uri = parse_url($uri, PHP_URL_PATH);\n\t\t\t\t\t$sep = $this->modActSep;\n\n\t\t\t\t\t$uriParts = explode('/', trim($uri, ' /'));\n\t\t\t\t\t$module = array_values($uriParts);\n\n\t\t\t\t\tif (count($uriParts)<1) $offset = null;\n\t\t\t\t\telse\n\t\t\t\t\t\t$offset = count($uriParts)-1;\n\t\t\t\t\tif ($offset>-1) {\n\t\t\t\t\t\t$actionExp = explode($sep, $uriParts[$offset]);\n\t\t\t\t\t\tif (count($actionExp) > 1) {\n\t\t\t\t\t\t\t$action = $actionExp[1];\n\t\t\t\t\t\t\t$module[count($module) - 1] = str_replace($sep . $action, '', $module[count($module) - 1]);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif('/'.$module[0].'/index.php' == $_SERVER['PHP_SELF'])\n\t\t\t\t\t\t\tarray_splice($module,0,1);\n\t\t\t\t\t}\n\n\t\t\t\t} catch (Exception $e) {\n\t\t\t\t\tdbg($e);\n\t\t\t\t\t$module = '404';\n\t\t\t\t\t$action = 'main';\n\t\t\t\t}\n\t\t\t}\n\n\t\t} else {\n\t\t\t$this->isUtil = true;\n\t\t}\n\n\t\t$this->module = $module;\n\t\t$this->action = $action;\n\t}",
"private function parseUri()\n {\n $scriptprefix = str_replace(self::CONTROLLERFILE, '', $_SERVER['SCRIPT_NAME']);\n $uri = str_replace(self::CONTROLLERFILE, '', $_SERVER['REQUEST_URI']);\n $uri = strtok($uri, '?'); // strip off GET vars\n\n // get the part of the uri, starting from the position after the scriptprefix\n $path = substr($uri, strlen($scriptprefix));\n\n // strip non-alphanumeric characters out of the path\n $path = preg_replace('/[^a-zA-Z0-9]\\//', \"\", $path);\n\n // trim the path for /\n $path = trim($path, '/');\n\n // explode the $path into three parts to get the controller, action and parameters\n // the @-sign is used to supress errors when the function after it fails\n @list($controller, $action, $params) = explode(\"/\", $path, 3);\n\n $this->setController($controller);\n if (isset($action)) {\n $this->setAction($action);\n if (isset($params)) {\n $this->setParams(explode(\"/\", $params));\n }\n }\n }",
"public function getQueryStringParams() \n {\n \t$params = $this->getRequest()->getParams();\n \tunset($params['module']);\n \tunset($params['controller']);\n \tunset($params['action']);\n \t\n \treturn $params;\n }",
"public function parseMARP() {\n\t\t// inputs methods ($_REQUEST, PrettyURLS, and CLI)\n\t\t$tmp_module = \"\";\n\t\t$tmp_action = \"\";\n\t\t$tmp_req_id = \"\";\n\t\t$tmp_params = array();\n\t\t// non-cli stuff is assumed to be web based. \n\t\tif(php_sapi_name() != \"cli\") {\n\t\t\tif($this->config->pretty_urls === TRUE) {\n\t\t\t\t// filter out index.php if need be.\n\t\t\t\t$_SERVER['REQUEST_URI'] = preg_replace('/^\\/index.php/', '', $_SERVER['REQUEST_URI']);\n\t\t\t\t$args = explode('/',$_SERVER['REQUEST_URI']);\n\t\n\t\t\t\tif (@count($args) > 0) {\n\t\t\t\t\tarray_shift($args);\n\t\n\t\t\t\t\t// Setup name=value arguments from the URL\n\t\t\t\t\tif (@count($args) > 0) {\n\t\t\t\t\t\tforeach ($args as $key => $arg) {\n\t\t\t\t\t\t\tif (preg_match('/=/',$arg)) {\n\t\t\t\t\t\t\t\t$parts = explode('=',$arg);\n\t\t\t\t\t\t\t\t$tmp_params[$parts[0]] = trim($parts[1]);\n\t\t\t\t\t\t\t\tunset($args[$key]);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\n\t\t\t\t\t// now for the positional stuff\n\t\t\t\t\t// module is the first arg after index.php\n\t\t\t\t\t$tmp_module = array_shift($args);\n\t\n\t\t\t\t\t// if we have any more, let's continue\n\t\t\t\t\tif (@count($args) > 0) {\n\t\t\t\t\t\t// next positional arg is the action\n\t\t\t\t\t\t$tmp_action = array_shift($args);\n\t\t\t\t\t\tif (@count($args) > 0) {\n\t\t\t\t\t\t\t// and finally we have the id.\n\t\t\t\t\t\t\t$tmp_req_id = array_shift($args);\n\t\t\t\t\t\t}\n\t\n\t\t\t\t\t\t// everything else should be treated as boolean args.\n\t\t\t\t\t\tif (@count($args) > 0) {\n\t\t\t\t\t\t\tforeach ($args as $arg) {\n\t\t\t\t\t\t\t\t$tmp_params[$arg] = TRUE;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// a few other checks\n\t\t\t\tif($tmp_req_id == \"\" ) {\n\t\t\t\t\t// see if it's in the request variables\n\t\t\t\t\t$tmp_req_id = (isset($_REQUEST['id'])) ? $_REQUEST['id'] : NULL;\n\t\t\t\t}\n\t\t\t\t// merge $_REQUEST into $tmp_params.\n\t\t\t\t$tmp_params = array_merge($tmp_params, $_REQUEST);\n\t\t\t} else { // end if for pretty URLS\n\t\t\t\t// non-pretty URL web mode. Pull from $_REQUEST\n\t\t\t\t$tmp_module = (isset($_REQUEST['module'])) ? $_REQUEST['module'] : NULL;\n\t\t\t\t$tmp_action = (isset($_REQUEST['action'])) ? $_REQUEST['action'] : NULL;\n\t\t\t\t$tmp_req_id = (isset($_REQUEST['id'])) ? $_REQUEST['id'] : NULL;\n\t\t\t\t$tmp_params = (isset($_REQUEST['params'])) ? $_REQUEST['params'] : NULL;\n\t\t\t} \n\t\t\t// This might be able to safely go outside the main if statement\n\t\t\t// in here if the templates are properly coded for commandline stuff,\n\t\t\t// which they more than likely aren't.\n\t\t\t$tmp_action = (empty($tmp_action)) ? 'index' : $tmp_action;\n\t\t} else {\n\t\t\t// TODO: pull in the args from the command line. \n\t\t\t\n\t\t}\n\t\t\n\t\t// alright, we've gathered what we need, now set the vars.\n\t\t$this->module=$tmp_module;\n\t\t$this->action=$tmp_action;\n\t\t$this->req_id=$tmp_req_id;\n\t\t$this->params=$tmp_params;\n\t}",
"function SearchQuery()\n {\n $parts = parse_url($_SERVER['REQUEST_URI']);\n if (!$parts) {\n throw new InvalidArgumentException(\"Can't parse URL: \".$uri);\n }\n // Parse params and add new variable\n $params = array();\n if (isset($parts['query'])) {\n parse_str($parts['query'], $params);\n if (count($params)) {\n return http_build_query($params);\n }\n }\n }",
"public static function parse () { \n self::$pathInfo = parse_url($_SERVER['REQUEST_URI']);\n }",
"public function parseUrl() {\n\n if(isset($_GET['url'])) {\n return $url = explode('/',filter_var(rtrim($_GET['url'],'/'),FILTER_SANITIZE_URL));\n }\n require_once '../app/controllers/'.$this->controller.'.php';\n }",
"private function _parseInputText() {\n\t\t$inputText = preg_split('/\\s+/', $this->_request[self::PARAM_TEXT]);\n\n\t\t// Verify that the input action is valid, default to HELP\n\t\t$this->_action = $inputText[0];\n\t\tif (!in_array($this->_action, array_keys(ActionFactory::$actionClasses))) {\n\t\t\terror_log(\"Invalid action={$this->_action}\");\n\t\t\t$this->_action = ActionFactory::HELP;\n\t\t}\n\n\t\t// Update $this->_params with all the optional params\n\t\t$actionParams = array();\n\t\tforeach ($inputText as $value) {\n\t\t\tif (strpos($value, \"=\") !== false) {\n\t\t\t\tlist($key, $val) = explode(\"=\", $value);\n\t\t\t\tswitch ($key) {\n\t\t\t\t\tcase self::PARAM_OPPONENT_NAME:\n\t\t\t\t\t\t$this->_params->setOpponentName($val);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase self::PARAM_POS_X:\n\t\t\t\t\t\t$this->_params->setPosX($val);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase self::PARAM_POS_Y:\n\t\t\t\t\t\t$this->_params->setPosY($val);\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public static function ParseNormal()\r\n\t{\r\n\t\t$parsed = false;\r\n\t\t/** Set default module **/\r\n\t\tif(!$_GET)\r\n\t\t{\r\n\t\t\t$parsed = true;\r\n\t\t}\r\n\t\t/** Get pramse from either POST or GET **/\r\n\t\tforeach( $_GET as $key=>$val)\r\n\t\t{\r\n\t\t\tif( $key == DO_CKEY && !$parsed )\r\n\t\t\t{\r\n\t\t\t\tlist(self::$module,$controller,$action) = explode(self::$separator,$val);\r\n\t\t\t\tif($controller != '') self::$controller = $controller;\r\n\t\t\t\tif($action != '') self::$action\t = $action;\r\n\t\t\t\t$parsed = true;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tself::$params[ $key ] = self::SafeValue( $val );\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(!$parsed) \r\n\t\t{\r\n\t\t\tthrow new DOUriException(\"Did not find param '\".DO_CKEY.\"' in uri\",'000');\r\n\t\t}\r\n\t\treturn array(self::$module,self::$controller,self::$action,self::$params);\r\n\t}",
"public function processRequest() {\n\n $requestUri = (isset($_GET['url'])) ? $_GET['url'] : '';\n\n $Request = $this->parseUri($requestUri);\n\n if($this->existsController($Request->controller)) {\n\n $Controller = $this->createController($Request->controller);\n\n if(method_exists($Controller, $Request->method)) {\n $this->invoke($Controller, $Request->method, $Request->args);\n } else {\n $this->invoke($Controller, 'index', null);\n }\n }\n\n if(DEBUG_MODE)\n $this->printData($requestUri, $Request);\n }",
"protected function _parseQueryString()\n {\n $params = [];\n $queryString = '';\n if (isset($_SERVER['QUERY_STRING'])) {\n $queryString = $_SERVER['QUERY_STRING'];\n }\n if (empty($queryString)) {\n return [];\n }\n $parts = explode('&', $queryString);\n foreach ($parts as $kvpair) {\n $pair = explode('=', $kvpair);\n $key = rawurldecode($pair[0]);\n $value = rawurldecode($pair[1]);\n if (isset($params[$key])) {\n if (is_array($params[$key])) {\n $params[$key][] = $value;\n } else {\n $params[$key] = [$params[$key], $value];\n }\n } else {\n $params[$key] = $value;\n }\n }\n return $params;\n }",
"private function getQueryStringParams() {\n\t\t$url = explode(\"?\", $_SERVER['REQUEST_URI']);\n\t\tif(!isset($url[1])) {\n\t\t\treturn array();\n\t\t} else {\n\t\t\t$ret = array();\n\t\t\t$params = $url[1];\n\t\t\t$params = explode(\"&\", $params);\n\t\t\tforeach($params as $value_key) {\n\t\t\t\t$parts = explode(\"=\", $value_key);\n\t\t\t\t$ret[$parts[0]] = $parts[1];\n\t\t\t}\n\t\t\treturn $ret;\n\t\t}\n\t}",
"protected function prepareURL()\n {\n\n $request = trim($_SERVER['REQUEST_URI'], '/');\n if (!empty($request)) {\n $url = explode('/', $request);\n $this->namespace = (isset($url[0]) and ($url[0] == 'admin' or $url[0] == 'teacher' or $url[0] == 'university')) ? $url[0] : 'site';\n if ($this->namespace == 'site') {\n $this->controller = isset($url[0]) ? $url[0] . 'Controller' : 'homeController';\n $this->action = isset($url[1]) ? $url[1] : 'index';\n unset($url[0], $url[1]);\n } else {\n if (isset($url[1]) and ($url[1] == 'login' or $url[1] == 'logout' or $url[1] == 'register' or $url[1] == 'singUp' or $url[1] == 'index')) {\n\n\n\n $this->controller = isset($url[0]) ? $url[0] . 'Controller' : 'adminController';\n $this->action = $url[1];\n return ;\n }\n $this->controller = isset($url[1]) ? $url[1] . 'Controller' : 'adminController';\n $this->action = isset($url[2]) ? $url[2] : 'index';\n unset($url[0], $url[1], $url[2]);\n }\n\n $this->params = !empty($url) ? array_values($url) : [];\n }\n\n }",
"public function parse($url)\r\n {\r\n // an URL should start with a '/', mod_rewrite doesn't respect that, but no-mod_rewrite version does.\r\n if ($url && ('/' != $url[0]))\r\n {\r\n $url = '/'.$url;\r\n }\r\n\r\n // we remove the query string\r\n if ($pos = strpos($url, '?'))\r\n {\r\n $url = substr($url, 0, $pos);\r\n }\r\n\r\n // we remove multiple /\r\n $url = preg_replace('#/+#', '/', $url);\r\n foreach ($this->routes as $route_name => $route)\r\n {\r\n $out = array();\r\n $r = null;\r\n\r\n list($route, $regexp, $names, $names_hash, $defaults, $requirements, $suffix) = $route;\r\n\r\n $break = false;\r\n\r\n if (preg_match($regexp, $url, $r))\r\n {\r\n $break = true;\r\n\r\n // remove the first element, which is the url\r\n array_shift($r);\r\n\r\n // hack, pre-fill the default route names\r\n foreach ($names as $name)\r\n {\r\n $out[$name] = null;\r\n }\r\n\r\n // defaults\r\n foreach ($defaults as $name => $value)\r\n {\r\n if (preg_match('#[a-z_\\-]#i', $name))\r\n {\r\n $out[$name] = urldecode($value);\r\n }\r\n else\r\n {\r\n $out[$value] = true;\r\n }\r\n }\r\n\r\n $pos = 0;\r\n foreach ($r as $found)\r\n {\r\n // if $found is a named url element (i.e. ':action')\r\n if (isset($names[$pos]))\r\n {\r\n $out[$names[$pos]] = urldecode($found);\r\n }\r\n // unnamed elements go in as 'pass'\r\n else\r\n {\r\n $pass = explode('/', $found);\r\n $found = '';\r\n for ($i = 0, $max = count($pass); $i < $max; $i += 2)\r\n {\r\n if (!isset($pass[$i + 1])) continue;\r\n\r\n $found .= $pass[$i].'='.$pass[$i + 1].'&';\r\n }\r\n\r\n parse_str($found, $pass);\r\n\r\n if (get_magic_quotes_gpc())\r\n {\r\n $pass = sfToolkit::stripslashesDeep((array) $pass);\r\n }\r\n \r\n foreach ($pass as $key => $value)\r\n {\r\n // we add this parameters if not in conflict with named url element (i.e. ':action')\r\n if (!isset($names_hash[$key]))\r\n {\r\n $out[$key] = $value;\r\n }\r\n }\r\n }\r\n $pos++;\r\n }\r\n\r\n // we must have found all :var stuffs in url? except if default values exists\r\n foreach ($names as $name)\r\n {\r\n if ($out[$name] == null)\r\n {\r\n $break = false;\r\n }\r\n }\r\n\r\n if ($break)\r\n {\r\n // we store route name\r\n $this->setCurrentRouteName($route_name);\r\n\r\n if (sfConfig::get('sf_logging_enabled'))\r\n {\r\n sfLogger::getInstance()->info('{sfRouting} match route ['.$route_name.'] \"'.$route.'\"');\r\n }\r\n\r\n break;\r\n }\r\n }\r\n }\r\n\r\n // no route found\r\n if (!$break)\r\n {\r\n if (sfConfig::get('sf_logging_enabled'))\r\n {\r\n sfLogger::getInstance()->info('{sfRouting} no matching route found');\r\n }\r\n\r\n return null;\r\n }\r\n\r\n return $out;\r\n }",
"private function splitUrl()\n {\n if (isset($_GET['url'])) {\n\n // split URL\n $url = rtrim($_GET['url'], '/');\n $url = filter_var($url, FILTER_SANITIZE_URL);\n $url = explode('/', $url);\n \n // if only one param is sent, assume index\n if(count($url) == 1 ){\n $url = array(\n $url[0],\n 'index'\n );\n }\n\n // Put URL parts into according properties\n // By the way, the syntax here if just a short form of if/else, called \"Ternary Operators\"\n // http://davidwalsh.name/php-shorthand-if-else-ternary-operators\n $this->url_controller = (isset($url[0]) ? $url[0] : null);\n $this->url_action = (isset($url[1]) ? $url[1] : null);\n $this->url_parameter_1 = (isset($url[2]) ? $url[2] : null);\n $this->url_parameter_2 = (isset($url[3]) ? $url[3] : null);\n $this->url_parameter_3 = (isset($url[4]) ? $url[4] : null);\n $this->url_parameter_4 = (isset($url[5]) ? $url[5] : null);\n $this->url_parameter_5 = (isset($url[6]) ? $url[6] : null);\n $this->url_parameter_6 = (isset($url[7]) ? $url[7] : null);\n \n } else {\n \n $this->url_controller = DEFAULT_CONTROLLER;\n $this->url_action = 'index';\n }\n }",
"private function actionFromParam()\n\t{\n\t\t\n\t\t// by default, not found. needed to detect request for / when action at -1, 1 doesnt have an empty alias\n\t\t$select['alias'] = '404'; \n\t\t\n\t\t/* Determine requested nav item from lf_actions */\n\t\t// get all possible matches for current request, \n\t\t// always grab the first one in case nothing is selected\n\t\t$matches = (new \\lf\\orm)->fetchAll(\"\n\t\t\tSELECT * FROM lf_actions \n\t\t\tWHERE alias IN ('\".implode(\"', '\", \\lf\\requestGet('Param') ).\"') \n\t\t\t\tOR (position = 1 AND parent = -1)\n\t\t\tORDER BY ABS(parent), ABS(position) ASC\n\t\t\");\n\t\t\n\t\t// Assign as parent,position => array()\n\t\t$base_save = NULL;\n\t\tforeach($matches as $row)\n\t\t{\n\t\t\t// save item in first spot of base menu if it is an app, \n\t\t\t// just in case nothing matches\n\t\t\tif($row['position'] == 1 && $row['parent'] == -1)\n\t\t\t{\n\t\t\t\t// save row in case \"domain.com/\" is requested\n\t\t\t\t$base_save = $row;\n\t\t\t}\n\t\t\t\t\n\t\t\t$test_select[$row['parent']][$row['position']] = $row;\n\t\t}\n\t\t\n\t\t// loop through action to determine selected nav\n\t\t// trace down to last child\n\t\t\n\t\t// start at the root nav items\n\t\t$parent = -1; \n\t\t// nothing selected to start with\n\t\t$selected = array(); \n\t\t// loop through action array\n\t\tfor($i = 0; $i < count( \\lf\\requestGet('Param') ); $i++) \n\t\t\t// if our compiled parent->position matrix has this parent set\n\t\t\tif(isset($test_select[$parent])) \n\t\t\t\tforeach($test_select[$parent] as $position => $nav)\t// loop through child items \n\t\t\t\t\tif($nav['alias'] == \\lf\\requestGet('Param')[$i]) // to find each navigation item in the hierarchy\n\t\t\t\t\t{\n\t\t\t\t\t\t// we found the match, \n\t\t\t\t\t\t// move on to next action item matching\n\t\t\t\t\t\t\n\t\t\t\t\t\t// this result in all/that/match(/with/params/after)\n\t\t\t\t\t\t$selected[] = $nav;\n\t\t\t\t\t\t\n\t\t\t\t\t\t$parent = $nav['id'];\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\n\t\t// if a selection was made, alter the action so it has proper params\n\t\tif($selected != array())\n\t\t{\n\t\t\t// separate action into vars and action base, \n\t\t\t// pull select nav from inner most child\n\t\t\t// eg, given `someparent/blog/23-test`, pop twice\n//\t\t\t(new request)->load()\n//\t\t\t\t->actionKeep( count($selected) )\n//\t\t\t\t->save();\n\t\t\t\n\t\t\t// This is where we find which navigation item we are visiting\n\t\t\t$select = end($selected);\n\t\t}\n\t\t\n\t\t\n\t\t// If home page is an app and no select was made from getnav(), \n\t\t// set current page as /\n\t\tif($select['alias'] == '404' && $base_save != NULL)\n\t\t{\t\t\n\t\t\t//(new request)->load()->fullActionPop()->save(); // pop all actions into param, we are loading the first nav item\n\t\t\t$select = $base_save;\n\t\t}\n\t\t\n\t\treturn $select;\n\t}",
"public function get_us_url_params() {\n\t\t\n\t\t$url_params = $this->uri->ruri_to_assoc();\n\t\t\n\t\t$allowed_actions = array(\n\t\t\t\n\t\t\t'l', // List\n\t\t\t'd', // Detail\n\t\t\t'a', // Add\n\t\t\t'e', // Edit\n\t\t\t'r', // Remove\n\t\t\t'cob', // Change order by\n\t\t\t'b', // Batch\n\t\t\t\n\t\t);\n\t\t\n\t\tif ( isset( $url_params[ 'a' ] ) AND ! in_array( $url_params[ 'a' ], $allowed_actions ) ) {\n\t\t\t\n\t\t\texit( lang( 'unknow_action' ) );\n\t\t\t\n\t\t}\n\t\t\n\t\t$params[ 'action' ] =\t\t\t\t\t\t\t\t\tisset( $url_params[ 'a' ] ) ? $url_params[ 'a' ] : 'l'; // action\n\t\t$params[ 'sub_action' ] =\t\t\t\t\t\t\t\tisset( $url_params[ 'sa' ] ) ? $url_params[ 'sa' ] : NULL; // sub action\n\t\t$params[ 'layout' ] =\t\t\t\t\t\t\t\t\tisset( $url_params[ 'l' ] ) ? $url_params[ 'l' ] : 'default'; // layout\n\t\t\n\t\t\n\t\t$params[ 'submit_form_id' ] =\t\t\t\t\t\t\tisset( $url_params[ 'sfid' ] ) ? $url_params[ 'sfid' ] : NULL; // submit form id(s)\n\t\t\n\t\t// Adjusting the submit form id or ids\n\t\tif ( strpos( $params[ 'submit_form_id' ] , ',' ) ) {\n\t\t\t\n\t\t\t$params[ 'submit_form_id' ] = explode( ',', $params[ 'submit_form_id' ] );\n\t\t\t\n\t\t}\n\t\telse {\n\t\t\t\n\t\t\t$params[ 'submit_form_id' ] = array( $params[ 'submit_form_id' ] );\n\t\t\t\n\t\t}\n\t\t\n\t\treset( $params[ 'submit_form_id' ] );\n\t\t\n\t\twhile ( list( $k, $sfid ) = each( $params[ 'submit_form_id' ] ) ) {\n\t\t\t\n\t\t\tif ( ! ( $sfid AND is_numeric( $sfid ) AND is_int( $sfid + 0 ) ) ) {\n\t\t\t\t\n\t\t\t\tunset( $params[ 'submit_form_id' ][ $k ] );\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\t/*\n\t\tforeach( $params[ 'submit_form_id' ] as $k => $sfid ) {\n\t\t\t\n\t\t\tif ( ! ( $sfid AND is_numeric( $sfid ) AND is_int( $sfid + 0 ) ) ) {\n\t\t\t\t\n\t\t\t\tunset( $params[ 'submit_form_id' ][ $k ] );\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t*/\n\t\t\n\t\t$params[ 'user_submit_id' ] =\t\t\t\t\t\t\tisset( $url_params[ 'usid' ] ) ? $url_params[ 'usid' ] : NULL; // user submit id(s)\n\t\t\n\t\t// Adjusting the users submits id or ids\n\t\tif ( strpos( $params[ 'user_submit_id' ], ',' ) ) {\n\t\t\t\n\t\t\t$params[ 'user_submit_id' ] = explode( ',', $params[ 'user_submit_id' ] );\n\t\t\t\n\t\t}\n\t\telse {\n\t\t\t\n\t\t\t$params[ 'user_submit_id' ] = array( $params[ 'user_submit_id' ] );\n\t\t\t\n\t\t}\n\t\t\n\t\treset( $params[ 'user_submit_id' ] );\n\t\t\n\t\twhile ( list( $k, $usid ) = each( $params[ 'submit_form_id' ] ) ) {\n\t\t\t\n\t\t\tif ( ! ( $usid AND is_numeric( $usid ) AND is_int( $usid + 0 ) ) ) {\n\t\t\t\t\n\t\t\t\tunset( $params[ 'user_submit_id' ][ $k ] );\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\t/*\n\t\tforeach( $params[ 'user_submit_id' ] as $k => $usid ) {\n\t\t\t\n\t\t\tif ( ! ( $usid AND is_numeric( $usid ) AND is_int( $usid + 0 ) ) ) {\n\t\t\t\t\n\t\t\t\tunset( $params[ 'user_submit_id' ][ $k ] );\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t*/\n\t\t\n\t\t$params[ 'current_page' ] =\t\t\t\t\t\t\t\tisset( $url_params[ 'cp' ] ) ? $url_params[ 'cp' ] : NULL; // current page\n\t\t$params[ 'items_per_page' ] =\t\t\t\t\t\t\tisset( $url_params[ 'ipp' ] ) ? $url_params[ 'ipp' ] : NULL; // items per page\n\t\t$params[ 'order_by' ] =\t\t\t\t\t\t\t\t\tisset( $url_params[ 'ob' ] ) ? $url_params[ 'ob' ] : NULL; // order by\n\t\t$params[ 'order_by_direction' ] =\t\t\t\t\t\tisset( $url_params[ 'obd' ] ) ? $url_params[ 'obd' ] : NULL; // order by direction\n\t\t$params[ 'search' ] =\t\t\t\t\t\t\t\t\tisset( $url_params[ 's' ] ) ? ( int )( ( bool ) $url_params[ 's' ] ) : NULL; // search flag\n\t\t$params[ 'filters' ] =\t\t\t\t\t\t\t\t\tisset( $url_params[ 'f' ] ) ? $this->unid->url_decode_ud_filters( $url_params[ 'f' ] ) : array(); // filters\n\t\t\n\t\treturn $params;\n\t\t\n\t}",
"public static function parse_uri() {\n\t\t$path = array();\n\t\tif (isset($_SERVER['REQUEST_URI'])) {\n\t\t\t$request_path = explode('?', $_SERVER['REQUEST_URI']);\n\n\t\t\t$path['base'] = rtrim(dirname($_SERVER['SCRIPT_NAME']), '\\/');\n\t\t\t$path['call_utf8'] = substr(urldecode($request_path[0]), strlen($path['base']) + 1);\n\t\t\t$path['call'] = utf8_decode($path['call_utf8']);\n\t\t\tif ($path['call'] == basename($_SERVER['PHP_SELF'])) {\n \t\t\t\t$path['call'] = '';\n\t\t\t}\n\t\t\t$path['call_parts'] = explode('/', $path['call']);\n\t\t\t\n\t\t\tif ( sizeof($request_path) > 1 ) {\n\t\t\t\t$path['query_utf8'] = urldecode($request_path[1]);\n\t\t\t\t$path['query'] = utf8_decode(urldecode($request_path[1]));\n\t\t\t\t$vars = explode('&', $path['query']);\n\t\t\t\tforeach ($vars as $var) {\n\t\t\t\t\t$t = explode('=', $var);\n\t\t\t\t\t$path['query_vars'][$t[0]] = $t[1];\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$path['query_utf8'] = NULL;\n\t\t\t\t$path['query'] = NULL;\n\t\t\t\t$path['query_vars'] = array();\n\t\t\t}\n\t\t}\n\t\treturn $path;\n\t}",
"public function parseUrl($global_uri){\n $url = explode('?', $global_uri);\n $this->setUrl($url);\n\n if ( sizeof($url) ) {\n\n //get action\n if ( isset($url[0]) ) {\n $fetch = explode('/', $url[0]);\n if (sizeof($fetch)) {\n if ( isset($fetch[0]) ) {\n $this->target['controller'] = $fetch[0];\n }\n\n if ( isset($fetch[1]) ) {\n $this->target['action'] = $fetch[1];\n }\n\n if ( isset($fetch[2]) ) {\n $this->target['view'] = $fetch[2];\n }\n }\n\n if ( sizeof($url) > 3 ) {\n foreach( $url as $value ) {\n array_push($this->explodedUrl, $value);\n }\n }\n }\n //get exploded query string\n if ( isset($url[1]) ) {\n $query_params = explode('&', $url[0]);\n foreach($query_params as $name => $value){\n $this->explodedUrl[$name] = $value;\n }\n }\n }\n\n }",
"public function parseRequest($manager, $request)\n {\n $pathInfo = $request->getPathInfo();\n //This rule only applies to paths that start with 'jobs'\n if(Yii::$app->user->isGuest){\n \treturn false;\n }\n //controller/action that will handle the request\n //$route = 'post/<action>';\n //parameters in the URL (category, subcategory, state, city, page)\n $params = [];\n /*$parameters = explode('/', $pathInfo);\n if (count($parameters) == 4) {\n $subdomain = explode('.', $parameters[0]);\n if($params['subdomain']==Yii::$app->user->identity->username){\n \t$params['subdomain'] = $subdomain[0];\n }\n return false;\n }\n if (count($parameters) != 4 ) {\n return false;\n }*/\n //$params['subdomain']=$request->getHostInfo();\n Yii::trace(\"Request parsed with URL rule: site/jobs\", __METHOD__);\n return [$route, $params];\n }",
"private function splitUrl(){\n if(isset($_GET['url'])){\n \n //Split the URL\n $url = rtrim($_GET['url'], '/');\n $url = filter_var($url, FILTER_SANITIZE_URL);\n $url = explode('/', $url);\n \n //Load any areas from the config\n $areas = Config::get(\"routeAreas\");\n \n if(isset($url[0])){\n if(array_search($url[0], $areas) !== false){\n $this->area = $url[0];\n array_splice($url, 0, 1);\n } \n }\n \n //load the remaining parts\n $this->controller = (isset($url[0]) ? $url[0] : null);\n $this->action = (isset($url[1]) ? $url[1] : 'index'); //Default action to index method\n \n for($r=2; $r<count($url); $r++){\n $this->params[] = $url[$r];\n } \n \n //For debugging only\n /*echo 'Area: ' . $this->area . '<br />';\n echo 'Controller: ' . $this->controller . '<br />';\n echo 'Action: ' . $this->action . '<br />';\n echo 'Params: ' . print_r($this->params) . '<br />';*/\n \n \n }\n }",
"public function parseParams() {\n parent::parseParams();\n }",
"public function mergeQueryString() {\n\t if ($this->getRequest()->isPost()) {\n\t throw new Exception(\"mergeQueryString only works on GET requests.\");\n\t }\n\t $q = $this->getRequest()->getQuery();\n\t $p = $this->getRequest()->getParams();\n\t if (empty($q)) {\n\t //there's nothing to do.\n\t return;\n\t }\n\t $action = $p['action'];\n\t $controller = $p['controller'];\n\t $module = $p['module'];\n\t unset($p['action'], $p['controller'], $p['module']);\n\t $params = array_merge($p, $q);\n\t $this->_helper->getHelper('Redirector')\n\t ->setCode(301)\n\t ->gotoSimple(\n\t $action, $controller, $module, $params);\n\t}",
"function pnQueryStringDecode()\n{\n if (defined('_PNINSTALLVER')) {\n return;\n }\n\n // get our base parameters to work out if we need to decode the url\n $module = FormUtil::getPassedValue('module', null, 'GETPOST');\n $func = FormUtil::getPassedValue('func', null, 'GETPOST');\n $type = FormUtil::getPassedValue('type', null, 'GETPOST');\n\n // check if we need to decode the url\n if ((pnConfigGetVar('shorturls') && pnConfigGetVar('shorturlstype') == 0 && (empty($module) && empty($type) && empty($func)))) {\n // define our site entry points\n $customentrypoint = pnConfigGetVar('entrypoint');\n $root = empty($customentrypoint) ? 'index.php' : $customentrypoint;\n $tobestripped = array(\"/$root\", '/admin.php', '/user.php', '/modules.php', '/backend.php', '/print.php', '/error.php', pnGetBaseURI());\n\n // get base path to work out our current url\n $parsedURL = parse_url(pnGetCurrentURI());\n\n // strip any unwanted content from the provided URL\n $path = str_replace($tobestripped, '', $parsedURL['path']);\n\n // split the path into a set of argument strings\n $args = explode('/', rtrim($path, '/'));\n\n // ensure that each argument is properly decoded\n foreach ($args as $k => $v) {\n $args[$k] = urldecode($v);\n }\n // the module is the first argument string\n if (isset($args[1]) && !empty($args[1])) {\n if (ZLanguage::isLangParam($args[1]) && in_array($args[1], ZLanguage::getInstalledLanguages())) {\n pnQueryStringSetVar('lang', $args[1]);\n array_shift($args);\n }\n\n // first try the first argument as a module\n $modinfo = pnModGetInfo(pnModGetIDFromName($args[1]));\n // if that fails it's a theme\n if (!$modinfo) {\n $themeinfo = ThemeUtil::getInfo(ThemeUtil::getIDFromName($args[1]));\n if ($themeinfo) {\n pnQueryStringSetVar('theme', $themeinfo['name']);\n // now shift the vars and continue as before\n array_shift($args);\n $modinfo = pnModGetInfo(pnModGetIDFromName($args[1]));\n } else {\n // add the default module handler into the code\n $modinfo = pnModGetInfo(pnModGetIDFromName(pnConfigGetVar('shorturlsdefaultmodule')));\n array_unshift($args, $modinfo['url']);\n }\n }\n if ($modinfo['type'] == 1) {\n pnQueryStringSetVar('name', $modinfo['name']);\n isset($args[2]) ? pnQueryStringSetVar('req', $args[2]) : null;\n $modname = FormUtil::getPassedValue('name', null, 'GETPOST');\n } else {\n pnQueryStringSetVar('module', $modinfo['name']);\n // the function name is the second argument string\n isset($args[2]) ? pnQueryStringSetVar('func', $args[2]) : null;\n $modname = FormUtil::getPassedValue('module', null, 'GETPOST');\n }\n }\n\n // check if there is a custom url handler for this module\n // if not decode the url using the default handler\n if (isset($modinfo) && $modinfo['type'] != 0 && !pnModAPIFunc($modname, 'user', 'decodeurl', array('vars' => $args))) {\n // any remaining arguments are specific to the module\n $argscount = count($args);\n for($i = 3; $i < $argscount; $i = $i + 2) {\n if (isset($args[$i]))\n pnQueryStringSetVar($args[$i], urldecode($args[$i + 1]));\n }\n }\n }\n}",
"public function parseParams($params = array()){\n\t\t// set up url\n\t\tif(array_key_exists('url', $params))\n\t\t\t$this->setUrl($params['url']);\t\n\t\t// set up title\n\t\tif(array_key_exists('title', $params))\n\t\t\t$this->setTitle($params['title']);\t\n\t\t// set up image\n\t\tif(array_key_exists('image', $params))\n\t\t\t$this->setImage($params['image']);\t\n\t\t// set up site_name\n\t\tif(array_key_exists('site_name', $params))\n\t\t\t$this->setSiteName($params['site_name']);\t\n\t\t// set up app_id/admin_id/fb_id\n\t\t// app_id\n\t\tif(array_key_exists('app_id', $params))\n\t\t\t$this->setAppId($params['app_id']);\t\n\t\t\t// admin_id\n\t\t\tif(array_key_exists('admin_id', $params))\n\t\t\t\t$this->setAdminId($params['admin_id']);\t\n\t\t\t// fb_id\n\t\t\tif(array_key_exists('fb_id', $params))\n\t\t\t\t$this->setFbId($params['fb_id']);\t\n\t}",
"protected function parseInput()\n {\n $params = $_REQUEST;\n\n if (!isset($_SERVER['REQUEST_METHOD']) || in_array($_SERVER['REQUEST_METHOD'], ['PUT', 'DELETE'])) {\n $vars = file_get_contents('php://input');\n\n if (!is_string($vars) || strlen(trim($vars)) === 0) {\n $vars = '';\n }\n\n $inputData = [];\n parse_str($vars, $inputData);\n\n $params = array_merge($params, $inputData);\n }\n\n $this->setParams($params);\n }"
] | [
"0.7983878",
"0.6747092",
"0.6327731",
"0.6128238",
"0.6107979",
"0.60811746",
"0.5994215",
"0.5989557",
"0.5965086",
"0.59353745",
"0.5902359",
"0.5872858",
"0.5793029",
"0.5736725",
"0.57364666",
"0.5736253",
"0.56899095",
"0.5671381",
"0.5626538",
"0.56175405",
"0.5603196",
"0.55626935",
"0.5520702",
"0.55169696",
"0.5515544",
"0.55078095",
"0.55065954",
"0.54622257",
"0.54585856",
"0.5453802"
] | 0.7348898 | 1 |
Lists all Snippets models. | public function actionIndex() {
$searchModel = new SnippetsSearch();
$dataProvider = $searchModel->search(Yii::$app->request->queryParams);
return $this->render('index', [
'searchModel' => $searchModel,
'dataProvider' => $dataProvider,
]);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getSnippets()\n {\n return $this->get('snippets');\n }",
"public function indexAction()\n {\n $em = $this->getDoctrine()->getEntityManager();\n\n $entities = $em->getRepository('FTCCodeBundle:Snippet')->findAll();\n\n return array('entities' => $entities);\n }",
"public function listAll()\n {\n return $this->model->get()->pluck('title', 'id')->all();\n }",
"public function index()\n {\n $slgclasses = SlgClass::getAllSlgClass();\n return SlgClassResource::collection($slgclasses);\n }",
"public function getAll()\n {\n // Using a Laravel Eloquent Model example\n\n // Return collection (Illuminate\\Support\\Collection) of lessons\n return Lesson::all();\n }",
"public function snippets()\n {\n return $this->belongsToMany('App\\Snippet', 'pockets_and_snippets', 'pocket_id', 'snippet_id');\n }",
"public function showAll()\n {\n $model = $this->newModel();\n\n return $model->orderBy('created_at', 'desc')\n ->paginate(10, ['*']);\n }",
"public function getList()\n {\n $data = $this->Stunts->query()\n ->where([\n 'Stunts.stunt_name like' => $this->request->getQuery('term') . '%'\n ])\n ->contain([\n 'Skills' => [\n 'fields' => ['skill_name']\n ]\n ])\n ->order([\n 'stunt_name'\n ])\n ->toArray();\n\n $this->set(compact('data'));\n $this->set('_serialize', ['data']);\n\n // TODO: refactor to not need to do this\n echo json_encode($data);\n die();\n }",
"public function index()\n {\n return $this->templatesRepository->all()->get();\n }",
"public function index()\n {\n return ListItem::all();\n }",
"public function index()\n {\n return Question::all();\n }",
"public static function getList()\n {\n return self::find()\n ->select(['id', 'slug', 'name','locale', 'alias', 'icon'])\n ->indexBy('slug')\n ->asArray()\n ->all();\n }",
"public function getAll()\n {\n $model = $this->model;\n return $model::all();\n }",
"public function listAll()\n {\n $tags = $this->model->lists('name', 'id');\n\n return $tags;\n }",
"public function lists()\n {\n return $this->section->lists('title', 'id');\n }",
"public function getAll()\n {\n return $this->model->get('name','slug');\n }",
"public function getAll()\n {\n return $this->model->get();\n }",
"public function listAction()\n {\n $tags = $this->getTags();\n $this->view->assign('tags', $tags);\n }",
"public function index()\n {\n $products = Product::paginate();\n\t\treturn new ListCollection($products);\n }",
"public function listing ()\n {\n // Fetch all questions\n $cacheID = 'listing';\n if (!$this->data['questions'] = $this->zf_cache->load($cacheID)) {\n $this->data['questions'] = $this->question_model->get_with_users();\n $this->zf_cache->save($this->data['questions'], $cacheID, array('all_questions'));\n }\n \n // Load view\n $this->load_view('questions/listing');\n }",
"public function show(){\n return Student::all();\n }",
"public function listAll()\n {\n return $this->page->get()->pluck('title', 'id')->all();\n }",
"public function actionList() {\n $this->_getList();\n }",
"public function index()\n {\n $schools = Note::all();\n return new NoteCollection($schools);\n }",
"function questionListing()\n {\n if($this->isAdmin() == TRUE)\n {\n $this->loadThis();\n }\n else\n {\n $this->load->model('question_model');\n \n $searchText = $this->input->post('searchText');\n $data['searchText'] = $searchText;\n \n $this->load->library('pagination');\n \n // $count = $this->question_model->questionListingCount($searchText);\n\n\t\t\t// $returns = $this->paginationCompress(\"questionListing/\", $count, 5 );\n \n $data['questionRecords'] = $this->question_model->questionListing();\n \n $this->global['pageTitle'] = 'Question Listing';\n \n $this->loadViews(\"admin/manage_questions/list\", $this->global, $data, NULL);\n }\n }",
"public function getList()\n {\n return $this->getSurveyList([ 'fields' => ['title'] ]);\n }",
"public function listAction()\n {\n $this->view->assign('articles', $this->repository->findForListPlugin($this->settings, $this->getData()));\n }",
"public function index()\n {\n $prototypes = new PrototypeQuery(Prototype::query());\n\n return view('admin.products.prototypes.index', [\n 'prototypes' => $prototypes->paginate(request('perPage')),\n ]);\n }",
"public function getAll()\n {\n return $this->model->all();\n }",
"public function listAction() {\n\t\t$literatures = $this->literatureRepository->findAll();\n\t\t$this->view->assign('literatures', $literatures);\n\t}"
] | [
"0.65166676",
"0.59652364",
"0.5610468",
"0.5584291",
"0.55620974",
"0.555447",
"0.5552688",
"0.5493587",
"0.5407338",
"0.53776425",
"0.5341056",
"0.53306556",
"0.5326995",
"0.5321025",
"0.5319365",
"0.5304152",
"0.52863806",
"0.52820754",
"0.52600557",
"0.5253262",
"0.52474004",
"0.523667",
"0.52357703",
"0.52311516",
"0.5223486",
"0.521026",
"0.52036",
"0.5202356",
"0.5199277",
"0.5190598"
] | 0.7391532 | 0 |
Creates a new Snippets model. If creation is successful, the browser will be redirected to the 'view' page. | public function actionCreate() {
$model = new Snippets();
$model->created_by = \Yii::$app->user->getId();
$model->updated_by = \Yii::$app->user->getId();
if ($model->load(Yii::$app->request->post()) && $model->save()) {
return $this->redirect(['view', 'id' => $model->id]);
}
return $this->render('create', [
'model' => $model,
]);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function actionCreate()\n {\n $model = new Reviewquestions(); \n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->qid]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }",
"public function actionCreate() {\r\n $model = new QuestionSave();\r\n\r\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\r\n return $this->redirect(['view', 'id' => $model->id]);\r\n } else {\r\n return $this->render('create', [\r\n 'model' => $model,\r\n ]);\r\n }\r\n }",
"public function actionCreate()\n {\n $model = new Student();\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }",
"public function createAction()\n {\n $snippet = new Snippet();\n $request = $this->getRequest();\n $form = $this->createForm(new SnippetType(), $snippet);\n $form->bindRequest($request);\n\n if ( ! $form->isValid()) {\n return array(\n 'snippet' => $snippet,\n 'form' => $form->createView()\n );\n }\n\n $em = $this->getDoctrine()->getEntityManager();\n\n $entry = $em->find('FTCCodeBundle:CodeEntry', $this->getSession()->get('current_entry_id'));\n\n if ($entry === null) {\n throw new \\UnexpectedValueException(\"Corresponding Entry was not found.\");\n }\n\n $snippet->setEntry($entry);\n\n $user = $this->getUser();\n $snippet->setAuthor($user);\n\n $em->persist($snippet);\n $em->flush();\n\n $this->get('session')->getFlashBag()->add('success', 'The snippet ' . $snippet->getName() . ' was added successfully');\n\n if ($request->get('done') !== null ){\n return $this->redirect($this->generateUrl('entry_show', array('id' => $entry->getId())));\n }\n\n return $this->redirect($this->generateUrl('entry_snippet_new'));\n }",
"public function actionCreate()\n {\n $model = new StudentsInLesson();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'lesson_id' => $model->lesson_id, 'student_id' => $model->student_id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }",
"public function actionCreate()\n {\n $model = new Poll();\n\n if ($model->loadAll(Yii::$app->request->post()) && $model->saveAll()) {\n $this->assignTemplateAndReqiredQuestions($model);\n return $this->redirect(['update', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }",
"public function store(Request $request)\n {\n \n //Snippet::create($request->all());\n \n $formInput=$request->all();\n $user=Auth::user();\n \n $user->snippet()->create($formInput);\n //return redirect('/user_display/1');\n return redirect('/user_search');\n \n \n }",
"public function actionCreate() {\n $model = new Squibcard();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }",
"public function actionCreate()\n\t{\n\t\t\n\t\trequire_once('protected/views/listings/recaptchalib.php');\n\t\t$model=new Classifieds;\n\n\t\t// Uncomment the following line if AJAX validation is needed\n\t\t// $this->performAjaxValidation($model);\n\n\t\tif(isset($_POST['Classifieds']))\n\t\t{\n\t\t\t$model->attributes=$_POST['Classifieds'];\n\t\t\tif($model->save())\n\t\t\t\t$this->redirect(array('view','id'=>$model->id));\n\t\t}\n\n\t\t$this->render('create',array(\n\t\t\t'model'=>$model,\n\t\t));\n\t}",
"public function actionCreate()\n {\n $model = new Publikasi();\n \n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['index']);\n }\n\n return $this->render('create', [\n 'model' => $model,\n ]);\n }",
"public function actionCreate()\n\t{\n\t\t$model=new ModSlideShow;\n\n\t\t// Uncomment the following line if AJAX validation is needed\n\t\t// $this->performAjaxValidation($model);\n\n\t\tif(isset($_POST['ModSlideShow']))\n\t\t{\n\t\t\t$model->attributes=$_POST['ModSlideShow'];\n\t\t\t$model->slug = Post::createSlug($model->name);\n\t\t\tif(is_array($model->description)){\n\t\t\t\t$model->description = CJSON::encode($model->description);\n\t\t\t}\n\t\t\t$model->date_entry=date(c);\n\t\t\t$model->user_entry=Yii::app()->user->id;\n\t\t\tif($model->save())\n\t\t\t\t$this->redirect(array('view'));\n\t\t}\n\n\t\t$this->render('create',array(\n\t\t\t'model'=>$model,\n\t\t));\n\t}",
"public function actionCreate()\n {\n $model = new ClassstudentHasStudent();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'classstudent_cStuId' => $model->classstudent_cStuId, 'classstudent_subject_cId' => $model->classstudent_subject_cId, 'student_stuId' => $model->student_stuId]);\n }\n\n return $this->render('create', [\n 'model' => $model,\n ]);\n }",
"public function actionCreate()\n\t{\n\t\t$model = new SapItem;\n\t\t$model->insert_type = 1;\n\n\t\ttry {\n if ($model->load($_POST) && $model->save()) {\n return $this->redirect(Url::previous());\n } elseif (!\\Yii::$app->request->isPost) {\n $model->load($_GET);\n }\n } catch (\\Exception $e) {\n $msg = (isset($e->errorInfo[2]))?$e->errorInfo[2]:$e->getMessage();\n $model->addError('_exception', $msg);\n\t\t}\n return $this->render('create', ['model' => $model]);\n\t}",
"public function actionCreate()\n {\n $model = new Synchronization();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }",
"public function actionCreate()\n {\n $model = new QuestionsCategories();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['index']);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }",
"public function create()\n {\n $lists = Qualification::orderBy('id', 'desc')->get();\n \n // set page and title ------------------\n $page = 'qualification.add';\n $title = 'Add Qualification';\n $data = compact('page', 'title', 'lists');\n // return data to view\n return view('backend.layout.master', $data);\n }",
"public function actionCreate()\n {\n $model = new Gesprek();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['student', 'nummer' => $model->student->nummer]);\n }\n\n return $this->render('create', [\n 'model' => $model,\n ]);\n }",
"public function actionCreate() {\n $model = new StudentEvidence();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'taskId' => $model->task_id, 'projectId' => $model->project_id,\n 'evidenceId' => $model->evidence_id, 'studentId' => $model->student_id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }",
"public function actionCreate()\n {\n $model = new Dosen();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n }\n\n return $this->render('create', [\n 'model' => $model,\n ]);\n }",
"public function actionCreate()\n {\n $model = new Fields();\n\n if ($model->load(Yii::$app->request->post())){\n $model->stadiums_id = Yii::$app->user->identity->stadiums_id;\n\n if($model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n }\n }\n\n return $this->render('create', [\n 'model' => $model,\n ]);\n }",
"public function actionCreate()\n {\n $model = new SCCategories();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->categoryID]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }",
"public function create()\n {\n return view('insert');\n }",
"public function create()\n {\n return view('insert');\n }",
"public function actionCreate()\n {\n $model = new Konsultasi();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }",
"public function actionCreate() {\n $model = new EdocInsignia();\n $model->scenario = \"insert\";\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n }\n\n return $this->render('create', [\n 'model' => $model,\n ]);\n }",
"public function actionCreate()\n {\n $model = new Dosen();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->kd_dosen]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }",
"public function create()\n {\n\t\n\t\t \n\t\t\n\t\n return view('admin.review.create');\n }",
"public function actionCreate()\n {\n $modelClass = $this->modelClass;\n\n $element = new $modelClass;\n $element->load(\\Yii::$app->request->get());\n $this->_save($element);\n\n $this->_registerJs('create');\n $this->_registerJs('form');\n\n $viewData = $this->_getCreateData($element);\n return $this->render($this->_resolveView('create'), $viewData);\n }",
"public function actionCreate()\n {\n $model = new Books();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n $this->saveBookHistory($model);\n return $this->redirect(['view', 'id' => $model->id]);\n }\n\n return $this->render('create', [\n 'model' => $model,\n ]);\n }",
"public function create()\n {\n //\n\n\n return view('admin.question.addQuestion');\n }"
] | [
"0.66682845",
"0.660041",
"0.64090604",
"0.63932264",
"0.6354955",
"0.6285264",
"0.6241555",
"0.62271386",
"0.6135241",
"0.61159927",
"0.61033696",
"0.6102067",
"0.6100519",
"0.6090046",
"0.6089638",
"0.6052675",
"0.60471594",
"0.60316384",
"0.60299927",
"0.6020662",
"0.6018457",
"0.6003611",
"0.6003611",
"0.6001131",
"0.5996895",
"0.59943604",
"0.5981867",
"0.5979223",
"0.59791833",
"0.5978646"
] | 0.8595749 | 0 |
Finds the Snippets model based on its primary key value. If the model is not found, a 404 HTTP exception will be thrown. | protected function findModel($id) {
if (($model = Snippets::findOne($id)) !== null) {
return $model;
}
throw new NotFoundHttpException(Yii::t('app', 'The requested page does not exist.'));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function findBySLug($slug)\n {\n $record = $this->model->where('slug', $slug)->first();\n if ($record) {\n return $record;\n }\n throw new ModelNotFoundException();\n }",
"public function find($key): ?Model;",
"protected function findModel($id)\n {\n if (($model = Was27Inspek::findOne($id)) !== null) {\n return $model;\n } else {\n throw new NotFoundHttpException('The requested page does not exist.');\n }\n }",
"protected function findModel($item_id)\n\t{\n\t\tif (($model = SapItem::findOne($item_id)) !== null) {\n\t\t\treturn $model;\n\t\t} else {\n\t\t\tthrow new HttpException(404, 'The requested page does not exist.');\n\t\t}\n\t}",
"protected function findModel($id)\n {\n if (($model = LicensesDocumentsPage::findOne($id)) !== null) {\n return $model;\n }\n\n throw new NotFoundHttpException('The requested page does not exist.');\n }",
"public function loadModel($id) {\n $model = Spt::model()->findByPk($id);\n if ($model === null) {\n throw new CHttpException(404, Yii::t('trans', 'The requested page does not exist.'));\n }\n return $model;\n }",
"protected function findModel($id)\n {\n // if (($model = Student::findOne($id)) !== null) {\n if (($model = Student::find()->where(['slug' => $id])->one()) !== null) {\n return $model;\n }\n\n throw new NotFoundHttpException('The requested page does not exist.');\n }",
"protected function findModel($id)\n {\n if (($model = Sources::findOne($id)) !== null) {\n return $model;\n } else {\n throw new NotFoundHttpException('The requested page does not exist.');\n }\n }",
"protected function findModel($id) {\n if (($model = LkmStoryofchangeInterviewGuideTemplateQuestions::findOne($id)) !== null) {\n return $model;\n }\n\n throw new NotFoundHttpException('The requested page does not exist.');\n }",
"protected function findModel($id)\n {\n if (($model = ProcessFieldTemplate::findOne($id)) !== null) {\n return $model;\n } else {\n throw new NotFoundHttpException(Yii::t('app', 'The requested page does not exist.'));\n }\n }",
"protected function findModel($id)\n {\n if (($model = Blog::findOne($id)) !== null) {\n return $model;\n } else {\n Log::record(Log::DOCUMENTS, Log::WARNING, 'The requested page does not exist', 404, true);\n }\n }",
"public function loadModel($id)\n {\n $model=EmailTemplate::model()->with('layouts')->findByPk($id);\n if($model===null)\n throw new CHttpException(404,'The requested page does not exist.');\n return $model;\n }",
"public function loadModel($id) {\r\n $model = Documents::model()->findByPk($id);\r\n if ($model === null)\r\n throw new CHttpException(404, 'The requested page does not exist.');\r\n return $model;\r\n }",
"protected function findModel($id)\n {\n if (($model = ScreenTemplate::findOne($id)) !== null) {\n return $model;\n } else {\n throw new NotFoundHttpException(Yii::t('app', 'The requested template does not exist.'));\n }\n }",
"protected function findModel($id)\n {\n if (($model = Bucket::findOne($id)) !== null) {\n return $model;\n } else {\n throw new NotFoundHttpException(Yii::t('yii', 'Page not found.'));\n }\n }",
"private function findModel($id)\n {\n $model=Post::model()->findByPk($id);\n if($model===null)\n throw new CHttpException(404,'The requested page does not exist.');\n return $model;\n }",
"protected function findModel($id) {\n if (($model = Squibcard::findOne($id)) !== null) {\n return $model;\n } else {\n throw new NotFoundHttpException('The requested page does not exist.');\n }\n }",
"protected function findModel($id)\n {\n $this->layout='main';\n if (($model = OmDocuments::findOne($id)) !== null) {\n return $model;\n }\n throw new NotFoundHttpException('The requested page does not exist.');\n }",
"public function find($slug);",
"protected function findModel($id)\n {\n if (($model = WhItems::findOne($id)) !== null) {\n return $model;\n }\n\n throw new NotFoundHttpException('The requested page does not exist.');\n }",
"protected function findModel($id)\n {\n if (($model = sites::findOne($id)) !== null) {\n return $model;\n }\n\n throw new NotFoundHttpException('The requested page does not exist.');\n }",
"public function loadModel($id) {\n $model = Swift::model()->findByPk($id);\n if ($model === null)\n throw new CHttpException(404, 'The requested page does not exist.');\n return $model;\n }",
"public function loadModel($id)\n\t{\n\t\t$model=ItemsSource::model()->findByPk($id);\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}",
"protected function findModel($id)\n {\n if (($model = LibraryPocket::findOne($id)) !== null) {\n return $model;\n } else {\n throw new NotFoundHttpException('The requested page does not exist.');\n }\n }",
"public function loadModel($id) {\n $model = Scholarship::model()->findByPk($id);\n if ($model === null)\n throw new CHttpException(404, 'The requested page does not exist.');\n return $model;\n }",
"protected function findModel($id) {\n\t\tif (($model = ServiceMapping::findOne($id)) !== null) {\n\t\t\treturn $model;\n\t\t}\n\n\t\tthrow new NotFoundHttpException('The requested page does not exist.');\n\t}",
"public function find($primary);",
"public function loadByTag($tag)\n\t{\n\n\t\t//$model = Store::model()->with(array('users'=>array('condition'=>'school_id='.$id)))->findByPk($id);\n\t\t$model = Store::model()->findByAttributes(array('unique_identifier'=>$tag));\n\t\tif($model===null)\n\t\t\tthrow new CHttpException(404,'The requested page does not exist.');\n\t\treturn $model;\n\t}",
"protected function findModel($id)\n {\n if (($model = Template::findOne($id)) !== null) {\n return $model;\n } else {\n throw new NotFoundHttpException('The requested page does not exist.');\n }\n }",
"protected function findModel($id)\n {\n if (($model = Developer::findOne($id)) !== null) {\n return $model;\n } else {\n throw new NotFoundHttpException('The requested page does not exist.');\n }\n }"
] | [
"0.62371963",
"0.60273045",
"0.59619415",
"0.5893136",
"0.5868091",
"0.58311874",
"0.58085465",
"0.5790743",
"0.57833993",
"0.57687426",
"0.57616216",
"0.57581997",
"0.5755306",
"0.5754775",
"0.5752629",
"0.57440263",
"0.5741575",
"0.5739551",
"0.57257485",
"0.569511",
"0.568469",
"0.56846815",
"0.56833947",
"0.5674771",
"0.56618804",
"0.56593263",
"0.5649377",
"0.5638569",
"0.5632949",
"0.56257766"
] | 0.6935641 | 0 |
AJAX callback after reorder. | public function afterReorderCallback(array &$form, FormStateInterface $form_state) {
$input = $form_state->getUserInput();
$bo_view_dom_id = $input["bo_view_dom_id"];
$response = new AjaxResponse();
$response->addCommand(new HtmlCommand('.tabledrag-changed-warning', ''));
\Drupal::messenger()->addMessage($this->t('Order has changed successfully'), 'status', TRUE);
$message = [
'#theme' => 'status_messages',
'#message_list' => \Drupal::messenger()->all(),
];
$messages = \Drupal::service('renderer')->render($message);
$response->addCommand(new HtmlCommand('.result-message', $messages));
$response->addCommand(new HtmlCommand('#bo_operations_pane_' . $bo_view_dom_id, $form));
$response->addCommand(new SlideCommand("reorder", $bo_view_dom_id, 0));
$response->addCommand(new RefreshViewCommand($bo_view_dom_id));
return $response;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function order_ajax(){\n if (isset($_POST['sortable'])) {\n $this->membership_model->save_order($_POST['sortable']);\n }\n \n // Fetch all pages\n $this->data['pages'] = $this->membership_model->get_nested($this->data['content_language_id']);\n \n // Load view\n $this->load->view($this->_subView.'order_ajax', $this->data);\n }",
"public function order_ajax(){\n if (isset($_POST['sortable'])) {\n $this->service_model->save_order($_POST['sortable']);\n }\n \n // Fetch all pages\n $this->data['pages'] = $this->service_model->get_nested($this->data['content_language_id']);\n \n // Load view\n $this->load->view($this->_subView.'order_ajax', $this->data);\n }",
"public function order_ajax(){\n if (isset($_POST['sortable'])) {\n $this->excercise_model->save_order($_POST['sortable']);\n }\n \n // Fetch all pages\n $this->data['pages'] = $this->excercise_model->get_nested1($this->data['content_language_id']);\n \n // Load view\n $this->load->view($this->_subView.'order_ajax', $this->data);\n }",
"public function actionAjaxOrderBlocks()\n {\n $ordersJson = Yii::app()->request->getParam('orders');\n $orders = json_decode($ordersJson,true);\n\n $previous = $orders['old'];\n $new = $orders['new'];\n\n Sort::ReorderItems(\"ContactsBlock\",$previous,$new);\n\n echo \"OK\"; \n }",
"public function actionAjaxOrderPages()\n {\n $ordersJson = Yii::app()->request->getParam('orders');\n $orders = json_decode($ordersJson,true);\n\n $previous = $orders['old'];\n $new = $orders['new'];\n\n Sort::ReorderItems(\"ContactsPage\",$previous,$new);\n\n echo \"OK\";\n }",
"public function order_ajax() {\r\n if (isset($_POST['sortable'])) {\r\n $this->menu_model->save_order($_POST['sortable']);\r\n }\r\n //Fetch data by status=1\r\n $data = $this->menu_model->get_by(array('status' => 1));\r\n\r\n //Load multi array to library Recursive\r\n $this->data['menus'] = $this->recursive->get_nested($data);\r\n // Load view\r\n $this->load->view('backend/menu/order_ajax', $this->data);\r\n }",
"static function wp_ajax_reorder_images()\n\t\t{\n\t\t\t$field_id \t= isset( $_POST['field_id'] ) ? $_POST['field_id'] : 0;\n\t\t\t$order \t= isset( $_POST['order'] ) ? $_POST['order'] : 0;\n\t\t\t$post_id \t= is_numeric( $_REQUEST['post_id'] ) ? $_REQUEST['post_id'] : 0;\n\n\t\t\tcheck_ajax_referer( \"the7-mb-reorder-images_{$field_id}\" );\n\n\t\t\tparse_str( $order, $items );\n\t\t\t$items = array_map( 'absint', $items['item'] );\n\n\t\t\tupdate_post_meta( $post_id, $field_id, $items );\n\n\t\t\tThe7_RW_Meta_Box::ajax_response( _x( 'Order saved', 'image upload', 'the7mk2' ), 'success' );\n\t\t\texit;\n\t\t}",
"function orderChanged();",
"public function cms_reorder() {\n\t\t$this->autoRender = false;\n\t\tforeach($this->request->query['sortable'] as $k=>$v) {\n\t\t\t$this->Page->id = end(explode('row_',$v));\n\t\t\t$this->Page->set('position',$k);\n\t\t\t$this->Page->save();\n\t\t}\t\t\n\t}",
"function reorderList() {\r\n\t\t\r\n\t}",
"public function saveOrderAjax()\n\t{\n\t\t// Get the input\n\t\t$input = JFactory::getApplication()->input;\n\t\t$pks = $input->post->get('cid', array(), 'array');\n\t\t$order = $input->post->get('order', array(), 'array');\n\t\t// Sanitize the input\n\t\tJArrayHelper::toInteger($pks);\n\t\tJArrayHelper::toInteger($order);\n\t\t// Get the model\n\t\t$model = $this->getModel();\n\t\t// Save the ordering\n\t\t$return = $model->saveorder($pks, $order);\n\t\tif ($return)\n\t\t{\n\t\t\techo \"1\";\n\t\t}\n\t\t// Close the application\n\t\tJFactory::getApplication()->close();\n\t}",
"public function saveOrderAjax()\n {\n // Get the input\n $input = JFactory::getApplication()->input;\n $pks = $input->post->get('cid', array(), 'array');\n $order = $input->post->get('order', array(), 'array');\n\n // Sanitize the input\n ArrayHelper::toInteger($pks);\n ArrayHelper::toInteger($order);\n\n // Get the model\n $model = $this->getModel();\n\n // Save the ordering\n $return = $model->saveorder($pks, $order);\n\n if ($return) {\n echo \"1\";\n }\n\n // Close the application\n JFactory::getApplication()->close();\n }",
"public function reorder()\n\t{\n\t\tJSession::checkToken() or jexit(JText::_('JINVALID_TOKEN'));\n\n\t\t// Initialise variables.\n\t\t$ids = JRequest::getVar('cid', null, 'post', 'array');\n\t\t$inc = ($this->getTask() == 'orderup') ? -1 : +1;\n\n\t\t$model = $this->getModel('Gateway');\n\t\tif (!$model->reorder($ids, $inc)) {\n\t\t\t$msg = JText::sprintf('JLIB_APPLICATION_ERROR_REORDER_FAILED', $model->getError());\n\t\t} else {\n\t\t\t$msg = JText::_('JLIB_APPLICATION_SUCCESS_ITEM_REORDERED');\n\t\t}\n\n $this->setRedirect(FactoryRoute::view('gateways'), $msg);\n\t}",
"public function update_element_order()\n\t{\n\t\t// get the data\n\t\t$element_order = $this->input->get('element_order');\n\n\t\t// load the element model\n\t\t$this->load->model('admin/element_model');\n\n\t\t$this->element_model->update_element_order($element_order, $this->input->get('page_id'));\n\n\t\t$data['success'] = true;\n\n\t\t// return as ajax\n\t\t$this->_json_response($data);\n\t}",
"function xprofile_ajax_reorder_fields() {\n\n\t// Check the nonce\n\tcheck_admin_referer( 'bp_reorder_fields', '_wpnonce_reorder_fields' );\n\n\tif ( empty( $_POST['field_order'] ) )\n\t\treturn false;\n\n\tparse_str( $_POST['field_order'], $order );\n\n\t$field_group_id = $_POST['field_group_id'];\n\n\tforeach ( (array) $order['field'] as $position => $field_id ) {\n\t\txprofile_update_field_position( (int) $field_id, (int) $position, (int) $field_group_id );\n\t}\n}",
"function saveAjaxOrder() {\n\t\tglobal $wpdb;\n\t\t\n\t\tparse_str( $_POST['order'], $output );\n\t\tforeach( (array) $output as $key => $values ) {\n\t\t\tif ( $key == 'item' ) {\n\t\t\t\tforeach( $values as $position => $id ) {\n\t\t\t\t\t$wpdb->update( $wpdb->term_taxonomy, array( 'term_order' => $position, 'parent' => 0 ), array( 'term_taxonomy_id' => $id ), array( '%d' , '%d' ), array( '%d' ) );\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tforeach( $values as $position => $id ) {\n\t\t\t\t\t$parent_term_id = $wpdb->get_var( $wpdb->prepare(\"SELECT term_id FROM $wpdb->term_taxonomy WHERE term_taxonomy_id = %d\", str_replace( 'item_', '', $key )) );\n\t\t\t\t\t$wpdb->update( $wpdb->term_taxonomy, array( 'term_order' => $position, 'parent' => $parent_term_id ), array( 'term_taxonomy_id' => $id ), array( '%d' , '%d' ), array( '%d' ) );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public function saveOrderAjax(){\n\t\t\n\t\t$originalOrder = explode(',', $this->input->getString('original_order_values'));\n\n\t\t$model = $this->getModel(\"guruProgram\");\n\t\t// Save the ordering\n\t\t$return = $model->saveOrder();\n\t\tif ($return){\n\t\t\techo \"1\";\n\t\t}\n\t\t// Close the application\n\t\tJFactory::getApplication()->close();\n\t}",
"public function ajax_sortable_menus() {\n\t\t$model = 'Menu';\n\t\tif ( $this->request->is( 'post' ) ) {\n\t\t\t$this->loadModel($model);\n\n\t\t\tforeach( $_POST['SORTABLE_MENU'] as $order => $id ){\n\t\t\t\t\n\t\t\t\t$this->$model->id = $id;\n\t\t\t\t$this->$model->saveField('order',$order);\n\t\t\t}\t\n\t\t}\n\t\t\n\t}",
"public function reorder()\n {\n // Ensure the correct sidemenu is active\n BackendMenu::setContext('BenFreke.MenuManager', 'menumanager', 'reorder');\n\n $this->pageTitle = Lang::get('benfreke.menumanager::lang.menu.reordermenu');\n\n $toolbarConfig = $this->makeConfig();\n $toolbarConfig->buttons = '$/benfreke/menumanager/controllers/menus/_reorder_toolbar.htm';\n\n $this->vars['toolbar'] = $this->makeWidget('Backend\\Widgets\\Toolbar', $toolbarConfig);\n $this->vars['records'] = Menu::make()->getEagerRoot();\n }",
"function reOrder(){\n\t\tforeach($this->data[\"Item\"] as $id=>$posicion){\n\t\t\t$this->Service->id=$id;\n\t\t\t$this->Service->saveField(\"order\",$posicion);\n\t\t\t}\n\t\t\t\n\t\t\techo \"yes\";\n\t\t\tConfigure::write('debug', 0); \n\t\t\t$this->autoRender = false; \n\t\t\texit(); \n\t\t}",
"function reorderList() \r\n {\r\n return 'reorder';\r\n }",
"function complete_order_button_ajax() {\n global $wpdb;\n $oid_filter = $_POST['oid_filter'];\n complete_order($oid_filter, false);\n wp_die();\n}",
"public function update_ajax($filename = NULL)\n {\n if(isset($_POST['sortable']) && $this->config->item('app_type') != 'demo')\n {\n $this->service_model->save_order($_POST['sortable']);\n }\n \n $data = array();\n $length = strlen(json_encode($data));\n header('Content-Type: application/json; charset=utf8');\n header('Content-Length: '.$length);\n echo json_encode($data);\n \n exit();\n }",
"public function reorder() {\n $record = $this->getRecord();\n if(($record instanceof DataObject)\n && $record->hasMethod($this->getName())\n && $record->{$this->getName()}() instanceof RelationList\n ) {\n\n $relationList = $record->{$this->getName()}();\n $arrItems = reset($_POST);\n $sortColumn = $this->sort_column;\n $bManyMany = $relationList instanceof ManyManyList;\n\n //Start transaction if supported\n if(DB::getConn()->supportsTransactions()) {\n DB::getConn()->transactionStart();\n }\n\n if($bManyMany) {\n list($parentClass, $componentClass, $parentField, $componentField, $table) = $record->many_many($this->getName());\n } else {\n $modelClass = $record->has_many($this->getName());\n list($table, $baseDataClass) = $this->getRelationTables($modelClass, $sortColumn);\n }\n\n\n foreach($arrItems as $iID => $sort) {\n if($bManyMany) {\n DB::query('\n UPDATE \"' . $table . '\"\n SET \"' . $sortColumn.'\" = ' . $sort . '\n WHERE \"' . $componentField . '\" = ' . $iID . ' AND \"' . $parentField . '\" = ' . $record->ID\n );\n } else {\n DB::query('\n UPDATE ' . $table . '\n SET ' . $sortColumn . ' = ' . $sort . '\n WHERE ID = '. $iID\n );\n\n DB::query('\n UPDATE \"' . $baseDataClass . '\"\n SET \"LastEdited\" = \\'' . date('Y-m-d H:i:s') . '\\'' . '\n WHERE \"ID\" = '. $iID\n );\n }\n\n if($alItems = $this->items){\n if($item = $alItems->find('ID', $iID)){\n $item->{$sortColumn} = $sort;\n }\n }\n }\n\n //End transaction if supported\n if(DB::getConn()->supportsTransactions()) {\n DB::getConn()->transactionEnd();\n }\n }\n }",
"function reorder_items(){\n \n $this->data['items'] = $this->stock_items_model->get_items_reorder_level_limit();\n\n //$this->load->view('app/admin/dashboard/reorder_level', $this->data, false);\n\n }",
"static public function handle_ajax() {\n\t\tlib2()->array->equip_post( 'do', 'order' );\n\n\t\t$action = $_POST['do'];\n\n\t\tswitch ( $action ) {\n\t\t\tcase 'order':\n\t\t\t\t$order = explode( ',', $_POST['order'] );\n\t\t\t\tself::post_order( $order );\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\t/**\n\t\t\t\t * Allow other modules to handle their own ajax requests.\n\t\t\t\t *\n\t\t\t\t * @since 4.6.1.1\n\t\t\t\t */\n\t\t\t\tdo_action( 'popup-ajax-' . $action );\n\t\t\t\treturn;\n\t\t}\n\n\t\tdie();\n\t}",
"protected function processAjaxUpdateItemPositions()\n {\n $msg = '{\"error\"}';\n foreach (Tools::getValue('item') as $position => $ids) {\n $ids = explode('_', $ids); // $ids = ['tr', $id_slider, $id_item, $initial_position]\n $new = $position + (Tools::getValue('page', 0) - 1) * Tools::getValue('selected_pagination');\n if ($ids[2] !== Tools::getValue('id')) {\n continue;\n }\n if ($item = new Item($ids[2])) {\n $msg = $item->updatePosition($ids[1], Tools::getValue('way'), $ids[3], $new)\n ? '{\"success\": \"'.sprintf($this->l('Position of slide %1$d sucessfully updated to %2$d.'), $ids[2], $new).'\"}'\n : '{\"hasError\": true, \"errors\": \"'.sprintf($this->l('Can not update slide %1$d to position %2$d.'), $ids[2], $new).'\"}';\n } else {\n $msg = '{\"hasError\": true, \"errors\": \"'.sprintf($this->l('Slide %d can not be loaded.'), $ids[2]).'\"}';\n }\n }\n die($msg);\n }",
"public function update_nav_order()\n\t{\n\t\tif ($this->admin_navs_m->update_nav_order($this->input->post()))\n\t\t{\n\t\t\techo json_encode(['status' => 'true', 'msg' => 'Update Successful']);\n\t\t}\n\t\telse\n\t\t{\n\t\t\techo json_encode(['status' => 'false', 'msg' => 'Update Failed - refresh and try again.']);\n\t\t}\n\t\t\n\t}",
"public function updatePrioritiesAction()\n\t{\n\t\t// get ajax data\n\t\t$ids = $this->_getParam('item');\n\n\t\t// foreach id, loop through and update priority\n\t\tforeach ($ids as $priority => $id) {\n\n\t\t\t$model = new $this->_primaryModel;\n\t\t\t$row = $model->find($id)->current();\n\t\t\t$row->priority = $priority;\n\t\t\t$row->save();\n\t\t\t\n\t\t\t//$this->logInteraction($this->_primaryModel, $id, 'priority', $priority);\n\t\t}\n\n\t\t// use json helper to display view render\n\t\t$this->_helper->json(Zend_Json::encode(true));\n\t}",
"public function bulk_order(){\n $this->layout = 'ajax';\n if($this->request->is('post')){\n \n $val_arr=$this->request->data('ids');\n $arr_data=$this->request->data('datas');\n $model= $this->request->data('model'); \n $field=$this->request->data('field'); \n $val_arr=json_decode($val_arr); \n $arr_data= json_decode($arr_data); \n\n $this->loadmodel($model);\n foreach($val_arr as $k=>$val){\n $this->{$model}->id=$val;\n $this->{$model}->save(array($field=>$arr_data[$k]));\n }\n echo 1;\n }\n $this->render('ajax');\n }"
] | [
"0.70191556",
"0.70088935",
"0.685186",
"0.68049395",
"0.6794395",
"0.6751711",
"0.67461133",
"0.6721554",
"0.6714781",
"0.6517816",
"0.6507887",
"0.64660186",
"0.6436215",
"0.6421675",
"0.6381044",
"0.6373343",
"0.63435245",
"0.6327734",
"0.6181295",
"0.617139",
"0.6169265",
"0.61072314",
"0.6100654",
"0.60627085",
"0.6061245",
"0.60350066",
"0.59989846",
"0.59692353",
"0.5933291",
"0.59042853"
] | 0.74555 | 0 |
Defines which Tour a Trip belongs to('model','foreignkey') | public function tour(){
return $this->belongsTo('App\Tour','tour_no');
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function trip()\n {\n return $this->belongsTo('App\\Trip');\n }",
"public function trip()\n {\n return $this->belongsTo(Trip::class);\n }",
"public function tour()\n {\n return $this->belongsTo(Tour::class);\n }",
"public function tour()\n {\n return $this->hasMany('App\\Tour');\n }",
"public function trip() {\n\t\treturn $this->belongsTo('App\\TripLocations');\n\t}",
"public function ticket(): BelongsTo\n {\n return $this->belongsTo(Trip::class);\n }",
"public function trip()\n {\n return $this->hasOne('App\\Trip', 'passenger_id', 'id');\n }",
"public function trip()\n {\n return $this->belongsTo(Trip::class)->withDefault();\n }",
"public function trips()\n {\n return $this->belongsToMany('App\\Trips', 'destinations_trips', 'dest_id', 'trip_id');\n }",
"public function tripuser(){\n\t\treturn $this->belongsTo(Core\\Users::class,\"entry_by\");\n\t}",
"public function getTrips()\n {\n return $this->hasMany(Trip::className(), ['train_id' => 'id']);\n }",
"public function airportArrival(): BelongsTo {\n return $this->belongsTo(Airport::class, 'arriv_id');\n }",
"public function trips1()\n {\n return $this->hasMany(Trip::class, 'station1_id');\n }",
"public function tourist(){\n return $this->hasOne(Tourist::class, 'user_id') ;\n }",
"public function trips()\n {\n return $this->hasMany(Trip::class);\n }",
"public function model()\n {\n return Trip::class;\n }",
"protected function traveler() {\n return $this->belongsTo('TravelingChildrenProject\\Traveler');\n }",
"public function teeSet()\n {\n return $this->belongsTo('App\\TeeSet');\n }",
"public function wayPoints() {\n return $this->hasMany('App\\WayPoint');\n }",
"public function subtask(){\n\t\treturn $this->belongsTo('SubTask');\n\t}",
"public function userFavoriteTour() {\n return $this->belongsToMany('App\\Tour', 'user_favorite_tour', 'user_id', 'tour_id')\n ->withTimestamps();\n }",
"public function trips2()\n {\n return $this->hasMany(Trip::class, 'station2_id');\n }",
"public function train()\n {\n return $this->belongsTo(\\App\\Models\\Train::class);\n }",
"public function Tpoint()\n {\n return $this->belongsTo(Tpoint::class);\n }",
"public function transporte()\n {\n return $this->belongsTo('App\\Transporte');\n }",
"public function sotasks(){\n return $this->belongsTo(task::class,'task_id');\n }",
"public function arrival_station()\n {\n return $this->belongsTo(\\App\\Models\\Station::class, 'arrival_station_id');\n }",
"public function make()\n {\n \treturn $this->belongsTo(VehicleMake::class);\n }",
"public function plano()\n {\n return $this->belongsTo('App\\Plano');\n }",
"public function turma ()\n {\n return $this->belongsTo('App\\Models\\Painel\\Turma','id_turma','id');\n }"
] | [
"0.68219703",
"0.6792435",
"0.6786702",
"0.6655493",
"0.6617401",
"0.6439957",
"0.6203716",
"0.61813354",
"0.6159503",
"0.6076878",
"0.6075901",
"0.6012527",
"0.6006852",
"0.6002209",
"0.59796107",
"0.5958856",
"0.5889742",
"0.58573085",
"0.5854299",
"0.5852615",
"0.5843527",
"0.5825696",
"0.5814769",
"0.57936025",
"0.57717264",
"0.5761582",
"0.5745924",
"0.5742604",
"0.5740752",
"0.57210076"
] | 0.6966204 | 0 |
Get reviews for a particular trip | public function reviews(){
return $this->hasMany('App\Customer_Review','trip_id');
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getReviews();",
"public function getReviews();",
"public function getReviews() {\n if (!$this->reviews) {\n $this->reviews =\n CRUDApiMisc::getAllWherePropertyEquals(new PaperReviewApi(), 'paper_id', $this->getId())\n ->getResults();\n }\n\n return $this->reviews;\n }",
"public function getReviews()\n {\n if(!$this->reviews) {\n $services = bootstrap::getServiceManager();\n $scraper = $services->get('NetglueTripAdvisor\\Scraper');\n $scraper->setHtml($this->fixtureHtml);\n $this->reviews = $scraper->getReviews();\n }\n\n return $this->reviews;\n }",
"public function getReview();",
"public function getReview();",
"public function getReview();",
"public function getAllReviews_get()\n {\n /* code goes here */\n }",
"private function fetchReview(){\n\t\t\t$offset = ( isset($_GET['offset'] )) ? $_GET['offset'] : 0;\n\t\n\t\t\t$url = self::API_URL.\"&noOfReviews=\".self::ITEMS_PER_PAGE.\"&internal=1&yelp=1&google=1&offset=\".$offset.\"&threshold=1\";\n\n\t\t\t$review = file_get_contents($url);\n\n\t\t\treturn( $review );\n\t}",
"public function reviews_get()\n {\n\n // $token = $_SERVER['HTTP_TOKEN'];\n\n $p_id = $this->input->get('p_id');\n $pf_id = $this->input->get('pf_id');\n\n $data = array(\n\n 'status' => 0,\n\n 'code' => -1,\n\n 'msg' => 'Bad Request',\n\n 'data' => null\n\n );\n\n $getReviews = $this->Api_model->getReviews($p_id,$pf_id);\n\n if (isset($getReviews)) {\n\n $data = array(\n\n 'status' => 1,\n\n 'code' => 1,\n\n 'msg' => 'success',\n\n 'data' => $getReviews\n\n );\n\n }else{\n\n $data = array(\n\n 'status' => 1,\n\n 'code' => 1,\n\n 'msg' => 'success',\n\n 'data' => null\n\n );\n\n }\n\n $this->response($data, REST_Controller::HTTP_OK);\n\n }",
"public function show(Reviews $reviews)\n {\n //\n }",
"public function getReviews() \n\t{\n\t\t$ch = curl_init();\n\t\tcurl_setopt($ch, CURLOPT_URL, $this->url);\n\t\tcurl_setopt($ch, CURLOPT_HEADER, 0);\n\t\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\t\tcurl_setopt($ch, CURLOPT_TIMEOUT, 10);\n\t\t$output = curl_exec($ch);\n\t\tcurl_close($ch);\n\t\t\n\t\tpreg_match_all('/<a\\s+rel=\"nofollow\"\\s+itemprop=\"author\"\\s+title=\"go to (.*)\\s+profile\"\\s+href=\"\\/users\\/(.*)\">\\s+(.*)\\s+<\\/a>/', $output, $rating_author);\n\t\tpreg_match_all('/<meta\\s+itemprop=\"ratingValue\"\\s+content=\"(.*)\"\\s+\\/>/', $output, $author_rating);\n\t\tpreg_match_all('/<time\\s+datetime=\"(.*)\"\\s+class=\"ndate\"\\s+title=\"(.*)\"\\s+>/', $output, $rating_date);\n\t\tpreg_match_all('/<h3\\s+itemprop=\"headline\"\\s+class=\"review-title\\s+(.*)\\s+h4\">\\s+<a\\s+rel=\"nofollow\"\\s+href=\"(.*)\">(.*)<\\/a>\\s+<\\/h3>/', $output, $rating_title);\n\t\tpreg_match_all('/<div\\s+itemprop=\"reviewBody\"\\s+class=\"review-body\">\\s+(.*)\\s+<\\/div>/', $output, $rating_body);\n\n\t\tforeach ($rating_author[1] as $key => $value) {\n\t\t\t$return[] = [\n\t\t\t\t\"id\" => $rating_author[2][$key],\n\t\t\t\t\"name\" => $value,\n\t\t\t\t\"rating\" => $author_rating[1][$key],\n\t\t\t\t\"time\" => $rating_date[2][$key],\n\t\t\t\t\"title\" => $rating_title[3][$key],\n\t\t\t\t\"body\" => $rating_body[1][$key]\n\t\t\t];\n\t\t}\n\n\t\treturn $return;\n\t}",
"public function getReviews()\n {\n return $this->hasMany(Reviews::className(), ['user_id' => 'id']);\n }",
"public function __construct(Review $review, Trip $trip)\n {\n $this->review = $review;\n $this->trip = $trip;\n }",
"function getCustomerReview()\n {\n $customerId = auth()->guard('customer')->user()->id;\n\n $reviews = $this->model->where(['customer_id'=> $customerId])->with('product')->get();\n\n return $reviews;\n }",
"private function getReviews() {\n $database = \\Drupal::service('database');\n return $database\n ->select('quest_book', 'qb')\n ->fields('qb',\n ['id', 'name', 'tel_number',\n 'email', 'review_text', 'created', 'avatar', 'image_review',\n ])\n ->condition('id', 0, '<>')\n ->orderBy('created', 'DESC')\n ->execute()->fetchAll();\n }",
"public function reviews() {\n\t\t// pass reviews to view\n\t}",
"public function query_reviews() {\n\t\tglobal $post;\n\n\t\tremove_action( 'pre_get_comments', array( $this, 'hide_reviews' ) );\n\t\tremove_filter( 'comments_clauses', array( $this, 'hide_reviews_from_comment_feeds_compat' ), 10, 2 );\n\t\tremove_filter( 'comment_feed_where', array( $this, 'hide_reviews_from_comment_feeds' ), 10, 2 );\n\n\t\t$reviews = get_comments( array(\n\t\t\t'post_id' => $post->ID,\n\t\t\t'type' => 'edd_review',\n\t\t\t'meta_query' => array(\n\t\t\t\t'relation' => 'AND',\n\t\t\t\t'relation' => 'AND',\n\t\t\t\tarray(\n\t\t\t\t\t'key' => 'edd_review_approved',\n\t\t\t\t\t'value' => '1',\n\t\t\t\t\t'compare' => '='\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'key' => 'edd_review_approved',\n\t\t\t\t\t'value' => 'spam',\n\t\t\t\t\t'compare' => '!='\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'key' => 'edd_review_approved',\n\t\t\t\t\t'value' => 'trash',\n\t\t\t\t\t'compare' => '!='\n\t\t\t\t)\n\t\t\t)\n\t\t) );\n\n\t\tadd_action( 'pre_get_comments', array( $this, 'hide_reviews' ) );\n\t\tadd_filter( 'comments_clauses', array( $this, 'hide_reviews_from_comment_feeds_compat' ), 10, 2 );\n\t\tadd_filter( 'comment_feed_where', array( $this, 'hide_reviews_from_comment_feeds' ), 10, 2 );\n\n\t\treturn $reviews;\n\t}",
"public function reviews()\n {\n return $this->hasMany(Review::class, 'user_id', 'id');\n }",
"public function reviewindex()\n {\n //\n $data = review::all();\n return $data;\n }",
"public function reviews()\n {\n return $this->hasMany('App\\Models\\Review')->orderBy('created_at', 'DESC');\n }",
"public function index(Tour $tour)\n {\n return ReviewSource::collection($tour->reviews()->where('spam', 0)->orderBy('created_at', 'desc')->paginate(10));\n }",
"public function reviews()\n {\n $reviews = array();\n $apiUrl = $this->getApiUrl();\n $serialized = $this->call($apiUrl);\n $elements = unserialize($serialized);\n\n if (sizeof($elements ) > 0) { \n $i = 0;\n foreach($elements as $element) {\n $reviews[$i]['rating'] = (int)$element['bewertung'];\n $reviews[$i]['comment'] = trim($element['meinung']);\n $reviews[$i]['date'] = date(DATE_ATOM);\n $reviews[$i]['reply'] = '';\n $reviews[$i]['product_article'] = (int)$element['produkt_id'];\n $reviews[$i]['provider'] = self::REVIEW_PROVIDER;\n $i++;\n }\n }\n\n return $reviews;\n }",
"public function reviews() {\n return $this->hasMany(Review::class, 'user_id')->orderBy('id', 'DESC');\n }",
"public function reviews()\n {\n return $this->hasMany('App\\Models\\Review', 'product_id', 'id');\n }",
"public function reviews()\n {\n return $this->hasMany('App\\Review');\n }",
"public function show(Trip $trip)\n {\n //\n }",
"public function show(Trip $trip)\n {\n //\n }",
"public function reviewsService()\n {\n return $this->hasMany(ReviewService::class);\n }",
"public function trip_rating(Request $request) \n\t{\n $user_details = JWTAuth::parseToken()->authenticate();\n\n\t\t$rules = array(\n\t\t\t'user_type' => 'required|in:Rider,rider,Driver,driver',\n\t\t\t'rating' => 'required',\n\t\t\t'trip_id' => 'required',\n\t\t);\n\n\t\t$validator = Validator::make($request->all(), $rules);\n\n\t\tif($validator->fails()) {\n return [\n 'status_code' => '0',\n 'status_message' => $validator->messages()->first()\n ];\n }\n\t\t$user = User::where('id', $user_details->id)->first();\n\n\t\t$trips = Trips::where('id', $request->trip_id)->first();\n\n\t\tif($user == '') {\n\t\t\treturn response()->json([\n\t\t\t\t'status_code'\t => '0',\n\t\t\t\t'status_message' => __('messages.invalid_credentials'),\n\t\t\t]);\n\t\t}\n\n\t\t$rating = Rating::where('trip_id', $request->trip_id)->first();\n\t\t$user_type = strtolower($request->user_type);\n\n\t\tif ($user_type == 'rider') {\n\t\t\t$data = [\n\t\t\t\t'trip_id' => $request->trip_id,\n\t\t\t\t'user_id' => $trips->user_id,\n\t\t\t\t'driver_id' => $trips->driver_id,\n\t\t\t\t'rider_rating' => $request->rating,\n\t\t\t\t'rider_comments' => @$request->rating_comments != '' ? $request->rating_comments : '',\n\t\t\t];\n\n\t\t\tRating::updateOrCreate(['trip_id' => $request->trip_id], $data);\n\t\t}\n\t\telse {\n\t\t\t$data = [\n\t\t\t\t'trip_id' => $request->trip_id,\n\t\t\t\t'user_id' => $trips->user_id,\n\t\t\t\t'driver_id' => $trips->driver_id,\n\t\t\t\t'driver_rating' => $request->rating,\n\t\t\t\t'driver_comments' => @$request->rating_comments != '' ? $request->rating_comments : '',\n\t\t\t];\n\t\t\tRating::updateOrCreate(['trip_id' => $request->trip_id], $data);\n\t\t}\n\n\t\t$trip = Trips::where('id', $request->trip_id)->first();\n\n\t\tif(!in_array($trip->status,['Rating','Payment'])) {\n\t\t\treturn response()->json([\n\t\t\t\t'status_code' => '2',\n\t\t\t\t'status_message' => __('messages.api.trip_already_completed'),\n\t\t\t]);\n\t\t}\n\t\t$trip->status = 'Payment';\n\n\t\tif($user_type == 'rider') {\n\t\t\t$currency_code = $user_details->currency->code;\n\t\t\t$tips \t\t= currencyConvert($currency_code, $trip->getOriginal('currency_code'),$request->tips);\n\t\t\t$trip->tips = $tips;\n\t\t}\n\n\t\t$trip->save();\n\n\t\tif($trip->pool_id>0) {\n\n\t\t\t$pool_trip = PoolTrip::with('trips')->find($trip->pool_id);\n\t\t\t$trips = $pool_trip->trips->whereIn('status',['Scheduled','Begin trip','End trip','Rating'])->count();\n\t\t\t\n\t\t\tif(!$trips) {\n\t\t\t\t// update status\n\t\t\t\t$pool_trip->status = 'Payment';\n\t\t\t\t$pool_trip->save();\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn response()->json([\n\t\t\t'status_code' => '1',\n\t\t\t'status_message' => \"Rating successfully\",\n\t\t]);\n\t}"
] | [
"0.68931365",
"0.68931365",
"0.64392245",
"0.634242",
"0.62730134",
"0.62730134",
"0.62730134",
"0.62421805",
"0.6229965",
"0.6217819",
"0.61700714",
"0.61580694",
"0.6122032",
"0.61126643",
"0.61058974",
"0.6013093",
"0.6005235",
"0.5937481",
"0.5920879",
"0.5889542",
"0.58611715",
"0.58450025",
"0.5769302",
"0.5757197",
"0.5756916",
"0.57515717",
"0.5727767",
"0.5727767",
"0.5707737",
"0.5699702"
] | 0.6895726 | 0 |
Register the Laravel Auth migration files. | protected function registerMigrations(): void
{
if (LaravelAuth::$runsMigrations) {
$this->loadMigrationsFrom(__DIR__.'/../database/migrations');
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private function registerMigrations()\n {\n if ($this->app->runningInConsole() && $this->shouldMigrate()) {\n $this->loadMigrationsFrom(__DIR__.'/Storage/migrations');\n }\n }",
"function up() {\n\t\t\\Config::load ( 'auth', true );\n\t\t\n\t\t$drivers = \\Config::get ( 'auth.driver', array () );\n\t\tis_array ( $drivers ) or $drivers = array (\n\t\t\t\t$drivers \n\t\t);\n\t\t\n\t\tif (in_array ( 'Ormauth', $drivers )) {\n\t\t\t// get the tablename\n\t\t\t\\Config::load ( 'ormauth', true );\n\t\t\t$table = \\Config::get ( 'ormauth.table_name', 'users' );\n\t\t\t\n\t\t\t// table users_role\n\t\t\t\\DBUtil::create_table ( $table . '_roles', array (\n\t\t\t\t\t'id' => array (\n\t\t\t\t\t\t\t'type' => 'int',\n\t\t\t\t\t\t\t'constraint' => 11,\n\t\t\t\t\t\t\t'auto_increment' => true \n\t\t\t\t\t),\n\t\t\t\t\t'name' => array (\n\t\t\t\t\t\t\t'type' => 'varchar',\n\t\t\t\t\t\t\t'constraint' => 255 \n\t\t\t\t\t),\n\t\t\t\t\t'filter' => array (\n\t\t\t\t\t\t\t'type' => 'enum',\n\t\t\t\t\t\t\t'constraint' => \"'', 'A', 'D'\",\n\t\t\t\t\t\t\t'default' => '' \n\t\t\t\t\t),\n\t\t\t\t\t'user_id' => array (\n\t\t\t\t\t\t\t'type' => 'int',\n\t\t\t\t\t\t\t'constraint' => 11,\n\t\t\t\t\t\t\t'default' => 0 \n\t\t\t\t\t),\n\t\t\t\t\t'created_at' => array (\n\t\t\t\t\t\t\t'type' => 'int',\n\t\t\t\t\t\t\t'constraint' => 11,\n\t\t\t\t\t\t\t'default' => 0 \n\t\t\t\t\t),\n\t\t\t\t\t'updated_at' => array (\n\t\t\t\t\t\t\t'type' => 'int',\n\t\t\t\t\t\t\t'constraint' => 11,\n\t\t\t\t\t\t\t'default' => 0 \n\t\t\t\t\t) \n\t\t\t), array (\n\t\t\t\t\t'id' \n\t\t\t) );\n\t\t\t\n\t\t\t// table users_role_perms\n\t\t\t\\DBUtil::create_table ( $table . '_role_permissions', array (\n\t\t\t\t\t'role_id' => array (\n\t\t\t\t\t\t\t'type' => 'int',\n\t\t\t\t\t\t\t'constraint' => 11 \n\t\t\t\t\t),\n\t\t\t\t\t'perms_id' => array (\n\t\t\t\t\t\t\t'type' => 'int',\n\t\t\t\t\t\t\t'constraint' => 11 \n\t\t\t\t\t) \n\t\t\t), array (\n\t\t\t\t\t'role_id',\n\t\t\t\t\t'perms_id' \n\t\t\t) );\n\t\t}\n\t}",
"protected function registerMigrations()\n {\n $this->loadMigrationsFrom(__DIR__.'/../database/migrations');\n }",
"protected function registerMigrations()\n {\n if (LaravelSubscription::$runsMigrations && $this->app->runningInConsole()) {\n $this->loadMigrationsFrom(__DIR__.'/../database/migrations');\n }\n }",
"private function registerMigrations()\n {\n if ($this->app->runningInConsole()) {\n $this->loadMigrationsFrom(__DIR__.'/Database/Migrations');\n }\n }",
"private function registerMigrations()\n {\n if ($this->app->runningInConsole()) {\n $this->loadMigrationsFrom(dirname(__DIR__) . '/database/migrations');\n }\n }",
"protected function registerMigrations()\n {\n $this->loadMigrationsFrom(__DIR__ . '/../../migrations');\n }",
"protected function registerMigrations()\n {\n if (version_compare($this->app->version(), '5.3.0', '>=')) {\n $this->loadMigrationsFrom($this->packagePath('database/migrations'));\n } else {\n $this->publishes(\n [$this->packagePath('database/migrations') => database_path('/migrations')],\n 'migrations'\n );\n }\n }",
"protected function bootMigrations()\n {\n $this->loadMigrationsFrom($path = $this->getMigrationsPath());\n $this->publishes([\n $path => database_path('migrations'),\n ], 'attract-core-kit-auth-migrations');\n }",
"public function up() {\n\n Schema::create('users', function($table) {\n $table -> increments('id');\n $table -> string('username', 64) -> unique();\n $table -> string('password', 64);\n $table -> string('email', 128) -> unique();\n $table -> string('access', 128) -> nullable();\n $table -> blob('data');\n $table -> timestamps();\n });\n /*\n if(Config::get('database.default') == 'sqlite'){\n $sql = \"CREATE TRIGGER users_insert_time AFTER INSERT ON users BEGIN UPDATE users SET creaded_at = datetime('NOW','UTC') WHERE rowid = last_insert_rowid(); END; \";\n $sql .= \"CREATE TRIGGER users_update_time AFTER UPDATE ON users BEGIN UPDATE users SET updated_at = datetime('NOW','UTC') WHERE rowid = last_insert_rowid(); END;\";\n $success = DB::query($sql);\n }\n */\n $user = Config::get('laravel.username', 'admin');\n $pass = Config::get('laravel.password', '1234');\n\n DB::table('users') -> insert(array('username' => $user, 'password' => Hash::make($pass)));\n }",
"protected function registerMigrations()\n {\n return $this->loadMigrationsFrom(__DIR__.'/migrations');\n }",
"public function boot(): void\n {\n $this->loadTranslationsFrom(__DIR__.'/../lang', 'laravel-auth');\n\n if ($this->app->runningInConsole()) {\n $this->publishes([__DIR__.'/../config/laravel-auth.php' => config_path('laravel-auth.php')], 'laravel-auth-package');\n $this->publishes([__DIR__.'/../lang' => $this->languagePath('vendor/laravel-auth')], 'laravel-auth-package');\n\n $this->registerMigrations();\n }\n }",
"public function up()\n {\n Schema::create('users', function (Blueprint $table) {\n $table->increments('id');\n $table->string('name');\n $table->string('email')->unique();\n $table->boolean('approved')->default(false);\n $table->timestamp('email_verified_at')->nullable();\n $table->string('password');\n $table->rememberToken();\n $table->dateTime('last_login')->nullable();\n $table->dateTime('last_logout')->nullable();\n $table->timestamps();\n });\n $this->addAdminUser();\n }",
"public function boot()\n {\n if (config('lighthouse-graphql-passport.migrations')) {\n $this->loadMigrationsFrom(__DIR__.'/../../migrations');\n }\n }",
"public function up()\n\t{\n\t\tSchema::create('registrations', function($table)\n\t\t{\n\t\t $table->increments('id');\n\t\t $table->string('device_id', 100);\n\t\t $table->string('pass_type', 100);\n\t\t $table->string('serial_number', 100);\n\t\t $table->timestamps();\n\t\t $table->index('device_id');\n\t\t $table->index('serial_number');\n\t\t $table->foreign('device_id')->references('device_id')->on('devices')->on_delete('cascade')->on_update('cascade');\n\t\t $table->foreign('serial_number')->references('serial_number')->on('passes')->on_delete('cascade')->on_update('cascade');\n\t\t});\n\t}",
"public function up()\n {\n Schema::create('password_resets', function (Blueprint $table) {\n $table->string('email')->index();\n $table->string('token')->index();\n $table->timestamp('created_at')->default(DB::raw('CURRENT_TIMESTAMP'));\n });\n }",
"private function registerMigrations() {\n\t\t$register = ghostdar( MigrationsRegister::class );\n\t\t$register->addMigration( CreateSightingsTable::class );\n\t}",
"public function up()\n\t{\n\t\tSchema::create('sys_admin', function($table)\n {\n $table->increments('id');\n $table->string('name', 200);\n $table->string('username', 32)->unique();\n $table->string('password', 64);\n $table->string('credential', 32);\n $table->timestamps();\n });\t}",
"public static function installAuth(): void \n {\n static::install(); \n static::scaffoldAuth();\n static::updateSassBackend();\n static::updateBootstrappingAuth();\n }",
"protected function loadRegisteredMigrations()\n {\n $this->artisan('migrate');\n\n $this->beforeApplicationDestroyed(function () {\n $this->artisan('migrate:rollback');\n });\n }",
"public function up()\n {\n Schema::create('users', function (Blueprint $table) {\n $table->increments('id');\n $table->string('name');\n $table->string('last_name');\n $table->string('identificator')->unique()->nullable();\n $table->string('email')->unique()->nullable();\n $table->timestamp('email_verified_at')->nullable();\n $table->string('password')->nullable();\n $table->string('avatar')->default('user.jpg');\n $table->integer('account_type')->nullable();\n $table->boolean('subscription_status')->default(false);\n $table->boolean('trial_version_status')->default(true);\n $table->rememberToken();\n $table->timestamps();\n });\n }",
"public function boot()\n {\n $this->loadMigrationsFrom(__DIR__.'/database/migrations');\n }",
"public function up()\n\t{\n\t\tSchema::create('users', function($table)\n\t\t{\n\t\t\t$table->increments('id');\n\t\t\t$table->integer('group_id')->default('0');\n\t\t\t$table->string('uuid', 36)->unique();\n\t\t\t$table->string('username', 50)->unique();\n\t\t\t$table->string('avatar_first_name', 50);\n\t\t\t$table->string('avatar_last_name', 50);\n\t\t\t$table->string('hash', 50);\n\t\t\t$table->string('salt', 50);\n\t\t\t$table->string('password', 255);\n\t\t\t$table->string('email', 255);\n\t\t\t$table->string('status', 20)->default('active');\n\t\t\t$table->boolean('is_core')->default('0');\n\t\t \t$table->timestamps();\n\t\t});\n\t}",
"public function boot()\n { \n $this->loadMigrationsFrom(__DIR__.'/../database/migrations');\n $this->mergeConfigFrom(__DIR__.'/../config/database-localization.php', 'database-localization'); \n }",
"public function boot()\n {\n $this->publishes([\n __DIR__ . '/database/migrations/' => base_path('/database/migrations')\n ]);\n Blade::directive('ifUserIs', function($expression){\n return \"<?php if (Auth::check() && Auth::user()->hasRole({$expression})): ?>\";\n });\n Blade::directive('ifUserCan', function($expression){\n return \"<?php if (Auth::check() && Auth::user()->canDo({$expression})): ?>\";\n });\n }",
"protected function registerMigrations()\n {\n if (Zpay::shouldRunMigrations()) {\n return $this->loadMigrationsFrom(__DIR__.'/../../database/migrations');\n }\n }",
"private function bootAuthRoutes(): void\n {\n $this->loadRoutesFrom(__DIR__ . '/../routes/auth.php');\n }",
"public function boot()\n {\n\n\n $this->publishes([\n __DIR__.'/2018_03_13_143619_oauth2migration.php' => base_path().'/database/migrations/2018_03_13_143619_oauth2migration.php',\n ],'oauth2_migration');\n }",
"public function boot()\n {\n $this->loadMigrationsFrom([\n realpath(__DIR__ . '/../database/migrations')\n ]);\n }",
"public function boot()\n {\n view()->composer('*', 'App\\Composers\\AuthComposer');\n\n //custom validator\n validator()->extend('name', function ($attribute, $value, $parameters, $validator) {\n return preg_match('/^[a-zA-Z]+(([\\',. -][a-zA-Z ])?[a-zA-Z.]*)*$/i', $value);\n });\n\n validator()->extend('company', function ($attribute, $value, $parameters, $validator) {\n return preg_match(\"/^[.@&]?[a-zA-Z0-9 ]+[ !.@&()]?[ a-zA-Z0-9!()]+/\", $value);\n });\n\n validator()->extend('address', function ($attribute, $value, $parameters, $validator) {\n return preg_match('/^\\d+\\s[A-z]+\\s[A-z]+/i', $value);\n });\n\n// validator()->extend('base64image', function ($attribute, $value, $parameters, $validator) {\n// try {\n// ImageManagerStatic::make($value);\n// return true;\n// } catch (\\Exception $e) {\n// info($e->getMessage());\n// return false;\n// }\n// });\n }"
] | [
"0.6758169",
"0.6742506",
"0.6689445",
"0.66799295",
"0.66300005",
"0.65390444",
"0.6464601",
"0.64555246",
"0.6413924",
"0.6397014",
"0.6297063",
"0.6286222",
"0.62033254",
"0.61529803",
"0.61361444",
"0.6077687",
"0.606886",
"0.6033204",
"0.60222465",
"0.6003261",
"0.59981865",
"0.5979788",
"0.59786075",
"0.59132886",
"0.5912972",
"0.590309",
"0.5902871",
"0.5901015",
"0.5887912",
"0.58742887"
] | 0.79822814 | 0 |
Get achievability from results and set it to corresponding goal | public function setAchievability($goals, $results) {
$fullGoals = [];
if (!empty($results) && !empty($goals)) {
foreach ($goals as $index => $goal_item) {
if (!empty($goal_item)) {
foreach ($goal_item as $key => $item) {
foreach ($results as $resultItem) {
if ($item[ 'id' ] == $resultItem[ 'id' ]) {
$item[ 'achievability' ] = $resultItem[ 'achievability' ];
$goal_item[ $key ] = $item;
}
}
}
$fullGoals[ $index ] = $goal_item;
}
}
}
return $fullGoals;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function zg_ai_set_bot_goals_results($bot, array $goals, array $results) {\n zg_ai_save_bot_goals($bot, $goals);\n if (!zg_ai_save_bot_results($bot, $results)) {\n zg_ai_out('Egads! FAILURE when trying to save bot results!!!');\n }\n}",
"public function getAchievements() { return $this->Achievements; }",
"public function achievements()\n {\n return $this->has_many_and_belongs_to('Achievement');\n }",
"public function getGoal() {\n return $this->goal;\n }",
"public function achievements ( $player, $game) {\n\t\t$url = $this->api_url.\"/json/achievements/\".$game.\"/\".urlencode($player);\n\t\t$object = self::_request($url);\n\t\tif(!is_object($object) || ($object->Success != 1 && $object->Success != false)){\n\t\t\treturn FALSE;\n\t\t}\n\t\tif(isset($object->Game->Progress->LastPlayed)){\n\t\t\t\t$object->Game->Progress->LastPlayed = str_replace(\"/Date(\", \"\", str_replace(\")/\", \"\", $object->Game->Progress->LastPlayed));\n\t\t}\n\t\tforeach ($object->Achievements as $key => &$achievement) {\n\t\t\tif(isset($achievement->EarnedOn)){\n\t\t\t\t$achievement->EarnedOn = str_replace(\"/Date(\", \"\", str_replace(\")/\", \"\", $achievement->EarnedOn));\n\t\t\t}\n\t\t}\n\t\treturn $object;\n\t}",
"public function getGoalsAgainstAttribute()\n {\n $goals = [];\n foreach ($this->matches as $match) {\n if ($match->teams[0]->id != $this->id) {\n $goals[] = $match->teams[0]->pivot->goals;\n } else {\n $goals[] = $match->teams[1]->pivot->goals;\n }\n }\n\n return array_sum($goals);\n }",
"public function getGoalsForAttribute()\n {\n foreach ($this->matches as $match) {\n $goals[] = $match->pivot->goals;\n }\n\n return array_sum($goals);\n }",
"private function getAvailableGoals() {\r\n $goals = array();\r\n\r\n if (is_numeric($this->goalid) && $this->goalid > 0) {\r\n $goals[0] = array(\r\n 'id' => $this->goalid,\r\n 'type' => $this->goaltype,\r\n );\r\n }\r\n\r\n if ($this->goaltype == GOAL_TYPE_COMBINED) {\r\n $query = $this->db->select('collection_goal_id, type')\r\n ->from('collection_goals')\r\n ->where('landingpage_collectionid', $this->project)\r\n ->where('type != ', GOAL_TYPE_COMBINED)\r\n ->get();\r\n\r\n if ($query->num_rows() > 0) {\r\n $goals = array();\r\n foreach ($query->result() as $q) {\r\n $goals[] = array(\r\n 'id' => $q->collection_goal_id,\r\n 'type' => $q->type,\r\n );\r\n }\r\n }\r\n }\r\n\r\n return $goals;\r\n }",
"public function getNextAvailableAchievementsAttribute(): Collection\n {\n // Using window functions from MySQL 8\n // Partition achievements by type and select only first record from group\n $query = Achievement::select([\n 'id',\n 'name',\n 'count',\n 'achievable_type',\n DB::raw('ROW_NUMBER() OVER(PARTITION BY achievable_type ORDER BY count ASC) AS row_num'),\n ])->whereDoesntHave('users', fn($query) => $query->where('id', $this->id));\n\n return DB::table($query)\n ->select(['id', 'name', 'count', 'achievable_type'])\n ->where('row_num', 1) // Filter first rows in groups\n ->get();\n }",
"function calculate_reward($AI_type, $AI_contribution, $target_contribution, $ECU_available) {\n elseif ($AI_type == \"lazy\") {\n $reward = 0;\n if (($target_contribution - $AI_contribution) <= -6) {\n $reward = rand(-8, -14);\n }\n elseif (($target_contribution - $AI_contribution) <= -3) {\n $reward = rand(-2, -6);\n }\n elseif (($target_contribution - $AI_contribution) <= 3 && ($target_contribution - $AI_contribution) >= -3) {\n $reward = 0;\n }\n elseif (($target_contribution - $AI_contribution) >= 3) {\n $reward = rand(6, 10);\n }\n elseif (($target_contribution - $AI_contribution) >= 6) {\n $reward = rand(12, 16);\n }\n }\n //normal AI. Rewards and Punishes\n elseif ($AI_type == \"normal\") {\n if (($target_contribution - $AI_contribution) <= -6) {\n $reward = rand(-6, -8);\n }\n elseif (($target_contribution - $AI_contribution) <= -3) {\n $reward = rand(-2, -4);\n }\n elseif (($target_contribution - $AI_contribution) <= 3 && ($target_contribution - $AI_contribution) >= -3) {\n $reward = 0;\n }\n elseif (($target_contribution - $AI_contribution) >= 3) {\n $reward = rand(2, 4);\n }\n elseif (($target_contribution - $AI_contribution) >= 6) {\n $reward = rand(4, 10);\n }\n }\n //mean AI. Only punishes\n elseif ($AI_type == \"mean\") {\n if (($target_contribution - $AI_contribution) <= -6) {\n $reward = rand(-8, -14);\n }\n elseif (($target_contribution - $AI_contribution) <= -3) {\n $reward = rand(-2, -6);\n }\n elseif (($target_contribution - $AI_contribution) > -3) {\n $reward = 0;\n }\n }\n else {\n throw new Exception(\"AI Type not recognized/contributions are wrong\");\n }\n\n if ($reward > $ECU_available) {\n return $ECU_available;\n }\n else{\n return $reward;\n }\n }",
"public function trigger_ability($target_robot, $this_ability){\n global $db;\n\n // Update this robot's history with the triggered ability\n $this->history['triggered_abilities'][] = $this_ability->ability_token;\n\n // Define a variable to hold the ability results\n $this_ability->ability_results = array();\n $this_ability->ability_results['total_result'] = '';\n $this_ability->ability_results['total_actions'] = 0;\n $this_ability->ability_results['total_strikes'] = 0;\n $this_ability->ability_results['total_misses'] = 0;\n $this_ability->ability_results['total_amount'] = 0;\n $this_ability->ability_results['total_overkill'] = 0;\n $this_ability->ability_results['this_result'] = '';\n $this_ability->ability_results['this_amount'] = 0;\n $this_ability->ability_results['this_overkill'] = 0;\n $this_ability->ability_results['this_text'] = '';\n $this_ability->ability_results['counter_criticals'] = 0;\n $this_ability->ability_results['counter_affinities'] = 0;\n $this_ability->ability_results['counter_weaknesses'] = 0;\n $this_ability->ability_results['counter_resistances'] = 0;\n $this_ability->ability_results['counter_immunities'] = 0;\n $this_ability->ability_results['counter_coreboosts'] = 0;\n $this_ability->ability_results['flag_critical'] = false;\n $this_ability->ability_results['flag_affinity'] = false;\n $this_ability->ability_results['flag_weakness'] = false;\n $this_ability->ability_results['flag_resistance'] = false;\n $this_ability->ability_results['flag_immunity'] = false;\n\n // Reset the ability options to default\n $this_ability->target_options_reset();\n $this_ability->damage_options_reset();\n $this_ability->recovery_options_reset();\n\n // Determine how much weapon energy this should take\n $temp_ability_energy = $this->calculate_weapon_energy($this_ability);\n\n // Decrease this robot's weapon energy\n $this->robot_weapons = $this->robot_weapons - $temp_ability_energy;\n if ($this->robot_weapons < 0){ $this->robot_weapons = 0; }\n $this->update_session();\n\n // Default this and the target robot's frames to their base\n $this->robot_frame = 'base';\n $target_robot->robot_frame = 'base';\n\n // Default the robot's stances to attack/defend\n $this->robot_stance = 'attack';\n $target_robot->robot_stance = 'defend';\n\n // If this is a copy core robot and the ability type does not match its core\n $temp_image_changed = false;\n $temp_ability_type = !empty($this_ability->ability_type) ? $this_ability->ability_type : '';\n $temp_ability_type2 = !empty($this_ability->ability_type2) ? $this_ability->ability_type2 : $temp_ability_type;\n if (!empty($temp_ability_type) && $this->robot_base_core == 'copy'){\n $this->robot_image_overlay['copy_type1'] = $this->robot_base_image.'_'.$temp_ability_type.'2';\n $this->robot_image_overlay['copy_type2'] = $this->robot_base_image.'_'.$temp_ability_type2.'3';\n $this->update_session();\n $temp_image_changed = true;\n }\n\n // Copy the ability function to local scope and execute it\n $this_ability_function = $this_ability->ability_function;\n $this_ability_function(array(\n 'this_battle' => $this->battle,\n 'this_field' => $this->field,\n 'this_player' => $this->player,\n 'this_robot' => $this,\n 'target_player' => $target_robot->player,\n 'target_robot' => $target_robot,\n 'this_ability' => $this_ability\n ));\n\n\n // If this robot's image has been changed, reveert it back to what it was\n if ($temp_image_changed){\n unset($this->robot_image_overlay['copy_type1']);\n unset($this->robot_image_overlay['copy_type2']);\n $this->update_session();\n }\n\n // DEBUG DEBUG DEBUG\n // Update this ability's history with the triggered ability data and results\n $this_ability->history['ability_results'][] = $this_ability->ability_results;\n // Update this ability's history with the triggered ability damage options\n $this_ability->history['ability_options'][] = $this_ability->ability_options;\n\n // Reset the robot's stances to the base\n $this->robot_stance = 'base';\n $target_robot->robot_stance = 'base';\n\n // Update internal variables\n $target_robot->update_session();\n $this_ability->update_session();\n\n\n // -- CHECK ATTACHMENTS -- //\n\n // If this robot has any attachments, loop through them\n if (!empty($this->robot_attachments)){\n //$this->battle->events_create(false, false, 'DEBUG_'.__LINE__, 'checkpoint has attachments');\n $temp_attachments_index = $db->get_array_list(\"SELECT * FROM mmrpg_index_abilities WHERE ability_flag_complete = 1;\", 'ability_token');\n foreach ($this->robot_attachments AS $attachment_token => $attachment_info){\n\n // Ensure this ability has a type before checking weaknesses, resistances, etc.\n if (!empty($this_ability->ability_type)){\n\n // If this attachment has weaknesses defined and this ability is a match\n if (!empty($attachment_info['attachment_weaknesses'])\n && (in_array($this_ability->ability_type, $attachment_info['attachment_weaknesses'])\n || in_array($this_ability->ability_type2, $attachment_info['attachment_weaknesses']))\n ){\n //$this->battle->events_create(false, false, 'DEBUG_'.__LINE__, 'checkpoint weaknesses');\n // Remove this attachment and inflict damage on the robot\n unset($this->robot_attachments[$attachment_token]);\n $this->update_session();\n if ($attachment_info['attachment_destroy'] !== false){\n $temp_ability = rpg_ability::parse_index_info($temp_attachments_index[$attachment_info['ability_token']]);\n $attachment_info = array_merge($temp_ability, $attachment_info);\n $temp_attachment = rpg_game::get_ability($this->battle, $this->player, $this, $attachment_info);\n $temp_trigger_type = !empty($attachment_info['attachment_destroy']['trigger']) ? $attachment_info['attachment_destroy']['trigger'] : 'damage';\n //$this_battle->events_create(false, false, 'DEBUG', 'checkpoint has attachments '.$attachment_token.' trigger '.$temp_trigger_type.'!');\n //$this_battle->events_create(false, false, 'DEBUG', 'checkpoint has attachments '.$attachment_token.' trigger '.$temp_trigger_type.' info:<br />'.preg_replace('/\\s+/', ' ', htmlentities(print_r($attachment_info['attachment_destroy'], true), ENT_QUOTES, 'UTF-8', true)));\n if ($temp_trigger_type == 'damage'){\n $temp_attachment->damage_options_update($attachment_info['attachment_destroy']);\n $temp_attachment->recovery_options_update($attachment_info['attachment_destroy']);\n $temp_attachment->update_session();\n $temp_damage_kind = $attachment_info['attachment_destroy']['kind'];\n if (isset($attachment_info['attachment_'.$temp_damage_kind])){\n $temp_damage_amount = $attachment_info['attachment_'.$temp_damage_kind];\n $temp_trigger_options = array('apply_modifiers' => false);\n $this->trigger_damage($target_robot, $temp_attachment, $temp_damage_amount, false, $temp_trigger_options);\n }\n } elseif ($temp_trigger_type == 'recovery'){\n $temp_attachment->recovery_options_update($attachment_info['attachment_destroy']);\n $temp_attachment->damage_options_update($attachment_info['attachment_destroy']);\n $temp_attachment->update_session();\n $temp_recovery_kind = $attachment_info['attachment_destroy']['kind'];\n if (isset($attachment_info['attachment_'.$temp_recovery_kind])){\n $temp_recovery_amount = $attachment_info['attachment_'.$temp_recovery_kind];\n $temp_trigger_options = array('apply_modifiers' => false);\n $this->trigger_recovery($target_robot, $temp_attachment, $temp_recovery_amount, false, $temp_trigger_options);\n }\n } elseif ($temp_trigger_type == 'special'){\n $temp_attachment->target_options_update($attachment_info['attachment_destroy']);\n $temp_attachment->recovery_options_update($attachment_info['attachment_destroy']);\n $temp_attachment->damage_options_update($attachment_info['attachment_destroy']);\n $temp_attachment->update_session();\n //$this->trigger_damage($target_robot, $temp_attachment, 0, false);\n $this->trigger_target($target_robot, $temp_attachment, array('canvas_show_this_ability' => false, 'prevent_default_text' => true));\n }\n }\n // If this robot was disabled, process experience for the target\n if ($this->robot_status == 'disabled'){\n break;\n }\n }\n\n }\n\n }\n }\n\n // Update internal variables\n $target_robot->update_session();\n $this_ability->update_session();\n\n // Return the ability results\n return $this_ability->ability_results;\n }",
"public function setAchievements($steamId, $dB)\r\n {\r\n\r\n $appId = $this->getAppId();\r\n\r\n $achievementURL = 'http://api.steampowered.com/ISteamUserStats/GetPlayerAchievements/v0001/?appid=' . $appId . '&key=1DE926993382D94F844F42DD076A24BB&steamid=' . $steamId;\r\n $achievementData = curl_connect($achievementURL);\r\n $achievementOut = json_decode($achievementData);\r\n\r\n $achievementCount = 0;\r\n $hasAchieved = 0;\r\n\r\n foreach ($achievementOut->playerstats as $categories) {\r\n foreach ($categories as $achievements) {\r\n $apiname = $achievements->apiname;\r\n $achieved = $achievements->achieved;\r\n $achievementCount++;\r\n if ($achieved == 1) {\r\n $boolAchieved = true;\r\n $hasAchieved++;\r\n } else {\r\n $boolAchieved = false;\r\n }\r\n $achResult = mysqli_query($dB, \"INSERT INTO achievement(apiname)\r\n VALUES ('$apiname')\");\r\n\r\n $achId = mysqli_query($dB, \"SELECT achievement_id FROM achievement \r\n WHERE apiname LIKE '%$apiname%' LIMIT 1\")->fetch_object()->achievement_id;\r\n\r\n $achGame = mysqli_query($dB, \"INSERT INTO game_achievement(app_id, achievement_id)\r\n VALUES ('$appId','$achId')\");\r\n\r\n $achAppLink = mysqli_query($dB, \"INSERT INTO user_achievement(user_id, achievement_id, achieved)\r\n VALUES ('$steamId','$achId','$boolAchieved')\");\r\n }\r\n }\r\n $gameCompletionPercent = $hasAchieved / $achievementCount * 100;\r\n return $gameCompletionPercent;\r\n }",
"public function achievements()\n\t{\n\t\treturn $this->has_many('Achievement');\n\t}",
"public function onGoal(SimulationMatch $match, SimulationPlayer $scorer, SimulationPlayer $goaly);",
"public function getHomeImprovement()\n {\n return $automotive = HomeImprovement::when(Auth::user()->type!='admin',function($q){\n $q->where('user_id',Auth::user()->id);\n })->orderBy('id', 'desc')->get();\n }",
"function zg_ai_get_TYPE_goals($bot, $type, $default) {\n $meta = $bot->meta;\n if (substr($meta, 0, 3) == 'ai_') {\n $meta = substr($meta, 3);\n }\n\n $goals = zg_get_default('ai_' . $meta . '_' . $type . '_goals');\n\n if ($goals === FALSE) {\n zg_ai_out('Specialize this AI \"' . $meta . '\" by adding a game_default for key ' .\n '\"ai_' . $meta . '_' . $type . '_goals\"', 'Suggestion');\n $goals = zg_get_default('ai_' . $type . '_goals');\n }\n\n if ($goals === FALSE) {\n zg_ai_out('Set AI \"' . $type . '\" behavior by adding a game_default for key ' .\n '\"ai_' . $type . '_goals\".', 'Suggestion');\n $goals = $default;\n zg_ai_out($goals, 'Generic ' . $type . ' goals');\n }\n\n return $goals;\n}",
"public function setProgressToAchiever($achiever, $curso_id, $points);",
"private function check_achievements($user_id)\n {\n $games = DB::table('games_history')->where('user_id', '=', $user_id)->where('game_id', '=', 2)->count();\n $achievement = false;\n\n switch ($games) {\n case 1:\n $achievement = DB::table('achievements')->where('link', '=', 'badges/speakabout1.png')->get();\n break;\n case 10:\n $achievement = DB::table('achievements')->where('link', '=', 'badges/speakabout10.png')->get();\n break;\n case 25:\n $achievement = DB::table('achievements')->where('link', '=', 'badges/speakabout25.png')->get();\n break;\n case 50:\n $achievement = DB::table('achievements')->where('link', '=', 'badges/speakabout50.png')->get();\n break;\n case 100:\n $achievement = DB::table('achievements')->where('link', '=', 'badges/speakabout100.png')->get();\n break;\n }\n\n if ($achievement) {\n $id = $achievement[0]->id;\n $user = User::find($user_id);\n $user->achievements()->attach($id);\n\n $return = ['link' => $achievement[0]->link, 'title' => $achievement[0]->title];\n return $return;\n } else {\n return false;\n }\n }",
"function game_achievements ( $app_id ) {\n $query = GET_ACHIEVES . $app_id;\n// $stmt = $mysqli->prepare( GET_ACHIEVES );\n // $stmt->bind_param(\"s\"\n $result = mysql_query ( $query ) or die( \"Query Failed \" . mysql_error() );\n \n if( !$result ){\n echo \"<p><i>No achievements... yet</i></p>\";\n return;\n }\n // Print out achievements \n echo \"<ul>\";\n while( $a = mysql_fetch_array( $result, MYSQL_ASSOC )){\n echo \"<li>\";\n echo \"<a href='\" . ACHIEVEMENT . $a['title'] . \"&app=\". $this->app . \"'>\";\n echo \"<div class='achievement' id='\" . $a['title'] . \"'>\";\n echo \"<h3>\" . $a['title'] . \" \";\n echo \"<span id='point'>\" . $a['score'] . \" Points</span></h3>\";\n echo \"<p>\" . $a['description'] . \"</p>\";\n echo \"</div>\";\n echo \"</a>\";\n echo \"</li>\";\n }\n\n echo \"</ul>\";\n return;\n }",
"public function getGuildAchievements($resultAsArray = false)\r\n {\r\n return $this->request(new GuildAchievementsCall())->getData($resultAsArray);\r\n }",
"public function isAchieved() {\r\n\t\treturn (bool) $this->getProperty(\"achieved\");\r\n\t}",
"public function testAssistAndGoals($items, $expected) {\n\t\t$this->Player->assist($items['assists']);\n\t\t$this->Player->score($items['goals']);\n\t\t$output = $this->Player->goalCount();\n\t\t$this->assertEquals(\n\t\t\t$expected,\n\t\t\t$output,\n\t\t\t\"The player should have {$expected} goals\"\n\t\t);\n\t}",
"function findAchievements ( PDO $pdo, $id ){\n $sql = \"SELECT u.*, uA.*, a.*\nFROM user as u\nINNER JOIN userAchiev as uA\nON u.id = uA.user_id\nINNER JOIN achievements as a\nON uA.achiev_id = a.a_user_id\nWHERE u.id = :id;\";\n $stmt = $pdo->prepare($sql);\n $stmt->bindParam( ':id', $id, PDO::PARAM_INT );\n $stmt->execute();\n $results = [];\n while( $row = $stmt->fetchObject() ){\n $results[] = $row;\n }\n return $results;\n}",
"public function getCharacterAchievements($resultAsArray = false)\r\n {\r\n return $this->request(new CharacterAchievementsCall())->getData($resultAsArray);\r\n }",
"public function achievements ( $gamertag = FALSE, $game_id = FALSE )\n {\n if ( !$gamertag || !$game_id )\n return FALSE;\n\n return $this->fetch_data(\n $gamertag, // gamertag we wish to lookup\n 'achievements', // type of lookup\n $game_id // game id to lookup against\n );\n }",
"function score()\n {\n access::ensure(\"scoring\");\n $achid = vsql::retr(\"SELECT id FROM achievements WHERE deleted = 0 AND \" . vsql::id_condition($_REQUEST[\"id\"], \"ground\"));\n insider_achievements::score(array_keys($achid));\n }",
"public function parseAchievements()\r\n\t\t{\r\n\t\t\t$ID = $this->getID();\r\n\r\n\t\t\tif (!$ID)\r\n\t\t\t{\r\n\t\t\t\techo \"error: No ID Set.\";\t\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\t// Loop through categories\r\n\t\t\t\tforeach($this->AchievementCategories as $Category)\r\n\t\t\t\t{\r\n\t\t\t\t\t// Get the source\r\n\t\t\t\t\t$x = $this->getSource($this->URL['character']['profile'] . $ID . $this->URL['character']['achievement'] .'category/'. $Category .'/');\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Create a new character object\r\n\t\t\t\t\t$Achievements = new Achievements();\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Get Achievements\r\n\t\t\t\t\t$Achievements->set($this->findAll('achievement_area_body', NULL, 'bt_more', false));\r\n\t\t\t\t\t$Achievements->setPoints($this->findRange('total_point', 10));\r\n\t\t\t\t\t$Achievements->setCategory($Category);\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Append character to array\r\n\t\t\t\t\t$this->Achievements[$ID][$Category] = $Achievements;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}",
"public function setProgressToAchiever($achiever, $points): void;",
"function zg_ai_fetch_bot_goals($bot, $default = []) {\n return zg_get_value($bot, 'ai_goals', $default);\n}",
"protected function _updateResult()\n\t{\n\t\tif ($this->hasResult()) {\n\t\t\t$scoringtype = $this->getGame()->getScoringtype();\n\t\t\tif (!class_exists($scoringtype)) {\n\t\t\t\tthrow new Exception(\"$scoringtype class does not exist\");\n\t\t\t}\n\t\t\t$scoreobj = new $scoringtype;\n\t\t\tif ($scoreobj instanceof Model_VictoryCondition_Abstract) {\n\t\t\t\t$results = $scoreobj->getStandings($this->_participantList);\n\t\t\t\tforeach ($results as $row) {\n\t\t\t\t\t$p = $row['participant'];\n\t\t\t\t\tif ($p instanceof Model_Participant) {\n\t\t\t\t\t\t$p->setResult($row['result']);\n\t\t\t\t\t\t$p->setDraw($row['draw']);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthrow new Exception(\"found non Model_Participant in returned standings from $scoringtype\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tthrow new Exception(\"$scoringtype is not an instance of Model_VictoryCondition_Abstract\");\n\t\t\t}\n\t\t}\n\t}"
] | [
"0.582066",
"0.56252927",
"0.5414267",
"0.5276337",
"0.5234333",
"0.5217686",
"0.5174779",
"0.51387334",
"0.5124644",
"0.5123296",
"0.5071065",
"0.5066486",
"0.5061854",
"0.5061284",
"0.5043854",
"0.5038327",
"0.499228",
"0.4989352",
"0.4928306",
"0.49250627",
"0.49230638",
"0.49052107",
"0.48815212",
"0.48662892",
"0.48651415",
"0.4862433",
"0.4804709",
"0.479894",
"0.47899196",
"0.47641453"
] | 0.71480745 | 0 |
Create the table [$this>tableName] if the table do not exists | public function createTable(){
if ($result = $GLOBALS['mysql']->query("SHOW TABLES LIKE '".$this->tableName."'")) {
if($result->num_rows != 1) {
return $this->create();
} else {
return "Tabelle existiert!";
}
} else {
return false;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function createTable($tableName, $arrayOfFields){\n // This function will check if the table exists and create the table if it is not present\n // It will execute an SQL statement to generate the table in the database\n }",
"public function createTable($tableName);",
"public function create_table()\n {\n }",
"public function createTable() {\n\t\ttrigger_error('You have to overwrite Uwr1resultsModel::createTable()', E_USER_ERROR);\n\t\texit;\n\t}",
"public function tableExists($_tableName);",
"function createTable () {\n\t\t$this->_dbDriver->query ($this->_sqlCreator->CreateTableSQL ($this));\n\t}",
"function createTable($table)\n\t{\n\t\tif (!file_exists($this->getPathToTableFile($table))) {\n\t\t\tfile_put_contents($this->getPathToTableFile($table), \"\");\n\t\t\treturn \"Table '\".$table.\"' successfully created.\";\n\t\t}\n\t}",
"public function createTable($tableName) {\n\t\treturn $this->schema->createTable($this->connection->getPrefix() . $tableName);\n\t}",
"public function prepareTable()\r\n {\r\n $driver = $this->db->getDriver();\r\n $tableExistsSql = sprintf($this->checkTableSqls[$driver], $this->table);\r\n if ($this->checkTable && !$this->db->fetchColumn($tableExistsSql)) {\r\n $createTableSql = sprintf($this->createTableSqls[$driver], $this->table);\r\n $this->db->executeUpdate($createTableSql);\r\n }\r\n }",
"function ensureContactsTable(){\n if($this->connection){\n // create table if it doesn't exist.\n $table = $this->getTableConstant();\n $query_createTable = \"CREATE TABLE IF NOT EXISTS $table (\n `id` INT(5) NOT NULL PRIMARY KEY AUTO_INCREMENT,\n `firstName` VARCHAR(50) NOT NULL,\n `lastName` VARCHAR(50) NOT NULL,\n `address` VARCHAR(50) NOT NULL,\n `zip` INT(10) NOT NULL,\n `city` VARCHAR(50) NOT NULL,\n `email` VARCHAR(50) NOT NULL\n )\";\n // prepare the statement\n $statement = $this->connection->prepare($query_createTable);\n // execute the query\n $statement->execute();\n }\n }",
"protected function createDbTable()\r\n {\r\n }",
"public function tableExists($name);",
"function tableExists($table) {\n\t\t $this->connection->execute(\"DROP TABLE IF EXISTS `$table``\");\n\t }",
"public function createTable() {\r\n $sql = 'CREATE TABLE IF NOT EXISTS ' . PREFIX . $this->_tableName . ' (';\r\n foreach ($this->getFields() as $name => $field) {\r\n $sqlField = $field->sqlModel();\r\n if ($sqlField != FALSE)\r\n $sql .= $sqlField . ',';\r\n }\r\n $sql = substr($sql, 0, -1) . ') ENGINE=MyISAM DEFAULT CHARSET=utf8;';\r\n return (bool) PDOconnection::getDB()->exec($sql);\r\n }",
"function ensureAlbumsTable(){\n if($this->connection){\n // TODO create table if it doesn't exist.\n }\n }",
"abstract protected function createTable();",
"public function checkTableExists( $table );",
"public function createTable()\r\n {\r\n // create table if doesnt exsist\r\n $sql = \"CREATE TABLE IF NOT EXISTS users (\r\n id INT(11) AUTO_INCREMENT PRIMARY KEY,\r\n username VARCHAR(255) NOT NULL,\r\n password VARCHAR(255) NOT NULL,\r\n firstname VARCHAR(255) NOT NULL,\r\n lastname VARCHAR(255) NOT NULL,\r\n email VARCHAR(255) NOT NULL UNIQUE,\r\n uploads VARCHAR(255) NULL\r\n )\";\r\n\r\n // use exec() because no results are returned\r\n try {\r\n $this->conn->exec($sql);\r\n } catch (PDOException $e) {\r\n echo $e->getMessage();\r\n }\r\n\r\n }",
"function table($name,$cols){\r\n //return $this->query('select 1 from '.$name.' limit 1');\r\n $q=@$this->query('CREATE TABLE IF NOT EXISTS '.$name.' ('.$this->convert_cols($cols).');');\r\n return $q;\r\n}",
"public function initTable()\n {\n\n // If table not exist ,create the table\n $tableExist = $this->db->query(\"SHOW TABLES LIKE '{$this->table}'\")->execute();\n\n if (!$tableExist) {\n $sql = \"CREATE TABLE `$this->table` (\n `{$this->idCol}` VARBINARY(128) NOT NULL PRIMARY KEY,\n `{$this->dataCol}` BLOB NOT NULL,\n `{$this->lifetimeCol}` MEDIUMINT NOT NULL,\n `{$this->timeCol}` INTEGER UNSIGNED NOT NULL\n ) COLLATE utf8_bin, ENGINE = InnoDB;\";\n\n $result = $this->db->query($sql)->execute();\n\n $tableExist = $this->db->query(\"SHOW TABLES LIKE '{$this->table}'\")->execute();\n\n // Check table creation result, if not throw error\n if (!$tableExist) {\n throw new Exception('Fail to create database session table');\n }\n }\n }",
"protected function _createTables() {\n // to be used lower down the inheritance chain to create the table(s)\n }",
"public function tableExists(): bool\n {\n return Schema::hasTable($this->tableName);\n }",
"public function create() {\n\t\t$connection = TableLoader::connectSQL();\n $query = SQLConverterHelper::buildCreateTable($this->_table, $this->getFields());\n if ($connection->query($query) === TRUE) {\n return true;\n } else {\n echo \"Error creating table: \" . $connection->error;\n return false;\n }\n\t}",
"protected function createTable() {\n\t\t$columns = array(\n\t\t\t\t'id'\t=>\t'pk',\n\t\t\t\t'title'\t=>\t'string',\n\t\t\t\t'description'\t=>\t'text',\n\t\t);\n\t\t$this->getDbConnection()->createCommand(\n\t\t\t\t$this->getDbConnection()->getSchema()->createTable($this->tableName(), $columns)\n\t\t)->execute();\n\t}",
"protected static function createTable(): void\n {\n try {\n self::$client->describeTable(['TableName' => self::$tableName]);\n return;\n } catch (DynamoDbException $e) {\n // table doesn't exist, create it below\n }\n\n self::$client->createTable([\n 'TableName' => self::$tableName,\n 'AttributeDefinitions' => [\n ['AttributeName' => 'id', 'AttributeType' => 'S'],\n ],\n 'KeySchema' => [\n ['AttributeName' => 'id', 'KeyType' => 'HASH'],\n ],\n 'ProvisionedThroughput' => [\n 'ReadCapacityUnits' => 5,\n 'WriteCapacityUnits' => 5,\n ],\n ]);\n\n self::$client->waitUntil('TableExists', ['TableName' => self::$tableName]);\n }",
"public function tableExists($tableName) : bool;",
"function SqliteCheckTableExistsOtherwiseCreate(&$dbh,$name,$createSql)\n{\n\t$exists = SqliteCheckTableExists($dbh,$name);\n\t//echo $name.\" \".$exists.\"\\n\";\n\tif($exists) return;\n\t//echo $createSql.\"\\n\";\n\n\t$ret = $dbh->exec($createSql);\n\tif($ret===false) {$err= $dbh->errorInfo();throw new Exception($createSql.\",\".$err[2]);}\n}",
"abstract protected function _autoCreateTable();",
"function create_table($tableName) {\n\t\tglobal $conn;\n\t\t\n\t\t$query = \"CREATE TABLE $tableName (\n\t\t\tchecked TINYINT(1) DEFAULT 0,\n\t\t\tfull_name VARCHAR(40) CHARACTER SET utf8,\n\t\t\tPRIMARY KEY (full_name)\n\t\t\t);\";\n\t\t\t\n\t\t$result = mysqli_query($conn, $query);\n\t\t\n\t\tif (!$result) {\n\t\t\tdie (\"Table creation failed: \" . mysqli_error($conn));\n\t\t}\n\t}",
"protected function ensureVersionTableExists(){\n\t\t\tif($this->TableExists(static::VERSION_TABLE_NAME) === false){\n\t\t\t\t$this->CreateTable(static::VERSION_TABLE_NAME, new ColDefs(\n\t\t\t\t\tnew ColumnDefinition(\n\t\t\t\t\t\tstatic::COLUMN_VERSION,\n\t\t\t\t\t\tarray( 'Type' => ColumnType::Text, 'Size' => 100 )\n\t\t\t\t\t),\n\t\t\t\t\tnew ColumnDefinition(\n\t\t\t\t\t\tstatic::COLUMN_NAME,\n\t\t\t\t\t\tarray( 'Type' => ColumnType::Text, 'Size' => 100 )\n\t\t\t\t\t)\n\t\t\t\t), new IndexDefs);\n\t\t\t}\n\t\t}"
] | [
"0.77127343",
"0.73181486",
"0.6929203",
"0.68989015",
"0.68735844",
"0.6843585",
"0.6840234",
"0.6793535",
"0.67772377",
"0.6768681",
"0.6765701",
"0.67228144",
"0.6720687",
"0.6689722",
"0.66664046",
"0.665481",
"0.6643212",
"0.6621511",
"0.66103995",
"0.65884924",
"0.6571143",
"0.65655345",
"0.65577006",
"0.655155",
"0.6528321",
"0.65238714",
"0.65232813",
"0.65172374",
"0.6510069",
"0.6490434"
] | 0.7327072 | 1 |
Return value from table by id if $id = 'all' it will return all from table. | public function selectAllFromTableById($id = 'all'){
$sql = 'SELECT * FROM `'.$this->tableName.'` WHERE `'.$this->tableName.'ID` = '.$id;
if($id == 'all'){
$sql = 'SELECT * FROM `'.$this->tableName.'`';
}
$result = $GLOBALS['mysql']->query($sql);
if ($result->num_rows > 0) {
$returnData = [];
while($row = $result->fetch_assoc()) {
array_push($returnData,$row);
}
return $returnData;
} else {
return false;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function ambil_data_id($id)\n\t\t{\n\t\t\t$this->db->where($this->id,$id);\n\t\t\treturn $this->db->get($this->nama_table)->row();\n\t\t}",
"function get_by_id($id){\n $q = $this->db->query(\"select * from \".$this->table_name.\" where id = '\".$id.\"'\");\n return $q->row();\n }",
"function get_by_id($id)\n {\n $this->db->where($this->id, $id);\n return $this->db->get($this->table)->row();\n }",
"function get_by_id($id)\n {\n $this->db->where($this->id, $id);\n return $this->db->get($this->table)->row();\n }",
"function get_by_id($id)\n {\n $this->db->where($this->id, $id);\n return $this->db->get($this->table)->row();\n }",
"function get_by_id($id)\n {\n $this->db->where($this->id, $id);\n return $this->db->get($this->table)->row();\n }",
"function get_by_id($id)\n {\n $this->db->where($this->id, $id);\n return $this->db->get($this->table)->row();\n }",
"function get_by_id($id)\n {\n $this->db->where($this->id, $id);\n return $this->db->get($this->table)->row();\n }",
"function get_by_id($id)\n {\n $this->db->where($this->id, $id);\n return $this->db->get($this->table)->row();\n }",
"function get_by_id($id)\n {\n $this->db->where($this->id, $id);\n return $this->db->get($this->table)->row();\n }",
"function get_by_id($id)\n {\n $this->db->where($this->id, $id);\n return $this->db->get($this->table)->row();\n }",
"function get_by_id($id)\n {\n $this->db->where($this->id, $id);\n return $this->db->get($this->table)->row();\n }",
"function get_by_id($id)\n {\n $this->db->where($this->id, $id);\n return $this->db->get($this->table)->row();\n }",
"function get_by_id($id)\n {\n $this->db->where($this->id, $id);\n return $this->db->get($this->table)->row();\n }",
"function get_by_id($id)\n {\n $this->db->where($this->id, $id);\n return $this->db->get($this->table)->row();\n }",
"function get_by_id($id)\n {\n $this->db->where($this->id, $id);\n return $this->db->get($this->table)->row();\n }",
"function get_by_id($id)\n {\n $this->db->where($this->id, $id);\n return $this->db->get($this->table)->row();\n }",
"function get_by_id($id)\n {\n $this->db->where($this->id, $id);\n return $this->db->get($this->table)->row();\n }",
"function get_by_id($id)\n {\n $this->db->where($this->id, $id);\n return $this->db->get($this->table)->row();\n }",
"function get_by_id($id)\n {\n $this->db->where($this->id, $id);\n return $this->db->get($this->table)->row();\n }",
"function get_by_id($id)\n {\n $this->db->where($this->id, $id);\n return $this->db->get($this->table)->row();\n }",
"function get_by_id($id)\n {\n $this->db->where($this->id, $id);\n return $this->db->get($this->table)->row();\n }",
"public function getAll ($id)\n {\n $res = $this->mysql->query(\"SELECT * FROM $this->table WHERE ID = $id\");\n # should be $this->table;\n \n \n return $res->fetch_assoc();\n }",
"function get_by_id($id)\n {\n $this->db->where($this->id, $id);\n return $this->db->get($this->table2)->row();\n }",
"function find($id)\n {\n $query = sprintf(\"select * from %s where %s=%s\", self::tabla, self::id_tabla, $id);\n $row = $this->db->query($query);\n return $row;\n }",
"public function getOne ( $id ){\n\n return $this->kernel->db->getRow(\"SELECT * FROM {$this->table} WHERE id = '$id'\");\n\n }",
"public function get_data_byId($id){\n $result = $this->db->get_where($this->table,array('postID'=>$id)); \n return $result->row();\n }",
"function get_by_id_sejarah($id) {\n\t\t$this->db->where ( $this->id, $id );\n\t\treturn $this->db->get ( $this->table )->row ();\n\t}",
"abstract public function get_value( $id );",
"function get_by_id($id)\n {\n $this->db3->where($this->id, $id);\n return $this->db3->get($this->table)->row();\n }"
] | [
"0.76323676",
"0.75040734",
"0.7417601",
"0.7417601",
"0.7417601",
"0.7417601",
"0.7417601",
"0.7417601",
"0.7417601",
"0.7417601",
"0.7417601",
"0.7417601",
"0.7417601",
"0.7417601",
"0.7417601",
"0.7417601",
"0.7417601",
"0.7417601",
"0.7417601",
"0.7417601",
"0.7417601",
"0.7417601",
"0.73630375",
"0.73322225",
"0.7321937",
"0.72679853",
"0.7256909",
"0.72253263",
"0.7208131",
"0.7181345"
] | 0.78367877 | 0 |
Return value from table by hotelid if $hotelid = 'all' it will return all from table. Erstellt von Joachim Hacker am 31.01.17 | public function selectAllFromTableByHotelId($hotelid = 'all'){
$sql = 'SELECT * FROM `'.$this->tableName.'` WHERE `hotelID` = \''.$hotelid.'\'';
if($hotelid == 'all'){
$sql = 'SELECT * FROM `'.$this->tableName.'`';
}
$result = $GLOBALS['mysql']->query($sql);
if ($result != False) {
$returnData = [];
while($row = $result->fetch_assoc()) {
array_push($returnData,$row);
}
return $returnData;
} else {
return false;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function getHotel($dbh, $hotel_id)\n{\n\t$query = \"SELECT\n hotel_id,\n\thotel_brand,\n hotel_name,\n room,\n bed,\n adults,\n children,\n street,\n city,\n country,\n postal,\n phone,\n rank,\n price,\n description,\n breakfast_included,\n smoke_permit,\n image,\n on_maintain,\n log\n\tFROM\n\thotel\n\tWHERE\n\thotel_id = :hotel_id\";\n\t$stmt = $dbh->prepare($query);\n\t$stmt->bindValue(':hotel_id', $hotel_id, PDO::PARAM_INT);\n\t$stmt->execute();\n\t// fetch one book\n\treturn $stmt->fetch(PDO::FETCH_ASSOC);\n}",
"public function get_hotel($id);",
"public function getHotel($hotel_id)\n {\n $hotel=$this->hotels->where('id',$hotel_id)->all();\n\n return $provider;\n }",
"public function getHotelAllBookings($hotelID)\n {\n }",
"function get_all_reservations($id=NULL)\n {\n if($id==NULL)\n {\n $this->db->select('reservations.*,hotels.hotel_name as name,room_categories.category_name as catname')\n ->from('reservations')\n ->join('hotels','hotels.id=reservations.hotel_id')\n ->join('room_categories','room_categories.id=reservations.category_id')\n // ->join('sub_category','reservations.sub_category_id=sub_category.id')\n // // ->join('payment_types','payment_types.id = revservations.payment_type')\n ->order_by('id', 'desc');\n // $this->db->query(\"SELECT r.*, h.hotel_name ,r.category_name,s.sub_name FROM reservations r, hotels h,\")\n }\n else\n {\n $this->db->select('reservations.*,hotels.hotel_name as name,room_categories.category_name as catname')\n ->from('reservations')\n ->join('hotels','hotels.id=reservations.hotel_id')\n ->join('room_categories','room_categories.id=reservations.category_id')\n // ->join('sub_category','reservations.sub_category_id=sub_category.id')\n ->where('hotels.vendor_name=',$id)\n // ->join('payment_types','payment_types.id = revservations.payment_type')\n ->order_by('id', 'desc');\n }\n return $this->db->get()->result_array();\n }",
"public function show($hotelId,$id)\n {\n\n $room = roomLists::where('id', $id)->where('hotel_lists_id', $hotelId)->addSelect(['hotel_name' => hotelLists::select('hotel_name')->whereColumn('hotel_lists_id', 'hotel_lists.id')])->get();\n\n if($room->isEmpty() || is_null($room)){\n return response()->json(\"Record not found...\",404);\n }\n // elseif($room->first()->room_availability_status ==\"1\"){\n\n // return view('hotels/addBooking',['data' => $room]);\n // }\n else{\n\n return \"booked page\";\n }\n\n }",
"function getHotels($dbh)\n{\n\t$query = \"SELECT\n hotel_id,\n\thotel_brand,\n hotel_name,\n room,\n bed,\n adults,\n children,\n street,\n city,\n country,\n postal,\n phone,\n rank,\n price,\n description,\n breakfast_included,\n smoke_permit,\n image\n\tFROM\n\thotel\n where deleted='0'\";\n\t$stmt = $dbh->prepare($query);\n\t$stmt->execute();\n\t// fetch multiple books\n\treturn $stmt->fetchAll(PDO::FETCH_ASSOC);\t\n}",
"function ambil_data_id($id)\n\t\t{\n\t\t\t$this->db->where($this->id,$id);\n\t\t\treturn $this->db->get($this->nama_table)->row();\n\t\t}",
"public function select_for_prticular_row_all($table,$fild,$id)\n{\n\t$query=mysql_query(\"SELECT * FROM \".$table.\" WHERE \".$fild.\"='$id' \");\n\t\n\treturn $query;\n\t \n}",
"function get_by_id_berita($id) {\n\t\t$this->db->where ( $this->id, $id );\n\t\treturn $this->db->get ( $this->table )->row ();\n\t}",
"function get($id) {\n $this->db->where('id', $id);\n $query = $this->db->get('wensVraag');\n return $query->row();\n }",
"public function getHotel();",
"function gejala($id) {\n\t$ci =&get_instance();\n\n\t$ci->db->where('id_gejala',$id);\n\t$ambil = $ci->db->get('gejala');\n\t$data = $ambil->row_array();\n\treturn $data;\n}",
"function get_by_id($id){\n $q = $this->db->query(\"select * from \".$this->table_name.\" where id = '\".$id.\"'\");\n return $q->row();\n }",
"function getspecificdata($con,$table,$identifier,$id)\n\t{\n\t $sql = \"select * from $table where $identifier=$id\";\n\t\t$response_query = mysqli_query($con, $sql) or die('Error, No:106');\n\t\treturn mysqli_fetch_assoc($response_query);\n\t}",
"public function get_by_id($id)\n\t{\n\t\t$this->db->from($this->table);\n\t\t$this->db->where('idartikel',$id);\n\t\t$query = $this->db->get();\n\n\t\treturn $query->row();\n\t}",
"public function selectAllFromTableById($id = 'all'){\n\t $sql = 'SELECT * FROM `'.$this->tableName.'` WHERE `'.$this->tableName.'ID` = '.$id;\n\t \n\t if($id == 'all'){\n\t\t $sql = 'SELECT * FROM `'.$this->tableName.'`';\n\t }\n\t \n\t $result = $GLOBALS['mysql']->query($sql);\n\t \n\t\tif ($result->num_rows > 0) {\n\t\t\t$returnData = [];\n\t\t\twhile($row = $result->fetch_assoc()) {\n\t\t\t\tarray_push($returnData,$row);\n\t\t\t}\n\t\t\treturn $returnData;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n }",
"public function getHotel($hotelId)\n {\n if (empty($this->idIndex)) {\n $this->idIndex = $this->createIdIndex();\n }\n\n if (isset($this->idIndex[$hotelId])) {\n $index = $this->idIndex[$hotelId];\n\n return $this->data['HotelList'][$index];\n }\n\n return false;\n }",
"function getVoyageByID($voyage_id)\n\t{\n\t \t\t$fields = array(\n\t\t\t\t\t\t'?:voyage.*'\n\t\t\t);\n\t\t\t\t\t\t\n\t\t\t$condition \t= $join =''; \n\t\t\t\n\t\t\t$condition \t= 1;\n\t\t\t\n\t\t\t$condition .= \" AND ?:voyage.voyage_id = '\".$voyage_id.\"'\";\n\t\t\t\t\t\t\n\t \t\t$result = $this->db->query(\"SELECT \".implode(',',$fields).\" FROM ?:voyage \".$join.\" WHERE \".$condition);\n\t\t\t\n\t\t\treturn $result->row();\n\t}",
"function selectLocation($conn,$loc_id){\n\t\t$query = \"SELECT l.loc_id, l.loc_unit_num,l.loc_desc,l.loc_insertdt,l.loc_notes,l.loc_is_act,l.loc_type,l.bldg_id,l.loc_mailbox,l.loc_mail_core, b.bldg_num, b.bldg_prop \n\t\t\tFROM location l LEFT OUTER JOIN building b ON l.bldg_id = b.bldg_id WHERE l.loc_id = '$loc_id' \";\n\t\t$result = mysqli_query($conn, $query);\n\t\tif(!$result){\n\t\t echo \"Record not found\" . mysqli_error($conn);\n\t\t exit;\n\t\t}\n\t\t$row = $result->fetch_array(MYSQLI_ASSOC);\n\t\treturn $row;\n\t}",
"public function readone(){\r $query=\"select * from `\".$this->table_name.\"` where `id`='\".$this->booking_id.\"'\";\r $result=mysqli_query($this->conn,$query);\r $value=mysqli_fetch_row($result);\r return $value;\r }",
"function get_room($id) {\n $id = mysqli_real_escape_string($this->connection, $id); \n $return = $this->query(\"SELECT name, room.id as id, building, size, note, floor FROM room WHERE room.id='$id'\");\n\n if ($return) return $return[0];\n else return array();\n }",
"function get_infos_vehicule($id_vehicule)\r\n{\r\n\tglobal $bdd;\r\n\t$req=$bdd->prepare('SELECT * FROM vehicules WHERE id=:id');\r\n\t$req->execute(array('id' => $id_vehicule));\r\n\t$infos=$req->fetch();\r\n\t$req->closecursor();\r\n\treturn $infos;\r\n}",
"private static function _office_location( $room_id ) {\n\n // If we've gotten this far, we've definitely instantiated the FSQLib object.\n $sql = self::$query_lib->get_query_str( FSQEnum::USER_OFFICE, $room_id );\n\n // If we find stuff, we only care about the first row (there should only be one anyway).\n if( $result = self::_run_query( $sql ) ) {\n $row = mysqli_fetch_assoc( $result );\n mysqli_free_result( $result );\n\n return $row;\n }\n }",
"function get_by_id($id)\n {\n $this->db->where($this->id, $id);\n return $this->db->get($this->table2)->row();\n }",
"public function getHotelProvider($hotel_id)\n {\n $hotel=$this->hotels->where('id',$hotel_id)->all();\n \n $provider=$this->providers->where('id',$hotel[$hotel_id-1]['provider_id'])->all();\n\n return $provider;\n }",
"public function getHotelApprovedBookings($hotelID)\n {\n }",
"public function get_data_byId($id){\n $result = $this->db->get_where($this->table,array('postID'=>$id)); \n return $result->row();\n }",
"function showRecord($dbh)\n{\n $query=\"SELECT\n *\n FROM\n hotel\n WHERE\n hotel_id=(select MAX(hotel_id) from hotel)\";\n //prepare query\n $stmt=$dbh->prepare($query);\n $stmt->execute();\n return $stmt->fetchAll(PDO::FETCH_ASSOC);\n \n}",
"function getBooking($bookingId) {\n return $this->db->query('select * from booking where id = '.$bookingId, PDO::FETCH_ASSOC)->fetch();\n }"
] | [
"0.74209255",
"0.72307783",
"0.64955795",
"0.62854975",
"0.6233091",
"0.6132337",
"0.6106456",
"0.60702276",
"0.60202944",
"0.601203",
"0.59940034",
"0.5988382",
"0.59684485",
"0.5940397",
"0.5925446",
"0.59174544",
"0.59133685",
"0.5911167",
"0.59047663",
"0.5897074",
"0.5883807",
"0.58776015",
"0.58767027",
"0.5875454",
"0.5869157",
"0.58690757",
"0.5868042",
"0.5862882",
"0.58570963",
"0.58369726"
] | 0.79156417 | 0 |
Retrieves single business entity by registration number (ICO) | public function findOneByRegNumber(string $regNumber): BasicInfo
{
$regNumber = $this->cleanUpRegNumber($regNumber);
$this->validateRegNumber($regNumber);
$response = $this->client->request('GET', $this->getServiceEndpoint(), [
'query' => [
'ico' => $regNumber,
],
]);
if ($response->isError()) {
if ($response->getError()->isNotFoundError()) {
throw new \Ares\Exception\EntityNotFoundException('Business entity was not found.');
}
throw new \Ares\Exception\ServiceUnavailableException($response->getError()->getMessage());
}
return $response->getBasicInfo();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function findOneByIdentityNumber(string $identityNumber):?KmjUserInterface;",
"function busca_nitrogeno($nitrogeno)\n{\ntry{\n\t\n\t$result=mysql_query(\"select id from bd_materiasprimas.tbl_nitrogeno where nombre='\".$nitrogeno.\"'\")or throw_ex(mysql_error());\n\t$row=mysql_fetch_object($result);\t\t\t\t\n\treturn $row->id;\n\t\n}\n\tcatch(Exception $e)\n{\n\techo \"Error:\". $e;\n}\n\t\n}",
"public function obtenerIdActual($nino);",
"function get_business($business_id) {\n $business_path = $GLOBALS['BUSINESS_PATH'] . $business_id;\n \n return request($GLOBALS['API_HOST'], $business_path);\n}",
"public static function getByICO($ico) {\n\t\t$data = self::getData(self::$url.$ico);\n\t\t$xml = self::parseXml($data);\n\t\tif(!empty($xml) && !empty($xml->E->EK)) {\n\t\t\tthrow new AresException('Error occurred while finding ICO in ARES');\n\t\t} elseif(empty($xml)) {\n\t\t\tthrow new AresException('ARES Database is not available');\n\t\t}\n\n\t\t$name_arr = explode(' ',strval($xml->VBAS->OF));\n\t\t$first_name = array_shift($name_arr);\n\t\t$last_name = implode(' ',$name_arr);\n\t\t$excludeUpper = array(\"s.r.o.\",\"a.s.\");\n\n\t\t$ares_data\t\t\t\t\t\t\t= new ArrayHash();\n\t\t$ares_data->ico \t\t\t\t\t= strval($xml->VBAS->ICO);\n\t\t$ares_data->dic \t\t\t\t\t= strval($xml->VBAS->DIC);\n\t\t$ares_data->company \t\t\t\t= strval($xml->VBAS->OF);\n\t\t$ares_data->first_name\t\t\t\t= Strings::firstUpper(Strings::lower($first_name));\n\t\t$ares_data->last_name\t\t\t\t= (!in_array($last_name,$excludeUpper) ? Strings::firstUpper(Strings::lower($last_name)) : Strings::lower($last_name));\n\t\t$ares_data->address_street\t\t\t= strval($xml->VBAS->AA->NU);\n\t\t$ares_data->address_street_number\t= strval($xml->VBAS->AA->CO);\n\t\t$ares_data->address_citypart\t\t= strval($xml->VBAS->AA->NMC);\n\t\t$ares_data->address_citypart_number\t= strval($xml->VBAS->AA->CD);\n\t\t$ares_data->address_fullnumber\t\t=\n\t\t\t($ares_data->address_citypart_number || $ares_data->address_street_number ?\n\t\t\t\t($ares_data->address_citypart_number && $ares_data->address_street_number ?\n\t\t\t\t\t$ares_data->address_citypart_number.\"/\".$ares_data->address_street_number :\n\t\t\t\t\t($ares_data->address_street_number ?\n\t\t\t\t\t\t$ares_data->address_street_number :\n\t\t\t\t\t\t$ares_data->address_citypart_number\n\t\t\t\t\t)\n\t\t\t\t) :\n\t\t\t\t\"\"\n\t\t\t);\n\t\t$ares_data->address_town\t\t\t= strval($xml->VBAS->AA->N);\n\t\t$ares_data->address_post\t\t\t= strval($xml->VBAS->AA->PSC);\n\t\t$ares_data->address_country\t\t\t= strval($xml->VBAS->AA->NS);\n\n\t\treturn $ares_data;\n\t}",
"function etbx_registry_get_info($entity_type = NULL) {\n // Gets the registry.\n $registry = etbx_registry();\n\n if (isset($entity_type)) {\n return !empty($registry[$entity_type]) ? $registry[$entity_type] : NULL;\n }\n else {\n return $registry;\n }\n}",
"private function getBusRegNo()\n {\n //if the submission failed, we won't always have a bus reg\n if ($this->busReg instanceof BusRegEntity) {\n return $this->busReg->getRegNo();\n } elseif ($this->emailData['registrationNumber'] !== self::UNKNOWN_REG_NO) {\n return $this->emailData['registrationNumber'];\n }\n\n return null;\n }",
"function get_business($business_id) {\n $business_path = $GLOBALS['BUSINESS_PATH'] . urlencode($business_id);\n \n return request($GLOBALS['API_HOST'], $business_path);\n}",
"function get_business($business_id) {\n $business_path = $GLOBALS['BUSINESS_PATH'] . urlencode($business_id);\n \n return request($GLOBALS['API_HOST'], $business_path);\n}",
"function get_gbif_data($name = 'Hapalemur')\n{\n\t\n\t$url = 'http://api.gbif.org/v1/occurrence/search';\n\t\n\t$parameters = array(\n\t\t'scientificName' => $name,\n\t\t'limit' => 1000,\n\t\t'spatialIssues' => 'false',\n\t\t'hasCoordinate' => 'true'\n\t\t);\n\t\t\n\t$url .= '?' . http_build_query($parameters);\n\t\n\t//echo $url;\n\t\n\t$json = get($url);\n\t\n\t$obj = json_decode($json);\n\t\n\treturn $obj;\n}",
"function getRegistoById($idRegisto, $where){\n\n\t\t$query = \"SELECT * FROM Registo WHERE id = '\" . $idRegisto . \"'\";\n\t\t$result = mysql_query($query);\n\n\t\tif($where == \"xml\")\n\t\t\t\treturn $result;\n\t\t\telse \n\t\t\t\tregistoToXML(mysql_num_fields($result) ,$result);\n\t}",
"public function get($company_reg_no = NULL, $company_admin = NULL)\n {\n if ( !is_null($company_reg_no )) {\n $this -> db -> where('company_reg_no', $company_reg_no);\n }\n\t\tif ( !is_null($company_admin )) {\n $this -> db -> where('company_admin', $company_admin);\n }\n return $this -> db -> get($this->table_name);\n }",
"function get_business($business_id) {\n $business_path = $GLOBALS['BUSINESS_PATH'] . urlencode($business_id);\n\n return request($GLOBALS['API_HOST'], $business_path);\n }",
"public function getById($entityId);",
"public function getBusinessUnit();",
"public function get($entityId);",
"function getUserByNumber($arg, $key) {\n $result = performApiRequest($key, 1, 'GET', '*;WHERE `kundennummer`=' . $arg);\n if (sizeof($result) > 0) {\n return $result[0];\n } else {\n return null;\n }\n}",
"public function getEntity(string $identifier): object;",
"function getIdFromOZ($oz_number) {\n\t\treturn $this->newQuery()->where('dp_depot_id','=',$oz_number)\n\t\t\t\t\t\t->getVal('depot_id');\n\t}",
"function etbx_registry_versions_get_info($entity_type = NULL) {\n // Gets the registry.\n $registry = etbx_registry_versions();\n\n if (isset($entity_type)) {\n return !empty($registry[$entity_type]) ? $registry[$entity_type] : NULL;\n }\n else {\n return $registry;\n }\n}",
"function getNationalIdentificationNumber();",
"function getDisplayTypeIDByName($displayUnitType, $token, $domainID){\r\n\r\n\t$ch = curl_init();\r\n\r\n\tcurl_setopt($ch, CURLOPT_URL, 'https://api.broadsign.com:10889/rest/display_unit_type/v6?domain_id='.$domainID);\r\n\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\r\n\r\n\t$headers = array();\r\n\t$headers[] = 'Accept: application/json';\r\n\t$headers[] = 'Authorization: Bearer '.$token;\r\n\t\r\n\tcurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\r\n\t$result = curl_exec($ch);\r\n\t\r\n\tif (curl_errno($ch)) {\r\n\t\techo 'Error:' . curl_error($ch);\r\n\t}\r\n\tcurl_close($ch);\r\n\r\n\t$decode_data = json_decode($result);\r\n\t\r\n\tif (is_array($decode_data->display_unit_type)){\r\n\t\tforeach($decode_data->display_unit_type as $key=>$value){\r\n\t\t\tif ($value->name == $displayUnitType){\r\n\t\t\t\t\treturn $value->id;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\treturn 0;\r\n}",
"function obtener_id_fac($OID)\n\t{\n\t\t$db = new database();\n\t\t$db->conectar();\n\t\t$result = $db->consulta(\"SELECT id_factura FROM public.facturas where oid =$OID\");\n\t\t$db->disconnect();\n\t\treturn $result;\n\t}",
"public static function one_entity();",
"public function getUserRegistrationFull($RG_Reg_NO)\r\n{\r\n\r\n$sql = $this->done->prepare(\"SELECT * FROM `registrations` WHERE `RG_Reg_NO` = ?\");\r\n$sql->execute(array($RG_Reg_NO));\r\nreturn $sql->fetchALL(PDO::FETCH_OBJ);\r\n\r\n}",
"public function getnationalitie ($id){\n $nationalitiesDetail = $this -> restfullDAO -> getnationalitiesByid ($id );\n return $nationalitiesDetail [0];\n }",
"public function accountfindOne(){\r\n if (!$this->app->module(\"auth\")->hasaccess($this->moduleName, 'manage.index'))return false; \r\n $item = $this->app->db->findOne(\"ads/gacodes\", $this->param(\"filter\", []));\r\n \r\n //print_r(bigintval($doc['field1']));exit;\r\n return $item ? json_encode($item) : '{}';\r\n }",
"public function getById()\n {\n }",
"public function getById()\n {\n }",
"public function getById()\n {\n }"
] | [
"0.5695227",
"0.5502756",
"0.5493786",
"0.5413815",
"0.5373209",
"0.5350108",
"0.5347091",
"0.53380626",
"0.53380626",
"0.53096586",
"0.53029233",
"0.52642626",
"0.52098054",
"0.5165403",
"0.5151577",
"0.5145342",
"0.51138604",
"0.5102397",
"0.5045153",
"0.5035798",
"0.50353885",
"0.5019504",
"0.501402",
"0.49920753",
"0.4990166",
"0.49862418",
"0.49855337",
"0.49837783",
"0.49837783",
"0.49837783"
] | 0.6114386 | 0 |
the response of the comm to a client (be save on table msgclientcomm) | function reponsecomm($idclient, $nom) {
if(empty($idclient) and empty($nom))
redirect ('inscription/login');
//test sécurité de cnx
if (!getsessionhelper())
{
redirect ('inscription/login');
}
//
$idcom = getsessionhelper()['id'];
$this->form_validation->set_rules('sujet', 'Sujet', 'required|trim');
$this->form_validation->set_rules('contenu', 'Contenu', 'required|trim');
if ($this->form_validation->run() == FALSE) {
$conv = $this->message_model->get_conv_client_comm($idclient);
//sort the table of conversation by date
usort($conv, function($a, $b) {
$ad = new DateTime($a['dateenvoi']);
$bd = new DateTime($b['dateenvoi']);
if ($ad == $bd) {
return 0;
}
return $ad < $bd ? 1 : -1;
});
$data['conv'] = $conv;
$data['idcl'] = $idclient;
$data['nom'] = str_replace("%20", " ", $nom);
$data['shopping'] = $this->shopping;
$this->twig->render('message/commercant/ListMsg_view', $data);
} else {
//save and update champ notifmsg de la table client
$this->message_model->reponsecommclient($idclient);
redirect('message/msgclientcomm/listmsgclientcomm');
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"abstract function getResponseMessage();",
"function reponseclient($idcom, $nom) {\n if(empty($idcom) and empty($nom) )\n redirect ('inscription/login');\n //test sécurité de cnx\n if (!getsessionhelper())\n {\n redirect ('inscription/login');\n }\n \n //\n $idclt = getsessionhelper()['id'];\n $this->form_validation->set_rules('sujet', 'Sujet', 'required|trim');\n $this->form_validation->set_rules('contenu', 'Contenu', 'required|trim');\n if ($this->form_validation->run() == FALSE) {\n $conv = $this->message_model->get_conv_for_client($idcom);\n //sort the table of conversation by date\n usort($conv, function($a, $b) {\n $ad = new DateTime($a['dateenvoi']);\n $bd = new DateTime($b['dateenvoi']);\n\n if ($ad == $bd) {\n return 0;\n }\n return $ad < $bd ? 1 : -1;\n });\n\n $data['conv'] = $conv;\n $data['nom'] = str_replace(\"%20\", \" \", $nom);\n $data['idcom'] = $idcom;\n $data['shopping'] = $this->shopping;\n $this->twig->render('message/client/ListMsg_view', $data);\n } else {\n $this->message_model->reponseclient($idcom);\n redirect('message/msgclientcomm/listmsgcomm');\n }\n }",
"public function replyResponse();",
"function voirmsgclientcomm($idclient, $idp, $nom) {\n if(empty($idclient) and empty($idp) and empty($nom))\n redirect ('inscription/login');\n //test sécurité de cnx\n if (!getsessionhelper())\n {\n redirect ('inscription/login');\n }\n \n //\n $conv = $this->message_model->get_conv_client_comm($idclient);\n //mettre a zero le champ notifmsg de la table commercant\n $rmz = $this->notif_model->Rmz_Notif_Msg_Comm(getsessionhelper()['id']);\n //sort the table of conversation by date\n usort($conv, function($a, $b) {\n $ad = new DateTime($a['dateenvoi']);\n $bd = new DateTime($b['dateenvoi']);\n\n if ($ad == $bd) {\n return 0;\n }\n\n return $ad < $bd ? 1 : -1;\n });\n \n $data['conv'] = $conv;\n $data['idcl'] = $idclient;\n $data['nom'] = str_replace(\"%20\", \" \", $nom);\n $data['shopping'] = $this->shopping;\n $this->twig->render('message/commercant/ListMsg_view', $data);\n }",
"function voirmsgcommclient($idcom, $idp, $nom) {\n if(empty($idcom) and empty($idp) and empty($nom))\n redirect ('inscription/login');\n //test sécurité de cnx\n if (!getsessionhelper())\n {\n redirect ('inscription/login');\n }\n \n //\n $conv = $this->message_model->get_conv_for_client($idcom);\n //mettre a zero le champ notifmsg de la table commercant\n $rmz = $this->notif_model->Rmz_Notif_Msg_client(getsessionhelper()['id']);\n //sort the table of conversation by date\n usort($conv, function($a, $b) {\n $ad = new DateTime($a['dateenvoi']);\n $bd = new DateTime($b['dateenvoi']);\n\n if ($ad == $bd) {\n return 0;\n }\n\n return $ad < $bd ? 1 : -1;\n });\n\n $data['conv'] = $conv;\n $data['nom'] = str_replace(\"%20\", \" \", $nom);\n $data['idcom'] = $idcom;\n $data['shopping'] = $this->shopping;\n $this->twig->render('message/client/ListMsg_view', $data);\n }",
"public function sendResponseUpdate()\n {\n //\n }",
"private function showDiscution(){\n if( $this->isConnected() ){\n $request = $this->_connexion->prepare(\"SELECT * FROM Posted_messages WHERE (from_user_id=? AND to_user_id=?) OR (from_user_id=? AND to_user_id=?) ORDER BY message_edit_at\");\n $request->execute(array($this->_transmitter, $this->_receiver, $this->_receiver, $this->_transmitter));\n\n $result = $request->fetchAll(PDO::FETCH_ASSOC);\n \n return $response = json_encode([\n 'status' => 'ok',\n 'message' => 'API : success',\n 'data' => $result\n ]);\n }\n else{\n return $response = json_encode([\n 'status' => 'failled',\n 'message' => 'user not connected'\n ]);\n }\n }",
"public function commData() {\n\n return $this->comm_data;\n }",
"public function responseMsg()\n {\n $postStr = $GLOBALS[\"HTTP_RAW_POST_DATA\"];\n\n //extract post data\n if (!empty($postStr)){\n\n $postObj = simplexml_load_string($postStr, 'SimpleXMLElement', LIBXML_NOCDATA);\n define('FROM_USER_NAME', $postObj->FromUserName);\n define('TO_USER_NAME', $postObj->ToUserName);\n $msg_type = $postObj->MsgType;\n\n switch($msg_type)\n {\n case 'text':\n TextMessage::handle($postObj);\n break;\n case 'image':\n ImageMessage::handle($postObj);\n break;\n case 'voice':\n VoiceMessage::handle($postObj);\n break;\n case 'video':\n VideoMessage::handle($postObj);\n break;\n case 'location':\n LocationMessage::handle($postObj);\n break;\n case 'link':\n LinkMessage::handle($postObj);\n break;\n case 'event':\n EventMessage::handle($postObj);\n break;\n default:\n echo '';\n exit;\n }\n\n }else {\n echo '';\n exit;\n }\n }",
"public function responseMsg()\n {\n $postStr = $GLOBALS[\"HTTP_RAW_POST_DATA\"];\n //extract post data\n\n if (!empty($postStr)) {\n\n $postObj = simplexml_load_string($postStr, 'SimpleXMLElement', LIBXML_NOCDATA);\n $msgType = trim($postObj->MsgType);\n $resultStr=\"台州微生活,输入优惠券,显示优惠信息\";\n switch ($msgType) {\n case \"text\":\n $resultStr = $this->receiveText($postObj);\n break;\n case \"event\":\n $resultStr = $this->receiveEvent($postObj);\n break;\n default:\n $resultStr = \"unknow msg type: \" . $msgType;\n break;\n }\n echo $resultStr;\n\n } else {\n echo \"\";\n exit;\n }\n }",
"private function server_session_informResponse($client)\n { \n \n $soap_obj=$this->write_obj['InformResponse']; \n \n $r=socket_write($client,$soap_obj->soap);\n \n if(!$r)\n $this->mlog('socket_write in init_session failed for peer '.$this->peer_ip.' '.socket_strerror($client));\n \n sleep(1);\n }",
"public function responseMsg()\n {\n $postStr = $GLOBALS[\"HTTP_RAW_POST_DATA\"];\n \n // extract post data\n if (! empty($postStr)) {\n /*\n * libxml_disable_entity_loader is to prevent XML eXternal Entity Injection,\n * the best way is to check the validity of xml by yourself\n */\n libxml_disable_entity_loader(true);\n $postObj = simplexml_load_string($postStr, 'SimpleXMLElement', LIBXML_NOCDATA);\n $fromUsername = $postObj->FromUserName;\n $toUsername = $postObj->ToUserName;\n \n $msgType = $postObj->MsgType;\n $time = time();\n // 如果是语音消息,则获取语音消息的识别结果\n if ($msgType == \"voice\") {\n $keyword = $postObj->Recognition;\n } else \n if ($msgType == \"text\") {\n $keyword = trim($postObj->Content);\n } elseif ($msgType == 'event' && $postObj->Event == 'subscribe') {\n $keyword = self::CGLU_HELP; // 处理关注事件\n } else {\n $keyword = self::CGLU_HELP; // 修正为帮助\n }\n wxlog('本次请求keyword=' . $keyword);\n if (! empty($keyword)) {\n \n if ($keyword == self::CGLU_HELP) {\n // 输出帮助信息\n $contentStr = self::CGLU_WELCOME_INFO;\n $resultStr = sprintf(self::WX_TEXT_TPL, $fromUsername, $toUsername, $time, $contentStr);\n } elseif ($keyword == self::CGLU_NEWEST_ARTICL || $keyword == self::CGLU_RANDOM_ARTICLE) {\n \n if ($keyword == self::CGLU_NEWEST_ARTICL) {\n wxlog('读取lublog中最新的三篇文章。');\n // 输出最新的文章,取得前三篇.\n $sql = \"SELECT description,title,id FROM articles ORDER BY created_at DESC limit 3;\";\n } else {\n //随机取出三篇文章\n $sql = \"SELECT description,title,id FROM articles ORDER BY RAND() DESC limit 3\";\n }\n \n $list = $this->execSql($sql);\n // wxlog('最新的文章检索结果。' . var_export($list, 1));\n $listCount = 0;\n $items = '';\n foreach ($list as $new) {\n $listCount ++;\n $title = $new['title'];\n $description = $new['description'];\n $icon = 'http://luhu.in/images/avatar.jpg';\n $url = 'http://luhu.in/article/' . $new['id'];\n $items .= sprintf(self::WX_NEWS_ITEM_TPL, $title, $description, $icon, $url);\n }\n $resultStr = sprintf(self::WX_NEWS_TPL, $fromUsername, $toUsername, $time, $listCount, $items);\n } elseif ($keyword == self::CGLU_BLOG_HOME) {\n // 输出个人博客主页\n $items = sprintf(self::WX_NEWS_ITEM_TPL, '个人博客LuBlog', '灵感 - 来自生活的馈赠', 'http://luhu.in/images/avatar.jpg', 'http://luhu.in');\n $resultStr = sprintf(self::WX_NEWS_TPL, $fromUsername, $toUsername, $time, 1, $items);\n } elseif ($keyword == self::CGLU_ABOUT_ME) {\n // 输出自我介绍\n $items = sprintf(self::WX_NEWS_ITEM_TPL, '关于我', '关于我', 'http://luhu.in/images/avatar.jpg', 'http://luhu.in/about');\n $resultStr = sprintf(self::WX_NEWS_TPL, $fromUsername, $toUsername, $time, 1, $items);\n } elseif ($keyword == self::CGLU_QUESTION_BACK) {\n // 用户反馈格式输出\n $contentStr = \"尊敬的用户,为了更好的完善订阅号功能,请将对系统的不足之处反馈给cglu。\";\n $contentStr .= \"\\n反馈格式:@+建议内容\\n例如:@希望增加***功能\";\n $resultStr = sprintf(self::WX_TEXT_TPL, $fromUsername, $toUsername, $time, $contentStr);\n } elseif (strpos($keyword, self::CGLU_SUBMIT_QUESTION) === 0) {\n // 保存用户的反馈并输出感谢用语\n $contentStr = \"感谢您的宝贵建议,cglu会不断努力完善功能。\";\n $note = substr($keyword, 1);\n $note .= \"\\r\\n\";\n file_put_contents('notes.txt', $note, FILE_APPEND);\n $resultStr = sprintf(self::WX_TEXT_TPL, $fromUsername, $toUsername, $time, $contentStr);\n } else {\n // 图灵文本消息\n define('TULING_TEXT_MSG', 100000);\n // 图灵连接消息\n define('TULING_LINK_MSG', 200000);\n // 图灵新闻消息\n define('TULING_NEWS_MSG', 302000);\n // 图灵菜谱消息\n define('TULING_COOKBOOK_MSG', 308000);\n // 接入图灵机器人\n $url = \"http://www.tuling123.com/openapi/api?key=4625ea3c28073dc3cd91c33dbe4775ab&info=\" . urlencode($keyword);\n $str = file_get_contents($url);\n $json = json_decode($str);\n $contentStr = $json->text;\n $code = $json->code;\n if ($code == TULING_TEXT_MSG) {\n // 文本消息\n $resultStr = sprintf(self::WX_TEXT_TPL, $fromUsername, $toUsername, $time, $contentStr);\n } elseif ($code == TULING_LINK_MSG) {\n // 连接消息\n $resultStr = sprintf(self::WX_TEXT_TPL, $fromUsername, $toUsername, $time, $contentStr . $json->url);\n } elseif ($code == TULING_NEWS_MSG) {\n // 新闻消息\n $list = $json->list;\n $listCount = count($list);\n $items = '';\n foreach ($list as $new) {\n $title = $new->article;\n $source = $new->source;\n $icon = $new->icon;\n $url = $new->detailurl;\n $items .= sprintf(self::WX_NEWS_ITEM_TPL, $title, $title, $icon, $url);\n }\n $resultStr = sprintf(self::WX_NEWS_TPL, $fromUsername, $toUsername, $time, $listCount, $items);\n } elseif ($code == TULING_COOKBOOK_MSG) {\n // 菜谱消息\n $list = $json->list;\n $listCount = count($list);\n $items = '';\n foreach ($list as $cb) {\n $name = $cb->name;\n $info = $cb->info;\n $icon = $cb->icon;\n $url = $cb->detailurl;\n $items .= sprintf(self::WX_NEWS_ITEM_TPL, $name, $info, $icon, $url);\n }\n $resultStr = sprintf(self::WX_NEWS_TPL, $fromUsername, $toUsername, $time, $listCount, $items);\n }\n }\n echo $resultStr; // 输出数据包\n } else {\n echo \"Input something...\";\n }\n } else {\n echo \"\";\n exit();\n }\n }",
"function wsOnMessage($clientID, $message, $messageLength, $binary) {\n\t\n\n\t\t$ip = long2ip($this->socket->wsClients[$clientID][6]);\t\t\n\t\n\t//\t$this->socket->log(\"$ip ($clientID) send to message.\");\t\n\n\t\t// check if message length is 0\n\t\tif ($messageLength == 0) {\n\t\t\t$this->socket->wsClose($clientID);\n\t\t\treturn;\n\t\t}\n\t\t$msj=json_decode($message,true);\n\t\tprint_r($msj);\n\t\t//Si es un mensaje tipo {'cliente':'admin'} seteo la posicion 12 \n\t\t//ademas seteo dos variables para mantener el ID del cliente de cada extremo\n\t\tif (isset($msj['cliente'])){\n\t\t\tif($msj['cliente']==\"plataforma\"){\n\t\t\t\t$this->plataformaID=$clientID;\n\t\t\t}\n\t\t\tif($msj['cliente']==\"controlador\"){\n\t\t\t\t$this->controladorID=$clientID;\n\t\t\t}\n\t\t\t$this->socket->wsClients[$clientID][12] = $msj['cliente'];\n\t\t}\n\t\n\n\t\t//foreach ($this->socket->wsClients as $id => $client){\n\t\t\t//verifico si ya tienen definido un tipo en la posicion 12\n\t\t\t//ya se sabe si el mensaje viene desde el controlador o la plataforma\n\t\t\tif(isset($this->socket->wsClients[$clientID][12]) && !isset($msj['cliente'])){\n\t\t\t\techo \"clientID: [\".$clientID.'] === ';\n\t\t\t\techo \"plataformaID: [\".$this->plataformaID.'] === ';\n\t\t\t\techo \"controladorID: [\".$this->controladorID.'], ';\n\t\t\t\t//si el mensaje vino de la plataforma\n\t\t\t\tif($clientID==$this->plataformaID){\n\n\t\t\t\t\t//obtengo la ultima orden escrita en la base de datos por el controlador\n\t\t\t\t\t$ultima_orden = $this->controlador->get_last();\n\t\t\t\t\tif(!is_null($ultima_orden)){\n\t\t\t\t\t\techo 'enviando datos del controlador';\n\t\t\t\t\t\t$this->socket->wsSend($clientID,json_encode($ultima_orden));\n\t\t\t\t\t}\n\n\t\t\t\t\t$datos = array(\n\t\t\t\t\t\t'leido'=>FALSE,\n\t\t\t\t\t\t'fecha'=>microtime(true)\n\t\t\t\t\t);\n\t\t\t\t\t$datos = array_merge($datos,$msj);\n\t\t\t\t\t//guardo los datos en la tabla plataforma\n\t\t\t\t\t$this->plataforma->save($datos);\n\n\t\t\t\t\t//if($this->controladorID)\n\t\t\t\t\t//\t$this->socket->wsSend($this->controladorID,json_encode($msj));\n\t\t\t\t}\n\t\t\t\t//si el mensaje vino del controlador\n\t\t\t\tif($clientID==$this->controladorID){\n\t\t\t\t\techo \"msj from: controlador\".$this->controladorID;\n\t\t\t\t\t$datos = array(\n\t\t\t\t\t\t'leido'=>FALSE,\n\t\t\t\t\t\t'fecha'=>microtime(true)\n\t\t\t\t\t);\n\t\t\t\t\t$datos = array_merge($datos,$msj);\n\t\t\t\t\t//guardo los datos en la tabla controlador\n\t\t\t\t\t$this->controlador->save($datos);\n\t\t\t\t\techo \"plataformaID: [\".$this->plataformaID.'] ';\n\t\t\t\t\tif($this->plataformaID){\n\t\t\t\t\t\techo \"enviando mensaje a plataforma\";\n\t\t\t\t\t\t$this->socket->wsSend($this->plataformaID,json_encode($msj));\n\t\t\t\t\t}\n\t\t\t\t\t//obtengo la ultima posicion escfrita en la base de datos por la plataforma\n\t\t\t\t\t$ultimo_comando = $this->plataforma->get_last();\n\t\t\t\t\tif(!is_null($ultimo_comando)){\n\t\t\t\t\t\t//foreach ($this->socket->wsClients as $d => $c) {\n\t\t\t\t\t\t\t//echo json_encode($ultimo_comando);\n\t\t\t\t\t\t\t//envio la ultima posicion de la plataforma al controlador\n\t\t\t\t\t\t\t$this->socket->wsSend($clientID,json_encode($ultimo_comando));\n\t\t\t\t\t\t//}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t//\t$this->socket->wsSend($clientID,json_encode($msj));\n\t \t//\t$this->socket->log(\"$ip ($clientID) se guardo\");\n\t\t//}\n\t\t \n\t}",
"function sent_message() {\r\n\t\t\r\n\t\t$this->Fields(array(\r\n\t\t\t\t\t\t\t\"description\",\r\n\t\t\t\t\t\t\t\"user_to\",\r\n\t\t\t\t\t\t\t\"messaging_time\"\r\n\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t);\r\n\t\t\r\n\t\t$this->From(\"messaging\");\r\n\t\t$this->Where(array(\"user_from\"=>$this->_user_from));\r\n\r\n\t\t$this->Select();\r\n\t\t//echo $this->lastQuery();\r\n\t\treturn $this->resultArray();\r\n\t\t\r\n\t}",
"public function readMessageResponse()\n {\n if(isset($this->messageResponse))//safe for null value\n { \n if(!empty($this->messageResponse['error']))//error occured\n $this-> handleError($this->messageResponse['error']);\n else //normal response\n {\n /* parameters present in messageResponse array\n * @param recipient_id\n * @param message_id\n */\n }\n }\n else\n error_log(\"handleMessageResponse- var messageResponse is null or not defined\", 0);\n}",
"public static function select_msg_user() {\n $response = array();\n $code = \"482\";\n $msg = \"La empresa no emitio este cupon\";\n $response[\"code\"] = $code;\n $response[\"msg\"] = $msg;\n return $response;\n }",
"function returnMessage(){\n\t\t//echo \"<br/> this->bReqObj=\".$this->bReqObj->RequestType;\n\t\t//if($this->resultIsSuccess){\n\t\t\tif($this->bReqObj->RequestID>0){\n\t\t\t\n\t\t\t\t//If it is not recharge then change the status to success if result is success. If it is recharge then send the request status as it is.\n\t\t\t\tif(!$this->resultIsSuccess)\n\t\t\t\t\t$this->bReqObj->Status=4;\n\t\t\t\telse if($this->requestType!='RC'){\n\t\t\t\t\t$this->bReqObj->Status=3;\n\t\t\t\t\t//Updating status from here only for non-recharge requests.\n\t\t\t\t\t//Bcoz recharge request status would have been updated inside recharge process\n\t\t\t\t\t$this->updateRequestStatus();\n\t\t\t\t}\n\t\t\t\t\t/* if($this->resultIsSuccess)\n\t\t\t\t\t\t$this->bReqObj->Status=3;\n\t\t\t\t\telse \n\t\t\t\t\t\t$this->bReqObj->Status=4; */\n\t\t\t\t\t\n\t\t\t\t//echo \"<br/> reqObj=\".json_encode($reqObj);\n\t\t\t\t$this->bReqObj->Remark=$this->resultMessage;\n\t\t\t\t$this->bReqObj->DevInfo .= \". isSendSMS\".$this->isSendSMS;\n\t\t\t\t//Recharge will update request inside b_recharge process\n\t\t\t\tif($this->requestType!=\"RC\")\n\t\t\t\t\t$this->bReqObj->update($this->bReqObj);\n\t\t\t\t//$this->updateRequestStatus($this->bReqObj);\n\t\t\t\t//$this->isSendSMS=\"0\";\n\t\t\t\tif($this->isSendSMS){\n\t\t\t\t\t//$smsMessage = $this->langSMS[$this->smsCode];\n\t\t\t\t\t//echo \"<br/> Sending SMS from b_webservice...\";\n\t\t\t\t\tif($this->processedSMSmssage == \"NOTPROCESSED\")\n\t\t\t\t\t\t$this->resultSmsMessage = $this->bReqObj->Remark =$this->processedSMSmssage=$this->langSMS[$this->smsCode];\n\t\t\t\t\telse\n\t\t\t\t\t\t$this->resultSmsMessage = $this->bReqObj->Remark =$this->processedSMSmssage;;\n\t\t\t\t\t//echo \"<br/> Req be4 sms=\".json_encode($this->bReqObj);\n\t\t\t\t\t$this->bSMSObj->sendSMS($this->bReqObj->RequesterMobile,$this->bReqObj->TargetNo,$this->processedSMSmssage,\"0\",$this->bReqObj->RequestID,\"t_request\",$this->notes);\n\t\t\t\t}//else\n\t\t\t\t\t//echo \"<br/>Not sending SMS\";\n\t\t\t}\n\t\t//}\n\t\t$this->resultSmsMessage = str_replace(\"[CUSTOMERMESSAGE]\",$this->bSMSObj->customerInputSMS,$this->resultSmsMessage);\n\t\t//$reqDBobj = $this->bReqObj->getByID($this->bReqObj->RequestID);\n\t\t//echo json_encode($reqDBobj);\n\t\t$jsonStr='{\"IsSuccess\":'.json_encode($this->resultIsSuccess).',\"SmsCode\":'.json_encode($this->smsCode).',\"IsSendSMS\":'.json_encode($this->isSendSMS).',\"Status\":'.$this->bReqObj->Status.',\"RequestID\":'.$this->bReqObj->RequestID.',\"Message\":'.json_encode($this->resultSmsMessage).'}';\n\t\t\n\t\t$this->addErrorlog(\"returnMessage\",json_encode($jsonStr),\"OutputMessage\",\"t_request\",$this->bReqObj->RequestID,\"Finishing process\");\n\t\t\n\t\treturn json_encode($jsonStr);\n\t}",
"public function responseMsg2(){\n\t\t$postStr = $GLOBALS[\"HTTP_RAW_POST_DATA\"];\n\t\t//extract post data\n\t\tif (!empty($postStr)){\n\t\t$postObj = simplexml_load_string($postStr, 'SimpleXMLElement', LIBXML_NOCDATA);\n\t\t$RX_TYPE = trim($postObj->MsgType);\n\n\t\tswitch($RX_TYPE){\n\t\t\t\t\t\t//当回复公众号图片时\n\t\tcase \"image\":\n\t\t$resultStr = $this->handleImage($postObj);\n\t\tbreak;\n\t\t\t\t\t\t\t//当回复公众号关键字时\n\t\tcase \"text\":\n\t\t$resultStr = $this->handleText($postObj);\n\t\tbreak;\n\t\t\t\t\t\t\t//关注公众号事件\n\t\tcase \"event\":\n\t\t$resultStr = $this->handleEvent($postObj);\n\t\tbreak;\n\t\tdefault:\n\t\t$resultStr = \"Unknow msg type: \".$RX_TYPE;\n\t\tbreak;\n\t\t}\n\t\techo $resultStr;\n\t\t}else {\n\t\techo \"\";\n\t\texit;\n\t\t}\n\t}",
"function getDataChat()\n\t{\n\t\t$rows = array();\n\t\t$rows['chat'] = $this->getChatMsg();\t\t\n\t\t$rows['response'] = \"OK\";\n\t\t\n\t\tif (DEBUG) \n\t\t{\n\t\t\techo \"<pre>\";\t\n\t\t\tprint_r($rows);\n\t\t\techo \"</pre>\";\t\n\t\t}\n\t\telse\n\t\t\tsend_data($rows);\n\t\t\t\n\t\tunset($rows);\n\t}",
"public function respond()\n {\n\n // Thing actions\n $this->thing->flagGreen();\n\n $this->makeSMS();\n\n $this->message = $this->sms_message;\n\n $message_thing = new Message($this->thing, $this->thing_report);\n $this->thing_report[\"info\"] = $message_thing->thing_report[\"info\"];\n }",
"public function responder_mensaje()\n {\n \t$stmt = $this->db->prepare(\"INSERT INTO mensajes (usuario, mensaje, post, modificado) VALUES ('{$this->uid}',?,'{$this->idp}', NULL);\");\n \t$stmt -> bind_param('s', $this->mensaje); \n \t$stmt -> execute();\n \t$result = $stmt->get_result();\n \tif ($this->db->error){return \"$sql<br>{$this->db->error}\";}\n \telse {return false;}\n }",
"public function insert_response($k)\r\n {\r\n $conn = self::build_connection();\r\n if($k==\"Recieved\")\r\n {\r\n \r\n $desc=\"Mail sent successfuly\";\r\n $err=\"NO\";\r\n $q = \"insert into responses (response_status,response_description,response_error)values('{$k}','{$desc}','{$err}')\";\r\n \r\n $conn->query($q);\r\n\r\n }\r\n if($k==\"Processed\")\r\n {\r\n \r\n $desc=\"Mail is in process\";\r\n $err=\"NO\";\r\n $q = \"insert into responses (response_status,response_description,response_error)values('{$k}','{$desc}','{$err}')\";\r\n \r\n $conn->query($q);\r\n }\r\n if($k==\"Error\")\r\n {\r\n \r\n $desc=\"An Error Occoured\";\r\n $err=\"YES\";\r\n $q = \"insert into responses (response_status,response_description,response_error)values('{$k}','{$desc}','$err')\";\r\n \r\n $conn->query($q);\r\n }\r\n if($k==\"Invalid\")\r\n {\r\n \r\n $desc=\"Plz Enter Valid Email\";\r\n $err=\"YES\";\r\n $q = \"insert into responses (response_status,response_description,response_error)values('{$k}','{$desc}','{$err}')\";\r\n \r\n $conn->query($q);\r\n }\r\n\r\n self::close_connection($conn);\r\n\r\n\r\n\r\n\r\n }",
"function listmsgclientcomm() {\n \n //test sécurité de cnx\n if (!getsessionhelper())\n {\n redirect ('inscription/login');\n }\n \n //\n $data['msgs'] = $this->message_model->get_list_client();\n $data['shopping'] = $this->shopping;\n $this->twig->render('message/commercant/listSenderMsg_view', $data);\n }",
"public function agregarRespuesta()\r\n\t{\r\n\t\t$fecha_registro = date(\"y-m-d h:i:s\");\r\n\r\n\t\t$this->que_bda = \"INSERT INTO comentario_video \r\n\t\t(fky_usu_onl, fky_video, com_com_vid, lik_com_vid, dis_com_vid, res_com_vid, ver_com_vid, est_com_vid, reg_com_vid)\r\n\t\tVALUES \r\n\t\t('$this->fky_usu_onl', '$this->fky_video', '$this->com_com_vid', '0', '0', '$this->res_com_vid', \r\n\t\t'N', 'A', '$fecha_registro');\";\r\n\t\treturn $this->run();\r\n\t}",
"public function responseMsg()\n {\n\t\t//$postStr = $GLOBALS[\"HTTP_RAW_POST_DATA\"];\n\t\t\n\t\t$postStr = file_get_contents(\"php://input\");\n\n\t\t$postStr = $postStr ? $postStr : $_SERVER[\"QUERY_STRING\"] ;\n\t\t\n\t\t$resultStr = \"\";\n\t\t$temp = \"\";\n\t\t$db = getResource();\n\t\t$time = time();\n\t\t$nowdate = date(\"Y-m-d\");\n\t\t$nowdatenum = date(\"Ymd\");\n\t\t$nowdatetime =date(\"Y-m-d H:i:s\");\n\t\t$nowtime=date(\"H:i:s\");\n\n\t\tif (!empty($postStr)){\n \n \t$postObj = simplexml_load_string($postStr, 'SimpleXMLElement', LIBXML_NOCDATA);\n $fromUsername = $postObj->FromUserName;\n $toUsername = $postObj->ToUserName;\n \n $getmsgType = $postObj->MsgType;\n\t\t\t\t\n if ($getmsgType=='text'){\n\t\t\t\t\t$keyword = trim($postObj->Content)?trim($postObj->Content):\"\";\n\t\t\t\t\t\n\t\t\t\t\tif(!empty( $keyword))\n\t\t\t\t\t{\n\t\t\t\t\t\t$msgType = \"text\";\n\t\t\t\t\t\t$firstword=substr($keyword,0,1);\n\t\t\t\t\t\t$subword=trim(substr($keyword,1,strlen($keyword)));\n\t\t\t\t\t\tif(substr($keyword,0,6)==\"申请\"){\n\t\t\t\t\t\t\t$subword=trim(substr($keyword,6,strlen($keyword)));\n\t\t\t\t\t\t\t$temp.=substr($keyword,0,6).\"/\".$subword;\n\t\t\t\t\t\t\t$userinfo=explode(\"+\",$subword);\n\t\t\t\t\t\t\tif($userinfo[0] && $userinfo[1]){\n\t\t\t\t\t\t\t\t$sql=\"select * from userinfo where 1=1 and custid='{$userinfo[0]}' and user_name='{$userinfo[1]}'\";\n\t\t\t\t\t\t\t\t$res=mysql_query($sql,$db);\n\t\t\t\t\t\t\t\t$row = mysql_fetch_array($res);\n\t\t\t\t\t\t\t\t$db_user_id=$row[\"user_id\"];\n\t\t\t\t\t\t\t\t$db_user_wx_bs=$row[\"user_wx_bs\"]?$row[\"user_wx_bs\"]:\"\";\n\t\t\t\t\t\t\t\tif($db_user_id){\n\t\t\t\t\t\t\t\t\tif($db_user_wx_bs==\"\"){\n\t\t\t\t\t\t\t\t\t\t$sql=\"UPDATE userinfo set user_wx_bs='{$fromUsername}' WHERE user_id='{$db_user_id}'\";\n\t\t\t\t\t\t\t\t\t\t$res=mysql_query($sql,$db);\n\t\t\t\t\t\t\t\t\t\t$msgType = \"text\";\n\t\t\t\t\t\t\t\t\t\t$contentStr=\"绑定成功\";\n\t\t\t\t\t\t\t\t\t\t$resultStr = sprintf(TEXTTPL, $fromUsername, $toUsername, $time, $msgType, $contentStr);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t\t$msgType = \"text\";\n\t\t\t\t\t\t\t\t\t\t$contentStr=\"您已经绑定过微信号,请勿重复绑定\";\n\t\t\t\t\t\t\t\t\t\t$resultStr = sprintf(TEXTTPL, $fromUsername, $toUsername, $time, $msgType, $contentStr);\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\telse{\n\t\t\t\t\t\t\t\t\t$msgType = \"text\";\n\t\t\t\t\t\t\t\t\t$contentStr=\"尊敬的客户,您好,很抱歉,您还不是本服务号认证客户,服务仅向身份验证过的客户开放,请与您国泰君安当地营业部联系\";\n\t\t\t\t\t\t\t\t\t$resultStr = sprintf(TEXTTPL, $fromUsername, $toUsername, $time, $msgType, $contentStr);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t$msgType = \"text\";\n\t\t\t\t\t\t\t\t$contentStr=\"填写的信息有误,请核实\";\n\t\t\t\t\t\t\t\t$resultStr = sprintf(TEXTTPL, $fromUsername, $toUsername, $time, $msgType, $contentStr);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t$sql=\"select * from userinfo where 1=1 and user_wx_bs='{$fromUsername}'\";\n\t\t\t\t\t\t\t$res=mysql_query($sql,$db);\n\t\t\t\t\t\t\t$row = mysql_fetch_array($res);\n\t\t\t\t\t\t\t$db_user_id=$row[\"user_id\"]?$row[\"user_id\"]:\"\";\n\t\t\t\t\t\t\t$db_user_name=$row[\"user_name\"];\n\t\t\t\t\t\t\tif($db_user_id==\"\"){\n\t\t\t\t\t\t\t\t$msgType = \"text\";\n\t\t\t\t\t\t\t\t$contentStr=\"尊敬的客户,您好,很抱歉,您还不是本服务号认证客户,服务仅向身份验证过的客户开放,请发送'申请客户号+客户姓名(如:申请000001+张三)'进行验证\";\n\t\t\t\t\t\t\t\t$resultStr = sprintf(TEXTTPL, $fromUsername, $toUsername, $time, $msgType, $contentStr);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\tif(substr($keyword,0,6)==\"公司\" or substr($keyword,0,6)==\"行业\"){\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t$subword=trim(substr($keyword,6,strlen($keyword)));\n\n\t\t\t\t\t\t\t\t\tif($subword){\n\t\t\t\t\t\t\t\t\t\t$sql=\"select a.*,b.get_type_name from action a left join get_type b on a.get_type_id=b.get_type_id where 1=1 and a.get_msgtype_id='1' and (a.get_event like '%{$subword}%' or a.get_event_key like '%{$subword}%' ) order by a.action_id desc limit 1\";\n\t\t\t\t\t\t\t\t\t\t$temp.=$sql.\"|\";\n\t\t\t\t\t\t\t\t\t\t$res=mysql_query($sql,$db);\n\t\t\t\t\t\t\t\t\t\t$row = mysql_fetch_array($res);\n\t\t\t\t\t\t\t\t\t\t$get_type_id=$row['get_type_id']?$row['get_type_id']:\"\";\n\t\t\t\t\t\t\t\t\t\t$get_type_name=$row['get_type_name']?$row['get_type_name']:\"\";\n\t\t\t\t\t\t\t\t\t\tif($get_type_id!=\"\"){\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t$sql=\"select * from user_record where 1=1 and user_wx_bs='{$fromUsername}' and get_content='{$keyword}' and last_time like '{$nowdate}%'\";\n\t\t\t\t\t\t\t\t\t\t\t$temp.=$sql.\"|\";\n\t\t\t\t\t\t\t\t\t\t\t$res=mysql_query($sql,$db);\n\t\t\t\t\t\t\t\t\t\t\t$row = mysql_fetch_array($res);\n\t\t\t\t\t\t\t\t\t\t\t$user_record_id=$row['user_record_id']?$row['user_record_id']:\"\";\n\t\t\t\t\t\t\t\t\t\t\tif($user_record_id!=\"\"){\n\t\t\t\t\t\t\t\t\t\t\t\t$sql=\"update user_record set last_time='{$nowdatetime}',count=count+1 where user_record_id='{$user_record_id}'\";\n\t\t\t\t\t\t\t\t\t\t\t\t$temp.=$sql.\"|\";\n\t\t\t\t\t\t\t\t\t\t\t\t$res=mysql_query($sql,$db);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t\t\t\t$sql=\"INSERT INTO user_record(get_type_id,get_type_name,get_content,user_wx_bs,last_time,count)VALUES('{$get_type_id}','{$get_type_name}','{$keyword}','{$fromUsername}','{$nowdatetime}','1')\";\n\t\t\t\t\t\t\t\t\t\t\t\t$temp.=$sql.\"|\";\n\t\t\t\t\t\t\t\t\t\t\t\t$res=mysql_query($sql,$db);\n\t\t\t\t\t\t\t\t\t\t\t}\n\n\n\t\t\t\t\t\t\t\t\t\t}\n\n\n\t\t\t\t\t\t\t\t\t\t$sql=\"select * from action where 1=1 and get_msgtype_id='1' and (get_event like '%{$subword}%' or get_event_key like '%{$subword}%' ) order by action_id desc\";\n\t\t\t\t\t\t\t\t\t\t$res=mysql_query($sql,$db);\n\n\t\t\t\t\t\t\t\t\t\t$i=0;\n\t\t\t\t\t\t\t\t\t\t$reply_msgtype_id=\"\";\n\t\t\t\t\t\t\t\t\t\t$reply_list=\"\";\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\twhile($row = mysql_fetch_array($res, MYSQL_ASSOC))\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tif($i==1){\n\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t$action_id=$row['action_id'];\n\t\t\t\t\t\t\t\t\t\t\t$reply_msgtype_id=$row['reply_msgtype_id'];\n\t\t\t\t\t\t\t\t\t\t\t$reply_url=($row['reply_url'] and $row['reply_url']!=\"\")?$row['reply_url']:(_Host.\"web/report.html?action_id=\".$action_id.\"&fromusername=\".$fromUsername);\n\n\t\t\t\t\t\t\t\t\t\t\tif($reply_msgtype_id==\"3\"){\n\t\t\t\t\t\t\t\t\t\t\t\tif($reply_list==\"\"){\n\t\t\t\t\t\t\t\t\t\t\t\t\t//$reply_list=$row['reply_list'];\n\t\t\t\t\t\t\t\t\t\t\t\t\t$reply_list.=$row['reply_title'].\"|||\".$row['reply_description'].\"|||\".$row['reply_picurl'].\"|||\".$reply_url;\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t\t\t\t\t$reply_list.=\",,,\".$row['reply_title'].\"|||\".$row['reply_description'].\"|||\".$row['reply_picurl'].\"|||\".$reply_url;\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\telseif($reply_msgtype_id==\"1\"){\n\t\t\t\t\t\t\t\t\t\t\t\tif($reply_list==\"\"){\n\t\t\t\t\t\t\t\t\t\t\t\t\t$reply_list=$row['reply_list'];\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t\t\t\t\t$reply_list.=\",,,\".$row['reply_list'];\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t$i=$i+1;\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t$temp.=$reply_msgtype_id.\"|\".$reply_list.\"|\";\n\n\t\t\t\t\t\t\t\t\t\t//$reply_list=\"尊敬的'$db_user_name'客户,您好,您所查找的报告为:\\n\".$reply_list;\n\t\t\t\t\t\t\t\t\t\tif($reply_msgtype_id && $reply_list){\n\t\t\t\t\t\t\t\t\t\t\t$resultStr = replylist($reply_msgtype_id,$reply_list, $fromUsername, $toUsername, $time);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t\t\t$msgType = \"text\";\n\t\t\t\t\t\t\t\t\t\t\t$contentStr=\"尊敬的客户,很抱歉,您所搜寻的报告暂时无法找到,您可以直接与范寅 (0571-87245610)进行联系。\";\n\t\t\t\t\t\t\t\t\t\t\t$resultStr = sprintf(TEXTTPL, $fromUsername, $toUsername, $time, $msgType, $contentStr);\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\telse{\n\t\t\t\t\t\t\t\t\t\t$msgType = \"text\";\n\t\t\t\t\t\t\t\t\t\t$contentStr=\"填写的信息有误,请核实\";\n\t\t\t\t\t\t\t\t\t\t$resultStr = sprintf(TEXTTPL, $fromUsername, $toUsername, $time, $msgType, $contentStr);\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\telse\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tif($keyword=='test'){\n\t\t\t\t\t\t\t\t\t\t$Articlecount=1;\n\t\t\t\t\t\t\t\t\t\t$Article[0]=array(\"test1\",\"test\\nhaha\\nceshi\",\"http://tuanimg3.baidu.com/data/2_8df83ddc294f486f990c706a8270a1a6\",\"https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx22464c90a1af1d67&redirect_uri=http%3A%2F%2F114.141.166.14%2Fwx%2Fcompanyviwedetail.jsp%3Faccountid%3D6%26id%3D50000472%26type%3D3&response_type=code&scope=snsapi_base&state=weixin#wechat_redirect\");\n\t\t\t\t\t\t\t\t\t\t$Article[1]=array(\"test2\",\"\",\"\",\"http://42.121.28.128:8080/wxservice/showmap.php?startlocation=120.095078,30.328026&endlocation=120.093338,30.327613&\");\n\t\t\t\t\t\t\t\t\t\t$Article[2]=array(\"test3\",\"\",\"\",\"http://42.121.28.128:8080/wxservice/showmap.php?startlocation=120.095078,30.328026&endlocation=120.095078,30.328026&\");\n\t\t\t\t\t\t\t\t\t\t$ArticleString=\"\";\n\t\t\t\t\t\t\t\t\t\tfor ($i=0;$i<=$Articlecount-1;$i++){\n\t\t\t\t\t\t\t\t\t\t\t$ArticleItemString=sprintf(ARTICLEITEM,$Article[$i][0], $Article[$i][1], $Article[$i][2], $Article[$i][3]);\n\t\t\t\t\t\t\t\t\t\t\t$ArticleString=$ArticleString.$ArticleItemString.\"\\n\";\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t$msgType = \"news\";\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t$resultStr = sprintf(ARTICLETPL, $fromUsername, $toUsername, $time, $msgType, $Articlecount, $ArticleString);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t\t$msgType = \"text\";\n\t\t\t\t\t\t\t\t\t\t$contentStr=\"感谢您的关注,有任何疑问欢迎留言!同时留下您的姓名、联系方式以及对应的客户经理姓名,我们会尽快安排专人为您提供服务!\";\n\t\t\t\t\t\t\t\t\t\t$resultStr = sprintf(TEXTTPL, $fromUsername, $toUsername, $time, $msgType, $contentStr);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}else{\n\t\t\t\t\t\techo \"Input something...\";\n\t\t\t\t\t}\n }\n elseif($getmsgType=='event'){\n \t$event = $postObj->Event?$postObj->Event:\"\";\n\t\t\t\t\t$eventkey = $postObj->EventKey?$postObj->EventKey:\"\";\n\n\t\t\t\t\t$temp.=$event.\"|\".$eventkey.\"|\";\n \tif($event=='subscribe'){\n \t\t$msgType = \"text\";\n \t\t$contentStr=\"\\\"国泰君安证券浙江分公司\\\"欢迎您,我们为您提供最及时、最符合市场动向的资讯服务,让您体验国泰君安证券的特色高端服务! 精彩信息欢迎点击下方菜单。\";\n\t\t\t\t\t\t$resultStr = sprintf(TEXTTPL, $fromUsername, $toUsername, $time, $msgType, $contentStr);\n \t}\n\t\t\t\t\telseif($event=='CLICK'){\n\n\t\t\t\t\t\t$sql=\"select * from userinfo where 1=1 and user_wx_bs='{$fromUsername}'\";\n\t\t\t\t\t\t$res=mysql_query($sql,$db);\n\t\t\t\t\t\t$row = mysql_fetch_array($res);\n\t\t\t\t\t\t$db_user_id=$row[\"user_id\"]?$row[\"user_id\"]:\"\";\n\t\t\t\t\t\t$db_user_name=$row[\"user_name\"];\n\t\t\t\t\t\tif($db_user_id==\"\"){\n\t\t\t\t\t\t\t$msgType = \"text\";\n\t\t\t\t\t\t\t$contentStr=\"尊敬的客户,您好,很抱歉,您还不是本服务号认证客户,服务仅向身份验证过的客户开放,请发送'申请客户号+客户姓名(如:申请000001+张三)'进行验证\";\n\t\t\t\t\t\t\t$resultStr = sprintf(TEXTTPL, $fromUsername, $toUsername, $time, $msgType, $contentStr);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\n\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif($eventkey!=\"\"){\n\t\t\t\t\t\t\t\t\t$sql=\"select * from get_type where 1=1 and get_event_key='{$eventkey}'\";\n\t\t\t\t\t\t\t\t\t$temp.=$sql.\"|\";\n\t\t\t\t\t\t\t\t\t$res=mysql_query($sql,$db);\n\t\t\t\t\t\t\t\t\t$row = mysql_fetch_array($res);\n\t\t\t\t\t\t\t\t\t$get_type_id=$row['get_type_id']?$row['get_type_id']:\"\";\n\t\t\t\t\t\t\t\t\t$get_type_name=$row['get_type_name']?$row['get_type_name']:\"\";\n\t\t\t\t\t\t\t\t\tif($get_type_id!=\"\"){\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t$sql=\"select * from user_record where 1=1 and user_wx_bs='{$fromUsername}' and get_event_key='{$eventkey}' and last_time like '{$nowdate}%'\";\n\t\t\t\t\t\t\t\t\t\t$temp.=$sql.\"|\";\n\t\t\t\t\t\t\t\t\t\t$res=mysql_query($sql,$db);\n\t\t\t\t\t\t\t\t\t\t$row = mysql_fetch_array($res);\n\t\t\t\t\t\t\t\t\t\t$user_record_id=$row['user_record_id']?$row['user_record_id']:\"\";\n\t\t\t\t\t\t\t\t\t\tif($user_record_id!=\"\"){\n\t\t\t\t\t\t\t\t\t\t\t$sql=\"update user_record set last_time='{$nowdatetime}',count=count+1 where user_record_id='{$user_record_id}'\";\n\t\t\t\t\t\t\t\t\t\t\t$temp.=$sql.\"|\";\n\t\t\t\t\t\t\t\t\t\t\t$res=mysql_query($sql,$db);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t\t\t$sql=\"INSERT INTO user_record(get_type_id,get_type_name,get_event_key,user_wx_bs,last_time,count)VALUES('{$get_type_id}','{$get_type_name}','{$eventkey}','{$fromUsername}','{$nowdatetime}','1')\";\n\t\t\t\t\t\t\t\t\t\t\t$temp.=$sql.\"|\";\n\t\t\t\t\t\t\t\t\t\t\t$res=mysql_query($sql,$db);\n\t\t\t\t\t\t\t\t\t\t}\n\n\n\t\t\t\t\t\t\t\t\t}\n\n\n\t\t\t\t\t\t\t\t\tif(($eventkey==\"gtjazj_1_1\") and (strtotime($nowtime)<strtotime(\"08:45:00\"))){\n\t\t\t\t\t\t\t\t\t\t$msgType = \"text\";\n\t\t\t\t\t\t\t\t\t\t$contentStr=\"对不起,本栏目请于8点45分后查询\";\n\t\t\t\t\t\t\t\t\t\t$resultStr = sprintf(TEXTTPL, $fromUsername, $toUsername, $time, $msgType, $contentStr);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t\tif($eventkey==\"gtjazj_3_1\"){\n\t\t\t\t\t\t\t\t\t\t\t$reply_msgtype_id=\"3\";\n\t\t\t\t\t\t\t\t\t\t\t$reply_list=\"宏观报告\".\"|||\".\"\".\"|||\".(_Host.\"web/img/hongguan.gif\").\"|||\".(_Host.\"web/list.html?get_event_key=\".$eventkey);\n\t\t\t\t\t\t\t\t\t\t\t$resultStr = replylist($reply_msgtype_id,$reply_list, $fromUsername, $toUsername, $time);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\telseif($eventkey==\"gtjazj_3_2\"){\n\t\t\t\t\t\t\t\t\t\t\t$reply_msgtype_id=\"3\";\n\t\t\t\t\t\t\t\t\t\t\t$reply_list=\"策略报告\".\"|||\".\"\".\"|||\".(_Host.\"web/img/celue.jpg\").\"|||\".(_Host.\"web/list.html?get_event_key=\".$eventkey);\n\t\t\t\t\t\t\t\t\t\t\t$resultStr = replylist($reply_msgtype_id,$reply_list, $fromUsername, $toUsername, $time);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\telseif($eventkey==\"gtjazj_3_3\"){\n\t\t\t\t\t\t\t\t\t\t\t$reply_msgtype_id=\"3\";\n\t\t\t\t\t\t\t\t\t\t\t$reply_list=\"公司报告\".\"|||\".\"\".\"|||\".(_Host.\"web/img/gsyjbg.jpg\").\"|||\".(_Host.\"web/list.html?get_type_id=10\");\n\t\t\t\t\t\t\t\t\t\t\t$resultStr = replylist($reply_msgtype_id,$reply_list, $fromUsername, $toUsername, $time);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\telseif($eventkey==\"gtjazj_3_4\"){\n\t\t\t\t\t\t\t\t\t\t\t$reply_msgtype_id=\"3\";\n\t\t\t\t\t\t\t\t\t\t\t$reply_list=\"行业报告\".\"|||\".\"\".\"|||\".(_Host.\"web/img/hyyjbg.jpg\").\"|||\".(_Host.\"web/list.html?get_type_id=11\");\n\t\t\t\t\t\t\t\t\t\t\t$resultStr = replylist($reply_msgtype_id,$reply_list, $fromUsername, $toUsername, $time);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\telseif($eventkey==\"gtjazj_1_3\"){\n\t\t\t\t\t\t\t\t\t\t\t$reply_msgtype_id=\"3\";\n\t\t\t\t\t\t\t\t\t\t\t$reply_list=\"特别报道\".\"|||\".\"\".\"|||\".(_Host.\"web/img/tbbd.jpg\").\"|||\".(_Host.\"web/list.html?get_type_id=3\");\n\t\t\t\t\t\t\t\t\t\t\t$resultStr = replylist($reply_msgtype_id,$reply_list, $fromUsername, $toUsername, $time);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t\t\t$sql=\"select * from action where 1=1 and get_msgtype_id='2' and get_event='click' and get_event_key='{$eventkey}' order by action_id desc\";\n\t\t\t\t\t\t\t\t\t\t\t$temp.=$sql.\"|\";\n\n\t\t\t\t\t\t\t\t\t\t\t$res=mysql_query($sql,$db);\n\n\t\t\t\t\t\t\t\t\t\t\t$i=0;\n\t\t\t\t\t\t\t\t\t\t\t$reply_msgtype_id=\"\";\n\t\t\t\t\t\t\t\t\t\t\t$reply_list=\"\";\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\twhile($row = mysql_fetch_array($res, MYSQL_ASSOC))\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tif($i==1){\n\t\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t$action_id=$row['action_id'];\n\t\t\t\t\t\t\t\t\t\t\t\t$reply_msgtype_id=$row['reply_msgtype_id'];\n\t\t\t\t\t\t\t\t\t\t\t\t$reply_url=($row['reply_url'] and $row['reply_url']!=\"\")?$row['reply_url']:(_Host.\"web/reply.html?action_id=\".$action_id);\n\n\t\t\t\t\t\t\t\t\t\t\t\tif($reply_msgtype_id==\"3\"){\n\t\t\t\t\t\t\t\t\t\t\t\t\tif($reply_list==\"\"){\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t//$reply_list=$row['reply_list'];\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$reply_list.=$row['reply_title'].\"|||\".$row['reply_description'].\"|||\".$row['reply_picurl'].\"|||\".$reply_url;\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$reply_list.=\",,,\".$row['reply_title'].\"|||\".$row['reply_description'].\"|||\".$row['reply_picurl'].\"|||\".$reply_url;\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\telseif($reply_msgtype_id==\"1\"){\n\t\t\t\t\t\t\t\t\t\t\t\t\tif($reply_list==\"\"){\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$reply_list=$row['reply_list'];\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$reply_list.=\",,,\".$row['reply_list'];\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t\t$i=$i+1;\n\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t$temp.=$reply_msgtype_id.\"|\".$reply_list.\"|\";\n\n\n\t\t\t\t\t\t\t\t\t\t\tif($reply_msgtype_id){\n\t\t\t\t\t\t\t\t\t\t\t\t$resultStr = replylist($reply_msgtype_id,$reply_list, $fromUsername, $toUsername, $time);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t\t\t\tif($eventkey==\"gtjazj_1_4\"){\n\t\t\t\t\t\t\t\t\t\t\t\t\tif($db_user_id){\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$msgType = \"text\";\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$contentStr=\"尊敬的'$db_user_name'客户,您好,您已经通过申请认证。\";\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$resultStr = sprintf(TEXTTPL, $fromUsername, $toUsername, $time, $msgType, $contentStr);\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t\t\t\t\t$msgType = \"text\";\n\t\t\t\t\t\t\t\t\t\t\t\t\t$temp.=\"该菜单对应事件'$eventkey'不存在,请核对eventkey\";\n\t\t\t\t\t\t\t\t\t\t\t\t\t$contentStr=\"该功能还在建设中,敬请期待\";\n\t\t\t\t\t\t\t\t\t\t\t\t\t$resultStr = sprintf(TEXTTPL, $fromUsername, $toUsername, $time, $msgType, $contentStr);\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t$msgType = \"text\";\n\t\t\t\t\t\t\t\t\t$temp.=\"该菜单对应事件为空,请核对eventkey\";\n\t\t\t\t\t\t\t\t\t$contentStr=\"该功能还在建设中,敬请期待\";\n\t\t\t\t\t\t\t\t\t$resultStr = sprintf(TEXTTPL, $fromUsername, $toUsername, $time, $msgType, $contentStr);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}\n \t}\n \telse\n \t{\n \t\t$msgType = \"text\";\n \t\t$contentStr=\"该功能还在建设中,敬请期待\";\n\t\t\t\t\t\t$resultStr = sprintf(TEXTTPL, $fromUsername, $toUsername, $time, $msgType, $contentStr);\n \t}\n }\n\n }\n\n\t\techo $resultStr;\n\n\t\tif (_Islog==\"1\"){\n\t\t\t$nowdate = date(\"Y-m-d H\");\n\t\t\t$nowdatetime =date(\"Y-m-d H:i:s\");\n\t\t\t$log= \"time: \".$nowdatetime.\"\\n\\n\";\n\t\t\t$log.=\"request: \\n\";\n\t\t\t$log.=$postStr.\"\\n\";\n\t\t\t$log.=print_r($_REQUEST,true).\"\\n\";\n\t\t\tif(!empty($_FILES)){\n\t\t\t\t$filestr = print_r($_FILES, true);\n\t\t\t\t$log.=\"file:\\n\".$filestr.\"\\n\";\n\t\t\t}\n\t\t\t$log.=\"reply: \\n\";\n\t\t\t$log.=$resultStr.\"\\n\";\n\n\t\t\t$log.=$temp.\"\\n\\n\\n\";\n\t\t\t\n\t\t\t$logdir = dirname(__FILE__).\"/log\";\n\t\t\tif (!is_dir($logdir))\n\t\t\t{\n\t\t\t\tmkdir($logdir);\n\t\t\t}\n\t\t\t$files = scandir($logdir);\n\t\t\t$log.=\"del: \\n\";\n\n\t\t\tforeach ($files as $filename){\n\t\t\t\t$thisfile=$logdir.'/'.$filename;\n\t\t\t\t$log.=$thisfile.\"\\n\";\n\t\t\t\tif(($thisfile!='.') && ($thisfile!='..') && ((time()-filemtime($thisfile)) >3600*24*7) ) {\n\n\t\t\t\t\tunlink($thisfile);//删除此次遍历到的文件\n\n\t\t\t\t}\n\t\t\t}\n\t\t\t$fp = fopen($logdir.\"/\".$nowdate.\".txt\",\"a\");\n\t\t\tfwrite($fp,$log.\"\\n\");\n\t\t\tfclose($fp);\n\n\t\t}\n\n\t\texit;\n \n }",
"public function get_client_info(){\r\t\t\t$query=\"select * from `\".$this->tablename3.\"` where `id`='\".$this->client_id.\"'\";\r\t\t\t$result=mysqli_query($this->conn,$query);\r\t\t\t$value=mysqli_fetch_row($result);\r\t\t\treturn $value;\r\t\t}",
"public function responseMsg()\n {\n $postStr = $GLOBALS[\"HTTP_RAW_POST_DATA\"];\n\n //extract post data\n if (!empty($postStr)){\n /* libxml_disable_entity_loader is to prevent XML eXternal Entity Injection,\n the best way is to check the validity of xml by yourself */\n libxml_disable_entity_loader(true);\n $postObj = simplexml_load_string($postStr, 'SimpleXMLElement', LIBXML_NOCDATA);\n $fromUsername = $postObj->FromUserName;\n $toUsername = $postObj->ToUserName;\n $MsgType = $postObj->MsgType;\n $keyword = trim($postObj->Content);\n $time = time();\n $textTpl = \"<xml>\n\t\t\t\t\t\t\t<ToUserName><![CDATA[%s]]></ToUserName>\n\t\t\t\t\t\t\t<FromUserName><![CDATA[%s]]></FromUserName>\n\t\t\t\t\t\t\t<CreateTime>%s</CreateTime>\n\t\t\t\t\t\t\t<MsgType><![CDATA[%s]]></MsgType>\n\t\t\t\t\t\t\t<Content><![CDATA[%s]]></Content>\n\t\t\t\t\t\t\t<FuncFlag>0</FuncFlag>\n\t\t\t\t\t\t\t</xml>\";\n if(!empty( $keyword ))\n {\n $msgType = \"text\";\n $contentStr = '感谢您的关注,我们将竭诚为您服务!';\n $resultStr = sprintf($textTpl, $fromUsername, $toUsername, $time, $msgType, $contentStr);\n echo $resultStr;\n }else{\n echo \"Input something...\";\n }\n\n }else {\n echo \"\";\n exit;\n }\n }",
"public function receiveMsg()\n {\n $postStr = $GLOBALS[\"HTTP_RAW_POST_DATA\"];\n require \"templates.php\";\n $tpl = new templates();\n //extract post data\n if (!empty($postStr)) {\n $postObj = simplexml_load_string($postStr, 'SimpleXMLElement', LIBXML_NOCDATA);\n $postMsgType = $postObj->MsgType;\n //开发者微信号\n $FromUserName = $postObj->FromUserName;\n //发送方帐号(一个OpenID)\n $ToUserName = $postObj->ToUserName;\n //消息创建时间 (整型)\n $CreateTime = $postObj->CreateTime;\n //消息id,64位整型\n $MsgId = $postObj->MsgId;\n //根据消息类型获取用户发送的消息\n $respTime = time();\n switch ($postMsgType) {\n case \"text\":\n //文本消息内容\n $Content = $postObj->Content;\n require \"robot.php\";\n $robot = new robot();\n if (preg_match(\"/问 .+ 答 .+/\", $Content)) {\n //教学\n $str = preg_split(\"/问 | 答 /\", $Content);\n $ask = $str[1];\n $answer = $str[2];\n $contentStr = $robot->teach($ask, $answer);\n } elseif (preg_match(\"/vivaxy select .+/\", $Content)) {\n // 查看 模式\n // mysql connection\n require \"mysql.php\";\n $mysql = new mysql();\n $con = $mysql->getConnection();\n // get column names\n $selectString = preg_split(\"/vivaxy select | where | limit /\", $Content, 0, PREG_SPLIT_NO_EMPTY)[0];\n\n $columnArray = preg_split(\"/,/\", $selectString, 0, PREG_SPLIT_NO_EMPTY);\n // get condition clauses\n // where\n $whereClauses = \"\";\n if (preg_match(\"/ where /\", $Content)) {\n $whereClauses = preg_split(\"/ where /\", $Content, 0, PREG_SPLIT_NO_EMPTY)[1];\n $whereClauses = preg_split(\"/ limit /\", $whereClauses, 0, PREG_SPLIT_NO_EMPTY)[0];\n $whereClauses = \" where \" . $whereClauses;\n }\n // limit\n $limitClauses = \"\";\n if (preg_match(\"/ limit /\", $Content)) {\n $limitClauses = preg_split(\"/ limit /\", $Content, 0, PREG_SPLIT_NO_EMPTY)[1];\n $limitClauses = preg_split(\"/ where /\", $limitClauses, 0, PREG_SPLIT_NO_EMPTY)[0];\n $limitClauses = \" limit \" . $limitClauses;\n }\n // get mysql query string\n $queryString = \"select \" . implode(\",\", $columnArray) . \" from robot\" . $whereClauses . $limitClauses;\n // get mysql result\n $result = mysql_query($queryString, $con);\n // get echo string\n $contentStr = $queryString . \"\\n\" . implode(\" | \", $columnArray) . \"\\n\";\n while ($row = mysql_fetch_row($result)) {\n $contentStr = $contentStr . implode(\" | \", $row) . \"\\n\";\n }\n // close mysql connection\n $mysql->closeConnection($con);\n } elseif (preg_match(\"/vivaxy delete .+/\", $Content)) {\n // 删除 模式\n // mysql connection\n require \"mysql.php\";\n $mysql = new mysql();\n $con = $mysql->getConnection();\n // get column names\n $deleteId = preg_split(\"/vivaxy delete /\", $Content, 0, PREG_SPLIT_NO_EMPTY)[0];\n\n // get mysql query string\n $queryString = \"delete from robot where id = \" . $deleteId;\n // get mysql result\n $result = mysql_query($queryString, $con);\n // get echo string\n $contentStr = $queryString . \"\\n\" . $result;\n // close mysql connection\n $mysql->closeConnection($con);\n } else {\n //回复\n $contentStr = $robot->answer($Content);\n if ($contentStr == \"\") {\n //$contentStr = $Content;\n $contentStr = \"嗯~\";\n }\n }\n $resultStr = sprintf($tpl::textTpl, $FromUserName, $ToUserName, $respTime, $contentStr);\n break;\n case \"image\":\n //图片链接\n $PicUrl = $postObj->PicUrl;\n //图片消息媒体id,可以调用多媒体文件下载接口拉取数据。\n $MediaId = $postObj->MediaId;\n //回复\n $contentStr = \"PicUrl=\" . $PicUrl . \"\\nMediaId=\" . $MediaId;\n $resultStr = sprintf($tpl::textTpl, $FromUserName, $ToUserName, $respTime, $contentStr);\n break;\n case \"voice\":\n //语音消息媒体id,可以调用多媒体文件下载接口拉取数据。\n $MediaId = $postObj->MediaId;\n //语音格式,如amr,speex等\n $Format = $postObj->Format;\n //回复\n $contentStr = \"MediaId=\" . $MediaId . \"\\nFormat=\" . $Format;\n $resultStr = sprintf($tpl::textTpl, $FromUserName, $ToUserName, $respTime, $contentStr);\n break;\n case \"video\":\n //视频消息媒体id,可以调用多媒体文件下载接口拉取数据。\n $MediaId = $postObj->MediaId;\n //视频消息缩略图的媒体id,可以调用多媒体文件下载接口拉取数据。\n $ThumbMediaId = $postObj->ThumbMediaId;\n //回复\n $contentStr = \"MediaId=\" . $MediaId . \"\\nThumbMediaId=\" . $ThumbMediaId;\n $resultStr = sprintf($tpl::textTpl, $FromUserName, $ToUserName, $respTime, $contentStr);\n break;\n case \"location\":\n //地理位置维度\n $Location_X = $postObj->Location_X;\n //地理位置经度\n $Location_Y = $postObj->Location_Y;\n //地图缩放大小\n $Scale = $postObj->Scale;\n //地理位置信息\n $Label = $postObj->Label;\n //回复\n $contentStr = \"Location_X=\" . $Location_X . \"\\nLocation_Y=\" . $Location_Y . \"\\nScale=\" . $Scale . \"\\nLabel=\" . $Label;\n $resultStr = sprintf($tpl::textTpl, $FromUserName, $ToUserName, $respTime, $contentStr);\n break;\n case \"link\":\n //消息标题\n $Title = $postObj->Title;\n //消息描述\n $Description = $postObj->Description;\n //消息链接\n $Url = $postObj->Url;\n //回复\n $contentStr = \"Title=\" . $Title . \"\\nDescription=\" . $Description . \"\\nUrl=\" . $Url;\n $resultStr = sprintf($tpl::textTpl, $FromUserName, $ToUserName, $respTime, $contentStr);\n break;\n case \"event\":\n $Event = $postObj->Event;\n switch ($Event) {\n case \"subscribe\":\n //事件KEY值,qrscene_为前缀,后面为二维码的参数值\n $EventKey = $postObj->EventKey;\n //二维码的ticket,可用来换取二维码图片\n $Ticket = $postObj->Ticket;\n if ($EventKey == \"\" && $Ticket == \"\") {\n $contentStr = \"来来来!输入\\\"帮助\\\"查看帮助。\";\n } else {\n $contentStr = \"EventKey=\" . $EventKey . \"\\nTicket=\" . $Ticket;\n }\n break;\n case \"unsubscribe\":\n $contentStr = \"取消关注\";\n break;\n case \"SCAN\":\n //事件KEY值,是一个32位无符号整数,即创建二维码时的二维码scene_id\n $EventKey = $postObj->EventKey;\n //二维码的ticket,可用来换取二维码图片\n $Ticket = $postObj->Ticket;\n $contentStr = \"EventKey=\" . $EventKey . \"\\nTicket=\" . $Ticket;\n break;\n case \"LOCATION\":\n //地理位置纬度\n $Latitude = $postObj->Latitude;\n //地理位置经度\n $Longitude = $postObj->Longitude;\n //地理位置精度\n $Precision = $postObj->Precision;\n $contentStr = \"Latitude=\" . $Latitude . \"\\nLongitude=\" . $Longitude . \"\\nPrecision=\" . $Precision;\n break;\n case \"CLICK\":\n //事件KEY值,与自定义菜单接口中KEY值对应\n $EventKey = $postObj->EventKey;\n $contentStr = \"EventKey=\" . $EventKey;\n break;\n case \"VIEW\":\n //事件KEY值,与自定义菜单接口中KEY值对应\n $EventKey = $postObj->EventKey;\n $contentStr = \"EventKey=\" . $EventKey;\n break;\n default:\n $contentStr = \"unknown message type\";\n break;\n }\n $resultStr = sprintf($tpl::textTpl, $FromUserName, $ToUserName, $respTime, $contentStr);\n break;\n default:\n //回复\n $contentStr = \"unknown message type\";\n $resultStr = sprintf($tpl::textTpl, $FromUserName, $ToUserName, $respTime, $contentStr);\n break;\n }\n } else { //empty post string\n //return empty string\n $resultStr = \"\";\n }\n return $resultStr;\n }",
"public function getResponseMessage()\n {\n //handle initial request parsing errors\n if (!empty($this->message)) {\n return $this->message;\n }\n try {\n $this->verifyRequest();\n $actions = explode('~', $this->cmd);\n $acceptedActions = array('setKey','setLock','disable','enable','delete','create','login','logme','logoff');\n $responseCode = self::IP_MATCH;//just set this for now, need to set up no enforce IP handling\n if ($this->requestType === self::INITIAL_REQUEST) {\n $continue=true;\n } else {\n $continue=false;\n }\n foreach ($actions as $act) {\n if (!in_array($act, $acceptedActions)) {\n return $this->formatResponse(\n 'Command not found', \n self::COMMAND_FAILED|self::SQRL_SERVER_FAILURE|self::IP_MATCH,\n false\n );\n }\n $actionResponse = $this->$act($continue);\n if ($actionResponse&self::COMMAND_FAILED) {\n return $this->formatResponse(\n $act.' command failed', \n $actionResponse,\n false\n );\n }\n $responseCode |= $actionResponse;\n }\n if (!$continue) {\n $this->store->validateNut($this->requestNut);\n }\n return $this->formatResponse('Commands successful',$responseCode,$continue);\n } catch (SqrlException $ex) {\n switch ($ex->getCode()) {\n case SqrlException::ENFORCE_IP_FAIL:\n return $this->formatResponse(\n 'IPs do not match', \n self::COMMAND_FAILED|self::SQRL_SERVER_FAILURE\n );\n case SqrlException::SIGNATURE_NOT_VALID:\n return $this->formatResponse(\n 'Signature did not match', \n self::COMMAND_FAILED|self::SQRL_SERVER_FAILURE|self::IP_MATCH,\n false\n );\n default:\n throw $ex;\n }\n }\n }",
"public function recoger_resultado_respuesta() {\n $json_decodificado = $this->json_decodificado;\n $this->ok = $json_decodificado['meta']['message'];\n $this->code = $json_decodificado['meta']['code'];\n }"
] | [
"0.61376166",
"0.6135618",
"0.59722644",
"0.5860197",
"0.58063406",
"0.5803298",
"0.57667917",
"0.56596196",
"0.5627392",
"0.5585647",
"0.555819",
"0.5521766",
"0.5516376",
"0.5512222",
"0.54906726",
"0.5472288",
"0.54553413",
"0.5453495",
"0.54455376",
"0.5442188",
"0.5425399",
"0.5421945",
"0.5416104",
"0.54014736",
"0.53912836",
"0.53908956",
"0.5379906",
"0.53785425",
"0.53768957",
"0.53739554"
] | 0.6169267 | 0 |
the response of the client to a com (be save on table msgclient) | function reponseclient($idcom, $nom) {
if(empty($idcom) and empty($nom) )
redirect ('inscription/login');
//test sécurité de cnx
if (!getsessionhelper())
{
redirect ('inscription/login');
}
//
$idclt = getsessionhelper()['id'];
$this->form_validation->set_rules('sujet', 'Sujet', 'required|trim');
$this->form_validation->set_rules('contenu', 'Contenu', 'required|trim');
if ($this->form_validation->run() == FALSE) {
$conv = $this->message_model->get_conv_for_client($idcom);
//sort the table of conversation by date
usort($conv, function($a, $b) {
$ad = new DateTime($a['dateenvoi']);
$bd = new DateTime($b['dateenvoi']);
if ($ad == $bd) {
return 0;
}
return $ad < $bd ? 1 : -1;
});
$data['conv'] = $conv;
$data['nom'] = str_replace("%20", " ", $nom);
$data['idcom'] = $idcom;
$data['shopping'] = $this->shopping;
$this->twig->render('message/client/ListMsg_view', $data);
} else {
$this->message_model->reponseclient($idcom);
redirect('message/msgclientcomm/listmsgcomm');
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"abstract function getResponseMessage();",
"public function replyResponse();",
"public function sendResponseUpdate()\n {\n //\n }",
"function reponsecomm($idclient, $nom) {\n if(empty($idclient) and empty($nom))\n redirect ('inscription/login');\n //test sécurité de cnx\n if (!getsessionhelper())\n {\n redirect ('inscription/login');\n }\n \n //\n $idcom = getsessionhelper()['id'];\n $this->form_validation->set_rules('sujet', 'Sujet', 'required|trim');\n $this->form_validation->set_rules('contenu', 'Contenu', 'required|trim');\n if ($this->form_validation->run() == FALSE) {\n $conv = $this->message_model->get_conv_client_comm($idclient);\n //sort the table of conversation by date\n usort($conv, function($a, $b) {\n $ad = new DateTime($a['dateenvoi']);\n $bd = new DateTime($b['dateenvoi']);\n\n if ($ad == $bd) {\n return 0;\n }\n\n return $ad < $bd ? 1 : -1;\n });\n\n $data['conv'] = $conv;\n $data['idcl'] = $idclient;\n $data['nom'] = str_replace(\"%20\", \" \", $nom);\n $data['shopping'] = $this->shopping;\n $this->twig->render('message/commercant/ListMsg_view', $data);\n } else {\n //save and update champ notifmsg de la table client\n $this->message_model->reponsecommclient($idclient);\n redirect('message/msgclientcomm/listmsgclientcomm');\n }\n }",
"public function respond()\n {\n\n // Thing actions\n $this->thing->flagGreen();\n\n $this->makeSMS();\n\n $this->message = $this->sms_message;\n\n $message_thing = new Message($this->thing, $this->thing_report);\n $this->thing_report[\"info\"] = $message_thing->thing_report[\"info\"];\n }",
"public function recoger_resultado_respuesta() {\n $json_decodificado = $this->json_decodificado;\n $this->ok = $json_decodificado['meta']['message'];\n $this->code = $json_decodificado['meta']['code'];\n }",
"public function responseMsg()\n {\n $postStr = $GLOBALS[\"HTTP_RAW_POST_DATA\"];\n //extract post data\n\n if (!empty($postStr)) {\n\n $postObj = simplexml_load_string($postStr, 'SimpleXMLElement', LIBXML_NOCDATA);\n $msgType = trim($postObj->MsgType);\n $resultStr=\"台州微生活,输入优惠券,显示优惠信息\";\n switch ($msgType) {\n case \"text\":\n $resultStr = $this->receiveText($postObj);\n break;\n case \"event\":\n $resultStr = $this->receiveEvent($postObj);\n break;\n default:\n $resultStr = \"unknow msg type: \" . $msgType;\n break;\n }\n echo $resultStr;\n\n } else {\n echo \"\";\n exit;\n }\n }",
"function voirmsgcommclient($idcom, $idp, $nom) {\n if(empty($idcom) and empty($idp) and empty($nom))\n redirect ('inscription/login');\n //test sécurité de cnx\n if (!getsessionhelper())\n {\n redirect ('inscription/login');\n }\n \n //\n $conv = $this->message_model->get_conv_for_client($idcom);\n //mettre a zero le champ notifmsg de la table commercant\n $rmz = $this->notif_model->Rmz_Notif_Msg_client(getsessionhelper()['id']);\n //sort the table of conversation by date\n usort($conv, function($a, $b) {\n $ad = new DateTime($a['dateenvoi']);\n $bd = new DateTime($b['dateenvoi']);\n\n if ($ad == $bd) {\n return 0;\n }\n\n return $ad < $bd ? 1 : -1;\n });\n\n $data['conv'] = $conv;\n $data['nom'] = str_replace(\"%20\", \" \", $nom);\n $data['idcom'] = $idcom;\n $data['shopping'] = $this->shopping;\n $this->twig->render('message/client/ListMsg_view', $data);\n }",
"public function getResponse () {}",
"public function responseMsg()\n {\n $postStr = $GLOBALS[\"HTTP_RAW_POST_DATA\"];\n\n //extract post data\n if (!empty($postStr)){\n\n $postObj = simplexml_load_string($postStr, 'SimpleXMLElement', LIBXML_NOCDATA);\n define('FROM_USER_NAME', $postObj->FromUserName);\n define('TO_USER_NAME', $postObj->ToUserName);\n $msg_type = $postObj->MsgType;\n\n switch($msg_type)\n {\n case 'text':\n TextMessage::handle($postObj);\n break;\n case 'image':\n ImageMessage::handle($postObj);\n break;\n case 'voice':\n VoiceMessage::handle($postObj);\n break;\n case 'video':\n VideoMessage::handle($postObj);\n break;\n case 'location':\n LocationMessage::handle($postObj);\n break;\n case 'link':\n LinkMessage::handle($postObj);\n break;\n case 'event':\n EventMessage::handle($postObj);\n break;\n default:\n echo '';\n exit;\n }\n\n }else {\n echo '';\n exit;\n }\n }",
"public function response(){\n\t\t$this->json($data);\n\t\t$this->send($data);\n\t\t$this->status($statusCode);\n\t\t$this->set($field, $value);\n\t}",
"public static function select_msg_user() {\n $response = array();\n $code = \"482\";\n $msg = \"La empresa no emitio este cupon\";\n $response[\"code\"] = $code;\n $response[\"msg\"] = $msg;\n return $response;\n }",
"public function responseMsg()\n {\n $postStr = $GLOBALS[\"HTTP_RAW_POST_DATA\"];\n \n // extract post data\n if (! empty($postStr)) {\n /*\n * libxml_disable_entity_loader is to prevent XML eXternal Entity Injection,\n * the best way is to check the validity of xml by yourself\n */\n libxml_disable_entity_loader(true);\n $postObj = simplexml_load_string($postStr, 'SimpleXMLElement', LIBXML_NOCDATA);\n $fromUsername = $postObj->FromUserName;\n $toUsername = $postObj->ToUserName;\n \n $msgType = $postObj->MsgType;\n $time = time();\n // 如果是语音消息,则获取语音消息的识别结果\n if ($msgType == \"voice\") {\n $keyword = $postObj->Recognition;\n } else \n if ($msgType == \"text\") {\n $keyword = trim($postObj->Content);\n } elseif ($msgType == 'event' && $postObj->Event == 'subscribe') {\n $keyword = self::CGLU_HELP; // 处理关注事件\n } else {\n $keyword = self::CGLU_HELP; // 修正为帮助\n }\n wxlog('本次请求keyword=' . $keyword);\n if (! empty($keyword)) {\n \n if ($keyword == self::CGLU_HELP) {\n // 输出帮助信息\n $contentStr = self::CGLU_WELCOME_INFO;\n $resultStr = sprintf(self::WX_TEXT_TPL, $fromUsername, $toUsername, $time, $contentStr);\n } elseif ($keyword == self::CGLU_NEWEST_ARTICL || $keyword == self::CGLU_RANDOM_ARTICLE) {\n \n if ($keyword == self::CGLU_NEWEST_ARTICL) {\n wxlog('读取lublog中最新的三篇文章。');\n // 输出最新的文章,取得前三篇.\n $sql = \"SELECT description,title,id FROM articles ORDER BY created_at DESC limit 3;\";\n } else {\n //随机取出三篇文章\n $sql = \"SELECT description,title,id FROM articles ORDER BY RAND() DESC limit 3\";\n }\n \n $list = $this->execSql($sql);\n // wxlog('最新的文章检索结果。' . var_export($list, 1));\n $listCount = 0;\n $items = '';\n foreach ($list as $new) {\n $listCount ++;\n $title = $new['title'];\n $description = $new['description'];\n $icon = 'http://luhu.in/images/avatar.jpg';\n $url = 'http://luhu.in/article/' . $new['id'];\n $items .= sprintf(self::WX_NEWS_ITEM_TPL, $title, $description, $icon, $url);\n }\n $resultStr = sprintf(self::WX_NEWS_TPL, $fromUsername, $toUsername, $time, $listCount, $items);\n } elseif ($keyword == self::CGLU_BLOG_HOME) {\n // 输出个人博客主页\n $items = sprintf(self::WX_NEWS_ITEM_TPL, '个人博客LuBlog', '灵感 - 来自生活的馈赠', 'http://luhu.in/images/avatar.jpg', 'http://luhu.in');\n $resultStr = sprintf(self::WX_NEWS_TPL, $fromUsername, $toUsername, $time, 1, $items);\n } elseif ($keyword == self::CGLU_ABOUT_ME) {\n // 输出自我介绍\n $items = sprintf(self::WX_NEWS_ITEM_TPL, '关于我', '关于我', 'http://luhu.in/images/avatar.jpg', 'http://luhu.in/about');\n $resultStr = sprintf(self::WX_NEWS_TPL, $fromUsername, $toUsername, $time, 1, $items);\n } elseif ($keyword == self::CGLU_QUESTION_BACK) {\n // 用户反馈格式输出\n $contentStr = \"尊敬的用户,为了更好的完善订阅号功能,请将对系统的不足之处反馈给cglu。\";\n $contentStr .= \"\\n反馈格式:@+建议内容\\n例如:@希望增加***功能\";\n $resultStr = sprintf(self::WX_TEXT_TPL, $fromUsername, $toUsername, $time, $contentStr);\n } elseif (strpos($keyword, self::CGLU_SUBMIT_QUESTION) === 0) {\n // 保存用户的反馈并输出感谢用语\n $contentStr = \"感谢您的宝贵建议,cglu会不断努力完善功能。\";\n $note = substr($keyword, 1);\n $note .= \"\\r\\n\";\n file_put_contents('notes.txt', $note, FILE_APPEND);\n $resultStr = sprintf(self::WX_TEXT_TPL, $fromUsername, $toUsername, $time, $contentStr);\n } else {\n // 图灵文本消息\n define('TULING_TEXT_MSG', 100000);\n // 图灵连接消息\n define('TULING_LINK_MSG', 200000);\n // 图灵新闻消息\n define('TULING_NEWS_MSG', 302000);\n // 图灵菜谱消息\n define('TULING_COOKBOOK_MSG', 308000);\n // 接入图灵机器人\n $url = \"http://www.tuling123.com/openapi/api?key=4625ea3c28073dc3cd91c33dbe4775ab&info=\" . urlencode($keyword);\n $str = file_get_contents($url);\n $json = json_decode($str);\n $contentStr = $json->text;\n $code = $json->code;\n if ($code == TULING_TEXT_MSG) {\n // 文本消息\n $resultStr = sprintf(self::WX_TEXT_TPL, $fromUsername, $toUsername, $time, $contentStr);\n } elseif ($code == TULING_LINK_MSG) {\n // 连接消息\n $resultStr = sprintf(self::WX_TEXT_TPL, $fromUsername, $toUsername, $time, $contentStr . $json->url);\n } elseif ($code == TULING_NEWS_MSG) {\n // 新闻消息\n $list = $json->list;\n $listCount = count($list);\n $items = '';\n foreach ($list as $new) {\n $title = $new->article;\n $source = $new->source;\n $icon = $new->icon;\n $url = $new->detailurl;\n $items .= sprintf(self::WX_NEWS_ITEM_TPL, $title, $title, $icon, $url);\n }\n $resultStr = sprintf(self::WX_NEWS_TPL, $fromUsername, $toUsername, $time, $listCount, $items);\n } elseif ($code == TULING_COOKBOOK_MSG) {\n // 菜谱消息\n $list = $json->list;\n $listCount = count($list);\n $items = '';\n foreach ($list as $cb) {\n $name = $cb->name;\n $info = $cb->info;\n $icon = $cb->icon;\n $url = $cb->detailurl;\n $items .= sprintf(self::WX_NEWS_ITEM_TPL, $name, $info, $icon, $url);\n }\n $resultStr = sprintf(self::WX_NEWS_TPL, $fromUsername, $toUsername, $time, $listCount, $items);\n }\n }\n echo $resultStr; // 输出数据包\n } else {\n echo \"Input something...\";\n }\n } else {\n echo \"\";\n exit();\n }\n }",
"function returnMessage(){\n\t\t//echo \"<br/> this->bReqObj=\".$this->bReqObj->RequestType;\n\t\t//if($this->resultIsSuccess){\n\t\t\tif($this->bReqObj->RequestID>0){\n\t\t\t\n\t\t\t\t//If it is not recharge then change the status to success if result is success. If it is recharge then send the request status as it is.\n\t\t\t\tif(!$this->resultIsSuccess)\n\t\t\t\t\t$this->bReqObj->Status=4;\n\t\t\t\telse if($this->requestType!='RC'){\n\t\t\t\t\t$this->bReqObj->Status=3;\n\t\t\t\t\t//Updating status from here only for non-recharge requests.\n\t\t\t\t\t//Bcoz recharge request status would have been updated inside recharge process\n\t\t\t\t\t$this->updateRequestStatus();\n\t\t\t\t}\n\t\t\t\t\t/* if($this->resultIsSuccess)\n\t\t\t\t\t\t$this->bReqObj->Status=3;\n\t\t\t\t\telse \n\t\t\t\t\t\t$this->bReqObj->Status=4; */\n\t\t\t\t\t\n\t\t\t\t//echo \"<br/> reqObj=\".json_encode($reqObj);\n\t\t\t\t$this->bReqObj->Remark=$this->resultMessage;\n\t\t\t\t$this->bReqObj->DevInfo .= \". isSendSMS\".$this->isSendSMS;\n\t\t\t\t//Recharge will update request inside b_recharge process\n\t\t\t\tif($this->requestType!=\"RC\")\n\t\t\t\t\t$this->bReqObj->update($this->bReqObj);\n\t\t\t\t//$this->updateRequestStatus($this->bReqObj);\n\t\t\t\t//$this->isSendSMS=\"0\";\n\t\t\t\tif($this->isSendSMS){\n\t\t\t\t\t//$smsMessage = $this->langSMS[$this->smsCode];\n\t\t\t\t\t//echo \"<br/> Sending SMS from b_webservice...\";\n\t\t\t\t\tif($this->processedSMSmssage == \"NOTPROCESSED\")\n\t\t\t\t\t\t$this->resultSmsMessage = $this->bReqObj->Remark =$this->processedSMSmssage=$this->langSMS[$this->smsCode];\n\t\t\t\t\telse\n\t\t\t\t\t\t$this->resultSmsMessage = $this->bReqObj->Remark =$this->processedSMSmssage;;\n\t\t\t\t\t//echo \"<br/> Req be4 sms=\".json_encode($this->bReqObj);\n\t\t\t\t\t$this->bSMSObj->sendSMS($this->bReqObj->RequesterMobile,$this->bReqObj->TargetNo,$this->processedSMSmssage,\"0\",$this->bReqObj->RequestID,\"t_request\",$this->notes);\n\t\t\t\t}//else\n\t\t\t\t\t//echo \"<br/>Not sending SMS\";\n\t\t\t}\n\t\t//}\n\t\t$this->resultSmsMessage = str_replace(\"[CUSTOMERMESSAGE]\",$this->bSMSObj->customerInputSMS,$this->resultSmsMessage);\n\t\t//$reqDBobj = $this->bReqObj->getByID($this->bReqObj->RequestID);\n\t\t//echo json_encode($reqDBobj);\n\t\t$jsonStr='{\"IsSuccess\":'.json_encode($this->resultIsSuccess).',\"SmsCode\":'.json_encode($this->smsCode).',\"IsSendSMS\":'.json_encode($this->isSendSMS).',\"Status\":'.$this->bReqObj->Status.',\"RequestID\":'.$this->bReqObj->RequestID.',\"Message\":'.json_encode($this->resultSmsMessage).'}';\n\t\t\n\t\t$this->addErrorlog(\"returnMessage\",json_encode($jsonStr),\"OutputMessage\",\"t_request\",$this->bReqObj->RequestID,\"Finishing process\");\n\t\t\n\t\treturn json_encode($jsonStr);\n\t}",
"public function getResponse() {}",
"public function agregarRespuesta()\r\n\t{\r\n\t\t$fecha_registro = date(\"y-m-d h:i:s\");\r\n\r\n\t\t$this->que_bda = \"INSERT INTO comentario_video \r\n\t\t(fky_usu_onl, fky_video, com_com_vid, lik_com_vid, dis_com_vid, res_com_vid, ver_com_vid, est_com_vid, reg_com_vid)\r\n\t\tVALUES \r\n\t\t('$this->fky_usu_onl', '$this->fky_video', '$this->com_com_vid', '0', '0', '$this->res_com_vid', \r\n\t\t'N', 'A', '$fecha_registro');\";\r\n\t\treturn $this->run();\r\n\t}",
"private function showDiscution(){\n if( $this->isConnected() ){\n $request = $this->_connexion->prepare(\"SELECT * FROM Posted_messages WHERE (from_user_id=? AND to_user_id=?) OR (from_user_id=? AND to_user_id=?) ORDER BY message_edit_at\");\n $request->execute(array($this->_transmitter, $this->_receiver, $this->_receiver, $this->_transmitter));\n\n $result = $request->fetchAll(PDO::FETCH_ASSOC);\n \n return $response = json_encode([\n 'status' => 'ok',\n 'message' => 'API : success',\n 'data' => $result\n ]);\n }\n else{\n return $response = json_encode([\n 'status' => 'failled',\n 'message' => 'user not connected'\n ]);\n }\n }",
"public function getResponse();",
"public function getResponse();",
"public function getResponse();",
"public function getResponse();",
"public function getResponse();",
"public function getResponse();",
"public function getResponse();",
"public function getResponse();",
"public function getResponse();",
"public function getResponse();",
"public function responseMsg()\n {\n\t\t//$postStr = $GLOBALS[\"HTTP_RAW_POST_DATA\"];\n\t\t\n\t\t$postStr = file_get_contents(\"php://input\");\n\n\t\t$postStr = $postStr ? $postStr : $_SERVER[\"QUERY_STRING\"] ;\n\t\t\n\t\t$resultStr = \"\";\n\t\t$temp = \"\";\n\t\t$db = getResource();\n\t\t$time = time();\n\t\t$nowdate = date(\"Y-m-d\");\n\t\t$nowdatenum = date(\"Ymd\");\n\t\t$nowdatetime =date(\"Y-m-d H:i:s\");\n\t\t$nowtime=date(\"H:i:s\");\n\n\t\tif (!empty($postStr)){\n \n \t$postObj = simplexml_load_string($postStr, 'SimpleXMLElement', LIBXML_NOCDATA);\n $fromUsername = $postObj->FromUserName;\n $toUsername = $postObj->ToUserName;\n \n $getmsgType = $postObj->MsgType;\n\t\t\t\t\n if ($getmsgType=='text'){\n\t\t\t\t\t$keyword = trim($postObj->Content)?trim($postObj->Content):\"\";\n\t\t\t\t\t\n\t\t\t\t\tif(!empty( $keyword))\n\t\t\t\t\t{\n\t\t\t\t\t\t$msgType = \"text\";\n\t\t\t\t\t\t$firstword=substr($keyword,0,1);\n\t\t\t\t\t\t$subword=trim(substr($keyword,1,strlen($keyword)));\n\t\t\t\t\t\tif(substr($keyword,0,6)==\"申请\"){\n\t\t\t\t\t\t\t$subword=trim(substr($keyword,6,strlen($keyword)));\n\t\t\t\t\t\t\t$temp.=substr($keyword,0,6).\"/\".$subword;\n\t\t\t\t\t\t\t$userinfo=explode(\"+\",$subword);\n\t\t\t\t\t\t\tif($userinfo[0] && $userinfo[1]){\n\t\t\t\t\t\t\t\t$sql=\"select * from userinfo where 1=1 and custid='{$userinfo[0]}' and user_name='{$userinfo[1]}'\";\n\t\t\t\t\t\t\t\t$res=mysql_query($sql,$db);\n\t\t\t\t\t\t\t\t$row = mysql_fetch_array($res);\n\t\t\t\t\t\t\t\t$db_user_id=$row[\"user_id\"];\n\t\t\t\t\t\t\t\t$db_user_wx_bs=$row[\"user_wx_bs\"]?$row[\"user_wx_bs\"]:\"\";\n\t\t\t\t\t\t\t\tif($db_user_id){\n\t\t\t\t\t\t\t\t\tif($db_user_wx_bs==\"\"){\n\t\t\t\t\t\t\t\t\t\t$sql=\"UPDATE userinfo set user_wx_bs='{$fromUsername}' WHERE user_id='{$db_user_id}'\";\n\t\t\t\t\t\t\t\t\t\t$res=mysql_query($sql,$db);\n\t\t\t\t\t\t\t\t\t\t$msgType = \"text\";\n\t\t\t\t\t\t\t\t\t\t$contentStr=\"绑定成功\";\n\t\t\t\t\t\t\t\t\t\t$resultStr = sprintf(TEXTTPL, $fromUsername, $toUsername, $time, $msgType, $contentStr);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t\t$msgType = \"text\";\n\t\t\t\t\t\t\t\t\t\t$contentStr=\"您已经绑定过微信号,请勿重复绑定\";\n\t\t\t\t\t\t\t\t\t\t$resultStr = sprintf(TEXTTPL, $fromUsername, $toUsername, $time, $msgType, $contentStr);\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\telse{\n\t\t\t\t\t\t\t\t\t$msgType = \"text\";\n\t\t\t\t\t\t\t\t\t$contentStr=\"尊敬的客户,您好,很抱歉,您还不是本服务号认证客户,服务仅向身份验证过的客户开放,请与您国泰君安当地营业部联系\";\n\t\t\t\t\t\t\t\t\t$resultStr = sprintf(TEXTTPL, $fromUsername, $toUsername, $time, $msgType, $contentStr);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t$msgType = \"text\";\n\t\t\t\t\t\t\t\t$contentStr=\"填写的信息有误,请核实\";\n\t\t\t\t\t\t\t\t$resultStr = sprintf(TEXTTPL, $fromUsername, $toUsername, $time, $msgType, $contentStr);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t$sql=\"select * from userinfo where 1=1 and user_wx_bs='{$fromUsername}'\";\n\t\t\t\t\t\t\t$res=mysql_query($sql,$db);\n\t\t\t\t\t\t\t$row = mysql_fetch_array($res);\n\t\t\t\t\t\t\t$db_user_id=$row[\"user_id\"]?$row[\"user_id\"]:\"\";\n\t\t\t\t\t\t\t$db_user_name=$row[\"user_name\"];\n\t\t\t\t\t\t\tif($db_user_id==\"\"){\n\t\t\t\t\t\t\t\t$msgType = \"text\";\n\t\t\t\t\t\t\t\t$contentStr=\"尊敬的客户,您好,很抱歉,您还不是本服务号认证客户,服务仅向身份验证过的客户开放,请发送'申请客户号+客户姓名(如:申请000001+张三)'进行验证\";\n\t\t\t\t\t\t\t\t$resultStr = sprintf(TEXTTPL, $fromUsername, $toUsername, $time, $msgType, $contentStr);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\tif(substr($keyword,0,6)==\"公司\" or substr($keyword,0,6)==\"行业\"){\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t$subword=trim(substr($keyword,6,strlen($keyword)));\n\n\t\t\t\t\t\t\t\t\tif($subword){\n\t\t\t\t\t\t\t\t\t\t$sql=\"select a.*,b.get_type_name from action a left join get_type b on a.get_type_id=b.get_type_id where 1=1 and a.get_msgtype_id='1' and (a.get_event like '%{$subword}%' or a.get_event_key like '%{$subword}%' ) order by a.action_id desc limit 1\";\n\t\t\t\t\t\t\t\t\t\t$temp.=$sql.\"|\";\n\t\t\t\t\t\t\t\t\t\t$res=mysql_query($sql,$db);\n\t\t\t\t\t\t\t\t\t\t$row = mysql_fetch_array($res);\n\t\t\t\t\t\t\t\t\t\t$get_type_id=$row['get_type_id']?$row['get_type_id']:\"\";\n\t\t\t\t\t\t\t\t\t\t$get_type_name=$row['get_type_name']?$row['get_type_name']:\"\";\n\t\t\t\t\t\t\t\t\t\tif($get_type_id!=\"\"){\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t$sql=\"select * from user_record where 1=1 and user_wx_bs='{$fromUsername}' and get_content='{$keyword}' and last_time like '{$nowdate}%'\";\n\t\t\t\t\t\t\t\t\t\t\t$temp.=$sql.\"|\";\n\t\t\t\t\t\t\t\t\t\t\t$res=mysql_query($sql,$db);\n\t\t\t\t\t\t\t\t\t\t\t$row = mysql_fetch_array($res);\n\t\t\t\t\t\t\t\t\t\t\t$user_record_id=$row['user_record_id']?$row['user_record_id']:\"\";\n\t\t\t\t\t\t\t\t\t\t\tif($user_record_id!=\"\"){\n\t\t\t\t\t\t\t\t\t\t\t\t$sql=\"update user_record set last_time='{$nowdatetime}',count=count+1 where user_record_id='{$user_record_id}'\";\n\t\t\t\t\t\t\t\t\t\t\t\t$temp.=$sql.\"|\";\n\t\t\t\t\t\t\t\t\t\t\t\t$res=mysql_query($sql,$db);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t\t\t\t$sql=\"INSERT INTO user_record(get_type_id,get_type_name,get_content,user_wx_bs,last_time,count)VALUES('{$get_type_id}','{$get_type_name}','{$keyword}','{$fromUsername}','{$nowdatetime}','1')\";\n\t\t\t\t\t\t\t\t\t\t\t\t$temp.=$sql.\"|\";\n\t\t\t\t\t\t\t\t\t\t\t\t$res=mysql_query($sql,$db);\n\t\t\t\t\t\t\t\t\t\t\t}\n\n\n\t\t\t\t\t\t\t\t\t\t}\n\n\n\t\t\t\t\t\t\t\t\t\t$sql=\"select * from action where 1=1 and get_msgtype_id='1' and (get_event like '%{$subword}%' or get_event_key like '%{$subword}%' ) order by action_id desc\";\n\t\t\t\t\t\t\t\t\t\t$res=mysql_query($sql,$db);\n\n\t\t\t\t\t\t\t\t\t\t$i=0;\n\t\t\t\t\t\t\t\t\t\t$reply_msgtype_id=\"\";\n\t\t\t\t\t\t\t\t\t\t$reply_list=\"\";\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\twhile($row = mysql_fetch_array($res, MYSQL_ASSOC))\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tif($i==1){\n\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t$action_id=$row['action_id'];\n\t\t\t\t\t\t\t\t\t\t\t$reply_msgtype_id=$row['reply_msgtype_id'];\n\t\t\t\t\t\t\t\t\t\t\t$reply_url=($row['reply_url'] and $row['reply_url']!=\"\")?$row['reply_url']:(_Host.\"web/report.html?action_id=\".$action_id.\"&fromusername=\".$fromUsername);\n\n\t\t\t\t\t\t\t\t\t\t\tif($reply_msgtype_id==\"3\"){\n\t\t\t\t\t\t\t\t\t\t\t\tif($reply_list==\"\"){\n\t\t\t\t\t\t\t\t\t\t\t\t\t//$reply_list=$row['reply_list'];\n\t\t\t\t\t\t\t\t\t\t\t\t\t$reply_list.=$row['reply_title'].\"|||\".$row['reply_description'].\"|||\".$row['reply_picurl'].\"|||\".$reply_url;\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t\t\t\t\t$reply_list.=\",,,\".$row['reply_title'].\"|||\".$row['reply_description'].\"|||\".$row['reply_picurl'].\"|||\".$reply_url;\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\telseif($reply_msgtype_id==\"1\"){\n\t\t\t\t\t\t\t\t\t\t\t\tif($reply_list==\"\"){\n\t\t\t\t\t\t\t\t\t\t\t\t\t$reply_list=$row['reply_list'];\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t\t\t\t\t$reply_list.=\",,,\".$row['reply_list'];\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t$i=$i+1;\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t$temp.=$reply_msgtype_id.\"|\".$reply_list.\"|\";\n\n\t\t\t\t\t\t\t\t\t\t//$reply_list=\"尊敬的'$db_user_name'客户,您好,您所查找的报告为:\\n\".$reply_list;\n\t\t\t\t\t\t\t\t\t\tif($reply_msgtype_id && $reply_list){\n\t\t\t\t\t\t\t\t\t\t\t$resultStr = replylist($reply_msgtype_id,$reply_list, $fromUsername, $toUsername, $time);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t\t\t$msgType = \"text\";\n\t\t\t\t\t\t\t\t\t\t\t$contentStr=\"尊敬的客户,很抱歉,您所搜寻的报告暂时无法找到,您可以直接与范寅 (0571-87245610)进行联系。\";\n\t\t\t\t\t\t\t\t\t\t\t$resultStr = sprintf(TEXTTPL, $fromUsername, $toUsername, $time, $msgType, $contentStr);\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\telse{\n\t\t\t\t\t\t\t\t\t\t$msgType = \"text\";\n\t\t\t\t\t\t\t\t\t\t$contentStr=\"填写的信息有误,请核实\";\n\t\t\t\t\t\t\t\t\t\t$resultStr = sprintf(TEXTTPL, $fromUsername, $toUsername, $time, $msgType, $contentStr);\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\telse\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tif($keyword=='test'){\n\t\t\t\t\t\t\t\t\t\t$Articlecount=1;\n\t\t\t\t\t\t\t\t\t\t$Article[0]=array(\"test1\",\"test\\nhaha\\nceshi\",\"http://tuanimg3.baidu.com/data/2_8df83ddc294f486f990c706a8270a1a6\",\"https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx22464c90a1af1d67&redirect_uri=http%3A%2F%2F114.141.166.14%2Fwx%2Fcompanyviwedetail.jsp%3Faccountid%3D6%26id%3D50000472%26type%3D3&response_type=code&scope=snsapi_base&state=weixin#wechat_redirect\");\n\t\t\t\t\t\t\t\t\t\t$Article[1]=array(\"test2\",\"\",\"\",\"http://42.121.28.128:8080/wxservice/showmap.php?startlocation=120.095078,30.328026&endlocation=120.093338,30.327613&\");\n\t\t\t\t\t\t\t\t\t\t$Article[2]=array(\"test3\",\"\",\"\",\"http://42.121.28.128:8080/wxservice/showmap.php?startlocation=120.095078,30.328026&endlocation=120.095078,30.328026&\");\n\t\t\t\t\t\t\t\t\t\t$ArticleString=\"\";\n\t\t\t\t\t\t\t\t\t\tfor ($i=0;$i<=$Articlecount-1;$i++){\n\t\t\t\t\t\t\t\t\t\t\t$ArticleItemString=sprintf(ARTICLEITEM,$Article[$i][0], $Article[$i][1], $Article[$i][2], $Article[$i][3]);\n\t\t\t\t\t\t\t\t\t\t\t$ArticleString=$ArticleString.$ArticleItemString.\"\\n\";\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t$msgType = \"news\";\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t$resultStr = sprintf(ARTICLETPL, $fromUsername, $toUsername, $time, $msgType, $Articlecount, $ArticleString);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t\t$msgType = \"text\";\n\t\t\t\t\t\t\t\t\t\t$contentStr=\"感谢您的关注,有任何疑问欢迎留言!同时留下您的姓名、联系方式以及对应的客户经理姓名,我们会尽快安排专人为您提供服务!\";\n\t\t\t\t\t\t\t\t\t\t$resultStr = sprintf(TEXTTPL, $fromUsername, $toUsername, $time, $msgType, $contentStr);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}else{\n\t\t\t\t\t\techo \"Input something...\";\n\t\t\t\t\t}\n }\n elseif($getmsgType=='event'){\n \t$event = $postObj->Event?$postObj->Event:\"\";\n\t\t\t\t\t$eventkey = $postObj->EventKey?$postObj->EventKey:\"\";\n\n\t\t\t\t\t$temp.=$event.\"|\".$eventkey.\"|\";\n \tif($event=='subscribe'){\n \t\t$msgType = \"text\";\n \t\t$contentStr=\"\\\"国泰君安证券浙江分公司\\\"欢迎您,我们为您提供最及时、最符合市场动向的资讯服务,让您体验国泰君安证券的特色高端服务! 精彩信息欢迎点击下方菜单。\";\n\t\t\t\t\t\t$resultStr = sprintf(TEXTTPL, $fromUsername, $toUsername, $time, $msgType, $contentStr);\n \t}\n\t\t\t\t\telseif($event=='CLICK'){\n\n\t\t\t\t\t\t$sql=\"select * from userinfo where 1=1 and user_wx_bs='{$fromUsername}'\";\n\t\t\t\t\t\t$res=mysql_query($sql,$db);\n\t\t\t\t\t\t$row = mysql_fetch_array($res);\n\t\t\t\t\t\t$db_user_id=$row[\"user_id\"]?$row[\"user_id\"]:\"\";\n\t\t\t\t\t\t$db_user_name=$row[\"user_name\"];\n\t\t\t\t\t\tif($db_user_id==\"\"){\n\t\t\t\t\t\t\t$msgType = \"text\";\n\t\t\t\t\t\t\t$contentStr=\"尊敬的客户,您好,很抱歉,您还不是本服务号认证客户,服务仅向身份验证过的客户开放,请发送'申请客户号+客户姓名(如:申请000001+张三)'进行验证\";\n\t\t\t\t\t\t\t$resultStr = sprintf(TEXTTPL, $fromUsername, $toUsername, $time, $msgType, $contentStr);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\n\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif($eventkey!=\"\"){\n\t\t\t\t\t\t\t\t\t$sql=\"select * from get_type where 1=1 and get_event_key='{$eventkey}'\";\n\t\t\t\t\t\t\t\t\t$temp.=$sql.\"|\";\n\t\t\t\t\t\t\t\t\t$res=mysql_query($sql,$db);\n\t\t\t\t\t\t\t\t\t$row = mysql_fetch_array($res);\n\t\t\t\t\t\t\t\t\t$get_type_id=$row['get_type_id']?$row['get_type_id']:\"\";\n\t\t\t\t\t\t\t\t\t$get_type_name=$row['get_type_name']?$row['get_type_name']:\"\";\n\t\t\t\t\t\t\t\t\tif($get_type_id!=\"\"){\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t$sql=\"select * from user_record where 1=1 and user_wx_bs='{$fromUsername}' and get_event_key='{$eventkey}' and last_time like '{$nowdate}%'\";\n\t\t\t\t\t\t\t\t\t\t$temp.=$sql.\"|\";\n\t\t\t\t\t\t\t\t\t\t$res=mysql_query($sql,$db);\n\t\t\t\t\t\t\t\t\t\t$row = mysql_fetch_array($res);\n\t\t\t\t\t\t\t\t\t\t$user_record_id=$row['user_record_id']?$row['user_record_id']:\"\";\n\t\t\t\t\t\t\t\t\t\tif($user_record_id!=\"\"){\n\t\t\t\t\t\t\t\t\t\t\t$sql=\"update user_record set last_time='{$nowdatetime}',count=count+1 where user_record_id='{$user_record_id}'\";\n\t\t\t\t\t\t\t\t\t\t\t$temp.=$sql.\"|\";\n\t\t\t\t\t\t\t\t\t\t\t$res=mysql_query($sql,$db);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t\t\t$sql=\"INSERT INTO user_record(get_type_id,get_type_name,get_event_key,user_wx_bs,last_time,count)VALUES('{$get_type_id}','{$get_type_name}','{$eventkey}','{$fromUsername}','{$nowdatetime}','1')\";\n\t\t\t\t\t\t\t\t\t\t\t$temp.=$sql.\"|\";\n\t\t\t\t\t\t\t\t\t\t\t$res=mysql_query($sql,$db);\n\t\t\t\t\t\t\t\t\t\t}\n\n\n\t\t\t\t\t\t\t\t\t}\n\n\n\t\t\t\t\t\t\t\t\tif(($eventkey==\"gtjazj_1_1\") and (strtotime($nowtime)<strtotime(\"08:45:00\"))){\n\t\t\t\t\t\t\t\t\t\t$msgType = \"text\";\n\t\t\t\t\t\t\t\t\t\t$contentStr=\"对不起,本栏目请于8点45分后查询\";\n\t\t\t\t\t\t\t\t\t\t$resultStr = sprintf(TEXTTPL, $fromUsername, $toUsername, $time, $msgType, $contentStr);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t\tif($eventkey==\"gtjazj_3_1\"){\n\t\t\t\t\t\t\t\t\t\t\t$reply_msgtype_id=\"3\";\n\t\t\t\t\t\t\t\t\t\t\t$reply_list=\"宏观报告\".\"|||\".\"\".\"|||\".(_Host.\"web/img/hongguan.gif\").\"|||\".(_Host.\"web/list.html?get_event_key=\".$eventkey);\n\t\t\t\t\t\t\t\t\t\t\t$resultStr = replylist($reply_msgtype_id,$reply_list, $fromUsername, $toUsername, $time);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\telseif($eventkey==\"gtjazj_3_2\"){\n\t\t\t\t\t\t\t\t\t\t\t$reply_msgtype_id=\"3\";\n\t\t\t\t\t\t\t\t\t\t\t$reply_list=\"策略报告\".\"|||\".\"\".\"|||\".(_Host.\"web/img/celue.jpg\").\"|||\".(_Host.\"web/list.html?get_event_key=\".$eventkey);\n\t\t\t\t\t\t\t\t\t\t\t$resultStr = replylist($reply_msgtype_id,$reply_list, $fromUsername, $toUsername, $time);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\telseif($eventkey==\"gtjazj_3_3\"){\n\t\t\t\t\t\t\t\t\t\t\t$reply_msgtype_id=\"3\";\n\t\t\t\t\t\t\t\t\t\t\t$reply_list=\"公司报告\".\"|||\".\"\".\"|||\".(_Host.\"web/img/gsyjbg.jpg\").\"|||\".(_Host.\"web/list.html?get_type_id=10\");\n\t\t\t\t\t\t\t\t\t\t\t$resultStr = replylist($reply_msgtype_id,$reply_list, $fromUsername, $toUsername, $time);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\telseif($eventkey==\"gtjazj_3_4\"){\n\t\t\t\t\t\t\t\t\t\t\t$reply_msgtype_id=\"3\";\n\t\t\t\t\t\t\t\t\t\t\t$reply_list=\"行业报告\".\"|||\".\"\".\"|||\".(_Host.\"web/img/hyyjbg.jpg\").\"|||\".(_Host.\"web/list.html?get_type_id=11\");\n\t\t\t\t\t\t\t\t\t\t\t$resultStr = replylist($reply_msgtype_id,$reply_list, $fromUsername, $toUsername, $time);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\telseif($eventkey==\"gtjazj_1_3\"){\n\t\t\t\t\t\t\t\t\t\t\t$reply_msgtype_id=\"3\";\n\t\t\t\t\t\t\t\t\t\t\t$reply_list=\"特别报道\".\"|||\".\"\".\"|||\".(_Host.\"web/img/tbbd.jpg\").\"|||\".(_Host.\"web/list.html?get_type_id=3\");\n\t\t\t\t\t\t\t\t\t\t\t$resultStr = replylist($reply_msgtype_id,$reply_list, $fromUsername, $toUsername, $time);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t\t\t$sql=\"select * from action where 1=1 and get_msgtype_id='2' and get_event='click' and get_event_key='{$eventkey}' order by action_id desc\";\n\t\t\t\t\t\t\t\t\t\t\t$temp.=$sql.\"|\";\n\n\t\t\t\t\t\t\t\t\t\t\t$res=mysql_query($sql,$db);\n\n\t\t\t\t\t\t\t\t\t\t\t$i=0;\n\t\t\t\t\t\t\t\t\t\t\t$reply_msgtype_id=\"\";\n\t\t\t\t\t\t\t\t\t\t\t$reply_list=\"\";\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\twhile($row = mysql_fetch_array($res, MYSQL_ASSOC))\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tif($i==1){\n\t\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t$action_id=$row['action_id'];\n\t\t\t\t\t\t\t\t\t\t\t\t$reply_msgtype_id=$row['reply_msgtype_id'];\n\t\t\t\t\t\t\t\t\t\t\t\t$reply_url=($row['reply_url'] and $row['reply_url']!=\"\")?$row['reply_url']:(_Host.\"web/reply.html?action_id=\".$action_id);\n\n\t\t\t\t\t\t\t\t\t\t\t\tif($reply_msgtype_id==\"3\"){\n\t\t\t\t\t\t\t\t\t\t\t\t\tif($reply_list==\"\"){\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t//$reply_list=$row['reply_list'];\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$reply_list.=$row['reply_title'].\"|||\".$row['reply_description'].\"|||\".$row['reply_picurl'].\"|||\".$reply_url;\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$reply_list.=\",,,\".$row['reply_title'].\"|||\".$row['reply_description'].\"|||\".$row['reply_picurl'].\"|||\".$reply_url;\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\telseif($reply_msgtype_id==\"1\"){\n\t\t\t\t\t\t\t\t\t\t\t\t\tif($reply_list==\"\"){\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$reply_list=$row['reply_list'];\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$reply_list.=\",,,\".$row['reply_list'];\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t\t$i=$i+1;\n\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t$temp.=$reply_msgtype_id.\"|\".$reply_list.\"|\";\n\n\n\t\t\t\t\t\t\t\t\t\t\tif($reply_msgtype_id){\n\t\t\t\t\t\t\t\t\t\t\t\t$resultStr = replylist($reply_msgtype_id,$reply_list, $fromUsername, $toUsername, $time);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t\t\t\tif($eventkey==\"gtjazj_1_4\"){\n\t\t\t\t\t\t\t\t\t\t\t\t\tif($db_user_id){\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$msgType = \"text\";\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$contentStr=\"尊敬的'$db_user_name'客户,您好,您已经通过申请认证。\";\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$resultStr = sprintf(TEXTTPL, $fromUsername, $toUsername, $time, $msgType, $contentStr);\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t\t\t\t\t$msgType = \"text\";\n\t\t\t\t\t\t\t\t\t\t\t\t\t$temp.=\"该菜单对应事件'$eventkey'不存在,请核对eventkey\";\n\t\t\t\t\t\t\t\t\t\t\t\t\t$contentStr=\"该功能还在建设中,敬请期待\";\n\t\t\t\t\t\t\t\t\t\t\t\t\t$resultStr = sprintf(TEXTTPL, $fromUsername, $toUsername, $time, $msgType, $contentStr);\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t$msgType = \"text\";\n\t\t\t\t\t\t\t\t\t$temp.=\"该菜单对应事件为空,请核对eventkey\";\n\t\t\t\t\t\t\t\t\t$contentStr=\"该功能还在建设中,敬请期待\";\n\t\t\t\t\t\t\t\t\t$resultStr = sprintf(TEXTTPL, $fromUsername, $toUsername, $time, $msgType, $contentStr);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}\n \t}\n \telse\n \t{\n \t\t$msgType = \"text\";\n \t\t$contentStr=\"该功能还在建设中,敬请期待\";\n\t\t\t\t\t\t$resultStr = sprintf(TEXTTPL, $fromUsername, $toUsername, $time, $msgType, $contentStr);\n \t}\n }\n\n }\n\n\t\techo $resultStr;\n\n\t\tif (_Islog==\"1\"){\n\t\t\t$nowdate = date(\"Y-m-d H\");\n\t\t\t$nowdatetime =date(\"Y-m-d H:i:s\");\n\t\t\t$log= \"time: \".$nowdatetime.\"\\n\\n\";\n\t\t\t$log.=\"request: \\n\";\n\t\t\t$log.=$postStr.\"\\n\";\n\t\t\t$log.=print_r($_REQUEST,true).\"\\n\";\n\t\t\tif(!empty($_FILES)){\n\t\t\t\t$filestr = print_r($_FILES, true);\n\t\t\t\t$log.=\"file:\\n\".$filestr.\"\\n\";\n\t\t\t}\n\t\t\t$log.=\"reply: \\n\";\n\t\t\t$log.=$resultStr.\"\\n\";\n\n\t\t\t$log.=$temp.\"\\n\\n\\n\";\n\t\t\t\n\t\t\t$logdir = dirname(__FILE__).\"/log\";\n\t\t\tif (!is_dir($logdir))\n\t\t\t{\n\t\t\t\tmkdir($logdir);\n\t\t\t}\n\t\t\t$files = scandir($logdir);\n\t\t\t$log.=\"del: \\n\";\n\n\t\t\tforeach ($files as $filename){\n\t\t\t\t$thisfile=$logdir.'/'.$filename;\n\t\t\t\t$log.=$thisfile.\"\\n\";\n\t\t\t\tif(($thisfile!='.') && ($thisfile!='..') && ((time()-filemtime($thisfile)) >3600*24*7) ) {\n\n\t\t\t\t\tunlink($thisfile);//删除此次遍历到的文件\n\n\t\t\t\t}\n\t\t\t}\n\t\t\t$fp = fopen($logdir.\"/\".$nowdate.\".txt\",\"a\");\n\t\t\tfwrite($fp,$log.\"\\n\");\n\t\t\tfclose($fp);\n\n\t\t}\n\n\t\texit;\n \n }",
"private function server_session_informResponse($client)\n { \n \n $soap_obj=$this->write_obj['InformResponse']; \n \n $r=socket_write($client,$soap_obj->soap);\n \n if(!$r)\n $this->mlog('socket_write in init_session failed for peer '.$this->peer_ip.' '.socket_strerror($client));\n \n sleep(1);\n }",
"function sendMessage($msg) {\n $this->response->message($msg);\n print($this->response);\n }"
] | [
"0.6436162",
"0.61213446",
"0.604051",
"0.5938534",
"0.5883232",
"0.58621025",
"0.58119",
"0.5811839",
"0.5808595",
"0.580148",
"0.57626545",
"0.5755413",
"0.57454693",
"0.57155037",
"0.5693914",
"0.5691451",
"0.56621695",
"0.5659825",
"0.5659825",
"0.5659825",
"0.5659825",
"0.5659825",
"0.5659825",
"0.5659825",
"0.5659825",
"0.5659825",
"0.5659825",
"0.5649929",
"0.5649817",
"0.5633775"
] | 0.6267708 | 1 |
Load up all fieldtypes so we can determine which are applicable | protected static function loadInstalledFieldtypes()
{
if (is_null(static::$fieldtypesInstalled)) {
static::$fieldtypesInstalled = [];
$query = ee()->db->select('name')
->get('fieldtypes');
foreach ($query->result() as $row) {
static::$fieldtypesInstalled[$row->name] = true;
}
$query->free_result();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private function initFieldsTypes()\n {\n $this->fieldTypes = [];\n\n $fieldTypes = $this->loadFieldTypes();\n\n foreach ($fieldTypes as $fieldType) {\n if (!$fieldType instanceof FieldTypeInterface) {\n throw new DataSourceException(sprintf('Expected instance of FieldTypeInterface, \"%s\" given.', get_class($fieldType)));\n }\n\n if (isset($this->fieldTypes[$fieldType->getType()])) {\n throw new DataSourceException(sprintf('Error during field types loading. Name \"%s\" already in use.', $fieldType->getType()));\n }\n\n $this->fieldTypes[$fieldType->getType()] = $fieldType;\n }\n }",
"abstract public function getFieldTypeMap();",
"public function load_all(&$types)\n {\n //TODO: This approachs needs to be rethinked otherwise our getter/setter proxy system will be moot\n foreach ($this->schema->fields as $name => $type_definition)\n {\n $this->load_type_data($types->$name, $name);\n }\n }",
"public function getFieldTypes()\n\t{\n\t\treturn array( \n\t\t\t\t\t\tarray( 'drop' , ipsRegistry::instance()->getClass('class_localization')->words['cf_drop'] ),\n\t\t\t\t\t\tarray( 'cbox' , ipsRegistry::instance()->getClass('class_localization')->words['cf_cbox'] ),\n\t\t\t\t\t\tarray( 'radio' , ipsRegistry::instance()->getClass('class_localization')->words['cf_radio'] ),\n\t\t\t\t\t\tarray( 'input' , ipsRegistry::instance()->getClass('class_localization')->words['cf_input'] ),\n\t\t\t\t\t\tarray( 'textarea' , ipsRegistry::instance()->getClass('class_localization')->words['cf_textarea'] ),\n\t\t\t\t\t);\n\t}",
"public static function load_fields() {\n\t\tnew Fields\\Plugin\\Banners();\n\t\tnew Fields\\Plugin\\Icons();\n\t\tnew Fields\\Plugin\\Rating();\n\t\tnew Fields\\Plugin\\Ratings();\n\t\tnew Fields\\Plugin\\Screenshots();\n\t}",
"public function set_configured_field_types() {\n\n\t\t\t$field_type_array = array();\n\n\t\t\t$fields = new RecursiveArrayIterator( $this->settings_wrapper );\n\t\t\t$fields = new RecursiveIteratorIterator( $fields );\n\n\t\t\tforeach ( $fields as $key => $field ) {\n\n\t\t\t\tif ( strtolower( $key ) === 'type' ) {\n\t\t\t\t\t$field_type_array[] = $field;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$this->configured_field_types = array_unique( $field_type_array );\n\n\t\t}",
"public static function getValidFieldTypes(): array;",
"public function getFieldTypes()\n {\n $fields = self::$field_types;\n\n $this->extend('updateFieldTypes', $fields);\n\n return $fields;\n }",
"public function getFieldTypes()\n\t{\n\t\treturn array(\n\t\t\t'textbox' => array(\n\t\t\t\t'value' => 'textbox',\n\t\t\t\t'label' => new XenForo_Phrase('single_line_text_box')\n\t\t\t),\n\t\t\t'textarea' => array(\n\t\t\t\t'value' => 'textarea',\n\t\t\t\t'label' => new XenForo_Phrase('multi_line_text_box')\n\t\t\t),\n\t\t\t'select' => array(\n\t\t\t\t'value' => 'select',\n\t\t\t\t'label' => new XenForo_Phrase('drop_down_selection')\n\t\t\t),\n\t\t\t'radio' => array(\n\t\t\t\t'value' => 'radio',\n\t\t\t\t'label' => new XenForo_Phrase('radio_buttons')\n\t\t\t),\n\t\t\t'checkbox' => array(\n\t\t\t\t'value' => 'checkbox',\n\t\t\t\t'label' => new XenForo_Phrase('check_boxes')\n\t\t\t),\n\t\t\t'multiselect' => array(\n\t\t\t\t'value' => 'multiselect',\n\t\t\t\t'label' => new XenForo_Phrase('multiple_choice_drop_down_selection')\n\t\t\t),\n\t\t\t'wysiwyg' => array(\n\t\t\t\t'value' => 'wysiwyg',\n\t\t\t\t'label' => new XenForo_Phrase('wysiwyg')\n\t\t\t),\n\t\t\t'date' => array(\n\t\t\t\t'value' => 'date',\n\t\t\t\t'label' => new XenForo_Phrase('kmkform__date')\n\t\t\t),\n\t\t\t'rating' => array(\n\t\t\t\t'value' => 'rating',\n\t\t\t\t'label' => new XenForo_Phrase('kmkform__rating')\n\t\t\t),\n\t\t 'datetime' => array(\n\t\t 'value' => 'datetime',\n\t\t 'label' => new XenForo_Phrase('kmkform__datetime')\n\t\t ),\n\t\t 'time' => array(\n\t\t 'value' => 'time',\n\t\t 'label' => new XenForo_Phrase('kmkform__time')\n\t\t )\t\t \n\t\t);\n\t}",
"public static function getFieldTypes() {\n\t\treturn self::$FIELD_TYPES;\n\t}",
"abstract protected function getFieldtype();",
"private function _setCurrentFieldTypes()\n {\n $this->_currentFieldTypes = craft()->fields->getAllFieldTypes();\n }",
"private function load_field_classes()\n {\n // Check if the classes of the mapped_fields are already loaded\n if ($this->loaded_classes == true) {\n return true;\n }\n\n foreach ($this->mapped_fields as $key => $mapped_field) {\n $class_name = 'MrKoopie\\\\WP_ajaxfilter\\\\Input\\\\'.$mapped_field['type'];\n\n // Store the class\n $this->mapped_fields [$key] ['class'] = new $class_name ($mapped_field['translation'], $mapped_field['field_name'], $this->WP_wrapper, $this->stub);\n\n // Load the input data\n if (isset($this->input_data[$mapped_field['field_name']])) {\n $this->mapped_fields [$key] ['class']->set_input_data($this->input_data[$mapped_field['field_name']]);\n }\n }\n }",
"private function initFieldTypesExtensions()\n {\n $fieldTypesExtensions = $this->loadFieldTypesExtensions();\n foreach ($fieldTypesExtensions as $extension) {\n if (!$extension instanceof FieldExtensionInterface) {\n throw new DataSourceException(sprintf(\"Expected instance of AdminPanel\\\\Component\\\\DataSource\\\\Field\\\\FieldExtensionInterface but %s got\", get_class($extension)));\n }\n\n $types = $extension->getExtendedFieldTypes();\n foreach ($types as $type) {\n if (!isset($this->fieldTypesExtensions)) {\n $this->fieldTypesExtensions[$type] = [];\n }\n $this->fieldTypesExtensions[$type][] = $extension;\n }\n }\n }",
"public function register_field_types( $fields ) {\n\t\t$fields = array_merge( $fields, bpxcftr_get_field_types() );\n\t\treturn $fields;\n\t}",
"function getFieldTypes ($group=false)\n\t{\n\t\t$query = 'SELECT plg.element AS field_type, count(f.id) as assigned, plg.name as field_friendlyname'\n\t\t\t\t. ' FROM ' . (FLEXI_J16GE ? '#__extensions': '#__plugins') .' AS plg'\n\t\t\t\t. ' LEFT JOIN #__flexicontent_fields AS f ON (plg.element = f.field_type AND f.iscore=0)'\n\t\t\t\t. ' WHERE plg.folder=\"flexicontent_fields\" AND plg.element<>\"core\"'. (FLEXI_J16GE ? ' AND plg.type=\"plugin\" ' : '')\n\t\t\t\t. ' GROUP BY plg.element'\n\t\t\t\t;\n\t\t$this->_db->setQuery($query);\n\t\t$ft_types = $this->_db->loadObjectList('field_type');\n\t\tif (!$group) return $ft_types;\n\t\t\n\t\t$ft_grps = array(\n\t\t\t'Selection fields' => array('radio', 'radioimage', 'checkbox', 'checkboximage', 'select', 'selectmultiple'),\n\t\t\t'Media fields / Mini apps' => array('file', 'image', 'minigallery', 'sharedvideo', 'sharedaudio', 'addressint'),\n\t\t\t'Single property fields' => array('date', 'text', 'textarea', 'textselect'),\n\t\t\t'Multi property fields' => array('weblink', 'email', 'extendedweblink', 'phonenumbers', 'termlist'),\n\t\t\t'Item form' => array('groupmarker', 'coreprops'),\n\t\t\t'Item relations fields' => array('relation', 'relation_reverse', 'autorelationfilters'),\n\t\t\t'Special action fields' => array('toolbar', 'fcloadmodule', 'fcpagenav', 'linkslist')\n\t\t);\n\t\tforeach($ft_grps as $ft_grpname => $ft_arr) {\n\t\t\t//$ft_types_grp[$ft_grpname] = array();\n\t\t\tforeach($ft_arr as $ft) {\n\t\t\t\tif ( !empty($ft_types[$ft]) )\n\t\t\t\t$ft_types_grp[$ft_grpname][$ft] = $ft_types[$ft];\n\t\t\t\tunset($ft_types[$ft]);\n\t\t\t}\n\t\t}\n\t\t// Remaining fields\n\t\t$ft_types_grp['3rd-Party / Other Fields'] = $ft_types;\n\t\t\n\t\treturn $ft_types_grp;\n\t}",
"private static function insert_default_field_types(){\n $defaultTypes=array(\n 'text','email','number',\n 'textarea','radio','checkbox',\n 'selectbox','date','recaptcha',\n 'map','captcha','buttons',\n 'hidden','license','html',\n 'password','phone','address',\n 'upload'\n );\n foreach ($defaultTypes as $defaultType){\n $field_type = new Huge_Forms_Field_Type();\n\n $field_type->set_name( __( $defaultType, HUGE_FORMS_TEXT_DOMAIN ) );\n\n $field_type->save();\n }\n }",
"function lingotek_get_translatable_field_types() { $included_fields = array('text', 'text_long', 'text_with_summary', 'field_collection');\n if (module_exists('link')) {\n $included_fields[] = 'link_field';\n }\n // Allow override of translatable fields using the variables table.\n $included_fields_override = variable_get('lingotek_translatable_field_types', array());\n if (!empty($included_fields_override)) {\n $included_fields = $included_fields_override;\n }\n return $included_fields;\n}",
"public function getFieldTypes() {\n\t\treturn array(crud::TYPE_STRING,crud::TYPE_STRING);\n\t}",
"function acfe_field_load_fields($fields, $parent){\n if(!acf_maybe_get($parent, 'type'))\n return $fields;\n \n $fields = apply_filters('acfe/load_fields', $fields, $parent);\n \n return $fields;\n \n}",
"public function getFieldType();",
"abstract public function available_fields();",
"function get_form_field_types(){\n\t\treturn array(\n\t\t\t'text' => 'Textbox',\n\t\t\t'number' => 'Number',\n\t\t\t'decimal' => 'Decimal',\n\t\t\t'tel' => 'Phone Number',\n\t\t\t'url' => 'URL',\n\t\t\t'email' => 'Email Address',\n\t\t\t'date' => 'Date',\n\t\t\t'textarea' => 'Textarea',\n\t\t\t'file' => 'File Upload',\n\t\t);\n\t}",
"public static function getAvailableFieldtypesShort() {\n return array(\n 'text',\n 'textarea',\n 'email',\n 'datetime',\n 'checkbox',\n 'file',\n 'float',\n 'image',\n 'integer',\n 'page',\n 'fieldset',\n 'tab'\n );\n }",
"function get_field_types($table) {\r\n\tglobal $db;\r\n\r\n\r\n\t$fields_meta = explode(\"\\r\\n\", current($db->query(\"SELECT TABLE_SOURCE FROM INFORMATION_SCHEMA_TABLES WHERE TABLE_NAME = '$table'\")->fetch(PDO::FETCH_ASSOC)));\r\n\tunset($fields_meta[0]);\r\n\r\n\tforeach ($fields_meta as $fm) {\r\n\t\tif (stripos($fm, 'not null') === false) {\r\n\t\t\t$null = \"_null\";\r\n\t\t}\r\n\t\telse {\r\n\t\t\t$null = \"\";\r\n\t\t}\r\n\r\n\t\tpreg_match(\"/\\[(.*)\\]\\s(\\w*)/\", $fm, $matches);\r\n\t\t$fields_type[$matches[1]] = strtolower($matches[2] . $null);\r\n\t}\r\n\t$fields_type[\"id\"] = \"read-only\";\r\n\r\n\r\n\r\n\r\n\t$query = $db->query(\"SELECT TABLE_NAME FROM INFORMATION_SCHEMA_TABLES\");\r\n\twhile ($res = $query->fetch(PDO::FETCH_ASSOC)) {\r\n\t\tif (in_array($res[\"TABLE_NAME\"] . \"_id\", array_keys($fields_type))) {\r\n\r\n\t\t\tif (stripos($fields_type[$res[\"TABLE_NAME\"] . \"_id\"], \"_null\") === false) {\r\n\r\n\t\t\t\t$fields_type[$res[\"TABLE_NAME\"] . \"_id\"] = \"drop-down\";\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\t$fields_type[$res[\"TABLE_NAME\"] . \"_id\"] = \"drop-down_null\";\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\r\n\treturn $fields_type;\r\n}",
"protected function getFieldtypeSettings()\n {\n return array();\n }",
"public function preTypeFields($type, $name){\n $fields = array();\n switch($type){\n case 'checkbox':\n $fields = array(\n $name => array(\n 'type' => 'INT',\n 'null' => TRUE,\n 'constraint' => 11\n ),\n );\n break;\n case 'datepicker':\n $fields = array(\n $name => array(\n 'type' => 'DATE',\n 'null' => TRUE,\n ),\n );\n break;\n case 'email':\n case 'file':\n case 'password':\n case 'radio':\n case 'selectbox':\n case 'text':\n case 'timepicker':\n $fields = array(\n $name => array(\n 'type' => 'VARCHAR',\n 'constraint' => '255',\n 'null' => TRUE,\n ),\n );\n break;\n case 'textarea':\n $fields = array(\n $name => array(\n 'type' => 'TEXT',\n 'null' => TRUE,\n ),\n );\n break;\n default:\n break;\n }\n return $fields;\n }",
"public function maybe_load_fields(): void {\n\n\t\t$field_name = \"{$this->get_slug()}.php\";\n\t\t$field_name = sanitize_file_name( $field_name );\n\n\t\t$field_path = BEA_PB_DIR . 'assets/acf/php/' . $field_name;\n\n\t\tif ( ! file_exists( $field_path ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\trequire_once $field_path;\n\t}",
"public function get_types() {\n return $this->fields_types;\n }",
"protected function setProcessableFieldsAndTypes() {\n // Loop through fields and check for processability.\n foreach ($this->entity->getFieldDefinitions() as $field_name => $field) {\n $info = $field->getFieldStorageDefinition();\n $type = $info->getType();\n\n // Check to see if processor can process field of this type.\n $function_base_name = 'process' . $this->machineNameToCamelCase($type) . 'Type';\n $this->processableFieldTypes[$type] = method_exists($this->processor, $function_base_name);\n\n // Check to see if processor has a function to process this field.\n $function_base_name = 'process' . $this->machineNameToCamelCase($field_name) . 'Field';\n $this->processableFields[$field_name] = method_exists($this->processor, $function_base_name);\n }\n }"
] | [
"0.7371237",
"0.7092258",
"0.70579785",
"0.7057466",
"0.68832314",
"0.67299515",
"0.6663372",
"0.6621609",
"0.6593042",
"0.657025",
"0.6504912",
"0.6386194",
"0.6349346",
"0.63348615",
"0.63292795",
"0.63254815",
"0.63223684",
"0.63136506",
"0.628326",
"0.62227917",
"0.6215887",
"0.6206915",
"0.6159508",
"0.6158614",
"0.611984",
"0.6108926",
"0.61081964",
"0.6107682",
"0.60784596",
"0.6057463"
] | 0.782477 | 0 |
chage the satus of the news | public function changeStatus(){
$post = $this -> input -> post();
if(!isset($post['newsid'])){
exit(-1);
}
$newsId = intval($post['newsid']);
$curNews = $this -> news_model -> getById($newsId);
// if(this -> )
if($curNews['status'] == 1){
$curNews = array('status' => 0);
}else{
$curNews = array('status' => 1);
}
if($this -> news_model -> update($newsId, $curNews)){
echo $curNews['status'];
}else{
echo -1;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static function jnews_sc() {\n\t\t$status = self::jnews_grc();\n\n\t\tif ( 'acceptt' === $status ) {\n\t\t\t$vc = self::jnews_vc();\n\t\t\tswitch ( $vc ) {\n\t\t\t\tcase 'mogbog':\n\t\t\t\t\tself::jnews_ff( jnews_custom_text( 'kcol' ) );\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'jangkep':\n\t\t\t\t\tself::jnews_ff( jnews_custom_text( 'wolla' ) );\n\t\t\t}\n\t\t}\n\t}",
"function changeStatus()\n {\n global $objDatabase, $_ARRAYLANG, $_CONFIG;\n\n //have we modified any news entry? (validated, (de)activated)\n $entryModified = false;\n\n if (isset($_POST['deactivate']) AND !empty($_POST['deactivate'])) {\n $status = 0;\n }\n if (isset($_POST['activate']) AND !empty($_POST['activate'])) {\n $status = 1;\n }\n\n //(de)activate news where ticked\n if (isset($status)) {\n if (isset($_POST['selectedNewsId']) && is_array($_POST['selectedNewsId'])) {\n foreach ($_POST['selectedNewsId'] as $value) {\n if (!empty($value)) {\n $objResult = $objDatabase->Execute(\"UPDATE \".DBPREFIX.\"module_news SET status = '\".$status.\"' WHERE id = '\".intval($value).\"'\");\n $entryModified = true;\n }\n if ($objResult === false) {\n $this->strErrMessage = $_ARRAYLANG['TXT_DATABASE_QUERY_ERROR'];\n } else {\n $this->strOkMessage = $_ARRAYLANG['TXT_DATA_RECORD_UPDATED_SUCCESSFUL'];\n }\n }\n }\n }\n\n //validate unvalidated news where ticks set\n if (isset($_POST['validate']) && isset($_POST['selectedUnvalidatedNewsId']) && is_array($_POST['selectedUnvalidatedNewsId'])) {\n foreach ($_POST['selectedUnvalidatedNewsId'] as $value) {\n $objDatabase->Execute(\"UPDATE \".DBPREFIX.\"module_news SET status=1, validated='1' WHERE id=\".intval($value));\n $entryModified = true;\n }\n }\n\n if(!$entryModified)\n $this->strOkMessage = $_ARRAYLANG['TXT_NEWS_NOTICE_NOTHING_SELECTED'];\n\n $this->createRSS();\n }",
"function invertStatus($intNewsId) {\n global $objDatabase,$_ARRAYLANG;\n\n $intNewsId = intval($intNewsId);\n\n if ($intNewsId != 0) {\n $objResult = $objDatabase->Execute('SELECT status\n FROM '.DBPREFIX.'module_news\n WHERE id='.$intNewsId.'\n LIMIT 1\n ');\n if ($objResult->RecordCount() == 1) {\n $intNewStatus = ($objResult->fields['status'] == 0) ? 1 : 0;\n $setDate = '';\n if ($intNewStatus == 1) {\n $setDate = \", date = '\" . time() . \"', changelog = '\" . time() . \"' \";\n }\n $objDatabase->Execute(' UPDATE '.DBPREFIX.'module_news\n SET status=\"'.$intNewStatus.'\"\n ' . $setDate . '\n WHERE id='.$intNewsId.'\n LIMIT 1\n ');\n $this->createRSS();\n\n $this->strOkMessage = $_ARRAYLANG['TXT_DATA_RECORD_UPDATED_SUCCESSFUL'];\n }\n }\n }",
"public function UpdateNews()\n\t{\n\t\t$data = array();\n\t\t$query = \"SELECT * FROM [|PREFIX|]news WHERE newsvisible='1'\";\n\t\t$result = $GLOBALS['ISC_CLASS_DB']->Query($query);\n\t\twhile($news = $GLOBALS['ISC_CLASS_DB']->Fetch($result)) {\n\t\t\t$data[$news['newsid']] = $news;\n\t\t}\n\n\t\treturn $this->Save('News', $data);\n\t}",
"public function status($id = null) {\n $news = $this->News->get($id);\n\t\t$status = '1';\n\t\t$msg = 'activated';\n\t\tif($news->status == '1'){\n\t\t\t$status = '0';\n\t\t\t$msg = 'deactivated';\n\t\t}\t\t\n\t\t$articles = TableRegistry::get('News');\n\t\t$query = $articles->query();\n\t\t$query->update()\n\t\t\t->set(['status' => $status])\n\t\t\t->where(['id' => $id])\n\t\t\t->execute();\n\t\t$this->Flash->success(__('News has been '.$msg.' successfully.'));\n\t\treturn $this->redirect(['controller' => 'News', 'action' => 'index']);\n }",
"function lastNews($dateNews) {\n $dateFlux = lit_rss(\"http://www.franceinfo.fr/rss.xml\", array(\"pubDate\"));\n if ($dateNews != $dateFlux) {\n $setDesc = lit_rss(\"http://www.franceinfo.fr/rss.xml\", array(\"description\")) . str_replace('\"', \"\") . str_replace(\"'\", \"\") . str_replace(\"</br>\", \"\");\n update(\"interface\", array(\"value1\" => $dateFlux, \"depuis\" => time()), \"id\", \"flash\");\n sound(\"51\", $muteBDD);\n sound(\"51\", $muteBDD);\n acapela(\"flash information. \" . $setDesc);\n sleep(1);\n }\n}",
"public function rebateStatus() {\n\t\t// rebate logic\n\t}",
"function get_news( )\n\t{\n\t\t$q = \"SELECT * FROM title_dev_news_and_events WHERE news_status = 1 ORDER BY news_id DESC\";\n\t\t$r = $this -> db -> getMultipleRecords( $q );\n\t\tif( $r != false )\n\t\t\treturn $r;\n\t\telse\n\t\t\treturn false;\n\t}",
"function modify_status($cicle,$status) {\n\t\t#Go to the DB and look for the cicle and modify its status, and modify actual Active cicle to \"Pasado\"\n\t\t#Return true if it was succesful or False if it failed\n\t\treturn true;\n\t}",
"public function verestat(){\n return $this->usu->verestatus();\n }",
"public function changeStatus()\n {\n }",
"public function changeStatus()\n {\n }",
"public function changeStatus()\n {\n }",
"public function changeStatus()\n {\n }",
"function process_date_status()\n\t{\n\t\tif ($this->post['messageread'])\n\t\t{\n\t\t\t$this->post['statusicon'] = 'old';\n\t\t\t$this->post['statustitle'] = $vbphrase['old'];\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->post['statusicon'] = 'new';\n\t\t\t$this->post['statustitle'] = $vbphrase['unread_date'];\t\t\t\n\t\t}\t\n\t\t\n\t\t// format date/time\n\t\t$this->post['postdate'] = vbdate($this->registry->options['dateformat'], $this->post['dateline'], true);\n\t\t$this->post['posttime'] = vbdate($this->registry->options['timeformat'], $this->post['dateline']);\t\t\n\t}",
"public function viewed() {\r\n $data = array(\r\n \"weeklycounter\" => new \\Zend_Db_Expr('weeklycounter + 1')\r\n );\r\n\r\n $where = array(\r\n \"sid = ?\" => $this->id\r\n );\r\n\r\n $this->db->update(\"nuke_stories\", $data, $where);\r\n\r\n return true;\r\n }",
"function set_news_text()\n{\n\tget_connect_db(1);\n\t$query = \"SELECT * FROM `agro2b_rss_reader_all` `all` left join `agro2b_rss_reader_sources` `sources` on `all`.`id_sources`= `sources`.`id` where `text_news` is null limit 0,100;\";\n\n\t$result_all = mysql_query($query) or die(\"Query failed : \" . mysql_error().$query);\n\t\techo \"<meta http-equiv=\\\"refresh\\\" content=\\\"601\\\">\";\n \twhile ($line = mysql_fetch_array($result_all, MYSQL_ASSOC)) \n\t{\n\t\techo \"Страница новости:\".$line[\"link\"].\"<br />\";\n\t\t$count=0;\n\t\t$arr_fields=get_news_text_from_site($line);\n\t\t\n\n\t\tset_news($arr_fields,array(\"id\"=>\"link\",\"value\"=>$line[\"link\"]));\n\t\t//echo \"<meta http-equiv=\\\"refresh\\\" content=\\\"601\\\">\";\n\t\t//echo \"<iframe src=\\\"\".$line[\"link\"].\"\\\" height='900' width='1200'></iframe> \";\n\t//\texit;\n\t}\n\n}",
"function updateOnlineStatus() {\n\t\tif(!$this->getStatusUpdateTimeStamp() || ((time() - $this->getStatusUpdateTimeStamp()) > 50)) {\n\t\t\t$this->updateOnlineList();\n\t\t\t$this->setStatusUpdateTimeStamp(time());\n\t\t}\n\t}",
"function getScrollerActiveNews( )\n\t{\n\t\t$q = \"SELECT * FROM title_dev_news_and_events where news_status = 1 ORDER BY news_id DESC LIMIT 0,6\";\n\t\t$r = $this -> db -> getMultipleRecords( $q );\n\t\tif( $r )\n\t\t\treturn $r;\n\t\telse\n\t\t\treturn false;\n\t}",
"public function status() {\n $id = (int) Input::get('id');\n $status = (int) Input::get('status');\n\n $code = 418; //I'm a teapot!\n\n if ( $id and preg_match('/(0|1)/', $status) ) {\n $newspaper = Newspaper::findOrFail($id);\n $newspaper->status = $status;\n if ($newspaper->save()) $code = 200;\n\n }\n\n return $code;\n }",
"public function updateStatus()\n {\n }",
"function news()\n\t{\n\n\t\t$news = array(\n\t\t\tarray(\n\t\t\t\t'title' => 'Passive equity fills capital gap for Tennessee multifamily purchase',\n\t\t\t\t'view' => 'passive-equity-fills-capital-gap-for-tennessee-multifamily-purchase',\n\t\t\t\t'date' => strtotime('03/07/2018'),\n\t\t\t\t'extract' => 'Demonstrating the utility of real estate capital formation through syndication, NHCohen Partners has concluded a raise of $8.5 million to enable'\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'title' => 'NHCohen Partners funds Texas Comfort Suites purchase',\n\t\t\t\t'view' => 'nhcohen-partners-funds-texas-comfort-suites-purchase',\n\t\t\t\t'date' => strtotime('10/16/2017'),\n\t\t\t\t'extract' => 'New York City-based NHCohen Partners completed an equity raise of $6.1 million to facilitate the acquisition of the Comfort Suites Arlington hotel'\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'title' => 'NHCohen Partners Completes Equity Raise for Acquisition of Comfort Suites in NC',\n\t\t\t\t'view' => 'nhcohen-partners-completes-equity-raise-for-acquisition-of-comfort-suites-in-nc',\n\t\t\t\t'date' => strtotime('08/15/2016'),\n\t\t\t\t'extract' => 'NHCohen Partners has completed the equity raise for the acquisition of the Comfort Suites Raleigh Durham Airport/RTP hotels'\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'title' => 'Stock market volatility shines spotlight on real estate attributes',\n\t\t\t\t'view' => 'stock-market-volatility-shines-spotlight-on-real-estate-attributes',\n\t\t\t\t'date' => strtotime('09/03/2015'),\n\t\t\t\t'extract' => 'The performance of direct real estate investments is not correlated to the stock market and will generally provide a more stable flow of distributions.'\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'title' => 'Stock Market’s Ominous Volatility Shines Spotlight On Real Estate’s Defensive Attributes, Says Ned H. Cohen',\n\t\t\t\t'view' => 'stock-markets-ominous-volatility-shines-spotlight-on-real-estates-defensive-attributes-says-ned-h-cohen',\n\t\t\t\t'date' => strtotime('08/31/2015'),\n\t\t\t\t'extract' => 'Is the long-predicted bear market finally here, or are recent sharp declines merely a chance to load up on good stocks? Since no one can truly know, prudence demands that greater attention be given to portfolio diversification, says Ned H. Cohen,'\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'title' => 'Q&A with Ned H. Cohen Commercial Observer',\n\t\t\t\t'view' => 'qa-with-ned-h-cohen-commercial-observer',\n\t\t\t\t'date' => strtotime('04/24/2015'),\n\t\t\t\t'extract' => '\"I\\'ll be raising equity for a fund sponsored by one of New York\\'s best-known real estate entities ... with a conservative approach similar to mine.\"'\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'title' => 'NHCohen and Herrick, Feinstein Team Up',\n\t\t\t\t'view' => 'nhcohen-and-herrick-feinstein-team-up',\n\t\t\t\t'date' => strtotime('03/12/2015'),\n\t\t\t\t'extract' => 'Real estate investment firm NHCohen Partners LLC and Herrick, Feinstein LLP, a leader in commercial real estate law since 1928, have formed a strategic alliance'\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'title' => 'Ex-Empire State Bldg. owners new chance to invest',\n\t\t\t\t'view' => 'ex-empire-state-bldg-owners-new-chance-to-invest',\n\t\t\t\t'date' => strtotime('03/11/2015'),\n\t\t\t\t'extract' => 'Ned Cohen hopes to raise tens of millions of dollars from the former stakeholders of the Empire State Building'\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'title' => 'Cohen elected to board of 5 Stone Green',\n\t\t\t\t'view' => 'cohen-elected-to-board-of-5-stone-green',\n\t\t\t\t'date' => strtotime('01/28/2015'),\n\t\t\t\t'extract' => 'Ned H. Cohen, founder and president of NHCohen Partners LLC, has been elected to serve on the Board of Advisors of 5 Stone Green Capital'\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'title' => 'Cohen: Inflation Will Bring Investors Yield',\n\t\t\t\t'view' => 'cohen-inflation-will-bring-investors-yield',\n\t\t\t\t'date' => strtotime('12/22/2014'),\n\t\t\t\t'extract' => 'NEW YORK CITYAfter starting his own set of companies last month, former Malkin executive Ned Cohen tells GlobeSt.com in this EXCLUSIVE Q&A about market conditions and other factors that were conducive to him striking out on his own.'\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'title' => 'NHCohen Partners President Ned H. Cohen Is Elected To Board of Advisors of 5 Stone Green Capital',\n\t\t\t\t'view' => 'nhcohen-partners-president-ned-h-cohen-is-elected-to-board-of-advisors-of-5-stone-green-capital',\n\t\t\t\t'date' => strtotime('12/09/2014'),\n\t\t\t\t'extract' => 'NEW YORK CITY, December 09, 2014 Ned H. Cohen, founder and president of NHCohen Partners LLC, has been elected to serve on the Board of Advisors of 5 Stone Green Capital, a real estate investment fund focused on sustainability and the use of clean energy.'\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'title' => 'Newly minted brokerage firm targets property syndications',\n\t\t\t\t'view' => 'newly-minted-brokerage-firm-targets-property-syndications',\n\t\t\t\t'date' => strtotime('12/08/2014'),\n\t\t\t\t'extract' => 'Ned Cohen, a commercial real estate syndication veteran, has formed an investment company that will identify opportunities for high-net-worth investors to participate in limited partnerships as equity investors.'\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'title' => 'Ned Cohen starts his own firm',\n\t\t\t\t'view' => 'ned-cohen-starts-his-own-firm',\n\t\t\t\t'date' => strtotime('12/03/2014'),\n\t\t\t\t'extract' => 'Ned H. Cohen, a 35-year veteran of real estate finance, has formed a new Manhattan-based investment firm, NHCohen Partners LLC, along with an affiliated registered broker-dealer, NHCohen Capital LLC'\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'title' => 'Former Malkin Exec. Forms Real Estate Investment Firm',\n\t\t\t\t'view' => 'former-malkin-exec-forms-real-estate-investment-firm',\n\t\t\t\t'date' => strtotime('11/10/2014'),\n\t\t\t\t'extract' => 'NEW YORK CITY Ned H. Cohen, a former executive vice president with Malkin Securities Corp., has launched NHCohen Partners, LLC'\n\t\t\t)\n\t\t);\n\n\t\treturn $news;\n\t}",
"public function updateStatus($id)\n {\n $new = News::find($id);\n $new->status = News::ACCEPT;\n $new->save();\n flash('Cập nhật trạng thái tin tức thành công', 'success');\n return redirect()->route('admin.news.index');\n }",
"public function statusAction()\n\t{\n\t\t$params = $this->getRequest()->getParams();\n\t\t\n\t\t// save page for old status\n\t\t$this->_persistence->page_for_status[$this->_persistence->status] = $this->_persistence->page;\n\n\t\t$this->_persistence->status = $params['set'];\n\t\t\n\t\t// restore page value of new status or set to first page\n\t\tif (!empty($this->_persistence->page_for_status[$this->_persistence->status])) {\n\t\t\t$this->_persistence->page = $this->_persistence->page_for_status[$this->_persistence->status];\n\t\t} else {\n\t\t\t$this->_persistence->page = 1;\n\t\t}\n\n\t\t$this->_redirect('/crawler/editor/');\n\t}",
"function countNews(){\n return $this->db->count_all($this->table);\n }",
"public function getStatus(){\n if ($this->status === 'PUBLISHED'){\n return '<span class=\"label label-success\">' . $this->status . '</span>';\n }\n return '<span class=\"label label-warning\">' . $this->status . '</span>';\n }",
"public function news()\n {\n if (($this->getFrequency() + $this->getLastUpdate()) > time()) {\n return $this;\n }\n $feedData = array();\n $feedXml = $this->getFeedData();\n if ($feedXml && $feedXml->channel && $feedXml->channel->item) {\n foreach ($feedXml->channel->item as $item) {\n $feedData[] = array(\n 'severity' => (int)$item->severity?(int)$item->severity:Mage_AdminNotification_Model_Inbox::SEVERITY_NOTICE,\n 'date_added' => $this->getDate((string)$item->pubDate),\n 'title' => (string)$item->title,\n 'description' => (string)$item->description,\n 'url' => (string)$item->link,\n );\n }\n if ($feedData) {\n Mage::getModel('adminnotification/inbox')\n ->parse(array_reverse($feedData));\n }\n }\n $this->setLastUpdate();\n\n return $this;\n }",
"function getStato($row){\n\n\tif($row->imp_made == $row->imp_total){\n\t\treturn BANNER_TERMINATO;\n\t}\n\n\t$iRet = BANNER_NON_PUBBLICATO;\n\n\tif($row->state == '1'){\n\n\t\t$now = mosCurrentDate(\"%Y-%m-%d\");\n\t\t$time = mosCurrentDate(\"%H:%M:%S\");\n\n\t\tif($now < $row->publish_up_date){\n\t\t\t$iRet = BANNER_IN_ATTIVAZIONE;\n\t\t} else\n\t\t\tif($now == $row->publish_up_date && $time < $row->publish_up_time){\n\t\t\t\t$iRet = BANNER_IN_ATTIVAZIONE;\n\t\t\t} else\n\t\t\t\tif($now < $row->publish_down_date || $row->publish_down_date == '0000-00-00'){\n\n\t\t\t\t\t$iRet = BANNER_ATTIV0;\n\t\t\t\t\tif($row->publish_down_time < $time && $row->publish_down_time != '00:00:00'){\n\t\t\t\t\t\t$iRet = BANNER_TERMINATO;\n\t\t\t\t\t}\n\n\t\t\t\t} else\n\t\t\t\t\tif($now == $row->publish_down_date && ($time <= $row->publish_down_time || $row->publish_down_time == '00:00:00')){\n\t\t\t\t\t\t$iRet = BANNER_ATTIV0;\n\t\t\t\t\t} else\n\t\t\t\t\t\tif($now >= $row->publish_down_date){\n\t\t\t\t\t\t\t$iRet = BANNER_TERMINATO;\n\t\t\t\t\t\t}\n\t}\n\treturn $iRet;\n}",
"public function supports_news() {\n return true;\n }",
"public function supports_news() {\n return true;\n }"
] | [
"0.64097846",
"0.61584455",
"0.5954632",
"0.5947557",
"0.59192556",
"0.59049493",
"0.5883493",
"0.56873137",
"0.5679792",
"0.56604725",
"0.5573485",
"0.5573485",
"0.5573485",
"0.5573485",
"0.55628127",
"0.5541102",
"0.55204153",
"0.55186045",
"0.5492449",
"0.5485427",
"0.547165",
"0.5438241",
"0.5431972",
"0.5416676",
"0.54063916",
"0.5397746",
"0.5392705",
"0.5391723",
"0.5390536",
"0.5390536"
] | 0.7080453 | 0 |
Function to get all the respective plugins for given client | public function getplugins()
{
try
{
$app = JFactory::getApplication();
$jinput = $app->input;
$jform = $jinput->post->get('jform', array(), 'ARRAY');
$client = $jform['client'];
$userid = isset($jform['userid']) ? $jform['userid'] : 0;
$id = $jform['id'];
$model = $this->getModel('tjreport');
$reports = $model->getClientPlugins($client, $id, $userid);
echo new JResponseJson($reports);
}
catch (Exception $e)
{
echo new JResponseJson($e);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getPlugins();",
"function PMA_getServerPlugins()\n{\n $sql = PMA_getServerPluginModuleSQL();\n $res = $GLOBALS['dbi']->query($sql);\n $plugins = array();\n while ($row = $GLOBALS['dbi']->fetchAssoc($res)) {\n $plugins[$row['plugin_type']][] = $row;\n }\n $GLOBALS['dbi']->freeResult($res);\n ksort($plugins);\n return $plugins;\n}",
"public function get_all_plugins() {\r\n\t\t$registered = $this->get( array( 'plugins' ) );\r\n\t\treturn $registered;\r\n\t}",
"function get_plugins( $host, $path = '' ) {\n\t$cache = new vvv_dash_cache();\n\n\tif ( ( $plugins = $cache->get( $host . '-plugins', VVV_DASH_PLUGINS_TTL ) ) == false ) {\n\n\t\t$plugins = shell_exec( 'wp plugin list --path=' . VVV_WEB_ROOT . '/' . $host . $path . ' --format=csv --debug ' );\n\n\t\t// Don't save unless we have data\n\t\tif ( $plugins ) {\n\t\t\t$status = $cache->set( $host . '-plugins', $plugins );\n\t\t}\n\t}\n\n\treturn $plugins;\n}",
"public function getRegisteredPlugins();",
"public function getInstalledPlugins();",
"private function _plugin_list() {\n\t\t$plugins = $this->get_plugins( $_GET );\n\n\t\techo format_table( $plugins, $_GET['host'], 'plugins' );\n\t}",
"public function getAvailablePlugins();",
"protected function getPlugins(): array\n {\n $plugins = [];\n $classNames = $this->objectManager->get(ReflectionService::class)->getAllImplementationClassNamesForInterface(NodeCommandControllerPluginInterface::class);\n foreach ($classNames as $className) {\n /** @var NodeCommandControllerPluginInterface $plugin */\n $plugin = $this->objectManager->get($this->objectManager->getObjectNameByClassName($className));\n $plugins[$className] = $plugin;\n }\n return $plugins;\n }",
"protected static function plugins()\n {\n if (self::$plugins) {\n return self::$plugins;\n }\n\n $path = self::basePath(self::PLUGINS_JSON);\n\n if (!file_exists($path)) {\n return self::$plugins = [];\n }\n\n self::$plugins = json_decode(file_get_contents($path));\n\n if (!self::$plugins) {\n return self::$plugins = [];\n }\n\n return self::$plugins;\n }",
"function client_list() {\n\t\t$client_list = Array();\n\t\tif ($handle = opendir('./clients/')) {\n\t\t\twhile (false !== ($entry = readdir($handle))) {\n\t\t\t\tif ($entry != \".\" && $entry != \"..\" && $entry != \"index.php\") {\n\t\t\t\t\t$entry = str_replace('.xml','',$entry);\n\t\t\t\t\t$client_list[] = array(read_client_info($entry),$entry);\n\t\t\t\t}\n\t\t\t}\n\t\t\tclosedir($handle);\n\t\t}\n\t\treturn $client_list;\n\t}",
"public function getPluginList()\n {\n return $this->plugins;\n }",
"public function get_clients() {\n\n return $this->make_request( 'clients' );\n\n }",
"public function getClients(): array\n {\n return $this->clients;\n }",
"public function getPlugins()\n {\n return $this->plugins;\n }",
"public function getPlugins()\n {\n return $this->plugins;\n }",
"public function getPlugins()\n {\n return $this->plugins;\n }",
"abstract protected function plugins();",
"function sister_plugins() {\n\trequire_once \\trailingslashit(\\ABSPATH) . 'wp-admin/includes/plugin.php';\n\trequire_once \\trailingslashit(\\ABSPATH) . 'wp-admin/includes/plugin-install.php';\n\t$response = \\plugins_api(\n\t\t'query_plugins',\n\t\tarray(\n\t\t\t'author'=>'blobfolio',\n\t\t\t'per_page'=>20,\n\t\t)\n\t);\n\n\tif (! isset($response->plugins) || ! \\is_array($response->plugins)) {\n\t\treturn array();\n\t}\n\n\t// We want to know whether a plugin is on the system, not\n\t// necessarily whether it is active.\n\t$plugin_base = \\trailingslashit(\\WP_PLUGIN_DIR);\n\t$mu_base = \\defined('WPMU_PLUGIN_DIR') ? \\trailingslashit(\\WPMU_PLUGIN_DIR) : false;\n\n\t$plugins = array();\n\tforeach ($response->plugins as $p) {\n\t\t// WordPress changed the formatting; let's make sure we always\n\t\t// have an array.\n\t\tif (! \\is_array($p)) {\n\t\t\t$p = (array) $p;\n\t\t}\n\n\t\tif (\n\t\t\t! isset($p['slug']) ||\n\t\t\t('blob-common' === $p['slug']) ||\n\t\t\t\\file_exists(\"{$plugin_base}{$p['slug']}\") ||\n\t\t\t($mu_base && \\file_exists(\"{$mu_base}{$p['slug']}\"))\n\t\t) {\n\t\t\tcontinue;\n\t\t}\n\n\t\t$plugins[] = array(\n\t\t\t'name'=>$p['name'],\n\t\t\t'slug'=>$p['slug'],\n\t\t\t'description'=>$p['short_description'],\n\t\t\t'url'=>$p['homepage'],\n\t\t\t'version'=>$p['version'],\n\t\t);\n\t}\n\n\t\\usort(\n\t\t$plugins,\n\t\tfunction($a, $b) {\n\t\t\tif ($a['name'] === $b['name']) {\n\t\t\t\treturn 0;\n\t\t\t}\n\n\t\t\treturn $a['name'] > $b['name'] ? 1 : -1;\n\t\t}\n\t);\n\n\treturn $plugins;\n}",
"private function _get_plugins_data( $host, $path = '' ) {\n\n\t\tif ( ( $plugins = $this->_cache->get( $host . '-plugins', VVV_DASH_PLUGINS_TTL ) ) == false ) {\n\n\t\t\t$plugins = shell_exec( 'wp plugin list --path=' . $path . ' --format=csv --debug ' );\n\n\t\t\t// Don't save unless we have data\n\t\t\tif ( $plugins ) {\n\t\t\t\t$status = $this->_cache->set( $host . '-plugins', $plugins );\n\t\t\t}\n\t\t}\n\n\t\treturn $plugins;\n\t}",
"private function _get_installed_plugins()\n\t{\n\t\t$this->EE->load->helper('file');\n\n\t\t$ext_len = strlen('.php');\n\n\t\t$plugin_files = array();\n\t\t$plugins = array();\n\n\t\t// Get a list of all plugins\n\t\t// first party first!\n\t\tif (($list = get_filenames(PATH_PI)) !== FALSE)\n\t\t{\n\t\t\tforeach ($list as $file)\n\t\t\t{\n\t\t\t\tif (strncasecmp($file, 'pi.', 3) == 0 &&\n\t\t\t\t\tsubstr($file, -$ext_len) == '.php' &&\n\t\t\t\t\tstrlen($file) > 7 &&\n\t\t\t\t\tin_array(substr($file, 3, -$ext_len), $this->core->native_plugins))\n\t\t\t\t{\n\t\t\t\t\t$plugin_files[$file] = PATH_PI.$file;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\n\t\t// third party, in packages\n\t\tif (($map = directory_map(PATH_THIRD, 2)) !== FALSE)\n\t\t{\n\t\t\tforeach ($map as $pkg_name => $files)\n\t\t\t{\n\t\t\t\tif ( ! is_array($files))\n\t\t\t\t{\n\t\t\t\t\t$files = array($files);\n\t\t\t\t}\n\n\t\t\t\tforeach ($files as $file)\n\t\t\t\t{\n\t\t\t\t\tif (is_array($file))\n\t\t\t\t\t{\n\t\t\t\t\t\t// we're only interested in the top level files for the addon\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\n\t\t\t\t\t// we gots a plugin?\n\t\t\t\t\tif (strncasecmp($file, 'pi.', 3) == 0 &&\n\t\t\t\t\t\tsubstr($file, -$ext_len) == '.php' &&\n\t\t\t\t\t\tstrlen($file) > strlen('pi.'.'.php'))\n\t\t\t\t\t{\n\t\t\t\t\t\tif (substr($file, 3, -$ext_len) == $pkg_name)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$plugin_files[$file] = PATH_THIRD.$pkg_name.'/'.$file;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tksort($plugin_files);\n\n\t\t// Grab the plugin data\n\t\tforeach ($plugin_files as $file => $path)\n\t\t{\n\t\t\t// Used as a fallback name and url identifier\n\t\t\t$filename = substr($file, 3, -$ext_len);\n\n\t\t\t// Magpie maight already be in use for an accessory or other function\n\t\t\t// If so, we still need the $plugin_info, so we'll open it up and\n\t\t\t// harvest what we need. This is a special exception for Magpie.\n\t\t\tif ($file == 'pi.magpie.php' &&\n\t\t\t\tin_array($path, get_included_files()) &&\n\t\t\t\tclass_exists('Magpie'))\n\t\t\t{\n\t\t\t\t$contents = file_get_contents($path);\n\t\t\t\t$start = strpos($contents, '$plugin_info');\n\t\t\t\t$length = strpos($contents, 'Class Magpie') - $start;\n\t\t\t\teval(substr($contents, $start, $length));\n\t\t\t}\n\n\t\t\t@include_once($path);\n\n\t\t\tif (isset($plugin_info) && is_array($plugin_info))\n\t\t\t{\n\t\t\t\t// Third party?\n\t\t\t\t$plugin_info['installed_path'] = $path;\n\n\t\t\t\t// fallback on the filename if no name is given\n\t\t\t\tif ( ! isset($plugin_info['pi_name']) OR $plugin_info['pi_name'] == '')\n\t\t\t\t{\n\t\t\t\t\t$plugin_info['pi_name'] = $filename;\n\t\t\t\t}\n\n\t\t\t\tif ( ! isset($plugin_info['pi_version']))\n\t\t\t\t{\n\t\t\t\t\t$plugin_info['pi_version'] = '--';\n\t\t\t\t}\n\t\t\t\t$plugins[$filename] = $plugin_info;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t//log_message('error', \"Invalid Plugin Data: {$filename}\");\n\t\t\t}\n\n\t\t\tunset($plugin_info);\n\t\t}\n\n\t\treturn $plugins;\n\t}",
"function listPlugins( ){\n global $lang, $config;\n\n if( !isset( $_SESSION['sPluginsList'] ) ){\n $sPlugins = getContentFromUrl( 'http://opensolution.org/plugins.html' );\n if( !empty( $sPlugins ) )\n $_SESSION['sPluginsList'] = $sPlugins;\n }\n\n if( isset( $_SESSION['sPluginsList'] ) ){\n $sInstalledPlugins = null;\n if( isset( $config['plugins_installed'] ) && !empty( $config['plugins_installed'] ) ){\n $aPluginsInstalled = unserialize( $config['plugins_installed'] );\n $sInstalledPlugins = null;\n foreach( $aPluginsInstalled as $sPluginName => $bValue ){\n $sInstalledPlugins .= '\"'.$sPluginName.'\", ';\n } // end foreach\n $sInstalledPlugins = '<script>var aPluginsInstalled = [ '.$sInstalledPlugins.' ];</script>';\n }\n return Array( $sInstalledPlugins, $_SESSION['sPluginsList'] );\n }\n}",
"public function findClients() {\n $this->load->model('frontend\\Client');\n $connexion = BddConnexion::getInstance();\n $bdd = new ClientManager($connexion->handle());\n $clients = $bdd->getList();\n\n if (is_null($clients))\n $msgClient = \"Aucun client n'a été trouvé\";\n return $clients;\n }",
"function local_mediaserver_plugins($plugintype) {\n return core_plugin_manager::instance()->get_plugins_of_type($plugintype);\n}",
"function\tgetClients()\n\t{\n\t\treturn\t$this->clients;\n\t}",
"private function returnAllPlugins() \n\t{\n\t\t$apiback = file_get_contents('http://get-simple.info/api/extend/all.php');\n\t\t$json = preg_replace('/:\\s*\\'(([^\\']|\\\\\\\\\\')*)\\'\\s*([},])/e', \"':'.json_encode(stripslashes('$1')).'$3'\", $apiback);\n\t\t$json = json_decode($apiback, TRUE);\n\t\treturn $json;\n\t}",
"public function getExtraPlugins();",
"public function get_addon_data() {\n global $CFG;\n $branch = local_rlsiteadmin_get_branch_number();\n // Bitmask for all (UI will filter).\n $level = 7;\n // Requirement: Only display private plugins if they belong to this site.\n $private = 1;\n $data = array('branchnum' => $branch, 'level' => $level, 'private' => $private, 'url' => $CFG->wwwroot);\n\n $response = $this->send_request('get_moodle_plugins', $data);\n return $response;\n }",
"public function get_all_clients() {\n\t\t\t$request = $this->base_uri . '/clients?output=' . static::$output;\n\t\t\treturn $this->fetch( $request );\n\t\t}",
"public function index()\n {\n return $this->clientInterface->getAllClients();\n }"
] | [
"0.70347494",
"0.65972704",
"0.658948",
"0.6573534",
"0.64377457",
"0.6433242",
"0.6400305",
"0.63546795",
"0.60938185",
"0.60746276",
"0.60424",
"0.6006045",
"0.5977761",
"0.5971033",
"0.59471875",
"0.59471875",
"0.59471875",
"0.5931334",
"0.59312093",
"0.59282166",
"0.59181875",
"0.5912387",
"0.5909801",
"0.5890913",
"0.5889081",
"0.587986",
"0.58723974",
"0.5854962",
"0.5845316",
"0.5843008"
] | 0.74835587 | 0 |
Get version number or default string from config | private function getVersion(array $config)
{
if (empty($config['application_version'])) {
return self::DEFAULT_VERSION;
}
if (! is_string($config['application_version'])) {
return self::DEFAULT_VERSION;
}
return $config['application_version'];
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getVersion(): string\n {\n return config('esintel.config.version');\n }",
"private function getCurrentVersion()\n {\n $file_iterator = new SplFileObject($this->current_dir . $this->version_file);\n\n foreach ($file_iterator as $line) {\n preg_match('/\\$this->version ?= ?[\\'\"]([0-9]*.[0-9]*.[0-9]*)[\\'\"]/', $line, $result);\n if ($result) {\n $file_iterator = null;\n return $result[1];\n }\n }\n\n $file_iterator = null;\n return '0.0.0';\n }",
"public function getApiVersion(): string\n {\n return config('global.api_version');\n }",
"protected static function get_option( $default = '0.0' ) {\n\t\tif ( empty( $default ) ) {\n\t\t\t$default = '0.0';\n\t\t}\n\n\t\treturn get_option( 'tge_db_version', $default );\n\t}",
"public function getVersion()\n\t{\n\t\treturn $this->getConfig( 'version' );\n\t}",
"static public function get_current_version() {\r\n\t\t\t$options = self::get_options();\r\n\t\t \treturn $options['current_version'];\r\n\t\t}",
"public function version()\n {\n $version = '0.0.0';\n if (defined('\\PHP_CodeSniffer\\Config::VERSION')) {\n $version = Config::VERSION;\n }\n return $version;\n }",
"public function getVersion(): string\n {\n // - V1\n // - V1alpha\n // - V1alpha1\n // - V1beta\n // - V1beta1\n // - V1p1beta\n // - V1p1beta1\n $regex = '/\\\\\\(V[0-9]?(p[0-9])?(beta|alpha)?[0-9]?)?(\\\\\\.*)?$/';\n if (preg_match($regex, $this->getNamespace(), $matches)) {\n return $matches[1];\n }\n\n return '';\n }",
"public static function getVersion()\n {\n $versions = array_keys(config('changelog'));\n if (isset($versions[0])) {\n return str_replace('v', '', $versions[0]);\n }\n\n return null;\n }",
"final public function getVersion(): string\n {\n return $this->options[self::OPTION_VERSION];\n }",
"public function get_version( $what = 'all' )\r\r\n\t{\r\r\n\t\tglobal $ipfilter_version;\r\r\n\r\r\n\t\t$version = get_option( 'ipfilter_version' );\r\r\n\r\r\n\t\tif( empty( $version ) )\r\r\n\t\t{\r\r\n\t\t\t$version = '1.0.1'; //because this option exist since version 1.0.1\r\r\n\t\t}\r\r\n\r\r\n\t\tswitch( $what )\r\r\n\t\t{\r\r\n\t\t\tcase 'major':\r\r\n\t\t\t\t$version_array = explode( '.', $version );\r\r\n\t\t\t\treturn $version_array[0];\r\r\n\t\t\t\tbreak;\r\r\n\r\r\n\t\t\tcase 'minor':\r\r\n\t\t\t\t$version_array = explode( '.', $version );\r\r\n\t\t\t\treturn $version_array[1];\r\r\n\t\t\t\tbreak;\r\r\n\r\r\n\t\t\tcase 'revision':\r\r\n\t\t\t\t$version_array = explode( '.', $version );\r\r\n\t\t\t\treturn $version_array[2];\r\r\n\t\t\t\tbreak;\r\r\n\r\r\n\t\t\tcase 'all':\r\r\n\t\t\tdefault:\r\r\n\t\t\t\treturn $version;\r\r\n\t\t}\r\r\n\t}",
"function get_version()\r\n {\r\n return $this->get_default_property(self :: PROPERTY_VERSION);\r\n }",
"public function getVersion(): ?string;",
"public function getVersion()\n {\n return $this->getData('version') ?? '';\n }",
"public static function getVersion(): string\n {\n static $version;\n\n if (!$version) {\n $version = InstalledVersions::getPrettyVersion('solarium/solarium');\n }\n\n return $version;\n }",
"public function get_current_version();",
"function filter_bpdb_get_version( $val ) {\n\n $version = get_option( 'bp-db-version' );\n return $version;\n }",
"public function getVersion()\n {\n //Try to find the password inside symfony configuration\n if ($this->isSymfony() && $this->symfonyContainer->hasParameter('pb_version')) {\n $this->symfonyContainer->getParameter('pb_version');\n }\n\n //Using static PureBilling as fallback\n if (class_exists('\\PureBilling')) {\n return\\PureBilling::getVersion();\n }\n }",
"public static function getLatestModuleVersion()\n {\n $value = Configuration::getGlobalValue(static::SETTINGS_LATEST_MODULE_VERSION);\n if ($value) {\n return $value;\n }\n return '0.0.0';\n }",
"public function getApiVersion(): string\n {\n return $this->getAttribute('apiVersion', static::$defaultVersion);\n }",
"public function getVersion(): string;",
"public function getVersion(): string;",
"public function get(): ?string\n {\n $dbSetting = $this->table->findByName('db_version')->first();\n if (!$dbSetting) {\n return null;\n }\n\n return $dbSetting->get('value');\n }",
"public function getVersion(): string\n {\n $version = sprintf(\n '%1$d.%2$d.%3$d',\n $this->getMajorVersion(),\n $this->getMinorVersion(),\n $this->getPatchVersion()\n );\n\n // Append the pre-release, if available.\n if ($this->preRelease) {\n $version .= '-' . $this->preRelease;\n }\n\n return $version;\n }",
"function elgg_get_version($human_readable = false) {\n\tglobal $CONFIG;\n\n\tstatic $version, $release;\n\n\tif (isset($CONFIG->path)) {\n\t\tif (!isset($version) || !isset($release)) {\n\t\t\tif (!include($CONFIG->path . \"version.php\")) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn $human_readable ? $release : $version;\n\t}\n\n\treturn false;\n}",
"static public function get_last_version() {\r\n\t\t\t$options = self::get_options();\r\n\t\t \treturn $options['last_version'];\r\n\t\t}",
"public function getVersion(): ?string\n {\n return $this->version;\n }",
"function getDatabaseVersion ()\n{\n\tglobal $dbxlink;\n\t$prepared = $dbxlink->prepare ('SELECT varvalue FROM Config WHERE varname = \"DB_VERSION\" and vartype = \"string\"');\n\tif (! $prepared->execute())\n\t{\n\t\t$errorInfo = $dbxlink->errorInfo();\n\t\tdie (__FUNCTION__ . ': SQL query failed with error ' . $errorInfo[2]);\n\t}\n\t$rows = $prepared->fetchAll (PDO::FETCH_NUM);\n\tif (count ($rows) != 1 || !strlen ($rows[0][0]))\n\t\tdie (__FUNCTION__ . ': Cannot guess database version. Config table is present, but DB_VERSION is missing or invalid. Giving up.');\n\t$ret = $rows[0][0];\n\treturn $ret;\n}",
"private function getVersion()\n {\n $locator = $this->grav['locator'];\n $path = $locator->findResource('user://plugins/endpoints', true);\n $fullFileName = $path . DS . 'blueprints.yaml';\n\n $file = File::instance($fullFileName);\n $data = Yaml::parse($file->content());\n\n return $data['version'];\n }",
"public function getApiVersionBuild()\r\n {\r\n $version = explode('.', $this->getApiVersion(), 4);\r\n\r\n return $version[2];\r\n }"
] | [
"0.6777798",
"0.6706912",
"0.6677984",
"0.6516538",
"0.64391726",
"0.64361686",
"0.63727736",
"0.63596094",
"0.6344611",
"0.6325206",
"0.6261143",
"0.6213503",
"0.6183001",
"0.61754274",
"0.6145321",
"0.61376613",
"0.6119774",
"0.61117774",
"0.6077356",
"0.6063974",
"0.6027802",
"0.6027802",
"0.6025502",
"0.6020527",
"0.600172",
"0.5959335",
"0.59547704",
"0.595008",
"0.5936337",
"0.59327316"
] | 0.6884088 | 0 |
Finds an identity by the given ID. | public static function findIdentity($id)
{
// TODO: Implement findIdentity() method.
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static function findIdentity($id)\r\n {\r\n return static::findOne($id);\r\n }",
"public static function findIdentity($id)\n {\n return self::findOne($id);\n }",
"public static function findIdentity($id)\n {\n return self::findOne($id);\n }",
"public static function findIdentity($id)\n {\n return self::findOne($id);\n }",
"public static function findIdentity($id)\n {\n return self::findOne($id);\n }",
"public static function findIdentity($id)\n {\n // TODO: Implement findIdentity() method.\n return static ::findOne($id);\n }",
"public static function findIdentity($id) {\n return static::findOne($id);\n }",
"public static function findIdentity($id) {\n return static::findOne($id);\n }",
"public static function findIdentity($id)\n {\n return self::findOne(['id'=>$id]);\n }",
"public static function findIdentity($id)\n {\n return static::findOne(['id' => $id]);\n }",
"public static function findIdentity($id)\n {\n return static::findOne($id);\n }",
"public static function findIdentity($id)\n {\n return static::findOne($id);\n }",
"public static function findIdentity($id)\n {\n return static::findOne($id);\n }",
"public static function findIdentity($id)\n {\n return static::findOne($id);\n }",
"public static function findIdentity($id)\n {\n return static::findOne($id);\n }",
"public static function findIdentity($id)\n {\n return static::findOne($id);\n }",
"public static function findIdentity($id)\n {\n return static::findOne($id);\n }",
"public static function findIdentity($id)\n {\n return static::findOne($id);\n }",
"public static function findIdentity($id)\n {\n return static::findOne($id);\n }",
"public static function findIdentity($id)\n {\n return static::findOne($id);\n }",
"public static function findIdentity($id)\n {\n // TODO: Implement findIdentity() method.\n return static::findOne($id);\n }",
"public static function findIdentity($id)\n {\n return static::findOne(['id' => $id]);\n }",
"public static function findIdentity($id)\n {\n return static::findOne(['id' => $id]);\n }",
"public function find(Identity $id);",
"public static function findIdentity($id)\n {\n // TODO: Implement findIdentity() method.\n //通过id获取账号\n return self::findOne(['id'=>$id]);\n\n }",
"public static function findIdentity($id)\n\t{\n\t\treturn static::findOne(['id' => $id, 'status' => self::STATUS_ACTIVE]);\n\t}",
"public static function findIdentity($id)\n {\n return self::find()->andWhere([\n self::tableName() . '.id' => $id,\n ])->one();\n }",
"public static function findIdentity($id)\n {\n if(self::$_instance && self::$_instance->user_id == $id){\n return self::$_instance;\n }\n }",
"public static function findIdentity($id)\n {\n return static::findOne(['id' => $id, 'status' => self::STATUS_ACTIVE]);\n }",
"public static function findById($id);"
] | [
"0.8062795",
"0.8062027",
"0.8062027",
"0.8062027",
"0.8062027",
"0.80279946",
"0.8023938",
"0.8023938",
"0.7997636",
"0.7976781",
"0.79765755",
"0.79765755",
"0.79765755",
"0.79765755",
"0.79765755",
"0.79765755",
"0.79765755",
"0.79765755",
"0.79765755",
"0.79765755",
"0.7970976",
"0.79615164",
"0.79615164",
"0.77543753",
"0.75008756",
"0.749962",
"0.7439236",
"0.7390947",
"0.7372306",
"0.7221545"
] | 0.8567044 | 0 |
Lists all Personne entities. | public function indexAction() {
$em = $this->getDoctrine()->getManager();
$entities = $em->getRepository('PatrickLaxtonAnnuaireBundle:Personne')->findAll();
return array(
'entities' => $entities,
);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function index()\n {\n return Person::all();\n }",
"public function index()\n {\n return Person::all();\n }",
"public function getAllPersonne()\n {\n $lesPersonnes = array();\n $query = $this->db->prepare(\"SELECT * FROM Personne\");\n $query->execute();\n $datas = $query->fetchAll();\n\n foreach ($datas as $data) {\n $unePersonne = new Personne($data[\"idPersonne\"], $data[\"nom\"], $data[\"prenom\"], $data[\"description\"], $data[\"telephone\"], $data[\"mail\"], $data[\"mdp\"]);\n array_push($lesPersonnes, $unePersonne);\n }\n return $lesPersonnes;\n }",
"public function listAll(){\n\t\t\t$mapper = function($row){\n\t\t\t\treturn $resource = new Persona($row['idpersona'],$row['nombrep'], $row['apellidop'], $row['emailp'], $row['fec_nacp'], $row['passwp'], $row['premiump'], $row['baneadop'], $row['adminp']);\n\t\t\t};\n\t\t\t# Si no se encuentra se retorna un arreglo vacio\n\t\t\treturn $this->queryList(\"SELECT * FROM persona\",[],$mapper);\n\t\t}",
"public function index()\r\n {\r\n return Persona::all();\r\n }",
"public function index()\n {\n $personnes = Personne::orderBy('created_at', 'desc')->paginate(5);\n\n // Return collection of articles as a resource\n return PersonneResource::collection($personnes);\n }",
"public function findAll(){\n // we will return this array\n $personnes = [];\n\n $stmt = $this->pdo->prepare('SELECT personne_id, nom, prenom, ville, dateNaissance FROM personne ORDER BY nom;');\n\n $stmt->execute();\n // get All\n $results = $stmt->fetchAll(PDO::FETCH_ASSOC);\n\n // parse each $results (it's an array)\n foreach ($results as $res) {\n // new Person instance\n $p = new PersonDTO();\n $p->hydrateSQL($res);\n // add it to our array\n $personnes[] = $p;\n }\n\n return $personnes;\n }",
"public function getList()\r\n {\r\n $persos = array();\r\n\r\n $request = $this->_db->query('SELECT id, nom, `force`, degats, niveau, experience FROM personnages ORDER BY nom;');\r\n\r\n while ($ligne = $request->fetch(PDO::FETCH_ASSOC))\r\n {\r\n $persos[] = new Personnage($ligne);\r\n }\r\n\r\n return $persos;\r\n }",
"public function getListPersonnages() {\n $persos = [];\n \n $req = $this->_bdd->query('SELECT id, nom, forcePerso, degats, niveau, experience \n FROM PersonnagesTable\n ORDER BY nom');\n \n while ($datas = $req->fetch(PDO::FETCH_ASSOC)) {\n $persos[] = new PersonnageTable($datas);\n }\n //var_dump($persos);\n return $persos;\n \n $req->closeCursor();\n }",
"public function getAll()\n {\n $people = Person::all();\n return response()->json(['results' => $people], 200);\n }",
"public function index_get(){\n\t $response = $this->PersonM->all_person();\n\t $this->response($response);\n \t}",
"public function index() {\n $this->set('persons', $this->Person->find('all',array(\n 'conditions' => array('Person.user_id' => $this->Auth->user('id'))\n )));\n }",
"public function index() {\n $this->Entity->recursive = 1;\n\n $this->setSearch('Entity', array(\n 'nome' => 'Entity.name',\n 'email' => 'Entity.email',\n 'telefone' => 'Entity.phone',\n 'celular' => 'Entity.cellphone',\n 'endereço' => 'Entity.address',\n 'contact' => 'Entity.contact'\n ));\n\n $this->set('title', 'Módulos > Entidades');\n $this->set('entities', $this->paginate('Entity'));\n }",
"public function actionIndex()\n {\n $searchModel = new PersonSearch();\n $dataProvider = $searchModel->search(Yii::$app->request->queryParams);\n\n return $this->render('index', [\n 'searchModel' => $searchModel,\n 'dataProvider' => $dataProvider,\n ]);\n }",
"public static function listAll()\n\t\t{\n\t\t\t$sql = new Sql();\n\t\t\t\n\t\t\treturn $sql->select(\"\n\t\t\t\tSELECT * \n\t\t\t\tFROM tb_users a \n\t\t\t\tINNER JOIN tb_persons b USING(idperson) \n\t\t\t\tORDER BY b.desperson\");\n\t\t\t \n\t\t}",
"public function getAllPersoner() {\n return $this->getAll();\n }",
"public function indexAction() {\n\t\t$em = $this->getDoctrine()->getManager();\n\n\t\t$personas = $em->getRepository( 'AppBundle:Persona' )->findAll();\n\n\t\treturn $this->render( 'persona/index.html.twig',\n\t\t\tarray(\n\t\t\t\t'personas' => $personas,\n\t\t\t) );\n\t}",
"public function obtenerAllPersona() {\n return PersonaDao::getTodoPersona(); \n }",
"public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $passager_Personnels = $em->getRepository('AeroGestVolBundle:Passager_Personnel')->findAll();\n\n return $this->render('passager_personnel/index.html.twig', array(\n 'passager_Personnels' => $passager_Personnels,\n ));\n }",
"public function getLesPersonnes() {\n $requete = 'SELECT idPersonne as identifiant, nomPersonne as nom, prenomPersonne as prenom, mailPersonne as mail,\n telPersonne as tel, ruePersonne as rue, villePersonne as ville, CPPersonne as CP \n\t\t\t\t\t\tFROM personne \n\t\t\t\t\t\tORDER BY idPersonne';\n try\t{\n $resultat = PdoJeux::$monPdo->query($requete);\n $tbPersonnes = $resultat->fetchAll();\n return $tbPersonnes;\n }\n catch (PDOException $e)\t{\n die('<div class = \"erreur\">Erreur dans la requête !<p>'\n .$e->getmessage().'</p></div>');\n }\n }",
"public function actionIndex()\n {\n $searchModel = new DatosPersonasSearch();\n $dataProvider = $searchModel->search(Yii::$app->request->queryParams);\n\n return $this->render('index', [\n 'searchModel' => $searchModel,\n 'dataProvider' => $dataProvider,\n ]);\n }",
"public function getEntityList();",
"public function actionIndex()\n {\n $searchModel = new SearchPdPerson();\n $dataProvider = $searchModel->search(Yii::$app->request->queryParams);\n\n return $this->render('index', [\n 'searchModel' => $searchModel,\n 'dataProvider' => $dataProvider,\n ]);\n }",
"public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $entities = $em->getRepository('svplocationAdminBundle:Entrepot')->findAll();\n\n return array(\n 'entities' => $entities,\n );\n }",
"public function indexAction()\n {\n $em = $this->getDoctrine()->getEntityManager();\n\n $entities = $em->getRepository('AcmeFmpsBundle:EnfantTiteur')->findAll();\n\n return array('entities' => $entities);\n }",
"public function getPersons() {\n return $this->persons;\n }",
"public static function TraerTodasLasPersonas(){\n\t\t$sql = 'SELECT * FROM personas';\n $consulta = AccesoDatos::ObtenerObjetoAccesoDatos()->ObtenerConsulta($sql);\n\t $consulta->execute();\n\t\treturn $consulta->fetchAll(PDO::FETCH_ASSOC);\n\t}",
"public function index():PersonResourceCollection\n {\n return new PersonResourceCollection(Person::paginate());\n }",
"public function actionIndex()\n {\n $searchModel = new personaSearch();\n $dataProvider = $searchModel->search(Yii::$app->request->queryParams);\n\n return $this->render('index', [\n 'searchModel' => $searchModel,\n 'dataProvider' => $dataProvider,\n ]);\n }",
"public function getPeople()\n {\n return $this->hasMany(Person::className(), ['user_id' => 'id']);\n }"
] | [
"0.70395964",
"0.70395964",
"0.7030338",
"0.6936579",
"0.68091893",
"0.67401755",
"0.67347217",
"0.6586486",
"0.65713996",
"0.6555017",
"0.6545831",
"0.6543531",
"0.6532157",
"0.6485217",
"0.64810073",
"0.64570695",
"0.6451056",
"0.64344764",
"0.64323455",
"0.64266086",
"0.6415007",
"0.6394567",
"0.63626975",
"0.6323053",
"0.6322281",
"0.63060963",
"0.62856096",
"0.6268932",
"0.625489",
"0.62441707"
] | 0.7552743 | 0 |
Creates a new Personne entity. | public function createAction(Request $request) {
$entity = new Personne();
$form = $this->createCreateForm($entity);
$form->handleRequest($request);
if ($form->isValid()) {
$em = $this->getDoctrine()->getManager();
$em->persist($entity);
$em->flush();
return $this->redirect($this->generateUrl('personne_show', array('id' => $entity->getId())));
}
return array(
'entity' => $entity,
'form' => $form->createView(),
);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function created(Personne $personne)\n {\n //\n }",
"public function create($entity);",
"abstract public function createEntity();",
"public function create($person)\n {\n if(!($person instanceof Person))\n throw new PersonException(\"passed parameter isn't a Person instance\");\n try\n {\n $data = array(\n 'name' => $person->getName(),\n 'middle_name' => $person->getMiddleName(),\n 'last_name' => $person->getLastName(),\n 'birthdate' => $person->getBirthdate(),\n 'ssn' => $person->getSsn(),\n 'genre' => $person->getGenre(),\n 'marital_status' => $person->getMaritalStatus(),\n 'curp' => $person->getCurp(),\n 'nationality' => $person->getNationality(),\n 'id_fiscal_entity' => $person->getIdFiscalEntity(),\n );\n $data = array_filter($data, 'Catalog::notNull');\n $this->db->insert(Person::TABLENAME, $data);\n $person->setIdPerson($this->db->lastInsertId());\n }\n catch(Exception $e)\n {\n throw new PersonException(\"The Person can't be saved \\n\" . $e->getMessage());\n }\n }",
"public function actionCreate()\n {\n $model = new Persona();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->ID_PER]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }",
"public function create(){}",
"public function create(){}",
"public function create(){}",
"public function create(){}",
"public function createAction()\n {\n $entity = new Commune();\n $request = $this->getRequest();\n $form = $this->createForm(new CommuneType(), $entity);\n $form->bindRequest($request);\n\n $em = $this->getDoctrine()->getEntityManager();\n $em->persist($entity);\n $em->flush();\n\n return $this->redirect($this->generateUrl('commune_show', array('id' => $entity->getId())));\n\n\n return array(\n 'entity' => $entity,\n 'form' => $form->createView()\n );\n }",
"public function create() {\n \n //\n \n }",
"public function create()\n {\n \n //\n }",
"public function create()\n {\n //\n }",
"public function create()\n {\n //\n }",
"public function create()\n {\n //\n }",
"public function create()\n {\n //\n }",
"public function getNewEntity();",
"public function actionCreate()\n {\n $model = new Person();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id_person]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }",
"private function createCreateForm(Personne $entity) {\n $form = $this->createForm(new PersonneType(), $entity, array(\n 'action' => $this->generateUrl('personne_create'),\n 'method' => 'POST',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Create'));\n\n return $form;\n }",
"public function create()\n {\n }",
"public function create()\n {\n //\n }",
"public function create()\n {\n //$paciente=new Paciente();\n\n \n }",
"public function createPerson($inputs);",
"public function create() {\n //\n \n }",
"public function create()\n {\n //\n }",
"public function create()\n {\n //\n }",
"public function testBasicCreatePerson()\n {\n $this->asSuper();\n\n $query = file_get_contents(__DIR__.'/tests.graphql');\n\n /** @var Person $person */\n $person = factory(Person::class)->make();\n\n $variables = [\n 'name_first' => $person->name_first,\n 'name_initials' => $person->name_initials,\n 'name_last' => $person->name_last,\n 'name_middle' => $person->name_middle,\n 'name_prefix' => $person->name_prefix,\n 'name_nickname' => $person->name_nickname,\n 'birth_date' => $person->birth_date,\n 'remarks' => $person->remarks,\n ];\n\n $res = $this->graphql($query, $variables, 'testCreatePerson')->assertNoErrors();\n $id = $res->data('createPerson.id');\n $this->assertDatabaseHas('persons', [\n 'id' => $id,\n 'name_first' => $person->name_first,\n 'name_initials' => $person->name_initials,\n 'name_last' => $person->name_last,\n 'name_middle' => $person->name_middle,\n 'name_prefix' => $person->name_prefix,\n 'name_nickname' => $person->name_nickname,\n 'birth_date' => $person->birth_date,\n 'remarks' => $person->remarks,\n ]);\n }",
"public function create()\n {\n //\n \n }",
"public function create()\n {\n //\n \n }",
"public function create()\n {\n //\n \n }"
] | [
"0.713521",
"0.6852567",
"0.6760863",
"0.628242",
"0.626356",
"0.6241806",
"0.6241806",
"0.6241806",
"0.6241806",
"0.62360466",
"0.6213717",
"0.6204881",
"0.61997575",
"0.61997575",
"0.61997575",
"0.61997575",
"0.617261",
"0.61706775",
"0.61704135",
"0.6159293",
"0.61411786",
"0.61341476",
"0.61282736",
"0.61256135",
"0.6104947",
"0.6104947",
"0.60965544",
"0.6092356",
"0.6092356",
"0.6092356"
] | 0.6864627 | 1 |
Creates a form to create a Personne entity. | private function createCreateForm(Personne $entity) {
$form = $this->createForm(new PersonneType(), $entity, array(
'action' => $this->generateUrl('personne_create'),
'method' => 'POST',
));
$form->add('submit', 'submit', array('label' => 'Create'));
return $form;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function newAction() {\n $entity = new Personne();\n $form = $this->createCreateForm($entity);\n\n return array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n );\n }",
"public function createAction()\r\n {\r\n $objectManager = $this->getServiceLocator()->get('Doctrine\\ORM\\EntityManager');\r\n\r\n // Create the form and inject the ObjectManager\r\n $form = new PerfilCreate($objectManager);\r\n\r\n // Create a new, empty entity and bind it to the form\r\n $perfil = new Perfil();\r\n $form->bind($perfil);\r\n\r\n if ($this->request->isPost()) {\r\n $form->setData($this->request->getPost());\r\n\r\n if ($form->isValid()) {\r\n $objectManager->persist($perfil);\r\n $objectManager->flush();\r\n\r\n $this->flashMessenger()->setNamespace('Tenil')->addSuccessMessage('Prefil criado com sucesso!');\r\n return $this->redirect()->toRoute($this->route, array('controller' => $this->controller, 'action' => 'list'));\r\n }\r\n\r\n }\r\n\r\n return array('form' => $form);\r\n }",
"public function actionCreate()\n {\n $model = new Persona();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->ID_PER]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }",
"private function createCreateForm(Tipocorresponsalia $entity)\n {\n $form = $this->createForm(new TipocorresponsaliaType(), $entity, array(\n 'action' => $this->generateUrl('tipocorresponsalia_create'),\n 'method' => 'POST',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Create'));\n\n return $form;\n }",
"public function createAction(Request $request) {\n $entity = new Personne();\n $form = $this->createCreateForm($entity);\n $form->handleRequest($request);\n\n if ($form->isValid()) {\n $em = $this->getDoctrine()->getManager();\n $em->persist($entity);\n $em->flush();\n\n return $this->redirect($this->generateUrl('personne_show', array('id' => $entity->getId())));\n }\n\n return array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n );\n }",
"public function create()\n {var_dump();exit();\n return view('personnes.create');\n }",
"private function createCreateForm(Puesto $entity)\n {\n $form = $this->createForm(PuestoType::class, $entity, array(\n 'action' => $this->generateUrl('puesto_create'),\n 'method' => 'POST',\n 'user' => $this->getUser()\n ));\n\n $form->add('submit', SubmitType::class, array('label' => 'Create', 'attr' => array('class' => 'btn btn-primary btn-block')));\n\n return $form;\n }",
"public function actionCreate()\n {\n $model = new DatosPersonas();\n\n if ($model->load(Yii::$app->request->post())) {\n //echo $model->nacionalidad; die;\n \n \n \n if ($model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n }\n } \n \n\n return $this->render('create', [\n 'model' => $model,\n ]);\n }",
"private function createCreateForm(Megaloman $entity) {\n $form = $this->createForm(new MegalomanType(), $entity, array(\n 'action' => $this->generateUrl('megaloman_create'),\n 'method' => 'POST',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Utwórz'));\n\n return $form;\n }",
"private function createCreateForm(Pret $entity)\n {\n $form = $this->createForm(new PretType(), $entity, array(\n 'action' => $this->generateUrl('prets_create', ['code' => $entity->getMembre()->getCode()]),\n 'method' => 'POST',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Create'));\n\n return $form;\n }",
"private function createCreateForm(Societe $entity)\n {\n $form = $this->createForm(new SocieteType(), $entity, array(\n 'action' => $this->generateUrl('societe_create'),\n 'method' => 'POST',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Create'));\n\n return $form;\n }",
"private function createCreateForm(NomenclatureQuestionnaire $entity)\n {\n $form = $this->createForm(new NomenclatureQuestionnaireType(), $entity, array(\n 'action' => $this->generateUrl('statElev_create'),\n 'method' => 'POST',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Create'));\n\n return $form;\n }",
"private function createCreateForm(ParteDiario $entity)\n {\n $form = $this->createForm(new ParteDiarioType(), $entity, array(\n 'action' => $this->generateUrl('partes_partediario_create'),\n 'method' => 'POST',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Create'));\n\n return $form;\n }",
"public function create()\n {\n $data = ['personal_cargo' => PersonalCargoTipo::lists('cargo', 'id')];\n return view('persona.create', $data);\n }",
"public function createAction()\n {\n $entity = new Commune();\n $request = $this->getRequest();\n $form = $this->createForm(new CommuneType(), $entity);\n $form->bindRequest($request);\n\n $em = $this->getDoctrine()->getEntityManager();\n $em->persist($entity);\n $em->flush();\n\n return $this->redirect($this->generateUrl('commune_show', array('id' => $entity->getId())));\n\n\n return array(\n 'entity' => $entity,\n 'form' => $form->createView()\n );\n }",
"public function newAction()\n {\n $entrepot= new Entrepot();\n\n \n $formBuilder = $this->get('form.factory')->createBuilder('form', $entrepot);\n\n $formBuilder\n ->add('adresse','text')\n \n ->add('Valider','submit')\n ;\n \n $form = $formBuilder->getForm();\n\n \n return $this->render('svplocationAdminBunle:Entrepot:new.html.twig', array(\n 'form' => $form->createView(),\n ));\n }",
"public function create()\n {\n //\n return view('modules.personnel.create');\n }",
"public function create(){\n\t\treturn view('person.new');\n\t}",
"private function createCreateForm(Planta $entity)\n {\n $form = $this->createForm(new PlantaType(), $entity, array(\n 'action' => $this->generateUrl('planta_create'),\n 'method' => 'POST',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Create'));\n\n return $form;\n }",
"private function createCreateForm(Domicilio $entity)\n {\n $form = $this->createForm(new DomicilioType(), $entity, array(\n 'action' => $this->generateUrl('domicilio_create'),\n 'method' => 'POST',\n ));\n\n //$form->add('submit', 'submit', array('label' => 'Create'));\n\n return $form;\n }",
"private function createCreateForm(DatosComentariosPresupuesto $entity)\n {\n $form = $this->createForm(new DatosComentariosPresupuestoType(), $entity, array(\n 'action' => $this->generateUrl('datoscomentariospresupuesto_create'),\n 'method' => 'POST',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Create'));\n\n return $form;\n }",
"public function create()\n {\n /* devido a que el create es un formulario y no una vista\n se queda del lado del cliente\n */\n }",
"public function create()\n {\n \t$badge = $this->createModelInstance();\r\n \t\r\n \treturn $this->formFactory->createNamed($this->formName, $this->formType, $badge);\n\n }",
"public function create()\n {\n return view('admin.person.create');\n }",
"private function createCreateForm(Recurso $entity)\n {\n $form = $this->createForm(new RecursoType(), $entity, array(\n 'action' => $this->generateUrl('recurso_create'),\n 'method' => 'POST',\n ));\n\n $form->add('submit', 'submit', array('label' => $this->get('translator')->trans('global.crear')));\n\n return $form;\n }",
"public function actionCreate()\n {\n $model = new Person();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id_person]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }",
"public function create()\n {\n return view('admin::contacts.persons.create');\n }",
"public function create()\n {\n return view('admin.personnel.create');\n }",
"private function createCreateForm(Entrepot $entity)\n {\n $form = $this->createForm(new EntrepotType(), $entity, array(\n 'action' => $this->generateUrl('entrepot_create'),\n 'method' => 'POST',\n ));\n \n return $form;\n }",
"public function create()\n {\n //\n return view(\"administrador.tipopersona.create\");\n }"
] | [
"0.74230736",
"0.7260242",
"0.6986585",
"0.6944488",
"0.6940668",
"0.69380796",
"0.693021",
"0.6929454",
"0.6918165",
"0.6890541",
"0.68804896",
"0.68612355",
"0.6858308",
"0.6835914",
"0.6833896",
"0.68302876",
"0.68055546",
"0.68003416",
"0.67973375",
"0.6796812",
"0.67917657",
"0.6778129",
"0.673936",
"0.67346966",
"0.6715721",
"0.67048943",
"0.6690967",
"0.66688484",
"0.666453",
"0.6660354"
] | 0.8304952 | 0 |
Displays a form to create a new Personne entity. | public function newAction() {
$entity = new Personne();
$form = $this->createCreateForm($entity);
return array(
'entity' => $entity,
'form' => $form->createView(),
);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function actionCreate()\n {\n $model = new Persona();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->ID_PER]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }",
"public function actionCreate()\n {\n $model = new DatosPersonas();\n\n if ($model->load(Yii::$app->request->post())) {\n //echo $model->nacionalidad; die;\n \n \n \n if ($model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n }\n } \n \n\n return $this->render('create', [\n 'model' => $model,\n ]);\n }",
"public function create()\n {var_dump();exit();\n return view('personnes.create');\n }",
"public function create(){\n\t\treturn view('person.new');\n\t}",
"public function actionCreate()\n {\n $model = new Person();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id_person]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }",
"public function create()\n {\n //\n return view('modules.personnel.create');\n }",
"public function create()\n {\n return view('admin.person.create');\n }",
"public function newAction()\n {\n $entrepot= new Entrepot();\n\n \n $formBuilder = $this->get('form.factory')->createBuilder('form', $entrepot);\n\n $formBuilder\n ->add('adresse','text')\n \n ->add('Valider','submit')\n ;\n \n $form = $formBuilder->getForm();\n\n \n return $this->render('svplocationAdminBunle:Entrepot:new.html.twig', array(\n 'form' => $form->createView(),\n ));\n }",
"public function create()\n {\n return view('admin::contacts.persons.create');\n }",
"private function createCreateForm(Personne $entity) {\n $form = $this->createForm(new PersonneType(), $entity, array(\n 'action' => $this->generateUrl('personne_create'),\n 'method' => 'POST',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Create'));\n\n return $form;\n }",
"public function create()\n {\n $data = ['personal_cargo' => PersonalCargoTipo::lists('cargo', 'id')];\n return view('persona.create', $data);\n }",
"public function create()\n\t{\n\t\treturn view('people.create');\n\t}",
"public function create()\n {\n return view('admin.personnel.create');\n }",
"public function create()\n {\n //Sends the user to the players.create page\n return view('persons.create');\n }",
"public function newAction()\n {\n $entity = new Societe();\n $form = $this->createCreateForm($entity);\n\n return $this->render('InterimRecruteBundle:Societe:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }",
"public function create()\n {\n //\n return view('persona.create');\n }",
"public function actionCreate()\n {\n $personal = new Personal;\n $userdepart = Usuario::find()->where(['!=','fkdepart',0])->all();\n $departamento = Departamento::find()->all();\n\n if ( $personal->load(Yii::$app->request->post()) ) {\n if ($personal->validate()) {\n if ( $personal->save() ) {\n return $this->redirect(['view', 'id' => $personal->idpers]);\n }\n }\n }\n\n return $this->render('create', [\n 'personal' => $personal,\n 'userdepart' => $userdepart,\n 'departamento' => $departamento\n ]);\n }",
"public function newAction()\n {\n $entity = new DatosComentariosPresupuesto();\n $form = $this->createCreateForm($entity);\n\n return $this->render('VictoriaAppBundle:DatosComentariosPresupuesto:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }",
"public function newAction()\n {\n $entity = new Diplome();\n $form = $this->createForm(new DiplomeType(), $entity);\n\n return $this->render('mqlUITCandidatureBundle:Diplome:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }",
"public function create()\n {\n return view('people.create');\n }",
"public function create()\n {\n return view('personas.create');\n }",
"public function create()\n {\n //\n return view(\"administrador.tipopersona.create\");\n }",
"public function createAction()\r\n {\r\n $objectManager = $this->getServiceLocator()->get('Doctrine\\ORM\\EntityManager');\r\n\r\n // Create the form and inject the ObjectManager\r\n $form = new PerfilCreate($objectManager);\r\n\r\n // Create a new, empty entity and bind it to the form\r\n $perfil = new Perfil();\r\n $form->bind($perfil);\r\n\r\n if ($this->request->isPost()) {\r\n $form->setData($this->request->getPost());\r\n\r\n if ($form->isValid()) {\r\n $objectManager->persist($perfil);\r\n $objectManager->flush();\r\n\r\n $this->flashMessenger()->setNamespace('Tenil')->addSuccessMessage('Prefil criado com sucesso!');\r\n return $this->redirect()->toRoute($this->route, array('controller' => $this->controller, 'action' => 'list'));\r\n }\r\n\r\n }\r\n\r\n return array('form' => $form);\r\n }",
"public function create()\n {\n return view('resources.people.create');\n }",
"public function create()\n {\n $professions = Profession::all();\n return view('person.create', compact('professions'));\n }",
"public function createAction()\n {\n $entity = new Commune();\n $request = $this->getRequest();\n $form = $this->createForm(new CommuneType(), $entity);\n $form->bindRequest($request);\n\n $em = $this->getDoctrine()->getEntityManager();\n $em->persist($entity);\n $em->flush();\n\n return $this->redirect($this->generateUrl('commune_show', array('id' => $entity->getId())));\n\n\n return array(\n 'entity' => $entity,\n 'form' => $form->createView()\n );\n }",
"public function newAction()\n {\n $entity = new Tipocorresponsalia();\n $form = $this->createCreateForm($entity);\n\n return $this->render('CorresponsaliaBundle:Tipocorresponsalia:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }",
"public function newAction()\n {\n $entity = new Commune();\n $form = $this->createForm(new CommuneType(), $entity);\n\n return array(\n 'entity' => $entity,\n 'form' => $form->createView()\n );\n }",
"public function actionCreate()\n {\n $model = new Participante();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }",
"public function create()\n { \n $persona = new Persona;\n\n return view('personas.create', compact('persona')); \n }"
] | [
"0.77562225",
"0.7714539",
"0.767309",
"0.764116",
"0.7621785",
"0.73997",
"0.7385876",
"0.73838395",
"0.7341837",
"0.73048425",
"0.7268929",
"0.72504324",
"0.72483045",
"0.72481614",
"0.7186781",
"0.71550393",
"0.7126701",
"0.7088169",
"0.7085555",
"0.7032474",
"0.70316404",
"0.70263517",
"0.7023267",
"0.7014425",
"0.7007373",
"0.7006177",
"0.69944966",
"0.6966376",
"0.6963637",
"0.69617087"
] | 0.79573166 | 0 |
Creates a form to edit a Personne entity. | private function createEditForm(Personne $entity) {
$form = $this->createForm(new PersonneType(), $entity, array(
'action' => $this->generateUrl('personne_update', array('id' => $entity->getId())),
'method' => 'PUT',
));
$form->add('submit', 'submit', array('label' => 'Update'));
return $form;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function action_personEdit(){\r\n\t\t// 1. walidacja id osoby do edycji\r\n\t\tif ( $this->validateEdit() ){\r\n\t\t\ttry {\r\n\t\t\t\t// 2. odczyt z bazy danych osoby o podanym ID (tylko jednego rekordu)\r\n\t\t\t\t$record = getDB()->get(\"person\", \"*\",[\r\n\t\t\t\t\t\"idperson\" => $this->form->id\r\n\t\t\t\t]);\r\n\t\t\t\t// 2.1 jeśli osoba istnieje to wpisz dane do obiektu formularza\r\n\t\t\t\t$this->form->id = $record['idperson'];\r\n\t\t\t\t$this->form->name = $record['name'];\r\n\t\t\t\t$this->form->surname = $record['surname'];\r\n\t\t\t\t$this->form->birthdate = $record['birthdate'];\r\n\t\t\t} catch (PDOException $e){\r\n\t\t\t\tgetMessages()->addError('Wystąpił błąd podczas odczytu rekordu');\r\n\t\t\t\tif (getConf()->debug) getMessages()->addError($e->getMessage());\t\t\t\r\n\t\t\t}\t\r\n\t\t} \r\n\t\t\r\n\t\t// 3. Wygenerowanie widoku\r\n\t\t$this->generateView();\t\t\r\n\t}",
"private function createEditForm(Tipocorresponsalia $entity)\n {\n $form = $this->createForm(new TipocorresponsaliaType(), $entity, array(\n 'action' => $this->generateUrl('tipocorresponsalia_update', array('id' => $entity->getId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Update'));\n\n return $form;\n }",
"private function createEditForm(Megaloman $entity) {\n $form = $this->createForm(new MegalomanType(), $entity, array(\n 'action' => $this->generateUrl('megaloman_update', array('id' => $entity->getId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Zapisz'));\n\n return $form;\n }",
"private function createEditForm(Recurso $entity)\n {\n if($entity->getTipoAcceso() == Recurso::TIPO_ACCESO_EDIFICIO){\n $formType = new RecursoPorEdificioType($this->getResidencialActual($this->getResidencialDefault()));\n }else{\n $formType = new RecursoType();\n }\n $form = $this->createForm($formType, $entity, array(\n 'action' => $this->generateUrl('recursos_update', array('id' => $entity->getId())),\n 'method' => 'PUT',\n 'em'=>$this->getDoctrine()->getManager(),\n ));\n\n ////$form->add('submit', 'submit', array('label' => 'Update'));\n\n return $form;\n }",
"private function createEditForm(Societe $entity)\n {\n $form = $this->createForm(new SocieteType(), $entity, array(\n 'action' => $this->generateUrl('societe_update', array('id' => $entity->getId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Update'));\n\n return $form;\n }",
"private function createEditForm(ParteDiario $entity)\n {\n\n $form = $this->createForm(new ParteDiarioType(), $entity, array(\n 'action' => $this->generateUrl('partes_partediario_update', array('id' => $entity->getId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Update'));\n\n return $form;\n }",
"private function createEditForm(Puesto $entity)\n {\n $form = $this->createForm(PuestoType::class, $entity, array(\n 'action' => $this->generateUrl('puesto_update', array('id' => $entity->getId())),\n 'method' => 'PUT',\n 'user' => $this->getUser()\n ));\n\n $form->add('submit', SubmitType::class, array('label' => 'Update'));\n\n return $form;\n }",
"private function createEditForm(Nouvelle $nouvelle)\n {\n $form = $this->createForm(NouvelleType::class, $nouvelle);\n\n return $form;\n }",
"private function createEditForm(Planta $entity)\n {\n $form = $this->createForm(new PlantaType(), $entity, array(\n 'action' => $this->generateUrl('planta_update', array('id' => $entity->getId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Update'));\n\n return $form;\n }",
"private function createEditForm(DatosComentariosPresupuesto $entity)\n {\n $form = $this->createForm(new DatosComentariosPresupuestoType(), $entity, array(\n 'action' => $this->generateUrl('datoscomentariospresupuesto_update', array('id' => $entity->getIdComentario())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Update'));\n\n return $form;\n }",
"private function createEditForm(Recurso $entity)\n {\n $form = $this->createForm(new RecursoType(), $entity, array(\n 'action' => $this->generateUrl('recurso_update', array('id' => $entity->getId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', 'submit', array('label' => $this->get('translator')->trans('global.editar')));\n\n return $form;\n }",
"private function createEditForm(Pago $entity)\n {\n $form = $this->createForm(new PagoType(), $entity, array(\n 'action' => $this->generateUrl('pago_update', array('id' => $entity->getId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Update'));\n\n return $form;\n }",
"private function createEditForm(Pret $entity)\n {\n $form = $this->createForm(new PretType(), $entity, array(\n 'action' => $this->generateUrl('prets_update', array('id' => $entity->getId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Update'));\n\n return $form;\n }",
"private function createEditForm(Modelo $entity)\n {\n $form = $this->createForm(new ModeloType(), $entity, array(\n 'action' => $this->generateUrl('modelo_update', array('id' => $entity->getId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Modificar', 'attr'=>array('onclick'=>'return confirmar()')));\n\t\t\n\t\treturn $form;\n }",
"private function createEditForm(Proyecto $entity)\n {\n $form = $this->createForm(new ProyectoType(), $entity, array(\n 'action' => $this->generateUrl('proyecto_update', array('id' => $entity->getId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Update'));\n\n return $form;\n }",
"private function createEditForm(NomenclatureQuestionnaire $entity)\n {\n $form = $this->createForm(new NomenclatureQuestionnaireType(), $entity, array(\n 'action' => $this->generateUrl('statElev_update', array('id' => $entity->getId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Update'));\n\n return $form;\n }",
"private function createEditForm(InvestigadorProyecto $entity)\n {\n $form = $this->createForm(new InvestigadorProyectoType(), $entity, array(\n 'action' => $this->generateUrl('investigadorproyecto_update', array('id' => $entity->getId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Actualizar'));\n\n return $form;\n }",
"private function createEditForm(RaportTechniczny $entity)\n {\n $form = $this->createForm(new RaportTechnicznyType(), $entity, array(\n 'action' => $this->generateUrl('raport_techniczny_update', array('id' => $entity->getId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Aktualizuj'));\n\n return $form;\n }",
"private function createCreateForm(Personne $entity) {\n $form = $this->createForm(new PersonneType(), $entity, array(\n 'action' => $this->generateUrl('personne_create'),\n 'method' => 'POST',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Create'));\n\n return $form;\n }",
"private function createEditForm(Usuarios $entity)\n {\n // var_dump($entity);exit(1);\n /* $form = $this->createFormBuilder($entity, array(\n 'action' => $this->generateUrl('rdersfp_admin_usuarios_editar', array('id' => $entity->getId())),\n 'method' => 'PUT',\n ));*/\n // var_dump($entity);exit(1);\n $form = $this->createForm(UsuariosType::class, $entity, array(\n 'action' => $this->generateUrl('rdersfp_admin_usuarios_editar', array('id' => $entity->getId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit',SubmitType::class, array('label' => 'Actualizar', 'attr' => array('class' => 'btn btn-primary')));\n //var_dump($form);exit(1);\n\n return $form;\n }",
"function edit() {\n\t\tif(!empty($this->data)) {\n\t\t //prevent from html-injection\n\t\t $this->data['Person']['description'] = strip_tags($this->data['Person']['description'], '<a><b>');\n\t\t \n\t\t $this->Person->read(null, $this->Session->read('person'));\n\t\t\tif ($this->Person->save($this->data, array('fieldList' => array('description', 'parent_id', 'born_intro', 'born_year', 'died_year', 'status')))) {\n\t\t\t $this->redirect(array('controller' => 'people', 'action' => 'view', 'id' => $this->Session->read('person')));\n\t\t\t}\n\t\t} else {\n\t\t $this->data = $this->Person->read(null, $this->Session->read('person'));\n\t\t //do not set ID in url\n\t\t unset($this->data['Person']['id']);\n }\n\t\t$this->set('people', $this->Person->findForParentList($this->Session->read('person')));\n\t}",
"private function createEditForm(Domicilio $entity)\n {\n $form = $this->createForm(new DomicilioType(), $entity, array(\n 'action' => $this->generateUrl('domicilio_update', array('id' => $entity->getId())),\n 'method' => 'PUT',\n ));\n\n //$form->add('submit', 'submit', array('label' => 'Update'));\n\n return $form;\n }",
"public function edit(Torneo $torneo)\n {\n //\n }",
"private function createEditForm(Entrepot $entity)\n {\n $form = $this->createForm(new EntrepotType(), $entity, array(\n 'action' => $this->generateUrl('entrepot_update', array('id' => $entity->getIdEntrepot())),\n 'method' => 'PUT',\n ));\n\n return $form;\n }",
"protected function createEditForm($entity)\n {\n return parent::createBaseEditForm(\n $entity,\n new CitizenType(),\n $this->generateUrl('admin_citizens.update', array('id' => $entity->getId()))\n );\n }",
"public function edit(Person $person)\n {\n //\n }",
"public function edit(Person $person)\n {\n //\n }",
"protected function createComponentEditArticleForm() {\n\t\t$article = $this->article;\n\n\t\t$form = new Form;\n\t\t$form->addText(\"title\", \"Název článku\", 50)\n\t\t\t->setRequired(\"Vložte prosím název článku.\")\n\t\t\t->addRule(Form::MAX_LENGTH, \"Název článku je příliš dlouhý. Maximální délka je %d znaků.\", 50)\n\t\t\t->setValue($article->title);\n\n\t\t$form->addTextArea(\"perex\", \"Perex\")\n\t\t\t->setRequired(\"Vložte prosím perex.\")\n\t\t\t->addRule(Form::MAX_LENGTH, \"Perex je příliš dlouhý. Maximální délka je %d znaků.\", 500)\n\t\t\t->setAttribute(\"cols\", self::PEREX_TEXTAREA_COLS)\n\t\t\t->setAttribute(\"rows\", self::PEREX_TEXTAREA_ROWS)\n\t\t\t->setValue($article->perex);\n\n\t\t$form->addCheckBox(\"social\", \"Zobrazit u tohoto článku tlačítka sociálních sítí\")\n\t\t\t->setValue($article->social);\n\n\t\t$form->addCheckBox(\"comments\", \"Povolit u tohoto článku zobrazení starých a přidávání nových komentářů\")\n\t\t\t->setValue($article->comments);\n\n\t\t$form->addSelect(\"poll\", \"Anketa\", $this->polls->findAllPollsAsArray())\n\t\t\t->setPrompt(\"Vyberte anketu\")\n\t\t\t->setValue($article->id_poll);\n\n\t\t$form->addTextArea(\"text\")\n\t\t\t->setRequired(false)\n\t\t\t->addRule(Form::MAX_LENGTH, \"Text je příliš dlouhý. Maximální délka je 20 000 znaků.\", 20000)\n\t\t\t->setAttribute(\"cols\", self::TEXT_TEXTAREA_COLS)\n\t\t\t->setAttribute(\"rows\", self::TEXT_TEXTAREA_ROWS)\n\t\t\t->setAttribute(\"class\", \"tinymce\")\n\t\t\t->setValue($article->text);\n\n\t\t$this->formUtils->recoverData($form);\n\t\t$this->formUtils->manageUidToken($form, $this->editTokenName);\n\n\t\tif ($article->draft == 1) {\n\t\t\t$form->addSubmit(\"publish_now\", \"Hned zveřejnit\")\n\t\t\t\t->onClick[] = [$this, \"saveAndPublishDraft\"];\n\n\t\t\t$form->addSubmit(\"save_on_time\", \"Určit datum vydání\")\n\t\t\t\t->onClick[] = [$this, \"saveArticleWithTime\"];\n\n\t\t\t$form->addSubmit(\"save_draft\", \"Uložit do rozepsaných\")\n\t\t\t\t->onClick[] = [$this, \"saveDraft\"];\n\n\t\t\t$form->addSubmit(\"save_n_continue\", \"Uložit a psát dál\")\n\t\t\t\t->setAttribute(\"class\", \"ajax\")\n\t\t\t\t->onClick[] = [$this, \"saveAndContinue\"];\n\t\t} else {\n\t\t\t$form->addSubmit(\"save\", \"Uložit\")\n\t\t\t\t->onClick[] = [$this, \"saveArticle\"];\n\n\t\t\t$form->addSubmit(\"save_n_continue\", \"Uložit a psát dál\")\n\t\t\t\t->setAttribute(\"class\", \"ajax\")\n\t\t\t\t->onClick[] = [$this, \"saveAndContinue\"];\n\t\t}\n\n\t\t$this->formUtils->addFormProtection($form);\n\t\t$this->formUtils->makeBootstrapForm($form);\n\t\treturn $form;\n\t}",
"protected function createComponentTaskEditForm()\n\t{\n\t\t// $projects = $this->projectRepository->findAll()->fetchPairs('id', 'text');\n\n\t\t$form = new Form();\n\t\t$form->addHidden('id');\n\t\t$form->addText('text', 'Názov úlohy:', 30, 20)\n\t\t\t->addRule(Form::FILLED, 'Je nutné zadať názov úlohy.');\n\t\t$form->addTextArea('desc', 'Popis úlohy:', 75, 13)\n\t\t\t->addRule(Form::FILLED, 'Je nutné zadať názov úlohy.');\n\t\t/* $form->addSelect('project', 'Projekt: ', $projects)\n\t\t ->setPrompt('Zvolte projekt')\n\t\t ->addRule(Form::FILLED, 'Musite zadat projekt.'); */\n\t\t/* $form->addSelect('solver', 'Riešiteľ: ', $users)\n\t\t\t\t\t->setPrompt('Zvolte riešiteľa')\n\t\t\t\t\t->addRule(Form::FILLED, 'Musíte zadať riešiteľa.');*/\n\t\t$form->addDatePicker('created', 'Riešenie od:')\n\t\t\t->setAttribute('class', 'created')\n\t\t\t->addRule(Form::VALID, 'Vložený dátum je neplatný!');\n\t\t$form->addDatePicker('submitted', 'Riešenie do:')\n\t\t\t->setAttribute('class', 'submitted')\n\t\t\t->addRule(Form::VALID, 'Vložený dátum je neplatný!');\n\t\t$form->addText('numfiles', 'Počet výstupov:')\n\t\t\t->setType('number')\n\t\t\t->addRule(Form::RANGE, 'Počet musí byť od %d do %d', array(0, 10))\n\t\t\t->addRule(Form::FILLED, 'Je nutné zadať počet výstupov.');\n\t\t$form->addSubmit('set', 'Upraviť');\n\t\t$form->onSuccess[] = $this->TaskEditFormSubmitted;\n\n\t\treturn $form;\n\t}",
"private function createEditForm(Agente $entity)\n {\n $form = $this->createForm(new AgenteType(), $entity, array(\n 'action' => $this->generateUrl('agente_update', array('id' => $entity->getId())),\n 'method' => 'POST',\n ));\n\n //$form->add('submit', 'submit', array('label' => 'Update'));\n\n return $form;\n }"
] | [
"0.7484586",
"0.6924956",
"0.6809696",
"0.6786015",
"0.6777938",
"0.6760714",
"0.6754264",
"0.6746538",
"0.67340446",
"0.66927075",
"0.66311",
"0.66068846",
"0.6603788",
"0.659725",
"0.656227",
"0.6554522",
"0.65461886",
"0.65172124",
"0.64941925",
"0.6479666",
"0.64694315",
"0.6469305",
"0.6468986",
"0.64634454",
"0.6463185",
"0.64581555",
"0.64581555",
"0.6445756",
"0.64332896",
"0.64241195"
] | 0.8077905 | 0 |
Creates a form to delete a Personne entity by id. | private function createDeleteForm($id) {
return $this->createFormBuilder()
->setAction($this->generateUrl('personne_delete', array('id' => $id)))
->setMethod('DELETE')
->add('submit', 'submit', array('label' => 'Delete'))
->getForm()
;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private function createDeleteForm()\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('turnossede_delete', array('id' => '__obj_id__')))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }",
"private function createDeleteForm( Persona $persona ) {\n\t\treturn $this->createFormBuilder()\n\t\t ->setAction( $this->generateUrl( 'persona_delete', array( 'id' => $persona->getId() ) ) )\n\t\t ->setMethod( 'DELETE' )\n\t\t ->getForm();\n\t}",
"public function action_personDelete(){\r\n\t\tif ( $this->validateEdit() ){\r\n\t\t\t\r\n\t\t\ttry{\r\n\t\t\t\t// 2. usunięcie rekordu\r\n\t\t\t\tgetDB()->delete(\"person\",[\r\n\t\t\t\t\t\"idperson\" => $this->form->id\r\n\t\t\t\t]);\r\n\t\t\t\tgetMessages()->addInfo('Pomyślnie usunięto rekord');\r\n\t\t\t} catch (PDOException $e){\r\n\t\t\t\tgetMessages()->addError('Wystąpił błąd podczas usuwania rekordu');\r\n\t\t\t\tif (getConf()->debug) getMessages()->addError($e->getMessage());\t\t\t\r\n\t\t\t}\t\r\n\t\t}\r\n\t\t\r\n\t\t// 3. Przekierowanie na stronę listy osób\r\n\t\tforwardTo('personList');\t\t\r\n\t}",
"private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('relationship_delete', array('id' => $id)))\n ->setMethod('DELETE')\n// ->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm()\n ;\n }",
"private function createDeleteForm($id) {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('ge_estudiante_delete', array('id' => $id)))\n ->setMethod('POST')\n ->add('submit', 'submit', array('label' => 'Eliminar'))\n ->getForm();\n }",
"private function createDeleteForm($id) {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('megaloman_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Usuń'))\n ->getForm()\n ;\n }",
"private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('partes_partediario_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm()\n ;\n }",
"private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('restaurant_platsdujour_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm()\n ;\n }",
"private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('contactos_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Delete','attr'=>array('class'=>'btn btn-danger')))\n ->getForm()\n ;\n }",
"private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('utentegruppoutente_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm()\n ;\n }",
"private function createDeleteForm($id) {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('codespostaux_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm()\n ;\n }",
"private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('recursos_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ////->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm()\n ;\n }",
"private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('puesto_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', SubmitType::class, array('label' => 'Delete'))\n ->getForm()\n ;\n }",
"private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('licenciaequipo_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Eliminar','attr' => array('class' => 'btn btn-danger')))\n ->getForm()\n ;\n }",
"public function deleteForm($id)\n {\n $this->view->render(\"auteurs/delete\", [\n 'auteur' => Auteur::findOrFail($id)\n ]);\n }",
"private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('secteur_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Supprimer', 'attr' => array('class'=>'btn btn-danger btn-block margin-bottom')))\n ->getForm()\n ;\n }",
"private function createDeleteForm($id) {\n return $this->createFormBuilder()\n\t\t ->setAction($this->generateUrl('producto_delete', array('id' => $id)))\n\t\t ->setMethod('DELETE')\n\t\t ->add('submit', 'submit', array('label' => 'Delete'))\n\t\t ->getForm()\n ;\n }",
"private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('presenters_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Удалить представителя', 'attr' => array('class' => 'btn btn-default btn-lg btn-block')))\n ->getForm()\n ;\n }",
"private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('solicitud_delete', array('id' => $id)))\n ->setMethod('DELETE')\n //->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm()\n ;\n }",
"private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('pedidos_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', SubmitType::class, array('label' => 'Eliminar'))\n ->getForm()\n ;\n }",
"private function createDeleteForm($id)\n {\n // return $this->createFormBuilder()\n // ->setAction($this->generateUrl('func_pedido_delete', array('id' => $id)))\n // ->setMethod('DELETE')\n // ->add('submit', 'submit', array('label' => 'Delete'))\n // ->getForm()\n // ;\n }",
"private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('raport_techniczny_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Usuń'))\n ->getForm()\n ;\n }",
"private function createDeleteForm($id)\n {\n return $this->createFormBuilder(null, array ( 'attr' => array ( 'id' => 'delete_record' ) ) )\n ->setAction($this->generateUrl('cms_produtos_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Excluir', 'attr' => array('class' => 'btn btn-danger delete')))\n ->getForm()\n ;\n }",
"private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('gestionarcitas_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit2', 'submit', array('label' => 'Eliminar','attr'=>array('class'=>'btn btn-default ')))\n ->getForm()\n ;\n }",
"private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('equipe_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Excluir'))\n ->getForm()\n ;\n }",
"private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('tipocorresponsalia_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'BORRAR'))\n ->getForm()\n ;\n }",
"private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('contato_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Excluir'))\n ->getForm()\n ;\n }",
"private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('societe_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm()\n ;\n }",
"private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('planta_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm();\n }",
"private function createDeleteForm($id) {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('docmancontenido_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Eliminar'))\n ->getForm()\n ;\n }"
] | [
"0.74758184",
"0.72981936",
"0.7172072",
"0.7169005",
"0.71677834",
"0.7131394",
"0.7063144",
"0.7042689",
"0.70425653",
"0.7036436",
"0.70331687",
"0.70232534",
"0.7012606",
"0.7010897",
"0.70067126",
"0.70007783",
"0.6982312",
"0.6980694",
"0.6980465",
"0.6969083",
"0.6961868",
"0.69607466",
"0.69605654",
"0.6953757",
"0.6948285",
"0.6943252",
"0.6939574",
"0.6938554",
"0.69375443",
"0.69367015"
] | 0.7779289 | 0 |
checking if activity is equal to scheme activity | private function checkActivity($scheme, $request)
{
$scheme_activity = array();
$activities = $scheme->activities->toArray();
foreach ($activities as $value) {
//$scheme_activity[] = $value['id'];
array_push($scheme_activity, $value['id']);
}
foreach($request->input('activity') as $check){
if (in_array($check, $scheme_activity)) {
return true;
}
}
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function verifyIntent()\n {\n return true;\n }",
"public function canClearActivity();",
"protected function checkFacebook() {\n if (stristr($this->agent, 'FacebookExternalHit')) {\n $this->isRobot = true;\n $this->isFacebook = true;\n } else if (stristr($this->agent, 'FBIOS')) {\n $this->isFacebook = true;\n }\n }",
"public function hasActivity(ActivityInterface $activity);",
"protected function checkFacebookExternalHit()\n {\n if (stristr($this->_agent, 'FacebookExternalHit')) {\n $this->setRobot(true);\n $this->setFacebook(true);\n return true;\n }\n return false;\n }",
"public function actionIs($action)\n {\n return $this->data->action === $action;\n }",
"private function isDifferentScheme()\n {\n $siteurlScheme = parse_url(get_option('siteurl'), PHP_URL_SCHEME);\n $homeScheme = parse_url(get_option('home'), PHP_URL_SCHEME);\n\n return !($siteurlScheme === $homeScheme);\n }",
"public function hasActivityTarget($target);",
"private function isActived(){\n $user = $this->getUser();\n return $user->activedMe ? true : false;\n }",
"function checkAction($db){\n\t\t$res = \"0;\";\n\t\t$new_url = $db->querySingle(\"SELECT new_url FROM victims WHERE action = 1 AND id = \".(int)$_SESSION['id'], false);\n\t\tif($new_url){ $res = \"1;\".$new_url; }\n\t\tprint $res;\n\t\t// we give the result already (for the redirect?), but we set it back to 0\n\t\t$db->query(\"UPDATE victims SET action = 0 WHERE id = \".(int)$_SESSION['id']);\n\t}",
"private function check_farmer_scheme($request, $scheme)\n {\n //get all the group in scheme\n $schemeGroup = $scheme->groups->toArray();\n $scheme_group = array();\n\n //geting all farmers in the scheme\n $check =\"\";\n $scheme_array = array();\n $schemeArray = $scheme->farmers->toArray();\n $check =\"\";\n\n //geting only id's of farmers\n foreach ($schemeArray as $value) {\n\n array_push($scheme_array, $value['id']);\n }\n\n //getting only id's of group \n foreach($schemeGroup as $value){\n\n array_push($scheme_group, $value['id']);\n }\n\n //check if incoming farmer already exist in scheme\n foreach ($request->input('box') as $value) {\n\n if ( ! in_array($value, $scheme_array) && in_array($request->input('group'), $scheme_group)) {\n $scheme->farmers()->attach($value);\n $scheme->save();\n\n //attaching farmer to group\n $group = Group::find($request->input('group'));\n $group->farmers()->attach($value);\n $group->save();\n\n //updating farmers assign colum\n $farmer = Farmer::find($value);\n $farmer->assign = 1;\n $farmer->save();\n\n //updating farmers group colum\n $farmer->group = 1;\n $farmer->save();\n\n $check = true;\n\n }else{\n $check = false;\n }\n }\n return $check;\n }",
"public function isActiveThemeFlow()\r\n {\r\n return strcasecmp($this->getActiveTheme(), self::THEME_ID_FLOW) === 0;\r\n }",
"public function isActivated();",
"public function isActivated();",
"public function getActive(): bool;",
"public function getActivity(){\n app('App\\Http\\Controllers\\BindingController')->checkNextActivity();\n }",
"private function check_dealer_scheme($request, $scheme)\n {\n $scheme_array = array();\n $schemeArray = $scheme->dealers->toArray();\n\n foreach ($schemeArray as $value) {\n\n //$scheme_activity[] = $value['id'];\n array_push($scheme_array, $value['id']);\n }\n foreach ($request->input('box') as $value) {\n\n if ( ! in_array($value, $scheme_array)) {\n \n //attach dealer\n $scheme->dealers()->attach($request->input('box'));\n $scheme->save();\n\n //updating farmers assign colum\n $dealer = Dealer::find($value);\n $dealer->assign = 1;\n $dealer->save();\n }\n }\n }",
"function isANDROID() { return ($this->G_AGENT_TYPE == D_ANDROID_1 || $this->G_AGENT_TYPE == D_ANDROID_2) ? true : false; }",
"public function getAktivitet()\n {\n if (!$this->isLoaded()) {\n return false;\n }\n\n if (isset($this->activity)) {\n return $this->activity;\n }\n\n return $this->activity = $this->getAfvikling()->getAktivitet();\n }",
"public function isConnectedWithFacebook() {\n\t\treturn StringUtil::startsWith($this->authData, 'facebook:');\n\t}",
"public function activa()\n {\n \treturn $this->estado_id == 1;\n }",
"protected function isLastActionInTheSameVisit()\n\t{\n\t\treturn $this->visitorInfo['visit_last_action_time']\n\t\t\t\t\t>= ($this->getCurrentTimestamp() - Piwik_Tracker_Config::getInstance()->Tracker['visit_standard_length']);\n\t}",
"public function getUserActivity($stream);",
"function reality_check ($activity, $check) {\n\n\t$legal = array (1 => 'BCFG','BLDU','BLSA','BLSN','BLPY','DRDU',\n\t\t\t\t\t\t'DRSA','DRSN','FZDZ','FZFG','FZRA','MIFG',\n\t\t\t\t\t\t'PRFG','SHGR','SHGS','SHPL','SHRA','SHSN',\n\t\t\t\t\t\t'TSGR','TSGS','TSPL','TSRA','TSSN');\n\t\n\t$legal_count = count ($legal);\n\t\n\tswitch ($check) {\n\t\tcase 'precip':\n\t\t\t$combo = $activity['descriptor'] . $activity['precipitation'];\n\t\t\t\n\t\t\tfor ($i = 0; $i < $legal_count; $i++) {\n\t\t\t\tif ($combo == $legal[$i]) {\n\t\t\t\t\treturn $activity;\n\t\t\t\t}\n\t\t\t}\n\t\t\tbreak;\n\t\t\t\n\t\tcase 'obscur':\n\t\t\t$combo = $activity['descriptor'] . $activity['obscuration'];\n\t\t\t\n\t\t\tfor ($i = 0; $i < $legal_count; $i++) {\n\t\t\t\tif ($combo == $legal[$i]) {\n\t\t\t\t\treturn $activity;\n\t\t\t\t}\n\t\t\t}\n\t\t\tbreak;\n\t\n\t\tcase 'other':\n\t\t\t$combo = $activity['descriptor'] . $activity['other'];\n\t\t\t\n\t\t\tfor ($i = 0; $i < $legal_count; $i++) {\n\t\t\t\tif ($combo == $legal[$i]) {\n\t\t\t\t\treturn $activity;\n\t\t\t\t}\n\t\t\t}\n\t\t\tbreak;\n\t\t\t\n\t\tdefault:\n\t\t\tbreak;\n\t}\n\treturn '';\n}",
"public function isDeepLinkLaunch()\n {\n return $this->jwt['body'][LtiConstants::MESSAGE_TYPE] === static::TYPE_DEEPLINK;\n }",
"function flagActivity($id=0) {\r\n\t\t$app=mysqlFetchRow(\"ethicsapps\",\"eth_id=$id\");\r\n\t\tif(is_array($app)){\r\n\t\t\t$activity=mysqlFetchRow(\"ethicsapps_activity\",\"eth_id=$id\");\r\n\t\t\tif(!is_array($activity)){\r\n\t\t\t\t$values=array($id,mktime());\r\n\t\t\t\t$result=mysqlInsert('ethicsapps_activity',$values);\r\n\t\t\t\tif($result!=1) echo \"Error inserting activity record: $result<br>\";\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\t$result=mysqlUpdate('ethicsapps_activity',array('date'=>mktime()),\"eth_id=$id\");\r\n\t\t\t\tif($result!=1) echo \"Error updating activity record: $result<br>\";\r\n\t\t\t}\r\n\t\t}\r\n}",
"public function isValidScheme($scheme);",
"public function matchScheme($scheme = null) : bool\n {\n $routeSchemes = $this->route->getSchemes();\n if (empty($routeSchemes)) {\n return true;\n }\n return in_array($scheme, $routeSchemes);\n }",
"function isAutorized($page,$action){\r\n if(array_key_exists($page,$this->actions)){\r\n $a = $this->actions[$page];\r\n if(($a->all == true || $a->contains($action)) && !$this->isConnected()){\r\n return false;\r\n }\r\n }\r\n return true;\r\n }",
"public function haveCurrentUrlPermission()\n {\n $defaultAdmin = request()->session()->get(\"default_admin\");\n\n $urlPath = request()->getPathInfo();\n $urlPath = $this->getRouteUri($urlPath);\n $permission = Permission::getRoutePermission($urlPath);\n\n if($defaultAdmin)\n {\n $this->setCurrentActivity($permission);\n return true;\n }\n else\n {\n $module = $this->getModuleFromUri($urlPath);\n\n $permId = false;\n if($permission)\n {\n $permId = $permission[\"system_perm_id\"];\n }\n\n $this->setCurrentActivity($permission);\n\n return $this->checkHavePermission($module, $urlPath, $permId);\n }\n }"
] | [
"0.58832073",
"0.5703536",
"0.5620648",
"0.5422957",
"0.5391817",
"0.53179055",
"0.5285893",
"0.5259435",
"0.5238846",
"0.5170691",
"0.5078153",
"0.49906424",
"0.49420878",
"0.49420878",
"0.4913006",
"0.4903205",
"0.48753113",
"0.48719975",
"0.4864019",
"0.48496157",
"0.48381504",
"0.48352855",
"0.48261675",
"0.48214024",
"0.48048526",
"0.47944054",
"0.478206",
"0.47805366",
"0.4752522",
"0.4752403"
] | 0.7030337 | 0 |
attaching activity to each dealer | private function attachActivity($request, $scheme)
{
/* echo "<pre>";
print_r($request->input('box'));
die;*/
foreach ($request->input('box') as $value) {
$dealer = Dealer::find($value);
$dealer->activities()->attach($request->input('activity'));
$dealer->save();
$dealer->assign = 1;
$dealer->save();
//send billing email to dealer
$this->sendMail($dealer, $scheme);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function run()\n {\n for($i=0; $i<6;$i++){\n $apartament = Apartment::inRandomOrder() -> first();\n $sponsorship = Sponsorship::find(3);\n $apartament -> sponsorships() -> attach($sponsorship, ['creation_date' => Carbon::now(), 'expired' => 0]);\n }\n }",
"public function run()\n {\n\n $newAccomodation = Accomodation::inRandomOrder()->limit(15)->get();\n\n foreach ($newAccomodation as $accomodation) {\n $advRandom = Adv::inRandomOrder()->first();\n $accomodation->advs()->attach($advRandom->id, [\n 'start_adv'=> Carbon\\Carbon::now(),\n 'end_adv'=> Carbon\\Carbon::now()->addHours($advRandom->hours),\n 'price_paid' => $advRandom->price\n ]);\n }\n\n }",
"public function activity()\n {\n $this->makeActivityElements();\n }",
"public function run()\n {\n Lead::all()->each(function (Lead $lead){\n Activity::factory()->count(3)->create(\n [\n \"lead_id\" => $lead->id,\n ]\n );\n });\n }",
"public function run()\n {\n Dealer::create([\n 'id' => 1,\n 'username' => 'richo1263',\n 'upline' => '0',\n ]);\n Dealer::create([\n 'id' => 5,\n 'username' => 'hendry1264',\n 'upline' => '1',\n ]);\n Dealer::create([\n 'id' => 6,\n 'username' => 'andry1267',\n 'upline' => '5',\n ]);\n }",
"function submit_tofeeds(){\n\t\tforeach($this->feeds as $fid){\n\t\t\t$f = new Feed($fid);\n\t\t\t$u = new User($this->user_id);\n\t\t\tif($u->in_group($f->group_id)){\n\t\t\t\t$f->content_add($this->cid, 1, $u->id, $this->duration);\n\t\t\t} else {\n\t\t\t\t$f->content_add($this->cid, 'NULL', 'NULL', $this->duration);\n\t\t\t}\n\t\t}\n\t}",
"public function run()\n {\n foreach (Bar::all() as $bar) {\n \tforeach (Beer::all()->random(3) as $beer) {\n \t\t$beer->bars()->attach($bar->id);\n \t}\n }\n }",
"public function run()\n {\n \tforeach (Helpers::meals() as $meal) {\n \t\tMeal::create($meal);\n \t}\n }",
"public function run()\n {\n $campaignActivityEvents = [\n 'applied',\n 'submitted',\n 'declined',\n 'approved',\n 'closed',\n 'created',\n 'shipped',\n ];\n\n foreach ($campaignActivityEvents as $event) {\n CampaignActivityEvent::create(['name' => $event]);\n }\n }",
"public function run()\n {\n // attach first list to first item\n $firstItem = Item::find(1);\n $firstItem->lists()->attach(ListModel::where('id', 1)->first());\n\n // attach second list to second item\n $secondItem = Item::find(2);\n $secondItem->lists()->attach(ListModel::where('id', 2)->first());\n\n // attach third list to third item\n $thirdItem = Item::find(3);\n $thirdItem->lists()->attach(ListModel::where('id', 3)->first());\n }",
"public function dealer_creation(){\n $class = CONTENT_MODEL;\n $dealer_class = get_class($this);\n $model = new $class(\"live\");\n $url = $dealer_class::$dealer_section.Inflections::to_url($this->title).\"/\";\n if(($pages = $this->pages) && $pages->count() || $model->filter(\"permalink\", $url)->first()) return true;\n else{\n //find dealers section\n\n if($dealers = $model->filter(\"permalink\", $dealer_class::$dealer_section)->first()){\n $model = $model->clear();\n //create the first level of this dealer\n $dealer_data = array(\n 'title'=>$this->title,\n 'layout'=>'dealer',\n 'page_type'=>$dealer_class::$dealer_homepage_partial,\n 'content'=>$this->content,\n 'parent_id'=>$dealers->primval\n );\n //create the dealer skel\n if($saved = $model->update_attributes($dealer_data)){\n\n $saved = $saved->generate_permalink()->map_live()->children_move()->show()->save();\n $saved->dealers = $this;\n $this->pages = $saved;\n $subs = array();\n //copy the national main pages\n $i=0;\n foreach($dealer_class::$dealer_top_pages as $title=>$skel){\n $look = new $class(\"live\");\n if($found = $look->filter(\"permalink\", $skel)->first()){\n $info = $found->row;\n unset($info['id'], $info['permalink']);\n $info['parent_id'] = $saved->primval;\n $info['sort'] = $i;\n //custom names\n if(!is_numeric($title)) $info['title'] = $title;\n else $info['title'] = str_replace(\"Latest \", \"\", $info['title']);\n $info['dealer_content_id'] = $found->primval;\n $subs[] = $page = $look->update_attributes($info)->generate_permalink()->map_live()->children_move()->show()->save();\n\n //manytomany copy\n foreach($found->columns as $name=>$info) if($info[0] == \"ManyToManyField\") foreach($found->$name as $assoc) $page->$name = $assoc;\n\n $i++;\n }\n }\n foreach($dealer_class::$dealer_extra_pages as $info){\n $pg = new $class;\n $info['parent_id'] = $saved->primval;\n $info['date_start'] = date(\"Y-m-d\", strtotime(\"now-1 day\"));\n $info['sort'] = $i;\n $extras[] = $pg->update_attributes($info)->generate_permalink()->map_live()->children_move()->show()->save();\n $i++;\n }\n }\n\n }\n $class = get_class($this);\n WaxEvent::run($class.\".dealer_creation\", $this);\n }\n return array(\"subs\"=>$subs, \"extras\"=>$extras);\n }",
"public function run()\n {\n $lambo = $this->getLamboData();\n $dodge = $this->getDodgeData();\n $villa = $this->getVillaData();\n $basic = Adtype::find(1);\n $gold = Adtype::find(3);\n\n $this->createAd($gold, $lambo);\n $this->createAd($basic, $dodge);\n $this->createAd($gold, $villa);\n }",
"public function onRun()\n {\n $this->page['honActivities'] = $this->activities();\n }",
"public function run()\n {\n\n for ($i = 1; $i <= 3; $i++) {\n DeliverReq::create([\n 'deliver_id' => $i,\n 'card_info_id' => $i,\n 'stuts' => 0,\n // 'qr_code' => '',\n ]);\n }\n }",
"public function run()\n {\n Model::unguard();\n\n $favorites = [\n [\n 'admin_id' => '1',\n 'advertisement_id' => '1',\n ],\n [\n 'admin_id' => '2',\n 'advertisement_id' => '2',\n ],\n ];\n\n foreach ($favorites as $favorite){\n UserFavoriteAdvertisement::create([\n 'admin_id' => $favorite['admin_id'],\n 'advertisement_id' => $favorite['advertisement_id'],\n ]);\n }\n }",
"public function run()\n {\n Driver::factory(10)->create()->each(function ($driver) {\n $driver->bookings()->saveMany(Booking::factory(10)->create());\n });\n }",
"public function run() {\n $advertisings= factory(Advertising::class)->times(4)->make();\n Advertising::insert($advertisings->toArray());\n }",
"function adhere() {\n $this->data->adherence();\n }",
"public function queue_activities_for_update() {\n \n $this->jobQueue->addJob('tasks/activity_task/grabber');\n \n }",
"abstract public function attach();",
"public function run()\n {\n $items = [\n \n ['id' => 1, 'voornaam' => 'Eric', 'achternaam' => 'Laaper', 'email' => 'e.laaper@continuitas.nl', 'geslacht' => 'heer',],\n\n ];\n\n foreach ($items as $item) {\n \\App\\Relatiemanager::create($item);\n }\n }",
"public function run()\n {\n BrandCollectionAgent::create(['id_collection' => 3, 'id_agent' => 1, 'commission' => 2.5]);\n BrandCollectionAgent::create(['id_collection' => 3, 'id_agent' => 2, 'commission' => 2.5]);\n }",
"public function run()\n {\n foreach ($this->getRetailerData() as $name => $domain) {\n factory(Retailer::class)->create([\n 'name' => $name,\n 'domain' => $domain\n ]);\n }\n\n $this->brandService->createAllBrandRetailers();\n }",
"public function run()\n {\n AffiliateLink::factory(5)->create(['affiliate_id' => 1]);\n AffiliateLink::factory(5)->create(['affiliate_id' => 2]);\n AffiliateLink::factory(5)->create(['affiliate_id' => 3]);\n AffiliateLink::factory(5)->create(['affiliate_id' => 4]);\n }",
"public function onCreate()\n {\n Activity::insert(array(\n 'actor_id' => Auth::user()->id,\n 'trackable_type' => get_class($this),\n 'action' => \"created\",\n 'details' => $this->toJson(),\n 'trackable_id' => $this->id,\n 'created_at' => new DateTime(),\n 'updated_at' => new DateTime()\n ));\n }",
"public function run()\n {\n $faker = Faker\\Factory::create();\n $ads = App\\Advertisement::all()->modelKeys();\n $users = App\\User::all()->modelKeys();\n $user_count = count($users);\n\n for ($i=0; $i < count($ads); $i++) {\n \tfor ($j=0; $j < 3; $j++) { \n \t\t$ad_view = [\n\t\t \t'user_id' => $users[$faker->numberBetween(0, count($users) - 1)],\n\t\t 'advertisement_id' => $ads[$i]\n\t\t ];\n\n\t\t AdView::create($ad_view);\n \t}\n }\n }",
"public function run()\n {\n $activities = ['Sport','Clubs','Service','Jobs'];\n foreach ($activities as $activity)\n {\n DB::table('activities')->insert([\n 'name'=>$activity,\n 'created_at'=>Carbon::today(),\n 'updated_at'=>Carbon::today()\n ]);\n }\n }",
"public function run()\n {\n $users = \\App\\User::where('role_id', 3)->get();\n\n \\App\\Activity::all()->each(function ($activity) use ($users) {\n $users->random(rand(1, 2))->each(function ($user) use ($activity) {\n $employment = \\App\\Employment::create([\n 'activity_id' => $activity->id,\n 'user_id' => $user->id,\n ]);\n });\n });\n }",
"public function run()\n {\n /// NEW OFFERS\n $offers = ['Flash Sale', 'Featured', 'Top Rated', 'Popular'];\n foreach($offers as $offer) {\n $newOffer = Offer::create([\n 'offer_title' => $offer\n ]);\n\n $newOffer->save();\n }\n\n }",
"public function attach() { }"
] | [
"0.5970966",
"0.5678404",
"0.56085515",
"0.5569829",
"0.53626543",
"0.5311937",
"0.52206683",
"0.52156794",
"0.5203523",
"0.5181221",
"0.5128584",
"0.5097391",
"0.50964963",
"0.5068703",
"0.5056819",
"0.5053495",
"0.5044779",
"0.5043798",
"0.50389475",
"0.50279695",
"0.5002122",
"0.49858648",
"0.49757043",
"0.4973316",
"0.49610665",
"0.49609706",
"0.49420264",
"0.4904385",
"0.49036744",
"0.4903243"
] | 0.64092505 | 0 |
check if farmer is already assigned to scheme | private function check_farmer_scheme($request, $scheme)
{
//get all the group in scheme
$schemeGroup = $scheme->groups->toArray();
$scheme_group = array();
//geting all farmers in the scheme
$check ="";
$scheme_array = array();
$schemeArray = $scheme->farmers->toArray();
$check ="";
//geting only id's of farmers
foreach ($schemeArray as $value) {
array_push($scheme_array, $value['id']);
}
//getting only id's of group
foreach($schemeGroup as $value){
array_push($scheme_group, $value['id']);
}
//check if incoming farmer already exist in scheme
foreach ($request->input('box') as $value) {
if ( ! in_array($value, $scheme_array) && in_array($request->input('group'), $scheme_group)) {
$scheme->farmers()->attach($value);
$scheme->save();
//attaching farmer to group
$group = Group::find($request->input('group'));
$group->farmers()->attach($value);
$group->save();
//updating farmers assign colum
$farmer = Farmer::find($value);
$farmer->assign = 1;
$farmer->save();
//updating farmers group colum
$farmer->group = 1;
$farmer->save();
$check = true;
}else{
$check = false;
}
}
return $check;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private function checkExisting()\n\t{\n\t\tif ($this->armyModel->getArmyId())\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}",
"public function is_valid() {\n\t\t$options = Domainmap_Plugin::instance()->get_options();\n\t\treturn !isset( $options[self::RESELLER_ID]['valid'] ) || true == $options[self::RESELLER_ID]['valid'];\n\t}",
"private function check_dealer_scheme($request, $scheme)\n {\n $scheme_array = array();\n $schemeArray = $scheme->dealers->toArray();\n\n foreach ($schemeArray as $value) {\n\n //$scheme_activity[] = $value['id'];\n array_push($scheme_array, $value['id']);\n }\n foreach ($request->input('box') as $value) {\n\n if ( ! in_array($value, $scheme_array)) {\n \n //attach dealer\n $scheme->dealers()->attach($request->input('box'));\n $scheme->save();\n\n //updating farmers assign colum\n $dealer = Dealer::find($value);\n $dealer->assign = 1;\n $dealer->save();\n }\n }\n }",
"public function assign(Request $request)\n {\n \n //select scheme\n $scheme = Scheme::where('id',$request->input('scheme'))->first();\n if (count($request->input('box')) < 1) {\n Session::flash('warning','Failed! Select farmers to assign');\n return Redirect::back();\n }\n\n //check if group is selected\n if (!$request->input('group')) {\n Session::flash('warning','Failed! select group');\n return Redirect::back();\n }\n\n if ($scheme) {\n\n //checking if farmer has been assign to scheme already, if not attach farmer.\n //also checking if group exist in scheme\n $check = $this->check_farmer_scheme($request, $scheme);\n if (!$check) {\n Session::flash('warning','Failed! Group does not belong to scheme');\n return Redirect::back();\n }\n\n Session::flash('message','Successful! You have assaigned farmers to scheme');\n return Redirect::back();\n }\n Session::flash('warning','Failed! Unable to assaign farmers to scheme');\n return Redirect::back();\n }",
"static function resolveSchengenOrigin($origin) {\n\t\tif(strtolower($origin) == 'schengen') {\n\t\t\treturn true;\n\t\t}\n\t\tif(strtolower($origin) == 'nonschengen') {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn in_array(substr($origin, 0, 2), self::$schengen);\n\t}",
"public function valid()\n\t{\n\t\treturn isset(self::$season_changes[$this->index]);\n\t}",
"function check()\n\t{\n\t\t// setting alias\n\t\tif ( empty( $this->alias ) )\n\t\t{\n\t\t\t$this->alias = OutputFilter::stringURLSafe( $this->name );\n\t\t}\n\t\telse {\n\t\t\t$this->alias = OutputFilter::stringURLSafe( $this->alias ); // make sure the user didn't modify it to something illegal...\n\t\t}\n\t\t//should check name unicity\n\t\treturn true;\n\t}",
"public function is_random_merchandises_list_old()\n\t{\n\t\t$randomMerchandise = $this->random_merchandises()->first();\n\t\t\n\t\tif ( ! $randomMerchandise )\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\treturn $randomMerchandise->valid_until < time();\n\t}",
"public function isThereNeedToFill(): bool\n {\n return ! isset($this->fillInstance)\n || isset($this->fillInstance) && $this->fillInstance\n ;\n }",
"public function isFamily();",
"function is_org_set() {\n\treturn (isset($_SESSION['org_id'])); \n}",
"public function hasLocationAlready()\n {\n return !empty(Match::matchedTodayFor($this));\n }",
"public function hasDest(){\n return $this->_has(7);\n }",
"public function hasFamilyName(){\n return $this->_has(1);\n }",
"public function hasFamilyName(){\n return $this->_has(1);\n }",
"public function hasFamilyName(){\n return $this->_has(1);\n }",
"public function hasFamilyName(){\n return $this->_has(1);\n }",
"public function hasFamilyName(){\n return $this->_has(1);\n }",
"public function hasProvinceid(){\n return $this->_has(7);\n }",
"function checkDuplicateFuneralHomes($funeralName, $funeralId)\r\n {\r\n $duplicates = $this->_funeralHomeDB->countDuplicateFuneralNames($funeralName, $funeralId);\r\n $hasDuplicates = $duplicates > 0;\r\n return $hasDuplicates;\r\n }",
"public function hasLocation(){\n return $this->_has(2);\n }",
"public function valid()\n {\n return isset($this->sections[$this->cur]);\n }",
"function maybeLocated() {\n return true;\n }",
"public function isValidScheme($scheme);",
"function mac_discoverd_already($hyperv_discovery_mac) {\n\n\t\t$db=htvcenter_get_db_connection();\n\n\t\t$rs = $db->Execute(\"select hyperv_ad_id from $this->_db_table where hyperv_ad_mac='$hyperv_discovery_mac'\");\n\t\tif (!$rs)\n\t\t\t$this->event->log(\"mac_discoverd_already\", $_SERVER['REQUEST_TIME'], 2, \"hyperv-discovery.class.php\", $db->ErrorMsg(), \"\", \"\", 0, 0, 0);\n\t\telse\n\t\tif ($rs->EOF) {\n\t\t\t$resource = new resource();\n\t\t\t$resource->get_instance_by_mac($hyperv_discovery_mac);\n\t\t\tif ($resource->id > 0) {\n\t\t\t\treturn false;\n\t\t\t} else {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}",
"private function isDifferentScheme()\n {\n $siteurlScheme = parse_url(get_option('siteurl'), PHP_URL_SCHEME);\n $homeScheme = parse_url(get_option('home'), PHP_URL_SCHEME);\n\n return !($siteurlScheme === $homeScheme);\n }",
"function validoutdoor($outdoor)\n{\n global $f3;\n return in_array($outdoor, $f3->get('outdoors'));\n}",
"public function hasScenename(){\n return $this->_has(7);\n }",
"function checkReferer()\n\t{\n\t\t$affid = JRequest::getInt('ppd_affid', 0);\n\t\tif($affid)\n\t\t{\n\t\t\t$session = JFactory::getSession();\n\t\t\t$session->set(\"ppd_affid\", $affid);\n\t\t}\n\t}",
"protected function set_country(): bool {\n\t\t$country_code = strtoupper( $this->plato_project->get_country() );\n\t\t$country = siw_get_country( $country_code, Country::PLATO_CODE );\n\t\tif ( ! is_a( $country, Country::class ) ) {\n\t\t\tLogger::error( sprintf( 'Land met code %s niet gevonden', $country_code ), self::LOGGER_SOURCE );\n\t\t\treturn false;\n\t\t}\n\t\t$this->country = $country;\n\t\treturn true;\n\t}"
] | [
"0.5189132",
"0.5119572",
"0.5116852",
"0.51088",
"0.5094281",
"0.5021722",
"0.5008906",
"0.49867466",
"0.4932159",
"0.48815802",
"0.4878796",
"0.48478043",
"0.4785347",
"0.46975738",
"0.46975738",
"0.46975738",
"0.46975738",
"0.46975738",
"0.4684099",
"0.46710762",
"0.46437147",
"0.46386537",
"0.46365714",
"0.46336174",
"0.46310756",
"0.46170592",
"0.46167022",
"0.46143275",
"0.4603806",
"0.4603058"
] | 0.64033055 | 0 |
check if dealer is already assigned to scheme | private function check_dealer_scheme($request, $scheme)
{
$scheme_array = array();
$schemeArray = $scheme->dealers->toArray();
foreach ($schemeArray as $value) {
//$scheme_activity[] = $value['id'];
array_push($scheme_array, $value['id']);
}
foreach ($request->input('box') as $value) {
if ( ! in_array($value, $scheme_array)) {
//attach dealer
$scheme->dealers()->attach($request->input('box'));
$scheme->save();
//updating farmers assign colum
$dealer = Dealer::find($value);
$dealer->assign = 1;
$dealer->save();
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private function check_farmer_scheme($request, $scheme)\n {\n //get all the group in scheme\n $schemeGroup = $scheme->groups->toArray();\n $scheme_group = array();\n\n //geting all farmers in the scheme\n $check =\"\";\n $scheme_array = array();\n $schemeArray = $scheme->farmers->toArray();\n $check =\"\";\n\n //geting only id's of farmers\n foreach ($schemeArray as $value) {\n\n array_push($scheme_array, $value['id']);\n }\n\n //getting only id's of group \n foreach($schemeGroup as $value){\n\n array_push($scheme_group, $value['id']);\n }\n\n //check if incoming farmer already exist in scheme\n foreach ($request->input('box') as $value) {\n\n if ( ! in_array($value, $scheme_array) && in_array($request->input('group'), $scheme_group)) {\n $scheme->farmers()->attach($value);\n $scheme->save();\n\n //attaching farmer to group\n $group = Group::find($request->input('group'));\n $group->farmers()->attach($value);\n $group->save();\n\n //updating farmers assign colum\n $farmer = Farmer::find($value);\n $farmer->assign = 1;\n $farmer->save();\n\n //updating farmers group colum\n $farmer->group = 1;\n $farmer->save();\n\n $check = true;\n\n }else{\n $check = false;\n }\n }\n return $check;\n }",
"private function checkExisting()\n\t{\n\t\tif ($this->armyModel->getArmyId())\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}",
"public function assign(Request $request)\n {\n \n //select scheme\n $scheme = Scheme::where('id',$request->input('scheme'))->first();\n if (count($request->input('box')) < 1) {\n Session::flash('warning','Failed! Select farmers to assign');\n return Redirect::back();\n }\n\n //check if group is selected\n if (!$request->input('group')) {\n Session::flash('warning','Failed! select group');\n return Redirect::back();\n }\n\n if ($scheme) {\n\n //checking if farmer has been assign to scheme already, if not attach farmer.\n //also checking if group exist in scheme\n $check = $this->check_farmer_scheme($request, $scheme);\n if (!$check) {\n Session::flash('warning','Failed! Group does not belong to scheme');\n return Redirect::back();\n }\n\n Session::flash('message','Successful! You have assaigned farmers to scheme');\n return Redirect::back();\n }\n Session::flash('warning','Failed! Unable to assaign farmers to scheme');\n return Redirect::back();\n }",
"public function authorize()\n {\n return BilletAssignor::exists();\n }",
"public function isAlreadyExist()\n {\n $currencyPair = $this->findByPairsLetters();\n\n if ($currencyPair) {\n return true;\n }\n\n return false;\n }",
"public function hasBuyer()\n {\n return $this->Buyer !== null;\n }",
"public function hasMerchantCreationConflicted()\n {\n return $this->getFailedRegistration() == self::FAILED_REGISTRATION_STEP_MERCHANT_DUPLICATED;\n }",
"private function _canRegisterAnotherAssociation()\n {\n try\n {\n if (AssociationTable::doCount() === 0)\n {\n return true;\n }\n else\n {\n if (sfConfig::get('app_multi_association'))\n {\n return true;\n }\n\n return false;\n }\n }\n catch (Doctrine_Exception $e)\n {\n $this->redirect('@setup');\n }\n catch (Doctrine_Connection_Exception $e)\n {\n $this->redirect('@setup');\n }\n }",
"function checkReferer()\n\t{\n\t\t$affid = JRequest::getInt('ppd_affid', 0);\n\t\tif($affid)\n\t\t{\n\t\t\t$session = JFactory::getSession();\n\t\t\t$session->set(\"ppd_affid\", $affid);\n\t\t}\n\t}",
"private function hasPorter($list_, $porter_): bool {\n foreach ($list_ as $comparer) {\n if ($comparer->getId() === $porter_->getId())\n return true;\n }\n\n return false;\n }",
"public function existRuleName()\n {\n $rule = Yii::$app->authManager->getRule($this->name);\n if (!empty($rule) && $this->getIsNewRecord()) {\n $this->addError('name', \"This name has already been taken.\");\n }\n }",
"public function hasSeller()\n {\n return $this->Seller !== null;\n }",
"public function is_valid() {\n\t\t$options = Domainmap_Plugin::instance()->get_options();\n\t\treturn !isset( $options[self::RESELLER_ID]['valid'] ) || true == $options[self::RESELLER_ID]['valid'];\n\t}",
"private function checkOwnerExistence()\n {\n $this->owner = Show::find($this->getOwnerId());\n if (empty($this->owner)) {\n abort(404);\n }\n }",
"public function isThereNeedToFill(): bool\n {\n return ! isset($this->fillInstance)\n || isset($this->fillInstance) && $this->fillInstance\n ;\n }",
"public function hasIssuerUID(): bool\n {\n return isset($this->issuerUID);\n }",
"protected function checkOwnerExistence()\n {\n $this->owner = Review::find($this->getOwnerId());\n if (empty($this->owner)) {\n abort(404);\n }\n }",
"function jetpack_mailchimp_verify_connection() {\n\t$option = get_option( 'jetpack_mailchimp' );\n\tif ( ! $option ) {\n\t\treturn false;\n\t}\n\t$data = json_decode( $option, true );\n\tif ( ! $data ) {\n\t\treturn false;\n\t}\n\treturn isset( $data['follower_list_id'], $data['keyring_id'] );\n}",
"function isAssignedStoreSingleAssignmentMethod() {\n\t\t\treturn ($this->getSingleAssignmentMethodCode( ) == 'assigned_store' ? true : false);\n\t\t}",
"public function isAttemptOnce();",
"public function isAssignedToDevice()\n\t{\n\t\t$device_id = $this->getDeviceId();\n\t\treturn isset($device_id);\n\t}",
"function checkID()\n\t{\n\t\t$ids = $this->getCronIDs();\n\t\treturn in_array($this->_id, $ids);\n\t}",
"protected function hasPorter($list_, $porter_): bool {\n foreach ($list_ as $comparer) {\n if ($comparer->getId() === $porter_->getId())\n return true;\n }\n\n return false;\n }",
"public function testIsReceivingManagerWhenSeenLocally()\n {\n $this->assertTrue($this->DonCard->isRecievingManager($this->localSupervisor),\n 'A foreign sup delegated to this manager but the manager\\'s ' .\n 'owner doesn\\'t flag the card as a ReceivingManger');\n }",
"function mac_discoverd_already($hyperv_discovery_mac) {\n\n\t\t$db=htvcenter_get_db_connection();\n\n\t\t$rs = $db->Execute(\"select hyperv_ad_id from $this->_db_table where hyperv_ad_mac='$hyperv_discovery_mac'\");\n\t\tif (!$rs)\n\t\t\t$this->event->log(\"mac_discoverd_already\", $_SERVER['REQUEST_TIME'], 2, \"hyperv-discovery.class.php\", $db->ErrorMsg(), \"\", \"\", 0, 0, 0);\n\t\telse\n\t\tif ($rs->EOF) {\n\t\t\t$resource = new resource();\n\t\t\t$resource->get_instance_by_mac($hyperv_discovery_mac);\n\t\t\tif ($resource->id > 0) {\n\t\t\t\treturn false;\n\t\t\t} else {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}",
"function check()\n\t{\n\t\t// setting alias\n\t\tif ( empty( $this->alias ) )\n\t\t{\n\t\t\t$this->alias = OutputFilter::stringURLSafe( $this->name );\n\t\t}\n\t\telse {\n\t\t\t$this->alias = OutputFilter::stringURLSafe( $this->alias ); // make sure the user didn't modify it to something illegal...\n\t\t}\n\t\t//should check name unicity\n\t\treturn true;\n\t}",
"public function checkId()\n {\n if (!$this->config->getEnable()) {\n return true;\n }\n if(!$this->getPaymentResource()->checkSeller($this->config->getId()))\n {\n $this->config->addError(new IdException());\n }\n }",
"public function checkTrainerAssigned(){\r\n\t\t\t$objDBConn = DBManager::getInstance();\r\n\t\t\tif($objDBConn->dbConnect()){\r\n\t\t\t\t$qry = \"select t.firstname, t.lastname, tu.assigned from trainer t, trainer_user tu where t.trainerid=tu.trainerid and tu.userid=\".$_SESSION['user'][0].\";\";\r\n\t\t\t\t//echo $qry;\r\n\t\t\t\t$result = mysql_query($qry);\r\n\t\t\t\t$row = mysql_fetch_array($result);\r\n\t\t\t\t//echo $row['assigned'];\r\n\t\t\t\tif($row['assigned']==1){\r\n\t\t\t\t\t// Means the trainer is assinged\r\n\t\t\t\t\t//$_SESSION['edittrainer'] is a variable to change the existing trainer name.\r\n\t\t\t\t\t$_SESSION['edittrainer'] = $row;\r\n\t\t\t\t\t//echo $_SESSION['edittrainer'];\r\n\t\t\t\t\t$objDBConn->dbClose();\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}else{\r\n\t\t\t\t\t//Means trainer is not yet assigned.\r\n\t\t\t\t\t$objDBConn->dbClose();\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}",
"public function isTransferred()\n {\n return $this->getTransferredtobooking()\n && $this->getTransferredtobooking()->getId();\n }",
"function is_org_set() {\n\treturn (isset($_SESSION['org_id'])); \n}"
] | [
"0.58678156",
"0.5707593",
"0.5449816",
"0.54080784",
"0.5308854",
"0.52872163",
"0.52181476",
"0.5214481",
"0.51636845",
"0.51219475",
"0.5047247",
"0.50267315",
"0.50213706",
"0.50178266",
"0.5013807",
"0.50042474",
"0.50015503",
"0.49848178",
"0.49640396",
"0.4958182",
"0.49539647",
"0.49429822",
"0.49364194",
"0.4924304",
"0.49242973",
"0.48839435",
"0.48768115",
"0.48766282",
"0.4875834",
"0.48690528"
] | 0.64175516 | 0 |
Change to the user scope of the token | public function useTokenScope(): void; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function on_set_current_user(): void {\n\t\t$this->get_client()->configureScope( function ( Scope $scope ) {\n\t\t\t$scope->setUser( $this->get_current_user_info() );\n\t\t} );\n\t}",
"protected function updateAuthorisationParams()\n {\n $this->authorisationParams['scope'] = 'user:email';\n }",
"public function refresh_token(){\n\t\t$this->server->addGrantType(new OAuth2\\GrantType\\RefreshToken($this->storage, array(\n\t\t\t\"always_issue_new_refresh_token\" => true,\n\t\t\t\"unset_refresh_token_after_use\" => true,\n\t\t\t\"refresh_token_lifetime\" => 2419200,\n\t\t)));\n\t\t$this->server->handleTokenRequest($this->request)->send();\n\t}",
"public function setScope($scope);",
"public function setAuthScope($scope)\n {\n $this->auth->setScope($scope);\n }",
"public function setAccessToken($token);",
"public function setAccessToken($token);",
"public function getScope()\n {\n return $this->grantedScope;\n }",
"public function setAccessToken() {\n\t\tif(!isset($_SERVER[\"HTTP_AUTHORIZATION\"]) || stripos($_SERVER[\"HTTP_AUTHORIZATION\"],\"Bearer \")!==0) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t$this->accessToken = trim(substr($_SERVER[\"HTTP_AUTHORIZATION\"],7));\n\t}",
"protected function _update_token() {\n }",
"private function getAuthorizationFirst()\n {\n return $this->socialite->driver('github')->scopes(['user', 'gist'])->redirect();\n }",
"abstract protected function setAccessToken($oauth_token, $client_id, $expires, $scope = NULL);",
"public function refreshToken(): void\n {\n $rest = new RestClient($this->endpoint, $this->clientkey);\n $results = $rest->oauth2Principal();\n $this->access_token = $results->access_token;\n $this->expires_in = $results->expires_in;\n $this->token_type = $results->token_type;\n }",
"protected function setToken($token, $client_id, $user_id, $expires, $scope, $isRefresh = TRUE) {\n\n\t\t\t$tableName = $isRefresh ? self::TABLE_REFRESH : self::TABLE_TOKENS;\n\t\t\t//表中为auth_token字段,这里写成了token,注意这里refresh表无法更新了,因为它的字段是refresh_token。增加一行\n\t\t\t$tokenName = $isRefresh ? 'refresh_token' : 'oauth_token';\n\t\t\t$sql = \"INSERT INTO `\". s($tableName).\"`(`$tokenName`, `client_id`, `user_id`, `expires`, `scope`) VALUES(?s, ?s, ?i, ?i, ?s)\";\n\t\t\t$array = Array($token, $client_id, $user_id, $expires, $scope, $isRefresh);\n\t\t\t$stmt = prepare($sql, $array);\n\n\t\t\trun_sql($stmt);\n\t\t\tif ( mysql_errno() != 0 ) $this->handleException( LR_OAUTH_SET_TOKEN_ERROR , mysql_error() );\n\t}",
"public function renewAuthorization();",
"public function onUserChange()\n {\n App::option()->set(self::REFRESH_TOKEN, time(), true);\n }",
"function authorizeRequestToken()\n {\n $scopes = array(\n 'https://docs.google.com/feeds/',\n );\n\n $consumer = new GdataOauthClient();\n \n $_SESSION['GOOGLEDOCS_REQUEST_TOKEN'] = serialize($consumer->fetchRequestToken(\n implode(' ', $scopes), common_local_url('googledocsauthorization').'?do=access_token'));\n $auth_link = $consumer->getRedirectUrl();\n \n common_redirect($auth_link);\n \n // @fixme handle for exception\n }",
"public function refreshToken();",
"public static function setUserToken($token)\n {\n Channels::includeSystem('Session');\n Channels::includeSystem('User');\n\n $userid = User::getCurrentUserid();\n $userToken = Session::setSessionData('API', 'userToken:'.$userid, $token);\n\n }",
"public function setAccessToken($token){\n $_SESSION['homeCreditAccessToken'] = $token;\n }",
"function setToken($token) {\n\t\t$_SESSION['token'] = $token;\n\t}",
"public function setToken($token);",
"public function updateToken()\n {\n $token = \\Request::get('token');\n $data['result'] = [];\n if (!empty($token)) {\n $this->usersRep->setOrUpdateToken($token);\n $data['result'] = \"Токен обновлён\";\n } else {\n return \\Redirect::route('setting');\n }\n return \\Redirect::route('setting')->with($data);\n }",
"public function getAuthScope()\n {\n return $this->auth->getScope();\n }",
"protected function setToken($token, $clientId, $userId, $expires, $scope, $isRefresh = true)\n {\n try {\n $tableName = $isRefresh ? self::TABLE_REFRESH : self::TABLE_TOKENS;\n\n $sql = \"INSERT INTO $tableName (oauth_token, client_id, user_id, expires, scope)\n VALUES (:token, :client_id, :user_id, :expires, :scope)\";\n $stmt = $this->db->prepare($sql);\n $stmt->bindParam(':token', $token, PDO::PARAM_STR);\n $stmt->bindParam(':client_id', $clientId, PDO::PARAM_STR);\n $stmt->bindParam(':user_id', $userId, PDO::PARAM_STR);\n $stmt->bindParam(':expires', $expires, PDO::PARAM_INT);\n $stmt->bindParam(':scope', $scope, PDO::PARAM_STR);\n\n $stmt->execute();\n } catch (PDOException $e) {\n $this->handleException($e);\n }\n }",
"public function scopeUser($query)\n {\n return $query->role('user');\n }",
"public function setScope($scope): self\n {\n if (blank($scope)) {\n $scope = 'https://graph.microsoft.com/.default';\n }\n\n if ($scope == 'https://graph.microsoft.com/.default') {\n $this->scope = $scope;\n\n return $this;\n }\n\n if (Str::startsWith($scope, 'api://') && Str::endsWith($scope, '/.default')) {\n $this->scope = $scope;\n\n return $this;\n }\n\n $this->scope = \"api://{$scope}/.default\";\n\n return $this;\n }",
"public function saveToken($user, $token);",
"public function getAllowedScopes();",
"function doRefreshAccessToken($infusionsoft, $userId, $appName, $token) {\n\t$token=getInfusionsoftTokenFromDb($userId);\n\t$infusionsoft->setToken($token);\n\t$token=$infusionsoft->refreshAccessToken();\n\tupdateDbWithInfusionsoftToken($userId, $token);\n\treturn $token;\n}"
] | [
"0.62258124",
"0.60121894",
"0.58445776",
"0.57725286",
"0.56620675",
"0.5615443",
"0.5615443",
"0.5573369",
"0.5566786",
"0.5526815",
"0.54896665",
"0.5489589",
"0.5483087",
"0.54684365",
"0.5452705",
"0.544214",
"0.54382396",
"0.543801",
"0.54088604",
"0.54042995",
"0.5401144",
"0.5399972",
"0.5389922",
"0.5379245",
"0.5377865",
"0.5366056",
"0.53518206",
"0.53407574",
"0.53328574",
"0.53113854"
] | 0.6365628 | 0 |
solve this method that says if the sentence is palindrome or not | function is_palindrome($input) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function Palindrome($test){\n if(strrev($test) == $test){\n // RESULT AFTER CHECKING IF THE INPUTED IF IT WAS A PALINDROME\n echo $test . ' is a palindrome';\n }else{\n\n echo $test. 'is not a palindrome';\n }\n}",
"function isPalindrome($word)\n{\n $WORD = strrev($word);\n $i = 0;\n $len = strlen($word);\n\n while ($i <= $len)\n {\n if ($word[$i] !== $WORD[$i])\n { return false;\n }\n $i = $i + 1;\n }\n\n return true;\n}",
"function check_palindrome($string) \r\n{ \r\n if ($string == strrev($string)) \r\n return 1; \r\n else \r\n return 0; \r\n}",
"public function checkPalindromeW2()\n {\n $array = str_split($this->wordToCheck);\n $len = sizeof($array);\n $newString = \"\";\n\n for ($i = $len; $i >= 0; $i--) {\n $newString.=$array[$i];\n }\n if ($this->wordToCheck == $newString) {\n return \"Output w2: \" . $this->wordToCheck . \" is a palindrome\\n\";\n }\n return \"Output w2: \" . $this->wordToCheck . \" is not a palindrome\\n\";\n }",
"private function isPalindrome($input){\n\n $inputString = $input['palindrome'];\n\n /*// Way 1\n $len = strlen($inputString);\n $middle = round($len/2);\n $substr1 = substr($inputString,0,($middle-1));\n $substr2 = substr($inputString, ($middle),$len);\n return ($substr1 == strrev($substr2)) ? true : false;*/\n\n /*// Way 2\n $reversed = strrev($inputString);\n return ($inputString == $reversed) ? true : false;*/\n\n /*// Way 3\n $reversed='';\n for($t=(strlen($inputString)-1); $t>=0; $t--){\n $reversed.=substr($inputString,$t,1);\n }\n return ($inputString == $reversed) ? true : false;*/\n\n // Way 4\n $strToArray = str_split($inputString);\n $len = sizeof($strToArray);\n $reversed = array();\n for ($i=($len-1); $i>=0; $i--) {\n $reversed[]=$strToArray[$i];\n }\n $reversed = implode('', $reversed);\n return ($inputString == $reversed) ? true : false;\n\n }",
"function is_palindrome($word) {\n\t$word = preg_replace(\"/[^a-z]/\", '', strtolower($word));\n\t$reverse = strrev($word);\n\tif ($word == $reverse) {\n\t\treturn TRUE;\n\t} else {\n\t\treturn FALSE;\n\t}\n}",
"function checkPalindrome($inputString) {\n return strrev($inputString) === $inputString;\n}",
"public function checkPalindromeW1()\n {\n $word = str_replace(' ', '', $this->wordToCheck);\n $word = strrev($word);\n\n if ($word == $this->wordToCheck) {\n return \"Output w1: \" . $this->wordToCheck . \" is a palindrome\\n\";\n }\n return \"Output w1: \" . $this->wordToCheck . \" is not a palindrome\\n\";\n }",
"function isPalindromic($x) {\n return $x == strrev($x);\n}",
"function is_palindrome($string) {\n\n\t$chars = str_split($string);\n\t$count = round((strlen($string) / 2), 0, PHP_ROUND_HALF_DOWN);\n\t\n\tfor($i = 0; $i < $count; $i++) {\n\t\tif($chars[$i] !== $chars[(count($chars) - $i) - 1]) {\n\t\t\treturn false;\n\t\t}\n\t}\n\treturn true;\n}",
"function palindrome_angka($angka) {\n }",
"public function isPalindrome(string $text): bool\n {\n if ($text === '') {\n return false;\n }\n\n $numberOfCharacters = strlen($text);\n $stopCondition = floor($numberOfCharacters / 2);\n for ($i = 0; $i < $stopCondition; ++$i) {\n if ($text[$i] !== $text[$numberOfCharacters - 1 - $i]) {\n return false;\n }\n }\n\n return true;\n }",
"function check_palindrome($string) {\r\n $string = str_replace(' ', '', $string);\r\n\r\n //removing special characters from given string\r\n $string = preg_replace('/[^A-Za-z0-9\\-]/', '', $string);\r\n\r\n //changing string to lower case\r\n $string = strtolower($string);\r\n\r\n //Reversing the string\r\n $reverse = strrev($string);\r\n\r\n //Check if reversed string is same as input string\r\n if ($string == $reverse) {\r\n echo \"<br>Input:\".$string.\" <p>Input string is Palindrome</p>\";\r\n }\r\n else {\r\n echo \"<br>\".$string.\" <p>Input string is not a Palindrome</p>\";\r\n }\r\n}",
"function checkIfPalindrome($palInput) {\n\t\t\t$palInput = strtolower(preg_replace('/\\s/','', $palInput)); \n\t\t\t\n\t\t\t//strip out apostrophes that were converted to ''' during data sanitization process \n\t\t\t$palInput = str_replace(\"'\",\"\",$palInput); //necessary to check palindromic sentences like, \"Madam I'm Adam\"\n\t\t\t\n\t\t\t//if $palInput contains chars other than letters or numbers, strip them out using a regex.\n\t\t\t$palInput = preg_replace( '/[^0-9a-z]+/i','', $palInput);\n\t\t\t\n\t\t\t//reverse $palInput, e.g., abc becomes cba\n\t\t\t//this is the core of the function. if the two strings match, then it's a palindrome. \n\t\t\t//this means that nonsense text could also be a palindrome, e.g., ChrissirhC - I'm not taking that into account\n\t\t\t$palInputReversed = strrev($palInput);\n\n\t\t\tif ($palInputReversed == $palInput) {\n\t\t\t\treturn true; //we have a palindrome\n\t\t\t} else {\n\t\t\t\treturn false;\n\t\t\t}\n }",
"public static function is_Palindrome($str)\n {\n $str = $str.\"\";\n $str2 = \"\";\n for($x=(strlen($str)-1);$x>=0;$x--)\n {\n $str2 = $str2.$str[$x];\n }\n \n //comparing two strings excluding case\n if(strcasecmp($str,$str2)==0)\n {\n return true;\n }\n else\n {\n return false;\n }\n }",
"function process($str){\r\n\tprint \"<p>Inputed: \";\r\n\techo $str;\r\n\tprint \"</p>\";\r\n\tprint \"<p>Palindrome is \";\r\n\t$str = str_replace(\" \",\"\",$str);\r\n $palindrome = $str[0];\r\n $i = 1;\r\n $L = 0;\r\n $R = 2;\r\n while($R<strlen($str)){\r\n if($L>-1 && strcasecmp($str[$L],$str[$R])==0){\r\n if(strlen($palindrome)<strlen(substr($str,$L,$R-$L+1)))\r\n $palindrome = substr($str,$L,$R-$L+1);\r\n $L--; #moving to the begin of word\r\n $R++; #moving to the end of word\r\n \r\n }\r\n else if(strcasecmp($str[$i],$str[$R])==0)\r\n $L = $i;\r\n else if(strcasecmp($str[$i],$str[$L])==0)\r\n $R = $i;\r\n else{\r\n $i = $R;\r\n $L = $i - 1;\r\n $R++;\r\n }\r\n \r\n }\r\n echo $palindrome;\r\n\tprint \"</p>\";\r\n}",
"function isPalindrome($x)\n{\n if ($x < 0) {\n return false;\n }\n if ($x == 0) {\n return true;\n }\n $x = strval($x);\n $len = strlen($x) - 1;\n if ($x[$len] == 0) {\n return false;\n }\n for ($i = 0; $i <= $len; $i++) {\n if ($x[$i] != $x[$len - $i]) {\n return false;\n }\n }\n return true;\n}",
"function palindrom($palindrom)\n{\n $palindrom = strtolower($palindrom);\n $palindromChecker ='';\n\n for ($i = strlen($palindrom)-1; $i >= 0; $i--)\n {\n $palindromChecker .= $palindrom[$i];\n\n }\n\n if($palindrom === $palindromChecker)\n {\n echo \"słowo <b>$palindrom</b> jest palindromem\";\n }\n else\n {\n echo \"słowo <b>$palindrom</b> nie jest palindromem, jest nim np kajak\";\n }\n\n return $palindromChecker;\n}",
"public static function isPalindrome($string)\n {\n $string = preg_replace(\"/[^A-Za-z0-9 ]/\", '', $string);\n\n $string = strtolower( str_replace(' ', '', $string) );\n\n return ($string == strrev($string));\n }",
"function palindrome_angka($angka) {\r\n\t$cek = false;\r\n\twhile (!$cek) {\r\n\t\t$angka++;\r\n\t\t$word = strval($angka);\r\n\t\tif (palindrome($word)) {\r\n\t\t\techo \"$angka <br>\";\r\n\t\t\t$cek = true;\r\n\t\t\t//return $angka;\r\n\t\t}\r\n\t}\r\n\r\n}",
"function Palindrome($string){ \r\n // Base codition to end the recursive process \r\n if ((strlen($string) == 1) || (strlen($string) == 0)){ \r\n echo \"Palindrome\"; \r\n }else{ \r\n // First character is compared with the last one \r\n if (substr($string,0,1) == substr($string,(strlen($string) - 1),1)){ \r\n \r\n // Checked letters are discarded and passed for next call \r\n return Palindrome(substr($string,1,strlen($string) -2)); \r\n }else{ \r\n echo \" Not a Palindrome\"; } \r\n } \r\n}",
"public function generatePalindrome()\n {\n return $this->str . self::utf8_strrev($this->str);\n }",
"public function testPalindromeFalse()\n {\n $datas = array(\n 'name' => 'gnamien',\n );\n\n $this->assertNotEquals('{\"response\":true}',\n $this->apiCheck('palindrome', $datas));\n\n }",
"function palindromeRearranging($inputString) {\n foreach(count_chars($inputString,1) as $cnt)\n if($cnt%2!=0) $odd++;\n \n return $odd<=1;\n}",
"function palindromeRearranging(string $inputString): bool\n{\n return array_sum(array_map(function ($value) {\n return $value % 2;\n }, array_count_values(str_split($inputString)))) < 2;\n}",
"function checkPalindrom($inputelements)\n {\n for ($x = 0; $x < count($inputelements) / 2; $x++) {\n $frondcharacter = $inputelements[$x];\n $endcharacter = $inputelements[strlen($inputelements) - 1];\n if($frondcharacter !== $endcharacter){\n return false;\n }\n }\n\n return true;\n }",
"private function isPalindrome($number){\n $items = str_split((string) $number); // convert number to array of digits\n $arraySize = count($items);\n $upperBound = floor(((int)$arraySize)/2);\n for ($i = 0; $i <= $upperBound; $i++){\n if($items[$i] !== $items[$arraySize - $i - 1]){\n return false;\n }\n }\n return true;\n }",
"function palindrome_angka($angka) {\n $result = '';\n $strangka = strval($angka);\n $revesedstring = '';\n for($a = strlen($strangka) - 1; $a >= 0; $a--){\n $revesedstring .= $strangka[$a];\n }\n if ($revesedstring == $angka){\n $angka += 1;\n }\n while(true){\n $strangka = strval($angka);\n $revesedstring = '';\n for($a = strlen($strangka) - 1;$a >= 0; $a--){\n $revesedstring .= $strangka[$a];\n }\n if ($revesedstring == $angka){\n global $result;\n $result = $strangka .'<br>';\n return $result;\n } else {\n $angka += 1;\n }\n ;\n }\n ;\n}",
"function palindromeRearranging($inputString) {\n $arr = str_split($inputString);\n $count = count($arr);\n $assocArr = [];\n foreach($arr as $key => $value) {\n $assocArr[$value]++;\n }\n\n $itemsWithOne = 0;\n $itemsWithThree = 0;\n foreach($assocArr as $item) {\n if($item === 1) {\n $itemsWithOne++;\n } else if($item === 3) {\n $itemsWithThree++;\n }\n }\n if(($itemsWithOne > 1) || ($itemsWithOne === 1 && $count % 2 === 0) || ($itemsWithThree > 1) || ($itemsWithThree === 1 && $count % 2 === 0)) {\n return false;\n }\n \n return true;\n}",
"function isPalindrome($text, $algorithm = 'a')\n{\n if ($algorithm === 'a') return algorithmA($text);\n if ($algorithm === 'b') return algorithmB($text);\n}"
] | [
"0.77151084",
"0.7553654",
"0.7543105",
"0.7475785",
"0.7400077",
"0.7374197",
"0.7356705",
"0.73364836",
"0.73169804",
"0.73025936",
"0.72330314",
"0.7117231",
"0.70897496",
"0.7074471",
"0.7014932",
"0.6913168",
"0.687088",
"0.66904306",
"0.6639704",
"0.660265",
"0.65729654",
"0.65118366",
"0.6461502",
"0.6428264",
"0.62865025",
"0.6278202",
"0.6185812",
"0.6086153",
"0.6075143",
"0.6063413"
] | 0.7634715 | 1 |
Returns a Filesystem object. | public static function getFs()
{
// Return existing instance if available
if (null !== self::$fs) {
return self::$fs;
}
// Create and return a new instance
return self::$fs = new Filesystem();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getFilesystem(): FilesystemInterface\n {\n return $this->filesystem;\n }",
"function filesystem() : Filesystem\n {\n return Dan::filesystem();\n }",
"public function getFilesystem()\n {\n return new \\Symfony\\Component\\Filesystem\\Filesystem();\n }",
"public function getDisk(): Filesystem;",
"public function getFilesystem()\n {\n return $this->filesystem;\n }",
"function filesystem()\n {\n return dan('filesystem');\n }",
"public function getFileSystem();",
"public function getFilesystemManager();",
"public static function getFilesystem()\n {\n /** @var \\Illuminate\\Cache\\FileStore $instance */\n return $instance->getFilesystem();\n }",
"public function getFilesystem( $resource );",
"protected function getFilesystemService()\n {\n return $this->services['filesystem'] = new \\Symfony\\Component\\Filesystem\\Filesystem();\n }",
"protected function getFilesystemService()\n {\n return $this->services['filesystem'] = new \\Symfony\\Component\\Filesystem\\Filesystem();\n }",
"public function getFilesystem()\n {\n return $this->files;\n }",
"public function getFilesystem()\n {\n return $this->files;\n }",
"public function getFilesystem()\n {\n return $this->files;\n }",
"public function getFilesystem()\n {\n return $this->files;\n }",
"public function getFilesystem()\n {\n return $this->files;\n }",
"public static function getFilesystem()\n {\n return \\Cache::getFilesystem();\n }",
"public function getDriver(): FilesystemInterface\n {\n return $this->driver;\n }",
"public function setLocalAdapter()\n {\n return new Filesystem(new Local('./'));\n }",
"public function fileSystem()\n {\n return $this->fileSystem;\n }",
"protected function getSonata_Media_Filesystem_LocalService()\n {\n return $this->privates['sonata.media.filesystem.local'] = new \\Gaufrette\\Filesystem(new \\Sonata\\MediaBundle\\Filesystem\\Local(($this->targetDirs[3].'/public/uploads/media'), false));\n }",
"protected function getSonata_Media_Filesystem_LocalService()\n {\n return $this->services['sonata.media.filesystem.local'] = new \\Gaufrette\\Filesystem(${($_ = isset($this->services['sonata.media.adapter.filesystem.local']) ? $this->services['sonata.media.adapter.filesystem.local'] : $this->get('sonata.media.adapter.filesystem.local')) && false ?: '_'});\n }",
"public function getVfs()\n {\n return $this->vfs;\n }",
"public function getStorage(): Filesystem|null\n {\n if (!$this->hasStorage()) {\n $this->setStorage($this->getDefaultStorage());\n }\n return $this->storage;\n }",
"public function getAdapter(): FilesystemAdapterInterface\n {\n return $this->adapter;\n }",
"function WP_Filesystem( $args = false, $context = false ) {\n\tglobal $wp_filesystem;\n\n\trequire_once(ABSPATH . 'wp-admin/includes/class-wp-filesystem-base.php');\n\n\t$method = get_filesystem_method($args, $context);\n\n\tif ( ! $method )\n\t\treturn false;\n\n\tif ( ! class_exists(\"WP_Filesystem_$method\") ) {\n\n\t\t/**\n\t\t * Filter the path for a specific filesystem method class file.\n\t\t *\n\t\t * @since 2.6.0\n\t\t *\n\t\t * @see get_filesystem_method()\n\t\t *\n\t\t * @param string $path Path to the specific filesystem method class file.\n\t\t * @param string $method The filesystem method to use.\n\t\t */\n\t\t$abstraction_file = apply_filters( 'filesystem_method_file', ABSPATH . 'wp-admin/includes/class-wp-filesystem-' . $method . '.php', $method );\n\n\t\tif ( ! file_exists($abstraction_file) )\n\t\t\treturn;\n\n\t\trequire_once($abstraction_file);\n\t}\n\t$method = \"WP_Filesystem_$method\";\n\n\t$wp_filesystem = new $method($args);\n\n\t//Define the timeouts for the connections. Only available after the construct is called to allow for per-transport overriding of the default.\n\tif ( ! defined('FS_CONNECT_TIMEOUT') )\n\t\tdefine('FS_CONNECT_TIMEOUT', 30);\n\tif ( ! defined('FS_TIMEOUT') )\n\t\tdefine('FS_TIMEOUT', 30);\n\n\tif ( is_wp_error($wp_filesystem->errors) && $wp_filesystem->errors->get_error_code() )\n\t\treturn false;\n\n\tif ( !$wp_filesystem->connect() )\n\t\treturn false; //There was an error connecting to the server.\n\n\t// Set the permission constants if not already set.\n\tif ( ! defined('FS_CHMOD_DIR') )\n\t\tdefine('FS_CHMOD_DIR', ( fileperms( ABSPATH ) & 0777 | 0755 ) );\n\tif ( ! defined('FS_CHMOD_FILE') )\n\t\tdefine('FS_CHMOD_FILE', ( fileperms( ABSPATH . 'index.php' ) & 0777 | 0644 ) );\n\n\treturn true;\n}",
"function ast_block_templates_get_filesystem() {\n\t\tglobal $wp_filesystem;\n\n\t\trequire_once ABSPATH . '/wp-admin/includes/file.php';\n\n\t\tWP_Filesystem();\n\n\t\treturn $wp_filesystem;\n\t}",
"protected function get_file()\n {\n return new File( $this->get_file_data() );\n }",
"public static function getInstance() {\n if (self::$theInstance == NULL) {\n self::setInstance(new DefaultFileStorage());\n }\n return self::$theInstance;\n }"
] | [
"0.82324976",
"0.8198041",
"0.81872183",
"0.7869394",
"0.7827837",
"0.7649727",
"0.7558621",
"0.7553305",
"0.7547137",
"0.7382133",
"0.73604316",
"0.73604316",
"0.7254288",
"0.7254288",
"0.7254288",
"0.7254288",
"0.7254288",
"0.7253114",
"0.711396",
"0.69045717",
"0.6886066",
"0.68558824",
"0.67522645",
"0.6611571",
"0.6540217",
"0.64392394",
"0.64392376",
"0.6436998",
"0.63911927",
"0.62706983"
] | 0.8253929 | 0 |
Gets the initial status's ID | public function getInitialStatusId()
{
return $this->_initialStatusId;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getStatusId()\n {\n return $this->__get(\"status_id\");\n }",
"public function getStatusId();",
"public function getNewStatusId() {\n $db_status = new DbMessageboardStatus();\n return $db_status->getNewStatusId();\n }",
"public function getIdStatus()\n\t{\n\t\treturn $this->id_status;\n\t}",
"public function getId_status()\n {\n return $this->id_status;\n }",
"public function getStatusId()\n {\n if (!$this->owner->hasAttribute($this->statusAttribute)) {\n throw new CException('Failed to get status id. Status attribute does not exist.');\n }\n return $this->owner->{$this->statusAttribute};\n }",
"private function getDefaultStatus()\n {\n if ($this->defaultStatus === null) {\n $statusIdent = 'received';\n $this->defaultStatus = Status::where('ident', $statusIdent)->first();\n }\n\n return $this->defaultStatus;\n }",
"public function getCurrentId() {\n return !empty($this->arCurrent['id']) ? $this->arCurrent['id'] : 0;\n }",
"public function getNewPrimaryStatus()\n\t{\n\t\treturn $this->new_primary_status;\n\t}",
"function bbp_get_orphan_status_id()\n{\n}",
"private function Get_Un_Synced_Status()\n\t{\n\t\tif(!isset($this->un_synced_status))\n\t\t{\n\t\t\t$this->Get_Synced_Status();\n\t\t}\n\n\t\treturn $this->un_synced_id;\n\t}",
"public function getPlayerStatusId() {\n\t\treturn $this->_player_status;\n\t}",
"public function getCurrentId()\n {\n return $this->id;\n }",
"public function getPrimaryStatus()\n\t{\n\t\treturn $this->primary_status;\n\t}",
"public function getDefaultId() {\n return !empty($this->arDefault['id']) ? $this->arDefault['id'] : 0;\n }",
"function bbp_get_pending_status_id()\n{\n}",
"function get_default_projectStatus() {\r\r\r\r\t\tApp::import(\"Model\", \"StatusType\");\r\r\r\r\t\t$this->StatusType = & new StatusType();\r\r\r\r\t\t\r\r\r\r\t\t$statusdropdown=$this->StatusType->find('first',array('conditions'=>array('StatusType.active_status' => 1, 'StatusType.default' => 1 ),'fields'=>array('id')));\r\r\r\r\t\tif($statusdropdown['StatusType']['id'])\r\r\r\r\t\treturn $statusdropdown['StatusType']['id'];\r\r\r\r\t\telse\r\r\r\r\t\treturn 0;\r\r\r\r\t\t//return $statusdropdown;\r\r\r\r\t}",
"public function getCurrentId()\n {\n $sql = 'SELECT value FROM ' . $this->table . ' WHERE name = ?';\n\n $id = $this->db->fetchOne($sql, array($this->name));\n\n if (!empty($id) || '0' === $id || 0 === $id) {\n return (int) $id;\n }\n }",
"function bbp_get_closed_status_id()\n{\n}",
"public function getPrimaryId()\n\t{\n\t\t$calendar = $this->getCalendarById('primary');\n\t\treturn !empty($calendar) ? $calendar['id'] : '';\n\t}",
"public static function getCurrentId()\n {\n return rex_addon::get('structure')->getProperty('article_id', 1);\n }",
"public function getId()\n\t{\n\t\treturn $this->getState('__id');\n\t}",
"function get_id() {\n\t\treturn '';\n\t}",
"function getStatus(): int {\n\t\treturn $this->status;\n\t}",
"function get_id()\n\t{\n\t\treturn $this->get_default_property(self :: PROPERTY_ID);\n\t}",
"public function getCurrentId(){\n\n return $this->SiteStructure->getCurrentId();\n }",
"private function Get_Synced_Status()\n\t{\n\t\tif(!isset($this->synced_status))\n\t\t{\n\t\t\t//Get synced status id\n\t\t\t$query = \"SELECT application_status_id, name\n\t\t\t\t\t FROM application_status\n\t\t\t\t\t WHERE name = 'ldb_synched'\n\t\t\t\t\t\t OR name = 'ldb_unsynched'\";\n\t\t\t\t\n\t\t $result = $this->QueryOLP($query);\n\t\t\t\n\t\t\t//If for some reason status ids are not in there return\n\t\t\tif($this->olp_sql->Row_Count($result) == 0)\n\t\t\t{\n\t\t\t\t$this->Un_Lock();\n\t\t\t\tthrow new Exception(\"Could not find status IDs\");\n\t\t\t}\n\n\t\t\twhile($row = $this->olp_sql->Fetch_Object_Row($result))\n\t\t\t{\n\t\t\t\tif($row->name == \"ldb_unsynched\")\n\t\t\t\t{\n\t\t\t\t\t$this->un_synced_id = (int)$row->application_status_id;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$this->synced_id = (int)$row->application_status_id;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn $this->synced_id;\n\t}",
"function getId_activ()\n {\n if (!isset($this->iid_activ) && !$this->bLoaded) {\n $this->DBCarregar();\n }\n return $this->iid_activ;\n }",
"public function get_status(){\n\t\treturn (int) $this->v_status;\n\t}",
"private function id_retorno_init(): int\n {\n $id_retorno = -1;\n if(isset($_POST['id_retorno'])){\n $id_retorno = (int)$_POST['id_retorno'];\n }\n return $id_retorno;\n }"
] | [
"0.7658415",
"0.7531893",
"0.7153662",
"0.7037906",
"0.7023633",
"0.6632897",
"0.6502563",
"0.649052",
"0.6461322",
"0.6449335",
"0.6440671",
"0.63893545",
"0.6317213",
"0.62235266",
"0.62117416",
"0.6202059",
"0.6126967",
"0.605343",
"0.6022344",
"0.6001199",
"0.5990591",
"0.5960576",
"0.5946577",
"0.59332585",
"0.59332377",
"0.5923858",
"0.5905661",
"0.5902959",
"0.5893656",
"0.5885771"
] | 0.86925286 | 0 |
Provides the field type specific allowed values form element description. | abstract protected function allowedValuesDescription(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getListFieldDescriptions();",
"public function getFormFieldDescriptions();",
"public function getDescription()\n {\n return vsprintf(\n 'The value is expected to meet the type constraint: %s',\n [$this->toString()]\n );\n }",
"public function getFieldFriendlyValues();",
"function getFieldDescription()\n\t{\n\t\t$p =& $this->getParams();\n\t\tif ($this->encryptMe()) {\n\t\t\treturn 'BLOB';\n\t\t}\n\t\treturn \"INT(3)\";\n\t}",
"function getFieldDescription()\n\t{\n\t\t$p = $this->getParams();\n\t\tif ($this->encryptMe()) {\n\t\t\treturn 'BLOB';\n\t\t}\n\t\treturn \"TEXT\";\n\t}",
"function getFieldDescription()\n\t{\n\t\t$p = $this->getParams();\n\t\tif ($this->encryptMe()) {\n\t\t\treturn 'BLOB';\n\t\t}\n\t\treturn \"VARCHAR(255)\";\n\t}",
"function getFieldDescription()\n\t{\n\t\t$groupModel =& $this->getGroup();\n\t\tif (is_object($groupModel) && $groupModel->canRepeat()) {\n\t\t\treturn \"VARCHAR(255)\";\n\t\t} else {\n\t\t\treturn \"DATETIME\";\n\t\t}\n\t}",
"public function getFilterFieldDescriptions();",
"function getGenericDescription () {\n\t\treturn $this->getFieldValue ('generic_description');\n\t}",
"public function allowed_values() {\n\t\t$max_columns = 5;\n\n\t\t// Create an associative array of allowed column values. This just automates the generation of\n\t\t// column <option>s, from 1 to $max_columns\n\t\t$allowed_columns = array_combine( range( 1, $max_columns ), range( 1, $max_columns ) );\n\n\t\treturn array(\n\t\t\t'type'\t=> array(\n\t\t\t\t'rectangular' => __( 'Tiles', 'jetpack' ),\n\t\t\t\t'square' => __( 'Square Tiles', 'jetpack' ),\n\t\t\t\t'circle' => __( 'Circles', 'jetpack' ),\n\t\t\t\t'slideshow' => __( 'Slideshow', 'jetpack' ),\n\t\t\t),\n\t\t\t'columns'\t=> $allowed_columns,\n\t\t\t'link'\t=> array(\n\t\t\t\t'carousel' => __( 'Carousel', 'jetpack' ),\n\t\t\t\t'post' => __( 'Attachment Page', 'jetpack' ),\n\t\t\t\t'file' => __( 'Media File', 'jetpack' ),\n\t\t\t)\n\t\t);\n\t}",
"public function getDescription()\n {\n return vsprintf('The value is expected to be an instance of a %s.', [\n $this->className,\n ]);\n }",
"function listOptionsField(){\n\t\t\t$output = array();\n\t\t\t$sql = \"SHOW COLUMNS FROM `sys_custom_field_content` \";\n\t\t\t$this->db->query($sql);\n\t\t\twhile($this->db->nextRecord()){\n\t\t\t\t$result = $this->db->getRecord();\n\t\t\t\tarray_push($output, \"'\".$result['Field'].\"'\");\n\t\t\t}\t\t\t\n\t\t\tarray_push($output, \"'created_by_format'\");\n\t\t\tarray_push($output, \"'modified_by_format'\");\n\t\t\tarray_push($output, \"'enc_id'\");\n\t\t\tarray_push($output, \"'enc_parent_id'\");\n\t\t\tarray_push($output, \"'type'\");\n\t\t\treturn $output;\n\t\t}",
"public function fields(): array{\n\t\treturn [\n\t\t\t'name' => [\n\t\t\t\t'type' => Type::string(),\n\t\t\t\t'description' => 'Description of the setting',\n\t\t\t],\n\t\t\t'value' => [\n\t\t\t\t'type' => Type::listOf(Type::string()),\n\t\t\t\t'description' => 'Description of the setting',\n\t\t\t],\n\n\t\t];\n\t}",
"public function getDescription() \n {\n return $this->_fields['Description']['FieldValue'];\n }",
"public function getLabelTypeAllowableValues()\n {\n return [\n self::LABEL_TYPE_PDF,\n self::LABEL_TYPE_ZPL,\n self::LABEL_TYPE_EPL,\n self::LABEL_TYPE_LP2,\n ];\n }",
"public function getFields()\n {\n return [\n 'value' => 'name:Url adresa videa|title:Youtube, Vimeo...|url|required',\n ];\n }",
"public function getAllowedValueTypes()\n {\n return $this->allowedValueTypes;\n }",
"function GetUserTypeDescription()\n {\n return array(\n \"USER_TYPE_ID\" => static::USER_TYPE_ID,\n \"CLASS_NAME\" => __CLASS__,\n \"DESCRIPTION\" => 'Тип Договор',\n \"BASE_TYPE\" => \\CUserTypeManager::BASE_TYPE_DOUBLE,\n \"VIEW_CALLBACK\" => array(__CLASS__, 'GetPublicView'),\n \"EDIT_CALLBACK\" => array(__CLASS__, 'GetPublicView'),\n );\n }",
"public function getDescription() {\n\t\treturn 'These transfrmations do not need any special additional configuration, they will simply take the current value of the field and transform it';\n\t}",
"public function getListFieldDescription($name);",
"public function AllowedRangeType()\n{\n$com['seq'][0]=[];\n$com['seq'][0]['ele'][0]=['minOccurs'=>'0','ref'=>'Documentation'];\n$com['seq'][0]['ele'][1]=['minOccurs'=>'0','ref'=>'Min'];\n$com['seq'][0]['ele'][2]=['minOccurs'=>'0','ref'=>'Max'];\n// Label of Unit that applies to this allowed range of values.\n$com['att'][0]=['name'=>'unit','type'=>'ShortTokenType','use'=>'optional'];\nreturn $com;\n}",
"public function getDescription () {\n\t$preValue = $this->preGetValue(\"description\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->getClass()->getFieldDefinition(\"description\")->preGetData($this);\n\treturn $data;\n}",
"function fieldtypes_field()\n {\n return new HtmlString('<input type=\"hidden\" name=\"_fieldtypes\" value=\"true\">');\n }",
"public function getAllowedValues()\n {\n return $this->allowed_values;\n }",
"function _list_field()\n\t{\n\t\t// VARCHAR\n\t\t$fields['code'] = ['type' => 'VARCHAR', 'constraint' => '40', 'null' => TRUE];\n\t\t// TEXT\n\t\t$fields['description'] = ['type' => 'TEXT', 'null' => TRUE];\n\t\t// ID & FOREIGN ID\n\t\t$fields['_id'] \t= ['type' => 'INT', 'constraint' => '32', 'null' => TRUE];\n\t\t// DATE\n\t\t$fields['_date'] = \t['type' => 'DATE', 'null' => TRUE];\n\t\t// NUMERIC PERCENTAGE\n\t\t$fields['percent'] \t= ['type' => 'NUMERIC', 'constraint' => '18,4', 'null' => TRUE];\t\n\t\t// NUMERIC AMOUNT\n\t\t$fields['amount'] = ['type' => 'NUMERIC', 'constraint' => '18,2', 'null' => TRUE];\n\t}",
"function _list_field()\n\t{\n\t\t// VARCHAR\n\t\t$fields['code'] = ['type' => 'VARCHAR', 'constraint' => '40', 'null' => TRUE];\n\t\t// TEXT\n\t\t$fields['description'] = ['type' => 'TEXT', 'null' => TRUE];\n\t\t// ID & FOREIGN ID\n\t\t$fields['_id'] \t= ['type' => 'INT', 'constraint' => '32', 'null' => TRUE];\n\t\t// DATE\n\t\t$fields['_date'] = \t['type' => 'DATE', 'null' => TRUE];\n\t\t// NUMERIC PERCENTAGE\n\t\t$fields['percent'] \t= ['type' => 'NUMERIC', 'constraint' => '18,4', 'null' => TRUE];\t\n\t\t// NUMERIC AMOUNT\n\t\t$fields['amount'] = ['type' => 'NUMERIC', 'constraint' => '18,2', 'null' => TRUE];\n\t}",
"public function getLegalTypeAllowableValues()\n {\n return [\n self::LEGAL_TYPE_LEGAL,\n self::LEGAL_TYPE_NATURAL,\n ];\n }",
"public function getTypeDescr()\n {\n return self::$typeDescr[$this->getType()];\n }",
"function get_form_field_types(){\n\t\treturn array(\n\t\t\t'text' => 'Textbox',\n\t\t\t'number' => 'Number',\n\t\t\t'decimal' => 'Decimal',\n\t\t\t'tel' => 'Phone Number',\n\t\t\t'url' => 'URL',\n\t\t\t'email' => 'Email Address',\n\t\t\t'date' => 'Date',\n\t\t\t'textarea' => 'Textarea',\n\t\t\t'file' => 'File Upload',\n\t\t);\n\t}"
] | [
"0.69256496",
"0.6823577",
"0.6807376",
"0.658836",
"0.6555647",
"0.6555417",
"0.6486016",
"0.6437974",
"0.6427673",
"0.6417289",
"0.6370793",
"0.62733185",
"0.6244583",
"0.6238682",
"0.6212848",
"0.6162901",
"0.61347216",
"0.6131118",
"0.61308",
"0.6087683",
"0.6085615",
"0.6067605",
"0.6032425",
"0.60320646",
"0.59985715",
"0.5966598",
"0.5966598",
"0.5942788",
"0.594161",
"0.5925066"
] | 0.80935687 | 0 |
Checks whether a candidate allowed value is valid. | protected static function validateAllowedValue($option) {} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected function isValueValid(): bool\n {\n return !in_array($this->value, $this->params);\n }",
"function isValid($value) {\n\t\treturn in_array($value, $this->_acceptedValues);\n\t}",
"public static function valueIsValid($_value)\n\t{\n\t\treturn in_array($_value,array(self::VALUE_TARGET_CPA,self::VALUE_MAX_CPA));\n\t}",
"public function isValidValue($value);",
"public function isValid($value);",
"public function isValid($value);",
"public function isValid($value);",
"public static function isValid($value);",
"public static function valueIsValid($_value)\n\t{\n\t\treturn in_array($_value,array(self::VALUE_NONE,self::VALUE_CHARGEBACK,self::VALUE_GUARANTEE,self::VALUE_BUYER_COMPLAINT,self::VALUE_REFUND,self::VALUE_OTHER));\n\t}",
"abstract protected function isValidValue($value);",
"public static function valueIsValid($_value)\n\t{\n\t\treturn in_array($_value,array(self::VALUE_NONE,self::VALUE_ECHECK,self::VALUE_INSTANT));\n\t}",
"protected function checkIsValid($value)\n\t{\n\t\tif (!$value) {\n\t\t\tif ($this->allow_none) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\t$this->addError('none');\n\t\t\treturn false;\n\t\t}\n\n\t\tif (!Numbers::isInteger($value)) {\n\t\t\t$this->addError('invalid_int');\n\t\t\treturn false;\n\t\t}\n\n\t\t$valid_ids = $this->repository->getIds();\n\n\t\tif (!in_array($value, $valid_ids)) {\n\t\t\t$this->addError('invalid_id');\n\t\t\treturn false;\n\t\t}\n\n\t\tif ($this->hasPerson() && $this->perms_loader_name) {\n\t\t\t$person = $this->getPerson();\n\t\t\t$person->loadHelper('PermissionsManager');\n\t\t\tif (!$person->getPermsLoader($this->perms_loader_name)->isCategoryAllowed($value)) {\n\t\t\t\t$this->addError('no_perm');\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t}",
"public static function valueIsValid($_value)\n\t{\n\t\treturn in_array($_value,array(self::VALUE_NONE,self::VALUE_AUCTION,self::VALUE_BUYITNOW,self::VALUE_FIXEDPRICEITEM,self::VALUE_AUTOPAY));\n\t}",
"public function isValid(): bool\n {\n return $this->isValidValue($this->getValue());\n }",
"public function testValidatorRejectsValueThatEqualsTheComparedOne()\r\n {\r\n $this->assertFalse($this->validator->isValid(7, 7));\r\n }",
"public function isValueValid($value) {\n\t\treturn $value instanceof Type\\QualitativeValue;\n\t}",
"public function isValid($value) {return $this->getValidator()->isValid($value);}",
"public function valid()\n {\n\n $allowed_values = [\"UNKNOWN\", \"USED_LIKE_NEW\", \"USED_VERY_GOOD\", \"USED_GOOD\", \"USED_ACCEPTABLE\", \"COLLECTIBLE_LIKE_NEW\", \"COLLECTIBLE_VERY_GOOD\", \"COLLECTIBLE_GOOD\", \"COLLECTIBLE_ACCEPTABLE\", \"USED_REFURBISHED\", \"REFURBISHED\", \"NEW\"];\n if (!in_array($this->container['condition'], $allowed_values)) {\n return false;\n }\n return true;\n }",
"static function isValidValue()\n {\n }",
"public static function valueIsValid($_value)\n\t{\n\t\treturn in_array($_value,array(self::VALUE_CANCELED,self::VALUE_PAID,self::VALUE_PENDING,self::VALUE_CUSTOMCODE));\n\t}",
"final protected function valueIsValid($value)\n {\n return (is_int($value) || is_float($value));\n }",
"public function valid()\n {\n if ($this->container['activity_id'] === null) {\n return false;\n }\n $allowed_values = [\"Billable\", \"DoNotBill\", \"NoCharge\", \"NoDefault\"];\n if (!in_array($this->container['billable_option'], $allowed_values)) {\n return false;\n }\n if ($this->container['member'] === null) {\n return false;\n }\n if (strlen($this->container['notes']) > 4000) {\n return false;\n }\n if ($this->container['status'] === null) {\n return false;\n }\n $allowed_values = [\"Reset\", \"Running\", \"Paused\", \"Stopped\"];\n if (!in_array($this->container['status'], $allowed_values)) {\n return false;\n }\n return true;\n }",
"public static function valueIsValid($_value)\n\t{\n\t\treturn in_array($_value,array(self::VALUE_PRICEDISCOUNTONLY,self::VALUE_FREESHIPPINGONLY,self::VALUE_PRICEDISCOUNTANDFREESHIPPING,self::VALUE_CUSTOMCODE));\n\t}",
"public function testIsValid()\n {\n $this->assertEquals($this->abuse->check(), false);\n $this->assertEquals($this->abuse->check(), false);\n $this->assertEquals($this->abuse->check(), false);\n $this->assertEquals($this->abuse->check(), true);\n }",
"public static function valueIsValid($_value)\n\t{\n\t\treturn in_array($_value,array(self::VALUE_CALLER,self::VALUE_RECIPIENT));\n\t}",
"public function valid() : bool\n {\n return !is_null( $this->getValue() );\n }",
"public static function valueIsValid($_value)\n\t{\n\t\treturn in_array($_value,array(self::VALUE_OTHER,self::VALUE_BUYNOWITEM,self::VALUE_SHOPPINGCART,self::VALUE_AUCTIONITEM,self::VALUE_GIFTCERTIFICATES,self::VALUE_SUBSCRIPTION,self::VALUE_DONATION,self::VALUE_EBAYBILLING,self::VALUE_CUSTOMCODE));\n\t}",
"public static function valueIsValid($value)\n {\n return ($value === null) || in_array($value, self::getValidValues(), true);\n }",
"public static function valueIsValid($value)\n {\n return ($value === null) || in_array($value, self::getValidValues(), true);\n }",
"public static function valueIsValid($value)\n {\n return ($value === null) || in_array($value, self::getValidValues(), true);\n }"
] | [
"0.7273685",
"0.6981098",
"0.66825515",
"0.6662532",
"0.6606814",
"0.6606814",
"0.6606814",
"0.6583781",
"0.6580587",
"0.6532401",
"0.6513462",
"0.6508032",
"0.64987695",
"0.6462086",
"0.6415774",
"0.63981766",
"0.6379998",
"0.6361078",
"0.63591534",
"0.6353298",
"0.6301493",
"0.62980306",
"0.6280515",
"0.62804335",
"0.62511086",
"0.6249713",
"0.6249297",
"0.6248951",
"0.6248951",
"0.6248951"
] | 0.7172152 | 1 |
Generates a string representation of an array of 'allowed values'. This string format is suitable for edition in a textarea. | protected function allowedValuesString($values) {
$lines = [];
foreach ($values as $key => $value) {
$lines[] = "$key|$value";
}
return implode("\n", $lines);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected function allowedValuesToStr()\n {\n $str = 'No allowed values specified';\n\n if (!empty($this->allowedValues))\n {\n $str = \"Allowed values are: \" . PHP_EOL;\n\n $str .= implode(', ' . PHP_EOL, $this->allowedValues);\n }\n\n return $str;\n }",
"abstract protected function allowedValuesDescription();",
"public function getAllowedValues()\n {\n return $this->allowed_values;\n }",
"public function allowed_values() {\n\t\t$max_columns = 5;\n\n\t\t// Create an associative array of allowed column values. This just automates the generation of\n\t\t// column <option>s, from 1 to $max_columns\n\t\t$allowed_columns = array_combine( range( 1, $max_columns ), range( 1, $max_columns ) );\n\n\t\treturn array(\n\t\t\t'type'\t=> array(\n\t\t\t\t'rectangular' => __( 'Tiles', 'jetpack' ),\n\t\t\t\t'square' => __( 'Square Tiles', 'jetpack' ),\n\t\t\t\t'circle' => __( 'Circles', 'jetpack' ),\n\t\t\t\t'slideshow' => __( 'Slideshow', 'jetpack' ),\n\t\t\t),\n\t\t\t'columns'\t=> $allowed_columns,\n\t\t\t'link'\t=> array(\n\t\t\t\t'carousel' => __( 'Carousel', 'jetpack' ),\n\t\t\t\t'post' => __( 'Attachment Page', 'jetpack' ),\n\t\t\t\t'file' => __( 'Media File', 'jetpack' ),\n\t\t\t)\n\t\t);\n\t}",
"protected static function getValidListAsString(array $list): string\n {\n return implode(', ', array_map(\n fn($val) => \"'$val'\", $list\n ));\n }",
"public function getLegalInput()\n\t{\n\t\treturn [\n\t\t\t'name' => 'Charles Yeh',\n\t\t\t'student_id' => '0456095',\n\t\t\t'birth_date' => '1992-12-31',\n\t\t\t'ssid' => 'A123456789',\n\t\t\t'top_edu_bg' => 'NCTU CSIE',\n\t\t\t'edu_bg_history' => 'NCTU CSIE, NTCU CISE', \n\t\t\t'email' => 's000032001@gmail.com',\n\t\t\t'mobile_phone' => '0989777777',\n\t\t\t'contact_phone_now' => '0444443333',\n\t\t\t'contact_phone_forever' => '0433332222',\n\t\t\t'contact_addr_now' => '卡加不列島',\n\t\t\t'contact_addr_forever' => '拉斯維加斯',\n\t\t\t'join_club' => 'Esport Gaming Club',\n\t\t\t'motivation' => '好玩',\n\t\t\t'career_plan' => '玩',\n\t\t\t];\n\t}",
"public static function notPopulatedString()\r\n {\r\n return array(\r\n array(true),\r\n array(1),\r\n array(1.5),\r\n array(new StdClass()),\r\n array(''),\r\n array(array('get', 'up')),\r\n array(array('get on up')),\r\n array(-5),\r\n );\r\n }",
"public function getLegalTypeAllowableValues()\n {\n return [\n self::LEGAL_TYPE_LEGAL,\n self::LEGAL_TYPE_NATURAL,\n ];\n }",
"static function getWhitelistedTagsForEditor() {\n \tif (self::$whitelisted_tags === false) {\n \t\tself::loadWhitelistedTags();\n \t} // if\n \t\n \tif (is_foreachable(self::$whitelisted_tags)) {\n \t $result = array();\n \tforeach (self::$whitelisted_tags as $whitelisted_tag => $whitelisted_attributes) {\n \t\t$result[] = $whitelisted_tag . '[' . implode('|', $whitelisted_attributes) . ']';\n \t} // foreach\n \t\n \treturn implode(',', $result);\n \t} else {\n \t\treturn '';\n \t} // if\n }",
"public function show_list($choices = array()) \r\n {\r\n $output = '';\r\n foreach ($choices as $key => $value) {\r\n if ($value) {\r\n $output .= sanitize($value, 'ents') . \", \";\r\n }\r\n }\r\n $output = rstrtrim($output, \", \");\r\n \r\n return $output;\r\n }",
"public function getOptionRulesAttribute(): string\n {\n $fieldRules = [];\n\n if (in_array($this->type, ['checkbox','radio','select'])) {\n $keys = $this->getOptionKeys();\n\n if (empty($keys)) {\n $fieldRules[] = 'accepted';\n } else {\n $fieldRules[] = 'in:' . implode(',', $this->getOptionKeys());\n }\n }\n\n // Return compiled list of rules\n return implode('|', $fieldRules);\n }",
"public function sanitizable() :array;",
"public function __toString()\n {\n if (!$this->isNull()) {\n $values = $this->getValue();\n $choices = $this->getChoices();\n\n if (is_array($values) && count($values) > 0) {\n $result = [];\n foreach ($values as $value) {\n $result[] = array_key_exists($value, $choices) ? trim($choices[$value]) : $value;\n }\n\n return implode(', ', $result);\n }\n\n if (isset($choices[$values])) {\n return trim($choices[$values]);\n }\n }\n\n return '';\n }",
"public function stringValues()\n {\n $stringReturn = [\n 'value',\n 'domain'\n ];\n\n return [\n $stringReturn\n ];\n }",
"public static function sanitations()\n {\n $s = [\n\n ];\n\n return $s;\n }",
"function generateCustomFieldsJavascript($customFields)\r\n{\r\n $someRequired = false;\r\n foreach ($customFields as $c) {\r\n if ($c[ 'REQUIRED' ] != ' ') {\r\n $someRequired = true;\r\n }\r\n }\r\n\r\n if (!$someRequired) {\r\n $js = '';\r\n } else {\r\n $js = ', ';\r\n foreach ($customFields as $c) {\r\n if ($c[ 'REQUIRED' ] != ' ') {\r\n $js .= $c[ 'FIELDNAME' ].': {\r\n\t\t\t\t\t\tminlength: 1,\r\n\t\t\t\t\t\trequired : true\r\n\t\t\t\t\t},';\r\n }\r\n }\r\n rtrim($js, ',');\r\n }\r\n\r\n return $js;\r\n}",
"protected function getOptionsString()\n {\n $arr = [];\n if ($this->Values()->exists()) {\n foreach ($this->Values() as $val) {\n $arr[] = $val->LongTitle();\n }\n }\n\n return implode(', ', $arr);\n }",
"public function validValueEscaperProvider(): array\n {\n $escapers = [];\n $escapers[] = [\n 'intvalue',\n '100',\n 100,\n ];\n $escapers[] = [\n 'floatvalue',\n '100.0',\n 100.0,\n ];\n $escapers[] = [\n 'query_value',\n 'SELECT * FROM table',\n '(SELECT * FROM table)',\n ];\n $escapers[] = [\n 'list_value',\n [ 'A', 'B', 'C' ],\n '(A,B,C)',\n ];\n\n return $escapers;\n }",
"public function __toString(): string\n {\n $result = $this->isDisabled() ? 'disabled(' : '(';\n\n foreach ($this->literals as $i => $literal) {\n if ($i !== 0) {\n $result .= '|';\n }\n $result .= $literal;\n }\n\n $result .= ')';\n\n return $result;\n }",
"static protected function formatArrayAsHtml($values)\n {\n return '<pre>' . self::escape(print_r($values, true)) . '</pre>';\n }",
"function setAllowedCab($allowedcab){\n\t\t$cablist='';\n\t\tforeach($allowedcab as $cab):\n\t\t\tif($cablist=='')$cablist=\"'\".$cab->cabckdcab.\"'\"; else $cablist = $cablist.','.\"'\".$cab->cabckdcab.\"'\";\n\t\tendforeach; \t\n\t\treturn $cablist;\n\t}",
"public function getPurposeAllowableValues()\n {\n return [\n self::PURPOSE_RIVENDITORE_USO_INTERNO,\n self::PURPOSE_NFR,\n self::PURPOSE_TEST_RIVENDITORE,\n self::PURPOSE_CORSO_AR_XIVAR_ACADEMY,\n self::PURPOSE_CORSO_ALTRO,\n self::PURPOSE_PRODUZIONE_CLIENTE_FINALE,\n self::PURPOSE_TEST_CLIENTE_FINALE,\n self::PURPOSE_DEMO,\n self::PURPOSE_DEVELOPMENT,\n self::PURPOSE_NEXT_FE,\n self::PURPOSE_NEXT_FE_TEST,\n ];\n }",
"public function allowed(): array\n {\n return [\n 'number' => 'string',\n 'type' => 'string', // ['mobile' or 'work' or 'home' or 'fax']\n ];\n }",
"public function fieldAllowedValues($field);",
"public function fillable()\n\t{\n if($this->schema == \"empty\")\n return \"\";\n\n\t\t$array = explode(',', $this->schema);\n \n $fillable = \"\";\n\n foreach ($array as $value) \n {\n $variables = explode(':', $value);\n\n $fillable .= \"'\" . str_replace(\" \", \"\", trim($variables[0])) . \"', \";\n }\n\n return $fillable;\n\t}",
"protected static function allowedOptions()\n\t{\n\t\t$additional = array(\n\t\t\t\t\t\t\t'cols' => 1,\n\t\t\t\t\t\t\t'rows' => 1,\n\t\t\t\t\t\t\t'dir' => 1,\n\t\t\t\t\t\t\t'lang' => 1,\n\t\t\t\t\t\t\t'xml:lang' => 1,\n\t\t\t\t\t\t\t'tabindex' => 1,\n\t\t\t\t\t\t\t'accesskey' => 1,\n\t\t\t\t\t\t\t'disabled' => 1,\n\t\t\t\t\t\t\t'readonly' => 1\n\t\t\t\t\t\t\t);\n\t\treturn array_merge(parent::allowedOptions(), $additional);\n\t}",
"function setAllowedCabOwn($allowedcab){\n\t\t$cablist='';\n\t\tforeach($allowedcab as $cab):\n\t\t\tif($cablist=='')$cablist=\"'100','\".$cab->cabckdcab.\"'\"; else $cablist = $cablist.','.\"'\".$cab->cabckdcab.\"'\";\n\t\tendforeach; \t\n\t\treturn $cablist;\n\t}",
"function array_values_list($array, $del=\", \") {\n $values = array_values($array);\n $qvals = array();\n foreach($values as $val) {\n //$pos = strpos($val, \"'\");\n //$start = $pos>5 ? $pos-5 : 0;\n //$len = strlen($val) > $start+10 ? 10 : strlen($val)-1;\n //$snippet = substr($val, $start, $len);\n $val = addslashes($val);\n //$snippet2 = substr($val, $start, $len);\n //if($pos) echo(\"Found ' in value at pos $pos - <br>before: $snippet<br>after: $snippet2<br>\");\n if(strpos($val, \"'\")!==0) $val = \"'$val'\"; // quote value\n $qvals[] = $val;\n }\n return implode($del, $qvals);\n}",
"function valuesToInputs($values, $ctrl='')\n\t{\n\t\t$fields = array();\n\t\tif(count($values)) foreach($values as $key => $val)\n\t\t{\n\t\t\tif(is_array($val)) {\n\t\t\t\t$fields = array_merge($fields, $this->valuesToInputs($val, $ctrl.'['.$key.']'));\n\t\t\t} else if(strlen($val)) {\n\t\t\t\t$fields[] = '<input type=\"hidden\" name=\"'.$ctrl.'['.$key.']\" value=\"'.$val.'\">';\n\t\t\t}\t\t\t\n\t\t}\n\t\treturn $fields;\n\t}",
"public static function getListOfValuesAsFriendlyHtmlString(array $list = [], string $conjunction = \"or\"): string\n {\n return match (count($list)) {\n 1 => \"<code>{$list[0]}</code>\",\n 2 => \"<code>{$list[0]}</code> $conjunction <code>{$list[1]}</code>\",\n default => \"<code>\"\n . implode('</code>, <code>', array_slice($list, 0, -1))\n . \"</code>, $conjunction <code>\" . end($list) . \"</code>\",\n };\n }"
] | [
"0.73383206",
"0.69562656",
"0.6340475",
"0.6156022",
"0.5983429",
"0.5781348",
"0.5687492",
"0.5616989",
"0.56057614",
"0.55768543",
"0.55519086",
"0.5541925",
"0.55262256",
"0.54876053",
"0.5485143",
"0.54764754",
"0.54731196",
"0.54678",
"0.5461376",
"0.5426629",
"0.54197943",
"0.5418315",
"0.5396869",
"0.53908265",
"0.5383084",
"0.536356",
"0.5361756",
"0.536001",
"0.5355596",
"0.53471214"
] | 0.7020394 | 1 |
Simplifies allowed values to a keyvalue array from the structured array. | protected static function simplifyAllowedValues(array $structured_values) {
$values = [];
foreach ($structured_values as $item) {
if (is_array($item['label'])) {
// Nested elements are embedded in the label.
$item['label'] = static::simplifyAllowedValues($item['label']);
}
$values[$item['value']] = $item['label'];
}
return $values;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"abstract protected function _normalizeArray($value);",
"abstract protected function _normalizeArray($value);",
"abstract protected function _normalizeArray($value);",
"function _rearrange_array( array $array ): array {\n\t$ret = array();\n\tforeach ( $array as $key => $val ) {\n\t\tif ( is_array( $val ) ) {\n\t\t\t$val = _rearrange_array( $val );\n\t\t}\n\t\tif ( ! empty( $val ) ) {\n\t\t\tif ( is_int( $key ) ) {\n\t\t\t\t$ret[] = $val;\n\t\t\t} else {\n\t\t\t\t$key = lcfirst( strtr( ucwords( strtr( $key, '_', ' ' ) ), ' ', '' ) );\n\n\t\t\t\t$ret[ $key ] = $val;\n\t\t\t}\n\t\t}\n\t}\n\treturn $ret;\n}",
"function sanitize_arr( &$data, $whatToKeep )\n {\n $data = array_intersect_key( $data, $whatToKeep ); \n \n foreach ($data as $key => $value)\n {\n $data[$key] = sanitize_one( $data[$key] , $whatToKeep[$key] );\n }\n }",
"function air_helper_cf_hande_field_complex( $array ) {\n\t$return = array();\n\n\tforeach ( $array as $key => $value ) {\n\t\t$tmp = air_helper_cf_hande_field_complex_clean_keys( $key, $value );\n\t\t$return[ $tmp[0] ] = $tmp[1];\n\t}\n\n\treturn $return;\n}",
"function ArrayNormalize($array) {\n $result = [];\n foreach ($array as $key => $items) {\n foreach ($items as $arr => $value) {\n $result[$value] = $key;\n }\n }\n return $result;\n}",
"static function key2field($arr,$keyfield='key',$remove=TRUE){\n $res = array();\n foreach($arr as $key=>$val){\n if(is_array($val)) $val[$keyfield] = $key; \n else $val = array($val,$keyfield=>$key);\n if($remove) $res[] = $val; else $res[$key] = $val;\n }\n return($res);\n }",
"public function sanitize_array_values( $array ) {\n\n\t\tforeach ( $array as $key => &$value ) {\n\t\t\tif ( is_array( $value ) ) {\n\t\t\t\t$value = $this->sanitize_array_values( $value );\n\t\t\t} else {\n\t\t\t\t$value = sanitize_text_field( $value );\n\t\t\t}\n\t\t}\n\n\t\treturn $array;\n\t}",
"function air_helper_cf_hande_field_complex_clean_keys( $key, $value ) {\n\tif ( is_array( $value ) ) {\n\t\t$c = array();\n\n\t\tforeach ( $value as $nested_key => $nested_value ) {\n\t\t\tif ( $nested_key === 'value' ) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t$tmp = air_helper_cf_hande_field_complex_clean_keys( $nested_key, $nested_value );\n\t\t\t$c[ $tmp[0] ] = $tmp[1];\n\t\t}\n\n\t\treturn array( ltrim( $key, '_' ), $c );\n\t} else {\n\t\treturn array( ltrim( $key, '_' ), $value );\n\t}\n}",
"function array_flat($array, $toKey = false, mixed $toValue = false, $unique = false) {\n\n\tif (!is_array($array)) {\n\t\treturn false;\n\t}\n\n\t$result = [];\n\n\tforeach ($array as $key => $value) {\n\n\t\t// choose value\n\t\tswitch (true) {\n\t\t\t// if list of keys\n\t\t\tcase is_array($toValue):\n\t\t\t\t$newValue = array_intersect_key($value, array_flip(array_values($toValue)));\n\t\t\t\tbreak;\n\t\t\t// if false\n\t\t\tdefault:\n\t\t\tcase $toValue === false:\n\t\t\t\t$newValue = $value; // as was\n\t\t\t\tbreak;\n\t\t\t// if true\n\t\t\tcase $toValue === true:\n\t\t\t\t$newValue = $key; // as key\n\t\t\t\tbreak;\n\t\t\t// if dot delimited string keys\n\t\t\tcase is_scalar($toValue) && strpos($toValue, '.'):\n\t\t\t\t$newValue = $value;\n\t\t\t\tforeach (explode('.', $toValue) as $toValueKey) {\n\t\t\t\t\t$newValue = $newValue[$toValueKey];\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t// if scalar\n\t\t\tcase is_scalar($toValue):\n\t\t\t\t$newValue = $value[$toValue];\n\t\t}\n\n\t\t// choose key\n\t\tswitch (true) {\n\t\t\t// if we just simplifiying some kind of php array to list\n\t\t\tcase $toKey === false:\n\t\t\t\t$result[] = $newValue;\n\t\t\t\tcontinue 2;\n\t\t\t// default\n\t\t\tdefault:\n\t\t\tcase $toKey === true:\n\t\t\tcase is_scalar($value):\n\t\t\t\t$newKey = $key;\n\t\t\t\tbreak;\n\t\t\t// some field of value will be used as key in new map\n\t\t\tcase is_array($value) && array_key_exists($toKey, $value):\n\t\t\t\t$newKey = $value[$toKey];\n\t\t}\n\n\t\t// push key-value pair to result\n\t\t$result[$newKey] = $newValue;\n\t}\n\n\t$unique && $result = array_flip(array_flip($result));\n\n\treturn $result;\n}",
"protected static function structureAllowedValues(array $values) {\n $structured_values = [];\n foreach ($values as $value => $label) {\n if (is_array($label)) {\n $label = static::structureAllowedValues($label);\n }\n $structured_values[] = [\n 'value' => static::castAllowedValue($value),\n 'label' => $label,\n ];\n }\n return $structured_values;\n }",
"static public function prepare_data($data_array){\n\n\t\t$new_data = array();\n\n\t\tforeach ($data_array as $key => $value) {\n\t\t\t//if( empty( $value ) ){\n if( !isset( $value ) ){\n\t\t\t\t$clean_value = ''; // set the default value\n\t\t\t}else{\n\t\t\t\tif(!is_array($value)){\n\t\t\t\t\t$clean_value = esc_attr($value); // escape the saved value\n\t\t\t\t}else{\n\t\t\t\t\t$clean_value = self::prepare_data($value); // if the value is an array, we recursively call this method again\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t$new_data[$key] = $clean_value;\n\t\t}\n\t\treturn $new_data;\n\t}",
"protected function normalizeArrayKeys($array = [])\n {\n foreach ($array as $key => $value) {\n $normalized = $this->normalizeKeyName($key);\n if ($normalized !== $key) {\n $array[$this->normalizeKeyName($key)] = $value;\n unset($array[$key]);\n }\n }\n\n return $array;\n }",
"function sanitizeArray($dirtyArray)\n{\n if (is_array($dirtyArray)) {\n foreach ($dirtyArray as $key => $value) {\n $dirtyArray[trim($key)] = $value;\n }\n }\n return $dirtyArray;\n}",
"function AssocArrayToValues ($input) {\r\n $array = array();\r\n foreach ($input as $key => $value)\r\n $array[] = array($key, $value);\r\n return $array;\r\n}",
"protected function cleanupValue(array $value)\n {\n $result = [];\n foreach ($value as $inner) {\n unset($inner[ValueProcessorInterface::COLUMN_FIELD_NEW]);\n if (empty($inner[ValueProcessorInterface::COLUMN_FIELD]) || empty($inner[ValueProcessorInterface::COLUMN_ATTRIBUTE])){\n continue;\n }\n $result[] = $inner;\n }\n return $result;\n }",
"function sanitize_array($ar) {\n if (is_array($ar)) {\n foreach ($ar as $k => $v) {\n $k = htmlentities($k);\n if (is_array($v)) {\n $v = sanitize_array($v);\n } else {\n $v = htmlentities($v);\n }\n $ar[$k] = $v;\n }\n }\n return $ar;\n}",
"public function sanitizeArray( $data ){\n\t\tif( is_array( $data ) ){\n\t\t\tforeach( $data as $k => $v ){\n\t\t\t\tif( is_array( $data[$k] ) ) $data[$k] = $this->sanitizeArray( $data[$k] );\n\t\t\t\tif( $v == '' ) unset( $data[$k] );\n\t\t\t}\n\t\t}\t\t\n\t\treturn $data;\n\t}",
"static public function cleanFormArray(array $array){\n // echo \"just got info to clean up ***********\";\n // var_dump($array);\n // get and store class specific validation columns to check if we need to clean up\n $cleanUpInfo_array = static::$validation_columns;\n // default array, fill with appropriate applicable form data\n $post_array = [];\n // loop through array and filter accordingly\n foreach ($array as $key => $value) {\n // If I want to change it, I needed it, get a value or no go\n if (isset($cleanUpInfo_array[$key]) && isset($cleanUpInfo_array[$key]['required'])) {\n // check to see if the information is blank or null, if it is do nothing, if it is not put in the array\n if (!is_blank($value)) {\n $post_array[$key] = trim($value);\n }\n // pass through everything else do validation later on\n } else {\n // let it pass through\n $post_array[$key] = trim($value);\n }\n }\n return $post_array;\n }",
"function array_clean(array $array, $callback = null, $flag = 0)\n {\n $keys = array_keys($array);\n $hasOnlyNumericKeys = $keys === array_filter($keys, 'is_numeric');\n $array = is_callable($callback) ? array_filter($array, $callback, $flag) : array_filter($array);\n $array = array_unique($array);\n\n //Performs `array_values()` only if all array keys are numeric\n return $hasOnlyNumericKeys ? array_values($array) : $array;\n }",
"static public function underscoreValues ($array)\n {\n foreach ($array as $key => $value) {\n if (is_string($value)) {\n $value = Stdlib\\StringUtils::underscore($value, false);\n }\n elseif (is_array($value)) {\n $value = call_user_func(__METHOD__, $value);\n }\n $array[$key] = $value;\n }\n return $array;\n }",
"function array_values (array $input) {}",
"public function makeArrayFieldValue($value)\n {\n $value = $this->unserializeValue($value);\n if (!$this->isEncodedArrayFieldValue($value)) {\n $value = $this->encodeArrayFieldValue($value);\n }\n return $value;\n }",
"private function tidyArray($array)\n {\n \tunset($array['created_at']);\n \tunset($array['updated_at']);\n \tunset($array['council_code']);\n \tunset($array['council']);\n \tunset($array['secondary_council_code']);\n \tunset($array['id']);\n\n \treturn $array;\n }",
"private function formatValues() : array\n {\n switch($this->m_type)\n {\n case self::TYPE_INSERT:\n {\n // Are many records?\n if (isset($this->m_data[0]))\n {\n $values = array();\n foreach ($this->m_data as $record)\n {\n $values = array_merge($values, $this->sanitize(array_values($record)));\n }\n return $values;\n }\n return $this->sanitize(array_values($this->m_data));\n }\n break;\n case self::TYPE_UPDATE:\n {\n return $this->sanitize(array_values($this->m_data));\n }\n break;\n default:\n return array();\n break;\n }\n }",
"function clean_array($array) {\n\t foreach ($array as $key => $value) {\n\n\t \t$cleaned_value = mysqli_real_escape_string($this->con, $value);\n\t\t \t$cleaned_value = trim($cleaned_value);\n\t\t $cleaned_value = str_replace(';', '', $cleaned_value);\n\t\t $cleaned_value = str_replace('>', '', $cleaned_value);\n\t\t $cleaned_value = str_replace('<', '', $cleaned_value);\n\t\t $cleaned_value = str_replace('(', '', $cleaned_value);\n\t\t $cleaned_value = str_replace(')', '', $cleaned_value);\n\t\t $cleaned_value = str_replace('=', '', $cleaned_value);\n\t\t $cleaned_value = htmlspecialchars($cleaned_value);//it encodes some codes that are not suppose to enter\n\t\t $array[$key] = $cleaned_value;\n\t }\n\t return $array;\n \t}",
"public static function normalize($arr) {\n if (!is_array($arr)) {\n return array();\n }\n\n $normalized = array();\n foreach ($arr as $key => $val) {\n $normalized[strtolower($key)] = $val;\n }\n return $normalized;\n }",
"public function sanitize(array $data) : array\n {\n return array_filter($data, function ($key) {\n return $key;\n }, ARRAY_FILTER_USE_KEY);\n }",
"function refactor_local($array) {\n\tglobal $keyset;\n\tforeach ($array as &$value) {\n\t\t\t//read data\n\t\t\tif(empty($value)) { \n\t\t\t//echo 'empty'.PHP_EOL;\n\t\t\t}\n\t\telse {\n\t\t\t// make array\n\t\t\t//if ($keyset = 1) {echo 'keyset'.PHP_EOL;}\n\t\t\t $i = strpos($value,\",\",0);\n\t\t\t if ($i == 0) {\n\t\t\t $key1 = trim($value);\n\t\t\t $nos[$key1] =array();\n\t\t\t $keyset=1;\n\t\t\t continue;\n\t\t }\n\t\t else {\n\t\t\t //echo 'hit else'.PHP_EOL;\n\t\t\t $i = strpos($value,\",\",0);\n\t\t\tif ($i > 0 )\n\t\t\t{\n $key = trim(substr($value,0,$i));\n if (isset($key1)) {\n\t\t $nos[$key1][$key] = trim(substr($value,$i+1));\n\t\t}\n\t\telse {\n\t\t\t$nos[$key] = trim(substr($value,$i+1));\n\t\t}\n\t\t}\n\t\t }\n\t\t}\t\n\t\t\t\n\t\t\n\t\t}\n\t\treturn $nos;\n//print_r($nos);\n}"
] | [
"0.6921173",
"0.6921173",
"0.6921173",
"0.6189099",
"0.6178553",
"0.6099351",
"0.60939527",
"0.6060779",
"0.59462714",
"0.593861",
"0.58892506",
"0.5841671",
"0.5828741",
"0.5827077",
"0.5818433",
"0.5753702",
"0.5753214",
"0.5721486",
"0.5714129",
"0.57094204",
"0.57083577",
"0.5708167",
"0.56959033",
"0.5690492",
"0.5678238",
"0.5669925",
"0.5666377",
"0.5665142",
"0.56513757",
"0.5620118"
] | 0.7213211 | 0 |
Creates a structured array of allowed values from a keyvalue array. | protected static function structureAllowedValues(array $values) {
$structured_values = [];
foreach ($values as $value => $label) {
if (is_array($label)) {
$label = static::structureAllowedValues($label);
}
$structured_values[] = [
'value' => static::castAllowedValue($value),
'label' => $label,
];
}
return $structured_values;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected static function simplifyAllowedValues(array $structured_values) {\n $values = [];\n foreach ($structured_values as $item) {\n if (is_array($item['label'])) {\n // Nested elements are embedded in the label.\n $item['label'] = static::simplifyAllowedValues($item['label']);\n }\n $values[$item['value']] = $item['label'];\n }\n return $values;\n }",
"public function validate($value): array\n {\n $validated = [];\n foreach ($value as $singleValue) {\n if (false !== ($validatedSingleValue = $this->pkd($singleValue))) {\n $validated[] = $validatedSingleValue;\n }\n }\n\n return $validated;\n }",
"function AssocArrayToValues ($input) {\r\n $array = array();\r\n foreach ($input as $key => $value)\r\n $array[] = array($key, $value);\r\n return $array;\r\n}",
"public static function makeValuepairs($array, $key, $value)\n {\n\n $temp_array = array();\n\n if (is_array($array)) {\n foreach($array as $item) {\n if (empty($key)) {\n $temp_array[] = $item[$value];\n } else {\n $temp_array[$item[$key]] = $item[$value];\n }\n\n }\n }\n\n return $temp_array;\n\n }",
"protected function getFiltersFromArray($array) {\n $filterKeys = [];\n foreach (self::getAllowedFilters() as $filterSet) {\n $filterSetKey = val('key', $filterSet);\n // Check if any of our filters are in the array. Filter key value is unsafe.\n if ($filterKey = val($filterSetKey, $array)) {\n // Check that value is in filter array to ensure safety.\n if (val($filterKey, val('filters', $filterSet))) {\n // Value is safe.\n $filterKeys[$filterSetKey] = $filterKey;\n } else {\n Logger::log(\n Logger::NOTICE,\n 'Filter: {filterSetKey} => {$filterKey} does not exist in the DiscussionModel\\'s allowed filters array.',\n ['filterSetKey' => $filterSetKey, 'filterKey' => $filterKey]\n );\n }\n }\n }\n return $filterKeys;\n }",
"public static function validateKeysValues(&$arr, $keys = [], $buildByKeys = false) {\n if (!is_array($arr) || count($keys) == 0){\n return false;\n }\n $arrObj = new \\Zend\\Stdlib\\ArrayObject($arr);\n \n $validArr = [];\n foreach($keys as $key){\n $value = $arrObj->offsetGet($key);\n if(is_string($value)){\n $value = trim($value);\n }\n if(empty($value) && !is_numeric($value)){//exclude 0 as that may be in use\n return false;\n }\n $validArr[$key] = $value;\n }\n \n return (array)$arrObj->getArrayCopy();\n }",
"function arrayKeysAndValues() {\r\n}",
"function array_values (array $input) {}",
"function pimd_get_list_values($arr) {\n\t$vals = array();\n\tforeach ($arr as $a) {\n\t\t$vals[] = $a['value'];\n\t}\n\treturn $vals;\n}",
"static public function alphanumericValues (array $array)\n {\n $return = [];\n foreach ($array as $key => $value) {\n if (is_array($value)){\n $return[$key] = static::alphanumericValues($value);\n continue;\n }\n $return[$key] = Stdlib\\StringUtils::alphanumeric($value);\n }\n return $return;\n }",
"private function _getQueryValuesArray() {\n\t\t\t$qpar = array();\n\t\t\tforeach ($this->fieldValues as $k => $v) {\n\t\t\t\t#\t\t\t$qpar[':'.$k] = $v;\n\t\t\t\t// this somewhat complex structure is to handle some cases where the automatic typecasting doesn't quite do what we need\n\t\t\t\tif (preg_match('/^flag\\_/', $k)) {\n\t\t\t\t\tif ($v) {\n\t\t\t\t\t\t$qpar[':' . $k] = TRUE;\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\t$qpar[':' . $k] = FALSE;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t$qpar[':' . $k] = $this->fieldValues[$k];\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn $qpar;\n\t\t}",
"function array_filter_keys($arr,$allowed){\n\t\treturn array_intersect_key($arr, array_flip($allowed));\n}",
"protected function encodeArrayFieldValue(array $value)\n {\n $result = [];\n unset($value['__empty']);\n foreach ($value as $payment_type => $subscription_detail) {\n $resultId = $this->mathRandom->getUniqueHash('_');\n $existCountry = array_search($payment_type, array_column($this->klarnaCountries->toOptionArray(), 'value'));\n if ($existCountry) {\n $result[$resultId] = ['worldpay_klarna_subscription' => $payment_type,\n 'subscription_days' => $subscription_detail['subscription_days'],\n ];\n }\n }\n return $result;\n }",
"protected function requireValues($array, $key_array)\n {\n if (is_array($array)) {\n $validate_array = $array;\n } else {\n $validate_array = $_REQUEST;\n }\n if (!is_array($key_array)) {\n $arg_num = func_num_args();\n $key_array = array();\n for ($i = 1; $i < $arg_num; ++$i) {\n $key_array[] = func_get_arg($i);\n }\n }\n\n foreach ($key_array as $key) {\n if (!array_key_exists($key, $validate_array)) {\n return false;\n }\n }\n return true;\n }",
"public function provideNonStringValues()\n\t{\n\t\treturn array(\n\t\t\tarray(true),\n\t\t\tarray(1),\n\t\t\tarray(1.0),\n\t\t\tarray(array()),\n\t\t\tarray(new StdClass())\n\t\t);\n\t}",
"static function key2field($arr,$keyfield='key',$remove=TRUE){\n $res = array();\n foreach($arr as $key=>$val){\n if(is_array($val)) $val[$keyfield] = $key; \n else $val = array($val,$keyfield=>$key);\n if($remove) $res[] = $val; else $res[$key] = $val;\n }\n return($res);\n }",
"public function sanitize_array_values( $array ) {\n\n\t\tforeach ( $array as $key => &$value ) {\n\t\t\tif ( is_array( $value ) ) {\n\t\t\t\t$value = $this->sanitize_array_values( $value );\n\t\t\t} else {\n\t\t\t\t$value = sanitize_text_field( $value );\n\t\t\t}\n\t\t}\n\n\t\treturn $array;\n\t}",
"function air_helper_cf_hande_field_complex( $array ) {\n\t$return = array();\n\n\tforeach ( $array as $key => $value ) {\n\t\t$tmp = air_helper_cf_hande_field_complex_clean_keys( $key, $value );\n\t\t$return[ $tmp[0] ] = $tmp[1];\n\t}\n\n\treturn $return;\n}",
"public function getArrayKeyvaluePair( $key ) {\n $array = array();\n foreach ($key as $Arrkey => $Arrvalue) {\n $array[$Arrvalue] = $Arrvalue; \n }\n return $array;\n }",
"protected function _decodeArrayFieldValue(array $value)\n {\n $result = array();\n unset($value['__empty']);\n foreach ($value as $_id => $row) {\n\n if (\n !is_array($row)\n || !array_key_exists('installment_boundary', $row)\n || !array_key_exists('installment_frequency', $row)\n ) {\n continue;\n }\n\n $boundary = $row['installment_boundary'];\n $frequency = $row['installment_frequency'];\n $result[] = array($boundary, $frequency);\n }\n\n return $result;\n }",
"protected function decodeArrayFieldValue(array $value)\n {\n $result = [];\n unset($value['__empty']);\n foreach ($value as $row) {\n if (!is_array($row)\n || !array_key_exists('worldpay_klarna_subscription', $row)\n || !array_key_exists('subscription_days', $row)\n ) {\n continue;\n }\n if (!empty($row['worldpay_klarna_subscription'])\n && !empty($row['subscription_days'])\n ) {\n $payment_type = $row['worldpay_klarna_subscription'];\n $rs['subscription_days'] = $row['subscription_days'];\n $result[$payment_type] = $rs;\n }\n }\n return $result;\n }",
"public static function transformEntriesFromTrue($array)\n {\n return static::transform($array, function ($k, $value) {\n // check for [0 => 'key'] and make sure the value is not an array\n $all_entries_are_true = false;\n\n // check if value is array\n if (is_array($value)) {\n $value_arr = static::collect($value);\n\n $all_entries_are_true = $value_arr->every(function ($v, $k) {\n return $v === true;\n });\n\n if ($all_entries_are_true) {\n $value = $value_arr->keys()->all();\n }\n }\n\n return [$k, $value];\n });\n }",
"public static function separate($array)\n {\n return [\"keys\" => array_keys($array), \"values\" => array_values($array)];\n }",
"protected function _parseNestedValues(array $values): array\n {\n foreach ($values as $key => $value) {\n if ($value === '1') {\n $value = true;\n }\n if ($value === '') {\n $value = false;\n }\n unset($values[$key]);\n if (str_contains((string)$key, '.')) {\n $values = Hash::insert($values, $key, $value);\n } else {\n $values[$key] = $value;\n }\n }\n\n return $values;\n }",
"function getArrayValue ()\n {\n $value = $this->getValue();\n if (!strpos($value, self::$pemBegin)) {\n /* Convert DER to PEM */\n $value = self::$pemBegin.\"\\n\".chunk_split(base64_encode($value), 64, \"\\n\").self::$pemEnd.\"\\n\";\n }\n $infos = openssl_x509_parse($value, TRUE);\n if (empty($infos)) {\n return array(_('Unknown format'), $this->displayValue($this->getValue()), '');\n }\n $values = array('','','');\n if (isset($infos['subject']['CN'])) {\n $values[0] = $infos['subject']['CN'];\n }\n if (isset($infos['issuer']['CN'])) {\n $values[1] = $infos['issuer']['CN'];\n }\n if (isset($infos['validFrom_time_t'])) {\n $values[2] = date('Y-m-d', $infos['validFrom_time_t']).' -> ';\n } else {\n $values[2] = '? -> ';\n }\n if (isset($infos['validTo_time_t'])) {\n $values[2] .= date('Y-m-d', $infos['validTo_time_t']);\n } else {\n $values[2] .= '?';\n }\n return $values;\n }",
"public function makeArrayFieldValue($value)\n {\n $value = $this->unserializeValue($value);\n if (!$this->isEncodedArrayFieldValue($value)) {\n $value = $this->encodeArrayFieldValue($value);\n }\n return $value;\n }",
"public function only(Array $array)\n {\n $result = [];\n\n foreach ($this->items as $key => $value) {\n if (in_array($key, $array)) {\n $result[$key] = $value;\n }\n }\n\n return $result;\n }",
"static function filterKeys(array $array, ?string $include = null, ?string $exclude = null, array $excludeList = []): array\n {\n if ($include !== null) {\n $includeLength = strlen($include);\n }\n if ($exclude !== null) {\n $excludeLength = strlen($exclude);\n }\n if (!empty($excludeList)) {\n $excludeList = array_flip($excludeList);\n }\n\n $output = [];\n foreach ($array as $key => $value) {\n if (\n $include !== null && strncmp($key, $include, $includeLength) !== 0\n || $exclude !== null && strncmp($key, $exclude, $excludeLength) === 0\n || isset($excludeList[$key])\n ) {\n continue;\n }\n\n $output[$key] = $value;\n }\n\n return $output;\n }",
"static function removeAssocEmptyValues($array){\n \n $newArray=array();\n $i=0;\n \n \n foreach($array as $key=>$value):\n \n if(trim($value)):\n $newArray[$key]=$value;\n $i++;\n endif;\n \n endforeach;\n \n return $newArray;\n \n }",
"public static function expandRulesArray(array $array)\n\t{\n\t\t$new_array = array();\n\t\tforeach ( $array as $key => $param ) {\n\t\t\t// the validator has been written as array value\n\t\t\tif ( is_int($key) ) {\n\t\t\t\tself::checkStringNotEmpty($param, 'Rule name');\n\t\t\t\t$new_array[$param] = true;\n\t\t\t}\n\t\t\telseif ( $key == '' ) {\n\t\t\t\tthrow new \\InvalidArgumentException(\"Rule name cannot be empty\");\n\t\t\t}\n\t\t\telseif ( $key == self::EACH ) {\n\t\t\t\t// these special keys have nested rules\n\t\t\t\t$new_array[$key] = self::expandRulesArray($param);\n\t\t\t}\n\t\t\t// nothing to flip\n\t\t\telse {\n\t\t\t\t$new_array[$key] = $param;\n\t\t\t}\n\t\t}\n\t\treturn $new_array;\n\t}"
] | [
"0.60319054",
"0.5774979",
"0.57743156",
"0.576224",
"0.5724112",
"0.5695329",
"0.56631577",
"0.5595673",
"0.556837",
"0.555318",
"0.5547971",
"0.5523522",
"0.55123353",
"0.54955214",
"0.54900914",
"0.5477499",
"0.54538304",
"0.54151684",
"0.53769386",
"0.537617",
"0.5358593",
"0.5354459",
"0.5346846",
"0.533534",
"0.53327304",
"0.5310029",
"0.53044283",
"0.5284937",
"0.5276551",
"0.5265259"
] | 0.6292955 | 0 |
funcion que calcula la cantidad de jugadas por logro 1,2,3,4,5,6,7,8,9,10 para una determinada taquilla y cupos diarios | function jugadas_cantidad(){
//$_SESSION['cmapd']=numero_registros("select idventa from ventas where idtaquilla='".$_SESSION['datos']['idtaquilla']."' and fecha='".date('Y-m-d')."' and cantidad_apuesta='1'");
$_SESSION['cmapd']=numero_registros("select sum(total_ganar) as acum from ventas where idtaquilla='".$_SESSION['datos']['idtaquilla']."' and fecha='".date('Y-m-d')."' and cantidad_apuesta='1'");
//calculo para logros a partir de dos hasta diez
for($r=2;$r<11;$r++){
//$_SESSION['cma'.$r]=numero_registros("select idventa from ventas where idtaquilla='".$_SESSION['datos']['idtaquilla']."' and fecha='".date('Y-m-d')."' and cantidad_apuesta='".$r."'");
$_SESSION['cma'.$r]=numero_registros("select sum(total_ganar) as acum from ventas where idtaquilla='".$_SESSION['datos']['idtaquilla']."' and fecha='".date('Y-m-d')."' and cantidad_apuesta='".$r."'");
}
/*$_SESSION['cdpp']=numero_registros("select idventa from ventas where idtaquilla='".$_SESSION['datos']['idtaquilla']."' and fecha='".date('Y-m-d')."' and cantidad_apuesta>'1'");
$_SESSION['cdpd']=numero_registros("select idventa from ventas where idtaquilla='".$_SESSION['datos']['idtaquilla']."' and fecha='".date('Y-m-d')."' and cantidad_apuesta='1'");*/
$_SESSION['cdpp']=suma_registros("select sum(apuesta) as acum from ventas where idtaquilla='".$_SESSION['datos']['idtaquilla']."' and fecha='".date('Y-m-d')."' and cantidad_apuesta>'1'");
$_SESSION['cdpd']=suma_registros("select sum(apuesta) as acum from ventas where idtaquilla='".$_SESSION['datos']['idtaquilla']."' and fecha='".date('Y-m-d')."' and cantidad_apuesta='1'");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function cantidadSegundos($parts,$horas,$minutos,$segundos){\n \t\t$acumulado=0;\n \t\t$acumulado=(($horas*3600)+($minutos*60)+$segundos)/$parts;\n \t return $acumulado;\n\t}",
"function numeroFilas ($dias, $inicio) {\n\t\treturn (6 - (int)((42 - ($dias + $inicio)) / 7) );\n\t}",
"function dias($init,$finish)\n\t{\n\t $diferencia = strtotime($finish) - strtotime($init);\n\t \n\t //comprobamos el tiempo que ha pasado en segundos entre las dos fechas\n\t //floor devuelve el número entero anterior, si es 5.7 devuelve 5\n\t if($diferencia < 60){\n\t $tiempo = floor($diferencia) . \" segundos\";\n\t }else if($diferencia > 60 && $diferencia < 3600){\n\t $tiempo = floor($diferencia/60) . \" minutos'\";\n\t }else if($diferencia > 3600 && $diferencia < 86400){\n\t $tiempo = floor($diferencia/3600) . \" horas\";\n\t }else if($diferencia > 86400 && $diferencia < 2592000){\n\t $dias = floor($diferencia/86400);\n\t }else if($diferencia > 2592000 && $diferencia < 31104000){\n\t $tiempo = floor($diferencia/2592000) . \" meses\";\n\t }else if($diferencia > 31104000){\n\t $tiempo = floor($diferencia/31104000) . \" años\";\n\t }else{\n\t $tiempo = \"Error\";\n\t }\n\t return $dias;\n\t}",
"function habiles($mes,$nro_ano){\n\t\n\t\n $habiles = 0; \n // Consigo el número de días que tiene el mes mediante \"t\" en date()\n $dias_mes = date(\"t\", mktime(0, 0, 0, $mes, 1, $nro_ano));\n // Hago un bucle obteniendo cada día en valor númerico, si es menor que \n // 6 (sabado) incremento $habiles\n for($i=1;$i<=$dias_mes;$i++) {\n if (date(\"N\", mktime(0, 0, 0, $mes, $i, $nro_ano))<6) $habiles++;\n }\n\n return $habiles;\n \n}",
"public function contaDia()\n\t{\n\t\t$this->diasUteis = 0;\n\t\t\t// cal_days_in_month = (CALENDARIO, MES, ANO);\n\t\t$this->totalDiasMes = cal_days_in_month(CAL_GREGORIAN, $this->mes, $this->ano);\n\t\t\t// Pega todos os dias do mes e ano digitados\n\n\t\t\t// Pega somente os dias uteis (Seg. a Sex.)\n\t\tfor ($this->dia = 1; $this->dia <= $this->totalDiasMes; $this->dia++) {\n\t\t\t$timeStamp = mktime(0, 0, 0, $this->mes, $this->dia, $this->ano);\n\t\t\t$this->diaSemana = date('N', $timeStamp);\n\t\t\tif ($this->diaSemana < 6) $this->diasUteis++;\n\t\t}\n\t\treturn $this->diasUteis;\n\t}",
"function tot_homi_caroni_mes_ant() {\n\t\t//include_once 'connections/guayana_s.php';\n\t\t$conexion=new Conexion();\n\t\t$db=$conexion->getDbConn();\n\t\t$db->debug = false;\n\t\t$db->SetFetchMode(ADODB_FETCH_ASSOC);\n\t\t$muni_id = 3;\n\t\t$delito_deta = 7;\n\n\t\t$mes = mes_act();\n\n\t\t$query_sucesos = $db->Prepare(\"SELECT COUNT(fecha_suceso) AS tot_car_homi_mes_ant\n\t\t\tFROM sucesos AS s\n\t\t\tWHERE YEAR(fecha_suceso) = YEAR(now()) AND MONTH(fecha_suceso) = MONTH(DATE_ADD(CURDATE(),INTERVAL -1 MONTH))\n\t\t\tAND municipio_id = $muni_id AND delito_detalle_id = 7\");\n\n\t\t//solo mes 1\n\t\tif ($mes==1){\n\t\t\t$query_sucesos = $db->Prepare(\"SELECT COUNT(fecha_suceso) AS tot_car_homi_mes_ant\n\t\t\tFROM sucesos AS s\n\t\t\tWHERE YEAR(fecha_suceso) = YEAR(now())-1 AND MONTH(fecha_suceso) = MONTH(DATE_ADD(CURDATE(),INTERVAL -1 MONTH))\n\t\t\tAND municipio_id = $muni_id AND delito_detalle_id = $delito_deta\");\n\n\t\t}\n\t\t//San Felix\n\t\t$query_homici_mes_ant_sf = $db->Prepare(\"SELECT count(*) AS acu_mes_ant_sf\n\t\t\tFROM `sucesos` AS s\n\t\t\tINNER JOIN parroquias AS p ON s.parroquia_id = p.parroquia_id\n\t\t\tWHERE year(fecha_suceso) =year(now()) AND MONTH(fecha_suceso)=(Month(now())-1)\n\t\t\tAND s.municipio_id = $muni_id AND delito_detalle_id = $delito_deta AND capital_sector = 'sf'\");\n\n\t\t//solo mes 1\n\t\tif ($mes==1){\n\t\t\t$query_homici_mes_ant_sf = $db->Prepare(\"SELECT count(*) AS acu_mes_ant_sf\n\t\t\tFROM `sucesos` AS s\n\t\t\tINNER JOIN parroquias AS p ON s.parroquia_id = p.parroquia_id\n\t\t\tWHERE YEAR(fecha_suceso) = YEAR(now())-1 AND MONTH(fecha_suceso) = MONTH(DATE_ADD(CURDATE(),INTERVAL -1 MONTH))\n\t\t\tAND s.municipio_id = $muni_id AND delito_detalle_id = $delito_deta AND capital_sector = 'sf'\");\n\n\t\t}\n\t\t//Puerto Ordaz\n\t\t$query_homici_mes_ant_poz = $db->Prepare(\"SELECT count(*) AS acu_mes_ant_poz\n\t\t\tFROM `sucesos` AS s\n\t\t\tINNER JOIN parroquias AS p ON s.parroquia_id = p.parroquia_id\n\t\t\tWHERE year(fecha_suceso) =year(now()) AND MONTH(fecha_suceso)=(Month(now())-1)\n\t\t\tAND s.municipio_id = $muni_id AND delito_detalle_id = $delito_deta AND capital_sector = 'poz'\");\n\n\t\t//solo mes 1\n\t\tif ($mes==1){\n\t\t\t$query_homici_mes_ant_poz = $db->Prepare(\"SELECT count(*) AS acu_mes_ant_poz\n\t\t\tFROM `sucesos` AS s\n\t\t\tINNER JOIN parroquias AS p ON s.parroquia_id = p.parroquia_id\n\t\t\tWHERE YEAR(fecha_suceso) = YEAR(now())-1 AND MONTH(fecha_suceso) = MONTH(DATE_ADD(CURDATE(),INTERVAL -1 MONTH))\n\t\t\tAND s.municipio_id = $muni_id AND delito_detalle_id = $delito_deta AND capital_sector = 'poz'\");\n\n\t\t}\n\n\t\t$rs_sucesos = $db->Execute($query_sucesos);\n\t\t//4-1-17, devuelve varias campos tipo endpoint, en un array, para no tener q llamar varias funciones\n\t\t$rs_homici_mes_ant_sf = $db->Execute($query_homici_mes_ant_sf);\n\t\t$rs_homici_mes_ant_poz = $db->Execute($query_homici_mes_ant_poz);\n\t\t\n\n\t\t$homi_car_mes_ant = $rs_sucesos->Fields('tot_car_homi_mes_ant');\n\t\t$homi_car_mes_ant_sf = $rs_homici_mes_ant_sf->Fields('acu_mes_ant_sf');\n\t\t$homi_car_mes_ant_poz = $rs_homici_mes_ant_poz->Fields('acu_mes_ant_poz');\n\t\treturn array($homi_car_mes_ant,$homi_car_mes_ant_sf,$homi_car_mes_ant_poz);\n\t\t//return $homi_car_mes_ant;\n\t}",
"function cantidad($can,$id,$tipo){\n $u = date(\"Y-m-d\", mktime(0, 0, 0, $can+1, 1, date(\"Y\")));\n $e = date(\"Y-m-d\", mktime(0, 0, 0, $can, 1, date(\"Y\")));\n if($tipo==\"ventas\")\n $lsjfl = ventasxalum($id,$e,$u);\n if($tipo==\"compras\")\n $lsjfl = comprasxalum($id,$e,$u);\n if($tipo==\"publicaciones\")\n $lsjfl = publicacionesxalum($id,$e,$u);\n settype($lsjfl, \"integer\");\n return $lsjfl;\n}",
"function euclides($tipoTurista, $precio, $tipoVisitas, $TipoTurismo){\n $resultado1 = 10000;\n $resultado2 = 10000;\n $resultado3 = 10000;\n $resultado4 = 10000;\n $resultado5 = 10000;\n\n // se realizan 5 variables para asignar los 5 destinos encontrados\n $destino1 = 0;\n $destino2 = 0;\n $destino3 = 0;\n $destino4 = 0;\n $destino5 = 0;\n\n $data['destinos'] = $this->lista_destinos();\n\n foreach ($data['destinos'] as $datosR) {\n $sumatoria = 0;\n\n //***************Algoritmo de Euclides******************\n $sumatoria= (pow($datosR['TN_tipo_turista'] - $tipoTurista, 2)) + (pow($datosR['TF_precio'] - $precio , 2)) + (pow($datosR['TN_tipo_visitas'] - $tipoVisitas, 2)) + (pow($datosR['TN_tipo_turismo'] - $TipoTurismo, 2));\n $distanciaAux=sqrt($sumatoria);\n //*******************************************************\n //if para comparar cual registro contiene una distancia menor de acuerdo a los datos ingresados y se ordena de mas a menos parecidas\n if ($distanciaAux < $resultado1) {\n $resultado5 = $resultado4;\n $resultado4 = $resultado3;\n $resultado3 = $resultado2;\n $resultado2 = $resultado1;\n $resultado1 = $distanciaAux;\n\n $destino5 = $destino4;\n $destino4 = $destino3;\n $destino3 = $destino2;\n $destino2 = $destino1;\n $destino1 = $datosR['TN_id_DT'];\n } else if ($distanciaAux < $resultado2) {\n $resultado5 = $resultado4;\n $resultado4 = $resultado3;\n $resultado3 = $resultado2;\n $resultado2 = $distanciaAux;\n\n $destino5 = $destino4;\n $destino4 = $destino3;\n $destino3 = $destino2;\n $destino2 = $datosR['TN_id_DT'];\n } else if ($distanciaAux < $resultado3) {\n $resultado5 = $resultado4;\n $resultado4 = $resultado3;\n $resultado3 = $distanciaAux;\n\n $destino5 = $destino4;\n $destino4 = $destino3;\n $destino3 = $datosR['TN_id_DT'];\n } else if ($distanciaAux < $resultado4) {\n $resultado5 = $resultado4;\n $resultado4 = $distanciaAux;\n\n $destino5 = $destino4;\n $destino4 = $datosR['TN_id_DT'];\n } else if ($distanciaAux < $resultado5) {\n $resultado5 = $distanciaAux;\n\n $destino5 = $datosR['TN_id_DT'];\n }\n }\n\n $rutasFiltradas = array(); //Array para cargar las 5 rutas mas parecidas a lo que el usuario ingresó\n\n $rutasFiltradas[0] = $destino1;\n $rutasFiltradas[1] = $destino2;\n $rutasFiltradas[2] = $destino3;\n $rutasFiltradas[3] = $destino4;\n $rutasFiltradas[4] = $destino5;\n\n return $rutasFiltradas;\n }",
"function tot_homi_caroni_mes() {\n\t\tinclude_once 'connections/guayana_s.php';\n\t\t$conexion=new Conexion();\n\t\t$db=$conexion->getDbConn();\n\t\t$db->debug = false;\n\t\t$db->SetFetchMode(ADODB_FETCH_ASSOC);\n\t\t$muni_id = 3;\n\t\t$delito_deta = 7;\n\t\t$query_sucesos = $db->Prepare(\"SELECT COUNT(fecha_suceso) AS tot_homi_me, YEAR(now()) AS an, MONTH(now()) AS me\n\t\t\tFROM sucesos AS s\n\t\t\tWHERE YEAR(fecha_suceso) = YEAR(now()) AND MONTH(fecha_suceso) = MONTH(now()) AND municipio_id = $municipio_id AND delito_detalle_id = $delito_deta\");\n\t\t$rs_sucesos = $db->Execute($query_sucesos);\n\t\t$i = 0;\n\t\t$sucesos = array();\n\t\tforeach ($rs_sucesos as $suceso) {\n\t\t\t$sucesos[$i][1] = $suceso['tot_homi_me'];\n\t\t\t$sucesos[$i][2] = $suceso['an'];\n\t\t\t$sucesos[$i][3] = $suceso['me'];\n\t\t\t$i++;\n\t\t}\n\t\t//$sucesos[$i][\"tot_homi_mes\"] = $rs_sucesos->Fields('tot_homi_me');\n\t\t//$sucesos[$i][\"ano\"] = $rs_sucesos->Fields('an');\n\t\t//$sucesos[$i][\"mes\"] = $rs_sucesos->Fields('me');\n\n\t\treturn $sucesos;\n\t}",
"function calculo_dias($fecha_hast,$fecha_eq){\n\t\t//defino fecha 1\n\t\t$anio1 = substr($fecha_hast,6,9);\n\t\t$mes1 = substr($fecha_hast,3,-5);\n\t\t$dia1 = substr($fecha_hast,0,2);\n\t\t//defino fecha 2\t\t\t\n\t\t\t\n\t\t $dia2 = substr($fecha_eq,0,2);\n\t\t $mes2 = substr($fecha_eq,3,-5);\n\t\t $anio2 = substr($fecha_eq,6,9);\n\t\t//calculo timestam de las dos fechas\n\t\t$timestamp1 = mktime(0,0,0,$mes1,$dia1,$anio1);\n\t\t$timestamp2 = mktime(0,0,0,$mes2,$dia2,$anio2); \n\t\t//resto a una fecha la otra\n\t\t$segundos_diferencia = $timestamp1 - $timestamp2;\n\t\t//echo $segundos_diferencia;\n\t\t\n\t\t//convierto segundos en días\n\t\t$dias_diferencia = $segundos_diferencia / (60 * 60 * 24);\n\t\t//obtengo el valor absoulto de los días (quito el posible signo negativo)\n\t\t$dias_diferencia = abs($dias_diferencia);\n\t\t$meses_trans=$dias_diferencia/30;\n\t\t//quito los decimales a los días de diferencia\n\t\t//$dias_diferencia = floor($dias_diferencia); \n\t\t$meses_trans = floor($meses_trans); \n\t\t return ($meses_trans); \n}",
"function vCalculo_Valor($evento, $medidas, &$datos, $dato_diario)\r\n{\r\n\t$dato_magnitud = array();\r\n\tforeach($medidas as $c=>$v)\r\n\t{\r\n\t\tif(strstr($v, ' ', true) != \"\")\r\n\t\t{\r\n\t\t\t$dato_magnitud[$c] = (float)strstr($v, ' ', true);\t\r\n\t\t}\r\n\t\telse \r\n\t\t{\n\t\t\t$dato_magnitud[$c] = (float)$v;\t\n\t\t}\t\r\n\t}\r\n\tlist($valor,$conversion) = explode(\" \",$medidas[0]);\r\n\tswitch ($evento) \r\n\t{\t\t\r\n\t\tcase '9':\r\n\t\t\t//Calculo de minimo\r\n\t\t\t$indice = array_keys($dato_magnitud,min($dato_magnitud));\r\n\t\t\t$datos = array(min($dato_magnitud).\" \".$conversion,$dato_diario[$indice[0]][1],$dato_diario[$indice[0]][2],$dato_diario[$indice[0]][3]);\r\n\t\t\t//echo \"Minimo \".$datos[0].\" en el indice \".$indice[0].\" con fechas \".$dato_diario[$indice[0]][1].\" \".$dato_diario[$indice[0]][2].\" \".$dato_diario[$indice[0]][3].\" <br>\";\r\n\t\t\t//echo \"Minimo \".$datos[$indice_dia][0].\" de \".$indice_dia.\" en el indice \".$indice[0].\"<br>\";\r\n\t\t\tbreak;\r\n\t\tcase '10':\r\n\t\t\t//Calculo de promedio\r\n\t\t\t//$datos[$indice_dia] = ((array_sum($medidas))/(count($medidas)));\r\n\t\t\t$datos = array((round((array_sum($dato_magnitud))/(count($dato_magnitud)),3)).\" \".$conversion,date(\"Y-m-d 00:00:00\",strtotime($dato_diario[0][1])),$dato_diario[0][2],$dato_diario[0][3]);\r\n\t\t\t//echo \"Media \".$datos[$indice_dia][0].\" de \".$indice_dia.\" <br>\";\r\n\t\t\tbreak;\r\n\t\tcase '11':\r\n\t\t\t//Calculo de acumulado\r\n\t\t\t//$datos[$indice_dia] = (array_sum($medidas));\t\t\t\r\n\t\t\t$datos = array((array_sum($dato_magnitud)).\" \".$conversion,date(\"Y-m-d 00:00:00\",strtotime($dato_diario[0][1])),$dato_diario[0][2],$dato_diario[0][3]);\r\n\t\t\t//echo \"Acumulado \".$datos[$indice_dia][0].\" de \".$indice_dia.\" <br>\";\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\tcase '8':\r\n\t\t\t//Calculo de maximo\r\n\t\t\t//foreach($medidas as $c=>$v)\r\n\t\t\t//$mifirePHP -> log(\"Indice \".$c.\" valor -> \".$v);\r\n\t\t\t//$mifirePHP -> log(\"Máximo \".max($dato_magnitud));\r\n\t\t\t//$mifirePHP -> log(\"Conversión \".$conversion);\r\n\t\t\t$indice = array_keys($dato_magnitud,max($dato_magnitud));\r\n\t\t\t$datos = array(max($dato_magnitud).\" \".$conversion,$dato_diario[$indice[0]][1],$dato_diario[$indice[0]][2],$dato_diario[$indice[0]][3]);\r\n\t\t\t//echo \"Maximo \".$medidas[0].\" \".$datos[0].\" en el indice \".$indice[0].\" con fechas \".$dato_diario[$indice[0]][1].\" \".$dato_diario[$indice[0]][2].\" \".$dato_diario[$indice[0]][3].\" <br>\";\r\n\t\t\tbreak;\r\n\r\n\t}\r\n\t//$datos[$indice_dia] = '';\r\n\t//$indice_dia ++;\r\n}",
"function cantidadGeneralAlum($can,$tipo){\n $u = date(\"Y-m-d\", mktime(0, 0, 0, $can+1, 1, date(\"Y\")));\n $e = date(\"Y-m-d\", mktime(0, 0, 0, $can, 1, date(\"Y\")));\n if($tipo==\"publicaciones\")\n $lsjfl = publicacionesAlum($e,$u);\n if($tipo==\"compras\")\n $lsjfl = comprasAlum($e,$u);\n if($tipo==\"ventasM\")\n $lsjfl =comprasMalAlum($e,$u);\n if($tipo==\"comprasM\")\n $lsjfl = ventasMalAlum($e,$u);\n settype($lsjfl, \"integer\");\n return $lsjfl;\n}",
"public function calcNumKmComTanqueCheio()\n {\n $km = $this -> volumeTanque * 15;\n return $km;\n }",
"function calcularMora($dias){\n\t\t\t$datas = new Datas();\n\t\t\t$mora = $this->getvalor_mora();\n\t\t\t$aux = $this->getvencimento_original();\n\t\t\t$valor_total = 0;\n\t\t\tfor ($i=0; $i < $dias; $i++) { \n\t\t\t\t// if( $datas->ifDiaUtil($aux) ) {\n\t\t\t\t\t$valor_total = $valor_total + $mora;\t\n\t\t\t\t// }\n\t\t\t\t$aux = $datas->somarData($aux,1);\n\t\t\t}\n\t\t\treturn $valor_total;\n\t\t}",
"function calculateKPI($saifi, $saidi, $saifi_target, $saidi_target, $system) {\n // $no_month = count($saifi);\n // for mea, line&station, feeder\n foreach ($saifi as $key => $value) {\n switch ($value) {\n case ($value <= $saifi_target[$system.\"5\"][$key]):\n $saifi_kpi[] = '5.00';\n break;\n \n case ($value <= $saifi_target[$system.\"4\"][$key]):\n $saifi_kpi[] = number_format( ($value - $saifi_target[$system.\"4\"][$key]) / ($saifi_target[$system.\"5\"][$key] - $saifi_target[$system.\"4\"][$key]) + 4, 2, '.', '');\n break;\n \n case ($value <= $saifi_target[$system.\"3\"][$key]):\n $saifi_kpi[] = number_format( ($value - $saifi_target[$system.\"3\"][$key]) / ($saifi_target[$system.\"4\"][$key] - $saifi_target[$system.\"3\"][$key]) + 3, 2, '.', '');\n break;\n \n case ($value <= $saifi_target[$system.\"2\"][$key]):\n $saifi_kpi[] = number_format( ($value - $saifi_target[$system.\"2\"][$key]) / ($saifi_target[$system.\"3\"][$key] - $saifi_target[$system.\"2\"][$key]) + 2, 2, '.', '');\n break;\n \n case ($value <= $saifi_target[$system.\"1\"][$key]):\n $saifi_kpi[] = number_format( ($value - $saifi_target[$system.\"1\"][$key]) / ($saifi_target[$system.\"2\"][$key] - $saifi_target[$system.\"1\"][$key]) + 1, 2, '.', '');\n break;\n \n case ($value > $saifi_target[$system.\"1\"][$key]):\n $saifi_kpi[] = '1.00';\n break;\n // default:\n // # code...\n // break;\n }\n \n switch ($saidi[$key]) {\n case ($saidi[$key] <= $saidi_target[$system.\"5\"][$key]):\n $saidi_kpi[] = '5.00';\n break;\n \n case ($saidi[$key] <= $saidi_target[$system.\"4\"][$key]):\n $saidi_kpi[] = number_format( ($saidi[$key] - $saidi_target[$system.\"4\"][$key]) / ($saidi_target[$system.\"5\"][$key] - $saidi_target[$system.\"4\"][$key]) + 4, 2, '.', '');\n break;\n \n case ($saidi[$key] <= $saidi_target[$system.\"3\"][$key]):\n $saidi_kpi[] = number_format( ($saidi[$key] - $saidi_target[$system.\"3\"][$key]) / ($saidi_target[$system.\"4\"][$key] - $saidi_target[$system.\"3\"][$key]) + 3, 2, '.', '');\n break;\n \n case ($saidi[$key] <= $saidi_target[$system.\"2\"][$key]):\n $saidi_kpi[] = number_format( ($saidi[$key] - $saidi_target[$system.\"2\"][$key]) / ($saidi_target[$system.\"3\"][$key] - $saidi_target[$system.\"2\"][$key]) + 2, 2, '.', '');\n break;\n \n case ($saidi[$key] <= $saidi_target[$system.\"1\"][$key]):\n $saidi_kpi[] = number_format( ($saidi[$key] - $saidi_target[$system.\"1\"][$key]) / ($saidi_target[$system.\"2\"][$key] - $saidi_target[$system.\"1\"][$key]) + 1, 2, '.', '');\n break;\n \n case ($saidi[$key] > $saidi_target[$system.\"1\"][$key]):\n $saidi_kpi[] = '1.00';\n break;\n // default:\n // # code...\n // break;\n }\n } \n \n return [$saifi_kpi, $saidi_kpi];\n }",
"protected function cantidadDecimales()\n {\n return strlen(substr(strrchr(strval($this->data['precio_unit']), \".\"), 1));\n }",
"function hora_total($hora,$min,$seg)\r\n{\t\r\n\tif($hora<0)\r\n\t\t$hora = $hora * (-1);\r\n\tif (strlen($hora)==1)\r\n\t\t$hora = '0'.$hora;\r\n\t\r\n\tif($min<0)\r\n\t\t$min = $min * (-1);\r\n\tif (strlen($min)==1)\r\n\t\t$min = '0'.$min;\r\n\t\r\n\tif($seg<0)\r\n\t\t$seg = $seg * (-1);\r\n\tif (strlen($seg)==1)\r\n\t\t$seg = '0'.$seg;\r\n\t$hora = $hora.','.$min.','.$seg;\r\n\treturn $hora;\r\n}",
"function devolverNumeroAnteriorADiesmil($acumulador,$ultimoNumeroAleatorio)\n{\n\t//pero lo prefiero asi\n\treturn $acumulador-$ultimoNumeroAleatorio;\n}",
"function retorna_diafinal($mes,$ano) {\n\tswitch ($mes) {\n \t\tcase 1 :\n \t\tcase 3 :\n \t\tcase 5 :\n \t\tcase 7 :\n \t\tcase 8 :\n \t\tcase 10 :\n \t\tcase 12 : $dia = 31; \n \t\t\t\t break;\n \t\tcase 2 : if(($ano%4) == 0) {\n \t\t\t\t\t $dia = 29;\t\n \t\t\t\t }\n \t\t\t\t else {\n \t\t\t\t\t $dia = 28;\t\n \t\t\t\t }\n \t\t\t\t break;\n \t\tdefault : $dia = 30;\n \t}\n \t\n \treturn($dia);\n}",
"public function getDiasAdiantamento () {\n \n $iDiasGozo = $this->getDiasGozo();\n $oDataFinal = $this->getPeriodoFinal();\n \n /** \n * Caso o gozo de férias seja dentro de um mes \n * não haverá nenhum dia adiantado\n */\n if ( $this->getPeriodoInicial()->getMes() == $this->getPeriodoFinal()->getMes() ) {\n return 0;\n }\n \n /**\n * Caso o Mes inicial de gozo for dirferente do Mes de Pagamento, tudo será adiantado\n */\n if ( $this->getPeriodoInicial()->getMes() > $this->getMesPagamento() ) {\n return $this->getDiasGozo();\n }\n\n $oInicioMesAdiantado = new DBDate('01/'.$oDataFinal->getMes() .'/'. $oDataFinal->getAno() );//Primeiro dia de mes adiantado.\n $oFimMesAdiantado = clone $oDataFinal;\n $oFimMesAdiantado->modificarIntervalo(\"+1 day\");//Soma 1 dia no intervalo pois deve considerar o dia final\n $iDiasAdiantados = DBDate::calculaIntervaloEntreDatas($oFimMesAdiantado, $oInicioMesAdiantado, \"d\");\n \n \treturn $iDiasAdiantados;\n }",
"function retornaDiasData($dia, $mes, $ano){\n $totaldias = 0;\n $bissexto = ehBissexto($ano);\n\n // Busca todos os dias dos anos\n for ($i=1; $i < $ano; $i++) { \n if(ehBissexto($i)):\n $totaldias += 366;\n else:\n $totaldias += 365;\n endif;\n }\n\n // Total de dias do mes\n $diasmes = 0;\n for ($i=1; $i < $mes; $i++) { ;\n $diasmes += retornarDiasMes($bissexto, $i);\n }\n $totaldias += $diasmes;\n\n // Total de dias do dia\n $totaldias += $dia;\n\n return $totaldias;\n}",
"function calculateKPI($saifi, $saidi, $saifi_target, $saidi_target, $system) {\n // $no_month = count($saifi);\n if ($system != 'e') { // for mea, line&station, feeder\n foreach ($saifi as $key => $value) {\n switch ($value) {\n case ($value <= $saifi_target[$system.\"5\"][$key]):\n $saifi_kpi[] = '5.00';\n break;\n \n case ($value <= $saifi_target[$system.\"4\"][$key]):\n $saifi_kpi[] = number_format( ($value - $saifi_target[$system.\"4\"][$key]) / ($saifi_target[$system.\"5\"][$key] - $saifi_target[$system.\"4\"][$key]) + 4, 2, '.', '');\n \n case ($value <= $saifi_target[$system.\"3\"][$key]):\n $saifi_kpi[] = number_format( ($value - $saifi_target[$system.\"3\"][$key]) / ($saifi_target[$system.\"4\"][$key] - $saifi_target[$system.\"3\"][$key]) + 3, 2, '.', '');\n break;\n \n case ($value <= $saifi_target[$system.\"2\"][$key]):\n $saifi_kpi[] = number_format( ($value - $saifi_target[$system.\"2\"][$key]) / ($saifi_target[$system.\"3\"][$key] - $saifi_target[$system.\"2\"][$key]) + 2, 2, '.', '');\n break;\n \n case ($value <= $saifi_target[$system.\"1\"][$key]):\n $saifi_kpi[] = number_format( ($value - $saifi_target[$system.\"1\"][$key]) / ($saifi_target[$system.\"2\"][$key] - $saifi_target[$system.\"1\"][$key]) + 1, 2, '.', '');\n break;\n \n case ($value > $saifi_target[$system.\"1\"][$key]):\n $saifi_kpi[] = '1.00';\n break;\n // default:\n // # code...\n // break;\n }\n \n switch ($saidi[$key]) {\n case ($saidi[$key] <= $saidi_target[$system.\"5\"][$key]):\n $saidi_kpi[] = '5.00';\n break;\n \n case ($saidi[$key] <= $saidi_target[$system.\"4\"][$key]):\n $saidi_kpi[] = number_format( ($saidi[$key] - $saidi_target[$system.\"4\"][$key]) / ($saidi_target[$system.\"5\"][$key] - $saidi_target[$system.\"4\"][$key]) + 4, 2, '.', '');\n break;\n \n case ($saidi[$key] <= $saidi_target[$system.\"3\"][$key]):\n $saidi_kpi[] = number_format( ($saidi[$key] - $saidi_target[$system.\"3\"][$key]) / ($saidi_target[$system.\"4\"][$key] - $saidi_target[$system.\"3\"][$key]) + 3, 2, '.', '');\n break;\n \n case ($saidi[$key] <= $saidi_target[$system.\"2\"][$key]):\n $saidi_kpi[] = number_format( ($saidi[$key] - $saidi_target[$system.\"2\"][$key]) / ($saidi_target[$system.\"3\"][$key] - $saidi_target[$system.\"2\"][$key]) + 2, 2, '.', '');\n break;\n \n case ($saidi[$key] <= $saidi_target[$system.\"1\"][$key]):\n $saidi_kpi[] = number_format( ($saidi[$key] - $saidi_target[$system.\"1\"][$key]) / ($saidi_target[$system.\"2\"][$key] - $saidi_target[$system.\"1\"][$key]) + 1, 2, '.', '');\n break;\n \n case ($saidi[$key] > $saidi_target[$system.\"1\"][$key]):\n $saidi_kpi[] = '1.00';\n break;\n // default:\n // # code...\n // break;\n }\n } \n } else { // for egat\n \n // print_r($saifi);\n // print($system);\n foreach ($saifi as $key => $value) {\n switch (settype($value, \"float\")) {\n case ($value <= $saifi_target[$system.\"5\"][$key]):\n $saifi_kpi[] = \"good\";\n break;\n \n case ($value > $saifi_target[$system.\"5\"][$key]):\n $saifi_kpi[] = \"bad\";\n break;\n }\n switch (settype($saidi[$key], \"float\")) {\n case ($saidi[$key] <= $saidi_target[$system.\"5\"][$key]):\n $saidi_kpi[] = \"good\";\n break;\n \n case ($saidi[$key] > $saidi_target[$system.\"5\"][$key]):\n $saidi_kpi[] = \"bad\";\n break;\n }\n } \n }\n\n return [$saifi_kpi, $saidi_kpi];\n }",
"public function promedio(){\n if($this->U1<=60||$this->U2<=60||$this->U3<=60){//si alguna de las unidades es <=60 el promedio es 60\n return 60;\n }\n \n return ($this->U1+$this->U2+$this->U3)/3;\n }",
"function calculoIMC ($peso=0, $metros=0){\n\n $imc = (int)$peso / ((float)$metros*2);\n \n if ($imc <17){\n echo \"<p>Muito abaixo do peso!</p>\";\n }elseif(($imc >= 17) && ($imc < 18.5)){\n echo \"<p>Abaixo do peso!</p>\";\n }elseif (($imc >= 18.5) && ($imc < 25)){\n echo \"<p>Peso ideal!</p>\";\n }elseif (($imc >= 25) && ($imc < 30)){\n echo \"<p>Sobre peso!</p>\";\n }elseif (($imc >= 30) && ($imc < 35)){\n echo \"<p>Obesidade!</p>\";\n }elseif (($imc >= 35) && ($imc < 40)){\n echo \"<p>Obesidade severa!</p>\";\n }else{\n echo \"<p>Obesidade morbida!</p>\";\n }\n return $imc;\n}",
"public function nbEquipeParLevel()\n {\n $monfichier = fopen('data.json', 'r+');\n\n // 2 : on lit la première ligne du fichier\n $json = fgets($monfichier);\n\n // 3 : quand on a fini de l'utiliser, on ferme le fichier\n fclose($monfichier);\n\n $obj = json_decode($json);\n\n\n $nb_jaune = mb_substr_count($obj->{'joueur'}->{'Niveau'}, 'Jaunes');//compte le nombre de joueur de niveau jaunes\n $nb_rouge = mb_substr_count($obj->{'joueur'}->{'Niveau'}, 'Rouges');//compte le nombre de joueur de niveau rouges\n\n\n $nb_equipe_jaune = intdiv($nb_jaune, 3);\n $nb_equipe_rouge = intdiv($nb_rouge, 3);\n\n $nb_reste_jaune = $nb_jaune % 3;\n $nb_reste_rouge = $nb_rouge % 3;\n\n $nb_equipe2_jaune = 0;\n $nb_equipe2_rouge = 0;\n\n if ($nb_reste_jaune == 1) {\n $nb_equipe_jaune -= 1;\n $nb_equipe2_jaune = 2;\n }\n\n\n if ($nb_reste_rouge == 1) {\n $nb_equipe_rouge -= 1;\n $nb_equipe2_rouge = 2;\n }\n\n if ($nb_reste_jaune == 2) {\n $nb_equipe2_jaune = 1;\n }\n\n\n if ($nb_reste_rouge == 2) {\n $nb_equipe2_rouge = 1;\n }\n\n return $nb_equipe_jaune . ' ' . $nb_equipe_rouge . ' ' . $nb_equipe2_jaune . ' ' . $nb_equipe2_rouge;\n }",
"function function_terbilang($x) {\n $x = abs($x);\n $angka = array(\"\", \"satu\", \"dua\", \"tiga\", \"empat\", \"lima\",\n \"enam\", \"tujuh\", \"delapan\", \"sembilan\", \"sepuluh\", \"sebelas\");\n $temp = \"\";\n if ($x <12) {\n $temp = \" \". $angka[$x];\n } else if ($x <20) {\n $temp = function_terbilang($x - 10). \" belas\";\n } else if ($x <100) {\n $temp = function_terbilang($x/10).\" puluh\". function_terbilang($x % 10);\n } else if ($x <200) {\n $temp = \" Seratus\" . function_terbilang($x - 100);\n } else if ($x <1000) {\n $temp = function_terbilang($x/100) . \" ratus\" . function_terbilang($x % 100);\n } else if ($x <2000) {\n $temp = \" Seribu\" . function_terbilang($x - 1000);\n } else if ($x <1000000) {\n $temp = function_terbilang($x/1000) . \" ribu\" . function_terbilang($x % 1000);\n } else if ($x <1000000000) {\n $temp = function_terbilang($x/1000000) . \" juta\" . function_terbilang($x % 1000000);\n } else if ($x <1000000000000) {\n $temp = function_terbilang($x/1000000000) . \" milyar\" . function_terbilang(fmod($x,1000000000));\n } else if ($x <1000000000000000) {\n $temp = function_terbilang($x/1000000000000) . \" trilyun\" . function_terbilang(fmod($x,1000000000000));\n }\n return $temp;\n}",
"public function getTotalM () {\n\t\t$countM=0;\n\t\t$dn=$this->DataNilai;\n\t\tif (count($dn) > 0) {\n\t\t\twhile (list($a,$b)=each($dn)) {\t\t\t\t\t\t\n\t\t\t\tif ($b['n_kual'] != \"\" &&$b['n_kual'] != \"-\") {\t\t\t\t \t\t\t\t\n\t\t\t\t\t$m = (intval($b['sks'])) * $this->AngkaMutu[$b['n_kual']]; \n\t\t\t\t\t$countM = $countM+$m;\n\t\t\t\t} \n\t\t\t}\t\t\t\n\t\t}\n\t\treturn $countM;\t\t\n\t}",
"function tiempo_transcurrido($fecha_nacimiento, $fecha_control)\n{\n $fecha_actual = $fecha_control;\n \n if(!strlen($fecha_actual))\n {\n $fecha_actual = date('d/m/y');\n }\n\n // separamos en partes las fechas \n $array_nacimiento = explode ( \"/\", $fecha_nacimiento ); \n $array_actual = explode ( \"/\", $fecha_actual ); \n\n $anos = $array_actual[2] - $array_nacimiento[2]; // calculamos años \n $meses = $array_actual[1] - $array_nacimiento[1]; // calculamos meses \n $dias = $array_actual[0] - $array_nacimiento[0]; // calculamos días \n\n //ajuste de posible negativo en $días \n if ($dias < 0) \n { \n --$meses; \n\n //ahora hay que sumar a $dias los dias que tiene el mes anterior de la fecha actual \n switch ($array_actual[1]) { \n case 1: \n $dias_mes_anterior=31;\n break; \n case 2: \n $dias_mes_anterior=31;\n break; \n case 3: \n if (bisiesto($array_actual[2])) \n { \n $dias_mes_anterior=29;\n break; \n } \n else \n { \n $dias_mes_anterior=28;\n break; \n } \n case 4:\n $dias_mes_anterior=31;\n break; \n case 5:\n $dias_mes_anterior=30;\n break; \n case 6:\n $dias_mes_anterior=31;\n break; \n case 7:\n $dias_mes_anterior=30;\n break; \n case 8:\n $dias_mes_anterior=31;\n break; \n case 9:\n $dias_mes_anterior=31;\n break; \n case 10:\n $dias_mes_anterior=30;\n break; \n case 11:\n $dias_mes_anterior=31;\n break; \n case 12:\n $dias_mes_anterior=30;\n break; \n } \n\n $dias=$dias + $dias_mes_anterior;\n\n if ($dias < 0)\n {\n --$meses;\n if($dias == -1)\n {\n $dias = 30;\n }\n if($dias == -2)\n {\n $dias = 29;\n }\n }\n }\n\n //ajuste de posible negativo en $meses \n if ($meses < 0) \n { \n --$anos; \n $meses=$meses + 12; \n }\n\n $tiempo[0] = $anos;\n $tiempo[1] = $meses;\n $tiempo[2] = $dias;\n\n return $tiempo;\n}",
"function dadosTemporais($usuario, $result, $raioAgrupamento){ \n // \n $numSemana = 0; // Flag para controlar quando troca a semana \n $semana = 0; \n //\n for ($i=0; $i< 30; $i++){ \n $dom[$i] = array(); \n $seg[$i] = array();\n $ter[$i] = array();\n $qua[$i] = array();\n $qui[$i] = array();\n $sex[$i] = array();\n $sab[$i] = array();\n }\n\n // Adiciona as coordenadas em cada vetor separado por dias da semana, semana por semana\n for ($i=0; $i< count($result); $i++){ \n switch (diaDaSemana($result[$i]['time'])){\n case '0': // Domingo \n if(diaDaSemana($result[$i]['time']) < $numSemana) $semana++; // Trocou a semana \n array_push($dom[$semana], $result[$i]['id'], $result[$i]['latitude'], $result[$i]['longitude'], $result[$i]['time']);\n break;\n case '1': // Segunda \n if(diaDaSemana($result[$i]['time']) < $numSemana) $semana++; // Trocou a semana \n array_push($seg[$semana], $result[$i]['id'], $result[$i]['latitude'], $result[$i]['longitude'], $result[$i]['time']);\n break;\n case '2': // Terça \n if(diaDaSemana($result[$i]['time']) < $numSemana) $semana++; // Trocou a semana \n array_push($ter[$semana], $result[$i]['id'], $result[$i]['latitude'], $result[$i]['longitude'], $result[$i]['time']);\n break;\n case '3': // Quarta \n if(diaDaSemana($result[$i]['time']) < $numSemana) $semana++; // Trocou a semana \n array_push($qua[$semana], $result[$i]['id'], $result[$i]['latitude'], $result[$i]['longitude'], $result[$i]['time']);\n break;\n case '4': // Quinta \n if(diaDaSemana($result[$i]['time']) < $numSemana) $semana++; // Trocou a semana \n array_push($qui[$semana], $result[$i]['id'], $result[$i]['latitude'], $result[$i]['longitude'], $result[$i]['time']);\n break;\n case '5': // Sexta \n if(diaDaSemana($result[$i]['time']) < $numSemana) $semana++; // Trocou a semana \n array_push($sex[$semana], $result[$i]['id'], $result[$i]['latitude'], $result[$i]['longitude'], $result[$i]['time']);\n break;\n case '6': // Sábado \n if(diaDaSemana($result[$i]['time']) < $numSemana) $semana++; // Trocou a semana \n array_push($sab[$semana], $result[$i]['id'], $result[$i]['latitude'], $result[$i]['longitude'], $result[$i]['time']);\n break; \n }\n // Atribuição para controle das trocas de semana\n $numSemana = diaDaSemana($result[$i]['time']); \n }\n\n // Agora que está tudo separado em dias, é feito o cálculo das distancias por dia e exibido na tabela.. \n echo ' \n <br/>\n \n <table>\n <tr>\n <th colspan=\"8\" style=\"text-align: center;\">POSTAGENS AGRUPADAS POR DIAS DA SEMANA</th>\n </tr>\n <tr> \n <th>Semana</th>\n <th>Domingo</th>\n <th>Segunda-Feira</th>\n <th>Terça-Feira</th>\n <th>Quarta-Feira</th>\n <th>Quinta-Feira</th>\n <th>Sexta-Feira</th>\n <th>Sábado</th>\n </tr>'; \n //\n $somDistMedDom = 0;\n $somDistMedSeg = 0;\n $somDistMedTer = 0;\n $somDistMedQua = 0;\n $somDistMedQui = 0;\n $somDistMedSex = 0;\n $somDistMedSab = 0;\n //\n $vetMedDom = array();\n $vetMedSeg = array();\n $vetMedTer = array();\n $vetMedQua = array();\n $vetMedQui = array();\n $vetMedSex = array();\n $vetMedSab = array();\n //\n for ($i=0; $i<= $semana; $i++){ \n echo ' \n <tr>\n <td style=\"text-align: center;\"> \n '.($i+1).'\n </td>\n <td valign=\"top\"> \n '.dadosDoDia($usuario, $dom[$i], $raioAgrupamento, 0).' <!-- Domingo --> \n </td>\n <td valign=\"top\"> \n '.dadosDoDia($usuario, $seg[$i], $raioAgrupamento, 1).' <!-- Segunda --> \n </td>\n <td valign=\"top\"> \n '.dadosDoDia($usuario, $ter[$i], $raioAgrupamento, 2).' <!-- Terça --> \n </td>\n <td valign=\"top\"> \n '.dadosDoDia($usuario, $qua[$i], $raioAgrupamento, 3).' <!-- Quarta --> \n </td>\n <td valign=\"top\"> \n '.dadosDoDia($usuario, $qui[$i], $raioAgrupamento, 4).' <!-- Quinta --> \n </td>\n <td valign=\"top\"> \n '.dadosDoDia($usuario, $sex[$i], $raioAgrupamento, 5).' <!-- Sexta --> \n </td>\n <td valign=\"top\"> \n '.dadosDoDia($usuario, $sab[$i], $raioAgrupamento, 6).' <!-- Sábado --> \n </td>\n </tr>';\n\n // Insere as medias de distancias uteis nos vetores, para depois calcular as medias e os desvios padroes\n array_push($vetMedDom, disMedia($dom[$i], $raioAgrupamento));\n array_push($vetMedSeg, disMedia($seg[$i], $raioAgrupamento));\n array_push($vetMedTer, disMedia($ter[$i], $raioAgrupamento));\n array_push($vetMedQua, disMedia($qua[$i], $raioAgrupamento));\n array_push($vetMedQui, disMedia($qui[$i], $raioAgrupamento));\n array_push($vetMedSex, disMedia($sex[$i], $raioAgrupamento));\n array_push($vetMedSab, disMedia($sab[$i], $raioAgrupamento));\n }\n\n //\n $vetVet[0] = $vetMedDom;\n $vetVet[1] = $vetMedSeg;\n $vetVet[2] = $vetMedTer;\n $vetVet[3] = $vetMedQua;\n $vetVet[4] = $vetMedQui;\n $vetVet[5] = $vetMedSex;\n $vetVet[6] = $vetMedSab;\n\n echo '\n <tr>\n <td colspan=\"8\" style=\"text-align: center;\"><b>CÁLCULOS BASEADOS NAS '.($semana+1).' SEMANAS</b></td>\n </tr>\n\n <tr> \n <th>--</th>\n <th>Domingo</th>\n <th>Segunda-Feira</th>\n <th>Terça-Feira</th>\n <th>Quarta-Feira</th>\n <th>Quinta-Feira</th>\n <th>Sexta-Feira</th>\n <th>Sábado</th>\n </tr>\n\n <tr> \n <td>--</td>'; \n for ($i=0; $i < count($vetVet); $i++) { \n echo '\n <td>\n <h4 style=\"color: #00b300;\">Distância total: </h4>'.distanciaTotal($vetVet[$i]).' km\n <h4 style=\"color: #d45500;\">Média das distâncias: </h4>'.media($vetVet[$i]).' km \n <h4 style=\"color: #cc00ff;\">Desvio padrão da média: </h4>'.desvioPadrao($vetVet[$i]).' \n </td>';\n } \n echo '\n </tr>\n </table>\n <br/><br/>';\n }",
"function digitos($ceros,$secuencia){\t\t\t\r\n\t\tif($secuencia==\"999\"){//si se llega a 999 el siguiente debe de ser 001\r\n\t\t $resultado=\"001\";\t\r\n\t\t}else{ //sino se genera el siguiente con los ceros que sean necesarios delante \r\n\t\t\t$resultado = \"\".intval($secuencia) + 1;//se pasa la secuencia a entero, para poder sumarle uno\r\n\t\t\t$longitud=strlen($resultado); \t//se calcula la longitud del del resultado obtenido, para luego calcularle los ceros que necesita.\r\n\t\t\twhile ($longitud<$ceros){//si tiene menos longitud de la q la D.G.T nos pide seguimos añadiendole ceros al resultado.\t\t\t \r\n\t\t\t\t$resultado=\"0\".$resultado;\r\n\t\t\t\t$longitud=strlen($resultado); \t\t\t\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn $resultado;\t//devuelve la nueva secuencia\t\t \r\n\t}"
] | [
"0.6346129",
"0.6288523",
"0.6255821",
"0.61455363",
"0.6125023",
"0.6093438",
"0.6030438",
"0.6021436",
"0.5978402",
"0.58700377",
"0.5860811",
"0.5860784",
"0.5810596",
"0.5804202",
"0.5765526",
"0.5755057",
"0.573028",
"0.5703323",
"0.5691195",
"0.5670921",
"0.5663479",
"0.56527466",
"0.5651425",
"0.5641654",
"0.5578523",
"0.556842",
"0.5564288",
"0.5553317",
"0.55507356",
"0.5540193"
] | 0.649145 | 0 |
Return full virtual path to icon. | public function getVirtualIconPath()
{
return !$this->image ? '' : url('/floors/' . $this->id . '/image');
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static function iconPath()\n {\n return Craft::getAlias(\"@dfo/elasticraft/assetbundles/elasticraftutilityutility/dist/img/ElasticraftUtility-icon.svg\");\n }",
"public function getPhysicalIconPath()\n {\n return !$this->image ? '' : storage_path() . '/app/images/floors/' . $this->id . '/' . $this->image;\n }",
"public static function iconPath()\n {\n return Craft::getAlias(\"@closum/closumconnector/assetbundles/configurationsutility/dist/img/Configurations-icon.svg\");\n }",
"public function pathImageOpening()\n {\n return asset('public/main/icons/projectPublish.png');\n }",
"public function relIconPath()\n {\n preg_match('/icons\\/.*/', $this->icon, $matches);\n\n return $matches[0];\n }",
"public function getIconsPath(): string\n {\n return \"EXT:{$this->getExtensionKey()}/Resources/Public/Icons/ContentElement/\";\n }",
"protected function getIcon()\n {\n try {\n $adapter = $this->fs->getAdapter();\n } catch (\\Exception $e) {\n $adapter = null;\n }\n\n if ($adapter instanceof CachedAdapter) {\n $adapter = $adapter->getAdapter();\n }\n\n if ($adapter instanceof League\\Flysystem\\Adapter\\AbstractFtpAdapter) {\n $icon = 'volume_icon_ftp.png';\n } elseif ($adapter instanceof League\\Flysystem\\Dropbox\\DropboxAdapter) {\n $icon = 'volume_icon_dropbox.png';\n } else {\n $icon = 'volume_icon_local.png';\n }\n\n $parentUrl = defined('ELFINDER_IMG_PARENT_URL') ? (rtrim(ELFINDER_IMG_PARENT_URL, '/') . '/') : '';\n return $parentUrl . 'img/' . $icon;\n }",
"public function getIconSrcPath(): string\n {\n $iconSource = \"{$this->getIconsPath()}{$this->getIconIdentifier()}.svg\";\n if (!file_exists(GeneralUtility::getFileAbsFileName($iconSource))) {\n $iconSource = \"EXT:\".ContentElementRegistry::EXTENSION_KEY.\"/Resources/Public/Icons/CEDefaultIcon.svg\";\n }\n\n return $iconSource;\n }",
"public function getIconWebPath(){\n\t\treturn \"/uploads/account/{$this->getId()}/{$this->getPhoto()}\";\n\t}",
"public function getMagic360IconPath()\n {\n static $path = null;\n if (is_null($path)) {\n $this->toolObj->params->setProfile('product');\n $icon = $this->toolObj->params->getValue('icon');\n $hash = hash('sha256', $icon);\n $model = $this->magic360ImageHelper->getModel();\n $mediaDirectory = $model->getMediaDirectory();\n if ($mediaDirectory->isFile('magic360/icon/'.$hash.'/360icon.jpg')) {\n $path = 'icon/'.$hash.'/360icon.jpg';\n } else {\n $rootDirectory = $model->getRootDirectory();\n if ($rootDirectory->isFile($icon)) {\n $rootDirectory->copyFile($icon, 'magic360/icon/'.$hash.'/360icon.jpg', $mediaDirectory);\n $path = 'icon/'.$hash.'/360icon.jpg';\n } else {\n $path = '';\n }\n }\n }\n return $path;\n }",
"function icon() {\n\t\t$url = $this->plugin_url();\n\t\t$url .= '/images/transmit_blue.png';\n\t\treturn $url;\n\t}",
"protected function _getFeatherIconsPath()\n {\n $settings = $this->getSettings();\n $baseUrl = Front::getInstance()->getRequest()->getBaseUrl();\n\n return (($this->isAbsolutePath() === true) ? $settings['site_path'] : $baseUrl)\n . \\Ppb\\Utility::URI_DELIMITER . \\Ppb\\Utility::getFolder('img')\n . \\Ppb\\Utility::URI_DELIMITER . 'feather';\n }",
"public function get_menu_icon() {\r\n\r\n\t\treturn file_get_contents( $this->get_base_path() . '/images/menu-icon.svg' );\r\n\r\n\t}",
"public function getFilePath()\n {\n return str_replace(\n '/',\n DIRECTORY_SEPARATOR,\n $this->config['path_to_fontawesome'] . \"/\" . $this->getDir() . \"/\" . $this->getFilename() . \".svg\"\n );\n }",
"protected function get__icon()\n\t{\n\t\treturn 'files-o';\n\t}",
"public function get_menu_icon() {\n\n\t\treturn file_get_contents( $this->get_base_path() . '/images/menu-icon.svg' );\n\n\t}",
"public function get_menu_icon() {\n\n\t\treturn file_get_contents( $this->get_base_path() . '/images/menu-icon.svg' );\n\n\t}",
"public function urlIcon(): string;",
"public function getImageUrlIcon() \n {\n $icon = $this->icon;\n return Yii::$app->urlManager->baseUrl . '/admin/uploads/center/' . $icon;\n }",
"public function getIconUrl();",
"public function getIcon(): string;",
"private function get_icon() {\n\t\treturn '<svg width=\"18\" height=\"22\" viewBox=\"0 0 18 22\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M9 0L0 4V10C0 15.55 3.84 20.74 9 22C14.16 20.74 18 15.55 18 10V4L9 0Z\" fill=\"#D63638\"/><path d=\"M7.99121 6.00894H10.0085V11.9968H7.99121V6.00894Z\" fill=\"#FFF\"/><path d=\"M7.99121 14.014H10.0085V15.9911H7.99121V14.014Z\" fill=\"#FFF\"/></svg>';\n\t}",
"public function getIcon() {\n return strval($this->icon);\n }",
"public function get_icon()\n {\n return parent::get_icon();\n }",
"public function getIconUrl()\n {\n return $this->icon_url;\n }",
"public function get_icon() {\n return 'astha far fa-images';\n }",
"public function icon() {\n\t\t$icon_url = MACHETE_BASE_URL . 'inc/' . $this->params['slug'] . '/icon.svg';\n\t\techo '<img src=\"' . esc_attr( $icon_url ) . '\" style=\"width: 96px; height: 96px;\">';\n\t}",
"public function getIcon()\n {\n if (!$this->icon) {\n return \"\";\n }\n return Html::get()->image($this->icon, $this->translate($this->label));\n }",
"public function getIcon(): string\n {\n return 'plugins/LiveStormBundle/Assets/img/livestorm.png';\n }",
"public function getIcon() {}"
] | [
"0.79906994",
"0.78662187",
"0.77999794",
"0.7780443",
"0.7721971",
"0.7560562",
"0.74383086",
"0.7413048",
"0.73587495",
"0.7179579",
"0.7155281",
"0.7069981",
"0.70225394",
"0.69651496",
"0.6953373",
"0.6942897",
"0.6942897",
"0.69302094",
"0.6860754",
"0.68559784",
"0.68493897",
"0.6786534",
"0.67294544",
"0.6726582",
"0.6696649",
"0.6692764",
"0.6662223",
"0.6662039",
"0.66341513",
"0.66255295"
] | 0.85402334 | 0 |
Return full physical path to icon. | public function getPhysicalIconPath()
{
return !$this->image ? '' : storage_path() . '/app/images/floors/' . $this->id . '/' . $this->image;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getVirtualIconPath()\n {\n return !$this->image ? '' : url('/floors/' . $this->id . '/image');\n }",
"public function relIconPath()\n {\n preg_match('/icons\\/.*/', $this->icon, $matches);\n\n return $matches[0];\n }",
"public static function iconPath()\n {\n return Craft::getAlias(\"@dfo/elasticraft/assetbundles/elasticraftutilityutility/dist/img/ElasticraftUtility-icon.svg\");\n }",
"public static function iconPath()\n {\n return Craft::getAlias(\"@closum/closumconnector/assetbundles/configurationsutility/dist/img/Configurations-icon.svg\");\n }",
"public function pathImageOpening()\n {\n return asset('public/main/icons/projectPublish.png');\n }",
"public function getMagic360IconPath()\n {\n static $path = null;\n if (is_null($path)) {\n $this->toolObj->params->setProfile('product');\n $icon = $this->toolObj->params->getValue('icon');\n $hash = hash('sha256', $icon);\n $model = $this->magic360ImageHelper->getModel();\n $mediaDirectory = $model->getMediaDirectory();\n if ($mediaDirectory->isFile('magic360/icon/'.$hash.'/360icon.jpg')) {\n $path = 'icon/'.$hash.'/360icon.jpg';\n } else {\n $rootDirectory = $model->getRootDirectory();\n if ($rootDirectory->isFile($icon)) {\n $rootDirectory->copyFile($icon, 'magic360/icon/'.$hash.'/360icon.jpg', $mediaDirectory);\n $path = 'icon/'.$hash.'/360icon.jpg';\n } else {\n $path = '';\n }\n }\n }\n return $path;\n }",
"public function getIconSrcPath(): string\n {\n $iconSource = \"{$this->getIconsPath()}{$this->getIconIdentifier()}.svg\";\n if (!file_exists(GeneralUtility::getFileAbsFileName($iconSource))) {\n $iconSource = \"EXT:\".ContentElementRegistry::EXTENSION_KEY.\"/Resources/Public/Icons/CEDefaultIcon.svg\";\n }\n\n return $iconSource;\n }",
"public function getIconsPath(): string\n {\n return \"EXT:{$this->getExtensionKey()}/Resources/Public/Icons/ContentElement/\";\n }",
"protected function getIcon()\n {\n try {\n $adapter = $this->fs->getAdapter();\n } catch (\\Exception $e) {\n $adapter = null;\n }\n\n if ($adapter instanceof CachedAdapter) {\n $adapter = $adapter->getAdapter();\n }\n\n if ($adapter instanceof League\\Flysystem\\Adapter\\AbstractFtpAdapter) {\n $icon = 'volume_icon_ftp.png';\n } elseif ($adapter instanceof League\\Flysystem\\Dropbox\\DropboxAdapter) {\n $icon = 'volume_icon_dropbox.png';\n } else {\n $icon = 'volume_icon_local.png';\n }\n\n $parentUrl = defined('ELFINDER_IMG_PARENT_URL') ? (rtrim(ELFINDER_IMG_PARENT_URL, '/') . '/') : '';\n return $parentUrl . 'img/' . $icon;\n }",
"public function getIconWebPath(){\n\t\treturn \"/uploads/account/{$this->getId()}/{$this->getPhoto()}\";\n\t}",
"public function getIcon() {\n return strval($this->icon);\n }",
"protected function get__icon()\n\t{\n\t\treturn 'files-o';\n\t}",
"public function getIcon()\n {\n if (!$this->icon) {\n return \"\";\n }\n return Html::get()->image($this->icon, $this->translate($this->label));\n }",
"public function getIcon(): string;",
"public function get_menu_icon() {\r\n\r\n\t\treturn file_get_contents( $this->get_base_path() . '/images/menu-icon.svg' );\r\n\r\n\t}",
"public function getImageUrlIcon() \n {\n $icon = $this->icon;\n return Yii::$app->urlManager->baseUrl . '/admin/uploads/center/' . $icon;\n }",
"function icon() {\n\t\t$url = $this->plugin_url();\n\t\t$url .= '/images/transmit_blue.png';\n\t\treturn $url;\n\t}",
"public function get_menu_icon() {\n\n\t\treturn file_get_contents( $this->get_base_path() . '/images/menu-icon.svg' );\n\n\t}",
"public function get_menu_icon() {\n\n\t\treturn file_get_contents( $this->get_base_path() . '/images/menu-icon.svg' );\n\n\t}",
"private function get_icon() {\n\t\treturn '<svg width=\"18\" height=\"22\" viewBox=\"0 0 18 22\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M9 0L0 4V10C0 15.55 3.84 20.74 9 22C14.16 20.74 18 15.55 18 10V4L9 0Z\" fill=\"#D63638\"/><path d=\"M7.99121 6.00894H10.0085V11.9968H7.99121V6.00894Z\" fill=\"#FFF\"/><path d=\"M7.99121 14.014H10.0085V15.9911H7.99121V14.014Z\" fill=\"#FFF\"/></svg>';\n\t}",
"function getIcon()\n\t{\n return sotf_Blob::findBlob($this->id, 'icon');\n\t}",
"public function urlIcon(): string;",
"public function getIconUrl();",
"public function getIconUrl()\n {\n return $this->icon_url;\n }",
"public function getFilePath()\n {\n return str_replace(\n '/',\n DIRECTORY_SEPARATOR,\n $this->config['path_to_fontawesome'] . \"/\" . $this->getDir() . \"/\" . $this->getFilename() . \".svg\"\n );\n }",
"public function getIcon($mode=false){\n switch($mode){\n case false:\n return RESOURCES_DOMAIN .\" /img/famfam/folder.png\";\n break;\n case \"open\":\n return RESOURCES_DOMAIN .\" /img/famfam/folder_table.png\";\n break;\n }\n }",
"public function getIcon() {}",
"public function get_icon() {\n return 'astha far fa-images';\n }",
"protected function _getFeatherIconsPath()\n {\n $settings = $this->getSettings();\n $baseUrl = Front::getInstance()->getRequest()->getBaseUrl();\n\n return (($this->isAbsolutePath() === true) ? $settings['site_path'] : $baseUrl)\n . \\Ppb\\Utility::URI_DELIMITER . \\Ppb\\Utility::getFolder('img')\n . \\Ppb\\Utility::URI_DELIMITER . 'feather';\n }",
"public function get_icon()\n {\n return parent::get_icon();\n }"
] | [
"0.79850674",
"0.7967673",
"0.79110414",
"0.79060835",
"0.78074026",
"0.7743931",
"0.7717661",
"0.7699216",
"0.7608642",
"0.7499904",
"0.71952665",
"0.719031",
"0.71778226",
"0.7163845",
"0.71557826",
"0.7155735",
"0.71445584",
"0.7104919",
"0.7104919",
"0.7010309",
"0.6952322",
"0.6938826",
"0.6937177",
"0.6902333",
"0.68947786",
"0.6884297",
"0.6879107",
"0.6874852",
"0.6860625",
"0.6849087"
] | 0.8305392 | 0 |
Set params of upload library | public function setParams($params) {
// Set upload path
if (isset($params['uploadPath'])) {
$this->_uploadPath = $params['uploadPath'];
}
// Set allowed types
if (isset($params['allowed'])) {
$this->_allowedTypes = explode('|', $params['allowed']);
}
// Set encryption name
if (isset($params['encryptName'])) {
$this->_encryptName = $params['encryptName'];
}
// Set destination name
if (isset($params['filename'])) {
$this->_dstName = $params['filename'];
}
// Set max size (ko)
if (isset($params['maxSize'])) {
$this->_maxSize = $params['maxSize'];
}
// Set max length of file name
if (isset($params['maxFilename'])) {
$this->_maxFilename = $params['maxFilename'];
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected function set_params() {}",
"public function setFileParameters(array $params = [])\n {\n foreach ($params as $key => $value) {\n $this->request->addPostFile($key, $value);\n }\n }",
"private function storeParams()\n\t{\n\t\tforeach( $this->fields as $fieldName => $fieldAttributes ) {\n\t\t\tif( $fieldAttributes['type'] === 'image' ) {\n\t\t\t\tif( $new_file = $this->handleUploadImage( $fieldName, $fieldAttributes['root'] ) )\n\t\t\t\t\t$this->record->$fieldName = $new_file; \n\t\t\t\t\t\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$this->record->$fieldName = $_REQUEST[$fieldName];\n\t\t\t}\n\t\t}\n\t\n\t}",
"public function init() {\n Yii::$app->params['uploadPath'] = Yii::$app->basePath . '/web/uploads/';\n Yii::$app->params['uploadUrl'] = Yii::$app->urlManager->baseUrl . '/uploads/';\n }",
"public function setParams()\n {\n // section 10-10--91-60-7f09995f:12e75e0bc39:-8000:000000000000093A begin\n // section 10-10--91-60-7f09995f:12e75e0bc39:-8000:000000000000093A end\n }",
"public function setUploadProperties($array){\r\n\r\n\t\t$this->props = $array;\r\n\t}",
"private function authParams(){\n $this->params['api_key'] = $this->Api->key;\n $this->params['auth_token'] = $this->auth_token;\n }",
"public function set_params($params);",
"function set_parameters($jpeg_quality=\"85\", $use_gd2=true) { \n $this->jpeg_quality=$jpeg_quality; \n $this->use_gd2=$use_gd2; \n}",
"public function __construct($params)\n {\n $this->IM = &get_instance();\n $this->IM->load->library(['upload', 'image_lib']);\n $this->folder = $params['folder'];\n $this->fieldname = $params['fieldname'];\n }",
"protected function setRequestParameters() {\n $amount = $this->parameters['amount'] ;\n\n $this->clearParameters() ;\n $this->setParameter('transaction_identifier', $this->identifier) ;\n $this->setParameter('amount', $amount) ;\n $this->setParameter('signature', $this->generateSignature($this->parameters)) ;\n $this->setParameter('vendor_token', $this->getLydiaVendorToken()) ;\n }",
"private function setVariables() {\n // set program variables\n $this->tmp_name = $_FILES['fileupload']['tmp_name'];\n $this->file_name = $_FILES['fileupload']['name'];\n $this->file_type = $_FILES['fileupload']['type'];\n $this->file_size = $_FILES['fileupload']['size'];\n\n $this->file_mime = $this->getFile_mime($this->tmp_name);\n\n $extentionArray = $this->getExtention($this->file_name);\n $this->raw_extention = $extentionArray[0];\n $this->file_extention = $extentionArray[1];\n }",
"public function setUpload($params, $context)\n {\n $this->validateMethodContext($context, [\"role\" => OMV_ROLE_ADMINISTRATOR]);\n // Validate the parameters of the RPC service method.\n $this->validateMethodParams($params, \"rpc.downloader.setupload\");\n // Get the existing configuration object.\n $db = \\OMV\\Config\\Database::getInstance();\n $object = $db->get(\"conf.service.downloader\");\n $object->setAssoc($params);\n $db->set($object);\n // Remove useless properties from the object.\n $object->remove(\"downloads\");\n // Return the configuration object.\n return $object->getAssoc();\n }",
"function Upload(){\n\t \t// initiate uploaded file details\n\t \t$this -> file['client_file_name'] \t= ''; // client file name\n\t \t$this -> file['server_file_name'] \t= '';\t// server file name\n\t \t$this -> file['server_file_dir'] \t= '';\t// server file name + path (starting form root dir)\n\t \t$this -> file['file_size'] \t\t\t= '';\t// file size \n\t \t$this -> file['file_date'] \t\t\t= '';\t// upload date & time\n\t }",
"public function setParams($params) {}",
"function setParams (array $params = array());",
"public function setParams(){\n if (isset($this->url)) {\n $this->params = array_values($this->url);\n unset($this->url);\n }\n }",
"private function prepare_params($params) {\r\n // do not encode multipart parameters, leave them alone\r\n if ($this->config['multipart']) {\r\n $this->request_params = $params;\r\n $params = array();\r\n }\r\n\r\n // signing parameters are request parameters + OAuth default parameters\r\n $this->signing_params = array_merge($this->get_defaults(), (array)$params);\r\n\r\n // Remove oauth_signature if present\r\n // Ref: Spec: 9.1.1 (\"The oauth_signature parameter MUST be excluded.\")\r\n if (isset($this->signing_params['oauth_signature'])) {\r\n unset($this->signing_params['oauth_signature']);\r\n }\r\n\r\n // Parameters are sorted by name, using lexicographical byte value ordering.\r\n // Ref: Spec: 9.1.1 (1)\r\n uksort($this->signing_params, 'strcmp');\r\n\r\n // encode. Also sort the signed parameters from the POST parameters\r\n foreach ($this->signing_params as $k => $v) {\r\n $k = $this->safe_encode($k);\r\n $v = $this->safe_encode($v);\r\n $_signing_params[$k] = $v;\r\n $kv[] = \"{$k}={$v}\";\r\n }\r\n\r\n // auth params = the default oauth params which are present in our collection of signing params\r\n $this->auth_params = array_intersect_key($this->get_defaults(), $_signing_params);\r\n if (isset($_signing_params['oauth_callback'])) {\r\n $this->auth_params['oauth_callback'] = $_signing_params['oauth_callback'];\r\n unset($_signing_params['oauth_callback']);\r\n }\r\n\r\n // request_params is already set if we're doing multipart, if not we need to set them now\r\n if ( ! $this->config['multipart'])\r\n $this->request_params = array_diff_key($_signing_params, $this->get_defaults());\r\n\r\n // create the parameter part of the base string\r\n $this->signing_params = implode('&', $kv);\r\n }",
"protected function setUp()\n {\n $this->params['folders']['file_version'] = realpath('outsource/file_version/');\n $this->params['folders']['directory_lister'] = realpath('outsource/directory_lister/');\n $this->params['files']['files'] = 'files';\n $this->params['files']['versions'] = 'versions';\n }",
"public function setParams($params);",
"public function __construct()\n {\n $this->data['controllerName'] = 'upload';\n }",
"function upload(){\n\n\t\t\n\t}",
"public function __construct()\n {\n parent::__construct();\n\n $this->getUploaderConfig()->setSingleFile(true);\n $this->getButtonConfig()->setSingleFile(true);\n }",
"function setParametros($params){\n\t\t$this->parametros = $params;\n\t}",
"function set_dataTuploads()\n {\n $this->tuploads['data1'] = 'idUsuario';\n $this->tuploads['data2'] = 'filePath';\n $this->tuploads['data3'] = 'regDate';\n $this->tuploads['data4'] = 'status';\n $this->tuploads['data5'] = 'tipo';\n }",
"public function setParams($params)\n {\n }",
"protected function setParams()\n {\n $this->date_expire = $this->container->getParameter('pi_app_admin.cookies.date_expire');\n $this->date_interval = $this->container->getParameter('pi_app_admin.cookies.date_interval');\n \n $this->init_pc_layout = $this->container->getParameter('pi_app_admin.layout.init.pc.template');\n $this->init_pc_redirection = $this->container->getParameter('pi_app_admin.layout.init.pc.redirection');\n $this->init_mobile_layout = $this->container->getParameter('pi_app_admin.layout.init.mobile.template');\n $this->init_mobile_redirection = $this->container->getParameter('pi_app_admin.layout.init.mobile.redirection');\n \n $this->is_switch_language_browser_authorized = $this->container->getParameter('pi_app_admin.page.switch_language_browser_authorized');\n $this->is_init_redirection_authorized = $this->container->getParameter('pi_app_admin.page.switch_layout_init_redirection_authorized');\n }",
"public function setParams($params)\n {\n $this->params = json_encode($params);\n }",
"public function __construct() {\n\t\t\t$this->parameters = array(\n\t\t\t\t'file_name' => null\n\t\t\t);\n\t\t\t$this->type = true;\n\t\t}",
"public function setParams($params){\n\t\t\t$params = $this->normalizeParams($params);\n\t\t\t$this->params = $params;\n\t\t}"
] | [
"0.6930804",
"0.6755733",
"0.66126835",
"0.65041566",
"0.61711586",
"0.6151385",
"0.6071479",
"0.6068559",
"0.6063185",
"0.6026265",
"0.6025389",
"0.6015836",
"0.6000805",
"0.5938057",
"0.59090614",
"0.5896514",
"0.587081",
"0.581543",
"0.57619417",
"0.57520944",
"0.5729886",
"0.57210714",
"0.5715294",
"0.56546265",
"0.56505775",
"0.56498533",
"0.5629853",
"0.561173",
"0.56103677",
"0.5602851"
] | 0.7500819 | 0 |
Runs the application, switches view based on $_GET["view"] | function invoke()
{
if(!isset($_GET["view"]))
{
include_once("./views/login.php");
}
else
{
switch($_GET["view"])
{
case "managecategories":
include_once("./views/managecategories.php");
break;
case "budget";
include_once("./views/budget.php");
break;
case "categorize";
include_once("./views/categorize.php");
break;
case "import";
include_once("./views/import.php");
break;
case "login";
include_once("./views/login.php");
break;
case "logout";
session_destroy();
$this->util->redirect("?view=login");
break;
case "monthly";
include_once("./views/monthly.php");
break;
case "signup";
include_once("./views/signup.php");
break;
default:
include_once("./views/login.php");
break;
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function run() {\n if(!$_GET['page']) {\n $_GET['page'] = 'home';\n }\n \n //Instantiate the model class\n $model = new Model;\n \n //Retrieve the page information\n $pageInfo = $model -> getPageInfo($_GET['page']);\n \n //Set the page\n switch($_GET['page']) {\n \n case 'home':\n include 'views/homeView.php';\n $view = new HomeView($pageInfo, $model);\n break;\n \n case 'news':\n include 'views/newsFeedView.php';\n $view = new NewsView($pageInfo, $model);\n break;\n \n case 'about':\n include 'views/aboutView.php';\n $view = new AboutView($pageInfo, $model);\n break;\n \n case 'contact':\n include 'views/contactView.php';\n $view = new ContactView($pageInfo, $model);\n break;\n \n case 'login':\n case 'logout':\n include 'views/logView.php';\n $view = new LogView($pageInfo, $model);\n break;\n\n case 'addClient':\n include 'views/addClientView.php';\n $view = new AddClientView($pageInfo, $model);\n break;\n\n case 'activate' :\n include 'views/activateAccountView.php';\n $view = new ActivateAccountView($pageInfo, $model);\n break;\n\n case 'addJob' :\n include 'views/addNewJobView.php';\n $view = new AddNewJob($pageInfo, $model);\n break;\n\n case 'deleteJob':\n include 'views/deleteProjectView.php';\n $view = new DeleteJobView($pageInfo, $model);\n break;\n\n case 'editJob':\n include 'views/editProjectView.php';\n $view = new EditJobView($pageInfo, $model);\n break;\n\n case 'client' :\n include 'views/clientView.php';\n $view = new ClientView($pageInfo, $model);\n break;\n\n case 'deactivateAcc':\n include 'views/deactivateClientView.php';\n $view = new DeactivateAccView($pageInfo, $model);\n break;\n\n case 'editClient':\n include 'views/editClientView.php';\n $view = new EditClientView($pageInfo, $model);\n break;\n\n case 'addPost':\n include 'views/addPostView.php';\n $view = new AddPostView($pageInfo, $model);\n break;\n\n case 'editPost':\n include 'views/editPostView.php';\n $view = new EditPostView($pageInfo, $model);\n break;\n\n case 'deletePost':\n include 'views/deletePostView.php';\n $view = new DeletePostView($pageInfo, $model);\n break;\n\n case 'addMember':\n include 'views/addMemberView.php';\n $view = new AddMemberView($pageInfo, $model);\n break;\n\n case 'editMember':\n include 'views/editMemberView.php';\n $view = new EditMemberView($pageInfo, $model);\n break;\n\n case 'deleteMember':\n include 'views/deleteMemberView.php';\n $view = new DeleteMemberView($pageInfo, $model);\n break;\n\n case 'newsItem':\n include 'views/newsItemView.php';\n $view = new NewsItemView($pageInfo, $model);\n break;\n\n case 'addFaq':\n include 'views/addFaqView.php';\n $view = new AddFaqView($pageInfo, $model);\n break;\n\n case 'editFaq':\n include 'views/editFaqView.php';\n $view = new EditFaqView($pageInfo, $model);\n break;\n\n case 'deleteFaq':\n include 'views/deleteFaqView.php';\n $view = new DeleteFaqView($pageInfo, $model);\n break;\n\n case 'changePassword':\n include 'views/changePasswordView.php';\n $view = new ChangePasswordView($pageInfo, $model);\n break;\n \n case 'rss':\n include 'views/rssView.php';\n $view = new RSSView($model);\n break;\n \n case 'siteMap':\n include 'views/siteMapView.php';\n $view = new SiteMapView($pageInfo, $model);\n break;\n\n default:\n include 'views/404.php';\n $view = new ErrorView($pageInfo, $model);\n break;\n \n } #switch\n \n echo $view -> displayPage();\n \n }",
"private function view($view) {\n $__view = $view->getView();\n $dados = $view->getParams();\n include __DIR__ . \"/../App/View/\" . $__view . \".php\";\n unset($__view);\n }",
"public function run()\n {\n $view = strtolower(substr(basename(get_called_class()), 0, -10));\n $this->render($view);\n }",
"function view()\r\n\t{\r\n\t\t$num_args = func_num_args();\r\n\r\n\t\tif (VIEW != null)\r\n\t\t{\r\n\t\t\tif(file_exists(VIEW))\r\n\t\t\t{\r\n\t\t\t\trequire_once(VIEW);\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tif (ENVIRONMENT == 'development')\r\n\t\t\t\t{\r\n\t\t\t\t\techo \"<div class=\\\"Serene_Error\\\">Serene Error (Stay Calm!): the defined view [\" . VIEW . \"] can not be found. Did you remember to create it?</div>\";\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public function view($view, $data=[])\n {\n if(file_exists(APP_ROOT . \"/Vendor/Views/$view.php\"))\n {\n require_once APP_ROOT . \"/Vendor/Views/$view.php\";\n } \n else\n {\n die(\"view $view not found\");\n }\n }",
"protected function view($view, $data) {\n require_once \"../app/views/\" . $view . \".php\";\n\n }",
"public function view($view,$data = []){\n if(file_exists(\"../app/views/{$view}.php\")){\n \n // loading the controller file and creating a new instance of our controller\n require_once \"../app/views/{$view}.php\"; \n }\n \n }",
"public function view($view, $data)\n\t{\n\t\t// recieves data from controller, extracts and sends on to viewer\n\t\tif( is_file(VIEWS . DS . $view . '.php') )\n\t\t{\n\t\t\t$this->content_data = $data;\n\t\t\trequire_once VIEWS . DS . $view . '.php';\n\t\t}\n\t\telse\n\t\t\theader('HttpResponse: 404');\n\t}",
"public function execute()\n\t{\n\t\t// Get the input\n\t\t$input = $this->getInput();\n\n\t\t$task = $input->get('task','view');\n\n\t\t// Get some data from the request\n\t\t$vName = $input->getWord('view', $this->defaultView);\n\t\t$vFormat = $input->getWord('format', 'html');\n\n\t\t//TODO\n\t\tif (is_null($input->get('layout')))\n\t\t{\n\t\t\tif ($task == 'view' && $input->get('id') == null)\n\t\t\t{\n\t\t\t\t$input->set('layout', 'index');\n\t\t\t}\n\t\t\telseif ($task == 'view')\n\t\t\t{\n\t\t\t\t$input->set('layout', 'view');\n\t\t\t}\n\t\t\telseif ($task != null)\n\t\t\t{\n\t\t\t\t$this->$task();\n\t\t\t}\n\t\t}\n\n\t\t$lName = $input->get('layout');\n\n\t\t$input->set('view', $vName);\n\n\t\t$base = '\\\\App';\n\n\t\t$vClass = $base . '\\\\View\\\\' . ucfirst($vName) . '\\\\' . ucfirst($vName) . ucfirst($vFormat) . 'View';\n\t\t$mClass = $base . '\\\\Model\\\\' . ucfirst($vName) . 'Model';\n\n\t\t// If a model doesn't exist for our view, revert to the default model\n\t\tif (!class_exists($mClass))\n\t\t{\n\t\t\t$mClass = $base . '\\\\Model\\\\DefaultModel';\n\n\t\t\t// If there still isn't a class, panic.\n\t\t\tif (!class_exists($mClass))\n\t\t\t{\n\t\t\t\tthrow new \\RuntimeException(sprintf('No model found for view %s', $vName));\n\t\t\t}\n\t\t}\n\n\t\t// Make sure the view class exists, otherwise revert to the default\n\t\tif (!class_exists($vClass))\n\t\t{\n\t\t\t$vClass = '\\\\App\\\\View\\\\DefaultHtmlView';\n\n\t\t\t// If there still isn't a class, panic.\n\t\t\tif (!class_exists($vClass))\n\t\t\t{\n\t\t\t\tthrow new \\RuntimeException(sprintf('Class %s not found', $vClass));\n\t\t\t}\n\t\t}\n\n\t\t// Register the templates paths for the view\n\t\t$paths = array();\n\n\t\t$path = JPATH_TEMPLATES . '/' . $vName . '/';\n\n\t\tif (is_dir($path))\n\t\t{\n\t\t\t$paths[] = $path;\n\t\t}\n\n\t\t/* @type DefaultHtmlView $view */\n\t\t$view = new $vClass($this->getApplication(), new $mClass($this->getInput(), $this->getContainer()->get('db')), $paths);\n\t\t$view->setLayout($vName . '.' . $lName);\n\n\t\ttry\n\t\t{\n\t\t\t// Render our view.\n\t\t\treturn $view->render();\n\t\t}\n\t\tcatch (\\Exception $e)\n\t\t{\n\t\t\tthrow new \\RuntimeException(sprintf('Error: ' . $e->getMessage()));\n\t\t}\n\n\t\treturn;\n\t}",
"public function view($view, $data=[]){\n // Check for a view file \n if(file_exists('../app/views/'. $view . '.php')){\n require_once '../app/views/'. $view . '.php';\n }\n else{\n die('View does not exist');\n }\n\n }",
"public function view($view, $data = []) {\r\n\r\n /* Ueberpruefe ob View File existiert */\r\n if(file_exists('../app/views/'.$view.'.phtml')) {\r\n require_once '../app/views/'.$view.'.phtml';\r\n }\r\n else {\r\n die(\"View does not exist\");\r\n }\r\n }",
"public function main () {\n\n // Instantiating view\n $this->view = new View ($this);\n\n // Transferring control depending on URL\n try {\n\n $route = getenv('PATH_INFO');\n\n if ($route == \"/accueil\") {\n $this->view->makeWelcomePage();\n }\n\n else if ($route == \"/alphabet\") {\n $controller = new CharacterController ($this->view);\n $controller->showAlphabet();\n }\n\n else if (strlen($route) == 2 && Alphabet::isInAlphabet(substr($route,1,1))) {\n $controller = new CharacterController ($this->view);\n $controller->showInformation(substr($route,1,1));\n }\n\n else {\n $this->view->makeUnknownURLPage($url);\n }\n\n } catch (Exception $e) {\n // Generic error\n $this->view->makeUnexpectedErrorPage($e);\n }\n\n // Rendering view\n $this->view->render();\n }",
"public function view($view, $data = []){\n\t\trequire_once '../app/views/'.$view.'.php';\n\t}",
"function request() {\n $this->view = 'main';\n\n if(!empty($_REQUEST['view']))\n $this->view = $_REQUEST['view'];\n \n if(!empty($_REQUEST['action'])) {\n $this->action = $_REQUEST['action'];\n }\n }",
"public function view($view, $data = []){\n\t\trequire_once INC_ROOT . '/app/views/' . $view . '.php';\n\t}",
"function run()\n\t{\n\t\t$view = isset($_GET['view'])?$_GET['view']:'login';\n\t\tswitch($view)\n\t\t{\n\t\t\tcase 'login':\n\t\t\t\t\t\t//Validate User and permissions\n\t\t\t$this->login();\t\n\t\t\tbreak;\n\t\t\tcase 'logout':\n\t\t\t\t\t\t//Validate User and permissions\n\t\t\t$this->logout();\t\t\n\t\t\tbreak;\n\t\t\tcase 'profile':\n\t\t\t$this->validatePersmission(\"all\");\n\t\t\t\t\t\t//Validate User and permissions\n\t\t\t$this->details();\t\t\n\t\t\tbreak;\n\t\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t}",
"protected function _run()\n {\n \tif ($this->_useViewStream && $this->useStreamWrapper()) {\n include 'zend.view://' . func_get_arg(0);\n } else {\n include func_get_arg(0);\n }\n }",
"public function view( $view, $data = [] )\n\t{\n\t\t\n\t\trequire_once 'app/Views/' . $view . '.php';\n\t}",
"public static function viewHandler($view, $data = array()){\n include('Views/' . $view . '.php');\n }",
"public function views_controller(){\n \n //http://localhost/rent4/single-apartment\n \n \n if(isset($_GET['views'])){\n \n $route=explode(\"/\",$_GET['views']);\n \n $response=ViewsController::views_model($route['0']);\n \n }else{\n $response = \"homepage\";\n }\n\n return $response;\n\n }",
"public function run()\n {\n $uri = explode('/', $_SERVER['REQUEST_URI']);\n unset($uri[0]);\n\n if ($uri[1] == 'index.php') {\n unset($uri[1]);\n }\n\n $uri = array_merge([], $uri);\n\n for ($i = 0; $i < count($uri); $i++) {\n $uri[$i] = $this->stripQueryString($uri[$i]);\n }\n\n // var_dump($uri);\n\n if (strlen($uri[0]) < 1) {\n $controller = 'App\\\\Controllers\\\\HomeController';\n $view = strlen($uri[0]) > 0 ? $uri[0] : 'index';\n } else {\n $controller = 'App\\\\Controllers\\\\' . ucwords($uri[0]) . 'Controller';\n $view = isset($uri[1]) && strlen($uri[1]) > 0 ? $uri[1] : 'index';\n }\n\n if (!file_exists(dirname(__DIR__) . '/' . str_replace('\\\\', '/', $controller) . '.php')) {\n $this->show404();\n }\n\n unset($uri[0]);\n unset($uri[1]);\n\n\n $c = new $controller();\n if (false == method_exists($c, $view)) {\n $this->show404();\n } else {\n call_user_func_array([$c, $view], $uri);\n }\n }",
"private function invokeViews() {\n\n // Load controller variables in to the view \n \\extract($this->controllerInstance->getVars());\n\n // Load the view file\n if ( !empty($this->controllerInstance->getView()) && file_exists( __DIR__ . '/../views/' . $this->controllerInstance->getView() . '.php' ) ) {\n \n require __DIR__ . '/../views/' . $this->controllerInstance->getView() . '.php';\n\n }\n\n }",
"public function Run() {\n\n if (!$this->\n view) {\n\n $this->\n Setup();\n }\n\n $this->\n view->\n Run();\n }",
"public function view($view, $data = [])\n {\n require_once '../app/views/' . $view . '.php' ;\n }",
"public function action_view()\n\t{\n\t\t$errors = array();\n\t\t$messages = array();\n\t\t$this->displayPage($errors, $messages);\n\t}",
"public function actionView() {\n\t\t$this->actionIndex();\n\t}",
"function render($view){\n\t\t$get_url = (isset($_GET['url'])) ? $_GET['url'] : '';\n\t\n\t\tif ($get_url == '') {\n\t\t\t$get_url = 'home/';\t\n\t\t}\n\t\t// separa a url por barras\n\t\t$url = array_filter(explode('/', $get_url));\n\t\n\t\t$file_name = '';\n\n\t\t\n\t\tif (!isset($url[1])) {\n\t\t\t// caminho principal da view\n\t\t\t$partial_path = \"{$url[0]}/index.php\";\n\t\t} elseif ($view != '') {\n\t\t\t// parte do path\n\t\t\t$partial_path = \"{$url[0]}/{$view}\";\n\t\t} elseif (count($url) >= 3) {\n\t\t\t// parte do path\n\t\t\t$partial_path = \"{$url[0]}/{$url[1]}/\";\n\t\t} else {\n\t\t\t$partial_path = \"{$url[0]}/{$url[1]}.php\";\n\t\t}\n\t\t\n\t\t// define o caminho base da view\n\t\t$veiw_path = $_SERVER['DOCUMENT_ROOT'] . $_SERVER['REQUEST_URI'] . \"app/view/\";\n\n\t\t// completa o cominho add o controller e a view\n\t\t$complet_path = \"{$veiw_path}{$partial_path}\";\n\n\t\t// retira do array o controller e a view\n\t\tunset($url[0]);\n\t\tunset($url[1]);\n\t\t\n\t\t// percorre o array e monta a parte do caminho que\n\t\t// representa as subpastas\n\t\tif ($view == '') {\n\t\t\tforeach ($url as $key => $value) {\n\t\t\t\tif (end($url) == $value) {\n\t\t\t\t\t// subentende se que o ultimo da lista e um arquivo.php\n\t\t\t\t\t$file_name .= \"{$value}.php\";\n\t\t\t\t} else {\n\t\t\t\t\t$file_name .= \"{$value}/\";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// redefine o caminho completo\n\t\t$complet_path .= $file_name;\n\t\n\t\t// checa sua existencia\n\t\tif (file_exists(\"{$complet_path}.php\")) {\n\t\t\t$this->required_path = \"{$complet_path}.php\";\n\t\t} elseif (file_exists(\"{$complet_path}/index.php\")) {\n\t\t\t$this->required_path = \"{$complet_path}/index.php\";\n\t\t} elseif (file_exists(\"{$complet_path}\")){\n\t\t\t$this->required_path = \"{$complet_path}\";\n\t\t} else {\n\t\t\t// caso contratio lanca um erro\n\t\t\t(new Errors_Core())->show(\"A view {$file_name} não existe.\");\n\t\t}\n\t}",
"public function SetView($view)\n {\n //If $view is null or empty use $view as \"current controller + index\"\n if ($view == null || $view == '') {\n $view = StartUp::$controller . '/' . StartUp::$action;\n\n }\n\n $view = Application::$viewPath . $view . '.phtml';\n\n\n if (file_exists($view)) {\n $this->view = $view;\n } else {\n http_response_code(404);\n }\n }",
"public function viewAction(){\n\t\t$this->loadLayout();\n\t\t\n\t\t$this->renderLayout();\n }",
"public function View($view, $data = [])\n\t\t{\n\t\t\tif(file_exists('../app/views/' . $view . '.php')) {\n\n\t\t\t\trequire_once '../app/views/' . $view . '.php';\n\t\t\t} else {\n\n\t\t\t\tdie('The view not exist.');\n\t\t\t}\n\n\t\t}"
] | [
"0.68777543",
"0.67418563",
"0.6652559",
"0.66133463",
"0.65651023",
"0.6542994",
"0.6538423",
"0.6514004",
"0.65064436",
"0.6504656",
"0.6472618",
"0.6455382",
"0.6449767",
"0.64458704",
"0.6445205",
"0.6443098",
"0.64425814",
"0.6439891",
"0.6422713",
"0.6378606",
"0.63633895",
"0.63537836",
"0.6326039",
"0.6318282",
"0.62845117",
"0.6272835",
"0.6268038",
"0.62648374",
"0.626228",
"0.6256057"
] | 0.7203136 | 0 |
Test for `deprecationWarning()` global function | public function testDeprecationWarning(): void
{
$current = error_reporting(E_ALL & ~E_USER_DEPRECATED);
deprecationWarning('This method is deprecated');
error_reporting($current);
$this->expectDeprecation();
$this->expectExceptionMessageMatches('/^This method is deprecated/');
$this->expectExceptionMessageMatches('/You can disable deprecation warnings by setting `error_reporting\(\)` to `E_ALL & ~E_USER_DEPRECATED`\.$/');
deprecationWarning('This method is deprecated');
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static function warn($message)\r\r\n {\r\r\n if (self::$emitWarnings) {\r\r\n trigger_error('Deprecation warning: ' . $message, E_USER_DEPRECATED);\r\r\n }\r\r\n }",
"function deprecationWarning($message, $stackFrame = 1)\n {\n if (!(error_reporting() & E_USER_DEPRECATED)) {\n return;\n }\n\n $trace = debug_backtrace();\n if (isset($trace[$stackFrame])) {\n $frame = $trace[$stackFrame];\n $frame += ['file' => '[internal]', 'line' => '??'];\n\n $message = sprintf(\n '%s - %s, line: %s' . \"\\n\" .\n ' You can disable deprecation warnings by setting `error_reporting()` to' .\n ' `E_ALL & ~E_USER_DEPRECATED`.',\n $message,\n $frame['file'],\n $frame['line']\n );\n }\n\n trigger_error($message, E_USER_DEPRECATED);\n }",
"public function getDeprecated() {}",
"public function getDeprecated() {}",
"public function getDeprecated() {}",
"public function getDeprecated() {}",
"public function getDeprecated() {}",
"public function getDeprecated() {}",
"public function getDeprecated() {}",
"public function hasWarnings();",
"function deprecationWarning(string $version, string $message, int $stackFrame = 1): void\n {\n if (!(error_reporting() & E_USER_DEPRECATED)) {\n return;\n }\n\n $trace = debug_backtrace();\n if (isset($trace[$stackFrame])) {\n $frame = $trace[$stackFrame];\n $frame += ['file' => '[internal]', 'line' => '??'];\n\n // Assuming we're installed in vendor/cakephp/cakephp/src/Core/functions.php\n $root = dirname(__DIR__, 5);\n if (defined('ROOT')) {\n $root = ROOT;\n }\n $relative = str_replace(DIRECTORY_SEPARATOR, '/', substr($frame['file'], strlen($root) + 1));\n $patterns = (array)Configure::read('Error.ignoredDeprecationPaths');\n foreach ($patterns as $pattern) {\n $pattern = str_replace(DIRECTORY_SEPARATOR, '/', $pattern);\n if (fnmatch($pattern, $relative)) {\n return;\n }\n }\n\n $message = sprintf(\n \"Since %s: %s\\n%s, line: %s\\n\" .\n 'You can disable all deprecation warnings by setting `Error.errorLevel` to ' .\n '`E_ALL & ~E_USER_DEPRECATED`. Adding `%s` to `Error.ignoredDeprecationPaths` ' .\n 'in your `config/app.php` config will mute deprecations from that file only.',\n $version,\n $message,\n $frame['file'],\n $frame['line'],\n $relative\n );\n }\n\n static $errors = [];\n $checksum = md5($message);\n $duplicate = (bool)Configure::read('Error.allowDuplicateDeprecations', false);\n if (isset($errors[$checksum]) && !$duplicate) {\n return;\n }\n if (!$duplicate) {\n $errors[$checksum] = true;\n }\n\n trigger_error($message, E_USER_DEPRECATED);\n }",
"function warn()\r\n {\r\n }",
"public function hasWarnings() {\n\t\t/* if ((($this->warningMode == self::WARNING_MODE_LIBRARY || $this->warningMode == self::WARNING_MODE_COMBINATION) && $this->warnings) || (($this->warningMode == self::WARNING_MODE_GLOBAL || $this->warningMode == self::WARNING_MODE_COMBINATION) && STORY_DEFAULT_WARNINGS)) {\n\t\t return 1;\n\t\t } */\n\t\treturn 0;\n\t}",
"public function getIgnoreDeprecatedWarnings()\n {\n return $this->ionSwitches['ignore-deprecated-warnings'];\n }",
"private function needsWarning(): bool\n {\n\n if (!preg_match('/^\\w+$/', $this->parameters->variable)) {\n $this->warnings[] = (object)[\n 'invocation' => $this->invocation,\n 'location' => $this->location,\n ];\n\n return true;\n }\n\n return false;\n }",
"public function getSuppressWarning(): bool;",
"private function no_deprecation_warnings_on_php7() {\n\t\t// PHP_MAJOR_VERSION is defined in PHP 5.2.7+\n\t\t// We don't test for PHP > 7 because the specific deprecated element will be removed in PHP 8 - and so no warning should come anyway (and we shouldn't suppress other stuff until we know we need to).\n\t\t// @codingStandardsIgnoreLine\n\t\tif (defined('PHP_MAJOR_VERSION') && PHP_MAJOR_VERSION == 7) {\n\t\t\t$old_level = error_reporting();\n\t\t\t// @codingStandardsIgnoreLine\n\t\t\t$new_level = $old_level & ~E_DEPRECATED;\n\t\t\tif ($old_level != $new_level) error_reporting($new_level);\n\t\t}\n\t}",
"protected function checkDeprecatedCalls(): void\n {\n WP_Mock::getDeprecatedMethodListener()->checkCalls();\n WP_Mock::getDeprecatedMethodListener()->reset();\n }",
"public function getWarning();",
"public function getWarning();",
"public function testDeprecatedPHPFunctionsMustBeAvoided(): void\n {\n }",
"public function setDeprecated($var) {}",
"public function setDeprecated($var) {}",
"public function setDeprecated($var) {}",
"public function setDeprecated($var) {}",
"public function setDeprecated($var) {}",
"public function setDeprecated($var) {}",
"public function setDeprecated($var) {}",
"static function wordfence_warning() {\r\n if (defined('WORDFENCE_VERSION') && WORDFENCE_VERSION) {\r\n echo '<div id=\"message\" class=\"error\"><p>Please <strong>deactivate Wordfence plugin</strong> before running Security Ninja tests. Some tests are detected as site attacks by Wordfence and hence can\\'t be performed properly. Activate Wordfence once you\\'re done testing.</p></div>';\r\n }\r\n }",
"public function getDeprecationInfo()\n {\n return $this->__call('getdeprecationinfo');\n }"
] | [
"0.6829351",
"0.68135333",
"0.6781885",
"0.6781885",
"0.6781885",
"0.6781885",
"0.6781885",
"0.6781885",
"0.6781885",
"0.66711366",
"0.66605604",
"0.6630031",
"0.66125053",
"0.6602621",
"0.6512114",
"0.65117544",
"0.6447282",
"0.6408831",
"0.63790864",
"0.63790864",
"0.636433",
"0.6342071",
"0.6342071",
"0.6342071",
"0.6342071",
"0.6342071",
"0.6342071",
"0.6342071",
"0.6136915",
"0.611619"
] | 0.7815641 | 0 |
Gets the name of the organization | public function getOrganizationName(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getOrganizationName()\n {\n return $this->organizationName;\n }",
"function getName() {\n\t return $this->getOrgName();\n\t}",
"public function getName()\n {\n if (empty($this->organizationName)) {\n return '';\n }\n\n return $this->organizationName->getName();\n }",
"public function getOrganization() : string\n {\n return $this->organization;\n }",
"public function getOrganizationName(): ?string\n {\n return $this->organizationName;\n }",
"public function getOrganization()\r\n {\r\n return 'WRS Group, Ltd.';\r\n }",
"public function getOrganization(): ?string\n {\n return $this->data['organization'] ?? null;\n }",
"public function getOrganization()\n {\n return $this->organization;\n }",
"public function getOrganization()\n {\n return $this->organization;\n }",
"public function getOrganization()\n {\n return $this->organization;\n }",
"public function getOrganization()\n {\n return $this->organization;\n }",
"public function getOrganization()\n {\n return $this->organization;\n }",
"protected function getOrganizationName($organization = null)\n {\n $org = (empty($organization)) ? $this->defaultOrganization : $organization;\n if (null === $org) {\n throw new \\RuntimeException('Organization is empty');\n }\n\n return $org;\n }",
"public function getOrganization()\n {\n return $this->Organization;\n }",
"public function getOrganizationId() :string\n {\n return $this->mollie->organizations->current()->id;\n }",
"public function company_name()\n\t{\n\t\t$co_id = $this->company_id();\n\t\tif(is_oid($co_id))\n\t\t{\n\t\t\t$obj = obj($co_id);\n\t\t\treturn $obj->name();\n\t\t}\n\t\treturn \"\";\n\t}",
"public function getName()\n {\n $account = $this->_getAccount();\n\n return $account->getDisplayName();\n }",
"public function get_title()\n {\n if ($this->debug > 0) { error_log('In scorm::get_title() method', 0); }\n $title = '';\n if (isset($this->manifest['organizations']['default'])) {\n $title = $this->organizations[$this->manifest['organizations']['default']]->get_name();\n } elseif (count($this->organizations)==1) {\n // This will only get one title but so we don't need to know the index.\n foreach($this->organizations as $id => $value) {\n $title = $this->organizations[$id]->get_name();\n break;\n }\n }\n return $title;\n }",
"public function getUserOrganizationNames();",
"public function getDisplayName() {\n if($this->getPhysicalPerson() == null) {\n return 'anonyme';\n }\n return $this->getPhysicalPerson()->getDisplayName();\n }",
"public function getName() : ?string\n {\n return $this->get('name', 'companies');\n }",
"function getFBCorpName()\n {\n $fbcorp = Cacheable::factory('Corporation', $this->getFBCorpID());\n return $fbcorp->getName();\n }",
"public function getName()\n\t{\n\t\tif( $this->nameColumn===null )\n\t\t\t$this->nameColumn = Rights::module()->userNameColumn;\n\n\t\treturn $this->owner->{$this->nameColumn};\n\t}",
"public function getFullNameAttribute() {\n\t return $this->organization . ' ⋅ ' . $this->designation;\n\t}",
"public function getName() {\n if ($this->email) { \n return \"{$this->email}\"; \n }\n }",
"public static function orgname($args, $key) {\n $orglist = Input::orglist();\n if(isset($args[$key])) {\n //If org id is sent, fetch the name\n if(array_key_exists($args[$key], $orglist)) {\n return $orglist[$args[$key]];\n }\n return $args[$key];\n }\n $org = Terminus::menu($orglist, false, \"Choose organization\");\n return $orglist[$org];\n }",
"public function getOrganisation(): string|null\n {\n if (!$this->hasOrganisation()) {\n $this->setOrganisation($this->getDefaultOrganisation());\n }\n return $this->organisation;\n }",
"public function getCompanyName(): string\n {\n return $this->companyName;\n }",
"public function getCompanyName(): string\n {\n return $this->companyName;\n }",
"public function getOrgUnit()\n {\n return $this->iOrgUnit;\n }"
] | [
"0.87273824",
"0.84839624",
"0.839998",
"0.8149061",
"0.7718848",
"0.75928706",
"0.7550346",
"0.74322355",
"0.74322355",
"0.74322355",
"0.74322355",
"0.74322355",
"0.7334214",
"0.717617",
"0.7105062",
"0.68851477",
"0.68000054",
"0.67963994",
"0.6659383",
"0.6656307",
"0.6601897",
"0.65817636",
"0.6556086",
"0.65398103",
"0.65337515",
"0.65209097",
"0.651816",
"0.6515053",
"0.6515053",
"0.6511785"
] | 0.8665769 | 1 |
Load the referral users for Datatables | public function loadReferrals()
{
$referrals = User::has('referrals')->withCount('referrals');
return Datatables::of($referrals)
->editColumn('name', function(User $user) {
return '<a href="'.route('admin.users.show', $user->id).'" />'.$user->name.'</a>';
})
->addColumn('action', function (User $user) {
return '<a class="btn btn-primary btn-sm" href="'.route('admin.referrals.details', $user->id).'"><i class="fas fa-fw fa-eye"></i>View</a>';
})
->rawColumns(['action','name'])
->make(true);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function loadReferralUsers($id)\n {\n $referrals = User::where('referred_by', $id);\n\n return Datatables::of($referrals)\n ->editColumn('first_name', function(User $user) {\n return '<a href=\"'.route('admin.users.show', $user->id).'\" />'.$user->first_name.'</a>';\n })\n ->editColumn('last_name', function(User $user) {\n return '<a href=\"'.route('admin.users.show', $user->id).'\" />'.$user->last_name.'</a>';\n })\n ->editColumn('created_at', function(User $user) {\n return date(\"d/m/Y\", strtotime($user->created_at));\n })\n ->rawColumns(['first_name','last_name'])\n ->make(true);\n }",
"public function getUsers()\n {\n $company = Company::find(request('company_id'));\n if (request('staff') == 'all' && Auth::user()->isCompany($company->id))\n $user_list = Auth::user()->authUsers('view.user')->pluck('id')->toArray();\n else\n $user_list = $company->staff->pluck('id')->toArray();\n\n $users = User::select([\n 'users.id', 'users.username', 'users.firstname', 'users.lastname', 'users.phone', 'users.email', 'users.company_id', 'users.security', 'users.company_id',\n DB::raw('CONCAT(users.firstname, \" \", users.lastname) AS full_name'),\n 'companys.name', 'users.address', 'users.last_login', 'users.status'])\n ->join('companys', 'users.company_id', '=', 'companys.id')\n ->whereIn('users.id', $user_list)\n ->where('users.status', request('status'));\n\n $dt = Datatables::of($users)\n //->filterColumn('full_name', 'whereRaw', \"CONCAT(firstname,' ',lastname) like ?\", [\"%$1%\"])\n ->editColumn('id', function ($user) {\n //if (in_array(Auth::user()->id, [3,109]) || Auth::user()->allowed2('view.user', $user))\n return '<div class=\"text-center\"><a href=\"/user/' . $user->id . '\"><i class=\"fa fa-search\"></i></a></div>';\n\n return '';\n })\n ->editColumn('full_name', function ($user) {\n $string = $user->firstname . ' ' . $user->lastname;\n\n if ($user->id == $user->company->primary_user)\n $string .= \" <span class='badge badge-info badge-roundless'>P</span>\";\n if ($user->id == $user->company->secondary_user)\n $string .= \" <span class='badge badge-info badge-roundless'>S</span>\";\n if ($user->hasPermission2('edit.user.security'))\n $string .= \" <span class='badge badge-warning badge-roundless'>Sec</span>\";\n\n return $string;\n })\n ->editColumn('name', function ($user) {\n return '<a href=\"/company/' . $user->company_id . '\">' . $user->company->name . '</a>';\n })\n ->editColumn('phone', function ($user) {\n return '<a href=\"tel:' . preg_replace(\"/[^0-9]/\", \"\", $user->phone) . '\">' . $user->phone . '</a>';\n })\n ->editColumn('email', function ($user) {\n //return '<a href=\"mailto:' . $user->email . '\">' . '<i class=\"fa fa-envelope-o\"></i>' . '</a>';\n return '<a href=\"mailto:' . $user->email . '\">' . $user->email . '</a>';\n })\n ->editColumn('last_login', function ($user) {\n return ($user->last_login != '-0001-11-30 00:00:00') ? with(new Carbon($user->last_login))->format('d/m/Y') : 'never';\n })\n ->rawColumns(['id', 'full_name', 'name', 'phone', 'email', 'action'])\n ->make(true);\n\n return $dt;\n }",
"public static function userListFetchAjax()\n {\n try {\n $data = DB::table('reseller_user')\n ->select(array('reseller_user.*', 'reseller_profile.reseller_ID'))\n ->leftJoin('reseller_profile', 'reseller_user.id', '=', 'reseller_profile.user_id')\n ->where('id', '!=', Auth::user()->id);\n return Datatables::of($data)->make(true);\n\n } catch (\\Exception $e) {\n echo $e->getMessage();\n exit;\n }\n }",
"public function ajaxuserlisting()\n {\n \t$sql = \"SELECT users.id,users.name,users.email,COUNT(DISTINCT registration_arham.id) as total FROM `users` LEFT JOIN registration_arham ON users.id=registration_arham.user_id GROUP BY `users.id`\";\n \t\n $data = DB::select($sql); \n\t\t//return DataTables::of($data)->make(true);\n\t\t return Datatables::of($data)\n ->addColumn('action', function ($data) {\n return '<a href=\"'.route('viewmember', $data->id).'\" class=\"btn btn-xs btn-primary\"><i class=\"glyphicon glyphicon-edit\"></i> View</a>';\n })\n\n /*->editColumn('id', 'ID: {{$id}}')\n ->addColumn('action2', function ($data) {\n return '<a href=\"'.route('edituser', $data->id).'\" class=\"btn btn-xs btn-primary\"><i class=\"glyphicon glyphicon-edit\"></i> Edit</a>';\n \t\t })\n ->rawColumns(['action','action2'])*/\n\n ->make(true);\n \n \n }",
"public function getUsersData()\n {\n $users = User::latest()->get();\n \n return Datatables::of($users)\n ->addIndexColumn()\n ->addColumn('edit', function($row){\n\n $btn = '<a href=\"'.url('admin/edit-user/').'/'.$row->id.'\" class=\"edit btn btn-primary btn-sm\">Edit</a>';\n\n return $btn;\n })\n ->addColumn('delete', function($row){\n $btn = '<button onclick=\"deleteArtist('.$row->id.');\" class=\"delete btn btn-danger btn-sm\">Delete</button>';\n\n return $btn;\n })\n ->rawColumns(['edit', 'delete'])\n ->make(true);\n }",
"function getUsers($post)\r\n {\r\n $dt = new DataTable();\r\n\r\n $columns = array(\r\n 'Username',\r\n 'LastName',\r\n 'EmailID',\r\n 'r.Title',\r\n 'u.Status'\r\n );\r\n\r\n $cond = '';\r\n\r\n $clauses = $dt->getClauses($columns, $post);\r\n\r\n if (isset($post['UserRole']) && $post['UserRole'] != '') {\r\n $cond .= (($cond == '') ? \" WHERE \" : \" AND \") . \" u.RoleID = \" . $post['UserRole'] . \" \";\r\n }\r\n\r\n if (isset($post['UserStatus']) && $post['UserStatus'] != '') {\r\n $cond .= (($cond == '') ? \" WHERE \" : \" AND \") . \" u.Status = '\" . $post['UserStatus'] . \"' \";\r\n }\r\n\r\n $qry = \"SELECT SQL_CALC_FOUND_ROWS u.*, r.Title Role FROM users u INNER JOIN roles r ON r.RoleID = u.RoleID $cond \";\r\n $qry .= $clauses['clauses'];\r\n $records = $this->getRecords($qry, $clauses['params'], true);\r\n\r\n $data = array();\r\n foreach ($records as $record) {\r\n $disabled = $record['Status'] == 'Deleted' ? 'disabled' : '';\r\n $checked = $record['Status'] == 'Active' ? 'checked' : '';\r\n\r\n $checkbox_column = \"<div class='checkbox checkbox-info'><input type='checkbox' name='UserIDs[]' class='UserID' role='$record[RoleID]' id='U$record[UserID]' value='$record[UserID]' $disabled /><label for='U$record[UserID]'> </label></div>\";\r\n $toggle_column = \"<label class='switch'><input type='checkbox' id='toggle\" . $record['UserID'] . \"' class='status-switch user-toggle' data-user-id='\" . $record['UserID'] . \"' data-last-name='\" . $record['LastName'] . \"' $checked ><span class='slider round'></span></label>\";\r\n if ($record['Status'] == 'Deleted') {\r\n $checkbox_column = \"\";\r\n $toggle_column = \"\";\r\n }\r\n\r\n $data[] = array(\r\n $checkbox_column,\r\n $record['Username'],\r\n $record['LastName'],\r\n $record['EmailID'],\r\n $record['Role'],\r\n $record['Status'],\r\n $toggle_column\r\n );\r\n }\r\n $total_records = $this->getOne('SELECT FOUND_ROWS()');\r\n return array(\r\n \"draw\" => intval($post['draw']),\r\n \"recordsTotal\" => $total_records,\r\n \"recordsFiltered\" => $total_records,\r\n \"data\" => $data\r\n );\r\n }",
"function fetchUserView(){\r\n $this->datatables->select('USER_ID,USER_FIRST_NAME,USER_LAST_NAME,USER_PASSWORD,USER_TYPE,USER_UNIQ_VALUE')\r\n ->from('user');\r\n echo $this->datatables->generate();\r\n }",
"public function ajax_user_list(){\n\t\t$this->datatables->set_database('rnd');\n\t\t$show_table = 'user';\n\t\t\t\n\t\t$this->datatables->select(\"$show_table.fullname as fullname,$show_table.username as username,$show_table.email as email,$show_table.gender as gender,$show_table.user_type as user_type,$show_table.user_id as user_id\", TRUE);\n\t\t$this->datatables->from($show_table);\t\t\t\t\n\t\t$this->datatables->where('is_deleted','0');\n\t\t\n\t\t$edit = \"<a id='edit' style='float:left;width:10px' href=\" . base_url('user/edit_user/$1') . \" title='Edit'><i class='icon-edit'></i></a>\";\t\t\n\t\t$delete = \"<a style='float:right;width:10px' href=\" . base_url('user/delete_user/$1') . \" onclick='$.deleteLink=\\\"\" . base_url('user/delete_user/$1') . \"\\\";$.OnDeleteDialog()' title='Delete'><i class='icon-trash'></i></a></div>\";\t\t\n\t\t$this->datatables->edit_column('user_id',$edit.$delete,'user_id');\t\n\t\t\n\t\treturn $this->datatables->generate();\n\t\t\n\t}",
"public function fetch_data()\n\t{\n\t\t//Get all account \n\t\t$accounts = $this->user->findAll();\n\n\t\t$this->render('admin.dataAjax.TableAccount', ['accounts' => $accounts]);\n\t}",
"public function index()\r\n {\r\n if (request()->ajax()) {\r\n $referral_agent = ReferralGroup::where('group_name', 'Agent')->first();\r\n if(empty($referral_agent)){\r\n ReferralGroup::create([\r\n 'group_name' => 'Agent',\r\n 'created_by' => Auth::user()->id,\r\n 'date' => Carbon::now()\r\n ]);\r\n }\r\n $referrals = ReferralGroup::leftjoin('users', 'referral_groups.created_by', 'users.id')->select('referral_groups.*', 'users.username as added_by');\r\n\r\n return DataTables::of($referrals)\r\n\r\n ->editColumn('date', '{{@format_date($date)}}')\r\n\r\n ->removeColumn('id')\r\n ->rawColumns([])\r\n ->make(true);\r\n }\r\n }",
"public function loadUsers(){\n\t\t $user_list ='';\n\t\t\t//getting list of users\n\t\t\t$query = \"SELECT * FROM user WHERE is_deleted=0 ORDER BY type\";\n\t\t\t$users = self::$db->executeQuery($query);\n\n\t\t\tself::$db->verifyQuery($users);\n\n\t\t\twhile($user = mysqli_fetch_assoc($users)){\n\t\t\t\t$user_list.= \"<tr>\";\n\t\t\t\t$user_list.= \"<td>{$user['first_name']}</td>\";\n\t\t\t\t$user_list.= \"<td>{$user['last_name']}</td>\";\n\t\t\t\t$user_list.= \"<td>{$user['email']}</td>\";\n\t\t\t\t$user_list.= \"<td>{$user['type']}</td>\";\n\t\t\t\t$user_list.= \"<td>{$user['last_login']}</td>\";\n $user_list.= \"<td><a class=\\\"btn btn-success btn-sm edit_data\\\" name=\\\"edit\\\" value=\\\"Edit\\\" id=\\\"{user['id']}\\\"><span class=\\\"glyphicon glyphicon-edit\\\"></span> Change Password</a></td>\";\n $user_list.= \"<td><a class=\\\"btn btn-danger btn-sm\\\" name=\\\"delete\\\" value=\\\"Delete\\\" id=\\\"{$user['id']}\\\"><span class=\\\"glyphicon glyphicon-trash\\\"></span> Delete</a></td>\";\n\t\t\t\t$user_list.= \"</tr>\";\n\t\t\t}\n\t\t\treturn $user_list;\t\t\n\t\t}",
"public function datatabel_user(){\t\t\t\t\n\t\t\t$result\t\t\t\t= $this->datatabel_user->get_datatables();\t\t\t\t\n\t\t\t$recordsFiltered\t= $this->datatabel_user->count_filtered();\n\t\t\t$recordsTotal\t\t= $this->datatabel_user->count_all();\n\n\t\t\t$data\t\t\t\t= $this->datatabel_user->get_json($result, $recordsTotal, $recordsFiltered);\n\t\t\t\n\t\t\techo json_encode($data);\n\t\t}",
"protected function loadUsers()\n {\n $users = self::getSubObjectIDs(\n 'UserTracking',\n array('hostID' => $this->get('id'))\n );\n $this->set('users', $users);\n }",
"public function get_all_users(){\n\t\t\t$wh =array();\n\t\t\t$SQL ='SELECT * FROM ci_users';\n\t\t\t$wh[] = \" is_admin = 0\";\n\t\t\tif(count($wh)>0)\n\t\t\t{\n\t\t\t\t$WHERE = implode(' and ',$wh);\n\t\t\t\treturn $this->datatable->LoadJson($SQL,$WHERE); // datatable->LoadJson() is a function in datatables custom library\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn $this->datatable->LoadJson($SQL);\n\t\t\t}\n\t\t}",
"public function datatables()\n {\n return datatables(User::datatables(true))\n ->addColumn('role', function ($user) {\n return User::findOrFail($user->id)->roles[0]->name;\n })\n ->addColumn('action', function ($user) {\n if (Sentinel::findById($user->id)->roles[0]->is_super_admin) {\n return;\n }\n\n $url = action('Backend\\UserTrusteeController@edit', $user->id);\n\n return '<a href=\"'.$url.'\" class=\"btn btn-warning\" title=\"Edit\"><i class=\"fa fa-pencil-square-o fa-fw\"></i></a> <a href=\"#\" class=\"btn btn-danger\" title=\"Delete\" data-id=\"'.$user->id.'\" data-button=\"delete\"><i class=\"fa fa-trash-o fa-fw\"></i></a>';\n })\n ->editColumn('last_login', function ($user) {\n if (is_null($user->last_login)) {\n return '--';\n }\n\n return ahloo_datetime($user->last_login);\n })\n ->make(true);\n }",
"public function load_referrers_list() {\n \n (new MidrubBaseAdminCollectionSettingsHelpers\\Referrals)->load_referrers_list();\n \n }",
"static function ajax_view_usernames() {\n $options = self::get_options();\n $users = new WP_User_Query(array('meta_key' => 'bdl_hash', 'meta_value' => '', 'meta_compare' => '!='));\n $out = '';\n\n if (!$options['prevent_double_username']) {\n $out .= '<p>' . __('Username based double login protection is <b>disabled</b>.', 'wf_bdl') . '</p>';\n } else {\n $out .= '<table autofocus=\"autofocus\" id=\"small-stats\">';\n $out .= '<tr><th>' . __('IP', 'wf_bdl') . '</th><th>' . __('Username', 'wf_bdl') . '</th><th>' . __('Last seen', 'wf_bdl') . '</th></tr>';\n foreach ($users->results as $user) {\n $time = get_user_meta($user->ID, 'bdl_last_seen', true);\n $ip = get_user_meta($user->ID, 'bdl_ip', true);\n\n if ((time() - $time) > $options['session_timeout'] * 60) {\n continue;\n } elseif ((time() - $time) < 60) {\n $time = __('a few seconds ago', 'wf_bdl');\n } elseif ((time() - $time) < 30*60) {\n $time = (int) ((time() - $time) / 60) . ' min ago';\n } else {\n $time = date(get_option('date_format'), $time) . ' @ ' . date(get_option('time_format'), $time);\n }\n $out .= '<tr><td>' . $ip . '</td><td><a href=\"users.php?s=' . $user->user_login . '\">' . $user->user_login . '</a></td><td>' . $time . '</td></tr>';\n } // foreach\n $out .= '</table>';\n }\n\n die(json_encode($out));\n }",
"public function getDataTables(UserRequest $request)\n {\n return Datatables::of($this->userRepository->getForDataTable($request->get('status'), $request->get('trashed')))\n ->escapeColumns(['email'])\n ->editColumn('email_verified_at', function ($user) {\n return view('backend.auth.user.includes.verified', ['user' => $user]);\n })\n ->filterColumn('email_verified_at', function ($query, $keyword) {\n $param = strtolower($keyword) == __('si');\n\n if ($param) {\n $query->whereNotNull('email_verified_at');\n } else {\n $query->whereNull('email_verified_at');\n }\n })\n ->editColumn('two_factor_authentications', function ($user) {\n return view('backend.auth.user.includes.2fa', ['user' => $user]);\n })\n ->addColumn('roles', function ($user) {\n return \"<span class='btn btn-light-primary font-weight-lighter btn-sm'>$user->roles_label</span>\";\n })\n ->addColumn('permissions', function ($user) {\n return \"<span class='btn btn-light-warning font-weight-lighter btn-sm'>$user->permissions_label</span>\";\n })\n ->addColumn('actions', function ($user) {\n return view('backend.auth.user.includes.actions', ['user' => $user]);\n })\n ->make(true);\n }",
"public static function getReferredUserList() {\n $userModel = new User();\n $data = array();\n $search = '';\n $input = Input::all();\n if (isset($input['search']['value'])) {\n $search = $input['search']['value'];\n }\n if (!$search) {\n $results = $userModel->getReferredUserListWeb(array('limit' => $input['length'], 'offset' => $input['start']));\n } else {\n $results = $userModel->getReferredUserListWeb(array('q' => $search, 'limit' => $input['length'], 'offset' => $input['start']));\n }\n\n\n foreach ($results['result'] as $result) {\n $cashback = 0;\n if(!empty($result->referred_user_id)) {\n $cashback = $result->actual_cost + $result->travel_cost;\n $cashback = ($cashback * $result->commission_percent) / 100;\n }\n $data[] = array(\n $result->id,\n $result->email,\n trim(ucwords($result->first_name).' '.ucwords($result->last_name)),\n $result->user_type,\n ucwords($result->referred_by_name),\n $result->bank_username,\n $result->bank_bsb_no,\n $result->bank_acc_no,\n '$'.$cashback\n );\n\n }\n\n return array('data' => $data, 'recordsTotal' => $results['count'], \"recordsFiltered\" => $results['count']);\n }",
"public function list()\n { \n\t Datatable::setModule('user');\n\t\tDatatable::setFields(array('id','name','email','created_at'));\n\t\tDatatable::displayFields(array('id'=>'userid','name'=>'User Name'));\n\t\tDatatable::showfilters();\n\t\tDatatable::showActions(array('view','edit','delete'));\n\t\tDatatable::setListurl('user/allusers');\n\t\t\n\t\treturn Theme::uses('admin')->view('user::list');\n\t}",
"public function gettabledata() {\r\n $columns = array('user.id', 'user.name', 'user.email', 'user.contact_no', 'user.status', 'user.status', 'user.status', 'user.status', 'user.status', 'user.status');\r\n $request = $this->input->get();\r\n $condition = array('user.is_deleted' => '0');\r\n if ($request[\"usertype\"] == 0) {\r\n $condition[\"user_type\"] = 0;\r\n } else {\r\n $condition[\"user_type\"] = 1;\r\n }\r\n $join_str = array();\r\n $getfiled = \"user.id,user.name,user.email,user.contact_no,user.status\";\r\n $this->db->order_by(\"user.id\", \"desc\");\r\n echo $this->common->getDataTableSourceUser('user', $columns, $condition, $getfiled, $request, $join_str, '');\r\n die();\r\n }",
"private function table_data()\n\t\t{\n\n\t\t\t$users_array = get_users( array(\n\t\t\t \"meta_key\" => \"khadem_account_type\",\n\t\t\t \"meta_value\" => \"Customer\",\n\t\t\t \"fields\" => \"ID\"\n\t\t\t ) );\n\t\t\t$all_users = implode(',',$users_array);\t\n\t\t\t\n\t\t\t$data = array();\n\t\t\tglobal $wpdb;\n\t\t\t$table_name = $wpdb->prefix . 'users';\n\t\t\tif(isset($_POST['s'])){\n\t\t\t\t$like = $_POST['s'];\n\t\t\t\t$all_agent_array = $wpdb->get_results( \"SELECT * FROM \".$table_name.\" WHERE (user_login like '%\".$like.\"%' OR user_email like '%\".$like.\"%' OR user_nicename like '%\".$like.\"%') AND ID IN ($all_users) \", OBJECT );\n\t\t\t}else{\n\t\t\t\t$all_agent_array = $wpdb->get_results( \"SELECT * FROM \".$table_name.\" WHERE ID IN ($all_users) \", OBJECT );\n\n\t\t\t\t// $all_agent_array = $wpdb->get_results( \"SELECT * FROM \".$table_name.\" WHERE ID IN ($all_users) \", OBJECT );\n\t\t\t}\n\t\t\t\n\t\t\t$today = date(\"Y-m-d\");\n\t\t\t$cc = count($all_agent_array);\n\t\t\tforeach($all_agent_array as $agent_detail){\n\n\t\t\t\t$all_meta_for_user = get_user_meta($agent_detail->ID);\n\n\t\t\t\t$data[] = array(\n\t\t\t\t\t\t'ID' \t=> $agent_detail->ID,\n\t\t\t\t\t\t'NAME' \t\t=> $agent_detail->user_nicename,\n\t\t\t\t\t\t'EMAIL' \t\t=> $agent_detail->user_email,\n\t\t\t\t\t\t'PHONE'\t\t\t=> $all_meta_for_user['khadem_contact_number'][0],\n\t\t\t\t\t\t'ADDRESS'\t\t\t=> $all_meta_for_user['khadem_address'][0],\n\t\t\t\t\t\t'ACTION' \t=> '\n\t\t\t\t\t\t\t<a href=\"'.wp_nonce_url(admin_url('options.php?page=delete-agent-khadem&ID='.$agent_detail->ID.''), 'doing_something', 'my_nonce').'\" class=\"button button-primary\">Delete</a>'\n\t\t\t\t\t\t);\n\t\t\t}\n\t\t\treturn $data;\n\t\t}",
"function userList(){ \n\n listAll(array(\"Id\",\"Name\",\"Email-Id\",\"Company\",\"User-Name\",\"Password\"),null); /* *(first parameter page-name),*(second is title for column),(third parameter is for column to show)*/\n\n }",
"function datatable()\n {\n $this->load->model('user');\n $result = $this->user->getAllUser();\n $totalFiltered = $result;\n\n $data = array();\n foreach($totalFiltered as $row)\n {\n $nestedData=array();\n $nestedData[] = $row->user_id;\n $nestedData[] = $row->user_fullname;\n $nestedData[] = $row->user_course;\n $nestedData[] = $row->user_age;\n $nestedData[] = \"<a href=\\\"#\\\" id='update'>Edit</a>\";\n $data[] = $nestedData;\n }\n $json_data = array(\n \"iTotalDisplayRecords\" => count( $result ),\n// \"recordsFiltered\" => count( $totalFiltered ),\n \"aaData\" => $data\n );\n echo json_encode($json_data);\n }",
"public function get_all_users() \n { \n $per_page = MAX_DATA_PER_PAGE;\n $current_page = Param::get('page', 1);\n $pagination = new SimplePagination($current_page, $per_page);\n\n $user_id = $_SESSION['user_id'];\n $users = User::getOtherUsers($pagination->start_index -1, $pagination->count + 1, $user_id);\n \n $pagination->checkLastPage($users);\n $total = User::countOtherUser($user_id);\n $pages = ceil($total / $per_page);\n $this->set(get_defined_vars());\n }",
"public function Getallusers(Request $request){\n\n $GetEvents = Apiuser::select('id', 'name', 'email','total_scan', DB::raw('DATE_FORMAT(created_at, \"%d %b %Y\") as created_on'));\n \n $GetEvents->where('status', 1);\n if (!empty($request->get('search'))) {\n $GetEvents->where('name', 'like', '%' . $request->get('search') . '%');\n }\n\n $GetEventsList = $GetEvents->get();\n\n return Datatables::of($GetEventsList)\n ->addColumn('action', function ($GetEventsList) {\n return '<a href=\"javascript:void(0);\" data-id=\"'. $GetEventsList->id .'\" class=\"btn btn-danger delete-currency\"><i class=\"glyphicon glyphicon-remove\"></i> Delete</a><a href=\"manage/user-scan-history/'. $GetEventsList->id .'\" data-id=\"'. $GetEventsList->id .'\" class=\"btn btn-info\"><i class=\"fa fa-barcode\"></i> Scan history</a>';\n })\n ->make(true);\n }",
"private function users(){\n\t\t\tif($this->get_request_method() != \"GET\"){\n\t\t\t\t$this->response('',406);\n\t\t\t}\n\t\t\t$sql = mysql_query(\"SELECT user_id, user_fullname, user_email FROM users WHERE user_status = 1\", $this->db);\n\t\t\tif(mysql_num_rows($sql) > 0){\n\t\t\t\t$result = array();\n\t\t\t\twhile($rlt = mysql_fetch_array($sql,MYSQL_ASSOC)){\n\t\t\t\t\t$result[] = $rlt;\n\t\t\t\t}\n\t\t\t\t// If success everythig is good send header as \"OK\" and return list of users in JSON format\n\t\t\t\t$this->response($this->json($result), 200);\n\t\t\t}\n\t\t\t$this->response('',204);\t// If no records \"No Content\" status\n\t\t}",
"public function populateUsers()\n {\n $this->_users = $this->_leaderboard->getMembers($this->_id);\n }",
"public function ajax_all_user_location() {\r\n\t\t$requestData = $_REQUEST;\r\n\r\n\t\t$columns = array(\r\n\t\t\t// datatable column index => database column name\r\n\t\t\t0 => 'id',\r\n\t\t\t1 => 'name',\r\n\t\t\t2 => 'email',\r\n\t\t\t3 => 'country',\r\n\t\t\t4 => 'state',\r\n\t\t\t5 => 'city'\r\n\t\t);\r\n\r\n\t\t$query = \"SELECT count(id) as total\r\n\t\t\t\t\t\t\t\t\tFROM user_registerd_location\r\n\t\t\t\t\t\t\t\t\twhere 1 = 1\"\r\n\t\t\t\t\t\t\t\t\t;\r\n\t\t$query = $this->db->query($query);\r\n\t\t$query = $query->row_array();\r\n\t\t$totalData = (count($query) > 0) ? $query['total'] : 0;\r\n\t\t$totalFiltered = $totalData;\r\n\r\n\t\t$sql = \"SELECT url.*,u.name,u.email,u.creation_time FROM user_registerd_location as url\r\n\t\t\t\tJOIN users as u ON url.user_id = u.id\r\n\t\t\t\twhere 1 = 1 \r\n\t\t\t\t\";\r\n\t\t// getting records as per search parameters\r\n\t\tif (!empty($requestData['columns'][0]['search']['value'])) { //name\r\n\t\t\t$sql.=\" AND id LIKE '\" . $requestData['columns'][0]['search']['value'] . \"%' \";\r\n\t\t}\r\n\t\tif (!empty($requestData['columns'][1]['search']['value'])) { //salary\r\n\t\t\t$sql.=\" AND name LIKE '\" . $requestData['columns'][1]['search']['value'] . \"%' \";\r\n\t\t}\r\n\t\t\r\n\t\tif (!empty($requestData['columns'][2]['search']['value'])) { //salary\r\n\t\t\t$sql.=\" AND email LIKE '\" . $requestData['columns'][2]['search']['value'] . \"%' \";\r\n\t\t}\r\n\r\n\t\tif (!empty($requestData['columns'][3]['search']['value'])) { //salary\r\n\t\t\t$sql.=\" AND country LIKE '\" . $requestData['columns'][3]['search']['value'] . \"%' \";\r\n\t\t}\r\n\r\n\t\tif (!empty($requestData['columns'][4]['search']['value'])) { //salary\r\n\t\t\t$sql.=\" AND state LIKE '\" . $requestData['columns'][4]['search']['value'] . \"%' \";\r\n\t\t}\r\n\r\n\t\tif (!empty($requestData['columns'][5]['search']['value'])) { //salary\r\n\t\t\t$sql.=\" AND city LIKE '\". $requestData['columns'][5]['search']['value'] . \"%' \";\r\n\t\t}\r\n\r\n\t\t\r\n\t\t//echo $requestData['columns'][5]['search']['value'];\r\n\t\t$query = $this->db->query($sql)->result();\r\n\r\n\t\t$totalFiltered = count($query); // when there is a search parameter then we have to modify total number filtered rows as per search result.\r\n\r\n\t\t$sql.=\" ORDER BY \" . $columns[$requestData['order'][0]['column']] . \" \" . $requestData['order'][0]['dir'] . \" LIMIT \" . $requestData['start'] . \" ,\" . $requestData['length'] . \" \"; // adding length\r\n\r\n\t\t$result = $this->db->query($sql)->result();\r\n\t\r\n\t\t$data = array();\r\n\r\n\t\tforeach ($result as $r) { // preparing an array\r\n\t\t\t$nestedData = array();\r\n\t\t\t$nestedData[] = $r->id;\r\n\t\t\t$nestedData[] = $r->name;\r\n\t\t\t$nestedData[] = $r->email;\r\n\t\t\t$nestedData[] = $r->country;\r\n\t\t\t$nestedData[] = $r->state;\r\n\t\t\t$nestedData[] =\t$r->city;\r\n\t\t\t$nestedData[] = $r->latitude;\r\n\t\t\t$nestedData[] = $r->longitude;\r\n\t\t\t$nestedData[] = $r->ip_address;\r\n\t\t\t$nestedData[] = date(\"d-m-Y\", $r->creation_time/1000);\r\n\t\t\t$nestedData[] = \"<a class='btn-xs bold btn btn-info' href='#'>View</a>\";\r\n\t\t\t$data[] = $nestedData;\r\n\t\t}\r\n\r\n\t\t$json_data = array(\r\n\t\t\t\"draw\" => intval($requestData['draw']), // for every request/draw by clientside , they send a number as a parameter, when they recieve a response/data they first check the draw number, so we are sending same number in draw.\r\n\t\t\t\"recordsTotal\" => intval($totalData), // total number of records\r\n\t\t\t\"recordsFiltered\" => intval($totalFiltered), // total number of records after searching, if there is no searching then totalFiltered = totalData\r\n\t\t\t\"data\" => $data // total data array\r\n\t\t);\r\n\r\n\t\techo json_encode($json_data); // send data as json format\r\n\t}",
"public function anyData()\n {\n return Datatables::of(User::query())->make(true);\n }"
] | [
"0.745486",
"0.66417575",
"0.646581",
"0.6305305",
"0.62922454",
"0.6280167",
"0.62535644",
"0.6057989",
"0.60289866",
"0.5987171",
"0.5983238",
"0.5982041",
"0.596781",
"0.5930062",
"0.5900356",
"0.58728695",
"0.5864105",
"0.58170396",
"0.5812504",
"0.58084184",
"0.57302135",
"0.5690572",
"0.56905484",
"0.56733483",
"0.5658255",
"0.5651189",
"0.5627147",
"0.5623922",
"0.5623911",
"0.562234"
] | 0.7506792 | 0 |
method to show the candidate's career profile for the resume database access | public function candidateprofile($id)
{
$jobseekerdetail = JobseekerDetail::where('user_id', $id)->first();
$personalstatement = PersonalStatement::where('user_id', $id)->first();
$academics = Education::where('user_id', $id)->get();
$experiences = WorkExperience::where('user_id', $id)->get();
$referees = Reference::where('user_id', $id)->get();
$certifications = Awards::where('user_id', $id)->get();
$skills = Skills::where('user_id', $id)->get();
$talent=TalentPool::whereIn('employer_id', [0,Auth::guard('employer')->user()->id])->get();
return view('employer-dashboard.resume-view', compact( 'jobseekerdetail', 'personalstatement',
'academics', 'experiences', 'referees', 'certifications','skills', 'talent'));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function profile()\n {\n return view('auth.profile')->withProfile(auth()->user()->knowyc);\n }",
"public function actionCarerprofile() {\n $carerIdEn = Yii::$app->request->get(\"car_id\");\n $carerId = base64_decode($carerIdEn);\n if ($carerId > 0 && is_numeric($carerId)) {\n $data[\"carerDetails\"] = $carerDetails = CarerDetails::find()->where(['user_id' => $carerId])->one();\n $data[\"carerAvailability\"] = $carerAvailability = AvailableTime::find()->where(\"user_id = $carerId AND status = 1\")->all();\n $data[\"carerAllExpType\"] = $carerAllExpType = CaringExperienceType::find()->where(\"status = 1\")->all();\n $data[\"qualification\"] = $qualification = Qualifications::find()->where(\"status = 1\")->all();\n $data[\"carerAgeRange\"] = $carerAgeRange = CarerAgeRange::find()->where(\"status = 1\")->all();\n $data[\"carerOtherDuties\"] = $carerOtherDuties = OtherDuties::find()->where(\"status = 1\")->all();\n $data[\"dayMaster\"] = $dayMaster = DayMaster::find()->all();\n return $this->render(\"profile/carer-profile\", $data);\n// return $this->render(\"profile/carer-profile1\", $data);\n } else {\n throw new \\yii\\web\\NotFoundHttpException();\n }\n }",
"public function profile()\n {\n return view('crm.account.profile');\n }",
"public function profile() {\n if(!$this->user) {\n Router::redirect('/users/login');\n }\n\n # Setup view\n $this->template->content = View::instance('v_users_profile');\n\n # Setup title\n $this->template->title = \"Profile\";\n\n #Query to discern customers from plowers\n $q = \"SELECT \n users.user_type \n FROM users\n WHERE user_id =\". $this->user->user_id;\n\n $corp = DB::instance(DB_NAME)->select_field($q); \n\n #Pass info to view\n $this->template->content->corp = $corp;\n\n # Render template\n echo $this->template;\n\n }",
"public function candidate_profile()\n {\n return $this->hasOne('App\\UserCandidateProfile');\n }",
"public function showProfile();",
"public function profile()\n {\n $data['profiles'] = Profile::all();\n $data['countries'] = Country::all();\n $data['staff'] = Auth::guard('staff')->user();\n //$data['staff'] = Staff::find(Auth::guard('staff')->user()->id);\n\n return view('system.backoffice.staff.profile',$data);\n \n }",
"public function showCandidate()\n {\n\n $user_id = Auth::user()->id;\n $data['data'] = DB::table('candidates')->where('id', '=', $user_id)->get();\n if (count($data) > 0) {\n\n\n return view('candidate/viewYourProfile')->with('showCandidate', $data['data']);\n }\n }",
"public function profile(){\n\t\t$UserId= $_SESSION['login'];\n\t\t$data['emp_dtl']=$this->emp->emp_info($UserId);\n\t\t$data['edu_dtl']=$this->emp->emp_edu_dtl($UserId);\n\t\t$data['fam_dtl']=$this->emp->emp_fam_dtl($UserId);\n\t\t$data['bank_dtl']=$this->emp->emp_bank_dtl($UserId);\n\t\t$data['showrow'] =$this->emp->getEmpPic($UserId);\n\t\t$this->load->view('emp/profile', $data);\n\t}",
"public function tuteeprofile()\n {\n $user = User::find(auth()->user()->id);\n $courses = Course::all();\n return view('tutee.profile',compact('user', 'courses'));\n }",
"public function getProfile()\n\t{\n\t}",
"public function showProfile()\n\t{\n\t\treturn View::make('university.profile')->with(\n\t\t\tarray(\n\t\t\t\t'university' => University::find(Auth::id()),\n\t\t\t)\n\t\t);\n\t}",
"public function profile() {\n $summonerName = $this->session->get('user')->summonerName;\n echo view('template/header_loggedin', [\n 'role' => $this->session->get('user')->role,\n 'username' => $summonerName\n ]);\n echo view('pages/profile', [\n 'matches' => KorisnikModel::getMatchHistory($summonerName),\n 'name' => $summonerName,\n 'division' => $this->getDivision($summonerName),\n 'champs' => PlaysModel::getMostPlayed($summonerName),\n 'poros' => $this->getPoros($summonerName)\n ]);\n echo view('template/footer');\n }",
"public function showProfile()\n {\n Counter::count('dashboard.profil');\n\n $defaultProfil = config('app.default_profile');\n\n $profil = Profil::where(['kecamatan_id'=>$defaultProfil])->first();\n\n $dokumen = DB::table('das_form_dokumen')->take(5)->get();\n\n $page_title = 'Profil';\n if(isset($profil)){\n $page_description= ucwords(strtolower('Kecamatan '.$profil->kecamatan->nama));\n }\n\n return view('dashboard.profil.show_profil', compact('page_title', 'page_description', 'profil', 'defaultProfil', 'dokumen'));\n }",
"public function showProfile() {\n $id = Auth::user()->id;\n $tickets = $this->ticket_model->getUserTickets($id)->sortByDesc('dataAcquisto');\n $partecipants = $this->partecipant_model->getUserPartecipant($id);\n return view('profilo')\n ->with('parteciperò', $partecipants)\n ->with('biglietti', $tickets);\n }",
"public function profile_user()\n\t{\n\t\t// Get infor from database\n\t\t$users = user::all();\n\t\t$enterprises = enterprise::all();\n\t\treturn view('profile_user', compact('users', 'enterprises'));\n\t}",
"public function getProfile()\n {\n }",
"public function showSpeakerProfile()\n {\n $speakers = $this->service('application.speakers');\n\n try {\n $profile = $speakers->findProfile();\n\n return $this->render('dashboard.twig', [\n 'profile' => $profile,\n 'cfp_open' => $this->isCfpOpen(),\n ]);\n } catch (NotAuthenticatedException $e) {\n return $this->redirectTo('login');\n }\n }",
"public function profil()\n {\n if ($_SESSION['userType'] != 'medecin') {\n notAuthorized();\n } else {\n $data = [\n 'medecin' => $this->activeUser,\n 'rdvs' => $this->medecinModel->rvdAttente(),\n 'page' => 'Mon Profil'\n ];\n $this->view('medecins/profile', $data);\n }\n }",
"public function getProfile();",
"public function getProfile()\n {\n $data['left'] = $this->left();\n return View::make('home.profile', $data);\n }",
"public function profile()\n {\n return view('member.profile');\n }",
"public function profile ()\n {\n return view('admin.authors.profile', ['author' => Auth::user()]);\n }",
"public function profile() {\n\t\t\t\n\t\t\t# checks for signed in user - restricts access to profiles\n\t\t\tif(isset($_SESSION[\"id\"])) {\n\t\t\t\n\t\t\t\t$id = $_SESSION[\"id\"];\n\t\t\t\t\n\t\t\t\t# retrieves user data for user in profile\n\t\t\t\t$user = $this->model->getUserInfo($id);\n\t\t\t\t\n\t\t\t\t# renders profile\n\t\t\t\t$this->renderView(\"profile\",\"Profile\",$user);\n\t\t\t\n\t\t\t}else{\n\t\t\t\n\t\t\t\techo 'must be logged in';\n\t\t\t\n\t\t\t}\n\t\t\n\t\t}",
"public function getProfileDetails(){\n\t\t\n\t\t$allProfiles = Profile::all();\n\t\t$profileId = -1;\n\t\t\n\t\tforeach($allProfiles as $profile){\n\t\t\tif($profile->user_id == Auth::id()){\n\t\t\t\t$profileId = $profile->id;\n\t\t\t}\n\t\t}\n\t\t$profile = Profile::find($profileId);\n\t\treturn $profile;\n\t}",
"public function profile()\n {\n $id = $this->session->userdata('id');\n $profile = $this->usr->cli_profile($id);\n $data = [\n 'title' => 'User Profile',\n 'content' => '/client/profile',\n 'profile' => $profile\n ];\n $this->load->view('wrapper', $data);\n }",
"public function profile()\n {\n $user = Auth::user() ?? $this->user;\n return view('dashboard.profiles.edit', compact('user'));\n }",
"public function profile()\n {\n $agent = auth()->user();\n return view($this->_config['view'], ['agent' => $agent]);\n }",
"public function show()\n {\n return $profile = Profile::where('user_id','=',auth()->id())->get();\n }",
"public function index()\n {\n return Auth::user()->profile;\n }"
] | [
"0.67232746",
"0.66235965",
"0.65194005",
"0.65102994",
"0.64447075",
"0.64360213",
"0.6361672",
"0.6351324",
"0.63350916",
"0.63183457",
"0.6314072",
"0.6292457",
"0.62447745",
"0.6224634",
"0.6207526",
"0.6195874",
"0.6173251",
"0.61708295",
"0.61403275",
"0.61393076",
"0.6128718",
"0.61183983",
"0.6100618",
"0.6069084",
"0.604154",
"0.6039799",
"0.6033182",
"0.60328937",
"0.6029565",
"0.60287595"
] | 0.6712633 | 1 |
show all talent pools from the database | public function talentpool(){
$talent=TalentPool::whereIn('employer_id', [0,Auth::guard('employer')->user()->id])->get();
return view('employer-dashboard.talentpool',compact(['talent']));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getPools()\n {\n return $this->get('/pools');\n }",
"public function pools()\n {\n return $this->get('/agents/pools');\n }",
"public function pools()\n {\n return $this->get('/user/load_balancers/pools');\n }",
"public function index()\n {\n $choices = PlayoffChoices::getChoices();\n $pointsByRoundsForUsers = PlayoffChoices::getPointsByRoundsForUsers($choices);\n $choicesByUsernameAndRounds = PlayoffChoices::formatChoicesByUsernameAndRounds($choices, $pointsByRoundsForUsers);\n $nbPlayoffGames = PlayoffTeams::count();\n\n return view('pool/list')\n ->with(compact('choicesByUsernameAndRounds', 'nbPlayoffGames'))\n ;\n }",
"public function actionIndex()\n {\n $searchModel = new TaskPoolSearch();\n $dataProvider = $searchModel->search(Yii::$app->request->queryParams);\n\n return $this->render('index', [\n 'searchModel' => $searchModel,\n 'dataProvider' => $dataProvider,\n ]);\n }",
"private function renderPoolLinks()\n {\n $program = 'Core';\n $projectId = $this->formData['projectId'];\n\n $sql = <<<EOD\nSELECT poolKey,poolSlotView,poolTeamKey,program,gender,age,division\nFROM poolTeams\nWHERE poolTypeKey = 'PP' AND projectId = ? and program = ?\nORDER BY program,gender,age\nEOD;\n $stmt = $this->conn->executeQuery($sql, [$projectId, $program]);\n $pools = [];\n while ($pool = $stmt->fetch()) {\n $pools[$pool['program']][$pool['gender']][$pool['age']][$pool['poolKey']] = $pool;\n }\n $routeName = $this->getCurrentRouteName();\n $html = null;\n\n // Keep the idea of multiple programs for now\n foreach ($pools as $program => $genders) {\n $html .= <<<EOD\n<table>\n <tr>\n <td class=\"row-hdr\" rowspan=\"2\" style=\"border: 1px solid black;\">{$program}</td>\nEOD;\n foreach ($genders as $gender => $ages) {\n // Should be a transformer of some sort\n $genderLabel = $gender === 'B' ? 'Boys' : 'Girls';\n $html .= <<<EOD\n <td class=\"row-hdr\" style=\"border: 1px solid black;\">{$genderLabel}</td>\nEOD;\n foreach ($ages as $age => $poolsForAge) {\n\n $division = array_values($poolsForAge)[0]['division'];\n $linkParams = [\n //'projectId' => $projectId,\n //'program' => $program, // Have no id for program/division\n 'division' => $division,\n ];\n $html .= <<<EOD\n <td style=\"border: 1px solid black;\">\n <a href=\"{$this->generateUrl($routeName,$linkParams)}\">{$gender}{$age}</a>\nEOD;\n/*\n foreach ($poolsForAge as $poolKey => $pool) {\n $linkParams = [\n //'projectId' => $projectId,\n 'poolKey' => $poolKey, // This is unique within a project\n ];\n // Need a short pool name view\n //$poolName = $pool['poolKey'];\n //$poolName = substr($poolName,strlen($poolName)-1);\n\n $html .= <<<EOD\n <a href=\"{$this->generateUrl($routeName,$linkParams)}\">{$pool['poolSlotView']}</a>\nEOD;\n }*/\n // Finish division column\n $html .= sprintf(\" </td>\\n\");\n }\n // Force a row shift foreach gender column\n $html .= sprintf(\"</tr>\\n\");\n }\n // Finish the program table\n $html .= sprintf(\"</tr></table>\\n\");\n }\n return $html;\n }",
"public function listStoragePool(){\n return libvirt_list_storagepools($this->connection);\n }",
"public function poolmembers($id)\n {\n $poolmembers = TalentpoolCandidates::where('talentpool_id', $id)->get();\n\n return view('employer-dashboard.poolmembers', compact('poolmembers'));\n}",
"function POOL_getPools()\t// -> OOP\n{\n\tif (!file_exists(\"/m23/data+scripts/pool\"))\n\t\tmkdir(\"/m23/data+scripts/pool\");\n\n\t$i=0;\n\t$pin=popen(\"cd /m23/data+scripts/pool/; find -type d -mindepth 1 -maxdepth 1 | sed 's/^\\.\\///g'\",\"r\");\n\twhile ($pool=fgets($pin))\n\t\t$pools[$i++]=trim($pool);\n\tpclose($pin);\n\treturn($pools);\n}",
"public function listActiveStoragePool(){\n return libvirt_list_active_storagepools($this->connection);\n }",
"public function index()\n {\n $swimmingpool=Swimmingpool::all();\n return SwimmingpoolResource::collection($swimmingpool);\n }",
"function supplierList(){\n // $this->getMasterDbString();\n //$petcoPDO = this->getMasterDbString();\n $option = \"<option>All</option>\";\n $sql = \"SELECT [Supplier] FROM [Suppliers] ORDER BY [Supplier] ASC\";\n $query = $this->petcoPDO->prepare($sql);\n $query->execute();\n \n while($row = $query->fetch()){\n $option .= \"<option>\".$row['Supplier'].\"</option>\";\n }\n return $option;\n }",
"function listQueryPeriodeBobot() {\n\t\t\t$sql = \"select * from \".static::table('pa_periodebobot');\n\t\t\t\n\t\t\treturn $sql;\n\t\t}",
"public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $pingtus = $em->getRepository('DurabolBundle:Pingtu')->findAll();\n $shops = $em->getRepository('DurabolBundle:Shop')->findAll();\n\n return $this->render('pingtu/index.html.twig', array(\n 'pingtus' => $pingtus,\n 'shops' => $shops,\n ));\n }",
"function POOL_showSourcesList($poolName)\n{\n\tinclude(\"/m23/inc/i18n/\".$GLOBALS[\"m23_language\"].\"/m23base.php\");\n\tHTML_showTableHeader();\n\techo (\"\n\t<tr>\n\t\t<td>\n\t\t\t<span class=\\\"title\\\">$I18N_packageSources</span><br>\n\t\t\t<textarea cols=\\\"100\\\" rows=\\\"5\\\" readonly>\".\n\t\t\tPOOL_getProperty($poolName,\"sourceslist\")\n\t\t\t.\"</textarea>\n\t\t</td>\n\t</tr>\");\n\tHTML_showTableEnd();\n}",
"public function getAllCarpools() {\n if (!$this->can_see_carpool)\n throw new Exception('Permission denied.');\n\n $stmt = $this->db->prepare(\"\n SELECT * FROM users WHERE want_carpool == 1\n \");\n $result = array();\n $users = $stmt->execute();\n while ($user = $users->fetchArray(SQLITE3_ASSOC))\n $result[] = $user;\n return $result;\n }",
"function GET_TEMPLATES()\n {\n $this->getConn()->exec('USE ' . $this->maindb);\n $sth = $this->getConn()->prepare(\"SELECT `template`.`templateID`,`template`.`name`,`template`.`description` FROM `template`\");\n $ret = $sth->execute();\n return $sth->fetchAll(PDO::FETCH_NUM);\n }",
"public function getAllGuitars()\n {\n $stmt = $this->DB->prepare(\"SELECT * FROM guitars\");\n $stmt->execute();\n $guitars = $stmt->fetchAll(PDO::FETCH_ASSOC);\n return $guitars;\n }",
"public function index()\n {\n //\n $listDb = DB::table('produtos')->get();\n return view('pggrid', ['listRow' => $listDb]);\n }",
"public function getNodePools()\n {\n return $this->node_pools;\n }",
"public function queryAll(){\n\t\t$sql = 'SELECT * FROM tech_hit';\n\t\t$sqlQuery = new SqlQuery($sql);\n\t\treturn $this->getList($sqlQuery);\n\t}",
"public function listAction()\n {\n $response = $this->get('slowdb')->all();\n\n return new JsonResponse($response);\n }",
"protected function renderPoolTeams()\n {\n if (!$this->poolTeams) {\n return null;\n }\n $poolTeamCount = count($this->poolTeams);\n\n $html = <<<EOD\n<div class=\"form-group col-xs-9 col-xs-offset-2 clearfix\">\n <a href=\"{$this->generateUrl('pool_team_import')}\" class=\"btn btn-sm btn-primary pull-right\">\n <span class=\"glyphicon glyphicon-share\"></span> Import Pool Teams</a>\n <a href=\"{$this->generateUrl('pool_team_export')}\" class=\"btn btn-sm btn-primary pull-right\">\n <span class=\"glyphicon glyphicon-share\"></span> Export Pool Teams to Excel</a>\n</div>\n<div class=\"clearfix\"></div>\n<div id=\"layout-block\">\n<table class=\"standings\" border = \"1\">\n<tr><th colspan=\"20\" class=\"text-center\">Pool Teams: {$poolTeamCount}</th></tr>\n<tr class=\"tbl-hdr\">\n <th class=\"text-center\">Pool Keys</th>\n <th class=\"text-center\">Pool Views</th>\n <th class=\"text-center\">Slots</th>\n <th class=\"text-center\">Reg Team Key</th>\n</tr>\nEOD;\n foreach($this->poolTeams as $poolTeam) {\n $html .= $this->renderPoolTeam($poolTeam);\n }\n $html .= <<<EOD\n</table>\n</div>\nEOD;\n\n return $html;\n }",
"function getAllHouses() {\r\n\t\tglobal $conn;\r\n\r\n\t\t$stmt = $conn->prepare('SELECT * FROM Houses');\r\n\t\t$stmt->execute();\r\n\t\treturn $stmt->fetchAll();\r\n\t}",
"public function summaryAction()\n {\n $tournaments = $this->getDoctrine()->getRepository('AppBundle:Tournament')->findAll();\n\n return $this->render('admin/tournaments/tournaments.html.twig', array('tournaments' => $tournaments));\n }",
"function getStsPoolDepot()\n\t{\n\t\t\treturn $this->newQuery()->where('name','LIKE','Sts_Pool')->getOne('depots.depot_id,depots.name,depots.dp_depot_id');\n\t}",
"public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $entities = $em->getRepository('UpaoFundoBundle:Planta')->findAll();\n\n return $this->render('UpaoFundoBundle:Planta:index.html.twig', array(\n 'entities' => $entities,\n ));\n }",
"public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $resourceLimits = $em->getRepository('AppBundle:ResourceLimit')->findAll();\n\n return $this->render('resourceLimit/index.html.twig', array(\n 'resourceLimits' => $resourceLimits,\n ));\n }",
"public function listInActiveStoragePool(){\n return libvirt_list_inactive_storagepools($this->connection);\n }",
"public static function outstandingQuote($pool)\n {\n $manyQuote = ORM::for_table('sales_inte_online', 'ksi')->\n where('status', 0);\n $total = $manyQuote->count();\n\n $manyQuote2 = $manyQuote->limit(50)->order_by_asc('contactno')->order_by_asc('email')->order_by_asc('id')->find_many();\n\n $quoteOrmAr = [];\n foreach ($manyQuote2 as $quoteOrm) {\n $quoteOrmAr[] = new \\Ksi\\QuoteLayout($quoteOrm,$pool);\n }\n\n $numberListed = count($quoteOrmAr);\n\n return [$total,\n $quoteOrmAr,\n $numberListed,\n ];\n }"
] | [
"0.65390265",
"0.6396349",
"0.6384105",
"0.59903985",
"0.59293795",
"0.5894951",
"0.5599125",
"0.5580036",
"0.54766613",
"0.5443915",
"0.53745943",
"0.5342284",
"0.5297391",
"0.5274357",
"0.52703625",
"0.52669793",
"0.5247318",
"0.52089065",
"0.5206871",
"0.51879036",
"0.5185205",
"0.5181662",
"0.51720166",
"0.5141827",
"0.51407754",
"0.51387113",
"0.5135631",
"0.51309806",
"0.51241124",
"0.51201445"
] | 0.69813573 | 0 |
Add applicant to talentpool | public function addtalentpool(Request $request, $name)
{
$pool_id = request()->pool_name;
DB::table('job_applications')
->where('user_id', request()->id)
->update(['status' => 'pool']);
$shortlist = new TalentpoolCandidates();
$shortlist->user_id = request()->id;
$shortlist->talentpool_id = $pool_id;
$shortlist->employer_id = Auth::guard('employer')->user()->id;
$shortlist->save();
return redirect('/all-applicants')->with('message', 'The candidate has been added to the talent pool successfully');
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function add($app_id, $uid, $mixi_invite_from = null)\n {\n if ( $mixi_invite_from ) {\n require_once 'Mbll/Ship/User.php';\n $mbllShipUser = new Mbll_Ship_User();\n $mbllShipUser->inviteComplete($uid, $mixi_invite_from);\n }\n }",
"public function migrate_applicants() {\t\t\n\t\t$db = Helium::db();\n\n\t\t// Limit to unmigrated applicants only\n\t\t$this->require_role('national_admin');\n\t\t\n\t\t$query = \"INSERT INTO participants (applicant_id) SELECT applicant_id FROM applicants WHERE finalized=1 AND applicant_id NOT IN (SELECT applicant_id FROM participants)\";\n\t}",
"function append_applicant(& $xml, $applicant) {\n $xml .= \"\\t<winner>\\n\";\n $xml .= \"\\t\\t<id>\" . $applicant['ID'] . \"</id>\\n\";\n $xml .= \"\\t\\t<status>\" . $applicant['STATUS'] . \"</status>\\n\";\n $xml .= \"\\t\\t<cgpa>\" . $applicant['CUM_GPA'] . \"</cgpa>\\n\";\n $xml .= \"\\t\\t<gender>\" . $applicant['GENDER'] . \"</gender>\\n\";\n $xml .= \"\\t\\t<fname>\" . $applicant['FNAME'] . \"</fname>\\n\";\n $xml .= \"\\t\\t<lname>\" . $applicant['LNAME'] . \"</lname>\\n\";\n $xml .= \"\\t\\t<phoneNum>\" . $applicant['PHONE_NUM'] . \"</phoneNum>\\n\";\n $xml .= \"\\t\\t<email>\" . $applicant['EMAIL'] . \"</email>\\n\";\n $xml .= \"\\t\\t<dob>\" . $applicant['DOB'] . \"</dob>\\n\";\n $xml .= \"\\t\\t<creditHours>\" . $applicant['CREDIT_HOURS'] . \"</creditHours>\\n\";\n $xml .= \"\\t</winner>\\n\";\n }",
"function add_appt($apptinfo){\n\n\tif (!validate_appt($apptinfo)){\n\t\treturn null;\n\t}\n\n\telse {\n\t\t$sql = \"INSERT INTO qmse (submitter_id,tech_id,tt,type,building,room,datetime) VALUES (\"; \n\t\t$sql .= \"'\".$apptinfo['submitter_id'].\"', \"; \n\t\t$sql .= \"'\".$apptinfo['tech_id'].\"', \"; \n\t\t$sql .= \"'\".$apptinfo['tt'].\"', \";\n\t\t$sql .= \"'\".$apptinfo['type'].\"', \";\n\t\t$sql .= \"'\".$apptinfo['building'].\"', \";\n\t\t$sql .= \"'\".$apptinfo['room'].\"', \";\n\t\t$sql .= \"'\".$apptinfo['datetime'].\"')\";\n\n\t\t//echo $sql;\n\n\t\t$_SESSION['dbconn']->query($sql) or die(\"Error adding quest: \".$_SESSION['dbconn']->error);\n\t\t$_SESSION['notifications'][] = \"New Quest submitted!\";\n\t}\n}",
"private function add($id,$type)\n {\n $userId = \\Auth::user()->id;\n $tournament = Tournament::find($id);\n if( is_null($tournament) )\n {\n return redirect()->route(\"calendar\")->with(\"error\",\"tournament not found\");\n }\n abort_unless( $tournament->isFuture(),403,\"Application to a tournament in the past.\");\n switch ($type)\n {\n case \"umpire\":\n if( UmpireApplication::where([\"tournament_id\"=>$id,\"umpire_id\"=>$userId])->count() > 0 )\n {\n return redirect()->route(\"calendar\")->with(\"error\",\"application already in database\");\n }\n $application = new UmpireApplication;\n $application->umpire_id = $userId;\n break;\n case \"referee\":\n if( RefereeApplication::where([\"tournament_id\"=>$id,\"referee_id\"=>$userId])->count() > 0 )\n {\n return redirect()->route(\"calendar\")->with(\"error\",\"application already in database\");\n }\n $application = new RefereeApplication;\n $application->referee_id = $userId;\n break;\n default:\n abort(500,\"Internal Server Error\");\n }\n $application->tournament_id = $id;\n $application->approved = false;\n $application->processed = false;\n return $application->save()\n ? redirect()->route(\"calendar\")\n : redirect()->route(\"calendar\")->with(\"error\",\"could not save application\");\n }",
"public function add() {\n\t\tif ($this->Surveys->isSurveySeen($this->data['Survey']['survey'])) {\n\t\t\treturn;\n\t\t}\n\n\t\t$survey = $this->request->data;\n\t\t$survey['Survey']['data'] = json_encode($survey['Survey']['data']);\n\t\t$survey['Survey']['ip'] = $this->request->clientIp(false);\n\t\t$survey['Survey']['user_id'] = $this->Auth->user('id');\n\n\t\t$this->Survey->create();\n\t\t$saved = $this->Survey->save($survey);\n\n\t\tif ($saved) {\n\t\t\t$this->Surveys->setSurveySeen($this->data['Survey']['survey']);\n\n\t\t\t$event = new CakeEvent(self::SURVEY_COMPLETED_EVENT, $this, array ('survey' => $this->data['Survey']['survey'], 'user' => $this->Auth->user()));\n\t\t\t$this->getEventManager()->dispatch($event);\n\t\t}\n\t}",
"public function teamAddApplication(Teams $teamsAdapter, $uuid, $teamUuid)\n {\n $this->say(\"Adding application to team.\");\n $teamsAdapter->addApplication($teamUuid, $uuid);\n }",
"protected function AddAccount() {\n\t\t\n\t\tglobal $oSession, $_CONFIG, $oBrand;\n\t\t\n\t\t$oAccount = new AccountApplication();\n\n\t\t$aValidationErrors = array();\n\t\t$aFormValues = $oSession->GetStepController()->GetStepByName('Registration')->GetFormValues();\n\t\t$aFormValues['company_id'] = $this->GetCompanyID();\n\t\t\n\t\t\n\t\tif ($oAccount->Add($aFormValues,$aValidationErrors)) {\n\t\t\t\n\t\t\t// send admin a notification email\n\t\t\t$aMessageParams = array();\n\t\t\t$aMessageParams['to'] = $_CONFIG['admin_email'];\n\t\t\t$aMessageParams['from'] = $_CONFIG['website_email'];\n\t\t\t$aMessageParams['reply-to'] = $_CONFIG['website_email'];\n\t\t\t$aMessageParams['website_name'] = $oBrand->GetName();\n\t\t\t$aMessageParams['website_url'] = $oBrand->GetWebsiteUrl();\n\t\t\t$aMessageParams['name'] = $aFormValues['name'];\n\t\t\t$aMessageParams['role'] = $aFormValues['role'];\n\t\t\t$aMessageParams['email'] = $aFormValues['email'];\n\t\t\t$aMessageParams['telephone'] = $aFormValues['tel'];\n\t\t\t$aMessageParams['comments'] = $aFormValues['comments'];\n\t\t\t$aMessageParams['company_name'] = $_POST['title'];\n\t\t\t$aMessageParams['company_url_name'] = $this->GetCompanyUrlName();\n\t\t\t$aMessageParams['company_status'] = ($oSession->GetListingType() == LISTING_REQUEST_NEW) ? 0 : 1;\n\t\t\t\n\t\t\tLogger::DB(2,get_class($this).\"::\".__FUNCTION__.\"()\",\"ADD_ACT OK: \".serialize($aFormValues));\n\t\t\t\n\t\t\t$oAccount->NotifyAdmin($aMessageParams);\n\t\t\t\n\t\t\t$this->SetComplete();\n\t\t\t$oSession->Save();\n\t\t\t\n\t\t\treturn TRUE;\n\t\t} else {\n\t\t\t\n\t\t\tLogger::DB(1,get_class($this).\"::\".__FUNCTION__.\"()\",\"ADD_ACT FAIL: \".serialize($aFormValues));\n\t\t\t\n\t\t\t$this->ProcessValidationErrors($aValidationErrors['msg'], $clear_existing = TRUE);\n\t\t\treturn FALSE;\n\t\t}\n\t\t\n\t}",
"public function add() {\n $mysqli = Database::getMYSQLI();\n \n $stmt = $mysqli->prepare(\"\n INSERT INTO responses (questions_id, attempts_id, options_id)\n VALUES (?,?,?)\");\n \n $stmt->bind_param('iii', $this->questionsID, $this->attemptsID, $this->optionsID);\n \n $stmt->execute();\n $stmt->close();\n $mysqli->close();\n }",
"public function run()\n {\n $applicants = [\n [\n 'title' => \"Прийом на 1 курс (бакалаврат)\",\n 'img' => \"#\",\n 'text' => \"<p>Бакалавр комп’ютерних наук за спеціальністю 122 «Комп’ютерні науки» — термін навчання 4 роки.</p>\n <a href=\\\"http://udhtu.edu.ua/vstup1kurs\\\">Вступ абітурієнтів на перший курс</a>\n <p> спеціальності комп’ютерні науки на денну та заочну форму навчання, незалежно від джерел фінансування (бюджет/контракт) проводиться за сертифікатами українського центру оцінювання якості освіти (ЗНО): -українська мова та література -математика - іноземна мова або фізика Мінімальним балом, з яким сертифікати допускаються до конкурсу, є 100 балів. План прийму 2018 р: -\tденна форма навчання 6 бюджетних+24 контрактних місця -\tзаочна форма 6 бюджетних+4 контрактних місця Вартість навчання на спеціальності комп’ютерні науки у 2017 р. складала для денної форми навчання 9900 грн/рік та 6200грн/рік для заочної форми навчання. Всі іногородні студенти забезпечуються гуртожитком на весь термін навчання. Навчальні корпуси УДХТУ розташовані в центрі міста (на пр. Гагаріна та Наб. Перемоги). Гуртожитки розташовані неподалік від навчальних корпусів. Вартість проживання – близько 400 грн. в місяць (на 2017 рік).</p>\",\n ],\n [\n 'title' => \"Вступ на 3 курс (бакалаврат)\",\n 'img' => \"#\",\n 'text' => \"<p>Прийом на </p><a href=\\\"http://udhtu.edu.ua/vstupmolodshyispecialist\\\">основі освітньо-кваліфікаційного рівня молодшого спеціаліста</a>\n <p> для здобуття ступеня бакалавра здійснюється за результатами фахових вступних випробувань (програма фахового вступного випробування). Випускники технікумів та коледжів вступають за результатами фахових вступних випробувань та з урахування середнього балу диплома молодшого спеціаліста. Кількість бюджетних місць стане відомою у липні 2018 р. Абітурієнт може вступити на спеціальність комп’ютерні науки для здобуття ступеня бакалавра на основі освітньо-кваліфікаційного рівня молодшого спеціаліста, здобутого за іншою спеціальністю, за умови успішного проходження додаткового вступного випробування з математики, що є допуском до фахового вступного випробування, з урахуванням середнього балу диплома молодшого спеціаліста. Всі іногородні студенти УДХТУ забезпечуються гуртожитком на весь термін навчання. Навчальні корпуси розташовані в центрі міста (на пр. Гагаріна та Наб. Перемоги). Гуртожитки розташовані неподалік від навчальних корпусів. Вартість проживання – близько 400 грн. в місяць (на 2017 рік).</p>\",\n ],\n [\n 'title' => \"Прийом на 5 курс (магістратура)\",\n 'img' => \"#\",\n 'text' => \"<a href=\\\"http://udhtu.edu.ua/vstupdomagistratura\\\">Вступ до магістратури</a>\n <p> здійснюється за результатами фахового вступного випробування (програма фахового вступного випробування) та іспиту з іноземної мови. В разі вступу на базі диплома іншої спеціальності, крім «комп’ютерні науки» складається додатковий іспит з вищої математики.</p>\",\n ],\n ];\n\n DB::table('applicants')->insert($applicants);\n }",
"function addAttendee($attendee);",
"public function run()\n {\n DB::table('applicants')->delete();\n\n factory(App\\Applicant::class, 25)\n ->create()\n ->each(function (App\\Applicant $applicant) {\n $applicant->answers()->save(factory(App\\Answer::class)->make(['question_id' => 1]));\n $applicant->answers()->save(factory(App\\Answer::class)->make(['question_id' => 2]));\n $applicant->answers()->save(factory(App\\Answer::class)->make(['question_id' => 3]));\n $applicant->answers()->save(factory(App\\Answer::class)->make(['question_id' => 4]));\n $applicant->answers()->save(factory(App\\Answer::class)->make(['question_id' => 5]));\n $applicant->answers()->save(factory(App\\Answer::class)->make(['question_id' => 6]));\n $applicant->answers()->save(factory(App\\Answer::class)->make(['question_id' => 7]));\n $applicant->answers()->save(factory(App\\Answer::class)->make(['question_id' => 8]));\n });\n }",
"public function add($exerciseId, $userId, $testAttemptId = null);",
"public function __construct($applicants)\n {\n $this->applicants = $applicants;\n }",
"function add_test_applications($conn, $d_format) {\n $extra = get_extra_application_vals($conn, $d_format);\n $extra_job = get_extra_job_applied_for_vals($conn);\n// $positive_shortl_id = $extra_job[\"status_shortlisting\"][\"Telephone Interview\"];\n $len_app_sources = count($extra[\"application_sources\"]);\n \n for ($i = 0; $i < count($extra[\"applicant_ids\"]); $i++) {\n $f = array(\n \"applicant_id\"=> $extra[\"applicant_ids\"][$i][\"id\"], \n \"application_source_id\"=> rand(0, $len_app_sources - 1), \n \"application_date\"=> $extra[\"application_dates\"][$i],\n );\n // Create 3 records where the applicant hasn't applied for a position.\n if ($i < 3) {\n $f[\"position_applied_for_id\"] = $extra[\"position_app_no_id\"];\n } // All others have applied for a specific job.\n else {\n $f[\"position_applied_for_id\"] = $extra[\"position_app_yes_id\"];\n $random_job_ind = rand(0, count($extra[\"job_ids\"]) - 1);\n $f[\"job_id\"] = (int)$extra[\"job_ids\"][$random_job_ind][\"id\"];\n \n// set_position_applied_on_applicant($conn, $f[\"applicant_id\"],\n// $extra[\"position_app_yes_id\"]);\n }\n \n // User has applied for job, but not decided to phone interview yet.\n // $i == 3\n \n /* User has applied for job, rejected, not phone interview shortlisted.\n * Reject notification not sent. */ \n if ($i == 4) {\n $f[\"status_shortlisting_id\"] = $extra_job[\"status_shortlisting\"][\"Reject\"];\n $f[\"reject_notification_sent_id\"] = $extra_job[\"reject_notification_sent\"][\"no\"];\n set_flag_future_on_applicant($conn, $f[\"applicant_id\"],\n $extra_job[\"flag_future\"]);\n }\n \n /* User has applied for job, rejected, not phone interview shortlisted.\n * Reject notification sent. */\n if ($i == 5) {\n $f[\"status_shortlisting_id\"] = $extra_job[\"status_shortlisting\"][\"Reject\"];\n $f[\"reject_notification_sent_id\"] = $extra_job[\"reject_notification_sent\"][\"yes\"];\n set_flag_future_on_applicant($conn, $f[\"applicant_id\"],\n $extra_job[\"flag_future\"]);\n }\n \n // All users after this have applied for job, and been phone interview shortlisted.\n if ($i > 5) {\n $f[\"status_shortlisting_id\"] = $extra_job[\"status_shortlisting\"][\"Telephone Interview\"];\n }\n \n // Not decided on screening after phone interview.\n // $i = 6\n \n // User rejected after phone interview. Notification not sent.\n if ($i == 7) {\n $id = $extra_job[\"status_screening\"][\"Reject\"];\n $f[\"status_screening_id\"] = $id;\n $f[\"reject_notification_sent_id\"] = $extra_job[\n \"reject_notification_sent\"][\"no\"];\n set_flag_future_on_applicant($conn, $f[\"applicant_id\"], \n $extra_job[\"flag_future\"]);\n }\n \n // User rejected after phone interview. Notification sent.\n if ($i == 8) {\n $id = $extra_job[\"status_screening\"][\"Reject\"];\n $f[\"status_screening_id\"] = $id;\n $f[\"reject_notification_sent_id\"] = $extra_job[\n \"reject_notification_sent\"][\"yes\"];\n }\n \n // All users after this have been screened & invited to physical interview.\n if ($i > 8) {\n $id = $extra_job[\"status_screening\"][\"Invite to Interview\"];\n $f[\"status_screening_id\"] = $id;\n }\n \n // After physical interview, undecided\n// $i = 9;\n \n // After physical interview, rejected. Notification not sent.\n if ($i == 10) {\n $status_interview_id = $extra_job[\"status_interview\"][\"Reject\"];\n add_test_interview($conn, $f[\"application_date\"], $d_format,\n $status_interview_id, $f[\"applicant_id\"]);\n // Get id of last inserted interview record.\n $f[\"interview_id\"] = $conn->insert_id;\n $f[\"reject_notification_sent_id\"] = $extra_job[\n \"reject_notification_sent\"][\"no\"];\n set_flag_future_on_applicant($conn, $f[\"applicant_id\"], $extra_job[\"flag_future\"]);\n }\n \n // After physical interview, rejected. Notification sent.\n if ($i == 11) {\n $status_interview_id = $extra_job[\"status_interview\"][\"Reject\"];\n add_test_interview($conn, $f[\"application_date\"], $d_format,\n $status_interview_id, $f[\"applicant_id\"]);\n // Get id of last inserted interview record.\n $f[\"interview_id\"] = $conn->insert_id;\n $f[\"reject_notification_sent_id\"] = $extra_job[\n \"reject_notification_sent\"][\"yes\"];\n set_flag_future_on_applicant($conn, $f[\"applicant_id\"], $extra_job[\"flag_future\"]);\n }\n \n // After physical interview, offered job. Job filled.\n if ($i == 12) {\n $status_interview_id = $extra_job[\"status_interview\"][\"Offer\"];\n add_test_interview($conn, $f[\"application_date\"], $d_format,\n $status_interview_id, $f[\"applicant_id\"]);\n // Get id of last inserted interview record.\n $f[\"interview_id\"] = $conn->insert_id;\n $date_filled = new DateTime();\n update_filled_job($conn, $f[\"applicant_id\"], $date_filled, $d_format, \n $f[\"job_id\"]);\n }\n\n $sql = build_insert_application_sql($f);\n $res_arr = run_modify_query($conn, $sql);\n if (strlen($res_arr[0]) > 0) {\n echo \"Errors: \" . $res_arr[0];\n }\n else {\n echo \"Your application record was successfully added. \\n\";\n }\n }\n}",
"public function addApproval(BackendUser $backendUser): void;",
"public function __construct(Applicant $applicant)\n {\n $this->applicant = $applicant;\n }",
"function add() {\n ## Load config and store\n $CFG = $this->config->item('user_category_configure');\n $data[\"title\"] = _e(\"User Category\");\n $data[\"response\"] = addPermissionMsg($CFG[\"sector\"][\"add\"]);\n $data[\"top\"] = $this->template->admin_view(\"top\", $data, true, \"user_category\");\n $data[\"content\"] = $this->template->admin_view(\"user_category_add\", $data, true, \"user_category\");\n $this->template->build_admin_output($data);\n }",
"public function addItem();",
"public function Add(){\n //Automatic transaction handled by laravel\n DB::transaction(function () {\n //add the idea\n Manifestation::insert([\n 'manifestation_name' => strip_tags(request('name')),\n 'manifestation_description' => strip_tags(request('description')),\n 'id_member_suggest' => \\Auth::id(),\n 'manifestation_is_idea' => 1,\n ]);\n });\n\n //return to the last page\n return redirect()->back();\n }",
"public function run()\n {\n DB::table('applicants')->insert([\n [\n 'name' => 'Scarlett',\n 'last_name' => 'Johansson',\n 'personal_phone' => '72151122',\n 'email' => 'sjohanson@mrik.com',\n 'sex' => 'Mujer',\n 'nationality' => 'Boliviana',\n 'birthdate' => '1990/05/16',\n 'birthplace' => 'Santa Cruz',\n 'job_id' => 4,\n 'academic_degree' => 'Licenciatura',\n 'career' => 'Economía',\n 'resume_file' => 'scarlett.pdf',\n 'value' => 'Muy buena',\n 'status' => Applicant::$FEATURED,\n 'created_at' => Carbon::now('America/La_Paz')->toDateString(),\n ],\n [\n 'name' => 'Cameron',\n 'last_name' => 'Diaz',\n 'personal_phone' => '72341122',\n 'email' => 'cdiaz@mrik.com',\n 'sex' => 'Mujer',\n 'nationality' => 'Boliviana',\n 'birthdate' => '1989/11/04',\n 'birthplace' => 'Santa Cruz',\n 'job_id' => 2,\n 'academic_degree' => 'Licenciatura',\n 'career' => 'Administración de Empresas',\n 'resume_file' => 'cameron.pdf',\n 'value' => 'Excelente',\n 'status' => Applicant::$CONTRACTED,\n 'created_at' => Carbon::now('America/La_Paz')->toDateString(),\n ]\n ]);\n }",
"public function addCondiments()\n {\n }",
"abstract public function attach(\\Celery\\App $app);",
"public function addProf() {\n if ($this->session->checkAdmin()) {\n $this->view->render('administration' . DS . 'addProf', true, true);\n } else {\n $this->redirect('');\n }\n }",
"public function bdtask_add_person(){\n $data['title'] = display('add_person');\n $data['module'] = \"hrm\";\n $data['page'] = \"personal_loan/add_person\"; \n echo modules::run('template/layout', $data); \n }",
"function add_sgo_to_cohorts($applicant_user, $sgo_user, $resource_courses_cohort, $support_courses_cohort) {\n global $DB;\n\n // Add the DSL user to the resource courses cohort\n cohort_add_member($resource_courses_cohort->id, $sgo_user->id);\n \n // Add the DSL user to the support courses cohort\n cohort_add_member($support_courses_cohort->id, $sgo_user->id);\n\n $cohort_names = get_applicant_cohort_names($applicant_user);\n $courses = $DB->get_records('course');\n foreach($courses as $course) {\n if(in_array($course->shortname, $cohort_names)) {\n $context = context_course::instance($course->id);\n $cohort = $DB->get_record('cohort', array('idnumber'=>$course->shortname));\n cohort_add_member($cohort->id, $sgo_user->id);\n role_assign(get_role_id('ukfnnoneditingteacher'), $sgo_user->id, $context->id);\n //role_unassign(get_role_id('ukfnstudent'), $sgo_user->id, $context->id);\n }\n }\n}",
"function addApplication($name, $gender, $phone, $town, $occupation, $contactname, $contactnumber, $location, $project, $date, $app_number, $creatdby, $status, $landuse_id, $category_id) {\n $query = \"INSERT INTO applications (name,gender,phoneno,town,occupation,contactname,contactnumber,location,project_type,datecreated,application_no,createdby,status,landuse_id,category_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)\";\n $paramType = \"sssssssssssssii\";\n $paramValue = array(\n strtoupper($name),\n $gender,\n $phone,\n ucwords($town),\n ucwords($occupation),\n strtoupper($contactname),\n $contactnumber,\n $location,\n strtoupper($project),\n $date,\n $app_number,\n $creatdby,\n $status,\n $landuse_id,\n $category_id\n );\n \n $insertId = $this->db_handle->insert($query, $paramType, $paramValue);\n return $insertId;\n }",
"public function hire(Person $person) {\n $this->staff->add($person);\n }",
"public function addActivite(GmthBridgeActivite $activite)\n\t{\n\t\t$this->_activites[] = $activite->getDataActivite();\n\t}",
"public function run()\n\t{\n\t\tDB::table('applications')->insert(\n\t\t\t[\n\t\t\t\t'appid' => 730,\n\t\t\t\t'name' => 'Counter-Strike: Global Offensive',\n\t\t\t\t'marketable' => 1\n\t\t\t]\n\t\t);\n\t\tDB::table('applications')->insert(\n\t\t\t[\n\t\t\t\t'appid' => 570,\n\t\t\t\t'name' => 'Dota 2',\n\t\t\t\t'marketable' => 1\n\t\t\t]\n\t\t);\n\t}"
] | [
"0.5660656",
"0.5628185",
"0.55727214",
"0.54084057",
"0.5178839",
"0.50877637",
"0.504906",
"0.5043062",
"0.5031814",
"0.49576858",
"0.49380448",
"0.48999834",
"0.48932326",
"0.48695087",
"0.48617196",
"0.4857545",
"0.48487243",
"0.48121095",
"0.481113",
"0.48067293",
"0.48047286",
"0.47989616",
"0.47958425",
"0.4787634",
"0.47867942",
"0.47735983",
"0.47662047",
"0.47648638",
"0.47648028",
"0.47613806"
] | 0.5841176 | 0 |
view the talent pool members | public function poolmembers($id)
{
$poolmembers = TalentpoolCandidates::where('talentpool_id', $id)->get();
return view('employer-dashboard.poolmembers', compact('poolmembers'));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function talentpool(){\n $talent=TalentPool::whereIn('employer_id', [0,Auth::guard('employer')->user()->id])->get();\n \n return view('employer-dashboard.talentpool',compact(['talent']));\n }",
"public function getMemberIndex() {\n\t\t$members = Member::with('user')->whereIsMember(true)->get();\n\n return view('admin.hr.members.list', [\n 'members' => $members,\n ]);\n\t}",
"public function index()\n\t{\n\t\t$members = \\App\\User::where('admin','=', 0)->orWhere('admin','=', 2)->orWhere('admin','=', 3)->get();\n\t\t$divisions = \\App\\Division::get();\n\t\treturn view('admin.member.index', compact('members', 'divisions'));\n\t}",
"public function memberlist(){\n $members = Membership::paginate(16);\n return view('membership.members-list')->with(compact('members'));\n }",
"public function index()\n {\n return view('labmember.index', ['members' => User::labMembers()->paginate(12)]);\n }",
"public function index()\n {\n $regions = Region::all();\n $c_members = Committee_member::all();\n\n // dd($c_members);\n return view('admin.committee-members.index', compact(\n 'c_members',\n 'regions',\n ));\n }",
"public function index()\n {\n $members = Member::with('village')->orderBy('created_at', 'DESC')->get();\n return view('operator.member.index', compact('members'));\n }",
"public function index()\n {\n $members = Member::all();\n return view('superadmin.member.index', compact('members'));\n }",
"public function index()\n {\n // $member = $this->service->member('1');\n // var_dump($member->getId());\n // var_dump($member->getCellphone());\n // var_dump($member->getPassword());\n // var_dump($member->getRememberToken());\n // var_dump($member->getCreateTime());\n // var_dump($member->getUpdateTime());\n $members = $this->service->search();\n dd($members);\n }",
"public function index()\n {\n $teamMembers = TeamMember::where('member_status', '!=','D')->orderBy('member_id','desc')->get();\n\n return view('back.member.index', compact('teamMembers'));\n }",
"public function index()\n {\n $teammembers = TeamMember::all();\n return view('team_members.index')->with(\"teammembers\", $teammembers);\n }",
"protected function members()\n\t{\n\t\tif ($this->_session->isLoggedIn() == false)\n\t\t{\n\t\t\tdie('Not logged in');\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->_viewTemplate = new Template(\"MemberTools\", \"membersArea\");\n\t\t\t$links = $this->_model->getMemberTools($this->_session->getUserName());\n\t\t\t$this->_viewTemplate->set('title', 'Acme Corp - Members Area');\n\t\t\t$this->_viewTemplate->set('links', $links);\n\t\t\t$this->_viewTemplate->render();\t\n\t\t}\n\t}",
"public function index()\n {\n $listMember = Member::all();\n $listUser = User::all();\n return view('admin.list-admin.ds-member.member', compact('listMember', 'listUser'));\n }",
"public function getMembersList(){\n return $this->_get(10);\n }",
"public function index()\n {\n $users=Users::all();\n return view('admin.member.index',['active'=>'member','users'=>$users]);\n }",
"public function member()\n\t{\n\t\t// Get infor from database\n\t\t$users = user::all();\n\t\t$enterprisea = enterprise_account::all();\n\t\treturn view('member', compact('users','enterprisea'));\n\t}",
"public function index()\n {\n return view('admin.members.index');\n }",
"public function index()\n {\n $id=Project::find(1);\n $project=Project::find($id);\n return view('members')->with('members',$project->members);\n\n }",
"public function index() {\n $memberHelper = new MemberHelper();\n $membersList = [];\n if (Auth::guard('admin')->user()->userType->id == 9) {\n $centersList = $memberHelper->getCentersList();\n if (Session::get('center_id') != '') {\n $membersList = $this->centerRepository->getMembersList(Session::get('center_id'));\n }\n } elseif (Auth::guard('admin')->user()->userType->id == 7 || Auth::guard('admin')->user()->userType->id == 8) {\n $centers = $memberHelper->getCentersList();\n $centerId = key($centers);\n if (isset($centerId) && $centerId != '') {\n $membersList = $this->centerRepository->getMembersList($centerId);\n }\n } else {\n $membersList = $memberHelper->getUserWiseMemberList();\n }\n return view('admin::member-otp.index', compact('membersList', 'centersList'));\n }",
"public function index()\n {\n $choices = PlayoffChoices::getChoices();\n $pointsByRoundsForUsers = PlayoffChoices::getPointsByRoundsForUsers($choices);\n $choicesByUsernameAndRounds = PlayoffChoices::formatChoicesByUsernameAndRounds($choices, $pointsByRoundsForUsers);\n $nbPlayoffGames = PlayoffTeams::count();\n\n return view('pool/list')\n ->with(compact('choicesByUsernameAndRounds', 'nbPlayoffGames'))\n ;\n }",
"public function displayMembers()\n\t\t\t{\n\t\t\t global $LANG_LIST_ARR;\n\t\t\t\t$usersPerRow = $this->CFG['admin']['members_list']['cols'];\n\t\t\t\t$count = 0;\n\t\t\t\t$found = false;\n\t\t\t\t$browse = $this->getFormField('browse');\n\t\t\t\t$tagSearch = $this->getFormField('tags');\n\t\t\t\t$tagSearch = (!empty($tagSearch));\n\t\t\t\t$this->listDetails = true;//((strcmp($browse, 'viewAllMembers')==0) OR $tagSearch);\n\t\t\t\t$this->friendsCount = true;//(strcmp($browse, 'maleMostFriends')==0 OR strcmp($browse, 'femaleMostFriends')==0);\n\t\t\t\t$this->profileHits = (strcmp($browse, 'maleMostViewed')==0 OR strcmp($browse, 'femaleMostViewed')==0);\n\t\t\t\t$videoCount = chkAllowedModule(array('video'));\n\n\t\t\t\t$showVideoIcon = $this->CFG['admin']['members_listing']['video_icon'];\n\t\t\t\t$query_tag = $this->_parse_tags_member(strtolower($this->fields_arr['tags']));\n\t\t\t\t$showOnlineIcon = $this->CFG['admin']['members_listing']['online_icon'];\n\t\t\t\t$showOnlineStatus = $this->CFG['admin']['members_listing']['online_status'];\n\t\t\t\t$rank = $this->fields_arr['start']+1;\n\n\t\t\t\t$member_list_arr = array();\n\t\t\t\t$inc = 0;\n\t\t\t\twhile($row = $this->fetchResultRecord())\n\t\t\t\t {\n\t\t\t\t\t\t$found = true;\n\t\t\t\t\t\tif(isMember())\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$member_list_arr[$inc]['friend'] = '';\n\t\t\t\t\t\t\t\t$sql = 'SELECT 1 FROM '.$this->CFG['db']['tbl']['friends_list'].\n\t\t\t\t\t\t\t\t\t\t' WHERE (friend_id='.$this->dbObj->Param('friend_id1').\n\t\t\t\t\t\t\t\t\t\t' AND owner_id='.$this->dbObj->Param('owner_id1').')';\n\t\t\t\t\t\t\t\t$fields_val_arr = array($row['user_id'], $this->CFG['user']['user_id']);\n\n\t\t\t\t\t\t\t\t$stmt = $this->dbObj->Prepare($sql);\n\t\t\t\t\t\t\t\t$rs = $this->dbObj->Execute($stmt, $fields_val_arr);\n\t\t\t\t\t\t\t\tif (!$rs)\n\t\t\t\t\t\t\t\t\ttrigger_db_error($this->dbObj);\n\n\t\t\t\t\t\t\t\tif ($rs->PO_RecordCount())\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t$member_list_arr[$inc]['friend'] = 'yes';\n\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t$member_list_arr[$inc]['memberProfileUrl'] = getMemberProfileUrl($row['user_id'], $row['user_name']);\n\t\t\t\t\t\t$joined = 0;\n\t\t\t\t\t\t$member_list_arr[$inc]['profileIcon']= getMemberAvatarDetails($row['user_id']);\n\t\t\t\t\t\t$member_list_arr[$inc]['online'] = $this->CFG['admin']['members']['offline_anchor_attributes'];\n\t\t\t\t\t\t$member_list_arr[$inc]['currentStatus'] = $this->LANG['members_list_offline_status_default'];\n\t\t\t\t\t\t$member_list_arr[$inc]['onlineStatusClass'] = 'memListUserStatusOffline';\n\t\t\t\t\t\t$member_list_arr[$inc]['open_tr'] = false;\n\t\t\t\t\t\tif ($showOnlineIcon AND $row['logged_in_currently'])\n\t\t\t\t\t\t {\n\t\t\t\t\t\t $member_list_arr[$inc]['currentStatus'] = $this->getCurrentUserOnlineStatus($row['privacy'], $row['status_msg_id']);\n\t\t\t\t\t\t\t\t$onlineAnchorAttr = $this->CFG['admin']['members']['online_anchor_attributes'];\n\t\t\t\t\t\t\t\t$member_list_arr[$inc]['online'] = str_replace('{online_status}', $member_list_arr[$inc]['currentStatus'], $onlineAnchorAttr);\n\t\t\t\t\t\t\t\tif($member_list_arr[$inc]['currentStatus']!='Offline')\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t$member_list_arr[$inc]['onlineStatusClass'] = 'memListUserStatusOnline';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t }\n\n\t\t\t\t\t\tif ($count%$usersPerRow==0)\n\t\t\t\t\t\t {\n\t\t\t\t\t\t \t$member_list_arr[$inc]['open_tr'] = true;\n\t\t\t\t\t\t }\n\t\t\t\t\t\t$member_list_arr[$inc]['userLink']= '';\n\t\t\t\t\t\t//To display stats in images\n\t\t\t\t\t\tforeach ($this->CFG['site']['modules_arr'] as $key=>$value)\n\t\t\t\t\t \t{\n\t\t\t\t\t \t\t$member_list_arr[$inc][$value.'ListUrl'] = '';\n\t\t\t\t\t\t\t\tif(chkAllowedModule(array(strtolower($value))))\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t$image_url1 = $this->CFG['site']['project_path'].'design/templates/'.$this->CFG['html']['template']['default'].'/images/'.$value.'_icon_mini.jpg';\n\t\t\t\t\t\t\t\t\t\t$image_url2 = $this->CFG['site']['project_path'].'design/templates/'.$this->CFG['html']['template']['default'].'/images/'.$value.'_no_icon_mini.jpg';\n\t\t\t\t\t\t\t\t\t\t$member_list_arr[$inc][$value.'_image1_exists'] = false;\n\t\t\t\t\t\t\t\t\t\tif(is_file($image_url1))\n\t\t\t\t\t\t\t\t\t\t\t$member_list_arr[$inc][$value.'_image1_exists'] = true;\n\n\t\t\t\t\t\t\t\t\t\t$member_list_arr[$inc][$value.'_image2_exists'] = false;\n\t\t\t\t\t\t\t\t\t\tif(is_file($image_url2))\n\t\t\t\t\t\t\t\t\t\t\t$member_list_arr[$inc][$value.'_image2_exists'] = true;\n\t\t\t\t\t\t\t\t\t\t\tif ($value == 'blog') {\n\t\t\t\t\t\t\t\t\t\t\t\t$function_name = 'getTotalUsersPosts';\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t\t\t$function_name = 'getTotalUsers'.ucfirst($value).'s';\n\t\t\t\t\t\t\t\t\t\tif(function_exists($function_name))\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t$stats = $function_name($row['user_id'],1);\n\t\t\t\t\t\t\t\t\t\t\t\t$member_fulldetails_arr[$inc]['total_'.strtolower($value).'s'] = $stats;\n\t\t\t\t\t\t\t\t\t\t\t\t$member_list_arr[$inc]['total_'.strtolower($value).'s'] = $stats;\n\t\t\t\t\t\t\t\t\t\t\t\t$member_list_arr[$inc][$value.'_icon_title'] = sprintf($this->CFG['admin']['members'][$value.'_icon_title'], $stats);\n\t\t\t\t\t\t\t\t\t\t\t\tif ($value == 'discussions') {\n\t\t\t\t\t\t\t\t\t\t\t\t\t$member_list_arr[$inc][$value.'ListUrl'] = getUrl($value,'?pg=user'.$value.'list&user_id='.$row['user_id'], 'user'.$value.'list/?user_id='.$row['user_id'],'',$value);\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t\t\t\t$member_list_arr[$inc][$value.'ListUrl'] = getUrl($value.'list','?pg=user'.$value.'list&user_id='.$row['user_id'], 'user'.$value.'list/?user_id='.$row['user_id'],'',$value);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t$member_list_arr[$inc]['record'] = $row;\n\t\t\t\t\t\t//To display stats in text\n\t\t\t\t\t\tif($this->stats_display_as_text && $this->CFG['admin']['members_list']['stats_display_as_text'])\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t//uses home page setting variable\n\t\t\t\t\t\t\t\t$stats_module = $this->CFG['admin']['site_home_page'];\n\t\t\t\t\t\t\t\t$member_list_arr[$inc]['stats_text_val'] = false;\n\t\t\t\t\t\t\t\tif(chkAllowedModule(array($stats_module)))\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t$member_list_arr[$inc]['stats_text_val'] = true;\n\t\t\t\t\t\t\t\t\t\t$member_list_arr[$inc]['stats_text'] = array();\n\t\t\t\t\t\t\t\t\t\t$default_text_function_name = 'getTotal'.ucfirst($stats_module).'s';\n\t\t\t\t\t\t\t\t\t\t$total_stats = 0;\n\t\t\t\t\t\t\t\t\t\tif(function_exists($default_text_function_name))\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t$total_stats = $default_text_function_name($row['user_id']);\n\t\t\t\t\t\t\t\t\t\t\t\t$member_list_arr[$inc]['stats_text']['total_stats'] = $total_stats;\n\t\t\t\t\t\t\t\t \t$member_list_arr[$inc]['stats_text']['lang_list'] = $this->LANG['profile_list_'.$stats_module.'s'];\n\t\t\t\t\t\t\t\t \t$member_list_arr[$inc]['stats_text']['list_url'] = '';\n\t\t\t\t\t\t\t\t \t$member_list_arr[$inc]['stats_text']['icon_title'] = '';\n\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t\tif ($total_stats > 0)\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t$member_list_arr[$inc]['stats_text']['icon_title'] = sprintf($this->CFG['admin']['members'][$stats_module.'_icon_title'], $total_stats);\n\t\t\t\t\t\t \tif ($value == 'discussions')\n\t\t\t\t\t\t \t\t$member_list_arr[$inc]['stats_text']['list_url'] = getUrl($stats_module,'?pg=user'.$stats_module.'list&user_id='.$row['user_id'], 'user'.$stats_module.'list/?user_id='.$row['user_id'], '' ,$stats_module);\n\t\t\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t\t\t \t$member_list_arr[$inc]['stats_text']['list_url'] = getUrl($stats_module.'list','?pg=user'.$stats_module.'list&user_id='.$row['user_id'], 'user'.$stats_module.'list/?user_id='.$row['user_id'], '' ,$stats_module);\n\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t$member_list_arr[$inc]['about_me'] = wordWrap_mb_ManualWithSpace(strip_tags($row['about_me']),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$this->CFG['admin']['members_list']['about_me_length'],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$this->CFG['admin']['members_list']['about_me_total_length']);\n\t\t\t\t\t\t$member_list_arr[$inc]['friend_icon_title'] = sprintf($this->CFG['admin']['members']['friend_icon_title'], $row['total_friends']);\n\t\t\t\t\t\t$member_list_arr[$inc]['viewfriendsUrl'] = getUrl('viewfriends','?user='.$row['user_name'], $row['user_name'].'/');\n\t\t\t\t\t\t$member_list_arr[$inc]['mailComposeUrl'] = getUrl('mailcompose','?mcomp='.$row['user_name'],'?mcomp='.$row['user_name'], 'members');\n\t\t\t\t\t\t$member_list_arr[$inc]['friendAddUrl'] = getUrl('friendadd','?friend='.$row['user_id'],'?friend='.$row['user_id'], 'members');\n\t\t\t\t\t\t$member_list_arr[$inc]['friendAddUrlLinkId'] = 'friendadd'.$row['user_id'];\n\t\t\t\t\t\t$member_list_arr[$inc]['mailComposeUrlLinkId'] = 'mailcompose'.$row['user_id'];\n\t\t\t\t\t\t$member_list_arr[$inc]['country'] = isset($LANG_LIST_ARR['countries'][$row['country']])?$LANG_LIST_ARR['countries'][$row['country']]:'';\n\t\t\t\t\t\t$member_list_arr[$inc]['last_logged'] =($row['last_logged']!='')?$row['last_logged']:$this->LANG['members_list_member_first_login'];\n\n\t\t\t\t\t\t$member_list_arr[$inc]['mostActiveUsers'] = false;\n\t\t\t\t\t\tif($this->fields_arr['browse']=='mostActiveUsers' and chkAllowedModule(array('video')))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t $member_list_arr[$inc]['mostActiveUsers'] = true;\n\t\t\t\t\t\t\t $member_list_arr[$inc]['percentage']=round($row['percentage'], 2);\n\t\t\t\t\t\t\t $member_list_arr[$inc]['rank']=$rank;\n\t\t\t\t\t\t\t $rank++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t$member_list_arr[$inc]['viewedusers'] = false;\n\t\t\t\t\t\tif($this->fields_arr['browse']=='viewedusers')\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t $member_list_arr[$inc]['viewedusers'] = true;\n\t\t\t\t\t\t\t $member_list_arr[$inc]['total_viewed_str']=str_replace('VAR_TOTAL_VIEWS', $row['total_views'], $this->LANG['members_profile_hits_msg']);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t$member_list_arr[$inc]['UserProfileTag_arr']=$this->getUserProfileTagSet($row['profile_tags'], $query_tag);\n\t\t\t\t\t\t$member_list_arr[$inc]['end_tr'] = false;\n\t\t\t\t\t\t$count++;\n\t\t\t\t\t\tif ($count%$usersPerRow==0)\n\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t$count = 0;\n\t\t\t\t\t\t\t\t$member_list_arr[$inc]['end_tr'] = true;\n\t\t\t\t\t\t }\n\t\t\t\t\t\t$inc++;\n\t\t\t\t\t}// while\n\t\t\t\t$this->last_tr_close = false;\n\t\t\t\tif ($found and $count and $count<$usersPerRow)\n\t\t\t\t\t{\n\t\t\t\t\t \t$this->last_tr_close = true;\n\t\t\t\t\t \t$this->user_per_row=$usersPerRow-$count;\n\t\t\t\t\t}\n\t\t\t\treturn $member_list_arr;\n\t\t\t}",
"public function index()\n {\n $members = HubstaffMember::all();\n $users = User::all('id', 'name');\n\n return view(\n 'hubstaff.members',\n [\n 'members' => $members,\n 'users' => $users,\n ]\n );\n }",
"public function index()\n\t{\n\t\t$coordination_members = $this->coordination_member->all();\n\n\t\treturn View::make('coordination_members.index', compact('coordination_members'));\n\t}",
"public function summaryAction()\n {\n $tournaments = $this->getDoctrine()->getRepository('AppBundle:Tournament')->findAll();\n\n return $this->render('admin/tournaments/tournaments.html.twig', array('tournaments' => $tournaments));\n }",
"public function index()\n {\n $members = User::where('user_id', auth()->id())->get();\n\n return view('members.index', compact('members'));\n }",
"public function index()\n\t{\n\t\t$user = user::all();\n\t\treturn view('member.index')->with('user', $user);\n\t}",
"public function index()\n {\n $members = Team::all();\n return view('team.index')->with(\"members\", $members);\n }",
"public function index()\n {\n //var_dump(\"quang\");\n\n $members = Member::all();\n //var_dump($members);\n return View::make('backend.members.index')->with('members',$members);\n }",
"public function indexAction() {\r\n $em = $this->getDoctrine()->getEntityManager();\r\n\r\n $entities = $em->getRepository('Just2BackendBundle:Member')->findAll();\r\n\r\n return $this->render('Just2BackendBundle:Member:index.html.twig', array(\r\n 'entities' => $entities\r\n ));\r\n }",
"public function index()\n {\n $member = anggota::select('nis','name','jum_buku','phone')\n ->orderBy('jum_buku','asc')\n ->get();\n\n return view('member',compact('member'));\n }"
] | [
"0.68252665",
"0.6553775",
"0.64055455",
"0.63260394",
"0.6298764",
"0.62946326",
"0.62759656",
"0.6224016",
"0.6220964",
"0.621875",
"0.6199807",
"0.61677253",
"0.6140726",
"0.613281",
"0.6110419",
"0.60591406",
"0.605907",
"0.60327744",
"0.6028144",
"0.60235983",
"0.6022358",
"0.5995606",
"0.5977375",
"0.59748214",
"0.59731734",
"0.5972424",
"0.595825",
"0.59562486",
"0.59516644",
"0.59495234"
] | 0.69753426 | 0 |
method to show the declined job applications | public function declined()
{
$applicants = JobApplication::where([
['employer_id', Auth::guard('employer')->user()->id],
['status', 'declined']
])->get();
return view('employer-dashboard.declinedapplications', compact('applicants'));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function pendingApplications() {\n \treturn view('admin.applications.pending-application');\n }",
"public function completeApplications() {\n \treturn view('admin.applications.complete-application');\n }",
"public function expired_jobs()\n {\n $sql = General_model::view_expired_jobs();\n \n $count['count'] = count($sql); \n \n return view('adminpanel.jobs.all_expired_jobs',$count,compact('sql')); \n }",
"public function getVisibleApplications()\n {\n return $this->getApplications()->where(['in', 'status', ['accepted', 'new']]);\n }",
"public function jobApplication() {\n $all_applications = Applicant::get();\n foreach ($all_applications as $all_applicants) {\n foreach ($all_applicants->jobApplications as $data) {\n $all_applicants->title = $data->title;\n $all_applicants->job_id = $data->id;\n }\n }\n return view('admin.careerpage.all_application', compact('all_applications'));\n }",
"public function getHiddenApps()\n\t{\n\t\tFoundry::checkToken();\n\n\t\tFoundry::requireLogin();\n\n\t\t// Get the view.\n\t\t$view \t= Foundry::view( 'Activities' , false );\n\n\t\t$my = Foundry::user();\n\t\t$model = Foundry::model( 'Activities' );\n\n\t\t$data = $model->getHiddenApps( $my->id );\n\n\t\treturn $view->call( __FUNCTION__, $data );\n\t}",
"public function reject_application() {\r\n\r\n\t\t$project_id = $this->input->post('project_id');\r\n\t\t$staff_id = $this->input->post('staff_id');\r\n\r\n\t\t$status = array('status' => 'rejected');\r\n\r\n\t\tif($this->Project_model->update_application_status($project_id, $staff_id, $status)) {\r\n\t\t\treturn $this->get_project_applications($project_id);\r\n\t\t}\r\n\t}",
"public static function getFailedApplications()\n\t\t{\n\t\t\ttry \n\t\t\t{\n\t\t\t\t$Cur_useData = AjaxController::getCurrentUserAllData();\n\t\t\t\t\t\t\tif ($Cur_useData['grpid'] == 'NA') \n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$anotherData = DB::table('appform')\n\t\t\t\t\t\t\t\t\t\t->leftJoin('hfaci_serv_type', 'appform.hfser_id', '=', 'hfaci_serv_type.hfser_id')\n\t\t\t\t\t\t\t\t\t\t->leftJoin('hfaci_grp', 'appform.facid', '=', 'hfaci_grp.hgpid')\n\t\t\t\t\t\t\t\t\t\t->leftJoin('x08', 'appform.uid', '=', 'x08.uid')\n\t\t\t\t\t\t\t\t\t\t->leftJoin('region', 'appform.assignedRgn', '=', 'region.rgnid')\n\t\t\t\t\t\t\t\t\t\t->leftJoin('city_muni', 'x08.city_muni', '=', 'city_muni.cmid')\n\t\t\t\t\t\t\t\t\t\t->leftJoin('province', 'x08.province', '=', 'province.provid')\n\t\t\t\t\t\t\t\t\t\t->leftJoin('apptype', 'appform.aptid', '=', 'apptype.aptid')\n\t\t\t\t\t\t\t\t\t\t->leftJoin('barangay', 'x08.barangay', '=' , 'barangay.brgyid')\n\t\t\t\t\t\t\t\t\t\t->leftJoin('ownership', 'appform.ocid', '=', 'ownership.ocid')\n\t\t\t\t\t\t\t\t\t\t->leftJoin('class', 'appform.classid', '=', 'class.classid')\n\t\t\t\t\t\t\t\t\t\t->leftJoin('trans_status', 'appform.status', '=', 'trans_status.trns_id')\n\t\t\t\t\t\t\t\t\t\t->select('appform.*', 'hfaci_serv_type.*','region.rgn_desc', 'x08.facilityname', 'x08.authorizedsignature', 'x08.email', 'x08.streetname', 'x08.barangay', 'x08.city_muni', 'x08.province', 'x08.zipcode', 'x08.rgnid', 'hfaci_grp.hgpdesc', 'city_muni.cmname', 'apptype.aptdesc', 'province.provname', 'barangay.brgyname', 'ownership.ocdesc', 'class.classname', 'trans_status.trns_desc')\n\t\t\t\t\t\t\t\t\t\t->where('appform.draft', '=', null)\n\t\t\t\t\t\t\t\t\t\t->where('appform.isrecommended', 0)\n\t\t\t\t\t\t\t\t\t\t->orWhere('appform.isInspected', 0)\n\t\t\t\t\t\t\t\t\t\t->orWhere('isPayEval', 0)\n\t\t\t\t\t\t\t\t\t\t->orWhere('isCashierApprove', 0)\n\t\t\t\t\t\t\t\t\t\t->orWhere('isRecoForApproval', 0)\n\t\t\t\t\t\t\t\t\t\t->orWhere('isApprove', 0)\n\t\t\t\t\t\t\t\t\t\t->get();\n\t\t\t\t\t\t\t} else if ($Cur_useData['grpid'] == 'FDA' || $Cur_useData['grpid'] == 'LO') \n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$anotherData = DB::table('appform')\n\t\t\t\t\t\t\t\t\t\t->leftJoin('hfaci_serv_type', 'appform.hfser_id', '=', 'hfaci_serv_type.hfser_id')\n\t\t\t\t\t\t\t\t\t\t->leftJoin('hfaci_grp', 'appform.facid', '=', 'hfaci_grp.hgpid')\n\t\t\t\t\t\t\t\t\t\t->leftJoin('x08', 'appform.uid', '=', 'x08.uid')\n\t\t\t\t\t\t\t\t\t\t->leftJoin('region', 'appform.assignedRgn', '=', 'region.rgnid')\n\t\t\t\t\t\t\t\t\t\t->leftJoin('city_muni', 'x08.city_muni', '=', 'city_muni.cmid')\n\t\t\t\t\t\t\t\t\t\t->leftJoin('province', 'x08.province', '=', 'province.provid')\n\t\t\t\t\t\t\t\t\t\t->leftJoin('apptype', 'appform.aptid', '=', 'apptype.aptid')\n\t\t\t\t\t\t\t\t\t\t->leftJoin('barangay', 'x08.barangay', '=' , 'barangay.brgyid')\n\t\t\t\t\t\t\t\t\t\t->leftJoin('ownership', 'appform.ocid', '=', 'ownership.ocid')\n\t\t\t\t\t\t\t\t\t\t->leftJoin('class', 'appform.classid', '=', 'class.classid')\n\t\t\t\t\t\t\t\t\t\t->leftJoin('trans_status', 'appform.status', '=', 'trans_status.trns_id')\n\t\t\t\t\t\t\t\t\t\t->select('appform.*', 'hfaci_serv_type.*','region.rgn_desc', 'x08.facilityname', 'x08.authorizedsignature', 'x08.email', 'x08.streetname', 'x08.barangay', 'x08.city_muni', 'x08.province', 'x08.zipcode', 'x08.rgnid', 'hfaci_grp.hgpdesc', 'city_muni.cmname', 'apptype.aptdesc', 'province.provname', 'barangay.brgyname', 'ownership.ocdesc', 'class.classname', 'trans_status.trns_desc')\n\t\t\t\t\t\t\t\t\t\t->where('appform.assignedLO', '=', $Cur_useData['cur_user'])\n\t\t\t\t\t\t\t\t\t\t->where('appform.draft', '=', null)\n\t\t\t\t\t\t\t\t\t\t// ->where([['status', '=', 'RA'], ['status', '=', 'RI'], ['status', '=', 'RE']])\n\t\t\t\t\t\t\t\t\t\t->where('appform.isrecommended', 0)\n\t\t\t\t\t\t\t\t\t\t->orWhere('appform.isInspected', 0)\n\t\t\t\t\t\t\t\t\t\t->orWhere('isPayEval', 0)\n\t\t\t\t\t\t\t\t\t\t->orWhere('isCashierApprove', 0)\n\t\t\t\t\t\t\t\t\t\t->orWhere('isRecoForApproval', 0)\n\t\t\t\t\t\t\t\t\t\t->orWhere('isApprove', 0)\n\t\t\t\t\t\t\t\t\t\t->get();\n\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$anotherData = DB::table('appform')\n\t\t\t\t\t\t\t\t\t\t->leftJoin('hfaci_serv_type', 'appform.hfser_id', '=', 'hfaci_serv_type.hfser_id')\n\t\t\t\t\t\t\t\t\t\t->leftJoin('hfaci_grp', 'appform.facid', '=', 'hfaci_grp.hgpid')\n\t\t\t\t\t\t\t\t\t\t->leftJoin('x08', 'appform.uid', '=', 'x08.uid')\n\t\t\t\t\t\t\t\t\t\t->leftJoin('region', 'appform.assignedRgn', '=', 'region.rgnid')\n\t\t\t\t\t\t\t\t\t\t->leftJoin('city_muni', 'x08.city_muni', '=', 'city_muni.cmid')\n\t\t\t\t\t\t\t\t\t\t->leftJoin('province', 'x08.province', '=', 'province.provid')\n\t\t\t\t\t\t\t\t\t\t->leftJoin('apptype', 'appform.aptid', '=', 'apptype.aptid')\n\t\t\t\t\t\t\t\t\t\t->leftJoin('barangay', 'x08.barangay', '=' , 'barangay.brgyid')\n\t\t\t\t\t\t\t\t\t\t->leftJoin('ownership', 'appform.ocid', '=', 'ownership.ocid')\n\t\t\t\t\t\t\t\t\t\t->leftJoin('class', 'appform.classid', '=', 'class.classid')\n\t\t\t\t\t\t\t\t\t\t->leftJoin('trans_status', 'appform.status', '=', 'trans_status.trns_id')\n\t\t\t\t\t\t\t\t\t\t->select('appform.*', 'hfaci_serv_type.*','region.rgn_desc', 'x08.facilityname', 'x08.authorizedsignature', 'x08.email', 'x08.streetname', 'x08.barangay', 'x08.city_muni', 'x08.province', 'x08.zipcode', 'x08.rgnid', 'hfaci_grp.hgpdesc', 'city_muni.cmname', 'apptype.aptdesc', 'province.provname', 'barangay.brgyname', 'ownership.ocdesc', 'class.classname', 'trans_status.trns_desc')\n\t\t\t\t\t\t\t\t\t\t->where('appform.assignedLO', '=', $Cur_useData['cur_user'])\n\t\t\t\t\t\t\t\t\t\t->where('appform.draft', '=', null)\n\t\t\t\t\t\t\t\t\t\t// ->where([['status', '=', 'RA'], ['status', '=', 'RI'], ['status', '=', 'RE']])\n\t\t\t\t\t\t\t\t\t\t->where('appform.isrecommended', 0)\n\t\t\t\t\t\t\t\t\t\t->orWhere('appform.isInspected', 0)\n\t\t\t\t\t\t\t\t\t\t->orWhere('isPayEval', 0)\n\t\t\t\t\t\t\t\t\t\t->orWhere('isCashierApprove', 0)\n\t\t\t\t\t\t\t\t\t\t->orWhere('isRecoForApproval', 0)\n\t\t\t\t\t\t\t\t\t\t->orWhere('isApprove', 0)\n\t\t\t\t\t\t\t\t\t\t->get();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tfor ($i=0; $i < count($anotherData); $i++) {\n\t\t\t\t\t\t\t\t\t$time = $anotherData[$i]->t_time;\n\t\t\t\t\t\t\t\t\t$newT = Carbon::parse($time);\n\t\t\t\t\t\t\t\t\t$anotherData[$i]->formattedTime = $newT->format('g:i A');\n\t\t\t\t\t\t\t\t\t$date = $anotherData[$i]->t_date;\n\t\t\t\t\t\t\t\t\t$newD = Carbon::parse($date);\n\t\t\t\t\t\t\t\t\t$anotherData[$i]->formattedDate = $newD->toFormattedDateString();\n\t\t\t\t\t\t\t\t\t// ->diffForHumans()\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\treturn $anotherData;\n\t\t\t} \n\t\t\tcatch (Exception $e) \n\t\t\t{\n\t\t\t\tAjaxController::SystemLogs($e->getMessage);\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}",
"public function deleteApplications6d917118()\n {\n return '';\n }",
"function resetJobsList() {\n $this->view->title = 'එක්සත් අවමංගල්යාධාර සමිතිය';\n $this->model->resetTempReleased();\n $this->view->jobsList = $this->model->searchJobs(0);\n $this->view->funJobsList = $this->model->searchJobsFunaral(0);\n $this->view->render('awamangala/jobs'); //sending paramiters to View() at lib/view.php\n }",
"public function reservedJobs()\n {\n return $this->get('current-jobs-reserved', 0);\n }",
"public function index()\n {\n //\n $results = UploadApp::selectAllPendingApps()\n ->paginate(15, ['id', 'package_name', 'size', 'sha256', 'isBeingAnalyzed',\n 'isFailedAnalysis', 'attempts', 'updated_at', 'created_at']);\n\n return view('admin.pending', compact('results'));\n }",
"public function getApplications();",
"public function actionInactive() {\n $searchModel = new AlertMasterSearch();\n $dataProvider = $searchModel->search(Yii::$app->request->queryParams,'0');\n\n return $this->render('index', [\n 'searchModel' => $searchModel,\n 'dataProvider' => $dataProvider,\n 'from'=>'inactive',\n ]);\n }",
"public function actionIndex() {\n $searchModel = new LeaveapplicationSearch();\n $dataProvider = $searchModel->search(Yii::$app->request->queryParams);\n\n return $this->render('index', [\n 'searchModel' => $searchModel,\n 'dataProvider' => $dataProvider,\n ]);\n }",
"public function actionApplications() {\n $applications = StudentApplication::model()->findAllByAttributes(array('studentId'=>Yii::app()->user->studentId));\n $this->render('applications', array(\n 'applications' => $applications,\n ));\n }",
"public function index()\n\t{\n\t\t$requisitions = Requisition::whereHas('application', function($q) {\n\t\t\t$q->whereApplicationCurrentStatusId(5);\n\t\t})->where('requisition_current_status_id','=',6)->get();\n\t\tforeach($requisitions as $requisition) {\n\t\t\t$requisition['waiting_for_preparing_package'] = $requisition->application()->whereApplicationCurrentStatusId(5)->count();\n\t\t}\n\t\treturn View::make('recruiter.offering.package.index', compact('requisitions'));\n\t}",
"public function getLaunchedApps(){\n $command = new Command($this->host, self::APPS_LAUNCHED,\"GET\", $this->enableCache, $this->cacheLifetime, $this->cacheFolder);\n $command->execute();\n return $command->getData(\"launched\");\n }",
"public function showTasksDeclined()\n {\n $revisions = Revision::where('seen', true)->where('approved', false)->get();\n\n return view('admin.tasksDeclined' , compact('revisions'));\n }",
"public function invisible() {\n $this->autoRender = false;\n $params = $this->request->data;\n $invisibleTable = TableRegistry::get('InvisibleJob');\n if (!isset($params['candidate_id']) || !isset($params['joborder_id'])) {\n echo json_encode(\n [\n 'status' => 0,\n 'message' => \"Please make sure candidate and joborder ids are passed\"\n ]\n );\n exit;\n }\n $invisibleTable = TableRegistry::get('InvisibleJob');\n echo $result = $invisibleTable->make_invisible($params);\n }",
"public function all_active_jobs()\n {\n $sql = General_model::view_jobs();\n \n $count['count'] = count($sql); \n \n return view('adminpanel.jobs.all_active_jobs',$count,compact('sql')); \n }",
"private function load_jobseeker_job_list() {\n\t\t\n\t\t$page = 'job_list_j_page';\n\n\t\t$this->check_page_files('/views/pages/' . $page . '.php');\n\n\t\t$data['page_title'] = \"Job Application List\";\n\t\t\n\t\t$email = $this->auth->get_info()->email;\n\t\t$data['job_list'] = $this->jobs_model->get_job_list_applicant( $email )->result();\n\t\t\n\t\t$this->load_view($data, $page);\n\t}",
"public function output_no_results() {\n\t\tget_job_manager_template( 'content-no-jobs-found.php' );\n\t}",
"public function index()\n\t{\n $apps = $this->results()->paginate();\n\n $filters = \\Request::query();\n\n unset($filters['page']);\n\n $apps->appends($filters);\n\n $statusOptions = $this->getStatusOptions();\n\n $statusOptions = array_merge(array('all' => 'Status: All'), $statusOptions);\n\n $this->layout->content = View::make('admin/applications/index', compact('apps', 'statusOptions'));\n\t}",
"public function index()\n {\n $actives = LeaveApplication::where('user_id', Auth::id())\n ->where('application_status_id','!=',3)//Approved & Pending\n ->where('leave_type_id','!=',2)\n ->where('to', '>=', Carbon::today())\n ->paginate(5, ['*'], 'actives');\n\n $pasts = LeaveApplication::where('user_id', Auth::id())\n ->where('leave_type_id', '!=', 2)\n ->where('to', '<', Carbon::today())\n ->orwhere('application_status_id','=','3')\n ->paginate(5, ['*'], 'pasts');\n\n $medicals = LeaveApplication::where('user_id', Auth::id())\n ->where('leave_type_id', 2)\n ->paginate(5, ['*'], 'medicals');\n\n\n\n return view('application.application_list' , compact('actives', 'pasts', 'medicals'));\n }",
"public function getIrhpPermitApplications()\n {\n return $this->irhpPermitApplications;\n }",
"public function index()\n {\n if (Gate::allows('apply')) {\n $jobs = Job::all()->where('status', 'show');\n \n return view('jobs.index')->with('jobs', $jobs);\n } else {\n return redirect('/profile');\n }\n }",
"public function actionIndex() {\n $searchModel = new DataAnalysisAppSearch();\n\n $searchParams = Yii::$app->request->queryParams;\n\n $searchResult = $searchModel->search($searchParams);\n\n // no applications returned - connection error or no opencpu applications\n // are available\n if (empty($searchResult)) {\n return $this->render('/site/error', [\n 'name' => Yii::t('app/warning', 'Informations'),\n 'message' => Yii::t('app/messages', 'No application available')\n ]\n );\n } else {\n return $this->render('index', [\n 'searchModel' => $searchModel,\n 'dataProvider' => $searchResult,\n ]\n );\n }\n }",
"public function index() {\n \treturn view('admin.applications.application-listing');\n }",
"public function showApplicationForm()\n {\n return view('candidate/jobApplicationForm');\n }"
] | [
"0.6578477",
"0.6434854",
"0.5999796",
"0.59559804",
"0.59493256",
"0.57513",
"0.5705057",
"0.56765026",
"0.56677955",
"0.5655294",
"0.56301093",
"0.5625075",
"0.5604921",
"0.5595665",
"0.55899185",
"0.55810183",
"0.5543856",
"0.55365324",
"0.5534955",
"0.55165005",
"0.5515533",
"0.5512586",
"0.55098003",
"0.54614604",
"0.5440445",
"0.5439901",
"0.5417775",
"0.540848",
"0.5400849",
"0.5370011"
] | 0.670089 | 0 |
Listing the shortlisted jobs by the job post | public function shortlistjobs(Request $request)
{
$jobposts = Jobposts::where('employer_id', Auth::guard('employer')->user()->id)->get();
$job = Jobposts::where('id', $request->jobtitle)->value('job_title');
$candidates = DB::table('job_applications')
->join('shortlists', 'shortlists.user_id', 'job_applications.user_id')
->join('jobseeker_details', 'job_applications.user_id', '=', 'jobseeker_details.user_id')
->where('job_applications.job_id', $request->jobtitle)
->select('jobseeker_details.*')
->get();
return view('employer-dashboard.job-shortlists', compact('candidates', 'jobposts', 'job'));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function careerfy_vc_simple_jobs_listing_multi()\n{\n global $jobsearch_gdapi_allocation;\n\n $jobsearch__options = get_option('jobsearch_plugin_options');\n $categories = get_terms(array(\n 'taxonomy' => 'sector',\n 'hide_empty' => false,\n ));\n $all_locations_type = isset($jobsearch__options['all_locations_type']) ? $jobsearch__options['all_locations_type'] : '';\n $cate_array = array(esc_html__(\"Select Sector\", \"careerfy-frame\") => '');\n if (is_array($categories) && sizeof($categories) > 0) {\n foreach ($categories as $category) {\n $cate_array[$category->name] = $category->slug;\n }\n }\n\n $job_listsh_parms = array();\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Sector\", \"careerfy-frame\"),\n 'param_name' => 'job_cat',\n 'value' => $cate_array,\n 'description' => esc_html__(\"Select Sector.\", \"careerfy-frame\")\n );\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Order\", \"careerfy-frame\"),\n 'param_name' => 'job_order',\n 'value' => array(\n esc_html__(\"Descending\", \"careerfy-frame\") => 'DESC',\n esc_html__(\"Ascending\", \"careerfy-frame\") => 'ASC',\n ),\n 'description' => esc_html__(\"Order dropdown will work for featured jobs only\", \"careerfy-frame\")\n );\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Orderby\", \"careerfy-frame\"),\n 'param_name' => 'job_orderby',\n 'value' => array(\n esc_html__(\"Date\", \"careerfy-frame\") => 'date',\n esc_html__(\"Title\", \"careerfy-frame\") => 'title',\n ),\n 'description' => esc_html__(\"Choose job list items orderby.\", \"careerfy-frame\")\n );\n $job_listsh_parms[] = array(\n 'type' => 'textfield',\n 'heading' => esc_html__(\"Number of Jobs\", \"careerfy-frame\"),\n 'param_name' => 'job_per_page',\n 'value' => '10',\n 'description' => esc_html__(\"Set number that how many jobs you want to show.\", \"careerfy-frame\")\n );\n\n //\n $attributes = array(\n \"name\" => esc_html__(\"Simple Jobs Listing Multi\", \"careerfy-frame\"),\n \"base\" => \"jobsearch_simple_jobs_listing_multi\",\n \"class\" => \"\",\n \"category\" => esc_html__(\"Wp JobSearch\", \"careerfy-frame\"),\n \"params\" => $job_listsh_parms,\n );\n\n if (function_exists('vc_map') && class_exists('JobSearch_plugin')) {\n vc_map($attributes);\n }\n}",
"public function GetListJobPost()\n {\n\n // $univID = $user->getUnivID();\n\n $resp =\n DB::table(\"university_partnership AS up\")\n ->join(\"career_fair AS cf\", \"cf.id\", \"=\", \"up.company_id\")\n ->join(DB::raw(\"(SELECT jpe.id AS jobPostID,\n jpe.job_position AS jobPosition,\n jpe.created_at AS jobPostCreatedDate,\n jpe.status AS jobPostStatus,\n SUM(CASE WHEN sjpe.viewed = 1 THEN 1 ELSE 0 END) AS totalViewed,\n SUM(CASE WHEN sjpe.applied = 1 THEN 1 ELSE 0 END) AS totalApplied,\n SUM(CASE WHEN sjpe.favorite = 1 THEN 1 ELSE 0 END) AS totalFavorite,\n jpe.cp_id AS companyID,\n jpe.work_location AS workLocation\n FROM jp_event AS jpe\n LEFT JOIN status_job_post_event AS sjpe ON sjpe.job_post_id = jpe.id\n GROUP BY jpe.id) AS jpe\"), \"jpe.companyID\", \"=\", \"up.company_id\")\n ->select(\"jpe.jobPostID\", \"jpe.jobPosition\", \"jpe.jobPostCreatedDate\", \"jpe.totalViewed\", \"jpe.totalFavorite\", \"jpe.totalApplied\", \"jpe.jobPostStatus\", \"jpe.workLocation\", \"jpe.jobPostStatus\", \"cf.name AS companyName\")\n ->where(\"jpe.jobPostStatus\", \"<>\", 2)\n ->get()\n ->toArray();\n\n if (!empty($resp))\n return $resp;\n\n return false;\n }",
"function getSuggestedJobPostings(){\r\n\t\t\t$preference = $this->getJobAlertPreferences();\r\n\t\t\t\r\n\t\t\tif($preference['id']==''){\r\n\t\t\t\treturn $this->getJobAdsByAccountProfile();\r\n\t\t\t} else {\r\n\t\t\t\treturn $this->getJobAdsByPreferences($preference);\r\n\t\t\t}\r\n }",
"public function getJobPosts(): array;",
"public function suggestedJobs(){\n $result = SuggestedJobs::getAllJobs();\n $jobs = array();\n foreach($result as &$row){\n $jobs[] = $this->getAllCols($row);\n } \n \n //set isAdmin\n $isAdmin = $this->isAdminLogin();\n $pageName = \"jobs\";\n include_once SYSTEM_PATH.'/view/header.tpl';\n include_once SYSTEM_PATH.'/view/jobs.tpl';\n include_once SYSTEM_PATH.'/view/footer.tpl';\n }",
"function careerfy_vc_jobs_listing()\n{\n global $jobsearch_gdapi_allocation, $jobsearch_plugin_options;\n $jobsearch__options = get_option('jobsearch_plugin_options');\n $sectors_enable_switch = isset($jobsearch_plugin_options['sectors_onoff_switch']) ? $jobsearch_plugin_options['sectors_onoff_switch'] : 500;\n\n $categories = get_terms(array(\n 'taxonomy' => 'sector',\n 'hide_empty' => false,\n ));\n\n $all_locations_type = isset($jobsearch__options['all_locations_type']) ? $jobsearch__options['all_locations_type'] : '';\n\n $cate_array = array(esc_html__(\"Select Sector\", \"careerfy-frame\") => '');\n if (is_array($categories) && sizeof($categories) > 0) {\n foreach ($categories as $category) {\n $cate_array[$category->name] = $category->slug;\n }\n }\n\n $jobsearch_job_cus_fields = get_option(\"jobsearch_custom_field_job\");\n $job_cus_field_arr = array();\n if (isset($jobsearch_job_cus_fields) && !empty($jobsearch_job_cus_fields) && sizeof($jobsearch_job_cus_fields) > 0) {\n foreach ($jobsearch_job_cus_fields as $key => $value) {\n $job_cus_field_arr[$value['label']] = $key;\n }\n }\n\n $job_listsh_parms = array();\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"View\", \"careerfy-frame\"),\n 'param_name' => 'job_view',\n 'value' => array(\n esc_html__(\"Style 1\", \"careerfy-frame\") => 'view-default',\n esc_html__(\"Style 2\", \"careerfy-frame\") => 'view-medium',\n esc_html__(\"Style 3\", \"careerfy-frame\") => 'view-listing2',\n esc_html__(\"Style 4\", \"careerfy-frame\") => 'view-grid2',\n esc_html__(\"Style 5\", \"careerfy-frame\") => 'view-medium2',\n esc_html__(\"Style 6\", \"careerfy-frame\") => 'view-grid',\n esc_html__(\"Style 7\", \"careerfy-frame\") => 'view-medium3',\n esc_html__(\"Style 8\", \"careerfy-frame\") => 'view-grid3',\n esc_html__(\"Style 9\", \"careerfy-frame\") => 'view-grid-4',\n ),\n 'description' => esc_html__(\"Select jobs listing view.\", \"careerfy-frame\")\n );\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Sector\", \"careerfy-frame\"),\n 'param_name' => 'job_cat',\n 'value' => $cate_array,\n 'description' => esc_html__(\"Select Sector.\", \"careerfy-frame\")\n );\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Job Founds with display counts\", \"careerfy-frame\"),\n 'param_name' => 'display_per_page',\n 'value' => array(\n esc_html__(\"Yes\", \"careerfy-frame\") => 'yes',\n esc_html__(\"No\", \"careerfy-frame\") => 'no',\n ),\n 'description' => esc_html__(\"Display the per page jobs count at top of the listing.\", \"careerfy-frame\")\n );\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Featured Only\", \"careerfy-frame\"),\n 'param_name' => 'featured_only',\n 'value' => array(\n esc_html__(\"No\", \"careerfy-frame\") => 'no',\n esc_html__(\"Yes\", \"careerfy-frame\") => 'yes',\n ),\n 'description' => esc_html__(\"If you set Featured Only 'Yes' then only Featured jobs will show.\", \"careerfy-frame\")\n );\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Employer Base Jobs\", \"careerfy-frame\"),\n 'param_name' => 'jobs_emp_base',\n 'value' => array(\n esc_html__(\"No\", \"careerfy-frame\") => 'no',\n esc_html__(\"Yes\", \"careerfy-frame\") => 'yes',\n ),\n 'description' => esc_html__(\"Show only Selected Employer Jobs.\", \"careerfy-frame\"),\n 'group' => esc_html__(\"Employer Base Jobs\", \"careerfy-frame\"),\n );\n $job_listsh_parms[] = array(\n 'type' => 'textfield',\n 'heading' => esc_html__(\"Employer ID\", \"careerfy-frame\"),\n 'param_name' => 'jobs_emp_base_id',\n 'value' => '',\n 'description' => esc_html__(\"Put employer ID here.\", \"careerfy-frame\"),\n 'group' => esc_html__(\"Employer Base Jobs\", \"careerfy-frame\"),\n );\n if ($all_locations_type == 'api') {\n\n $api_contries_list = array();\n if (class_exists('JobSearch_plugin')) {\n $api_contries_list = $jobsearch_gdapi_allocation::get_countries();\n }\n if (!empty($api_contries_list)) {\n foreach ($api_contries_list as $api_cntry_key => $api_cntry_val) {\n if (isset($api_cntry_val->code)) {\n $contry_arr_list[$api_cntry_val->code] = $api_cntry_val->name;\n }\n }\n }\n\n// $contry_arr_list = array('' => esc_html__(\"Select Country\", \"careerfy-frame\"));\n// if (!empty($api_contries_list)) {\n// foreach ($api_contries_list as $api_cntry_key => $api_cntry_val) {\n// if (isset($api_cntry_val['code'])) {\n// $contry_arr_list[$api_cntry_val['code']] = $api_cntry_val['name'];\n// }\n// }\n// }\n\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Selected Location Jobs\", \"careerfy-frame\"),\n 'param_name' => 'selct_loc_jobs',\n 'value' => array(\n esc_html__(\"No\", \"careerfy-frame\") => 'no',\n esc_html__(\"Yes\", \"careerfy-frame\") => 'yes',\n ),\n 'description' => esc_html__(\"Show only Selected Location Jobs.\", \"careerfy-frame\"),\n 'group' => esc_html__(\"Location Based Jobs\", \"careerfy-frame\"),\n );\n $job_listsh_parms[] = array(\n 'type' => 'jobsearch_gapi_locs',\n 'heading' => esc_html__(\"Select Location\", \"careerfy-frame\"),\n 'param_name' => 'selct_gapiloc_str',\n 'api_contry_list' => $contry_arr_list,\n 'value' => '',\n 'description' => '',\n 'group' => esc_html__(\"Location Based Jobs\", \"careerfy-frame\"),\n );\n }\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Filters\", \"careerfy-frame\"),\n 'param_name' => 'job_filters',\n 'value' => array(\n esc_html__(\"Yes\", \"careerfy-frame\") => 'yes',\n esc_html__(\"No\", \"careerfy-frame\") => 'no',\n ),\n 'description' => esc_html__(\"Jobs searching filters switch.\", \"careerfy-frame\"),\n 'group' => esc_html__(\"Filters Settings\", \"careerfy-frame\"),\n );\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Filters Count\", \"careerfy-frame\"),\n 'param_name' => 'job_filters_count',\n 'value' => array(\n esc_html__(\"No\", \"careerfy-frame\") => 'no',\n esc_html__(\"Yes\", \"careerfy-frame\") => 'yes',\n ),\n 'description' => esc_html__(\"Show result counts in front of every filter.\", \"careerfy-frame\"),\n 'group' => esc_html__(\"Filters Settings\", \"careerfy-frame\"),\n );\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Filters Sort by\", \"careerfy-frame\"),\n 'param_name' => 'job_filters_sortby',\n 'value' => array(\n esc_html__(\"Default\", \"careerfy-frame\") => 'default',\n esc_html__(\"Ascending\", \"careerfy-frame\") => 'asc',\n esc_html__(\"Descending\", \"careerfy-frame\") => 'desc',\n esc_html__(\"Alphabetical\", \"careerfy-frame\") => 'alpha',\n esc_html__(\"Highest Count\", \"careerfy-frame\") => 'count',\n ),\n 'description' => esc_html__(\"Show result counts in front of every filter.\", \"careerfy-frame\"),\n 'group' => esc_html__(\"Filters Settings\", \"careerfy-frame\"),\n );\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Keyword Search\", \"careerfy-frame\"),\n 'param_name' => 'job_filters_keyword',\n 'value' => array(\n esc_html__(\"No\", \"careerfy-frame\") => 'no',\n esc_html__(\"Yes\", \"careerfy-frame\") => 'yes',\n ),\n 'description' => esc_html__(\"Jobs filters 'Keyword Search' switch.\", \"careerfy-frame\"),\n 'group' => esc_html__(\"Filters Settings\", \"careerfy-frame\"),\n );\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Locations\", \"careerfy-frame\"),\n 'param_name' => 'job_filters_loc',\n 'value' => array(\n esc_html__(\"Yes\", \"careerfy-frame\") => 'yes',\n esc_html__(\"No\", \"careerfy-frame\") => 'no',\n ),\n 'description' => esc_html__(\"Jobs searching filters 'Location' switch.\", \"careerfy-frame\"),\n 'group' => esc_html__(\"Filters Settings\", \"careerfy-frame\"),\n );\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Locations Filter Collapse\", \"careerfy-frame\"),\n 'param_name' => 'job_filters_loc_collapse',\n 'value' => array(\n esc_html__(\"No\", \"careerfy-frame\") => 'no',\n esc_html__(\"Yes\", \"careerfy-frame\") => 'yes',\n ),\n 'description' => '',\n 'group' => esc_html__(\"Filters Settings\", \"careerfy-frame\"),\n );\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Locations Filter Style\", \"careerfy-frame\"),\n 'param_name' => 'job_filters_loc_view',\n 'value' => array(\n esc_html__(\"Checkbox List\", \"careerfy-frame\") => 'checkboxes',\n esc_html__(\"Dropdown Fields\", \"careerfy-frame\") => 'dropdowns',\n esc_html__(\"Input Field\", \"careerfy-frame\") => 'input',\n ),\n 'description' => '',\n 'group' => esc_html__(\"Filters Settings\", \"careerfy-frame\"),\n );\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Date Posted\", \"careerfy-frame\"),\n 'param_name' => 'job_filters_date',\n 'value' => array(\n esc_html__(\"Yes\", \"careerfy-frame\") => 'yes',\n esc_html__(\"No\", \"careerfy-frame\") => 'no',\n ),\n 'description' => esc_html__(\"Jobs searching filters 'Date Posted' switch.\", \"careerfy-frame\"),\n 'group' => esc_html__(\"Filters Settings\", \"careerfy-frame\"),\n );\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Date Posted Filter Collapse\", \"careerfy-frame\"),\n 'param_name' => 'job_filters_date_collapse',\n 'value' => array(\n esc_html__(\"No\", \"careerfy-frame\") => 'no',\n esc_html__(\"Yes\", \"careerfy-frame\") => 'yes',\n ),\n 'description' => '',\n 'group' => esc_html__(\"Filters Settings\", \"careerfy-frame\"),\n );\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Job Type\", \"careerfy-frame\"),\n 'param_name' => 'job_filters_type',\n 'value' => array(\n esc_html__(\"Yes\", \"careerfy-frame\") => 'yes',\n esc_html__(\"No\", \"careerfy-frame\") => 'no',\n ),\n 'description' => esc_html__(\"Jobs searching filters 'Job Type' switch.\", \"careerfy-frame\"),\n 'group' => esc_html__(\"Filters Settings\", \"careerfy-frame\"),\n );\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Job Type Filter Collapse\", \"careerfy-frame\"),\n 'param_name' => 'job_filters_type_collapse',\n 'value' => array(\n esc_html__(\"No\", \"careerfy-frame\") => 'no',\n esc_html__(\"Yes\", \"careerfy-frame\") => 'yes',\n ),\n 'description' => '',\n 'group' => esc_html__(\"Filters Settings\", \"careerfy-frame\"),\n );\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Sector\", \"careerfy-frame\"),\n 'param_name' => 'job_filters_sector',\n 'value' => array(\n esc_html__(\"Yes\", \"careerfy-frame\") => 'yes',\n esc_html__(\"No\", \"careerfy-frame\") => 'no',\n ),\n 'description' => esc_html__(\"Jobs searching filters 'Sector' switch.\", \"careerfy-frame\"),\n 'group' => esc_html__(\"Filters Settings\", \"careerfy-frame\"),\n );\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Sector Filter Collapse\", \"careerfy-frame\"),\n 'param_name' => 'job_filters_sector_collapse',\n 'value' => array(\n esc_html__(\"No\", \"careerfy-frame\") => 'no',\n esc_html__(\"Yes\", \"careerfy-frame\") => 'yes',\n ),\n 'description' => '',\n 'group' => esc_html__(\"Filters Settings\", \"careerfy-frame\"),\n );\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Top Map\", \"careerfy-frame\"),\n 'param_name' => 'job_top_map',\n 'value' => array(\n esc_html__(\"No\", \"careerfy-frame\") => 'no',\n esc_html__(\"Yes\", \"careerfy-frame\") => 'yes',\n ),\n 'description' => esc_html__(\"Jobs top map switch.\", \"careerfy-frame\"),\n 'group' => esc_html__(\"Map Settings\", \"careerfy-frame\"),\n );\n $job_listsh_parms[] = array(\n 'type' => 'textfield',\n 'heading' => esc_html__(\"Map Height\", \"careerfy-frame\"),\n 'param_name' => 'job_top_map_height',\n 'value' => '450',\n 'description' => esc_html__(\"Jobs top map height.\", \"careerfy-frame\"),\n 'group' => esc_html__(\"Map Settings\", \"careerfy-frame\"),\n );\n $job_listsh_parms[] = array(\n 'type' => 'textfield',\n 'heading' => esc_html__(\"Map Zoom\", \"careerfy-frame\"),\n 'param_name' => 'job_top_map_zoom',\n 'value' => '8',\n 'description' => esc_html__(\"Jobs top map zoom.\", \"careerfy-frame\"),\n 'group' => esc_html__(\"Map Settings\", \"careerfy-frame\"),\n );\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Featured Jobs on Top\", \"careerfy-frame\"),\n 'param_name' => 'job_feat_jobs_top',\n 'value' => array(\n esc_html__(\"No\", \"careerfy-frame\") => 'no',\n esc_html__(\"Yes\", \"careerfy-frame\") => 'yes',\n ),\n 'description' => esc_html__(\"Featured jobs will display on top of listing.\", \"careerfy-frame\"),\n 'group' => esc_html__(\"Featured Jobs\", \"careerfy-frame\"),\n );\n $job_listsh_parms[] = array(\n 'type' => 'textfield',\n 'heading' => esc_html__(\"Number of Featured jobs\", \"careerfy-frame\"),\n 'param_name' => 'num_of_feat_jobs',\n 'value' => '5',\n 'description' => '',\n 'group' => esc_html__(\"Featured Jobs\", \"careerfy-frame\"),\n );\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Top Search Bar\", \"careerfy-frame\"),\n 'param_name' => 'job_top_search',\n 'value' => array(\n esc_html__(\"Yes\", \"careerfy-frame\") => 'yes',\n esc_html__(\"No\", \"careerfy-frame\") => 'no',\n ),\n 'description' => esc_html__(\"Jobs top search bar switch.\", \"careerfy-frame\"),\n 'group' => esc_html__(\"Top Search\", \"careerfy-frame\"),\n );\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Top Search Style\", \"careerfy-frame\"),\n 'param_name' => 'job_top_search_view',\n 'value' => array(\n esc_html__(\"Simple\", \"careerfy-frame\") => 'simple',\n esc_html__(\"Advance Search\", \"careerfy-frame\") => 'advance',\n ),\n 'description' => esc_html__(\"Jobs top search style.\", \"careerfy-frame\"),\n 'group' => esc_html__(\"Top Search\", \"careerfy-frame\"),\n );\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Top Search Radius\", \"careerfy-frame\"),\n 'param_name' => 'job_top_search_radius',\n 'value' => array(\n esc_html__(\"Yes\", \"careerfy-frame\") => 'yes',\n esc_html__(\"No\", \"careerfy-frame\") => 'no',\n ),\n 'default' => 'yes',\n 'description' => esc_html__(\"Enable/Disable top search radius.\", \"careerfy-frame\"),\n 'group' => esc_html__(\"Top Search\", \"careerfy-frame\"),\n );\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Job Title, Keywords, or Phrase\", \"careerfy-frame\"),\n 'param_name' => 'top_search_title',\n 'value' => array(\n esc_html__(\"Yes\", \"careerfy-frame\") => 'yes',\n esc_html__(\"No\", \"careerfy-frame\") => 'no',\n ),\n 'description' => esc_html__(\"Enable/Disable search keyword field.\", \"careerfy-frame\"),\n 'group' => esc_html__(\"Top Search\", \"careerfy-frame\"),\n );\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Location\", \"careerfy-frame\"),\n 'param_name' => 'top_search_location',\n 'value' => array(\n esc_html__(\"Yes\", \"careerfy-frame\") => 'yes',\n esc_html__(\"No\", \"careerfy-frame\") => 'no',\n ),\n 'description' => esc_html__(\"Enable/Disable location field.\", \"careerfy-frame\"),\n 'group' => esc_html__(\"Top Search\", \"careerfy-frame\"),\n );\n if ($sectors_enable_switch == 'on') {\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Sector\", \"careerfy-frame\"),\n 'param_name' => 'top_search_sector',\n 'value' => array(\n esc_html__(\"Yes\", \"careerfy-frame\") => 'yes',\n esc_html__(\"No\", \"careerfy-frame\") => 'no',\n ),\n 'description' => esc_html__(\"Enable/Disable Sector Dropdown field.\", \"careerfy-frame\"),\n 'group' => esc_html__(\"Top Search\", \"careerfy-frame\"),\n );\n }\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"AutoFill Search Box\", \"careerfy-frame\"),\n 'param_name' => 'top_search_autofill',\n 'value' => array(\n esc_html__(\"Yes\", \"careerfy-frame\") => 'yes',\n esc_html__(\"No\", \"careerfy-frame\") => 'no',\n ),\n 'description' => esc_html__(\"Enable/Disable autofill in search keyword field.\", \"careerfy-frame\"),\n 'group' => esc_html__(\"Top Search\", \"careerfy-frame\"),\n );\n\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Sort by Fields\", \"careerfy-frame\"),\n 'param_name' => 'job_sort_by',\n 'value' => array(\n esc_html__(\"Yes\", \"careerfy-frame\") => 'yes',\n esc_html__(\"No\", \"careerfy-frame\") => 'no',\n ),\n 'description' => esc_html__(\"Results search sorting section switch. When choosing option yes then jobs display counts will show.\", \"careerfy-frame\")\n );\n $job_listsh_parms[] = array(\n 'type' => 'checkbox',\n 'heading' => esc_html__(\"Locations in listing\", \"careerfy-frame\"),\n 'param_name' => 'job_loc_listing',\n 'value' => array(\n esc_html__(\"Country\", \"careerfy-frame\") => 'country',\n esc_html__(\"State\", \"careerfy-frame\") => 'state',\n esc_html__(\"City\", \"careerfy-frame\") => 'city',\n ),\n 'std' => 'country,city',\n 'description' => esc_html__(\"Select which type of location in listing. If nothing select then full address will display.\", \"careerfy-frame\")\n );\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"RSS Feed\", \"careerfy-frame\"),\n 'param_name' => 'job_rss_feed',\n 'dependency' => array(\n 'element' => 'job_sort_by',\n 'value' => 'yes',\n ),\n 'value' => array(\n esc_html__(\"Yes\", \"careerfy-frame\") => 'yes',\n esc_html__(\"No\", \"careerfy-frame\") => 'no',\n ),\n 'description' => ''\n );\n $job_listsh_parms[] = array(\n 'type' => 'textfield',\n 'heading' => esc_html__(\"Excerpt Length\", \"careerfy-frame\"),\n 'param_name' => 'job_excerpt',\n 'value' => '20',\n 'description' => esc_html__(\"Set the number of words you want to show for excerpt.\", \"careerfy-frame\")\n );\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Order\", \"careerfy-frame\"),\n 'param_name' => 'job_order',\n 'value' => array(\n esc_html__(\"Descending\", \"careerfy-frame\") => 'DESC',\n esc_html__(\"Ascending\", \"careerfy-frame\") => 'ASC',\n ),\n 'description' => esc_html__(\"Choose job list items order.\", \"careerfy-frame\")\n );\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Orderby\", \"careerfy-frame\"),\n 'param_name' => 'job_orderby',\n 'value' => array(\n esc_html__(\"Date\", \"careerfy-frame\") => 'date',\n esc_html__(\"Title\", \"careerfy-frame\") => 'title',\n ),\n 'description' => esc_html__(\"Choose job list items orderby.\", \"careerfy-frame\")\n );\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Pagination\", \"careerfy-frame\"),\n 'param_name' => 'job_pagination',\n 'value' => array(\n esc_html__(\"Yes\", \"careerfy-frame\") => 'yes',\n esc_html__(\"No\", \"careerfy-frame\") => 'no',\n ),\n 'description' => esc_html__(\"Choose yes if you want to show pagination for job items.\", \"careerfy-frame\")\n );\n $job_listsh_parms[] = array(\n 'type' => 'textfield',\n 'heading' => esc_html__(\"Jobs per Page\", \"careerfy-frame\"),\n 'param_name' => 'job_per_page',\n 'value' => '10',\n 'description' => esc_html__(\"Set number that how much jobs you want to show per page. Leave it blank for all jobs on a single page.\", \"careerfy-frame\")\n );\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Quick Apply job\", \"careerfy-frame\"),\n 'param_name' => 'quick_apply_job',\n 'value' => array(\n esc_html__(\"No\", \"careerfy-frame\") => 'off',\n esc_html__(\"Yes\", \"careerfy-frame\") => 'on',\n ),\n 'description' => esc_html__(\"By setting this option to yes, when user will click on job title or image, pop-up will be appear from the side.\", \"careerfy-frame\")\n );\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Custom Fields\", \"careerfy-frame\"),\n 'param_name' => 'job_custom_fields_switch',\n 'value' => array(\n esc_html__(\"No\", \"careerfy-frame\") => 'no',\n esc_html__(\"Yes\", \"careerfy-frame\") => 'yes',\n ),\n 'description' => esc_html__(\"Enable / Disable job custom fields\", \"careerfy-frame\"),\n 'group' => esc_html__(\"Custom Fields\", \"careerfy-frame\"),\n );\n $job_listsh_parms[] = array(\n 'type' => 'checkbox',\n 'heading' => esc_html__(\"Select Fields\", \"careerfy-frame\"),\n 'param_name' => 'job_elem_custom_fields',\n 'value' => $job_cus_field_arr,\n 'description' => '',\n 'group' => esc_html__(\"Custom Fields\", \"careerfy-frame\"),\n );\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Job Deadline\", \"careerfy-frame\"),\n 'param_name' => 'job_deadline_switch',\n 'value' => array(\n esc_html__(\"No\", \"careerfy-frame\") => 'no',\n esc_html__(\"Yes\", \"careerfy-frame\") => 'Yes',\n ),\n 'description' => esc_html__(\"Enable / Disable jobs deadline date in listings\", \"careerfy-frame\"),\n );\n\n //\n $attributes = array(\n \"name\" => esc_html__(\"Jobs Listing\", \"careerfy-frame\"),\n \"base\" => \"jobsearch_job_shortcode\",\n \"class\" => \"\",\n \"category\" => esc_html__(\"Wp JobSearch\", \"careerfy-frame\"),\n \"params\" => apply_filters('jobsearch_job_listings_vcsh_params', $job_listsh_parms)\n );\n\n if (function_exists('vc_map') && class_exists('JobSearch_plugin')) {\n vc_map($attributes);\n }\n}",
"function careerfy_vc_simple_jobs_listing()\n{\n global $jobsearch_gdapi_allocation;\n $jobsearch__options = get_option('jobsearch_plugin_options');\n\n $categories = get_terms(array(\n 'taxonomy' => 'sector',\n 'hide_empty' => false,\n ));\n\n $all_locations_type = isset($jobsearch__options['all_locations_type']) ? $jobsearch__options['all_locations_type'] : '';\n $cate_array = array(esc_html__(\"Select Sector\", \"careerfy-frame\") => '');\n if (is_array($categories) && sizeof($categories) > 0) {\n foreach ($categories as $category) {\n $cate_array[$category->name] = $category->slug;\n }\n }\n\n $job_listsh_parms = array();\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"View\", \"careerfy-frame\"),\n 'param_name' => 'job_list_style',\n 'value' => array(\n esc_html__(\"Style 1\", \"careerfy-frame\") => 'style1',\n esc_html__(\"Style 2\", \"careerfy-frame\") => 'style2',\n esc_html__(\"Style 3\", \"careerfy-frame\") => 'style3',\n esc_html__(\"Style 4\", \"careerfy-frame\") => 'style4',\n esc_html__(\"Style 5\", \"careerfy-frame\") => 'style5',\n esc_html__(\"Style 6\", \"careerfy-frame\") => 'style6',\n esc_html__(\"Style 7\", \"careerfy-frame\") => 'style7',\n esc_html__(\"Style 8\", \"careerfy-frame\") => 'style8',\n esc_html__(\"Style 9\", \"careerfy-frame\") => 'style9',\n ),\n );\n\n $job_listsh_parms[] = array(\n 'type' => 'careerfy_browse_img',\n 'heading' => esc_html__(\"Image\", \"careerfy-frame\"),\n 'param_name' => 'title_img',\n 'value' => '',\n 'description' => esc_html__(\"Image will show above title\", \"careerfy-frame\"),\n 'dependency' => array(\n 'element' => 'job_list_style',\n 'value' => 'style4'\n ),\n );\n\n $job_listsh_parms[] = array(\n 'type' => 'textfield',\n 'heading' => esc_html__(\"Title\", \"careerfy-frame\"),\n 'param_name' => 'job_list_title',\n 'value' => '',\n 'description' => '',\n 'dependency' => array(\n 'element' => 'job_list_style',\n 'value' => array('style1', 'style2', 'style3', 'style4')\n ),\n );\n $job_listsh_parms[] = array(\n 'type' => 'textfield',\n 'heading' => esc_html__(\"Description\", \"careerfy-frame\"),\n 'param_name' => 'job_list_description',\n 'value' => '',\n 'description' => '',\n 'dependency' => array(\n 'element' => 'job_list_style',\n 'value' => array('style2', 'style4')\n ),\n );\n $job_listsh_parms[] = array(\n 'type' => 'checkbox',\n 'heading' => esc_html__(\"Locations in listing\", \"careerfy-frame\"),\n 'param_name' => 'job_list_loc_listing',\n 'value' => array(\n esc_html__(\"Country\", \"careerfy-frame\") => 'country',\n esc_html__(\"State\", \"careerfy-frame\") => 'state',\n esc_html__(\"City\", \"careerfy-frame\") => 'city',\n ),\n 'std' => 'country,city',\n 'description' => esc_html__(\"Select which type of location in listing. If nothing select then full address will display.\", \"careerfy-frame\")\n );\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Sector\", \"careerfy-frame\"),\n 'param_name' => 'job_cat',\n 'value' => $cate_array,\n 'description' => esc_html__(\"Select Sector.\", \"careerfy-frame\")\n );\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Featured Only\", \"careerfy-frame\"),\n 'param_name' => 'featured_only',\n 'value' => array(\n esc_html__(\"Yes\", \"careerfy-frame\") => 'yes',\n esc_html__(\"No\", \"careerfy-frame\") => 'no',\n ),\n 'description' => esc_html__(\"If you set Featured Only 'Yes' then only Featured jobs will show.\", \"careerfy-frame\")\n );\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Order\", \"careerfy-frame\"),\n 'param_name' => 'job_order',\n 'value' => array(\n esc_html__(\"Descending\", \"careerfy-frame\") => 'DESC',\n esc_html__(\"Ascending\", \"careerfy-frame\") => 'ASC',\n ),\n 'description' => esc_html__(\"Choose job list items order.\", \"careerfy-frame\")\n );\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Orderby\", \"careerfy-frame\"),\n 'param_name' => 'job_orderby',\n 'value' => array(\n esc_html__(\"Date\", \"careerfy-frame\") => 'date',\n esc_html__(\"Title\", \"careerfy-frame\") => 'title',\n ),\n 'description' => esc_html__(\"Choose job list items orderby.\", \"careerfy-frame\")\n );\n $job_listsh_parms[] = array(\n 'type' => 'textfield',\n 'heading' => esc_html__(\"Number of Jobs\", \"careerfy-frame\"),\n 'param_name' => 'job_per_page',\n 'value' => '10',\n 'description' => esc_html__(\"Set number that how many jobs you want to show.\", \"careerfy-frame\")\n );\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Load More Jobs\", \"careerfy-frame\"),\n 'param_name' => 'job_load_more',\n 'value' => array(\n esc_html__(\"Yes\", \"careerfy-frame\") => 'yes',\n esc_html__(\"No\", \"careerfy-frame\") => 'no',\n ),\n 'description' => esc_html__(\"Choose yes if you want to show more job items.\", \"careerfy-frame\"),\n 'dependency' => array(\n 'element' => 'job_list_style',\n 'value' => array('style1', 'style2', 'style7', 'style8', 'style4', 'style5', 'style6', 'style9')\n ),\n );\n $job_listsh_parms[] = array(\n 'type' => 'textfield',\n 'heading' => esc_html__(\"Link text\", \"careerfy-frame\"),\n 'param_name' => 'job_link_text',\n 'value' => '',\n 'description' => '',\n 'dependency' => array(\n 'element' => 'job_list_style',\n 'value' => array('style3')\n ),\n );\n $job_listsh_parms[] = array(\n 'type' => 'textfield',\n 'heading' => esc_html__(\"Link text URL\", \"careerfy-frame\"),\n 'param_name' => 'job_link_text_url',\n 'value' => '',\n 'description' => '',\n 'dependency' => array(\n 'element' => 'job_list_style',\n 'value' => array('style3')\n ),\n );\n $attributes = array(\n \"name\" => esc_html__(\"Simple Jobs Listing\", \"careerfy-frame\"),\n \"base\" => \"jobsearch_simple_jobs_listing\",\n \"class\" => \"\",\n \"category\" => esc_html__(\"Wp JobSearch\", \"careerfy-frame\"),\n \"params\" => $job_listsh_parms,\n );\n if (function_exists('vc_map') && class_exists('JobSearch_plugin')) {\n vc_map($attributes);\n }\n}",
"function cpt_jobs() {\n\n\t$labels = array(\n\t\t'name' => _x( 'Work in Kawai Purapura', 'Post Type General Name', 'text_domain' ),\n\t\t'singular_name' => _x( 'Job', 'Post Type Singular Name', 'text_domain' ),\n\t\t'menu_name' => __( 'Jobs', 'text_domain' ),\n\t\t'name_admin_bar' => __( 'Jobs', 'text_domain' ),\n\t\t'archives' => __( 'Item Archives', 'text_domain' ),\n\t\t'attributes' => __( 'Item Attributes', 'text_domain' ),\n\t\t'parent_item_colon' => __( 'Parent Item:', 'text_domain' ),\n\t\t'all_items' => __( 'All Items', 'text_domain' ),\n\t\t'add_new_item' => __( 'Add New Item', 'text_domain' ),\n\t\t'add_new' => __( 'Add New', 'text_domain' ),\n\t\t'new_item' => __( 'New Item', 'text_domain' ),\n\t\t'edit_item' => __( 'Edit Item', 'text_domain' ),\n\t\t'update_item' => __( 'Update Item', 'text_domain' ),\n\t\t'view_item' => __( 'View Item', 'text_domain' ),\n\t\t'view_items' => __( 'View Items', 'text_domain' ),\n\t\t'search_items' => __( 'Search Item', 'text_domain' ),\n\t\t'not_found' => __( 'Not found', 'text_domain' ),\n\t\t'not_found_in_trash' => __( 'Not found in Trash', 'text_domain' ),\n\t\t'featured_image' => __( 'Featured Image', 'text_domain' ),\n\t\t'set_featured_image' => __( 'Set featured image', 'text_domain' ),\n\t\t'remove_featured_image' => __( 'Remove featured image', 'text_domain' ),\n\t\t'use_featured_image' => __( 'Use as featured image', 'text_domain' ),\n\t\t'insert_into_item' => __( 'Insert into item', 'text_domain' ),\n\t\t'uploaded_to_this_item' => __( 'Uploaded to this item', 'text_domain' ),\n\t\t'items_list' => __( 'Items list', 'text_domain' ),\n\t\t'items_list_navigation' => __( 'Items list navigation', 'text_domain' ),\n\t\t'filter_items_list' => __( 'Filter items list', 'text_domain' ),\n\t);\n\t$args = array(\n\t\t'label' => __( 'Job', 'text_domain' ),\n\t\t'description' => __( 'Jobs available in Kawai Purapura', 'text_domain' ),\n\t\t'labels' => $labels,\n\t\t'taxonomies' => array( 'category' ),\n\t\t'hierarchical' => true,\n\t\t'public' => true,\n\t\t'show_ui' => true,\n\t\t'show_in_menu' => true,\n\t\t'menu_position' => 5,\n\t\t'menu_icon' => 'dashicons-hammer',\n\t\t'show_in_admin_bar' => false,\n\t\t'show_in_nav_menus' => true,\n\t\t'can_export' => true,\n\t\t'has_archive' => true,\t\t\n\t\t'exclude_from_search' => false,\n\t\t'publicly_queryable' => true,\n\t\t'capability_type' => 'page',\n\t);\n\tregister_post_type( 'jobs', $args );\n\n}",
"function get_jobman_jobs()\n{\n\t$jobs_uid = uniqid('jobs_uid_');\n\tglobal $post;\n\t$posts = get_posts( 'post_type=jobman_job&numberposts=-1&post_status=publish' );\n\t$jobs .= '<div class=\"scroll-text\">';\n\t$jobs .= '<ul id=\"' . $jobs_uid . '\">';\n\tforeach ($posts as $post)\n\t{\n\t\t$jobs .= '<li><a href=\"' . $post->guid . '\">' .$post->post_title . '</a></li>';\n\t}\n\t$jobs .= '</ul>';\n\t$jobs .= '</div>';\n\t$jobs .= '<script>';\n\t$jobs .= 'jQuery(\"#' . $jobs_uid . '\").newsTicker({row_height: 150, max_rows: 1, speed: 600,direction: \"up\",duration: 4000,autostart: 1, pauseOnHover: 1});';\n\t$jobs .= '</script>';\n\treturn $jobs;\n}",
"public function output_jobs( $atts ) {\n\t\tob_start();\n\n\t\textract( $atts = shortcode_atts( apply_filters( 'job_manager_output_jobs_defaults', array(\n\t\t\t'per_page' => get_option( 'job_manager_per_page' ),\n\t\t\t'orderby' => 'featured',\n\t\t\t'order' => 'DESC',\n\n\t\t\t// Filters + cats\n\t\t\t'show_filters' => true,\n\t\t\t'show_categories' => true,\n\t\t\t'show_category_multiselect' => get_option( 'job_manager_enable_default_category_multiselect', false ),\n\t\t\t'show_pagination' => false,\n\t\t\t'show_more' => true,\n\n\t\t\t// Limit what jobs are shown based on category, post status, and type\n\t\t\t'categories' => '',\n\t\t\t'job_types' => '',\n\t\t\t'post_status' => '',\n\t\t\t'featured' => null, // True to show only featured, false to hide featured, leave null to show both.\n\t\t\t'filled' => null, // True to show only filled, false to hide filled, leave null to show both/use the settings.\n\n\t\t\t// Default values for filters\n\t\t\t'location' => '',\n\t\t\t'keywords' => '',\n\t\t\t'selected_category' => '',\n\t\t\t'selected_job_types' => implode( ',', array_values( get_job_listing_types( 'id=>slug' ) ) ),\n\t\t) ), $atts ) );\n\n\t\tif ( ! get_option( 'job_manager_enable_categories' ) ) {\n\t\t\t$show_categories = false;\n\t\t}\n\n\t\t// String and bool handling\n\t\t$show_filters = $this->string_to_bool( $show_filters );\n\t\t$show_categories = $this->string_to_bool( $show_categories );\n\t\t$show_category_multiselect = $this->string_to_bool( $show_category_multiselect );\n\t\t$show_more = $this->string_to_bool( $show_more );\n\t\t$show_pagination = $this->string_to_bool( $show_pagination );\n\n\t\tif ( ! is_null( $featured ) ) {\n\t\t\t$featured = ( is_bool( $featured ) && $featured ) || in_array( $featured, array( '1', 'true', 'yes' ) ) ? true : false;\n\t\t}\n\n\t\tif ( ! is_null( $filled ) ) {\n\t\t\t$filled = ( is_bool( $filled ) && $filled ) || in_array( $filled, array( '1', 'true', 'yes' ) ) ? true : false;\n\t\t}\n\n\t\t// Array handling\n\t\t$categories = is_array( $categories ) ? $categories : array_filter( array_map( 'trim', explode( ',', $categories ) ) );\n\t\t$job_types = is_array( $job_types ) ? $job_types : array_filter( array_map( 'trim', explode( ',', $job_types ) ) );\n\t\t$post_status = is_array( $post_status ) ? $post_status : array_filter( array_map( 'trim', explode( ',', $post_status ) ) );\n\t\t$selected_job_types = is_array( $selected_job_types ) ? $selected_job_types : array_filter( array_map( 'trim', explode( ',', $selected_job_types ) ) );\n\n\t\t// Get keywords and location from querystring if set\n\t\tif ( ! empty( $_GET['search_keywords'] ) ) {\n\t\t\t$keywords = sanitize_text_field( $_GET['search_keywords'] );\n\t\t}\n\t\tif ( ! empty( $_GET['search_location'] ) ) {\n\t\t\t$location = sanitize_text_field( $_GET['search_location'] );\n\t\t}\n\t\tif ( ! empty( $_GET['search_category'] ) ) {\n\t\t\t$selected_category = sanitize_text_field( $_GET['search_category'] );\n\t\t}\n\n\t\t$data_attributes = array(\n\t\t\t'location' => $location,\n\t\t\t'keywords' => $keywords,\n\t\t\t'show_filters' => $show_filters ? 'true' : 'false',\n\t\t\t'show_pagination' => $show_pagination ? 'true' : 'false',\n\t\t\t'per_page' => $per_page,\n\t\t\t'orderby' => $orderby,\n\t\t\t'order' => $order,\n\t\t\t'categories' => implode( ',', $categories ),\n\t\t);\n\t\tif ( $show_filters ) {\n\n\t\t\tget_job_manager_template( 'job-filters.php', array( 'per_page' => $per_page, 'orderby' => $orderby, 'order' => $order, 'show_categories' => $show_categories, 'categories' => $categories, 'selected_category' => $selected_category, 'job_types' => $job_types, 'atts' => $atts, 'location' => $location, 'keywords' => $keywords, 'selected_job_types' => $selected_job_types, 'show_category_multiselect' => $show_category_multiselect ) );\n\n\t\t\tget_job_manager_template( 'job-listings-start.php' );\n\t\t\tget_job_manager_template( 'job-listings-end.php' );\n\n\t\t\tif ( ! $show_pagination && $show_more ) {\n\t\t\t\techo '<a class=\"load_more_jobs\" href=\"#\" style=\"display:none;\"><strong>' . __( 'Load more listings', 'wp-job-manager' ) . '</strong></a>';\n\t\t\t}\n\n\t\t} else {\n\t\t\t$jobs = get_job_listings( apply_filters( 'job_manager_output_jobs_args', array(\n\t\t\t\t'search_location' => $location,\n\t\t\t\t'search_keywords' => $keywords,\n\t\t\t\t'post_status' => $post_status,\n\t\t\t\t'search_categories' => $categories,\n\t\t\t\t'job_types' => $job_types,\n\t\t\t\t'orderby' => $orderby,\n\t\t\t\t'order' => $order,\n\t\t\t\t'posts_per_page' => $per_page,\n\t\t\t\t'featured' => $featured,\n\t\t\t\t'filled' => $filled\n\t\t\t) ) );\n\n\t\t\tif ( ! empty( $job_types ) ) {\n\t\t\t\t$data_attributes[ 'job_types' ] = implode( ',', $job_types );\n\t\t\t}\n\n\t\t\tif ( $jobs->have_posts() ) : ?>\n\n\t\t\t\t<?php get_job_manager_template( 'job-listings-start.php' ); ?>\n\n\t\t\t\t<?php while ( $jobs->have_posts() ) : $jobs->the_post(); ?>\n\t\t\t\t\t<?php get_job_manager_template_part( 'content', 'job_listing' ); ?>\n\t\t\t\t<?php endwhile; ?>\n\n\t\t\t\t<?php get_job_manager_template( 'job-listings-end.php' ); ?>\n\n\t\t\t\t<?php if ( $jobs->found_posts > $per_page && $show_more ) : ?>\n\n\t\t\t\t\t<?php wp_enqueue_script( 'wp-job-manager-ajax-filters' ); ?>\n\n\t\t\t\t\t<?php if ( $show_pagination ) : ?>\n\t\t\t\t\t\t<?php echo get_job_listing_pagination( $jobs->max_num_pages ); ?>\n\t\t\t\t\t<?php else : ?>\n\t\t\t\t\t\t<a class=\"load_more_jobs\" href=\"#\"><strong><?php _e( 'Load more listings', 'wp-job-manager' ); ?></strong></a>\n\t\t\t\t\t<?php endif; ?>\n\n\t\t\t\t<?php endif; ?>\n\n\t\t\t<?php else :\n\t\t\t\tdo_action( 'job_manager_output_jobs_no_results' );\n\t\t\tendif;\n\n\t\t\twp_reset_postdata();\n\t\t}\n\n\t\t$data_attributes_string = '';\n\t\tif ( ! is_null( $featured ) ) {\n\t\t\t$data_attributes[ 'featured' ] = $featured ? 'true' : 'false';\n\t\t}\n\t\tif ( ! is_null( $filled ) ) {\n\t\t\t$data_attributes[ 'filled' ] = $filled ? 'true' : 'false';\n\t\t}\n\t\tif ( ! empty( $post_status ) ) {\n\t\t\t$data_attributes[ 'post_status' ] = implode( ',', $post_status );\n\t\t}\n\t\tforeach ( $data_attributes as $key => $value ) {\n\t\t\t$data_attributes_string .= 'data-' . esc_attr( $key ) . '=\"' . esc_attr( $value ) . '\" ';\n\t\t}\n\n\t\t$job_listings_output = apply_filters( 'job_manager_job_listings_output', ob_get_clean() );\n\n\t\treturn '<div class=\"job_listings\" ' . $data_attributes_string . '>' . $job_listings_output . '</div>';\n\t}",
"function joblist() {\n\t\t$this->load->database();\n\t\t$this->load->model('script');\n\t\t$this->load->model('mark');\n\t\t\n\t\t$query = $this->mark->getScriptsBeingMarkedBy($this->_getUser());\n\t\tif($query->num_rows() > 0) {\n\t\t\t$scripts = $query->result_array();\n\t\t\t$script = $scripts[0]['ID'];\n\t\t\t$lastPage = count(unserialize($scripts[0]['pageKeys']));\n\t\t\t$this->load->view('flex/json_result',array('result'=>'{\"result\":\"'.I_FlexJobs::MARKER_HAS_JOB.'\",\"script\":'.$script.',\"lastPage\":'.$lastPage.'}'));\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t$script = new Script();\n\t\t// load 10 oldest jobs still active\n\t\t$results = $script->getScriptsForMarking(10);\n\t\tif($results->num_rows() !== 0 ) {\n\t\t\tforeach($results->result_array() as $script) {\n\t\t\t\t$explodeAroundPipe = explode('|',$script['pageKeys']);\n\t\t\t\t$script['pages'] = count($explodeAroundPipe);\n\t\t\t\tunset($script['pageKeys']);\n\t\t\t\t$jobs[] = $script;\n\t\t\t}\n\t\t} else {\n\t\t$jobs = 'jobs=false';\n\t\t}\n\t\t$this->load->library('json');\n\t\t$jobs = $this->json->encode($jobs);\n\t\t$this->load->view('marker/job_list',array('jobs'=>$jobs));\n\t}",
"public function output_job( $atts ) {\n\t\textract( shortcode_atts( array(\n\t\t\t'id' => '',\n\t\t), $atts ) );\n\n\t\tif ( ! $id ) {\n\t\t\treturn;\n\t\t}\n\n\t\tob_start();\n\n\t\t$args = array(\n\t\t\t'post_type' => 'job_listing',\n\t\t\t'post_status' => 'publish',\n\t\t\t'p' => $id\n\t\t);\n\n\t\t$jobs = new WP_Query( $args );\n\n\t\tif ( $jobs->have_posts() ) : ?>\n\n\t\t\t<?php while ( $jobs->have_posts() ) : $jobs->the_post(); ?>\n\n\t\t\t\t<h1><?php wpjm_the_job_title(); ?></h1>\n\n\t\t\t\t<?php get_job_manager_template_part( 'content-single', 'job_listing' ); ?>\n\n\t\t\t<?php endwhile; ?>\n\n\t\t<?php endif;\n\n\t\twp_reset_postdata();\n\n\t\treturn '<div class=\"job_shortcode single_job_listing\">' . ob_get_clean() . '</div>';\n\t}",
"public function de_job_list(){\n\t\t$sql=\"\n\t\t\t\tselect \n\t\t\t\ta.id,\n\t\t\t\ta.customer,\n\t\t\t\ta.custome_no,\n\t\t\t\ta.prime_contact,\n\t\t\t\ta.drowing,\n\t\t\t\ta.offer,\n\t\t\t\ta.type,\n\t\t\t\ta.created_by,\n\t\t\t\ta.created_at,\n\t\t\t\tb.name as customer_name,\n\t\t\t\tb.cust_type,\n\t\t\t\te.name as cust_type_name,\n\t\t\t\tc.name as contact_name,\n\t\t\t\tc.department,\n\t\t\t\tc.designation,\n\t\t\t\tc.phone,\n\t\t\t\tc.email,\n\t\t\t\td.user_name,\n\t\t\t\t(select user_name from users where id=a.co_handler) as co_handler_name,\n\t\t\t\t(select user_name from users where id=a.ma_handler) as ma_handler_name,\n\t\t\t\t(select user_name from users where id=a.de_handler) as de_handler_name,\n\t\t\t\t(select x.name from designation x,users y where y.id=a.co_handler and x.id=y.designation) as co_desig,\n\t\t\t\t(select x.name from designation x,users y where y.id=a.ma_handler and x.id=y.designation) as ma_desig,\n\t\t\t\t(select x.name from designation x,users y where y.id=a.de_handler and x.id=y.designation) as de_desig,\n\t\t\t\t(select group_concat(product_id) from job_product where job_id=a.id) as products,\n\t\t\t\ta.de_ini_rev,\n\t\t\t\ta.de_job_position,\n\t\t\t\ta.de_approved_by_cus,\n\t\t\t\ta.offer_by,\n\t\t\t\ta.drawing_by,\n\t\t\t\ta.visit_site,\n\t\t\t\ta.de_remark\n\t\t\t\tfrom \n\t\t\t\tjob_master a,\n\t\t\t\tcustomers b,\n\t\t\t\tcontacts c,\n\t\t\t\tusers d,\n\t\t\t\tcustomer_type e\n\t\t\t\twhere a.deleted<>1 \n\t\t\t\tand a.job_status=0\n\t\t\t\tand a.de_handler<>0\n\t\t\t\tand b.id=a.customer \n\t\t\t\tand c.id=a.prime_contact\n\t\t\t\tand d.id=a.created_by\n\t\t\t\tand e.id=b.cust_type\n\t\t\t\";\n\t\t$result=$this->db->query($sql);\n\n\t\treturn $result->result();\n\t}",
"public function RequestJobs()\n {\n $viewModel = array();\n if($this->loginUser->user_type==\"Client\")\n $jobPostList = JobPost::with('Client','JobCategory','JobRequest')->where(array('client_id'=>$this->loginUser->user_id))->orderBy('created_at', 'DESC')->get();\n elseif($this->loginUser->user_type==\"Admin\")\n $jobPostList = JobPost::with('Client','JobCategory','JobRequest')->orderBy('created_at', 'DESC')->get();\n\n $viewModel['my_jobs'] = $jobPostList;\n return Theme::make('job.request-jobs',$viewModel);\n }",
"public function c_job_list(){\n\t\t$sql=\"select a.id,a.type,a.custome_no,a.close_note,a.flag,a.updated_at,b.user_name,b.user_role from job_master a, users b where a.updated_by=b.id and a.job_status=1 order by a.updated_at desc\";\n\t\t$result=$this->db->query($sql);\n\n\t\treturn $result->result();\n\t}",
"public function run() {\n $jobList = JobContent::model()->findAll(\"hot_job=:hot_job order by last_update desc\", array(\"hot_job\" => \"On\")); \n if($this->limit > count($jobList)) {\n $this->limit = count($jobList);\n }\n $this->render(\"hotJobsList\", array(\n \"limit\" => $this->limit,\n \"jobList\" => $jobList,\n ));\n }",
"public function jobs($args, $assoc_args) {\n $site = SiteFactory::instance($assoc_args['site']);\n $jobs = $site->jobs();\n $data = array();\n foreach ($jobs as $job) {\n $data[] = array(\n 'slot' => $job->slot,\n 'name' => $job->human_name,\n 'env' => @$job->environment,\n 'status' => $job->status,\n 'updated' => $job->changed\n );\n }\n $this->handleDisplay($data,$args);\n }",
"public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n $format = $this->getRequest()->getRequestFormat();\n\n// $entities = $em->getRepository('ComoJobeetBundle:Job')->findAll();\n $categories = $em->getRepository('ComoJobeetBundle:Category')->getWithJobs();\n \n foreach($categories as $category)\n {\n $category->setActiveJobs($em->getRepository('ComoJobeetBundle:Job')->getActiveJobs($category->getId(),$this->container->getParameter('max_jobs_on_homepage')));\n $category->setMoreJobs($em->getRepository('ComoJobeetBundle:Job')->countActiveJobs($category->getId()) - $this->container->getParameter('max_jobs_on_homepage'));\n }\n\n $lastUpdated = $em->getRepository('ComoJobeetBundle:Job')->getLatestPost();\n if($lastUpdated)\n $lastUpdated = $lastUpdated->getCreatedAt()->format(DATE_ATOM);\n else\n $lastUpdated = NULL;\n\n return $this->render('ComoJobeetBundle:Job:index.'.$format.'.twig', array(\n 'categories' => $categories,\n 'lastUpdated' => $lastUpdated,\n 'feedId' => sha1($this->get('router')->generate('job', array('_format'=> 'atom'), true)),\n ));\n }",
"public function getJobs() {\n $this->markTestIncomplete(\n 'This test has not been implemented yet.'\n );\n }",
"function jr_charge_job_listings() {\n\tglobal $jr_options;\n\treturn (bool) $jr_options->jr_jobs_charge;\n}",
"public function AllJobs()\n {\n $viewModel = array();\n $jobPostList = JobPost::with('JobCategory')->orderBy('created_at', 'DESC')->get();\n $viewModel['my_jobs'] = $jobPostList;\n foreach($jobPostList as $i=>$jobPost){\n $jobPostList[$i]['skills']=$jobPost->GetMyTags();\n $jobPostList[$i]['code'] = Helpers::EncodeDecode($jobPost->id);\n }\n return Theme::make('job.all-jobs',$viewModel);\n }",
"public static function listJobsByStatus($status){\n\t\treturn Job::model()->findAllByAttributes(array('STATUS'=>$status));\n\t}",
"function job_queue_link($id_job,$objets){\n\tinclude_spip('inc/queue');\n\treturn queue_link_job($id_job,$objets);\n}",
"public function getAllJobs(){\n\t\t\t$this->db->query(\"SELECT * FROM jobs ORDER BY job_posting_time DESC\");\n\n\t\t\t//assign resultSet\n\t\t\t$results = $this->db->resultSet();\n\t\t\treturn $results;\n\t\t}",
"public function listAction(){\n\n\t\t$jobRepo\t= $this->getDoctrine()->getRepository('AppBundle:Job');\n\t\t$jobs = $jobRepo->findAllSince(new \\DateTime('1 month ago'));\n\t\t\n\t\tdump($jobs);\n\n\t\t\n\t\treturn $this->render('jobs/list.html.twig', array('jobs' => $jobs));\t\n\n\t}",
"public function index()\n {\n $jobPosts=$this->jobPostedService->getAllJobPosted();\n return view('admin.list-job-posted',compact('jobPosts'));\n }",
"function show_more_jobs() {\n // make sure it is an ajax call\n if (!empty($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest') {\n \n if (isset($_GET['currentJobCount'])) {\n $startIdx = (int) $_GET['currentJobCount']; // Get Start index to get job records\n $jobList = get_job_list($startIdx, 8); // Get list of job\n print theme('block_job_list', array('jobList' => $jobList));\n } else {\n print '';\n }\n \n }\n}",
"function getAllJobsOfLinkAction( )\n {\n \t\t$user_id = $this->getRequest()->getParam('user_id');\n \t\t$user_obj = \\Extended\\ilook_user::getRowObject($user_id);\n \t\t$user_type = $user_obj->getUser_type();\n \t\t$result = array();\n \t\tif ($user_type == \\Extended\\ilook_user::USER_TYPE_STUDENT)\n \t\t{\n\t\t\t$result['student'] = 1;\n \t\t}\n\t if ( $user_type == \\Extended\\ilook_user::USER_TYPE_HOME_MAKER )\n\t {\n\t\t $result['home_maker']= 1;\n\t }\n \t\t\n \t\t$All_exp = \\Extended\\experience::getAllExperiences($user_id);\n \t\tif($All_exp)\n \t\t{\n\t \t\t$job_title = array();\n\t \t\tforeach ( $All_exp as $exp )\n\t \t\t{\n\t \t\t\t$job_title[] = $exp->getJob_title();\n\t \t\t\t\n\t \t\t}\n\t \t\t$result['jobs'] = $job_title;\n\t \t\techo Zend_Json::encode( $result );\n \t\t}\n \t\telse\n \t\t{\n \t\t\t$result['jobs'] = \"\";\n \t\t\techo Zend_Json::encode( $result );\n \t\t}\n \t\tdie;\n \t\t\n }",
"public function CompleteJobs()\n {\n $viewModel = array();\n if($this->loginUser->user_type==\"Client\")\n $jobPostList = JobPost::with('JobCategory')->where(array('client_id'=>$this->loginUser->user_id,'job_status'=>'Completed'))->orderBy('created_at', 'DESC')->get();\n elseif($this->loginUser->user_type==\"Admin\")\n $jobPostList = JobPost::with('JobCategory')->where('job_status','Completed')->orderBy('created_at', 'DESC')->get();\n\n $viewModel['my_jobs'] = $jobPostList;\n foreach($jobPostList as $i=>$jobPost){\n $jobPostList[$i]['skills']=$jobPost->GetMyTags();\n $jobPostList[$i]['code'] = Helpers::EncodeDecode($jobPost->id);\n\n }\n return Theme::make('job.myjobs',$viewModel);\n }",
"public function jobTitleList()\n {\n try {\n $jobtitles = JobTitles::SELECT('jobtitle_name', 'is_active', 'id')->orderBy('id', 'asc');\n return Datatables::of($jobtitles)\n ->make(true);\n } catch (\\Exception $e) {\n Log::error($e);\n }\n\n }"
] | [
"0.62849563",
"0.62423897",
"0.62001187",
"0.6150539",
"0.61303425",
"0.6081404",
"0.6004425",
"0.5856926",
"0.58383423",
"0.5810057",
"0.57656324",
"0.5734108",
"0.5698057",
"0.56745255",
"0.5641454",
"0.5625329",
"0.5624368",
"0.55341274",
"0.55222684",
"0.5520267",
"0.55006385",
"0.54975635",
"0.5491039",
"0.54841083",
"0.5471859",
"0.5466173",
"0.54353905",
"0.54221845",
"0.5415294",
"0.54144233"
] | 0.6394141 | 0 |
Remove the shortlisted candidate | public function removeshortlist(Request $request)
{
$candidate = Shortlist::where('user_id', $request->id)->first();
$user_id = Shortlist::where('user_id', $request->id)->value('user_id');
DB::table('job_applications')
->where('user_id', $user_id)
->update(['status' => 'applied']);
$candidate->delete();
return redirect('/shortlisted-candidates')->with('message', 'The candidate has been removed from the lsit succesfully');
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function delete_candidate($candidate_id) {\n foreach ($this->candidates as $index => $candidate) {\n if ($candidate->candidate_id == $candidate_id) {\n unset($this->candidates[$index]);\n }\n }\n }",
"public function removepoolmember(Request $request)\n{\n $candidate = TalentpoolCandidates::where('user_id', $request->id)->first();\n $user_id = TalentpoolCandidates::where('user_id', $request->id)->value('user_id');\n\n DB::table('job_applications')\n ->where('user_id', $user_id)\n ->update(['status' => 'applied']);\n \n $candidate->delete();\n \n return back()->with('message', 'The candidate has been removed succesfully from the pool');\n}",
"public function destroy(Candidate $candidate)\n {\n //\n }",
"public function remove();",
"public function remove();",
"public function remove();",
"public function remove();",
"public function remove();",
"public function remove();",
"function DeleteAvailable() {\n\n\t\t\t$sql = \"DELETE FROM Listing_Choice\";\n\t\t\t$sql .= \" WHERE listing_id = $this->listing_id\";\n\t\t\t$sql .= \" AND editor_choice_id = $this->editor_choice_id\";\n\n\t\t\t$dbMain = db_getDBObject(DEFAULT_DB, true);\n\t\t\tif (defined(\"SELECTED_DOMAIN_ID\")) {\n\t\t\t\t$dbObj = db_getDBObjectByDomainID(SELECTED_DOMAIN_ID, $dbMain);\n\t\t\t} else {\n\t\t\t\t$dbObj = db_getDBObject();\n\t\t\t}\n//\t\t\t$dbMain->close();\n\t\t\tunset($dbMain);\n\t\t\t$dbObj->query($sql);\n\n\t\t}",
"function remove();",
"public function removePawn(){\n $this->player = Null;\n $this->blocked = false;\n }",
"function SocialAuth_WP_remove() {}",
"function delete_shortcode( $name ) {\n\t\t$shortcodes = get_option( 'elm_testimonials_shortcodes' );\n\t\t\n\t\tif ( $this->get_shortcode( $name ) ) {\n\t\t\tunset( $shortcodes[$name] );\n\t\t\t\n\t\t\tupdate_option( 'elm_testimonials_shortcodes', $shortcodes );\n\t\t}\n\t}",
"public function unban();",
"public function removeFromShortlist($propRef)\n {\n $shortlist = $this->getShortlist();\n if (in_array($propRef, $shortlist)) {\n $shortlist = array_flip($shortlist);\n unset($shortlist[$propRef]);\n $shortlist = array_flip($shortlist);\n }\n $this->saveShortlist($shortlist);\n }",
"public function unsetShortLived(): self\n {\n $this->instance->unsetShortLived();\n return $this;\n }",
"protected function delete_free_plan() {\n\t\t\treturn $this->delete_plan( $this->_free_plan->id );\n\t\t}",
"function admin_remove() { return; }",
"public function destroy(ShortenUrl $shortenUrl)\n {\n //\n }",
"public function unlinkDisownedObjects()\n {\n $object = $this->getObjectInStage(Versioned::DRAFT);\n if ($object) {\n $object->unlinkDisownedObjects($object, Versioned::LIVE);\n }\n }",
"public function destroy(CandidateStage $candidateStage)\n {\n //\n }",
"public function destroy(Suggestions $suggestions)\n {\n //\n }",
"public function prune(): void;",
"public function destroy(Suggestion $suggestions)\n {\n //\n }",
"function remove($suggest = false) {\n\n global $vanshavali, $user;\n\n $hasAccess = $vanshavali->hasAccess($user->user['id'], $this->id);\n if ($suggest && !$hasAccess) {\n return parent::remove_suggest($this->data['id']);\n } else {\n //Remove the member completely\n global $db;\n\n //Prepare the sql\n if (!$db->get(\"Update member set dontshow=1 where id=\" . $this->data['id'])) {\n trigger_error(\"Cannot delete member. Error Executing the query\");\n return false;\n }\n }\n\n //If reached here, then the operations is complete\n return true;\n }",
"protected function _remove_cards( )\n\t{\n\t\tcall(__METHOD__);\n\n\t\t// remove the cards\n\t\tforeach ($this->_guess as $card_index) {\n\t\t\tunset($this->_visible_cards[$card_index]);\n\t\t}\n\t}",
"public abstract function remove();",
"public function discard()\n {\n if ($this->isNew()) {\n $app = Facade::getFacadeApplication();\n $db = $app->make('database')->connection();\n // check for related version edits. This only gets applied when we edit global areas.\n $r = $db->executeQuery('select cRelationID, cvRelationID from CollectionVersionRelatedEdits where cID = ? and cvID = ?', array(\n $this->cID,\n $this->cvID,\n ));\n while ($row = $r->fetch()) {\n $cn = Page::getByID($row['cRelationID'], $row['cvRelationID']);\n $cnp = new Permissions($cn);\n if ($cnp->canApprovePageVersions()) {\n $v = $cn->getVersionObject();\n $v->delete();\n $db->executeQuery('delete from CollectionVersionRelatedEdits where cID = ? and cvID = ? and cRelationID = ? and cvRelationID = ?', array(\n $this->cID,\n $this->cvID,\n $row['cRelationID'],\n $row['cvRelationID'],\n ));\n }\n }\n $this->delete();\n }\n $this->refreshCache();\n }",
"public function removeAnswer()\n {\n if($this->isCorrect)\n {\n $this->removed = false;\n }\n else\n {\n $this->removed = true;\n }\n }"
] | [
"0.5887212",
"0.5876069",
"0.5868637",
"0.57128215",
"0.57128215",
"0.57128215",
"0.57128215",
"0.57128215",
"0.57128215",
"0.5641085",
"0.5497276",
"0.5491866",
"0.54882395",
"0.54519117",
"0.5450259",
"0.5444902",
"0.5418581",
"0.5391541",
"0.53578633",
"0.5343238",
"0.53125244",
"0.5283205",
"0.5283028",
"0.5282116",
"0.5262442",
"0.5259843",
"0.5258562",
"0.5236662",
"0.5229597",
"0.5216415"
] | 0.60549074 | 0 |
search the job templates based on the category selected by the employer | public function searchtemplate(Request $request)
{
$jobs = Jobposts::where('jobcategories_id', $request->category)->get();
$jobcategories = jobcategories::all();
return view('employer-dashboard.search-template', compact('jobs', 'jobcategories'));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function careerfy_vc_employer_listing()\n{\n global $jobsearch_plugin_options;\n $categories = get_terms(array(\n 'taxonomy' => 'sector',\n 'hide_empty' => false,\n ));\n $sectors_enable_switch = isset($jobsearch_plugin_options['sectors_onoff_switch']) ? $jobsearch_plugin_options['sectors_onoff_switch'] : 500;\n\n $cate_array = array(esc_html__(\"Select Sector\", \"careerfy-frame\") => '');\n if (is_array($categories) && sizeof($categories) > 0) {\n foreach ($categories as $category) {\n $cate_array[$category->name] = $category->slug;\n }\n }\n $emp_listsh_parms = [];\n $emp_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"View\", \"careerfy-frame\"),\n 'param_name' => 'employer_view',\n 'value' => array(\n esc_html__(\"Style 1\", \"careerfy-frame\") => 'view-default',\n esc_html__(\"Style 2\", \"careerfy-frame\") => 'view-grid',\n esc_html__(\"Style 3\", \"careerfy-frame\") => 'view-slider',\n ),\n 'description' => esc_html__(\"Select employers listing view.\", \"careerfy-frame\")\n );\n $emp_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Sector\", \"careerfy-frame\"),\n 'param_name' => 'employer_cat',\n 'value' => $cate_array,\n 'description' => esc_html__(\"Select Sector.\", \"careerfy-frame\")\n );\n\n $emp_listsh_parms[] = array(\n 'type' => 'checkbox',\n 'heading' => esc_html__(\"Locations in listing\", \"careerfy-frame\"),\n 'param_name' => 'employer_loc_listing',\n 'value' => array(\n esc_html__(\"Country\", \"careerfy-frame\") => 'country',\n esc_html__(\"State\", \"careerfy-frame\") => 'state',\n esc_html__(\"City\", \"careerfy-frame\") => 'city',\n ),\n 'std' => 'country,city',\n 'description' => esc_html__(\"Select which type of location in listing. If nothing select then full address will display.\", \"careerfy-frame\")\n );\n $emp_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Employer Founds with display counts\", \"careerfy-frame\"),\n 'param_name' => 'display_per_page',\n 'value' => array(\n esc_html__(\"Yes\", \"careerfy-frame\") => 'yes',\n esc_html__(\"No\", \"careerfy-frame\") => 'no',\n ),\n 'description' => esc_html__(\"Display the per page empoyers count at top of the listing.\", \"careerfy-frame\")\n );\n $emp_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Filters\", \"careerfy-frame\"),\n 'param_name' => 'employer_filters',\n 'value' => array(\n esc_html__(\"Yes\", \"careerfy-frame\") => 'yes',\n esc_html__(\"No\", \"careerfy-frame\") => 'no',\n ),\n 'description' => esc_html__(\"Employers searching filters switch.\", \"careerfy-frame\"),\n 'group' => esc_html__(\"Filters Settings\", \"careerfy-frame\"),\n );\n $emp_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Filters Count\", \"careerfy-frame\"),\n 'param_name' => 'employer_filters_count',\n 'value' => array(\n esc_html__(\"No\", \"careerfy-frame\") => 'no',\n esc_html__(\"Yes\", \"careerfy-frame\") => 'yes',\n ),\n 'description' => esc_html__(\"Show result counts in front of every filter.\", \"careerfy-frame\"),\n 'group' => esc_html__(\"Filters Settings\", \"careerfy-frame\"),\n );\n $emp_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Filters Sort by\", \"careerfy-frame\"),\n 'param_name' => 'employer_filters_sortby',\n 'value' => array(\n esc_html__(\"Default\", \"careerfy-frame\") => 'default',\n esc_html__(\"Ascending\", \"careerfy-frame\") => 'asc',\n esc_html__(\"Descending\", \"careerfy-frame\") => 'desc',\n esc_html__(\"Alphabetical\", \"careerfy-frame\") => 'alpha',\n esc_html__(\"Highest Count\", \"careerfy-frame\") => 'count',\n ),\n 'description' => esc_html__(\"Show result counts in front of every filter.\", \"careerfy-frame\"),\n 'group' => esc_html__(\"Filters Settings\", \"careerfy-frame\"),\n );\n $emp_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Locations\", \"careerfy-frame\"),\n 'param_name' => 'employer_filters_loc',\n 'value' => array(\n esc_html__(\"Yes\", \"careerfy-frame\") => 'yes',\n esc_html__(\"No\", \"careerfy-frame\") => 'no',\n ),\n 'description' => esc_html__(\"Employers searching filters 'Location' switch.\", \"careerfy-frame\"),\n 'group' => esc_html__(\"Filters Settings\", \"careerfy-frame\"),\n );\n\n $emp_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Locations Filter Collapse\", \"careerfy-frame\"),\n 'param_name' => 'employer_filters_loc_collapse',\n 'value' => array(\n esc_html__(\"No\", \"careerfy-frame\") => 'no',\n esc_html__(\"Yes\", \"careerfy-frame\") => 'yes',\n ),\n 'description' => '',\n 'group' => esc_html__(\"Filters Settings\", \"careerfy-frame\"),\n );\n\n $emp_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Locations Filter Style\", \"careerfy-frame\"),\n 'param_name' => 'employer_filters_loc_view',\n 'value' => array(\n esc_html__(\"Checkbox List\", \"careerfy-frame\") => 'checkboxes',\n esc_html__(\"Dropdown Fields\", \"careerfy-frame\") => 'dropdowns',\n esc_html__(\"Input Field\", \"careerfy-frame\") => 'input',\n ),\n 'description' => '',\n 'group' => esc_html__(\"Filters Settings\", \"careerfy-frame\"),\n );\n $emp_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Date Posted\", \"careerfy-frame\"),\n 'param_name' => 'employer_filters_date',\n 'value' => array(\n esc_html__(\"Yes\", \"careerfy-frame\") => 'yes',\n esc_html__(\"No\", \"careerfy-frame\") => 'no',\n ),\n 'description' => esc_html__(\"Employers searching filters 'Date Posted' switch.\", \"careerfy-frame\"),\n 'group' => esc_html__(\"Filters Settings\", \"careerfy-frame\"),\n );\n $emp_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Date Posted Collapse\", \"careerfy-frame\"),\n 'param_name' => 'employer_filters_date_collapse',\n 'value' => array(\n esc_html__(\"No\", \"careerfy-frame\") => 'no',\n esc_html__(\"Yes\", \"careerfy-frame\") => 'yes',\n ),\n 'description' => '',\n 'group' => esc_html__(\"Filters Settings\", \"careerfy-frame\"),\n );\n $emp_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Sector\", \"careerfy-frame\"),\n 'param_name' => 'employer_filters_sector',\n 'value' => array(\n esc_html__(\"Yes\", \"careerfy-frame\") => 'yes',\n esc_html__(\"No\", \"careerfy-frame\") => 'no',\n ),\n 'description' => esc_html__(\"Employers searching filters 'Sector' switch.\", \"careerfy-frame\"),\n 'group' => esc_html__(\"Filters Settings\", \"careerfy-frame\"),\n );\n $emp_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Sector Filter Collapse\", \"careerfy-frame\"),\n 'param_name' => 'employer_filters_sector_collapse',\n 'value' => array(\n esc_html__(\"No\", \"careerfy-frame\") => 'no',\n esc_html__(\"Yes\", \"careerfy-frame\") => 'yes',\n ),\n 'description' => '',\n 'group' => esc_html__(\"Filters Settings\", \"careerfy-frame\"),\n );\n $emp_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Team Size\", \"careerfy-frame\"),\n 'param_name' => 'employer_filters_team',\n 'value' => array(\n esc_html__(\"Yes\", \"careerfy-frame\") => 'yes',\n esc_html__(\"No\", \"careerfy-frame\") => 'no',\n ),\n 'description' => esc_html__(\"Employers searching filters 'Team Size' switch.\", \"careerfy-frame\"),\n 'group' => esc_html__(\"Filters Settings\", \"careerfy-frame\"),\n );\n\n $emp_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Team Size Filter Collapse\", \"careerfy-frame\"),\n 'param_name' => 'employer_filters_team_collapse',\n 'value' => array(\n esc_html__(\"No\", \"careerfy-frame\") => 'no',\n esc_html__(\"Yes\", \"careerfy-frame\") => 'yes',\n ),\n 'description' => '',\n 'group' => esc_html__(\"Filters Settings\", \"careerfy-frame\"),\n );\n $emp_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Top Map\", \"careerfy-frame\"),\n 'param_name' => 'emp_top_map',\n 'value' => array(\n esc_html__(\"No\", \"careerfy-frame\") => 'no',\n esc_html__(\"Yes\", \"careerfy-frame\") => 'yes',\n ),\n 'description' => esc_html__(\"Employers top map switch.\", \"careerfy-frame\"),\n 'group' => esc_html__(\"Map Settings\", \"careerfy-frame\"),\n );\n $emp_listsh_parms[] = array(\n 'type' => 'textfield',\n 'heading' => esc_html__(\"Map Height\", \"careerfy-frame\"),\n 'param_name' => 'emp_top_map_height',\n 'value' => '450',\n 'description' => esc_html__(\"Employers top map height.\", \"careerfy-frame\"),\n 'group' => esc_html__(\"Map Settings\", \"careerfy-frame\"),\n );\n\n $emp_listsh_parms[] = array(\n 'type' => 'textfield',\n 'heading' => esc_html__(\"Map Zoom\", \"careerfy-frame\"),\n 'param_name' => 'emp_top_map_zoom',\n 'value' => '8',\n 'description' => esc_html__(\"Employers top map zoom.\", \"careerfy-frame\"),\n 'group' => esc_html__(\"Map Settings\", \"careerfy-frame\"),\n );\n $emp_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Top Search Bar\", \"careerfy-frame\"),\n 'param_name' => 'emp_top_search',\n 'value' => array(\n esc_html__(\"No\", \"careerfy-frame\") => 'no',\n esc_html__(\"Yes\", \"careerfy-frame\") => 'yes',\n ),\n 'description' => esc_html__(\"Employer's top search bar switch.\", \"careerfy-frame\"),\n 'group' => esc_html__(\"Top Search\", \"careerfy-frame\"),\n );\n $emp_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Top Search Style\", \"careerfy-frame\"),\n 'param_name' => 'emp_top_search_view',\n 'value' => array(\n esc_html__(\"Simple\", \"careerfy-frame\") => 'simple',\n esc_html__(\"Advance Search\", \"careerfy-frame\") => 'advance',\n ),\n 'description' => esc_html__(\"Employers top search style.\", \"careerfy-frame\"),\n 'group' => esc_html__(\"Top Search\", \"careerfy-frame\"),\n );\n\n $emp_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Top Search Radius\", \"careerfy-frame\"),\n 'param_name' => 'emp_top_search_radius',\n 'value' => array(\n esc_html__(\"Yes\", \"careerfy-frame\") => 'yes',\n esc_html__(\"No\", \"careerfy-frame\") => 'no',\n ),\n 'description' => esc_html__(\"Enable/Disable top search radius.\", \"careerfy-frame\"),\n 'group' => esc_html__(\"Top Search\", \"careerfy-frame\"),\n );\n\n $emp_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"AutoFill Search Box\", \"careerfy-frame\"),\n 'param_name' => 'top_search_autofill',\n 'value' => array(\n esc_html__(\"Yes\", \"careerfy-frame\") => 'yes',\n esc_html__(\"No\", \"careerfy-frame\") => 'no',\n ),\n 'description' => esc_html__(\"Enable/Disable autofill in search keyword field.\", \"careerfy-frame\"),\n 'group' => esc_html__(\"Top Search\", \"careerfy-frame\"),\n );\n $emp_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Job Title, Keywords, or Phrase\", \"careerfy-frame\"),\n 'param_name' => 'emp_top_search_title',\n 'value' => array(\n esc_html__(\"Yes\", \"careerfy-frame\") => 'yes',\n esc_html__(\"No\", \"careerfy-frame\") => 'no',\n ),\n 'description' => esc_html__(\"Enable/Disable search keyword field.\", \"careerfy-frame\"),\n 'group' => esc_html__(\"Top Search\", \"careerfy-frame\"),\n );\n $emp_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Location\", \"careerfy-frame\"),\n 'param_name' => 'emp_top_search_location',\n 'value' => array(\n esc_html__(\"Yes\", \"careerfy-frame\") => 'yes',\n esc_html__(\"No\", \"careerfy-frame\") => 'no',\n ),\n 'description' => esc_html__(\"Enable/Disable location field.\", \"careerfy-frame\"),\n 'group' => esc_html__(\"Top Search\", \"careerfy-frame\"),\n );\n if ($sectors_enable_switch == 'on') {\n $emp_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Sector\", \"careerfy-frame\"),\n 'param_name' => 'emp_top_search_sector',\n 'value' => array(\n esc_html__(\"Yes\", \"careerfy-frame\") => 'yes',\n esc_html__(\"No\", \"careerfy-frame\") => 'no',\n ),\n 'description' => esc_html__(\"Enable/Disable Sector Dropdown field.\", \"careerfy-frame\"),\n 'group' => esc_html__(\"Top Search\", \"careerfy-frame\"),\n );\n }\n $emp_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Sort by Fields\", \"careerfy-frame\"),\n 'param_name' => 'employer_sort_by',\n 'value' => array(\n esc_html__(\"Yes\", \"careerfy-frame\") => 'yes',\n esc_html__(\"No\", \"careerfy-frame\") => 'no',\n ),\n 'description' => esc_html__(\"Results search sorting section switch.\", \"careerfy-frame\")\n );\n $emp_listsh_parms[] = array(\n 'type' => 'textfield',\n 'heading' => esc_html__(\"Excerpt Length\", \"careerfy-frame\"),\n 'param_name' => 'employer_excerpt',\n 'value' => '20',\n 'description' => esc_html__(\"Set the number of words you want to show for excerpt.\", \"careerfy-frame\")\n );\n $emp_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Order\", \"careerfy-frame\"),\n 'param_name' => 'employer_order',\n 'value' => array(\n esc_html__(\"Descending\", \"careerfy-frame\") => 'DESC',\n esc_html__(\"Ascending\", \"careerfy-frame\") => 'ASC',\n ),\n 'description' => esc_html__(\"Choose job list items order.\", \"careerfy-frame\")\n );\n $emp_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Orderby\", \"careerfy-frame\"),\n 'param_name' => 'employer_orderby',\n 'value' => array(\n esc_html__(\"Date\", \"careerfy-frame\") => 'date',\n esc_html__(\"Title\", \"careerfy-frame\") => 'title',\n esc_html__(\"Promote Profile\", \"careerfy-frame\") => 'promote_profile',\n ),\n 'description' => esc_html__(\"Choose list items orderby.\", \"careerfy-frame\")\n );\n $emp_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Pagination\", \"careerfy-frame\"),\n 'param_name' => 'employer_pagination',\n 'value' => array(\n esc_html__(\"Yes\", \"careerfy-frame\") => 'yes',\n esc_html__(\"No\", \"careerfy-frame\") => 'no',\n ),\n 'description' => esc_html__(\"Choose yes if you want to show pagination for employer items.\", \"careerfy-frame\")\n );\n\n $emp_listsh_parms[] = array(\n 'type' => 'textfield',\n 'heading' => esc_html__(\"Items per Page\", \"careerfy-frame\"),\n 'param_name' => 'employer_per_page',\n 'value' => '10',\n 'description' => esc_html__(\"Set number that how much employers you want to show per page. Leave it blank for all employers on a single page.\", \"careerfy-frame\")\n );\n $attributes = array(\n \"name\" => esc_html__(\"Employer Listing\", \"careerfy-frame\"),\n \"base\" => \"jobsearch_employer_shortcode\",\n \"class\" => \"\",\n \"category\" => esc_html__(\"Wp JobSearch\", \"careerfy-frame\"),\n \"params\" => apply_filters('jobsearch_employer_listings_vcsh_params', $emp_listsh_parms)\n );\n\n if (function_exists('vc_map') && class_exists('JobSearch_plugin')) {\n vc_map($attributes);\n }\n}",
"public function picktemplate()\n{\n $templates = Jobposts::all();\n $jobcategories = jobcategories::all();\n return view('employer-dashboard.templates', compact('templates', 'jobcategories'));\n}",
"public function search(){\n\t\t$this->load->model('job_model');\n\t\t$this->load->model('job_location_model');\n\t\t$this->load->model('job_category_model');\n\n\t\t//gather search inputs\n\t\t$job_title = $this->input->get('search-keyword',TRUE);\n\t\t$job_location = $this->input->get('job_location',TRUE);\n\t\t$job_category = $this->input->get('job_category',TRUE);\n\n\t\t//get job locations and job categories options\n\t\t$data['job_locations'] = $this->job_location_model->get_locations();\n\t\t$data['job_categories'] = $this->job_category_model->get_categories();\n\n\t\t//count search results\n\t\t$total_result = $this->job_model->count_search_jobs($job_title,$job_location,$job_category);\n\t\t$url = 'portal/search';\n\n\t\t//initialize page pagination\n\t\t$pagination = paginate($total_result,PAGINATION_PER_PAGE,$url);\n\n\t\t$data['pagination'] = $pagination->create_links();\n\t\t$data['total_search_result'] = $total_result;\n\n\t\t$data['search_url'] = 'portal/search';\n\n\t\t//get search results\n\t\t$offset = ($this->uri->segment(3) != '' ? intval($this->uri->segment(3)) : 0);\n\t\t$search_result = $this->job_model->get_search_jobs($job_title,$job_location,$job_category,PAGINATION_PER_PAGE,$offset);\n\t\t$data['search_result'] = $search_result;\n\n\t\t$this->template->load(\"board_search\",\"body/search_result\",@$data);\n\t}",
"function jobs($ids, $jobType) {//put job ids in here, include and in $jobType\n return mysql_query(\"SELECT job_id,job_title,job_location,job_short_description,job_description,job_type,job_featured,url,jobg8_company,key1,key2,key3,level,job_recruiter_type FROM jobs WHERE $jobType job_status='Yes' job_id IN ($ids)\");//change where and to recruiter type for all in selection\n\n //add any html thats needed in here to the job_search_result object\n\n//iframe,jobg8, skills, levels, job type , company type\n\n //job type can narrow down the jobs too!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n}",
"function careerfy_vc_jobs_listing()\n{\n global $jobsearch_gdapi_allocation, $jobsearch_plugin_options;\n $jobsearch__options = get_option('jobsearch_plugin_options');\n $sectors_enable_switch = isset($jobsearch_plugin_options['sectors_onoff_switch']) ? $jobsearch_plugin_options['sectors_onoff_switch'] : 500;\n\n $categories = get_terms(array(\n 'taxonomy' => 'sector',\n 'hide_empty' => false,\n ));\n\n $all_locations_type = isset($jobsearch__options['all_locations_type']) ? $jobsearch__options['all_locations_type'] : '';\n\n $cate_array = array(esc_html__(\"Select Sector\", \"careerfy-frame\") => '');\n if (is_array($categories) && sizeof($categories) > 0) {\n foreach ($categories as $category) {\n $cate_array[$category->name] = $category->slug;\n }\n }\n\n $jobsearch_job_cus_fields = get_option(\"jobsearch_custom_field_job\");\n $job_cus_field_arr = array();\n if (isset($jobsearch_job_cus_fields) && !empty($jobsearch_job_cus_fields) && sizeof($jobsearch_job_cus_fields) > 0) {\n foreach ($jobsearch_job_cus_fields as $key => $value) {\n $job_cus_field_arr[$value['label']] = $key;\n }\n }\n\n $job_listsh_parms = array();\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"View\", \"careerfy-frame\"),\n 'param_name' => 'job_view',\n 'value' => array(\n esc_html__(\"Style 1\", \"careerfy-frame\") => 'view-default',\n esc_html__(\"Style 2\", \"careerfy-frame\") => 'view-medium',\n esc_html__(\"Style 3\", \"careerfy-frame\") => 'view-listing2',\n esc_html__(\"Style 4\", \"careerfy-frame\") => 'view-grid2',\n esc_html__(\"Style 5\", \"careerfy-frame\") => 'view-medium2',\n esc_html__(\"Style 6\", \"careerfy-frame\") => 'view-grid',\n esc_html__(\"Style 7\", \"careerfy-frame\") => 'view-medium3',\n esc_html__(\"Style 8\", \"careerfy-frame\") => 'view-grid3',\n esc_html__(\"Style 9\", \"careerfy-frame\") => 'view-grid-4',\n ),\n 'description' => esc_html__(\"Select jobs listing view.\", \"careerfy-frame\")\n );\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Sector\", \"careerfy-frame\"),\n 'param_name' => 'job_cat',\n 'value' => $cate_array,\n 'description' => esc_html__(\"Select Sector.\", \"careerfy-frame\")\n );\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Job Founds with display counts\", \"careerfy-frame\"),\n 'param_name' => 'display_per_page',\n 'value' => array(\n esc_html__(\"Yes\", \"careerfy-frame\") => 'yes',\n esc_html__(\"No\", \"careerfy-frame\") => 'no',\n ),\n 'description' => esc_html__(\"Display the per page jobs count at top of the listing.\", \"careerfy-frame\")\n );\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Featured Only\", \"careerfy-frame\"),\n 'param_name' => 'featured_only',\n 'value' => array(\n esc_html__(\"No\", \"careerfy-frame\") => 'no',\n esc_html__(\"Yes\", \"careerfy-frame\") => 'yes',\n ),\n 'description' => esc_html__(\"If you set Featured Only 'Yes' then only Featured jobs will show.\", \"careerfy-frame\")\n );\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Employer Base Jobs\", \"careerfy-frame\"),\n 'param_name' => 'jobs_emp_base',\n 'value' => array(\n esc_html__(\"No\", \"careerfy-frame\") => 'no',\n esc_html__(\"Yes\", \"careerfy-frame\") => 'yes',\n ),\n 'description' => esc_html__(\"Show only Selected Employer Jobs.\", \"careerfy-frame\"),\n 'group' => esc_html__(\"Employer Base Jobs\", \"careerfy-frame\"),\n );\n $job_listsh_parms[] = array(\n 'type' => 'textfield',\n 'heading' => esc_html__(\"Employer ID\", \"careerfy-frame\"),\n 'param_name' => 'jobs_emp_base_id',\n 'value' => '',\n 'description' => esc_html__(\"Put employer ID here.\", \"careerfy-frame\"),\n 'group' => esc_html__(\"Employer Base Jobs\", \"careerfy-frame\"),\n );\n if ($all_locations_type == 'api') {\n\n $api_contries_list = array();\n if (class_exists('JobSearch_plugin')) {\n $api_contries_list = $jobsearch_gdapi_allocation::get_countries();\n }\n if (!empty($api_contries_list)) {\n foreach ($api_contries_list as $api_cntry_key => $api_cntry_val) {\n if (isset($api_cntry_val->code)) {\n $contry_arr_list[$api_cntry_val->code] = $api_cntry_val->name;\n }\n }\n }\n\n// $contry_arr_list = array('' => esc_html__(\"Select Country\", \"careerfy-frame\"));\n// if (!empty($api_contries_list)) {\n// foreach ($api_contries_list as $api_cntry_key => $api_cntry_val) {\n// if (isset($api_cntry_val['code'])) {\n// $contry_arr_list[$api_cntry_val['code']] = $api_cntry_val['name'];\n// }\n// }\n// }\n\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Selected Location Jobs\", \"careerfy-frame\"),\n 'param_name' => 'selct_loc_jobs',\n 'value' => array(\n esc_html__(\"No\", \"careerfy-frame\") => 'no',\n esc_html__(\"Yes\", \"careerfy-frame\") => 'yes',\n ),\n 'description' => esc_html__(\"Show only Selected Location Jobs.\", \"careerfy-frame\"),\n 'group' => esc_html__(\"Location Based Jobs\", \"careerfy-frame\"),\n );\n $job_listsh_parms[] = array(\n 'type' => 'jobsearch_gapi_locs',\n 'heading' => esc_html__(\"Select Location\", \"careerfy-frame\"),\n 'param_name' => 'selct_gapiloc_str',\n 'api_contry_list' => $contry_arr_list,\n 'value' => '',\n 'description' => '',\n 'group' => esc_html__(\"Location Based Jobs\", \"careerfy-frame\"),\n );\n }\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Filters\", \"careerfy-frame\"),\n 'param_name' => 'job_filters',\n 'value' => array(\n esc_html__(\"Yes\", \"careerfy-frame\") => 'yes',\n esc_html__(\"No\", \"careerfy-frame\") => 'no',\n ),\n 'description' => esc_html__(\"Jobs searching filters switch.\", \"careerfy-frame\"),\n 'group' => esc_html__(\"Filters Settings\", \"careerfy-frame\"),\n );\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Filters Count\", \"careerfy-frame\"),\n 'param_name' => 'job_filters_count',\n 'value' => array(\n esc_html__(\"No\", \"careerfy-frame\") => 'no',\n esc_html__(\"Yes\", \"careerfy-frame\") => 'yes',\n ),\n 'description' => esc_html__(\"Show result counts in front of every filter.\", \"careerfy-frame\"),\n 'group' => esc_html__(\"Filters Settings\", \"careerfy-frame\"),\n );\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Filters Sort by\", \"careerfy-frame\"),\n 'param_name' => 'job_filters_sortby',\n 'value' => array(\n esc_html__(\"Default\", \"careerfy-frame\") => 'default',\n esc_html__(\"Ascending\", \"careerfy-frame\") => 'asc',\n esc_html__(\"Descending\", \"careerfy-frame\") => 'desc',\n esc_html__(\"Alphabetical\", \"careerfy-frame\") => 'alpha',\n esc_html__(\"Highest Count\", \"careerfy-frame\") => 'count',\n ),\n 'description' => esc_html__(\"Show result counts in front of every filter.\", \"careerfy-frame\"),\n 'group' => esc_html__(\"Filters Settings\", \"careerfy-frame\"),\n );\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Keyword Search\", \"careerfy-frame\"),\n 'param_name' => 'job_filters_keyword',\n 'value' => array(\n esc_html__(\"No\", \"careerfy-frame\") => 'no',\n esc_html__(\"Yes\", \"careerfy-frame\") => 'yes',\n ),\n 'description' => esc_html__(\"Jobs filters 'Keyword Search' switch.\", \"careerfy-frame\"),\n 'group' => esc_html__(\"Filters Settings\", \"careerfy-frame\"),\n );\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Locations\", \"careerfy-frame\"),\n 'param_name' => 'job_filters_loc',\n 'value' => array(\n esc_html__(\"Yes\", \"careerfy-frame\") => 'yes',\n esc_html__(\"No\", \"careerfy-frame\") => 'no',\n ),\n 'description' => esc_html__(\"Jobs searching filters 'Location' switch.\", \"careerfy-frame\"),\n 'group' => esc_html__(\"Filters Settings\", \"careerfy-frame\"),\n );\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Locations Filter Collapse\", \"careerfy-frame\"),\n 'param_name' => 'job_filters_loc_collapse',\n 'value' => array(\n esc_html__(\"No\", \"careerfy-frame\") => 'no',\n esc_html__(\"Yes\", \"careerfy-frame\") => 'yes',\n ),\n 'description' => '',\n 'group' => esc_html__(\"Filters Settings\", \"careerfy-frame\"),\n );\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Locations Filter Style\", \"careerfy-frame\"),\n 'param_name' => 'job_filters_loc_view',\n 'value' => array(\n esc_html__(\"Checkbox List\", \"careerfy-frame\") => 'checkboxes',\n esc_html__(\"Dropdown Fields\", \"careerfy-frame\") => 'dropdowns',\n esc_html__(\"Input Field\", \"careerfy-frame\") => 'input',\n ),\n 'description' => '',\n 'group' => esc_html__(\"Filters Settings\", \"careerfy-frame\"),\n );\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Date Posted\", \"careerfy-frame\"),\n 'param_name' => 'job_filters_date',\n 'value' => array(\n esc_html__(\"Yes\", \"careerfy-frame\") => 'yes',\n esc_html__(\"No\", \"careerfy-frame\") => 'no',\n ),\n 'description' => esc_html__(\"Jobs searching filters 'Date Posted' switch.\", \"careerfy-frame\"),\n 'group' => esc_html__(\"Filters Settings\", \"careerfy-frame\"),\n );\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Date Posted Filter Collapse\", \"careerfy-frame\"),\n 'param_name' => 'job_filters_date_collapse',\n 'value' => array(\n esc_html__(\"No\", \"careerfy-frame\") => 'no',\n esc_html__(\"Yes\", \"careerfy-frame\") => 'yes',\n ),\n 'description' => '',\n 'group' => esc_html__(\"Filters Settings\", \"careerfy-frame\"),\n );\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Job Type\", \"careerfy-frame\"),\n 'param_name' => 'job_filters_type',\n 'value' => array(\n esc_html__(\"Yes\", \"careerfy-frame\") => 'yes',\n esc_html__(\"No\", \"careerfy-frame\") => 'no',\n ),\n 'description' => esc_html__(\"Jobs searching filters 'Job Type' switch.\", \"careerfy-frame\"),\n 'group' => esc_html__(\"Filters Settings\", \"careerfy-frame\"),\n );\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Job Type Filter Collapse\", \"careerfy-frame\"),\n 'param_name' => 'job_filters_type_collapse',\n 'value' => array(\n esc_html__(\"No\", \"careerfy-frame\") => 'no',\n esc_html__(\"Yes\", \"careerfy-frame\") => 'yes',\n ),\n 'description' => '',\n 'group' => esc_html__(\"Filters Settings\", \"careerfy-frame\"),\n );\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Sector\", \"careerfy-frame\"),\n 'param_name' => 'job_filters_sector',\n 'value' => array(\n esc_html__(\"Yes\", \"careerfy-frame\") => 'yes',\n esc_html__(\"No\", \"careerfy-frame\") => 'no',\n ),\n 'description' => esc_html__(\"Jobs searching filters 'Sector' switch.\", \"careerfy-frame\"),\n 'group' => esc_html__(\"Filters Settings\", \"careerfy-frame\"),\n );\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Sector Filter Collapse\", \"careerfy-frame\"),\n 'param_name' => 'job_filters_sector_collapse',\n 'value' => array(\n esc_html__(\"No\", \"careerfy-frame\") => 'no',\n esc_html__(\"Yes\", \"careerfy-frame\") => 'yes',\n ),\n 'description' => '',\n 'group' => esc_html__(\"Filters Settings\", \"careerfy-frame\"),\n );\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Top Map\", \"careerfy-frame\"),\n 'param_name' => 'job_top_map',\n 'value' => array(\n esc_html__(\"No\", \"careerfy-frame\") => 'no',\n esc_html__(\"Yes\", \"careerfy-frame\") => 'yes',\n ),\n 'description' => esc_html__(\"Jobs top map switch.\", \"careerfy-frame\"),\n 'group' => esc_html__(\"Map Settings\", \"careerfy-frame\"),\n );\n $job_listsh_parms[] = array(\n 'type' => 'textfield',\n 'heading' => esc_html__(\"Map Height\", \"careerfy-frame\"),\n 'param_name' => 'job_top_map_height',\n 'value' => '450',\n 'description' => esc_html__(\"Jobs top map height.\", \"careerfy-frame\"),\n 'group' => esc_html__(\"Map Settings\", \"careerfy-frame\"),\n );\n $job_listsh_parms[] = array(\n 'type' => 'textfield',\n 'heading' => esc_html__(\"Map Zoom\", \"careerfy-frame\"),\n 'param_name' => 'job_top_map_zoom',\n 'value' => '8',\n 'description' => esc_html__(\"Jobs top map zoom.\", \"careerfy-frame\"),\n 'group' => esc_html__(\"Map Settings\", \"careerfy-frame\"),\n );\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Featured Jobs on Top\", \"careerfy-frame\"),\n 'param_name' => 'job_feat_jobs_top',\n 'value' => array(\n esc_html__(\"No\", \"careerfy-frame\") => 'no',\n esc_html__(\"Yes\", \"careerfy-frame\") => 'yes',\n ),\n 'description' => esc_html__(\"Featured jobs will display on top of listing.\", \"careerfy-frame\"),\n 'group' => esc_html__(\"Featured Jobs\", \"careerfy-frame\"),\n );\n $job_listsh_parms[] = array(\n 'type' => 'textfield',\n 'heading' => esc_html__(\"Number of Featured jobs\", \"careerfy-frame\"),\n 'param_name' => 'num_of_feat_jobs',\n 'value' => '5',\n 'description' => '',\n 'group' => esc_html__(\"Featured Jobs\", \"careerfy-frame\"),\n );\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Top Search Bar\", \"careerfy-frame\"),\n 'param_name' => 'job_top_search',\n 'value' => array(\n esc_html__(\"Yes\", \"careerfy-frame\") => 'yes',\n esc_html__(\"No\", \"careerfy-frame\") => 'no',\n ),\n 'description' => esc_html__(\"Jobs top search bar switch.\", \"careerfy-frame\"),\n 'group' => esc_html__(\"Top Search\", \"careerfy-frame\"),\n );\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Top Search Style\", \"careerfy-frame\"),\n 'param_name' => 'job_top_search_view',\n 'value' => array(\n esc_html__(\"Simple\", \"careerfy-frame\") => 'simple',\n esc_html__(\"Advance Search\", \"careerfy-frame\") => 'advance',\n ),\n 'description' => esc_html__(\"Jobs top search style.\", \"careerfy-frame\"),\n 'group' => esc_html__(\"Top Search\", \"careerfy-frame\"),\n );\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Top Search Radius\", \"careerfy-frame\"),\n 'param_name' => 'job_top_search_radius',\n 'value' => array(\n esc_html__(\"Yes\", \"careerfy-frame\") => 'yes',\n esc_html__(\"No\", \"careerfy-frame\") => 'no',\n ),\n 'default' => 'yes',\n 'description' => esc_html__(\"Enable/Disable top search radius.\", \"careerfy-frame\"),\n 'group' => esc_html__(\"Top Search\", \"careerfy-frame\"),\n );\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Job Title, Keywords, or Phrase\", \"careerfy-frame\"),\n 'param_name' => 'top_search_title',\n 'value' => array(\n esc_html__(\"Yes\", \"careerfy-frame\") => 'yes',\n esc_html__(\"No\", \"careerfy-frame\") => 'no',\n ),\n 'description' => esc_html__(\"Enable/Disable search keyword field.\", \"careerfy-frame\"),\n 'group' => esc_html__(\"Top Search\", \"careerfy-frame\"),\n );\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Location\", \"careerfy-frame\"),\n 'param_name' => 'top_search_location',\n 'value' => array(\n esc_html__(\"Yes\", \"careerfy-frame\") => 'yes',\n esc_html__(\"No\", \"careerfy-frame\") => 'no',\n ),\n 'description' => esc_html__(\"Enable/Disable location field.\", \"careerfy-frame\"),\n 'group' => esc_html__(\"Top Search\", \"careerfy-frame\"),\n );\n if ($sectors_enable_switch == 'on') {\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Sector\", \"careerfy-frame\"),\n 'param_name' => 'top_search_sector',\n 'value' => array(\n esc_html__(\"Yes\", \"careerfy-frame\") => 'yes',\n esc_html__(\"No\", \"careerfy-frame\") => 'no',\n ),\n 'description' => esc_html__(\"Enable/Disable Sector Dropdown field.\", \"careerfy-frame\"),\n 'group' => esc_html__(\"Top Search\", \"careerfy-frame\"),\n );\n }\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"AutoFill Search Box\", \"careerfy-frame\"),\n 'param_name' => 'top_search_autofill',\n 'value' => array(\n esc_html__(\"Yes\", \"careerfy-frame\") => 'yes',\n esc_html__(\"No\", \"careerfy-frame\") => 'no',\n ),\n 'description' => esc_html__(\"Enable/Disable autofill in search keyword field.\", \"careerfy-frame\"),\n 'group' => esc_html__(\"Top Search\", \"careerfy-frame\"),\n );\n\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Sort by Fields\", \"careerfy-frame\"),\n 'param_name' => 'job_sort_by',\n 'value' => array(\n esc_html__(\"Yes\", \"careerfy-frame\") => 'yes',\n esc_html__(\"No\", \"careerfy-frame\") => 'no',\n ),\n 'description' => esc_html__(\"Results search sorting section switch. When choosing option yes then jobs display counts will show.\", \"careerfy-frame\")\n );\n $job_listsh_parms[] = array(\n 'type' => 'checkbox',\n 'heading' => esc_html__(\"Locations in listing\", \"careerfy-frame\"),\n 'param_name' => 'job_loc_listing',\n 'value' => array(\n esc_html__(\"Country\", \"careerfy-frame\") => 'country',\n esc_html__(\"State\", \"careerfy-frame\") => 'state',\n esc_html__(\"City\", \"careerfy-frame\") => 'city',\n ),\n 'std' => 'country,city',\n 'description' => esc_html__(\"Select which type of location in listing. If nothing select then full address will display.\", \"careerfy-frame\")\n );\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"RSS Feed\", \"careerfy-frame\"),\n 'param_name' => 'job_rss_feed',\n 'dependency' => array(\n 'element' => 'job_sort_by',\n 'value' => 'yes',\n ),\n 'value' => array(\n esc_html__(\"Yes\", \"careerfy-frame\") => 'yes',\n esc_html__(\"No\", \"careerfy-frame\") => 'no',\n ),\n 'description' => ''\n );\n $job_listsh_parms[] = array(\n 'type' => 'textfield',\n 'heading' => esc_html__(\"Excerpt Length\", \"careerfy-frame\"),\n 'param_name' => 'job_excerpt',\n 'value' => '20',\n 'description' => esc_html__(\"Set the number of words you want to show for excerpt.\", \"careerfy-frame\")\n );\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Order\", \"careerfy-frame\"),\n 'param_name' => 'job_order',\n 'value' => array(\n esc_html__(\"Descending\", \"careerfy-frame\") => 'DESC',\n esc_html__(\"Ascending\", \"careerfy-frame\") => 'ASC',\n ),\n 'description' => esc_html__(\"Choose job list items order.\", \"careerfy-frame\")\n );\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Orderby\", \"careerfy-frame\"),\n 'param_name' => 'job_orderby',\n 'value' => array(\n esc_html__(\"Date\", \"careerfy-frame\") => 'date',\n esc_html__(\"Title\", \"careerfy-frame\") => 'title',\n ),\n 'description' => esc_html__(\"Choose job list items orderby.\", \"careerfy-frame\")\n );\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Pagination\", \"careerfy-frame\"),\n 'param_name' => 'job_pagination',\n 'value' => array(\n esc_html__(\"Yes\", \"careerfy-frame\") => 'yes',\n esc_html__(\"No\", \"careerfy-frame\") => 'no',\n ),\n 'description' => esc_html__(\"Choose yes if you want to show pagination for job items.\", \"careerfy-frame\")\n );\n $job_listsh_parms[] = array(\n 'type' => 'textfield',\n 'heading' => esc_html__(\"Jobs per Page\", \"careerfy-frame\"),\n 'param_name' => 'job_per_page',\n 'value' => '10',\n 'description' => esc_html__(\"Set number that how much jobs you want to show per page. Leave it blank for all jobs on a single page.\", \"careerfy-frame\")\n );\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Quick Apply job\", \"careerfy-frame\"),\n 'param_name' => 'quick_apply_job',\n 'value' => array(\n esc_html__(\"No\", \"careerfy-frame\") => 'off',\n esc_html__(\"Yes\", \"careerfy-frame\") => 'on',\n ),\n 'description' => esc_html__(\"By setting this option to yes, when user will click on job title or image, pop-up will be appear from the side.\", \"careerfy-frame\")\n );\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Custom Fields\", \"careerfy-frame\"),\n 'param_name' => 'job_custom_fields_switch',\n 'value' => array(\n esc_html__(\"No\", \"careerfy-frame\") => 'no',\n esc_html__(\"Yes\", \"careerfy-frame\") => 'yes',\n ),\n 'description' => esc_html__(\"Enable / Disable job custom fields\", \"careerfy-frame\"),\n 'group' => esc_html__(\"Custom Fields\", \"careerfy-frame\"),\n );\n $job_listsh_parms[] = array(\n 'type' => 'checkbox',\n 'heading' => esc_html__(\"Select Fields\", \"careerfy-frame\"),\n 'param_name' => 'job_elem_custom_fields',\n 'value' => $job_cus_field_arr,\n 'description' => '',\n 'group' => esc_html__(\"Custom Fields\", \"careerfy-frame\"),\n );\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Job Deadline\", \"careerfy-frame\"),\n 'param_name' => 'job_deadline_switch',\n 'value' => array(\n esc_html__(\"No\", \"careerfy-frame\") => 'no',\n esc_html__(\"Yes\", \"careerfy-frame\") => 'Yes',\n ),\n 'description' => esc_html__(\"Enable / Disable jobs deadline date in listings\", \"careerfy-frame\"),\n );\n\n //\n $attributes = array(\n \"name\" => esc_html__(\"Jobs Listing\", \"careerfy-frame\"),\n \"base\" => \"jobsearch_job_shortcode\",\n \"class\" => \"\",\n \"category\" => esc_html__(\"Wp JobSearch\", \"careerfy-frame\"),\n \"params\" => apply_filters('jobsearch_job_listings_vcsh_params', $job_listsh_parms)\n );\n\n if (function_exists('vc_map') && class_exists('JobSearch_plugin')) {\n vc_map($attributes);\n }\n}",
"function bbp_get_search_template()\n{\n}",
"public function index(Request $request) {\n $categories = JobCategory::all();\n $cat = $request->input('cat');\n $search = $request->input('search');\n \n\n if($request->has('cat') && $cat != 'all') {\n if($request->has('search') && $search != null) {\n $jobs = Job::where('category_id', $cat)\n ->where(function ($query) use ($search) {\n $query->where('title', 'like', '%'.$search.'%')\n ->orWhere('body', 'like', '%'.$search.'%');\n })->orderBy('created_at', 'desc')\n ->paginate(5)\n ->appends([\n 'cat' => request('cat'),\n 'search' => request('search')\n ]);\n } else {\n $jobs = Job::where('category_id', $cat)\n ->orderBy('created_at', 'desc')\n ->paginate(5)\n ->appends([\n 'cat' => request('cat')\n ]);\n } \n } else {\n $jobs = Job::where('title', 'like', '%'.$search.'%')\n ->orWhere('body', 'like', '%'.$search.'%')\n ->orderby('created_at', 'desc')\n ->paginate(5)\n ->appends([\n 'search' => request('search')\n ]);\n }\n \n \n return view('jobs', compact('categories', 'jobs', 'cat', 'search'));\n }",
"public function search_task($search_criteria)\r\n\t{\r\n\t\t$search_data = \"SELECT * FROM jobs WHERE MATCH (job_name, category, description, location) AGAINST (:search)\";\r\n\t\t$prepare_search_data = $this->pdo_connect->prepare($search_data);\r\n\r\n\t\ttry {\r\n\t\t\t$array_data = array(\":search\" => $search_criteria);\r\n\t\t\t$prepare_search_data->execute($array_data);\r\n\r\n\t\t\t$result_set = $prepare_search_data->rowCount();\r\n\t\t\tif ($result_set > 0) {\r\n\t\t\t\twhile ($rows = $prepare_search_data->fetch(PDO::FETCH_ASSOC)) {\r\n\t\t\t\t\t?>\r\n\t\t\t\t\t<div class=\"single-post d-flex flex-row\">\r\n\t\t\t\t\t\t<div class=\"thumb\">\r\n\t\t\t\t\t\t\t<img src=\"img/post.png\" alt=\"\">\r\n\t\t\t\t\t\t\t<ul class=\"tags\">\r\n\t\t\t\t\t\t\t\t<li>\r\n\t\t\t\t\t\t\t\t\t<a href=\"#\">Art</a>\r\n\t\t\t\t\t\t\t\t</li>\r\n\t\t\t\t\t\t\t\t<li>\r\n\t\t\t\t\t\t\t\t\t<a href=\"#\">Media</a>\r\n\t\t\t\t\t\t\t\t</li>\r\n\t\t\t\t\t\t\t\t<li>\r\n\t\t\t\t\t\t\t\t\t<a href=\"#\">Design</a>\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t</li>\r\n\t\t\t\t\t\t\t</ul>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t<div class=\"details\">\r\n\t\t\t\t\t\t\t<div class=\"title d-flex flex-row justify-content-between\">\r\n\t\t\t\t\t\t\t\t<div class=\"titles\">\r\n\t\t\t\t\t\t\t\t\t<a href=\"single.html\"><h4><?php echo $rows['job_name']; ?></h4></a>\r\n\t\t\t\t\t\t\t\t\t<h6>Premium Labels Limited</h6>\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t<ul class=\"btns\">\r\n\t\t\t\t\t\t\t\t\t<li><a href=\"#\"><span class=\"lnr lnr-heart\"></span></a></li>\r\n\t\t\t\t\t\t\t\t\t<li><a href=\"#\">Apply</a></li>\r\n\t\t\t\t\t\t\t\t</ul>\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t<p>\r\n\t\t\t\t\t\t\t\t<?php echo $rows['preview']; ?>\r\n\t\t\t\t\t\t\t</p>\r\n\t\t\t\t\t\t\t<h5>Job Nature: <?php echo $rows['job_type']; ?></h5>\r\n\t\t\t\t\t\t\t<p class=\"address\"><span class=\"lnr lnr-map\"></span> <?php echo $rows['location']; ?></p>\r\n\t\t\t\t\t\t\t<p class=\"address\"><span class=\"lnr lnr-database\"></span> <?php echo $rows['pay']; ?></p>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t\t<?php\r\n\t\t\t\t}\r\n\t\t\t}else{\r\n\r\n\t\t\t}\r\n\t\t} catch (PDOException $exception) {\r\n\t\t\t#case of error, redirect user with error message\r\n\t\t\theader(\"Location: 504.php?msg=\" . $exception->getMessage());\r\n\t\t}\r\n\t}",
"public function suggestedJobs(){\n $result = SuggestedJobs::getAllJobs();\n $jobs = array();\n foreach($result as &$row){\n $jobs[] = $this->getAllCols($row);\n } \n \n //set isAdmin\n $isAdmin = $this->isAdminLogin();\n $pageName = \"jobs\";\n include_once SYSTEM_PATH.'/view/header.tpl';\n include_once SYSTEM_PATH.'/view/jobs.tpl';\n include_once SYSTEM_PATH.'/view/footer.tpl';\n }",
"function careerfy_vc_simple_jobs_listing_multi()\n{\n global $jobsearch_gdapi_allocation;\n\n $jobsearch__options = get_option('jobsearch_plugin_options');\n $categories = get_terms(array(\n 'taxonomy' => 'sector',\n 'hide_empty' => false,\n ));\n $all_locations_type = isset($jobsearch__options['all_locations_type']) ? $jobsearch__options['all_locations_type'] : '';\n $cate_array = array(esc_html__(\"Select Sector\", \"careerfy-frame\") => '');\n if (is_array($categories) && sizeof($categories) > 0) {\n foreach ($categories as $category) {\n $cate_array[$category->name] = $category->slug;\n }\n }\n\n $job_listsh_parms = array();\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Sector\", \"careerfy-frame\"),\n 'param_name' => 'job_cat',\n 'value' => $cate_array,\n 'description' => esc_html__(\"Select Sector.\", \"careerfy-frame\")\n );\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Order\", \"careerfy-frame\"),\n 'param_name' => 'job_order',\n 'value' => array(\n esc_html__(\"Descending\", \"careerfy-frame\") => 'DESC',\n esc_html__(\"Ascending\", \"careerfy-frame\") => 'ASC',\n ),\n 'description' => esc_html__(\"Order dropdown will work for featured jobs only\", \"careerfy-frame\")\n );\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Orderby\", \"careerfy-frame\"),\n 'param_name' => 'job_orderby',\n 'value' => array(\n esc_html__(\"Date\", \"careerfy-frame\") => 'date',\n esc_html__(\"Title\", \"careerfy-frame\") => 'title',\n ),\n 'description' => esc_html__(\"Choose job list items orderby.\", \"careerfy-frame\")\n );\n $job_listsh_parms[] = array(\n 'type' => 'textfield',\n 'heading' => esc_html__(\"Number of Jobs\", \"careerfy-frame\"),\n 'param_name' => 'job_per_page',\n 'value' => '10',\n 'description' => esc_html__(\"Set number that how many jobs you want to show.\", \"careerfy-frame\")\n );\n\n //\n $attributes = array(\n \"name\" => esc_html__(\"Simple Jobs Listing Multi\", \"careerfy-frame\"),\n \"base\" => \"jobsearch_simple_jobs_listing_multi\",\n \"class\" => \"\",\n \"category\" => esc_html__(\"Wp JobSearch\", \"careerfy-frame\"),\n \"params\" => $job_listsh_parms,\n );\n\n if (function_exists('vc_map') && class_exists('JobSearch_plugin')) {\n vc_map($attributes);\n }\n}",
"public function jobSearch($search){\r\n\t\t$searchterms = explode(' ', $search);\r\n\t\t$datesToSearch = [];\r\n\t\t$termsToSearch = [];\r\n\r\n\t\t$textColumns = [\r\n\t\t\t'job_number',\r\n\t\t\t'customer_name',\r\n\t\t\t'customer_address',\r\n\t\t\t'customer_phone',\r\n\t\t\t'customer_email',\r\n\t\t\t'product_name',\r\n\t\t\t'work_done',\r\n\t\t\t'parts_used'\r\n\t\t];\r\n\r\n\t\t$dateColumns = [\r\n\t\t\t'date_submitted',\r\n\t\t\t'time_submitted',\r\n\t\t\t'last_updated'\r\n\t\t];\r\n\r\n\t\tforeach ($searchterms as $term) {\r\n\t\t\t/*\r\n\t\t\t\tchange `/` to `-` as 11/12/15\r\n\t\t\t\t12 November, 2015 for Americans\r\n\t\t\t\t11th December 2015 for everyone else\r\n\t\t\t*/\r\n\t\t\t$updated = str_replace('/', '-', $term);\r\n\r\n\t\t\tif(strtotime($updated) !== false){\r\n\t\t\t\t$date = new DateTime($updated);\r\n\t\t\t\t$timeStamp = $date->format('Y-m-d');\r\n\t\t\t\tarray_push($datesToSearch, $timeStamp);\r\n\t\t\t} else {\r\n\t\t\t\tarray_push($termsToSearch, $term);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif(count($termsToSearch) > 0){\r\n\r\n\t\t\t$textSQL = \"SELECT `job_table`.`job_number`, `customer_table`.`customer_name`, `job_table`.`date_submitted`\r\n\t\t\t\t\tFROM `job_table`\r\n\t\t\t\t\tLEFT JOIN `customer_table`\r\n\t\t\t\t\tON `job_table`.`customer_id` = `customer_table`.`customer_id`\";\r\n\t\t\t$i = 0;\r\n\t\t\tforeach ($textColumns as $column) {\r\n\t\t\t\tforeach($termsToSearch as $term){\r\n\r\n\t\t\t\t\tif($i === 0){\r\n\t\t\t\t\t\t$textSQL .= \" WHERE `$column` LIKE '%$term%' \";\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t$textSQL .= \"OR `$column` LIKE '%$term%' \";\r\n\t\t\t\t\t}\r\n\t\t\t\t\t$i++;\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\t\t\t$textSQL .= \"ORDER BY `job_number` ASC\";\r\n\r\n\t\t\t$data1 = $this->fetchAssoc($textSQL);\r\n\r\n\t\t}\r\n\r\n\t\tif(count($datesToSearch) > 0){\r\n\t\t\t$dateSQL = \"SELECT `job_table`.`job_number`, `customer_table`.`customer_name`, `job_table`.`date_submitted`\r\n\t\t\t\t\tFROM `job_table`\r\n\t\t\t\t\t\tLEFT JOIN `customer_table`\r\n\t\t\t\t\t\tON `job_table`.`customer_id` = `customer_table`.`customer_id`\";\r\n\t\t\t\t\t$z = 0;\r\n\t\t\t\t\tforeach ($dateColumns as $column) {\r\n\t\t\t\t\t\tforeach($datesToSearch as $date) {\r\n\t\t\t\t\t\t\tif($z === 0){\r\n\t\t\t\t\t\t\t\t$dateSQL .= \" WHERE `$column` LIKE '%$date%' \";\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t$dateSQL .= \"OR `$column` LIKE '%$date%' \";\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t$z++;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t$data2 = $this->fetchAssoc($dateSQL);\r\n\t\t}\r\n\r\n\t\tif((count($data1) > 0) && (count($data2) > 0)){\r\n\t\t\t$data = $data1 + $data2;\r\n\t\t} else {\r\n\t\t\tif(count($data1) > 0){\r\n\t\t\t\t$data = $data1;\r\n\t\t\t} else {\r\n\t\t\t\tif(count($data2) > 0) {\r\n\t\t\t\t\t$data = $data2;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\treturn $data;\r\n\t}",
"function &_getSearchTemplates() {\n\t\t$searchTemplates = array(\n\t\t\t'%au% %title% %date%',\n\t\t\t'%aulast% %title% %date%',\n\t\t\t'%au% %title% c%date%',\n\t\t\t'%aulast% %title% c%date%',\n\t\t\t'%au% %title%',\n\t\t\t'%aulast% %title%',\n\t\t\t'%title% %date%',\n\t\t\t'%title% c%date%',\n\t\t\t'%au% %date%',\n\t\t\t'%aulast% %date%',\n\t\t\t'%au% c%date%',\n\t\t\t'%aulast% c%date%'\n\t\t);\n\t\treturn $searchTemplates;\n\t}",
"public function getIndex() {\n $job_ids = [];\n $meta_keys = ['type_ids', 'category_ids', 'condition_ids'];\n \n if(Input::has($meta_keys[0]) \n || Input::has($meta_keys[1])\n || Input::has($meta_keys[2])) {\n \n $job_metas = JobMeta::select('job_id');\n \n foreach ($meta_keys as $meta_key) {\n \n if(Input::has($meta_key)) {\n \n $meta_values = Input::get($meta_key);\n\n foreach ($meta_values as $meta_value) {\n\n $job_metas->orWhere(function($query) use($meta_key, $meta_value) {\n \n $query->where('meta_key', str_singular($meta_key))\n ->where('meta_value', $meta_value);\n \n });\n \n }\n \n }\n \n }\n\n $job_ids = [-1] + $job_metas->lists('job_id');\n \n }\n \n $jobs = Job::select(\n 'jobs.id',\n 'jobs.title',\n 'jobs.description',\n 'jobs.user_id',\n 'jobs.catch_phrase',\n 'jobs.catch_text',\n 'jobs.job_pattern',\n 'jobs.transportation',\n 'jobs.salary',\n 'jobs.prefecture_id',\n 'jobs.other_address',\n 'jobs.updated_at'\n )\n ->filterValid()\n ->with('metas', 'user')\n ->filterRecommended(true)\n ->joinEmployer()\n ->orderBy('jobs.id', 'DESC');\n\n if(!empty($job_ids)) {\n \n $jobs->filterIds($job_ids);\n \n }\n \n if(Input::has('prefecture_id')) {\n \n $jobs->filterPrefectureId(Input::get('prefecture_id'));\n \n }\n\n if(Input::has('q')) {\n \n $keywords = explode(' ', mb_convert_kana(Input::get('q'), 's'));\n \n foreach ($keywords as $keyword) {\n \n if(!empty($keyword)) {\n \n $jobs->where(function($query) use($keyword) {\n \n $query->where('jobs.catch_phrase', 'LIKE', '%'. $keyword .'%')\n ->orWhere('jobs.catch_text', 'LIKE', '%'. $keyword .'%')\n ->orWhere('jobs.description', 'LIKE', '%'. $keyword .'%')\n ->orWhere('jobs.capacity', 'LIKE', '%'. $keyword .'%')\n ->orWhere('jobs.transportation', 'LIKE', '%'. $keyword .'%')\n ->orWhere('users.last_name', 'LIKE', '%'. $keyword .'%');\n \n });\n \n }\n \n }\n \n }\n \n $jobs = $jobs->paginate(Config::get('app.job_per_page'));\n $main_image_ids = [];\n\n if($jobs->count() > 0) {\n\n foreach ($jobs as $index => $job) {\n\n $meta_values = JobMeta::metaAssign($job->metas);\n $job->meta_values = $meta_values;\n\n if(!empty($meta_values['main_company_image_file_ids'])) {\n\n foreach ($meta_values['main_company_image_file_ids'] as $main_image_id) {\n\n $main_image_ids[] = $main_image_id;\n\n }\n\n }\n\n }\n\n }\n\n $image_urls = ImageFile::urls($main_image_ids);\n\n $jobs2 = Job::select(\n 'jobs.id',\n 'jobs.title',\n 'jobs.description',\n 'jobs.user_id',\n 'jobs.catch_phrase',\n 'jobs.catch_text',\n 'jobs.job_pattern',\n 'jobs.transportation',\n 'jobs.salary',\n 'jobs.prefecture_id',\n 'jobs.other_address',\n 'jobs.updated_at'\n )\n ->filterValid()\n ->with('metas', 'user')\n ->joinEmployer()\n ->orderBy('jobs.id', 'DESC');\n\n return View::make('home.index', [\n 'recommendations' => $jobs,\n 'image_urls' => $image_urls,\n 'jobs' => $jobs2\n ]);\n\t\t\n\t}",
"public function searchAction($title, $country, $city, $state, $category, $company, $lang, $jobt, $page) {\n $request = $this->getRequest();\n\n\n $session = $request->getSession();\n $searchQuery = array('title' => $title, 'country' => $country, 'city' => $city, 'state' => $state, 'category' => $category, 'company' => $company, 'lang' => $lang, 'jobt' => $jobt);\n $session->set('searchQuery', $searchQuery);\n\n $session->set('page', $page);\n //to check if Ajax Request\n// if (!$request->isXmlHttpRequest()) {\n// return new Response(\"Faild\");\n// }\n\n /* * **to get array of keywords from search text *** */\n $keywordsArray = explode(\" \", $title);\n\n// print_r($keywordsArray);exit;\n //get number of jobs per page\n $jobsPerPage = $this->container->getParameter('jobs_per_search_results_page');\n\n $em = $this->getDoctrine()->getEntityManager();\n $internshipRepo = $em->getRepository('ObjectsInternJumpBundle:Internship');\n\n $companyRepo = $em->getRepository('ObjectsInternJumpBundle:Company');\n $companyId = $company;\n $companyObj = $companyRepo->findOneBy(array('loginName' => $company));\n if ($companyObj) {\n $companyId = $companyObj->getId();\n }\n //get jobs search results array\n $userSearchResults = $internshipRepo->getJobsSearchResult($title, $country, $city, $state, $category, $companyId, $lang, $keywordsArray, $jobt, $page, $jobsPerPage);\n\n //Limit the details to only 200 character\n foreach ($userSearchResults as $job) {\n $jobDesc = strip_tags($job->getDescription());\n if (strlen($jobDesc) > 200) {\n $job->setDescription(substr($jobDesc, 0, 200) . '...');\n } else {\n $job->setDescription($jobDesc);\n }\n }\n /* pagenation part */\n //get count of all search result jobs\n $userSearchResultsCount = sizeof($internshipRepo->getJobsSearchResult($title, $country, $city, $state, $category, $companyId, $lang, $keywordsArray, $jobt, 1, null));\n\n $lastPageNumber = (int) ($userSearchResultsCount / $jobsPerPage);\n if (($userSearchResultsCount % $jobsPerPage) > 0) {\n $lastPageNumber++;\n }\n\n\n /* * ***************[ Start API Search Results ]********************** */\n /* * *********************************************** */\n $apiJobsArr = array();\n if (sizeof($userSearchResults) < 24) {\n $title1 = $title;\n if ($title == \"empty\") {\n if ($category != \"empty\") {\n $categoryRepo = $em->getRepository('ObjectsInternJumpBundle:CVCategory');\n //get countries array\n $categoryObj = $categoryRepo->findOneBy(array('id' => $category));\n $title1 = $categoryObj->getSlug();\n\n }\n }\n if ($city != \"empty\" && $state != \"empty\") {\n $jobLocation = $city . ', ' . $state;\n } else {\n if ($city != \"empty\") {\n $jobLocation = $city;\n } elseif ($state != \"empty\") {\n $jobLocation = $state;\n } else {\n $jobLocation = null;\n }\n }\n\n //get company name if Exist\n $companyRepo = $em->getRepository('ObjectsInternJumpBundle:Company');\n $companyObj = $companyRepo->findOneBy(array('loginName' => $company));\n if ($companyObj) {\n $companyName = $companyObj->getName();\n } else {\n $companyName = $company;\n }\n $apiJobsArr = $this->searchForIndeedJobs($searchString = $title1, $start = $page * $jobsPerPage, $limit = $jobsPerPage, $jobLocation, $jobt, $companyName);\n\n foreach ($apiJobsArr['results'] as $key => $job) {\n if ($job['state'] == '' || $job['city'] == '') {\n unset($apiJobsArr['results'][$key]);\n $apiJobsArr['count'] = $apiJobsArr['count'] - 1;\n }\n }\n $lastPageNumber = (int) ($apiJobsArr['count'] / $jobsPerPage);\n if (($apiJobsArr['count'] % $jobsPerPage) > 0) {\n $lastPageNumber++;\n }\n }\n\n /* * *************** [ End API Search Results ]****************** */\n /* * *********************************************** */\n\n// print_r($userSearchResults);\n //return new Response(\"Done\");\n return $this->render('ObjectsInternJumpBundle:InternjumpUser:userSearchResultPage.html.twig', array(\n 'jobs' => $userSearchResults,\n 'apiJobs' => $apiJobsArr,\n 'page' => $page,\n 'jobsPerPage' => $jobsPerPage,\n 'lastPageNumber' => $lastPageNumber,\n 'title' => $title,\n 'country' => $country,\n 'city' => $city,\n 'state' => $state, 'category' => $category, 'company' => $company, 'lang' => $lang, 'jobtype' => $jobt,\n ));\n }",
"private function search()\r\n {\r\n $savedSearches = new SavedSearches($this->_siteID);\r\n $savedSearchRS = $savedSearches->get(DATA_ITEM_COMPANY);\r\n\r\n if (!eval(Hooks::get('CLIENTS_SEARCH'))) return;\r\n\r\n $this->_template->assign('wildCardString', '');\r\n $this->_template->assign('savedSearchRS', $savedSearchRS);\r\n $this->_template->assign('active', $this);\r\n $this->_template->assign('subActive', 'Search Companies');\r\n $this->_template->assign('isResultsMode', false);\r\n $this->_template->assign('wildCardCompanyName' , '');\r\n $this->_template->assign('wildCardKeyTechnologies', '');\r\n $this->_template->assign('mode', '');\r\n $this->_template->display('./modules/companies/Search.tpl');\r\n }",
"public function searchJob($model,$modelArr,$viewArr){\n // echo \"<br>\";\n $jobView = $viewArr[0];\n $employerView = $viewArr[1];\n $model->searchJob($modelArr);\n \n $searchJobObj = new stdClass();\n $searchJobObj->jobAttr = $jobView->getAllJobs();\n $searchJobObj->companyName = explode(',',$employerView->getEmployerCompanyName());\n $searchJobObj->companyType = explode(',',$employerView->getEmployerCompanyType());\n\n return $searchJobObj;\n // echo \"showing searched job\";\n // echo \"<br>\";\n }",
"function careerfy_vc_jobs_by_categories()\n{\n\n $all_page = array();\n\n $args = array(\n 'sort_order' => 'asc',\n 'sort_column' => 'post_title',\n 'hierarchical' => 1,\n 'exclude' => '',\n 'include' => '',\n 'meta_key' => '',\n 'meta_value' => '',\n 'authors' => '',\n 'child_of' => 0,\n 'parent' => -1,\n 'exclude_tree' => '',\n 'number' => '',\n 'offset' => 0,\n 'post_type' => 'page',\n 'post_status' => 'publish'\n );\n $pages = get_pages($args);\n if (!empty($pages)) {\n foreach ($pages as $page) {\n $all_page[$page->post_title] = $page->ID;\n }\n }\n\n $attributes = array(\n \"name\" => esc_html__(\"Jobs by Categories\", \"careerfy-frame\"),\n \"base\" => \"careerfy_jobs_by_categories\",\n \"category\" => esc_html__(\"Wp JobSearch\", \"careerfy-frame\"),\n \"class\" => \"\",\n \"params\" => array(\n array(\n 'type' => 'textfield',\n 'heading' => esc_html__(\"Number of Sectors\", \"careerfy-frame\"),\n 'param_name' => 'num_cats',\n 'value' => '',\n 'description' => esc_html__(\"Set the number of Sectors to show\", \"careerfy-frame\")\n ),\n array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Result Page\", \"careerfy-frame\"),\n 'param_name' => 'result_page',\n 'value' => $all_page,\n 'description' => '',\n 'dependency' => array(\n 'element' => 'cats_view',\n 'value' => array('view1', 'view2', 'view3', 'view5')\n ),\n ),\n array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Order\", \"careerfy-frame\"),\n 'param_name' => 'order_by',\n 'value' => array(\n esc_html__(\"By Jobs Count\", \"careerfy-frame\") => 'jobs_count',\n esc_html__(\"By Random\", \"careerfy-frame\") => 'id',\n ),\n 'description' => ''\n ),\n array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Show Jobs Counts\", \"careerfy-frame\"),\n 'param_name' => 'sector_job_counts',\n 'value' => array(\n esc_html__(\"Yes\", \"careerfy-frame\") => 'yes',\n esc_html__(\"No\", \"careerfy-frame\") => 'no',\n ),\n 'description' => ''\n ),\n array(\n 'type' => 'textfield',\n 'heading' => esc_html__(\"Title\", \"careerfy-frame\"),\n 'param_name' => 'cat_title',\n 'value' => '',\n 'description' => '',\n 'dependency' => array(\n 'element' => 'cats_view',\n 'value' => array('slider')\n ),\n ),\n array(\n 'type' => 'textfield',\n 'heading' => esc_html__(\"Link text\", \"careerfy-frame\"),\n 'param_name' => 'cat_link_text',\n 'value' => '',\n 'description' => '',\n 'dependency' => array(\n 'element' => 'cats_view',\n 'value' => array('slider')\n ),\n ),\n array(\n 'type' => 'textfield',\n 'heading' => esc_html__(\"Link text URL\", \"careerfy-frame\"),\n 'param_name' => 'cat_link_text_url',\n 'value' => '',\n 'description' => '',\n 'dependency' => array(\n 'element' => 'cats_view',\n 'value' => array('slider')\n ),\n ),\n )\n );\n\n if (function_exists('vc_map') && class_exists('JobSearch_plugin')) {\n vc_map($attributes);\n }\n}",
"public function search(){ \n\t\t$this->layout = false;\t \n\t\t$q = trim(Sanitize::escape($_GET['q']));\t\n\t\tif(!empty($q)){\n\t\t\t// execute only when the search keywork has value\t\t\n\t\t\t$this->set('keyword', $q);\n\t\t\t$data = $this->HrEmployee->find('all', array('fields' => array('full_name','HrDepartment.dept_name','HrDesignation.desig_name'), 'group' => array('full_name'), 'conditions' => \tarray(\"OR\" => array ('full_name like' => '%'.$q.'%','HrDepartment.dept_name like' => '%'.$q.'%','HrDesignation.desig_name like' => '%'.$q.'%'), 'AND' => array('HrEmployee.is_deleted' => 'N'))));\t\t\n\t\t\t$this->set('results', $data);\n\t\t}\n }",
"public function jobs() {\n\n\t\t$validator = Validator::make(Input::all(), array(\n\t\t\t'keyword' => 'required|min:3|alpha_dash'\n\t\t));\n\n\n\t\tif ($validator->fails()) {\n\t\t\t\n\t\t\treturn View::make('jobs', array(\n\t\t\t\t'jobs' => DB::select(\"EXEC spJobSearch_Select ''\"),\n\t\t\t\t'recommended' => self::getRecommendedJobs()\n\t\t\t));\t\n\t\t}\n\n\t\treturn View::make('jobs', array(\n\t\t\t// Keyword shouldn't be able to perform SQL injection, as ' and ; are not in the alpha_dash set.\n\t\t\t'jobs' => DB::select(\"EXEC spJobSearch_Select ?\", array(Input::get('keyword'))),\n\t\t\t'recommended' => self::getRecommendedJobs()\n\t\t));\n\t}",
"function searchEmployeeAndTitle(){ \n\t\t\n\t\t$sql = \"SELECT a.emp_number, CONCAT(a.emp_firstname,' ',a.emp_middle_name, ' ', a.emp_lastname) AS fullname, c.name\n\t\t\t\t\tFROM panpic_employee AS a\n\t\t\t\t\tJOIN config_general AS b\n\t\t\t\t\tON a.emp_job_title = b.id $this->cond\n\t\t\t\t\tJOIN config_general_desc AS c \n\t\t\t\t\t\tON b.id = c.id AND c.lang = '$this->_lang'\";\n\n\t\treturn $this->_db->fetchAll($sql);\n\t\t\n\t\t/*\n\t\tAND b.`type` = 'job_title'\n\t\tAND a.emp_number != '$emp_number'\n\t\tAND (a.emp_lastname LIKE '$q%' OR a.emp_firstname LIKE '$q%') \n\t\t */\n\t}",
"public function dynamic_employee_search_func() {\n\n\t\tob_start();\n\t\t\n\t\tglobal $post;\n\t\t$id = $post->ID;\n\t\t$url = get_permalink( $id );\n\t\t\n\t\t?>\n\n\t\t<style>\n\t\t\tinput,\n\t\t\tselect {\n\t\t\t\twidth: 100%;\n\t\t\t\tmargin-bottom: 10px !important;\n\t\t\t}\n\t\t</style>\n\n\t\t<form action=\"<?php echo $url; ?>\" method=\"GET\">\n\t\t\t<input type=\"hidden\" name=\"search\" value=\"employeelist\">\n\t\t\t<input type=\"text\" placeholder=\"Name\" name=\"employee-name\">\n\t\t\t<select name=\"sscyear\">\n\t\t\t\t<option value=\"\">Select SSC Year</option>\n\t\t\t\t<?php \n\t\t\t\t\t$num = 2000;\n\t\t\t\t\twhile( $num < 2020 ) :\n\t\t\t\t\t$num++;\n\t\t\t\t?>\n\t\t\t\t<option value=\"<?php echo $num; ?>\"><?php echo $num; ?></option>\n\t\t\t\t<?php\n\t\t\t\t\tendwhile;\n\t\t\t\t?>\n\t\t\t</select>\n\t\t\t<select name=\"skills\">\n\t\t\t\t<option value=\"\">Select Skills</option>\n\t\t\t\t<option value=\"wordpress\">WordPress</option>\n\t\t\t\t<option value=\"megento\">Megento</option>\n\t\t\t\t<option value=\"laravel\">Laravel</option>\n\t\t\t\t<option value=\"rawphp\">Raw PHP</option>\n\t\t\t\t<option value=\"javascript\">Javascript</option>\n\t\t\t</select>\n\t\t\t<input type=\"submit\" value=\"Search Now\">\n\t\t</form>\n\n\t\t<?php return ob_get_clean();\n\n\t}",
"public function question_search()\n {\n $tbl_questions = new TblQuestions();\n $query = $tbl_questions->search_question_group($this->input->get('location_choice'), $this->input->get('questionnaire_choice'));\n\n $this->template->content->questions = $query;\n }",
"function careerfy_vc_simple_jobs_listing()\n{\n global $jobsearch_gdapi_allocation;\n $jobsearch__options = get_option('jobsearch_plugin_options');\n\n $categories = get_terms(array(\n 'taxonomy' => 'sector',\n 'hide_empty' => false,\n ));\n\n $all_locations_type = isset($jobsearch__options['all_locations_type']) ? $jobsearch__options['all_locations_type'] : '';\n $cate_array = array(esc_html__(\"Select Sector\", \"careerfy-frame\") => '');\n if (is_array($categories) && sizeof($categories) > 0) {\n foreach ($categories as $category) {\n $cate_array[$category->name] = $category->slug;\n }\n }\n\n $job_listsh_parms = array();\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"View\", \"careerfy-frame\"),\n 'param_name' => 'job_list_style',\n 'value' => array(\n esc_html__(\"Style 1\", \"careerfy-frame\") => 'style1',\n esc_html__(\"Style 2\", \"careerfy-frame\") => 'style2',\n esc_html__(\"Style 3\", \"careerfy-frame\") => 'style3',\n esc_html__(\"Style 4\", \"careerfy-frame\") => 'style4',\n esc_html__(\"Style 5\", \"careerfy-frame\") => 'style5',\n esc_html__(\"Style 6\", \"careerfy-frame\") => 'style6',\n esc_html__(\"Style 7\", \"careerfy-frame\") => 'style7',\n esc_html__(\"Style 8\", \"careerfy-frame\") => 'style8',\n esc_html__(\"Style 9\", \"careerfy-frame\") => 'style9',\n ),\n );\n\n $job_listsh_parms[] = array(\n 'type' => 'careerfy_browse_img',\n 'heading' => esc_html__(\"Image\", \"careerfy-frame\"),\n 'param_name' => 'title_img',\n 'value' => '',\n 'description' => esc_html__(\"Image will show above title\", \"careerfy-frame\"),\n 'dependency' => array(\n 'element' => 'job_list_style',\n 'value' => 'style4'\n ),\n );\n\n $job_listsh_parms[] = array(\n 'type' => 'textfield',\n 'heading' => esc_html__(\"Title\", \"careerfy-frame\"),\n 'param_name' => 'job_list_title',\n 'value' => '',\n 'description' => '',\n 'dependency' => array(\n 'element' => 'job_list_style',\n 'value' => array('style1', 'style2', 'style3', 'style4')\n ),\n );\n $job_listsh_parms[] = array(\n 'type' => 'textfield',\n 'heading' => esc_html__(\"Description\", \"careerfy-frame\"),\n 'param_name' => 'job_list_description',\n 'value' => '',\n 'description' => '',\n 'dependency' => array(\n 'element' => 'job_list_style',\n 'value' => array('style2', 'style4')\n ),\n );\n $job_listsh_parms[] = array(\n 'type' => 'checkbox',\n 'heading' => esc_html__(\"Locations in listing\", \"careerfy-frame\"),\n 'param_name' => 'job_list_loc_listing',\n 'value' => array(\n esc_html__(\"Country\", \"careerfy-frame\") => 'country',\n esc_html__(\"State\", \"careerfy-frame\") => 'state',\n esc_html__(\"City\", \"careerfy-frame\") => 'city',\n ),\n 'std' => 'country,city',\n 'description' => esc_html__(\"Select which type of location in listing. If nothing select then full address will display.\", \"careerfy-frame\")\n );\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Sector\", \"careerfy-frame\"),\n 'param_name' => 'job_cat',\n 'value' => $cate_array,\n 'description' => esc_html__(\"Select Sector.\", \"careerfy-frame\")\n );\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Featured Only\", \"careerfy-frame\"),\n 'param_name' => 'featured_only',\n 'value' => array(\n esc_html__(\"Yes\", \"careerfy-frame\") => 'yes',\n esc_html__(\"No\", \"careerfy-frame\") => 'no',\n ),\n 'description' => esc_html__(\"If you set Featured Only 'Yes' then only Featured jobs will show.\", \"careerfy-frame\")\n );\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Order\", \"careerfy-frame\"),\n 'param_name' => 'job_order',\n 'value' => array(\n esc_html__(\"Descending\", \"careerfy-frame\") => 'DESC',\n esc_html__(\"Ascending\", \"careerfy-frame\") => 'ASC',\n ),\n 'description' => esc_html__(\"Choose job list items order.\", \"careerfy-frame\")\n );\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Orderby\", \"careerfy-frame\"),\n 'param_name' => 'job_orderby',\n 'value' => array(\n esc_html__(\"Date\", \"careerfy-frame\") => 'date',\n esc_html__(\"Title\", \"careerfy-frame\") => 'title',\n ),\n 'description' => esc_html__(\"Choose job list items orderby.\", \"careerfy-frame\")\n );\n $job_listsh_parms[] = array(\n 'type' => 'textfield',\n 'heading' => esc_html__(\"Number of Jobs\", \"careerfy-frame\"),\n 'param_name' => 'job_per_page',\n 'value' => '10',\n 'description' => esc_html__(\"Set number that how many jobs you want to show.\", \"careerfy-frame\")\n );\n $job_listsh_parms[] = array(\n 'type' => 'dropdown',\n 'heading' => esc_html__(\"Load More Jobs\", \"careerfy-frame\"),\n 'param_name' => 'job_load_more',\n 'value' => array(\n esc_html__(\"Yes\", \"careerfy-frame\") => 'yes',\n esc_html__(\"No\", \"careerfy-frame\") => 'no',\n ),\n 'description' => esc_html__(\"Choose yes if you want to show more job items.\", \"careerfy-frame\"),\n 'dependency' => array(\n 'element' => 'job_list_style',\n 'value' => array('style1', 'style2', 'style7', 'style8', 'style4', 'style5', 'style6', 'style9')\n ),\n );\n $job_listsh_parms[] = array(\n 'type' => 'textfield',\n 'heading' => esc_html__(\"Link text\", \"careerfy-frame\"),\n 'param_name' => 'job_link_text',\n 'value' => '',\n 'description' => '',\n 'dependency' => array(\n 'element' => 'job_list_style',\n 'value' => array('style3')\n ),\n );\n $job_listsh_parms[] = array(\n 'type' => 'textfield',\n 'heading' => esc_html__(\"Link text URL\", \"careerfy-frame\"),\n 'param_name' => 'job_link_text_url',\n 'value' => '',\n 'description' => '',\n 'dependency' => array(\n 'element' => 'job_list_style',\n 'value' => array('style3')\n ),\n );\n $attributes = array(\n \"name\" => esc_html__(\"Simple Jobs Listing\", \"careerfy-frame\"),\n \"base\" => \"jobsearch_simple_jobs_listing\",\n \"class\" => \"\",\n \"category\" => esc_html__(\"Wp JobSearch\", \"careerfy-frame\"),\n \"params\" => $job_listsh_parms,\n );\n if (function_exists('vc_map') && class_exists('JobSearch_plugin')) {\n vc_map($attributes);\n }\n}",
"public function getJobsSearchResult($title, $country, $city, $state, $category, $company, $lang, $keywordsArray, $jobType, $page, $jobsPerPage) {\n//print_r($keywordsArray);exit;\n if ($page < 1) {\n return array();\n }\n $page--;\n\n $today = new \\DateTime(\"today\");\n\n $para = array();\n $para['today'] = $today;\n $query = '\n SELECT j, c\n FROM ObjectsInternJumpBundle:Internship j\n JOIN j.company c\n JOIN j.categories cat\n LEFT JOIN j.keywords kw\n JOIN j.languages il\n JOIN il.language l\n WHERE j.active = true AND j.activeFrom <= :today AND j.activeTo >= :today\n ';\n //j.id,j.title,j.description, j.position, j.createdAt, j.activeFrom, j.activeTo, j.country, c.id AS companyId, c.name AS companyName\n if ($title != 'empty') {\n $query .= ' AND (j.title LIKE :title OR j.description LIKE :title OR kw.name IN (:keywords) ) '; // OR j.position LIKE :title\n $para ['title'] = \"%\" . $title . \"%\";\n $para ['keywords'] = $keywordsArray;\n }\n if ($country != 'empty') {\n $query .= ' AND j.country = :country';\n $para ['country'] = $country;\n }\n if ($city != 'empty') {\n $query .= ' AND j.city = :city';\n $para ['city'] = $city;\n }\n if ($state != 'empty') {\n $query .= ' AND j.state = :state';\n $para ['state'] = $state;\n }\n if ($category != 'empty') {\n $query .= ' AND cat.id = :category';\n $para ['category'] = $category;\n }\n if ($company != 'empty') {\n $query .= ' AND c.id = :company';\n $para ['company'] = $company;\n }\n if ($lang != 'empty') {\n $query .= ' AND l = :lang';\n $para ['lang'] = $lang;\n }\n if ($jobType != 'empty') {\n $query .= ' AND j.positionType = :jobtype';\n $para ['jobtype'] = $jobType;\n }\n//print_r($query);exit;\n $query .= ' GROUP BY j.id ORDER BY j.createdAt DESC';\n\n $query = $this->getEntityManager()->createQuery($query);\n $query->setParameters($para);\n\n if ($jobsPerPage) {\n $query->setFirstResult($page * $jobsPerPage);\n $query->setMaxResults($jobsPerPage);\n }\n\n return $query->getResult();\n }",
"public function student_search_by_batch()\n\t{\n\t\t$CI =& get_instance();\n\t\t$CI->auth->check_tutor_auth();\n\t\t$CI->load->library('ltstudent');\n $batch_id = $this->input->post('batch_id');\n\t\t\n $content = $CI->ltstudent->student_search_by_batch($batch_id);\t\n $sub_menu = array(\n\t\t\t\tarray('label'=> display('manage_student'), 'url' => 'tutor/Tstudent','class' =>'active'),\n\t\t\t\tarray('label'=>display('add_student'), 'url' => 'tutor/Tstudent/add_student_form')\n\t\t\t);\n\t\t$this->template->full_tutor_html_view($content,$sub_menu);\n\t}",
"public function searchJob2($model,$modelArr,$viewArr){\n // echo \"<br>\";\n $jobView = $viewArr[0];\n $employerView = $viewArr[1];\n $model->searchJob2($modelArr);\n \n $searchJobObj = new stdClass();\n $searchJobObj->jobAttr = $jobView->getAllJobs();\n $searchJobObj->companyName = explode(',',$employerView->getEmployerCompanyName());\n $searchJobObj->companyType = explode(',',$employerView->getEmployerCompanyType());\n\n return $searchJobObj;\n // echo \"showing searched job\";\n // echo \"<br>\";\n }",
"function colleges_search_people_templates( $templates, $posts, $atts ) {\n\tif ( $atts['layout'] !== 'people' ) { return $templates; }\n\n\tob_start();\n?>\n\t{\n\t\tsuggestion: Handlebars.compile('<div>{{{template.suggestion}}}</div>')\n\t}\n<?php\n\treturn ob_get_clean();\n}",
"public function StudentInternshipsSearchAction() {\n //check for loggedin user\n// if (FALSE === $this->get('security.context')->isGranted('ROLE_USER')) {\n// //return $this->redirect($this->generateUrl('site_homepage', array(), TRUE));\n// $this->getRequest()->getSession()->set('redirectUrl', $this->getRequest()->getRequestUri());\n// return $this->redirect($this->generateUrl('login'));\n// }\n\n $em = $this->getDoctrine()->getEntityManager();\n\n //Check data in session In case User pressed back button\n //get request\n $request = $this->getRequest();\n $session = $request->getSession();\n $sessionData = $session->get('searchQuery');\n\n //Check to fill the form with parameters if been set in the session Used when users [back] to page\n $sessionCheck = false;\n\n //Inspect if the sessionData been set\n if (isset($sessionData)) {\n $sessionCheck = false;\n }\n\n //Check to fill the form with parameters if been sent with the request\n $check = false;\n\n /* * ********************************************************** */\n /* * ********Start Partial Search part*********** */\n\n\n //Get request's parameters\n $jobType = $request->get(\"jobType\");\n $city = $request->get(\"city\");\n $state = $request->get(\"state\");\n $category = $request->get(\"industry\");\n $keyword = $request->get(\"keyword\");\n $company = $request->get(\"company\");\n\n //Get city Repo\n $cityRepo = $em->getRepository('ObjectsInternJumpBundle:City');\n\n if ($jobType || $category || $city || $state || $keyword || $company) {\n //set the check to be true\n $check = true;\n\n //now make sure which parameters been sent and which not\n if (!$jobType) {\n $jobType = \"empty\";\n }\n if (!$city) {\n $city = \"empty\";\n }\n if (!$state) {\n $state = \"empty\";\n }\n if (!$category) {\n $category = \"empty\";\n }\n if (!$keyword) {\n $keyword = \"empty\";\n }\n if (!$company) {\n $company = \"empty\";\n }\n\n //get number of jobs per page\n $jobsPerPage = $this->container->getParameter('jobs_per_search_results_page');\n\n $internshipRepo = $em->getRepository('ObjectsInternJumpBundle:Internship');\n //get jobs search results array\n $userSearchResults = $internshipRepo->getJobsSearchResult($keyword, \"empty\", $city, $state, $category, $company, \"empty\", \"empty\", $jobType, 1, $jobsPerPage);\n\n //Limit the details to only 200 character\n foreach ($userSearchResults as &$job) {\n $jobDesc = strip_tags($job->getDescription());\n if (strlen($jobDesc) > 200) {\n $job->setDescription(substr($jobDesc, 0, 200) . '...');\n } else {\n $job->setDescription($jobDesc);\n }\n }\n /* pagenation part */\n //get count of all search result jobs\n $userSearchResultsCount = sizeof($internshipRepo->getJobsSearchResult($keyword, \"empty\", $city, $state, $category, $company, \"empty\", \"empty\", $jobType, 1, null));\n\n $lastPageNumber = (int) ($userSearchResultsCount / $jobsPerPage);\n if (($userSearchResultsCount % $jobsPerPage) > 0) {\n $lastPageNumber++;\n }\n } else {\n $userSearchResults = null;\n $jobsPerPage = null;\n $lastPageNumber = null;\n $city = null;\n $state = null;\n $category = null;\n $company = null;\n $jobType = null;\n $keyword = null;\n }\n /* * ********End Partial Search part*********** */\n /* * ********************************************************** */\n\n\n\n\n //Get country Repo\n $countryRepo = $em->getRepository('ObjectsInternJumpBundle:Country');\n //get countries array\n $allCountries = $countryRepo->getAllCountries();\n $allCountriesArray = array();\n foreach ($allCountries as $value) {\n $allCountriesArray [$value['id']] = $value['name'];\n }\n\n //All categories\n $categoryRepo = $em->getRepository('ObjectsInternJumpBundle:CVCategory');\n //get countries array\n $allCategories = $categoryRepo->getAllCategories();\n $allCategoriesArray = array();\n foreach ($allCategories as $value) {\n $allCategoriesArray [$value['id']] = $value['name'];\n }\n\n //All companys\n $companyRepo = $em->getRepository('ObjectsInternJumpBundle:Company');\n //get countries array\n $allCompanys = $companyRepo->getAllCompanys();\n $allCompanysArray = array();\n foreach ($allCompanys as $value) {\n $allCompanysArray [$value['id']] = $value['name'];\n }\n\n //All Languages\n $allLanguagesArray = array('class' => 'ObjectsInternJumpBundle:Language', 'property' => 'name', 'empty_value' => '--- choose Language ---'); //, 'expanded' => true, 'multiple' => true, 'required' => false);\n //get the request object\n $request = $this->getRequest();\n\n\n $countryOptionsArr = array('choices' => $allCountriesArray, 'preferred_choices' => array('US'));\n $cityOptionsArr = array();\n $stateOptionsArr = array('empty_value' => '--- choose State ---');\n $categoryOptionsArr = array('empty_value' => '--- choose Industry ---', 'choices' => $allCategoriesArray);\n //$companyOptionsArr = array('empty_value' => '--- choose Company ---', 'choices' => $allCompanysArray);\n $companyOptionsArr = array('attr' => array( 'placeholder' => 'Type Company') );\n $jobTypeOptionsArr = array('choices' => array('Internship' => 'Internship', 'Entry Level' => 'Entry Level'), 'expanded'=> true ,'label' => 'Job type :' ); //, 'data' => 'Internship', 'empty_value' => '--- choose job type ---'\n //->add('spokenFluency', 'choice', array('choices' => array('None' => 'None', 'Novice' => 'Novice', 'Intermediate' => 'Intermediate', 'Advanced' => 'Advanced'), 'expanded' => true, 'label' => 'Spoken :', 'attr' => array('class' => 'lngopt')))\n\n /* * *************************************************************************** */\n //inspect if check been set to be true then set the defaults values of the form\n if ($sessionCheck) {\n if ($sessionData['title'] != \"empty\") {\n\n }\n if ($sessionData['country'] != \"empty\" && $sessionData['country'] != '') {\n $countryOptionsArr = array('choices' => $allCountriesArray, 'preferred_choices' => array($sessionData['country']));\n }\n if ($sessionData['city'] != \"empty\" && $sessionData['city'] != '') {\n //get the city name\n $theCity = \"\";\n if ($cityRepo->findOneBy(array('id' => $sessionData['city']))) {\n $theCity = $cityRepo->findOneBy(array('id' => $sessionData['city']));\n $cityOptionsArr = array('data' => $theCity);\n }\n else\n $cityOptionsArr = array();\n }\n if ($sessionData['state'] != \"empty\" && $sessionData['state'] != '') {\n $stateOptionsArr = array('empty_value' => '--- choose State ---');\n }\n if ($sessionData['category'] != \"empty\" && $sessionData['category'] != '') {\n $categoryOptionsArr = array('choices' => $allCategoriesArray, 'preferred_choices' => array($sessionData['category']));\n\n }\n if ($sessionData['company'] != \"empty\" && $sessionData['company'] != '' && !$request->get(\"company\")) {\n //$companyOptionsArr = array('choices' => $allCompanysArray, 'preferred_choices' => array($sessionData['company']));\n $companyOptionsArr = array('attr' => array( 'value' => $sessionData['company']) );\n }\n if ($sessionData['lang'] != \"empty\" && $sessionData['lang'] != '') {\n $allLanguagesArray = array('class' => 'ObjectsInternJumpBundle:Language', 'property' => 'name', 'preferred_choices' => array($sessionData['lang']));\n }\n if ($sessionData['jobt'] != \"empty\" && $sessionData['jobt'] != '') {\n $jobTypeOptionsArr = array('choices' => array('Internship' => 'Internship', 'Entry Level' => 'Entry Level'), 'data' => $sessionData['jobt'] , 'expanded'=> true ,'label' => 'Job type :', 'attr' => array('class' => 'lngopt') );\n }\n }\n\n /* * *************************************************************************** */\n //inspect if check been set to be true then set the defaults values of the form\n if ($check) {\n //$countryOptionsArr = array('choices' => $allCountriesArray, 'empty_value' => '--- choose Country ---');\n if ($city != \"empty\") {\n //get the city name\n $theCity = \"\";\n if ($cityRepo->findOneBy(array('id' => $city))) {\n $theCity = $cityRepo->findOneBy(array('id' => $city));\n $cityOptionsArr = array('data' => $theCity);\n }\n else\n $cityOptionsArr = array();\n }\n if ($state != \"empty\") {\n $stateOptionsArr = array('empty_value' => '--- choose State ---');\n }\n if ($category != \"empty\") {\n $categoryOptionsArr = array('choices' => $allCategoriesArray, 'preferred_choices' => array($category));\n }\n if ($jobType != \"empty\") {\n $jobTypeOptionsArr = array('choices' => array('Internship' => 'Internship', 'Entry Level' => 'Entry Level'), 'data' => $jobType, 'expanded'=> true ,'label' => 'Job type :', 'attr' => array('class' => 'lngopt') );\n }\n if ($company != \"empty\") {\n $companyOptionsArr = array('attr' => array( 'value' => $company) );\n// $companyObj = $companyRepo->findOneBy(array('loginName' => $company));\n// if ($companyObj) {\n// $companyId = $companyObj->getId();\n// $companyOptionsArr = array('choices' => $allCompanysArray, 'preferred_choices' => array($companyId));\n//\n//\n// }\n }\n }\n\n\n //create a search form\n $formBuilder = $this->createFormBuilder()\n ->add('country', 'choice', $countryOptionsArr)\n //->add('city', 'choice', array('empty_value' => '--- choose city ---'))\n ->add('city', 'text', $cityOptionsArr)\n ->add('state', 'choice', $stateOptionsArr)\n ->add('category', 'choice', $categoryOptionsArr)\n ->add('company','text', $companyOptionsArr)\n //->add('company', 'choice', $companyOptionsArr)\n ->add('language', 'entity', $allLanguagesArray)\n ->add('jobtype', 'choice', $jobTypeOptionsArr)\n ;\n //create the form\n $form = $formBuilder->getForm();\n\n return $this->render('ObjectsInternJumpBundle:InternjumpUser:userSearchPage.html.twig', array(\n 'form' => $form->createView(),\n 'jobs' => $userSearchResults,\n 'page' => 1,\n 'jobsPerPage' => $jobsPerPage,\n 'lastPageNumber' => $lastPageNumber,\n 'title' => \"empty\",\n 'country' => \"empty\",\n 'company' => $company,\n 'city' => $city,\n 'state' => $state, 'category' => $category, 'lang' => \"empty\", 'jobtype' => $jobType, 'keyword' => $keyword,\n ));\n }",
"public function search_job_reports() {\n\t\t$users = User::whereBetween('access_label', [2, 3])\n\t\t->where('deletion_status', 0)\n\t\t->orderBy('name', 'ASC')\n\t\t->get(['id', 'name']);\n\n\t\treturn view('administrator.report.search_job_reports', compact('users'));\n\t}",
"function cp_search_template_load($template) {\n if ( is_gallery_search() ) {\n $template = locate_template(array('gallery_search.php'));\n }\n return $template;\n}"
] | [
"0.61445504",
"0.6110281",
"0.6006721",
"0.59589374",
"0.58865166",
"0.5863397",
"0.5817143",
"0.5811051",
"0.5742745",
"0.5713498",
"0.57127583",
"0.5705502",
"0.5694018",
"0.5688177",
"0.56496763",
"0.5625971",
"0.5621048",
"0.56208533",
"0.5587865",
"0.55692816",
"0.55660135",
"0.5564009",
"0.55600256",
"0.55576545",
"0.5551978",
"0.55491996",
"0.55068856",
"0.54972655",
"0.54706025",
"0.54299694"
] | 0.71154135 | 0 |
Register a taxonomy for Documentation Categories. | protected function register_taxonomy_categories() {
$labels = array(
'name' => __( 'Doc Categories', 'documentation-post-type' ),
'singular_name' => __( 'Doc Category', 'documentation-post-type' ),
'menu_name' => __( 'Doc Categories', 'documentation-post-type' ),
'edit_item' => __( 'Edit Doc Category', 'documentation-post-type' ),
'update_item' => __( 'Update Doc Category', 'documentation-post-type' ),
'add_new_item' => __( 'Add New Doc Category', 'documentation-post-type' ),
'new_item_name' => __( 'New Doc Category Name', 'documentation-post-type' ),
'parent_item' => __( 'Parent Doc Category', 'documentation-post-type' ),
'parent_item_colon' => __( 'Parent Doc Category:', 'documentation-post-type' ),
'all_items' => __( 'All Doc Categories', 'documentation-post-type' ),
'search_items' => __( 'Search Doc Categories', 'documentation-post-type' ),
'popular_items' => __( 'Popular Doc Categories', 'documentation-post-type' ),
'separate_items_with_commas' => __( 'Separate doc categories with commas', 'documentation-post-type' ),
'add_or_remove_items' => __( 'Add or remove doc categories', 'documentation-post-type' ),
'choose_from_most_used' => __( 'Choose from the most used doc categories', 'documentation-post-type' ),
'not_found' => __( 'No doc categories found.', 'documentation-post-type' ),
);
$args = array(
'labels' => $labels,
'public' => true,
'show_in_nav_menus' => true,
'show_ui' => true,
'show_tagcloud' => true,
'hierarchical' => true,
'rewrite' => array( 'slug' => 'documentation-category' ),
'show_admin_column' => true,
'query_var' => true,
);
$args = apply_filters( 'documentation_post_type_category_args', $args );
register_taxonomy( $this->taxonomies[0], $this->post_type, $args );
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected function register_taxonomy_tags() {\n\n\t\t$labels = array(\n\t\t\t'name' => __( 'Doc Tags', 'documentation-post-type' ),\n\t\t\t'singular_name' => __( 'Doc Tag', 'documentation-post-type' ),\n\t\t\t'menu_name' => __( 'Doc Tags', 'documentation-post-type' ),\n\t\t\t'edit_item' => __( 'Edit Doc Tag', 'documentation-post-type' ),\n\t\t\t'update_item' => __( 'Update Doc Tag', 'documentation-post-type' ),\n\t\t\t'add_new_item' => __( 'Add New Doc Tag', 'documentation-post-type' ),\n\t\t\t'new_item_name' => __( 'New Doc Tag Name', 'documentation-post-type' ),\n\t\t\t'parent_item' => __( 'Parent Doc Tag', 'documentation-post-type' ),\n\t\t\t'parent_item_colon' => __( 'Parent Doc Tag:', 'documentation-post-type' ),\n\t\t\t'all_items' => __( 'All Doc Tags', 'documentation-post-type' ),\n\t\t\t'search_items' => __( 'Search Doc Tags', 'documentation-post-type' ),\n\t\t\t'popular_items' => __( 'Popular Doc Tags', 'documentation-post-type' ),\n\t\t\t'separate_items_with_commas' => __( 'Separate doc tags with commas', 'documentation-post-type' ),\n\t\t\t'add_or_remove_items' => __( 'Add or remove doc tags', 'documentation-post-type' ),\n\t\t\t'choose_from_most_used' => __( 'Choose from the most used doc tags', 'documentation-post-type' ),\n\t\t\t'not_found' => __( 'No doc tags found.', 'documentation-post-type' ),\n\t\t);\n\n\t\t$args = array(\n\t\t\t'labels' => $labels,\n\t\t\t'public' => true,\n\t\t\t'show_in_nav_menus' => true,\n\t\t\t'show_ui' => true,\n\t\t\t'show_tagcloud' => true,\n\t\t\t'hierarchical' => false,\n\t\t\t'rewrite' => array( 'slug' => 'documentation-tag' ),\n\t\t\t'show_admin_column' => true,\n\t\t\t'query_var' => true,\n\t\t);\n\n\t\t$args = apply_filters( 'documentation_post_type_tag_args', $args );\n\n\t\tregister_taxonomy( $this->taxonomies[1], $this->post_type, $args );\n\n\t}",
"public function registerTaxonomy()\n {\n\n register_taxonomy($this->questionTaxonomy, $this->questionPostType, array(\n 'hierarchical' => true,\n 'labels' => $this->getTaxonomyLabels('Topic', 'Topics'),\n 'show_ui' => true,\n 'show_admin_column' => true,\n // 'update_count_callback' => '_update_post_term_count',\n 'query_var' => true,\n 'rewrite' => array('slug' => 'topic'),\n ));\n\n\n\n /*register_taxonomy($this->questionTaxonomy2, $this->questionPostType, array(\n 'hierarchical' => false,\n 'labels' => $this->getTaxonomyLabels('Test', 'Tests'),\n 'show_ui' => true,\n 'show_admin_column' => true,\n //'update_count_callback' => '_update_post_term_count',\n 'query_var' => true,\n 'rewrite' => array('slug' => 'test'),\n ));*/\n }",
"function wpschool_register_taxonomy() {\n register_taxonomy_for_object_type( 'post_tag', 'page' );\n register_taxonomy_for_object_type( 'category', 'page' );\n}",
"protected function registerTaxonomy()\n {\n register_taxonomy('articleseries', array('post'), array(\n 'hierarchical' => true,\n 'labels' => array(\n 'name' => 'Artikelserien',\n 'singular_name' => 'Artikelserie',\n 'search_items' => 'Artikelserien suchen',\n 'all_items' => 'Alle Artikelserien',\n 'parent_item' => 'Elternserie',\n 'parent_item_colon' => 'Elternserie: ',\n 'edit_item' => 'Artikelserie bearbeiten',\n 'update_item' => 'Artikelserie bearbeiten',\n 'add_new_item' => 'Artikelserie hinzufügen',\n 'new_item_name' => 'Neue Artikelserie',\n 'menu_name' => 'Artikelserien',\n ),\n 'show_ui' => true,\n 'query_var' => true,\n 'rewrite' => array('slug' => 'artikelserie'),\n ));\n }",
"public function init__registerTaxonomy()\n\t\t{\n\t\t\t\n\t\t\t$this->registerSubmissionCategoryTaxonomy();\n\n\t\t}",
"function themeslug_register_taxonomy() {\r\n register_taxonomy( 'articles_category', 'service',\r\n array(\r\n 'labels' => array(\r\n 'name' => 'Services categories',\r\n 'singular_name' => 'Service category',\r\n 'search_items' => 'Search categories',\r\n 'all_items' => 'All categories',\r\n 'edit_item' => 'Edit categories',\r\n 'update_item' => 'Update category',\r\n 'add_new_item' => 'Add category',\r\n 'new_item_name' => 'New category',\r\n 'menu_name' => 'Services category',\r\n ),\r\n 'hierarchical' => true,\r\n 'sort' => true,\r\n 'args' => array( 'orderby' => 'term_order' ),\r\n 'rewrite' => array( 'slug' => 'blog' ),\r\n 'show_admin_column' => true\r\n )\r\n );\r\n }",
"public function register_taxonomies() {\n\n function case_study_taxonomies(){\n\n //add new taxonomy hierarchical\n $labels = array(\n 'name'=>'Categories',\n 'singular_name'=>'Categorie',\n 'search_items'=>'Search Categories',\n 'all_items'=>'All Categories',\n 'parent_item'=>'Parent Categorie',\n 'parent_item_colon'=>'Parent Categorie:',\n 'edit_item'=>'Edit Categorie',\n 'update_item'=> 'Update Categorie',\n 'add_new_item'=>'Add new Categorie',\n 'new_item_name'=>'New Categorie name',\n 'menu_name'=>'Categories'\n );\n $args = array(\n 'hierarchical'=> true,\n 'labels'=>$labels,\n 'show_ui'=> true,\n 'show_in_rest'=> true,\n 'show_admin_column'=>true,\n 'query_var'=> true,\n 'rewrite'=> array( 'slug' => 'case-study-type' )\n );\n register_taxonomy('case-study-type', array('case-study'), $args);\n }\n case_study_taxonomies();\n\t}",
"function case_study_taxonomies(){\n $labels = array(\n 'name'=>'Categories',\n 'singular_name'=>'Categorie',\n 'search_items'=>'Search Categories',\n 'all_items'=>'All Categories',\n 'parent_item'=>'Parent Categorie',\n 'parent_item_colon'=>'Parent Categorie:',\n 'edit_item'=>'Edit Categorie',\n 'update_item'=> 'Update Categorie',\n 'add_new_item'=>'Add new Categorie',\n 'new_item_name'=>'New Categorie name',\n 'menu_name'=>'Categories'\n );\n $args = array(\n 'hierarchical'=> true,\n 'labels'=>$labels,\n 'show_ui'=> true,\n 'show_in_rest'=> true,\n 'show_admin_column'=>true,\n 'query_var'=> true,\n 'rewrite'=> array( 'slug' => 'case-study-type' )\n );\n register_taxonomy('case-study-type', array('case-study'), $args);\n }",
"public function register_taxonomy_do(){\n\t\t\n\t register_taxonomy( $this->_str_taxonomy, $this->_arr_object_type, $this->_arr_args_all );\n\t}",
"function my_first_taxonomy(){\n $args = array(\n 'labels' => array(\n 'name' => 'Categories',\n 'singular_name' => 'Category',\n ),\n 'public' => true,\n 'hierarchical' => true,\n \n \n );\n register_taxonomy( 'Categories', array('projects'),$args);\n }",
"function my_taxonomy(){\n $args = array(\n \"labels\" => array(\n \"name\" => \"Brands\",\n \"singular_name\" => \"Brand\",\n ),\n \"public\" => true,\n \"hierarchical\" => true,\n );\n\n register_taxonomy(\"brands\", array(\"cars\"), $args);\n}",
"public function register_taxonomy() {\n\t\t$labels = array(\n\t\t\t'name' => __( 'Channels', 'p2-channels' ),\n\t\t\t'singular_name' => __( 'Channel', 'p2-channels' ),\n\t\t\t'search_items' => __( 'Search Channels', 'p2-channels' ),\n\t\t\t'popular_items' => __( 'Popular Channels', 'p2-channels' ),\n\t\t\t'all_items' => __( 'All Channels', 'p2-channels' ),\n\t\t\t'parent_item' => null,\n\t\t\t'parent_item_colon' => null,\n\t\t\t'edit_item' => __( 'Edit Channel', 'p2-channels' ), \n\t\t\t'update_item' => __( 'Update Channel', 'p2-channels' ),\n\t\t\t'add_new_item' => __( 'Add New Channel', 'p2-channels' ),\n\t\t\t'new_item_name' => __( 'New Channel Name', 'p2-channels' ),\n\t\t\t'separate_items_with_commas' => __( 'Separate channels with commas', 'p2-channels' ),\n\t\t\t'add_or_remove_items' => __( 'Add or remove channels', 'p2-channels' ),\n\t\t\t'choose_from_most_used' => __( 'Choose from the most used channels', 'p2-channels' ),\n\t\t\t'menu_name' => __( 'Channels', 'p2-channels' ),\n\t\t); \n\n\t\tregister_taxonomy( 'p2_channel', 'post', array(\n\t\t\t'hierarchical' => true,\n\t\t\t'labels' => $labels,\n\t\t\t'show_ui' => true,\n\t\t\t'update_count_callback' => '_update_post_term_count',\n\t\t\t'query_var' => true,\n\t\t\t'rewrite' => array( 'slug' => 'channel' ),\n\t\t) );\n\t}",
"public function register_taxonomy() {\n /**\n * Filter welcrafted_taxonomy_params_$this->base_taxonomy allows to redefine taxonomy params right before taxonomy registration.\n *\n * @param array $this->taxonomy_params Taxonomy params array\n */\n register_taxonomy( \n $this->taxonomy, [ $this->object_type ], \n apply_filters( 'welcrafted_taxonomy_params_' . $this->base_taxonomy, $this->taxonomy_params )\n );\n\n self::$reserved_terms[] = $this->taxonomy;\n }",
"function create_taxonomy() {\n\t$args = [\n\t\t'public' => false,\n\t\t'hierarchical' => false,\n\t];\n\n\tregister_taxonomy( get_name( 'slug' ), get_post_types(), $args );\n}",
"public function register_taxonomies()\n {\n }",
"public function register_taxonomies() {\n }",
"public function registerSubmissionCategoryTaxonomy()\n\t\t{\n\n\t\t\t$labels = array(\n\t\t\t\t'name'\t\t\t\t=> _x( $this->name, 'taxonomy general name' ),\n\t\t\t\t'singular_name'\t\t=> _x( $this->singularName, 'taxonomy singular name' ),\n\t\t\t\t'search_items'\t\t=> __( 'Search ' . $this->name ),\n\t\t\t\t'all_items'\t\t\t=> __( 'All ' . $this->name ),\n\t\t\t\t'parent_item'\t\t=> __( 'Parent ' . $this->singularName ),\n\t\t\t\t'parent_item_colon'\t=> __( 'Parent ' . $this->singularName . ' :' ),\n\t\t\t\t'edit_item'\t\t\t=> __( 'Edit ' . $this->singularName ),\n\t\t\t\t'update_item'\t\t=> __( 'Update ' . $this->singularName ),\n\t\t\t\t'add_new_item'\t\t=> __( 'Add New ' . $this->menuName ),\n\t\t\t\t'new_item_name'\t\t=> __( 'New ' . $this->singularName . ' Name' ),\n\t\t\t\t'menu_name'\t\t\t=> __( $this->menuName ),\n\t\t\t);\n\n\t\t\t$args = array(\n\t\t\t\t'hierarchical'\t\t\t=> false,\n\t\t\t\t'labels'\t\t\t\t=> $labels,\n\t\t\t\t'show_ui'\t\t\t\t=> true,\n\t\t\t\t'show_admin_column'\t\t=> true,\n\t\t\t\t'query_var'\t\t\t\t=> true,\n\t\t\t\t'rewrite'\t\t\t\t=> array( 'slug' => $this->slug ),\n\t\t\t);\n\n\t\t\tregister_taxonomy( $this->slug, $this->attachedOjects, $args );\n\n\t\t\tforeach( $this->attachedOjects as $key => $object ){\n\t\t\t\tregister_taxonomy_for_object_type( $this->slug, $object );\n\t\t\t}\n\n\t\t}",
"function register_taxonomies(){\n\t\t}",
"function ucsc_register_student_support_taxonomy()\n{\n\t$labels = array(\n\t\t'name' => 'Academic Support Type',\n\t\t'singular_name' => 'Academic Support Item',\n\t\t'search_items' => 'Search Academic Support Items',\n\t\t'all_items' => 'All Academic Support Items',\n\t\t'parent_item' => 'Parent Academic Support Item',\n\t\t'parent_item_colon' => 'Parent Academic Support Item:',\n\t\t'edit_item' => 'Edit Academic Support Item',\n\t\t'update_item' => 'Update Academic Support Item',\n\t\t'add_new_item' => 'Add Academic Support Item',\n\t\t'new_item_name' => 'New Academic Support Item',\n\t\t'menu_name' => 'Academic Support Types'\n\t);\n\n\tregister_taxonomy(\n\t\t'student-support-tax',\n\t\t'student-support',\n\t\tarray(\n\t\t\t'hierarchical' => true,\n\t\t\t'labels' => $labels,\n\t\t\t'show_ui' => true,\n\t\t\t'query_var' => true,\n\t\t\t'rewrite' => array('slug' => 'academic-support-tax'),\n\t\t\t'show_in_rest' => true, //Required for Gutenberg editor\n\t\t\t'rest_base' => 'academic-support-tax-api',\n\t\t\t'rest_controller_class' => 'WP_REST_Terms_Controller',\n\t\t)\n\t);\n}",
"public function register_taxonomies()\n\t{\n\t}",
"public function register_taxonomies()\n\t{ }",
"function register_discussionTags_tax() {\r\n $labels = array(\r\n 'name' => _x( 'Discussion Tags', 'taxonomy general name' ),\r\n 'singular_name' => _x( 'Discussion Tag', 'taxonomy singular name' ),\r\n 'add_new' => _x( 'Add New Discussion Tag', 'Institute Center'),\r\n 'add_new_item' => __( 'Add New Discussion Tag' ),\r\n 'edit_item' => __( 'Edit Discussion Tag' ),\r\n 'new_item' => __( 'New Discussion Tag' ),\r\n 'view_item' => __( 'View Discussion Tags' ),\r\n 'search_items' => __( 'Search Discussion Tags' ),\r\n 'not_found' => __( 'No Discussion Tags found' ),\r\n 'not_found_in_trash' => __( 'No Discussion Tags found in Trash' ),\r\n );\r\n\r\n $pages = array('discussion');\r\n\r\n $args = array(\r\n 'labels' => $labels,\r\n 'singular_label' => __('Discussion Tags'),\r\n 'public' => true,\r\n 'show_ui' => true,\r\n 'hierarchical' => true,\r\n 'show_tagcloud' => true,\r\n 'show_in_nav_menus' => false,\r\n 'has_archive' => true,\r\n 'rewrite' => array('slug' => 'discussion_tags', 'with_front' => false ),\r\n );\r\n register_taxonomy('discussion_tags', $pages, $args);\r\n }",
"function register_taxonomies() {\n\t}",
"function register_taxonomies() {\n\t}",
"function register_taxonomies() {\n\t}",
"function register_taxonomies() {\n\t}",
"function create_help_video_category_taxonomy() {\n\n $labels = array(\n 'name' => _x( 'Instructional Videos Categories', 'taxonomy general name' ),\n 'singular_name' => _x( 'Instructional Videos Category', 'taxonomy singular name' ),\n 'all_items' => __( 'All Instructional Video Categories' ),\n 'separate_items_with_commas' => __( 'Separate categories with commas' ),\n 'add_or_remove_items' => __( 'Add or remove categories' ),\n 'menu_name' => __( 'Categories' ),\n 'show_in_rest' => true,\n );\n\n register_taxonomy('help_video_category','help_video',array(\n 'hierarchical' => true,\n 'labels' => $labels,\n 'show_ui' => true,\n 'query_var' => true,\n 'show_in_rest' => true,\n 'show_admin_column' => true\n ));\n\n}",
"function register_discussion_tax() {\r\n $labels = array(\r\n 'name' => _x( 'Discussions', 'taxonomy general name' ),\r\n 'singular_name' => _x( 'Discussion', 'taxonomy singular name' ),\r\n 'add_new' => _x( 'Add New Discussion', 'Institute Center'),\r\n 'add_new_item' => __( 'Add New Discussion' ),\r\n 'edit_item' => __( 'Edit Discussion' ),\r\n 'new_item' => __( 'New Discussion' ),\r\n 'view_item' => __( 'View Discussions' ),\r\n 'search_items' => __( 'Search Discussions' ),\r\n 'not_found' => __( 'No Discussions found' ),\r\n 'not_found_in_trash' => __( 'No Discussions found in Trash' ),\r\n );\r\n\r\n $pages = array('discussion');\r\n\r\n $args = array(\r\n 'labels' => $labels,\r\n 'singular_label' => __('Discussion'),\r\n 'public' => true,\r\n 'show_ui' => true,\r\n 'hierarchical' => true,\r\n 'show_tagcloud' => false,\r\n 'show_in_nav_menus' => false,\r\n 'rewrite' => array('slug' => 'discussions', 'with_front' => false ),\r\n );\r\n register_taxonomy('discussions', $pages, $args);\r\n }",
"function create_sheridan_product_category_taxonomy() {\n\n $labels = array(\n 'name' => _x( 'Sheridan Product Categories', 'taxonomy general name' ),\n 'singular_name' => _x( 'Sheridan Product Category', 'taxonomy singular name' ),\n 'all_items' => __( 'All Sheridan Product Categories' ),\n 'separate_items_with_commas' => __( 'Separate categories with commas' ),\n 'add_or_remove_items' => __( 'Add or remove categories' ),\n 'menu_name' => __( 'Categories' ),\n 'show_in_rest' => true,\n ); \n\n register_taxonomy('sheridan_product_category','sheridan_product',array(\n 'hierarchical' => true,\n 'labels' => $labels,\n 'show_ui' => true,\n 'query_var' => true,\n 'show_in_rest' => true,\n ));\n\n}",
"public function registerTaxonomyFields()\n {\n }"
] | [
"0.7242266",
"0.71562296",
"0.69832695",
"0.6933273",
"0.68458945",
"0.6842436",
"0.68026686",
"0.67516404",
"0.6670377",
"0.6636792",
"0.662722",
"0.662147",
"0.6603151",
"0.6599483",
"0.6581878",
"0.6579909",
"0.65771663",
"0.6575274",
"0.6534406",
"0.6532767",
"0.6519656",
"0.6509488",
"0.65082324",
"0.65082324",
"0.65082324",
"0.65082324",
"0.65072614",
"0.6498872",
"0.64875907",
"0.6478938"
] | 0.79920447 | 0 |
Register a taxonomy for Documentation Tags. | protected function register_taxonomy_tags() {
$labels = array(
'name' => __( 'Doc Tags', 'documentation-post-type' ),
'singular_name' => __( 'Doc Tag', 'documentation-post-type' ),
'menu_name' => __( 'Doc Tags', 'documentation-post-type' ),
'edit_item' => __( 'Edit Doc Tag', 'documentation-post-type' ),
'update_item' => __( 'Update Doc Tag', 'documentation-post-type' ),
'add_new_item' => __( 'Add New Doc Tag', 'documentation-post-type' ),
'new_item_name' => __( 'New Doc Tag Name', 'documentation-post-type' ),
'parent_item' => __( 'Parent Doc Tag', 'documentation-post-type' ),
'parent_item_colon' => __( 'Parent Doc Tag:', 'documentation-post-type' ),
'all_items' => __( 'All Doc Tags', 'documentation-post-type' ),
'search_items' => __( 'Search Doc Tags', 'documentation-post-type' ),
'popular_items' => __( 'Popular Doc Tags', 'documentation-post-type' ),
'separate_items_with_commas' => __( 'Separate doc tags with commas', 'documentation-post-type' ),
'add_or_remove_items' => __( 'Add or remove doc tags', 'documentation-post-type' ),
'choose_from_most_used' => __( 'Choose from the most used doc tags', 'documentation-post-type' ),
'not_found' => __( 'No doc tags found.', 'documentation-post-type' ),
);
$args = array(
'labels' => $labels,
'public' => true,
'show_in_nav_menus' => true,
'show_ui' => true,
'show_tagcloud' => true,
'hierarchical' => false,
'rewrite' => array( 'slug' => 'documentation-tag' ),
'show_admin_column' => true,
'query_var' => true,
);
$args = apply_filters( 'documentation_post_type_tag_args', $args );
register_taxonomy( $this->taxonomies[1], $this->post_type, $args );
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function registerTaxonomy()\n {\n\n register_taxonomy($this->questionTaxonomy, $this->questionPostType, array(\n 'hierarchical' => true,\n 'labels' => $this->getTaxonomyLabels('Topic', 'Topics'),\n 'show_ui' => true,\n 'show_admin_column' => true,\n // 'update_count_callback' => '_update_post_term_count',\n 'query_var' => true,\n 'rewrite' => array('slug' => 'topic'),\n ));\n\n\n\n /*register_taxonomy($this->questionTaxonomy2, $this->questionPostType, array(\n 'hierarchical' => false,\n 'labels' => $this->getTaxonomyLabels('Test', 'Tests'),\n 'show_ui' => true,\n 'show_admin_column' => true,\n //'update_count_callback' => '_update_post_term_count',\n 'query_var' => true,\n 'rewrite' => array('slug' => 'test'),\n ));*/\n }",
"function wpschool_register_taxonomy() {\n register_taxonomy_for_object_type( 'post_tag', 'page' );\n register_taxonomy_for_object_type( 'category', 'page' );\n}",
"function register_discussionTags_tax() {\r\n $labels = array(\r\n 'name' => _x( 'Discussion Tags', 'taxonomy general name' ),\r\n 'singular_name' => _x( 'Discussion Tag', 'taxonomy singular name' ),\r\n 'add_new' => _x( 'Add New Discussion Tag', 'Institute Center'),\r\n 'add_new_item' => __( 'Add New Discussion Tag' ),\r\n 'edit_item' => __( 'Edit Discussion Tag' ),\r\n 'new_item' => __( 'New Discussion Tag' ),\r\n 'view_item' => __( 'View Discussion Tags' ),\r\n 'search_items' => __( 'Search Discussion Tags' ),\r\n 'not_found' => __( 'No Discussion Tags found' ),\r\n 'not_found_in_trash' => __( 'No Discussion Tags found in Trash' ),\r\n );\r\n\r\n $pages = array('discussion');\r\n\r\n $args = array(\r\n 'labels' => $labels,\r\n 'singular_label' => __('Discussion Tags'),\r\n 'public' => true,\r\n 'show_ui' => true,\r\n 'hierarchical' => true,\r\n 'show_tagcloud' => true,\r\n 'show_in_nav_menus' => false,\r\n 'has_archive' => true,\r\n 'rewrite' => array('slug' => 'discussion_tags', 'with_front' => false ),\r\n );\r\n register_taxonomy('discussion_tags', $pages, $args);\r\n }",
"protected function registerTaxonomy()\n {\n register_taxonomy('articleseries', array('post'), array(\n 'hierarchical' => true,\n 'labels' => array(\n 'name' => 'Artikelserien',\n 'singular_name' => 'Artikelserie',\n 'search_items' => 'Artikelserien suchen',\n 'all_items' => 'Alle Artikelserien',\n 'parent_item' => 'Elternserie',\n 'parent_item_colon' => 'Elternserie: ',\n 'edit_item' => 'Artikelserie bearbeiten',\n 'update_item' => 'Artikelserie bearbeiten',\n 'add_new_item' => 'Artikelserie hinzufügen',\n 'new_item_name' => 'Neue Artikelserie',\n 'menu_name' => 'Artikelserien',\n ),\n 'show_ui' => true,\n 'query_var' => true,\n 'rewrite' => array('slug' => 'artikelserie'),\n ));\n }",
"public function register_taxonomy() {\n /**\n * Filter welcrafted_taxonomy_params_$this->base_taxonomy allows to redefine taxonomy params right before taxonomy registration.\n *\n * @param array $this->taxonomy_params Taxonomy params array\n */\n register_taxonomy( \n $this->taxonomy, [ $this->object_type ], \n apply_filters( 'welcrafted_taxonomy_params_' . $this->base_taxonomy, $this->taxonomy_params )\n );\n\n self::$reserved_terms[] = $this->taxonomy;\n }",
"protected function register_taxonomy_categories() {\n\t\t$labels = array(\n\t\t\t'name' => __( 'Doc Categories', 'documentation-post-type' ),\n\t\t\t'singular_name' => __( 'Doc Category', 'documentation-post-type' ),\n\t\t\t'menu_name' => __( 'Doc Categories', 'documentation-post-type' ),\n\t\t\t'edit_item' => __( 'Edit Doc Category', 'documentation-post-type' ),\n\t\t\t'update_item' => __( 'Update Doc Category', 'documentation-post-type' ),\n\t\t\t'add_new_item' => __( 'Add New Doc Category', 'documentation-post-type' ),\n\t\t\t'new_item_name' => __( 'New Doc Category Name', 'documentation-post-type' ),\n\t\t\t'parent_item' => __( 'Parent Doc Category', 'documentation-post-type' ),\n\t\t\t'parent_item_colon' => __( 'Parent Doc Category:', 'documentation-post-type' ),\n\t\t\t'all_items' => __( 'All Doc Categories', 'documentation-post-type' ),\n\t\t\t'search_items' => __( 'Search Doc Categories', 'documentation-post-type' ),\n\t\t\t'popular_items' => __( 'Popular Doc Categories', 'documentation-post-type' ),\n\t\t\t'separate_items_with_commas' => __( 'Separate doc categories with commas', 'documentation-post-type' ),\n\t\t\t'add_or_remove_items' => __( 'Add or remove doc categories', 'documentation-post-type' ),\n\t\t\t'choose_from_most_used' => __( 'Choose from the most used doc categories', 'documentation-post-type' ),\n\t\t\t'not_found' => __( 'No doc categories found.', 'documentation-post-type' ),\n\t\t);\n\n\t\t$args = array(\n\t\t\t'labels' => $labels,\n\t\t\t'public' => true,\n\t\t\t'show_in_nav_menus' => true,\n\t\t\t'show_ui' => true,\n\t\t\t'show_tagcloud' => true,\n\t\t\t'hierarchical' => true,\n\t\t\t'rewrite' => array( 'slug' => 'documentation-category' ),\n\t\t\t'show_admin_column' => true,\n\t\t\t'query_var' => true,\n\t\t);\n\n\t\t$args = apply_filters( 'documentation_post_type_category_args', $args );\n\n\t\tregister_taxonomy( $this->taxonomies[0], $this->post_type, $args );\n\t}",
"public function register()\n {\n foreach ($this->taxonomies as $key => $data) {\n register_taxonomy($key, $data['object_type'], $data);\n }\n $this->taxonomyCanBeRegistrated = false;\n }",
"public function registerTaxonomyFields()\n {\n }",
"private function registerTagTax() {\n $labels = array(\n 'name' => esc_html__( 'Portfolio Tags', 'eltdf-core' ),\n 'singular_name' => esc_html__( 'Portfolio Tag', 'eltdf-core' ),\n 'search_items' => esc_html__( 'Search Portfolio Tags','eltdf-core' ),\n 'all_items' => esc_html__( 'All Portfolio Tags','eltdf-core' ),\n 'parent_item' => esc_html__( 'Parent Portfolio Tag','eltdf-core' ),\n 'parent_item_colon' => esc_html__( 'Parent Portfolio Tags:','eltdf-core' ),\n 'edit_item' => esc_html__( 'Edit Portfolio Tag','eltdf-core' ),\n 'update_item' => esc_html__( 'Update Portfolio Tag','eltdf-core' ),\n 'add_new_item' => esc_html__( 'Add New Portfolio Tag','eltdf-core' ),\n 'new_item_name' => esc_html__( 'New Portfolio Tag Name','eltdf-core' ),\n 'menu_name' => esc_html__( 'Portfolio Tags','eltdf-core' ),\n );\n\n register_taxonomy('portfolio-tag',array($this->base), array(\n 'hierarchical' => false,\n 'labels' => $labels,\n 'show_ui' => true,\n 'query_var' => true,\n 'show_admin_column' => true,\n 'rewrite' => array( 'slug' => 'portfolio-tag' ),\n ));\n }",
"function orgright_client_config_taxonomy() {\n // Add free-tagging vocabulary for content\n $vocab = array(\n 'name' => st('Tags'),\n 'description' => st('Free-tagging vocabulary for all content items'),\n 'multiple' => '0',\n 'required' => '0',\n 'hierarchy' => '0',\n 'relations' => '1',\n 'tags' => '1',\n 'module' => 'taxonomy',\n );\n taxonomy_save_vocabulary($vocab);\n\n // Store the vocabulary id\n variable_set('orgright_client_tags_vid', $vocab['vid']);\n}",
"public function init__registerTaxonomy()\n\t\t{\n\t\t\t\n\t\t\t$this->registerSubmissionCategoryTaxonomy();\n\n\t\t}",
"function sample_taxonomies() {\n\n\n // Add new taxonomy, NOT hierarchical (like tags)\n $labels = array(\n 'name' => _x( 'Sample Tags', 'taxonomy general name' ),\n 'singular_name' => _x( 'Sample Tag', 'taxonomy singular name' ),\n 'search_items' => __( 'Search Tags' ),\n 'popular_items' => __( 'Popular Tags' ),\n 'all_items' => __( 'All Tags' ),\n 'parent_item' => null,\n 'parent_item_colon' => null,\n 'edit_item' => __( 'Edit Tag' ),\n 'update_item' => __( 'Update Tag' ),\n 'add_new_item' => __( 'Add New Tag' ),\n 'new_item_name' => __( 'New Tag Name' ),\n 'separate_items_with_commas' => __( 'Separate Tags with commas' ),\n 'add_or_remove_items' => __( 'Add or remove tag' ),\n 'choose_from_most_used' => __( 'Choose from the most used tag' ),\n 'not_found' => __( 'No tag found.' ),\n 'menu_name' => __( 'Sample Tags' ),\n );\n\n $args = array(\n 'hierarchical' => true,\n 'labels' => $labels,\n 'show_ui' => true,\n 'show_admin_column' => true,\n 'update_count_callback' => '_update_post_term_count',\n 'query_var' => true,\n 'rewrite' => array( 'slug' => 'sample_tag' ),\n );\n\n register_taxonomy( 'sample_tag', 'sample', $args );\n}",
"function register_taxonomies(){\n\t\t}",
"public function register_taxonomies()\n {\n }",
"public function register_taxonomy_do(){\n\t\t\n\t register_taxonomy( $this->_str_taxonomy, $this->_arr_object_type, $this->_arr_args_all );\n\t}",
"public function register_taxonomies() {\n }",
"function create_tag_taxonomies() \n{\n // Add new taxonomy, NOT hierarchical (like tags)\n $labels = array(\n 'name' => _x( 'Palavras chavs', 'taxonomy general name' ),\n 'singular_name' => _x( 'Palavra chave', 'taxonomy singular name' ),\n 'search_items' => __( 'Buscar palavras chaves' ),\n 'popular_items' => __( 'Palavras chaves mais usadas' ),\n 'all_items' => __( 'Todos as palavras chaves' ),\n 'parent_item' => null,\n 'parent_item_colon' => null,\n 'edit_item' => __( 'Editar palavra chave' ), \n 'update_item' => __( 'Atualizar palavra chave' ),\n 'add_new_item' => __( 'Adicionar palavra chave' ),\n 'new_item_name' => __( 'Nova palavras chave' ),\n 'separate_items_with_commas' => __( 'Separe palavras chaves com virgulas' ),\n 'add_or_remove_items' => __( 'Adicionar ou remover palavras chaves' ),\n 'choose_from_most_used' => __( 'Escolha entre as palavras chaves mais usadas' ),\n 'menu_name' => __( 'Filtros' ),\n ); \n\n register_taxonomy('Palavra chave','acervo',array(\n 'hierarchical' => false,\n 'labels' => $labels,\n 'show_ui' => true,\n 'update_count_callback' => '_update_post_term_count',\n 'query_var' => true,\n 'rewrite' => array( 'slug' => 'Palavra chave' ),\n ));\n}",
"protected function register_taxonomy_product_tags() {\n\n\t\t$labels = array(\n\t\t\t'name' => __( 'Product Tags', 'documentation-post-type' ),\n\t\t\t'singular_name' => __( 'Product Tag', 'documentation-post-type' ),\n\t\t\t'menu_name' => __( 'Product Tags', 'documentation-post-type' ),\n\t\t\t'edit_item' => __( 'Edit Product Tag', 'documentation-post-type' ),\n\t\t\t'update_item' => __( 'Update Product Tag', 'documentation-post-type' ),\n\t\t\t'add_new_item' => __( 'Add New Product Tag', 'documentation-post-type' ),\n\t\t\t'new_item_name' => __( 'New Product Tag Name', 'documentation-post-type' ),\n\t\t\t'parent_item' => __( 'Parent Product Tag', 'documentation-post-type' ),\n\t\t\t'parent_item_colon' => __( 'Parent Product Tag:', 'documentation-post-type' ),\n\t\t\t'all_items' => __( 'All Product Tags', 'documentation-post-type' ),\n\t\t\t'search_items' => __( 'Search Product Tags', 'documentation-post-type' ),\n\t\t\t'popular_items' => __( 'Popular Product Tags', 'documentation-post-type' ),\n\t\t\t'separate_items_with_commas' => __( 'Separate product tags with commas', 'documentation-post-type' ),\n\t\t\t'add_or_remove_items' => __( 'Add or remove product tags', 'documentation-post-type' ),\n\t\t\t'choose_from_most_used' => __( 'Choose from the most used product tags', 'documentation-post-type' ),\n\t\t\t'not_found' => __( 'No product tags found.', 'documentation-post-type' ),\n\t\t);\n\n\t\t$args = array(\n\t\t\t'labels' => $labels,\n\t\t\t'public' => true,\n\t\t\t'show_in_nav_menus' => true,\n\t\t\t'show_ui' => true,\n\t\t\t'show_tagcloud' => true,\n\t\t\t'hierarchical' => false,\n\t\t\t'rewrite' => array( 'slug' => 'document-tag' ),\n\t\t\t'show_admin_column' => true,\n\t\t\t'query_var' => true,\n\t\t);\n\n\t\t$args = apply_filters( 'documentation_post_type_product_args', $args );\n\n\t\tregister_taxonomy( $this->taxonomies[2], $this->post_type, $args );\n\n\t}",
"public function register_taxonomies()\n\t{ }",
"function create_tag_taxonomies() \n{\n // Add new taxonomy, NOT hierarchical (like tags)\n $labels = array(\n 'name' => _x( 'Tags', 'taxonomy general name' ),\n 'singular_name' => _x( 'Tag', 'taxonomy singular name' ),\n 'search_items' => __( 'Search Tags' ),\n 'popular_items' => __( 'Popular Tags' ),\n 'all_items' => __( 'All Tags' ),\n 'parent_item' => null,\n 'parent_item_colon' => null,\n 'edit_item' => __( 'Edit Tag' ), \n 'update_item' => __( 'Update Tag' ),\n 'add_new_item' => __( 'Add New Tag' ),\n 'new_item_name' => __( 'New Tag Name' ),\n 'separate_items_with_commas' => __( 'Separate tags with commas' ),\n 'add_or_remove_items' => __( 'Add or remove tags' ),\n 'choose_from_most_used' => __( 'Choose from the most used tags' ),\n 'menu_name' => __( 'Tags' ),\n ); \n\n register_taxonomy('tag_recruitment','tuyen_dung',array(\n 'hierarchical' => false,\n 'labels' => $labels,\n 'show_ui' => true,\n 'update_count_callback' => '_update_post_term_count',\n 'query_var' => true,\n 'rewrite' => array( 'slug' => 'tag' ),\n ));\n}",
"function register_taxonomies() {\n\t}",
"function register_taxonomies() {\n\t}",
"function register_taxonomies() {\n\t}",
"function register_taxonomies() {\n\t}",
"public function register_taxonomies()\n\t{\n\t}",
"function cp_add_gallery_tag_custom_taxonomy() {\n\n\t/**\n\t * Taxonomy: 갤러리 태그.\n\t */\n\n\t$labels = array(\n\t\t\"name\" => __( \"갤러리 태그\", \"uncode\" ),\n\t\t\"singular_name\" => __( \"갤러리 태그\", \"uncode\" ),\n\t);\n\n\t$args = array(\n\t\t\"label\" => __( \"갤러리 태그\", \"uncode\" ),\n\t\t\"labels\" => $labels,\n\t\t\"public\" => true,\n\t\t\"publicly_queryable\" => true,\n\t\t\"hierarchical\" => false,\n\t\t\"show_ui\" => true,\n\t\t\"show_in_menu\" => true,\n\t\t\"show_in_nav_menus\" => true,\n\t\t\"query_var\" => true,\n\t\t\"rewrite\" => array( 'slug' => 'gallery_tag', 'with_front' => true, ),\n\t\t\"show_admin_column\" => false,\n\t\t\"show_in_rest\" => true,\n\t\t\"rest_base\" => \"gallery_tag\",\n\t\t\"rest_controller_class\" => \"WP_REST_Terms_Controller\",\n\t\t\"show_in_quick_edit\" => true,\n\t\t);\n\tregister_taxonomy( \"gallery_tag\", array( \"counter_gallery\" ), $args );\n}",
"public function register()\r\n {\r\n add_action('init', function() {\r\n register_taxonomy(\r\n $this->name,\r\n $this->object_type,\r\n $this->getPublicPropertiesValues()\r\n );\r\n });\r\n }",
"public function register_taxonomies() {\n\n\t}",
"public function register_taxonomies() {\n\n\t}",
"public function register_taxonomies() {\n\n\t}"
] | [
"0.6830139",
"0.68137324",
"0.6779246",
"0.6773862",
"0.6702443",
"0.66955304",
"0.66901886",
"0.66715765",
"0.6630853",
"0.66199446",
"0.66162544",
"0.66022295",
"0.6591181",
"0.65835303",
"0.6583416",
"0.6569522",
"0.6551518",
"0.6547014",
"0.6539259",
"0.6535329",
"0.6533584",
"0.6533584",
"0.6533584",
"0.6533584",
"0.65248156",
"0.6514423",
"0.64415413",
"0.64320093",
"0.64320093",
"0.64320093"
] | 0.81548613 | 0 |
Register a taxonomy for Product Tags. | protected function register_taxonomy_product_tags() {
$labels = array(
'name' => __( 'Product Tags', 'documentation-post-type' ),
'singular_name' => __( 'Product Tag', 'documentation-post-type' ),
'menu_name' => __( 'Product Tags', 'documentation-post-type' ),
'edit_item' => __( 'Edit Product Tag', 'documentation-post-type' ),
'update_item' => __( 'Update Product Tag', 'documentation-post-type' ),
'add_new_item' => __( 'Add New Product Tag', 'documentation-post-type' ),
'new_item_name' => __( 'New Product Tag Name', 'documentation-post-type' ),
'parent_item' => __( 'Parent Product Tag', 'documentation-post-type' ),
'parent_item_colon' => __( 'Parent Product Tag:', 'documentation-post-type' ),
'all_items' => __( 'All Product Tags', 'documentation-post-type' ),
'search_items' => __( 'Search Product Tags', 'documentation-post-type' ),
'popular_items' => __( 'Popular Product Tags', 'documentation-post-type' ),
'separate_items_with_commas' => __( 'Separate product tags with commas', 'documentation-post-type' ),
'add_or_remove_items' => __( 'Add or remove product tags', 'documentation-post-type' ),
'choose_from_most_used' => __( 'Choose from the most used product tags', 'documentation-post-type' ),
'not_found' => __( 'No product tags found.', 'documentation-post-type' ),
);
$args = array(
'labels' => $labels,
'public' => true,
'show_in_nav_menus' => true,
'show_ui' => true,
'show_tagcloud' => true,
'hierarchical' => false,
'rewrite' => array( 'slug' => 'document-tag' ),
'show_admin_column' => true,
'query_var' => true,
);
$args = apply_filters( 'documentation_post_type_product_args', $args );
register_taxonomy( $this->taxonomies[2], $this->post_type, $args );
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function wp_recipe_tags_init() {\n\tregister_taxonomy(\n\t\t'recipe-tags',\n\t\t'recipes',\n\t\tarray(\n\t\t\t'label' => __( 'Recipe Tags' ),\n\t\t\t'sort' => true,\n\t\t\t'args' => array( 'orderby' => 'term_order' ),\n\t\t\t'update_count_callback' => '_update_post_term_count',\n\t\t\t'rewrite' => array( 'slug' => 'recipe-tag')\n\t\t)\n\t);\n}",
"public function register_taxonomy() {\n /**\n * Filter welcrafted_taxonomy_params_$this->base_taxonomy allows to redefine taxonomy params right before taxonomy registration.\n *\n * @param array $this->taxonomy_params Taxonomy params array\n */\n register_taxonomy( \n $this->taxonomy, [ $this->object_type ], \n apply_filters( 'welcrafted_taxonomy_params_' . $this->base_taxonomy, $this->taxonomy_params )\n );\n\n self::$reserved_terms[] = $this->taxonomy;\n }",
"function create_tag_taxonomies() \n{\n // Add new taxonomy, NOT hierarchical (like tags)\n $labels = array(\n 'name' => _x( 'Tags', 'taxonomy general name' ),\n 'singular_name' => _x( 'Tag', 'taxonomy singular name' ),\n 'search_items' => __( 'Search Tags' ),\n 'popular_items' => __( 'Popular Tags' ),\n 'all_items' => __( 'All Tags' ),\n 'parent_item' => null,\n 'parent_item_colon' => null,\n 'edit_item' => __( 'Edit Tag' ), \n 'update_item' => __( 'Update Tag' ),\n 'add_new_item' => __( 'Add New Tag' ),\n 'new_item_name' => __( 'New Tag Name' ),\n 'separate_items_with_commas' => __( 'Separate tags with commas' ),\n 'add_or_remove_items' => __( 'Add or remove tags' ),\n 'choose_from_most_used' => __( 'Choose from the most used tags' ),\n 'menu_name' => __( 'Tags' ),\n ); \n\n register_taxonomy('tag_recruitment','tuyen_dung',array(\n 'hierarchical' => false,\n 'labels' => $labels,\n 'show_ui' => true,\n 'update_count_callback' => '_update_post_term_count',\n 'query_var' => true,\n 'rewrite' => array( 'slug' => 'tag' ),\n ));\n}",
"protected function register_taxonomy_tags() {\n\n\t\t$labels = array(\n\t\t\t'name' => __( 'Doc Tags', 'documentation-post-type' ),\n\t\t\t'singular_name' => __( 'Doc Tag', 'documentation-post-type' ),\n\t\t\t'menu_name' => __( 'Doc Tags', 'documentation-post-type' ),\n\t\t\t'edit_item' => __( 'Edit Doc Tag', 'documentation-post-type' ),\n\t\t\t'update_item' => __( 'Update Doc Tag', 'documentation-post-type' ),\n\t\t\t'add_new_item' => __( 'Add New Doc Tag', 'documentation-post-type' ),\n\t\t\t'new_item_name' => __( 'New Doc Tag Name', 'documentation-post-type' ),\n\t\t\t'parent_item' => __( 'Parent Doc Tag', 'documentation-post-type' ),\n\t\t\t'parent_item_colon' => __( 'Parent Doc Tag:', 'documentation-post-type' ),\n\t\t\t'all_items' => __( 'All Doc Tags', 'documentation-post-type' ),\n\t\t\t'search_items' => __( 'Search Doc Tags', 'documentation-post-type' ),\n\t\t\t'popular_items' => __( 'Popular Doc Tags', 'documentation-post-type' ),\n\t\t\t'separate_items_with_commas' => __( 'Separate doc tags with commas', 'documentation-post-type' ),\n\t\t\t'add_or_remove_items' => __( 'Add or remove doc tags', 'documentation-post-type' ),\n\t\t\t'choose_from_most_used' => __( 'Choose from the most used doc tags', 'documentation-post-type' ),\n\t\t\t'not_found' => __( 'No doc tags found.', 'documentation-post-type' ),\n\t\t);\n\n\t\t$args = array(\n\t\t\t'labels' => $labels,\n\t\t\t'public' => true,\n\t\t\t'show_in_nav_menus' => true,\n\t\t\t'show_ui' => true,\n\t\t\t'show_tagcloud' => true,\n\t\t\t'hierarchical' => false,\n\t\t\t'rewrite' => array( 'slug' => 'documentation-tag' ),\n\t\t\t'show_admin_column' => true,\n\t\t\t'query_var' => true,\n\t\t);\n\n\t\t$args = apply_filters( 'documentation_post_type_tag_args', $args );\n\n\t\tregister_taxonomy( $this->taxonomies[1], $this->post_type, $args );\n\n\t}",
"function create_tag_taxonomies() \n{\n // Add new taxonomy, NOT hierarchical (like tags)\n $labels = array(\n 'name' => _x( 'Palavras chavs', 'taxonomy general name' ),\n 'singular_name' => _x( 'Palavra chave', 'taxonomy singular name' ),\n 'search_items' => __( 'Buscar palavras chaves' ),\n 'popular_items' => __( 'Palavras chaves mais usadas' ),\n 'all_items' => __( 'Todos as palavras chaves' ),\n 'parent_item' => null,\n 'parent_item_colon' => null,\n 'edit_item' => __( 'Editar palavra chave' ), \n 'update_item' => __( 'Atualizar palavra chave' ),\n 'add_new_item' => __( 'Adicionar palavra chave' ),\n 'new_item_name' => __( 'Nova palavras chave' ),\n 'separate_items_with_commas' => __( 'Separe palavras chaves com virgulas' ),\n 'add_or_remove_items' => __( 'Adicionar ou remover palavras chaves' ),\n 'choose_from_most_used' => __( 'Escolha entre as palavras chaves mais usadas' ),\n 'menu_name' => __( 'Filtros' ),\n ); \n\n register_taxonomy('Palavra chave','acervo',array(\n 'hierarchical' => false,\n 'labels' => $labels,\n 'show_ui' => true,\n 'update_count_callback' => '_update_post_term_count',\n 'query_var' => true,\n 'rewrite' => array( 'slug' => 'Palavra chave' ),\n ));\n}",
"private function registerTagTax() {\n $labels = array(\n 'name' => esc_html__( 'Portfolio Tags', 'eltdf-core' ),\n 'singular_name' => esc_html__( 'Portfolio Tag', 'eltdf-core' ),\n 'search_items' => esc_html__( 'Search Portfolio Tags','eltdf-core' ),\n 'all_items' => esc_html__( 'All Portfolio Tags','eltdf-core' ),\n 'parent_item' => esc_html__( 'Parent Portfolio Tag','eltdf-core' ),\n 'parent_item_colon' => esc_html__( 'Parent Portfolio Tags:','eltdf-core' ),\n 'edit_item' => esc_html__( 'Edit Portfolio Tag','eltdf-core' ),\n 'update_item' => esc_html__( 'Update Portfolio Tag','eltdf-core' ),\n 'add_new_item' => esc_html__( 'Add New Portfolio Tag','eltdf-core' ),\n 'new_item_name' => esc_html__( 'New Portfolio Tag Name','eltdf-core' ),\n 'menu_name' => esc_html__( 'Portfolio Tags','eltdf-core' ),\n );\n\n register_taxonomy('portfolio-tag',array($this->base), array(\n 'hierarchical' => false,\n 'labels' => $labels,\n 'show_ui' => true,\n 'query_var' => true,\n 'show_admin_column' => true,\n 'rewrite' => array( 'slug' => 'portfolio-tag' ),\n ));\n }",
"function cp_add_gallery_tag_custom_taxonomy() {\n\n\t/**\n\t * Taxonomy: 갤러리 태그.\n\t */\n\n\t$labels = array(\n\t\t\"name\" => __( \"갤러리 태그\", \"uncode\" ),\n\t\t\"singular_name\" => __( \"갤러리 태그\", \"uncode\" ),\n\t);\n\n\t$args = array(\n\t\t\"label\" => __( \"갤러리 태그\", \"uncode\" ),\n\t\t\"labels\" => $labels,\n\t\t\"public\" => true,\n\t\t\"publicly_queryable\" => true,\n\t\t\"hierarchical\" => false,\n\t\t\"show_ui\" => true,\n\t\t\"show_in_menu\" => true,\n\t\t\"show_in_nav_menus\" => true,\n\t\t\"query_var\" => true,\n\t\t\"rewrite\" => array( 'slug' => 'gallery_tag', 'with_front' => true, ),\n\t\t\"show_admin_column\" => false,\n\t\t\"show_in_rest\" => true,\n\t\t\"rest_base\" => \"gallery_tag\",\n\t\t\"rest_controller_class\" => \"WP_REST_Terms_Controller\",\n\t\t\"show_in_quick_edit\" => true,\n\t\t);\n\tregister_taxonomy( \"gallery_tag\", array( \"counter_gallery\" ), $args );\n}",
"public function register()\n {\n foreach ($this->taxonomies as $key => $data) {\n register_taxonomy($key, $data['object_type'], $data);\n }\n $this->taxonomyCanBeRegistrated = false;\n }",
"function sample_taxonomies() {\n\n\n // Add new taxonomy, NOT hierarchical (like tags)\n $labels = array(\n 'name' => _x( 'Sample Tags', 'taxonomy general name' ),\n 'singular_name' => _x( 'Sample Tag', 'taxonomy singular name' ),\n 'search_items' => __( 'Search Tags' ),\n 'popular_items' => __( 'Popular Tags' ),\n 'all_items' => __( 'All Tags' ),\n 'parent_item' => null,\n 'parent_item_colon' => null,\n 'edit_item' => __( 'Edit Tag' ),\n 'update_item' => __( 'Update Tag' ),\n 'add_new_item' => __( 'Add New Tag' ),\n 'new_item_name' => __( 'New Tag Name' ),\n 'separate_items_with_commas' => __( 'Separate Tags with commas' ),\n 'add_or_remove_items' => __( 'Add or remove tag' ),\n 'choose_from_most_used' => __( 'Choose from the most used tag' ),\n 'not_found' => __( 'No tag found.' ),\n 'menu_name' => __( 'Sample Tags' ),\n );\n\n $args = array(\n 'hierarchical' => true,\n 'labels' => $labels,\n 'show_ui' => true,\n 'show_admin_column' => true,\n 'update_count_callback' => '_update_post_term_count',\n 'query_var' => true,\n 'rewrite' => array( 'slug' => 'sample_tag' ),\n );\n\n register_taxonomy( 'sample_tag', 'sample', $args );\n}",
"function create_products_taxonomy()\n{\n $labels = array(\n 'name' => _x('Разделы меню', 'light'),\n 'singular_name' => _x('Разделы меню', 'light'),\n 'search_items' => __('Поиск Разделы меню'),\n 'popular_items' => __('Разделы меню'),\n 'all_items' => __('Разделы меню'),\n 'parent_item' => null,\n 'parent_item_colon' => null,\n 'menu_name' => __('Разделы меню'),\n );\n// Now register the non-hierarchical taxonomy like tag\n register_taxonomy('category_menu', 'menus', array(\n 'hierarchical' => true,\n 'labels' => $labels,\n 'show_ui' => true,\n 'show_admin_column' => true,\n 'update_count_callback' => '_update_post_term_count',\n 'query_var' => true,\n 'rewrite' => array('slug' => 'category_menu'),\n ));\n}",
"public function registerTaxonomy()\n {\n\n register_taxonomy($this->questionTaxonomy, $this->questionPostType, array(\n 'hierarchical' => true,\n 'labels' => $this->getTaxonomyLabels('Topic', 'Topics'),\n 'show_ui' => true,\n 'show_admin_column' => true,\n // 'update_count_callback' => '_update_post_term_count',\n 'query_var' => true,\n 'rewrite' => array('slug' => 'topic'),\n ));\n\n\n\n /*register_taxonomy($this->questionTaxonomy2, $this->questionPostType, array(\n 'hierarchical' => false,\n 'labels' => $this->getTaxonomyLabels('Test', 'Tests'),\n 'show_ui' => true,\n 'show_admin_column' => true,\n //'update_count_callback' => '_update_post_term_count',\n 'query_var' => true,\n 'rewrite' => array('slug' => 'test'),\n ));*/\n }",
"protected function registerTaxonomy()\n {\n register_taxonomy('articleseries', array('post'), array(\n 'hierarchical' => true,\n 'labels' => array(\n 'name' => 'Artikelserien',\n 'singular_name' => 'Artikelserie',\n 'search_items' => 'Artikelserien suchen',\n 'all_items' => 'Alle Artikelserien',\n 'parent_item' => 'Elternserie',\n 'parent_item_colon' => 'Elternserie: ',\n 'edit_item' => 'Artikelserie bearbeiten',\n 'update_item' => 'Artikelserie bearbeiten',\n 'add_new_item' => 'Artikelserie hinzufügen',\n 'new_item_name' => 'Neue Artikelserie',\n 'menu_name' => 'Artikelserien',\n ),\n 'show_ui' => true,\n 'query_var' => true,\n 'rewrite' => array('slug' => 'artikelserie'),\n ));\n }",
"function crunchify_create_the_attaction_taxonomy() {\n register_taxonomy(\n 'brand', \t\t\t\t\t// This is a name of the taxonomy. Make sure it's not a capital letter and no space in between\n 'product', \t\t\t//post type name\n array(\n 'hierarchical' => true,\n 'label' => 'برند', \t//Display name\n 'query_var' => true,\n 'has_archive' => true,\n 'rewrite' => array('slug' => 'attraction')\n )\n );\n}",
"public function init__registerTaxonomy()\n\t\t{\n\t\t\t\n\t\t\t$this->registerSubmissionCategoryTaxonomy();\n\n\t\t}",
"function create_sheridan_product_category_taxonomy() {\n\n $labels = array(\n 'name' => _x( 'Sheridan Product Categories', 'taxonomy general name' ),\n 'singular_name' => _x( 'Sheridan Product Category', 'taxonomy singular name' ),\n 'all_items' => __( 'All Sheridan Product Categories' ),\n 'separate_items_with_commas' => __( 'Separate categories with commas' ),\n 'add_or_remove_items' => __( 'Add or remove categories' ),\n 'menu_name' => __( 'Categories' ),\n 'show_in_rest' => true,\n ); \n\n register_taxonomy('sheridan_product_category','sheridan_product',array(\n 'hierarchical' => true,\n 'labels' => $labels,\n 'show_ui' => true,\n 'query_var' => true,\n 'show_in_rest' => true,\n ));\n\n}",
"function wpschool_register_taxonomy() {\n register_taxonomy_for_object_type( 'post_tag', 'page' );\n register_taxonomy_for_object_type( 'category', 'page' );\n}",
"function create_tags() {\n $labels = array(\n 'name' => _x( 'Zoektermen', 'Abonnement zoektermen' ),\n 'singular_name' => _x( 'Zoekterm', 'Abonnement zoekterm' ),\n 'search_items' => __( 'Zoek zoektermen' ),\n 'popular_items' => __( 'Populaire zoektermen' ),\n 'all_items' => __( 'Alle zoektermen' ),\n 'parent_item' => null,\n 'parent_item_colon' => null,\n 'edit_item' => __( 'Bewerk zoekterm' ), \n 'update_item' => __( 'Werk zoekterm bij' ),\n 'add_new_item' => __( 'Voeg nieuwe zoekterm toe' ),\n 'new_item_name' => __( 'Nieuwe zoekterm naam' ),\n 'separate_items_with_commas' => __( 'Scheid zoektermen met komma\\'s' ),\n 'add_or_remove_items' => __( 'Zoektermen toevoegen of verwijderen' ),\n 'choose_from_most_used' => __( 'Kies uit meestgebruikte zoektermen' ),\n 'menu_name' => __( 'Zoektermen' ),\n ); \n\n register_taxonomy($this->prefix . 'search_term', array($this->post_type), array(\n 'hierarchical' => false,\n 'labels' => $labels,\n 'show_ui' => true,\n 'show_admin_column' => true,\n 'query_var' => true,\n 'rewrite' => array( 'slug' => $this->prefix . 'subscription_search_term' ),\n ));\n }",
"public function register()\r\n {\r\n add_action('init', function() {\r\n register_taxonomy(\r\n $this->name,\r\n $this->object_type,\r\n $this->getPublicPropertiesValues()\r\n );\r\n });\r\n }",
"public function registerTaxonomyFields()\n {\n }",
"public function register_taxonomy_do(){\n\t\t\n\t register_taxonomy( $this->_str_taxonomy, $this->_arr_object_type, $this->_arr_args_all );\n\t}",
"function orgright_client_config_taxonomy() {\n // Add free-tagging vocabulary for content\n $vocab = array(\n 'name' => st('Tags'),\n 'description' => st('Free-tagging vocabulary for all content items'),\n 'multiple' => '0',\n 'required' => '0',\n 'hierarchy' => '0',\n 'relations' => '1',\n 'tags' => '1',\n 'module' => 'taxonomy',\n );\n taxonomy_save_vocabulary($vocab);\n\n // Store the vocabulary id\n variable_set('orgright_client_tags_vid', $vocab['vid']);\n}",
"function bbp_register_taxonomies()\n{\n}",
"function register_taxonomies(){\n\t\t}",
"function register_taxonomies() {\n\t}",
"function register_taxonomies() {\n\t}",
"function register_taxonomies() {\n\t}",
"function register_taxonomies() {\n\t}",
"public function register_taxonomies()\n {\n }",
"function my_taxonomy(){\n $args = array(\n \"labels\" => array(\n \"name\" => \"Brands\",\n \"singular_name\" => \"Brand\",\n ),\n \"public\" => true,\n \"hierarchical\" => true,\n );\n\n register_taxonomy(\"brands\", array(\"cars\"), $args);\n}",
"public function register_taxonomies() {\n }"
] | [
"0.7246173",
"0.7133093",
"0.70710164",
"0.705089",
"0.7047706",
"0.70476973",
"0.6961613",
"0.6959738",
"0.6906395",
"0.6879003",
"0.6826752",
"0.67950356",
"0.67705184",
"0.6708915",
"0.6648637",
"0.6637721",
"0.661981",
"0.6615838",
"0.65958905",
"0.65767574",
"0.6564475",
"0.6552326",
"0.6502458",
"0.64657485",
"0.64657485",
"0.64657485",
"0.64657485",
"0.64642864",
"0.6464033",
"0.6452186"
] | 0.8037581 | 0 |
Check if the method returns true if pointsComputer is over 100 | public function testGameStatusPointsComputerOver100()
{
$game = new Game(0, 101);
$res = $game->checkGameStatus();
$exp = true;
$this->assertEquals($exp, $res);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function testGameStatusPointsBelow100()\n {\n $game = new Game();\n $res = $game->checkGameStatus();\n $exp = false;\n $this->assertEquals($exp, $res);\n }",
"public function testGameStatusPointsPlayer1Over100()\n {\n $game = new Game(101, 0);\n $res = $game->checkGameStatus();\n $exp = true;\n $this->assertEquals($exp, $res);\n }",
"public function checkGameStatus() : bool\n {\n if ($this->pointsPlayer1 >= 100 || $this->pointsComputer >= 100) {\n return true;\n } else {\n return false;\n }\n }",
"function cb_reached($current)\n{\n echo \"Current is greater than 1A: \" . $current / 1000.0 . \"\\n\";\n}",
"public function subtractPoints(): bool\n {\n // TODO: Subtract points from the user here, return true if the result is correct.\n $this->account;\n $this->price;\n return true;\n }",
"public function testGetPointsComputer()\n {\n $game = new Game();\n $res = $game->getPointsComputer();\n $exp = 0;\n $this->assertEquals($exp, $res);\n }",
"public function testMakeDecisionReturnSave()\n {\n $computer = new ComputerPlayer();\n $computer->addScore(90); \n\n for ($i = 0; $i <= 100; $i++) {\n $computer->dices->roll();\n \n $rolls = $computer->dices->getHistogramSerie();\n $roundPoints = array_sum($rolls);\n\n\n if ($roundPoints > 100) {\n $this->assertEquals(\"save\", $computer->makeDecision());\n }\n\n if ($computer->getscore() + $roundPoints >= 100) {\n $this->assertEquals(\"save\", $computer->makeDecision());\n }\n }\n }",
"public function isUnderLimitTicket()\n {\n $actualDate = new \\DateTime();\n\n if ((1000 - count($this->em->getRepository(Ticket::class)->getTicketsByDay($actualDate))) < 100) {\n $this->session->getFlashBag()->add(\n 'alert',\n 'Alert ! Il reste moins de 100 billets sur la journée en cours, ne perdez pas de temps'\n );\n }\n }",
"public static function isLessThanHundred($args) : bool\n {\n $support = new Support(); \n $argsP = $support->prepareValues($args); \n foreach($argsP as $val) {\n abs($val) > 100 ? $res = false : $res= true; \n }\n return $res;\n }",
"public function checkForLose() {\n\n if ($this->lives <= 0) {\n return true;\n } else {\n return false;\n }\n\n }",
"public function testSavePointsComputer()\n {\n $game = new Game();\n $game->roll();\n\n $totalPoints = $game->sumCurrentGameRound();\n $game->savePoints(\"Dator\");\n $savedPointsComputer = $game->getPointsComputer();\n\n $this->assertEquals($totalPoints, $savedPointsComputer);\n }",
"public function getPassedIndicator()\n {\n switch($this->metric->getObjectiveActionCode())\n {\n case 'reach':\n\n if ($this->getScore()->getValue() >= $this->metric->getScore()->getValue())\n {\n return true;\n }\n\n break;\n\n default:\n\n break;\n }\n\n return false;\n }",
"public function hasLimit();",
"public function getPoints(): int\n {\n // TODO: Add character points check here\n // $this->account; // Here you have the account ID\n $points = 500;\n\n if($points <= $this->price){\n throw new Exception(\"No points, top up your account.\");\n }\n\n return $points;\n }",
"public function testcheckComputerNotContinue()\n {\n $dice = new DiceHand();\n $dice->setPlayerScore(15);\n $dice->setComputerScore(2);\n $res = $dice->checkComputerContinue(25);\n $exp = 1;\n $this->assertEquals($exp, $res);\n }",
"public function hasEatProgress(){\n return $this->_has(24);\n }",
"public function isExceeded();",
"public function calculateChance()\n {\n $possibility = $this->calculatePossibility();\n\n $random = mt_rand(0, 100);\n\n if ($possibility < $random) {\n return true;\n }\n\n return false;\n }",
"public function eligible_check($insert)\n {\n $this->db->select('SUM(reward_points) AS reward_points FROM referral'); \n $this->db->where('agent_id', $insert['agent_id']);\n $this->db->where('referee_status', '1');\n $this->db->where('reward_expiry_date >=', date('Y-m-d'));\n $query = $this->db->get()->result();\n \n if (!empty($query)) {\n $data = $this->claimed_point($insert['agent_id']);\n foreach ($query as $key => $value) {\n }\n if ($insert['claimed_points'] <= ($value->reward_points - $data)) {\n return true;\n }else{\n return false;\n }\n }else{\n return 'error';\n }\n \n }",
"public function checkPoint($choices = array()) {\n\t\t$points = false;\n\t\tforeach ($choices as $key => $choice) {\n\t\t\tif ($choice['points'] != '0.00') {\n\t\t\t\t$points = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn $points;\n\t}",
"public function IsAWinner() { $this->_score += 10; }",
"function isInBounds() {\n\t\treturn ($this->getPageCount() >= $this->page);\n\t}",
"public function checkForLose()\n {\n return $this->lives < 1;\n }",
"public function isAvailable($percent_use_ceiling) {\n if (!isset($this->remaining) || !isset($this->limit)) {\n throw new Exception(\"Endpoint not initialized\");\n }\n if ((($this->remaining * 100 )/$this->limit) < (100 - $percent_use_ceiling)) {\n return false;\n } else {\n return true;\n }\n }",
"function checkEligibility($mark){\n if($mark >= 35){\n return true;\n }\n elseif($mark < 35){\n return false;\n }\n}",
"function manji_od_hiljadu($x){\n $svi=true;\n\n for ($i=0; $i <count($x) ; $i++) { \n if($x[$i]>1000){\n $svi=false;\n break;\n }\n }\n return $svi;\n }",
"function IsPageVisible($p_last,$p_current,$p_test)\n {\n if($p_test==1 or $p_test==$p_last)\n {\n return true;\n }\n // nearest 10 pages must be visible\n $begin=$p_current-2;\n\n if($begin<1)\n {\n $begin=1;\n }\n $end=$begin+5;\n if($end>$p_last)\n {\n $end=$p_last;\n }\n if($p_test>=$begin and $p_test<=$end)\n {\n return true;\n }\n // nearest 100 pages must be visible with step=10\n $begin=$p_current-20;\n if($begin<1)\n {\n $begin=1;\n }\n $end=$begin+50;\n\n if($end>$p_last)\n {\n $end=$p_last;\n }\n if($p_test>=$begin and $p_test<=$end)\n {\n\n if($p_test%10==0)\n {\n return true;\n }\n else\n {\n return false;\n }\n }\n // nearest 1000 pages must be visible with step=100\n $begin=$p_current-200;\n if($begin<1)\n {\n $begin=1;\n }\n $end=$begin+500;\n\n if($end>$p_last)\n {\n $end=$p_last;\n }\n if($p_test>=$begin and $p_test<=$end)\n {\n\n if($p_test%100==0)\n {\n return true;\n }\n else\n {\n return false;\n }\n }\n // nearest 10000 pages must be visible with step=1000\n $begin=$p_current-2000;\n if($begin<1)\n {\n $begin=1;\n }\n $end=$begin+5000;\n\n if($end>$p_last)\n {\n $end=$p_last;\n }\n if($p_test>=$begin and $p_test<=$end)\n {\n\n if($p_test%1000==0)\n {\n return true;\n }\n else\n {\n return false;\n }\n }\n return false;\n }",
"public function isPositive();",
"public function disponibilitePlacePlanche() {\n\t\treturn ($this->nbPlacesPlanchesTotal() - $this->_nbrPlanchesBooked) >= 1;\n\t}",
"public function calculatePossibility()\n {\n $questExperienceLevel = $this->questDetail->getExperienceLevel();\n if ($questExperienceLevel == $this->characterExperience) {\n $possibility = 50;\n } elseif ($questExperienceLevel < $this->characterExperience) {\n // If quest level is less than character experience\n // start at 70, for every experience level below, add 2 experience\n $below = $questExperienceLevel - $this->characterExperience;\n $total = $below * 2;\n $possibility = 70 + $total;\n } else {\n //If it's greater than\n //Start at 20, same as above subtract add\n $below = $this->characterExperience - $questExperienceLevel;\n $total = $below * 2;\n $possibility = 35 - $total;\n }\n\n return $possibility;\n }"
] | [
"0.7190849",
"0.7058884",
"0.65493494",
"0.627015",
"0.6260152",
"0.6232651",
"0.60333407",
"0.5746856",
"0.57245153",
"0.56829214",
"0.5679682",
"0.5676133",
"0.5667929",
"0.56387395",
"0.5638556",
"0.5626836",
"0.5623395",
"0.5619161",
"0.55942744",
"0.55641913",
"0.5520748",
"0.5518504",
"0.5517833",
"0.5513465",
"0.55027956",
"0.5485677",
"0.54799885",
"0.54724735",
"0.5441437",
"0.544048"
] | 0.7439205 | 0 |
Check if the method returns true if pointsPlayer1 is over 100 | public function testGameStatusPointsPlayer1Over100()
{
$game = new Game(101, 0);
$res = $game->checkGameStatus();
$exp = true;
$this->assertEquals($exp, $res);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function testGameStatusPointsBelow100()\n {\n $game = new Game();\n $res = $game->checkGameStatus();\n $exp = false;\n $this->assertEquals($exp, $res);\n }",
"public function checkGameStatus() : bool\n {\n if ($this->pointsPlayer1 >= 100 || $this->pointsComputer >= 100) {\n return true;\n } else {\n return false;\n }\n }",
"public function testGameStatusPointsComputerOver100()\n {\n $game = new Game(0, 101);\n $res = $game->checkGameStatus();\n $exp = true;\n $this->assertEquals($exp, $res);\n }",
"public function testGetPointsPlayer1()\n {\n $game = new Game();\n $res = $game->getPointsPlayer1();\n $exp = 0;\n $this->assertEquals($exp, $res);\n }",
"public function subtractPoints(): bool\n {\n // TODO: Subtract points from the user here, return true if the result is correct.\n $this->account;\n $this->price;\n return true;\n }",
"private function validScore() {\n\t\tif (!is_int($this->data['player1_score']) || !is_int($this->data['player2_score'])) {\n\t\t\treturn false;\n\t\t}\n\n\t\tif ($this->data['player1_score'] >= 0 && $this->data['player1_score'] <= 3 && $this->data['player2_score'] >= 0 && $this->data['player2_score'] <= 3) {\n\t\t\tif (($this->data['player1_score'] != 3 && $this->data['player2_score'] == 3) || ($this->data['player2_score'] != 3 && $this->data['player1_score'] == 3)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}",
"function getWinnersPoint() {\n global $players;\n \n $highest = 0;\n for ($i = 0; $i < 4; $i++) {\n if ($players[$i] >= 0 && $players[$i] <= 42) { // checks if it's withing 0 >= n <= 42\n if ($players[$i] >= $highest) { //checks if it's greater than the previous highest\n $highest = $players[$i];\n }\n }\n }\n return $highest;\n }",
"public function testSavePointsPlayer1()\n {\n $game = new Game();\n $game->roll();\n\n $totalPoints = $game->sumCurrentGameRound();\n $game->savePoints(\"Spelare1\");\n $savedPointsPlayer1 = $game->getPointsPlayer1();\n\n $this->assertEquals($totalPoints, $savedPointsPlayer1);\n }",
"public function getPointsPlayer1() : int\n {\n return $this->pointsPlayer1;\n }",
"function players_will_fit ($male, $female,\n\t\t\t $max_male, $max_female, $max_neutral)\n{\n // If we're above total game max, then we're full\n\n if ($male + $female > $max_male + $max_female + $max_neutral)\n return false;\n\n else\n return true;\n}",
"public function checkForLose() {\n\n if ($this->lives <= 0) {\n return true;\n } else {\n return false;\n }\n\n }",
"function Hit(){\n\t$hit = rand(0, 100);\n\t//var_dump($hit);\n\tif ($hit >= 60){\n\t\treturn TRUE;\n\t}else{\n\t\treturn FALSE;\n\t}\n}",
"function determineWinner(&$players) {\n $maxPoints = 0;\n $winner = [];\n \n // Loop through each player and determine if their points are greater than\n // or equal to the old max, and that that value is 42 or less\n for ($i = 0; $i < 4; $i++) {\n if (($players[$i][\"points\"] >= $maxPoints) && ($players[$i][\"points\"] < 43)) {\n $maxPoints = $players[$i][\"points\"];\n }\n }\n \n // Adds winner(s) to the winner array (Handles ties)\n for ($i = 0; $i < 4; $i++) {\n if ($players[$i][\"points\"] == $maxPoints) {\n $winner[] = $players[$i];\n }\n }\n \n // Flags the winner(s)\n for ($i = 0; $i < count($winner); $i++) {\n // echo $winner[$i][\"name\"] . \" wins with \" . $maxPoints .\" points!<br>\";\n \n for ($j = 0; $j < 4; $j++)\n {\n if ($winner[$i][\"name\"] == $players[$j][\"name\"]) {\n $players[$j][\"winner\"] = true;\n }\n }\n }\n }",
"public function testGetPointsComputer()\n {\n $game = new Game();\n $res = $game->getPointsComputer();\n $exp = 0;\n $this->assertEquals($exp, $res);\n }",
"public function checkPoint($choices = array()) {\n\t\t$points = false;\n\t\tforeach ($choices as $key => $choice) {\n\t\t\tif ($choice['points'] != '0.00') {\n\t\t\t\t$points = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn $points;\n\t}",
"public function checkForGameOver() {\n // TODO need to account for draw\n if ($this->player1->getHero()->getHealth() <= 0) {\n $this->gameOver($this->player2);\n\n return true;\n }\n\n if ($this->player2->getHero()->getHealth() <= 0) {\n $this->gameOver($this->player1);\n\n return true;\n }\n\n return false;\n }",
"public function checkForLose()\n {\n return $this->lives < 1;\n }",
"public function getPassedIndicator()\n {\n switch($this->metric->getObjectiveActionCode())\n {\n case 'reach':\n\n if ($this->getScore()->getValue() >= $this->metric->getScore()->getValue())\n {\n return true;\n }\n\n break;\n\n default:\n\n break;\n }\n\n return false;\n }",
"function cb_reached($current)\n{\n echo \"Current is greater than 1A: \" . $current / 1000.0 . \"\\n\";\n}",
"public function scoreWin() {\n return 10 - $this->ply;\n }",
"public function Get_Points_Awarded() {\n if (!$this->Is_Correct()) { return 0; }\n // Apply any filter\n $points_awarded = apply_filters('ch_field_points_awarded',$this->points_awarded,$this);\n // Return the points awarded\n return $points_awarded;\n }",
"public function testWinningPoint()\n {\n $diceGame = new DiceGame();\n $this->assertInstanceOf(\"\\Chai17\\Dice\\DiceGame\", $diceGame);\n $diceGame->setWinningPoint(50);\n $res = $diceGame->getWinningPoint();\n $exp = 50;\n $this->assertEquals($exp, $res);\n }",
"function showWinner()\n{\n\t\n\t\n\t$val= getLastContest();\n\tif ($val >0)\n\t{\n\t\treturn true;\n\t}\n\telse\n\t{\n\t\treturn false;\n\t}\n}",
"public function isPositive();",
"public function calculatePossibility()\n {\n $questExperienceLevel = $this->questDetail->getExperienceLevel();\n if ($questExperienceLevel == $this->characterExperience) {\n $possibility = 50;\n } elseif ($questExperienceLevel < $this->characterExperience) {\n // If quest level is less than character experience\n // start at 70, for every experience level below, add 2 experience\n $below = $questExperienceLevel - $this->characterExperience;\n $total = $below * 2;\n $possibility = 70 + $total;\n } else {\n //If it's greater than\n //Start at 20, same as above subtract add\n $below = $this->characterExperience - $questExperienceLevel;\n $total = $below * 2;\n $possibility = 35 - $total;\n }\n\n return $possibility;\n }",
"public function IsAWinner() { $this->_score += 10; }",
"public function evaluate(Piece $player): float {\n if ($this->isWin() && $this->turn == $player) {\n return -1;\n } elseif ($this->isWin() && $this->turn != $player) {\n return 1;\n } else {\n return 0;\n }\n }",
"function fonctionComparaisonPoints($a, $b){\n return $a['points'] < $b['points']; //Priorité au plus de points\n}",
"function matchWin($p1, $p2){\n return($p1%3 == ($p2+1)%3);\n }",
"function displayPoints($random_value, $random_value2, $random_value3 ) {\n global $results;\n if ( $random_value3 == $random_value2 && $random_value2 == $random_value){\n switch ( $random_value ) {\n case 0: $results = \"You won the Jackpot! 1000 points!\";\n break;\n case 1: $results = \"You won with oranges! 500 points!\";\n break;\n case 2: $results = \"You won with lemons! 250 points!\";\n break;\n case 3: $results = \"You won with grapes! 900 points!\";\n break;\n case 4: $results = \"You won with cherries! 750 points!\";\n break;\n case 5: $results = \"You won with bars! 50 points!\";\n break;\n }\n }\n else{\n $results = \"Sorry, you lose! Try Again!\";\n }\n }"
] | [
"0.7121087",
"0.7021125",
"0.6916628",
"0.6491059",
"0.64639556",
"0.62699836",
"0.6126696",
"0.60564363",
"0.595807",
"0.595522",
"0.59061384",
"0.5860485",
"0.58155775",
"0.58070093",
"0.5722823",
"0.57179254",
"0.571753",
"0.57085204",
"0.5706313",
"0.56742644",
"0.56616926",
"0.5655257",
"0.5646393",
"0.56376284",
"0.5630026",
"0.56238943",
"0.56190246",
"0.5583543",
"0.5569071",
"0.55589175"
] | 0.76977515 | 0 |
Save points for computer (points is 0 from the beginning) from the game round and validate that the correct points were saved | public function testSavePointsComputer()
{
$game = new Game();
$game->roll();
$totalPoints = $game->sumCurrentGameRound();
$game->savePoints("Dator");
$savedPointsComputer = $game->getPointsComputer();
$this->assertEquals($totalPoints, $savedPointsComputer);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function testSavePointsPlayer1()\n {\n $game = new Game();\n $game->roll();\n\n $totalPoints = $game->sumCurrentGameRound();\n $game->savePoints(\"Spelare1\");\n $savedPointsPlayer1 = $game->getPointsPlayer1();\n\n $this->assertEquals($totalPoints, $savedPointsPlayer1);\n }",
"public function supportsSavepoints();",
"public function testGetPointsComputer()\n {\n $game = new Game();\n $res = $game->getPointsComputer();\n $exp = 0;\n $this->assertEquals($exp, $res);\n }",
"public function savePoints(string $currentPlayer)\n {\n $sumCurrentGameRound = $this->sumCurrentGameRound();\n\n if ($currentPlayer === \"Spelare1\") {\n $this->pointsPlayer1 += $sumCurrentGameRound;\n } elseif ($currentPlayer === \"Dator\") {\n $this->pointsComputer += $sumCurrentGameRound;\n }\n }",
"public function computerSaveScore()\n {\n $this->computer->addScore($this->getRoundScore());\n $this->setRoundTurn(\"player\");\n $this->resetRoundScore();\n }",
"public function testMakeDecisionReturnSave()\n {\n $computer = new ComputerPlayer();\n $computer->addScore(90); \n\n for ($i = 0; $i <= 100; $i++) {\n $computer->dices->roll();\n \n $rolls = $computer->dices->getHistogramSerie();\n $roundPoints = array_sum($rolls);\n\n\n if ($roundPoints > 100) {\n $this->assertEquals(\"save\", $computer->makeDecision());\n }\n\n if ($computer->getscore() + $roundPoints >= 100) {\n $this->assertEquals(\"save\", $computer->makeDecision());\n }\n }\n }",
"public function a_point_has_correct_points()\n {\n $points = 100;\n\n $point = factory(Point::class)->create(['name' => 'Green', 'key' => 'green', 'points' => $points]);\n\n $this->assertEquals($points, $point->points);\n }",
"public function supportsSavePoints(): bool\n {\n return true;\n }",
"public function playerSaveScore()\n {\n $this->player->addScore($this->getRoundScore());\n $this->setRoundTurn(\"computer\");\n $this->resetRoundScore();\n }",
"public function save()\n {\n $thePlayer = $this->players[$this->currentPlayerIndex];\n $thePlayer->addResult($this->roundSum);\n $this->roundSum = 0;\n if ($thePlayer->getResult() >= GAMEGOAL) {\n return \"Winner\";\n } else {\n return \"\";\n }\n }",
"public function saveScore()\n {\n if (!($this->gameOver())) {\n $this->players[$this->activePlayer]->saveScore();\n $this->nextPlayer();\n }\n }",
"public function save_production_point($form) {\n //unless it's the first time\n $form = (object)$form;\n if ($form->id_good == 0) return -4;\n \n //get the current state of the production point\n $ppoint = $this->db->select(\"id_player, id_good, pptype_id, active, plevel\")\n ->from(\"productionpoints\")\n ->where(\"id\",$form->row_id)\n ->get()->result()[0];\n //get the production point info\n $ppcost = $this->db->select(\"conv_cost as cost\")\n ->from(\"prodpoint_types\")\n ->where(\"id\", $ppoint->pptype_id)\n ->get()->result()[0]->cost;\n \n $this->db->trans_begin();\n if (($ppoint->id_good != $form->id_good) && ($ppoint->id_good != 0)) {\n //pay the conversion if changing the production \n $cost = $ppcost * $ppoint->plevel;\n $this->db->set(\"gold\",\"gold - $cost\",false)\n ->where(\"id\", $ppoint->id_player)\n ->where(\"gold >\", $cost)\n ->update(\"players\");\n if ($this->db->affected_rows() != 1) {\n $this->db->trans_rollback();\n return -1;\n } \n }\n $ppoint->id_good = $form->id_good;\n \n if ($ppoint->plevel < $form->plevel) {\n //pay the cost of the increased level\n $cost = $ppcost * ($form->plevel - $ppoint->plevel);\n $this->db->set(\"gold\",\"gold - $cost\",false)\n ->where(\"id\", $ppoint->id_player)\n ->where(\"gold >\", $cost)\n ->update(\"players\");\n if ($this->db->affected_rows() != 1) {\n $this->db->trans_rollback();\n return -2;\n } \n }\n $ppoint->plevel = $form->plevel;\n \n $ppoint->active = $form->active;\n unset($ppoint->id_player, $ppoint->pptype_id);\n $this->db->where(\"id\", $form->row_id)\n ->update(\"productionpoints\", $ppoint);\n if ($this->db->affected_rows() != 1) {\n $this->db->trans_rollback();\n return -3;\n } \n $this->db->trans_commit();\n return 1;\n }",
"public function testWinningPoint()\n {\n $diceGame = new DiceGame();\n $this->assertInstanceOf(\"\\Chai17\\Dice\\DiceGame\", $diceGame);\n $diceGame->setWinningPoint(50);\n $res = $diceGame->getWinningPoint();\n $exp = 50;\n $this->assertEquals($exp, $res);\n }",
"public function checkPoint($choices = array()) {\n\t\t$points = false;\n\t\tforeach ($choices as $key => $choice) {\n\t\t\tif ($choice['points'] != '0.00') {\n\t\t\t\t$points = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn $points;\n\t}",
"public function saveGame(){\n\t\t$dbObject = new DatabaseHelper();\n\t\t$query = \"INSERT INTO gametracker (ai_score, player_score, difficulty, rounds, initial_hand_score) VALUES (\".$this->ai_score.\", \".$this->player_score.\", \".$this->difficulty.\", \".$this->rounds.\", \".$this->hand_improvement.\")\";\n\t\t$dbObject->executeInsert($query);\n\t}",
"public function store()\n\t{\n\t\t$input = Input::all();\n\t\t$validation = Validator::make($input, Point::$rules);\n\n\t\tif ($validation->passes())\n\t\t{\n\t\t\t$this->point->create($input);\n\n\t\t\treturn Redirect::route('points.index');\n\t\t}\n\n\t\treturn Redirect::route('points.create')\n\t\t\t->withInput()\n\t\t\t->withErrors($validation)\n\t\t\t->with('message', 'There were validation errors.');\n\t}",
"public function checkGameStatus() : bool\n {\n if ($this->pointsPlayer1 >= 100 || $this->pointsComputer >= 100) {\n return true;\n } else {\n return false;\n }\n }",
"public function calculateAndSavePointsOfPlis(){\r\n\t\tif($this->getIdDonne()<1) return;\r\n\t\t$plis = Pli::getPlisDonne($this->getIdDonne());\r\n\t\tif(empty($plis)) return;\r\n\t\t$result = array(1 => 0,0);\r\n\t\tforeach ($plis as $pli){\r\n\t\t\t$winnerPlayer = $pli->getWinner();\r\n\t\t\tif($winnerPlayer > 0 || $winnerPlayer < 5){\r\n\t\t\t\t$winnerTeam = Player::getNrTeamByNrPlayer($winnerPlayer);\r\n\t\t\t\t$result[$winnerTeam] += $pli->getResult();\r\n\t\t\t}\r\n\t\t}\r\n\t\t$this->setResult($result);\r\n\t\t$this->save();\r\n\t}",
"public function playerAnswer ($questionId , $answer , $timerClock) {\n\n // the main variables that will be used in the method\n $question = Question::find($questionId) ;\n $game = RunningGame::find(1) ;\n $timerClock = intval($timerClock) ;\n\n ///////////////// Calculating the points ////////////////////////////\n // the maximum points that you can get from a question is 25\n $questionPoints = 10 ;\n $timerFactor = intval ($timerClock * ( 5 / 15 ) ) ;\n if ( isset($question) ) {\n $difficultyFactor = $question->dif * 3 ;\n } else {\n $difficultyFactor = 0 ;\n }\n\n\n $totalPoints = $questionPoints + $timerFactor + $difficultyFactor ;\n\n //////////////////////////////////////////////////////////////////////\n\n // the time finished for the player\n // todo: i should make sure that when the timer finishes and both players already answered that i don't count that as a loss\n if ( $questionId == 0 ) {\n if (session()->get('player_number') == 1 ) {\n $game->user_1_answer = 2 ;\n $game->save() ;\n event(new GameEvent($game));\n } else {\n $game->user_2_answer = 2 ;\n $game->save() ;\n event(new GameEvent($game));\n }\n } else {\n\n\n if ( $answer == $question->answer ) {\n if (session()->get('player_number') == 1 ) {\n $game->user_1_answer = 1 ;\n $game->user_1_points = $game->user_1_points + $totalPoints ; // adding the points\n $game->save() ;\n event(new GameEvent($game));\n } else {\n $game->user_2_answer = 1 ;\n $game->user_2_points = $game->user_2_points + $totalPoints; // adding the points\n $game->save() ;\n event(new GameEvent($game));\n }\n $answer = 'correct';\n } else {\n if (session()->get('player_number') == 1 ) {\n $game->user_1_answer = 2 ;\n $game->save() ;\n event(new GameEvent($game));\n } else {\n $game->user_2_answer = 2 ;\n $game->save() ;\n event(new GameEvent($game));\n }\n $answer = 'wrong' ;\n }\n\n }\n\n if ( $game->user_1_answer != 0 && $game->user_2_answer != 0 ) {\n $game->user_1_answer = 0 ;\n $game->user_2_answer = 0 ;\n $game->question_id = $game->question_id + 1 ;\n $game->save() ;\n event(new NextQuesiton($game->question_id)) ;\n }\n\n return $answer ;\n }",
"public function testGameStatusPointsComputerOver100()\n {\n $game = new Game(0, 101);\n $res = $game->checkGameStatus();\n $exp = true;\n $this->assertEquals($exp, $res);\n }",
"public function testGameStatusPointsPlayer1Over100()\n {\n $game = new Game(101, 0);\n $res = $game->checkGameStatus();\n $exp = true;\n $this->assertEquals($exp, $res);\n }",
"public function testGetPointsPlayer1()\n {\n $game = new Game();\n $res = $game->getPointsPlayer1();\n $exp = 0;\n $this->assertEquals($exp, $res);\n }",
"public function save()\n {\n $position = new Position();\n\n $position->name = $this->pName;\n $position->description = $this->pDescription;\n $position->pos_x = $this->pX;\n $position->pos_y = $this->pY;\n $position->plane = $this->pPlane;\n\n if ($position->save()) {\n $this->pPosition = $position->id;\n $this->status = self::STATUS_SUCCESS;\n return true;\n }\n $this->status = self::STATUS_ERROR;\n return false;\n }",
"public function processPoints($arguments=null){\n \n switch($arguments['type']):\n case 'setPoint':\n $this->loadModel('CourseProgress');\n $course_progress = $this->CourseProgress->getResults($arguments['course_id'],$arguments['store_id']);\n $qtt_course_progress = count($course_progress);\n\n $this->loadModel('Users');\n $users = $this->Users->find('all', ['conditions'=>['Users.store_id'=>$arguments['store_id'],'Users.active'=>true,'Users.role_id'=>6]])->all();\n $count_users = count($users);\n\n // die(debug($qtt_course_progress));\n if($count_users == $qtt_course_progress):\n $pointing = 25;\n $this->loadModel('Points');\n $data['title'] = 'Todos os funcionários concluíram o módulo';\n $data['point'] = $pointing;\n $data['user_id'] = $arguments['user_id'];\n $data['store_id'] = $arguments['store_id'];\n $data['type'] = 'completed_module';\n $data['month'] = 8;\n $point = $this->Points->newEntity();\n $point = $this->Points->patchEntity($point, $data);\n $this->Points->save($point);\n\n $this->loadModel('Stores');\n $store = $this->Stores->get($arguments['store_id']);\n $total_store = $store->total;\n $store = $this->Stores->patchEntity($store, ['total'=>$total_store+$pointing]);\n // die(debug($store->total));\n $this->Stores->save($store);\n return true;\n endif;\n break;\n endswitch;\n }",
"function main(){\n session_start();\n // check if is made session with player\n if(!is_player_logged()){\n http_response_code(403);\n return false;\n }\n // check if can throw cube\n if (!can_throw_cube()){\n http_response_code(403);\n return false;\n }\n\n $player_id = $_SESSION['player_id'];\n // random number\n $points = rand(1, 6);\n // set result to game\n $game_id = $_SESSION['game_id'];\n DbManager::make_no_result_querry(\n \"UPDATE games SET last_throw_points = $points WHERE id = $game_id\");\n DbManager::make_no_result_querry(\n \"UPDATE games SET throwed_cube = 1 WHERE id = $game_id\");\n // set to player status 4 so they can move pawns\n DbManager::make_no_result_querry(\n \"UPDATE players SET status = 4 WHERE id = $player_id\");\n // change if pawns can be moved in game\n BoardManager::load_move_status_for_pawns($game_id);\n\n set_public_action_made();\n\n echo json_encode([\"points\" => $points]);\n return true;\n}",
"public function user_has_correct_amount_of_points()\n {\n $user = factory(User::class)->create();\n\n $subscriber = new Subscriber();\n\n $this->assertCount(0, $user->pointsRelation()->where('key', $subscriber->key())->get());\n\n $user->givePoints($subscriber);\n\n $this->assertCount(1, $user->pointsRelation()->where('key', $subscriber->key())->get());\n\n $this->assertEquals($subscriber->getModel()->points, $user->points()->number());\n }",
"private function accountShopPoints()\n {\n if(Session::has('connected')) {\n $user = AccountData::me(Session::get('user.id'))->first(['shop_points']);\n Session::put('user.shop_points', $user['shop_points']);\n }\n else {\n Session::put('user.shop_points', 0);\n }\n }",
"public function testGameStatusPointsBelow100()\n {\n $game = new Game();\n $res = $game->checkGameStatus();\n $exp = false;\n $this->assertEquals($exp, $res);\n }",
"public function testSetPoints()\n {\n $dice = new Dice2();\n $this->assertInstanceOf(\"\\Alfs\\Dice2\\Dice2\", $dice);\n\n $dice->setPoints(10);\n $res = $dice->getPoints();\n $exp = 10;\n $this->assertEquals($exp, $res);\n }",
"static function resetPoints() {\n\t\t$queryReset = '\n\t\t\tUPDATE '.system::getConfig()->getDatabase('mofilm_content').'.userPoints\n\t\t\t SET score = 0, highScore = 0';\n\n\t\tdbManager::getInstance()->exec($queryReset);\n\t}"
] | [
"0.7326846",
"0.6435863",
"0.64030635",
"0.6363296",
"0.6230481",
"0.62141234",
"0.61098206",
"0.6070289",
"0.6069835",
"0.60105294",
"0.59648675",
"0.5845705",
"0.5813588",
"0.5776292",
"0.5700294",
"0.56720835",
"0.5652542",
"0.56285536",
"0.55871063",
"0.55302393",
"0.5509464",
"0.55074567",
"0.54869634",
"0.5481385",
"0.5445987",
"0.54404616",
"0.540969",
"0.54054224",
"0.5382723",
"0.5366327"
] | 0.7961982 | 0 |
Subsets and Splits