query
stringlengths
9
43.3k
document
stringlengths
17
1.17M
metadata
dict
negatives
listlengths
0
30
negative_scores
listlengths
0
30
document_score
stringlengths
5
10
document_rank
stringclasses
2 values
end method vName($name) Validate Long Name Method This method function validates longer names (like combined last names) Names must be between 1 40 characters long and only contain a combination of letters (caseinsensitive) the space, a period, an apostrophe, and a hyphen
function vLongName( $name ) { return preg_match ('/^[A-Z \',.-]{1,50}$/i', $name); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function ValidateName($name){\n if (empty($name)){ //checks if empty\n $this->valid = False;\n }else if (strlen($name)>= 30){ //checks max length\n $this->valid = False;\n }else if(!preg_match(\"/^[a-zA-Z ]*$/\",$name)){ //checks format\n $this->valid = False;\n }\n }", "function validateName($name) {\n\tif (!preg_match('/[^A-Za-z]+/', $name) && strlen($name) >= 2 && strlen($name) <= 20)\n\t\treturn 1;\t//name is valid\n\telse\n\t\treturn 0;\n}", "function vName( $name ) \r\n\t\t{\t \r\n\t\t\t\t\r\n\t\t\t\treturn preg_match (\"/^[a-zA-ZàáâäãåąćęèéêëìíîïłńòóôöõøùúûüÿýżźñçčšžÀÁÂÄÃÅĄĆĘÈÉÊËÌÍÎÏŁŃÒÓÔÖÕØÙÚÛÜŸÝŻŹÑßÇŒÆČŠŽ∂ð ,.'-]+$/u\", $name);\r\n\t\t\t\t\t\t \r\n\t\t}", "function validate_name($name){\n\n\tif(empty($name)){\n\t\t\n\t\treturn false;\n\t\t\n\t}\n\t else if(count(explode(' ',$name)) <2){\n\t\t\n\t\t\n\t\t\treturn false;\n\t\t\n\t}\n\t\n\telse if(!preg_match(\"/^[a-zA-Z \\.\\-]*$/\",$name)){\n\t\t\n\t\t\n\t\treturn false;\n\t}\n\telse if(!preg_match(\"/^[a-zA-Z]*$/\",$name[0])){\n\t\t\n\t\t\n\t\treturn false;\n\t}\n\telse{\n\t\t\n\t\treturn true;\n\t}\n\t\n\t\n}", "function verifyUserName($name) {\r\n if (preg_match('/^[a-zA-Z0-9\\ \\\\._\\'\"-]{4,50}$/', $name) != 1) { // no match\r\n return \"Name must be 4-50 characters long and consist of letters, digits, \"\r\n . \"spaces, dots, underscores, apostrophies, or minus sign.\";\r\n }\r\n return TRUE;\r\n}", "function vFullName( $name ) \r\n\t\t{\r\n\t\t\t return preg_match ('/^[A-Z \\',.-]{1,750}$/i', $name);\r\n\t\t\t\t\t\t \r\n\t\t}", "function validateName($string){\n\n\tif(preg_match(\"/^[a-zA-Z\\s]{5,30}$/\", $string)){\n\n\t\treturn true;\n\t}\n\telse{\n\n\t\treturn false;\n\t}\n\n\n}", "function validateName($name)\n {\n return (mb_strlen($name) <= CUSTOMER_NAME_MAX_LENGTH && mb_strlen($name) !== 0);\n }", "function _validateUsername($name)\n {\n return trim(substr(preg_replace('/[^A-Za-z0-9_ \\-]/', '',$name),0,24)); \n }", "static public function validateName($name)\n {\n return Validate::stringLength($name, self::NAME_LENGTH, 'Category Name');\n }", "public function validateName()\n {\n if (strlen(trim($_POST[$this->key])) < $this->minLength) {\n self::$errors[] = $this->convertUnderscores() . \" field requires at least $this->minLength characters\";\n }\n\n //check for profanity.\n if ($this->noProfanity) {\n $this->checkProfanity();\n }\n\n //lastly, check for valid first name patterns.\n\n if (!preg_match(\"/^[a-zA-Z]+[ -\\/\\\\'\\\"]*[a-zA-Z]+[ \\\"]{0,2}[a-zA-Z]*$/\", trim($_POST[$this->key]))) {\n self::$errors[] = \"Not a valid \" . $this->convertUnderscores();\n }\n\n return self::$errors ? false : true;\n }", "function validate_name($name)\r\n\t{\r\n\t\t$trim = trim($name);\r\n\t\tif(strlen($trim) > 1)\r\n\t\t{\r\n\t\t\treturn TRUE;\r\n\t\t}\r\n\t\treturn FALSE;\r\n\t}", "public static function isValidName($name) {}", "public function name_validation($name){\n\t\tif(!preg_match('/^[a-zA-Z0-9. ]*$/',$name)){ \n\t\t\treturn true;\n \t}\n }", "public function validateName($attribute)\n {\n if (!$this->hasErrors()) {\n if (!preg_match('/^[\\w\\s\\p{L}]{1,255}$/u', $this->$attribute)) {\n $this->addError($attribute, Yii::t('podium/view', 'Name must contain only letters, digits, underscores and spaces (255 characters max).'));\n }\n }\n }", "function validName($name)\r\n {\r\n $name = str_replace(' ', '', $name);\r\n return !empty($name) && ctype_alpha($name);\r\n }", "function isValidShortName($name) {\n return preg_match('#^[a-z0-9]+$#i', $name);\n}", "function validateUserName($name)\n {\n /**condition for validating the type and size of user input string\n *takes user input name as a parameter for validating with the set conditons\n */\n if (preg_match('/[a-zA-Z]{3}/', $name)) {\n return true;\n }\n }", "public static function nameIsValid($name) {\r\n return ( is_string($name) && !empty($name) && strlen($name) >=2 ); \r\n }", "function validateName()\n {\n global $inName, $validForm, $nameErrMsg;\t\t//Use the GLOBAL Version of these variables instead of making them local\n $nameErrMsg = \"\";\t\t\t\t\t\t\t\t//Clear the error message.\n if($inName==\"\")\n {\n $validForm = false;\t\t\t\t\t//Invalid name so the form is invalid\n $nameErrMsg = \"Name is required\";\t//Error message for this validation\n }\n\n else if(!preg_match(\"/^[a-zA-Z\\s]+$/\",$inName)){\n $validForm=false;\n $nameErrMsg=\"Please use only letters\";\n }\n\n else\n {\n $inLname = trim($inName);\t\t\t\t//Removes leading/trailing characters\n $inLname = htmlspecialchars($$inName);\t//converts special characters\n }\n }", "public static function validateName($name) {\n if (preg_match(\"/^[a-zA-Z]*$/\",$name))\n return true;\n else\n return false;\n }", "public function validateRealname() {\r\n $leng = mb_strlen($this->data[$this->name]['RealName']);\r\n if ($leng > 128) {\r\n return FALSE;\r\n } else if ($leng > 64) {\r\n if (mb_ereg(self::_REGEX_FULLWITH, $this->data[$this->name]['RealName']) !== false) {\r\n return FALSE;\r\n }\r\n }\r\n return TRUE;\r\n }", "function MCW_make_name_acceptable($name) {\n \n $name = strtr($name,\" \",\"_\");\n $name=preg_replace(\"/[^a-zA-Z0-9_äöüÄÖÜ]/\" , \"\" , $name);\n return $name;\n }", "function isValidName($str)\n{\n $parts = explode(' ', $str);\n\n if (count($parts) < 2) {\n return false;\n }\n\n if ($str !== formatName($str))\n return false;\n\n return true;\n}", "function isValidName ($name)\r\n{\r\n global $cf_reservedpattern;\r\n\r\n $reservedpattern = $cf_reservedpattern ? $cf_reservedpattern : '[_a-z]{0,1}([\\d]+)';\r\n\r\n if (preg_match(\"%^\".$reservedpattern.\"$%i\", $name, $matches))\r\n return FALSE; // reserved - not permitted\r\n\r\n $pattern = '[a-z\\d][_a-z\\d]{2,23}';\r\n if (preg_match('%^'.$pattern.'$%i', $name))\r\n if (!preg_match(\"%^(api|com|biz|def|gov|net|org|wap|web|www|gamma|mobile|mygamma|buzzcity|netbeacon)[\\d]*$%i\", $name))\r\n return TRUE;\r\n\r\n return FALSE; // not permitted\r\n}", "public function validate_name() {\n $errors = array();\n \n if ($this->name == '' || $this->name == null) {\n $errors[] = 'Nimi ei saa olla tyhjä.';\n }\n \n if (strlen($this->name) < 2 || strlen($this->name) > 50) {\n $errors[] = 'Nimen pituuden tulee olla vähintään 2 ja enintaan 50 merkkiä.';\n }\n \n $other_departments = $this->other_departments();\n\n foreach ($other_departments as $d) {\n if (strcasecmp($d->name, $this->name) == 0) {\n $errors[] = 'Olet jo lisännyt samannimisen osaston.';\n }\n }\n \n return $errors;\n }", "public static function validateName($name) {\n\t\tif (!empty($name)) {\n\t\t\tif (preg_match('/^[a-z0-9 ]{3,}$/i', $name)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "function setLongName($longName)\n {\n if (strlen($longName) > 48) {\n throw new InvalidArgumentException(\"Input must be 48 characters or less\n in length!\");\n }\n $this->_longName = $longName;\n }", "function ValidateName($name)\n{\n $chars = str_split($name);\n\n // Assess each character\n foreach ($chars as $char) {\n if (!ValidateChar($char)) {\n return false;\n }\n }\n\n // // Check for empty\n // if (empty($name)) {\n // return false;\n // }\n\n return true;\n}", "function name_validation($str)\n{\n return preg_match(\"/^[a-zA-Z ]+$/\", $str);\n}" ]
[ "0.74031585", "0.7221825", "0.7213831", "0.69535005", "0.6935333", "0.69202834", "0.68226326", "0.6760795", "0.67213297", "0.67172974", "0.6665835", "0.66642076", "0.66556084", "0.66169167", "0.6549225", "0.654128", "0.65393084", "0.65201896", "0.6501477", "0.64680374", "0.64531404", "0.64416605", "0.6422649", "0.6397901", "0.639632", "0.63866204", "0.6386097", "0.6346656", "0.6332933", "0.6297878" ]
0.85528654
0
end method vName($name) Validate Full Name Method This method function validates full names Names must be between 1 750 characters ( The longest name in the world is a little under 750 characters! ) long and only contain a combination of letters (caseinsensitive) the space, a period, an apostrophe, and a hyphen
function vFullName( $name ) { return preg_match ('/^[A-Z \',.-]{1,750}$/i', $name); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function vLongName( $name ) \r\n\t\t{\r\n\t\t\t return preg_match ('/^[A-Z \\',.-]{1,50}$/i', $name);\r\n\t\t\t\t\t\t \r\n\t\t}", "function vName( $name ) \r\n\t\t{\t \r\n\t\t\t\t\r\n\t\t\t\treturn preg_match (\"/^[a-zA-ZàáâäãåąćęèéêëìíîïłńòóôöõøùúûüÿýżźñçčšžÀÁÂÄÃÅĄĆĘÈÉÊËÌÍÎÏŁŃÒÓÔÖÕØÙÚÛÜŸÝŻŹÑßÇŒÆČŠŽ∂ð ,.'-]+$/u\", $name);\r\n\t\t\t\t\t\t \r\n\t\t}", "private function ValidateName($name){\n if (empty($name)){ //checks if empty\n $this->valid = False;\n }else if (strlen($name)>= 30){ //checks max length\n $this->valid = False;\n }else if(!preg_match(\"/^[a-zA-Z ]*$/\",$name)){ //checks format\n $this->valid = False;\n }\n }", "function validate_name($name){\n\n\tif(empty($name)){\n\t\t\n\t\treturn false;\n\t\t\n\t}\n\t else if(count(explode(' ',$name)) <2){\n\t\t\n\t\t\n\t\t\treturn false;\n\t\t\n\t}\n\t\n\telse if(!preg_match(\"/^[a-zA-Z \\.\\-]*$/\",$name)){\n\t\t\n\t\t\n\t\treturn false;\n\t}\n\telse if(!preg_match(\"/^[a-zA-Z]*$/\",$name[0])){\n\t\t\n\t\t\n\t\treturn false;\n\t}\n\telse{\n\t\t\n\t\treturn true;\n\t}\n\t\n\t\n}", "function validateName($name) {\n\tif (!preg_match('/[^A-Za-z]+/', $name) && strlen($name) >= 2 && strlen($name) <= 20)\n\t\treturn 1;\t//name is valid\n\telse\n\t\treturn 0;\n}", "function verifyUserName($name) {\r\n if (preg_match('/^[a-zA-Z0-9\\ \\\\._\\'\"-]{4,50}$/', $name) != 1) { // no match\r\n return \"Name must be 4-50 characters long and consist of letters, digits, \"\r\n . \"spaces, dots, underscores, apostrophies, or minus sign.\";\r\n }\r\n return TRUE;\r\n}", "public function validateFullname($passFullname) \n {\n\n if(preg_match('/^[a-zA-Z\\s]+$/',$passFullname))\n {\n return true;// if the form is valid \n }\n else \n {\n return false;// as for an invalid form \n }\n\n \n\n\n \n\n }", "function validateName($string){\n\n\tif(preg_match(\"/^[a-zA-Z\\s]{5,30}$/\", $string)){\n\n\t\treturn true;\n\t}\n\telse{\n\n\t\treturn false;\n\t}\n\n\n}", "function validate_name($name)\r\n\t{\r\n\t\t$trim = trim($name);\r\n\t\tif(strlen($trim) > 1)\r\n\t\t{\r\n\t\t\treturn TRUE;\r\n\t\t}\r\n\t\treturn FALSE;\r\n\t}", "public function name_validation($name){\n\t\tif(!preg_match('/^[a-zA-Z0-9. ]*$/',$name)){ \n\t\t\treturn true;\n \t}\n }", "function isValidShortName($name) {\n return preg_match('#^[a-z0-9]+$#i', $name);\n}", "public function validateRealname() {\r\n $leng = mb_strlen($this->data[$this->name]['RealName']);\r\n if ($leng > 128) {\r\n return FALSE;\r\n } else if ($leng > 64) {\r\n if (mb_ereg(self::_REGEX_FULLWITH, $this->data[$this->name]['RealName']) !== false) {\r\n return FALSE;\r\n }\r\n }\r\n return TRUE;\r\n }", "function validName($name)\r\n {\r\n $name = str_replace(' ', '', $name);\r\n return !empty($name) && ctype_alpha($name);\r\n }", "function _validateUsername($name)\n {\n return trim(substr(preg_replace('/[^A-Za-z0-9_ \\-]/', '',$name),0,24)); \n }", "public function validateName()\n {\n if (strlen(trim($_POST[$this->key])) < $this->minLength) {\n self::$errors[] = $this->convertUnderscores() . \" field requires at least $this->minLength characters\";\n }\n\n //check for profanity.\n if ($this->noProfanity) {\n $this->checkProfanity();\n }\n\n //lastly, check for valid first name patterns.\n\n if (!preg_match(\"/^[a-zA-Z]+[ -\\/\\\\'\\\"]*[a-zA-Z]+[ \\\"]{0,2}[a-zA-Z]*$/\", trim($_POST[$this->key]))) {\n self::$errors[] = \"Not a valid \" . $this->convertUnderscores();\n }\n\n return self::$errors ? false : true;\n }", "function validateName()\n {\n global $inName, $validForm, $nameErrMsg;\t\t//Use the GLOBAL Version of these variables instead of making them local\n $nameErrMsg = \"\";\t\t\t\t\t\t\t\t//Clear the error message.\n if($inName==\"\")\n {\n $validForm = false;\t\t\t\t\t//Invalid name so the form is invalid\n $nameErrMsg = \"Name is required\";\t//Error message for this validation\n }\n\n else if(!preg_match(\"/^[a-zA-Z\\s]+$/\",$inName)){\n $validForm=false;\n $nameErrMsg=\"Please use only letters\";\n }\n\n else\n {\n $inLname = trim($inName);\t\t\t\t//Removes leading/trailing characters\n $inLname = htmlspecialchars($$inName);\t//converts special characters\n }\n }", "function validateName($name)\n {\n return (mb_strlen($name) <= CUSTOMER_NAME_MAX_LENGTH && mb_strlen($name) !== 0);\n }", "public static function validateName($name) {\n if (preg_match(\"/^[a-zA-Z]*$/\",$name))\n return true;\n else\n return false;\n }", "function ValidateName($name)\n{\n $chars = str_split($name);\n\n // Assess each character\n foreach ($chars as $char) {\n if (!ValidateChar($char)) {\n return false;\n }\n }\n\n // // Check for empty\n // if (empty($name)) {\n // return false;\n // }\n\n return true;\n}", "public static function isValidName($name) {}", "function isValidName($name)\n{\n if (! preg_match(\"/^[a-zA-Z ]*$/\", $name)) {\n return false;\n }\n return true;\n}", "function isValidName($str)\n{\n $parts = explode(' ', $str);\n\n if (count($parts) < 2) {\n return false;\n }\n\n if ($str !== formatName($str))\n return false;\n\n return true;\n}", "function validateUserName($name)\n {\n /**condition for validating the type and size of user input string\n *takes user input name as a parameter for validating with the set conditons\n */\n if (preg_match('/[a-zA-Z]{3}/', $name)) {\n return true;\n }\n }", "function MCW_make_name_acceptable($name) {\n \n $name = strtr($name,\" \",\"_\");\n $name=preg_replace(\"/[^a-zA-Z0-9_äöüÄÖÜ]/\" , \"\" , $name);\n return $name;\n }", "public static function filename_valid($name) {\n return strlen($name) < 100 && preg_match(\"/^[a-z0-9 \\.-]+$/i\", $name) != 0;\n }", "static function validName($name)\r\n {\r\n if (ctype_alpha($name)) {\r\n return $name;\r\n } else if ($name == \"\") {\r\n return !empty($name);\r\n }\r\n }", "function validName($name)\n {\n //name should not be empty and should contain only letters\n return !empty($name) && ctype_alpha($name);\n }", "function name_validation($str)\n{\n return preg_match(\"/^[a-zA-Z ]+$/\", $str);\n}", "function validate_name($str){\n\t\t//the content of the fields gets automatically passed to the method\n\t\tif ($str == trim($str) && strpos($str, ' ') !== false) {\n\t\t$this->form_validation->set_message('validate_name','Space not allowed');\n\t\treturn FALSE; \n\t\t}\n\t\telse\n\t\t{\n\t\treturn TRUE;\n\t\t}\n\t}", "function nameValidator() {\n\t\tglobal $firstname;\n\t\treturn ctype_alpha($firstname);\n\t}" ]
[ "0.7977524", "0.7382228", "0.72816604", "0.72714263", "0.71109056", "0.7055057", "0.7000011", "0.693565", "0.6894662", "0.68716913", "0.6851824", "0.683465", "0.6811133", "0.6797025", "0.675656", "0.6686774", "0.661997", "0.65835583", "0.6575701", "0.65669715", "0.6565743", "0.65103906", "0.65006924", "0.64844346", "0.64805466", "0.6479097", "0.6459556", "0.64535636", "0.6449077", "0.64474976" ]
0.7898668
1
end method vAlphanumeric( $string ) Sanitize Alphanumeric Method This method sanitize alphanumeric strings
function sAlphanumeric( $string ) { return preg_replace( '/[^a-zA-Z0-9]/', '', $string ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function vAlphanumeric( $string )\r\n\t\t{\r\n\t\t\treturn ctype_alnum ( $string );\r\n\t\t\t\t\r\n\t\t}", "function filter_alphanum($input) {\n return preg_replace(\"/[^a-zA-Z0-9]+/\", \"\", $input);\n}", "function is_alphanumeric($string, $min_length = 0, $max_length = 0){\r\n //$ret = _is_valid($string, $min_length, $max_length, \"[[:alnum:],.°&!%()'?¿=ÀÁÂÃÄÅÆÇÈÉ\\\\ÊËÌÍÎÏÐÑÒÓÔÕÖ\\'ØÙÚÛÜÝÞßàáâãäæçèéêëìíîïðñòóôõöø;:ùúûüýþ:@#*-///$[:space:]]+\");\r\n //return($ret);\r\n $string=clean($string);\r\n if($min_length!=0)\r\n {\r\n if(strlen($string)<$min_length)\r\n return (false);\r\n }\r\n if($max_length!=0)\r\n {\r\n if(strlen($string)>$max_length)\r\n return (false);\r\n }\r\n return(true);\r\n}", "function april_sanitize_alphanumeric ( $s ) {\n\treturn preg_replace(\"/[^a-zA-Z0-9\\\\-]+/\", \"\", $s);\n}", "static function ExtractAlphanumeric($string) {\n return @eregi_replace('[^0-9A-Za-z]', '', $string);\n }", "function sanitizeAlphaNum($var)\n{\n return preg_replace('/[^a-zA-Z0-9]/', '', $var);\n}", "function justAlphanumeric($var)\n{\n return preg_replace('/[^0-9A-Za-z]/', '', $var);\n}", "public static function validateMixedalphanumeric($str) \r\n\t{\r\n\t\treturn preg_match('/^[a-zA-Z0-9]+$/',$str);\r\n\t}", "function alphaNumeric($string) {\n\treturn preg_replace(\"/[^a-zA-Z0-9]+/\", \"\", $string);\n}", "function validate_alphanumeric() {\n # Check Value is Alphanumeric\n if (ctype_alnum($this->cur_val)) {\n # Remove any existing error message\n $this->error_message = \"\";\n\n # Return Value\n return $this->cur_val;\n }\n else {\n # Set Error Message\n $this->set_error(\"Validation for alphanumeric ({$this->cur_val}) failed. This is type \" . gettype($this->cur_val));\n\n # Return AlphaNumeric version of value.\n return preg_replace(\"#[^a-zA-Z0-9_]#i\", \"\", $this->cur_val);\n }\n }", "function safeString($string)\n {\n return eregi_replace('[^[:alnum:] ]', '', $string);\n }", "function doMkAlpha ($string)\n{\n return preg_replace ('/[^a-z0-9]/i', '', $string);\n}", "protected static function _alphaNumeric(){\n if (self::$_ruleValue) {\n $str = trim(self::$_elementValue);\n if (!preg_match('/[a-zA-z0-9]/', $str)) {\n self:: setErrorMessage(\"Alphanumeric only\");\n self::setInvalidFlag(true);\n } else {\n self::setInvalidFlag(false);\n }\n }\n }", "function alphanumeric_space($str)\n\t{\t\t\n\t\t$this->CI->form_validation->set_message('alphanumeric_space', \"El campo %s debe contener una combinaci&oacute;n de caracteres alfanum&eacute;ricos y espacios.\");\n\t\treturn (bool) preg_match(\"/(^[a-zA-Z0-9\\xF1\\xD1\\sñÑ]+$)|^$/\", $str);\n\t}", "function scrub($str) {\n\t$str = preg_replace('/[^A-Za-z0-9]/','',$str);\n\treturn $str;\n}", "function filter_chars($str) {\n\treturn preg_replace(\"/[^A-Za-z0-9_]*/\", \"\", $str);\n}", "protected static function validate_alphanumeric( $value ){\n\t\treturn true;\n\t}", "public function isAlphanumeric()\n {\n return $this->matchesPattern('^[[:alnum:]]*$');\n }", "public static function is_alphanumeric(string $str): bool\n {\n if (self::$SUPPORT['mbstring'] === true) {\n return \\mb_ereg_match('^[[:alnum:]]*$', $str);\n }\n\n return self::str_matches_pattern($str, '^[[:alnum:]]*$');\n }", "public function string_validation($string){\n\t\tif(!preg_match('/^[a-zA-Z ]*$/',$string)){ \n\t\t\treturn true;\n \t}\n }", "public function testInvalidAlphanumString()\n {\n $string = 'fda543*&^%$gfs';\n $this->assertFalse($this->alphanum->execute($string));\n }", "public static function clean($string){\n $string = str_replace(' ','',$string);\n return strtolower(preg_replace('/[^A-Za-z0-9-]/','',$string));\n }", "public function testValidAlphanumString()\n {\n $string = 'dfasfa5425423frg890';\n $this->assertTrue($this->alphanum->execute($string));\n }", "public abstract function sanitize($string);", "private function process_alphanum($value)\n {\n return ! preg_match('/[^a-zA-Z0-9]/', $value);\n }", "static public function is_alphanum($value) {\n\t\treturn !preg_match(\"/[^a-zA-Z_-\\s0-9]/\",$value);\n\t}", "function sanitize($string, $force_lowercase = false, $anal = false)\n{\n $strip = ['~', '`', '!', '@', '#', '$', '%', '^', '&', '*', '(', ')', '_', '=', '+', '[', '{', ']', '}', '\\\\', '|', ';', ':', '\"', \"'\", '&#8216;', '&#8217;', '&#8220;', '&#8221;', '&#8211;', '&#8212;', '—', '–', ',', '<', '.', '>', '/', '?'];\n $clean = trim(str_replace($strip, '', strip_tags($string)));\n $clean = preg_replace('/\\s+/', '-', $clean);\n $clean = ($anal) ? preg_replace('/[^a-zA-Z0-9]/', '', $clean) : $clean;\n\n return ($force_lowercase) ?\n (function_exists('mb_strtolower')) ?\n mb_strtolower($clean, 'UTF-8') :\n strtolower($clean) :\n $clean;\n}", "function clean($string) {\r\n $string = str_replace(' ', '-', $string); // Replaces all spaces with hyphens.\r\n return preg_replace('/[^A-Za-z0-9\\-]/', '', $string); // Removes special chars.\r\n }", "function clean($string) {\n $string = str_replace('%', ' ', $string); // Replaces all spaces with hyphens.\n\n return $result = preg_replace(\"/[^a-zA-Z0-9]+/\", \"\", $string); // Removes special chars. // Removes special chars.\n }", "public static function unicodeAlphaNumeric($string)\n {\n $clean = preg_replace(\"/[^\\p{L}|\\p{N}]+/u\", \" \", $string);\n $clean = preg_replace(\"/[\\p{Z}]{2,}/u\", \" \", $clean);\n\n return $clean;\n }" ]
[ "0.8472854", "0.75830704", "0.7570652", "0.7542457", "0.75387424", "0.7475464", "0.74378425", "0.73478067", "0.7302982", "0.72903717", "0.7266861", "0.72071445", "0.70685077", "0.70604885", "0.6986772", "0.698119", "0.6932596", "0.6925659", "0.6913565", "0.6898145", "0.689441", "0.68932825", "0.6891993", "0.68686223", "0.6840018", "0.67830867", "0.67788905", "0.6774703", "0.67746615", "0.67676866" ]
0.82299244
1
function vProxy() Validate username Method This method function validates usernames only az, AZ, 09, and underscores Minimum 2 character maximum 30 characters (email address may be more) Size limit should match the restrictions on those same values in the database columns
function vUsername( $username ) { return preg_match( '/^[a-zA-Z\d_@.]{2,30}$/i', $username ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function validateUsername() {\r\n $val = trim($this->data['username');\r\n \r\n if( empty($val) ) { \r\n $this->addError('username', 'username cannot be empty');\r\n } else {\r\n if(preg_match('/^[a-aA-Z0-9]{6,12}$/', $val)) {\r\n $this->addError('username', 'username must 6-12 chars $ alphanumeric')\r\n }\r\n } \r\n }", "function account_namevalid() {\n if (strspn($_POST['clientusername'],\"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-\") == 0) {\n return false;\n }\n \n // must contain all legal characters\n if (strspn($_POST['clientusername'],\"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_\") != strlen($_POST['clientusername'])) {\n return false;\n }\n\n // min and max length\n if (strlen($_POST['clientusername']) < 5) {\n return false;\n }\n if (strlen($_POST['clientusername']) > 25) {\n return false;\n }\n\n // illegal names\n if (eregi(\"^((root)|(bin)|(daemon)|(adm)|(lp)|(sync)|(shutdown)|(halt)|(mail)|(news)|(uucp)|(operator)|(games)|(mysql)|(httpd)|(nobody)|(dummy)|(www)|(cvs)|(shell)|(ftp)|(irc)|(debian)|(ns)|(download))$\", $_POST['username'])) {\n return false;\n }\n if (eregi(\"^(anoncvs_)\", $_POST['clientusername'])) {\n return false;\n }\n\nreturn true;\n}", "function validate_username($username)\n {\n }", "function validate_username($username)\r\n\t{\r\n\t\t//return preg_match(REGEX_USERNAME, $username);\r\n\t\treturn preg_match(REGEX_USERNAME, $username);\r\n\t}", "function _validateUsername($name)\n {\n return trim(substr(preg_replace('/[^A-Za-z0-9_ \\-]/', '',$name),0,24)); \n }", "function verifyUserName($name) {\r\n if (preg_match('/^[a-zA-Z0-9\\ \\\\._\\'\"-]{4,50}$/', $name) != 1) { // no match\r\n return \"Name must be 4-50 characters long and consist of letters, digits, \"\r\n . \"spaces, dots, underscores, apostrophies, or minus sign.\";\r\n }\r\n return TRUE;\r\n}", "public static function validateUsername($username){\n\t\treturn preg_match('/^[A-Z0-9]{2,20}$/i', $username);\n\t}", "function validateUsername($nombre){\n if(strlen($nombre) < 4){\n return false;\n }\n\n if(!preg_match(\"/^([A-Z|Ñ|a-z|ñ|Á|É|Í|Ó|Ú|á|é|í|ó|ú]+\\s{0,1})+$/\", $nombre)){\n return false;\n }\n\n return true;\n}", "public function getMinUsernameLength();", "public function validate_username() {\n\n\t\tif(strtolower($this->username) == 'admin')\n\t\t\t$this->addError('username','Usuario no disponible.');\n\t}", "function validateUserName($name)\n {\n /**condition for validating the type and size of user input string\n *takes user input name as a parameter for validating with the set conditons\n */\n if (preg_match('/[a-zA-Z]{3}/', $name)) {\n return true;\n }\n }", "function test_uname($uname){\n //but may be useful when debugging\n $result = \"\";\n $unamelength = strlen($uname);\n //test length\n if ($unamelength < 3) $result = \"Invalid username: make it longer\";\n if ($unamelength > 25) $result = \"Invalid username: make it shorter\";\n //test for the word 'guest'\n if (strpos($uname, 'guest') !== false) $result=\"This word is restricted.\";\n //test for bad characters\n if (preg_match(\"/[^a-zA-Z0-9-_]/\", $uname)) $result = \"Invalid username\";\n return $result;\n}", "function validate_username($field)\n\t{\n\t\tif ($field == \"\") return \"No Username was entered.<br>\";\n\t\telse if (strlen($field) < 5)\n\t\t\treturn \"Username must be at least 5 characters.<br>\";\n\t\telse if (preg_match(\"/[^a-zA-Z0-9_-]/\",$field))\n\t\t\treturn \"Only a-z, A-Z,0-9,- and _ allowed in Usernames.<br>\";\n\t\treturn \"\";\n\t}", "public function getMaxUsernameLength();", "private function validateUserName($un){\n if(strlen($un)<2 || strlen($un)>25){\n array_push($this->errorArray, Constants::$userNameCharecters);\n return;\n }\n #SQL QUERY\n $query = $this->con->prepare(\"SELECT * FROM users WHERE userName=:un\");\n $query->bindValue(':un', $un); #bind the value to user name\n $query->execute();\n\n if($query->rowCount() !=0){\n array_push($this->errorArray,Constants::$userNameTaken);\n }\n\n }", "function validateUsername($username)\n {\n // include the username validator class to validate the username minimum of 5 and max of 15 characters\n include(\"../includes/class_libraries/UsernameValidator.php\");\n $usernameValidator = new UsernameValidator(5,15);\n \n // validate the username\n $result = $usernameValidator -> validateUsername($username);\n \n // check the result of there is an error committed\n if($result == false)\n {\n // get the errors committed and return the error\n return $usernameValidator -> getErrors();\n }\n \n return;\n }", "function valid_username($username)\n{\n\t$filter = preg_replace(\"/[^a-z\\d\\-=\\?!@:\\.]/i\", \"\", $username);\n\t\n\tif($filter == $username){\n\t\treturn $username; //preg_match('#^[a-z]{1,2}[a-z0-9-_.-]+$#i', $username);\n\t}\n}", "public static function validateUsername($username)\n {\n return preg_match('/^[A-Z0-9]{2,20}$/i', $username);\n }", "public static function validateUsername($username)\n {\n return preg_match('/^[A-Z0-9]{2,20}$/i', $username);\n }", "protected function validateUsername($username) \n {\n if (!empty($username)) {\n if (strlen($username) < '3') {\n $this->errors[] = USERNAME_TOO_SHORT;\n }\n if (strlen($username) > '50') {\n $this->errors[] = USERNAME_TOO_LONG;\n }\n // Match a-z, A-Z, 1-9, -, _.\n if (!preg_match(\"/^[a-zA-Z\\d-_]+$/i\", $username)) {\n $this->errors[] = USERNAME_CONTAINS_DISALLOWED;\n }\n } else {\n $this->errors[] = USERNAME_MISSING;\n }\n }", "function isValid($username) {\n\treturn !preg_match('/[^a-z0-9.\\-_]/i', $username);\n}", "function regexcheckusername($username){\n\t$regex_pattern=\"/^\\s*([a-zA-Z0-9]+[a-zA-Z0-9_-]*)+[a-zA-Z0-9]\\s*$/\"; //the displayname must begin and end with alphanumeric\n\treturn preg_match($regex_pattern,$username);//returns 1 if the username was valid\n}", "function validateName($string){\n\n\tif(preg_match(\"/^[a-zA-Z\\s]{5,30}$/\", $string)){\n\n\t\treturn true;\n\t}\n\telse{\n\n\t\treturn false;\n\t}\n\n\n}", "private function validateUsername($username)\n {\n if (strlen($username) > 25 || strlen($username) < 5) {\n array_push($this->errorArray, \"Your username must be between 25 & 5 characters\");\n return;\n }\n\n // check if user exists\n }", "public function username_check($str) {\n // return FALSE;\n return TRUE;\n }", "function validateUsername(&$errors, $field_list, $field_name, $enteredUser)\n{\n\t$UsernamePat = '/^[a-zA-Z0-9]+$/'; //username regex\n\tif (!isset($field_list[$field_name])|| empty($field_list[$field_name])) //check if empty\n\t\t$errors[$field_name] = ' Required';\n\telse if (!preg_match($UsernamePat, $field_list[$field_name])) //check if entry is valid\n\t\t$errors[$field_name] = ' Invalid';\n\telse { //checks if username has been used\n\t\t$pdo = new PDO('mysql:host=mysql.ahtomsk.com;dbname=brisfi', 'brisfi_user', 'test1234');\n\t\t$pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n\t\n\t\ttry\t{\n\t\t\t$query = $pdo->prepare(\"SELECT * \".\n\t\t\t\t\t\t\t\t\"FROM users \".\n\t\t\t\t\t\t\t\t\"WHERE username = '$enteredUser'\");\n\t\t\t$query->execute();\n\t\t}\n\t\tcatch (PDOException $e) \n\t\t{\n\t\t\techo $e->getMessage();\n\t\t}\n\n\t\t$rowCount = $query->rowCount();\n\n\t\tif($rowCount > 0){\n\t\t$errors[$field_name] = ' Username already in use';\n\t\t}\n\t}\n}", "private function validateUsername($un)\r\n {\r\n if (strlen($un) > 25 || strlen($un) < 5) {\r\n array_push($this->errorArray, Constants::$usernameCharacters);\r\n return;\r\n }\r\n // TODO: check if username exists.\r\n }", "public function usernameEntryIsValid() {\r\n \r\n //todo put logic here (same as email)\r\n // set the var equal to function call of username\r\n $username = $this->getUsername();\r\n // If the field is empty\r\n if ( empty($username) ) {\r\n // Will send it to errors as username and display the message to user\r\n $this->errors[\"username\"] = \"Username is missing.\";\r\n // Other test calls the validator class and nameisvalid function to test\r\n // the user name is it returns invalid the message is displayed to the user\r\n } else if ( !Validator::nameIsValid($this->getUsername()) ) {\r\n $this->errors[\"username\"] = \"Username is not valid.\"; \r\n }\r\n //Will return if its empty and whether any errors are contained\r\n return ( empty($this->errors[\"username\"]) ? true : false ) ;\r\n }", "function regex_username($uname){\n return preg_match('/^[a-zA-Z0-9]+$/',$uname);\n}", "function check_username(){\n $usernameErr = '';\n if(empty($_POST[\"username\"])){\n $usernameErr = \"Please enter a username\";\n }\n else{\n $username = $_POST['username'];\n if(!preg_match(\"/^[a-zA-Z0-9_]+$/\", $username)) {\n $usernameErr = \"Alpha lower, upper and underscore only for username\";\n }\n else{//username is ok\n $usernameErr = \"ok\";\n }\n }\n return $usernameErr;\n\n}" ]
[ "0.7980176", "0.77740335", "0.7581789", "0.7460802", "0.7457771", "0.74136335", "0.73682904", "0.7358264", "0.7311484", "0.7268704", "0.7244318", "0.72025174", "0.71616274", "0.7113548", "0.7079885", "0.70726943", "0.70674807", "0.70264596", "0.70264596", "0.69761264", "0.6925455", "0.6910882", "0.6906856", "0.69057554", "0.68953174", "0.68864894", "0.6884341", "0.6877174", "0.6845614", "0.6841245" ]
0.78048486
1
end function vdb_name ($db) This method validates a persons sex If input is 'f' or 'm' return TRUE.
function vSex ( $sex ) { # Strip string down to first character $sex = strtolower( substr( $sex, 0, 1) ); # Checks if result is 'f' or 'm' if ( $sex != "f" OR $sex != "m" ) $sex = true; else $sex = false; return $sex; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function vdb_name ($db) \r\n\t\t{\r\n\t\t\treturn !preg_match('/[^a-z_\\-0-9]/i', $db);\r\n\t\t\t\r\n\t\t}", "function sexFormat ($value){\n \n if(strlen($value) == 0){\n return true;\n }\n \n else if(!preg_match(VALID_SEX_FORMAT,$value)){\n return false;\n }\n \n return true;\n}", "function db_name_insert($name, $sex, $db)\n{\n //echo \"Inside db_name_insert. \"; \n if($sex == \"M\") //Inserts the user's name into the database's boy site's table M was passed.\n {\n $insertBoyTable = 'INSERT INTO `SITE_BABYNAMES_BOY` (`id`, `name`, `sex`, `num`)' . PHP_EOL \n . ' VALUES (NULL, \\''.$name.'\\', \\'M\\', \\'1\\');'; \n $db->query($insertBoyTable); \n }\n else //Inserts the user's name into the database's girl site's table F was passed.\n {\n $insertGirlTable = 'INSERT INTO `SITE_BABYNAMES_GIRL` (`id`, `name`, `sex`, `num`)' . PHP_EOL \n . ' VALUES (NULL, \\''.$name.'\\', \\'M\\', \\'1\\');'; \n $db->query($insertGirlTable); \n } \n}", "static function validate_db($name, $value)\n\t\t{\n\t\t\t$chomps = explode(\".\", $name);\n\t\t\t//we zoeken de db_meta\n\t\t\t$res = DBConnect::query(\"SELECT * FROM `sys_database_meta` WHERE `tablename`='\" . $chomps[0] . \"' AND `fieldname`='\" . $chomps[1] . \"'\", __FILE__, __LINE__);\n\t\t\tif($row = mysql_fetch_array($res))\n\t\t\t{\n\t\t\t\t$options = data_description::options_convert_to_array($row[\"datadesc\"], $row[\"data_options\"]);\n\t\t\t\treturn data_description::validate($value, $row[\"datadesc\"], $options, $name, $row[\"fieldlabel\"], $row[\"obligated\"]);\n\t\t\t}\n\t\t\telse\n\t\t\t\treturn data_description::validate($value, 1, array(\"length\" => \"255\"), $name, $chomps[count($chomps)-1], 0);\n\t\t}", "function sSex ( $sex ) \r\n\t\t{\r\n\t\t\treturn strtolower(substr($sex, 0, 1));\r\n\t\t\t\r\n\t\t}", "function checkName(){\n $name = $_REQUEST[\"name\"];\n if(preg_match(\"/[a-zA-ZåäöÅÄÖ0-9]+/\", $name)){\n $db = new MyDB(\"sqltemptime.db\");\n if(!$db){\n echo $db->lastErrorMsg();\n }\n $sql = <<<EOF\n SELECT name FROM mashschedule WHERE name=\"$name\";\nEOF;\n $ret = $db->query($sql);\n $row = $ret->fetchArray(SQLITE3_ASSOC);\n if($row['name']){\n echo \"fail\";\n } else {\n echo \"success\";\n }\n $db->close();\n }\n else{\n echo \"Name not valid\";\n }\n}", "function validFname($fname)\r\n {\r\n return !empty($fname) && ctype_alpha($fname);\r\n }", "function db_name_match($name, $sex, $db)\n{\n //echo \"Inside db_name_match. \";\n if($sex == \"M\") //Selects the boy's site table if M was passed.\n {\n $select_SITE_NAMES = 'SELECT * FROM `SITE_BABYNAMES_BOY`;';\n }\n else //Selects the girl's site table if F was passed.\n {\n $select_SITE_NAMES = 'SELECT * FROM `SITE_BABYNAMES_GIRL`;'; \n }\n \n $result = $db->query($select_SITE_NAMES);\n\n if($result->num_rows > 0) \n {\n //Goes through loop to check everyname in the table to see if there is a match.\n while($row = $result->fetch_assoc()) \n {\n $db_site_name = $row[\"name\"]; //Stores the current row's name from the table.\n\n if($db_site_name == $name) \n {\n return 1; //Returns True if there was a match.\n } \n } \n }\n return 0; //Returns False if there were no matches.\n}", "private function isVoterExists($fname,$mname,$lname,$datebirth,$constituent) {\n $stmt = $this->con->prepare(\"SELECT * from voters2015 WHERE firstname = ? AND middlename = ? AND lastname = ? AND datebirth = ? AND votingconstituent_id = ?\");\n $stmt->bind_param(\"ssssi\", $fname,$mname,$lname,$datebirth,$constituent);\n $stmt->execute();\n $stmt->store_result();\n $num_rows = $stmt->num_rows;\n $stmt->close();\n return $num_rows > 0;\n }", "public function checkName(Franchise $franchise){\n $pdo = $this->connection->prepare(\"SELECT name FROM franchises WHERE name=:name\");\n $pdo->execute(array(\n 'name' => $franchise->getName()\n ));\n $result = $pdo->fetch(PDO::FETCH_ASSOC);\n if(!empty($result)){\n return true;\n }\n else{\n return false;\n }\n }", "function checkName($name,$conn){\n $sql = \"SELECT *FROM student WHERE studentName='\".$name.\"' and bithDate='\".$_POST['birthDate'].\"'\";\n $result = mysqli_query($conn, $sql);\n if(mysqli_num_rows($result)>0)\n return true;\n else\n return false;\n}", "public function valid_db_database()\n\t{\n\t\treturn $this->db_validation(1049, function() {\n\t\t\tee()->form_validation->set_message(\n\t\t\t\t'valid_db_database',\n\t\t\t\tlang('database_invalid_database')\n\t\t\t);\n\t\t});\n\t}", "function sexuality ($seekerid, $conn, $famenage) {\n if ($seeker['sexuality'] == 'Homosexual') {\n $sql = \"SELECT id FROM users WHERE id != '$seekerid' AND gender = '$seekergen' $famenage\";\n $stmt = $conn->prepare($sql);\n $stmt->execute();\n } else if ($seeker['sexuality'] == 'Hetrosexual') {\n $sql = \"SELECT id FROM users WHERE id != '$seekerid' AND gender != '$seekergen' AND gender != 'Other' $famenage\";\n $stmt = $conn->prepare($sql);\n $stmt->execute();\n } else {\n $sql = \"SELECT id FROM users WHERE id != '$seekerid' $famenage\";\n $stmt = $conn->prepare($sql);\n $stmt->execute();\n }\n // echo \"<br>Lets see if we found something\";\n // echo \"btw boss this is what the sql was like <br>'$sql'\";\n return ($stmt);\n }", "function nameValidator() {\n\t\tglobal $firstname;\n\t\treturn ctype_alpha($firstname);\n\t}", "function female() \n { \n $this->sex_id=\"F\";\n $this->sex_name=\"Female\";\n return($this->sex_id);\n }", "public function validateLastname($lastname){\n if(preg_match(\"/^([a-zA-Z' ]+)$/\",$lastname)){\n return true;\n }else{\n return false;\n }\n }", "function validateSingleFitment($name) { \n\tglobal $pdo;\n\n\t$stmt = 'SELECT * FROM amasty_finder_value WHERE UPPER(name)=UPPER(:name)';\n\t$stmt = $pdo->prepare($stmt);\n\t$stmt->execute(['name' => $name]);\n\n\tif (sizeOf( $stmt->fetchAll(PDO::FETCH_COLUMN) ) > 0) return true;\n\telse return false;\n}", "public function validateFullname($passFullname) \n {\n\n if(preg_match('/^[a-zA-Z\\s]+$/',$passFullname))\n {\n return true;// if the form is valid \n }\n else \n {\n return false;// as for an invalid form \n }\n\n \n\n\n \n\n }", "function validasi_masukan_alfabet(&$pesan_error, $name) {\n $pattern = \"/^[a-z A-Z'.]+$/\"; //alfabet dari huruf kecil maupun besar, ditambah spasi untuk pemisah nama\n if (@$_POST[$name]!='' & !preg_match($pattern, @$_POST[$name])) $pesan_error[$name] = 'Hanya boleh memasukkan alfabet';\n}", "function isNameViable(){\n\t$postName = filter_var($_POST['name'], FILTER_SANITIZE_SPECIAL_CHARS);\n\tif(strlen($postName) < 3){\n\t\treturn false;\n\t}\n\n\t$f = $postName[0]; #first letter is predicted class\n\t$s = $postName[1]; #second letter is actual class\n\t#third letter is '_'\n\tif(($f=='B' || $f=='D' || $f=='F' || $f=='L' || $f=='R') && \n\t\t($s=='B' || $s=='D' || $s=='F' || $s=='L' || $s=='R') &&\n\t\t$postName[2]=='_'){\n\t\t\treturn true;\n\t} else{\n\t\treturn false;\n\t}\n}", "function verify_person () {\n $bh=new gs_base_handler($this->data,$this->params);\n $f=$bh->validate();\n if (!is_object($f) || !is_a($f,'g_forms')) return $f;\n $d=$f->clean();\n\n $rec=person($this->params['role']);\n if (!$rec) {\n $f->trigger_error('FORM_ERROR','REC_NOTFOUND');\n return $bh->showform($f);\n }\n\n $fname=$this->params['field_name'].'_secret';\n $ga=new GoogleAuthenticator;\n $code=$ga->getCode($rec->$fname);\n\n\n if ($code!=$d['ga_code']) {\n $f->trigger_error('FORM_ERROR','GA_INCORRECT_CODE');\n return $bh->showform($f);\n }\n\n $person=person();\n $fname=$this->params['field_name'].'_verified';\n $person->$fname=TRUE;\n return true;\n }", "function sex($sex)\n{\n\tglobal $con;\n\t\n\t$query_ConsultaFuncion = sprintf(\"SELECT sex FROM students WHERE id_student = %s \",\n\t\t GetSQLValueString($sex, \"int\"));\n\t//echo $query_ConsultaFuncion;\n\t$ConsultaFuncion = mysqli_query($con, $query_ConsultaFuncion) or die(mysqli_error($con));\n\t$row_ConsultaFuncion = mysqli_fetch_assoc($ConsultaFuncion);\n\t$totalRows_ConsultaFuncion = mysqli_num_rows($ConsultaFuncion);\n\t\n\treturn $row_ConsultaFuncion[\"sex\"];\t\n\t\n\tmysqli_free_result($ConsultaFuncion);\n}", "function vName( $name ) \r\n\t\t{\t \r\n\t\t\t\t\r\n\t\t\t\treturn preg_match (\"/^[a-zA-ZàáâäãåąćęèéêëìíîïłńòóôöõøùúûüÿýżźñçčšžÀÁÂÄÃÅĄĆĘÈÉÊËÌÍÎÏŁŃÒÓÔÖÕØÙÚÛÜŸÝŻŹÑßÇŒÆČŠŽ∂ð ,.'-]+$/u\", $name);\r\n\t\t\t\t\t\t \r\n\t\t}", "function validaAlfa ($Cad) {\n// prueba si la entrada es una cadena alfabetica\nreturn preg_match(\"/^[a-z]+$/i\", $Cad );\n}", "function buscar_personalxdni($dni){\n\t$dni = textfilter_specialchars($dni);\n\t$cons_pers = \"SELECT apellidos,nombres FROM personal WHERE dni='$dni'\";\n\t$resp_pers = mysql_query($cons_pers);\n\t$name = \"\";\n\tif($row = mysql_fetch_array($resp_pers)){\n\t\t$apellidos = $row['apellidos'];\n\t\t$nombres = $row['nombres'];\n\t\t$name = $apellidos.\", \".$nombres;\n\t\t$name = mb_convert_case($name, MB_CASE_UPPER, \"UTF-8\");\n\t}else{\n\t\t$name = \"Error\";\n\t}\n\treturn $name;\n}", "private final static function validDbName($name)\n {\n return !preg_match('#[^a-z_]|^[^a-z]|[^a-z]|__$#', $name);\n }", "public function check_gender($gen){\n\t\tif($gen == '1'){\n\t\t\t$txt = 'Male';\n\t\t}else if($gen == '2'){\n\t\t\t$txt = 'Female';\n\t\t}\n\t\treturn $txt;\n }", "public function hasSex(){\r\n return $this->_has(6);\r\n }", "public function hasSex(){\n return $this->_has(2);\n }", "public function hasSex(){\n return $this->_has(2);\n }" ]
[ "0.6050905", "0.57993084", "0.57424146", "0.559078", "0.54370964", "0.53763187", "0.5275456", "0.5215062", "0.52050877", "0.5191395", "0.51742744", "0.51707804", "0.51247954", "0.51168954", "0.51155895", "0.51043093", "0.50788766", "0.5076901", "0.50681305", "0.505812", "0.5055312", "0.5055158", "0.5053798", "0.5050032", "0.5038921", "0.5014506", "0.50046325", "0.500062", "0.49977544", "0.49977544" ]
0.6734537
0
end function vSex ( $sex ) This method sanitizes a persons sex
function sSex ( $sex ) { return strtolower(substr($sex, 0, 1)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function vSex ( $sex ) \r\n\t\t{\r\n\t\t\t# Strip string down to first character\r\n\t\t\t$sex = strtolower( substr( $sex, 0, 1) );\r\n\t\t\t\r\n\t\t\t# Checks if result is 'f' or 'm'\r\n\t\t\tif ( $sex != \"f\" OR $sex != \"m\" )\r\n\t\t\t\t$sex = true;\r\n\t\t\t\t\r\n\t\t\telse \r\n\t\t\t\t$sex = false;\r\n\t\t\t\r\n\t\t\treturn $sex;\r\n\t\t\t\r\n\t\t}", "public function setSex($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->sex !== $v) {\n $this->sex = $v;\n $this->modifiedColumns[UserTableMap::COL_SEX] = true;\n }\n\n return $this;\n }", "public function setSex($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->sex !== $v) {\n $this->sex = $v;\n $this->modifiedColumns[AliMemberTableMap::COL_SEX] = true;\n }\n\n return $this;\n }", "function sexFormat ($value){\n \n if(strlen($value) == 0){\n return true;\n }\n \n else if(!preg_match(VALID_SEX_FORMAT,$value)){\n return false;\n }\n \n return true;\n}", "public function setSex($sex)\n {\n $this->sex = $sex;\n\n return $this;\n }", "public function setSex($sex)\n {\n $this->sex = $sex;\n\n return $this;\n }", "public function getSex()\n {\n return $this->sex;\n }", "public function getSex()\n {\n return $this->sex;\n }", "public function getSex()\n {\n return $this->sex;\n }", "public function getSex()\n {\n return $this->sex;\n }", "public function getSex()\n {\n return $this->sex;\n }", "public function setSex($var)\n {\n GPBUtil::checkEnum($var, \\Greeter\\Sex::class);\n $this->sex = $var;\n\n return $this;\n }", "public function getsex()\n {\n return $this->sex;\n }", "public function setCsex($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->csex !== $v) {\n $this->csex = $v;\n $this->modifiedColumns[AliMemberTableMap::COL_CSEX] = true;\n }\n\n return $this;\n }", "function _normalize_gender($value)\r\n{\r\n\t// normalize gender\r\n\tif ( is_string($value) )\r\n\t{\r\n\t\t$gender = substr($value,0,1);\r\n\t\t$gender = strtoupper($value);\r\n\t}\r\n\t\r\n\t// validity check\r\n\tif ( !in_array($value, $this->VALID['GENDER']) )\r\n\t{\r\n\t\t$list = print_r($this->VALID['GENDER'],1);\r\n\t\ttrigger_error(\"invalid gender value -- must set to one of following: $list\", E_USER_WARNING);\r\n\t\treturn 0;\r\n\t}\r\n\t\r\n\t// set gender number and abbreviation\r\n\tif ( is_numeric($value) )\r\n\t{\r\n\t\t$this->gender = $value;\r\n\t\tif ( $value == $this->m_val ) $this->gender_name = $this->m_abr;\r\n\t\telse $this->gender_name = $this->f_abr;\r\n\t}\r\n\telse\r\n\t{\r\n\t\t$this->gender_name = $value;\r\n\t\tif ( $value == $this->m_abr ) $this->gender = $this->m_val;\r\n\t\telse $this->gender = $this->f_val;\r\n\t}\r\n\t\r\n\treturn;\r\n}", "public function getSex()\n {\n return self::SEX[$this->sex];\n }", "public function setsex($v)\n {\n if ($v !== null && is_numeric($v)) {\n $v = (int) $v;\n }\n\n if ($this->sex !== $v) {\n $this->sex = $v;\n $this->modifiedColumns[] = ActionTypePeer::SEX;\n }\n\n\n return $this;\n }", "function sex($sex)\n{\n\tglobal $con;\n\t\n\t$query_ConsultaFuncion = sprintf(\"SELECT sex FROM students WHERE id_student = %s \",\n\t\t GetSQLValueString($sex, \"int\"));\n\t//echo $query_ConsultaFuncion;\n\t$ConsultaFuncion = mysqli_query($con, $query_ConsultaFuncion) or die(mysqli_error($con));\n\t$row_ConsultaFuncion = mysqli_fetch_assoc($ConsultaFuncion);\n\t$totalRows_ConsultaFuncion = mysqli_num_rows($ConsultaFuncion);\n\t\n\treturn $row_ConsultaFuncion[\"sex\"];\t\n\t\n\tmysqli_free_result($ConsultaFuncion);\n}", "public function setSex($newsex)\n\t{\n\t if (in_array($newSex, ['Male', 'Female'])) {\n\t $this->sex = $newSex;\n\t } else {\n\t // Else throw an exception\n\t throw new Exception();\n\t }\n\t \n\t return $this;\n\t}", "public function getUserSex()\n {\n return $this->getUserAttribute(static::ATTRIBUTE_SEX);\n }", "function smarty_function_PUBLICA_printSex($params, &$smarty) {\n\t// Verifica a validade do parametro\n\tswitch(intval($params['var'])) {\n\t\tcase 0:\n\t\tdefault:\n\t return $smarty->_tpl_vars['T_feminino'];\n break;\n \n\t\tcase 1:\n\t return $smarty->_tpl_vars['T_masculino'];\n break;\n\t}\n}", "public function getCsex()\n {\n return $this->csex;\n }", "public function getSex()\n {\n $result = null;\n if (isset($this->userInfo['sex'])) {\n $result = $this->userInfo['sex'] == 1;\n }\n return $result;\n }", "function info($sexId) \n { \n $oaux=new sex();\n if($sexId==$oaux->male())\n \t$this->male();\n if($sexId==$oaux->female())\n $this->female();\n return($this->sex_id);\n }", "public function setSexo($v)\n\t{\n\t\tif ($v !== null) {\n\t\t\t$v = (string) $v;\n\t\t}\n\n\t\tif ($this->sexo !== $v) {\n\t\t\t$this->sexo = $v;\n\t\t\t$this->modifiedColumns[] = UsuarioPeer::SEXO;\n\t\t}\n\n\t\treturn $this;\n\t}", "public function setFiltroSexoHombre($fil='') {\n $this->filtroHombre = $this->arreglarFiltro($fil);\n $this->filtrarPersonas();\n }", "public function sex()\n {\n return $this->belongsTo(\\App\\Models\\Sex::class, 'sex_uuid');\n }", "private function parse_participants_sex_count(){\n\n\t\t$this->female_count = 0;\n\t\t$this->male_count = 0;\n\t\tforeach($this->participants as $participant){\n\t\t\tif($participant->sex === 'female'){\n\t\t\t\t$this->female_count = $this->female_count + 1;\n\t\t\t}\n\t\t\telse if($participant->sex === 'male'){\n\t\t\t\t$this->male_count = $this->male_count + 1;\n\t\t\t}\n\t\t}\n\n\t}", "function Buscar_sexo_habilidad($sex,$tipo_hab,$hab){\n \t$data = $this->model->GetSexo($sex,$tipo_hab,$hab);\n \treturn $data;\n }", "public function validate_sexo() {\n\t\tif($this->sexo === 'vacio')\n\t\t\t$this->addError('sexo','Por favor, indica tu sexo.');\t\n\t}" ]
[ "0.7612771", "0.6398746", "0.6389797", "0.6275567", "0.60297316", "0.60297316", "0.60242575", "0.60242575", "0.60242575", "0.60242575", "0.60242575", "0.59680015", "0.5952877", "0.5948939", "0.58530843", "0.5714295", "0.56004864", "0.5535462", "0.54754174", "0.5460379", "0.54399395", "0.54061854", "0.5405753", "0.535128", "0.5298956", "0.524399", "0.51579607", "0.5124013", "0.51011264", "0.50966346" ]
0.7483746
1
Retrieves a feature given its slug
public function getOne(string $featureSlug) : array { return $this->sendGet( sprintf('/profiles/%s/features/%s', $this->userName, $featureSlug) ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getBySlug(string $slug);", "public function getBySlug()\n {\n }", "public function show(Feature $feature)\n {\n return $feature;\n }", "public function getSingleFeature(Request $request, $id)\n {\n $feature = Feature::find($id);\n if(is_null($feature)) return $this->notfound('Feature not found', 'null');\n return $this->success($feature);\n }", "public function getField($slug);", "function getFeatureAttribute($square_id, $attribute) {\n\twriteLog(\"getFeatureAttribute(): Square ID: \" . $square_id);\t\n\t\n\t$sql = \"SELECT \" . $attribute . \" FROM oddworld.feature WHERE square_id = \" . $square_id . \";\";\n\t$results = doSearch($sql);\n\t$count = count($results);\n\twriteLog(\"getFeatureAttribute(): Results: \" . count($results));\n\tif ($count != 0) {\n\t\twriteLog(\"getFeatureAttribute(): \" . $attribute . \": \" . $results[0][$attribute]);\n\t\treturn $results[0][$attribute];\t\n\t} else {\n\t\treturn \"\";\n\t}\n\t\t\n}", "public function findBySlug(string $slug): Product;", "public function get_product_feature($product_feature_id)\n\t{\n\t\t//retrieve all users\n\t\t$this->db->from('product_feature');\n\t\t$this->db->select('*');\n\t\t$this->db->where('product_feature_id = '.$product_feature_id);\n\t\t$query = $this->db->get();\n\t\t\n\t\treturn $query;\n\t}", "function get_registered_theme_feature($feature)\n {\n }", "public function findBySlug(string $slug);", "public function findBySlug(string $slug);", "public function bySlug($slug);", "public function findBySlug($slug);", "public function findBySlug($slug);", "public function findBySlug($slug);", "public function findBySlug($slug);", "public function findBySlug($slug);", "public function getBySlug($slug)\n\t{\n\t\treturn $this->model->where('slug',$slug)->firstOrFail();\n\t}", "function getTour($slug){\n\tglobal $conn;\n\t// Get single tour slug\n\t$tour_slug = $_GET['tour-slug'];\n\t$sql = \"SELECT * FROM tours WHERE slug='$tour_slug'\";\n\t$result = mysqli_query($conn, $sql);\n\n\t// fetch query results as associative array.\n\t$tour = mysqli_fetch_assoc($result);\n\tif ($tour) {\n\t\tupdateTourView($tour['id']);\n\t}\n\treturn $tour;\n}", "public function show(Feature $feature)\n {\n //\n }", "public function getRecord($slug){\n return $this->where(\"slug\", $slug)->first();\n }", "public function getFeatureClass ($feature);", "function getPlace($slug){\n\tglobal $conn;\n\t// Get single div slug\n\t$place_slug = $_GET['place-slug'];\n\t$sql = \"SELECT * FROM place WHERE slug='$place_slug'\";\n\t$result = mysqli_query($conn, $sql);\n\n\t// fetch query results as associative array.\n\t$placedetails = mysqli_fetch_assoc($result);\n\treturn $placedetails;\n}", "public function getFeature($key);", "function oo_get_post_by_slug($slug) {\n $posts = get_posts(array(\n 'name' => $slug,\n 'post_type' => 'post',\n 'posts_per_page' => 1,\n 'post_status' => 'any',\n ));\n\n return count($posts) > 0 ? $posts[0] : null;\n}", "public function findOneBySlug(Slug $slug);", "public function findOneBySlug(Slug $slug);", "function get_company_feature_listing($feature_id) {\n\t\t $str = \"SELECT feature_name FROM feature_listing WHERE feature_id = $feature_id\"; \n\t\t$fea = mysqli_query($link,$str);\n\t\t$res = mysqli_fetch_assoc($fea);\n\t\treturn $res;\n\t}", "public static function getFeatureById($id){\n\t\t$db = DemoDB::getConnection();\n\t\t$sql = \"SELECT feature.id,title,functionality,benefit, user_role.name as user_role_name\n\t\t\t\tFROM feature\n\t\t\t\tINNER JOIN user_role\n\t\t\t\t\tON user_role_id = user_role.id\n\t\t\t\tWHERE feature.id = :id;\";\n $stmt = $db->prepare($sql);\n $stmt->bindValue(\":id\", $id);\n\t\t$ok = $stmt->execute();\n\t\tif ($ok) {\n return $stmt->fetch(PDO::FETCH_ASSOC);\n }\n\t}", "function getDependenceBySlug($slug)\n\t{\n\t\t$query = $this->db->get_where('dependence', array('slug'=>$slug));\n\t\treturn $query->row();\n\t}" ]
[ "0.67817163", "0.6406728", "0.6212148", "0.61604583", "0.60124195", "0.59647757", "0.59503347", "0.5944556", "0.5926518", "0.59174204", "0.59174204", "0.5899198", "0.58913827", "0.58913827", "0.58913827", "0.58913827", "0.58913827", "0.5843404", "0.58103794", "0.5810155", "0.58097255", "0.57951736", "0.5786541", "0.5786235", "0.57632947", "0.5735849", "0.5735849", "0.572951", "0.57167506", "0.5713131" ]
0.69149923
0
Deletes a feature given its slug
public function deleteOne(string $featureSlug) : array { return $this->sendDelete( sprintf('/profiles/%s/features/%s', $this->userName, $featuresSlug) ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function destroy($slug)\n {\n //\n if (\\Gate::allows('canDelete')){\n //$this->authorize('isAdmin');\n $content = Featured::where('slug', '=', $slug)->firstOrFail();\n $old_image = $content->image;\n $featuredPhoto = public_path('img/featured/').$old_image;\n $featuredThumb = public_path('img/featured/thumbs/').$old_image;\n if(file_exists($featuredPhoto)){\n unlink($featuredPhoto);\n unlink($featuredThumb);\n }\n //delete the featured\n $content->delete();\n\n return ['result'=>'success', 'message' => $content->title .' deleted successfully'];\n }else{\n return ['result'=>'error', 'message' =>'Unauthorized! Access Denied'];\n }\n }", "public function destroy(Feature $feature)\n {\n $feature->delete();\n return redirect()->route(\"admin.features.index\");\n }", "public function deletefeatureAction(){\n $id = intval($this->_getParam(\"id\"));\n\n /* Initialize the delete form*/\n $form_delete = new library_forms_Delete;\n $this->view->formDelete = $form_delete;\n if ($this->getRequest()->isPost() && $form_delete->isValid($_POST)) {\n //Delete the feature\n $model_feature = new library_models_feature;\n $model_feature->delete('featureId = '.$id);\n \n // We also need to update HasFeature table\n $model = new library_models_hasfeature;\n $model->delete('featureId = '.$id); \n \n //Report the success of the property deletion to the view\n $this->_flashMessenger->addMessage(\"The feature has been deleted successfully\");\n $this->_helper->getHelper('Redirector')->gotoUrl(Zend_Registry::get('ROOTURL').\"index/managefeatures\"); \n }\n }", "public function delete(FeatureFlag $feature): void;", "public function destroy(Feature $feature)\n {\n $old_image=$feature->background_image;\n $feature->delete();\n if(File::exists('public/'.$old_image))unlink('public/'.$old_image);\n $notification=array(\n 'messege'=>'Deleted Successfully',\n 'alert-type'=>'success'\n );\n\n return redirect()->route('admin.feature.index')->with($notification);\n\n }", "public function delete( $slug ) {\n\t\tdelete_site_option( 'ghu_wp-dependencies' );\n\t}", "public function testAdminDeleteFeature()\n {\n $client = static::createClient([], self::SERVER);\n\n $feature = $client->getContainer()->get('doctrine')\n ->getRepository(Feature::class)->findOneBy([\n 'name' => self::EDITED,\n ])->getId();\n\n $crawler = $client->request('GET', '/en/admin/feature');\n $client->submit($crawler->filter('#delete-form-'.$feature)->form());\n $this->assertSame(Response::HTTP_FOUND, $client->getResponse()->getStatusCode());\n\n $this->assertNull($client->getContainer()->get('doctrine')\n ->getRepository(Feature::class)->findOneBy([\n 'name' => self::EDITED,\n ]));\n }", "public function delete_movie($slug)\n {\n $this->db->delete('tbl_movies', ['slug' => $slug]);\n }", "public function destroy($slug)\n {\n\n }", "public function delete(FeatureFlag $feature): void\n {\n $this->gateway->delete($feature->identifier, $feature->scope);\n }", "public function destroy($id)\n {\n Feature::find($id)->delete();\n return redirect()->route('feature.index');\n }", "public function destroy($slug)\n\t{\n\t\t//\n\t}", "public function delete($slug)\n {\n if(!checkRole(getUserGrade(2)))\n {\n prepareBlockUserMessage();\n return back();\n }\n /**\n * Delete the questions associated with this quiz first\n * Delete the quiz\n * @var [type]\n */\n $record = Quiz::where('slug', $slug)->first();\n try{\n if(!env('DEMO_MODE')) {\n $record->delete();\n }\n $response['status'] = 1;\n $response['message'] = getPhrase('record_deleted_successfully');\n } catch (Exception $e) {\n $response['status'] = 0;\n if(getSetting('show_foreign_key_constraint','module'))\n $response['message'] = $e->getMessage();\n else\n $response['message'] = getPhrase('this_record_is_in_use_in_other_modules');\n }\n return json_encode($response);\n\n }", "public function delete($slug) {\n\t\tif (!$this->session->userdata('is_logged_in')) {\n\t\t\tredirect('login');\n\t\t}\n\n\t\t$data['post'] = $this->Posts_model->get_post($slug);\n\t\tif ($this->session->userdata('user_id') == $data['post']->author_id) {\n\t\t\t$this->Posts_model->delete_post($slug);\n\t\t\t$this->session->set_flashdata('post_deleted', 'The post has been deleted');\n\t\t\tredirect('/');\n\t\t} else {\n\t\t\t/* If the current user is not the author\n\t\t\tof the post do not alow delete */\n\t\t\tredirect('/' . $slug);\n\t\t}\n\t}", "public function delete($slug)\n {\n $category = Category::where('slug', $slug);\n $category->forceDelete();\n return redirect()->back()->with('message','Categoría eliminada definitivamente!!!');\n }", "public function delete($slug){\n if(!checkRole(getUserGrade(2)))\n {\n prepareBlockUserMessage();\n return back();\n }\n $record = LmsCategory::where('slug', $slug)->first();\n\n try{\n $this->setSettings();\n\n $examSettings = $this->getSettings();\n $path = IMAGE_PATH_UPLOAD_LMS_CATEGORIES;\n $r = $record;\n if(!env('DEMO_MODE')) {\n $record->delete();\n $this->deleteFile($r->image, $path);\n }\n\n $response['status'] = 1;\n $response['message'] = getPhrase('category_deleted_successfully');\n }\n catch ( \\Illuminate\\Database\\QueryException $e) {\n $response['status'] = 0;\n if(getSetting('show_foreign_key_constraint','module'))\n $response['message'] = $e->errorInfo;\n else\n $response['message'] = getPhrase('this_record_is_in_use_in_other_modules');\n }\n\n return json_encode($response);\n }", "public function destroy($slug)\n {\n //\n Hotel::whereSlug($slug)->delete();\n\n return redirect()->back();\n }", "public function destroy(Features $features)\n {\n //\n }", "public function delete_product_feature($product_feature_id)\n\t{\n\t\t\n\t\tif($this->db->delete('product_feature', array('product_feature_id' => $product_feature_id)))\n\t\t{\n\t\t\treturn TRUE;\n\t\t}\n\t\telse{\n\t\t\treturn FALSE;\n\t\t}\n\t}", "public function delete($slug)\n {\n if(!checkRole(getUserGrade(1)))\n {\n prepareBlockUserMessage();\n return back();\n }\n /**\n * Delete the questions associated with this quiz first\n * Delete the quiz\n * @var [type]\n */\n $record = Notification::where('slug', $slug)->first();\n if(!env('DEMO_MODE')) {\n $record->delete();\n }\n\n $response['status'] = 1;\n $response['message'] = getPhrase('record_deleted_successfully');\n return json_encode($response);\n }", "public function destroy($id, Request $request)\n {\n $this->help->checkPermission(Auth::user()->id, \"features-manage\");\n Features::where('id', $id)->delete();\n return redirect('features');\n }", "public function delete($slug,$id)\n {\n $content = Content::find($id);\n\n if($content->delete())\n {\n return redirect()\n ->back()\n ->with('alert.status', 'success')\n ->with('alert.message', 'Delete Succesfully');\n }else\n {\n return redirect()\n ->back()\n ->with('alert.status', 'warning')\n ->with('alert.message', 'Delete Unsuccesfully');\n }\n }", "public function destroy($slug)\n {\n $gamer=Gamer::where('slug', $slug)->firstOrFail();\n $gamer->delete();\n\n if ($gamer) {\n return redirect()->route('jugadores.index')->with(['type' => 'success', 'title' => 'Eliminación exitosa', 'msg' => 'El jugador ha sido eliminado exitosamente.']);\n } else {\n return redirect()->route('jugadores.index')->with(['type' => 'error', 'title' => 'Eliminación fallida', 'msg' => 'Ha ocurrido un error durante el proceso, intentelo nuevamente.']);\n }\n }", "public function delete($slug)\n {\n \t$record = Language::where('slug', '=', $slug)->first();\n /**\n * Check if the record is set to current default language\n * If so do not delete the record and send the appropriate message\n */\n\n if($record->is_default)\n {\n //Topics exists with the selected, so done delete the subject\n $response['status'] = 0;\n $response['message'] = LanguageHelper::getPhrase('it_is_set_to_default_language');\n return json_encode($response);\n }\n else {\n if(!env('DEMO_MODE')) {\n $record->delete();\n }\n $response['status'] = 1;\n $response['message'] = LanguageHelper::getPhrase('record_deleted_successfully');\n return json_encode($response);\n }\n }", "public function destroy($slug)\n {\n $subcategory=SubcategoryDiary::where('slug', $slug)->firstOrFail();\n $subcategory->delete();\n\n if ($subcategory) {\n return redirect()->route('subcategorias.agenda.index')->with(['alert' => 'sweet', 'type' => 'success', 'title' => 'Eliminación exitosa', 'msg' => 'La subcategoría ha sido eliminada exitosamente.']);\n } else {\n return redirect()->route('subcategorias.agenda.index')->with(['alert' => 'lobibox', 'type' => 'error', 'title' => 'Eliminación fallida', 'msg' => 'Ha ocurrido un error durante el proceso, intentelo nuevamente.']);\n }\n }", "public function destroy($id)\n {\n if (Gate::denies('features.delete')) {\n abort(403);\n }\n\n $this->featureService->delete($id);\n\n return redirect(route('admin.features.index'));\n }", "public function destroy($slug,$id)\n {\n Lembrete::find($id)->delete();\n return redirect()->back();\n }", "public function destroy($slug)\n {\n $model = new Prestasi;\n $prestasi = $model->getDataBySlug($slug);\n\n if ($prestasi) {\n // delete image & thumbnail\n deleteImageThumbnail('image/prestasi', $prestasi->gambar);\n\n $prestasi->delete();\n $message = 'Data telah dihapus';\n } else {\n $message = 'Data tidak ditemukan';\n }\n\n return redirect()->route('prestasi.index')->with('success', $message);\n }", "public function destroy($slug)\n {\n $CuerposAcademico = CuerposAcademico::where('slug', '=', $slug)->firstOrFail();\n $CuerposAcademico->delete();\n return redirect()->route('CuerposAcademicos.index')->with('status','Eliminación exitosa');\n \n \n }", "public function destroy($slug)\n {\n $b = Blog::whereSlug($slug)->first();\n $b->delete();\n Alert::warning('You Deleted the Blog!!!');\n return redirect('/blogs');\n }" ]
[ "0.70294726", "0.6869787", "0.6743313", "0.67351085", "0.6703411", "0.65796244", "0.6536916", "0.6535744", "0.65159374", "0.6486249", "0.6321018", "0.62940717", "0.61846846", "0.6128057", "0.6122323", "0.61205685", "0.6113218", "0.6090632", "0.6043578", "0.6009831", "0.595287", "0.59464437", "0.5928792", "0.5916663", "0.58952004", "0.58888817", "0.5849485", "0.5840622", "0.58126426", "0.5799187" ]
0.6986086
1
Gets query for [[PRODUTOS]].
public function getPRODUTOS() { return $this->hasOne(Produto::className(), ['ID' => 'PRODUTOS_ID']); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function getProdutos(){\n $conexao = new ConexaoDAO();\n \n $sqlText = \"SELECT * FROM produtos\";\n $resultado = $conexao->query($sqlText)->fetchAll();\n \n \n return $resultado;\n }", "public function getProdutos(){\n $pdo = Banco::conectar();\n $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n $sqlQuery = \"SELECT id, nome, valor, quantidade, descricao FROM produto\";\n $stmt = $pdo->prepare($sqlQuery);\n $stmt->execute();\n Banco::desconectar();\n return $stmt;\n }", "public function get_AllDetalleproductos() \n {\n $sql=\"select pb.PAR_D_NOMBRE,pa.PAR_D_NOMBRE,p.PRO_D_NOMBRE,p.PRO_E_ESTADOVENTAS from dg_productos p\n INNER JOIN dg_parametros pa on pa.PAR_C_CODIGO=p.PAR_C_CODIGO\n INNER JOIN dg_parametros pb on pb.PAR_C_CODIGO=pa.PAR_C_PADRE;\";\n $res = mysql_query($sql);\n return $res;\n }", "public static function GetProdutos(){\n self::$results = self::query(\"SELECT cdProduto, nomeProduto, descricao, precoUnitario, foto FROM tbProduto\");\n self::$resultRetorno = [];\n if (is_array(self::$results) || is_object(self::$results)){\n foreach(self::$results as $result){\n $result[3] = str_replace('.', ',', $result[3]);\n \n array_push(self::$resultRetorno, $result);\n\n }\n }\n return self::$resultRetorno;\n }", "public static function mostrarDevengos()\n {\n $query = \"SELECT * FROM TipoDevengo\";\n\n self::getConexion();\n\n $resultado = self::$conexion->prepare($query);\n $resultado->execute();\n\n return $resultado;\n }", "public static function mostrarDevengos()\n {\n $q = \"SELECT * FROM rrhh_db.tipodevengo\";\n\n self::getConexion();\n\n $resultado = sqlsrv_query(self::$conexion, $q) or die(print_r(sqlsrv_errors(), true));\n\n return $resultado;\n }", "public function getProdutos()\n {\n return $this->produtos;\n }", "public static function mostrarDevengoesP()\n {\n $q = \"select * from rrhh_db.empleado e\n inner join rrhh_db.deduccion d\n on e.idEmpleado=d.Empleado_idEmpleado\n inner join rrhh_db.tipodeduccion td\n on d.TipoDevengo_idTipoDevengo=td.idTipoDevengo\";\n\n self::getConexion();\n\n $resultado = sqlsrv_query(self::$conexion, $q) or die(print_r(sqlsrv_errors(), true));\n\n return $resultado;\n }", "function consultarProyectos() {\n $cadena_sql = $this->sql->cadena_sql(\"consultaProyectos\",\"\");\n return $resultadoProyectos = $this->ejecutarSQL($this->configuracion, $this->accesoOracle, $cadena_sql, \"busqueda\");\n }", "public function getFiltroStars()\n {\n return Query::fetch('Busca/Filtros/QryBuscarQtdProdutosPorAvaliacao');\n }", "function getAll() {\n $this->getConnection();\n $request = \"SELECT P.ID_PRODUIT, P.DATE_CREATION, P.NOM, P.PRIX, P.DESCRIPTION, P.ID_CATEGORIE, P.IMAGE, C.NOM AS CATEGORIE \n FROM PRODUIT P INNER JOIN CATEGORIE C ON P.ID_CATEGORIE=C.ID_CATEGORIE\";\n $result = $this->select($request);\n return $result;\n }", "public function getProdutos()\n { \n $query = $this->db->get(\"produtos\");\n return $query->result();\n }", "public function consult(){\n\t\t\t$para = array(\"1\"=>1);\n\t\t\tif($this->tipodocum_id_tipodocum != null){\n\t\t\t\t$para[\"tipodocum_id_tipodocum\"] = $this->tipodocum_id_tipodocum;\n\t\t\t}\n\t\t\tif($this->documento != null){\n\t\t\t\t$para[\"documento\"] = $this->documento;\n\t\t\t}\n\t\t\t\n\t\t\t$query = $this->db->get_where(\"paciente\",$para);\n\t\t\treturn $query->result();\n\t\t}", "function requestDadosProduto($produto_id)\n {\n\n $conn = new db_conect();\n //Inserir visualizacao\n $conn->visualizacaoProduto($produto_id);\n\n $query = 'SELECT \n produto.nome AS produto, \n produto.preco, \n qntd_disponivel,\n qntd_min_vendida, \n categoria,\n tipo_venda,\n data_producao,\n data_validade,\n descricao,\n cliente.nome AS vendedor,\n cliente.num_vendas AS vendas_vendedor,\n cliente.avaliacao AS vendedor_avaliacao,\n cliente.cidade,\n cliente.estado,\n produto.data_cadastro AS data_anuncio, \n produto.avaliacao AS avaliacao_produto, \n produto.num_vendas AS num_vendas_produto, \n produto.num_visualizacao AS visualizacoes,\n caminho_foto AS foto \n FROM produto \n INNER JOIN cliente ON cliente.cpf = produto.produtor_fk\n INNER JOIN img_produto ON img_produto.produto_fk = produto.codigo \n WHERE \n produto.codigo = ' . $produto_id . '\n AND \n caminho_foto = (SELECT caminho_foto FROM img_produto WHERE produto_fk = codigo LIMIT 1);';\n\n $result = $conn->selectCustom($query);\n return $result;\n }", "public static function mostrarDevengoesP()\n {\n $query = \"select * from Empleado e\n inner join Deduccion d\n on e.idEmpleado=d.Empleado_idEmpleado\n inner join TipoDeduccion td\n on d.TipoDevengo_idTipoDevengo=td.idTipoDevengo\";\n\n self::getConexion();\n\n $resultado = self::$conexion->prepare($query);\n $resultado->execute();\n\n return $resultado;\n }", "public function readProductos(){\n $sql='SELECT idProducto, foto, nombre, precio, cantidad, nombreProveedor, producto.estado from producto, proveedor where proveedor.idProveedor=producto.idProveedor and producto.estadoEliminacion= 1';\n $params=array(null);\n return Database::getRows($sql, $params);\n }", "public function index(Produtos $Produtos)\n {\n return ProdutoResource::collection($Produtos::all());\n }", "public function getProductoRe(){\n\t\t$sql = \"SELECT id_producto, nombre, cantidad, precio_total, presentacion, proveedor, marca, tipo_producto FROM productos INNER JOIN presentaciones USING(id_presentacion) INNER JOIN proveedores USING(id_proveedor) INNER JOIN marca USING(id_marca) INNER JOIN tipo_producto USING(id_tipo_producto) ORDER BY id_producto\";\n\t\t$params = array(null);\n\t\treturn Database::getRows($sql, $params);\n\t}", "function qntdProdutosAnunciados()\n {\n //query paginas\n $query = 'SELECT COUNT(codigo) AS qntd_itens FROM produto WHERE produtor_fk = \"' . base64_decode($_SESSION['log_id']) . '\"';\n //num de produtos no bd\n $pagesDB = $this->selectCustom($query);\n $pagesDB = mysqli_fetch_assoc($pagesDB);\n\n return $pagesDB['qntd_itens'];\n }", "public function getCdProduto()\n {\n return $this->cd_produto;\n }", "public function retornaProdutos() {\n\n\t\t$produtos = $this->produtoModel->retornaProduto();\n\t\t\n\t\t$produtosComValor = array();\n\t\t\n\t\t$valorTotal = 0;\n\t\tforeach ($produtos as $key => $produto) {\n\t\t\t$valorParcial = $this->calculaValorProduto($produto->precoProduto, $produto->qtdeProduto);\n\t\t\t\n\t\t\t$produtos[$key]->valorParcialProduto = $valorParcial;\n\t\t\t\n\t\t\t$valorTotal += $valorParcial;\n\t\t}\n\n\t\t$produtosComValor['produtos'] = $produtos;\n\t\t$produtosComValor['total'] = number_format($valorTotal, 2, '.', '');\n\t\t\t\t\n\t\treturn $produtosComValor;\n\t}", "function afficherProduits(){\n\t\t$sql=\"SElECT * From product\";\n\t\t$db = config::getConnexion();\n\t\ttry{\n\t\t$liste=$db->query($sql);\n\t\treturn $liste;\n\t\t}\n catch (Exception $e){\n die('Erreur: '.$e->getMessage());\n }\t\n\t}", "protected function _getStorefrontPropertiesQuery() : QueryBuilder\n {\n $query = $this->connection->createQueryBuilder();\n $query->select([\"t.id\", \"t.main_variant_id\", \"t.version_id\", \"JSON_EXTRACT(t.configurator_group_config, CONCAT('$[', x.configurator, ']')) AS cgf\"])\n ->from(\"product\", \"t\")\n ->innerJoin(\"t\",\"(SELECT 0 AS configurator UNION ALL SELECT 1 UNION ALL SELECT 2 UNION ALL SELECT 3 UNION ALL SELECT 4 UNION ALL SELECT 5)\",\n \"x\",\"JSON_EXTRACT(t.configurator_group_config, CONCAT('$[', x.configurator, ']')) IS NOT NULL\"\n );\n\n return $query;\n }", "public function getCdProduto()\n {\n return $this->Cd_produto;\n }", "public function ListarProductos()\n{\n\tself::SetNames();\n\t$sql = \" SELECT * FROM productos INNER JOIN categorias ON productos.codcategoria = categorias.codcategoria LEFT JOIN proveedores ON productos.codproveedor=proveedores.codproveedor\";\n\tforeach ($this->dbh->query($sql) as $row)\n\t{\n\t\t$this->p[] = $row;\n\t}\n\treturn $this->p;\n\t$this->dbh=null;\n}", "public function select(){\n\t\t$sql = \"SELECT * FROM producto\n\t\t\t\twhere prod_estado = 1\";\n\n\t\treturn ejecutarConsulta($sql);\n\t}", "public function show(Produto $produto)\n {\n //\n }", "public function listar_productos_carrito() {\n \n try {\n $sql = \"\n select \n p.descripcion,\n i.cantidad,\n i.precio_venta,\n e.importe_total,\n p.id_producto\n from \n al_producto p inner join al_inventario i\n on\n p.id_producto = i.id_producto inner join pedido e\n on\n i.id_pedido = e.id_pedido \n where\n e.id_cliente = '$_SESSION[cliente_id]' and e.estado is null; \n \";\n $sentencia = $this->dblink->prepare($sql);\n $sentencia->execute();\n $resultado = $sentencia->fetchAll(PDO::FETCH_ASSOC);\n return $resultado;\n } catch (Exception $exc) {\n throw $exc;\n }\n }", "public function getSuppportByPrestataire($pgRefCorresPresta) {\n// $query .= \" from Aeag\\SqeBundle\\Entity\\PgProgLotParamAn pan,\";\n// $query .= \" Aeag\\SqeBundle\\Entity\\\\PgProgLotGrparAn gran,\";\n// $query .= \" Aeag\\SqeBundle\\Entity\\PgProgGrpParamRef gref,\";\n// $query .= \" Aeag\\SqeBundle\\Entity\\PgProgLotAn lan,\";\n// $query .= \" Aeag\\SqeBundle\\Entity\\PgSandreSupports sup\";\n// $query .= \" where lan.phase > 6\";\n// $query .= \" and gran.id = pan.grparan\";\n// $query .= \" and gref.id = gran.grparRef\";\n// $query .= \" and lan.id = gran.lotan\";\n// $query .= \" and sup.codeSupport = gref.support\";\n// $query .= \" and gref.support is not null\";\n// $query .= \" and pan.prestataire = :prestataire\";\n\n $query = \"select distinct sup\";\n $query .= \" from Aeag\\SqeBundle\\Entity\\PgCmdPrelev prel,\";\n $query .= \" Aeag\\SqeBundle\\Entity\\\\PgCmdDemande dem,\";\n $query .= \" Aeag\\SqeBundle\\Entity\\PgSandreSupports sup\";\n $query .= \" where dem.id = prel.demande\";\n $query .= \" and sup.codeSupport = prel.codeSupport\";\n $query .= \" and prel.codeSupport is not null\";\n $query .= \" and dem.prestataire = :prestataire\";\n\n $qb = $this->_em->createQuery($query);\n $qb->setParameter('prestataire', $pgRefCorresPresta->getAdrCorId());\n //print_r($query);\n return $qb->getResult();\n }", "function consultarProyectos($facultad) {\r\n $cadena_sql=$this->sql->cadena_sql(\"datos_proyectos\",$facultad);\r\n $resultado=$this->ejecutarSQL($this->configuracion, $this->accesoOracle, $cadena_sql,\"busqueda\");\r\n return $resultado;\r\n }" ]
[ "0.6205903", "0.6134997", "0.60873693", "0.6071461", "0.5911904", "0.5892931", "0.58784187", "0.5801785", "0.5740266", "0.57239836", "0.5672241", "0.5664213", "0.55988497", "0.5544117", "0.55253065", "0.55130744", "0.54812026", "0.54361486", "0.5432385", "0.5423784", "0.5384658", "0.537598", "0.53706574", "0.5367467", "0.5338311", "0.5310079", "0.5309589", "0.5304947", "0.5297284", "0.5291321" ]
0.62919384
0
Tests the setAvecMiseEnSomm() method.
public function testSetAvecMiseEnSomm() { $obj = new AppelsEnCours(); $obj->setAvecMiseEnSomm(true); $this->assertEquals(true, $obj->getAvecMiseEnSomm()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testSetSexe() {\n\n $obj = new Employes();\n\n $obj->setSexe(\"sexe\");\n $this->assertEquals(\"sexe\", $obj->getSexe());\n }", "public function testSetIndemnSupp() {\n\n $obj = new AttestationCacm();\n\n $obj->setIndemnSupp(true);\n $this->assertEquals(true, $obj->getIndemnSupp());\n }", "public function testSetYaEuSaisieManuelle() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setYaEuSaisieManuelle(true);\n $this->assertEquals(true, $obj->getYaEuSaisieManuelle());\n }", "public function testSetIndemnLic() {\n\n $obj = new AttestationCacm();\n\n $obj->setIndemnLic(true);\n $this->assertEquals(true, $obj->getIndemnLic());\n }", "public function testSetMensualisationTache() {\n\n $obj = new Employes();\n\n $obj->setMensualisationTache(\"mensualisationTache\");\n $this->assertEquals(\"mensualisationTache\", $obj->getMensualisationTache());\n }", "public function testSetMensualisation() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setMensualisation(10.092018);\n $this->assertEquals(10.092018, $obj->getMensualisation());\n }", "public function testSetEtblSiret() {\n\n $obj = new AttestationCacm();\n\n $obj->setEtblSiret(\"etblSiret\");\n $this->assertEquals(\"etblSiret\", $obj->getEtblSiret());\n }", "public function testSetIndemnAutre() {\n\n $obj = new AttestationCacm();\n\n $obj->setIndemnAutre(true);\n $this->assertEquals(true, $obj->getIndemnAutre());\n }", "public function testSetEtiqMasque() {\n\n $obj = new ParamEtiquettes();\n\n $obj->setEtiqMasque(true);\n $this->assertEquals(true, $obj->getEtiqMasque());\n }", "public function isMatriculationSIVNormal(): bool\n {\n $pattern = '^(?!SS|WW)[A-HJ-NP-TV-Z]{2}(?:\\s|-)?(?!000)[0-9]{3}(?:\\s|-)?(?!SS)[A-HJ-NP-TV-Z]{2}$';\n\n return 1 === preg_match('/'.$pattern.'/i', $this->matriculation);\n }", "public function testSetGeneAccession() {\n\t\techo (\"\\n********************Test SetGeneAccession()*************************************************\\n\");\n\t\t\n\t\t$this->gene->setGeneAccession ( 'setGeneAccession' );\n\t\t$this->assertEquals ( 'setGeneAccession', $this->gene->getGeneAccession () );\n\t}", "public function testSetSaisiePvInterdite() {\n\n $obj = new Collaborateurs();\n\n $obj->setSaisiePvInterdite(true);\n $this->assertEquals(true, $obj->getSaisiePvInterdite());\n }", "public function testSetIndemnLegale() {\n\n $obj = new AttestationCacm();\n\n $obj->setIndemnLegale(true);\n $this->assertEquals(true, $obj->getIndemnLegale());\n }", "public function testSetGeneSeq() {\n\t\techo (\"\\n********************Test SetGeneSeq()*******************************************************\\n\");\n\t\t\n\t\t$this->gene->setGeneSeq ( 'setGeneSeq' );\n\t\t$this->assertEquals ( 'setGeneSeq', $this->gene->getGeneSeq () );\n\t}", "public function enregistrerMauvaisEssaiMDP() {\n\t\t\n\t\t$this->log->debug(\"Usager::enregistrerMauvaisEssaiMDP() Début\");\n\t\t\n\t\t// Incrémenter le compteur\n\t\t$nbEssais = $this->get(\"nb_mauvais_essais\");\n\t\t$nbEssais++;\n\t\t$this->set(\"nb_mauvais_essais\", $nbEssais);\n\t\t\n\t\t// Si plus du nombre d'essais maximum verrouiller le compte\n\t\tif ($nbEssais > SECURITE_NB_MAUVAIS_ESSAIS_VERROUILLAGE) {\n\t\t\t$this->set(\"statut\", 1);\t\n\t\t}\n\t\t\n\t\t// Enregistrer\n\t\t$this->enregistrer();\n\t\t\t\t\n\t\t$this->log->debug(\"Usager::enregistrerMauvaisEssaiMDP() Fin\");\n\t}", "public function testSetMtIndemnSupp() {\n\n $obj = new AttestationCacm();\n\n $obj->setMtIndemnSupp(10.092018);\n $this->assertEquals(10.092018, $obj->getMtIndemnSupp());\n }", "public function testSetAvenantSigne() {\n\n $obj = new PointBonTrav();\n\n $obj->setAvenantSigne(true);\n $this->assertEquals(true, $obj->getAvenantSigne());\n }", "public function testSetCodeOfficielCommune() {\n\n $obj = new Employes();\n\n $obj->setCodeOfficielCommune(\"codeOfficielCommune\");\n $this->assertEquals(\"codeOfficielCommune\", $obj->getCodeOfficielCommune());\n }", "public function testSetCodeIntervenant() {\n\n $obj = new Materiels();\n\n $obj->setCodeIntervenant(\"codeIntervenant\");\n $this->assertEquals(\"codeIntervenant\", $obj->getCodeIntervenant());\n }", "public function testSetNbHeureMens() {\n\n $obj = new AttestationCacm();\n\n $obj->setNbHeureMens(10.092018);\n $this->assertEquals(10.092018, $obj->getNbHeureMens());\n }", "public function testSetNoCssm() {\n\n $obj = new AttestationCacm();\n\n $obj->setNoCssm(\"noCssm\");\n $this->assertEquals(\"noCssm\", $obj->getNoCssm());\n }", "public function testSetGeneContig() {\n\t\techo (\"\\n********************Test SetGeneContig()****************************************************\\n\");\n\t\t\n\t\t$this->gene->setGeneContig ( 'setGeneContig' );\n\t\t$this->assertEquals ( 'setGeneContig', $this->gene->getGeneContig () );\n\t}", "public function testSetIndiceAff() {\n\n $obj = new Materiels();\n\n $obj->setIndiceAff(10);\n $this->assertEquals(10, $obj->getIndiceAff());\n }", "public function testSetAvecPrixVente() {\n\n $obj = new ParamEtiquettes();\n\n $obj->setAvecPrixVente(true);\n $this->assertEquals(true, $obj->getAvecPrixVente());\n }", "public function testSetModifEnVue() {\n\n $obj = new Collaborateurs();\n\n $obj->setModifEnVue(true);\n $this->assertEquals(true, $obj->getModifEnVue());\n }", "public function testSetSalaireMensuel() {\n\n $obj = new Collaborateurs();\n\n $obj->setSalaireMensuel(10.092018);\n $this->assertEquals(10.092018, $obj->getSalaireMensuel());\n }", "public function testSetMotifPreavisNonPaye() {\n\n $obj = new AttestationCacm();\n\n $obj->setMotifPreavisNonPaye(\"motifPreavisNonPaye\");\n $this->assertEquals(\"motifPreavisNonPaye\", $obj->getMotifPreavisNonPaye());\n }", "public function testSetCodeEtablissement() {\n\n $obj = new AttestationCacm();\n\n $obj->setCodeEtablissement(10);\n $this->assertEquals(10, $obj->getCodeEtablissement());\n }", "public function testSetEtblEffectif() {\n\n $obj = new AttestationCacm();\n\n $obj->setEtblEffectif(10);\n $this->assertEquals(10, $obj->getEtblEffectif());\n }", "public function testROIProtectionResettingSentinel ()\n {\n\n $poc2 = $this->pocContainer['poc'];\n $cia2 = $this->pocContainer['cia'];\n $rnd = rand();\n $poc2->addPlugin($cia2);\n $cia2->setSentinel(1);\n $noh2 = $this->pocContainer['noh'];\n $noh2->pocBurner($poc2, $rnd);\n\n $this->assertNotEquals($cia2->getRefreshPage(), $noh2->getOutput());\n $this->assertEquals($cia2->getSentinel(), 0);\n\n //todo: check why it is not working!!\n //$this->assertequals($rnd, $noh2->getOutput());\n\n }" ]
[ "0.5617144", "0.53895754", "0.5128465", "0.50769323", "0.5073718", "0.5061851", "0.5042126", "0.49946684", "0.49723187", "0.49712935", "0.49638367", "0.49544883", "0.49345925", "0.49234295", "0.49031743", "0.48744994", "0.48641002", "0.4832173", "0.48278365", "0.48184556", "0.48127368", "0.48024482", "0.47953674", "0.47853333", "0.47757432", "0.47407383", "0.47344396", "0.47325987", "0.47322074", "0.470364" ]
0.754678
0
Tests the setCodeClient() method.
public function testSetCodeClient() { $obj = new AppelsEnCours(); $obj->setCodeClient("codeClient"); $this->assertEquals("codeClient", $obj->getCodeClient()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testSetCodeClient() {\n\n $obj = new FichesControlesEntetes();\n\n $obj->setCodeClient(\"codeClient\");\n $this->assertEquals(\"codeClient\", $obj->getCodeClient());\n }", "public function testSetCodeClient() {\n\n $obj = new Materiels();\n\n $obj->setCodeClient(\"codeClient\");\n $this->assertEquals(\"codeClient\", $obj->getCodeClient());\n }", "public function testSetCodeClient() {\n\n $obj = new ChantiersFrequencesControlesQualite();\n\n $obj->setCodeClient(\"codeClient\");\n $this->assertEquals(\"codeClient\", $obj->getCodeClient());\n }", "public function testSetCode() {\n\n $obj = new ClientsSelAvance();\n\n $obj->setCode(\"code\");\n $this->assertEquals(\"code\", $obj->getCode());\n }", "public function testSetCode() {\n\n $obj = new Collaborateurs();\n\n $obj->setCode(\"code\");\n $this->assertEquals(\"code\", $obj->getCode());\n }", "public function testSetClient()\n {\n $change = new Change($this->p4);\n $change->setDescription('test')->save();\n $oldClient = $change->getClient();\n\n $this->p4->getService('clients')->grab();\n $change->setClient($this->p4->getClient());\n $change->save();\n $this->p4->getService('clients')->release();\n\n $this->assertFalse(\n $oldClient == Change::fetch($change->getId(), $this->p4)->getClient(),\n 'expected client change to have saved.'\n );\n }", "public function testSetAndGetCode()\r\n {\r\n $testObj = $this->_createMockModel();\r\n $baseObj = $this->_createMockModel();\r\n\r\n // Set the Code\r\n $testObj->setCode('GroupCode');\r\n\r\n // Assert that a change occurred in the test object\r\n $this->assertNotEquals($testObj, $baseObj);\r\n\r\n // Assert that the Code field was updated\r\n $this->assertEquals('GroupCode', $testObj->getCode());\r\n\r\n // Assert that no other return values were affected\r\n $this->_assertModelsSameExcept($testObj, $baseObj, 'Code');\r\n }", "public function setCode($code);", "public function setCode($code);", "public function getCodeClient() {\n return $this->codeClient;\n }", "public function getCodeClient() {\n return $this->codeClient;\n }", "public function getCodeClient() {\n return $this->codeClient;\n }", "public function setCodeClient($codeClient) {\n $this->codeClient = $codeClient;\n return $this;\n }", "public function setCodeClient($codeClient) {\n $this->codeClient = $codeClient;\n return $this;\n }", "public function setCodeClient($codeClient) {\n $this->codeClient = $codeClient;\n return $this;\n }", "public function testCode()\n {\n $value = PaymentMethod::INVOICE . '.' . TransactionType::RESERVATION;\n $this->payment->setCode($value);\n\n $this->assertEquals($value, $this->payment->getCode());\n }", "public function testSetCode() {\n\n $obj = new TestIntegerCodeTrait();\n\n $obj->setCode(1);\n $this->assertEquals(1, $obj->getCode());\n }", "public function testSetCodeUser() {\n\n $obj = new iSessions();\n\n $obj->setCodeUser(\"codeUser\");\n $this->assertEquals(\"codeUser\", $obj->getCodeUser());\n }", "function setAmocrmCode(string $code): void {\n\t}", "public function client_setter_and_getter()\n {\n // Arrange\n $service = new Service;\n $client = new Client;\n\n // Act\n $returned = $service->setClient($client)->getClient();\n\n // Assert\n $this->assertEquals($client, $returned);\n }", "public function testSetCodeProduit() {\n\n $obj = new AppelsEnCours();\n\n $obj->setCodeProduit(\"codeProduit\");\n $this->assertEquals(\"codeProduit\", $obj->getCodeProduit());\n }", "public function setCode($code)\n {\n $this->code = $code;\n }", "public function setOauthCode($authCode, $client)\n {\n $oauthCode = new OauthCode();\n $oauthCode->setClient($client);\n $oauthCode->setCode($authCode);\n $oauthCode->setExpired('false');\n try {\n $this->em->persist($oauthCode);\n $this->em->flush();\n return true;\n } catch (\\Exception $ex) {\n throw new \\Exception($ex->getMessage());\n }\n }", "public function setClient($client);", "public function setCodeClient(?string $codeClient): Evenements {\n $this->codeClient = $codeClient;\n return $this;\n }", "public function setCode($code, $message);", "public function setClientId($value);", "public function setCodeClient(?string $codeClient): CriteresClient {\n $this->codeClient = $codeClient;\n return $this;\n }", "public function setCodeClient(?string $codeClient): ChantiersSynchroId {\n $this->codeClient = $codeClient;\n return $this;\n }", "public function itShouldSetAccessCode()\n {\n // Arrange...\n $this->login();\n $lecture = factory(Lecture::class)->make();\n\n // Act...\n $this->json('post', 'lectures', $lecture->toArray() );\n\n // Assert...\n $this->dontSeeJson([\n 'accessCode' => ''\n ]);\n }" ]
[ "0.8287111", "0.82676274", "0.80846804", "0.7582541", "0.70428914", "0.70224595", "0.67550594", "0.67206407", "0.67206407", "0.67179495", "0.67179495", "0.67179495", "0.6610563", "0.6610563", "0.6610563", "0.6551113", "0.65487534", "0.6543593", "0.6516408", "0.64265424", "0.63307804", "0.628254", "0.62425417", "0.62274677", "0.6162576", "0.61562115", "0.61509585", "0.6134968", "0.61329406", "0.6086924" ]
0.8631553
0
Tests the setCodeCollaborateurDest() method.
public function testSetCodeCollaborateurDest() { $obj = new AppelsEnCours(); $obj->setCodeCollaborateurDest("codeCollaborateurDest"); $this->assertEquals("codeCollaborateurDest", $obj->getCodeCollaborateurDest()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testSetCodeLiaisonDest() {\n\n $obj = new Collaborateurs();\n\n $obj->setCodeLiaisonDest(\"codeLiaisonDest\");\n $this->assertEquals(\"codeLiaisonDest\", $obj->getCodeLiaisonDest());\n }", "public function testSetCodeCollaborateur() {\n\n $obj = new FichesControlesEntetes();\n\n $obj->setCodeCollaborateur(\"codeCollaborateur\");\n $this->assertEquals(\"codeCollaborateur\", $obj->getCodeCollaborateur());\n }", "public function setCodeCollaborateurDest($codeCollaborateurDest) {\n $this->codeCollaborateurDest = $codeCollaborateurDest;\n return $this;\n }", "public function getCodeCollaborateurDest() {\n return $this->codeCollaborateurDest;\n }", "public function testSetCodeCollaborateurRedir() {\n\n $obj = new AppelsEnCours();\n\n $obj->setCodeCollaborateurRedir(\"codeCollaborateurRedir\");\n $this->assertEquals(\"codeCollaborateurRedir\", $obj->getCodeCollaborateurRedir());\n }", "public function testSetCodeVentilCompta() {\n\n $obj = new Collaborateurs();\n\n $obj->setCodeVentilCompta(\"codeVentilCompta\");\n $this->assertEquals(\"codeVentilCompta\", $obj->getCodeVentilCompta());\n }", "public function testSetCodeOfficielCommune() {\n\n $obj = new Collaborateurs();\n\n $obj->setCodeOfficielCommune(\"codeOfficielCommune\");\n $this->assertEquals(\"codeOfficielCommune\", $obj->getCodeOfficielCommune());\n }", "public function testSetDestinatairesCc() {\n\n $obj = new AppelsEnCours();\n\n $obj->setDestinatairesCc(\"destinatairesCc\");\n $this->assertEquals(\"destinatairesCc\", $obj->getDestinatairesCc());\n }", "public function testSetCodeCollaborateurEntrant() {\n\n $obj = new AppelsEnCours();\n\n $obj->setCodeCollaborateurEntrant(\"codeCollaborateurEntrant\");\n $this->assertEquals(\"codeCollaborateurEntrant\", $obj->getCodeCollaborateurEntrant());\n }", "public function testSetCode() {\n\n $obj = new Collaborateurs();\n\n $obj->setCode(\"code\");\n $this->assertEquals(\"code\", $obj->getCode());\n }", "public function testSetCodeDepot() {\n\n $obj = new Collaborateurs();\n\n $obj->setCodeDepot(\"codeDepot\");\n $this->assertEquals(\"codeDepot\", $obj->getCodeDepot());\n }", "public function testSetCodeGroupe() {\n\n $obj = new Collaborateurs();\n\n $obj->setCodeGroupe(\"codeGroupe\");\n $this->assertEquals(\"codeGroupe\", $obj->getCodeGroupe());\n }", "public function testSetParcCodeRemorque() {\n\n $obj = new Collaborateurs();\n\n $obj->setParcCodeRemorque(\"parcCodeRemorque\");\n $this->assertEquals(\"parcCodeRemorque\", $obj->getParcCodeRemorque());\n }", "public function testSetCodeFamille() {\n\n $obj = new Collaborateurs();\n\n $obj->setCodeFamille(\"codeFamille\");\n $this->assertEquals(\"codeFamille\", $obj->getCodeFamille());\n }", "public function testSetInterdireModifAffCli() {\n\n $obj = new Collaborateurs();\n\n $obj->setInterdireModifAffCli(true);\n $this->assertEquals(true, $obj->getInterdireModifAffCli());\n }", "public function testSetCodeFamilleFrn() {\n\n $obj = new Collaborateurs();\n\n $obj->setCodeFamilleFrn(\"codeFamilleFrn\");\n $this->assertEquals(\"codeFamilleFrn\", $obj->getCodeFamilleFrn());\n }", "public function testSetCodeCentre() {\n\n $obj = new Collaborateurs();\n\n $obj->setCodeCentre(\"codeCentre\");\n $this->assertEquals(\"codeCentre\", $obj->getCodeCentre());\n }", "public function testSetCodePostal() {\n\n $obj = new Collaborateurs();\n\n $obj->setCodePostal(\"codePostal\");\n $this->assertEquals(\"codePostal\", $obj->getCodePostal());\n }", "public function testSetModifChantier() {\n\n $obj = new Collaborateurs();\n\n $obj->setModifChantier(\"modifChantier\");\n $this->assertEquals(\"modifChantier\", $obj->getModifChantier());\n }", "public function testSetCodeVehicule() {\n\n $obj = new Collaborateurs();\n\n $obj->setCodeVehicule(\"codeVehicule\");\n $this->assertEquals(\"codeVehicule\", $obj->getCodeVehicule());\n }", "public function testSetCompteComptable() {\n\n $obj = new Collaborateurs();\n\n $obj->setCompteComptable(\"compteComptable\");\n $this->assertEquals(\"compteComptable\", $obj->getCompteComptable());\n }", "public function setCodeCollaborateur(?string $codeCollaborateur): FichesControlesSupprimees {\n $this->codeCollaborateur = $codeCollaborateur;\n return $this;\n }", "public function testSetCodeOfficielCommune() {\n\n $obj = new Employes();\n\n $obj->setCodeOfficielCommune(\"codeOfficielCommune\");\n $this->assertEquals(\"codeOfficielCommune\", $obj->getCodeOfficielCommune());\n }", "public function testSetCodeLangue() {\n\n $obj = new Collaborateurs();\n\n $obj->setCodeLangue(\"codeLangue\");\n $this->assertEquals(\"codeLangue\", $obj->getCodeLangue());\n }", "public function testSetComplement() {\n\n $obj = new Collaborateurs();\n\n $obj->setComplement(\"complement\");\n $this->assertEquals(\"complement\", $obj->getComplement());\n }", "public function testSetCodeChantier() {\n\n $obj = new FichesControlesEntetes();\n\n $obj->setCodeChantier(\"codeChantier\");\n $this->assertEquals(\"codeChantier\", $obj->getCodeChantier());\n }", "public function setCodeCollaborateur(?string $codeCollaborateur): PointEmpHeuresAbsComplRempl {\n $this->codeCollaborateur = $codeCollaborateur;\n return $this;\n }", "public function testSetDroitSyncPort() {\n\n $obj = new Collaborateurs();\n\n $obj->setDroitSyncPort(true);\n $this->assertEquals(true, $obj->getDroitSyncPort());\n }", "public function testSetAccesDossierCpta() {\n\n $obj = new Collaborateurs();\n\n $obj->setAccesDossierCpta(\"accesDossierCpta\");\n $this->assertEquals(\"accesDossierCpta\", $obj->getAccesDossierCpta());\n }", "public function testSetInterdireAccesSuppDocArch() {\n\n $obj = new Collaborateurs();\n\n $obj->setInterdireAccesSuppDocArch(true);\n $this->assertEquals(true, $obj->getInterdireAccesSuppDocArch());\n }" ]
[ "0.76160085", "0.7205738", "0.71999377", "0.7127179", "0.69352776", "0.66217625", "0.6529964", "0.63375586", "0.62429214", "0.6156055", "0.60985494", "0.60008144", "0.590925", "0.589721", "0.5831031", "0.58237517", "0.58209634", "0.58125633", "0.5786191", "0.5776098", "0.57707644", "0.57324475", "0.57167387", "0.5698431", "0.5686541", "0.56599516", "0.559341", "0.55927944", "0.55718946", "0.5571859" ]
0.8647756
0
Tests the setCodeCollaborateurEntrant() method.
public function testSetCodeCollaborateurEntrant() { $obj = new AppelsEnCours(); $obj->setCodeCollaborateurEntrant("codeCollaborateurEntrant"); $this->assertEquals("codeCollaborateurEntrant", $obj->getCodeCollaborateurEntrant()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testSetCodeCollaborateur() {\n\n $obj = new FichesControlesEntetes();\n\n $obj->setCodeCollaborateur(\"codeCollaborateur\");\n $this->assertEquals(\"codeCollaborateur\", $obj->getCodeCollaborateur());\n }", "public function testSetCodeCollaborateurRedir() {\n\n $obj = new AppelsEnCours();\n\n $obj->setCodeCollaborateurRedir(\"codeCollaborateurRedir\");\n $this->assertEquals(\"codeCollaborateurRedir\", $obj->getCodeCollaborateurRedir());\n }", "public function setCodeCollaborateurEntrant($codeCollaborateurEntrant) {\n $this->codeCollaborateurEntrant = $codeCollaborateurEntrant;\n return $this;\n }", "public function getCodeCollaborateurEntrant() {\n return $this->codeCollaborateurEntrant;\n }", "public function testSetCodeVentilCompta() {\n\n $obj = new Collaborateurs();\n\n $obj->setCodeVentilCompta(\"codeVentilCompta\");\n $this->assertEquals(\"codeVentilCompta\", $obj->getCodeVentilCompta());\n }", "public function testSetCodeCollaborateurDest() {\n\n $obj = new AppelsEnCours();\n\n $obj->setCodeCollaborateurDest(\"codeCollaborateurDest\");\n $this->assertEquals(\"codeCollaborateurDest\", $obj->getCodeCollaborateurDest());\n }", "public function testSetCodeChantier() {\n\n $obj = new FichesControlesEntetes();\n\n $obj->setCodeChantier(\"codeChantier\");\n $this->assertEquals(\"codeChantier\", $obj->getCodeChantier());\n }", "public function testSetCodeOfficielCommune() {\n\n $obj = new Collaborateurs();\n\n $obj->setCodeOfficielCommune(\"codeOfficielCommune\");\n $this->assertEquals(\"codeOfficielCommune\", $obj->getCodeOfficielCommune());\n }", "public function testSetModifChantier() {\n\n $obj = new Collaborateurs();\n\n $obj->setModifChantier(\"modifChantier\");\n $this->assertEquals(\"modifChantier\", $obj->getModifChantier());\n }", "public function testSetCode() {\n\n $obj = new Collaborateurs();\n\n $obj->setCode(\"code\");\n $this->assertEquals(\"code\", $obj->getCode());\n }", "public function setCodeCollaborateur(?string $codeCollaborateur): AgendaLignes {\n $this->codeCollaborateur = $codeCollaborateur;\n return $this;\n }", "public function testSetInterdireAccesEntete() {\n\n $obj = new Collaborateurs();\n\n $obj->setInterdireAccesEntete(true);\n $this->assertEquals(true, $obj->getInterdireAccesEntete());\n }", "public function testSetInterdireModifAffCli() {\n\n $obj = new Collaborateurs();\n\n $obj->setInterdireModifAffCli(true);\n $this->assertEquals(true, $obj->getInterdireModifAffCli());\n }", "public function setCodeCollaborateur(?string $codeCollaborateur): LettresMissionsLignes {\n $this->codeCollaborateur = $codeCollaborateur;\n return $this;\n }", "public function testSetCodeLiaisonDest() {\n\n $obj = new Collaborateurs();\n\n $obj->setCodeLiaisonDest(\"codeLiaisonDest\");\n $this->assertEquals(\"codeLiaisonDest\", $obj->getCodeLiaisonDest());\n }", "public function testSetCodeChantier() {\n\n $obj = new ChantiersFrequencesControlesQualite();\n\n $obj->setCodeChantier(\"codeChantier\");\n $this->assertEquals(\"codeChantier\", $obj->getCodeChantier());\n }", "public function testSetCodeGroupe() {\n\n $obj = new Collaborateurs();\n\n $obj->setCodeGroupe(\"codeGroupe\");\n $this->assertEquals(\"codeGroupe\", $obj->getCodeGroupe());\n }", "public function testSetCodeEtablissement() {\n\n $obj = new Employes();\n\n $obj->setCodeEtablissement(10);\n $this->assertEquals(10, $obj->getCodeEtablissement());\n }", "public function testSetCodeFamilleFrn() {\n\n $obj = new Collaborateurs();\n\n $obj->setCodeFamilleFrn(\"codeFamilleFrn\");\n $this->assertEquals(\"codeFamilleFrn\", $obj->getCodeFamilleFrn());\n }", "public function testSetCodeEtablissement() {\n\n $obj = new AttestationCacm();\n\n $obj->setCodeEtablissement(10);\n $this->assertEquals(10, $obj->getCodeEtablissement());\n }", "public function testSetCodeLangue() {\n\n $obj = new Collaborateurs();\n\n $obj->setCodeLangue(\"codeLangue\");\n $this->assertEquals(\"codeLangue\", $obj->getCodeLangue());\n }", "public function testSetCodeVehicule() {\n\n $obj = new Collaborateurs();\n\n $obj->setCodeVehicule(\"codeVehicule\");\n $this->assertEquals(\"codeVehicule\", $obj->getCodeVehicule());\n }", "public function testSetCodeCentre() {\n\n $obj = new Collaborateurs();\n\n $obj->setCodeCentre(\"codeCentre\");\n $this->assertEquals(\"codeCentre\", $obj->getCodeCentre());\n }", "public function testSetCodeFamille() {\n\n $obj = new Collaborateurs();\n\n $obj->setCodeFamille(\"codeFamille\");\n $this->assertEquals(\"codeFamille\", $obj->getCodeFamille());\n }", "public function testSetCodeAffaire() {\n\n $obj = new FichesControlesEntetes();\n\n $obj->setCodeAffaire(\"codeAffaire\");\n $this->assertEquals(\"codeAffaire\", $obj->getCodeAffaire());\n }", "public function testSetCodeEmploye() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setCodeEmploye(\"codeEmploye\");\n $this->assertEquals(\"codeEmploye\", $obj->getCodeEmploye());\n }", "public function testSetCompteComptable() {\n\n $obj = new Collaborateurs();\n\n $obj->setCompteComptable(\"compteComptable\");\n $this->assertEquals(\"compteComptable\", $obj->getCompteComptable());\n }", "public function testSetCodeOfficielCommune() {\n\n $obj = new Employes();\n\n $obj->setCodeOfficielCommune(\"codeOfficielCommune\");\n $this->assertEquals(\"codeOfficielCommune\", $obj->getCodeOfficielCommune());\n }", "public function testSetAnnulationChantier() {\n\n $obj = new Collaborateurs();\n\n $obj->setAnnulationChantier(true);\n $this->assertEquals(true, $obj->getAnnulationChantier());\n }", "public function testSetEstAcheteur() {\n\n $obj = new Collaborateurs();\n\n $obj->setEstAcheteur(10);\n $this->assertEquals(10, $obj->getEstAcheteur());\n }" ]
[ "0.7976614", "0.7534987", "0.7306632", "0.724139", "0.7230141", "0.6896255", "0.68764853", "0.6774421", "0.66592675", "0.66131216", "0.65850556", "0.65732026", "0.65513074", "0.6537581", "0.6484763", "0.6471101", "0.6466482", "0.64571625", "0.6445382", "0.64311", "0.64294887", "0.64219433", "0.6419255", "0.63437784", "0.6279614", "0.6277871", "0.6271234", "0.6231433", "0.6224869", "0.62234974" ]
0.8895324
0
Tests the setCodeCollaborateurRedir() method.
public function testSetCodeCollaborateurRedir() { $obj = new AppelsEnCours(); $obj->setCodeCollaborateurRedir("codeCollaborateurRedir"); $this->assertEquals("codeCollaborateurRedir", $obj->getCodeCollaborateurRedir()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testSetCodeCollaborateur() {\n\n $obj = new FichesControlesEntetes();\n\n $obj->setCodeCollaborateur(\"codeCollaborateur\");\n $this->assertEquals(\"codeCollaborateur\", $obj->getCodeCollaborateur());\n }", "public function testSetParcCodeRemorque() {\n\n $obj = new Collaborateurs();\n\n $obj->setParcCodeRemorque(\"parcCodeRemorque\");\n $this->assertEquals(\"parcCodeRemorque\", $obj->getParcCodeRemorque());\n }", "public function testSetCodeGroupe() {\n\n $obj = new Collaborateurs();\n\n $obj->setCodeGroupe(\"codeGroupe\");\n $this->assertEquals(\"codeGroupe\", $obj->getCodeGroupe());\n }", "public function testSetCodeCollaborateurEntrant() {\n\n $obj = new AppelsEnCours();\n\n $obj->setCodeCollaborateurEntrant(\"codeCollaborateurEntrant\");\n $this->assertEquals(\"codeCollaborateurEntrant\", $obj->getCodeCollaborateurEntrant());\n }", "public function testSetCodeVentilCompta() {\n\n $obj = new Collaborateurs();\n\n $obj->setCodeVentilCompta(\"codeVentilCompta\");\n $this->assertEquals(\"codeVentilCompta\", $obj->getCodeVentilCompta());\n }", "public function setCodeCollaborateur(?string $codeCollaborateur): FichesControlesSupprimees {\n $this->codeCollaborateur = $codeCollaborateur;\n return $this;\n }", "public function testSetCodeOfficielCommune() {\n\n $obj = new Collaborateurs();\n\n $obj->setCodeOfficielCommune(\"codeOfficielCommune\");\n $this->assertEquals(\"codeOfficielCommune\", $obj->getCodeOfficielCommune());\n }", "public function testSetCodeCollaborateurDest() {\n\n $obj = new AppelsEnCours();\n\n $obj->setCodeCollaborateurDest(\"codeCollaborateurDest\");\n $this->assertEquals(\"codeCollaborateurDest\", $obj->getCodeCollaborateurDest());\n }", "public function testSetCodeFamilleFrn() {\n\n $obj = new Collaborateurs();\n\n $obj->setCodeFamilleFrn(\"codeFamilleFrn\");\n $this->assertEquals(\"codeFamilleFrn\", $obj->getCodeFamilleFrn());\n }", "public function setCodeCollaborateur(?string $codeCollaborateur): AgendaLignes {\n $this->codeCollaborateur = $codeCollaborateur;\n return $this;\n }", "public function testSetEmailRedirAutoCollab() {\n\n $obj = new Collaborateurs();\n\n $obj->setEmailRedirAutoCollab(\"emailRedirAutoCollab\");\n $this->assertEquals(\"emailRedirAutoCollab\", $obj->getEmailRedirAutoCollab());\n }", "public function testSetCode() {\n\n $obj = new Collaborateurs();\n\n $obj->setCode(\"code\");\n $this->assertEquals(\"code\", $obj->getCode());\n }", "public function testSetInterdireModifAffCli() {\n\n $obj = new Collaborateurs();\n\n $obj->setInterdireModifAffCli(true);\n $this->assertEquals(true, $obj->getInterdireModifAffCli());\n }", "public function setCodeCollaborateur(?string $codeCollaborateur): LettresMissionsLignes {\n $this->codeCollaborateur = $codeCollaborateur;\n return $this;\n }", "public function setCodeCollaborateur(?string $codeCollaborateur): PointEmpHeuresAbsComplRempl {\n $this->codeCollaborateur = $codeCollaborateur;\n return $this;\n }", "public function testSetModifChantier() {\n\n $obj = new Collaborateurs();\n\n $obj->setModifChantier(\"modifChantier\");\n $this->assertEquals(\"modifChantier\", $obj->getModifChantier());\n }", "public function testSetSelFrnCollab() {\n\n $obj = new Collaborateurs();\n\n $obj->setSelFrnCollab(true);\n $this->assertEquals(true, $obj->getSelFrnCollab());\n }", "public function testSetCodeFamille() {\n\n $obj = new Collaborateurs();\n\n $obj->setCodeFamille(\"codeFamille\");\n $this->assertEquals(\"codeFamille\", $obj->getCodeFamille());\n }", "public function testSetCodeLangue() {\n\n $obj = new Collaborateurs();\n\n $obj->setCodeLangue(\"codeLangue\");\n $this->assertEquals(\"codeLangue\", $obj->getCodeLangue());\n }", "public function testSetCodeVehicule() {\n\n $obj = new Collaborateurs();\n\n $obj->setCodeVehicule(\"codeVehicule\");\n $this->assertEquals(\"codeVehicule\", $obj->getCodeVehicule());\n }", "public function testSetVueComDroitReaffect() {\n\n $obj = new Collaborateurs();\n\n $obj->setVueComDroitReaffect(true);\n $this->assertEquals(true, $obj->getVueComDroitReaffect());\n }", "public function testSetCodeLiaisonDest() {\n\n $obj = new Collaborateurs();\n\n $obj->setCodeLiaisonDest(\"codeLiaisonDest\");\n $this->assertEquals(\"codeLiaisonDest\", $obj->getCodeLiaisonDest());\n }", "public function testSetModifFournisseur() {\n\n $obj = new Collaborateurs();\n\n $obj->setModifFournisseur(\"modifFournisseur\");\n $this->assertEquals(\"modifFournisseur\", $obj->getModifFournisseur());\n }", "public function testSetEmailRedirAuto() {\n\n $obj = new Collaborateurs();\n\n $obj->setEmailRedirAuto(true);\n $this->assertEquals(true, $obj->getEmailRedirAuto());\n }", "public function testSetCompteComptable() {\n\n $obj = new Collaborateurs();\n\n $obj->setCompteComptable(\"compteComptable\");\n $this->assertEquals(\"compteComptable\", $obj->getCompteComptable());\n }", "public function testSetCodeChantier() {\n\n $obj = new FichesControlesEntetes();\n\n $obj->setCodeChantier(\"codeChantier\");\n $this->assertEquals(\"codeChantier\", $obj->getCodeChantier());\n }", "public function testSetMsgRedirAuto() {\n\n $obj = new Collaborateurs();\n\n $obj->setMsgRedirAuto(true);\n $this->assertEquals(true, $obj->getMsgRedirAuto());\n }", "public function testSetCodeGroupeVisuMsg() {\n\n $obj = new Collaborateurs();\n\n $obj->setCodeGroupeVisuMsg(\"codeGroupeVisuMsg\");\n $this->assertEquals(\"codeGroupeVisuMsg\", $obj->getCodeGroupeVisuMsg());\n }", "public function testSetSelectionFournisseur() {\n\n $obj = new Collaborateurs();\n\n $obj->setSelectionFournisseur(\"selectionFournisseur\");\n $this->assertEquals(\"selectionFournisseur\", $obj->getSelectionFournisseur());\n }", "public function testSetCodeCentre() {\n\n $obj = new Collaborateurs();\n\n $obj->setCodeCentre(\"codeCentre\");\n $this->assertEquals(\"codeCentre\", $obj->getCodeCentre());\n }" ]
[ "0.79168737", "0.733127", "0.7093091", "0.69297284", "0.6919496", "0.69079167", "0.6812629", "0.67833877", "0.6747891", "0.67102665", "0.6637744", "0.6615478", "0.6544176", "0.6535499", "0.6513321", "0.65067834", "0.64785546", "0.6387829", "0.63466144", "0.63014776", "0.6297033", "0.62261665", "0.622107", "0.61494696", "0.6145268", "0.6118572", "0.6106265", "0.61055094", "0.6063196", "0.6060717" ]
0.8663992
0
Tests the setCodeProduit() method.
public function testSetCodeProduit() { $obj = new AppelsEnCours(); $obj->setCodeProduit("codeProduit"); $this->assertEquals("codeProduit", $obj->getCodeProduit()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testSetCode() {\n\n $obj = new Collaborateurs();\n\n $obj->setCode(\"code\");\n $this->assertEquals(\"code\", $obj->getCode());\n }", "public function testSetCodeEquipe() {\n\n $obj = new PointBonTrav();\n\n $obj->setCodeEquipe(\"codeEquipe\");\n $this->assertEquals(\"codeEquipe\", $obj->getCodeEquipe());\n }", "public function testSetCode() {\n\n $obj = new ClientsSelAvance();\n\n $obj->setCode(\"code\");\n $this->assertEquals(\"code\", $obj->getCode());\n }", "public function testSetCodeClient() {\n\n $obj = new ChantiersFrequencesControlesQualite();\n\n $obj->setCodeClient(\"codeClient\");\n $this->assertEquals(\"codeClient\", $obj->getCodeClient());\n }", "public function testSetCodeClient() {\n\n $obj = new FichesControlesEntetes();\n\n $obj->setCodeClient(\"codeClient\");\n $this->assertEquals(\"codeClient\", $obj->getCodeClient());\n }", "public function testSetCodeClient() {\n\n $obj = new AppelsEnCours();\n\n $obj->setCodeClient(\"codeClient\");\n $this->assertEquals(\"codeClient\", $obj->getCodeClient());\n }", "public function testCode()\n {\n $value = PaymentMethod::INVOICE . '.' . TransactionType::RESERVATION;\n $this->payment->setCode($value);\n\n $this->assertEquals($value, $this->payment->getCode());\n }", "public function testSetCodeModele() {\n\n $obj = new ParamEtiquettes();\n\n $obj->setCodeModele(\"codeModele\");\n $this->assertEquals(\"codeModele\", $obj->getCodeModele());\n }", "public function testSetCode() {\n\n $obj = new TestIntegerCodeTrait();\n\n $obj->setCode(1);\n $this->assertEquals(1, $obj->getCode());\n }", "public function setCodeProduit($codeProduit) {\n $this->codeProduit = $codeProduit;\n return $this;\n }", "public function testSetAndGetCode()\r\n {\r\n $testObj = $this->_createMockModel();\r\n $baseObj = $this->_createMockModel();\r\n\r\n // Set the Code\r\n $testObj->setCode('GroupCode');\r\n\r\n // Assert that a change occurred in the test object\r\n $this->assertNotEquals($testObj, $baseObj);\r\n\r\n // Assert that the Code field was updated\r\n $this->assertEquals('GroupCode', $testObj->getCode());\r\n\r\n // Assert that no other return values were affected\r\n $this->_assertModelsSameExcept($testObj, $baseObj, 'Code');\r\n }", "public function setCode($code);", "public function setCode($code);", "public function testSetCodeClient() {\n\n $obj = new Materiels();\n\n $obj->setCodeClient(\"codeClient\");\n $this->assertEquals(\"codeClient\", $obj->getCodeClient());\n }", "public function testSetCodeEmploye() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setCodeEmploye(\"codeEmploye\");\n $this->assertEquals(\"codeEmploye\", $obj->getCodeEmploye());\n }", "public function testSetCodeTypeSal() {\n\n $obj = new Employes();\n\n $obj->setCodeTypeSal(\"codeTypeSal\");\n $this->assertEquals(\"codeTypeSal\", $obj->getCodeTypeSal());\n }", "public function testSetCodeChantier() {\n\n $obj = new ChantiersFrequencesControlesQualite();\n\n $obj->setCodeChantier(\"codeChantier\");\n $this->assertEquals(\"codeChantier\", $obj->getCodeChantier());\n }", "public function testSetCodeAffaire() {\n\n $obj = new ChantiersFrequencesControlesQualite();\n\n $obj->setCodeAffaire(\"codeAffaire\");\n $this->assertEquals(\"codeAffaire\", $obj->getCodeAffaire());\n }", "public function testSetCodeTacheType() {\n\n $obj = new PointBonTrav();\n\n $obj->setCodeTacheType(\"codeTacheType\");\n $this->assertEquals(\"codeTacheType\", $obj->getCodeTacheType());\n }", "public function testSetCodeChantier() {\n\n $obj = new FichesControlesEntetes();\n\n $obj->setCodeChantier(\"codeChantier\");\n $this->assertEquals(\"codeChantier\", $obj->getCodeChantier());\n }", "public function testSetCodeAffaire() {\n\n $obj = new FichesControlesEntetes();\n\n $obj->setCodeAffaire(\"codeAffaire\");\n $this->assertEquals(\"codeAffaire\", $obj->getCodeAffaire());\n }", "public function testSetCodeOfficielCommune() {\n\n $obj = new Collaborateurs();\n\n $obj->setCodeOfficielCommune(\"codeOfficielCommune\");\n $this->assertEquals(\"codeOfficielCommune\", $obj->getCodeOfficielCommune());\n }", "public function testSetCodeUser() {\n\n $obj = new iSessions();\n\n $obj->setCodeUser(\"codeUser\");\n $this->assertEquals(\"codeUser\", $obj->getCodeUser());\n }", "public function testSetCodeOfficielCommune() {\n\n $obj = new Employes();\n\n $obj->setCodeOfficielCommune(\"codeOfficielCommune\");\n $this->assertEquals(\"codeOfficielCommune\", $obj->getCodeOfficielCommune());\n }", "public function testSetCodeVentilCompta() {\n\n $obj = new Collaborateurs();\n\n $obj->setCodeVentilCompta(\"codeVentilCompta\");\n $this->assertEquals(\"codeVentilCompta\", $obj->getCodeVentilCompta());\n }", "public function testSetCodePenibilite() {\n\n $obj = new EmpRecapCodePenibilite();\n\n $obj->setCodePenibilite(\"codePenibilite\");\n $this->assertEquals(\"codePenibilite\", $obj->getCodePenibilite());\n }", "public function testSetCodeGroupe() {\n\n $obj = new Collaborateurs();\n\n $obj->setCodeGroupe(\"codeGroupe\");\n $this->assertEquals(\"codeGroupe\", $obj->getCodeGroupe());\n }", "public function testSetCodeEmploye() {\n\n $obj = new PointBonTrav();\n\n $obj->setCodeEmploye(\"codeEmploye\");\n $this->assertEquals(\"codeEmploye\", $obj->getCodeEmploye());\n }", "public function setCodice($codice) \n\t{\n $this->codice = $codice;\n }", "public function testSetCodeDepot() {\n\n $obj = new Collaborateurs();\n\n $obj->setCodeDepot(\"codeDepot\");\n $this->assertEquals(\"codeDepot\", $obj->getCodeDepot());\n }" ]
[ "0.72842157", "0.71684295", "0.7076179", "0.68811", "0.6808902", "0.6796815", "0.67744434", "0.67634887", "0.6761245", "0.67569524", "0.6748901", "0.67243755", "0.67243755", "0.6692446", "0.6624918", "0.65564424", "0.65294427", "0.65267134", "0.6485502", "0.64636153", "0.6440435", "0.64403373", "0.64217573", "0.6404982", "0.63715607", "0.63697165", "0.63389474", "0.62934357", "0.6239456", "0.62390494" ]
0.8571112
0
Tests the setCompteurTemps() method.
public function testSetCompteurTemps() { $obj = new AppelsEnCours(); $obj->setCompteurTemps(10); $this->assertEquals(10, $obj->getCompteurTemps()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testSetPasSaisieDesTemps() {\n\n $obj = new Collaborateurs();\n\n $obj->setPasSaisieDesTemps(true);\n $this->assertEquals(true, $obj->getPasSaisieDesTemps());\n }", "public function testSetTempsPasse() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setTempsPasse(10.092018);\n $this->assertEquals(10.092018, $obj->getTempsPasse());\n }", "public function testSetTempsPasse() {\n\n $obj = new Employes();\n\n $obj->setTempsPasse(true);\n $this->assertEquals(true, $obj->getTempsPasse());\n }", "public function testSetPasSaisieDesTempsAuto() {\n\n $obj = new Collaborateurs();\n\n $obj->setPasSaisieDesTempsAuto(true);\n $this->assertEquals(true, $obj->getPasSaisieDesTempsAuto());\n }", "public function testSetTpPasJournalTemps() {\n\n $obj = new Collaborateurs();\n\n $obj->setTpPasJournalTemps(true);\n $this->assertEquals(true, $obj->getTpPasJournalTemps());\n }", "public function setTempCelsius() {\n\t\t$this->unit = 'celsius';\n\t}", "public function testSetCompteDeTiers() {\n\n $obj = new Collaborateurs();\n\n $obj->setCompteDeTiers(\"compteDeTiers\");\n $this->assertEquals(\"compteDeTiers\", $obj->getCompteDeTiers());\n }", "public function testSetCompteTiers() {\n\n $obj = new Employes();\n\n $obj->setCompteTiers(\"compteTiers\");\n $this->assertEquals(\"compteTiers\", $obj->getCompteTiers());\n }", "public function testSetInterdireEditionValoriseJrnTemps() {\n\n $obj = new Collaborateurs();\n\n $obj->setInterdireEditionValoriseJrnTemps(true);\n $this->assertEquals(true, $obj->getInterdireEditionValoriseJrnTemps());\n }", "public function testSetTauxCommission() {\n\n $obj = new Collaborateurs();\n\n $obj->setTauxCommission(10.092018);\n $this->assertEquals(10.092018, $obj->getTauxCommission());\n }", "public function setTemps($temps)\n {\n $this->temps = $temps;\n\n return $this;\n }", "public function testSetModifBonsTravaux() {\n\n $obj = new Collaborateurs();\n\n $obj->setModifBonsTravaux(\"modifBonsTravaux\");\n $this->assertEquals(\"modifBonsTravaux\", $obj->getModifBonsTravaux());\n }", "public function testSetTpPasTpsValide() {\n\n $obj = new Collaborateurs();\n\n $obj->setTpPasTpsValide(true);\n $this->assertEquals(true, $obj->getTpPasTpsValide());\n }", "public function testSetCompteComptable() {\n\n $obj = new Collaborateurs();\n\n $obj->setCompteComptable(\"compteComptable\");\n $this->assertEquals(\"compteComptable\", $obj->getCompteComptable());\n }", "public function testSetTauxPensionCivile() {\n\n $obj = new Employes();\n\n $obj->setTauxPensionCivile(10.092018);\n $this->assertEquals(10.092018, $obj->getTauxPensionCivile());\n }", "public function setTemps($post)\n {\n // var_dump($post[\"required_tempPokój_1\"]);\n foreach ($this->rooms as $key => $value) {\n // var_dump($post[\"required_temp\" . str_replace(' ', '_', $key)]);\n $this->rooms[$key][2] = abs($post['required_temp' . str_replace(' ', '_', $key)]);\n $this->rooms[$key][3] = abs($post['tolerance' . str_replace(' ', '_', $key)]);\n }\n $serialized = serialize($this->rooms);\n file_put_contents(\"rooms_temp\", $serialized);\n }", "public function testSetTaux3() {\n\n $obj = new Employes();\n\n $obj->setTaux3(10.092018);\n $this->assertEquals(10.092018, $obj->getTaux3());\n }", "public function testSetTaux1() {\n\n $obj = new Employes();\n\n $obj->setTaux1(10.092018);\n $this->assertEquals(10.092018, $obj->getTaux1());\n }", "public function testSetJoursRttAcquis() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setJoursRttAcquis(10.092018);\n $this->assertEquals(10.092018, $obj->getJoursRttAcquis());\n }", "public function testSetCreationBonsTravaux() {\n\n $obj = new Collaborateurs();\n\n $obj->setCreationBonsTravaux(true);\n $this->assertEquals(true, $obj->getCreationBonsTravaux());\n }", "public function testSetTpPasControler() {\n\n $obj = new Collaborateurs();\n\n $obj->setTpPasControler(true);\n $this->assertEquals(true, $obj->getTpPasControler());\n }", "public function testSetMtSalaireBrut() {\n\n $obj = new AttestationCacm();\n\n $obj->setMtSalaireBrut(10.092018);\n $this->assertEquals(10.092018, $obj->getMtSalaireBrut());\n }", "public function testSetModifTarif() {\n\n $obj = new Collaborateurs();\n\n $obj->setModifTarif(\"modifTarif\");\n $this->assertEquals(\"modifTarif\", $obj->getModifTarif());\n }", "public function setTempUnit($tempUnit) {\n $this->cTempUnit = $tempUnit;\n $this->cLatestObservations.setOutputTempUnit($tempUnit);\n }", "public function testSetCumBaseTrCCaisse1() {\n\n $obj = new Employes();\n\n $obj->setCumBaseTrCCaisse1(10.092018);\n $this->assertEquals(10.092018, $obj->getCumBaseTrCCaisse1());\n }", "public function testSetAccesAutoriseBonsTravaux() {\n\n $obj = new Collaborateurs();\n\n $obj->setAccesAutoriseBonsTravaux(true);\n $this->assertEquals(true, $obj->getAccesAutoriseBonsTravaux());\n }", "public function testSetCarTec() {\n\n $obj = new Materiels();\n\n $obj->setCarTec(\"carTec\");\n $this->assertEquals(\"carTec\", $obj->getCarTec());\n }", "public function testSetCumBaseTrCCaisse3() {\n\n $obj = new Employes();\n\n $obj->setCumBaseTrCCaisse3(10.092018);\n $this->assertEquals(10.092018, $obj->getCumBaseTrCCaisse3());\n }", "public function testSetControleSaisieTp() {\n\n $obj = new Collaborateurs();\n\n $obj->setControleSaisieTp(\"controleSaisieTp\");\n $this->assertEquals(\"controleSaisieTp\", $obj->getControleSaisieTp());\n }", "public function testSetTauxAncien() {\n\n $obj = new Employes();\n\n $obj->setTauxAncien(10.092018);\n $this->assertEquals(10.092018, $obj->getTauxAncien());\n }" ]
[ "0.6966492", "0.66556805", "0.6475218", "0.6467856", "0.6422519", "0.624459", "0.61778104", "0.61338323", "0.61137927", "0.5850839", "0.5702462", "0.5599761", "0.5565481", "0.5564484", "0.5520471", "0.55104613", "0.54046", "0.53873384", "0.5379165", "0.5363112", "0.53501004", "0.533868", "0.53318214", "0.5323374", "0.52985394", "0.52891445", "0.52639604", "0.5262987", "0.5259276", "0.5251407" ]
0.8214956
0
Tests the setConfidentiel() method.
public function testSetConfidentiel() { $obj = new AppelsEnCours(); $obj->setConfidentiel(true); $this->assertEquals(true, $obj->getConfidentiel()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testSetNiveauConfidentialite() {\n\n $obj = new Employes();\n\n $obj->setNiveauConfidentialite(\"niveauConfidentialite\");\n $this->assertEquals(\"niveauConfidentialite\", $obj->getNiveauConfidentialite());\n }", "public function testSetMessagesConfidentiels() {\n\n $obj = new Collaborateurs();\n\n $obj->setMessagesConfidentiels(\"messagesConfidentiels\");\n $this->assertEquals(\"messagesConfidentiels\", $obj->getMessagesConfidentiels());\n }", "public function testSetDroitParamEmailsConfidentiels() {\n\n $obj = new Collaborateurs();\n\n $obj->setDroitParamEmailsConfidentiels(true);\n $this->assertEquals(true, $obj->getDroitParamEmailsConfidentiels());\n }", "public function testSetNiveauConfidentialiteQp() {\n\n $obj = new Collaborateurs();\n\n $obj->setNiveauConfidentialiteQp(\"niveauConfidentialiteQp\");\n $this->assertEquals(\"niveauConfidentialiteQp\", $obj->getNiveauConfidentialiteQp());\n }", "public function testSetEtabConfidentialiteQp() {\n\n $obj = new Collaborateurs();\n\n $obj->setEtabConfidentialiteQp(\"etabConfidentialiteQp\");\n $this->assertEquals(\"etabConfidentialiteQp\", $obj->getEtabConfidentialiteQp());\n }", "public function testSetPrenom() {\n\n $obj = new AttestationCacm();\n\n $obj->setPrenom(\"prenom\");\n $this->assertEquals(\"prenom\", $obj->getPrenom());\n }", "public function testSetInterdictionVueFacturation() {\n\n $obj = new Collaborateurs();\n\n $obj->setInterdictionVueFacturation(true);\n $this->assertEquals(true, $obj->getInterdictionVueFacturation());\n }", "public function testSetAutreContrat() {\n\n $obj = new AttestationCacm();\n\n $obj->setAutreContrat(\"autreContrat\");\n $this->assertEquals(\"autreContrat\", $obj->getAutreContrat());\n }", "public function testSetFicheContradictoire() {\n\n $obj = new FichesControlesEntetes();\n\n $obj->setFicheContradictoire(true);\n $this->assertEquals(true, $obj->getFicheContradictoire());\n }", "public function testUnknownConfigurationKeyForSet()\n {\n AbstractConfigurationInstance::$allowedKeys = ['asemoqTU'];\n (new AbstractConfigurationInstance())->set('JDsUJLrq', '84VUPgAS2i');\n }", "public function testSetIndemnAutre() {\n\n $obj = new AttestationCacm();\n\n $obj->setIndemnAutre(true);\n $this->assertEquals(true, $obj->getIndemnAutre());\n }", "public function testSetNiveauQualif() {\n\n $obj = new AttestationCacm();\n\n $obj->setNiveauQualif(\"niveauQualif\");\n $this->assertEquals(\"niveauQualif\", $obj->getNiveauQualif());\n }", "public function testSetControleur() {\n\n $obj = new FichesControlesEntetes();\n\n $obj->setControleur(\"controleur\");\n $this->assertEquals(\"controleur\", $obj->getControleur());\n }", "public function testSetConsequence() {\n\n $obj = new AppelsEnCours();\n\n $obj->setConsequence(\"consequence\");\n $this->assertEquals(\"consequence\", $obj->getConsequence());\n }", "public function testSetInterdictionPwd() {\n\n $obj = new Collaborateurs();\n\n $obj->setInterdictionPwd(true);\n $this->assertEquals(true, $obj->getInterdictionPwd());\n }", "public function testSetIndiceAff() {\n\n $obj = new Materiels();\n\n $obj->setIndiceAff(10);\n $this->assertEquals(10, $obj->getIndiceAff());\n }", "public function testSetInterdireModifAffCli() {\n\n $obj = new Collaborateurs();\n\n $obj->setInterdireModifAffCli(true);\n $this->assertEquals(true, $obj->getInterdireModifAffCli());\n }", "public function testSetAutreStatut() {\n\n $obj = new AttestationCacm();\n\n $obj->setAutreStatut(\"autreStatut\");\n $this->assertEquals(\"autreStatut\", $obj->getAutreStatut());\n }", "public function testSetPension() {\n\n $obj = new Employes();\n\n $obj->setPension(true);\n $this->assertEquals(true, $obj->getPension());\n }", "public function testSetPrenomConjoint() {\n\n $obj = new Employes();\n\n $obj->setPrenomConjoint(\"prenomConjoint\");\n $this->assertEquals(\"prenomConjoint\", $obj->getPrenomConjoint());\n }", "public function testSetEffectif() {\n\n $obj = new Employes();\n\n $obj->setEffectif(true);\n $this->assertEquals(true, $obj->getEffectif());\n }", "public function testSetAutreAlleg() {\n\n $obj = new Employes();\n\n $obj->setAutreAlleg(true);\n $this->assertEquals(true, $obj->getAutreAlleg());\n }", "public function testSetSatisfactionGenerale() {\n\n $obj = new FichesControlesEntetes();\n\n $obj->setSatisfactionGenerale(\"satisfactionGenerale\");\n $this->assertEquals(\"satisfactionGenerale\", $obj->getSatisfactionGenerale());\n }", "public function testSetNature() {\n\n $obj = new AppelsEnCours();\n\n $obj->setNature(\"nature\");\n $this->assertEquals(\"nature\", $obj->getNature());\n }", "public function testSetSituationFam() {\n\n $obj = new Employes();\n\n $obj->setSituationFam(\"situationFam\");\n $this->assertEquals(\"situationFam\", $obj->getSituationFam());\n }", "public function testSetIndemnSupp() {\n\n $obj = new AttestationCacm();\n\n $obj->setIndemnSupp(true);\n $this->assertEquals(true, $obj->getIndemnSupp());\n }", "public function testSetSaisiePvInterdite() {\n\n $obj = new Collaborateurs();\n\n $obj->setSaisiePvInterdite(true);\n $this->assertEquals(true, $obj->getSaisiePvInterdite());\n }", "public function testSetIndemnLegale() {\n\n $obj = new AttestationCacm();\n\n $obj->setIndemnLegale(true);\n $this->assertEquals(true, $obj->getIndemnLegale());\n }", "public function testSetSpecial() {\n\n $obj = new AppelsEnCours();\n\n $obj->setSpecial(\"special\");\n $this->assertEquals(\"special\", $obj->getSpecial());\n }", "public function testSetTypeContrat() {\n\n $obj = new Employes();\n\n $obj->setTypeContrat(\"typeContrat\");\n $this->assertEquals(\"typeContrat\", $obj->getTypeContrat());\n }" ]
[ "0.7019851", "0.6593965", "0.6490532", "0.6363675", "0.6243892", "0.6172747", "0.6168492", "0.60977024", "0.6067316", "0.604888", "0.60207456", "0.59562165", "0.595564", "0.59555244", "0.59554476", "0.5901317", "0.58861804", "0.5882842", "0.5873057", "0.5849589", "0.58290535", "0.58144426", "0.58018196", "0.58012605", "0.5798848", "0.57952154", "0.5795146", "0.579324", "0.57863027", "0.57625103" ]
0.7908356
0
Tests the setConsequence() method.
public function testSetConsequence() { $obj = new AppelsEnCours(); $obj->setConsequence("consequence"); $this->assertEquals("consequence", $obj->getConsequence()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testSetTypeControle() {\n\n $obj = new ChantiersFrequencesControlesQualite();\n\n $obj->setTypeControle(\"typeControle\");\n $this->assertEquals(\"typeControle\", $obj->getTypeControle());\n }", "public function testSetTypeContrat() {\n\n $obj = new AttestationCacm();\n\n $obj->setTypeContrat(10);\n $this->assertEquals(10, $obj->getTypeContrat());\n }", "public function testSetSignPrenom() {\n\n $obj = new AttestationCacm();\n\n $obj->setSignPrenom(\"signPrenom\");\n $this->assertEquals(\"signPrenom\", $obj->getSignPrenom());\n }", "public function testSetAutreContrat() {\n\n $obj = new AttestationCacm();\n\n $obj->setAutreContrat(\"autreContrat\");\n $this->assertEquals(\"autreContrat\", $obj->getAutreContrat());\n }", "public function testSetPrenom() {\n\n $obj = new AttestationCacm();\n\n $obj->setPrenom(\"prenom\");\n $this->assertEquals(\"prenom\", $obj->getPrenom());\n }", "public function testSetSignQualite() {\n\n $obj = new AttestationCacm();\n\n $obj->setSignQualite(10);\n $this->assertEquals(10, $obj->getSignQualite());\n }", "public function testSetStatutCadre() {\n\n $obj = new AttestationCacm();\n\n $obj->setStatutCadre(true);\n $this->assertEquals(true, $obj->getStatutCadre());\n }", "public function testSetTypeControle() {\n\n $obj = new FichesControlesEntetes();\n\n $obj->setTypeControle(\"typeControle\");\n $this->assertEquals(\"typeControle\", $obj->getTypeControle());\n }", "public function testSetSignAutre() {\n\n $obj = new AttestationCacm();\n\n $obj->setSignAutre(\"signAutre\");\n $this->assertEquals(\"signAutre\", $obj->getSignAutre());\n }", "public function testSetCodeClient() {\n\n $obj = new ChantiersFrequencesControlesQualite();\n\n $obj->setCodeClient(\"codeClient\");\n $this->assertEquals(\"codeClient\", $obj->getCodeClient());\n }", "public function testSetNiveauQualif() {\n\n $obj = new AttestationCacm();\n\n $obj->setNiveauQualif(\"niveauQualif\");\n $this->assertEquals(\"niveauQualif\", $obj->getNiveauQualif());\n }", "public function testSetTitre() {\n\n $obj = new AttestationCacm();\n\n $obj->setTitre(\"titre\");\n $this->assertEquals(\"titre\", $obj->getTitre());\n }", "public function testSetOrganismeCacm() {\n\n $obj = new AttestationCacm();\n\n $obj->setOrganismeCacm(\"organismeCacm\");\n $this->assertEquals(\"organismeCacm\", $obj->getOrganismeCacm());\n }", "public function testSetCodeAffaire() {\n\n $obj = new ChantiersFrequencesControlesQualite();\n\n $obj->setCodeAffaire(\"codeAffaire\");\n $this->assertEquals(\"codeAffaire\", $obj->getCodeAffaire());\n }", "public function testSetCodeChantier() {\n\n $obj = new ChantiersFrequencesControlesQualite();\n\n $obj->setCodeChantier(\"codeChantier\");\n $this->assertEquals(\"codeChantier\", $obj->getCodeChantier());\n }", "public function testSetMois() {\n\n $obj = new ChantiersFrequencesControlesQualite();\n\n $obj->setMois(\"mois\");\n $this->assertEquals(\"mois\", $obj->getMois());\n }", "public function testSetTypeHoraire() {\n\n $obj = new AttestationCacm();\n\n $obj->setTypeHoraire(10);\n $this->assertEquals(10, $obj->getTypeHoraire());\n }", "public function testSetGeneContig() {\n\t\techo (\"\\n********************Test SetGeneContig()****************************************************\\n\");\n\t\t\n\t\t$this->gene->setGeneContig ( 'setGeneContig' );\n\t\t$this->assertEquals ( 'setGeneContig', $this->gene->getGeneContig () );\n\t}", "public function testSetIndemnAutre() {\n\n $obj = new AttestationCacm();\n\n $obj->setIndemnAutre(true);\n $this->assertEquals(true, $obj->getIndemnAutre());\n }", "public function testInitialSet()\n {\n $method = $this->builder_reflection->getMethod('sql_set');\n $method->setAccessible(TRUE);\n\n $property = $this->builder_reflection->getProperty('set');\n $property->setAccessible(TRUE);\n\n $method->invokeArgs($this->builder, array( array('column1' => 'value1')));\n\n $string = 'SET column1 = value1';\n\n $this->assertEquals($string, $property->getValue($this->builder));\n }", "public function testSetQuePremiereAnnee() {\n\n $obj = new ChantiersFrequencesControlesQualite();\n\n $obj->setQuePremiereAnnee(true);\n $this->assertEquals(true, $obj->getQuePremiereAnnee());\n }", "public function testSetNoCacm() {\n\n $obj = new AttestationCacm();\n\n $obj->setNoCacm(\"noCacm\");\n $this->assertEquals(\"noCacm\", $obj->getNoCacm());\n }", "public function testCycle()\n {\n $this->ascendingSequence->setCycle(true);\n $cycle = $this->ascendingSequence->isCycle(true);\n $this->assertTrue($cycle);\n }", "public function testSetPrenomConjoint() {\n\n $obj = new Employes();\n\n $obj->setPrenomConjoint(\"prenomConjoint\");\n $this->assertEquals(\"prenomConjoint\", $obj->getPrenomConjoint());\n }", "public function testSetSignRaisonSociale() {\n\n $obj = new AttestationCacm();\n\n $obj->setSignRaisonSociale(\"signRaisonSociale\");\n $this->assertEquals(\"signRaisonSociale\", $obj->getSignRaisonSociale());\n }", "public function testSetCodeMotifRupture() {\n\n $obj = new AttestationCacm();\n\n $obj->setCodeMotifRupture(\"codeMotifRupture\");\n $this->assertEquals(\"codeMotifRupture\", $obj->getCodeMotifRupture());\n }", "public function testSetControleur() {\n\n $obj = new FichesControlesEntetes();\n\n $obj->setControleur(\"controleur\");\n $this->assertEquals(\"controleur\", $obj->getControleur());\n }", "public function testSetTitreLienParente() {\n\n $obj = new AttestationCacm();\n\n $obj->setTitreLienParente(\"titreLienParente\");\n $this->assertEquals(\"titreLienParente\", $obj->getTitreLienParente());\n }", "public function testSetLienParente() {\n\n $obj = new AttestationCacm();\n\n $obj->setLienParente(true);\n $this->assertEquals(true, $obj->getLienParente());\n }", "public function testSetValue()\n {\n $this->todo('stub');\n }" ]
[ "0.6542602", "0.63094556", "0.623304", "0.6149944", "0.60910785", "0.591618", "0.5866969", "0.58521533", "0.5766778", "0.57638776", "0.5737716", "0.5724368", "0.5708407", "0.56806445", "0.5668753", "0.5603218", "0.5589602", "0.5582171", "0.5578648", "0.5557798", "0.555767", "0.5554861", "0.5525067", "0.5519444", "0.5461422", "0.5457025", "0.5447251", "0.5442091", "0.54362804", "0.5422727" ]
0.8236827
0
Tests the setDateCreationClient() method.
public function testSetDateCreationClient() { // Set a Date/time mock. $dateCreationClient = new DateTime("2018-09-10"); $obj = new AppelsEnCours(); $obj->setDateCreationClient($dateCreationClient); $this->assertSame($dateCreationClient, $obj->getDateCreationClient()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testSetCreationClient() {\n\n $obj = new Collaborateurs();\n\n $obj->setCreationClient(true);\n $this->assertEquals(true, $obj->getCreationClient());\n }", "public function setCreationDate($date) {}", "public function setCreationDate($date = true) {}", "public function testGetCreateDate()\n {\n $this->assertEquals($this->attributes->{'create date'}, \n $this->user->getCreateDate());\n }", "protected function _syncCreationDate() {}", "public function test_comicEntityIsCreated_dates_setDates()\n {\n $sut = $this->getSUT();\n $dates = $sut->getDates();\n $expected = [\n ComicDate::create(\n 'onsaleDate',\n '2020-12-31T00:00:00-0500'\n ),\n ComicDate::create(\n 'focDate',\n '2020-12-16T00:00:00-0500'\n ),\n ];\n\n $this->assertEquals($expected, $dates);\n }", "public function setCreateDates(){\n $t = date_create(date('Y-m-d H:i:s'));\n $this->created = $t;\n $this->modified = $t;\n }", "public function testPropertyDateCreated($value)\n {\n $object = new Metadata();\n $object->setDateCreated($value);\n\n $this->assertEquals($value, $object->getDateCreated());\n }", "public function setCreationDate(\\DateTime $creationDate) {\n\t\t$this->creationDate = $creationDate;\n\t}", "public function setCreateDate(int $create_date);", "public function testSetDate()\n {\n $month = new Month();\n\n $date = date_create('now');\n $month->setDate($date);\n\n $this->assertEquals($date, $month->getDate());\n }", "public function setCreatedDate($date)\r\n\t\t{\r\n\t\t\t$this->_created_date = $date;\r\n\t\t}", "public function testSetDateControle() {\n\n // Set a Date/time mock.\n $dateControle = new DateTime(\"2018-09-10\");\n\n $obj = new FichesControlesEntetes();\n\n $obj->setDateControle($dateControle);\n $this->assertSame($dateControle, $obj->getDateControle());\n }", "public function testCreatedAt()\n {\n $value = date('Y-m-d H:i:s');\n\n $model = $this->getOfferModel();\n\n $model->setCreatedAt($value);\n\n $this->assertEquals($value, $model->getCreatedAt());\n }", "public function testCreated()\n {\n $now = new \\DateTime();\n $conversation = new Conversation();\n $this->assertEquals($now, $conversation->getCreated(), '', 1);\n\n $expected = new \\DateTime('2001-01-01');\n $conversation->setCreated($expected);\n $this->assertSame($expected, $conversation->getCreated());\n }", "public function setDateCreation(\\DateTime $dateCreation = null)\n {\n $this->dateCreation = $dateCreation;\n }", "public function testSetDateLicenciement() {\n\n // Set a Date/time mock.\n $dateLicenciement = new DateTime(\"2018-09-10\");\n\n $obj = new Employes();\n\n $obj->setDateLicenciement($dateLicenciement);\n $this->assertSame($dateLicenciement, $obj->getDateLicenciement());\n }", "public function beforeCreate()\n {\n // init fields by default\n $this->setDateCreate(new \\DateTime());\n }", "public function testCreateFromOrderShouldSetTheDateToInvoice()\n {\n $order = new Order();\n $invoice = $this->invoiceFactory->createFromOrder($order);\n $invoiceDate = $invoice->getInvoiceDate()->format('Y-m-d H:i:s');\n $currentDate = (new \\DateTime())->format('Y-m-d H:i:s');\n static::assertEquals($currentDate, $invoiceDate);\n }", "public function testSetDateValidationTp() {\n\n // Set a Date/time mock.\n $dateValidationTp = new DateTime(\"2018-09-10\");\n\n $obj = new Collaborateurs();\n\n $obj->setDateValidationTp($dateValidationTp);\n $this->assertSame($dateValidationTp, $obj->getDateValidationTp());\n }", "public function setDate()\n\t{\n\t\tif ($this->getIsNewRecord())\n\t\t\t$this->create_time = time();\n\t}", "public function setCreateDate(string $create_date): void\n {\n $this->create_date = $create_date;\n }", "public function testSetDateTransfert() {\n\n // Set a Date/time mock.\n $dateTransfert = new DateTime(\"2018-09-10\");\n\n $obj = new FichesControlesEntetes();\n\n $obj->setDateTransfert($dateTransfert);\n $this->assertSame($dateTransfert, $obj->getDateTransfert());\n }", "protected function setUpFakeDateTime()\n {\n $date = null;\n if (method_exists($this, 'fakeDateTime')) {\n $date = $this->fakeDateTime();\n } elseif (property_exists($this, 'fakeDateTime')) {\n $date = $this->fakeDateTime;\n }\n\n if (is_int($date)) {\n $date = Carbon::createFromTimestamp($date);\n }\n\n if (is_string($date)) {\n $date = Carbon::parse($date);\n }\n\n if ($date instanceof DateTimeInterface) {\n Carbon::setTestNow($date);\n }\n }", "function setCreateDate($inCreateDate) {\n\t\tif ( $inCreateDate !== $this->_CreateDate ) {\n\t\t\tif ( !$inCreateDate instanceof DateTime ) {\n\t\t\t\t$inCreateDate = new systemDateTime($inCreateDate, system::getConfig()->getSystemTimeZone()->getParamValue());\n\t\t\t}\n\t\t\t$this->_CreateDate = $inCreateDate;\n\t\t\t$this->setModified();\n\t\t}\n\t\treturn $this;\n\t}", "public function setCreateDate($createDate) {\n\t\t$this->createDate = $createDate;\n\t}", "public function setCreateDate($createDate) {\n\t\t$this->createDate = $createDate;\n\t}", "public function testSetDateNotification() {\n\n // Set a Date/time mock.\n $dateNotification = new DateTime(\"2018-09-10\");\n\n $obj = new AttestationCacm();\n\n $obj->setDateNotification($dateNotification);\n $this->assertSame($dateNotification, $obj->getDateNotification());\n }", "public function set_creation_date($created)\n {\n $this->set_default_property(self::PROPERTY_CREATION_DATE, $created);\n }", "public function setCreated($date)\n {\n $this->created = $date;\n }" ]
[ "0.7206147", "0.7179996", "0.7141071", "0.6833998", "0.68209094", "0.6562347", "0.6435693", "0.6359219", "0.6284262", "0.62400293", "0.62132156", "0.6175595", "0.61736566", "0.61689335", "0.61672693", "0.61445814", "0.61253536", "0.6084976", "0.6084259", "0.60605574", "0.6054144", "0.60470295", "0.6043361", "0.60392267", "0.60119635", "0.5969384", "0.5969384", "0.59650314", "0.59619725", "0.5931275" ]
0.8642976
0
Tests the setDateEntree() method.
public function testSetDateEntree() { // Set a Date/time mock. $dateEntree = new DateTime("2018-09-10"); $obj = new AppelsEnCours(); $obj->setDateEntree($dateEntree); $this->assertSame($dateEntree, $obj->getDateEntree()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testSetDateEntree() {\n\n // Set a Date/time mock.\n $dateEntree = new DateTime(\"2018-09-10\");\n\n $obj = new Collaborateurs();\n\n $obj->setDateEntree($dateEntree);\n $this->assertSame($dateEntree, $obj->getDateEntree());\n }", "public function testSetDateEntree1() {\n\n // Set a Date/time mock.\n $dateEntree1 = new DateTime(\"2018-09-10\");\n\n $obj = new Employes();\n\n $obj->setDateEntree1($dateEntree1);\n $this->assertSame($dateEntree1, $obj->getDateEntree1());\n }", "public function testSetDateEntree2() {\n\n // Set a Date/time mock.\n $dateEntree2 = new DateTime(\"2018-09-10\");\n\n $obj = new Employes();\n\n $obj->setDateEntree2($dateEntree2);\n $this->assertSame($dateEntree2, $obj->getDateEntree2());\n }", "public function testSetDateTransfert() {\n\n // Set a Date/time mock.\n $dateTransfert = new DateTime(\"2018-09-10\");\n\n $obj = new FichesControlesEntetes();\n\n $obj->setDateTransfert($dateTransfert);\n $this->assertSame($dateTransfert, $obj->getDateTransfert());\n }", "public function testSetDate()\n {\n $month = new Month();\n\n $date = date_create('now');\n $month->setDate($date);\n\n $this->assertEquals($date, $month->getDate());\n }", "public function testSetDateNaissance() {\n\n // Set a Date/time mock.\n $dateNaissance = new DateTime(\"2018-09-10\");\n\n $obj = new Employes();\n\n $obj->setDateNaissance($dateNaissance);\n $this->assertSame($dateNaissance, $obj->getDateNaissance());\n }", "public function setDate($date);", "public function testSetDateValidationNdF() {\n\n // Set a Date/time mock.\n $dateValidationNdF = new DateTime(\"2018-09-10\");\n\n $obj = new Collaborateurs();\n\n $obj->setDateValidationNdF($dateValidationNdF);\n $this->assertSame($dateValidationNdF, $obj->getDateValidationNdF());\n }", "public function testSetDateControle() {\n\n // Set a Date/time mock.\n $dateControle = new DateTime(\"2018-09-10\");\n\n $obj = new FichesControlesEntetes();\n\n $obj->setDateControle($dateControle);\n $this->assertSame($dateControle, $obj->getDateControle());\n }", "public function testSetDateAncien() {\n\n // Set a Date/time mock.\n $dateAncien = new DateTime(\"2018-09-10\");\n\n $obj = new Employes();\n\n $obj->setDateAncien($dateAncien);\n $this->assertSame($dateAncien, $obj->getDateAncien());\n }", "public function setDateEntree(DateTime $dateEntree = null) {\n $this->dateEntree = $dateEntree;\n return $this;\n }", "public function testSetDateVisiteReprise() {\n\n // Set a Date/time mock.\n $dateVisiteReprise = new DateTime(\"2018-09-10\");\n\n $obj = new Employes();\n\n $obj->setDateVisiteReprise($dateVisiteReprise);\n $this->assertSame($dateVisiteReprise, $obj->getDateVisiteReprise());\n }", "public function testSetDateLicenciement() {\n\n // Set a Date/time mock.\n $dateLicenciement = new DateTime(\"2018-09-10\");\n\n $obj = new Employes();\n\n $obj->setDateLicenciement($dateLicenciement);\n $this->assertSame($dateLicenciement, $obj->getDateLicenciement());\n }", "public function testSetDtDebutEmploi() {\n\n // Set a Date/time mock.\n $dtDebutEmploi = new DateTime(\"2018-09-10\");\n\n $obj = new AttestationCacm();\n\n $obj->setDtDebutEmploi($dtDebutEmploi);\n $this->assertSame($dtDebutEmploi, $obj->getDtDebutEmploi());\n }", "public function testSetDateValidationTp() {\n\n // Set a Date/time mock.\n $dateValidationTp = new DateTime(\"2018-09-10\");\n\n $obj = new Collaborateurs();\n\n $obj->setDateValidationTp($dateValidationTp);\n $this->assertSame($dateValidationTp, $obj->getDateValidationTp());\n }", "public function testSetDateModification() {\n\n // Set a Date/time mock.\n $dateModification = new DateTime(\"2018-09-10\");\n\n $obj = new Employes();\n\n $obj->setDateModification($dateModification);\n $this->assertSame($dateModification, $obj->getDateModification());\n }", "public function testSetDtFinEmploi() {\n\n // Set a Date/time mock.\n $dtFinEmploi = new DateTime(\"2018-09-10\");\n\n $obj = new AttestationCacm();\n\n $obj->setDtFinEmploi($dtFinEmploi);\n $this->assertSame($dtFinEmploi, $obj->getDtFinEmploi());\n }", "public function testSetDateNaissance() {\n\n // Set a Date/time mock.\n $dateNaissance = new DateTime(\"2018-09-10\");\n\n $obj = new AttestationCacm();\n\n $obj->setDateNaissance($dateNaissance);\n $this->assertSame($dateNaissance, $obj->getDateNaissance());\n }", "public function testSetDateSortie1() {\n\n // Set a Date/time mock.\n $dateSortie1 = new DateTime(\"2018-09-10\");\n\n $obj = new Employes();\n\n $obj->setDateSortie1($dateSortie1);\n $this->assertSame($dateSortie1, $obj->getDateSortie1());\n }", "public function testSetDateSortie() {\n\n // Set a Date/time mock.\n $dateSortie = new DateTime(\"2018-09-10\");\n\n $obj = new Collaborateurs();\n\n $obj->setDateSortie($dateSortie);\n $this->assertSame($dateSortie, $obj->getDateSortie());\n }", "public function testSetDateNaissConjoint() {\n\n // Set a Date/time mock.\n $dateNaissConjoint = new DateTime(\"2018-09-10\");\n\n $obj = new Employes();\n\n $obj->setDateNaissConjoint($dateNaissConjoint);\n $this->assertSame($dateNaissConjoint, $obj->getDateNaissConjoint());\n }", "public function testSetDatePaiement() {\n\n // Set a Date/time mock.\n $datePaiement = new DateTime(\"2018-09-10\");\n\n $obj = new AttestationCacm();\n\n $obj->setDatePaiement($datePaiement);\n $this->assertSame($datePaiement, $obj->getDatePaiement());\n }", "public function testSetDateRedir() {\n\n // Set a Date/time mock.\n $dateRedir = new DateTime(\"2018-09-10\");\n\n $obj = new AppelsEnCours();\n\n $obj->setDateRedir($dateRedir);\n $this->assertSame($dateRedir, $obj->getDateRedir());\n }", "public function testSetDateEmbauche() {\n\n // Set a Date/time mock.\n $dateEmbauche = new DateTime(\"2018-09-10\");\n\n $obj = new Employes();\n\n $obj->setDateEmbauche($dateEmbauche);\n $this->assertSame($dateEmbauche, $obj->getDateEmbauche());\n }", "public function setDate($date){\n\t\t$this->date = $date;\n\t}", "public function testSetDateSortie2() {\n\n // Set a Date/time mock.\n $dateSortie2 = new DateTime(\"2018-09-10\");\n\n $obj = new Employes();\n\n $obj->setDateSortie2($dateSortie2);\n $this->assertSame($dateSortie2, $obj->getDateSortie2());\n }", "public function setDate($date)\n\t{\n\t\t$this->date = $date;\n\t}", "public function setDate($date)\n {\n $this->date = $date;\n }", "public function setDate($date)\n {\n $this->date = $date;\n }", "public function testSetDateCtrlPrevue() {\n\n // Set a Date/time mock.\n $dateCtrlPrevue = new DateTime(\"2018-09-10\");\n\n $obj = new FichesControlesEntetes();\n\n $obj->setDateCtrlPrevue($dateCtrlPrevue);\n $this->assertSame($dateCtrlPrevue, $obj->getDateCtrlPrevue());\n }" ]
[ "0.8275836", "0.79716694", "0.77235353", "0.7212507", "0.69083124", "0.68758607", "0.6854668", "0.6770786", "0.67692846", "0.67617184", "0.6677814", "0.6674084", "0.6663907", "0.665032", "0.65753704", "0.65339303", "0.6525946", "0.6524426", "0.6507415", "0.65070254", "0.6493791", "0.6489011", "0.6474991", "0.6449466", "0.64361334", "0.6365887", "0.63557655", "0.63461167", "0.63461167", "0.6341135" ]
0.82308495
1
Tests the setDateMessageLu() method.
public function testSetDateMessageLu() { // Set a Date/time mock. $dateMessageLu = new DateTime("2018-09-10"); $obj = new AppelsEnCours(); $obj->setDateMessageLu($dateMessageLu); $this->assertSame($dateMessageLu, $obj->getDateMessageLu()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testSetMessageLu() {\n\n $obj = new AppelsEnCours();\n\n $obj->setMessageLu(true);\n $this->assertEquals(true, $obj->getMessageLu());\n }", "public function testSetDateValidationNdF() {\n\n // Set a Date/time mock.\n $dateValidationNdF = new DateTime(\"2018-09-10\");\n\n $obj = new Collaborateurs();\n\n $obj->setDateValidationNdF($dateValidationNdF);\n $this->assertSame($dateValidationNdF, $obj->getDateValidationNdF());\n }", "public function testMatchDateFormatUpdated() {\n\t\t$this->match->match_date = '28 February 2014';\n\t\t$this->assertEquals('2014-02-28 00:00:00', $this->match->match_date);\n\t}", "public function testSetDateNotification() {\n\n // Set a Date/time mock.\n $dateNotification = new DateTime(\"2018-09-10\");\n\n $obj = new AttestationCacm();\n\n $obj->setDateNotification($dateNotification);\n $this->assertSame($dateNotification, $obj->getDateNotification());\n }", "public function testSetDateAchat() {\n\n // Set a Date/time mock.\n $dateAchat = new DateTime(\"2018-09-10\");\n\n $obj = new Materiels();\n\n $obj->setDateAchat($dateAchat);\n $this->assertSame($dateAchat, $obj->getDateAchat());\n }", "public function testSetDate()\n {\n $month = new Month();\n\n $date = date_create('now');\n $month->setDate($date);\n\n $this->assertEquals($date, $month->getDate());\n }", "public function testCustomDateFormatting()\n {\n $lifestream = new \\SimpleLifestream\\SimpleLifestream(array('Twitter' => 'AlvaroUribeVel'));\n $lifestream->setCacheEngine(null);\n $lifestream->setDateFormat('Y-m-d');\n\n $output = $lifestream->getLifestream();\n $this->assertFalse($lifestream->hasErrors());\n $this->validateOutput($output, $this->knownTypes['Twitter']);\n\n foreach ($output as $o)\n {\n list($y, $m, $d) = explode('-', $o['date']);\n $this->assertTrue(checkdate($m, $d, $y));\n }\n }", "public function testSetDatePassage() {\n\n // Set a Date/time mock.\n $datePassage = new DateTime(\"2018-09-10\");\n\n $obj = new PointBonTrav();\n\n $obj->setDatePassage($datePassage);\n $this->assertSame($datePassage, $obj->getDatePassage());\n }", "public function testSetDateValidationTp() {\n\n // Set a Date/time mock.\n $dateValidationTp = new DateTime(\"2018-09-10\");\n\n $obj = new Collaborateurs();\n\n $obj->setDateValidationTp($dateValidationTp);\n $this->assertSame($dateValidationTp, $obj->getDateValidationTp());\n }", "public function testSetDateTransfert() {\n\n // Set a Date/time mock.\n $dateTransfert = new DateTime(\"2018-09-10\");\n\n $obj = new FichesControlesEntetes();\n\n $obj->setDateTransfert($dateTransfert);\n $this->assertSame($dateTransfert, $obj->getDateTransfert());\n }", "public function setDate($date);", "public function testDatetimeSetCorrectly()\n {\n $property = $this->logger_reflection->getProperty('datetime');\n $property->setAccessible(TRUE);\n\n $this->assertInstanceOf('Lunr\\Core\\DateTime', $property->getValue($this->logger));\n }", "public function testFormatUsDate()\n {\n $this->assertEquals('04/30/2013', StringFilter::formatUsDate('2013-04-30'));\n }", "private function _init_date()\n\t{\n\t\t$this->date->init($this->EE->TMPL->fetch_param('date'));\n\t\t$this->_log(sprintf(\"Working date set to %s %s\", $this->date->date(), $this->date->time()));\n\t}", "public function testSetDateControle() {\n\n // Set a Date/time mock.\n $dateControle = new DateTime(\"2018-09-10\");\n\n $obj = new FichesControlesEntetes();\n\n $obj->setDateControle($dateControle);\n $this->assertSame($dateControle, $obj->getDateControle());\n }", "public function testSetMessage()\n {\n $inputInvalid = 'abcdefghij';\n $this->assertFalse($this->_validator->isValid($inputInvalid));\n $messages = $this->_validator->getMessages();\n $this->assertEquals(\"'$inputInvalid' is more than 8 characters long\", current($messages));\n\n $this->_validator->setMessage(\n 'Your value is too long',\n Zend_Validate_StringLength::TOO_LONG\n );\n\n $this->assertFalse($this->_validator->isValid('abcdefghij'));\n $messages = $this->_validator->getMessages();\n $this->assertEquals('Your value is too long', current($messages));\n }", "private function _consolideDate(){\n\t\t$this->_mktime();\n\t\t$this->_setDate();\n\t}", "public function testSaveWrongDate()\n\t{\n\t\ttry{\n\t\t\t$result = $this->Employee->save(\n\t\t\t\tarray('id' => '2', 'birthday' => '01-01-2001', 'salary' => '650.30')\n\t\t\t);\n\n\t\t\t$this->assertFalse($result);\n\t\t}\n\t\tcatch(LocaleException $e)\n\t\t{\n\t\t\t$this->assertEqual($e->getMessage(), 'Data inválida para localização');\n\t\t}\n\t}", "public function testGetDateWithParams()\n {\n // there's no real way round it here...\n $this->assertEquals(date('m-d'), $this->sut->getDate('m-d'));\n }", "private function _setDate(){\n\t\tif($this->_year>=1970&&$this->_year<=2038){\n\t\t\t$this->_day = date('d', $this->_timestamp);\n\t\t\t$this->_month = date('m', $this->_timestamp);\n\t\t\t$this->_year = date('Y', $this->_timestamp);\n\t\t} else {\n\t\t\t$dateParts = self::_getDateParts($this->_timestamp, true);\n\t\t\t$this->_day = sprintf('%02s', $dateParts['mday']);\n\t\t\t$this->_month = sprintf('%02s', $dateParts['mon']);\n\t\t\t$this->_year = $dateParts['year'];\n\t\t}\n\t\t$this->_date = $this->_year.'-'.$this->_month.'-'.$this->_day;\n\t}", "public function setDate($date_string = null)\n {\n\n if ($this->is_date() == 1) {\n $this->now = getdate(strtotime($date_string));\n } else {\n $this->now = getdate();\n }\n }", "public function testDatesValides()\n {\n $this->context->expects($this->never())\n ->method('addViolation');\n $this->holidayValidator->validate(\\DateTime::createFromFormat('Y-m-d', '2019-01-10'), $this->holidayticket);\n }", "public function setMessageDate($messageDate)\n {\n $this->messageDate = $messageDate;\n return $this;\n }", "private function set_date()\r\n\t{\r\n\t\tif ($this->month > 12)\r\n\t\t{\r\n\t\t\t$this->month=1;\r\n\t\t\t$this->year++;\r\n\t\t}\r\n\r\n\t\tif ($this->month < 1)\r\n\t\t{\r\n\t\t\t$this->month=12;\r\n\t\t\t$this->year--;\r\n\t\t}\r\n\r\n\t\tif ($this->year > 2037) $this->year = 2037;\r\n\t\tif ($this->year < 1971) $this->year = 1971;\r\n\t}", "public function setDate($value) {\n\t\t$this->_date = $value;\n\t}", "public function setDate()\n\t{\n\t\tif ($this->getIsNewRecord())\n\t\t\t$this->create_time = time();\n\t}", "public function testSetMsgRedirAuto() {\n\n $obj = new Collaborateurs();\n\n $obj->setMsgRedirAuto(true);\n $this->assertEquals(true, $obj->getMsgRedirAuto());\n }", "public function testSetSuiviMessages() {\n\n $obj = new Collaborateurs();\n\n $obj->setSuiviMessages(true);\n $this->assertEquals(true, $obj->getSuiviMessages());\n }", "public function testDirecteurValeurDateEmbauche() {\n $directeurATester = new Directeur();\n $dateTemoin = DateTime::createFromFormat(\"d/m/Y\",$this->dateTemoin);\n $directeurATester->setDateEmbauche($this->dateTemoin);\n $this->assertEquals($dateTemoin,$directeurATester->getDateEmbauche());\n }", "public function setDate($date){\n\t\t$this->date = $date;\n\t}" ]
[ "0.62668794", "0.6224664", "0.61659783", "0.60718167", "0.6058118", "0.5990925", "0.5981144", "0.59490794", "0.58531934", "0.5782089", "0.572274", "0.5645164", "0.56242007", "0.5615595", "0.56071264", "0.5570656", "0.5570357", "0.55523765", "0.55209637", "0.5512811", "0.5503864", "0.55004686", "0.54703164", "0.54560786", "0.54488504", "0.5443169", "0.5436779", "0.54164314", "0.5415894", "0.5411966" ]
0.8242982
0
Tests the setDateRedir() method.
public function testSetDateRedir() { // Set a Date/time mock. $dateRedir = new DateTime("2018-09-10"); $obj = new AppelsEnCours(); $obj->setDateRedir($dateRedir); $this->assertSame($dateRedir, $obj->getDateRedir()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testSetDateVisiteReprise() {\n\n // Set a Date/time mock.\n $dateVisiteReprise = new DateTime(\"2018-09-10\");\n\n $obj = new Employes();\n\n $obj->setDateVisiteReprise($dateVisiteReprise);\n $this->assertSame($dateVisiteReprise, $obj->getDateVisiteReprise());\n }", "public function setRdate($rdate) {\n $this->rdate = $rdate;\n }", "function testResetDateBeforeStartDate() {\n Counter::findOne(1)->reset(Carbon::now()->subDays(6)->toDateString());\n }", "function setDateRated($dateRated) {\n\t\t$this->setData('dateRated', $dateRated);\n\t}", "public function setDate($date);", "function testResetDateSameAsStartDate() {\n $startDate = Carbon::now()->subDays(5);\n \n //Test precondition\n $this->tester->seeInDatabase('History', ['counterId'=>1, 'startDate'=>$startDate->toDateString(),\n 'endDate'=>null]);\n\n Counter::findOne(1)->reset($startDate->toDateString());\n\n $this->tester->seeInDatabase('History', ['counterId'=>1, 'startDate'=>$startDate->toDateString(),\n 'endDate'=>null]);\n $this->tester->dontSeeInDatabase('History', ['counterId'=>1, 'startDate'=>$startDate->toDateString(),\n 'endDate'=>$startDate->toDateString()]); \n }", "function setDateReminded($dateReminded) {\n\t\t$this->setData('dateReminded', $dateReminded);\n\t}", "public function testSetDateLicenciement() {\n\n // Set a Date/time mock.\n $dateLicenciement = new DateTime(\"2018-09-10\");\n\n $obj = new Employes();\n\n $obj->setDateLicenciement($dateLicenciement);\n $this->assertSame($dateLicenciement, $obj->getDateLicenciement());\n }", "public function testSetDate()\n {\n $month = new Month();\n\n $date = date_create('now');\n $month->setDate($date);\n\n $this->assertEquals($date, $month->getDate());\n }", "public function setModDate($date) {}", "private function set_date()\r\n\t{\r\n\t\tif ($this->month > 12)\r\n\t\t{\r\n\t\t\t$this->month=1;\r\n\t\t\t$this->year++;\r\n\t\t}\r\n\r\n\t\tif ($this->month < 1)\r\n\t\t{\r\n\t\t\t$this->month=12;\r\n\t\t\t$this->year--;\r\n\t\t}\r\n\r\n\t\tif ($this->year > 2037) $this->year = 2037;\r\n\t\tif ($this->year < 1971) $this->year = 1971;\r\n\t}", "public function testSetDateValidationNdF() {\n\n // Set a Date/time mock.\n $dateValidationNdF = new DateTime(\"2018-09-10\");\n\n $obj = new Collaborateurs();\n\n $obj->setDateValidationNdF($dateValidationNdF);\n $this->assertSame($dateValidationNdF, $obj->getDateValidationNdF());\n }", "public function setRecorddate($v)\n\t{\n\n\t\tif ($v !== null && !is_int($v)) {\n\t\t\t$ts = strtotime($v);\n\t\t\tif ($ts === -1 || $ts === false) { // in PHP 5.1 return value changes to FALSE\n\t\t\t\tthrow new PropelException(\"Unable to parse date/time value for [recorddate] from input: \" . var_export($v, true));\n\t\t\t}\n\t\t} else {\n\t\t\t$ts = $v;\n\t\t}\n\t\tif ($this->recorddate !== $ts) {\n\t\t\t$this->recorddate = $ts;\n\t\t\t$this->modifiedColumns[] = MmPeer::RECORDDATE;\n\t\t}\n\n\t}", "public function testSetDateTransfert() {\n\n // Set a Date/time mock.\n $dateTransfert = new DateTime(\"2018-09-10\");\n\n $obj = new FichesControlesEntetes();\n\n $obj->setDateTransfert($dateTransfert);\n $this->assertSame($dateTransfert, $obj->getDateTransfert());\n }", "public function testSetDateControle() {\n\n // Set a Date/time mock.\n $dateControle = new DateTime(\"2018-09-10\");\n\n $obj = new FichesControlesEntetes();\n\n $obj->setDateControle($dateControle);\n $this->assertSame($dateControle, $obj->getDateControle());\n }", "public function testSetDateValidationTp() {\n\n // Set a Date/time mock.\n $dateValidationTp = new DateTime(\"2018-09-10\");\n\n $obj = new Collaborateurs();\n\n $obj->setDateValidationTp($dateValidationTp);\n $this->assertSame($dateValidationTp, $obj->getDateValidationTp());\n }", "public function setDate($date)\n\t{\n\t\t$this->date = $date;\n\t}", "public function setDate()\n\t{\n\t\tif ($this->getIsNewRecord())\n\t\t\t$this->create_time = time();\n\t}", "public function setDate($date){\n\t\t$this->date = $date;\n\t}", "public function testSetDateCtrlPrevue() {\n\n // Set a Date/time mock.\n $dateCtrlPrevue = new DateTime(\"2018-09-10\");\n\n $obj = new FichesControlesEntetes();\n\n $obj->setDateCtrlPrevue($dateCtrlPrevue);\n $this->assertSame($dateCtrlPrevue, $obj->getDateCtrlPrevue());\n }", "function testResetToday() {\n $counter = Counter::findOne(1);\n\n $startDate = Carbon::now()->subDays(5);\n $resetDate = Carbon::now($counter->getTimeZone());\n \n codecept_debug(\"Start Date: {$startDate->toAtomString()} {$startDate->getTimeZone()->getName()}\");\n codecept_debug(\"Reset Date: {$resetDate->toAtomString()} {$resetDate->getTimeZone()->getName()}\");\n\n //Test precondition\n $this->tester->seeInDatabase('History', ['counterId'=>1, 'startDate'=>$startDate->toDateString(),\n 'endDate'=>null]);\n\n Counter::findOne(1)->reset($resetDate->toDateString());\n\n //Test the results after reset\n $this->tester->seeInDatabase('History', ['counterId'=>1, 'startDate'=>$startDate->toDateString(),\n 'endDate'=>$resetDate->toDateString()]);\n $this->tester->seeInDatabase('History', ['counterId'=>1, 'startDate'=>$resetDate->toDateString(),\n 'endDate'=>null]);\n }", "public function testSetDateEntree() {\n\n // Set a Date/time mock.\n $dateEntree = new DateTime(\"2018-09-10\");\n\n $obj = new Collaborateurs();\n\n $obj->setDateEntree($dateEntree);\n $this->assertSame($dateEntree, $obj->getDateEntree());\n }", "public function testSetDateFinUtil() {\n\n // Set a Date/time mock.\n $dateFinUtil = new DateTime(\"2018-09-10\");\n\n $obj = new Materiels();\n\n $obj->setDateFinUtil($dateFinUtil);\n $this->assertSame($dateFinUtil, $obj->getDateFinUtil());\n }", "public function getRdate() {\n return $this->rdate;\n }", "public function setDate($date)\n {\n $this->date = $date;\n }", "public function setDate($date)\n {\n $this->date = $date;\n }", "public function testSetDateModification() {\n\n // Set a Date/time mock.\n $dateModification = new DateTime(\"2018-09-10\");\n\n $obj = new Employes();\n\n $obj->setDateModification($dateModification);\n $this->assertSame($dateModification, $obj->getDateModification());\n }", "public function setDate($date) {\n $this->date = $date;\n }", "public function setDate($value) {\n\t\t$this->_date = $value;\n\t}", "public function getReceptionDate();" ]
[ "0.6837725", "0.67015815", "0.621687", "0.6208729", "0.61947274", "0.61321783", "0.6127836", "0.607481", "0.6014806", "0.60033435", "0.5953378", "0.5924198", "0.5897611", "0.5873549", "0.58656543", "0.58529806", "0.5847973", "0.58401555", "0.5837337", "0.5831351", "0.58033764", "0.57713336", "0.5750075", "0.57332623", "0.5731881", "0.5731881", "0.57287574", "0.5721698", "0.57157606", "0.5704517" ]
0.81862825
0
Tests the setDemandeAr() method.
public function testSetDemandeAr() { $obj = new AppelsEnCours(); $obj->setDemandeAr(true); $this->assertEquals(true, $obj->getDemandeAr()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testSetEtage() {\n\n $obj = new DevisZbe();\n\n $obj->setEtage(\"etage\");\n $this->assertEquals(\"etage\", $obj->getEtage());\n }", "public function testSetDestinatairesA() {\n\n $obj = new AppelsEnCours();\n\n $obj->setDestinatairesA(\"destinatairesA\");\n $this->assertEquals(\"destinatairesA\", $obj->getDestinatairesA());\n }", "public function testSetVueDevisDroitSuppr() {\n\n $obj = new Collaborateurs();\n\n $obj->setVueDevisDroitSuppr(true);\n $this->assertEquals(true, $obj->getVueDevisDroitSuppr());\n }", "public function testSetCleDeux() {\n\n $obj = new Employes();\n\n $obj->setCleDeux(\"cleDeux\");\n $this->assertEquals(\"cleDeux\", $obj->getCleDeux());\n }", "public function testactualizarDia(){\n $tarjetaMedioUni = new TarjetaMedioUni;\n $tarjetaMedioUni->usarMedio();\n $tarjetaMedioUni->actualizarDia(10);\n $this->assertEquals($tarjetaMedioUni->obtenerDiaDeUso(), 10);\n $this->assertEquals($tarjetaMedioUni->obtenerUsoDeMedio(),0);\n }", "public function testSetEtblAdr() {\n\n $obj = new AttestationCacm();\n\n $obj->setEtblAdr(\"etblAdr\");\n $this->assertEquals(\"etblAdr\", $obj->getEtblAdr());\n }", "public function testSetBureauDistributeur() {\n\n $obj = new Employes();\n\n $obj->setBureauDistributeur(\"bureauDistributeur\");\n $this->assertEquals(\"bureauDistributeur\", $obj->getBureauDistributeur());\n }", "public function testSetDomBanque() {\n\n $obj = new Employes();\n\n $obj->setDomBanque(\"domBanque\");\n $this->assertEquals(\"domBanque\", $obj->getDomBanque());\n }", "public function testSetDernierEmploi() {\n\n $obj = new AttestationCacm();\n\n $obj->setDernierEmploi(\"dernierEmploi\");\n $this->assertEquals(\"dernierEmploi\", $obj->getDernierEmploi());\n }", "public function testSetNumDevis() {\n\n $obj = new DevisZbe();\n\n $obj->setNumDevis(\"numDevis\");\n $this->assertEquals(\"numDevis\", $obj->getNumDevis());\n }", "public function testSetEtiqDeFront() {\n\n $obj = new ParamEtiquettes();\n\n $obj->setEtiqDeFront(10);\n $this->assertEquals(10, $obj->getEtiqDeFront());\n }", "public function testSetBatiment() {\n\n $obj = new DevisZbe();\n\n $obj->setBatiment(\"batiment\");\n $this->assertEquals(\"batiment\", $obj->getBatiment());\n }", "public function testSetAvecCodeBarre() {\n\n $obj = new ParamEtiquettes();\n\n $obj->setAvecCodeBarre(true);\n $this->assertEquals(true, $obj->getAvecCodeBarre());\n }", "public function testSetEstAcheteur() {\n\n $obj = new Collaborateurs();\n\n $obj->setEstAcheteur(10);\n $this->assertEquals(10, $obj->getEstAcheteur());\n }", "public function testSetBureauDistributeur() {\n\n $obj = new Collaborateurs();\n\n $obj->setBureauDistributeur(\"bureauDistributeur\");\n $this->assertEquals(\"bureauDistributeur\", $obj->getBureauDistributeur());\n }", "public function testSetLibelle() {\n\n $obj = new Materiels();\n\n $obj->setLibelle(\"libelle\");\n $this->assertEquals(\"libelle\", $obj->getLibelle());\n }", "public function testSetMotDePasse() {\n\n $obj = new Collaborateurs();\n\n $obj->setMotDePasse(\"motDePasse\");\n $this->assertEquals(\"motDePasse\", $obj->getMotDePasse());\n }", "public function testSetRequete4() {\n\n $obj = new ClientsSelAvance();\n\n $obj->setRequete4(\"requete4\");\n $this->assertEquals(\"requete4\", $obj->getRequete4());\n }", "public function testSetIndemnLegale() {\n\n $obj = new AttestationCacm();\n\n $obj->setIndemnLegale(true);\n $this->assertEquals(true, $obj->getIndemnLegale());\n }", "public function testSetEffectifDas() {\n\n $obj = new Employes();\n\n $obj->setEffectifDas(true);\n $this->assertEquals(true, $obj->getEffectifDas());\n }", "public function testSetRequete12() {\n\n $obj = new ClientsSelAvance();\n\n $obj->setRequete12(\"requete12\");\n $this->assertEquals(\"requete12\", $obj->getRequete12());\n }", "public function testSetEtat() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setEtat(\"etat\");\n $this->assertEquals(\"etat\", $obj->getEtat());\n }", "public function testSetEtiqMasque() {\n\n $obj = new ParamEtiquettes();\n\n $obj->setEtiqMasque(true);\n $this->assertEquals(true, $obj->getEtiqMasque());\n }", "public function testSetAutreAlleg() {\n\n $obj = new Employes();\n\n $obj->setAutreAlleg(true);\n $this->assertEquals(true, $obj->getAutreAlleg());\n }", "public function testSetDomBanque() {\n\n $obj = new Collaborateurs();\n\n $obj->setDomBanque(\"domBanque\");\n $this->assertEquals(\"domBanque\", $obj->getDomBanque());\n }", "public function testSetVueDevisDroitReaffect() {\n\n $obj = new Collaborateurs();\n\n $obj->setVueDevisDroitReaffect(true);\n $this->assertEquals(true, $obj->getVueDevisDroitReaffect());\n }", "public function testSetVueDevisDroitValid() {\n\n $obj = new Collaborateurs();\n\n $obj->setVueDevisDroitValid(true);\n $this->assertEquals(true, $obj->getVueDevisDroitValid());\n }", "public function testSetDeptNaissance() {\n\n $obj = new Employes();\n\n $obj->setDeptNaissance(\"deptNaissance\");\n $this->assertEquals(\"deptNaissance\", $obj->getDeptNaissance());\n }", "public function testSetCompteDeTiers() {\n\n $obj = new Collaborateurs();\n\n $obj->setCompteDeTiers(\"compteDeTiers\");\n $this->assertEquals(\"compteDeTiers\", $obj->getCompteDeTiers());\n }", "public function testSetDtDebutEmploi() {\n\n // Set a Date/time mock.\n $dtDebutEmploi = new DateTime(\"2018-09-10\");\n\n $obj = new AttestationCacm();\n\n $obj->setDtDebutEmploi($dtDebutEmploi);\n $this->assertSame($dtDebutEmploi, $obj->getDtDebutEmploi());\n }" ]
[ "0.6429477", "0.6294888", "0.61768764", "0.6172999", "0.6159782", "0.6134775", "0.61336994", "0.61334383", "0.61174685", "0.61091113", "0.6100376", "0.6061139", "0.5994997", "0.5987511", "0.59829384", "0.59559", "0.5952942", "0.5942964", "0.5932328", "0.59262687", "0.59142727", "0.58967376", "0.5887407", "0.58768433", "0.58696175", "0.5861611", "0.5855859", "0.58489186", "0.58306676", "0.58256394" ]
0.8229088
0
Tests the setDestinatairesA() method.
public function testSetDestinatairesA() { $obj = new AppelsEnCours(); $obj->setDestinatairesA("destinatairesA"); $this->assertEquals("destinatairesA", $obj->getDestinatairesA()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testSetDestinatairesCc() {\n\n $obj = new AppelsEnCours();\n\n $obj->setDestinatairesCc(\"destinatairesCc\");\n $this->assertEquals(\"destinatairesCc\", $obj->getDestinatairesCc());\n }", "public function testSetDemandeAr() {\n\n $obj = new AppelsEnCours();\n\n $obj->setDemandeAr(true);\n $this->assertEquals(true, $obj->getDemandeAr());\n }", "public function testSetInterdireAccesArchivesCpta() {\n\n $obj = new Collaborateurs();\n\n $obj->setInterdireAccesArchivesCpta(true);\n $this->assertEquals(true, $obj->getInterdireAccesArchivesCpta());\n }", "public function testSetInterdireAccesArchivesPaie() {\n\n $obj = new Collaborateurs();\n\n $obj->setInterdireAccesArchivesPaie(true);\n $this->assertEquals(true, $obj->getInterdireAccesArchivesPaie());\n }", "public function testDirecteurValeurSalaire() {\n $directeurATester = new Directeur();\n\n $directeurATester->setSalaire($this->salaireTemoin);\n\n $this->assertEquals($this->salaireTemoin,$directeurATester->getSalaire());\n }", "public function testSetCodeCollaborateurDest() {\n\n $obj = new AppelsEnCours();\n\n $obj->setCodeCollaborateurDest(\"codeCollaborateurDest\");\n $this->assertEquals(\"codeCollaborateurDest\", $obj->getCodeCollaborateurDest());\n }", "public function modificarCarpetaDestino($carpeta_destino){\r\n\t\t$this->carpeta_destino=$carpeta_destino;\r\n\t}", "public function testSetCodeLiaisonDest() {\n\n $obj = new Collaborateurs();\n\n $obj->setCodeLiaisonDest(\"codeLiaisonDest\");\n $this->assertEquals(\"codeLiaisonDest\", $obj->getCodeLiaisonDest());\n }", "public function testSetMasquerFournisseurs() {\n\n $obj = new Collaborateurs();\n\n $obj->setMasquerFournisseurs(true);\n $this->assertEquals(true, $obj->getMasquerFournisseurs());\n }", "protected function tearDown(): void\n {\n $this->autorizacao = null;\n $this->transacao = null;\n $this->object = null;\n }", "public function testactualizarDia(){\n $tarjetaMedioUni = new TarjetaMedioUni;\n $tarjetaMedioUni->usarMedio();\n $tarjetaMedioUni->actualizarDia(10);\n $this->assertEquals($tarjetaMedioUni->obtenerDiaDeUso(), 10);\n $this->assertEquals($tarjetaMedioUni->obtenerUsoDeMedio(),0);\n }", "protected function tearDown()\n {\n // TODO Auto-generated AirportTest::tearDown()\n $this->airport = null;\n \n parent::tearDown();\n }", "function set_deputados() {\n\n\t\ttry {\n\n\t\t\t$dadosAbertosClient = new dadosAbertosClient;\n\n\t\t\t// legislatura de valor 18 foi definida pois eh o periodo onde estao os deputados vigentes no ano de 2017\n\t\t\t$listaDeputados = $dadosAbertosClient->listaDeputadosPorLegislatura(18);\n\n\t\t\tforeach ($listaDeputados as $deputado) {\n\n\t\t\t\t$deputado = Deputado::findByIdDeputado($deputado['id']);\t\n\n\t\t\t\tif($deputado)\n\t\t\t\t\tcontinue;\n\n\t\t\t\t$deputadoData = [\n\t\t\t\t\t'id_deputado' => $deputado->id,\n\t\t\t\t\t'nome' => $deputado->nome,\n\t\t\t\t\t'partido' => $deputado->partido,\n\t\t\t\t\t'tag_localizacao' => $deputado->tagLocalizacao\n\t\t\t\t];\n\n\t\t\t\tDeputado::create($deputadoData);\n\t\t\t}\n\n\t\t} catch (Exception $e) {\n\t\t\techo $e->getMessage();\n\t\t}\n\n\t}", "public function testSetAccesDossierCpta() {\n\n $obj = new Collaborateurs();\n\n $obj->setAccesDossierCpta(\"accesDossierCpta\");\n $this->assertEquals(\"accesDossierCpta\", $obj->getAccesDossierCpta());\n }", "public function testSetPasSaisieDesTemps() {\n\n $obj = new Collaborateurs();\n\n $obj->setPasSaisieDesTemps(true);\n $this->assertEquals(true, $obj->getPasSaisieDesTemps());\n }", "public function testVerificaPagtoAtrasadoUmDia() {\n \n $pagFatura = new PagamentoFatura();\n $pagFatura->dataVencimento = \"27/12/2010\";\n $pagFatura->dataPagamento = \"28/12/2010\";\n $pagFatura->SomarDatas();\n $pagFatura->StatusPagamento();\n \n $this->assertEquals(\"Pagto feito com atraso de 1 dia\", $pagFatura->status);\n \n }", "public function testValoresTransferidosPorContratoDeRateioUpaSantaRosa() {\n $filter = function (array $line): bool {\n if (str_starts_with($line['conta_contabil'], '8.5.3.1.0.01') && $line['escrituracao'] === 'S') {\n return true;\n }\n return false;\n };\n $saldoDevedorControle = $this->somaColuna($this->getDataFrame('BAL_VER'), 'saldo_atual_debito', $filter);\n $saldoCredorControle = $this->somaColuna($this->getDataFrame('BAL_VER'), 'saldo_atual_credito', $filter);\n\n $filter = function (array $line): bool {\n if (\n $line['projativ'] == 2063\n ) {\n return true;\n }\n return false;\n };\n $pago = $this->somaColuna($this->getDataFrame('BAL_DESP'), 'valor_pago', $filter);\n\n $this->comparar(\n ($saldoCredorControle - $saldoDevedorControle),\n $pago\n );\n\n $this->saldoVerificado(__METHOD__, '8.5.3.1.0.01');\n }", "public function testSetAnnulationDossierCpta() {\n\n $obj = new Collaborateurs();\n\n $obj->setAnnulationDossierCpta(true);\n $this->assertEquals(true, $obj->getAnnulationDossierCpta());\n }", "protected function tearDown()\n {\n $this->regular1 = null;\n $this->regular2 = null;\n $this->rental1 = null;\n $this->rental2 = null;\n }", "public function testSetControleSaisieTp() {\n\n $obj = new Collaborateurs();\n\n $obj->setControleSaisieTp(\"controleSaisieTp\");\n $this->assertEquals(\"controleSaisieTp\", $obj->getControleSaisieTp());\n }", "public function testSetPasSaisieDesTempsAuto() {\n\n $obj = new Collaborateurs();\n\n $obj->setPasSaisieDesTempsAuto(true);\n $this->assertEquals(true, $obj->getPasSaisieDesTempsAuto());\n }", "public function testSetInterdireAccesSuppDocArch() {\n\n $obj = new Collaborateurs();\n\n $obj->setInterdireAccesSuppDocArch(true);\n $this->assertEquals(true, $obj->getInterdireAccesSuppDocArch());\n }", "public function testSetEmailActiverAideSaisie() {\n\n $obj = new Collaborateurs();\n\n $obj->setEmailActiverAideSaisie(true);\n $this->assertEquals(true, $obj->getEmailActiverAideSaisie());\n }", "public function testSetEffectifDas() {\n\n $obj = new Employes();\n\n $obj->setEffectifDas(true);\n $this->assertEquals(true, $obj->getEffectifDas());\n }", "public static function validateDestinatarioForArrayConstraintsFromSetDestinatario(array $values = array())\n {\n $message = '';\n $invalidValues = [];\n foreach ($values as $destinatariosDestinatarioItem) {\n // validation for constraint: itemType\n if (!$destinatariosDestinatarioItem instanceof DATOSDESTINATARIOCNENVIOTYPE) {\n $invalidValues[] = is_object($destinatariosDestinatarioItem) ? get_class($destinatariosDestinatarioItem) : sprintf('%s(%s)', gettype($destinatariosDestinatarioItem), var_export($destinatariosDestinatarioItem, true));\n }\n }\n if (!empty($invalidValues)) {\n $message = sprintf('The Destinatario property can only contain items of type DATOSDESTINATARIOCNENVIOTYPE, %s given', is_object($invalidValues) ? get_class($invalidValues) : (is_array($invalidValues) ? implode(', ', $invalidValues) : gettype($invalidValues)));\n }\n unset($invalidValues);\n return $message;\n }", "public function testFisicaDetalhesAction()\n {\n $fisica = $this->buildFisica();\n $em = $this->serviceManager->get('Doctrine\\ORM\\EntityManager');\n $em->persist($fisica);\n $em->flush();\n\n // Dispara a acao\n $this->routeMatch->setParam('action', 'detalhes');\n $this->routeMatch->setParam('id', $fisica->getId());\n\n $result = $this->controller->dispatch(\n $this->request, $this->response\n );\n\n // Verifica a resposta\n $response = $this->controller->getResponse();\n $this->assertEquals(200, $response->getStatusCode());\n\n //\tTesta se um ViewModel foi retornado\n $this->assertInstanceOf('Zend\\View\\Model\\ViewModel', $result);\n\n\n //\tTesta os dados da View\n $variables = $result->getVariables();\n $this->assertArrayHasKey('data', $variables);\n\n //\tFaz a comparação dos dados\n $data = $variables[\"data\"];\n $this->assertEquals($fisica->getNome(), $data->getNome());\n\n }", "function setSorpresa($_caja){\r\n $this->sorpresa=$_caja;\r\n }", "protected function tearDown()\n {\n $this->cleanupReservations->execute();\n }", "public function testSetEstAcheteur() {\n\n $obj = new Collaborateurs();\n\n $obj->setEstAcheteur(10);\n $this->assertEquals(10, $obj->getEstAcheteur());\n }", "public function testSetTaxeSalaire() {\n\n $obj = new Employes();\n\n $obj->setTaxeSalaire(true);\n $this->assertEquals(true, $obj->getTaxeSalaire());\n }" ]
[ "0.67613196", "0.5835497", "0.57279766", "0.56903577", "0.5601056", "0.55196315", "0.5508661", "0.5433755", "0.53695667", "0.5341086", "0.5330395", "0.53098243", "0.52970123", "0.5191447", "0.514978", "0.5089185", "0.50865823", "0.5072616", "0.506882", "0.5065582", "0.50610656", "0.5060605", "0.50405425", "0.5035446", "0.50122803", "0.50066715", "0.50018024", "0.49892586", "0.49791154", "0.49682307" ]
0.80177146
0
Tests the setDestinatairesCc() method.
public function testSetDestinatairesCc() { $obj = new AppelsEnCours(); $obj->setDestinatairesCc("destinatairesCc"); $this->assertEquals("destinatairesCc", $obj->getDestinatairesCc()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function setCc() {}", "public function setCc($addresses);", "public function testSetCodeCollaborateurDest() {\n\n $obj = new AppelsEnCours();\n\n $obj->setCodeCollaborateurDest(\"codeCollaborateurDest\");\n $this->assertEquals(\"codeCollaborateurDest\", $obj->getCodeCollaborateurDest());\n }", "function set_cc($direcciones = array())\n\t{\n\t\t$this->cc = $direcciones;\n\t}", "public function testSetDestinatairesA() {\n\n $obj = new AppelsEnCours();\n\n $obj->setDestinatairesA(\"destinatairesA\");\n $this->assertEquals(\"destinatairesA\", $obj->getDestinatairesA());\n }", "public function getCcAddresses()\n {\n }", "public function getCc()\n {\n return $this->config['Destination']['CcAddresses'];\n }", "public function setCC()\n {\n }", "function promoteCcsIfNoRecipients() {\n\t\t$ccs = $this->getCcs();\n\t\t$recipients = $this->getRecipients();\n\t\tif (empty($recipients)) {\n\t\t\t$this->setRecipients($ccs);\n\t\t\t$this->setCcs(array());\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public function clearCCs()\n {\n }", "public function getCcAddresses()\n {\n return $this->cc;\n }", "public function clearCCs()\n {\n foreach ($this->cc as $cc) {\n unset($this->all_recipients[strtolower($cc[0])]);\n }\n $this->cc = array();\n $this->clearQueuedAddresses('cc');\n }", "public function testSetAccesDossierCpta() {\n\n $obj = new Collaborateurs();\n\n $obj->setAccesDossierCpta(\"accesDossierCpta\");\n $this->assertEquals(\"accesDossierCpta\", $obj->getAccesDossierCpta());\n }", "function clear_cc () {\n $this->sendcc = array();\n $this->all_emails = array();\n }", "public function getAllowedCcTypes()\n {\n return true;\n }", "public function setConexaoDestino($rsConexaoDestino) {\n $this->rsConexaoDestino = $rsConexaoDestino;\n }", "public function testSetCptAccompte() {\n\n $obj = new Employes();\n\n $obj->setCptAccompte(10);\n $this->assertEquals(10, $obj->getCptAccompte());\n }", "public function getCc(): iterable;", "public function testSetInterdireAccesArchivesCpta() {\n\n $obj = new Collaborateurs();\n\n $obj->setInterdireAccesArchivesCpta(true);\n $this->assertEquals(true, $obj->getInterdireAccesArchivesCpta());\n }", "function getCcString() {\n\t\treturn $this->getAddressArrayString($this->getCcs());\n\t}", "private function getCc(): ?array {\n\t\treturn $this->cc;\n\t}", "private function setCcData()\n {\n if($this->getCcs()){\n $ccArray = [];\n foreach($this->getCcs() as $cc){\n $ccArray[] = $this->setEmailNameString($cc['email'], $cc['name']);\n } \n\n return implode(',', $ccArray); \n }\n \n return '';\n }", "public function allowDeliveryAddress()\n {\n $this->_data['DireccionEnvio'] = 1;\n }", "public function testUnlinkCustomersFromCertificate()\n {\n }", "public function clearBCCs()\n {\n }", "public function getCc()\n {\n return $this->cc;\n }", "public function testSetCodeLiaisonDest() {\n\n $obj = new Collaborateurs();\n\n $obj->setCodeLiaisonDest(\"codeLiaisonDest\");\n $this->assertEquals(\"codeLiaisonDest\", $obj->getCodeLiaisonDest());\n }", "private function fn_suivi_cc()\n\t\t{\t\n\t\t\t\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\n\t\t\t$result=fn_suivi_cc();\n\t\t\t$this->response($this->json($result), 200);\n\t\t\t$this->response('',204);\t\n\t\t}", "public function carryover_cc()\n\t{\n\t\t//p($this->cc);\n\t\t$cc_array = $this->that->get_cc_array();\n\t\t$this->set_resend_cc($cc_array);\n\t\t$this->log_state('CC carryover: '. var_export($cc_array,TRUE));\n\n\t\treturn TRUE;\n\t}", "public function getCc()\n {\n return $this->getAddressListFromHeader('cc', '\\Zend\\Mail\\Header\\Cc');\n }" ]
[ "0.67921686", "0.6313289", "0.5949214", "0.59176886", "0.5705867", "0.5633922", "0.56259334", "0.546864", "0.54668707", "0.54649895", "0.52716774", "0.5237775", "0.5224683", "0.5224408", "0.51868486", "0.5185401", "0.517604", "0.51652104", "0.51238835", "0.5120573", "0.5112914", "0.5111868", "0.51039386", "0.50998896", "0.5081943", "0.5013915", "0.50070465", "0.497573", "0.49687573", "0.49656224" ]
0.79582185
0
Tests the setEmailAuteur() method.
public function testSetEmailAuteur() { $obj = new AppelsEnCours(); $obj->setEmailAuteur("emailAuteur"); $this->assertEquals("emailAuteur", $obj->getEmailAuteur()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testSetEmail() {\n\n $obj = new Collaborateurs();\n\n $obj->setEmail(\"email\");\n $this->assertEquals(\"email\", $obj->getEmail());\n }", "public function testSetEmailTete() {\n\n $obj = new Collaborateurs();\n\n $obj->setEmailTete(\"emailTete\");\n $this->assertEquals(\"emailTete\", $obj->getEmailTete());\n }", "public function testSetEmailSurServeur() {\n\n $obj = new Collaborateurs();\n\n $obj->setEmailSurServeur(true);\n $this->assertEquals(true, $obj->getEmailSurServeur());\n }", "public function testSetEmailObjetDefaut() {\n\n $obj = new Collaborateurs();\n\n $obj->setEmailObjetDefaut(\"emailObjetDefaut\");\n $this->assertEquals(\"emailObjetDefaut\", $obj->getEmailObjetDefaut());\n }", "public function testSetEmailActiverAideSaisie() {\n\n $obj = new Collaborateurs();\n\n $obj->setEmailActiverAideSaisie(true);\n $this->assertEquals(true, $obj->getEmailActiverAideSaisie());\n }", "public function setEmailAuteur($emailAuteur) {\n $this->emailAuteur = $emailAuteur;\n return $this;\n }", "public function testSetEmailRedirAuto() {\n\n $obj = new Collaborateurs();\n\n $obj->setEmailRedirAuto(true);\n $this->assertEquals(true, $obj->getEmailRedirAuto());\n }", "public function testSetEmailPied() {\n\n $obj = new Collaborateurs();\n\n $obj->setEmailPied(\"emailPied\");\n $this->assertEquals(\"emailPied\", $obj->getEmailPied());\n }", "public function testSetEmail()\n {\n $user = $this->getMockForAbstractClass('TB\\Bundle\\FrontendBundle\\Entity\\User');\n \n $this->assertEmpty('', $user->getUsername());\n $user->setEmail('e@mail');\n $this->assertEquals('e@mail', $user->getUsername());\n $this->assertEquals('e@mail', $user->getEmail());\n }", "public function getEmailAuteur() {\n return $this->emailAuteur;\n }", "public function testSetEmailReponseAutoText() {\n\n $obj = new Collaborateurs();\n\n $obj->setEmailReponseAutoText(\"emailReponseAutoText\");\n $this->assertEquals(\"emailReponseAutoText\", $obj->getEmailReponseAutoText());\n }", "public function testSetEmailReponseAuto() {\n\n $obj = new Collaborateurs();\n\n $obj->setEmailReponseAuto(true);\n $this->assertEquals(true, $obj->getEmailReponseAuto());\n }", "public function testSetEmailRedirection() {\n\n $obj = new Collaborateurs();\n\n $obj->setEmailRedirection(\"emailRedirection\");\n $this->assertEquals(\"emailRedirection\", $obj->getEmailRedirection());\n }", "public function testSetEtblMail() {\n\n $obj = new AttestationCacm();\n\n $obj->setEtblMail(\"etblMail\");\n $this->assertEquals(\"etblMail\", $obj->getEtblMail());\n }", "public function testSetEstAcheteur() {\n\n $obj = new Collaborateurs();\n\n $obj->setEstAcheteur(10);\n $this->assertEquals(10, $obj->getEstAcheteur());\n }", "public function testSetEmailAutoClotureImap() {\n\n $obj = new Collaborateurs();\n\n $obj->setEmailAutoClotureImap(true);\n $this->assertEquals(true, $obj->getEmailAutoClotureImap());\n }", "public function testSetEmailNbJAgMini() {\n\n $obj = new Collaborateurs();\n\n $obj->setEmailNbJAgMini(10);\n $this->assertEquals(10, $obj->getEmailNbJAgMini());\n }", "public function testSetEmailRedirAutoCollab() {\n\n $obj = new Collaborateurs();\n\n $obj->setEmailRedirAutoCollab(\"emailRedirAutoCollab\");\n $this->assertEquals(\"emailRedirAutoCollab\", $obj->getEmailRedirAutoCollab());\n }", "public function testCanSetAndGetEmail()\n {\n $mockEmailAddress = '[email protected]';\n\n $this->dataCenter->setEmailAddress($mockEmailAddress);\n\n $this->assertEquals($mockEmailAddress, $this->dataCenter->getEmailAddress());\n }", "public function testSetAdresseEmploye() {\n\n $obj = new AttestationCacm();\n\n $obj->setAdresseEmploye(\"adresseEmploye\");\n $this->assertEquals(\"adresseEmploye\", $obj->getAdresseEmploye());\n }", "public function setEmail($newEmail){\n\t}", "public function testSetEmailCanonical()\n {\n $user = $this->getMockForAbstractClass('TB\\Bundle\\FrontendBundle\\Entity\\User');\n \n $this->assertEmpty('', $user->getUsernameCanonical());\n $user->setEmailCanonical('e@mail');\n $this->assertEquals('e@mail', $user->getUsernameCanonical());\n $this->assertEquals('e@mail', $user->getEmailCanonical());\n }", "public function setEmail($email);", "public function setEmail($email);", "public function setEmail($email);", "public function testGetUserEmail()\n {\n $mail = $this->la->getMail('poa32kc');\n $this->assertEquals('[email protected]', $mail);\n }", "public function testSetEmailRrActive() {\n\n $obj = new Collaborateurs();\n\n $obj->setEmailRrActive(true);\n $this->assertEquals(true, $obj->getEmailRrActive());\n }", "public function testSetModifFournisseur() {\n\n $obj = new Collaborateurs();\n\n $obj->setModifFournisseur(\"modifFournisseur\");\n $this->assertEquals(\"modifFournisseur\", $obj->getModifFournisseur());\n }", "public function testSetQuePremiereAnnee() {\n\n $obj = new ChantiersFrequencesControlesQualite();\n\n $obj->setQuePremiereAnnee(true);\n $this->assertEquals(true, $obj->getQuePremiereAnnee());\n }", "public function setEmail($mail);" ]
[ "0.76789415", "0.76727587", "0.74662477", "0.74215424", "0.74066997", "0.7144477", "0.7078825", "0.7021076", "0.679373", "0.67490935", "0.67407465", "0.6668396", "0.662283", "0.66158116", "0.6592973", "0.6570338", "0.6465228", "0.6433608", "0.64280236", "0.640289", "0.6365309", "0.63612276", "0.6346393", "0.6346393", "0.6346393", "0.63223016", "0.630129", "0.62908286", "0.625214", "0.62438554" ]
0.8673019
0
Tests the setGroupeQualifiant() method.
public function testSetGroupeQualifiant() { $obj = new AppelsEnCours(); $obj->setGroupeQualifiant("groupeQualifiant"); $this->assertEquals("groupeQualifiant", $obj->getGroupeQualifiant()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getGroupeQualifiant() {\n return $this->groupeQualifiant;\n }", "public function setGroupeQualifiant($groupeQualifiant) {\n $this->groupeQualifiant = $groupeQualifiant;\n return $this;\n }", "public function testSetQualification() {\n\n $obj = new Employes();\n\n $obj->setQualification(\"qualification\");\n $this->assertEquals(\"qualification\", $obj->getQualification());\n }", "public function testSetTypeControle() {\n\n $obj = new ChantiersFrequencesControlesQualite();\n\n $obj->setTypeControle(\"typeControle\");\n $this->assertEquals(\"typeControle\", $obj->getTypeControle());\n }", "public function testSetQualification() {\n\n $obj = new PointBonTrav();\n\n $obj->setQualification(\"qualification\");\n $this->assertEquals(\"qualification\", $obj->getQualification());\n }", "public function testSetCodeGroupe() {\n\n $obj = new Collaborateurs();\n\n $obj->setCodeGroupe(\"codeGroupe\");\n $this->assertEquals(\"codeGroupe\", $obj->getCodeGroupe());\n }", "public function testSetIsGroupe() {\n\n $obj = new Collaborateurs();\n\n $obj->setIsGroupe(true);\n $this->assertEquals(true, $obj->getIsGroupe());\n }", "public function testSetQuePremiereAnnee() {\n\n $obj = new ChantiersFrequencesControlesQualite();\n\n $obj->setQuePremiereAnnee(true);\n $this->assertEquals(true, $obj->getQuePremiereAnnee());\n }", "public function testSetGetGenre()\n {\n $user = new Genre();\n $groupGenre = (new GroupGenre())->setGenre($user);\n $this->assertEquals($user, $groupGenre->getGenre());\n }", "public function testSetRequete4() {\n\n $obj = new ClientsSelAvance();\n\n $obj->setRequete4(\"requete4\");\n $this->assertEquals(\"requete4\", $obj->getRequete4());\n }", "public function testSetNiveauQualif() {\n\n $obj = new AttestationCacm();\n\n $obj->setNiveauQualif(\"niveauQualif\");\n $this->assertEquals(\"niveauQualif\", $obj->getNiveauQualif());\n }", "public function testSetSignQualite() {\n\n $obj = new AttestationCacm();\n\n $obj->setSignQualite(10);\n $this->assertEquals(10, $obj->getSignQualite());\n }", "public function testSetRequete7() {\n\n $obj = new ClientsSelAvance();\n\n $obj->setRequete7(\"requete7\");\n $this->assertEquals(\"requete7\", $obj->getRequete7());\n }", "public function testSetDroitSyncQProp() {\n\n $obj = new Collaborateurs();\n\n $obj->setDroitSyncQProp(true);\n $this->assertEquals(true, $obj->getDroitSyncQProp());\n }", "public function testSetVrpMulticarte() {\n\n $obj = new Employes();\n\n $obj->setVrpMulticarte(true);\n $this->assertEquals(true, $obj->getVrpMulticarte());\n }", "public function testSetRequete3() {\n\n $obj = new ClientsSelAvance();\n\n $obj->setRequete3(\"requete3\");\n $this->assertEquals(\"requete3\", $obj->getRequete3());\n }", "public function testSetJour() {\n\n $obj = new ChantiersFrequencesControlesQualite();\n\n $obj->setJour(\"jour\");\n $this->assertEquals(\"jour\", $obj->getJour());\n }", "public function testSetTachesGroupe() {\n\n $obj = new Collaborateurs();\n\n $obj->setTachesGroupe(\"tachesGroupe\");\n $this->assertEquals(\"tachesGroupe\", $obj->getTachesGroupe());\n }", "public function testSetRequete9() {\n\n $obj = new ClientsSelAvance();\n\n $obj->setRequete9(\"requete9\");\n $this->assertEquals(\"requete9\", $obj->getRequete9());\n }", "public function testSetBureauDistributeur() {\n\n $obj = new Collaborateurs();\n\n $obj->setBureauDistributeur(\"bureauDistributeur\");\n $this->assertEquals(\"bureauDistributeur\", $obj->getBureauDistributeur());\n }", "public function testSetSelectionFournisseur() {\n\n $obj = new Collaborateurs();\n\n $obj->setSelectionFournisseur(\"selectionFournisseur\");\n $this->assertEquals(\"selectionFournisseur\", $obj->getSelectionFournisseur());\n }", "public function testSetRequete11() {\n\n $obj = new ClientsSelAvance();\n\n $obj->setRequete11(\"requete11\");\n $this->assertEquals(\"requete11\", $obj->getRequete11());\n }", "public function testSetSelAvLstPersoAccesGestionnaire() {\n\n $obj = new Collaborateurs();\n\n $obj->setSelAvLstPersoAccesGestionnaire(true);\n $this->assertEquals(true, $obj->getSelAvLstPersoAccesGestionnaire());\n }", "public function testSetRequete1() {\n\n $obj = new ClientsSelAvance();\n\n $obj->setRequete1(\"requete1\");\n $this->assertEquals(\"requete1\", $obj->getRequete1());\n }", "public function testSetRegroupVirement() {\n\n $obj = new Employes();\n\n $obj->setRegroupVirement(\"regroupVirement\");\n $this->assertEquals(\"regroupVirement\", $obj->getRegroupVirement());\n }", "public function testSetRequete8() {\n\n $obj = new ClientsSelAvance();\n\n $obj->setRequete8(\"requete8\");\n $this->assertEquals(\"requete8\", $obj->getRequete8());\n }", "public function testSetRequete6() {\n\n $obj = new ClientsSelAvance();\n\n $obj->setRequete6(\"requete6\");\n $this->assertEquals(\"requete6\", $obj->getRequete6());\n }", "public function testSetCodeChantier() {\n\n $obj = new ChantiersFrequencesControlesQualite();\n\n $obj->setCodeChantier(\"codeChantier\");\n $this->assertEquals(\"codeChantier\", $obj->getCodeChantier());\n }", "public function testSetBureauDistributeur() {\n\n $obj = new Employes();\n\n $obj->setBureauDistributeur(\"bureauDistributeur\");\n $this->assertEquals(\"bureauDistributeur\", $obj->getBureauDistributeur());\n }", "public function testSetAllegParticulier() {\n\n $obj = new Employes();\n\n $obj->setAllegParticulier(true);\n $this->assertEquals(true, $obj->getAllegParticulier());\n }" ]
[ "0.6662312", "0.6521199", "0.6296679", "0.61602795", "0.6106632", "0.5992423", "0.593471", "0.5903223", "0.58812404", "0.5776289", "0.5762643", "0.57268214", "0.5651308", "0.56285626", "0.56275266", "0.56017596", "0.558869", "0.55459774", "0.55441445", "0.5543989", "0.5539507", "0.5511047", "0.5509298", "0.5494032", "0.5480212", "0.5473091", "0.5470089", "0.54585624", "0.5455858", "0.54052967" ]
0.8085849
0
Tests the setIdAppel() method.
public function testSetIdAppel() { $obj = new AppelsEnCours(); $obj->setIdAppel(10); $this->assertEquals(10, $obj->getIdAppel()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setId()\n\t{\n\t}", "public function testSetId()\n {\n $this->alignment->setId(25);\n $this->assertEquals(25, $this->alignment->getId());\n }", "public function setId($id) ;", "function setAmocrmIntegreationId(string $id): void {\n\t}", "public function setId($_id);", "public function testID() {\n $this->assertFalse($this->object->isset_id());\n\n $id = 'test';\n $this->object->set_id($id);\n $this->assertEquals($id, $this->object->get_id());\n $this->assertTrue($this->object->isset_id());\n }", "public function setId($x) { $this->id = $x; }", "function testIdGetter(){\n\t\t#mdx:idGetter\n\t\t$field = new MyField('email');\n\t\t$field->attrs(['id'=>'email_field']);\n\t\t#/mdx echo $field->id()\n\t\t$this->assertEquals('email_field',$field->id());\n\t}", "public function testSetId() {\n\n $obj = new iSessions();\n\n $obj->setId(10);\n $this->assertEquals(10, $obj->getId());\n }", "public function setId($id);", "public function setId($id);", "public function setId($id);", "public function setId($id);", "public function setId($id);", "public function setId($id);", "public function setId($id);", "public function setId($id);", "public function setId($id);", "public function setId($id);", "public function setId($id);", "public function setId($id);", "public function setId($id);", "public function setId(string $id);", "public function testGetId()\n {\n $this->assertEquals(2, $this->alignment->getId());\n }", "public function setId($id){ $this->id=$id;}", "public function setId($value){\n if($this->validateId($value)){\n $this->id=$value;\n return true;\n }else{\n return false;\n }\n }", "public function setId(string $id): void;", "public function canSetId();", "private function __validate_id() {\n if (isset($this->initial_data[\"id\"])) {\n # Check the Unbound ACLs array for ID\n if (array_key_exists($this->initial_data[\"id\"], $this->config[\"unbound\"][\"acls\"])) {\n $this->id = $this->initial_data[\"id\"];\n } else {\n $this->errors[] = APIResponse\\get(2074);\n }\n } else {\n $this->errors[] = APIResponse\\get(2072);\n }\n }", "public function setId($id): void;" ]
[ "0.69834805", "0.67509747", "0.6719003", "0.66901475", "0.66153806", "0.6581452", "0.6531209", "0.65034586", "0.64727557", "0.64569366", "0.64569366", "0.64569366", "0.64569366", "0.64569366", "0.64569366", "0.64569366", "0.64569366", "0.64569366", "0.64569366", "0.64569366", "0.64569366", "0.64569366", "0.6385971", "0.63443255", "0.63092923", "0.62922263", "0.6248177", "0.6245084", "0.6242471", "0.62332284" ]
0.82114303
0
Tests the setIntitule() method.
public function testSetIntitule() { $obj = new AppelsEnCours(); $obj->setIntitule("intitule"); $this->assertEquals("intitule", $obj->getIntitule()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testSetMatricule() {\n\n $obj = new Employes();\n\n $obj->setMatricule(\"matricule\");\n $this->assertEquals(\"matricule\", $obj->getMatricule());\n }", "public function testSetIndemnLegale() {\n\n $obj = new AttestationCacm();\n\n $obj->setIndemnLegale(true);\n $this->assertEquals(true, $obj->getIndemnLegale());\n }", "public function testSetTypeContrat() {\n\n $obj = new AttestationCacm();\n\n $obj->setTypeContrat(10);\n $this->assertEquals(10, $obj->getTypeContrat());\n }", "public function testSetRule()\n {\n /** @var \\Magento\\SalesRule\\Model\\Rule|\\PHPUnit_Framework_MockObject_MockObject $ruleMock */\n $ruleMock = $this->createPartialMock(\\Magento\\SalesRule\\Model\\Rule::class, ['getId', '__wakeup']);\n $ruleMock->expects($this->once())->method('getId');\n\n $this->assertEquals($this->couponModel, $this->couponModel->setRule($ruleMock));\n }", "public function testSetEtblEffectif() {\n\n $obj = new AttestationCacm();\n\n $obj->setEtblEffectif(10);\n $this->assertEquals(10, $obj->getEtblEffectif());\n }", "public function testSetIndiceAff() {\n\n $obj = new Materiels();\n\n $obj->setIndiceAff(10);\n $this->assertEquals(10, $obj->getIndiceAff());\n }", "public function testSetTypeContrat() {\n\n $obj = new Employes();\n\n $obj->setTypeContrat(\"typeContrat\");\n $this->assertEquals(\"typeContrat\", $obj->getTypeContrat());\n }", "function setIntestat($intestat)\n {\n $this->intestat = $intestat;\n }", "public function testSetTypeHoraire() {\n\n $obj = new AttestationCacm();\n\n $obj->setTypeHoraire(10);\n $this->assertEquals(10, $obj->getTypeHoraire());\n }", "public function testSetCode() {\n\n $obj = new TestIntegerCodeTrait();\n\n $obj->setCode(1);\n $this->assertEquals(1, $obj->getCode());\n }", "public function testSetCategSalarie() {\n\n $obj = new Employes();\n\n $obj->setCategSalarie(\"categSalarie\");\n $this->assertEquals(\"categSalarie\", $obj->getCategSalarie());\n }", "public function testSetEffectif() {\n\n $obj = new Employes();\n\n $obj->setEffectif(true);\n $this->assertEquals(true, $obj->getEffectif());\n }", "public function testSetType() {\n\n $obj = new ParamEtiquettes();\n\n $obj->setType(\"type\");\n $this->assertEquals(\"type\", $obj->getType());\n }", "public function testSetIndemnAutre() {\n\n $obj = new AttestationCacm();\n\n $obj->setIndemnAutre(true);\n $this->assertEquals(true, $obj->getIndemnAutre());\n }", "public function testSetType()\n {\n $this->todo('stub');\n }", "public function setInvalid();", "public function testInteger()\n {\n set_error_handler([$this->instance, 'handleError'], E_NOTICE);\n $int = $this->instance|0;\n restore_error_handler();\n\n self::assertTrue(\n is_int($int),\n 'Instance cannot be typecast to an integer'\n );\n }", "public function testSetMaxLengthPassesWithIntegerValue() {\r\n\t\t$this->assertTrue ( $this->testObject->setMaxLength ( 123 ) instanceof XeroPoint_Control_Abstract, 'invalid object returned' );\r\n\t}", "public function testGetSetSides()\n {\n $dice = new Dice(6);\n $dice->set_sides(5);\n \n $this->assertEquals($dice->get_sides(), 5);\n }", "public function testSetIndemnSupp() {\n\n $obj = new AttestationCacm();\n\n $obj->setIndemnSupp(true);\n $this->assertEquals(true, $obj->getIndemnSupp());\n }", "public function testSetPension() {\n\n $obj = new Employes();\n\n $obj->setPension(true);\n $this->assertEquals(true, $obj->getPension());\n }", "public function testSetNumeroInsee() {\n\n $obj = new Employes();\n\n $obj->setNumeroInsee(\"numeroInsee\");\n $this->assertEquals(\"numeroInsee\", $obj->getNumeroInsee());\n }", "public function testSetIndemnLic() {\n\n $obj = new AttestationCacm();\n\n $obj->setIndemnLic(true);\n $this->assertEquals(true, $obj->getIndemnLic());\n }", "public function testSetAutreStatut() {\n\n $obj = new AttestationCacm();\n\n $obj->setAutreStatut(\"autreStatut\");\n $this->assertEquals(\"autreStatut\", $obj->getAutreStatut());\n }", "public function testSetCodeIntervenant() {\n\n $obj = new Materiels();\n\n $obj->setCodeIntervenant(\"codeIntervenant\");\n $this->assertEquals(\"codeIntervenant\", $obj->getCodeIntervenant());\n }", "public function testSetCodeVehicule() {\n\n $obj = new Collaborateurs();\n\n $obj->setCodeVehicule(\"codeVehicule\");\n $this->assertEquals(\"codeVehicule\", $obj->getCodeVehicule());\n }", "abstract public function set();", "public function testSetAndRetrieveInteger(): void\n {\n $key = \"A test key\";\n $expected = 27;\n $this->testNotStrict->set($key, $expected);\n $actual = $this->testNotStrict->get($key);\n $this->assertEquals($expected, $actual);\n }", "public function testSetNumeroAttestation() {\n\n $obj = new AttestationCacm();\n\n $obj->setNumeroAttestation(\"numeroAttestation\");\n $this->assertEquals(\"numeroAttestation\", $obj->getNumeroAttestation());\n }", "public function setRules() {\n }" ]
[ "0.61584765", "0.59377265", "0.5907509", "0.5900523", "0.5836154", "0.5830875", "0.5761149", "0.5706922", "0.56871897", "0.5686666", "0.5682921", "0.56609154", "0.56487256", "0.5620633", "0.5607197", "0.5571806", "0.55453706", "0.553818", "0.55169207", "0.55051976", "0.54942214", "0.5483795", "0.5481753", "0.5474088", "0.5450053", "0.5444498", "0.5433559", "0.54322565", "0.5405925", "0.5403917" ]
0.76221037
0
Tests the setMessageLu() method.
public function testSetMessageLu() { $obj = new AppelsEnCours(); $obj->setMessageLu(true); $this->assertEquals(true, $obj->getMessageLu()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testSetSuiviMessages() {\n\n $obj = new Collaborateurs();\n\n $obj->setSuiviMessages(true);\n $this->assertEquals(true, $obj->getSuiviMessages());\n }", "public function testSetMessage()\n {\n $inputInvalid = 'abcdefghij';\n $this->assertFalse($this->_validator->isValid($inputInvalid));\n $messages = $this->_validator->getMessages();\n $this->assertEquals(\"'$inputInvalid' is more than 8 characters long\", current($messages));\n\n $this->_validator->setMessage(\n 'Your value is too long',\n Zend_Validate_StringLength::TOO_LONG\n );\n\n $this->assertFalse($this->_validator->isValid('abcdefghij'));\n $messages = $this->_validator->getMessages();\n $this->assertEquals('Your value is too long', current($messages));\n }", "public function set_message($message);", "public function testSetDateMessageLu() {\n\n // Set a Date/time mock.\n $dateMessageLu = new DateTime(\"2018-09-10\");\n\n $obj = new AppelsEnCours();\n\n $obj->setDateMessageLu($dateMessageLu);\n $this->assertSame($dateMessageLu, $obj->getDateMessageLu());\n }", "public function testSetTypeMessage() {\n\n $obj = new AppelsEnCours();\n\n $obj->setTypeMessage(\"typeMessage\");\n $this->assertEquals(\"typeMessage\", $obj->getTypeMessage());\n }", "public function setMessage( $message );", "public function testSetMsgRedirAuto() {\n\n $obj = new Collaborateurs();\n\n $obj->setMsgRedirAuto(true);\n $this->assertEquals(true, $obj->getMsgRedirAuto());\n }", "public function setMessage($message);", "public function setMessage($message);", "public function setMessage($message);", "public function testSetMessages()\n {\n $this->_validator->setMessages(\n [\n Zend_Validate_StringLength::TOO_LONG => 'Your value is too long',\n Zend_Validate_StringLength::TOO_SHORT => 'Your value is too short'\n ]\n );\n\n $this->assertFalse($this->_validator->isValid('abcdefghij'));\n $messages = $this->_validator->getMessages();\n $this->assertEquals('Your value is too long', current($messages));\n\n $this->assertFalse($this->_validator->isValid('abc'));\n $messages = $this->_validator->getMessages();\n $this->assertEquals('Your value is too short', current($messages));\n }", "public function set_alt_message($message);", "public function testSetMessageDefaultKey()\n {\n $this->_validator->setMessage(\n 'Your value is too short',\n Zend_Validate_StringLength::TOO_SHORT\n );\n\n $this->assertFalse($this->_validator->isValid('abc'));\n $messages = $this->_validator->getMessages();\n $this->assertEquals('Your value is too short', current($messages));\n $errors = $this->_validator->getErrors();\n $this->assertEquals(Zend_Validate_StringLength::TOO_SHORT, current($errors));\n }", "public function testSetCodeLangue() {\n\n $obj = new Collaborateurs();\n\n $obj->setCodeLangue(\"codeLangue\");\n $this->assertEquals(\"codeLangue\", $obj->getCodeLangue());\n }", "public function testSetMessagesConfidentiels() {\n\n $obj = new Collaborateurs();\n\n $obj->setMessagesConfidentiels(\"messagesConfidentiels\");\n $this->assertEquals(\"messagesConfidentiels\", $obj->getMessagesConfidentiels());\n }", "public function setMessage() {\n $numArgs = func_num_args();\n\n switch ($numArgs) {\n default:\n return false;\n break;\n\n // A global rule error message\n case 2:\n foreach ($this->post(null) as $key => $val) {\n $this->_errorPhraseOverrides[$key][func_get_arg(0)] = func_get_arg(1);\n }\n break;\n\n // Field specific rule error message\n case 3:\n $this->_errorPhraseOverrides[func_get_arg(1)][func_get_arg(0)] = func_get_arg(2);\n break;\n }\n\n return true;\n }", "public function setMessage($msg){ \n\t\t\t$this->message = $msg;\n\t\t}", "public function testSetMessageWithValueParam()\n {\n $this->_validator->setMessage(\n \"Your value '%value%' is too long\",\n Zend_Validate_StringLength::TOO_LONG\n );\n\n $inputInvalid = 'abcdefghij';\n $this->assertFalse($this->_validator->isValid($inputInvalid));\n $messages = $this->_validator->getMessages();\n $this->assertEquals(\"Your value '$inputInvalid' is too long\", current($messages));\n }", "private function setMessageToPlayer()\n {\n if ($this->isUserMode()) {\n $this->playerMessage = 'Du fick ' . $this->points . \" poäng. Vill du vara med i tävlingen, spara poängen med den gröna knappen!\";\n } else {\n $this->playerMessage = 'Du fick ' . $this->points . \" poäng!\";\n }\n }", "protected function _set_msg($msg) {\r\n $this->msg = $msg;\r\n }", "public function testSetMessageWithOtherParam()\n {\n $this->_validator->setMessage(\n 'Your value is too long, it should be no longer than %max%',\n Zend_Validate_StringLength::TOO_LONG\n );\n\n $inputInvalid = 'abcdefghij';\n $this->assertFalse($this->_validator->isValid($inputInvalid));\n $messages = $this->_validator->getMessages();\n $this->assertEquals('Your value is too long, it should be no longer than 8', current($messages));\n }", "private function _set_message($message)\n {\n // set message in $_message property\n $this->_message = $message;\n\n return;\n }", "public function test_updateMessage() {\n\n }", "public function testSetMessageWithUnknownParam()\n {\n $this->_validator->setMessage(\n 'Your value is too long, and btw, %shazam%!',\n Zend_Validate_StringLength::TOO_LONG\n );\n\n $inputInvalid = 'abcdefghij';\n $this->assertFalse($this->_validator->isValid($inputInvalid));\n $messages = $this->_validator->getMessages();\n $this->assertEquals('Your value is too long, and btw, %shazam%!', current($messages));\n }", "public function testGetDefaultMessageIfNoMatchingValueFoundInMessagesList()\n {\n $this->translator->load();\n $this->assertEquals('default_value', $this->translator->get('invalid_message_key', 'default_value'));\n }", "private function initMessageTests() {\r\n\t\tif ($this->getConfig ()->get ( \"run_selftest_message\" ) == \"YES\") {\r\n\t\t\t$stmsg = new SpleefTestMessages ( $this );\r\n\t\t\t$stmsg->runTests ();\r\n\t\t}\r\n\t}", "function setMessage($a_sMessage)\n {\n if (!is_null($this->_sMessage) && $this->_sMessage !== (string) $a_sMessage) {\n $this->_markModified();\n }\n $this->_sMessage = (string) $a_sMessage;\n }", "public function set_message($message)\n\t{\n\t\t$this->message = $message;\t\n\t}", "public function initMessage() {}", "public function testSetGetLocaleLanguageCodeViaSetterAndGetter()\n {\n $this->translator->setLocale('fo');\n $this->assertEquals('fo', $this->translator->getLocale());\n }" ]
[ "0.6113632", "0.5784787", "0.56682384", "0.55843866", "0.55360126", "0.5495807", "0.54100376", "0.5325049", "0.5325049", "0.5325049", "0.5323604", "0.5318052", "0.5262571", "0.52554864", "0.52109027", "0.5136884", "0.51324964", "0.51131517", "0.5106179", "0.5102471", "0.5093052", "0.503668", "0.5019835", "0.4986196", "0.4972649", "0.49618998", "0.49348786", "0.49322787", "0.4894677", "0.48902354" ]
0.8231482
0
Tests the setMiseEnSommDateHeure() method.
public function testSetMiseEnSommDateHeure() { // Set a Date/time mock. $miseEnSommDateHeure = new DateTime("2018-09-10"); $obj = new AppelsEnCours(); $obj->setMiseEnSommDateHeure($miseEnSommDateHeure); $this->assertSame($miseEnSommDateHeure, $obj->getMiseEnSommDateHeure()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testSetHeureFin() {\n\n // Set a Date/time mock.\n $heureFin = new DateTime(\"2018-09-10\");\n\n $obj = new FichesControlesEntetes();\n\n $obj->setHeureFin($heureFin);\n $this->assertSame($heureFin, $obj->getHeureFin());\n }", "public function testSetHeureFinMob() {\n\n // Set a Date/time mock.\n $heureFinMob = new DateTime(\"2018-09-10\");\n\n $obj = new PointBonTrav();\n\n $obj->setHeureFinMob($heureFinMob);\n $this->assertSame($heureFinMob, $obj->getHeureFinMob());\n }", "public function testSetHeureDebut() {\n\n // Set a Date/time mock.\n $heureDebut = new DateTime(\"2018-09-10\");\n\n $obj = new FichesControlesEntetes();\n\n $obj->setHeureDebut($heureDebut);\n $this->assertSame($heureDebut, $obj->getHeureDebut());\n }", "public function testSetHeuresNuit() {\n\n // Set a Date/time mock.\n $heuresNuit = new DateTime(\"2018-09-10\");\n\n $obj = new PointBonTrav();\n\n $obj->setHeuresNuit($heuresNuit);\n $this->assertSame($heuresNuit, $obj->getHeuresNuit());\n }", "public function testSetDateEmbauche() {\n\n // Set a Date/time mock.\n $dateEmbauche = new DateTime(\"2018-09-10\");\n\n $obj = new Employes();\n\n $obj->setDateEmbauche($dateEmbauche);\n $this->assertSame($dateEmbauche, $obj->getDateEmbauche());\n }", "public function testSetHeureDebMob() {\n\n // Set a Date/time mock.\n $heureDebMob = new DateTime(\"2018-09-10\");\n\n $obj = new PointBonTrav();\n\n $obj->setHeureDebMob($heureDebMob);\n $this->assertSame($heureDebMob, $obj->getHeureDebMob());\n }", "public function testSetHeuresJour() {\n\n // Set a Date/time mock.\n $heuresJour = new DateTime(\"2018-09-10\");\n\n $obj = new PointBonTrav();\n\n $obj->setHeuresJour($heuresJour);\n $this->assertSame($heuresJour, $obj->getHeuresJour());\n }", "public function testSetNbHeureMois() {\n\n $obj = new Employes();\n\n $obj->setNbHeureMois(10.092018);\n $this->assertEquals(10.092018, $obj->getNbHeureMois());\n }", "public function testSetHeureDeb() {\n\n // Set a Date/time mock.\n $heureDeb = new DateTime(\"2018-09-10\");\n\n $obj = new PointBonTrav();\n\n $obj->setHeureDeb($heureDeb);\n $this->assertSame($heureDeb, $obj->getHeureDeb());\n }", "public function testSetNbHeureSup() {\n\n $obj = new Employes();\n\n $obj->setNbHeureSup(10.092018);\n $this->assertEquals(10.092018, $obj->getNbHeureSup());\n }", "public function testSetDateVisiteMedicale() {\n\n // Set a Date/time mock.\n $dateVisiteMedicale = new DateTime(\"2018-09-10\");\n\n $obj = new Employes();\n\n $obj->setDateVisiteMedicale($dateVisiteMedicale);\n $this->assertSame($dateVisiteMedicale, $obj->getDateVisiteMedicale());\n }", "public function testSetMensualisation() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setMensualisation(10.092018);\n $this->assertEquals(10.092018, $obj->getMensualisation());\n }", "public function testSetNbHeureMens() {\n\n $obj = new AttestationCacm();\n\n $obj->setNbHeureMens(10.092018);\n $this->assertEquals(10.092018, $obj->getNbHeureMens());\n }", "public function setDateMiseEnLigne($dateMiseEnLigne) \n\t{\n\t\t\n $this ->dateMiseEnLigne = empty($dateMiseEnLigne) ? \"\" : $dateMiseEnLigne;\t\n\t}", "public function testSetMensualisationTache() {\n\n $obj = new Employes();\n\n $obj->setMensualisationTache(\"mensualisationTache\");\n $this->assertEquals(\"mensualisationTache\", $obj->getMensualisationTache());\n }", "public function testSetHs35Heures() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setHs35Heures(10.092018);\n $this->assertEquals(10.092018, $obj->getHs35Heures());\n }", "public function testSetDateEntree() {\n\n // Set a Date/time mock.\n $dateEntree = new DateTime(\"2018-09-10\");\n\n $obj = new AppelsEnCours();\n\n $obj->setDateEntree($dateEntree);\n $this->assertSame($dateEntree, $obj->getDateEntree());\n }", "public function testSetHeuresRrAcquises() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setHeuresRrAcquises(10.092018);\n $this->assertEquals(10.092018, $obj->getHeuresRrAcquises());\n }", "public function testSetDateVisiteReprise() {\n\n // Set a Date/time mock.\n $dateVisiteReprise = new DateTime(\"2018-09-10\");\n\n $obj = new Employes();\n\n $obj->setDateVisiteReprise($dateVisiteReprise);\n $this->assertSame($dateVisiteReprise, $obj->getDateVisiteReprise());\n }", "public function testSetTauxHSup() {\n\n $obj = new Employes();\n\n $obj->setTauxHSup(10.092018);\n $this->assertEquals(10.092018, $obj->getTauxHSup());\n }", "public function testSetAvecMiseEnSomm() {\n\n $obj = new AppelsEnCours();\n\n $obj->setAvecMiseEnSomm(true);\n $this->assertEquals(true, $obj->getAvecMiseEnSomm());\n }", "public function testSetYaEuSaisieManuelle() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setYaEuSaisieManuelle(true);\n $this->assertEquals(true, $obj->getYaEuSaisieManuelle());\n }", "public function testSetCarteSejourExpireLe() {\n\n // Set a Date/time mock.\n $carteSejourExpireLe = new DateTime(\"2018-09-10\");\n\n $obj = new Employes();\n\n $obj->setCarteSejourExpireLe($carteSejourExpireLe);\n $this->assertSame($carteSejourExpireLe, $obj->getCarteSejourExpireLe());\n }", "public function testSetDateEntree() {\n\n // Set a Date/time mock.\n $dateEntree = new DateTime(\"2018-09-10\");\n\n $obj = new Collaborateurs();\n\n $obj->setDateEntree($dateEntree);\n $this->assertSame($dateEntree, $obj->getDateEntree());\n }", "public function testSetHRempl() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setHRempl(10.092018);\n $this->assertEquals(10.092018, $obj->getHRempl());\n }", "public function testSetDateNaissance() {\n\n // Set a Date/time mock.\n $dateNaissance = new DateTime(\"2018-09-10\");\n\n $obj = new Employes();\n\n $obj->setDateNaissance($dateNaissance);\n $this->assertSame($dateNaissance, $obj->getDateNaissance());\n }", "public function setDMY($EUdate)\r\n\t{\r\n\t\t// Put day, month and year in an array\r\n $dateParts = preg_split('{[-/ :.]}', $EUdate);\r\n \r\n // Check the array for values\r\n // And the year has 4 digits\r\n if (!is_array($dateParts) || count($dateParts) != 3)\r\n {\r\n throw new Exception('setDMY() expects a date as DD/MM/YYYY');\r\n }\r\n elseif (strlen($dateParts[2]) != 4)\r\n {\r\n \tthrow new Exception('setDMY() expects a year in 4-digits format');\r\n }\r\n \r\n // Pass the values to setDate method\r\n $this->setDate($dateParts[2], $dateParts[1], $dateParts[0]);\r\n\t}", "public function testSetNbHeureSal() {\n\n $obj = new Employes();\n\n $obj->setNbHeureSal(10.092018);\n $this->assertEquals(10.092018, $obj->getNbHeureSal());\n }", "public function testSetSalaireMensuel() {\n\n $obj = new Collaborateurs();\n\n $obj->setSalaireMensuel(10.092018);\n $this->assertEquals(10.092018, $obj->getSalaireMensuel());\n }", "public function testSetHSurcroit() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setHSurcroit(10.092018);\n $this->assertEquals(10.092018, $obj->getHSurcroit());\n }" ]
[ "0.6752285", "0.6685873", "0.66420746", "0.6591327", "0.6562906", "0.65058947", "0.64872503", "0.6486552", "0.6381115", "0.6329243", "0.63146186", "0.6263133", "0.6202213", "0.6151547", "0.6139104", "0.6128144", "0.6109237", "0.6039857", "0.59972805", "0.5964402", "0.5957712", "0.5950954", "0.5939306", "0.5928615", "0.59220153", "0.5898284", "0.5880873", "0.5854585", "0.5850885", "0.5831513" ]
0.8429147
0
Tests the setNature() method.
public function testSetNature() { $obj = new AppelsEnCours(); $obj->setNature("nature"); $this->assertEquals("nature", $obj->getNature()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function setOfferNature ()\n {\n $this->offerNature = $this->offer->rate_nature->value;\n }", "public function hasNature() {\n return $this->_has(13);\n }", "public function testSetNiveauConfidentialiteQp() {\n\n $obj = new Collaborateurs();\n\n $obj->setNiveauConfidentialiteQp(\"niveauConfidentialiteQp\");\n $this->assertEquals(\"niveauConfidentialiteQp\", $obj->getNiveauConfidentialiteQp());\n }", "public function testSetTypeNationalite() {\n\n $obj = new Employes();\n\n $obj->setTypeNationalite(\"typeNationalite\");\n $this->assertEquals(\"typeNationalite\", $obj->getTypeNationalite());\n }", "public function testSetQualification() {\n\n $obj = new PointBonTrav();\n\n $obj->setQualification(\"qualification\");\n $this->assertEquals(\"qualification\", $obj->getQualification());\n }", "public function testSetNationalite() {\n\n $obj = new Employes();\n\n $obj->setNationalite(\"nationalite\");\n $this->assertEquals(\"nationalite\", $obj->getNationalite());\n }", "function __construct ($strNature)\n\t\t{\n\t\t\tparent::__construct ('Nature');\n\t\t\t\n\t\t\t$strName = 'Unknown';\n\t\t\t\n\t\t\tswitch ($strNature)\n\t\t\t{\n\t\t\t\tcase NATURE_CR:\n\t\t\t\t\t$strName = 'Credit';\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase NATURE_DR:\n\t\t\t\t\t$strName = 'Debit';\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\t$this->oblstrType\t\t= $this->Push (new dataString\t('Id',\t\t$strNature));\n\t\t\t$this->oblstrName\t\t= $this->Push (new dataString\t('Name',\t$strName));\n\t\t}", "public function testSetNiveauConfidentialite() {\n\n $obj = new Employes();\n\n $obj->setNiveauConfidentialite(\"niveauConfidentialite\");\n $this->assertEquals(\"niveauConfidentialite\", $obj->getNiveauConfidentialite());\n }", "public function testSetType()\n {\n $this->todo('stub');\n }", "public function testSetSpecial() {\n\n $obj = new AppelsEnCours();\n\n $obj->setSpecial(\"special\");\n $this->assertEquals(\"special\", $obj->getSpecial());\n }", "public function testSetValues()\n {\n $this->todo('stub');\n }", "public function testSetLibelle() {\n\n $obj = new ClientsSelAvance();\n\n $obj->setLibelle(\"libelle\");\n $this->assertEquals(\"libelle\", $obj->getLibelle());\n }", "public function testSetSatisfactionGenerale() {\n\n $obj = new FichesControlesEntetes();\n\n $obj->setSatisfactionGenerale(\"satisfactionGenerale\");\n $this->assertEquals(\"satisfactionGenerale\", $obj->getSatisfactionGenerale());\n }", "public function testSetMensualisation() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setMensualisation(10.092018);\n $this->assertEquals(10.092018, $obj->getMensualisation());\n }", "public function testSetPurchaseCountry()\n {\n $configuration = new Configuration();\n $purchaseCountry = 'IT';\n $configuration->setPurchaseCountry($purchaseCountry);\n $this->assertSame($purchaseCountry, $configuration->getPurchaseCountry());\n\n $configuration = new Configuration();\n $purchaseCountry = 'it';\n $configuration->setPurchaseCountry($purchaseCountry);\n $this->assertSame(strtoupper($purchaseCountry), $configuration->getPurchaseCountry());\n\n $configuration = new Configuration();\n $purchaseCountry = 'en';\n $configuration->setPurchaseCountry($purchaseCountry);\n $this->assertNull($configuration->getPurchaseCountry());\n\n $configuration = new Configuration();\n $purchaseCountry = '';\n $configuration->setPurchaseCountry($purchaseCountry);\n $this->assertNull($configuration->getPurchaseCountry());\n\n $configuration = new Configuration();\n $purchaseCountry = null;\n $configuration->setPurchaseCountry($purchaseCountry);\n $this->assertNull($configuration->getPurchaseCountry());\n }", "public function testSetLibelle() {\n\n $obj = new Materiels();\n\n $obj->setLibelle(\"libelle\");\n $this->assertEquals(\"libelle\", $obj->getLibelle());\n }", "public function testSetGroupeQualifiant() {\n\n $obj = new AppelsEnCours();\n\n $obj->setGroupeQualifiant(\"groupeQualifiant\");\n $this->assertEquals(\"groupeQualifiant\", $obj->getGroupeQualifiant());\n }", "public function testSetValue()\n {\n $this->todo('stub');\n }", "function testFieldTypeTaxonomyselectWhereTaxonomyIsNotSetExpectsError() {\n\t\t// arrange\n\t\tglobal $post;\n\t\t$TestValidTextField = new TestValidTextField();\n\t\t$TestValidTextField->fields['field']['taxonomy'] = null;\n\t\t$TestValidTextField->fields['field']['type'] = 'taxonomyselect';\n\t\t\\WP_Mock::wpFunction( 'wp_die', array( 'times' => 1 ) );\n\t\t$validated = array();\n\t\t$saved = array();\n\n\t\t// act\n\t\t$TestValidTextField->validate( $post->ID, $TestValidTextField->fields['field'], $validated, $saved );\n\n\t\t// assert\n\t\t// Passes when error is called\n\t}", "public function testSetNomNaissance() {\n\n $obj = new Employes();\n\n $obj->setNomNaissance(\"nomNaissance\");\n $this->assertEquals(\"nomNaissance\", $obj->getNomNaissance());\n }", "abstract public function setMetas();", "public function testSetLibelle() {\n\n $obj = new ParamEtiquettes();\n\n $obj->setLibelle(\"libelle\");\n $this->assertEquals(\"libelle\", $obj->getLibelle());\n }", "public function testUsageFlag(){\n $test_car = CarFactory::create('Audi', 24, 10000, 700, 2013, 42);\n $test_car->setUsageFlag();\n $this->assertEquals($test_car->usage_flag, 'NEW');\n }", "public function testGetSet()\n {\n $term = new LP21Term('type', 'uuid');\n $term\n ->setUrl('url')\n ->setCode('code')\n ->setCantons(['BE'])\n ->setVersion('version')\n ->setCycles([1]);\n\n $this->assertEquals('url', $term->getUrl(), \"The getter/setter works for URLs.\");\n $this->assertEquals('code', $term->getCode(), \"The getter/setter works for codes.\");\n $this->assertEquals(['BE'], $term->getCantons(), \"The getter/setter works for cantons.\");\n $this->assertEquals('version', $term->getVersion(), \"The getter/setter works for versions.\");\n $this->assertEquals([1], $term->getCycles(), \"The getter/setter works for cycles.\");\n }", "public function testSetMois() {\n\n $obj = new ChantiersFrequencesControlesQualite();\n\n $obj->setMois(\"mois\");\n $this->assertEquals(\"mois\", $obj->getMois());\n }", "protected function initializeBenefit ()\n {\n if ( !isset($this->request->coupon_benefits[ $this->offerNature ]) )\n $this->request->coupon_benefits[ $this->offerNature ] = 0;\n }", "public function testSetNbHeureSup() {\n\n $obj = new Employes();\n\n $obj->setNbHeureSup(10.092018);\n $this->assertEquals(10.092018, $obj->getNbHeureSup());\n }", "public function testSetNomReq3() {\n\n $obj = new ClientsSelAvance();\n\n $obj->setNomReq3(\"nomReq3\");\n $this->assertEquals(\"nomReq3\", $obj->getNomReq3());\n }", "function testFieldMetakeySlugTaxonomyIsNotSetExpectsError() {\n\t\t// arrange\n\t\tglobal $post;\n\t\t$TestValidTextField = new TestValidTextField();\n\t\t$TestValidTextField->fields['field']['key'] = null;\n\t\t$TestValidTextField->fields['field']['key'] = null;\n\t\t$TestValidTextField->fields['field']['taxonomy'] = null;\n\t\t\\WP_Mock::wpFunction( 'wp_die', array( 'times' => 1 ) );\n\n\t\t// act\n\t\t$TestValidTextField->validate_keys( $TestValidTextField->fields['field'] );\n\n\t\t// assert\n\t\t// Passes when error is called\n\t}", "public function testSetBureauDistributeur() {\n\n $obj = new Collaborateurs();\n\n $obj->setBureauDistributeur(\"bureauDistributeur\");\n $this->assertEquals(\"bureauDistributeur\", $obj->getBureauDistributeur());\n }" ]
[ "0.6876614", "0.59056675", "0.5881819", "0.5876415", "0.5764116", "0.5736775", "0.57172036", "0.56988066", "0.56866527", "0.5660783", "0.56321627", "0.56088305", "0.5592019", "0.5587985", "0.55736065", "0.5570042", "0.5553849", "0.5520968", "0.5514924", "0.5499405", "0.54818326", "0.5464934", "0.544181", "0.54200846", "0.54103774", "0.53962135", "0.5391604", "0.5386347", "0.5381674", "0.5380781" ]
0.8111339
0
Tests the setNbAppelsEnCours() method.
public function testSetNbAppelsEnCours() { $obj = new AppelsEnCours(); $obj->setNbAppelsEnCours(10); $this->assertEquals(10, $obj->getNbAppelsEnCours()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testSetJoursRttAcquis() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setJoursRttAcquis(10.092018);\n $this->assertEquals(10.092018, $obj->getJoursRttAcquis());\n }", "public function testSetNbPaniers() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setNbPaniers(10.092018);\n $this->assertEquals(10.092018, $obj->getNbPaniers());\n }", "public function testSetNumVoie() {\n\n $obj = new Collaborateurs();\n\n $obj->setNumVoie(\"numVoie\");\n $this->assertEquals(\"numVoie\", $obj->getNumVoie());\n }", "public function testSetTypeVisuAppels() {\n\n $obj = new Collaborateurs();\n\n $obj->setTypeVisuAppels(\"typeVisuAppels\");\n $this->assertEquals(\"typeVisuAppels\", $obj->getTypeVisuAppels());\n }", "public function testVerificaPagtoAtrasadoCincoDias() {\n \n $pagFatura = new PagamentoFatura();\n $pagFatura->dataVencimento = \"25/11/2010\";\n $pagFatura->dataPagamento = \"30/11/2010\";\n $pagFatura->SomarDatas();\n $pagFatura->StatusPagamento();\n \n $this->assertEquals(\"Pagto feito com atraso de 5 dias\", $pagFatura->status);\n \n }", "function faireCours ()\n {\n // ECHAUFFEMENT\n echo \"(echauffez-vous d'abord)\";\n\n parent::faireCours();\n\n // RANGER LES SKIS\n echo \"(e)tirez-vous...\";\n }", "public function testSetDestinatairesCc() {\n\n $obj = new AppelsEnCours();\n\n $obj->setDestinatairesCc(\"destinatairesCc\");\n $this->assertEquals(\"destinatairesCc\", $obj->getDestinatairesCc());\n }", "public function testSetConfidentiel() {\n\n $obj = new AppelsEnCours();\n\n $obj->setConfidentiel(true);\n $this->assertEquals(true, $obj->getConfidentiel());\n }", "public function testSetAccesGestionaireStatsCroisees() {\n\n $obj = new Collaborateurs();\n\n $obj->setAccesGestionaireStatsCroisees(true);\n $this->assertEquals(true, $obj->getAccesGestionaireStatsCroisees());\n }", "public function testAbreLivroDepoisQueEleEFechado()\n {\n $this->livro->abreLivro();\n $this->livro->viraPagina();\n $this->livro->fechaLivro();\n\n $this->livro->abreLivro();\n\n $this->assertEquals(1, $this->livro->getPaginaAtual());\n }", "public function testSetLimiterVisuAgenda() {\n\n $obj = new Collaborateurs();\n\n $obj->setLimiterVisuAgenda(true);\n $this->assertEquals(true, $obj->getLimiterVisuAgenda());\n }", "public function testSetNiveau() {\n\n $obj = new Collaborateurs();\n\n $obj->setNiveau(10);\n $this->assertEquals(10, $obj->getNiveau());\n }", "public function testSetHeuresRcAcquises() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setHeuresRcAcquises(10.092018);\n $this->assertEquals(10.092018, $obj->getHeuresRcAcquises());\n }", "public function testSetCleCcnPaie() {\n\n $obj = new Collaborateurs();\n\n $obj->setCleCcnPaie(\"cleCcnPaie\");\n $this->assertEquals(\"cleCcnPaie\", $obj->getCleCcnPaie());\n }", "public function testSetNbJourBaseCp() {\n\n $obj = new Employes();\n\n $obj->setNbJourBaseCp(10.092018);\n $this->assertEquals(10.092018, $obj->getNbJourBaseCp());\n }", "public function testSetNbHeureMens() {\n\n $obj = new AttestationCacm();\n\n $obj->setNbHeureMens(10.092018);\n $this->assertEquals(10.092018, $obj->getNbHeureMens());\n }", "public function testSetNumeroCasPartSecu() {\n\n $obj = new Employes();\n\n $obj->setNumeroCasPartSecu(10);\n $this->assertEquals(10, $obj->getNumeroCasPartSecu());\n }", "public function testSetCompteurTemps() {\n\n $obj = new AppelsEnCours();\n\n $obj->setCompteurTemps(10);\n $this->assertEquals(10, $obj->getCompteurTemps());\n }", "public function testSetNumeroAttestation() {\n\n $obj = new AttestationCacm();\n\n $obj->setNumeroAttestation(\"numeroAttestation\");\n $this->assertEquals(\"numeroAttestation\", $obj->getNumeroAttestation());\n }", "public function testSetCumCpPris() {\n\n $obj = new Employes();\n\n $obj->setCumCpPris(10.092018);\n $this->assertEquals(10.092018, $obj->getCumCpPris());\n }", "public function testSetCumJourTrav() {\n\n $obj = new Employes();\n\n $obj->setCumJourTrav(10.092018);\n $this->assertEquals(10.092018, $obj->getCumJourTrav());\n }", "public function testSetPourcentAbat() {\n\n $obj = new Employes();\n\n $obj->setPourcentAbat(10.092018);\n $this->assertEquals(10.092018, $obj->getPourcentAbat());\n }", "public function testSetCptAccompte() {\n\n $obj = new Employes();\n\n $obj->setCptAccompte(10);\n $this->assertEquals(10, $obj->getCptAccompte());\n }", "public function appartenance_cours_groupeCours($idCours, $idGroupeCours) {\n\t\t\ttry {\n\t\t\t\t$pdoOptions[PDO::ATTR_ERRMODE] = PDO::ERRMODE_EXCEPTION;\n\t\t\t\t$bdd = new PDO('mysql:host='.DB_HOST.';dbname='.DB_NAME, DB_LOGIN, DB_PASSWORD, $pdoOptions);\n\t\t\t\t$bdd->query(\"SET NAMES utf8\");\n\t\t\t\t$req = $bdd->prepare(\"SELECT COUNT(*) AS nb FROM \".Appartient_Cours_GroupeCours::$nomTable.\" WHERE idCours=? AND idGroupeCours=?\");\n\t\t\t\t$req->execute(\n\t\t\t\t\tarray(\n\t\t\t\t\t\t$idCours,\n\t\t\t\t\t\t$idGroupeCours\n\t\t\t\t\t)\n\t\t\t\t);\n\t\t\t\t$ligne = $req->fetch();\n\t\t\t\t\n\t\t\t\t$appartenance = $ligne[\"nb\"];\n\t\t\t\t$req->closeCursor();\n\t\t\t\t\n\t\t\t\treturn $appartenance;\n\t\t\t}\n\t\t\tcatch (Exception $e) {\n\t\t\t\techo \"Erreur : \".$e->getMessage().\"<br />\";\n\t\t\t}\n\t\t}", "public function testSetAnnulationDossierCpta() {\n\n $obj = new Collaborateurs();\n\n $obj->setAnnulationDossierCpta(true);\n $this->assertEquals(true, $obj->getAnnulationDossierCpta());\n }", "public function test__construct() {\n\n $obj = new AppelsEnCours();\n\n $this->assertNull($obj->getAvecMiseEnSomm());\n $this->assertNull($obj->getCodeClient());\n $this->assertNull($obj->getCodeCollaborateurDest());\n $this->assertNull($obj->getCodeCollaborateurEntrant());\n $this->assertNull($obj->getCodeCollaborateurRedir());\n $this->assertNull($obj->getCodeProduit());\n $this->assertNull($obj->getCompteurTemps());\n $this->assertNull($obj->getConfidentiel());\n $this->assertNull($obj->getConsequence());\n $this->assertNull($obj->getDateCreationClient());\n $this->assertNull($obj->getDateEntree());\n $this->assertNull($obj->getDateMessageLu());\n $this->assertNull($obj->getDateRedir());\n $this->assertNull($obj->getDemandeAr());\n $this->assertNull($obj->getDestinatairesA());\n $this->assertNull($obj->getDestinatairesCc());\n $this->assertNull($obj->getEmailAuteur());\n $this->assertNull($obj->getGroupeQualifiant());\n $this->assertNull($obj->getIdAppel());\n $this->assertNull($obj->getIntitule());\n $this->assertNull($obj->getMessageLu());\n $this->assertNull($obj->getMiseEnSommDateHeure());\n $this->assertNull($obj->getNature());\n $this->assertNull($obj->getNbAppelsEnCours());\n $this->assertNull($obj->getNomClient());\n $this->assertNull($obj->getOrigine());\n $this->assertNull($obj->getPieceJointe());\n $this->assertNull($obj->getReponse());\n $this->assertNull($obj->getSousRepRefGuid());\n $this->assertNull($obj->getSpecial());\n $this->assertNull($obj->getTel());\n $this->assertNull($obj->getTypeMessage());\n $this->assertNull($obj->getUniqId());\n $this->assertNull($obj->getUrgent());\n }", "public function testSetCumPlaf1Caisse1() {\n\n $obj = new Employes();\n\n $obj->setCumPlaf1Caisse1(10.092018);\n $this->assertEquals(10.092018, $obj->getCumPlaf1Caisse1());\n }", "public function testSetInterdireAccesArchivesCpta() {\n\n $obj = new Collaborateurs();\n\n $obj->setInterdireAccesArchivesCpta(true);\n $this->assertEquals(true, $obj->getInterdireAccesArchivesCpta());\n }", "public function testSetCumPlaf1Caisse3() {\n\n $obj = new Employes();\n\n $obj->setCumPlaf1Caisse3(10.092018);\n $this->assertEquals(10.092018, $obj->getCumPlaf1Caisse3());\n }", "public function testOneDiscipline25Courses()\n {\n $result = false;\n $student = new StudentProfile();\n for($i = 0; $i < 25; ++$i)\n {\n $course = new Course();\n $course->set(\"department\",\"MATH\");\n $course->set(\"courseNumber\",$i);\n $student->set(\"courses\",$course);\n }\n $status = check24Discipline($student);\n if(count($status[\"reason\"]) == 25 && $status[\"result\"] == false)\n $result = true;\n $this->assertEquals(true, $result);\n }" ]
[ "0.594525", "0.5838081", "0.58287424", "0.5727683", "0.5719434", "0.5705013", "0.5689911", "0.5689152", "0.5613624", "0.56078166", "0.558375", "0.55640453", "0.55372", "0.5512517", "0.55095804", "0.5504416", "0.5476943", "0.5473393", "0.5463242", "0.54549575", "0.5450724", "0.5444553", "0.5407163", "0.53930634", "0.5387514", "0.5386722", "0.53742075", "0.5368271", "0.5331718", "0.5325557" ]
0.8103522
0
Tests the setNomClient() method.
public function testSetNomClient() { $obj = new AppelsEnCours(); $obj->setNomClient("nomClient"); $this->assertEquals("nomClient", $obj->getNomClient()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testSetCodeClient() {\n\n $obj = new Materiels();\n\n $obj->setCodeClient(\"codeClient\");\n $this->assertEquals(\"codeClient\", $obj->getCodeClient());\n }", "public function testSetModifClient() {\n\n $obj = new Collaborateurs();\n\n $obj->setModifClient(\"modifClient\");\n $this->assertEquals(\"modifClient\", $obj->getModifClient());\n }", "public function testSetClient()\n {\n $change = new Change($this->p4);\n $change->setDescription('test')->save();\n $oldClient = $change->getClient();\n\n $this->p4->getService('clients')->grab();\n $change->setClient($this->p4->getClient());\n $change->save();\n $this->p4->getService('clients')->release();\n\n $this->assertFalse(\n $oldClient == Change::fetch($change->getId(), $this->p4)->getClient(),\n 'expected client change to have saved.'\n );\n }", "public function testSetCodeClient() {\n\n $obj = new FichesControlesEntetes();\n\n $obj->setCodeClient(\"codeClient\");\n $this->assertEquals(\"codeClient\", $obj->getCodeClient());\n }", "public function testSetCodeClient() {\n\n $obj = new ChantiersFrequencesControlesQualite();\n\n $obj->setCodeClient(\"codeClient\");\n $this->assertEquals(\"codeClient\", $obj->getCodeClient());\n }", "public function testSetCodeClient() {\n\n $obj = new AppelsEnCours();\n\n $obj->setCodeClient(\"codeClient\");\n $this->assertEquals(\"codeClient\", $obj->getCodeClient());\n }", "public function testGetSetClient()\n {\n $mockClient = new MockClient();\n $transport = new Transport();\n $refTransport = new \\ReflectionObject($transport);\n $clientProperty = $refTransport->getProperty('client');\n $clientProperty->setAccessible(true);\n $clientProperty->setValue($transport, $mockClient);\n $this->assertSame($mockClient, $transport->getClient());\n }", "public function testSetAnnulationClient() {\n\n $obj = new Collaborateurs();\n\n $obj->setAnnulationClient(true);\n $this->assertEquals(true, $obj->getAnnulationClient());\n }", "public function testSetSelectionClient() {\n\n $obj = new Collaborateurs();\n\n $obj->setSelectionClient(\"selectionClient\");\n $this->assertEquals(\"selectionClient\", $obj->getSelectionClient());\n }", "public function testSetCreationClient() {\n\n $obj = new Collaborateurs();\n\n $obj->setCreationClient(true);\n $this->assertEquals(true, $obj->getCreationClient());\n }", "public function testSettingClient()\n {\n $mockClient = new MockClient();\n $transport = new Transport();\n $returnObject = $transport->setClient($mockClient);\n $this->assertInstanceOf(Transport::class, $returnObject);\n \n $refTransport = new \\ReflectionObject($transport);\n $clientProperty = $refTransport->getProperty('client');\n $clientProperty->setAccessible(true);\n $this->assertSame($mockClient, $clientProperty->getValue($transport));\n }", "protected function setUp()\n {\n $this->object = new Client;\n }", "public function client_setter_and_getter()\n {\n // Arrange\n $service = new Service;\n $client = new Client;\n\n // Act\n $returned = $service->setClient($client)->getClient();\n\n // Assert\n $this->assertEquals($client, $returned);\n }", "public function setNomClient($nomClient) {\n $this->nomClient = $nomClient;\n return $this;\n }", "abstract public function initClient();", "public function testSetNom() {\n\n $obj = new Collaborateurs();\n\n $obj->setNom(\"nom\");\n $this->assertEquals(\"nom\", $obj->getNom());\n }", "public function setNom_client(string $nom_client)\n {\n $this->nom_client = $nom_client;\n\n return $this;\n }", "public static function setUpBeforeClass()\n {\n self::$_client = static::createClient();\n }", "public function testSetNomReq1() {\n\n $obj = new ClientsSelAvance();\n\n $obj->setNomReq1(\"nomReq1\");\n $this->assertEquals(\"nomReq1\", $obj->getNomReq1());\n }", "protected function setUp(): void\n {\n if (!isset($_SERVER['URL_ODATA_1C'])) {\n $this->markTestSkipped(\n 'You should define ODATA_URL_1C in phpunit.xml to pass this test'\n );\n }\n if (isset($_SERVER['LOGIN']) && isset($_SERVER['PASSWORD'])) {\n $auth = [\n $_SERVER['LOGIN'],\n $_SERVER['PASSWORD'],\n ];\n }\n\n $this->object = new Client($_SERVER['URL_ODATA_1C'], array_filter([\n 'auth' => $auth,\n 'timeout' => 300,\n ]));\n }", "public function testSetNomReq4() {\n\n $obj = new ClientsSelAvance();\n\n $obj->setNomReq4(\"nomReq4\");\n $this->assertEquals(\"nomReq4\", $obj->getNomReq4());\n }", "public function setClient($client);", "public function testSetNomReq3() {\n\n $obj = new ClientsSelAvance();\n\n $obj->setNomReq3(\"nomReq3\");\n $this->assertEquals(\"nomReq3\", $obj->getNomReq3());\n }", "private function setClient(Client $client)\n {\n $this->minionClient = $client;\n }", "public function testSetNomReq11() {\n\n $obj = new ClientsSelAvance();\n\n $obj->setNomReq11(\"nomReq11\");\n $this->assertEquals(\"nomReq11\", $obj->getNomReq11());\n }", "public function setClient(ClientInterface $client)\n {\n $this->neo = $client;\n }", "public function setUp()\n {\n $this->client = new Client(['base_uri' => 'http://127.0.0.1:8000/']);\n }", "public function testClient()\n {\n $app = new \\Duality\\App(dirname(__FILE__), null);\n $client = $app->call('client');\n\n $expected = 'dummy';\n $client->setUserAgent($expected);\n $result = $client->getUserAgent();\n $this->assertEquals($expected, $result);\n\n $url = new Url('http://google.pt/');\n $request = $client->createRequest($url);\n $response = $client->execute($request);\n $this->assertInstanceOf('\\Duality\\Structure\\Http\\Response', $response);\n\n $expected = 'Moved Permanently';\n $result = $response->getCodeString();\n $this->assertEquals($expected, $result);\n\n $url = new Url('http://google.pt/');\n $request = $client->createRequest($url);\n $request->addHeader('Accept', 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8');\n $response = $client->execute($request);\n $client->getCurlHandler();\n\n $client->terminate();\n }", "public function setUp(){\n $this->client = static::createClient();\n }", "protected function setUp()\n {\n $this->object = new Client( $GLOBALS['api_key'] );\n }" ]
[ "0.7168433", "0.7159496", "0.7046605", "0.6993658", "0.69169635", "0.68913656", "0.6631402", "0.66054475", "0.65886706", "0.64913595", "0.647554", "0.6437708", "0.64108545", "0.6283596", "0.62797695", "0.6276388", "0.6213732", "0.6202289", "0.61953074", "0.61948633", "0.61213434", "0.611449", "0.6112083", "0.61037767", "0.6087379", "0.60429907", "0.6042016", "0.60419446", "0.6041561", "0.60232943" ]
0.8192547
0
Tests the setOrigine() method.
public function testSetOrigine() { $obj = new AppelsEnCours(); $obj->setOrigine("origine"); $this->assertEquals("origine", $obj->getOrigine()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function set_origin($origin){\n \t$this->origin = $origin;\n }", "public function setOrigin($value)\n {\n $this->origin = $value;\n }", "public function setOrigin($_origin)\n {\n if (is_string($_origin)) {\n \t$this->_origin = $_origin;\n }\n }", "public function setOrigin($origin, $reassign = false);", "public function setOrigin($var)\n {\n GPBUtil::checkString($var, True);\n $this->origin = $var;\n }", "public function setOrigins($value)\n {\n return $this->set('Origins', $value);\n }", "public function setOrigins($value)\n {\n return $this->set('Origins', $value);\n }", "public function setOrigins($value)\n {\n return $this->set('Origins', $value);\n }", "public function setOrigin($value)\n {\n return $this->set('Origin', $value);\n }", "public function setOrigin($value)\n {\n return $this->set('Origin', $value);\n }", "public function setOrigin($value)\n {\n return $this->set('Origin', $value);\n }", "public function testSetCodeLiaisonDest() {\n\n $obj = new Collaborateurs();\n\n $obj->setCodeLiaisonDest(\"codeLiaisonDest\");\n $this->assertEquals(\"codeLiaisonDest\", $obj->getCodeLiaisonDest());\n }", "public function setOrigin($origin) : CNabuDataObject\n {\n if ($origin === null) {\n throw new ENabuCoreException(\n ENabuCoreException::ERROR_NULL_VALUE_NOT_ALLOWED_IN,\n array(\"\\$origin\")\n );\n }\n $this->setValue('nb_domain_zone_origin', $origin);\n \n return $this;\n }", "public function testCanSetAndGetCountry()\n {\n $mockCountry = 'United States';\n\n $this->dataCenter->setCountry($mockCountry);\n\n $this->assertEquals($mockCountry, $this->dataCenter->getCountry());\n }", "public function testSetLocalPere() {\n\n $obj = new FichesControlesEntetes();\n\n $obj->setLocalPere(\"localPere\");\n $this->assertEquals(\"localPere\", $obj->getLocalPere());\n }", "public function setOrigin($val)\n {\n $this->_propDict[\"origin\"] = $val;\n return $this;\n }", "public function testSetDestinatairesA() {\n\n $obj = new AppelsEnCours();\n\n $obj->setDestinatairesA(\"destinatairesA\");\n $this->assertEquals(\"destinatairesA\", $obj->getDestinatairesA());\n }", "public function testSetGetCountryCode()\n {\n $countryCode = 'DE';\n\n $location = new Location();\n\n $this->assertSame($location, $location->setCountryCode($countryCode));\n $this->assertEquals($countryCode, $location->getCountryCode());\n }", "public function testSetDestinatairesCc() {\n\n $obj = new AppelsEnCours();\n\n $obj->setDestinatairesCc(\"destinatairesCc\");\n $this->assertEquals(\"destinatairesCc\", $obj->getDestinatairesCc());\n }", "public function testSetLgZone() {\n\n $obj = new ParamEtiquettes();\n\n $obj->setLgZone(\"lgZone\");\n $this->assertEquals(\"lgZone\", $obj->getLgZone());\n }", "public function testSetLibZone() {\n\n $obj = new ParamEtiquettes();\n\n $obj->setLibZone(\"libZone\");\n $this->assertEquals(\"libZone\", $obj->getLibZone());\n }", "public function testSetCodeCentre() {\n\n $obj = new Collaborateurs();\n\n $obj->setCodeCentre(\"codeCentre\");\n $this->assertEquals(\"codeCentre\", $obj->getCodeCentre());\n }", "public function inOriginal();", "public function setOriginName($name);", "public function testCanSetAndGetCity()\n {\n $mockCity = 'Corpus Christi';\n\n $this->dataCenter->setCity($mockCity);\n\n $this->assertEquals($mockCity, $this->dataCenter->getCity());\n }", "public function testSetCodeAt() {\n\n $obj = new Employes();\n\n $obj->setCodeAt(10);\n $this->assertEquals(10, $obj->getCodeAt());\n }", "public function setOriginal($original) {\n $this->original = $original;\n }", "public function setAllowedOrigin($domain)\n {\n $domain = str_replace('http://', '', $domain);\n $domain = str_replace('www.', '', $domain);\n $domain = (strpos($domain, '/') !== false) ? substr($domain, 0, strpos($domain, '/')) : $domain;\n if(empty($domain))\n {\n return false;\n }\n $this->_allowedOrigins[$domain] = true; \n return true;\n }", "public function testSetFilterLocaleObject()\n {\n $this->todo('stub');\n }", "public function testSetAdresseIp() {\n\n $obj = new iSessions();\n\n $obj->setAdresseIp(\"adresseIp\");\n $this->assertEquals(\"adresseIp\", $obj->getAdresseIp());\n }" ]
[ "0.60054934", "0.59006613", "0.5674569", "0.5621354", "0.55260885", "0.551059", "0.551059", "0.5510006", "0.5481833", "0.54813695", "0.54813695", "0.5400984", "0.53898543", "0.53063023", "0.52398944", "0.52330184", "0.5212955", "0.52028805", "0.519462", "0.5166414", "0.5127833", "0.5083039", "0.5076961", "0.5044668", "0.5040385", "0.503027", "0.50166667", "0.49953148", "0.49940613", "0.4990398" ]
0.82384336
0
Tests the setPieceJointe() method.
public function testSetPieceJointe() { $obj = new AppelsEnCours(); $obj->setPieceJointe("pieceJointe"); $this->assertEquals("pieceJointe", $obj->getPieceJointe()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setPieceJointe($pieceJointe) {\n $this->pieceJointe = $pieceJointe;\n return $this;\n }", "public function testSetPrenomConjoint() {\n\n $obj = new Employes();\n\n $obj->setPrenomConjoint(\"prenomConjoint\");\n $this->assertEquals(\"prenomConjoint\", $obj->getPrenomConjoint());\n }", "public function setPieceJointe(?string $pieceJointe): AgendaLignes {\n $this->pieceJointe = $pieceJointe;\n return $this;\n }", "public function testSetNomConjoint() {\n\n $obj = new Employes();\n\n $obj->setNomConjoint(\"nomConjoint\");\n $this->assertEquals(\"nomConjoint\", $obj->getNomConjoint());\n }", "public function getPieceJointe() {\n return $this->pieceJointe;\n }", "protected function handleTypePieceJointe(GmthApiTypePieceJointe $apiTypePieceJointe)\n\t{\n\t\tif(empty($apiTypePieceJointe->getId()))\n\t\t\treturn false;\n// \t\t\tthrow new GmthApiException('Empty id for api type piece jointe.');\n\t\tif(isset($this->_types_piece_jointe[$apiTypePieceJointe->getId()]))\n\t\t\t$typePieceJointe = $this->_types_piece_jointe[$apiTypePieceJointe->getId()];\n\t\telse\n\t\t{\n\t\t\t$typePieceJointe = new GmthDataTypePieceJointe();\n\t\t\t$this->_types_piece_jointe[$apiTypePieceJointe->getId()] = $typePieceJointe;\n\t\t}\n\t\t$typePieceJointe->id = $apiTypePieceJointe->getId();\n\t\tif(!empty($apiTypePieceJointe->getNom()))\n\t\t\t$typePieceJointe->libelle = $apiTypePieceJointe->getNom();\n\t\t\n\t\treturn true;\n\t}", "public function testSetLieuTravailConjoint() {\n\n $obj = new Employes();\n\n $obj->setLieuTravailConjoint(\"lieuTravailConjoint\");\n $this->assertEquals(\"lieuTravailConjoint\", $obj->getLieuTravailConjoint());\n }", "protected function handlePieceJointe(GmthApiPieceJointe $apiPieceJointe, GmthApiDemande $apiDemande)\n\t{\n\t\tif(empty($apiPieceJointe->getId()))\n\t\t\treturn true;\n// \t\t\tthrow new GmthApiException('Empty id for api piece jointe.');\n\t\tif(isset($this->_piece_jointes[$apiPieceJointe->getId()]))\n\t\t\t$pieceJointe = $this->_piece_jointes[$apiPieceJointe->getId()];\n\t\telse\n\t\t{\n\t\t\t$pieceJointe = new GmthDataPieceJointe();\n\t\t\t$this->_piece_jointes[$apiPieceJointe->getId()] = $pieceJointe;\n\t\t}\n\t\t$pieceJointe->id = $apiPieceJointe->getId();\n\t\t$pieceJointe->demande_id = $apiDemande->getId();\n\t\tif(!empty($apiPieceJointe->getNomTechnique()))\n\t\t\t$pieceJointe->techid = $apiPieceJointe->getNomTechnique();\n\t\tif($apiPieceJointe->getTypePieceJointe() !== null)\n\t\t{\n\t\t\t$this->handleTypePieceJointe($apiPieceJointe->getTypePieceJointe());\n\t\t\tif(!empty($apiPieceJointe->getTypePieceJointe()->getId()))\n\t\t\t\t$pieceJointe->type_piece_jointe_id = $apiPieceJointe->getTypePieceJointe()->getId();\n\t\t}\n\t\tif(!empty($apiPieceJointe->getNom()))\n\t\t\t$pieceJointe->nom = $apiPieceJointe->getNom();\n\t\tif(!empty($apiPieceJointe->getTaille()))\n\t\t\t$pieceJointe->taille = $apiPieceJointe->getTaille();\n\t\t\n\t\treturn false;\n\t}", "private function jointSetUp(GearJoint $joint)\n {\n $gear = $joint->procureGear();\n try {\n $reflection = new ReflectionClass($gear);\n\n // INJECT RECURSIVE OVERRIDE-JOINT IF EXIST\n if ($joint->getConfig()->getOverrideID() and $joint->getConfig()->getOverriddenJointFieldName()) {\n\n $overrideProperty = $reflection->getProperty($joint->getConfig()->getOverriddenJointFieldName());\n\n if ($overrideProperty->hasType()) {\n $type = $overrideProperty->getType();\n\n $overriddenJoint = $this->gearJoints[$joint->getConfig()->getOverrideID()];\n if (!$overriddenJoint) {\n http_response_code('500');\n echo \"ERROR: '{$joint->getID()}' is trying to override '{$joint->getConfig()->getOverrideID()}', a not installed or enabled gear.<br>\";\n die;\n }\n\n $exposedClass = $overriddenJoint->getConfig()->getExposedClass();\n if (!$exposedClass or $type == $exposedClass or $type == $exposedClass) {\n $overrideProperty->setValue($gear, $overriddenJoint->procureGear());\n $this->jointSetUp($overriddenJoint);\n }\n }\n }\n\n // INJECT CORE-JOINT IF EXIST\n $coreJointField = $joint->getConfig()->getCoreJointFieldName();\n if ($coreJointField) {\n $coreProperty = $reflection->getProperty($coreJointField);\n if (isset($coreProperty) && $coreProperty->hasType()) {\n $type = $coreProperty->getType();\n if ($coreProperty and $type == Core::class) {\n $coreProperty->setValue($gear, $this->core);\n }\n }\n }\n\n // INJECT ALL JOINTS\n foreach ($joint->getConfig()->getJoints() as $jointField => $jointGear) {\n\n $property = $reflection->getProperty($jointField);\n if ($property) {\n\n $enabledJoint = $this->gearJoints[$jointGear]->getImplementedJoint();\n if (!$enabledJoint) {\n http_response_code('500');\n echo \"ERROR: '{$joint->getID()}' is trying to join '{$enabledJoint}', a not installed or enabled gear.<br>\";\n die;\n }\n\n if ($enabledJoint && $property->hasType()) {\n $type = $property->getType();\n\n if (!$enabledJoint->getConfig()->getExposedClass() or $type == $enabledJoint->getConfig()->getExposedClass())\n $property->setValue($gear, $enabledJoint->procureGear());\n }\n }\n\n }\n } catch (ReflectionException $e) {\n }\n $joint->getGear()->init();\n }", "public function testSetTelConjoint() {\n\n $obj = new Employes();\n\n $obj->setTelConjoint(\"telConjoint\");\n $this->assertEquals(\"telConjoint\", $obj->getTelConjoint());\n }", "protected abstract function ensurePieceJointeLoaded(array $ids = array());", "public function testSetHandicape() {\n\n $obj = new Employes();\n\n $obj->setHandicape(true);\n $this->assertEquals(true, $obj->getHandicape());\n }", "public function testSetDossierPaie() {\n\n $obj = new Collaborateurs();\n\n $obj->setDossierPaie(\"dossierPaie\");\n $this->assertEquals(\"dossierPaie\", $obj->getDossierPaie());\n }", "public function testSetPrudLieuVote() {\n\n $obj = new Employes();\n\n $obj->setPrudLieuVote(\"prudLieuVote\");\n $this->assertEquals(\"prudLieuVote\", $obj->getPrudLieuVote());\n }", "public function getPieceJointe(): ?string {\n return $this->pieceJointe;\n }", "public function testSetCleCcnPaie() {\n\n $obj = new Collaborateurs();\n\n $obj->setCleCcnPaie(\"cleCcnPaie\");\n $this->assertEquals(\"cleCcnPaie\", $obj->getCleCcnPaie());\n }", "function test_setJoin()\n {\n $theQuestion = 'Why does this not work?';\n $theAnswer = 'I dont know!';\n\n $question = new MDB_QT(TABLE_QUESTION);\n $newQuest = array(TABLE_QUESTION => $theQuestion);\n $qid = $question->add($newQuest);\n $this->assertTrue($qid != false);\n\n $answer = new MDB_QT(TABLE_ANSWER);\n $newAnswer = array(TABLE_QUESTION.'_id' => $qid, TABLE_ANSWER => $theAnswer);\n $aid = $answer->add($newAnswer);\n $this->assertTrue($aid != false);\n\n $joinOn = TABLE_QUESTION.'.id='.TABLE_ANSWER.'.question_id';\n $question->setJoin(TABLE_ANSWER, $joinOn);\n \n if (DB_TYPE == 'ibase') {\n $expected = array(\n 't_answer_id' => $aid,\n 't_answer_answer' => $theAnswer,\n 't_answer_question_id' => $qid,\n 'id' => $qid,\n 'question' => $theQuestion,\n );\n } else {\n $expected = array(\n '_answer_id' => $aid,\n '_answer_answer' => $theAnswer,\n '_answer_question_id' => $qid,\n 'id' => $qid,\n 'question' => $theQuestion,\n );\n }\n $this->assertEqual($expected, $question->get($qid));\n }", "public function testSetJour() {\n\n $obj = new ChantiersFrequencesControlesQualite();\n\n $obj->setJour(\"jour\");\n $this->assertEquals(\"jour\", $obj->getJour());\n }", "public function testSetRestrictAccesPieces() {\n\n $obj = new Collaborateurs();\n\n $obj->setRestrictAccesPieces(true);\n $this->assertEquals(true, $obj->getRestrictAccesPieces());\n }", "public function getPieceJointeById($id)\n\t{\n\t\tif($id === null)\n\t\t\treturn null;\n\t\t$this->ensurePieceJointeLoaded(array($id));\n\t\tif(!isset($this->_piece_jointes[$id]))\n\t\t\treturn null;\n\t\treturn new GmthBridgePieceJointe($this, $this->_piece_jointes[$id]);\n\t}", "public function testSetNiveauConfidentialiteQp() {\n\n $obj = new Collaborateurs();\n\n $obj->setNiveauConfidentialiteQp(\"niveauConfidentialiteQp\");\n $this->assertEquals(\"niveauConfidentialiteQp\", $obj->getNiveauConfidentialiteQp());\n }", "public function testSetEmailPied() {\n\n $obj = new Collaborateurs();\n\n $obj->setEmailPied(\"emailPied\");\n $this->assertEquals(\"emailPied\", $obj->getEmailPied());\n }", "public function testSetCodePenibilite() {\n\n $obj = new EmpRecapCodePenibilite();\n\n $obj->setCodePenibilite(\"codePenibilite\");\n $this->assertEquals(\"codePenibilite\", $obj->getCodePenibilite());\n }", "public function testSetNature() {\n\n $obj = new AppelsEnCours();\n\n $obj->setNature(\"nature\");\n $this->assertEquals(\"nature\", $obj->getNature());\n }", "public function setPieces(array $pieces) {\n $this->pieces = $pieces;\n }", "public function testSetEtabConfidentialiteQp() {\n\n $obj = new Collaborateurs();\n\n $obj->setEtabConfidentialiteQp(\"etabConfidentialiteQp\");\n $this->assertEquals(\"etabConfidentialiteQp\", $obj->getEtabConfidentialiteQp());\n }", "public function testSetDroitSyncQProp() {\n\n $obj = new Collaborateurs();\n\n $obj->setDroitSyncQProp(true);\n $this->assertEquals(true, $obj->getDroitSyncQProp());\n }", "public function testSetPrudCollege() {\n\n $obj = new Employes();\n\n $obj->setPrudCollege(\"prudCollege\");\n $this->assertEquals(\"prudCollege\", $obj->getPrudCollege());\n }", "public function testSetModifArticle() {\n\n $obj = new Collaborateurs();\n\n $obj->setModifArticle(\"modifArticle\");\n $this->assertEquals(\"modifArticle\", $obj->getModifArticle());\n }", "public function testSetPension() {\n\n $obj = new Employes();\n\n $obj->setPension(true);\n $this->assertEquals(true, $obj->getPension());\n }" ]
[ "0.6861192", "0.66055727", "0.6383213", "0.6144972", "0.606802", "0.6014025", "0.6003687", "0.5955767", "0.5754512", "0.571632", "0.5665178", "0.55968547", "0.55227196", "0.5429049", "0.54075503", "0.54064584", "0.5319187", "0.52917635", "0.5266273", "0.52549565", "0.52445614", "0.5227324", "0.5178247", "0.51608115", "0.511577", "0.5111514", "0.50928247", "0.5085709", "0.50766903", "0.50557536" ]
0.8625223
0
Tests the setReponse() method.
public function testSetReponse() { $obj = new AppelsEnCours(); $obj->setReponse("reponse"); $this->assertEquals("reponse", $obj->getReponse()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setResponse() {\n }", "private function resetReponse()\n {\n $this->app->singleton(\"response\", function () {\n return new Response();\n });\n }", "public function setResponse(Response $response) {}", "protected function getReponseData() {}", "protected function getReponseData() {}", "protected function getReponseData() {}", "protected function getReponseData() {}", "protected function getReponseData() {}", "private function _setReponseArray() {\n try {\n $this->RESP = array(\n 'MSG' => $this->MSG,\n 'STATUS' => $this->STATUS\n );\n } catch (Exception $ex) {\n throw new Exception('Crud Model : Error in _setReponseArray function - ' . $ex);\n }\n }", "private function checkResponseIsSet()\n {\n if ($this->response === null) {\n $this->fail('Must call call() before assertions');\n }\n }", "protected function setUp() {\n $this->response = new Response();\n }", "protected function _response() {}", "public function setSuccessResponse()\r\n {\r\n $this->setResponse(self::STATUS_CODE_OK);\r\n }", "abstract protected function getReponseData() ;", "public function setResponse($response)\n\t{\n\t\t$this->response = $response;\n\t}", "public function setResponse(Response $response): void;", "public function setResponse(ResponseInterface $request);", "protected function response()\r\n {\r\n return true;\r\n }", "public function testAbleToSetStatus()\n {\n $this->response->setStatus(404);\n $this->assertEquals(\n 404, $this->response->getStatus(),\n 'Unable to set Status'\n );\n }", "public function setHttpResponse($httpResponse);", "protected function sendResponse() {}", "public function testAssertResponseEquals(): void\n {\n $this->_response = new Response();\n $this->_response = $this->_response->withStringBody('Some content');\n\n $this->assertResponseEquals('Some content');\n }", "public function setResponse( $response ){\n \n $this->response = $response;\n \n }", "public function Response($response) {\n\t\t\n\t}", "public function resetResponse()\n\t{\n\t\t$this->_response = NULL;\n\t\t$this->_redirect = NULL;\n\t}", "public function onResponse($rep) \n {\n if($rep->get('correlation_id') == $this->correlation_id) {\n $this->response = $rep->body;\n }\n }", "abstract public function response();", "protected function afterResponse()\n {\n }", "public function testGettingResponse()\n {\n $response = new Response(\n json_encode(array(\n 'msg' => 'Testing Beepsend API'\n )), \n array(\n 'http_code' => 200,\n 'Content-Type' => 'application/json'\n )\n );\n \n $value = $response->get();\n $this->assertEquals('Testing Beepsend API', $value['msg']);\n }", "public function testPreStoreResponse()\n {\n $request = Request::create('/foo', 'GET');\n $regularResponse = new Response();\n $preStoreResponse = new Response();\n\n $httpCache = $this->getHttpCachePartialMock();\n $testListener = new TestListener($this, $httpCache, $request);\n $testListener->preStoreResponse = $preStoreResponse;\n $httpCache->addSubscriber($testListener);\n\n $this->setStoreMock($httpCache, $request, $preStoreResponse);\n\n $refHttpCache = new \\ReflectionObject($httpCache);\n $method = $refHttpCache->getMethod('store');\n $method->setAccessible(true);\n $method->invokeArgs($httpCache, [$request, $regularResponse]);\n $this->assertEquals(1, $testListener->preStoreCalls);\n }" ]
[ "0.71993184", "0.6692809", "0.65824956", "0.6371591", "0.6371591", "0.6371591", "0.6371591", "0.6371591", "0.6300629", "0.6240427", "0.62294984", "0.62087065", "0.61936235", "0.6181126", "0.6032007", "0.602602", "0.60229903", "0.6021044", "0.6010296", "0.6008554", "0.5968892", "0.5942649", "0.59288245", "0.5909449", "0.5897043", "0.5884102", "0.58786136", "0.58706796", "0.5828903", "0.5808309" ]
0.79259634
0
Tests the setSousRepRefGuid() method.
public function testSetSousRepRefGuid() { $obj = new AppelsEnCours(); $obj->setSousRepRefGuid("sousRepRefGuid"); $this->assertEquals("sousRepRefGuid", $obj->getSousRepRefGuid()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testSetGeneRef1() {\n\t\techo (\"\\n********************Test SetGeneRef()*******************************************************\\n\");\n\t\t\n\t\t$this->gene->setGeneRef ( TRUE );\n\t\t$this->assertTrue( $this->gene->getGeneRef () );\n\t}", "public function testSetGeneRef2() {\n\t\techo (\"\\n********************Test SetGeneRef()*******************************************************\\n\");\n\t\n\t\t$this->gene->setGeneRef ( FALSE );\n\t\t$this->assertFalse( $this->gene->getGeneRef () );\n\t}", "public function setGlobalUuid($uuid, $reference);", "public function testSetUniqId() {\n\n $obj = new AppelsEnCours();\n\n $obj->setUniqId(\"uniqId\");\n $this->assertEquals(\"uniqId\", $obj->getUniqId());\n }", "public function setRef($ref);", "public function testSetWithReferenceNumber()\n {\n // Test default values\n $this->assertEquals('', $this->slipData->getReferenceNumber());\n $this->assertTrue($this->slipData->getWithReferenceNumber());\n\n // Set data when enabled, also check for returned instance\n $returned = $this->slipData->setReferenceNumber('0123456789');\n $this->assertInstanceOf('SwissPaymentSlip\\SwissPaymentSlip\\OrangePaymentSlipData', $returned);\n $this->assertEquals('0123456789', $this->slipData->getReferenceNumber());\n\n // Disable feature, also check for returned instance\n $returned = $this->slipData->setWithReferenceNumber(false);\n $this->assertInstanceOf('SwissPaymentSlip\\SwissPaymentSlip\\OrangePaymentSlipData', $returned);\n $this->assertFalse($this->slipData->getWithReferenceNumber());\n\n // Re-enable feature, using no parameter\n $this->slipData->setWithReferenceNumber();\n $this->assertTrue($this->slipData->getWithReferenceNumber());\n $this->assertEquals('', $this->slipData->getReferenceNumber());\n }", "public function testSetUniqId() {\n\n $obj = new PointBonTrav();\n\n $obj->setUniqId(\"uniqId\");\n $this->assertEquals(\"uniqId\", $obj->getUniqId());\n }", "public function testSetRefImage() {\n\n $obj = new Materiels();\n\n $obj->setRefImage(\"refImage\");\n $this->assertEquals(\"refImage\", $obj->getRefImage());\n }", "public function setRef($ref)\n {\n $this->_ref = $ref;\n }", "public function testGetDuplicateReplenishmentById()\n {\n }", "public function testPopulateWithRemoteReference()\r\n {\r\n $solid = $this->Solids->populateSolid(1);\r\n $this->assertEquals($this->Solids::FETCHING, $solid->status);\r\n }", "public function testSetAndGetID()\r\n {\r\n $testObj = $this->_createMockModel();\r\n $baseObj = $this->_createMockModel();\r\n\r\n // Set the ID\r\n $testObj->setID(99);\r\n\r\n // Assert that a change occurred in the test object\r\n $this->assertNotEquals($testObj, $baseObj);\r\n\r\n // Assert that ID field was updated\r\n $this->assertEquals(99, $testObj->getID());\r\n\r\n // Assert that no other return values were affected\r\n $this->_assertModelsSameExcept($testObj, $baseObj, 'ID');\r\n }", "function setProductuuid($product_uuid)\n {\n $this->product_uuid = $product_uuid;\n }", "public function testSetAndGetOrgDefinedID()\r\n {\r\n $testObj = $this->_createMockModel();\r\n $baseObj = $this->_createMockModel();\r\n\r\n // Set the Org Defined ID\r\n $testObj->setOrgDefinedID('myOrgID');\r\n\r\n // Assert that a change occurred in the test object\r\n $this->assertNotEquals($testObj, $baseObj);\r\n\r\n // Assert that Org Defined ID field was updated\r\n $this->assertEquals('myOrgID', $testObj->getOrgDefinedID());\r\n\r\n // Assert that no other return values were affected\r\n $this->_assertModelsSameExcept($testObj, $baseObj, 'OrgDefinedID');\r\n }", "public function testSetIdRecap() {\n\n $obj = new EmpRecapCodePenibilite();\n\n $obj->setIdRecap(10);\n $this->assertEquals(10, $obj->getIdRecap());\n }", "public function testGetGeneRef() {\n\t\techo (\"\\n********************Test GetGeneRef()*******************************************************\\n\");\n\t\t\n\t\t$this->stubedGene->method ( 'getGeneRef' )->willReturn ( TRUE );\n\t\t$this->assertTrue( $this->stubedGene->getGeneRef () );\n\t}", "public function testSetAccesRepCommun() {\n\n $obj = new Collaborateurs();\n\n $obj->setAccesRepCommun(\"accesRepCommun\");\n $this->assertEquals(\"accesRepCommun\", $obj->getAccesRepCommun());\n }", "public function testSetCurrentID()\n {\n $complement = $this->complement;\n\n $this->assertTrue(\n $complement::setCurrentID('AdvancedLocalComplement')\n );\n\n $this->assertTrue(\n $complement::setCurrentID('BasicLocalComplement')\n );\n\n $this->assertTrue(\n $complement::setCurrentID('RemoteComplement')\n );\n }", "public function testSetWithReferenceNumberInvalidParameter()\n {\n $this->slipData->setWithReferenceNumber(1);\n }", "public function setUniqueId($uniqueId){\n $this->uniqueId = $uniqueId;\n }", "public function testGetReplenishmentById()\n {\n }", "public function testLockSsn()\n\t{\n\t\t$this->assertTrue($this->store->lockSsn('123456789'));\n\t}", "public function testSetReferenceNumberWhenDisabled()\n {\n $this->slipData->setWithReferenceNumber(false);\n $this->slipData->setReferenceNumber('');\n }", "function GST_setReplied($message_GUID)\n\t{\n $this->GST_setClassDB();\n \n\t\t$query = $this->DB->query(\"UPDATE guestbook SET condition='REPLIED' WHERE message_GUID='\".$message_GUID.\"'\");\n $query->run();\n $query->destroy();\n\t}", "public function testSetGeneSeq() {\n\t\techo (\"\\n********************Test SetGeneSeq()*******************************************************\\n\");\n\t\t\n\t\t$this->gene->setGeneSeq ( 'setGeneSeq' );\n\t\t$this->assertEquals ( 'setGeneSeq', $this->gene->getGeneSeq () );\n\t}", "public function testSetUri()\n {\n $this->_req->setUri('something/to/test');\n $this->assertEquals('something/to/test', $this->_req->getUri());\n }", "public function testSetUniqIdNoeud() {\n\n $obj = new FichesControlesEntetes();\n\n $obj->setUniqIdNoeud(\"uniqIdNoeud\");\n $this->assertEquals(\"uniqIdNoeud\", $obj->getUniqIdNoeud());\n }", "public function testGetCompleteReferenceNumberWithReferenceNrDisabled()\n {\n $this->slipData->setWithReferenceNumber(false);\n $this->slipData->getCompleteReferenceNumber();\n }", "public function test_set_called_returnCorrectly()\r\n\t{\r\n\t\t$docTest = new stdClass();\r\n\t\t$docTest->id = \"123123\";\r\n\t\t$docTest->author = \"aDummyAuthor\";\r\n\t\t$docTest->description = \"aDummyDescription\";\r\n\t\t$docTest->origin = \"OverDrive\";\r\n\t\t$docTest->mysqlid = \"aDummyMysqlId\";\r\n\t\t$docTest->title = array(\"aDummyTitle\");\r\n\t\t$docTest->issn = array(\"aDummyISSN\");\r\n\t\t$docTest->isbn = array(\"aDummyISBN\");\r\n\t\t$docTest->publishDate=array(\"aDummyPublishDate\");\r\n\t\t\r\n\t\t$this->service->set($docTest);\r\n\t\t\r\n\t\t$this->assertEquals($this->service->getId(), \"123123\");\r\n\t\t$this->assertEquals($this->service->getAuthor(), \"aDummyAuthor\");\r\n\t\t$this->assertEquals($this->service->getDescription(), \"aDummyDescription\");\r\n\t\t$this->assertEquals($this->service->getOrigin(), \"OverDrive\");\r\n\t\t$this->assertEquals($this->service->getMysqlId(), \"aDummyMysqlId\");\r\n\t\t$this->assertEquals($this->service->getTitle(), \"aDummyTitle\");\r\n\t\t$this->assertEquals($this->service->getISSN(), \"aDummyISSN\");\r\n\t\t$this->assertEquals($this->service->getISBN(), \"aDummyISBN\");\r\n\t\t$this->assertEquals($this->service->getPublishDate(), \"aDummyPublishDate\");\r\n\t\t\r\n\t}", "public function setGuid($guid, $isPermalink = false);" ]
[ "0.6044776", "0.5874531", "0.5723988", "0.54481053", "0.5430104", "0.5412227", "0.53935784", "0.5282387", "0.5248087", "0.5219788", "0.52128184", "0.5190112", "0.5174583", "0.5171359", "0.51645696", "0.5158895", "0.5155973", "0.5151627", "0.5148142", "0.5141997", "0.51264024", "0.5121326", "0.5112522", "0.50958073", "0.5080219", "0.50690615", "0.50582737", "0.5039075", "0.50356275", "0.50319993" ]
0.82002395
0
Tests the setSpecial() method.
public function testSetSpecial() { $obj = new AppelsEnCours(); $obj->setSpecial("special"); $this->assertEquals("special", $obj->getSpecial()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isSpecial();", "public function isSpecial()\n\t{\n\t\t return false;\n\t}", "public function isSpecial()\n\t{\n\t\t return false;\n\t}", "public function testSpecial(): void {\n\t}", "public function setSpecials(array $arr): void {\n\t\t$this->m_specials = $arr;\n\t}", "function setSpecialHandling($type)\n\t{\n\t\t$this->_specialHandling = $type;\n\t}", "function isSpecial(){\r\n\t\tif($this->user_type == 'Special'){\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public function addSpecial(string $key, $value): void {\n\t\t$this->m_specials[$key] = $value;\n\t}", "abstract public function set();", "public function testSetValue()\n {\n $this->todo('stub');\n }", "public function setSpecialInstructions($special_instructions): void\n {\n $this->_specialInstructions = $special_instructions;\n }", "public function testSetType()\n {\n $this->todo('stub');\n }", "public function testSet()\n {\n $object = new \\Webaholicson\\Minimvc\\Core\\Object(['test' => true]);\n $this->assertTrue($object->get('test'));\n $this->assertSame($object, $object->set('test', false));\n $this->assertFalse($object->get('test'));\n $object->set(['node' => ['test' => false]]);\n $this->assertContains(false , $object->get('node'));\n }", "function can_be_manually_set() {\n return true;\n }", "abstract protected function alter_set($name,$value);", "public function isSpecial()\n {\n static $special = false;\n\n if ($special === false) {\n $this->resetSpecial();\n $special = true;\n }\n\n return $this->special;\n }", "public function setSpecialty($value)\n {\n $this->specialty = $value;\n }", "public function setInvalid();", "public function setMixed($mixed);", "public function testSetQteEnt() {\n\n $obj = new ParamEtiquettes();\n\n $obj->setQteEnt(true);\n $this->assertEquals(true, $obj->getQteEnt());\n }", "public function testRegistrationValuesContainSpecialCharacters(): void { }", "function getSpecialHandling()\n\t{\n\t\treturn $this->_specialHandling;\n\t}", "public function testSetUrgent() {\n\n $obj = new AppelsEnCours();\n\n $obj->setUrgent(true);\n $this->assertEquals(true, $obj->getUrgent());\n }", "abstract protected function handle_set($name,$value);", "public function testSetGeneContig() {\n\t\techo (\"\\n********************Test SetGeneContig()****************************************************\\n\");\n\t\t\n\t\t$this->gene->setGeneContig ( 'setGeneContig' );\n\t\t$this->assertEquals ( 'setGeneContig', $this->gene->getGeneContig () );\n\t}", "public function saveSpecialData($product,$specialPrice){\n if (! empty ( $specialPrice )) {\n $product->setSpecialPrice ( $specialPrice );\n }\n return $product;\n }", "function isSpecialHandling($against = NULL)\n\t{\n\t\tif($against !== NULL)\n\t\t{\n\t\t\treturn in_array($this->_specialHandling, $against);\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn ($this->_specialHandling != NULL);\n\t\t}\n\t}", "public function testSetValues()\n {\n $this->todo('stub');\n }", "public function isSpecialCode()\n {\n return $this->isSpecialCode;\n }", "public function testSetAndRetrieveBoolean(): void\n {\n $key = \"A test key\";\n $this->testNotStrict->set($key, true);\n $actual = $this->testNotStrict->get($key);\n $this->assertTrue($actual);\n $this->testNotStrict->set($key, false);\n $actual = $this->testNotStrict->get($key);\n $this->assertFalse($actual);\n }" ]
[ "0.68443364", "0.6680994", "0.6680994", "0.64896363", "0.61493444", "0.5949069", "0.5888947", "0.5697638", "0.56693786", "0.5632598", "0.55830693", "0.5433713", "0.542669", "0.542357", "0.5420927", "0.5414073", "0.54081684", "0.5386072", "0.53671545", "0.53403455", "0.53297794", "0.5297577", "0.5286306", "0.52593106", "0.525377", "0.51843697", "0.5171636", "0.5160269", "0.51572335", "0.51259774" ]
0.7921905
0
Tests the setTel() method.
public function testSetTel() { $obj = new AppelsEnCours(); $obj->setTel("tel"); $this->assertEquals("tel", $obj->getTel()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testSetEtblTel() {\n\n $obj = new AttestationCacm();\n\n $obj->setEtblTel(\"etblTel\");\n $this->assertEquals(\"etblTel\", $obj->getEtblTel());\n }", "public function testSetTel1() {\n\n $obj = new Employes();\n\n $obj->setTel1(\"tel1\");\n $this->assertEquals(\"tel1\", $obj->getTel1());\n }", "private function setTelephone()\n {\n \tif ( empty($_POST['telephone'] ) ) {\n $this->data['error']['telephone'] = 'Please provide a valid phone number.';\n $this->error = true;\n return;\n }\n\t\n $t = trim( $_POST['telephone'] );\n \n\t\t// Remove non-digits.\n\t\t$t = preg_replace('/[^0-9]/', '', $t);\n\t\n\t\t// Make sure it's 10 digits.\n\t\tif ( strlen($t) != 10 ) {\n\t\t\t$this->data['error']['telephone'] = 'Please provide a valid phone number.';\n $this->error = true;\n return;\n\t\t}\n\t\n $this->data['telephone'] = $t;\n }", "public function testSetTelPoste() {\n\n $obj = new Collaborateurs();\n\n $obj->setTelPoste(\"telPoste\");\n $this->assertEquals(\"telPoste\", $obj->getTelPoste());\n }", "public function testSetTelDirect() {\n\n $obj = new Collaborateurs();\n\n $obj->setTelDirect(\"telDirect\");\n $this->assertEquals(\"telDirect\", $obj->getTelDirect());\n }", "public function testSetTelPortable1() {\n\n $obj = new Collaborateurs();\n\n $obj->setTelPortable1(\"telPortable1\");\n $this->assertEquals(\"telPortable1\", $obj->getTelPortable1());\n }", "public function set_tel($_tel)\n {\n $this->_tel = $_tel;\n\n return $this;\n }", "public function testSetTelConjoint() {\n\n $obj = new Employes();\n\n $obj->setTelConjoint(\"telConjoint\");\n $this->assertEquals(\"telConjoint\", $obj->getTelConjoint());\n }", "public function testSetTelPerso() {\n\n $obj = new Collaborateurs();\n\n $obj->setTelPerso(\"telPerso\");\n $this->assertEquals(\"telPerso\", $obj->getTelPerso());\n }", "public function setTel($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->tel !== $v) {\n $this->tel = $v;\n $this->modifiedColumns[] = EventPeer::TEL;\n }\n\n\n return $this;\n }", "public function testSetTelPortable2() {\n\n $obj = new Collaborateurs();\n\n $obj->setTelPortable2(\"telPortable2\");\n $this->assertEquals(\"telPortable2\", $obj->getTelPortable2());\n }", "public function setTel($tel)\n {\n $this->tel = $tel;\n\n return $this;\n }", "public function setTel($tel)\n {\n $this->tel = $tel;\n\n return $this;\n }", "public function setTel($tel)\n {\n $this->tel = $tel;\n\n return $this;\n }", "public function setTel($Tel)\n {\n $this->Tel = $Tel;\n\n return $this;\n }", "public function getTel()\n {\n return $this->Tel;\n }", "public function getTel()\n {\n return $this->tel;\n }", "public function getTel()\n {\n return $this->tel;\n }", "public function getTel()\n {\n return $this->tel;\n }", "public function getTel()\n {\n return $this->tel;\n }", "public function testGettersAndSetters()\n {\n $this->phone->setType('phone');\n $this->assertEquals('phone', $this->phone->getType());\n\n $this->phone->setValue('059 70 22 85');\n $this->assertEquals('059 70 22 85', $this->phone->getValue());\n }", "public function setTelefonoClinica($tel) {\r\n $this->_telefono = $tel;\r\n }", "public function setTelefono($_telefono)\n {\n $this->telefono = $_telefono;\n }", "public function setTelefone($value,$options=array('required'=>true)){ \n $this->_data['telefone'] = new ZendT_Type_String($value,array('mask'=>array (\n 0 => '99 9.9999-9999',\n 1 => '99 9999-9999',\n 2 => '9999-9999',\n 3 => '9.9999-9999',\n)\n ,'charMask'=>'9'\n ,'filterDb'=>array (\n 0 => '',\n)\n ,'filter'=>array('trim', 'strtoupper', 'removeAccent', )));\n if ($options['db'])\n $this->_data['telefone']->setValueFromDb($value);\n \n if (!$options['db']){\n \n $valid = new Zend_Validate_StringLength(array ( 'max' => 45, ) );\n $valueValid = $this->_data['telefone']->getValueToDb();\n if ($valueValid && !$valid->isValid($valueValid)){\n throw new ZendT_Exception_Business(implode(\"\\n\",$valid->getMessages()));\n }\n \n }\n return $this;\n }", "public function testCanSetAndGetPhoneNumber()\n {\n $mockPhoneNumber = '12345678990';\n\n $this->dataCenter->setPhoneNumber($mockPhoneNumber);\n\n $this->assertEquals($mockPhoneNumber, $this->dataCenter->getPhoneNumber());\n }", "public function get_tel()\n {\n return $this->_tel;\n }", "public function testPhone()\n {\n $this->assertTrue(RuValidation::phone('+7 (342) 1234567'));\n $this->assertTrue(RuValidation::phone('+7 (41144) 1234'));\n }", "public function setEtblTel($etblTel) {\n $this->etblTel = $etblTel;\n return $this;\n }", "public function setEtblTel($etblTel) {\n $this->etblTel = $etblTel;\n return $this;\n }", "public function setTel_user($tel_user)\r\n {\r\n $this->tel_user = $tel_user;\r\n\r\n return $this;\r\n }" ]
[ "0.7225685", "0.718668", "0.68716747", "0.6864146", "0.68144715", "0.6619897", "0.660373", "0.6399839", "0.6375337", "0.63333786", "0.63141924", "0.6296032", "0.6296032", "0.6296032", "0.62897277", "0.6248692", "0.6179527", "0.6179527", "0.6179527", "0.6179527", "0.60765153", "0.5995307", "0.59620726", "0.59097075", "0.5889858", "0.584158", "0.58307946", "0.57968086", "0.57968086", "0.575769" ]
0.8443904
0
Tests the setTypeMessage() method.
public function testSetTypeMessage() { $obj = new AppelsEnCours(); $obj->setTypeMessage("typeMessage"); $this->assertEquals("typeMessage", $obj->getTypeMessage()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setType($type=0){\n\t\t\tswitch ($type){\n\t\t\t\tcase 0:{$type = 0; break;}\n\t\t\t\tdefault:{$type = 0;}\n\t\t\t}\n\t\t\t$this->message_type = $type;\n\t\t}", "protected function setMessageType()\n {\n }", "protected function setMessageType()\n {\n $type = array();\n if ($this->alternativeExists()) {\n $type[] = 'alt';\n }\n if ($this->inlineImageExists()) {\n $type[] = 'inline';\n }\n if ($this->attachmentExists()) {\n $type[] = 'attach';\n }\n $this->message_type = implode('_', $type);\n if ($this->message_type == '') {\n //The 'plain' message_type refers to the message having a single body element, not that it is plain-text\n $this->message_type = 'plain';\n }\n }", "public function setTypeMessage($typeMessage) {\n $this->typeMessage = $typeMessage;\n return $this;\n }", "private function SetMessageType() {\n\t if(count($this->attachment) < 1 && strlen($this->AltBody) < 1) {\n\t $this->message_type = 'plain';\n\t } else {\n\t if(count($this->attachment) > 0) {\n\t $this->message_type = 'attachments';\n\t }\n\t if(strlen($this->AltBody) > 0 && count($this->attachment) < 1) {\n\t $this->message_type = 'alt';\n\t }\n\t if(strlen($this->AltBody) > 0 && count($this->attachment) > 0) {\n\t $this->message_type = 'alt_attachments';\n\t }\n\t }\n \t}", "function getType(){\n\t\t\treturn $this->message_type;\n\t\t}", "public function message($type, $message) {}", "public function messageType(): string;", "public function getTypeMessage() {\n return $this->typeMessage;\n }", "public function set_message($message, $msg_type=false) \n {\n $this->message = $msg_type?array($msg_type=>$message):$message;\n $this->process_messages();\n }", "public function setMessage($message, $type = 'text/html')\n {\n $this->type = $type;\n\n $this->message = $message;\n }", "public function getMessageType()\n {\n return $this->messageType;\n }", "function get_message_type(){\n\t\tif(count($this->attachment) < 1){\n\t\t\t$this->message_type = 'plain';\n\t\t}else{\n\t\t\t$this->message_type = 'attachments';\n\t\t}\n\t}", "protected function checkType(&$inMessage = '') {\n\t\t$isValid = true;\n\t\tif ( !is_string($this->_Type) && $this->_Type !== '' ) {\n\t\t\t$inMessage .= \"{$this->_Type} is not a valid value for Type\";\n\t\t\t$isValid = false;\n\t\t}\t\t\n\t\tif ( $isValid && $this->_Type != '' && !in_array($this->_Type, array(self::TYPE_SOURCE, self::TYPE_THUMBNAIL, self::TYPE_FILE, self::TYPE_CCA)) ) {\n\t\t\t$inMessage .= \"Type must be one of TYPE_SOURCE, TYPE_THUMBNAIL, TYPE_FILE\";\n\t\t\t$isValid = false;\n\t\t}\t\t\n\t\treturn $isValid;\n\t}", "public function setMessageType($value, int $position = 9): bool\n {\n $typeField = $this->getField($position);\n if (is_array($typeField) && !empty($typeField[1])) {\n $value = [$value, $typeField[1]];\n }\n return $this->setField($position, $value);\n }", "protected function drupalSetMessage($message, $type) {\n drupal_set_message($message, $type);\n }", "protected function drupalSetMessage($message, $type) {\n drupal_set_message($message, $type);\n }", "public function testBodyMimeTypeAliases()\n {\n $set = array(\n 'text' => 'foo',\n 'html' => 'bar',\n );\n\n $get = array(\n 'text/plain' => 'foo',\n 'text/html' => 'bar',\n );\n\n $this->message->setBody( $set );\n $body = $this->message->getBody();\n\n $this->assertInstanceOf( 'Zend\\Mime\\Message', $body );\n $this->assertMimeMessages( $get, $body );\n }", "public function setCharsetSetsTheCharsetAndAlsoUpdatesContentTypeHeader()\n {\n $message = $this->getAbstractMessageMock();\n $message->setHeader('Content-Type', 'text/html; charset=UTF-8');\n\n $message->setCharset('UTF-16');\n $this->assertEquals('text/html; charset=UTF-16', $message->getHeader('Content-Type'));\n\n $message->setHeader('Content-Type', 'text/plain; charset=UTF-16');\n $message->setCharset('ISO-8859-1');\n $this->assertEquals('text/plain; charset=ISO-8859-1', $message->getHeader('Content-Type'));\n\n $message->setHeader('Content-Type', 'image/png');\n $message->setCharset('UTF-8');\n $this->assertEquals('image/png', $message->getHeader('Content-Type'));\n\n $message->setHeader('Content-Type', 'Text/Plain');\n $this->assertEquals('Text/Plain; charset=UTF-8', $message->getHeader('Content-Type'));\n }", "private function type($message, $type)\n {\n $this->type = $type;\n\n $this->message = $message;\n\n return $this;\n }", "public function setHeaderAddsCharsetToMediaTypeIfNoneWasSpecifiedAndTypeIsText()\n {\n $message = $this->getAbstractMessageMock();\n\n $message->setHeader('Content-Type', 'text/plain', true);\n $this->assertEquals('text/plain; charset=UTF-8', $message->getHeader('Content-Type'));\n\n $message->setHeader('Content-Type', 'text/plain', true);\n $message->setCharset('Shift_JIS');\n $this->assertEquals('text/plain; charset=Shift_JIS', $message->getHeader('Content-Type'));\n $this->assertEquals('Shift_JIS', $message->getCharset());\n\n $message->setHeader('Content-Type', 'image/jpeg', true);\n $message->setCharset('Shift_JIS');\n $this->assertEquals('image/jpeg', $message->getHeader('Content-Type'));\n }", "public function assertMessage(string $expected, string $messageType): void\n {\n // TODO add abstract methods\n $this->waitForVisibilityBySelector('div.alert-' . $messageType);\n\n // TODO add abstract methods\n $message = $this->getTagContent('div.alert-' . $messageType);\n $message = trim($message, '×');\n $message = trim($message);\n\n // TODO add abstract methods\n $this->assertEquals($expected, $message);\n }", "public function testIsValidType()\n {\n $this->assertFalse(\n Method::invoke($this->type, 'isValidType', $this, 'test'),\n 'The value should not be valid.'\n );\n\n $this->assertTrue(\n Method::invoke($this->type, 'isValidType', $this, 1.23),\n 'The value should be valid.'\n );\n }", "public function setCharsetUpdatesContentTypeHeaderAndLeavesAdditionalInformationIntact()\n {\n $message = $this->getAbstractMessageMock();\n\n $message->setHeader('Content-Type', 'text/plain; charSet=UTF-16; x-foo=bar');\n $message->setCharset('ISO-8859-1');\n $this->assertEquals('text/plain; charset=ISO-8859-1; x-foo=bar', $message->getHeader('Content-Type'));\n }", "public function testGetRequestType()\n {\n $options = new Mailing();\n $this->assertEquals('get', $options->getRequestType());\n }", "#[@test]\n public function streamType() {\n $this->fixture->setType(SOCK_STREAM);\n $this->assertEquals(SOCK_STREAM, $this->fixture->getType());\n }", "public function testBodyCustomMimeTypes()\n {\n $bodies = array(\n 'text/plain' => 'foo',\n 'application/octet-stream' => 'bar',\n );\n\n $this->message->setBody( new ArrayIterator( $bodies ) );\n $body = $this->message->getBody();\n\n $this->assertInstanceOf( 'Zend\\Mime\\Message', $body );\n $this->assertMimeMessages( $bodies, $body );\n }", "public function testPackageType() {\n $this->assertFalse($this->object->isset_packageType());\n\n $packageType = 'test';\n $this->object->set_packageType($packageType);\n $this->assertTrue($this->object->isset_packageType());\n $this->assertEquals($packageType, $this->object->get_packageType());\n }", "public function userMessage($messageType, $messageText='') {\r\n\t\t// good message text!\r\n\t\t// Something's gone wrong. We're working to get it fixed as soon as we can.\r\n\t\t$_SESSION['message_type'] = self::translateMessageType($messageType);\r\n\t\tif ($messageText == '') {\r\n\t\t\t// use default message\r\n\t\t\t$_SESSION['message_text'] = self::getDefaultMessage($messageType);\r\n\t\t} else {\r\n\t\t\t$_SESSION['message_text'] = $messageText;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "public function getMessageType()\n {\n return $this->message->getMessageType();\n }" ]
[ "0.6794049", "0.6721844", "0.6645638", "0.6429519", "0.6406866", "0.6286968", "0.621868", "0.61709994", "0.60674417", "0.5991494", "0.59240305", "0.58575046", "0.5810989", "0.5752559", "0.5741783", "0.5667813", "0.5667813", "0.56544", "0.56442976", "0.56267995", "0.56125027", "0.55846024", "0.55439913", "0.553529", "0.5503146", "0.5492508", "0.54917246", "0.5487013", "0.5479239", "0.5458325" ]
0.77325916
0
Tests the setUniqId() method.
public function testSetUniqId() { $obj = new AppelsEnCours(); $obj->setUniqId("uniqId"); $this->assertEquals("uniqId", $obj->getUniqId()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testSetUniqId() {\n\n $obj = new PointBonTrav();\n\n $obj->setUniqId(\"uniqId\");\n $this->assertEquals(\"uniqId\", $obj->getUniqId());\n }", "public function testSetUniqIdNoeud() {\n\n $obj = new FichesControlesEntetes();\n\n $obj->setUniqIdNoeud(\"uniqIdNoeud\");\n $this->assertEquals(\"uniqIdNoeud\", $obj->getUniqIdNoeud());\n }", "public function testUniqueId() {\n\t\t$result = _::uniqueId();\n\t\t$this->assertEquals(1, $result);\n\t\t$result = _::uniqueId();\n\t\t$this->assertEquals(2, $result);\n\n\t\t// test getting a unique id with a prefix\n\t\t$result = _::uniqueId('test');\n\t\t$this->assertEquals('test3', $result);\n\t\t$result = _::uniqueId('another');\n\t\t$this->assertEquals('another4', $result);\n\t}", "public function testSetUniqIdBlocage() {\n\n $obj = new FichesControlesEntetes();\n\n $obj->setUniqIdBlocage(\"uniqIdBlocage\");\n $this->assertEquals(\"uniqIdBlocage\", $obj->getUniqIdBlocage());\n }", "protected function getUniqId()\n {\n return uniqid('', true);\n }", "abstract public function unique_id();", "function setUniqueID($key) {\r\n\t\t$this->uniqueID = $key;\r\n\t}", "public function testUniq() {\n\t\t$array = array(1, 2, 3, 4, 5, 4, 3, 2);\n\t\t$result = _::uniq($array);\n\t\t$this->assertInternalType('array', $result);\n\t\t$this->assertCount(5, $result);\n\t\t$this->assertEquals(1, $result[0]);\n\t\t$this->assertEquals(2, $result[1]);\n\t\t$this->assertEquals(3, $result[2]);\n\t\t$this->assertEquals(4, $result[3]);\n\t\t$this->assertEquals(5, $result[4]);\n\t}", "public function tempId()\n {\n $this->id = uniqid('item');\n }", "public function testID() {\n $this->assertFalse($this->object->isset_id());\n\n $id = 'test';\n $this->object->set_id($id);\n $this->assertEquals($id, $this->object->get_id());\n $this->assertTrue($this->object->isset_id());\n }", "#[@test]\n public function uniqueKeySet() {\n $this->assertEquals('true', \n $this->xpath->query('string(/document/table/index[1]/@unique)'));\n }", "public function createUid()\n {\n $uid = uniqid();\n while (AutoEvent::where('uid', '=', $uid)->count() > 0) {\n $uid = uniqid();\n }\n $this->uid = $uid;\n }", "function getUniqId($prefix)\n {\n return substr(sha1($prefix . $this->_getInvoiceKey()), 0, 16);\n }", "public function testGenerateId()\n {\n foreach ($this->servers as $server) {\n $person = $this->assertAdd($server, $this->objects[0],\n array(Horde_Kolab_Server_Object_Kolabinetorgperson::ATTRIBUTE_SID => ''));\n $account_data = $this->objects[1];\n $account_data[Horde_Kolab_Server_Object_Kolabpop3account::ATTRIBUTE_OWNERUID] = $person->getUid();\n $a = new Horde_Kolab_Server_Object_Kolabpop3account($server, null, $account_data);\n $this->assertContains(Horde_Kolab_Server_Object_Kolabpop3account::ATTRIBUTE_MAIL . '=' . $this->objects[1][Horde_Kolab_Server_Object_Kolabpop3account::ATTRIBUTE_MAIL],\n $a->get(Horde_Kolab_Server_Object_Kolabpop3account::ATTRIBUTE_UID));\n }\n }", "function UniqueID(){\n\t\treturn uniqid ('Depari', true);\n\t}", "public function setUniqueId($uniqueId){\n $this->uniqueId = $uniqueId;\n }", "public function identifierWorkaround()\n {\n $this->isUniqueIdentifier = $this->isUniqueIdentifer;\n }", "#[@test]\n public function uniqueKeyNotSet() {\n $this->assertEquals('false', \n $this->xpath->query('string(/document/table/index[2]/@unique)'));\n }", "public function testModifyUidElements()\n {\n foreach ($this->servers as $server) {\n $person = $this->assertAdd($server, $this->objects[0],\n array(Horde_Kolab_Server_Object_Kolabinetorgperson::ATTRIBUTE_SID => ''));\n $account_data = $this->objects[1];\n $account_data[Horde_Kolab_Server_Object_Kolabpop3account::ATTRIBUTE_OWNERUID] = $person->getUid();\n $account = $server->add($account_data);\n $account = $server->fetch($account->getUid());\n\n $this->assertEquals($this->objects[1][Horde_Kolab_Server_Object_Kolabpop3account::ATTRIBUTE_SERVER],\n $account->get(Horde_Kolab_Server_Object_Kolabpop3account::ATTRIBUTE_SERVER));\n\n $result = $account->save(array(Horde_Kolab_Server_Object_Kolabpop3account::ATTRIBUTE_SERVER => 'pop3s.example.com'));\n\n $account = $server->fetch($account->getUid());\n\n $this->assertContains(\n 'pop3s.example.com',\n $account->get(Horde_Kolab_Server_Object_Kolabpop3account::ATTRIBUTE_SERVER, false)\n );\n\n $this->assertContains('[email protected]', $account->getUid());\n\n $result = $server->delete($account->getUid());\n }\n }", "public function testInsert(): void\n {\n $this->_insert();\n $query = $this->connection->selectQuery('id', 'ordered_uuid_items')\n ->orderBy('id')\n ->setDefaultTypes(['id' => 'ordered_uuid']);\n\n $query->setSelectTypeMap($query->getTypeMap());\n $results = $query->execute()->fetchAll('assoc');\n\n $this->assertEquals(new UuidValue('419a8da0482b7756b21f27da40cf8569'), $results[0]['id']);\n $this->assertEquals(new UuidValue('43e0b920481fc6d0a40d6d1740cf8569'), $results[1]['id']);\n $this->assertEquals(new UuidValue('4c2681c048298a29a7fb413140cf8569'), $results[2]['id']);\n }", "public function setUnique($value = TRUE);", "abstract public function getUniqueId();", "public function testGenerateUniqueKeyTrue()\n {\n $generator = new UniqueJobIdentifierGenerator(true);\n $unique = 'c1af4ce5c9773ce30d8cc6d1e0e7d699';\n\n $this->assertEquals('uniqueValue', $generator->generateUniqueKey(\n 'name',\n 'params',\n 'uniqueValue',\n 'method'\n ));\n $this->assertEquals($unique, $generator->generateUniqueKey(\n 'name',\n 'params',\n false,\n 'method'\n ));\n $this->assertEquals($unique, $generator->generateUniqueKey(\n 'name',\n 'params',\n null,\n 'method'\n ));\n $this->assertEquals($unique, $generator->generateUniqueKey(\n 'name',\n 'params',\n '',\n 'method'\n ));\n }", "public function getUniqId() {\n\t\treturn $this->request->get('ok_txn_id'); \n\t}", "public function testGetDuplicateReplenishmentById()\n {\n }", "public function setUniqueIdAttribute($value): void\n {\n\n\t\t$this->attributes['unique_id'] = uniqid(str_replace(' ', '-', $value), true);\n\t}", "public function testSetId() {\n\n $obj = new iSessions();\n\n $obj->setId(10);\n $this->assertEquals(10, $obj->getId());\n }", "function idfy($name=false){\n if(!$name) $name = uniqid(false, true);\n return 'id'.substr(md5($name),20);\n}", "private function uuid(){\n return uniqid('');\n }", "public function getUniqId(): ?string {\n return $this->uniqId;\n }" ]
[ "0.8041844", "0.7305565", "0.71556133", "0.65328586", "0.64997435", "0.64074606", "0.63856477", "0.63122135", "0.63101274", "0.60643125", "0.5891202", "0.58373976", "0.58290327", "0.5809616", "0.5762563", "0.57396734", "0.5698391", "0.56616837", "0.5656691", "0.56083256", "0.55935055", "0.55812585", "0.5570202", "0.55611324", "0.55463827", "0.5545863", "0.55309993", "0.55304426", "0.5528401", "0.5519364" ]
0.8466172
0
Tests the setUrgent() method.
public function testSetUrgent() { $obj = new AppelsEnCours(); $obj->setUrgent(true); $this->assertEquals(true, $obj->getUrgent()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testReset()\n {\n $same = $this->uut->setConstraints([new MyConstraint()])->setValue(new ScalarValue('bar'))->reset();\n $this->assertSame($this->uut, $same);\n $this->assertFalse($this->uut->hasValue());\n $this->assertFalse($this->uut->hasViolation());\n }", "public function testSetHeaterState()\n {\n }", "public function overrideUC() {}", "public function setInvalid();", "public function set_stupidly_fast($set = \\false)\n {\n }", "public function setUnmodified()\n {\n\t$this->modified= false;\n }", "public function testSetSuperviseur() {\n\n $obj = new Collaborateurs();\n\n $obj->setSuperviseur(true);\n $this->assertEquals(true, $obj->getSuperviseur());\n }", "public function testNotCorrectAssignuser() \r\n {\r\n // expect_not($model->assignuser());\r\n // expect_that($model->getErrors('id'));\r\n // expect_that($model->getErrors('authorRole'));\r\n \r\n }", "public function setUry($ury) {}", "public function testSetAnnulationTache() {\n\n $obj = new Collaborateurs();\n\n $obj->setAnnulationTache(true);\n $this->assertEquals(true, $obj->getAnnulationTache());\n }", "public function testSettlement()\n {\n print \"testRefund()\\n\";\n\n // TODO: Impl\n\n $this->fail();\n }", "public function setCrit()\n {\n $this->_role->crit = 0;\n }", "public function test_it_should_not_decrease_quality_of_ordinary_item_below_zero()\r\n {\r\n $this->itemBuilder->ordinaryItem()->ofNoQuality();\r\n\r\n $this->updateQuality();\r\n\r\n $this->assertThatQualityIsNot($this->negative());\r\n }", "public function testSetMotifRupture() {\n\n $obj = new AttestationCacm();\n\n $obj->setMotifRupture(\"motifRupture\");\n $this->assertEquals(\"motifRupture\", $obj->getMotifRupture());\n }", "public function testSetAutreAlleg() {\n\n $obj = new Employes();\n\n $obj->setAutreAlleg(true);\n $this->assertEquals(true, $obj->getAutreAlleg());\n }", "public function setCrit()\n {\n $this->_role->crit = 100;\n }", "public function testSetVueComDroitReaffect() {\n\n $obj = new Collaborateurs();\n\n $obj->setVueComDroitReaffect(true);\n $this->assertEquals(true, $obj->getVueComDroitReaffect());\n }", "public function testUsageFlag(){\n $test_car = CarFactory::create('Audi', 24, 10000, 700, 2013, 42);\n $test_car->setUsageFlag();\n $this->assertEquals($test_car->usage_flag, 'NEW');\n }", "public function testIsValidNoValue()\n {\n $this->assertTrue($this->uut->isValid());\n }", "function can_be_manually_set() {\n return true;\n }", "public function setExpectedIncorrectUsage($doing_it_wrong)\n {\n array_push($this->expected_doing_it_wrong, $doing_it_wrong);\n }", "public function testPending()\n {\n $this->assertTrue($this->kittyUser->isPending());\n $returnedKittyUser = $this->kittyUser->setPending(false);\n $this->assertSame($this->kittyUser, $returnedKittyUser);\n $this->assertFalse($this->kittyUser->isPending());\n }", "protected function isTargetCorrect() {}", "public function testSetInterim() {\n\n $obj = new Collaborateurs();\n\n $obj->setInterim(true);\n $this->assertEquals(true, $obj->getInterim());\n }", "function testInvalidPropertySet() {\n\t\t$o = new \\Scrivo\\UserRole(self::$context);\n\t\t$o->sabicasElRey = \"el mejor\";\n\t}", "public function resetUC() {}", "public function testOverrideMode(): void\n {\n $process = $this->phpbench(\n 'run --filter=benchDoNothing --mode=throughput --iterations=10 benchmarks/set1/BenchmarkBench.php'\n );\n\n $this->assertExitCode(0, $process);\n $this->assertStringContainsString('ops/μs', $process->getErrorOutput());\n }", "public function testSetSignMotifRupture() {\n\n $obj = new AttestationCacm();\n\n $obj->setSignMotifRupture(\"signMotifRupture\");\n $this->assertEquals(\"signMotifRupture\", $obj->getSignMotifRupture());\n }", "public function testMutableLoaderSetUnsetImmutable()\n {\n $immutable = $this->_mutableLoader->getImmutable();\n\n $this->_mutableLoader->setImmutable(!$immutable);\n $this->assertSame(!$immutable, $this->_mutableLoader->getImmutable());\n\n $this->_mutableLoader->setImmutable($immutable);\n $this->assertSame($immutable, $this->_mutableLoader->getImmutable());\n }", "function testAppreciatingNonperishableItem() {\n $items = array(new Item('Aged Brie', 2, 0));\n $gildedRose = new GildedRose($items);\n \n // check that item increases quality as expected\n $gildedRose->update_quality();\n $this->assertEquals(1, $items[0]->sell_in);\n $this->assertEquals(1, $items[0]->quality);\n\n // second iteration for assurance \n $gildedRose->update_quality();\n $this->assertEquals(0, $items[0]->sell_in);\n $this->assertEquals(2, $items[0]->quality);\n\n // ensure item does not degrade below a quality of 0\n $gildedRose->update_quality();\n $this->assertEquals(0, $items[0]->sell_in);\n $this->assertEquals(3, $items[0]->quality);\n }" ]
[ "0.56347215", "0.5353508", "0.5245338", "0.52337307", "0.5215159", "0.51664233", "0.51046324", "0.5069629", "0.5068058", "0.5056844", "0.5038985", "0.50320375", "0.5023667", "0.50142294", "0.49771103", "0.49752867", "0.4961621", "0.4941191", "0.49396223", "0.49132115", "0.49030307", "0.48872948", "0.48831922", "0.488103", "0.48698536", "0.48674697", "0.48504844", "0.4848934", "0.4842978", "0.4836511" ]
0.738725
0
get detail information of the video
function getVideoDetails($operator_id, $video_id) { return $this->getResponse ( $this->getXmlApi (), 'getVideoDetails', array ('operator_id' => $operator_id, 'video_id' => $video_id ) ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getIdVideoInfo()\n {\n return $this->idVideoInfo;\n }", "function getMovieDetails() {\n\t\t\t$url = \"http://api.brightcove.com/services/library?command=find_video_by_reference_id&media_delivery=http&reference_id=\".$this->getMovieID() .\"&video_fields=name,renditions&token=Ekg-LmhL4QrFPEdtjwJlyX2Zi4l6mgdiPnWGP0bKIyKKT_94PTKHrw..\";\n\t\t\t$ch = curl_init();\n\t\t\tcurl_setopt($ch,CURLOPT_URL,$url);\n\t\t\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\t\t\t$jsonResponse = curl_exec($ch);\n\t\t\tcurl_close($ch);\n\t\t\t$result = json_decode($jsonResponse);\n\t\treturn $result->renditions;\n\t}", "public function getVideo()\n {\n return $this->Video;\n }", "function getVideo()\n {\n return $this->video;\n }", "public function getVideoDetail($video_id){\n\n $video = Video::find($video_id); //el metodo find devuelve todo el detalle del video\n\n return view('video.detail',array( //vista llamada detail en la carpeta video\n 'video' => $video\n ));\n }", "function mars_video_meta() {}", "protected function detail($id)\n {\n $video = VideoModel::findOrFail($id);\n\n $show = new Show($video);\n\n $show->id('ID');\n $show->title('标题');\n\n $show->template_id('转码模板')->as(function ($template_id){\n $roles = json_decode(\\Admin::user()->roles, true)[0];\n $template_group = TranscodeModel::getTemplateGroupInfo($roles[\"template_group\"]);\n return @$template_group[$template_id]? : \"\";\n });\n\n $show->status('转码状态')->as(function ($status){\n return config('transcode')['code'][$status];\n });\n\n $show->taskid('taskid');\n\n if(intval($video->status) === config('transcode')[\"status\"][\"upload\"]){\n $show->filename('预览')->unescape()->as(function ($filename){\n return VideoModel::preview($filename);\n });\n }\n\n $show->created_at('创建时间');\n\n\n $show->panel()->tools(function ($tools) {\n $tools->disableEdit();\n $tools->disableList();\n $tools->disableDelete();\n });\n\n return $show;\n }", "public function getVideoDetails($id) {\n\t\t$conn\t\t\t= $this->connect();\n\t\t$collection\t\t= $conn->snapstate->media;\n\t\t$userSession\t= new Container('fo_user');\n\t\t$results\t\t= $collection->find(array('_id' => new \\MongoID(trim($id))));\n\t\t$resultArray\t= array();\n\t\twhile($results->hasNext())\t{\n\t\t\t$resultArray\t= $results->getNext();\n\t\t}\n\t\treturn $resultArray;\n\t}", "public function getIdVideo(){\n\t\treturn $this->idVideo;\t\n\t}", "public function get_video_info($video) {\n static $command_ouput;\n if (!empty($command_output))\n return $command_output;\n\n $file = escapeshellarg($video);\n // Execute the command\n $options = $this->params['cmd_path'] . ' -i ' . $file;\n $command_output = $this->run_command($options);\n return $command_output;\n }", "public function get($video_id);", "function getVideo()\n\t{\n\t\t$id = $this->input->post('id');\n\t\t$response = $this->mapi->getVideo($id);\n\n\t\techo json_encode($response);\n\t}", "function get_media_info( $video ){\n $media_infos = array( ); $content = shell_exec( 'mediainfo \"' . $video . '\"' ); $xx = explode( \"\\n\\n\", $content );\n\n foreach ( $xx as $data ){$infos = explode( \"\\n\", $data ); $media_type = '';\n foreach ( $infos as $key => $val ){@list($k, $v, $e) = explode( \":\", $val );\n if ( empty( $v ) ){$media_type = $k;}\n else{\n $media_key = str_replace( array( ' ' ), '_', trim( strtolower( $k ) ) );\n $media_value = trim( $v );\n if ( !empty( $e ) )$media_value .= \":$e\"; $media_infos[$media_type][$media_key] = $media_value;\n }\n }\n }return $media_infos;\n}", "public function show(Video $video)\n {\n //\n }", "public function show(Video $video)\n {\n //\n }", "public function show(Video $video)\n {\n //\n }", "public function show(Video $video)\n {\n //\n }", "public function getVideo(): string\n {\n return (string) $this->video;\n }", "public function getVideo()\n {\n return $this->forgeVideo();\n }", "public function getInfoVideo($videoID){\n $url = \"https://www.youtube.com/get_video_info?&video_id={$videoID}&asv=3&el=datailpage&hl=en_US\";\n if($videoID != FALSE){\n $ch = curl_init();\n curl_setopt($ch,CURLOPT_URL,$url);\n curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);\n $vidoedata = curl_exec($ch);\n curl_close($ch);\n parse_str($vidoedata,$vidoe_info);\n $vidoe_info = json_decode(json_encode($vidoe_info));\n $quality = explode(\",\",$vidoe_info->url_encoded_fmt_stream_map);\n $qualitys = array();\n $number = 0;\n foreach($quality as $value){\n parse_str($value);\n $qualityType = $quality.$type;\n switch($qualityType){\n case 'hd720video/mp4; codecs=\"avc1.64001F, mp4a.40.2\"':\n $quality = \"750p HD mp4\";\n break;\n case 'mediumvideo/webm; codecs=\"vp8.0, vorbis\"':\n $quality = \"480p webm\";\n break;\n case 'mediumvideo/mp4; codecs=\"avc1.42001E, mp4a.40.2\"':\n $quality = \"360p mp4\";\n break;\n case 'smallvideo/3gpp; codecs=\"mp4v.20.3, mp4a.40.2\"':\n $quality = \"240p 3gpp\";\n break;\n }\n $qualitys[$number]['url'] = $url;\n $qualitys[$number]['quality'] = $quality;\n $number+=1;\n }\n \n $qualitys[count($qualitys)-1]['quality'] = \"144p 3gpp\";\n $vidoe_info = array(\n 'author' => $vidoe_info->author,\n 'title' => $vidoe_info->title,\n 'viewCount' => $vidoe_info->view_count,\n 'video' => $qualitys,\n );\n return $vidoe_info;\n }\n return FALSE;\n\n }", "protected function detail($id)\n {\n $show = new Show(Video::findOrFail($id));\n\n $show->id('ID');\n $show->category_id('分类');\n $show->name('名称');\n $show->url('地址');\n $show->images('图片')->as(function ($images) {\n return \"<pre>123123</pre>\";\n });\n $show->hot('是否推荐');\n $show->status('是否显示');\n $show->created_at('添加时间');\n\n return $show;\n }", "public function video_meta_information( $post ) {\n wp_nonce_field( 'video_meta_save', 'video_meta_box' );\n\n $provider = get_post_meta($post->ID, 'provider', true);\n $videoid = get_post_meta($post->ID, 'videoid', true);\n $season = get_post_meta($post->ID, 'season', true);\n $episode = get_post_meta($post->ID, 'episode', true);\n\n require_once(PLUGIN_ROOT. 'includes/tpl/video-meta.tpl.php');\n }", "public function detailAction()\n {\n $movieId = $this->dispatcher->getParam('id');\n\n $content = $this->api->get(self::API_ROUTE_MOVIE_CRUD . '/' . $movieId);\n\n if($content instanceof AppError) {\n $this->view->setVar('errors', $content->getMessage());\n } else {\n $this->view->setVar('movie', $content->movie);\n $this->view->setVar('genres', $content->genres);\n $this->view->setVar('videos', $content->videos);\n $this->view->setVar('isFavorite', $content->isFavorite);\n }\n }", "public function getVideoId();", "public function getFrameVideo(){\n return $this->frameVideo; \n }", "public function show($id)\n {\n $Video = Video::with('stand')->find($id);\n return $Video;\n }", "public function getVideoInfo($url)\n {\n $this->getSourceCode($this->generateUrl($url));\n\n $title = $this->getTitle();\n\n if (strtolower($title) === \"sorry, this content isn't available at the moment\") {\n throw new VideoDownloaderException('Video not available!');\n }\n\n $description = $this->getDescription();\n $owner = $this->getValueByKey('ownerName');\n $created_time = $this->getCreatedTime();\n var_dump($this->body);\n $hd_link = $this->getValueByKey('hd_src_no_ratelimit');\n $sd_link = $this->getValueByKey('sd_src_no_ratelimit');\n\n return compact('title', 'description', 'owner', 'created_time', 'hd_link', 'sd_link');\n }", "function info( $args, $assoc_args ) {\n\t\t$video = new MBInfoVideo();\n\t\t$content = $args[0];\n\t\t$html = $video->parse_short_code($assoc_args, $content);\n\t\techo $html;\n\t}", "public function getVideoTrack()\n {\n return $this->_videoTrack;\n }", "public function getLinkVideo()\n {\n return $this->linkVideo;\n }" ]
[ "0.7142759", "0.709181", "0.6864426", "0.685476", "0.6849452", "0.68382293", "0.6737644", "0.673282", "0.6729314", "0.6666441", "0.6654844", "0.6603146", "0.6585455", "0.65167034", "0.65167034", "0.65167034", "0.65167034", "0.65092564", "0.6474999", "0.6396961", "0.63529456", "0.6352024", "0.6349903", "0.62844646", "0.6270038", "0.62333584", "0.622725", "0.6224593", "0.6223927", "0.6221373" ]
0.7228947
0
Loads configuration from a file source
function loadFile($src){ if(file_exists($src) && is_readable($src)) { include $src; if(isset($CONFIG)) $this->add($CONFIG); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract function loadConfig($fileName);", "abstract protected function loadConfig();", "public function load()\n\t{\n\t\tif (file_exists(self::$configPath))\n\t\t{\n\t\t\t$this->config = json_decode(file_get_contents(self::$configPath), true);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->config = array();\n\t\t}\n\t}", "public function load($source);", "static public function load($filename) {\n\t\t$filename .= '.php';\n\n\t\tif (!file_exists($filename)) {\n\t\t\tthrow new \\Exception('Configuration file not found: ' . $filename);\n\t\t}\n\n\t\tinclude $filename;\n\n\t\tif (!isset($config)) {\n\t\t\tthrow new \\Exception('No variable $config found in ' . $filename);\n\t\t}\n\n\t\tself::$values = $config;\n\t}", "private function loadConfig()\n {\n\n $this->config = include(__DIR__ . '/../../config/config.php');\n\n }", "function loadConfig(){\n $file = file_get_contents($this->config_dir, FILE_USE_INCLUDE_PATH);\n $urls = json_decode($file,TRUE);\n //not the best way but error handling\n if ($file == NULL || $urls == NUll ){\n print(\"Error reading the config file or it it is empty\");\n }\n else{\n $this->config_data = $urls;\n\n }\n }", "private static function loadConfigurationFile()\n {\n if(self::$ConfigurationData == null)\n {\n $file_contents = file_get_contents(CONFIGURATION_FILE);\n $json_data = json_decode($file_contents, true);\n\n if(empty($json_data))\n {\n throw new Exception(\"Invalid JSON data in the configuration file\");\n }\n\n self::$ConfigurationData = $json_data;\n }\n }", "function loadConfigFile ($fileName) {\n\t\tif (file_exists ($fileName)) {\n\t\t\tif (is_readable ($fileName)) {\n\t\t\t\t$configItems = array ();\n\t\t\t\tinclude ($fileName);\n\t\t\t\t$this->loadConfigArray ($configItems);\n\t\t\t} else {\n\t\t\t\treturn new Error ('CONFIG_FILE_NOT_READABLE', $fileName);\n\t\t\t}\n\t\t} else {\n\t\t\treturn new Error ('CONFIG_FILE_NOT_FOUND', $fileName);\n\t\t}\n\t}", "function load( $filename = NULL )\n\t{\n\t\tif ( is_file( $filename ) ) {\n\n\t\t} else {\n\t\t\tthrow new FileNotFound( 'config file not exist!' );\n\t\t}\n\t}", "public function testConfigurationFromFile()\n {\n $path = __DIR__ . '/files/file1.config.php';\n\n $configuration = Factory::fromFile($path);\n\n $this->assertInstanceOf(Configuration::class, $configuration);\n $this->assertEquals(include $path, $configuration->getInternalContainer());\n }", "private function LoadConfigFile(){\n $a = file_get_contents($this->RootDIR . 'config/main.json');\n $this->Config = json_decode($a, true);\n }", "private function load()\n {\n if (!file_exists($this->file)) {\n throw new Exception('config file not found');\n }\n // read contents of wordpress config\n // we can not require the configuration because it requires a shit load of other files\n $this->config = file_get_contents($this->file);\n }", "public function loadYamlConfig($filepath);", "private function loadConfig()\n {\n $files = scandir($this->configPath());\n $configs = [];\n\n foreach ($files as $file) {\n $filePath = $this->configPath() . DIRECTORY_SEPARATOR . $file;\n\n if (is_file($filePath)) {\n $config = [basename($file, '.php') => include $filePath];\n if (is_array($config)) {\n $configs = array_merge($configs, $config);\n }\n }\n }\n\n $this->config = $configs;\n }", "private function _loadConfig($options) {\n\n $conf_file = NULL;\n if (isset($options ['config'])) {\n $conf_file = $options ['config'];\n } else if (isset($options ['c'])) {\n $conf_file = $options ['c'];\n }\n\n if ($conf_file !== NULL && !file_exists($conf_file)) {\n $this->log(\"file does not exists\", self::ERROR);\n exit;\n }\n\n if ($conf_file !== NULL && file_exists($conf_file)) {\n $this->_config = parse_ini_file($conf_file, true);\n return $this;\n }\n }", "static function loadConfig() {\n\t\t$config = self::file($_SERVER[\"DOCUMENT_ROOT\"] . \"/../config.json\");\n\t\tif (!is_null($config))\n\t\t\tself::$config = json_decode($config);\n\t}", "public function load_config() {\n if (!isset($this->config)) {\n $name = $this->get_name();\n $this->config = get_config(\"local_$name\");\n }\n }", "private function load()\n {\n if ($this->sites) {\n return;\n }\n $data = Yaml::parse(file_get_contents($this->file));\n $this->sites = $data['sites'];\n }", "public function load()\n {\n $ini = APP_DIR.'config/'.ENVIRONMENT.'.ini';\n\n if(!file_exists($ini))\n Clockwork::throwError('Could not load config ('.$ini.')');\n\n $this->data = parse_ini_file($ini, true);\n \n $this->setValues();\n }", "public function load($file);", "public function load($file);", "public function load($file);", "public static function load()\n {\n $files = glob(BASEDIR . '/config/*.php');\n foreach ($files as $file){\n $key = str_replace('.php', '', basename($file));\n static::$values[$key] = include $file;\n }\n }", "public function loadConfig($file) {\n $config = array();\n if (file_exists(PATH_CONFIGS . $file))\n include(PATH_CONFIGS . $file);\n if (!empty($config)) {\n foreach ($config as $name => $array) {\n $this->configs[$name] = $array;\n }\n }\n }", "abstract protected function loadConfiguration($name);", "public function loadConfig($filename)\n {\n return $this->getConfig()->loadConfig($filename);\n }", "public function readConfig() {\n if ( file_exists( $this->path . '/config/config.php' ) ) {\n require_once $this->path . '/config/config.php';\n }\n }", "public function load_config($file = '')\n {\n return $this->{$this->_driver}->load_config($file);\n }", "protected function loadFile(string $filename)\n\t{\n\t\tif (!isset($this->configFileLoaded[$filename])) {\n\t\t\t/* config folder Stored locally already resolved. Done in __construct */\n\t\t\t$file = $this->configFolder . $filename . '.php';\n\n\t\t\tif (file_exists($file)) {\n\t\t\t\t$this->config[strtolower($filename)] = require $file;\n\t\t\t}\n\n\t\t\t$this->configFileLoaded[$filename] = true;\n\t\t}\n\t}" ]
[ "0.77742934", "0.6953587", "0.6698114", "0.6631489", "0.66194636", "0.6606291", "0.65961695", "0.655883", "0.65295315", "0.64304537", "0.6415148", "0.6380205", "0.6375249", "0.6372624", "0.63710606", "0.63574696", "0.63505477", "0.63362545", "0.63182133", "0.6300499", "0.62982774", "0.62982774", "0.62982774", "0.62678075", "0.6246198", "0.6231849", "0.62177116", "0.62091947", "0.6169022", "0.6166747" ]
0.69816774
1
Loads configuration from the database
function loadFromDatabase(){ global $DB; $resource = $DB->config->get(); $list = array(); while($row = $DB->fetchAssoc($resource)) { if(!isset($this->sections[$row['section']])) $this->sections[$row['section']] = new ConfigSection($row['section']); $this->sections[$row['section']]->registerFromDatabase($row); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function loadConfig(){\n $DB = DB::pass();\n $conf = $DB->loadConfig();\n if ( count($conf) > 0 ){\n foreach($conf as $c){\n $this->config->set($c['cluster'] . \".\" . $c['name'],$c['value']);\n }\n } else {\n throw new SystemException(\"No database configuration\");\n }\n }", "public static function load_db_conf(){\n $db_config = include(CONFIGPATH.'db.conf.php');\n return $db_config;\n }", "function load_config()\n\t{\n\t\t$sql = \"SELECT * FROM config\";\n\n\t\t$dbdata = $this->conn->prepare($sql);\n\t\t$dbdata->execute();\n\n\t\tforeach ($dbdata->fetchAll(PDO::FETCH_OBJ) as $conf) {\n\t\t\tif ($conf->value == 'true') {\n\t\t\t\t$conf->value = true;\n\t\t\t} elseif ($conf->value == 'false') {\n\t\t\t\t$conf->value = false;\n\t\t\t}\n\n\t\t\t$this->config->set($conf->param, $conf->value);\n\t\t}\n\t}", "public function loadDBProperties()\n\t{\n\t\t$xml = simplexml_load_file(self::DB_PROPERTIES);\n\t\t$this->hostname = (string)$xml->hostname;\n\t\t$this->username = (string)$xml->username;\n\t\t$this->password = (string)$xml->password;\n\t\t$this->database = (string)$xml->database;\n\t}", "public function loadDatabaseConfig()\n {\n $conn = Doctrine_Manager::getInstance()->getCurrentConnection();\n if(empty($conn)) {\n throw new Zend_Config_Exception('No connection to DB defined, cannot load info!');\n }\n\n $sql = $conn->createQuery();\n $sql->select('parametru, valoare');\n $sql->from('Config INDEXBY parametru');\n $data = $sql->fetchArray();\n foreach($data as &$item) {\n $item = $item['valoare'];\n }\n \n $config = new Zend_Config($data);\n $this->merge($config);\n unset($config);\n\n return $this;\n }", "public function load()\n {\n $settings = array(\n 'similarityMeasure',\n 'xFactor',\n 'alpha'\n );\n \n $result = $this->db->select($settings)\n ->from('Configuration')\n ->get()->row_array();\n \n return $result;\n }", "public function loadDb()\n {\n if ( $this->_isLocalConfigLoaded ) {\n Varien_Profiler::start('config/load-db');\n /**\n * Load all data in core_config_data table into master xml node\n */\n $dbConf = $this->getResourceModel();\n $dbConf->loadToXml($this);\n Varien_Profiler::stop('config/load-db');\n }\n\n return $this;\n }", "protected function loadConfig() : \\codename\\core\\config {\r\n return new \\codename\\core\\config\\json('config/model/' . $this->schema . '_' . $this->table . '.json', true, true);\r\n }", "abstract protected function loadConfig();", "public function loadFromDB()\n {\n }", "protected function _readDbConfig()\n {\n $this->_host = Config::DB_HOST;\n $this->_user = Config::DB_USER;\n $this->_password = Config::DB_PASS;\n $this->_dbName = Config::DB_NAME;\n }", "public static function load_db_config() {\n\t\tif (Config::instance()->db_config)\n\t\t\treturn Config::instance()->db_config;\n\n\t\t$db_config = parse_ini_file(HALFMOON_ROOT . \"/config/db.ini\", true);\n\n\t\t/* set some reasonable defaults */\n\t\t$ar_config = array();\n\t\tforeach ($db_config as $henv => $db) {\n\t\t\tif ($db[\"adapter\"] == \"sqlite\")\n\t\t\t\t$ar_config[$henv] = $db;\n\t\t\telse\n\t\t\t\t$ar_config[$henv] = array_merge(array(\n\t\t\t\t\t\"adapter\" => \"mysql\",\n\t\t\t\t\t\"username\" => \"username\",\n\t\t\t\t\t\"password\" => \"password\",\n\t\t\t\t\t\"hostname\" => \"localhost\",\n\t\t\t\t\t\"database\" => \"database\",\n\t\t\t\t\t\"socket\" => \"\",\n\t\t\t\t\t\"port\" => 3306,\n\t\t\t\t), $db);\n\t\t}\n\n\t\treturn Config::instance()->db_config = $ar_config;\n\t}", "private function load_config() {\n $this->config = new Config();\n }", "private function loadConfiguration()\n {\n if (!Configuration::configurationIsLoaded()) {\n Configuration::loadConfiguration();\n }\n }", "public static function load()\n {\n $entries = Configuration::get();\n \n foreach ($entries as $entry) {\n self::$config[$entry->id] = unserialize($entry->value);\n }\n }", "abstract protected function load(Connection $db);", "function load_config() {\n\t\t$conf_file = @file_get_contents( LDAP_LOGIN_PATH.'data.dat' );\n\t\tif ($conf_file!==false)\n\t\t{\n\t\t\t$this->config = unserialize($conf_file);\n\t\t}\n\t}", "function &db_config()\n {\n static $database;\n if ( file_exists(APPPATH.'config/database.php') ) \n {\n require_once APPPATH.'config/database.php';\n\n if ( isset($database) ) \n {\n foreach( $database as $key => $val ) \n {\n $database[$key] = $val;\n }\n return $database;\n }\n }\n }", "private function refresh_db_config()\n {\n $this->systemConfiguration->where(true, true);\n foreach ($this->scheduleMapping as $scheduleType) {\n foreach ($scheduleType as $where) {\n $this->systemConfiguration->orWhere('type', $where);\n }\n }\n $this->config = $this->systemConfiguration->select('type', 'value')->get()->toArray();\n }", "private function loadConfig()\n {\n\n $this->config = include(__DIR__ . '/../../config/config.php');\n\n }", "public function loadConfig()\n {\n $this->setGlobalStoreOfShopNumber($this->getShopNumber());\n $this->loadArray($this->toArray());\n $this->setExportTmpAndLogSettings();\n }", "public function loadConfiguration()\n {\n \\Env::init();\n\n if (file_exists(SRC_ROOT . '/.env')) {\n $dotenv = new Dotenv(SRC_ROOT);\n $dotenv->load();\n $dotenv->required([\n 'DB_NAME',\n 'DB_USER',\n 'DB_PASSWORD',\n 'DB_HOST'\n ]);\n }\n\n define('APP_ENV', env('APP_ENV') ?: self::ENV_LIVE);\n\n if (!in_array(APP_ENV, $this->getAllowedEnvironments(), true)) {\n die('Invalid environment');\n }\n\n $configFileName = SRC_ROOT . '/config/env/' . APP_ENV . '.php';\n\n if (file_exists($configFileName)) {\n require $configFileName;\n }\n }", "public function loadConfig($data);", "private function configure() {\n\t\t$statement = $this -> database -> query(\"SELECT * FROM worlds\");\n\t\twhile ($worldData = $statement -> fetch(PDO::FETCH_ASSOC)) {\n\t\t\t$this -> worlds[$worldData['world']] = new World($worldData);\n\t\t}\n\t\t$statement = $this -> database -> query(\"SELECT * FROM server.configs\");\n\t\twhile ($configData = $statement -> fetch(PDO::FETCH_ASSOC)) {\n\t\t\t$this -> configs[$configData['key_']] = new Config($configData['key_'], $configData['value'], $configData['dataType']);\n\t\t}\n\t}", "public function load(): ConfigStoreInterface;", "public function setDatabaseConfig()\n {\n $this->_databaseConfig = Core_Model_Config_Json::getModulesDatabaseConfig();\n\n $this->_type = $this->_databaseConfig['type'];\n $this->_host = $this->_databaseConfig['host'];\n $this->_name = $this->_databaseConfig['name'];\n $this->_user = $this->_databaseConfig['user'];\n $this->_pass = $this->_databaseConfig['pass'];\n }", "private static function getConf(){\n if(!self::$conf){\n self::$conf = require('db.conf.php');\n }\n\n return self::$conf;\n }", "public function load()\n {\n $pdo = $this->getDbConnection();\n $query = \"SELECT * FROM {$this->dbTable}\";\n $data = $pdo->query($query)->fetchAll(\\PDO::FETCH_ASSOC);\n\n foreach ($data as ['key' => $key, 'value' => $value]) {\n $this->setData($key, $value);\n }\n }", "private function loadConfiguration()\n {\n /** @var ConfigurationManager $configurationManager */\n $configurationManager = ConfigurationManager::getInstance();\n $this->configuration = $configurationManager->getMainConfiguration();\n }", "protected function load_database()\n\t{\n\t\t$this->db= load_class(\"DB\", 'database');\n\t}" ]
[ "0.750048", "0.7478839", "0.7289232", "0.6997606", "0.69788826", "0.6900978", "0.68721974", "0.6853569", "0.684791", "0.6838948", "0.674095", "0.6711513", "0.6707481", "0.66863006", "0.6599123", "0.65959144", "0.65727067", "0.6557945", "0.6515317", "0.6472515", "0.63874346", "0.6370266", "0.6360203", "0.6358678", "0.6337216", "0.63239336", "0.6323264", "0.6320174", "0.63022506", "0.62940824" ]
0.768132
0
Mark void elements and elements with no content
protected static function markEmptyElements(DOMDocument $ir) { foreach ($ir->getElementsByTagName('element') as $element) { // Test whether this element is (maybe) void $elName = $element->getAttribute('name'); if (strpos($elName, '{') !== false) { // Dynamic element names must be checked at runtime $element->setAttribute('void', 'maybe'); } elseif (preg_match(self::$voidRegexp, $elName)) { // Static element names can be checked right now $element->setAttribute('void', 'yes'); } // Find whether this element is empty $isEmpty = self::isEmpty($element); if ($isEmpty === 'yes' || $isEmpty === 'maybe') { $element->setAttribute('empty', $isEmpty); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected static function removeContentFromVoidElements(DOMDocument $ir)\n\t{\n\t\t$xpath = new DOMXPath($ir);\n\t\tforeach ($xpath->query('//element[@void=\"yes\"]') as $element)\n\t\t{\n\t\t\t$id = $element->getAttribute('id');\n\t\t\t$query = './/closeTag[@id=\"' . $id . '\"]/following-sibling::*';\n\t\t\tforeach ($xpath->query($query, $element) as $node)\n\t\t\t{\n\t\t\t\t$node->parentNode->removeChild($node);\n\t\t\t}\n\t\t}\n\t}", "public function nothing(): void;", "public function removeAllTags() {}", "function DOM_delete_empty_attributes() {\r\n\t\t$query = '//' . ReTidy::get_html_namespace() . '*[@*=\"\"]';\r\n\t\t$tags_with_empty_attribute = $this->xpath->query($query);\r\n\t\tforeach($tags_with_empty_attribute as $tag) {\r\n\t\t\t$tagName = $tag->nodeName;\r\n\t\t\t$array_attributes = DTD::getAttributesForElementByType($tagName, \"#IMPLIED\");\r\n\t\t\tforeach($tag->attributes as $attribute) {\r\n\t\t\t\tif(strlen($attribute->nodeValue) === 0) {\r\n\t\t\t\t\tforeach($array_attributes as $attribute2){\r\n\t\t\t\t\t\tif($attribute->nodeName === $attribute2) {\r\n\t\t\t\t\t\t\t$attribute->nodeValue = \"XXX9o9stripme9o9XXX\";\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public function checkElementsInDom() {\n\tforeach ($this->_elArray as $key => $el) {\n\t\tif(is_null($el->node->parentNode)) {\n\t\t\tunset($this->_elArray[$key]);\n\t\t}\n\t}\n\n\t$this->_elArray = array_values($this->_elArray);\n}", "abstract public function removeAll();", "public function isEmpty()\n {\n return ! $this->_elements;\n }", "public function markUnchanged();", "public function xml2ArrayConvertsEmptyArraysToElementWithoutContent() {}", "function removeAll() ;", "function removeAll() ;", "public function isElements() {}", "public function clear(): void {\n\t\t$this->m_elements = [];\n\t}", "public function unmarkAllExecutions() {}", "public function removeAll(): void;", "public function clear() {\n $this->elements = array();\n }", "function clear()\r\n\t\t{\r\n\t\t\t$this->elements = array();\r\n\t\t}", "public function movedElementsCanNotBeFoundAtTheirOrigin() {}", "public function childElementsAllowed() {}", "public function isEmpty()\n {\n return !$this->elements;\n }", "protected function clearNoneHumanTags()\n {\n $filter = $this->DOM->filter('script');\n\n $filter->each(function (Crawler $crawler) {\n foreach ($crawler as $node) {\n $node->parentNode->removeChild($node);\n }\n });\n }", "public function typoSearchTagsRemovesBodyContentOutsideMarkers() {}", "protected function resetNestedElementCalls() {}", "public function clear() {\n $this->elements = array();\n $this->count = 0;\n return TRUE;\n }", "function block_core_navigation_filter_out_empty_blocks($parsed_blocks)\n {\n }", "public function markClean();", "public function removeAll();", "public function removeAll();", "public function clearTags()\n\t{\n\t\t$this->tags = array();\n\t}", "public function removeAll() {}" ]
[ "0.60209507", "0.58042806", "0.56943715", "0.56627214", "0.5503947", "0.5335305", "0.5325424", "0.53082156", "0.5292439", "0.52660394", "0.52660394", "0.5255692", "0.5251181", "0.5198148", "0.5196446", "0.5191437", "0.5188954", "0.51829886", "0.51722336", "0.51591355", "0.5132218", "0.50840765", "0.50808036", "0.50747633", "0.5067583", "0.5061836", "0.50518334", "0.50518334", "0.5048834", "0.5048648" ]
0.6726455
0
Get the context type for given output element
protected static function getOutputContext(DOMNode $output) { $xpath = new DOMXPath($output->ownerDocument); if ($xpath->evaluate('boolean(ancestor::attribute)', $output)) { return 'attribute'; } if ($xpath->evaluate('boolean(ancestor::element[@name="script"])', $output)) { return 'raw'; } return 'text'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_context_type()\n {\n return $this->get_default_property(self::PROPERTY_CONTEXT_TYPE);\n }", "public function get_type( $context = 'view' ) {\n\t\treturn $this->get_prop( 'type', $context ) ;\n\t}", "final public static function getOutputType() {\n return self::$outputType;\n }", "function getOutputType() {\n\t\treturn $this->getParam(self::PARAM_DISTRIBUTOR_OUTPUT_TYPE);\n\t}", "public function getContextType(): ?FHIRExtensionContext\n\t{\n\t\treturn $this->contextType;\n\t}", "public function meta_type()\n\t{\n\t\treturn $this->get_context_meta_value( __FUNCTION__ );\n\t}", "public function getType()\n {\n return $this->getAttribute('type');\n }", "function getType()\n {\n return $this->getAttribute(\"type\");\n }", "function get_type() {\n\t\treturn $this->get_data( 'type' );\n\t}", "public function type(): ?string\n {\n return $this->getAttribute('type');\n }", "public function get_type();", "function _get_type() {\n\t\treturn $this->type();\n\n\t}", "public function getType(){\n return get_class($this->current());\n }", "public function getType()\n {\n $type = $this->data['type'];\n if (null === $type) {\n $type = Reader\\Reader::detectType($this->getDomDocument());\n $this->setType($type);\n }\n return $type;\n }", "public function getElementType() {}", "public function getType() {\n return $this->attributes['type'];\n }", "public function type() {\n\t\t\treturn $this->_type;\n\t\t}", "public function getType()\n\t{\n\t\treturn $this->get('type');\n\t}", "public function getType()\n {\n return isset($this->type) ? $this->type : null;\n }", "public function type()\n {\n return $this->_type;\n }", "public function getType()\n {\n return $this->get(self::_TYPE);\n }", "public function getType()\n {\n return $this->get(self::_TYPE);\n }", "public function getType()\n {\n return $this->get(self::_TYPE);\n }", "public function getType()\n {\n return $this->get(self::_TYPE);\n }", "public function getType()\n {\n return $this->get(self::_TYPE);\n }", "public function getType()\n {\n return $this->get(self::_TYPE);\n }", "public function getType()\n {\n return $this->get(self::_TYPE);\n }", "public function getType()\n {\n return $this->get(self::_TYPE);\n }", "public function getType()\n {\n return $this->get(self::_TYPE);\n }", "public function getType()\n {\n return $this->get(self::_TYPE);\n }" ]
[ "0.6332242", "0.632927", "0.6309727", "0.61215997", "0.59755486", "0.59106255", "0.58408314", "0.5830902", "0.58299667", "0.56908226", "0.56774855", "0.5674977", "0.5648086", "0.56055343", "0.55343777", "0.5493492", "0.5489538", "0.5476484", "0.5469965", "0.54581094", "0.54523313", "0.54523313", "0.54523313", "0.54523313", "0.54523313", "0.54523313", "0.54523313", "0.54523313", "0.54523313", "0.54523313" ]
0.6973575
0
Remove redundant closeTag siblings after a switch If all branches of a switch have a closeTag we can remove any closeTag siblings of the switch
protected static function removeCloseTagSiblings(DOMDocument $ir) { $xpath = new DOMXPath($ir); $query = '//switch[not(case[not(closeTag)])]/following-sibling::closeTag'; foreach ($xpath->query($query) as $closeTag) { $closeTag->parentNode->removeChild($closeTag); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected static function removeRedundantCloseTagElementsInSwitch(DOMDocument $ir)\n\t{\n\t\t$xpath = new DOMXPath($ir);\n\t\t$query = '//switch[name(following-sibling::*) = \"closeTag\"]';\n\t\tforeach ($xpath->query($query) as $switch)\n\t\t{\n\t\t\tforeach ($switch->childNodes as $case)\n\t\t\t{\n\t\t\t\twhile ($case->lastChild && $case->lastChild->nodeName === 'closeTag')\n\t\t\t\t{\n\t\t\t\t\t$case->removeChild($case->lastChild);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "protected static function cloneCloseTagElementsOutOfSwitch(DOMDocument $ir)\n\t{\n\t\t$xpath = new DOMXPath($ir);\n\t\t$query = '//switch[not(preceding-sibling::closeTag)]';\n\t\tforeach ($xpath->query($query) as $switch)\n\t\t{\n\t\t\tforeach ($switch->childNodes as $case)\n\t\t\t{\n\t\t\t\tif (!$case->firstChild || $case->firstChild->nodeName !== 'closeTag')\n\t\t\t\t{\n\t\t\t\t\t// This case is either empty or does not start with a <closeTag/> so we skip\n\t\t\t\t\t// to the next <switch/>\n\t\t\t\t\tcontinue 2;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Insert the first child of the last <case/>, which should be the same <closeTag/>\n\t\t\t// as every other <case/>\n\t\t\t$switch->parentNode->insertBefore($switch->lastChild->firstChild->cloneNode(), $switch);\n\t\t}\n\t}", "protected static function cloneCloseTagElementsIntoSwitch(DOMDocument $ir)\n\t{\n\t\t$xpath = new DOMXPath($ir);\n\t\t$query = '//switch[name(following-sibling::*) = \"closeTag\"]';\n\t\tforeach ($xpath->query($query) as $switch)\n\t\t{\n\t\t\t$closeTag = $switch->nextSibling;\n\t\t\tforeach ($switch->childNodes as $case)\n\t\t\t{\n\t\t\t\tif (!$case->lastChild || $case->lastChild->nodeName !== 'closeTag')\n\t\t\t\t{\n\t\t\t\t\t$case->appendChild($closeTag->cloneNode());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "protected static function removeRedundantCloseTagElements(DOMDocument $ir)\n\t{\n\t\t$xpath = new DOMXPath($ir);\n\t\tforeach ($xpath->query('//closeTag') as $closeTag)\n\t\t{\n\t\t\t$id = $closeTag->getAttribute('id');\n\t\t\t$query = 'following-sibling::*/descendant-or-self::closeTag[@id=\"' . $id . '\"]';\n\t\t\tforeach ($xpath->query($query, $closeTag) as $dupe)\n\t\t\t{\n\t\t\t\t$dupe->parentNode->removeChild($dupe);\n\t\t\t}\n\t\t}\n\t}", "function closetags($html) {\n\t\tpreg_match_all('#<([a-z]+)(?: .*)?(?<![/|/ ])>#iU', $html, $result);\n\t\t$openedtags = $result[1]; #put all closed tags into an array\n\t\tpreg_match_all('#</([a-z]+)>#iU', $html, $result);\n\t\t$closedtags = $result[1];\n\t\t$len_opened = count($openedtags);\n\t\t# all tags are closed\n\t\tif (count($closedtags) == $len_opened) {\n\t\t\treturn $html;\n\t\t}\n\t\t\n\t\t$openedtags = array_reverse($openedtags);\n\t\t# close tags\n\t\tfor ($i=0; $i < $len_opened; $i++) {\n\t\t\tif (!in_array($openedtags[$i], $closedtags)){\n\t\t\t $html .= '</'.$openedtags[$i].'>';\n\t\t\t} else {\n\t\t\t unset($closedtags[array_search($openedtags[$i], $closedtags)]); }\n\t\t\t} \n\t\t\treturn $html;\n\t\t}", "function clear_subtags()\n {\n $numtags = sizeof($this->tags);\n $keys = array_keys( $this->tags );\n foreach( $keys as $k ) {\n $this->tags[$k]->clear_subtags();\n unset($this->tags[$k]->parent);\n }\n\n # Clear the tags array\n $this->tags = array();\n unset( $this->curtag );\n }", "function restoreTags($input)\n {\n $opened = array();\n\n // loop through opened and closed tags in order\n if(preg_match_all(\"/<(\\/?[a-z]+)>?/i\", $input, $matches)) {\n foreach($matches[1] as $tag) {\n if(preg_match(\"/^[a-z]+$/i\", $tag, $regs)) {\n // a tag has been opened\n if(strtolower($regs[0]) != 'br') $opened[] = $regs[0];\n } elseif(preg_match(\"/^\\/([a-z]+)$/i\", $tag, $regs)) {\n // a tag has been closed\n unset($opened[array_pop(array_keys($opened, $regs[1]))]);\n }\n }\n }\n\n // close tags that are still open\n if($opened) {\n $tagstoclose = array_reverse($opened);\n foreach($tagstoclose as $tag) $input .= \"</$tag>\";\n }\n\n return $input;\n }", "function fix_tags($html) {\n $result = \"\";\n $tag_stack = array();\n\n // these corrections can simplify the regexp used to parse tags\n // remove whitespaces before '/' and between '/' and '>' in autoclosing tags\n $html = preg_replace(\"#\\s*/\\s*>#is\",\"/>\",$html);\n // remove whitespaces between '<', '/' and first tag letter in closing tags\n $html = preg_replace(\"#<\\s*/\\s*#is\",\"</\",$html);\n // remove whitespaces between '<' and first tag letter \n $html = preg_replace(\"#<\\s+#is\",\"<\",$html);\n\n while (preg_match(\"#(.*?)(<([a-z\\d]+)[^>]*/>|<([a-z\\d]+)[^>]*(?<!/)>|</([a-z\\d]+)[^>]*>)#is\",$html,$matches)) {\n $result .= $matches[1];\n $html = substr($html, strlen($matches[0]));\n\n // Closing tag \n if (isset($matches[5])) { \n $tag = $matches[5];\n\n if ($tag == $tag_stack[0]) {\n // Matched the last opening tag (normal state) \n // Just pop opening tag from the stack\n array_shift($tag_stack);\n $result .= $matches[2];\n } elseif (array_search($tag, $tag_stack)) { \n // We'll never should close 'table' tag such way, so let's check if any 'tables' found on the stack\n $no_critical_tags = !array_search('table',$tag_stack);\n if (!$no_critical_tags) {\n $no_critical_tags = (array_search('table',$tag_stack) >= array_search($tag, $tag_stack));\n };\n\n if ($no_critical_tags) {\n // Corresponding opening tag exist on the stack (somewhere deep)\n // Note that we can forget about 0 value returned by array_search, becaus it is handled by previous 'if'\n \n // Insert a set of closing tags for all non-matching tags\n $i = 0;\n while ($tag_stack[$i] != $tag) {\n $result .= \"</{$tag_stack[$i]}> \";\n $i++;\n }; \n \n // close current tag\n $result .= \"</{$tag_stack[$i]}> \";\n // remove it from the stack\n array_splice($tag_stack, $i, 1);\n // if this tag is not \"critical\", reopen \"run-off\" tags\n $no_reopen_tags = array(\"tr\",\"td\",\"table\",\"marquee\",\"body\",\"html\");\n if (array_search($tag, $no_reopen_tags) === false) {\n while ($i > 0) {\n $i--;\n $result .= \"<{$tag_stack[$i]}> \";\n }; \n } else {\n array_splice($tag_stack, 0, $i);\n };\n };\n } else {\n // No such tag found on the stack, just remove it (do nothing in out case, as we have to explicitly \n // add things to result\n };\n } elseif (isset($matches[4])) {\n // Opening tag\n $tag = $matches[4];\n array_unshift($tag_stack, $tag);\n $result .= $matches[2];\n } else {\n // Autoclosing tag; do nothing specific\n $result .= $matches[2];\n };\n };\n\n // Close all tags left\n while (count($tag_stack) > 0) {\n $tag = array_shift($tag_stack);\n $result .= \"</\".$tag.\">\";\n }\n\n return $result;\n}", "function CloseTag() {\n\t\tif (!empty($this->tag)) {\n\t\t\tfor ($in=0;$in<$this->indent; $in++) {\n\t\t\t\t$this->outputCode.=\"\";\n\t\t\t}\n\t\t\tif (!empty($this->tag))\n\t\t\t$this->outputCode.=\"</\".$this->tag.\">\";\n\t\t}\n\t\t//$this->outputCode.=\"\\n\";\n\t\t$this->indent--;\n\t}", "private static function closetags ($html) {\n\t\t// put all opened tags into an array\n\t\tpreg_match_all ( \"#<([a-z]+)( .*)?(?!/)>#iU\", $html, $result );\n\t\t$openedtags = $result[1];\n\t\t// put all closed tags into an array\n\t\tpreg_match_all ( \"#</([a-z]+)>#iU\", $html, $result );\n\t\t$closedtags = $result[1];\n\t\t$len_opened = count ( $openedtags );\n\t\t// all tags are closed\n\t\tif(count($closedtags ) == $len_opened)\n\t\t\treturn $html;\n\t\t$openedtags = array_reverse ( $openedtags );\n\t\t// close tags\n\t\tfor( $i = 0; $i < $len_opened; $i++ ){\n\t\t\tif ( !in_array ( $openedtags[$i], $closedtags ) )\n\t\t\t\t$html .= \"</\" . $openedtags[$i] . \">\";\n\t\t\telse\n\t\t\t\tunset ( $closedtags[array_search ( $openedtags[$i], $closedtags)] );\n\t\t}\n\t\treturn $html;\n\t}", "function close_tag($tag, $pref, $nl)\n{\n tag($tag, 'close', $pref, $nl) ;\n}", "function CloseTags($html) {\n\t$html = preg_replace('/<[^>]*$/', '', $html); // ending with fraction of open tag\n\t// put open tags into an array\n\tpreg_match_all('#<([a-z]+)(?: .*)?(?<![/|/ ])>#iU', $html, $result);\n\t$opentags = $result[1];\n\t// put all closed tags into an array\n\tpreg_match_all('#</([a-z]+)>#iU', $html, $result);\n\t$closetags = $result[1];\n\t$len_opened = count($opentags);\n\t// if all tags are closed, we can return\n\tif (count($closetags) == $len_opened) {\n\t\treturn $html;\n\t}\n\t// close tags in reverse order that they were opened\n\t$opentags = array_reverse($opentags);\n\t// self closing tags\n\t$sc = array('br', 'input', 'img', 'hr', 'meta', 'link');\n\t// ,'frame','iframe','param','area','base','basefont','col'\n\t// should not skip tags that can have content inside!\n\tfor ($i = 0; $i < $len_opened; $i++) {\n\t\t$ot = strtolower($opentags[$i]);\n\t\tif (!in_array($opentags[$i], $closetags) && !in_array($ot, $sc)) {\n\t\t\t$html .= '</' . $opentags[$i] . '>';\n\t\t} else {\n\t\t\tunset($closetags[array_search($opentags[$i], $closetags)]);\n\t\t}\n\t}\n\treturn $html;\n}", "protected static function removeContentFromVoidElements(DOMDocument $ir)\n\t{\n\t\t$xpath = new DOMXPath($ir);\n\t\tforeach ($xpath->query('//element[@void=\"yes\"]') as $element)\n\t\t{\n\t\t\t$id = $element->getAttribute('id');\n\t\t\t$query = './/closeTag[@id=\"' . $id . '\"]/following-sibling::*';\n\t\t\tforeach ($xpath->query($query, $element) as $node)\n\t\t\t{\n\t\t\t\t$node->parentNode->removeChild($node);\n\t\t\t}\n\t\t}\n\t}", "public static function close_tags($html){\n\n \t#put all opened tags into an array\n \tpreg_match_all(\"#<([a-z]+)( .*)?(?!/)>#iU\",$html,$result);\n \t$openedtags=$result[1];\n\n \t#put all closed tags into an array\n \tpreg_match_all(\"#</([a-z]+)>#iU\",$html,$result);\n \t$closedtags=$result[1];\n \t$len_opened = count($openedtags);\n\n \t#all tags are closed\n \tif(count($closedtags) == $len_opened){\n \t\treturn $html;\n \t}\n \t$openedtags = array_reverse($openedtags);\n\n \t#close tags\n \tfor($i=0;$i < $len_opened;$i++) {\n \t\tif (!in_array($openedtags[$i],$closedtags)){\n \t\t\t$html .= '</'.$openedtags[$i].'>';\n \t\t} else {\n \t\t\tunset($closedtags[array_search($openedtags[$i],$closedtags)]);\n \t\t}\n \t}\n \treturn $html;\n }", "function non_DOM_deleteme($opening_tag_string) {\r\n\t\tpreg_match_all('/' . $opening_tag_string . '/is', $this->code, $matches, PREG_OFFSET_CAPTURE);\r\n\t\t$size = sizeof($matches[0]) - 1;\r\n\t\twhile($size > -1) {\r\n\t\t\tpreg_match('/<(\\w+)/is', $matches[0][$size][0], $tagname_matches);\r\n\t\t\t$tagname = $tagname_matches[1];\r\n\t\t\t$OString = OM::getOString($this->code, '<' . $tagname, '</' . $tagname . '>', $matches[0][$size][1]);\r\n\t\t\t$this->code = substr($this->code, 0, $matches[0][$size][1]) . substr($this->code, $matches[0][$size][1] + strlen($OString));\r\n\t\t\t$size--;\r\n\t\t}\r\n\t}", "function _tag_close( $parser, $tag )\n {\n $this->curtag = &$this->curtag->parent;\n }", "function close_tag($tag, $sample_html) {\n return preg_replace(\"!(<{$tag}(\\s[^>]*[^/>])?)>!si\",\"\\\\1/>\",$sample_html);\n}", "static function close_tags($content) {\n $position = 0;\n $open_tags = array();\n $ignored_tags = array('br', 'hr', 'img');\n\n while (($position = strpos($content, '<', $position)) !== FALSE)\n {\n if (preg_match(\"|^<(/?)([a-z\\d]+)\\b[^>]*>|i\", substr($content, $position), $match))\n {\n $tag = strtolower($match[2]);\n if (in_array($tag, $ignored_tags) == FALSE)\n {\n //тег открыт\n if (isset($match[1]) AND $match[1] == '')\n {\n if (isset($open_tags[$tag]))\n $open_tags[$tag]++;\n else\n $open_tags[$tag] = 1;\n }\n //тег закрыт\n if (isset($match[1]) AND $match[1] == '/')\n {\n if (isset($open_tags[$tag]))\n $open_tags[$tag]--;\n }\n }\n $position += strlen($match[0]);\n }\n else\n $position++;\n }\n\n foreach ($open_tags as $tag => $count_not_closed) {\n $content .= str_repeat(\"</{$tag}>\", $count_not_closed);\n }\n\n return $content;\n }", "public function closeFinalElements($depth)\n {\n // Failsafe tag closing. Driven by produced edge case.\n $divsToClose = $this->numberOfOpenElements('div', 'body');\n\n while ($divsToClose > 0)\n {\n // First close any open spans inside the div\n $this->closeOpenSpans('div', $depth);\n\n $this->addPageElement('</div>', $depth);\n $divsToClose--;\n }\n }", "protected static function addCloseTagElements(DOMDocument $ir)\n\t{\n\t\t$xpath = new DOMXPath($ir);\n\t\t$exprs = [\n\t\t\t'//applyTemplates[not(ancestor::attribute)]',\n\t\t\t'//comment',\n\t\t\t'//element',\n\t\t\t'//output[not(ancestor::attribute)]'\n\t\t];\n\t\tforeach ($xpath->query(implode('|', $exprs)) as $node)\n\t\t{\n\t\t\t$parentElementId = self::getParentElementId($node);\n\t\t\tif (isset($parentElementId))\n\t\t\t{\n\t\t\t\t$node->parentNode\n\t\t\t\t ->insertBefore($ir->createElement('closeTag'), $node)\n\t\t\t\t ->setAttribute('id', $parentElementId);\n\t\t\t}\n\n\t\t\t// Append a <closeTag/> to <element/> nodes to ensure that empty elements get closed\n\t\t\tif ($node->nodeName === 'element')\n\t\t\t{\n\t\t\t\t$id = $node->getAttribute('id');\n\t\t\t\tself::appendElement($node, 'closeTag')->setAttribute('id', $id);\n\t\t\t}\n\t\t}\n\t}", "function cleanup()\n {\n if (is_object( $this->roottag )) {\n $this->roottag->clear_subtags();\n }\n }", "private function remove_post_parse_conditionals($tags, $tagdata)\n\t{\n\t\t//--------------------------------------------\n\t\t//\tfirst find all if openers\n\t\t//--------------------------------------------\n\n\t\t//need a temp to work with\n\t\t$temp \t\t\t\t= $tagdata;\n\n\t\t$if_openers \t\t= array();\n\n\t\t$count = 0;\n\n\t\twhile ($temp = stristr($temp, LD . 'if'))\n\t\t{\n\t\t\t$count++;\n\n\t\t\t//we first have to find the proper end of the {if} tag\n\t\t\t$if_tag_pos \t= strpos($temp, RD, 0);\n\t\t\t$if_tag \t\t= substr($temp, 0, $if_tag_pos + 1);\n\n\t\t\t$inner_count = 0;\n\n\t\t\t//if we dont have an equal number of delimters...\n\t\t\twhile ( ! $this->equal_delimiters($if_tag))\n\t\t\t{\n\t\t\t\t$inner_count++;\n\n\t\t\t\t//we keep checking for the next right delmiter in line\n\t\t\t\t$if_tag_pos = strpos($temp, RD, $if_tag_pos + 1);\n\t\t\t\t$if_tag \t= substr($temp, 0, $if_tag_pos + 1);\n\n\t\t\t\tif ($inner_count > 1000) break;\n\t\t\t}\n\n\t\t\t$if_openers[] \t= $if_tag;\n\n\t\t\t//remove from temp so we can move on in the while loop\n\t\t\t$temp \t\t\t= substr($temp, strlen($if_tag));\n\n\t\t\tif ($count > 1000) break;\n\t\t}\n\n\t\t//--------------------------------------------\n\t\t//\treplace all items from if tags with\n\t\t//--------------------------------------------\n\n\t\t//keep a copy of old ones\n\t\t$original_ifs = $if_openers;\n\n\t\t//replace all tag names as the passed in hash (with pair tags)\n\t\tforeach ($tags as $tag => $hash)\n\t\t{\n\t\t\tforeach ($if_openers as $key => $value)\n\t\t\t{\n\t\t\t\t//--------------------------------------------\n\t\t\t\t//\tthis is complicated, but we have\n\t\t\t\t//\tto make sure no previous\n\t\t\t\t//\treplacements get double wrapped\n\t\t\t\t//--------------------------------------------\n\n\t\t\t\t$matches = array();\n\t\t\t\t$holders = array();\n\n\t\t\t\tif (preg_match_all(\n\t\t\t\t\t\"/\" . LD . 'count_hash_placeholder type=\"' . $tag . '\"' . RD . \"(.+?)\" .\n\t\t\t\t\t\t LD . preg_quote(T_SLASH, '/') . 'count_hash_placeholder' . RD . \"/s\",\n\t\t\t\t\t$if_openers[$key],\n\t\t\t\t\t$matches\n\t\t\t\t))\n\t\t\t\t{\n\t\t\t\t\tfor ($i = 0, $l = count($matches[0]); $i < $l; $i++)\n\t\t\t\t\t{\n\t\t\t\t\t\t$holder_hash \t\t\t= md5($matches[0][$i]);\n\t\t\t\t\t\t$holders[$holder_hash] \t= $matches[0][$i];\n\t\t\t\t\t\t$if_openers[$key] \t\t= str_replace(\n\t\t\t\t\t\t\t$matches[0][$i],\n\t\t\t\t\t\t\t$holder_hash,\n\t\t\t\t\t\t\t$if_openers[$key]\n\t\t\t\t\t\t);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t//fix any remaining\n\t\t\t\t$if_openers[$key] = str_replace($tag, $hash, $if_openers[$key]);\n\n\t\t\t\t//put any holders back in\n\t\t\t\tif ( ! empty($holders))\n\t\t\t\t{\n\t\t\t\t\tforeach($holders as $holder_hash => $held_data)\n\t\t\t\t\t{\n\t\t\t\t\t\t$if_openers[$key] = str_replace(\n\t\t\t\t\t\t\t$holder_hash,\n\t\t\t\t\t\t\t$held_data,\n\t\t\t\t\t\t\t$if_openers[$key]\n\t\t\t\t\t\t);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t//replace old if blocks with new ones\n\t\tforeach ($original_ifs as $key => $value)\n\t\t{\n\t\t\t$tagdata = str_replace($original_ifs[$key], $if_openers[$key], $tagdata);\n\t\t}\n\n\t\treturn $tagdata;\n\t}", "function parseIndesignXmlBreakTags(&$pXmlDom){\n\t$lXPaths = getBreakTagsXpaths();\n\tif( is_array( $lXPaths ) ){\n\t\t$lXpath = new DOMXPath($pXmlDom);\n\t\t$lXpath->registerNamespace('tp', 'TP_NAMESPACE_URL');\n\t\tforeach( $lXPaths as $lRuleId => $lRuleData ){\n\t\t\t$lCurrentXPath = $lRuleData['xpath'];\n\t\t\t$lXPathNodes = $lXpath->query($lCurrentXPath);\n\t\t\tfor( $i = $lXPathNodes->length - 1; $i >= 0; --$i ){\n\t\t\t\t$lParentNode = $lXPathNodes->item($i);\n\t\t\t\t$lTagQuery = './/' . SPLIT_TAG_NAME;\n\t\t\t\t$lNodesToSplit = $lXpath->query($lTagQuery, $lParentNode);\n\t\t\t\tfor( $j = $lNodesToSplit->length - 1; $j >= 0; --$j ){\n\t\t\t\t\t$lCurrentClimb = $lRuleData['climb_up'];\n\t\t\t\t\t$lCurrentSplitNode = $lNodesToSplit->item($j);\n\t\t\t\t\t$lCurrentNode = $lCurrentSplitNode;\n\t\t\t\t\t$lNewNode = null;\n\t\t\t\t\t$lSiblingFound = false;\n// \t\t\t\t\tvar_dump($lCurrentNode->ownerDocument->saveXML($lCurrentNode->parentNode));\n// \t\t\t\t\techo \"\\n\";\n\t\t\t\t\twhile($lCurrentNode && $lCurrentNode !== $lParentNode ){//Obikalqme nadolu po dyrvoto i slagame node-ovete v nov node\n\t\t\t\t\t\t$lNewParent = tagSplitProcessNodeLevel($pXmlDom, $lSiblingFound, $lNewNode, $lCurrentNode);\n\t\t\t\t\t}\n\n\t\t\t\t\twhile($lCurrentNode && $lCurrentNode->parentNode != $pXmlDom && $lCurrentClimb > 0){\n\t\t\t\t\t\t$lNewParent = tagSplitProcessNodeLevel($pXmlDom, $lSiblingFound, $lNewNode, $lCurrentNode);\n\t\t\t\t\t\t$lCurrentClimb--;\n\t\t\t\t\t}\n\t\t\t\t\t$lParent = $lCurrentNode->parentNode;\n\t\t\t\t\tif( $lNewNode && $lSiblingFound ){\n\t\t\t\t\t\t$lNextSibling = $lCurrentNode->nextSibling;\n\t\t\t\t\t\tif( $lNextSibling ){\n\t\t\t\t\t\t\t$lCurrentNode->parentNode->insertBefore( $lNewParent, $lNextSibling );\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t$lCurrentNode->parentNode->appendChild( $lNewParent );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n// \t\t\t\t\tvar_dump($lParent->ownerDocument->saveXML($lParent));\n// \t\t\t\t\techo \"\\n\\n\";\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t}\n\t//~ exit;\n}", "public function removeAllTags() {}", "function endElement($parser)\n\t{\n\t\t$this_element=array_peek($this->tag_stack);\n\t\tif (strpos($this_element,':')!==false)\n\t\t{\n\t\t\t$bits=explode(':',$this_element);\n\t\t\t$this_element=$bits[1];\n\t\t}\n\n\t\t$child_tempcode=array_pop($this->tempcode_stack);\n\t\t$parent_special_child_elements=array_pop($this->special_child_elements_stack);\n\t\tlist($tempcode,$aggregate)=$this->convertFinalisedElement($parser,$child_tempcode,$parent_special_child_elements);\n\n\t\tarray_pop($this->attribute_stack);\n\t\tarray_pop($this->tag_stack);\n\n\t\tif ($aggregate)\n\t\t{\n\t\t\t$parent_tempcode=array_pop($this->tempcode_stack);\n\t\t\t$parent_tempcode->attach($tempcode);\n\t\t\tarray_push($this->tempcode_stack,$parent_tempcode);\n\t\t}\n\n\t\tif (!array_key_exists($this_element,$parent_special_child_elements)) $parent_special_child_elements[$this_element]=array();\n\t\t$parent_special_child_elements[$this_element][]=$tempcode;\n\t\tarray_push($this->special_child_elements_stack,$parent_special_child_elements);\n\t}", "public function exitRemainingTags()\n {\n while (count($this->stack) > 0) {\n $this->handler->endTag(\n new ParsedTag(array_pop($this->stack))\n );\n }\n }", "private function tag_close($tag)\r\n\t{\r\n\t\tif(!$this->current_tag instanceof SBBCodeParser_Document\r\n\t\t\t&& $tag !== $this->current_tag->tag())\r\n\t\t{\r\n\t\t\t$closing_tags = $this->bbcodes[$this->current_tag->tag()]->closing_tags();\r\n\r\n\t\t\tif(in_array($tag, $closing_tags) || in_array('/' . $tag, $closing_tags))\r\n\t\t\t\t$this->current_tag = $this->current_tag->parent();\r\n\t\t}\r\n\t\t\r\n\t\tif($this->current_tag instanceof SBBCodeParser_Document)\r\n\t\t\treturn false;\r\n\t\telse if($tag !== $this->current_tag->tag())\r\n\t\t{\r\n\t\t\t// check if this is a tag inside another tag like\r\n\t\t\t// [tag1] [tag2] [/tag1] [/tag2]\r\n\t\t\t$node = $this->current_tag->find_parent_by_tag($tag);\r\n\t\t\t\r\n\t\t\tif($node !== null)\r\n\t\t\t{\r\n\t\t\t\t$this->current_tag = $node->parent();\r\n\r\n\t\t\t\twhile(($node = $node->last_tag_node()) !== null)\r\n\t\t\t\t{\r\n\t\t\t\t\t$new_node = new SBBCodeParser_TagNode($node->tag(), $node->attributes());\r\n\t\t\t\t\t$this->current_tag->add_child($new_node);\r\n\t\t\t\t\t$this->current_tag = $new_node;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t\treturn false;\r\n\t\t}\r\n\t\telse\r\n\t\t\t$this->current_tag = $this->current_tag->parent();\r\n\t\t\r\n\t\treturn true;\r\n\t}", "private function remove_self_closing_tags() {\n\t\tadd_filter('get_avatar', [$this, 'remove_self_closing_tag']); // <img]/>\n\t\tadd_filter('comment_id_fields', [$this, 'remove_self_closing_tag']); // <input]/>\n\t\tadd_filter('post_thumbnail_html', [$this, 'remove_self_closing_tag']); // <img]/>\n\t}", "public static function globalNestingCorrectlyRemovesInvalidTagsDataProvider() {}", "private function closeCell()\n {\n foreach (array('td', 'th') as $cell) {\n if ($this->elementInScope($cell, true)) {\n $this->inCell(\n array(\n 'name' => $cell,\n 'type' => HTML5::ENDTAG\n )\n );\n\n break;\n }\n }\n }" ]
[ "0.72866106", "0.66072524", "0.6055605", "0.58405507", "0.5448554", "0.5283044", "0.5242055", "0.5218853", "0.51520705", "0.51228154", "0.5106945", "0.5074594", "0.50596285", "0.5026581", "0.50017005", "0.4977968", "0.49723285", "0.49678448", "0.49475035", "0.49374795", "0.49055687", "0.49007156", "0.4896471", "0.4884576", "0.48633018", "0.48606297", "0.48349598", "0.4828745", "0.48261788", "0.4812901" ]
0.68146527
1
Remove empty default cases (no test and no descendants)
protected static function removeEmptyDefaultCases(DOMDocument $ir) { $xpath = new DOMXPath($ir); foreach ($xpath->query('//case[not(@test | node())]') as $case) { $case->parentNode->removeChild($case); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function DOM_delete_empty_attributes() {\r\n\t\t$query = '//' . ReTidy::get_html_namespace() . '*[@*=\"\"]';\r\n\t\t$tags_with_empty_attribute = $this->xpath->query($query);\r\n\t\tforeach($tags_with_empty_attribute as $tag) {\r\n\t\t\t$tagName = $tag->nodeName;\r\n\t\t\t$array_attributes = DTD::getAttributesForElementByType($tagName, \"#IMPLIED\");\r\n\t\t\tforeach($tag->attributes as $attribute) {\r\n\t\t\t\tif(strlen($attribute->nodeValue) === 0) {\r\n\t\t\t\t\tforeach($array_attributes as $attribute2){\r\n\t\t\t\t\t\tif($attribute->nodeName === $attribute2) {\r\n\t\t\t\t\t\t\t$attribute->nodeValue = \"XXX9o9stripme9o9XXX\";\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public function testDefault() {\n\t\t\t$builder = new StringBuilder();\n\t\t\t$this->assertEquals(\"\", $builder->__toString());\n\t\t\tunset($builder);\n\t\t}", "public function testRemoveDefault() : void\n {\n $reflex = new \\ReflectionClass($this->getTestedInstance());\n $instance = $reflex->newInstanceWithoutConstructor();\n\n $hasDefault = $reflex->getProperty('hasDefault');\n $hasDefault->setAccessible(true);\n\n $default = $reflex->getProperty('default');\n $default->setAccessible(true);\n\n $hasDefault->setValue($instance, true);\n $default->setValue($instance, new \\stdClass());\n\n $this->getTestCase()->assertSame($instance, $instance->removeDefault(null));\n $this->getTestCase()->assertFalse($hasDefault->getValue($instance));\n $this->getTestCase()->assertNull($default->getValue($instance));\n\n return;\n }", "public function testWithAllTagsEmpty(): void\n {\n /** @var Collection $models */\n $models = TestModel::withAllTags('')->get();\n\n self::assertEmpty($models);\n }", "public function testWithAnyTagsEmpty(): void\n {\n /** @var Collection $models */\n $models = TestModel::withAnyTags('')->get();\n\n self::assertEmpty($models);\n }", "protected static function addDefaultCase(DOMDocument $ir)\n\t{\n\t\t$xpath = new DOMXPath($ir);\n\t\tforeach ($xpath->query('//switch[not(case[not(@test)])]') as $switch)\n\t\t{\n\t\t\tself::appendElement($switch, 'case');\n\t\t}\n\t}", "private function getDefaultSkipSelectors() {\n $skipselectors = $this->getSkipSelectors();\n return reset($skipselectors);\n }", "public function testIgnoreDefault()\n {\n $jsValidator = $this->app['jsvalidator']->make([]);\n\n $this->assertArrayHasKey('ignore', $jsValidator->toArray());\n $this->assertEquals(\":hidden, [contenteditable='true']\", $jsValidator->toArray()['ignore']);\n }", "public function testGetStepsWithDefaultCase()\n {\n $entity = (new EntityDataObjectBuilder())\n ->withDataFields(['field1' => 'testValue'])\n ->build();\n $this->setEntityObjectHandlerReturn($entity);\n $actionGroupUnderTest = (new ActionGroupObjectBuilder())->build();\n $steps = $actionGroupUnderTest->getSteps(null, self::ACTION_GROUP_MERGE_KEY);\n $this->assertOnMergeKeyAndActionValue($steps, ['userInput' => 'literal']);\n }", "public function purgeDefault(): void;", "function _twig_default_filter($value, $default = '')\n{\n if (twig_test_empty($value)) {\n return $default;\n }\n return $value;\n}", "function noop()\n {\n }", "function i_want_no_generators()\r\n{\r\n \t\treturn '';\r\n\t}", "public function test_extract_empty()\n {\n $method = new ExtractElementTextPattern($this->selectorProvider->get($this->noItemsCssSelector), [\n 'pattern' => $this->validCorrectPattern\n ]);\n $value = $method->extract($this->crawler);\n $this->assertEquals('', $value);\n }", "public function testExtractWithNoDefaultDomainAfterDefaultDomainExtraction()\n {\n $this->testExtractWithDefaultDomain();\n $this->testExtract();\n }", "public function test_extract_empty_no_match_pattern()\n {\n $method = new ExtractElementTextPattern($this->selectorProvider->get($this->itemCssSelector), [\n 'pattern' => $this->validNoMatchPattern\n ]);\n $value = $method->extract($this->crawler);\n $this->assertEquals('', $value);\n }", "function noop() {\n}", "protected function defaultEmptyChoice()\n {\n return [\n 'value' => '',\n 'label' => $this->translator()->translation('— None —')\n ];\n }", "public function testMissingParametersRemoveChecks() {\n $this->pingdom->removeChecks(null);\n }", "public function test_empty()\n {\n\n }", "protected function clearNoneHumanTags()\n {\n $filter = $this->DOM->filter('script');\n\n $filter->each(function (Crawler $crawler) {\n foreach ($crawler as $node) {\n $node->parentNode->removeChild($node);\n }\n });\n }", "public function testGetSegmentsDefault(): void\n {\n self::assertNull($this->class->getSegments());\n }", "function strip_empty_classes($menu)\n{\n $menu = preg_replace('/ class=\"\"| class=\"sub-menu\"/', '', $menu);\n return $menu;\n}", "public function testGroupSkipWithMissingGroups()\n {\n $parsedData = $this\n ->useSortFixer\n ->setGroups(['Test1', 'TestEmpty1', ['TestEmpty2', 'TestEmpty3'], '_main'])\n ->setSortType(UseSortFixer::SORT_TYPE_ALPHABETIC)\n ->setSortDirection(UseSortFixer::SORT_DIRECTION_ASC)\n ->setGroupType(UseSortFixer::GROUP_TYPE_EACH)\n ->setGroupSkipEmpty(true)\n ->fix($this->data);\n\n $result =\n '<?php\n\n/**\n * Copyright\n */\n\nnamespace PHPFormatter\\\\Tests\\\\Mocks;\n\nuse Test1\\\\Myclass1;\nuse Test1\\\\Myclass2;\nuse Test1\\\\MyFolder5\\\\File as MyFile;\nuse Test2\\\\Myclass3;\nuse Test2\\\\Myclass4;\nuse Test3\\\\File;\nuse Test3\\\\MyFolder\\\\Myclass;\nuse Test4\\\\Myclass3;\n\n/**\n * Class SimpleMock\n */\nclass SimpleMock\n{}';\n\n $this->assertEquals(\n $result,\n $parsedData\n );\n }", "public function testWithoutAllTags(): void\n {\n /** @var Collection $models */\n $models = TestModel::withoutAllTags('Apple,Banana')->get();\n $keys = $models->modelKeys();\n\n self::assertArrayValuesAreEqual(\n [\n $this->testModel2->getKey(),\n $this->testModel5->getKey(),\n $this->testModel6->getKey(),\n $this->testModel7->getKey(),\n ],\n $keys\n );\n }", "public function testMissingParametersRemoveCheck() {\n $this->pingdom->removeCheck(null);\n }", "protected function removeDefaults()\n {\n \\remove_action('wp_head', 'print_emoji_detection_script', 7);\n \\remove_action('admin_print_scripts', 'print_emoji_detection_script');\n \\remove_action('wp_print_styles', 'print_emoji_styles');\n \\remove_action('admin_print_styles', 'print_emoji_styles');\n }", "public function noop()\n {\n }", "public function findDefault();", "function _ut_remove_default_vc_templates( $data ) {\r\n \r\n $data = array();\r\n \r\n return $data;\r\n \r\n}" ]
[ "0.59448594", "0.59151983", "0.55785483", "0.5568801", "0.5562449", "0.5528167", "0.5525032", "0.5470483", "0.5438268", "0.5404257", "0.5386804", "0.53515357", "0.5347305", "0.534641", "0.5343738", "0.53075516", "0.5287495", "0.5277462", "0.5238994", "0.52094066", "0.5206525", "0.52006423", "0.51807815", "0.5177867", "0.51412505", "0.5137445", "0.5128129", "0.5111315", "0.51052535", "0.5104418" ]
0.7284329
0
Merge consecutive literal outputs
protected static function mergeConsecutiveLiteralOutputElements(DOMDocument $ir) { $xpath = new DOMXPath($ir); foreach ($xpath->query('//output[@type="literal"]') as $output) { while ($output->nextSibling && $output->nextSibling->nodeName === 'output' && $output->nextSibling->getAttribute('type') === 'literal') { $output->nodeValue = htmlspecialchars($output->nodeValue . $output->nextSibling->nodeValue); $output->parentNode->removeChild($output->nextSibling); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function doConcatenate() {}", "function Concat() {}", "public function combineElements(){\n\t\t// If label has been set to be omitted, skip.\n\t\tif($this->elements['label'] !== false){\n\t\t\t// If label has not yet been created, create a default format wrapper.\n\t\t\tif($this->elements['label'] === ''){\n\t\t\t\t$this->elements['label'] = Html::label($this->displayName, $this->name, ['class' => $this->getDefaultClass('label')]);\n\t\t\t}\n\t\t}\n\t\t$html = '';\n\t\tforeach($this->elementOrder as $order){\n\t\t\tif($this->elements[$order] !== false && $order !== 'wrap'){\n\t\t\t\t$html .=$this->elements[$order];\n\t\t\t}\n\t\t}\n\t\t// If wrapper has been set to be omitted, skip.\n\t\tif($this->elements['wrap'] !== false){\n\t\t\t$html = Html::div($html, $this->wrapAttributes);\n\t\t}\n\t\treturn $html;\n\t}", "public function merge($values): Sequence;", "static public function merge($templates, $separator = \"\\n\")\r\n {\r\n $output = \"\";\r\n\r\n foreach ($templates as $template) {\r\n $content = (get_class($template) !== \"Template\")\r\n ? \"Error, incorrect type - expected Template.\"\r\n : $template->output();\r\n $output .= $content . $separator;\r\n }\r\n\r\n return $output;\r\n }", "public function output(){\n // then use ExpandManiPulator::union($hotelsArray)\n }", "public function union(): self;", "public function merge();", "function _doLiteralBlock($value,$indent) {\n\t$exploded = explode(\"\\n\",$value);\n\t$newValue = '|';\n\t$indent += $this->_dumpIndent;\n\t$spaces = str_repeat(' ',$indent);\n\tforeach ($exploded as $line) {\n\t\t$newValue .= \"\\n\" . $spaces . trim($line);\n\t}\n\treturn $newValue;\n\t}", "public function merge() {}", "function venus_structural_wrap( $output, $original_output ) {\n\n\tswitch ( $original_output ) {\n\t\tcase 'open':\n\t\t\t$output = '<div class=\"container\"><div class=\"row\">';\n\t\t\tbreak;\n\t\tcase 'close':\n\t\t\t$output = '</div></div>';\n\t\t\tbreak;\n\t}\n\n\treturn $output;\n}", "function finalize()\n {\n\n // get parent's output\n parent::finalize();\n $output = parent::getOutput();\n\n $bb_output = '';\n\n $color_start = $this->_tag_brackets['start'] . $this->_bb_tags['color'] . '=%s' . $this->_tag_brackets['end'];\n $color_end = $this->_tag_brackets['start'] . '/' . $this->_bb_tags['color'] . $this->_tag_brackets['end'];\n\n // loop through each class=>content pair\n foreach ($output AS $token) {\n\n if ($this->_enumerated) {\n $class = $token[0];\n $content = $token[1];\n } else {\n $key = key($token);\n $class = $key;\n $content = $token[$key];\n }\n\n $iswhitespace = ctype_space($content);\n if (!$iswhitespace && !empty($this->_colors[$class])) {\n $bb_output .= sprintf($color_start, $this->_colors[$class]);\n $bb_output .= $content;\n $bb_output .= $color_end;\n } else {\n $bb_output .= $content;\n }\n }\n\n if ($this->_numbers) {\n\n $item_tag = $this->_tag_brackets['start'] .\n $this->_bb_tags['list_item'] .\n $this->_tag_brackets['end'];\n $this->_output = $item_tag . str_replace(\"\\n\", \"\\n\". $item_tag .' ', $bb_output);\n $this->_output = $this->_tag_brackets['start'] .\n $this->_bb_tags['list'] .\n $this->_tag_brackets['end'] .\n $this->_output .\n $this->_tag_brackets['start'] .\n '/'.\n $this->_bb_tags['list'] .\n $this->_tag_brackets['end']\n ;\n } else {\n $this->_output = $this->_tag_brackets['start'] .\n $this->_bb_tags['code'] .\n $this->_tag_brackets['end'] .\n $bb_output .\n $this->_tag_brackets['start'] .\n '/' .\n $this->_bb_tags['code'] .\n $this->_tag_brackets['end'];\n }\n }", "protected function combineOutputGroups($assetList, $type)\n {\n if ($type == Asset::SCRIPT) {\n $outputPathTemplate = $this->config->outputPath . '/cache/{filename}.js';\n $inlineTeplate = '<script type=\"text/javascript\">{contents}</script>';\n $declarationTemplate = '<script type=\"text/javascript\" src=\"{assetName}\"></script>';\n } elseif ($type == Asset::STYLE) {\n $outputPathTemplate = $this->config->outputPath . '/cache/{filename}.css';\n $inlineTeplate = '<style>{contents}</style>';\n $declarationTemplate = '<link media=\"screen\" type=\"text/css\" rel=\"stylesheet\" href=\"{assetName}\"/>';\n }\n\n $result = '';\n\n $assetGroups = [];\n $groupIndex = 0;\n foreach ($assetList as $assetName) {\n $asset = $this->assets[$assetName];\n if ($asset->canCombine() && !$asset->isExternal() && !$asset->isInline()) {\n if (!isset($assetGroups[$groupIndex])) {\n $assetGroups[$groupIndex] = [];\n }\n $assetGroups[$groupIndex][] = $assetName;\n } else {\n $groupIndex++;\n $assetGroups[$groupIndex] = $assetName;\n $groupIndex++;\n }\n }\n\n\n foreach ($assetGroups as $group) {\n if (is_array($group)) {\n $groupTime = 0;\n foreach ($group as $assetName) {\n $assetTime = $this->assets[$assetName]->getSourceTime();\n if ($assetTime > $groupTime) {\n $groupTime = $assetTime;\n }\n }\n $groupFileName = self::calculateCombinedName($group, $groupTime);\n $assetPath = str_replace('{filename}', $groupFileName, $outputPathTemplate);\n\n if (!file_exists($assetPath)) {\n $contents = '';\n foreach ($group as $assetName) {\n $this->assets[$assetName]->load();\n if ($this->minify && $this->assets[$assetName]->canMinify()) {\n $this->assets[$assetName]->minify();\n }\n if ($this->assets[$assetName]->getType() == Asset::SCRIPT) {\n $separator = \";\\n\";\n } else {\n $separator = \"\\n\";\n }\n $contents .= $this->assets[$assetName]->getData() . $separator;\n }\n\n self::writeFile($assetPath, $contents); //write the uncompressed file\n if ($this->gzip) {\n self::writeFile($assetPath . '.gz', gzencode($contents)); //write the compressed version\n }\n self::cleanup($assetPath);\n }\n $result .= str_replace('{assetName}', self::unroot($assetPath), $declarationTemplate);\n\n } else if (is_string($group)) {\n //Debug::log($group,'is string');\n $asset = $this->assets[$group];\n $assetName = $asset->getName();\n if ($asset->isExternal()) {\n $result .= str_replace('{assetName}', $assetName, $declarationTemplate);\n //$result.='<script type=\"text/javascript\" src=\"'.$assetName.'\"></script>';\n } else if ($asset->isInline()) {\n $asset->load();\n if ($this->minify && $asset->canMinify()) {\n $asset->minify();\n }\n $result .= str_replace('{contents}', $asset->getData(), $inlineTeplate);\n //$result.='<script type=\"text/javascript\">'.$asset->getData().'</script>';\n } else {\n $assetTime = $asset->getSourceTime();\n $assetPath = str_replace('{filename}', self::calculateCombinedName([$assetName], $assetTime), $outputPathTemplate);\n if (!file_exists($assetPath)) {\n $asset->load();\n if ($this->minify && $asset->canMinify()) {\n $asset->minify();\n }\n self::writeFile($assetPath, $asset->getData());\n if ($this->gzip) {\n self::writeFile($assetPath . '.gz', gzencode($asset->getData())); //write the compressed version\n }\n }\n $result .= str_replace('{assetName}', self::unroot($assetPath), $declarationTemplate);\n }\n }\n }\n return $result;\n }", "protected static function combined ()\n {\n $numbers = implode(\"\", static::$numbers);\n return $numbers;\n }", "public function multipleReturnTags() {\n }", "function code_generate($extracted)\n{\n $result = fill_zeroes_dots();\n\n put_front($extracted[0], $result, 0);\n\n if (isset($extracted[1])) {\n put_end($extracted[1], $result, 0);\n }\n\n if (isset($extracted[2])) {\n put_front($extracted[2], $result, 1);\n }\n\n if (isset($extracted[3]) && isset($extracted[4])) {\n put_front($extracted[3] . $extracted[4], $result, 2);\n } elseif (isset($extracted[3])) {\n put_front($extracted[3], $result, 2);\n }\n\n if (isset($extracted[5]) && isset($extracted[6])) {\n put_front($extracted[5] . $extracted[6], $result, 3);\n } elseif (isset($extracted[5])) {\n put_front($extracted[5], $result, 3);\n }\n\n return $result;\n}", "public function getConcatenateJavascript() {}", "private function return_all(){\n\t\t$attributes=\"\";\n\t\tforeach($this->attr as $attr=>$val){\n\t\t\t$attributes.= (string)$attr.\"='\".preg_replace(\"/'/si\",\"\\'\",$val).\"' \";\n\t\t}\n\t\tif(!$this->self_closing){\n\t\t\t$content=\"\";\n\t\t\tforeach($this->content as $data){\n\t\t\t\t$content.=(string)$data;\n\t\t\t}\n\t\t\treturn \"<\".$this->type.\" \".$attributes.\">\".$content.\"</\".$this->type.\">\";\n\t\t}\n\t\telse{\n\t\t\treturn \"<\".$this->type.\" \".$attributes.\"/>\";\n\t\t}\n\t}", "public function union($values);", "public function compileOutput() {\n\t\t$output = array();\n\n\t\tfor ($this->rewind(); $this->valid(); $this->next()) {\n\t\t\t$templateCollection = $this->current();\n\n\t\t\t/* For every template instance, get its constituent data objects\n\t\t\t * and format output content accordingly\n\t\t\t */\n\t\t\tfor ($templateCollection->rewind(); $templateCollection->valid(); $templateCollection->next()) {\n\t\t\t\t$output[] = '<li style=\"outline:1px solid #f00;margin-bottom:16px\">' . $templateCollection->current()->compileOutput()->getCompiledOutput() . \"</li>\\n\";\n\t\t\t}\n\t\t}\n\n\t\t$compiled = \"<ul id='componentsEditable'>\\n\" . implode('', $output) . '</ul>';\n\n\t\t$this->setCompiledOutput($compiled);\n\n\t\treturn $this;\n\t}", "protected abstract function get_union();", "function yy_r148(){$this->_retvalue = '||'; }", "public function output()\n\t{\n\t\t$this->do_tags();\n\n\t\t$this->final_output = '';\n\n\t\tforeach ($this->merged as $block)\n\t\t{\n\t\t\t$this->final_output .= $block;\n\t\t}\n\n\t\t$this->last_file = '';\n\t\t$this->values = array();\n\t\t$this->files = array();\n\t\t$this->merged = array();\n\n\t\t// the final template all put together\n\t\treturn $this->final_output;\n\t}", "public function getCombinedText() { // returns String\n\n\t\treturn StringUtils.join( $this->text,\"\\n\");\n\t}", "public static function operator··concat(self $self, $args) {\n return new self($self->buffer.$args);\n }", "function intermediate() {}", "function yy_r32()\n {\n $this->_retvalue = 'ob_start(); ' . $this->compiler->compileTag($this->yystack[$this->yyidx + - 4]->minor, $this->yystack[$this->yyidx + 0]->minor, array('object_method' => $this->yystack[$this->yyidx + - 2]->minor)) . ' echo ';\n $this->_retvalue .= $this->compiler->compileTag('Internal_Modifier', array(), array('modifier_list' => $this->yystack[$this->yyidx + - 1]->minor, 'value' => 'ob_get_clean()')) . ';';\n }", "function __replaceWithNewlines() {\n\t\t$args = func_get_args();\n\t\t$numLineBreaks = count(explode(\"\\n\", $args[0][0]));\n\t\treturn str_pad('', $numLineBreaks - 1, \"\\n\");\n\t}", "protected function doConcatenateJavaScript() {}", "protected static function _combineMinify()\n {\n $type = self::$_options['contentType']; // ease readability\n\n // when combining scripts, make sure all statements separated and\n // trailing single line comment is terminated\n $implodeSeparator = ($type === self::TYPE_JS)\n ? \"\\n;\"\n : '';\n // allow the user to pass a particular array of options to each\n // minifier (designated by type). source objects may still override\n // these\n $defaultOptions = isset(self::$_options['minifierOptions'][$type])\n ? self::$_options['minifierOptions'][$type]\n : array();\n // if minifier not set, default is no minification. source objects\n // may still override this\n $defaultMinifier = isset(self::$_options['minifiers'][$type])\n ? self::$_options['minifiers'][$type]\n : false;\n\n // process groups of sources with identical minifiers/options\n $content = array();\n $originalLength = 0;\n $i = 0;\n $l = count(self::$_controller->sources);\n $groupToProcessTogether = array();\n $lastMinifier = null;\n $lastOptions = null;\n do {\n // get next source\n $source = null;\n if ($i < $l) {\n $source = self::$_controller->sources[$i];\n /* @var Minify_Source $source */\n $sourceContent = $source->getContent();\n $originalLength += strlen($sourceContent);\n\n // allow the source to override our minifier and options\n $minifier = (null !== $source->minifier)\n ? $source->minifier\n : $defaultMinifier;\n $options = (null !== $source->minifyOptions)\n ? array_merge($defaultOptions, $source->minifyOptions)\n : $defaultOptions;\n }\n // do we need to process our group right now?\n if ($i > 0 // yes, we have at least the first group populated\n && (\n ! $source // yes, we ran out of sources\n || $type === self::TYPE_CSS // yes, to process CSS individually (avoiding PCRE bugs/limits)\n || $minifier !== $lastMinifier // yes, minifier changed\n || $options !== $lastOptions) // yes, options changed\n )\n {\n // minify previous sources with last settings\n $imploded = implode($implodeSeparator, $groupToProcessTogether);\n $groupToProcessTogether = array();\n if ($lastMinifier) {\n try {\n $content[] = call_user_func($lastMinifier, $imploded, $lastOptions);\n } catch (Exception $e) {\n throw new Exception(\"Exception in minifier: \" . $e->getMessage());\n }\n } else {\n $content[] = $imploded;\n }\n }\n // add content to the group\n if ($source) {\n $groupToProcessTogether[] = $sourceContent;\n $lastMinifier = $minifier;\n $lastOptions = $options;\n }\n $i++;\n } while ($source);\n\n $content = implode($implodeSeparator, $content);\n\n if ($type === self::TYPE_CSS && false !== strpos($content, '@import')) {\n $content = self::_handleCssImports($content);\n }\n\n // do any post-processing (esp. for editing build URIs)\n if (self::$_options['postprocessorRequire']) {\n require_once self::$_options['postprocessorRequire'];\n }\n if (self::$_options['postprocessor']) {\n $content = call_user_func(self::$_options['postprocessor'], $content, $type);\n }\n return array(\n 'originalLength' => $originalLength,\n 'content' => $content\n );\n }" ]
[ "0.5887143", "0.5321979", "0.5116004", "0.50672644", "0.5006088", "0.49996817", "0.49714223", "0.48260334", "0.482215", "0.4798068", "0.47693834", "0.46880874", "0.4675969", "0.46664405", "0.45924115", "0.4580253", "0.45795926", "0.45580733", "0.45567375", "0.45513538", "0.44949347", "0.44831896", "0.4477676", "0.44610956", "0.44278044", "0.4408778", "0.44034085", "0.437", "0.43658403", "0.43635178" ]
0.671007
0
Clone closeTag elements that follow a switch into said switch If there's a right after a , clone the at the end of the every that does not end with a
protected static function cloneCloseTagElementsIntoSwitch(DOMDocument $ir) { $xpath = new DOMXPath($ir); $query = '//switch[name(following-sibling::*) = "closeTag"]'; foreach ($xpath->query($query) as $switch) { $closeTag = $switch->nextSibling; foreach ($switch->childNodes as $case) { if (!$case->lastChild || $case->lastChild->nodeName !== 'closeTag') { $case->appendChild($closeTag->cloneNode()); } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected static function cloneCloseTagElementsOutOfSwitch(DOMDocument $ir)\n\t{\n\t\t$xpath = new DOMXPath($ir);\n\t\t$query = '//switch[not(preceding-sibling::closeTag)]';\n\t\tforeach ($xpath->query($query) as $switch)\n\t\t{\n\t\t\tforeach ($switch->childNodes as $case)\n\t\t\t{\n\t\t\t\tif (!$case->firstChild || $case->firstChild->nodeName !== 'closeTag')\n\t\t\t\t{\n\t\t\t\t\t// This case is either empty or does not start with a <closeTag/> so we skip\n\t\t\t\t\t// to the next <switch/>\n\t\t\t\t\tcontinue 2;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Insert the first child of the last <case/>, which should be the same <closeTag/>\n\t\t\t// as every other <case/>\n\t\t\t$switch->parentNode->insertBefore($switch->lastChild->firstChild->cloneNode(), $switch);\n\t\t}\n\t}", "protected static function removeRedundantCloseTagElementsInSwitch(DOMDocument $ir)\n\t{\n\t\t$xpath = new DOMXPath($ir);\n\t\t$query = '//switch[name(following-sibling::*) = \"closeTag\"]';\n\t\tforeach ($xpath->query($query) as $switch)\n\t\t{\n\t\t\tforeach ($switch->childNodes as $case)\n\t\t\t{\n\t\t\t\twhile ($case->lastChild && $case->lastChild->nodeName === 'closeTag')\n\t\t\t\t{\n\t\t\t\t\t$case->removeChild($case->lastChild);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "protected static function removeCloseTagSiblings(DOMDocument $ir)\n\t{\n\t\t$xpath = new DOMXPath($ir);\n\t\t$query = '//switch[not(case[not(closeTag)])]/following-sibling::closeTag';\n\t\tforeach ($xpath->query($query) as $closeTag)\n\t\t{\n\t\t\t$closeTag->parentNode->removeChild($closeTag);\n\t\t}\n\t}", "function closetags($html) {\n\t\tpreg_match_all('#<([a-z]+)(?: .*)?(?<![/|/ ])>#iU', $html, $result);\n\t\t$openedtags = $result[1]; #put all closed tags into an array\n\t\tpreg_match_all('#</([a-z]+)>#iU', $html, $result);\n\t\t$closedtags = $result[1];\n\t\t$len_opened = count($openedtags);\n\t\t# all tags are closed\n\t\tif (count($closedtags) == $len_opened) {\n\t\t\treturn $html;\n\t\t}\n\t\t\n\t\t$openedtags = array_reverse($openedtags);\n\t\t# close tags\n\t\tfor ($i=0; $i < $len_opened; $i++) {\n\t\t\tif (!in_array($openedtags[$i], $closedtags)){\n\t\t\t $html .= '</'.$openedtags[$i].'>';\n\t\t\t} else {\n\t\t\t unset($closedtags[array_search($openedtags[$i], $closedtags)]); }\n\t\t\t} \n\t\t\treturn $html;\n\t\t}", "private static function closetags ($html) {\n\t\t// put all opened tags into an array\n\t\tpreg_match_all ( \"#<([a-z]+)( .*)?(?!/)>#iU\", $html, $result );\n\t\t$openedtags = $result[1];\n\t\t// put all closed tags into an array\n\t\tpreg_match_all ( \"#</([a-z]+)>#iU\", $html, $result );\n\t\t$closedtags = $result[1];\n\t\t$len_opened = count ( $openedtags );\n\t\t// all tags are closed\n\t\tif(count($closedtags ) == $len_opened)\n\t\t\treturn $html;\n\t\t$openedtags = array_reverse ( $openedtags );\n\t\t// close tags\n\t\tfor( $i = 0; $i < $len_opened; $i++ ){\n\t\t\tif ( !in_array ( $openedtags[$i], $closedtags ) )\n\t\t\t\t$html .= \"</\" . $openedtags[$i] . \">\";\n\t\t\telse\n\t\t\t\tunset ( $closedtags[array_search ( $openedtags[$i], $closedtags)] );\n\t\t}\n\t\treturn $html;\n\t}", "public function moveTagFromEndToTheMiddle() {}", "function restoreTags($input)\n {\n $opened = array();\n\n // loop through opened and closed tags in order\n if(preg_match_all(\"/<(\\/?[a-z]+)>?/i\", $input, $matches)) {\n foreach($matches[1] as $tag) {\n if(preg_match(\"/^[a-z]+$/i\", $tag, $regs)) {\n // a tag has been opened\n if(strtolower($regs[0]) != 'br') $opened[] = $regs[0];\n } elseif(preg_match(\"/^\\/([a-z]+)$/i\", $tag, $regs)) {\n // a tag has been closed\n unset($opened[array_pop(array_keys($opened, $regs[1]))]);\n }\n }\n }\n\n // close tags that are still open\n if($opened) {\n $tagstoclose = array_reverse($opened);\n foreach($tagstoclose as $tag) $input .= \"</$tag>\";\n }\n\n return $input;\n }", "function parseIndesignXmlBreakTags(&$pXmlDom){\n\t$lXPaths = getBreakTagsXpaths();\n\tif( is_array( $lXPaths ) ){\n\t\t$lXpath = new DOMXPath($pXmlDom);\n\t\t$lXpath->registerNamespace('tp', 'TP_NAMESPACE_URL');\n\t\tforeach( $lXPaths as $lRuleId => $lRuleData ){\n\t\t\t$lCurrentXPath = $lRuleData['xpath'];\n\t\t\t$lXPathNodes = $lXpath->query($lCurrentXPath);\n\t\t\tfor( $i = $lXPathNodes->length - 1; $i >= 0; --$i ){\n\t\t\t\t$lParentNode = $lXPathNodes->item($i);\n\t\t\t\t$lTagQuery = './/' . SPLIT_TAG_NAME;\n\t\t\t\t$lNodesToSplit = $lXpath->query($lTagQuery, $lParentNode);\n\t\t\t\tfor( $j = $lNodesToSplit->length - 1; $j >= 0; --$j ){\n\t\t\t\t\t$lCurrentClimb = $lRuleData['climb_up'];\n\t\t\t\t\t$lCurrentSplitNode = $lNodesToSplit->item($j);\n\t\t\t\t\t$lCurrentNode = $lCurrentSplitNode;\n\t\t\t\t\t$lNewNode = null;\n\t\t\t\t\t$lSiblingFound = false;\n// \t\t\t\t\tvar_dump($lCurrentNode->ownerDocument->saveXML($lCurrentNode->parentNode));\n// \t\t\t\t\techo \"\\n\";\n\t\t\t\t\twhile($lCurrentNode && $lCurrentNode !== $lParentNode ){//Obikalqme nadolu po dyrvoto i slagame node-ovete v nov node\n\t\t\t\t\t\t$lNewParent = tagSplitProcessNodeLevel($pXmlDom, $lSiblingFound, $lNewNode, $lCurrentNode);\n\t\t\t\t\t}\n\n\t\t\t\t\twhile($lCurrentNode && $lCurrentNode->parentNode != $pXmlDom && $lCurrentClimb > 0){\n\t\t\t\t\t\t$lNewParent = tagSplitProcessNodeLevel($pXmlDom, $lSiblingFound, $lNewNode, $lCurrentNode);\n\t\t\t\t\t\t$lCurrentClimb--;\n\t\t\t\t\t}\n\t\t\t\t\t$lParent = $lCurrentNode->parentNode;\n\t\t\t\t\tif( $lNewNode && $lSiblingFound ){\n\t\t\t\t\t\t$lNextSibling = $lCurrentNode->nextSibling;\n\t\t\t\t\t\tif( $lNextSibling ){\n\t\t\t\t\t\t\t$lCurrentNode->parentNode->insertBefore( $lNewParent, $lNextSibling );\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t$lCurrentNode->parentNode->appendChild( $lNewParent );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n// \t\t\t\t\tvar_dump($lParent->ownerDocument->saveXML($lParent));\n// \t\t\t\t\techo \"\\n\\n\";\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t}\n\t//~ exit;\n}", "static function close_tags($content) {\n $position = 0;\n $open_tags = array();\n $ignored_tags = array('br', 'hr', 'img');\n\n while (($position = strpos($content, '<', $position)) !== FALSE)\n {\n if (preg_match(\"|^<(/?)([a-z\\d]+)\\b[^>]*>|i\", substr($content, $position), $match))\n {\n $tag = strtolower($match[2]);\n if (in_array($tag, $ignored_tags) == FALSE)\n {\n //тег открыт\n if (isset($match[1]) AND $match[1] == '')\n {\n if (isset($open_tags[$tag]))\n $open_tags[$tag]++;\n else\n $open_tags[$tag] = 1;\n }\n //тег закрыт\n if (isset($match[1]) AND $match[1] == '/')\n {\n if (isset($open_tags[$tag]))\n $open_tags[$tag]--;\n }\n }\n $position += strlen($match[0]);\n }\n else\n $position++;\n }\n\n foreach ($open_tags as $tag => $count_not_closed) {\n $content .= str_repeat(\"</{$tag}>\", $count_not_closed);\n }\n\n return $content;\n }", "function venus_structural_wrap( $output, $original_output ) {\n\n\tswitch ( $original_output ) {\n\t\tcase 'open':\n\t\t\t$output = '<div class=\"container\"><div class=\"row\">';\n\t\t\tbreak;\n\t\tcase 'close':\n\t\t\t$output = '</div></div>';\n\t\t\tbreak;\n\t}\n\n\treturn $output;\n}", "protected static function addCloseTagElements(DOMDocument $ir)\n\t{\n\t\t$xpath = new DOMXPath($ir);\n\t\t$exprs = [\n\t\t\t'//applyTemplates[not(ancestor::attribute)]',\n\t\t\t'//comment',\n\t\t\t'//element',\n\t\t\t'//output[not(ancestor::attribute)]'\n\t\t];\n\t\tforeach ($xpath->query(implode('|', $exprs)) as $node)\n\t\t{\n\t\t\t$parentElementId = self::getParentElementId($node);\n\t\t\tif (isset($parentElementId))\n\t\t\t{\n\t\t\t\t$node->parentNode\n\t\t\t\t ->insertBefore($ir->createElement('closeTag'), $node)\n\t\t\t\t ->setAttribute('id', $parentElementId);\n\t\t\t}\n\n\t\t\t// Append a <closeTag/> to <element/> nodes to ensure that empty elements get closed\n\t\t\tif ($node->nodeName === 'element')\n\t\t\t{\n\t\t\t\t$id = $node->getAttribute('id');\n\t\t\t\tself::appendElement($node, 'closeTag')->setAttribute('id', $id);\n\t\t\t}\n\t\t}\n\t}", "function non_DOM_deleteme($opening_tag_string) {\r\n\t\tpreg_match_all('/' . $opening_tag_string . '/is', $this->code, $matches, PREG_OFFSET_CAPTURE);\r\n\t\t$size = sizeof($matches[0]) - 1;\r\n\t\twhile($size > -1) {\r\n\t\t\tpreg_match('/<(\\w+)/is', $matches[0][$size][0], $tagname_matches);\r\n\t\t\t$tagname = $tagname_matches[1];\r\n\t\t\t$OString = OM::getOString($this->code, '<' . $tagname, '</' . $tagname . '>', $matches[0][$size][1]);\r\n\t\t\t$this->code = substr($this->code, 0, $matches[0][$size][1]) . substr($this->code, $matches[0][$size][1] + strlen($OString));\r\n\t\t\t$size--;\r\n\t\t}\r\n\t}", "function endElement($parser)\n\t{\n\t\t$this_element=array_peek($this->tag_stack);\n\t\tif (strpos($this_element,':')!==false)\n\t\t{\n\t\t\t$bits=explode(':',$this_element);\n\t\t\t$this_element=$bits[1];\n\t\t}\n\n\t\t$child_tempcode=array_pop($this->tempcode_stack);\n\t\t$parent_special_child_elements=array_pop($this->special_child_elements_stack);\n\t\tlist($tempcode,$aggregate)=$this->convertFinalisedElement($parser,$child_tempcode,$parent_special_child_elements);\n\n\t\tarray_pop($this->attribute_stack);\n\t\tarray_pop($this->tag_stack);\n\n\t\tif ($aggregate)\n\t\t{\n\t\t\t$parent_tempcode=array_pop($this->tempcode_stack);\n\t\t\t$parent_tempcode->attach($tempcode);\n\t\t\tarray_push($this->tempcode_stack,$parent_tempcode);\n\t\t}\n\n\t\tif (!array_key_exists($this_element,$parent_special_child_elements)) $parent_special_child_elements[$this_element]=array();\n\t\t$parent_special_child_elements[$this_element][]=$tempcode;\n\t\tarray_push($this->special_child_elements_stack,$parent_special_child_elements);\n\t}", "function convertFinalisedElement($parser,$child_tempcode,$special_child_elements)\n\t{\n\t\t$this->marker=xml_get_current_byte_index($parser);\n\n\t\tglobal $VALID_COMCODE_TAGS,$COMCODE_XML_PARAM_RENAMING,$COMCODE_XML_SWITCH_AROUND;\n\t\t$conflict_tags=array('br','hr','table','tr','th','td');\n\t\t$aux_tags=array('html_wrap','comcode','br','hr','table','tr','th','td','float','fh','fd','emoticon','member','cedi','list','list_element','concepts','show_concept','block','block_param','random','random_target','jumping','jumping_target','shocker','shocker_left','shocker_right','directive','language','symbol','directive_param','language_param','symbol_param','attachment','attachment_description','hide','hide_title','tooltip','tooltip_message');\n\n\t\t// Tidy up tag name\n\t\t$namespace=array_peek($this->namespace_stack);\n\t\tif (is_null($namespace)) $namespace='';\n\t\t$tag=array_peek($this->tag_stack);\n\t\t$colon_pos=strrpos($tag,':');\n\t\tif ($colon_pos!==false)\n\t\t{\n\t\t\t$namespace=substr($tag,0,$colon_pos);\n\t\t\t$tag=substr($tag,$colon_pos+1);\n\t\t}\n\t\t$tag=from_camelCase($tag);\n\n\t\t// Tidy up attributes\n\t\t$attributes=array_peek($this->attribute_stack);\n\t\tforeach ($COMCODE_XML_PARAM_RENAMING as $_tag=>$comcode_xml_name)\n\t\t{\n\t\t\tif (($tag==$_tag) && (isset($attributes[$comcode_xml_name])))\n\t\t\t{\n\t\t\t\t$attributes['param']=$attributes[$comcode_xml_name];\n\t\t\t\tunset($attributes[$comcode_xml_name]);\n\t\t\t}\n\t\t}\n\t\tforeach ($attributes as $key=>$val)\n\t\t{\n\t\t\tunset($attributes[$key]);\n\t\t\t$attributes[from_camelCase($key)]=$val;\n\t\t}\n\n\t\t// Do any switching around (Comcode has different embed vs attribute semantics to XML)\n\t\tforeach (array_merge($COMCODE_XML_SWITCH_AROUND,array('email')) as $_tag)\n\t\t{\n\t\t\tif ($tag==$_tag)\n\t\t\t{\n\t\t\t\t$x='param';\n\t\t\t\tif ($tag=='reference') $x='title';\n\t\t\t\t$temp=array_key_exists($x,$attributes)?$attributes[$x]:'';\n\t\t\t\t$attributes[$x]=$child_tempcode->evaluate();\n\t\t\t\t$child_tempcode=make_string_tempcode($temp);\n\t\t\t}\n\t\t}\n\n\t\t$tempcode=new ocp_tempcode();\n\t\t$aggregate=true;\n\n\t\t$is_html=false;\n\t\tif (in_array($tag,$conflict_tags)) // These could be either XHTML or Comcode, so we need to check the namespace\n\t\t{\n\t\t\tif (strpos($namespace,'html')!==false) // HTML\n\t\t\t{\n\t\t\t\t$is_html=true;\n\t\t\t}\n\t\t} elseif (strpos($namespace,'html')!==false)\n\t\t{\n\t\t\tif ((!isset($VALID_COMCODE_TAGS[$tag])) && (!in_array($tag,$aux_tags)))\n\t\t\t{\n\t\t\t\t$is_html=true;\n\t\t\t}\n\t\t}\n\n\t\tif ($is_html)\n\t\t{\n\t\t\t$tempcode->attach('<'.$tag);\n\t\t\tforeach ($attributes as $key=>$val)\n\t\t\t{\n\t\t\t\t$tempcode->attach(' '.$key.'=\"'.escape_html($val).'\"');\n\t\t\t}\n\t\t\t$tempcode->attach('>');\n\t\t\t$tempcode->attach($child_tempcode);\n\t\t\t$tempcode->attach('</'.$tag.'>');\n\t\t} else\n\t\t{\n\t\t\tif (in_array($tag,$aux_tags))\n\t\t\t{\n\t\t\t\tswitch ($tag)\n\t\t\t\t{\n\t\t\t\t\tcase 'comcode':\n\t\t\t\t\t\t$tempcode=$child_tempcode;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'html_wrap':\n\t\t\t\t\t\t$tempcode=$child_tempcode;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'br':\n\t\t\t\t\t\t$tempcode=make_string_tempcode('<br />');\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'hr':\n\t\t\t\t\t\t$tempcode=do_template('COMCODE_TEXTCODE_LINE');\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'table':\n\t\t\t\t\t\t$tempcode=new ocp_tempcode();\n\t\t\t\t\t\tif (isset($attributes['summary']))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$tempcode->attach('<table summary=\"'.escape_html($attributes['summary']).'\">');\n\t\t\t\t\t\t} else\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$tempcode->attach('<table>');\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$tempcode->attach($child_tempcode);\n\t\t\t\t\t\t$tempcode->attach('</table>');\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'tr':\n\t\t\t\t\t\t$tempcode->attach('<tr>');\n\t\t\t\t\t\t$tempcode->attach($child_tempcode);\n\t\t\t\t\t\t$tempcode->attach('</tr>');\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'th':\n\t\t\t\t\t\t$tempcode->attach('<th style=\"vertical-align: top\">');\n\t\t\t\t\t\t$tempcode->attach($child_tempcode);\n\t\t\t\t\t\t$tempcode->attach('</th>');\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'td':\n\t\t\t\t\t\t$tempcode->attach('<td style=\"vertical-align: top\">');\n\t\t\t\t\t\t$tempcode->attach($child_tempcode);\n\t\t\t\t\t\t$tempcode->attach('</td>');\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'float':\n\t\t\t\t\t\t$tempcode->attach($child_tempcode);\n\t\t\t\t\t\t$tempcode->attach('<br style=\"clear: both\" />');\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'fh':\n\t\t\t\t\t\t// Limited due to limitation of XML\n\t\t\t\t\t\t$i_dir_1='left';\n\t\t\t\t\t\t$i_dir_2='right';\n\n\t\t\t\t\t\t$tempcode->attach('<div style=\"padding-'.$i_dir_2.': 30px; float: '.$i_dir_1.'\">');\n\t\t\t\t\t\t$tempcode->attach($child_tempcode);\n\t\t\t\t\t\t$tempcode->attach('</th>');\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'fd':\n\t\t\t\t\t\t$tempcode->attach('<div class=\"inline\">');\n\t\t\t\t\t\t$tempcode->attach($child_tempcode);\n\t\t\t\t\t\t$tempcode->attach('</div>');\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'emoticon':\n\t\t\t\t\t\t$smilies=$GLOBALS['FORUM_DRIVER']->find_emoticons(); // Sorted in descending length order\n\n\t\t\t\t\t\trequire_code('comcode_text');\n\n\t\t\t\t\t\t$_child_tempcode=$child_tempcode->evaluate();\n\t\t\t\t\t\tforeach ($smilies as $code=>$imgcode)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif ($_child_tempcode==$code)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$eval=do_emoticon($imgcode);\n\t\t\t\t\t\t\t\t$tempcode=$eval;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'directive':\n\t\t\t\t\t\tif (!isset($special_child_elements['directiveParam'])) $special_child_elements['directiveParam']=array();\n\t\t\t\t\t\t$tempcode=directive_tempcode($attributes['type'],$child_tempcode,$special_child_elements['directiveParam']);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'language':\n\t\t\t\t\t\tif (!isset($special_child_elements['languageParam'])) $special_child_elements['languageParam']=array();\n\t\t\t\t\t\t$a=array_shift($special_child_elements['languageParam']);\n\t\t\t\t\t\t$b=array_shift($special_child_elements['languageParam']);\n\t\t\t\t\t\t$symbol_params=array();\n\t\t\t\t\t\tforeach ($special_child_elements['languageParam'] as $val)\n\t\t\t\t\t\t\t$symbol_params[]=$val->evaluate();\n\t\t\t\t\t\t$tempcode=do_lang_tempcode($child_tempcode->evaluate(),$a,$b,$symbol_params);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'symbol':\n\t\t\t\t\t\tif (!isset($special_child_elements['symbolParam'])) $special_child_elements['symbolParam']=array();\n\t\t\t\t\t\t$symbol_params=array();\n\t\t\t\t\t\tforeach ($special_child_elements['symbolParam'] as $val)\n\t\t\t\t\t\t\t$symbol_params[]=$val->evaluate();\n\t\t\t\t\t\t$tempcode=symbol_tempcode($child_tempcode->evaluate(),$symbol_params);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'hide_title':\n\t\t\t\t\tcase 'attachment_description':\n\t\t\t\t\tcase 'tooltip_message':\n\t\t\t\t\tcase 'list_element':\n\t\t\t\t\tcase 'show_concept':\n\t\t\t\t\tcase 'block_param':\n\t\t\t\t\tcase 'random_target':\n\t\t\t\t\tcase 'jumping_target':\n\t\t\t\t\tcase 'shocker_left':\n\t\t\t\t\tcase 'shocker_right':\n\t\t\t\t\tcase 'directive_param':\n\t\t\t\t\tcase 'language_param':\n\t\t\t\t\tcase 'symbol_param':\n\t\t\t\t\t\t$tempcode=make_string_tempcode(serialize(array($attributes,$child_tempcode)));\n\t\t\t\t\t\t$aggregate=false;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'member':\n\t\t\t\t\t\t$username=$child_tempcode->evaluate();\n\t\t\t\t\t\t$username_info=((isset($attributes['boxed'])) && ($attributes['boxed']=='1'));\n\t\t\t\t\t\t$this_member_id=$GLOBALS['FORUM_DRIVER']->get_member_from_username($username);\n\t\t\t\t\t\tif (!is_null($this_member_id))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$poster_url=$GLOBALS['FORUM_DRIVER']->member_profile_url($this_member_id,false,true);\n\t\t\t\t\t\t\tif ((get_forum_type()=='ocf') && ($username_info))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\trequire_lang('ocf');\n\t\t\t\t\t\t\t\trequire_code('ocf_members2');\n\t\t\t\t\t\t\t\t$details=ocf_show_member_box($this_member_id);\n\t\t\t\t\t\t\t\t$tempcode=do_template('HYPERLINK_TOOLTIP',array('_GUID'=>'f7b65418616787b0f732c32486b63f4e','TOOLTIP'=>$details,'CAPTION'=>$username,'URL'=>$poster_url,'NEW_WINDOW'=>false));\n\t\t\t\t\t\t\t} else\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$tempcode=hyperlink($poster_url,$username);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'cedi':\n\t\t\t\t\t\t$cedi_page_name=$child_tempcode->evaluate();\n\t\t\t\t\t\tif (isset($attributes['anchor']))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$jump_to=$attributes['anchor'];\n\t\t\t\t\t\t} else $jump_to='';\n\t\t\t\t\t\t$cedi_page_url=build_url(array('page'=>'cedi','type'=>'misc','find'=>$cedi_page_name),get_module_zone('cedi'));\n\t\t\t\t\t\tif ($jump_to!='')\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$cedi_page_url->attach('#'.$jump_to);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$tempcode=do_template('COMCODE_CEDI_LINK',array('_GUID'=>'770ac8741e9b0fc2697d1ee3d7ec3b38','URL'=>$cedi_page_url,'TEXT'=>$cedi_page_name));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'list':\n\t\t\t\t\t\tif (!isset($special_child_elements['listElement'])) $special_child_elements['listElement']=array();\n\t\t\t\t\t\t$my_list=array();\n\t\t\t\t\t\tforeach ($special_child_elements['listElement'] as $val)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$bits=unserialize($val->evaluate());\n\t\t\t\t\t\t\t$my_list[]=$bits[1]->evaluate();\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$tempcode=_do_tags_comcode($tag,$attributes,$my_list,true,$this->pass_id,$this->marker,$this->source_member,true,$this->connection,$this->comcode,$this->wml,$this->structure_sweep,$this->semiparse_mode,NULL,$this->on_behalf_of_member);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'concepts':\n\t\t\t\t\t\tif (!isset($special_child_elements['showConcept'])) $special_child_elements['showConcept']=array();\n\t\t\t\t\t\t$new_attributes=array();\n\t\t\t\t\t\tforeach ($special_child_elements['showConcept'] as $i=>$val)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$bits=unserialize($val->evaluate());\n\t\t\t\t\t\t\t$new_attributes['key_'.strval($i)]=isset($bits[0]['key'])?$bits[0]['key']:'';\n\t\t\t\t\t\t\t$new_attributes['val_'.strval($i)]=isset($bits[0]['key'])?$bits[0]['value']:'';\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$tempcode=_do_tags_comcode($tag,$new_attributes,$child_tempcode,true,$this->pass_id,$this->marker,$this->source_member,true,$this->connection,$this->comcode,$this->wml,$this->structure_sweep,$this->semiparse_mode,NULL,$this->on_behalf_of_member);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'block':\n\t\t\t\t\t\tif (!isset($special_child_elements['blockParam'])) $special_child_elements['blockParam']=array();\n\t\t\t\t\t\t$new_attributes=array();\n\t\t\t\t\t\tforeach ($special_child_elements['blockParam'] as $i=>$val)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$bits=unserialize($val->evaluate());\n\t\t\t\t\t\t\t$new_attributes[isset($bits[0]['key'])?$bits[0]['key']:'param']=isset($bits[0]['value'])?$bits[0]['value']:'';\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$tempcode=_do_tags_comcode($tag,$new_attributes,$child_tempcode,true,$this->pass_id,$this->marker,$this->source_member,true,$this->connection,$this->comcode,$this->wml,$this->structure_sweep,$this->semiparse_mode,NULL,$this->on_behalf_of_member);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'random':\n\t\t\t\t\t\tif (!isset($special_child_elements['randomTarget'])) $special_child_elements['randomTarget']=array();\n\t\t\t\t\t\t$new_attributes=array();\n\t\t\t\t\t\tforeach ($special_child_elements['randomTarget'] as $i=>$val)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$bits=unserialize($val->evaluate());\n\t\t\t\t\t\t\t$new_attributes[isset($bits[0]['pickIfAbove'])?$bits[0]['pickIfAbove']:'0']=$bits[1];\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$tempcode=_do_tags_comcode($tag,$new_attributes,$child_tempcode,true,$this->pass_id,$this->marker,$this->source_member,true,$this->connection,$this->comcode,$this->wml,$this->structure_sweep,$this->semiparse_mode,NULL,$this->on_behalf_of_member);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'jumping':\n\t\t\t\t\t\tif (!isset($special_child_elements['jumpingTarget'])) $special_child_elements['jumpingTarget']=array();\n\t\t\t\t\t\t$new_attributes=array();\n\t\t\t\t\t\tforeach ($special_child_elements['jumpingTarget'] as $i=>$val)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$bits=unserialize($val->evaluate());\n\t\t\t\t\t\t\t$new_attributes[strval($i)]=$bits[1];\n\t\t\t\t\t\t\tif (is_object($new_attributes[strval($i)])) $new_attributes[strval($i)]=$new_attributes[strval($i)]->evaluate();\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$tempcode=_do_tags_comcode($tag,$new_attributes,$child_tempcode,true,$this->pass_id,$this->marker,$this->source_member,true,$this->connection,$this->comcode,$this->wml,$this->structure_sweep,$this->semiparse_mode,NULL,$this->on_behalf_of_member);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'shocker':\n\t\t\t\t\t\tif (!isset($special_child_elements['shockerLeft'])) $special_child_elements['shockerLeft']=array();\n\t\t\t\t\t\t$new_attributes=array();\n\t\t\t\t\t\tforeach ($special_child_elements['shockerLeft'] as $i=>$val)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$bits=unserialize($val->evaluate());\n\t\t\t\t\t\t\t$new_attributes['left_'.strval($i)]=$bits[1];\n\t\t\t\t\t\t\tif (is_object($new_attributes['left_'.strval($i)])) $new_attributes['left_'.strval($i)]=$new_attributes['left_'.strval($i)]->evaluate();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tforeach ($special_child_elements['shockerRight'] as $i=>$val)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$bits=unserialize($val->evaluate());\n\t\t\t\t\t\t\t$new_attributes['right_'.strval($i)]=$bits[1];\n\t\t\t\t\t\t\tif (is_object($new_attributes['right_'.strval($i)])) $new_attributes['right_'.strval($i)]=$new_attributes['right_'.strval($i)]->evaluate();\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$tempcode=_do_tags_comcode($tag,$new_attributes,$child_tempcode,true,$this->pass_id,$this->marker,$this->source_member,true,$this->connection,$this->comcode,$this->wml,$this->structure_sweep,$this->semiparse_mode,NULL,$this->on_behalf_of_member);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'attachment':\n\t\t\t\t\t\t$description='';\n\t\t\t\t\t\tif (isset($special_child_elements['attachmentDescription']))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$bits=unserialize($special_child_elements['attachmentDescription'][0]->evaluate());\n\t\t\t\t\t\t\t$title=is_object($bits[1])?$bits[1]->evaluate():$bits[1];\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$tempcode=_do_tags_comcode($tag,array_merge($attributes,array('description'=>$description)),$child_tempcode,true,$this->pass_id,$this->marker,$this->source_member,true,$this->connection,$this->comcode,$this->wml,$this->structure_sweep,$this->semiparse_mode,NULL,$this->on_behalf_of_member);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'hide':\n\t\t\t\t\t\t$title='';\n\t\t\t\t\t\tif (isset($special_child_elements['hideTitle']))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$bits=unserialize($special_child_elements['hideTitle'][0]->evaluate());\n\t\t\t\t\t\t\t$title=is_object($bits[1])?$bits[1]->evaluate():$bits[1];\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$tempcode=_do_tags_comcode($tag,array_merge($attributes,array('param'=>$title)),$child_tempcode,true,$this->pass_id,$this->marker,$this->source_member,true,$this->connection,$this->comcode,$this->wml,$this->structure_sweep,$this->semiparse_mode,NULL,$this->on_behalf_of_member);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'tooltip':\n\t\t\t\t\t\t$title='';\n\t\t\t\t\t\tif (isset($special_child_elements['tooltipMessage']))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$bits=unserialize($special_child_elements['tooltipMessage'][0]->evaluate());\n\t\t\t\t\t\t\t$title=is_object($bits[0])?$bits[0]->evaluate():$bits[0];\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$tempcode=_do_tags_comcode($tag,array_merge($attributes,array('param'=>$title)),$child_tempcode,true,$this->pass_id,$this->marker,$this->source_member,true,$this->connection,$this->comcode,$this->wml,$this->structure_sweep,$this->semiparse_mode,NULL,$this->on_behalf_of_member);\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\telseif (isset($VALID_COMCODE_TAGS[$tag]))\n\t\t\t{\n\t\t\t\t$tempcode=_do_tags_comcode($tag,$attributes,$child_tempcode,true,$this->pass_id,$this->marker,$this->source_member,true,$this->connection,$this->comcode,$this->wml,$this->structure_sweep,$this->semiparse_mode,NULL,$this->on_behalf_of_member);\n\t\t\t}\n\t\t\t// Else, it is simply unknown and hence skipped\n\t\t}\n\n\t\treturn array($tempcode,$aggregate);\n\t}", "function _postProcess() {\r\n $item = current($this->_struct);\r\n \r\n $ret = array('_name'=>$item['tag'], '_attributes'=>array(), '_value'=>null);\r\n\r\n if (isset($item['attributes']) && count($item['attributes'])>0) {\r\n foreach ($item['attributes'] as $key => $data) {\r\n if (!is_null($data)) {\r\n $item['attributes'][$key] = str_replace($this->_replaceWith, $this->_replace, $item['attributes'][$key]);\r\n }\r\n }\r\n $ret['_attributes'] = $item['attributes'];\r\n if ($this->attributesDirectlyUnderParent)\r\n $ret = array_merge($ret, $item['attributes']);\r\n }\r\n\r\n if (isset($item['value']) && $item['value'] != null)\r\n $item['value'] = str_replace($this->_replaceWith, $this->_replace, $item['value']);\r\n \r\n switch ($item['type']) {\r\n case 'open':\r\n $children = array();\r\n while (($child = next($this->_struct)) !== FALSE ) {\r\n if ($child['level'] <= $item['level'])\r\n break;\r\n \r\n $subItem = $this->_postProcess();\r\n \r\n if (isset($subItem['_name'])) {\r\n if (!isset($children[$subItem['_name']]))\r\n $children[$subItem['_name']] = array();\r\n \r\n $children[$subItem['_name']][] = $subItem;\r\n }\r\n else {\r\n foreach ($subItem as $key=>$value) {\r\n if (isset($children[$key])) {\r\n if (is_array($children[$key]))\r\n $children[$key][] = $value;\r\n else\r\n $children[$key] = array($children[$key], $value);\r\n }\r\n else {\r\n $children[$key] = $value;\r\n }\r\n }\r\n }\r\n }\r\n \r\n if ($this->childTagsDirectlyUnderParent)\r\n $ret = array_merge($ret, $this->_condenseArray($children));\r\n else\r\n $ret['_value'] = $this->_condenseArray($children);\r\n \r\n break;\r\n case 'close':\r\n break;\r\n case 'complete':\r\n if (count($ret['_attributes']) > 0) {\r\n if (isset($item['value']))\r\n $ret['_value'] = $item['value'];\r\n }\r\n else {\r\n\t\t\tif (isset($item['value'])) {\r\n\t\t\t\t$ret = array($item['tag']=> $item['value']);\r\n\t\t\t} else {\r\n\t\t\t\t$ret = array($item['tag']=> \"\");\r\n\t\t\t}\r\n }\r\n break;\r\n }\r\n\r\n //added by Dan Coulter\r\n\r\n \r\n /*\r\n foreach ($ret as $key => $data) {\r\n if (!is_null($data) && !is_array($data)) {\r\n $ret[$key] = str_replace($this->_replaceWith, $this->_replace, $ret[$key]);\r\n }\r\n }\r\n */\r\n return $ret;\r\n }", "public static function close_tags($html){\n\n \t#put all opened tags into an array\n \tpreg_match_all(\"#<([a-z]+)( .*)?(?!/)>#iU\",$html,$result);\n \t$openedtags=$result[1];\n\n \t#put all closed tags into an array\n \tpreg_match_all(\"#</([a-z]+)>#iU\",$html,$result);\n \t$closedtags=$result[1];\n \t$len_opened = count($openedtags);\n\n \t#all tags are closed\n \tif(count($closedtags) == $len_opened){\n \t\treturn $html;\n \t}\n \t$openedtags = array_reverse($openedtags);\n\n \t#close tags\n \tfor($i=0;$i < $len_opened;$i++) {\n \t\tif (!in_array($openedtags[$i],$closedtags)){\n \t\t\t$html .= '</'.$openedtags[$i].'>';\n \t\t} else {\n \t\t\tunset($closedtags[array_search($openedtags[$i],$closedtags)]);\n \t\t}\n \t}\n \treturn $html;\n }", "function non_DOM_stripme($opening_tag_string) {\r\n\t\tpreg_match_all('/' . $opening_tag_string . '/is', $this->code, $matches, PREG_OFFSET_CAPTURE);\r\n\t\t$size = sizeof($matches[0]) - 1;\r\n\t\twhile($size > -1) {\r\n\t\t\t//print(\"matches[0][size][0]: \");var_dump($matches[0][$size][0]);\r\n\t\t\tpreg_match('/<(\\w+)/is', $matches[0][$size][0], $tagname_matches);\r\n\t\t\t$tagname = $tagname_matches[1];\r\n\t\t\t$OString = OM::getOString($this->code, '<' . $tagname, '</' . $tagname . '>', $matches[0][$size][1]);\r\n\t\t\t//print(\"strlen(matches[0][size][0]): \");var_dump(strlen($matches[0][$size][0]));\r\n\t\t\t$substr = substr($OString, strlen($matches[0][$size][0]), strlen($OString) - strlen($matches[0][$size][0]) - (strlen($tagname) + 3));\r\n\t\t\t//print(\"OString: \");var_dump($OString);\r\n\t\t\t//print(\"substr: \");var_dump($substr);\r\n\t\t\t//$this->code = str_replace($OString, $substr, $this->code);\r\n\t\t\t$this->code = substr($this->code, 0, $matches[0][$size][1]) . $substr . substr($this->code, $matches[0][$size][1] + strlen($OString));\r\n\t\t\t$size--;\r\n\t\t}\r\n\t}", "function getClosingTags(string $str): array\n{\n $closingTags = [];\n //update the pattern\n $pattern = \"/<\\/[A-Z]+>/\";\n preg_match_all($pattern, $str, $closingTags);\n $result = [];\n foreach ($closingTags as $cT) {\n foreach ($cT as $c) {\n $result[] = $c;\n }\n }\n return $result;\n}", "function close_tag($tag, $sample_html) {\n return preg_replace(\"!(<{$tag}(\\s[^>]*[^/>])?)>!si\",\"\\\\1/>\",$sample_html);\n}", "function formTagsForRowFiles($htmlForRow, $settingRowTags){ //this part for others blocks with equal class\n $originalBlocks = [];\n $usedBiBlocks = [];\n\n foreach ($htmlForRow as $blockInRow){\n $bitrixClass = findBitrixTag($blockInRow[0], $settingRowTags);\n if(isset($bitrixClass)){\n if (!in_array(findBitrixTag($blockInRow[0], $settingRowTags), $usedBiBlocks)) {\n array_push($usedBiBlocks, findBitrixTag($blockInRow[0], $settingRowTags));\n array_push($originalBlocks, $blockInRow);\n }\n }\n\n }\n\n echo \"\\n\".\"(form) sort block for row is done\";\n return $originalBlocks;\n\n}", "function shiftFootnotesDown() {\r\n\t\tpreg_match_all('/<a href=\"([^\"]*?)#note([^\"]*?)([0-9]+)\" id=\"note([^\"]*?)\\3\" title=\"([^\"]*?)\\3\">((<[^<>]+>)*?)\\3/is', $this->code, $noteParts, PREG_OFFSET_CAPTURE);\r\n\t\tif(sizeof($noteParts[0]) === 0) {\r\n\t\t\tpreg_match_all('/<sup id=\"fnb([0-9]+)-ref\"><a class=\"footnote-link\" href=\"#fnb\\1\"><span class=\"wb-invisible\">[^<>]*?<\\/span>\\1<\\/a><\\/sup>/is', $this->code, $noteParts, PREG_OFFSET_CAPTURE);\r\n\t\t\t$size = sizeof($noteParts[0]);\r\n\t\t\t$count = 0;\r\n\t\t\twhile($size > 0) {\r\n\t\t\t\t$index = $size - 1;\t\r\n\t\t\t\t$num = $noteParts[1][$index][0];\r\n\t\t\t\t$numMinusOne = $num - 1;\r\n\t\t\t\t$initial_note = $noteParts[0][$index][0];\r\n\t\t\t\t$modified_note = str_replace($num, $numMinusOne, $initial_note);\r\n\t\t\t\t$offset = $noteParts[0][$index][1];\r\n\t\t\t\t$this->code = substr($this->code, 0, $offset) . $modified_note . substr($this->code, $offset + strlen($initial_note));\r\n\t\t\t\t$count += 1;\r\n\t\t\t\t$size--;\r\n\t\t\t}\r\n\t\t\tpreg_match_all('/<dt>[^<>]*?([0-9]+)<\\/dt>\\s*<dd id=\"fnb\\1\">\\s*<p>.*?<\\/p>\\s*<p class=\"footnote-return\"><a href=\"#fnb\\1-ref\"><span class=\"wb-invisible\">[^<>]*?<\\/span>\\1<span class=\"wb-invisible\">[^<>]*?<\\/span><\\/a><\\/p>\\s*<\\/dd>/is', $this->code, $noteParts2, PREG_OFFSET_CAPTURE);\r\n\t\t\t$size2 = sizeof($noteParts2[0]);\r\n\t\t\t$count2 = 0;\r\n\t\t\twhile($size2 > 0) {\r\n\t\t\t\t$index = $size2 - 1;\t\r\n\t\t\t\t$num = $noteParts2[1][$index][0];\r\n\t\t\t\t$numMinusOne = $num - 1;\r\n\t\t\t\t$initial_note = $noteParts2[0][$index][0];\r\n\t\t\t\t$modified_note = str_replace($num, $numMinusOne, $initial_note);\r\n\t\t\t\t$offset = $noteParts2[0][$index][1];\r\n\t\t\t\t$this->code = substr($this->code, 0, $offset) . $modified_note . substr($this->code, $offset + strlen($initial_note));\r\n\t\t\t\t$count2 += 1;\r\n\t\t\t\t$size2--;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$size = sizeof($noteParts[0]);\r\n\t\t\t$count = 0;\r\n\t\t\twhile($size > 0) {\r\n\t\t\t\t$index = $size - 1;\t\r\n\t\t\t\t$num = $noteParts[3][$index][0];\r\n\t\t\t\t$numMinusOne = $num - 1;\r\n\t\t\t\t$initial_note = $noteParts[0][$index][0];\r\n\t\t\t\t$modified_note = str_replace($num, $numMinusOne, $initial_note);\r\n\t\t\t\t$offset = $noteParts[0][$index][1];\r\n\t\t\t\t$this->code = substr($this->code, 0, $offset) . $modified_note . substr($this->code, $offset + strlen($initial_note));\r\n\t\t\t\t$count += 1;\r\n\t\t\t\t$size--;\r\n\t\t\t}\r\n\t\t}\r\n\t\t$this->logMsgIf(\"shiftFootnotesDown (referrer)\", $count);\r\n\t\t$this->logMsgIf(\"shiftFootnotesDown (note)\", $count2);\r\n\t\treturn true;\r\n\t}", "public function closeFinalElements($depth)\n {\n // Failsafe tag closing. Driven by produced edge case.\n $divsToClose = $this->numberOfOpenElements('div', 'body');\n\n while ($divsToClose > 0)\n {\n // First close any open spans inside the div\n $this->closeOpenSpans('div', $depth);\n\n $this->addPageElement('</div>', $depth);\n $divsToClose--;\n }\n }", "private function reconstructActiveFormattingElements()\n {\n $formatting_elements = count($this->a_formatting);\n\n if ($formatting_elements === 0) {\n return false;\n }\n\n /* 3. Let entry be the last (most recently added) element in the list\n of active formatting elements. */\n $entry = end($this->a_formatting);\n\n /* 2. If the last (most recently added) entry in the list of active\n formatting elements is a marker, or if it is an element that is in the\n stack of open elements, then there is nothing to reconstruct; stop this\n algorithm. */\n if ($entry === self::MARKER || in_array($entry, $this->stack, true)) {\n return false;\n }\n\n for ($a = $formatting_elements - 1; $a >= 0; true) {\n /* 4. If there are no entries before entry in the list of active\n formatting elements, then jump to step 8. */\n if ($a === 0) {\n $step_seven = false;\n break;\n }\n\n /* 5. Let entry be the entry one earlier than entry in the list of\n active formatting elements. */\n $a--;\n $entry = $this->a_formatting[$a];\n\n /* 6. If entry is neither a marker nor an element that is also in\n thetack of open elements, go to step 4. */\n if ($entry === self::MARKER || in_array($entry, $this->stack, true)) {\n break;\n }\n }\n\n while (true) {\n /* 7. Let entry be the element one later than entry in the list of\n active formatting elements. */\n if (isset($step_seven) && $step_seven === true) {\n $a++;\n $entry = $this->a_formatting[$a];\n }\n\n /* 8. Perform a shallow clone of the element entry to obtain clone. */\n $clone = $entry->cloneNode();\n\n /* 9. Append clone to the current node and push it onto the stack\n of open elements so that it is the new current node. */\n end($this->stack)->appendChild($clone);\n $this->stack[] = $clone;\n\n /* 10. Replace the entry for entry in the list with an entry for\n clone. */\n $this->a_formatting[$a] = $clone;\n\n /* 11. If the entry for clone in the list of active formatting\n elements is not the last entry in the list, return to step 7. */\n if (end($this->a_formatting) !== $clone) {\n $step_seven = true;\n } else {\n break;\n }\n }\n }", "function wpbootstrap_accordion($content) {\r\n\t$pattern = \"/<h2 ?.*>(.*)<\\/h2>/\"; // grab all H2 elements\r\n\tpreg_match_all($pattern, $content, $headings);\r\n\t// $headings[0] returns each element w/tag\r\n\t// $headings[1] returns the innerHTML of tag\t\r\n\r\n\tif ($headings[1][0] != '') { // if there's somethin here\r\n\t\t$x = 0; //counter\r\n\t\t// build accordion\r\n\t\t$accordion = '<div class=\"accordion\" id=\"page-accordion\">';\r\n\t\tforeach ($headings[1] as $item) {\r\n\t\t\tif ($x == 0) { \r\n\t\t\t\t$replace = $accordion. '<div class=\"accordion-group\"><div class=\"accordion-heading\"><a class=\"accordion-toggle\" data-toggle=\"collapse\" data-parent=\"#page-accordion\" href=\"#' . slugify($item) . '\">' . $item . '</a></div><div id=\"' . slugify($item) . '\" class=\"accordion-body collapse in\"><div class=\"accordion-inner\">';\r\n\t\t\t} else { \r\n\t\t\t\t$replace = '</div></div></div>'; // end preceding group \r\n\t\t\t\t$replace .= '<div class=\"accordion-group\"><div class=\"accordion-heading\"><a class=\"accordion-toggle\" data-toggle=\"collapse\" data-parent=\"#page-accordion\" href=\"#' . slugify($item) . '\">' . $item . '</a></div><div id=\"' . slugify($item) . '\" class=\"accordion-body collapse\"><div class=\"accordion-inner\">';\r\n\t\t\t}\r\n\t\t\t$search = \"/<h2 ?.*>\" . $item . \"<\\/h2>/\";\r\n\t\t\t$content = preg_replace( $search, $replace, $content );\r\n\t\t\t$x++;\r\n\t\t}\r\n\t\t$content .= '</div></div></div></div>'; // end last accordion-body, accordion-group, and accordion\t\t\t\r\n\t}\r\n\techo $content;\t\r\n}", "protected static function parseXslChoose(DOMElement $ir, DOMElement $node)\n\t{\n\t\t$switch = self::appendElement($ir, 'switch');\n\n\t\tforeach ($node->getElementsByTagNameNS(self::XMLNS_XSL, 'when') as $when)\n\t\t{\n\t\t\t// Only children of current node, exclude other descendants\n\t\t\tif ($when->parentNode !== $node)\n\t\t\t{\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t// Create a <case/> element with the original test condition in @test\n\t\t\t$case = self::appendElement($switch, 'case');\n\t\t\t$case->setAttribute('test', $when->getAttribute('test'));\n\n\t\t\t// Parse this branch's content\n\t\t\tself::parseChildren($case, $when);\n\t\t}\n\n\t\t// Add the default branch, which is presumed to be last\n\t\tforeach ($node->getElementsByTagNameNS(self::XMLNS_XSL, 'otherwise') as $otherwise)\n\t\t{\n\t\t\t// Only children of current node, exclude other descendants\n\t\t\tif ($otherwise->parentNode !== $node)\n\t\t\t{\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t$case = self::appendElement($switch, 'case');\n\n\t\t\t// Parse this branch's content\n\t\t\tself::parseChildren($case, $otherwise);\n\n\t\t\t// There should be only one <xsl:otherwise/> but we'll break anyway\n\t\t\tbreak;\n\t\t}\n\t}", "function close_tag($tag, $pref, $nl)\n{\n tag($tag, 'close', $pref, $nl) ;\n}", "function CloseTags($html) {\n\t$html = preg_replace('/<[^>]*$/', '', $html); // ending with fraction of open tag\n\t// put open tags into an array\n\tpreg_match_all('#<([a-z]+)(?: .*)?(?<![/|/ ])>#iU', $html, $result);\n\t$opentags = $result[1];\n\t// put all closed tags into an array\n\tpreg_match_all('#</([a-z]+)>#iU', $html, $result);\n\t$closetags = $result[1];\n\t$len_opened = count($opentags);\n\t// if all tags are closed, we can return\n\tif (count($closetags) == $len_opened) {\n\t\treturn $html;\n\t}\n\t// close tags in reverse order that they were opened\n\t$opentags = array_reverse($opentags);\n\t// self closing tags\n\t$sc = array('br', 'input', 'img', 'hr', 'meta', 'link');\n\t// ,'frame','iframe','param','area','base','basefont','col'\n\t// should not skip tags that can have content inside!\n\tfor ($i = 0; $i < $len_opened; $i++) {\n\t\t$ot = strtolower($opentags[$i]);\n\t\tif (!in_array($opentags[$i], $closetags) && !in_array($ot, $sc)) {\n\t\t\t$html .= '</' . $opentags[$i] . '>';\n\t\t} else {\n\t\t\tunset($closetags[array_search($opentags[$i], $closetags)]);\n\t\t}\n\t}\n\treturn $html;\n}", "private function tag_close($tag)\r\n\t{\r\n\t\tif(!$this->current_tag instanceof SBBCodeParser_Document\r\n\t\t\t&& $tag !== $this->current_tag->tag())\r\n\t\t{\r\n\t\t\t$closing_tags = $this->bbcodes[$this->current_tag->tag()]->closing_tags();\r\n\r\n\t\t\tif(in_array($tag, $closing_tags) || in_array('/' . $tag, $closing_tags))\r\n\t\t\t\t$this->current_tag = $this->current_tag->parent();\r\n\t\t}\r\n\t\t\r\n\t\tif($this->current_tag instanceof SBBCodeParser_Document)\r\n\t\t\treturn false;\r\n\t\telse if($tag !== $this->current_tag->tag())\r\n\t\t{\r\n\t\t\t// check if this is a tag inside another tag like\r\n\t\t\t// [tag1] [tag2] [/tag1] [/tag2]\r\n\t\t\t$node = $this->current_tag->find_parent_by_tag($tag);\r\n\t\t\t\r\n\t\t\tif($node !== null)\r\n\t\t\t{\r\n\t\t\t\t$this->current_tag = $node->parent();\r\n\r\n\t\t\t\twhile(($node = $node->last_tag_node()) !== null)\r\n\t\t\t\t{\r\n\t\t\t\t\t$new_node = new SBBCodeParser_TagNode($node->tag(), $node->attributes());\r\n\t\t\t\t\t$this->current_tag->add_child($new_node);\r\n\t\t\t\t\t$this->current_tag = $new_node;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t\treturn false;\r\n\t\t}\r\n\t\telse\r\n\t\t\t$this->current_tag = $this->current_tag->parent();\r\n\t\t\r\n\t\treturn true;\r\n\t}", "function DOM_finish_footnotes() {\r\n\t\t//<a href=\"#note\" name=\"footnote\" title=\"Link to note \" id=\"footnote\">\r\n\t\t//<a name=\"note\" id=\"note\" href=\"#footnote\" title=\"Link to footnote \">\r\n\t\t// (2011-06-27) the name attribute is deprecated\r\n\t\t//<a href=\"#note\" title=\"Link to note \" id=\"footnote\">\r\n\t\t//<a id=\"note\" href=\"#footnote\" title=\"Link to footnote \">\r\n\t\t$query1 = '//' . ReTidy::get_html_namespace() . 'a[@href=\"#note\"][@name=\"footnote\"] | //' . ReTidy::get_html_namespace() . 'a[@href=\"#note\"][@title=\"Link to note \"] | //' . ReTidy::get_html_namespace() . 'a[@href=\"#note\"][@id=\"footnote\"]';\r\n\t\t$query2 = '//' . ReTidy::get_html_namespace() . 'a[@href=\"#footnote\"][@name=\"note\"] | //' . ReTidy::get_html_namespace() . 'a[@href=\"#footnote\"][@title=\"Link to footnote \"] | //' . ReTidy::get_html_namespace() . 'a[@href=\"#footnote\"][@id=\"note\"]';\r\n\t\t\r\n\t\t$footnotes = $this->xpath->query($query1);\r\n\t\t$notes = $this->xpath->query($query2);\r\n\t\tforeach($footnotes as $footnote) {\r\n\t\t\t$tagless = ReTidy::tagless($footnote);\r\n\t\t\tforeach($footnote->attributes as $attribute) {\r\n\t\t\t\t$attribute->nodeValue .= $tagless;\r\n\t\t\t}\r\n\t\t}\r\n\t\tforeach($notes as $note) {\r\n\t\t\t$tagless = ReTidy::tagless($note);\r\n\t\t\tforeach($note->attributes as $attribute) {\r\n\t\t\t\t$attribute->nodeValue .= $tagless;\r\n\t\t\t}\r\n\t\t}\t\t\r\n\t}", "public function getNextSibling();" ]
[ "0.7497725", "0.5934671", "0.55218995", "0.546023", "0.5111059", "0.50501615", "0.5008064", "0.49384117", "0.47716224", "0.47434092", "0.4713318", "0.4704308", "0.45939013", "0.45880082", "0.45753303", "0.4548333", "0.45430762", "0.45400307", "0.45320222", "0.45142505", "0.45130208", "0.44476706", "0.44224268", "0.44009814", "0.44007173", "0.43921927", "0.43796694", "0.43695927", "0.43688616", "0.43650818" ]
0.7243627
1
Clone closeTag elements from the head of a switch's cases before said switch If there's a at the beginning of every , clone it and insert it right before the unless there's already one
protected static function cloneCloseTagElementsOutOfSwitch(DOMDocument $ir) { $xpath = new DOMXPath($ir); $query = '//switch[not(preceding-sibling::closeTag)]'; foreach ($xpath->query($query) as $switch) { foreach ($switch->childNodes as $case) { if (!$case->firstChild || $case->firstChild->nodeName !== 'closeTag') { // This case is either empty or does not start with a <closeTag/> so we skip // to the next <switch/> continue 2; } } // Insert the first child of the last <case/>, which should be the same <closeTag/> // as every other <case/> $switch->parentNode->insertBefore($switch->lastChild->firstChild->cloneNode(), $switch); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected static function cloneCloseTagElementsIntoSwitch(DOMDocument $ir)\n\t{\n\t\t$xpath = new DOMXPath($ir);\n\t\t$query = '//switch[name(following-sibling::*) = \"closeTag\"]';\n\t\tforeach ($xpath->query($query) as $switch)\n\t\t{\n\t\t\t$closeTag = $switch->nextSibling;\n\t\t\tforeach ($switch->childNodes as $case)\n\t\t\t{\n\t\t\t\tif (!$case->lastChild || $case->lastChild->nodeName !== 'closeTag')\n\t\t\t\t{\n\t\t\t\t\t$case->appendChild($closeTag->cloneNode());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "protected static function removeRedundantCloseTagElementsInSwitch(DOMDocument $ir)\n\t{\n\t\t$xpath = new DOMXPath($ir);\n\t\t$query = '//switch[name(following-sibling::*) = \"closeTag\"]';\n\t\tforeach ($xpath->query($query) as $switch)\n\t\t{\n\t\t\tforeach ($switch->childNodes as $case)\n\t\t\t{\n\t\t\t\twhile ($case->lastChild && $case->lastChild->nodeName === 'closeTag')\n\t\t\t\t{\n\t\t\t\t\t$case->removeChild($case->lastChild);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "function closetags($html) {\n\t\tpreg_match_all('#<([a-z]+)(?: .*)?(?<![/|/ ])>#iU', $html, $result);\n\t\t$openedtags = $result[1]; #put all closed tags into an array\n\t\tpreg_match_all('#</([a-z]+)>#iU', $html, $result);\n\t\t$closedtags = $result[1];\n\t\t$len_opened = count($openedtags);\n\t\t# all tags are closed\n\t\tif (count($closedtags) == $len_opened) {\n\t\t\treturn $html;\n\t\t}\n\t\t\n\t\t$openedtags = array_reverse($openedtags);\n\t\t# close tags\n\t\tfor ($i=0; $i < $len_opened; $i++) {\n\t\t\tif (!in_array($openedtags[$i], $closedtags)){\n\t\t\t $html .= '</'.$openedtags[$i].'>';\n\t\t\t} else {\n\t\t\t unset($closedtags[array_search($openedtags[$i], $closedtags)]); }\n\t\t\t} \n\t\t\treturn $html;\n\t\t}", "public function moveTagFromEndToTheMiddle() {}", "private static function closetags ($html) {\n\t\t// put all opened tags into an array\n\t\tpreg_match_all ( \"#<([a-z]+)( .*)?(?!/)>#iU\", $html, $result );\n\t\t$openedtags = $result[1];\n\t\t// put all closed tags into an array\n\t\tpreg_match_all ( \"#</([a-z]+)>#iU\", $html, $result );\n\t\t$closedtags = $result[1];\n\t\t$len_opened = count ( $openedtags );\n\t\t// all tags are closed\n\t\tif(count($closedtags ) == $len_opened)\n\t\t\treturn $html;\n\t\t$openedtags = array_reverse ( $openedtags );\n\t\t// close tags\n\t\tfor( $i = 0; $i < $len_opened; $i++ ){\n\t\t\tif ( !in_array ( $openedtags[$i], $closedtags ) )\n\t\t\t\t$html .= \"</\" . $openedtags[$i] . \">\";\n\t\t\telse\n\t\t\t\tunset ( $closedtags[array_search ( $openedtags[$i], $closedtags)] );\n\t\t}\n\t\treturn $html;\n\t}", "function restoreTags($input)\n {\n $opened = array();\n\n // loop through opened and closed tags in order\n if(preg_match_all(\"/<(\\/?[a-z]+)>?/i\", $input, $matches)) {\n foreach($matches[1] as $tag) {\n if(preg_match(\"/^[a-z]+$/i\", $tag, $regs)) {\n // a tag has been opened\n if(strtolower($regs[0]) != 'br') $opened[] = $regs[0];\n } elseif(preg_match(\"/^\\/([a-z]+)$/i\", $tag, $regs)) {\n // a tag has been closed\n unset($opened[array_pop(array_keys($opened, $regs[1]))]);\n }\n }\n }\n\n // close tags that are still open\n if($opened) {\n $tagstoclose = array_reverse($opened);\n foreach($tagstoclose as $tag) $input .= \"</$tag>\";\n }\n\n return $input;\n }", "protected static function removeCloseTagSiblings(DOMDocument $ir)\n\t{\n\t\t$xpath = new DOMXPath($ir);\n\t\t$query = '//switch[not(case[not(closeTag)])]/following-sibling::closeTag';\n\t\tforeach ($xpath->query($query) as $closeTag)\n\t\t{\n\t\t\t$closeTag->parentNode->removeChild($closeTag);\n\t\t}\n\t}", "function formTagsForRowFiles($htmlForRow, $settingRowTags){ //this part for others blocks with equal class\n $originalBlocks = [];\n $usedBiBlocks = [];\n\n foreach ($htmlForRow as $blockInRow){\n $bitrixClass = findBitrixTag($blockInRow[0], $settingRowTags);\n if(isset($bitrixClass)){\n if (!in_array(findBitrixTag($blockInRow[0], $settingRowTags), $usedBiBlocks)) {\n array_push($usedBiBlocks, findBitrixTag($blockInRow[0], $settingRowTags));\n array_push($originalBlocks, $blockInRow);\n }\n }\n\n }\n\n echo \"\\n\".\"(form) sort block for row is done\";\n return $originalBlocks;\n\n}", "private function reconstructActiveFormattingElements()\n {\n $formatting_elements = count($this->a_formatting);\n\n if ($formatting_elements === 0) {\n return false;\n }\n\n /* 3. Let entry be the last (most recently added) element in the list\n of active formatting elements. */\n $entry = end($this->a_formatting);\n\n /* 2. If the last (most recently added) entry in the list of active\n formatting elements is a marker, or if it is an element that is in the\n stack of open elements, then there is nothing to reconstruct; stop this\n algorithm. */\n if ($entry === self::MARKER || in_array($entry, $this->stack, true)) {\n return false;\n }\n\n for ($a = $formatting_elements - 1; $a >= 0; true) {\n /* 4. If there are no entries before entry in the list of active\n formatting elements, then jump to step 8. */\n if ($a === 0) {\n $step_seven = false;\n break;\n }\n\n /* 5. Let entry be the entry one earlier than entry in the list of\n active formatting elements. */\n $a--;\n $entry = $this->a_formatting[$a];\n\n /* 6. If entry is neither a marker nor an element that is also in\n thetack of open elements, go to step 4. */\n if ($entry === self::MARKER || in_array($entry, $this->stack, true)) {\n break;\n }\n }\n\n while (true) {\n /* 7. Let entry be the element one later than entry in the list of\n active formatting elements. */\n if (isset($step_seven) && $step_seven === true) {\n $a++;\n $entry = $this->a_formatting[$a];\n }\n\n /* 8. Perform a shallow clone of the element entry to obtain clone. */\n $clone = $entry->cloneNode();\n\n /* 9. Append clone to the current node and push it onto the stack\n of open elements so that it is the new current node. */\n end($this->stack)->appendChild($clone);\n $this->stack[] = $clone;\n\n /* 10. Replace the entry for entry in the list with an entry for\n clone. */\n $this->a_formatting[$a] = $clone;\n\n /* 11. If the entry for clone in the list of active formatting\n elements is not the last entry in the list, return to step 7. */\n if (end($this->a_formatting) !== $clone) {\n $step_seven = true;\n } else {\n break;\n }\n }\n }", "function convertFinalisedElement($parser,$child_tempcode,$special_child_elements)\n\t{\n\t\t$this->marker=xml_get_current_byte_index($parser);\n\n\t\tglobal $VALID_COMCODE_TAGS,$COMCODE_XML_PARAM_RENAMING,$COMCODE_XML_SWITCH_AROUND;\n\t\t$conflict_tags=array('br','hr','table','tr','th','td');\n\t\t$aux_tags=array('html_wrap','comcode','br','hr','table','tr','th','td','float','fh','fd','emoticon','member','cedi','list','list_element','concepts','show_concept','block','block_param','random','random_target','jumping','jumping_target','shocker','shocker_left','shocker_right','directive','language','symbol','directive_param','language_param','symbol_param','attachment','attachment_description','hide','hide_title','tooltip','tooltip_message');\n\n\t\t// Tidy up tag name\n\t\t$namespace=array_peek($this->namespace_stack);\n\t\tif (is_null($namespace)) $namespace='';\n\t\t$tag=array_peek($this->tag_stack);\n\t\t$colon_pos=strrpos($tag,':');\n\t\tif ($colon_pos!==false)\n\t\t{\n\t\t\t$namespace=substr($tag,0,$colon_pos);\n\t\t\t$tag=substr($tag,$colon_pos+1);\n\t\t}\n\t\t$tag=from_camelCase($tag);\n\n\t\t// Tidy up attributes\n\t\t$attributes=array_peek($this->attribute_stack);\n\t\tforeach ($COMCODE_XML_PARAM_RENAMING as $_tag=>$comcode_xml_name)\n\t\t{\n\t\t\tif (($tag==$_tag) && (isset($attributes[$comcode_xml_name])))\n\t\t\t{\n\t\t\t\t$attributes['param']=$attributes[$comcode_xml_name];\n\t\t\t\tunset($attributes[$comcode_xml_name]);\n\t\t\t}\n\t\t}\n\t\tforeach ($attributes as $key=>$val)\n\t\t{\n\t\t\tunset($attributes[$key]);\n\t\t\t$attributes[from_camelCase($key)]=$val;\n\t\t}\n\n\t\t// Do any switching around (Comcode has different embed vs attribute semantics to XML)\n\t\tforeach (array_merge($COMCODE_XML_SWITCH_AROUND,array('email')) as $_tag)\n\t\t{\n\t\t\tif ($tag==$_tag)\n\t\t\t{\n\t\t\t\t$x='param';\n\t\t\t\tif ($tag=='reference') $x='title';\n\t\t\t\t$temp=array_key_exists($x,$attributes)?$attributes[$x]:'';\n\t\t\t\t$attributes[$x]=$child_tempcode->evaluate();\n\t\t\t\t$child_tempcode=make_string_tempcode($temp);\n\t\t\t}\n\t\t}\n\n\t\t$tempcode=new ocp_tempcode();\n\t\t$aggregate=true;\n\n\t\t$is_html=false;\n\t\tif (in_array($tag,$conflict_tags)) // These could be either XHTML or Comcode, so we need to check the namespace\n\t\t{\n\t\t\tif (strpos($namespace,'html')!==false) // HTML\n\t\t\t{\n\t\t\t\t$is_html=true;\n\t\t\t}\n\t\t} elseif (strpos($namespace,'html')!==false)\n\t\t{\n\t\t\tif ((!isset($VALID_COMCODE_TAGS[$tag])) && (!in_array($tag,$aux_tags)))\n\t\t\t{\n\t\t\t\t$is_html=true;\n\t\t\t}\n\t\t}\n\n\t\tif ($is_html)\n\t\t{\n\t\t\t$tempcode->attach('<'.$tag);\n\t\t\tforeach ($attributes as $key=>$val)\n\t\t\t{\n\t\t\t\t$tempcode->attach(' '.$key.'=\"'.escape_html($val).'\"');\n\t\t\t}\n\t\t\t$tempcode->attach('>');\n\t\t\t$tempcode->attach($child_tempcode);\n\t\t\t$tempcode->attach('</'.$tag.'>');\n\t\t} else\n\t\t{\n\t\t\tif (in_array($tag,$aux_tags))\n\t\t\t{\n\t\t\t\tswitch ($tag)\n\t\t\t\t{\n\t\t\t\t\tcase 'comcode':\n\t\t\t\t\t\t$tempcode=$child_tempcode;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'html_wrap':\n\t\t\t\t\t\t$tempcode=$child_tempcode;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'br':\n\t\t\t\t\t\t$tempcode=make_string_tempcode('<br />');\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'hr':\n\t\t\t\t\t\t$tempcode=do_template('COMCODE_TEXTCODE_LINE');\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'table':\n\t\t\t\t\t\t$tempcode=new ocp_tempcode();\n\t\t\t\t\t\tif (isset($attributes['summary']))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$tempcode->attach('<table summary=\"'.escape_html($attributes['summary']).'\">');\n\t\t\t\t\t\t} else\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$tempcode->attach('<table>');\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$tempcode->attach($child_tempcode);\n\t\t\t\t\t\t$tempcode->attach('</table>');\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'tr':\n\t\t\t\t\t\t$tempcode->attach('<tr>');\n\t\t\t\t\t\t$tempcode->attach($child_tempcode);\n\t\t\t\t\t\t$tempcode->attach('</tr>');\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'th':\n\t\t\t\t\t\t$tempcode->attach('<th style=\"vertical-align: top\">');\n\t\t\t\t\t\t$tempcode->attach($child_tempcode);\n\t\t\t\t\t\t$tempcode->attach('</th>');\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'td':\n\t\t\t\t\t\t$tempcode->attach('<td style=\"vertical-align: top\">');\n\t\t\t\t\t\t$tempcode->attach($child_tempcode);\n\t\t\t\t\t\t$tempcode->attach('</td>');\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'float':\n\t\t\t\t\t\t$tempcode->attach($child_tempcode);\n\t\t\t\t\t\t$tempcode->attach('<br style=\"clear: both\" />');\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'fh':\n\t\t\t\t\t\t// Limited due to limitation of XML\n\t\t\t\t\t\t$i_dir_1='left';\n\t\t\t\t\t\t$i_dir_2='right';\n\n\t\t\t\t\t\t$tempcode->attach('<div style=\"padding-'.$i_dir_2.': 30px; float: '.$i_dir_1.'\">');\n\t\t\t\t\t\t$tempcode->attach($child_tempcode);\n\t\t\t\t\t\t$tempcode->attach('</th>');\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'fd':\n\t\t\t\t\t\t$tempcode->attach('<div class=\"inline\">');\n\t\t\t\t\t\t$tempcode->attach($child_tempcode);\n\t\t\t\t\t\t$tempcode->attach('</div>');\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'emoticon':\n\t\t\t\t\t\t$smilies=$GLOBALS['FORUM_DRIVER']->find_emoticons(); // Sorted in descending length order\n\n\t\t\t\t\t\trequire_code('comcode_text');\n\n\t\t\t\t\t\t$_child_tempcode=$child_tempcode->evaluate();\n\t\t\t\t\t\tforeach ($smilies as $code=>$imgcode)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif ($_child_tempcode==$code)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$eval=do_emoticon($imgcode);\n\t\t\t\t\t\t\t\t$tempcode=$eval;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'directive':\n\t\t\t\t\t\tif (!isset($special_child_elements['directiveParam'])) $special_child_elements['directiveParam']=array();\n\t\t\t\t\t\t$tempcode=directive_tempcode($attributes['type'],$child_tempcode,$special_child_elements['directiveParam']);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'language':\n\t\t\t\t\t\tif (!isset($special_child_elements['languageParam'])) $special_child_elements['languageParam']=array();\n\t\t\t\t\t\t$a=array_shift($special_child_elements['languageParam']);\n\t\t\t\t\t\t$b=array_shift($special_child_elements['languageParam']);\n\t\t\t\t\t\t$symbol_params=array();\n\t\t\t\t\t\tforeach ($special_child_elements['languageParam'] as $val)\n\t\t\t\t\t\t\t$symbol_params[]=$val->evaluate();\n\t\t\t\t\t\t$tempcode=do_lang_tempcode($child_tempcode->evaluate(),$a,$b,$symbol_params);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'symbol':\n\t\t\t\t\t\tif (!isset($special_child_elements['symbolParam'])) $special_child_elements['symbolParam']=array();\n\t\t\t\t\t\t$symbol_params=array();\n\t\t\t\t\t\tforeach ($special_child_elements['symbolParam'] as $val)\n\t\t\t\t\t\t\t$symbol_params[]=$val->evaluate();\n\t\t\t\t\t\t$tempcode=symbol_tempcode($child_tempcode->evaluate(),$symbol_params);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'hide_title':\n\t\t\t\t\tcase 'attachment_description':\n\t\t\t\t\tcase 'tooltip_message':\n\t\t\t\t\tcase 'list_element':\n\t\t\t\t\tcase 'show_concept':\n\t\t\t\t\tcase 'block_param':\n\t\t\t\t\tcase 'random_target':\n\t\t\t\t\tcase 'jumping_target':\n\t\t\t\t\tcase 'shocker_left':\n\t\t\t\t\tcase 'shocker_right':\n\t\t\t\t\tcase 'directive_param':\n\t\t\t\t\tcase 'language_param':\n\t\t\t\t\tcase 'symbol_param':\n\t\t\t\t\t\t$tempcode=make_string_tempcode(serialize(array($attributes,$child_tempcode)));\n\t\t\t\t\t\t$aggregate=false;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'member':\n\t\t\t\t\t\t$username=$child_tempcode->evaluate();\n\t\t\t\t\t\t$username_info=((isset($attributes['boxed'])) && ($attributes['boxed']=='1'));\n\t\t\t\t\t\t$this_member_id=$GLOBALS['FORUM_DRIVER']->get_member_from_username($username);\n\t\t\t\t\t\tif (!is_null($this_member_id))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$poster_url=$GLOBALS['FORUM_DRIVER']->member_profile_url($this_member_id,false,true);\n\t\t\t\t\t\t\tif ((get_forum_type()=='ocf') && ($username_info))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\trequire_lang('ocf');\n\t\t\t\t\t\t\t\trequire_code('ocf_members2');\n\t\t\t\t\t\t\t\t$details=ocf_show_member_box($this_member_id);\n\t\t\t\t\t\t\t\t$tempcode=do_template('HYPERLINK_TOOLTIP',array('_GUID'=>'f7b65418616787b0f732c32486b63f4e','TOOLTIP'=>$details,'CAPTION'=>$username,'URL'=>$poster_url,'NEW_WINDOW'=>false));\n\t\t\t\t\t\t\t} else\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$tempcode=hyperlink($poster_url,$username);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'cedi':\n\t\t\t\t\t\t$cedi_page_name=$child_tempcode->evaluate();\n\t\t\t\t\t\tif (isset($attributes['anchor']))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$jump_to=$attributes['anchor'];\n\t\t\t\t\t\t} else $jump_to='';\n\t\t\t\t\t\t$cedi_page_url=build_url(array('page'=>'cedi','type'=>'misc','find'=>$cedi_page_name),get_module_zone('cedi'));\n\t\t\t\t\t\tif ($jump_to!='')\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$cedi_page_url->attach('#'.$jump_to);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$tempcode=do_template('COMCODE_CEDI_LINK',array('_GUID'=>'770ac8741e9b0fc2697d1ee3d7ec3b38','URL'=>$cedi_page_url,'TEXT'=>$cedi_page_name));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'list':\n\t\t\t\t\t\tif (!isset($special_child_elements['listElement'])) $special_child_elements['listElement']=array();\n\t\t\t\t\t\t$my_list=array();\n\t\t\t\t\t\tforeach ($special_child_elements['listElement'] as $val)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$bits=unserialize($val->evaluate());\n\t\t\t\t\t\t\t$my_list[]=$bits[1]->evaluate();\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$tempcode=_do_tags_comcode($tag,$attributes,$my_list,true,$this->pass_id,$this->marker,$this->source_member,true,$this->connection,$this->comcode,$this->wml,$this->structure_sweep,$this->semiparse_mode,NULL,$this->on_behalf_of_member);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'concepts':\n\t\t\t\t\t\tif (!isset($special_child_elements['showConcept'])) $special_child_elements['showConcept']=array();\n\t\t\t\t\t\t$new_attributes=array();\n\t\t\t\t\t\tforeach ($special_child_elements['showConcept'] as $i=>$val)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$bits=unserialize($val->evaluate());\n\t\t\t\t\t\t\t$new_attributes['key_'.strval($i)]=isset($bits[0]['key'])?$bits[0]['key']:'';\n\t\t\t\t\t\t\t$new_attributes['val_'.strval($i)]=isset($bits[0]['key'])?$bits[0]['value']:'';\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$tempcode=_do_tags_comcode($tag,$new_attributes,$child_tempcode,true,$this->pass_id,$this->marker,$this->source_member,true,$this->connection,$this->comcode,$this->wml,$this->structure_sweep,$this->semiparse_mode,NULL,$this->on_behalf_of_member);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'block':\n\t\t\t\t\t\tif (!isset($special_child_elements['blockParam'])) $special_child_elements['blockParam']=array();\n\t\t\t\t\t\t$new_attributes=array();\n\t\t\t\t\t\tforeach ($special_child_elements['blockParam'] as $i=>$val)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$bits=unserialize($val->evaluate());\n\t\t\t\t\t\t\t$new_attributes[isset($bits[0]['key'])?$bits[0]['key']:'param']=isset($bits[0]['value'])?$bits[0]['value']:'';\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$tempcode=_do_tags_comcode($tag,$new_attributes,$child_tempcode,true,$this->pass_id,$this->marker,$this->source_member,true,$this->connection,$this->comcode,$this->wml,$this->structure_sweep,$this->semiparse_mode,NULL,$this->on_behalf_of_member);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'random':\n\t\t\t\t\t\tif (!isset($special_child_elements['randomTarget'])) $special_child_elements['randomTarget']=array();\n\t\t\t\t\t\t$new_attributes=array();\n\t\t\t\t\t\tforeach ($special_child_elements['randomTarget'] as $i=>$val)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$bits=unserialize($val->evaluate());\n\t\t\t\t\t\t\t$new_attributes[isset($bits[0]['pickIfAbove'])?$bits[0]['pickIfAbove']:'0']=$bits[1];\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$tempcode=_do_tags_comcode($tag,$new_attributes,$child_tempcode,true,$this->pass_id,$this->marker,$this->source_member,true,$this->connection,$this->comcode,$this->wml,$this->structure_sweep,$this->semiparse_mode,NULL,$this->on_behalf_of_member);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'jumping':\n\t\t\t\t\t\tif (!isset($special_child_elements['jumpingTarget'])) $special_child_elements['jumpingTarget']=array();\n\t\t\t\t\t\t$new_attributes=array();\n\t\t\t\t\t\tforeach ($special_child_elements['jumpingTarget'] as $i=>$val)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$bits=unserialize($val->evaluate());\n\t\t\t\t\t\t\t$new_attributes[strval($i)]=$bits[1];\n\t\t\t\t\t\t\tif (is_object($new_attributes[strval($i)])) $new_attributes[strval($i)]=$new_attributes[strval($i)]->evaluate();\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$tempcode=_do_tags_comcode($tag,$new_attributes,$child_tempcode,true,$this->pass_id,$this->marker,$this->source_member,true,$this->connection,$this->comcode,$this->wml,$this->structure_sweep,$this->semiparse_mode,NULL,$this->on_behalf_of_member);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'shocker':\n\t\t\t\t\t\tif (!isset($special_child_elements['shockerLeft'])) $special_child_elements['shockerLeft']=array();\n\t\t\t\t\t\t$new_attributes=array();\n\t\t\t\t\t\tforeach ($special_child_elements['shockerLeft'] as $i=>$val)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$bits=unserialize($val->evaluate());\n\t\t\t\t\t\t\t$new_attributes['left_'.strval($i)]=$bits[1];\n\t\t\t\t\t\t\tif (is_object($new_attributes['left_'.strval($i)])) $new_attributes['left_'.strval($i)]=$new_attributes['left_'.strval($i)]->evaluate();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tforeach ($special_child_elements['shockerRight'] as $i=>$val)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$bits=unserialize($val->evaluate());\n\t\t\t\t\t\t\t$new_attributes['right_'.strval($i)]=$bits[1];\n\t\t\t\t\t\t\tif (is_object($new_attributes['right_'.strval($i)])) $new_attributes['right_'.strval($i)]=$new_attributes['right_'.strval($i)]->evaluate();\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$tempcode=_do_tags_comcode($tag,$new_attributes,$child_tempcode,true,$this->pass_id,$this->marker,$this->source_member,true,$this->connection,$this->comcode,$this->wml,$this->structure_sweep,$this->semiparse_mode,NULL,$this->on_behalf_of_member);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'attachment':\n\t\t\t\t\t\t$description='';\n\t\t\t\t\t\tif (isset($special_child_elements['attachmentDescription']))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$bits=unserialize($special_child_elements['attachmentDescription'][0]->evaluate());\n\t\t\t\t\t\t\t$title=is_object($bits[1])?$bits[1]->evaluate():$bits[1];\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$tempcode=_do_tags_comcode($tag,array_merge($attributes,array('description'=>$description)),$child_tempcode,true,$this->pass_id,$this->marker,$this->source_member,true,$this->connection,$this->comcode,$this->wml,$this->structure_sweep,$this->semiparse_mode,NULL,$this->on_behalf_of_member);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'hide':\n\t\t\t\t\t\t$title='';\n\t\t\t\t\t\tif (isset($special_child_elements['hideTitle']))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$bits=unserialize($special_child_elements['hideTitle'][0]->evaluate());\n\t\t\t\t\t\t\t$title=is_object($bits[1])?$bits[1]->evaluate():$bits[1];\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$tempcode=_do_tags_comcode($tag,array_merge($attributes,array('param'=>$title)),$child_tempcode,true,$this->pass_id,$this->marker,$this->source_member,true,$this->connection,$this->comcode,$this->wml,$this->structure_sweep,$this->semiparse_mode,NULL,$this->on_behalf_of_member);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'tooltip':\n\t\t\t\t\t\t$title='';\n\t\t\t\t\t\tif (isset($special_child_elements['tooltipMessage']))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$bits=unserialize($special_child_elements['tooltipMessage'][0]->evaluate());\n\t\t\t\t\t\t\t$title=is_object($bits[0])?$bits[0]->evaluate():$bits[0];\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$tempcode=_do_tags_comcode($tag,array_merge($attributes,array('param'=>$title)),$child_tempcode,true,$this->pass_id,$this->marker,$this->source_member,true,$this->connection,$this->comcode,$this->wml,$this->structure_sweep,$this->semiparse_mode,NULL,$this->on_behalf_of_member);\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\telseif (isset($VALID_COMCODE_TAGS[$tag]))\n\t\t\t{\n\t\t\t\t$tempcode=_do_tags_comcode($tag,$attributes,$child_tempcode,true,$this->pass_id,$this->marker,$this->source_member,true,$this->connection,$this->comcode,$this->wml,$this->structure_sweep,$this->semiparse_mode,NULL,$this->on_behalf_of_member);\n\t\t\t}\n\t\t\t// Else, it is simply unknown and hence skipped\n\t\t}\n\n\t\treturn array($tempcode,$aggregate);\n\t}", "function fix_tags($html) {\n $result = \"\";\n $tag_stack = array();\n\n // these corrections can simplify the regexp used to parse tags\n // remove whitespaces before '/' and between '/' and '>' in autoclosing tags\n $html = preg_replace(\"#\\s*/\\s*>#is\",\"/>\",$html);\n // remove whitespaces between '<', '/' and first tag letter in closing tags\n $html = preg_replace(\"#<\\s*/\\s*#is\",\"</\",$html);\n // remove whitespaces between '<' and first tag letter \n $html = preg_replace(\"#<\\s+#is\",\"<\",$html);\n\n while (preg_match(\"#(.*?)(<([a-z\\d]+)[^>]*/>|<([a-z\\d]+)[^>]*(?<!/)>|</([a-z\\d]+)[^>]*>)#is\",$html,$matches)) {\n $result .= $matches[1];\n $html = substr($html, strlen($matches[0]));\n\n // Closing tag \n if (isset($matches[5])) { \n $tag = $matches[5];\n\n if ($tag == $tag_stack[0]) {\n // Matched the last opening tag (normal state) \n // Just pop opening tag from the stack\n array_shift($tag_stack);\n $result .= $matches[2];\n } elseif (array_search($tag, $tag_stack)) { \n // We'll never should close 'table' tag such way, so let's check if any 'tables' found on the stack\n $no_critical_tags = !array_search('table',$tag_stack);\n if (!$no_critical_tags) {\n $no_critical_tags = (array_search('table',$tag_stack) >= array_search($tag, $tag_stack));\n };\n\n if ($no_critical_tags) {\n // Corresponding opening tag exist on the stack (somewhere deep)\n // Note that we can forget about 0 value returned by array_search, becaus it is handled by previous 'if'\n \n // Insert a set of closing tags for all non-matching tags\n $i = 0;\n while ($tag_stack[$i] != $tag) {\n $result .= \"</{$tag_stack[$i]}> \";\n $i++;\n }; \n \n // close current tag\n $result .= \"</{$tag_stack[$i]}> \";\n // remove it from the stack\n array_splice($tag_stack, $i, 1);\n // if this tag is not \"critical\", reopen \"run-off\" tags\n $no_reopen_tags = array(\"tr\",\"td\",\"table\",\"marquee\",\"body\",\"html\");\n if (array_search($tag, $no_reopen_tags) === false) {\n while ($i > 0) {\n $i--;\n $result .= \"<{$tag_stack[$i]}> \";\n }; \n } else {\n array_splice($tag_stack, 0, $i);\n };\n };\n } else {\n // No such tag found on the stack, just remove it (do nothing in out case, as we have to explicitly \n // add things to result\n };\n } elseif (isset($matches[4])) {\n // Opening tag\n $tag = $matches[4];\n array_unshift($tag_stack, $tag);\n $result .= $matches[2];\n } else {\n // Autoclosing tag; do nothing specific\n $result .= $matches[2];\n };\n };\n\n // Close all tags left\n while (count($tag_stack) > 0) {\n $tag = array_shift($tag_stack);\n $result .= \"</\".$tag.\">\";\n }\n\n return $result;\n}", "function non_DOM_deleteme($opening_tag_string) {\r\n\t\tpreg_match_all('/' . $opening_tag_string . '/is', $this->code, $matches, PREG_OFFSET_CAPTURE);\r\n\t\t$size = sizeof($matches[0]) - 1;\r\n\t\twhile($size > -1) {\r\n\t\t\tpreg_match('/<(\\w+)/is', $matches[0][$size][0], $tagname_matches);\r\n\t\t\t$tagname = $tagname_matches[1];\r\n\t\t\t$OString = OM::getOString($this->code, '<' . $tagname, '</' . $tagname . '>', $matches[0][$size][1]);\r\n\t\t\t$this->code = substr($this->code, 0, $matches[0][$size][1]) . substr($this->code, $matches[0][$size][1] + strlen($OString));\r\n\t\t\t$size--;\r\n\t\t}\r\n\t}", "private function resetInsertionMode()\n {\n $last = false;\n $leng = count($this->stack);\n\n for ($n = $leng - 1; $n >= 0; $n--) {\n /* 2. Let node be the last node in the stack of open elements. */\n $node = $this->stack[$n];\n\n /* 3. If node is the first node in the stack of open elements, then\n set last to true. If the element whose innerHTML attribute is being\n set is neither a td element nor a th element, then set node to the\n element whose innerHTML attribute is being set. (innerHTML case) */\n if ($this->stack[0]->isSameNode($node)) {\n $last = true;\n }\n\n /* 4. If node is a select element, then switch the insertion mode to\n \"in select\" and abort these steps. (innerHTML case) */\n if ($node->nodeName === 'select') {\n $this->mode = self::IN_SELECT;\n break;\n\n /* 5. If node is a td or th element, then switch the insertion mode\n to \"in cell\" and abort these steps. */\n } elseif ($node->nodeName === 'td' || $node->nodeName === 'th') {\n $this->mode = self::IN_CELL;\n break;\n\n /* 6. If node is a tr element, then switch the insertion mode to\n \"in row\" and abort these steps. */\n } elseif ($node->nodeName === 'tr') {\n $this->mode = self::IN_ROW;\n break;\n\n /* 7. If node is a tbody, thead, or tfoot element, then switch the\n insertion mode to \"in table body\" and abort these steps. */\n } elseif (in_array($node->nodeName, array('tbody', 'thead', 'tfoot'))) {\n $this->mode = self::IN_TBODY;\n break;\n\n /* 8. If node is a caption element, then switch the insertion mode\n to \"in caption\" and abort these steps. */\n } elseif ($node->nodeName === 'caption') {\n $this->mode = self::IN_CAPTION;\n break;\n\n /* 9. If node is a colgroup element, then switch the insertion mode\n to \"in column group\" and abort these steps. (innerHTML case) */\n } elseif ($node->nodeName === 'colgroup') {\n $this->mode = self::IN_CGROUP;\n break;\n\n /* 10. If node is a table element, then switch the insertion mode\n to \"in table\" and abort these steps. */\n } elseif ($node->nodeName === 'table') {\n $this->mode = self::IN_TABLE;\n break;\n\n /* 11. If node is a head element, then switch the insertion mode\n to \"in body\" (\"in body\"! not \"in head\"!) and abort these steps.\n (innerHTML case) */\n } elseif ($node->nodeName === 'head') {\n $this->mode = self::IN_BODY;\n break;\n\n /* 12. If node is a body element, then switch the insertion mode to\n \"in body\" and abort these steps. */\n } elseif ($node->nodeName === 'body') {\n $this->mode = self::IN_BODY;\n break;\n\n /* 13. If node is a frameset element, then switch the insertion\n mode to \"in frameset\" and abort these steps. (innerHTML case) */\n } elseif ($node->nodeName === 'frameset') {\n $this->mode = self::IN_FRAME;\n break;\n\n /* 14. If node is an html element, then: if the head element\n pointer is null, switch the insertion mode to \"before head\",\n otherwise, switch the insertion mode to \"after head\". In either\n case, abort these steps. (innerHTML case) */\n } elseif ($node->nodeName === 'html') {\n $this->mode = ($this->head_pointer === null)\n ? self::BEFOR_HEAD\n : self::AFTER_HEAD;\n\n break;\n\n /* 15. If last is true, then set the insertion mode to \"in body\"\n and abort these steps. (innerHTML case) */\n } elseif ($last) {\n $this->mode = self::IN_BODY;\n break;\n }\n }\n }", "function parseIndesignXmlBreakTags(&$pXmlDom){\n\t$lXPaths = getBreakTagsXpaths();\n\tif( is_array( $lXPaths ) ){\n\t\t$lXpath = new DOMXPath($pXmlDom);\n\t\t$lXpath->registerNamespace('tp', 'TP_NAMESPACE_URL');\n\t\tforeach( $lXPaths as $lRuleId => $lRuleData ){\n\t\t\t$lCurrentXPath = $lRuleData['xpath'];\n\t\t\t$lXPathNodes = $lXpath->query($lCurrentXPath);\n\t\t\tfor( $i = $lXPathNodes->length - 1; $i >= 0; --$i ){\n\t\t\t\t$lParentNode = $lXPathNodes->item($i);\n\t\t\t\t$lTagQuery = './/' . SPLIT_TAG_NAME;\n\t\t\t\t$lNodesToSplit = $lXpath->query($lTagQuery, $lParentNode);\n\t\t\t\tfor( $j = $lNodesToSplit->length - 1; $j >= 0; --$j ){\n\t\t\t\t\t$lCurrentClimb = $lRuleData['climb_up'];\n\t\t\t\t\t$lCurrentSplitNode = $lNodesToSplit->item($j);\n\t\t\t\t\t$lCurrentNode = $lCurrentSplitNode;\n\t\t\t\t\t$lNewNode = null;\n\t\t\t\t\t$lSiblingFound = false;\n// \t\t\t\t\tvar_dump($lCurrentNode->ownerDocument->saveXML($lCurrentNode->parentNode));\n// \t\t\t\t\techo \"\\n\";\n\t\t\t\t\twhile($lCurrentNode && $lCurrentNode !== $lParentNode ){//Obikalqme nadolu po dyrvoto i slagame node-ovete v nov node\n\t\t\t\t\t\t$lNewParent = tagSplitProcessNodeLevel($pXmlDom, $lSiblingFound, $lNewNode, $lCurrentNode);\n\t\t\t\t\t}\n\n\t\t\t\t\twhile($lCurrentNode && $lCurrentNode->parentNode != $pXmlDom && $lCurrentClimb > 0){\n\t\t\t\t\t\t$lNewParent = tagSplitProcessNodeLevel($pXmlDom, $lSiblingFound, $lNewNode, $lCurrentNode);\n\t\t\t\t\t\t$lCurrentClimb--;\n\t\t\t\t\t}\n\t\t\t\t\t$lParent = $lCurrentNode->parentNode;\n\t\t\t\t\tif( $lNewNode && $lSiblingFound ){\n\t\t\t\t\t\t$lNextSibling = $lCurrentNode->nextSibling;\n\t\t\t\t\t\tif( $lNextSibling ){\n\t\t\t\t\t\t\t$lCurrentNode->parentNode->insertBefore( $lNewParent, $lNextSibling );\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t$lCurrentNode->parentNode->appendChild( $lNewParent );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n// \t\t\t\t\tvar_dump($lParent->ownerDocument->saveXML($lParent));\n// \t\t\t\t\techo \"\\n\\n\";\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t}\n\t//~ exit;\n}", "function _postProcess() {\r\n $item = current($this->_struct);\r\n \r\n $ret = array('_name'=>$item['tag'], '_attributes'=>array(), '_value'=>null);\r\n\r\n if (isset($item['attributes']) && count($item['attributes'])>0) {\r\n foreach ($item['attributes'] as $key => $data) {\r\n if (!is_null($data)) {\r\n $item['attributes'][$key] = str_replace($this->_replaceWith, $this->_replace, $item['attributes'][$key]);\r\n }\r\n }\r\n $ret['_attributes'] = $item['attributes'];\r\n if ($this->attributesDirectlyUnderParent)\r\n $ret = array_merge($ret, $item['attributes']);\r\n }\r\n\r\n if (isset($item['value']) && $item['value'] != null)\r\n $item['value'] = str_replace($this->_replaceWith, $this->_replace, $item['value']);\r\n \r\n switch ($item['type']) {\r\n case 'open':\r\n $children = array();\r\n while (($child = next($this->_struct)) !== FALSE ) {\r\n if ($child['level'] <= $item['level'])\r\n break;\r\n \r\n $subItem = $this->_postProcess();\r\n \r\n if (isset($subItem['_name'])) {\r\n if (!isset($children[$subItem['_name']]))\r\n $children[$subItem['_name']] = array();\r\n \r\n $children[$subItem['_name']][] = $subItem;\r\n }\r\n else {\r\n foreach ($subItem as $key=>$value) {\r\n if (isset($children[$key])) {\r\n if (is_array($children[$key]))\r\n $children[$key][] = $value;\r\n else\r\n $children[$key] = array($children[$key], $value);\r\n }\r\n else {\r\n $children[$key] = $value;\r\n }\r\n }\r\n }\r\n }\r\n \r\n if ($this->childTagsDirectlyUnderParent)\r\n $ret = array_merge($ret, $this->_condenseArray($children));\r\n else\r\n $ret['_value'] = $this->_condenseArray($children);\r\n \r\n break;\r\n case 'close':\r\n break;\r\n case 'complete':\r\n if (count($ret['_attributes']) > 0) {\r\n if (isset($item['value']))\r\n $ret['_value'] = $item['value'];\r\n }\r\n else {\r\n\t\t\tif (isset($item['value'])) {\r\n\t\t\t\t$ret = array($item['tag']=> $item['value']);\r\n\t\t\t} else {\r\n\t\t\t\t$ret = array($item['tag']=> \"\");\r\n\t\t\t}\r\n }\r\n break;\r\n }\r\n\r\n //added by Dan Coulter\r\n\r\n \r\n /*\r\n foreach ($ret as $key => $data) {\r\n if (!is_null($data) && !is_array($data)) {\r\n $ret[$key] = str_replace($this->_replaceWith, $this->_replace, $ret[$key]);\r\n }\r\n }\r\n */\r\n return $ret;\r\n }", "static function close_tags($content) {\n $position = 0;\n $open_tags = array();\n $ignored_tags = array('br', 'hr', 'img');\n\n while (($position = strpos($content, '<', $position)) !== FALSE)\n {\n if (preg_match(\"|^<(/?)([a-z\\d]+)\\b[^>]*>|i\", substr($content, $position), $match))\n {\n $tag = strtolower($match[2]);\n if (in_array($tag, $ignored_tags) == FALSE)\n {\n //тег открыт\n if (isset($match[1]) AND $match[1] == '')\n {\n if (isset($open_tags[$tag]))\n $open_tags[$tag]++;\n else\n $open_tags[$tag] = 1;\n }\n //тег закрыт\n if (isset($match[1]) AND $match[1] == '/')\n {\n if (isset($open_tags[$tag]))\n $open_tags[$tag]--;\n }\n }\n $position += strlen($match[0]);\n }\n else\n $position++;\n }\n\n foreach ($open_tags as $tag => $count_not_closed) {\n $content .= str_repeat(\"</{$tag}>\", $count_not_closed);\n }\n\n return $content;\n }", "public function resetInsertionMode(): void\n {\n $last = false;\n $iterator = $this->parser->openElements->getIterator();\n\n while ($iterator->valid()) {\n $node = $iterator->current();\n\n if ($this->parser->openElements->top() === $node) {\n $last = true;\n\n if ($this->parser->isFragmentCase) {\n // Fragment case\n $node = $this->parser->contextElement;\n }\n }\n\n if ($node instanceof HTMLSelectElement) {\n if (!$last) {\n $ancestor = $node;\n\n while ($iterator->valid()) {\n if ($ancestor === $this->parser->openElements->top()) {\n break;\n }\n\n $iterator->next();\n $ancestor = $iterator->current();\n\n if ($ancestor instanceof HTMLTemplateElement) {\n break;\n }\n\n if ($ancestor instanceof HTMLTableElement) {\n $this->insertionMode = new InSelectInTableInsertionMode();\n\n return;\n }\n }\n }\n\n $this->insertionMode = new InSelectInsertionMode();\n\n return;\n }\n\n if ($node instanceof HTMLTableCellElement && !$last) {\n $this->insertionMode = new InCellInsertionMode();\n\n return;\n }\n\n if ($node instanceof HTMLTableRowElement) {\n $this->insertionMode = new InRowInsertionMode();\n\n return;\n }\n\n if ($node instanceof HTMLTableSectionElement) {\n $this->insertionMode = new InTableBodyInsertionMode();\n\n return;\n }\n\n if ($node instanceof HTMLTableCaptionElement) {\n $this->insertionMode = new InCaptionInsertionMode();\n\n return;\n }\n\n if ($node instanceof HTMLTableColElement && $node->localName === 'colgroup') {\n $this->insertionMode = new InColumnGroupInsertionMode();\n\n return;\n }\n\n if ($node instanceof HTMLTableElement) {\n $this->insertionMode = new InTableInsertionMode();\n\n return;\n }\n\n if ($node instanceof HTMLTemplateElement) {\n $mode = $this->templateInsertionModes->top();\n $this->insertionMode = new $mode();\n\n return;\n }\n\n if ($node instanceof HTMLHeadElement && !$last) {\n $this->insertionMode = new InHeadInsertionMode();\n\n return;\n }\n\n if ($node instanceof HTMLBodyElement) {\n $this->insertionMode = new InBodyInsertionMode();\n\n return;\n }\n\n if ($node instanceof HTMLFrameSetElement) {\n // Fragment case\n $this->insertionMode = new InFrameSetInsertionMode();\n\n return;\n }\n\n if ($node instanceof HTMLHtmlElement) {\n if (!$this->parser->headElementPointer) {\n // Fragment case\n $this->insertionMode = new BeforeHeadInsertionMode();\n\n return;\n }\n\n $this->insertionMode = new AfterHeadInsertionMode();\n\n return;\n }\n\n if ($last) {\n // Fragment case\n $this->insertionMode = new InBodyInsertionMode();\n\n return;\n }\n\n $iterator->next();\n }\n }", "function endElement($parser)\n\t{\n\t\t$this_element=array_peek($this->tag_stack);\n\t\tif (strpos($this_element,':')!==false)\n\t\t{\n\t\t\t$bits=explode(':',$this_element);\n\t\t\t$this_element=$bits[1];\n\t\t}\n\n\t\t$child_tempcode=array_pop($this->tempcode_stack);\n\t\t$parent_special_child_elements=array_pop($this->special_child_elements_stack);\n\t\tlist($tempcode,$aggregate)=$this->convertFinalisedElement($parser,$child_tempcode,$parent_special_child_elements);\n\n\t\tarray_pop($this->attribute_stack);\n\t\tarray_pop($this->tag_stack);\n\n\t\tif ($aggregate)\n\t\t{\n\t\t\t$parent_tempcode=array_pop($this->tempcode_stack);\n\t\t\t$parent_tempcode->attach($tempcode);\n\t\t\tarray_push($this->tempcode_stack,$parent_tempcode);\n\t\t}\n\n\t\tif (!array_key_exists($this_element,$parent_special_child_elements)) $parent_special_child_elements[$this_element]=array();\n\t\t$parent_special_child_elements[$this_element][]=$tempcode;\n\t\tarray_push($this->special_child_elements_stack,$parent_special_child_elements);\n\t}", "private function pop_tag($tag) {\n if ($tag === 'header') $tag = 'h2';\n\n $opener = null;\n if (count($this->stack) > 0) {\n $opener = array_pop($this->stack);\n }\n if ($opener === null || $opener['@name'] !== $tag) throw $this->makeError(\"</\" . $tag . \"> occurred without a corresponding open tag.\");\n\n switch ($tag) {\n case 'comment':\n $this->comment_nest_level--;\n break;\n\n case 'enablebackticks':\n case 'disablebackticks':\n $this->backticks_for_inline_code_enabled = $opener['@name'] === 'enablebackticks';\n break;\n\n case 'bookmark':\n $uid = $opener['@uid'];\n $label = implode('', $this->active_text_listeners[$uid]);\n unset($this->active_text_listeners[$uid]);\n for ($i = count($this->bookmark_list) - 1; $i >= 0; --$i) {\n if ($this->bookmark_list[$i]['uid'] === $uid) {\n $this->bookmark_list[$i]['label'] = $label;\n }\n }\n break;\n\n case 'image':\n if (isset($opener['@url'])) {\n $url = trim($opener['@url']);\n $alt_text = trim($opener['alt']);\n if ($alt_text === '') {\n $t = explode('/', $url);\n $alt_text = htmlspecialchars($t[count($t) - 1]);\n }\n\n if (isset($opener['mouseover'])) {\n $opener['title'] = $opener['mouseover'];\n unset($opener['mouseover']);\n }\n\n $this->output('<img src=\"' . $url . '\" alt=\"' . $alt_text . '\"');\n foreach ($opener as $attr => $value) {\n if ($attr[0] !== '@' && $attr !== 'comment') {\n $this->output(' ' . $attr . '=\"' . $value . '\"');\n }\n }\n $this->output('/>');\n }\n break;\n\n case 'note':\n case 'warning':\n $this->output('</div>');\n break;\n\n case 'code':\n $syntax = isset($opener['language']) ? $opener['language'] : 'none';\n $classes = isset($opener['classes']) ? explode(',', str_replace(' ', ',', $opener['classes'])) : array(); // classes are trimmed and ignored if empty.\n $code = $opener['@code'];\n $html = (new BlakesHtmlSyntaxHighlighter($syntax))->highlight($code, $classes);\n\n $this->output('<div');\n foreach ($opener as $attr => $value) {\n if ($attr[0] !== '@' && $attr !== 'language' && $attr !== 'classes') {\n $this->output(' ' . $attr . '=\"' . $value . '\"');\n }\n }\n $this->output('>');\n\n $this->output($html);\n $this->output('</div>');\n\n break;\n\n case 'tableofcontents':\n break;\n\n default:\n $this->output('</' . $tag . '>');\n break;\n }\n }", "function venus_structural_wrap( $output, $original_output ) {\n\n\tswitch ( $original_output ) {\n\t\tcase 'open':\n\t\t\t$output = '<div class=\"container\"><div class=\"row\">';\n\t\t\tbreak;\n\t\tcase 'close':\n\t\t\t$output = '</div></div>';\n\t\t\tbreak;\n\t}\n\n\treturn $output;\n}", "function non_DOM_stripme($opening_tag_string) {\r\n\t\tpreg_match_all('/' . $opening_tag_string . '/is', $this->code, $matches, PREG_OFFSET_CAPTURE);\r\n\t\t$size = sizeof($matches[0]) - 1;\r\n\t\twhile($size > -1) {\r\n\t\t\t//print(\"matches[0][size][0]: \");var_dump($matches[0][$size][0]);\r\n\t\t\tpreg_match('/<(\\w+)/is', $matches[0][$size][0], $tagname_matches);\r\n\t\t\t$tagname = $tagname_matches[1];\r\n\t\t\t$OString = OM::getOString($this->code, '<' . $tagname, '</' . $tagname . '>', $matches[0][$size][1]);\r\n\t\t\t//print(\"strlen(matches[0][size][0]): \");var_dump(strlen($matches[0][$size][0]));\r\n\t\t\t$substr = substr($OString, strlen($matches[0][$size][0]), strlen($OString) - strlen($matches[0][$size][0]) - (strlen($tagname) + 3));\r\n\t\t\t//print(\"OString: \");var_dump($OString);\r\n\t\t\t//print(\"substr: \");var_dump($substr);\r\n\t\t\t//$this->code = str_replace($OString, $substr, $this->code);\r\n\t\t\t$this->code = substr($this->code, 0, $matches[0][$size][1]) . $substr . substr($this->code, $matches[0][$size][1] + strlen($OString));\r\n\t\t\t$size--;\r\n\t\t}\r\n\t}", "protected static function addCloseTagElements(DOMDocument $ir)\n\t{\n\t\t$xpath = new DOMXPath($ir);\n\t\t$exprs = [\n\t\t\t'//applyTemplates[not(ancestor::attribute)]',\n\t\t\t'//comment',\n\t\t\t'//element',\n\t\t\t'//output[not(ancestor::attribute)]'\n\t\t];\n\t\tforeach ($xpath->query(implode('|', $exprs)) as $node)\n\t\t{\n\t\t\t$parentElementId = self::getParentElementId($node);\n\t\t\tif (isset($parentElementId))\n\t\t\t{\n\t\t\t\t$node->parentNode\n\t\t\t\t ->insertBefore($ir->createElement('closeTag'), $node)\n\t\t\t\t ->setAttribute('id', $parentElementId);\n\t\t\t}\n\n\t\t\t// Append a <closeTag/> to <element/> nodes to ensure that empty elements get closed\n\t\t\tif ($node->nodeName === 'element')\n\t\t\t{\n\t\t\t\t$id = $node->getAttribute('id');\n\t\t\t\tself::appendElement($node, 'closeTag')->setAttribute('id', $id);\n\t\t\t}\n\t\t}\n\t}", "function cloneTextblocks($mapping)\n\t{\n\t\tforeach ($mapping as $original_id => $new_id)\n\t\t{\n\t\t\t$textblock = $this->getTextblock($original_id);\n\t\t\tinclude_once \"./Services/AdvancedEditing/classes/class.ilObjAdvancedEditing.php\";\n\t\t\t$this->saveHeading(ilUtil::stripSlashes($textblock, TRUE, ilObjAdvancedEditing::_getUsedHTMLTagsAsString(\"survey\")), $new_id);\n\t\t}\n\t}", "protected function _preserveCodeBoxes( $txt )\n\t{\n\t\t$map = array();\n\n\t\t/* CODE: Fetch paired opening and closing tags */\n\t\t$data = $this->getTagPositions( $txt, 'code', array( '[' , ']' ) );\n\t\n\t\tif ( is_array( $data['open'] ) )\n\t\t{\n\t\t\tforeach( $data['open'] as $id => $val )\n\t\t\t{\n\t\t\t\t$o = $data['open'][ $id ];\n\t\t\t\t$c = $data['close'][ $id ] - $o;\n\t\t\t\t\n\t\t\t\t/* Prevent unclosed tags from breaking this */\n\t\t\t\tif ( $o < 1 || $c < 1 )\n\t\t\t\t{\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$slice = substr( $txt, $o, $c );\n\t\n\t\t\t\t/* Need to bump up lengths of opening and closing */\n\t\t\t\t$_origLength = strlen( $slice );\n\t\n\t\t\t\t/* Extra conversion for BBCODE>HTML mode */\n\t\t\t\t$slice = str_replace( \"[\", \"&#91;\", $slice );\n\t\t\t\t$slice = preg_replace( '#(https|http|ftp)://#' , '\\1&#58;//', $slice );\n\t\t\t\t#$slice = str_replace( \"]\", \"&#93;\", $slice );\n\t\t\t\t$slice = str_replace( \"\\n\", \"<!-preserve.newline-->\", $slice );\n\t\t\t\t\n\t\t\t\t/* Stop (r) (tm) and (c) from switching out */\n\t\t\t\t$slice = preg_replace( '#\\((tm|r|c)\\)#i', '&#40;$1&#41;', $slice );\n\t\t\t\t\n\t\t\t\t$_newLength = strlen( $slice );\n\t\n\t\t\t\t$txt = substr_replace( $txt, $slice, $o, $c );\n\t\n\t\t\t\t/* Bump! */\n\t\t\t\tif ( $_newLength != $_origLength )\n\t\t\t\t{\n\t\t\t\t\tforeach( $data['open'] as $_id => $_val )\n\t\t\t\t\t{\n\t\t\t\t\t\t$_o = $data['open'][ $_id ];\n\t\t\t\t\t\t\t\n\t\t\t\t\t\tif ( $_o > $o )\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$data['open'][ $_id ] += ( $_newLength - $_origLength );\n\t\t\t\t\t\t\t$data['close'][ $_id ] += ( $_newLength - $_origLength );\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\t\t\n\t\t/* PRE: Fetch paired opening and closing tags */\n\t\t$data = $this->getTagPositions( $txt, 'pre', array( '<' , '>' ) );\n\t\n\t\tif ( is_array( $data['open'] ) )\n\t\t{\n\t\t\tforeach( $data['open'] as $id => $val )\n\t\t\t{\n\t\t\t\t$o = $data['open'][ $id ] ;\n\t\t\t\t$c = $data['close'][ $id ] - $o;\n\t\t\t\t\t\n\t\t\t\t$slice = substr( $txt, $o, $c );\n\t\t\t\t\t\n\t\t\t\t/* Need to bump up lengths of opening and closing */\n\t\t\t\t$_origLength = strlen( $slice );\n\t\t\t\t\t\n\t\t\t\t/* Extra conversion for BBCODE>HTML mode */\n\t\t\t\t$slice = str_replace( \"[\", \"&#91;\", $slice );\n\t\t\t\t$slice = str_replace( \"]\", \"&#93;\", $slice );\n\t\t\t\t$slice = preg_replace( '#(https|http|ftp)://#' , '\\1&#58;//', $slice );\n\t\t\t\t$slice = str_replace( \"\\n\", \"<!-preserve.newline-->\", $slice );\n\t\t\t\t\n\t\t\t\t/* Stop (r) (tm) and (c) from switching out */\n\t\t\t\t$slice = preg_replace( '#\\((tm|r|c)\\)#i', '&#40;$1&#41;', $slice );\n\t\t\t\t\n\t\t\t\t$_newLength = strlen( $slice );\n\t\t\t\t\t\n\t\t\t\t$txt = substr_replace( $txt, $slice, $o, $c );\n\t\t\t\t\t\n\t\t\t\t/* Bump! */\n\t\t\t\tif ( $_newLength != $_origLength )\n\t\t\t\t{\n\t\t\t\t\tforeach( $data['open'] as $_id => $_val )\n\t\t\t\t\t{\n\t\t\t\t\t\t$_o = $data['open'][ $_id ] + strlen( '<pre' );\n\t\t\t\t\t\t\t\n\t\t\t\t\t\tif ( $_o > $o )\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$data['open'][ $_id ] += ( $_newLength - $_origLength );\n\t\t\t\t\t\t\t$data['close'][ $_id ] += ( $_newLength - $_origLength );\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\t\t\n\t\treturn $txt;\n\t}", "function foldClose(&$parser, $tag, $empty = false): void\n\t{\n\t\t$this->orig_obj->{$this->orig_close_method}($parser, strtoupper($tag), $empty);\n\t}", "function shiftFootnotesDown() {\r\n\t\tpreg_match_all('/<a href=\"([^\"]*?)#note([^\"]*?)([0-9]+)\" id=\"note([^\"]*?)\\3\" title=\"([^\"]*?)\\3\">((<[^<>]+>)*?)\\3/is', $this->code, $noteParts, PREG_OFFSET_CAPTURE);\r\n\t\tif(sizeof($noteParts[0]) === 0) {\r\n\t\t\tpreg_match_all('/<sup id=\"fnb([0-9]+)-ref\"><a class=\"footnote-link\" href=\"#fnb\\1\"><span class=\"wb-invisible\">[^<>]*?<\\/span>\\1<\\/a><\\/sup>/is', $this->code, $noteParts, PREG_OFFSET_CAPTURE);\r\n\t\t\t$size = sizeof($noteParts[0]);\r\n\t\t\t$count = 0;\r\n\t\t\twhile($size > 0) {\r\n\t\t\t\t$index = $size - 1;\t\r\n\t\t\t\t$num = $noteParts[1][$index][0];\r\n\t\t\t\t$numMinusOne = $num - 1;\r\n\t\t\t\t$initial_note = $noteParts[0][$index][0];\r\n\t\t\t\t$modified_note = str_replace($num, $numMinusOne, $initial_note);\r\n\t\t\t\t$offset = $noteParts[0][$index][1];\r\n\t\t\t\t$this->code = substr($this->code, 0, $offset) . $modified_note . substr($this->code, $offset + strlen($initial_note));\r\n\t\t\t\t$count += 1;\r\n\t\t\t\t$size--;\r\n\t\t\t}\r\n\t\t\tpreg_match_all('/<dt>[^<>]*?([0-9]+)<\\/dt>\\s*<dd id=\"fnb\\1\">\\s*<p>.*?<\\/p>\\s*<p class=\"footnote-return\"><a href=\"#fnb\\1-ref\"><span class=\"wb-invisible\">[^<>]*?<\\/span>\\1<span class=\"wb-invisible\">[^<>]*?<\\/span><\\/a><\\/p>\\s*<\\/dd>/is', $this->code, $noteParts2, PREG_OFFSET_CAPTURE);\r\n\t\t\t$size2 = sizeof($noteParts2[0]);\r\n\t\t\t$count2 = 0;\r\n\t\t\twhile($size2 > 0) {\r\n\t\t\t\t$index = $size2 - 1;\t\r\n\t\t\t\t$num = $noteParts2[1][$index][0];\r\n\t\t\t\t$numMinusOne = $num - 1;\r\n\t\t\t\t$initial_note = $noteParts2[0][$index][0];\r\n\t\t\t\t$modified_note = str_replace($num, $numMinusOne, $initial_note);\r\n\t\t\t\t$offset = $noteParts2[0][$index][1];\r\n\t\t\t\t$this->code = substr($this->code, 0, $offset) . $modified_note . substr($this->code, $offset + strlen($initial_note));\r\n\t\t\t\t$count2 += 1;\r\n\t\t\t\t$size2--;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$size = sizeof($noteParts[0]);\r\n\t\t\t$count = 0;\r\n\t\t\twhile($size > 0) {\r\n\t\t\t\t$index = $size - 1;\t\r\n\t\t\t\t$num = $noteParts[3][$index][0];\r\n\t\t\t\t$numMinusOne = $num - 1;\r\n\t\t\t\t$initial_note = $noteParts[0][$index][0];\r\n\t\t\t\t$modified_note = str_replace($num, $numMinusOne, $initial_note);\r\n\t\t\t\t$offset = $noteParts[0][$index][1];\r\n\t\t\t\t$this->code = substr($this->code, 0, $offset) . $modified_note . substr($this->code, $offset + strlen($initial_note));\r\n\t\t\t\t$count += 1;\r\n\t\t\t\t$size--;\r\n\t\t\t}\r\n\t\t}\r\n\t\t$this->logMsgIf(\"shiftFootnotesDown (referrer)\", $count);\r\n\t\t$this->logMsgIf(\"shiftFootnotesDown (note)\", $count2);\r\n\t\treturn true;\r\n\t}", "private function prepareItemChunks($item)\n {\n // divide the item content using '<h1>' and '<h2>' HTML sections\n $originalItemChunks = preg_split('/(<h[1-2].*<\\/h[1-2]>)/', $item['content'],\n null, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY);\n\n // prepare each chunk information combining the item['toc'] information\n // with the contents extracted in the $originalItemChunks variable\n $itemChunks = array();\n foreach ($item['toc'] as $i => $itemChunk) {\n if (1 == $itemChunk['level']) {\n // include the item TOC in the first level-1 chunk\n // this is useful for the template rendering done later\n $itemChunk['toc'] = $item['toc'];\n\n $itemChunks[$i] = $itemChunk;\n } else {\n // instead of matching each chunk position in the TOC with its\n // position in $originalItemChunks, it's safer to perform a match with\n // the chunk slug\n foreach ($originalItemChunks as $j => $chunk) {\n // extract the slug of this chunk from its <h2> heading\n preg_match('/<h2.*id=\"(?<slug>.*)\".*<\\/h2>/', $chunk, $match);\n\n if (isset($match['slug']) && $match['slug'] == $itemChunk['slug'] && 2 == $itemChunk['level']) {\n $itemChunk['html_title'] = $originalItemChunks[$j];\n $itemChunk['content'] = $originalItemChunks[$j+1];\n\n $itemChunks[$i] = $itemChunk;\n }\n }\n }\n }\n\n // if needed, merge the first '<h2>' section into the previous '<h1>' empty section\n\n if ('<h2' != substr($originalItemChunks[0], 0, 3)) {\n // if there is some content between the '<h1>' and the first '<h2>',\n // use it as the content of the first chapter page\n $itemChunks[0]['content'] = $originalItemChunks[0];\n } else {\n // there is no content between the '<h1>' and the first '<h2>'.\n // Include the first '<h2>' section inside the first chapter page\n // and delete this '<h2>' section from the book TOC\n $firstH2SectionHeading = $itemChunks[1]['html_title'];\n $firstH2SectionContent = $itemChunks[1]['content'];\n $itemChunks[0]['content'] = $firstH2SectionHeading.\"\\n\".$firstH2SectionContent;\n\n // look for and unset this item from the global flatten TOC\n $toc = $this->app['publishing.book.toc'];\n foreach ($toc as $i => $entry) {\n if ($itemChunks[1]['slug'] == $entry['slug']) {\n unset($toc[$i]);\n\n // needed to recreate sequential numeric keys lost when\n // removing the previous TOC item\n $toc = array_values($toc);\n\n $this->app['publishing.book.toc'] = $toc;\n\n break;\n }\n }\n\n // unset this chunk for the item chunk list\n unset($itemChunks[1]);\n\n // needed to recreate sequential numeric keys lost if some elements\n // have been removed from the $itemChunks array\n $itemChunks = array_values($itemChunks);\n }\n\n return $itemChunks;\n }", "function _opened_tag($mindless_mode,$as_admin,$source_member,$attribute_map,$current_tag,$pos,$comcode_dangerous,$comcode_dangerous_html,$in_separate_parse_section,$in_html,$in_semihtml,$close,&$len,&$comcode)\n{\n\tglobal $BLOCK_TAGS,$TEXTUAL_TAGS,$CODE_TAGS;\n\n\t$block_tag=isset($BLOCK_TAGS[$current_tag]);\n\n\tif (($block_tag) && ($pos<$len) && ($comcode[$pos]==chr(10)))\n\t{\n\t\t++$pos;\n\t\tglobal $NUM_LINES;\n\t\t++$NUM_LINES;\n\t}\n\n\t$tag_output=new ocp_tempcode();\n\t$textual_area=isset($TEXTUAL_TAGS[$current_tag]);\n\n\t$white_space_area=$textual_area;\n\tif (((($current_tag=='code') || ($current_tag=='codebox')) && (isset($attribute_map['param'])) && ((strtolower($attribute_map['param'])=='php') || (file_exists(get_file_base().'/sources/geshi/'.filter_naughty(strtolower($attribute_map['param'])).'.php')) || (file_exists(get_file_base().'/sources_custom/geshi/'.filter_naughty($attribute_map['param']).'.php')))) || ($current_tag=='php') || ($current_tag=='attachment') || ($current_tag=='attachment2') || ($current_tag=='attachment_safe') || ($current_tag=='menu'))\n\t{\n\t\t$in_separate_parse_section=true;\n\t} else\n\t{\n\t\t// Code tags are white space area, but not textual area\n\t\tif (isset($CODE_TAGS[$current_tag])) $white_space_area=true;\n\t}\n\n\t$in_code_tag=isset($CODE_TAGS[$current_tag]);\n\n\t$attribute_map=array();\n\n\t$formatting_allowed=(($textual_area?1:0) & ($block_tag?1:0))!=0;\n\n//\t\t\t\t\t\tif (in_array($current_tag,$BLOCK_TAGS)) $just_new_line=true;\n\n\tif ($current_tag=='html') $in_html=!$close;\n\telseif ($current_tag=='semihtml') $in_semihtml=!$close;\n\t$status=CCP_NO_MANS_LAND;\n\n\tif (($current_tag=='html') || ($current_tag=='semihtml')) // New state meaning we need to filter the contents\n\t{\n\t\tif (($in_html) || ($in_semihtml))\n\t\t{\n\t\t\tfilter_html($as_admin,$source_member,$pos,$len,$comcode,$in_html,$in_semihtml);\n\t\t}\n\t}\n\n\tif ($mindless_mode)\n\t{\n\t\t$white_space_area=true;\n\t\t$in_separate_parse_section=false;\n\t}\n\n\tif ($current_tag=='quote')\n\t{\n\t\t$comcode_dangerous=false;\n\t\t$comcode_dangerous_html=false;\n\t}\n\n\treturn array($tag_output,$comcode_dangerous,$comcode_dangerous_html,$white_space_area,$formatting_allowed,$in_separate_parse_section,$textual_area,$attribute_map,$status,$in_html,$in_semihtml,$pos,$in_code_tag);\n}", "function addTags($rawData, $tag)\n{\n switch($rawData['genericType'])\n {\n case \"Diagram\":\n $rawData['id'] = addTag($rawData['id'], $tag);\n foreach ($rawData['nodeList'] as &$node)\n {\n $node['id'] = addTag($node['id'], $tag);\n }\n\n foreach ($rawData['linkList'] as &$link)\n {\n $link['id'] = addTag($link['id'], $tag);\n $link['originNode'] = addTag($link['originNode'], $tag);\n $link['destinationNode'] = addTag($link['destinationNode'], $tag);\n }\n\n foreach ($rawData['DiaNodeList'] as &$diaNode)\n {\n $diaNode['id'] = addTag($diaNode['id'], $tag);\n }\n\n for ($i = 0; $i < count($rawData['ancestry']); $i++)\n {\n $rawData['ancestry'][$i] = addTag($rawData['ancestry'][$i], $tag);\n }\n\n $rawData['diaNode'] = addTag($rawData['diaNode'], $tag);\n break;\n \n case \"diaNode\":\n // Intentionally let it fall through to Node so that we only\n // have to write linkList code here once\n case \"Node\":\n $rawData['id'] = addTag($rawData['id'], $tag);\n $rawData['diagramId'] = addTag($rawData['diagramId'], $tag);\n foreach ($rawData['linkList'] as &$link)\n {\n $link['id'] = addTag($link['id'], $tag);\n $link['originNode'] = addTag($link['originNode'], $tag);\n $link['destinationNode'] = addTag($link['destinationNode'], $tag);\n }\n break;\n \n case \"Link\":\n $rawData['id'] = addTag($rawData['id'], $tag);\n $rawData['diagramId'] = addTag($rawData['diagramId'], $tag);\n $rawData['originNode']['id'] = addTag($rawData['originNode']['id'], $tag);\n $rawData['destinationNode']['id'] = addTag($rawData['destinationNode']['id'], $tag);\n break;\n \n case \"List\":\n for ($i = 0; $i < count($rawData['list']); $i++)\n {\n $rawData['list'][$i]['id'] = addTag($rawData['list'][$i]['id'], $tag);\n }\n break;\n \n default:\n // Probably should update to a specialized exception\n throw new BadFunctionCallException(\"Not a valid genericType\");\n break;\n \n }\n \n return $rawData;\n}", "function remove_tags_intra_tags() {\r\n\t\t$ct_intra_tags = 0;\r\n\t\t$ct2 = -1;\r\n\t\twhile($ct2 != 0) {\r\n\t\t\t/*preg_match_all('/(<[^>]*)<[^<>]+?>/is', $this->code, $debug_matches);\r\n\t\t\tprint('$debug_matches: ');var_dump($debug_matches);*/\r\n\t\t\t$this->code = preg_replace('/(<(![^\\-][^<>]+|[^!<>]+))<[^<>]+?>/is', '$1', $this->code, -1, $ct2); // changed (2012-01-25)\r\n\t\t\t$ct_intra_tags += $ct2;\r\n\t\t}\r\n\t\t$this->logMsgIf(\"tags intra tags removed\", $ct_intra_tags);\r\n\t\t// we must also ignore the <head>!\r\n\t\t// the only tag that has content in the head that I can think of is <title>, so:\r\n\t\tpreg_match_all('/<title>(.*?)<\\/title>/is', $this->code, $title_matches);\r\n\t\tif(sizeof($title_matches[0]) > 1) {\r\n\t\t\tprint(\"Well, that's not good; found more than one (\" . sizeof($title_matches[0]) . \") &lt;title&gt; tags on this page!\");exit(0);\r\n\t\t}\r\n\t\tif(sizeof($title_matches[0]) === 0) {\r\n\t\t\t// nothing to do\r\n\t\t} else {\r\n\t\t\t$ct_title = 0;\r\n\t\t\t$initial_title_string = $title_string = $title_matches[0][0];\r\n\t\t\t$ct1 = -1;\r\n\t\t\r\n\t\t\twhile($ct1 != 0) {\r\n\t\t\t\t$title_string = preg_replace('/<title>(.*?)<[^<>]+?>(.*?)<\\/title>/is', '<title>$1$2</title>', $title_string, -1, $ct1);\r\n\t\t\t\t$ct_title += $ct1;\r\n\t\t\t}\r\n\t\t\t$this->code = str_replace($initial_title_string, $title_string, $this->code);\r\n\t\t}\r\n\t\t$this->logMsgIf(\"tags removed from title tag\", $ct_title);\r\n\t\t// this should only happen if something exists in both the acronyms and abbr files (erroneously) or if\r\n\t\t// an bbreviation is a substring of another abbreviation but we'll still clean it up\r\n\t\t//$this->code = preg_replace('/<(abbr|acronym) title=\"([^\"]*?)\"><(abbr|acronym) title=\"([^\"]*?)\">(.*?)<\\/(abbr|acronym)><\\/(abbr|acronym)>/is', '<$1 title=\"$2\">$4</$5>', $this->code, -1, $ct_redundant_acro);\r\n\t\t$ct_redundant_acro = 0;\r\n\t\t$array_tags = array('abbr', 'acronym');\r\n\t\t$tagNamesString = implode('|', $array_tags);\r\n\t\tforeach($array_tags as $tagName) {\r\n\t\t\t$OStrings = OM::getAllOStrings($this->code, '<' . $tagName, '</' . $tagName . '>');\r\n\t\t\t//var_dump($OStrings);exit(0);\r\n\t\t\t$counter = sizeof($OStrings) - 1;\r\n\t\t\twhile($counter >= 0) {\r\n\t\t\t\t$OString = $OStrings[$counter][0];\r\n\t\t\t\t$opening_tag = substr($OString, 0, strpos($OString, '>') + 1);\r\n\t\t\t\t$closing_tag = substr($OString, ReTidy::strpos_last($OString, '<'));\r\n\t\t\t\t$code_to_clean = substr($OString, strlen($opening_tag), strlen($OString) - strlen($opening_tag) - strlen($closing_tag));\r\n\t\t\t\t$needs_to_be_cleaned = false;\r\n\t\t\t\tforeach($array_tags as $tagName2) {\r\n\t\t\t\t\tif(strpos($code_to_clean, '<' . $tagName2) !== false) {\r\n\t\t\t\t\t\t$needs_to_be_cleaned = true;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif($needs_to_be_cleaned) {\r\n\t\t\t\t\t$offset = $OStrings[$counter][1];\r\n\t\t\t\t\t$code_to_clean = preg_replace('/<(' . $tagNamesString . ')[^<>]*?>/is', '', $code_to_clean);\r\n\t\t\t\t\t$code_to_clean = preg_replace('/<\\/(' . $tagNamesString . ')>/is', '', $code_to_clean);\r\n\t\t\t\t\t$new_OString = $opening_tag . $code_to_clean . $closing_tag;\r\n\t\t\t\t\t$this->code = substr($this->code, 0, $offset) . $new_OString . substr($this->code, $offset + strlen($OString));\r\n\t\t\t\t\t$ct_redundant_acro += 1;\r\n\t\t\t\t}\r\n\t\t\t\t$counter--;\r\n\t\t\t}\r\n\t\t}\r\n\t\t$this->logMsgIf(\"redundant acronyms applications removed\", $ct_redundant_acro);\r\n\t}" ]
[ "0.67171896", "0.5414111", "0.5286976", "0.52604413", "0.4972362", "0.49691612", "0.48397407", "0.47564864", "0.47430477", "0.47416747", "0.47101745", "0.4681599", "0.46317613", "0.4616803", "0.46122682", "0.46082002", "0.45965534", "0.45804468", "0.45486313", "0.45252907", "0.45251396", "0.44627637", "0.4438243", "0.43794176", "0.43756846", "0.43713957", "0.43618098", "0.42932153", "0.42777547", "0.42757806" ]
0.71196574
0
Remove redundant closeTag elements from the tail of a switch's cases If there's a right after a , remove all nodes at the end of every
protected static function removeRedundantCloseTagElementsInSwitch(DOMDocument $ir) { $xpath = new DOMXPath($ir); $query = '//switch[name(following-sibling::*) = "closeTag"]'; foreach ($xpath->query($query) as $switch) { foreach ($switch->childNodes as $case) { while ($case->lastChild && $case->lastChild->nodeName === 'closeTag') { $case->removeChild($case->lastChild); } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected static function cloneCloseTagElementsOutOfSwitch(DOMDocument $ir)\n\t{\n\t\t$xpath = new DOMXPath($ir);\n\t\t$query = '//switch[not(preceding-sibling::closeTag)]';\n\t\tforeach ($xpath->query($query) as $switch)\n\t\t{\n\t\t\tforeach ($switch->childNodes as $case)\n\t\t\t{\n\t\t\t\tif (!$case->firstChild || $case->firstChild->nodeName !== 'closeTag')\n\t\t\t\t{\n\t\t\t\t\t// This case is either empty or does not start with a <closeTag/> so we skip\n\t\t\t\t\t// to the next <switch/>\n\t\t\t\t\tcontinue 2;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Insert the first child of the last <case/>, which should be the same <closeTag/>\n\t\t\t// as every other <case/>\n\t\t\t$switch->parentNode->insertBefore($switch->lastChild->firstChild->cloneNode(), $switch);\n\t\t}\n\t}", "protected static function removeCloseTagSiblings(DOMDocument $ir)\n\t{\n\t\t$xpath = new DOMXPath($ir);\n\t\t$query = '//switch[not(case[not(closeTag)])]/following-sibling::closeTag';\n\t\tforeach ($xpath->query($query) as $closeTag)\n\t\t{\n\t\t\t$closeTag->parentNode->removeChild($closeTag);\n\t\t}\n\t}", "protected static function removeRedundantCloseTagElements(DOMDocument $ir)\n\t{\n\t\t$xpath = new DOMXPath($ir);\n\t\tforeach ($xpath->query('//closeTag') as $closeTag)\n\t\t{\n\t\t\t$id = $closeTag->getAttribute('id');\n\t\t\t$query = 'following-sibling::*/descendant-or-self::closeTag[@id=\"' . $id . '\"]';\n\t\t\tforeach ($xpath->query($query, $closeTag) as $dupe)\n\t\t\t{\n\t\t\t\t$dupe->parentNode->removeChild($dupe);\n\t\t\t}\n\t\t}\n\t}", "function non_DOM_deleteme($opening_tag_string) {\r\n\t\tpreg_match_all('/' . $opening_tag_string . '/is', $this->code, $matches, PREG_OFFSET_CAPTURE);\r\n\t\t$size = sizeof($matches[0]) - 1;\r\n\t\twhile($size > -1) {\r\n\t\t\tpreg_match('/<(\\w+)/is', $matches[0][$size][0], $tagname_matches);\r\n\t\t\t$tagname = $tagname_matches[1];\r\n\t\t\t$OString = OM::getOString($this->code, '<' . $tagname, '</' . $tagname . '>', $matches[0][$size][1]);\r\n\t\t\t$this->code = substr($this->code, 0, $matches[0][$size][1]) . substr($this->code, $matches[0][$size][1] + strlen($OString));\r\n\t\t\t$size--;\r\n\t\t}\r\n\t}", "protected static function cloneCloseTagElementsIntoSwitch(DOMDocument $ir)\n\t{\n\t\t$xpath = new DOMXPath($ir);\n\t\t$query = '//switch[name(following-sibling::*) = \"closeTag\"]';\n\t\tforeach ($xpath->query($query) as $switch)\n\t\t{\n\t\t\t$closeTag = $switch->nextSibling;\n\t\t\tforeach ($switch->childNodes as $case)\n\t\t\t{\n\t\t\t\tif (!$case->lastChild || $case->lastChild->nodeName !== 'closeTag')\n\t\t\t\t{\n\t\t\t\t\t$case->appendChild($closeTag->cloneNode());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "function fix_tags($html) {\n $result = \"\";\n $tag_stack = array();\n\n // these corrections can simplify the regexp used to parse tags\n // remove whitespaces before '/' and between '/' and '>' in autoclosing tags\n $html = preg_replace(\"#\\s*/\\s*>#is\",\"/>\",$html);\n // remove whitespaces between '<', '/' and first tag letter in closing tags\n $html = preg_replace(\"#<\\s*/\\s*#is\",\"</\",$html);\n // remove whitespaces between '<' and first tag letter \n $html = preg_replace(\"#<\\s+#is\",\"<\",$html);\n\n while (preg_match(\"#(.*?)(<([a-z\\d]+)[^>]*/>|<([a-z\\d]+)[^>]*(?<!/)>|</([a-z\\d]+)[^>]*>)#is\",$html,$matches)) {\n $result .= $matches[1];\n $html = substr($html, strlen($matches[0]));\n\n // Closing tag \n if (isset($matches[5])) { \n $tag = $matches[5];\n\n if ($tag == $tag_stack[0]) {\n // Matched the last opening tag (normal state) \n // Just pop opening tag from the stack\n array_shift($tag_stack);\n $result .= $matches[2];\n } elseif (array_search($tag, $tag_stack)) { \n // We'll never should close 'table' tag such way, so let's check if any 'tables' found on the stack\n $no_critical_tags = !array_search('table',$tag_stack);\n if (!$no_critical_tags) {\n $no_critical_tags = (array_search('table',$tag_stack) >= array_search($tag, $tag_stack));\n };\n\n if ($no_critical_tags) {\n // Corresponding opening tag exist on the stack (somewhere deep)\n // Note that we can forget about 0 value returned by array_search, becaus it is handled by previous 'if'\n \n // Insert a set of closing tags for all non-matching tags\n $i = 0;\n while ($tag_stack[$i] != $tag) {\n $result .= \"</{$tag_stack[$i]}> \";\n $i++;\n }; \n \n // close current tag\n $result .= \"</{$tag_stack[$i]}> \";\n // remove it from the stack\n array_splice($tag_stack, $i, 1);\n // if this tag is not \"critical\", reopen \"run-off\" tags\n $no_reopen_tags = array(\"tr\",\"td\",\"table\",\"marquee\",\"body\",\"html\");\n if (array_search($tag, $no_reopen_tags) === false) {\n while ($i > 0) {\n $i--;\n $result .= \"<{$tag_stack[$i]}> \";\n }; \n } else {\n array_splice($tag_stack, 0, $i);\n };\n };\n } else {\n // No such tag found on the stack, just remove it (do nothing in out case, as we have to explicitly \n // add things to result\n };\n } elseif (isset($matches[4])) {\n // Opening tag\n $tag = $matches[4];\n array_unshift($tag_stack, $tag);\n $result .= $matches[2];\n } else {\n // Autoclosing tag; do nothing specific\n $result .= $matches[2];\n };\n };\n\n // Close all tags left\n while (count($tag_stack) > 0) {\n $tag = array_shift($tag_stack);\n $result .= \"</\".$tag.\">\";\n }\n\n return $result;\n}", "static function close_tags($content) {\n $position = 0;\n $open_tags = array();\n $ignored_tags = array('br', 'hr', 'img');\n\n while (($position = strpos($content, '<', $position)) !== FALSE)\n {\n if (preg_match(\"|^<(/?)([a-z\\d]+)\\b[^>]*>|i\", substr($content, $position), $match))\n {\n $tag = strtolower($match[2]);\n if (in_array($tag, $ignored_tags) == FALSE)\n {\n //тег открыт\n if (isset($match[1]) AND $match[1] == '')\n {\n if (isset($open_tags[$tag]))\n $open_tags[$tag]++;\n else\n $open_tags[$tag] = 1;\n }\n //тег закрыт\n if (isset($match[1]) AND $match[1] == '/')\n {\n if (isset($open_tags[$tag]))\n $open_tags[$tag]--;\n }\n }\n $position += strlen($match[0]);\n }\n else\n $position++;\n }\n\n foreach ($open_tags as $tag => $count_not_closed) {\n $content .= str_repeat(\"</{$tag}>\", $count_not_closed);\n }\n\n return $content;\n }", "function closetags($html) {\n\t\tpreg_match_all('#<([a-z]+)(?: .*)?(?<![/|/ ])>#iU', $html, $result);\n\t\t$openedtags = $result[1]; #put all closed tags into an array\n\t\tpreg_match_all('#</([a-z]+)>#iU', $html, $result);\n\t\t$closedtags = $result[1];\n\t\t$len_opened = count($openedtags);\n\t\t# all tags are closed\n\t\tif (count($closedtags) == $len_opened) {\n\t\t\treturn $html;\n\t\t}\n\t\t\n\t\t$openedtags = array_reverse($openedtags);\n\t\t# close tags\n\t\tfor ($i=0; $i < $len_opened; $i++) {\n\t\t\tif (!in_array($openedtags[$i], $closedtags)){\n\t\t\t $html .= '</'.$openedtags[$i].'>';\n\t\t\t} else {\n\t\t\t unset($closedtags[array_search($openedtags[$i], $closedtags)]); }\n\t\t\t} \n\t\t\treturn $html;\n\t\t}", "public function closeFinalElements($depth)\n {\n // Failsafe tag closing. Driven by produced edge case.\n $divsToClose = $this->numberOfOpenElements('div', 'body');\n\n while ($divsToClose > 0)\n {\n // First close any open spans inside the div\n $this->closeOpenSpans('div', $depth);\n\n $this->addPageElement('</div>', $depth);\n $divsToClose--;\n }\n }", "function non_DOM_stripme($opening_tag_string) {\r\n\t\tpreg_match_all('/' . $opening_tag_string . '/is', $this->code, $matches, PREG_OFFSET_CAPTURE);\r\n\t\t$size = sizeof($matches[0]) - 1;\r\n\t\twhile($size > -1) {\r\n\t\t\t//print(\"matches[0][size][0]: \");var_dump($matches[0][$size][0]);\r\n\t\t\tpreg_match('/<(\\w+)/is', $matches[0][$size][0], $tagname_matches);\r\n\t\t\t$tagname = $tagname_matches[1];\r\n\t\t\t$OString = OM::getOString($this->code, '<' . $tagname, '</' . $tagname . '>', $matches[0][$size][1]);\r\n\t\t\t//print(\"strlen(matches[0][size][0]): \");var_dump(strlen($matches[0][$size][0]));\r\n\t\t\t$substr = substr($OString, strlen($matches[0][$size][0]), strlen($OString) - strlen($matches[0][$size][0]) - (strlen($tagname) + 3));\r\n\t\t\t//print(\"OString: \");var_dump($OString);\r\n\t\t\t//print(\"substr: \");var_dump($substr);\r\n\t\t\t//$this->code = str_replace($OString, $substr, $this->code);\r\n\t\t\t$this->code = substr($this->code, 0, $matches[0][$size][1]) . $substr . substr($this->code, $matches[0][$size][1] + strlen($OString));\r\n\t\t\t$size--;\r\n\t\t}\r\n\t}", "function close_tag($tag, $sample_html) {\n return preg_replace(\"!(<{$tag}(\\s[^>]*[^/>])?)>!si\",\"\\\\1/>\",$sample_html);\n}", "public static function close_tags($html){\n\n \t#put all opened tags into an array\n \tpreg_match_all(\"#<([a-z]+)( .*)?(?!/)>#iU\",$html,$result);\n \t$openedtags=$result[1];\n\n \t#put all closed tags into an array\n \tpreg_match_all(\"#</([a-z]+)>#iU\",$html,$result);\n \t$closedtags=$result[1];\n \t$len_opened = count($openedtags);\n\n \t#all tags are closed\n \tif(count($closedtags) == $len_opened){\n \t\treturn $html;\n \t}\n \t$openedtags = array_reverse($openedtags);\n\n \t#close tags\n \tfor($i=0;$i < $len_opened;$i++) {\n \t\tif (!in_array($openedtags[$i],$closedtags)){\n \t\t\t$html .= '</'.$openedtags[$i].'>';\n \t\t} else {\n \t\t\tunset($closedtags[array_search($openedtags[$i],$closedtags)]);\n \t\t}\n \t}\n \treturn $html;\n }", "function CloseTags($html) {\n\t$html = preg_replace('/<[^>]*$/', '', $html); // ending with fraction of open tag\n\t// put open tags into an array\n\tpreg_match_all('#<([a-z]+)(?: .*)?(?<![/|/ ])>#iU', $html, $result);\n\t$opentags = $result[1];\n\t// put all closed tags into an array\n\tpreg_match_all('#</([a-z]+)>#iU', $html, $result);\n\t$closetags = $result[1];\n\t$len_opened = count($opentags);\n\t// if all tags are closed, we can return\n\tif (count($closetags) == $len_opened) {\n\t\treturn $html;\n\t}\n\t// close tags in reverse order that they were opened\n\t$opentags = array_reverse($opentags);\n\t// self closing tags\n\t$sc = array('br', 'input', 'img', 'hr', 'meta', 'link');\n\t// ,'frame','iframe','param','area','base','basefont','col'\n\t// should not skip tags that can have content inside!\n\tfor ($i = 0; $i < $len_opened; $i++) {\n\t\t$ot = strtolower($opentags[$i]);\n\t\tif (!in_array($opentags[$i], $closetags) && !in_array($ot, $sc)) {\n\t\t\t$html .= '</' . $opentags[$i] . '>';\n\t\t} else {\n\t\t\tunset($closetags[array_search($opentags[$i], $closetags)]);\n\t\t}\n\t}\n\treturn $html;\n}", "function endElement($parser)\n\t{\n\t\t$this_element=array_peek($this->tag_stack);\n\t\tif (strpos($this_element,':')!==false)\n\t\t{\n\t\t\t$bits=explode(':',$this_element);\n\t\t\t$this_element=$bits[1];\n\t\t}\n\n\t\t$child_tempcode=array_pop($this->tempcode_stack);\n\t\t$parent_special_child_elements=array_pop($this->special_child_elements_stack);\n\t\tlist($tempcode,$aggregate)=$this->convertFinalisedElement($parser,$child_tempcode,$parent_special_child_elements);\n\n\t\tarray_pop($this->attribute_stack);\n\t\tarray_pop($this->tag_stack);\n\n\t\tif ($aggregate)\n\t\t{\n\t\t\t$parent_tempcode=array_pop($this->tempcode_stack);\n\t\t\t$parent_tempcode->attach($tempcode);\n\t\t\tarray_push($this->tempcode_stack,$parent_tempcode);\n\t\t}\n\n\t\tif (!array_key_exists($this_element,$parent_special_child_elements)) $parent_special_child_elements[$this_element]=array();\n\t\t$parent_special_child_elements[$this_element][]=$tempcode;\n\t\tarray_push($this->special_child_elements_stack,$parent_special_child_elements);\n\t}", "function CloseTag() {\n\t\tif (!empty($this->tag)) {\n\t\t\tfor ($in=0;$in<$this->indent; $in++) {\n\t\t\t\t$this->outputCode.=\"\";\n\t\t\t}\n\t\t\tif (!empty($this->tag))\n\t\t\t$this->outputCode.=\"</\".$this->tag.\">\";\n\t\t}\n\t\t//$this->outputCode.=\"\\n\";\n\t\t$this->indent--;\n\t}", "public function exitRemainingTags()\n {\n while (count($this->stack) > 0) {\n $this->handler->endTag(\n new ParsedTag(array_pop($this->stack))\n );\n }\n }", "function remove_tags_intra_tags() {\r\n\t\t$ct_intra_tags = 0;\r\n\t\t$ct2 = -1;\r\n\t\twhile($ct2 != 0) {\r\n\t\t\t/*preg_match_all('/(<[^>]*)<[^<>]+?>/is', $this->code, $debug_matches);\r\n\t\t\tprint('$debug_matches: ');var_dump($debug_matches);*/\r\n\t\t\t$this->code = preg_replace('/(<(![^\\-][^<>]+|[^!<>]+))<[^<>]+?>/is', '$1', $this->code, -1, $ct2); // changed (2012-01-25)\r\n\t\t\t$ct_intra_tags += $ct2;\r\n\t\t}\r\n\t\t$this->logMsgIf(\"tags intra tags removed\", $ct_intra_tags);\r\n\t\t// we must also ignore the <head>!\r\n\t\t// the only tag that has content in the head that I can think of is <title>, so:\r\n\t\tpreg_match_all('/<title>(.*?)<\\/title>/is', $this->code, $title_matches);\r\n\t\tif(sizeof($title_matches[0]) > 1) {\r\n\t\t\tprint(\"Well, that's not good; found more than one (\" . sizeof($title_matches[0]) . \") &lt;title&gt; tags on this page!\");exit(0);\r\n\t\t}\r\n\t\tif(sizeof($title_matches[0]) === 0) {\r\n\t\t\t// nothing to do\r\n\t\t} else {\r\n\t\t\t$ct_title = 0;\r\n\t\t\t$initial_title_string = $title_string = $title_matches[0][0];\r\n\t\t\t$ct1 = -1;\r\n\t\t\r\n\t\t\twhile($ct1 != 0) {\r\n\t\t\t\t$title_string = preg_replace('/<title>(.*?)<[^<>]+?>(.*?)<\\/title>/is', '<title>$1$2</title>', $title_string, -1, $ct1);\r\n\t\t\t\t$ct_title += $ct1;\r\n\t\t\t}\r\n\t\t\t$this->code = str_replace($initial_title_string, $title_string, $this->code);\r\n\t\t}\r\n\t\t$this->logMsgIf(\"tags removed from title tag\", $ct_title);\r\n\t\t// this should only happen if something exists in both the acronyms and abbr files (erroneously) or if\r\n\t\t// an bbreviation is a substring of another abbreviation but we'll still clean it up\r\n\t\t//$this->code = preg_replace('/<(abbr|acronym) title=\"([^\"]*?)\"><(abbr|acronym) title=\"([^\"]*?)\">(.*?)<\\/(abbr|acronym)><\\/(abbr|acronym)>/is', '<$1 title=\"$2\">$4</$5>', $this->code, -1, $ct_redundant_acro);\r\n\t\t$ct_redundant_acro = 0;\r\n\t\t$array_tags = array('abbr', 'acronym');\r\n\t\t$tagNamesString = implode('|', $array_tags);\r\n\t\tforeach($array_tags as $tagName) {\r\n\t\t\t$OStrings = OM::getAllOStrings($this->code, '<' . $tagName, '</' . $tagName . '>');\r\n\t\t\t//var_dump($OStrings);exit(0);\r\n\t\t\t$counter = sizeof($OStrings) - 1;\r\n\t\t\twhile($counter >= 0) {\r\n\t\t\t\t$OString = $OStrings[$counter][0];\r\n\t\t\t\t$opening_tag = substr($OString, 0, strpos($OString, '>') + 1);\r\n\t\t\t\t$closing_tag = substr($OString, ReTidy::strpos_last($OString, '<'));\r\n\t\t\t\t$code_to_clean = substr($OString, strlen($opening_tag), strlen($OString) - strlen($opening_tag) - strlen($closing_tag));\r\n\t\t\t\t$needs_to_be_cleaned = false;\r\n\t\t\t\tforeach($array_tags as $tagName2) {\r\n\t\t\t\t\tif(strpos($code_to_clean, '<' . $tagName2) !== false) {\r\n\t\t\t\t\t\t$needs_to_be_cleaned = true;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif($needs_to_be_cleaned) {\r\n\t\t\t\t\t$offset = $OStrings[$counter][1];\r\n\t\t\t\t\t$code_to_clean = preg_replace('/<(' . $tagNamesString . ')[^<>]*?>/is', '', $code_to_clean);\r\n\t\t\t\t\t$code_to_clean = preg_replace('/<\\/(' . $tagNamesString . ')>/is', '', $code_to_clean);\r\n\t\t\t\t\t$new_OString = $opening_tag . $code_to_clean . $closing_tag;\r\n\t\t\t\t\t$this->code = substr($this->code, 0, $offset) . $new_OString . substr($this->code, $offset + strlen($OString));\r\n\t\t\t\t\t$ct_redundant_acro += 1;\r\n\t\t\t\t}\r\n\t\t\t\t$counter--;\r\n\t\t\t}\r\n\t\t}\r\n\t\t$this->logMsgIf(\"redundant acronyms applications removed\", $ct_redundant_acro);\r\n\t}", "function restoreTags($input)\n {\n $opened = array();\n\n // loop through opened and closed tags in order\n if(preg_match_all(\"/<(\\/?[a-z]+)>?/i\", $input, $matches)) {\n foreach($matches[1] as $tag) {\n if(preg_match(\"/^[a-z]+$/i\", $tag, $regs)) {\n // a tag has been opened\n if(strtolower($regs[0]) != 'br') $opened[] = $regs[0];\n } elseif(preg_match(\"/^\\/([a-z]+)$/i\", $tag, $regs)) {\n // a tag has been closed\n unset($opened[array_pop(array_keys($opened, $regs[1]))]);\n }\n }\n }\n\n // close tags that are still open\n if($opened) {\n $tagstoclose = array_reverse($opened);\n foreach($tagstoclose as $tag) $input .= \"</$tag>\";\n }\n\n return $input;\n }", "private function removeTag(int $currentTagPtr, int $tagEndPtr): void\n {\n $this->phpcsFile->fixer->beginChangeset();\n\n for ($tokenPtr = $currentTagPtr; $tokenPtr < $tagEndPtr; $tokenPtr++) {\n $this->phpcsFile->fixer->replaceToken($tokenPtr, '');\n }\n\n $this->phpcsFile->fixer->endChangeset();\n }", "private static function closetags ($html) {\n\t\t// put all opened tags into an array\n\t\tpreg_match_all ( \"#<([a-z]+)( .*)?(?!/)>#iU\", $html, $result );\n\t\t$openedtags = $result[1];\n\t\t// put all closed tags into an array\n\t\tpreg_match_all ( \"#</([a-z]+)>#iU\", $html, $result );\n\t\t$closedtags = $result[1];\n\t\t$len_opened = count ( $openedtags );\n\t\t// all tags are closed\n\t\tif(count($closedtags ) == $len_opened)\n\t\t\treturn $html;\n\t\t$openedtags = array_reverse ( $openedtags );\n\t\t// close tags\n\t\tfor( $i = 0; $i < $len_opened; $i++ ){\n\t\t\tif ( !in_array ( $openedtags[$i], $closedtags ) )\n\t\t\t\t$html .= \"</\" . $openedtags[$i] . \">\";\n\t\t\telse\n\t\t\t\tunset ( $closedtags[array_search ( $openedtags[$i], $closedtags)] );\n\t\t}\n\t\treturn $html;\n\t}", "function closeUnclosedTags($unclosedString)\n\t\t{ \n\t\t\tpreg_match_all(\"/<([^\\/]\\w*)>/\", $closedString = $unclosedString, $tags); \n\t\t\t\n\t\t\tfor($i=count($tags[1])-1; $i>=0; $i--)\n\t\t\t{ \n\t\t\t\t$tag = $tags[1][$i];\n\t\t\t\t\n\t\t\t\tif(substr_count($closedString, \"</$tag>\") < substr_count($closedString, \"<$tag>\"))\n\t\t\t\t\t$closedString .= \"</$tag>\";\n\t\t\t}\n\t\t\t\n\t\t\treturn $closedString; \n\t\t}", "function getClosingTags(string $str): array\n{\n $closingTags = [];\n //update the pattern\n $pattern = \"/<\\/[A-Z]+>/\";\n preg_match_all($pattern, $str, $closingTags);\n $result = [];\n foreach ($closingTags as $cT) {\n foreach ($cT as $c) {\n $result[] = $c;\n }\n }\n return $result;\n}", "function clear_subtags()\n {\n $numtags = sizeof($this->tags);\n $keys = array_keys( $this->tags );\n foreach( $keys as $k ) {\n $this->tags[$k]->clear_subtags();\n unset($this->tags[$k]->parent);\n }\n\n # Clear the tags array\n $this->tags = array();\n unset( $this->curtag );\n }", "private function remove_post_parse_conditionals($tags, $tagdata)\n\t{\n\t\t//--------------------------------------------\n\t\t//\tfirst find all if openers\n\t\t//--------------------------------------------\n\n\t\t//need a temp to work with\n\t\t$temp \t\t\t\t= $tagdata;\n\n\t\t$if_openers \t\t= array();\n\n\t\t$count = 0;\n\n\t\twhile ($temp = stristr($temp, LD . 'if'))\n\t\t{\n\t\t\t$count++;\n\n\t\t\t//we first have to find the proper end of the {if} tag\n\t\t\t$if_tag_pos \t= strpos($temp, RD, 0);\n\t\t\t$if_tag \t\t= substr($temp, 0, $if_tag_pos + 1);\n\n\t\t\t$inner_count = 0;\n\n\t\t\t//if we dont have an equal number of delimters...\n\t\t\twhile ( ! $this->equal_delimiters($if_tag))\n\t\t\t{\n\t\t\t\t$inner_count++;\n\n\t\t\t\t//we keep checking for the next right delmiter in line\n\t\t\t\t$if_tag_pos = strpos($temp, RD, $if_tag_pos + 1);\n\t\t\t\t$if_tag \t= substr($temp, 0, $if_tag_pos + 1);\n\n\t\t\t\tif ($inner_count > 1000) break;\n\t\t\t}\n\n\t\t\t$if_openers[] \t= $if_tag;\n\n\t\t\t//remove from temp so we can move on in the while loop\n\t\t\t$temp \t\t\t= substr($temp, strlen($if_tag));\n\n\t\t\tif ($count > 1000) break;\n\t\t}\n\n\t\t//--------------------------------------------\n\t\t//\treplace all items from if tags with\n\t\t//--------------------------------------------\n\n\t\t//keep a copy of old ones\n\t\t$original_ifs = $if_openers;\n\n\t\t//replace all tag names as the passed in hash (with pair tags)\n\t\tforeach ($tags as $tag => $hash)\n\t\t{\n\t\t\tforeach ($if_openers as $key => $value)\n\t\t\t{\n\t\t\t\t//--------------------------------------------\n\t\t\t\t//\tthis is complicated, but we have\n\t\t\t\t//\tto make sure no previous\n\t\t\t\t//\treplacements get double wrapped\n\t\t\t\t//--------------------------------------------\n\n\t\t\t\t$matches = array();\n\t\t\t\t$holders = array();\n\n\t\t\t\tif (preg_match_all(\n\t\t\t\t\t\"/\" . LD . 'count_hash_placeholder type=\"' . $tag . '\"' . RD . \"(.+?)\" .\n\t\t\t\t\t\t LD . preg_quote(T_SLASH, '/') . 'count_hash_placeholder' . RD . \"/s\",\n\t\t\t\t\t$if_openers[$key],\n\t\t\t\t\t$matches\n\t\t\t\t))\n\t\t\t\t{\n\t\t\t\t\tfor ($i = 0, $l = count($matches[0]); $i < $l; $i++)\n\t\t\t\t\t{\n\t\t\t\t\t\t$holder_hash \t\t\t= md5($matches[0][$i]);\n\t\t\t\t\t\t$holders[$holder_hash] \t= $matches[0][$i];\n\t\t\t\t\t\t$if_openers[$key] \t\t= str_replace(\n\t\t\t\t\t\t\t$matches[0][$i],\n\t\t\t\t\t\t\t$holder_hash,\n\t\t\t\t\t\t\t$if_openers[$key]\n\t\t\t\t\t\t);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t//fix any remaining\n\t\t\t\t$if_openers[$key] = str_replace($tag, $hash, $if_openers[$key]);\n\n\t\t\t\t//put any holders back in\n\t\t\t\tif ( ! empty($holders))\n\t\t\t\t{\n\t\t\t\t\tforeach($holders as $holder_hash => $held_data)\n\t\t\t\t\t{\n\t\t\t\t\t\t$if_openers[$key] = str_replace(\n\t\t\t\t\t\t\t$holder_hash,\n\t\t\t\t\t\t\t$held_data,\n\t\t\t\t\t\t\t$if_openers[$key]\n\t\t\t\t\t\t);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t//replace old if blocks with new ones\n\t\tforeach ($original_ifs as $key => $value)\n\t\t{\n\t\t\t$tagdata = str_replace($original_ifs[$key], $if_openers[$key], $tagdata);\n\t\t}\n\n\t\treturn $tagdata;\n\t}", "function cleanup()\n {\n if (is_object( $this->roottag )) {\n $this->roottag->clear_subtags();\n }\n }", "protected static function removeContentFromVoidElements(DOMDocument $ir)\n\t{\n\t\t$xpath = new DOMXPath($ir);\n\t\tforeach ($xpath->query('//element[@void=\"yes\"]') as $element)\n\t\t{\n\t\t\t$id = $element->getAttribute('id');\n\t\t\t$query = './/closeTag[@id=\"' . $id . '\"]/following-sibling::*';\n\t\t\tforeach ($xpath->query($query, $element) as $node)\n\t\t\t{\n\t\t\t\t$node->parentNode->removeChild($node);\n\t\t\t}\n\t\t}\n\t}", "function parseIndesignXmlBreakTags(&$pXmlDom){\n\t$lXPaths = getBreakTagsXpaths();\n\tif( is_array( $lXPaths ) ){\n\t\t$lXpath = new DOMXPath($pXmlDom);\n\t\t$lXpath->registerNamespace('tp', 'TP_NAMESPACE_URL');\n\t\tforeach( $lXPaths as $lRuleId => $lRuleData ){\n\t\t\t$lCurrentXPath = $lRuleData['xpath'];\n\t\t\t$lXPathNodes = $lXpath->query($lCurrentXPath);\n\t\t\tfor( $i = $lXPathNodes->length - 1; $i >= 0; --$i ){\n\t\t\t\t$lParentNode = $lXPathNodes->item($i);\n\t\t\t\t$lTagQuery = './/' . SPLIT_TAG_NAME;\n\t\t\t\t$lNodesToSplit = $lXpath->query($lTagQuery, $lParentNode);\n\t\t\t\tfor( $j = $lNodesToSplit->length - 1; $j >= 0; --$j ){\n\t\t\t\t\t$lCurrentClimb = $lRuleData['climb_up'];\n\t\t\t\t\t$lCurrentSplitNode = $lNodesToSplit->item($j);\n\t\t\t\t\t$lCurrentNode = $lCurrentSplitNode;\n\t\t\t\t\t$lNewNode = null;\n\t\t\t\t\t$lSiblingFound = false;\n// \t\t\t\t\tvar_dump($lCurrentNode->ownerDocument->saveXML($lCurrentNode->parentNode));\n// \t\t\t\t\techo \"\\n\";\n\t\t\t\t\twhile($lCurrentNode && $lCurrentNode !== $lParentNode ){//Obikalqme nadolu po dyrvoto i slagame node-ovete v nov node\n\t\t\t\t\t\t$lNewParent = tagSplitProcessNodeLevel($pXmlDom, $lSiblingFound, $lNewNode, $lCurrentNode);\n\t\t\t\t\t}\n\n\t\t\t\t\twhile($lCurrentNode && $lCurrentNode->parentNode != $pXmlDom && $lCurrentClimb > 0){\n\t\t\t\t\t\t$lNewParent = tagSplitProcessNodeLevel($pXmlDom, $lSiblingFound, $lNewNode, $lCurrentNode);\n\t\t\t\t\t\t$lCurrentClimb--;\n\t\t\t\t\t}\n\t\t\t\t\t$lParent = $lCurrentNode->parentNode;\n\t\t\t\t\tif( $lNewNode && $lSiblingFound ){\n\t\t\t\t\t\t$lNextSibling = $lCurrentNode->nextSibling;\n\t\t\t\t\t\tif( $lNextSibling ){\n\t\t\t\t\t\t\t$lCurrentNode->parentNode->insertBefore( $lNewParent, $lNextSibling );\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t$lCurrentNode->parentNode->appendChild( $lNewParent );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n// \t\t\t\t\tvar_dump($lParent->ownerDocument->saveXML($lParent));\n// \t\t\t\t\techo \"\\n\\n\";\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t}\n\t//~ exit;\n}", "protected static function addCloseTagElements(DOMDocument $ir)\n\t{\n\t\t$xpath = new DOMXPath($ir);\n\t\t$exprs = [\n\t\t\t'//applyTemplates[not(ancestor::attribute)]',\n\t\t\t'//comment',\n\t\t\t'//element',\n\t\t\t'//output[not(ancestor::attribute)]'\n\t\t];\n\t\tforeach ($xpath->query(implode('|', $exprs)) as $node)\n\t\t{\n\t\t\t$parentElementId = self::getParentElementId($node);\n\t\t\tif (isset($parentElementId))\n\t\t\t{\n\t\t\t\t$node->parentNode\n\t\t\t\t ->insertBefore($ir->createElement('closeTag'), $node)\n\t\t\t\t ->setAttribute('id', $parentElementId);\n\t\t\t}\n\n\t\t\t// Append a <closeTag/> to <element/> nodes to ensure that empty elements get closed\n\t\t\tif ($node->nodeName === 'element')\n\t\t\t{\n\t\t\t\t$id = $node->getAttribute('id');\n\t\t\t\tself::appendElement($node, 'closeTag')->setAttribute('id', $id);\n\t\t\t}\n\t\t}\n\t}", "function end_tag() {\r\n\t\t$this->push_nodelist();\r\n\t\t\r\n\t}", "public function moveTagFromEndToTheMiddle() {}" ]
[ "0.64101326", "0.64084274", "0.5618216", "0.5504648", "0.55023944", "0.54906845", "0.5339891", "0.53257865", "0.5192374", "0.5186191", "0.5167038", "0.51143306", "0.5110638", "0.5107019", "0.51027805", "0.5093856", "0.50618315", "0.50466627", "0.49944755", "0.49935943", "0.49903658", "0.49641642", "0.49587506", "0.49451593", "0.4939812", "0.49329", "0.4929401", "0.49151883", "0.49089602", "0.48804915" ]
0.7052264
0
Remove content from void elements For each void element, we find whichever elements close it and remove everything after
protected static function removeContentFromVoidElements(DOMDocument $ir) { $xpath = new DOMXPath($ir); foreach ($xpath->query('//element[@void="yes"]') as $element) { $id = $element->getAttribute('id'); $query = './/closeTag[@id="' . $id . '"]/following-sibling::*'; foreach ($xpath->query($query, $element) as $node) { $node->parentNode->removeChild($node); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function non_DOM_deleteme($opening_tag_string) {\r\n\t\tpreg_match_all('/' . $opening_tag_string . '/is', $this->code, $matches, PREG_OFFSET_CAPTURE);\r\n\t\t$size = sizeof($matches[0]) - 1;\r\n\t\twhile($size > -1) {\r\n\t\t\tpreg_match('/<(\\w+)/is', $matches[0][$size][0], $tagname_matches);\r\n\t\t\t$tagname = $tagname_matches[1];\r\n\t\t\t$OString = OM::getOString($this->code, '<' . $tagname, '</' . $tagname . '>', $matches[0][$size][1]);\r\n\t\t\t$this->code = substr($this->code, 0, $matches[0][$size][1]) . substr($this->code, $matches[0][$size][1] + strlen($OString));\r\n\t\t\t$size--;\r\n\t\t}\r\n\t}", "protected static function removeRedundantCloseTagElements(DOMDocument $ir)\n\t{\n\t\t$xpath = new DOMXPath($ir);\n\t\tforeach ($xpath->query('//closeTag') as $closeTag)\n\t\t{\n\t\t\t$id = $closeTag->getAttribute('id');\n\t\t\t$query = 'following-sibling::*/descendant-or-self::closeTag[@id=\"' . $id . '\"]';\n\t\t\tforeach ($xpath->query($query, $closeTag) as $dupe)\n\t\t\t{\n\t\t\t\t$dupe->parentNode->removeChild($dupe);\n\t\t\t}\n\t\t}\n\t}", "protected static function removeCloseTagSiblings(DOMDocument $ir)\n\t{\n\t\t$xpath = new DOMXPath($ir);\n\t\t$query = '//switch[not(case[not(closeTag)])]/following-sibling::closeTag';\n\t\tforeach ($xpath->query($query) as $closeTag)\n\t\t{\n\t\t\t$closeTag->parentNode->removeChild($closeTag);\n\t\t}\n\t}", "public function deleteAllBlocks()\n {\n // Sometimes Word splits tags. Find and replace all of them with\n // new string surrounded by template symbol value\n $documentSymbol = explode(self::$_templateSymbol, self::$_document);\n foreach ($documentSymbol as $documentSymbolValue) {\n if (strpos(strip_tags($documentSymbolValue), 'BLOCK_') !== false) {\n self::$_document = str_replace($documentSymbolValue, strip_tags($documentSymbolValue), self::$_document);\n }\n }\n $domDocument = new DomDocument();\n $domDocument->loadXML(self::$_document);\n\n $xmlWP = $domDocument->getElementsByTagNameNS('http://schemas.openxmlformats.org/wordprocessingml/2006/main',\n 'p');\n $xpath = new DOMXPath($domDocument);\n $length = $xmlWP->length;\n $itemsWP = array();\n for ($i = 0; $i < $length; $i++) {\n $itemsWP[$i] = $xmlWP->item($i);\n }\n $query = 'w:r/w:t';\n for ($i = 0; $i < $length; $i++) {\n $variables = $xpath->query($query, $itemsWP[$i]);\n foreach ($variables as $entry) {\n $deleteCurrent = false;\n if (\n strpos($entry->nodeValue,\n self::$_templateSymbol . 'BLOCK_'\n ) !== false\n ) {\n //when we find a placeholder, we delete it\n $deleteCurrent = true;\n break;\n }\n }\n if ($deleteCurrent) {\n $padre = $itemsWP[$i]->parentNode;\n $padre->removeChild($itemsWP[$i]);\n self::$_document = $domDocument->saveXML();\n }\n }\n }", "protected static function removeRedundantCloseTagElementsInSwitch(DOMDocument $ir)\n\t{\n\t\t$xpath = new DOMXPath($ir);\n\t\t$query = '//switch[name(following-sibling::*) = \"closeTag\"]';\n\t\tforeach ($xpath->query($query) as $switch)\n\t\t{\n\t\t\tforeach ($switch->childNodes as $case)\n\t\t\t{\n\t\t\t\twhile ($case->lastChild && $case->lastChild->nodeName === 'closeTag')\n\t\t\t\t{\n\t\t\t\t\t$case->removeChild($case->lastChild);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public function removeAllTags() {}", "function clear_subtags()\n {\n $numtags = sizeof($this->tags);\n $keys = array_keys( $this->tags );\n foreach( $keys as $k ) {\n $this->tags[$k]->clear_subtags();\n unset($this->tags[$k]->parent);\n }\n\n # Clear the tags array\n $this->tags = array();\n unset( $this->curtag );\n }", "protected function clearNoneHumanTags()\n {\n $filter = $this->DOM->filter('script');\n\n $filter->each(function (Crawler $crawler) {\n foreach ($crawler as $node) {\n $node->parentNode->removeChild($node);\n }\n });\n }", "private function remove_self_closing_tags() {\n\t\tadd_filter('get_avatar', [$this, 'remove_self_closing_tag']); // <img]/>\n\t\tadd_filter('comment_id_fields', [$this, 'remove_self_closing_tag']); // <input]/>\n\t\tadd_filter('post_thumbnail_html', [$this, 'remove_self_closing_tag']); // <img]/>\n\t}", "function non_DOM_stripme($opening_tag_string) {\r\n\t\tpreg_match_all('/' . $opening_tag_string . '/is', $this->code, $matches, PREG_OFFSET_CAPTURE);\r\n\t\t$size = sizeof($matches[0]) - 1;\r\n\t\twhile($size > -1) {\r\n\t\t\t//print(\"matches[0][size][0]: \");var_dump($matches[0][$size][0]);\r\n\t\t\tpreg_match('/<(\\w+)/is', $matches[0][$size][0], $tagname_matches);\r\n\t\t\t$tagname = $tagname_matches[1];\r\n\t\t\t$OString = OM::getOString($this->code, '<' . $tagname, '</' . $tagname . '>', $matches[0][$size][1]);\r\n\t\t\t//print(\"strlen(matches[0][size][0]): \");var_dump(strlen($matches[0][$size][0]));\r\n\t\t\t$substr = substr($OString, strlen($matches[0][$size][0]), strlen($OString) - strlen($matches[0][$size][0]) - (strlen($tagname) + 3));\r\n\t\t\t//print(\"OString: \");var_dump($OString);\r\n\t\t\t//print(\"substr: \");var_dump($substr);\r\n\t\t\t//$this->code = str_replace($OString, $substr, $this->code);\r\n\t\t\t$this->code = substr($this->code, 0, $matches[0][$size][1]) . $substr . substr($this->code, $matches[0][$size][1] + strlen($OString));\r\n\t\t\t$size--;\r\n\t\t}\r\n\t}", "function cleanup()\n {\n if (is_object( $this->roottag )) {\n $this->roottag->clear_subtags();\n }\n }", "public function removeChildNodes() {}", "public function remove () {\r\n\t\t\r\n\t\tforeach ($this as $node) \r\n\t\t $node->parentNode->removeChild($node);\r\n\t}", "function clean_inside_tags($txt,$tags){\n\t\t\t$txt =removeemptytags($txt);\n\t\t\tpreg_match_all(\"/<([^>]+)>/i\",$tags,$allTags,PREG_PATTERN_ORDER);\n\t\t\n\t\t\tforeach ($allTags[1] as $tag){\n\t\t\t\t$txt = preg_replace(\"/<\".$tag.\"[^>]*>/i\",\"<\".$tag.\">\",$txt);\n\t\t\t}\n\t\t\treturn $txt;\n\t\t}", "protected static function markEmptyElements(DOMDocument $ir)\n\t{\n\t\tforeach ($ir->getElementsByTagName('element') as $element)\n\t\t{\n\t\t\t// Test whether this element is (maybe) void\n\t\t\t$elName = $element->getAttribute('name');\n\t\t\tif (strpos($elName, '{') !== false)\n\t\t\t{\n\t\t\t\t// Dynamic element names must be checked at runtime\n\t\t\t\t$element->setAttribute('void', 'maybe');\n\t\t\t}\n\t\t\telseif (preg_match(self::$voidRegexp, $elName))\n\t\t\t{\n\t\t\t\t// Static element names can be checked right now\n\t\t\t\t$element->setAttribute('void', 'yes');\n\t\t\t}\n\n\t\t\t// Find whether this element is empty\n\t\t\t$isEmpty = self::isEmpty($element);\n\t\t\tif ($isEmpty === 'yes' || $isEmpty === 'maybe')\n\t\t\t{\n\t\t\t\t$element->setAttribute('empty', $isEmpty);\n\t\t\t}\n\t\t}\n\t}", "abstract public function removeAll();", "function removeAll() ;", "function removeAll() ;", "function DOM_delete_empty_attributes() {\r\n\t\t$query = '//' . ReTidy::get_html_namespace() . '*[@*=\"\"]';\r\n\t\t$tags_with_empty_attribute = $this->xpath->query($query);\r\n\t\tforeach($tags_with_empty_attribute as $tag) {\r\n\t\t\t$tagName = $tag->nodeName;\r\n\t\t\t$array_attributes = DTD::getAttributesForElementByType($tagName, \"#IMPLIED\");\r\n\t\t\tforeach($tag->attributes as $attribute) {\r\n\t\t\t\tif(strlen($attribute->nodeValue) === 0) {\r\n\t\t\t\t\tforeach($array_attributes as $attribute2){\r\n\t\t\t\t\t\tif($attribute->nodeName === $attribute2) {\r\n\t\t\t\t\t\t\t$attribute->nodeValue = \"XXX9o9stripme9o9XXX\";\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public function htheme_remove_default_elements(){\r\n\r\n\t\t/*vc_remove_element(\"vc_row\");*/\r\n\t\tvc_remove_element(\"vc_cta_button2\");\r\n\t\tvc_remove_element(\"vc_button2\");\r\n\t\tvc_remove_element(\"vc_masonry_media_grid\");\r\n\t\tvc_remove_element(\"vc_masonry_grid\");\r\n\t\tvc_remove_element(\"vc_masonry_grid\");\r\n\t\tvc_remove_element(\"vc_media_grid\");\r\n\t\tvc_remove_element(\"vc_basic_grid\");\r\n\t\tvc_remove_element(\"vc_cta\");\r\n\t\tvc_remove_element(\"vc_btn\");\r\n\t\tvc_remove_element(\"vc_custom_heading\");\r\n\t\tvc_remove_element(\"vc_empty_space\");\r\n\t\tvc_remove_element(\"vc_line_chart\");\r\n\t\tvc_remove_element(\"vc_round_chart\");\r\n\t\tvc_remove_element(\"vc_pie\");\r\n\t\tvc_remove_element(\"vc_raw_js\");\r\n\t\tvc_remove_element(\"vc_raw_html\");\r\n\t\tvc_remove_element(\"vc_video\");\r\n\t\tvc_remove_element(\"vc_widget_sidebar\");\r\n\t\tvc_remove_element(\"vc_tta_pageable\");\r\n\t\tvc_remove_element(\"vc_tta_accordion\");\r\n\t\tvc_remove_element(\"vc_tta_tour\");\r\n\t\tvc_remove_element(\"vc_tta_tabs\");\r\n\t\tvc_remove_element(\"vc_gallery\");\r\n\t\tvc_remove_element(\"vc_gallery\");\r\n\t\tvc_remove_element(\"vc_text_separator\");\r\n\t\t//vc_remove_element(\"vc_icon\");\r\n\t\t//vc_remove_element(\"vc_column_text\");\r\n\t\tvc_remove_element(\"vc_button\");\r\n\t\tvc_remove_element(\"vc_posts_slider\");\r\n\t\tvc_remove_element(\"vc_gmaps\");\r\n\t\tvc_remove_element(\"vc_teaser_grid\");\r\n\t\tvc_remove_element(\"vc_progress_bar\");\r\n\t\tvc_remove_element(\"vc_facebook\");\r\n\t\tvc_remove_element(\"vc_tweetmeme\");\r\n\t\tvc_remove_element(\"vc_googleplus\");\r\n\t\tvc_remove_element(\"vc_facebook\");\r\n\t\tvc_remove_element(\"vc_pinterest\");\r\n\t\tvc_remove_element(\"vc_message\");\r\n\t\tvc_remove_element(\"vc_posts_grid\");\r\n\t\tvc_remove_element(\"vc_carousel\");\r\n\t\tvc_remove_element(\"vc_flickr\");\r\n\t\tvc_remove_element(\"vc_tour\");\r\n\t\tvc_remove_element(\"vc_separator\");\r\n\t\tvc_remove_element(\"vc_single_image\");\r\n\t\tvc_remove_element(\"vc_cta_button\");\r\n\t\tvc_remove_element(\"vc_accordion\");\r\n\t\tvc_remove_element(\"vc_accordion_tab\");\r\n\t\tvc_remove_element(\"vc_toggle\");\r\n\t\tvc_remove_element(\"vc_tabs\");\r\n\t\tvc_remove_element(\"vc_tab\");\r\n\t\tvc_remove_element(\"vc_images_carousel\");\r\n\t\tvc_remove_element(\"vc_wp_archives\");\r\n\t\tvc_remove_element(\"vc_wp_calendar\");\r\n\t\tvc_remove_element(\"vc_wp_categories\");\r\n\t\tvc_remove_element(\"vc_wp_custommenu\");\r\n\t\tvc_remove_element(\"vc_wp_links\");\r\n\t\tvc_remove_element(\"vc_wp_meta\");\r\n\t\tvc_remove_element(\"vc_wp_pages\");\r\n\t\tvc_remove_element(\"vc_wp_posts\");\r\n\t\tvc_remove_element(\"vc_wp_recentcomments\");\r\n\t\tvc_remove_element(\"vc_wp_rss\");\r\n\t\tvc_remove_element(\"vc_wp_search\");\r\n\t\tvc_remove_element(\"vc_wp_tagcloud\");\r\n\t\tvc_remove_element(\"vc_wp_text\");\r\n\t\tvc_remove_element(\"woocommerce_cart\");\r\n\t\tvc_remove_element(\"woocommerce_checkout\");\r\n\t\tvc_remove_element(\"woocommerce_order_tracking\");\r\n\t\tvc_remove_element(\"woocommerce_my_account\");\r\n\t\tvc_remove_element(\"recent_products\");\r\n\t\tvc_remove_element(\"featured_products\");\r\n\t\tvc_remove_element(\"product\");\r\n\t\tvc_remove_element(\"products\");\r\n\t\tvc_remove_element(\"add_to_cart\");\r\n\t\tvc_remove_element(\"add_to_cart_url\");\r\n\t\tvc_remove_element(\"product_page\");\r\n\t\tvc_remove_element(\"product_category\");\r\n\t\tvc_remove_element(\"product_categories\");\r\n\t\tvc_remove_element(\"sale_products\");\r\n\t\tvc_remove_element(\"best_selling_products\");\r\n\t\tvc_remove_element(\"top_rated_products\");\r\n\t\tvc_remove_element(\"product_attribute\");/**/\r\n\t}", "public function clear(): void {\n\t\t$this->m_elements = [];\n\t}", "function evd_remove_all_shortcodes() {\n global $shortcode_tags;\n global $temp_shortcode_tags;\n $temp_shortcode_tags = $shortcode_tags;\n remove_all_shortcodes();\n}", "static function close_tags($content) {\n $position = 0;\n $open_tags = array();\n $ignored_tags = array('br', 'hr', 'img');\n\n while (($position = strpos($content, '<', $position)) !== FALSE)\n {\n if (preg_match(\"|^<(/?)([a-z\\d]+)\\b[^>]*>|i\", substr($content, $position), $match))\n {\n $tag = strtolower($match[2]);\n if (in_array($tag, $ignored_tags) == FALSE)\n {\n //тег открыт\n if (isset($match[1]) AND $match[1] == '')\n {\n if (isset($open_tags[$tag]))\n $open_tags[$tag]++;\n else\n $open_tags[$tag] = 1;\n }\n //тег закрыт\n if (isset($match[1]) AND $match[1] == '/')\n {\n if (isset($open_tags[$tag]))\n $open_tags[$tag]--;\n }\n }\n $position += strlen($match[0]);\n }\n else\n $position++;\n }\n\n foreach ($open_tags as $tag => $count_not_closed) {\n $content .= str_repeat(\"</{$tag}>\", $count_not_closed);\n }\n\n return $content;\n }", "protected function stopVirtualElement()\n {\n if (! $this->element or $this->reader->nodeType !== XMLReader::ELEMENT) {\n return;\n }\n\n if ($parent = $this->findVirtualElementById($this->element->get('@parent'))) {\n $key = $this->getPluralized($this->element->get('@element'));\n\n if (! $parent->has($key)) {\n $parent->put($key, new Collection);\n }\n\n if ($parent->get($key) instanceof Collection) {\n $parent->get($key)->push($this->element);\n }\n } else {\n $this->elements->push($this->element);\n }\n\n $this->element->forget(['@id', '@parent', '@element']);\n }", "function magazinevibe_child_remove_first_image( $content ) {\n\t$dom = new DOMDocument();\n\t$dom->loadHTML( $content );\n\t$images = $dom->getElementsByTagName( 'img' );\n\n\tforeach ( $images as $image ) {\n\t\t$parent = $image->parentNode;\n\t\tif ( $parent->nodeName ) {\n\t\t\t$parent->parentNode->removeChild( $parent );\n\t\t\t$content = $dom->saveHTML();\n\t\t\t$content = str_replace('&Acirc;', '', $content);\n\t\t\treturn $content;\n\t\t}\n\t}\n\n\t$content = str_replace('&Acirc;', '', $content);\n\n\treturn $content;\n}", "public static function removeHtml($s)\n {\n $newLinesAfter = 'h1|h2|h3|h4|h5|h6|h7|h8';\n $newLineAfter = 'caption|div|li|p|tr';\n $removeContent = 'script|style|noframes|select|option|link';\n $spaceAfter = 'td|th';\n\n /**///prep the string\n $s = ' ' . preg_replace(\"/[\\\\r\\\\n]+/\", '', $s);\n\n //begin removal\n /**///remove comment blocks\n while(stripos($s,'<!--') > 0){\n $pos[1] = stripos($s,'<!--');\n $pos[2] = stripos($s,'-->', $pos[1]);\n $len[1] = $pos[2] - $pos[1] + 3;\n $x = substr($s,$pos[1],$len[1]);\n $s = str_replace($x,'',$s);\n }\n\n /**///remove tags with content between them\n if(strlen($removeContent) > 0){\n $e = explode('|', $removeContent);\n for($i=0;$i<count($e);$i++){\n while(stripos($s,'<' . $e[$i]) > 0){\n $len[1] = strlen('<' . $e[$i]);\n $pos[1] = stripos($s,'<' . $e[$i]);\n $pos[2] = stripos($s,$e[$i] . '>', $pos[1] + $len[1]);\n $len[2] = $pos[2] - $pos[1] + $len[1];\n $x = substr($s,$pos[1],$len[2]);\n $s = str_replace($x,'',$s);\n }\n }\n }\n\n foreach (explode('|', $newLinesAfter) as $endTag) {\n $s = str_replace(\"</$endTag>\", \"\\n\\n\", $s);\n }\n foreach (explode('|', $newLineAfter) as $endTag) {\n $s = str_replace(\"</$endTag>\", \"\\n\", $s);\n }\n foreach (explode('|', $spaceAfter) as $endTag) {\n $s = str_replace(\"</$endTag>\", \" \", $s);\n }\n\n /**///remove remaining tags\n $start = 0;\n while(stripos($s,'<', $start) > 0){\n $pos[1] = stripos($s,'<', $start);\n $pos[2] = stripos($s,'>', $pos[1]);\n if (!$pos[2]) {\n //No closing tag! Skip this one\n $start = $pos[1]+1;\n } else {\n $len[1] = $pos[2] - $pos[1] + 1;\n $x = substr($s,$pos[1],$len[1]);\n $s = str_replace($x,'',$s);\n }\n }\n\n if (PHP_EOL != \"\\n\") {\n $s = str_replace(\"\\n\", PHP_EOL, $s);\n }\n return html_entity_decode(trim($s), ENT_QUOTES, 'cp1252');\n }", "public function removeAll();", "public function removeAll();", "public function clear() {\n $this->elements = array();\n }", "public function checkElementsInDom() {\n\tforeach ($this->_elArray as $key => $el) {\n\t\tif(is_null($el->node->parentNode)) {\n\t\t\tunset($this->_elArray[$key]);\n\t\t}\n\t}\n\n\t$this->_elArray = array_values($this->_elArray);\n}" ]
[ "0.6062754", "0.6030016", "0.5790078", "0.57888585", "0.57779676", "0.5768118", "0.57214326", "0.5608887", "0.56022483", "0.55880326", "0.55454135", "0.54721254", "0.5429215", "0.54105604", "0.53806746", "0.53526574", "0.53453726", "0.53453726", "0.5336035", "0.5300345", "0.5220442", "0.5177992", "0.51720643", "0.5134394", "0.5111007", "0.51076186", "0.50863427", "0.50863427", "0.5073046", "0.50629216" ]
0.7563846
0
Mark switch elements that are used as branch tables If a switch is used for a series of equality tests against the same attribute or variable, the attribute/variable is stored within the switch as "branchkey" and the values it is compared against are stored JSONencoded in the case as "branchvalues". It can be used to create optimized branch tables
protected static function markBranchTables(DOMDocument $ir) { $xpath = new DOMXPath($ir); // Iterate over switch elements that have at least two case children with a test attribute foreach ($xpath->query('//switch[case[2][@test]]') as $switch) { $key = null; $branchValues = []; foreach ($switch->childNodes as $i => $case) { if (!$case->hasAttribute('test')) { continue; } $map = self::parseEqualityExpr($case->getAttribute('test')); // Test whether the expression matches an equality if ($map === false) { continue 2; } // Abort if there's more than 1 variable used if (count($map) !== 1) { continue 2; } // Test whether it uses the same key if (isset($key) && $key !== key($map)) { continue 2; } $key = key($map); $branchValues[$i] = end($map); } $switch->setAttribute('branch-key', $key); foreach ($branchValues as $i => $values) { sort($values); $switch->childNodes->item($i)->setAttribute('branch-values', serialize($values)); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setBranchOf($value)\n {\n $this->branchOf = $value;\n }", "public function branching()\n {\n }", "public function setBranch($var)\n {\n GPBUtil::checkString($var, True);\n $this->branch = $var;\n\n return $this;\n }", "function wpc_braches_database_updates(){\n // @ branch_manager\n wpc_branches_add_manager();\n // @ branch_client @ branch_agent @ branch_employee @ branch_driver\n wpc_branches_add_assigment();\n}", "public function formatSwitch(){\r\n\t\tforeach($this->template as $k=>$v){\r\n\t\t\tif(preg_match('/{\\s+switch \\$'.'(\\w+)'.' case (\\w+)}/', $v, $matches)){\r\n\t\t\t\t$this->switch_lines = ($k+1);\r\n\t\t\t\t$this->error_notice[($k+1)] = 'Switch format error: The blank is not allowed with \\'{\\' near '.$matches[1].' in '.$this->template_file.$this->template_postfix.' on line '.($k+1);\r\n\t\t\t}\r\n\t\t\tif(preg_match('/{switch \\$'.'(\\w+)'.' case (\\w+)\\s+}/', $v, $matches)){\r\n\t\t\t\t$this->switch_lines = ($k+1);\r\n\t\t\t\t$this->error_notice[($k+1)] = 'Switch format error: The blank is not allowed with \\'}\\' near '.$matches[2].' in '.$this->template_file.$this->template_postfix.' on line '.($k+1);\r\n\t\t\t}\r\n\t\t\tif(preg_match('/{\\s+switch @key case (\\w+)}/', $v, $matches)){\r\n\t\t\t\t$this->switch_lines = ($k+1);\r\n\t\t\t\t$this->error_notice[($k+1)] = 'Switch format error: The blank is not allowed with \\'{\\' near @key in '.$this->template_file.$this->template_postfix.' on line '.($k+1);\r\n\t\t\t}\r\n\t\t\tif(preg_match('/{switch @key case (\\w+)\\s+}/', $v, $matches)){\r\n\t\t\t\t$this->switch_lines = ($k+1);\r\n\t\t\t\t$this->error_notice[($k+1)] = 'Switch format error: The blank is not allowed with \\'}\\' near @key in '.$this->template_file.$this->template_postfix.' on line '.($k+1);\r\n\t\t\t}\r\n\t\t\tif(preg_match('/{\\s+switch @value case (\\w+)}/', $v, $matches)){\r\n\t\t\t\t$this->switch_lines = ($k+1);\r\n\t\t\t\t$this->error_notice[($k+1)] = 'Switch format error: The blank is not allowed with \\'{\\' near @value in '.$this->template_file.$this->template_postfix.' on line '.($k+1);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(preg_match('/{switch \\$key case (\\w+)}/', $v, $matches)){\r\n\t\t\t\t$this->switch_lines = ($k+1);\r\n\t\t\t\t$this->error_notice[($k+1)] = '@key format error: Please use @key instead of $key near $key in '.$this->template_file.$this->template_postfix.' on line '.($k+1);\r\n\t\t\t}\r\n\t\t\tif(preg_match('/{switch \\$value case (\\w+)}/', $v, $matches)){\r\n\t\t\t\t$this->switch_lines = ($k+1);\r\n\t\t\t\t$this->error_notice[($k+1)] = '@value format error: Please use @value instead of $value near $value in '.$this->template_file.$this->template_postfix.' on line '.($k+1);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(preg_match('/{switch @value case (\\w+)\\s+}/', $v, $matches)){\r\n\t\t\t\t$this->switch_lines = ($k+1);\r\n\t\t\t\t$this->error_notice[($k+1)] = 'Switch format error: The blank is not allowed with \\'}\\' near @value in '.$this->template_file.$this->template_postfix.' on line '.($k+1);\r\n\t\t\t}\r\n\t\t\tif(preg_match('/{\\s+case (\\w+)}/', $v, $matches)){\r\n\t\t\t\t$this->switch_lines = ($k+1);\r\n\t\t\t\t$this->error_notice[($k+1)] = 'Switch format error: The blank is not allowed with \\'{\\' near '.$matches[1].' in '.$this->template_file.$this->template_postfix.' on line '.($k+1);\r\n\t\t\t}\r\n\t\t\tif(preg_match('/{case (\\w+)\\s+}/', $v, $matches)){\r\n\t\t\t\t$this->switch_lines = ($k+1);\r\n\t\t\t\t$this->error_notice[($k+1)] = 'Switch format error: The blank is not allowed with \\'}\\' near '.$matches[1].' in '.$this->template_file.$this->template_postfix.' on line '.($k+1);\r\n\t\t\t}\r\n\t\t\tif(preg_match('/{switch \\$'.'(\\w+)'.' case (\\w+)}/', $v, $matches)){\r\n\t\t\t\tif(!preg_match('/{\\/switch}/', implode('\\n', $this->template))){\r\n\t\t\t\t\t$this->switch_lines = ($k+1);\r\n\t\t\t\t\t$this->error_notice[($k+1)] = 'Switch format error: The switch tag is not close near '.$matches[1].' in '.$this->template_file.$this->template_postfix.' on line '.($k+1);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public function visitSwitchAstNode( ezcTemplateSwitchAstNode $switch )\n {\n $this->write( \"switch (\" );\n $switch->expression->accept( $this );\n $this->write( \")\\n{\\n\" );\n\n $this->increaseIndentation( $this->indentation );\n foreach ( $switch->cases as $case )\n {\n $case->accept( $this );\n }\n $this->restoreIndentation();\n\n $this->write( \"}\\n\" );\n }", "public function change()\n {\n $table = $this->table('tbl_branches');\n $table->addColumn('id', 'integer', [\n 'autoIncrement' => true,\n 'default' => null,\n 'limit' => 5,\n 'null' => false,\n ]);\n $table->addColumn('name', 'string', [\n 'default' => null,\n 'limit' => 120,\n 'null' => false,\n ]);\n $table->addColumn('description', 'text', [\n 'default' => null,\n 'null' => true,\n ]);\n $table->addColumn('college_id', 'integer', [\n 'default' => null,\n 'limit' => 5,\n 'null' => false,\n ]);\n $table->addColumn('start_date', 'string', [\n 'default' => null,\n 'limit' => 50,\n 'null' => false,\n ]);\n $table->addColumn('end_date', 'string', [\n 'default' => null,\n 'limit' => 50,\n 'null' => false,\n ]);\n $table->addColumn('total_seats', 'integer', [\n 'default' => null,\n 'limit' => 11,\n 'null' => false,\n ]);\n $table->addColumn('total_durations', 'integer', [\n 'default' => null,\n 'limit' => 5,\n 'null' => false,\n ]);\n $table->addColumn('status', 'integer', [\n 'default' => 1,\n 'limit' => 5,\n 'null' => false,\n ]);\n $table->addColumn('created_at', 'datetime', [\n 'default' => 'CURRENT_TIMESTAMP',\n 'null' => false,\n ]);\n $table->addPrimaryKey([\n 'id',\n ]);\n $table->create();\n }", "public function run()\n {\n DB::table('branches')->insert([\n \t'branch_id'=>1,\n 'branch_name' => 'Gh Media',\n 'branch_location' => 'Achimota',\n 'branch_capital' => 40000,\n 'name_of_agent'=>'Jacob Teye',\n 'date_established'=>'2019/04/01',\n \n \n \n ]);\n DB::table('branches')->insert([\n \n 'branch_name' => 'old station',\n 'branch_location' => 'Achimota',\n 'branch_capital' => 40000,\n 'name_of_agent'=>'Jessica',\n 'date_established'=>'2019/04/01',\n \n \n \n ]);\n DB::table('branches')->insert([\n \n 'branch_name' => 'zoom park',\n 'branch_location' => 'Achimota',\n 'branch_capital' => 40000,\n 'name_of_agent'=>'Janet',\n 'date_established'=>'2019/04/01',\n \n \n \n ]);\n DB::table('branches')->insert([\n \n 'branch_name' => 'Estate',\n 'branch_location' => 'Achimota',\n 'branch_capital' => 40000,\n 'name_of_agent'=>'Deborah',\n 'date_established'=>'2019/04/01',\n \n \n \n ]);\n // DB::table('branches')->insert([\n // \t'branch_id'=>1,\n // 'branch_name' => 'Old Station',\n // 'branch_location' => 'Achimota',\n // 'branch_capital' => 2000,\n // 'name_of_agent'=>'Daniel',\n // 'confirmed_by_id' => 1,\n // 'updated_by_id' => 1\n \n // ]);\n // DB::table('branches')->insert([\n // \t'branch_id'=>1,\n // 'branch_name' => 'Overhead',\n // 'branch_location' => 'Achimota',\n // 'branch_capital' => 20000,\n // 'name_of_agent'=>'Peace',\n // 'confirmed_by_id' => 1,\n // 'updated_by_id' => 1\n \n // ]);\n // DB::table('branches')->insert([\n // \t'branch_id'=>1,\n // 'branch_name' => 'Estate',\n // 'branch_location' => 'Achimota',\n // 'branch_capital' => 20000,\n // 'name_of_agent'=>'deborah',\n // 'confirmed_by_id' => 1,\n // 'updated_by_id' => 1\n \n // ]);\n // DB::table('branches')->insert([\n // \t'branch_id'=>1,\n // 'branch_name' => 'Old Office',\n // 'branch_location' => 'Achimota',\n // 'branch_capital' => 30000,\n // 'name_of_agent'=>'Jessica',\n // 'confirmed_by_id' => 1,\n // 'updated_by_id' => 1\n \n // ]);\n }", "public function setBranchFlyData(Branch $branch)\n {\n //Get all the STransaction for today and by branch\n $totalForTodayByBranch = $this->em->getRepository('TransactionBundle:STransaction')\n ->getForTodayByBranch($branch);\n\n $branch->setFlySaleAmount($totalForTodayByBranch['sale']);\n $branch->setFlyProfitAmount($totalForTodayByBranch['profit']);\n $branch->setFlyExpenditureAmount($totalForTodayByBranch['expenditure']);\n $branch->setFlyBalanceAmount($totalForTodayByBranch['balance']);\n }", "function saveBranch( $branch ){\r\n\t\tforeach( $this->branches as $branchIndex => $treeBranch ){\r\n\t\t\tif( strval( $branch->ID ) === strval( $treeBranch->ID ) ){\r\n\t\t\t\t$this->branches[$branchIndex] = $branch;\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\t// must be a new branch, so we'll add it\r\n\t\tarray_push( $this->branches, $branch );\r\n\t}", "public function testReportsSkillv1reportsbranchesbranchId()\n {\n\n }", "public function run()\n {\n \n\n \\DB::table('branches')->delete();\n \n \\DB::table('branches')->insert(array (\n 0 => \n array (\n 'id' => 1,\n 'name' => 'Zagreb Branch',\n 'email' => '[email protected]',\n 'address' => 'Zagreb 88',\n 'city_id' => 1,\n 'phone' => '095 555 555',\n 'created_at' => '2016-12-18 12:25:32',\n 'updated_at' => '2016-12-18 12:25:32',\n ),\n 1 => \n array (\n 'id' => 2,\n 'name' => 'Split Branch',\n 'email' => '[email protected]',\n 'address' => 'Split 77',\n 'city_id' => 2,\n 'phone' => '095 555 555',\n 'created_at' => '2016-12-18 12:25:56',\n 'updated_at' => '2016-12-18 12:26:27',\n ),\n 2 => \n array (\n 'id' => 3,\n 'name' => 'Dubrovnik Branch',\n 'email' => '[email protected]',\n 'address' => 'Dubrovnik 55',\n 'city_id' => 3,\n 'phone' => '095 555 555',\n 'created_at' => '2016-12-18 12:26:23',\n 'updated_at' => '2016-12-18 12:26:23',\n ),\n 3 => \n array (\n 'id' => 4,\n 'name' => 'Šibenik Branch',\n 'email' => '[email protected]',\n 'address' => 'Šibenik 11',\n 'city_id' => 4,\n 'phone' => '095 555 555',\n 'created_at' => '2016-12-18 12:26:51',\n 'updated_at' => '2016-12-18 12:26:51',\n ),\n 4 => \n array (\n 'id' => 5,\n 'name' => 'Zadar Branch',\n 'email' => '[email protected]',\n 'address' => 'Zadar 22',\n 'city_id' => 5,\n 'phone' => '095 555 555',\n 'created_at' => '2016-12-18 12:27:12',\n 'updated_at' => '2016-12-18 12:27:12',\n ),\n 5 => \n array (\n 'id' => 6,\n 'name' => 'Rijeka Branch',\n 'email' => '[email protected]',\n 'address' => 'Rijeka 99',\n 'city_id' => 6,\n 'phone' => '095 555 555',\n 'created_at' => '2016-12-18 12:27:37',\n 'updated_at' => '2016-12-18 12:27:37',\n ),\n ));\n \n \n }", "public function setBranch($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->branch !== $v) {\n $this->branch = $v;\n $this->modifiedColumns[AliMemberTableMap::COL_BRANCH] = true;\n }\n\n return $this;\n }", "function lesson_create_objects($pageobjects, $lessonid) {\n\n $branchtables = array();\n $branchtable = new stdClass;\n\n // all pages have this info\n $page->lessonid = $lessonid;\n $page->prevpageid = 0;\n $page->nextpageid = 0;\n $page->qtype = LESSON_PAGE_BRANCHTABLE;\n $page->qoption = 0;\n $page->layout = 1;\n $page->display = 1;\n $page->timecreated = time();\n $page->timemodified = 0;\n\n // all answers are the same\n $answer->lessonid = $lessonid;\n $answer->jumpto = LESSON_NEXTPAGE;\n $answer->grade = 0;\n $answer->score = 0;\n $answer->flags = 0;\n $answer->timecreated = time();\n $answer->timemodified = 0;\n $answer->answer = \"Next\";\n $answer->response = \"\";\n\n $answers[] = clone($answer);\n\n $answer->jumpto = LESSON_PREVIOUSPAGE;\n $answer->answer = \"Previous\";\n\n $answers[] = clone($answer);\n\n $branchtable->answers = $answers;\n\n $i = 1;\n\n foreach ($pageobjects as $pageobject) {\n if ($pageobject->title == '') {\n $page->title = \"Page $i\"; // no title set so make a generic one\n } else {\n $page->title = $pageobject->title;\n }\n $page->contents = '';\n\n // nab all the images first\n $page->images = $pageobject->images;\n foreach ($page->images as $image) {\n $imagetag = '<img src=\"@@PLUGINFILE@@'.$image->get_filepath().$image->get_filename().'\" title=\"'.$image->get_filename().'\" />';\n $imagetag = str_replace(\"\\n\", '', $imagetag);\n $imagetag = str_replace(\"\\r\", '', $imagetag);\n $imagetag = str_replace(\"'\", '\"', $imagetag); // imgstyle\n $page->contents .= $imagetag;\n }\n // go through the contents array and put <p> tags around each element and strip out \\n which I have found to be uneccessary\n foreach ($pageobject->contents as $content) {\n $content = str_replace(\"\\n\", '', $content);\n $content = str_replace(\"\\r\", '', $content);\n $content = str_replace('&#13;', '', $content); // puts in returns?\n $content = '<p>'.$content.'</p>';\n $page->contents .= $content;\n }\n\n $branchtable->page = clone($page); // add the page\n $branchtables[] = clone($branchtable); // add it all to our array\n $i++;\n }\n\n return $branchtables;\n}", "public function getBranches();", "public function getIdEntriesBranch($idEntry);", "function make_a_switch($name,$value,$label_text,$label_width,$on_text,$off_text,$on_color,$off_color,$switch_checked = NULL){\r\n echo '<input type=\"checkbox\" \r\n name=\"'.$name.'\" \r\n value=\"'.$value.'\" \r\n\r\n data-label-text=\"'.$label_text.'\" \r\n data-label-width=\"'.$label_width.'\"\r\n\r\n data-on-text=\"'.$on_text.'\" \r\n data-off-text=\"'.$off_text.'\" \r\n\r\n data-on-color=\"'.$on_color.'\" \r\n data-off-color=\"'.$off_color.'\" \r\n \r\n data-size=\"mini\" ';\r\n \r\n if($switch_checked == '1'){\r\n \techo 'checked ';\r\n }elseif ($switch_checked == '0') {\r\n \techo '';\r\n }else{\r\n \techo 'checked ';\r\n }\r\n\r\n echo '>';\r\n\r\n}", "public function setBranch(/*string*/ $value) /*: this*/ {\n $this->branch = $value;\n return $this;\n }", "public function run()\n {\n $branches = [\n [\n 'name' => '199 Quang Trung',\n 'phone_number' => '0987654321',\n 'address' => 'Quận Hà Đông, TP Hà Nội',\n 'city_id' => 24\n ],\n [\n 'name' => '86 Nguyễn Trãi',\n 'phone_number' => '0987654322',\n 'address' => 'Quận Thanh Xuân, TP Hà Nội',\n 'city_id' => 24\n ],\n [\n 'name' => '216 Cầu Giấy',\n 'phone_number' => '0987654323',\n 'address' => 'Quận Cầu Giấy , TP Hà Nội',\n 'city_id' => 24\n ],\n [\n 'name' => '21A Lê Lợi, P. Thạch Thang',\n 'phone_number' => '0987654324',\n 'address' => 'Quận Hải Châu, TP Đà Nẵng',\n 'city_id' => 15\n ],\n [\n 'name' => '517 Quang Trung',\n 'phone_number' => '0987654325',\n 'address' => ' Quận Thanh Khê, TP Đà Nẵng',\n 'city_id' => 15\n ],\n [\n 'name' => '539B Nguyễn Thị Thập',\n 'phone_number' => '0987654326',\n 'address' => 'Quận Vĩnh Trung, TP Đà Nẵng',\n 'city_id' => 15\n ],\n [\n 'name' => '182 Lê Lai, P. Bến Thành',\n 'phone_number' => '0987654327',\n 'address' => 'Quận 1, TP HCM',\n 'city_id' => 60\n ],\n [\n 'name' => '01 Trần Minh Quyền, P. 10',\n 'phone_number' => '0987654328',\n 'address' => 'Quận 10, TP HCM',\n 'city_id' => 60\n ],\n [\n 'name' => '202 Lê Văn Sỹ, P. 10',\n 'phone_number' => '0987654329',\n 'address' => 'Quận Phú Nhuận, TP HCM',\n 'city_id' => 60\n ]\n ];\n\n DB::table('branches')->insert($branches);\n }", "function __createBoostTable() {\n\t\tforeach ($this->settings[$this->model->alias]['fields'] as $fieldname => $value) {\n\t\t\tif (is_array($value) && isset($value['boost'])) {\n\t\t\t\t$this->__boostTable[$fieldname] = $value['boost'];\n\t\t\t}\n\t\t}\n\t}", "static function walkBranch( $branch, $aPath=array(), &$aPaths ){\n $aModels = array();\n $aPath[] = $branch->name;\n $aRtn = array();\n if( sizeof( $branch->dependants ) == 0 ){\n $aPaths[] = $aPath;\n }else{\n foreach( $branch->dependants as $dep ){\n $aRtn = self::walkBranch( $dep, $aPath, $aPaths );\n }\n }\n return $aRtn;\n }", "public function run() {\n Schema::disableForeignKeyConstraints();\n DB::table('sii_branches')\n ->truncate();\n\n DB::table('sii_branches')\n ->insert([\n 0 =>\n [\n 'id' => 1,\n 'name' => 'Arica',\n 'created_at' => '2020-11-26 14:21:41',\n 'updated_at' => '2020-11-26 14:21:41',\n ],\n 1 =>\n [\n 'id' => 2,\n 'name' => 'Iquique',\n 'created_at' => '2020-11-26 14:21:42',\n 'updated_at' => '2020-11-26 14:21:42',\n ],\n 2 =>\n [\n 'id' => 3,\n 'name' => 'Antofagasta',\n 'created_at' => '2020-11-26 14:21:42',\n 'updated_at' => '2020-11-26 14:21:42',\n ],\n 3 =>\n [\n 'id' => 4,\n 'name' => 'Calama',\n 'created_at' => '2020-11-26 14:21:42',\n 'updated_at' => '2020-11-26 14:21:42',\n ],\n 4 =>\n [\n 'id' => 5,\n 'name' => 'Tocopilla',\n 'created_at' => '2020-11-26 14:21:42',\n 'updated_at' => '2020-11-26 14:21:42',\n ],\n 5 =>\n [\n 'id' => 6,\n 'name' => 'Tal-Tal',\n 'created_at' => '2020-11-26 14:21:42',\n 'updated_at' => '2020-11-26 14:21:42',\n ],\n 6 =>\n [\n 'id' => 7,\n 'name' => 'Copiapó',\n 'created_at' => '2020-11-26 14:21:42',\n 'updated_at' => '2020-11-26 14:21:42',\n ],\n 7 =>\n [\n 'id' => 8,\n 'name' => 'Chañaral',\n 'created_at' => '2020-11-26 14:21:42',\n 'updated_at' => '2020-11-26 14:21:42',\n ],\n 8 =>\n [\n 'id' => 9,\n 'name' => 'Vallenar',\n 'created_at' => '2020-11-26 14:21:42',\n 'updated_at' => '2020-11-26 14:21:42',\n ],\n 9 =>\n [\n 'id' => 10,\n 'name' => 'La Serena',\n 'created_at' => '2020-11-26 14:21:42',\n 'updated_at' => '2020-11-26 14:21:42',\n ],\n 10 =>\n [\n 'id' => 11,\n 'name' => 'Ovalle',\n 'created_at' => '2020-11-26 14:21:42',\n 'updated_at' => '2020-11-26 14:21:42',\n ],\n 11 =>\n [\n 'id' => 12,\n 'name' => 'Illapel',\n 'created_at' => '2020-11-26 14:21:43',\n 'updated_at' => '2020-11-26 14:21:43',\n ],\n 12 =>\n [\n 'id' => 13,\n 'name' => 'Coquimbo',\n 'created_at' => '2020-11-26 14:21:43',\n 'updated_at' => '2020-11-26 14:21:43',\n ],\n 13 =>\n [\n 'id' => 14,\n 'name' => 'Valparaíso',\n 'created_at' => '2020-11-26 14:21:43',\n 'updated_at' => '2020-11-26 14:21:43',\n ],\n 14 =>\n [\n 'id' => 15,\n 'name' => 'La Ligua',\n 'created_at' => '2020-11-26 14:21:43',\n 'updated_at' => '2020-11-26 14:21:43',\n ],\n 15 =>\n [\n 'id' => 16,\n 'name' => 'San Antonio',\n 'created_at' => '2020-11-26 14:21:43',\n 'updated_at' => '2020-11-26 14:21:43',\n ],\n 16 =>\n [\n 'id' => 17,\n 'name' => 'Quillota',\n 'created_at' => '2020-11-26 14:21:43',\n 'updated_at' => '2020-11-26 14:21:43',\n ],\n 17 =>\n [\n 'id' => 18,\n 'name' => 'San Felipe',\n 'created_at' => '2020-11-26 14:21:43',\n 'updated_at' => '2020-11-26 14:21:43',\n ],\n 18 =>\n [\n 'id' => 19,\n 'name' => 'Los Andes',\n 'created_at' => '2020-11-26 14:21:43',\n 'updated_at' => '2020-11-26 14:21:43',\n ],\n 19 =>\n [\n 'id' => 20,\n 'name' => 'Villa Alemana',\n 'created_at' => '2020-11-26 14:21:43',\n 'updated_at' => '2020-11-26 14:21:43',\n ],\n 20 =>\n [\n 'id' => 21,\n 'name' => 'Rancagua',\n 'created_at' => '2020-11-26 14:21:43',\n 'updated_at' => '2020-11-26 14:21:43',\n ],\n 21 =>\n [\n 'id' => 22,\n 'name' => 'San Fernando',\n 'created_at' => '2020-11-26 14:21:43',\n 'updated_at' => '2020-11-26 14:21:43',\n ],\n 22 =>\n [\n 'id' => 23,\n 'name' => 'Santa Cruz',\n 'created_at' => '2020-11-26 14:21:43',\n 'updated_at' => '2020-11-26 14:21:43',\n ],\n 23 =>\n [\n 'id' => 24,\n 'name' => 'San Vicente de Tagua Tagua',\n 'created_at' => '2020-11-26 14:21:43',\n 'updated_at' => '2020-11-26 14:21:43',\n ],\n 24 =>\n [\n 'id' => 25,\n 'name' => 'Pichilemu',\n 'created_at' => '2020-11-26 14:21:43',\n 'updated_at' => '2020-11-26 14:21:43',\n ],\n 25 =>\n [\n 'id' => 26,\n 'name' => 'Talca',\n 'created_at' => '2020-11-26 14:21:43',\n 'updated_at' => '2020-11-26 14:21:43',\n ],\n 26 =>\n [\n 'id' => 27,\n 'name' => 'Linares',\n 'created_at' => '2020-11-26 14:21:43',\n 'updated_at' => '2020-11-26 14:21:43',\n ],\n 27 =>\n [\n 'id' => 28,\n 'name' => 'Constitución',\n 'created_at' => '2020-11-26 14:21:44',\n 'updated_at' => '2020-11-26 14:21:44',\n ],\n 28 =>\n [\n 'id' => 29,\n 'name' => 'Cauquenes',\n 'created_at' => '2020-11-26 14:21:44',\n 'updated_at' => '2020-11-26 14:21:44',\n ],\n 29 =>\n [\n 'id' => 30,\n 'name' => 'Parral',\n 'created_at' => '2020-11-26 14:21:44',\n 'updated_at' => '2020-11-26 14:21:44',\n ],\n 30 =>\n [\n 'id' => 31,\n 'name' => 'Curicó  ',\n 'created_at' => '2020-11-26 14:21:44',\n 'updated_at' => '2020-11-26 14:21:44',\n ],\n 31 =>\n [\n 'id' => 32,\n 'name' => 'Concepción',\n 'created_at' => '2020-11-26 14:21:44',\n 'updated_at' => '2020-11-26 14:21:44',\n ],\n 32 =>\n [\n 'id' => 33,\n 'name' => 'Chillán',\n 'created_at' => '2020-11-26 14:21:44',\n 'updated_at' => '2020-11-26 14:21:44',\n ],\n 33 =>\n [\n 'id' => 34,\n 'name' => 'Los Ángeles',\n 'created_at' => '2020-11-26 14:21:44',\n 'updated_at' => '2020-11-26 14:21:44',\n ],\n 34 =>\n [\n 'id' => 35,\n 'name' => 'San Carlos',\n 'created_at' => '2020-11-26 14:21:44',\n 'updated_at' => '2020-11-26 14:21:44',\n ],\n 35 =>\n [\n 'id' => 36,\n 'name' => 'Talcahuano',\n 'created_at' => '2020-11-26 14:21:44',\n 'updated_at' => '2020-11-26 14:21:44',\n ],\n 36 =>\n [\n 'id' => 37,\n 'name' => 'Lebu',\n 'created_at' => '2020-11-26 14:21:44',\n 'updated_at' => '2020-11-26 14:21:44',\n ],\n 37 =>\n [\n 'id' => 38,\n 'name' => 'Temuco',\n 'created_at' => '2020-11-26 14:21:44',\n 'updated_at' => '2020-11-26 14:21:44',\n ],\n 38 =>\n [\n 'id' => 39,\n 'name' => 'Angol',\n 'created_at' => '2020-11-26 14:21:44',\n 'updated_at' => '2020-11-26 14:21:44',\n ],\n 39 =>\n [\n 'id' => 40,\n 'name' => 'Victoria',\n 'created_at' => '2020-11-26 14:21:44',\n 'updated_at' => '2020-11-26 14:21:44',\n ],\n 40 =>\n [\n 'id' => 41,\n 'name' => 'Villarrica',\n 'created_at' => '2020-11-26 14:21:44',\n 'updated_at' => '2020-11-26 14:21:44',\n ],\n 41 =>\n [\n 'id' => 42,\n 'name' => 'Valdivia',\n 'created_at' => '2020-11-26 14:21:44',\n 'updated_at' => '2020-11-26 14:21:44',\n ],\n 42 =>\n [\n 'id' => 43,\n 'name' => 'Santiago norte',\n 'created_at' => '2020-11-26 14:21:44',\n 'updated_at' => '2020-11-26 14:21:44',\n ],\n 43 =>\n [\n 'id' => 44,\n 'name' => 'Lanco',\n 'created_at' => '2020-11-26 14:21:45',\n 'updated_at' => '2020-11-26 14:21:45',\n ],\n 44 =>\n [\n 'id' => 45,\n 'name' => 'Panguipulli',\n 'created_at' => '2020-11-26 14:21:45',\n 'updated_at' => '2020-11-26 14:21:45',\n ],\n 45 =>\n [\n 'id' => 46,\n 'name' => 'Puerto Montt',\n 'created_at' => '2020-11-26 14:21:45',\n 'updated_at' => '2020-11-26 14:21:45',\n ],\n 46 =>\n [\n 'id' => 47,\n 'name' => 'Puerto Varas',\n 'created_at' => '2020-11-26 14:21:45',\n 'updated_at' => '2020-11-26 14:21:45',\n ],\n 47 =>\n [\n 'id' => 48,\n 'name' => 'Ancud',\n 'created_at' => '2020-11-26 14:21:45',\n 'updated_at' => '2020-11-26 14:21:45',\n ],\n 48 =>\n [\n 'id' => 49,\n 'name' => 'Osorno',\n 'created_at' => '2020-11-26 14:21:45',\n 'updated_at' => '2020-11-26 14:21:45',\n ],\n 49 =>\n [\n 'id' => 50,\n 'name' => 'Castro',\n 'created_at' => '2020-11-26 14:21:45',\n 'updated_at' => '2020-11-26 14:21:45',\n ],\n 50 =>\n [\n 'id' => 51,\n 'name' => 'Chaitén',\n 'created_at' => '2020-11-26 14:21:45',\n 'updated_at' => '2020-11-26 14:21:45',\n ],\n 51 =>\n [\n 'id' => 52,\n 'name' => 'Coyhaique',\n 'created_at' => '2020-11-26 14:21:45',\n 'updated_at' => '2020-11-26 14:21:45',\n ],\n 52 =>\n [\n 'id' => 53,\n 'name' => 'Aysén',\n 'created_at' => '2020-11-26 14:21:45',\n 'updated_at' => '2020-11-26 14:21:45',\n ],\n 53 =>\n [\n 'id' => 54,\n 'name' => 'Chile Chico',\n 'created_at' => '2020-11-26 14:21:45',\n 'updated_at' => '2020-11-26 14:21:45',\n ],\n 54 =>\n [\n 'id' => 55,\n 'name' => 'Cochrane',\n 'created_at' => '2020-11-26 14:21:45',\n 'updated_at' => '2020-11-26 14:21:45',\n ],\n 55 =>\n [\n 'id' => 56,\n 'name' => 'Punta Arenas',\n 'created_at' => '2020-11-26 14:21:46',\n 'updated_at' => '2020-11-26 14:21:46',\n ],\n 56 =>\n [\n 'id' => 57,\n 'name' => 'Puerto Natales',\n 'created_at' => '2020-11-26 14:21:46',\n 'updated_at' => '2020-11-26 14:21:46',\n ],\n 57 =>\n [\n 'id' => 58,\n 'name' => 'Porvenir',\n 'created_at' => '2020-11-26 14:21:46',\n 'updated_at' => '2020-11-26 14:21:46',\n ],\n 58 =>\n [\n 'id' => 59,\n 'name' => 'Santiago Centro',\n 'created_at' => '2020-11-26 14:21:46',\n 'updated_at' => '2020-11-26 14:21:46',\n ],\n 59 =>\n [\n 'id' => 60,\n 'name' => 'Santiago Poniente',\n 'created_at' => '2020-11-26 14:21:46',\n 'updated_at' => '2020-11-26 14:21:46',\n ],\n 60 =>\n [\n 'id' => 61,\n 'name' => 'Melipilla',\n 'created_at' => '2020-11-26 14:21:46',\n 'updated_at' => '2020-11-26 14:21:46',\n ],\n 61 =>\n [\n 'id' => 62,\n 'name' => 'Maipú',\n 'created_at' => '2020-11-26 14:21:46',\n 'updated_at' => '2020-11-26 14:21:46',\n ],\n 62 =>\n [\n 'id' => 63,\n 'name' => 'Santiago Oriente',\n 'created_at' => '2020-11-26 14:21:46',\n 'updated_at' => '2020-11-26 14:21:46',\n ],\n 63 =>\n [\n 'id' => 64,\n 'name' => 'Nuñoa',\n 'created_at' => '2020-11-26 14:21:46',\n 'updated_at' => '2020-11-26 14:21:46',\n ],\n 64 =>\n [\n 'id' => 65,\n 'name' => 'Providencia',\n 'created_at' => '2020-11-26 14:21:47',\n 'updated_at' => '2020-11-26 14:21:47',\n ],\n 65 =>\n [\n 'id' => 66,\n 'name' => 'Santiago Sur',\n 'created_at' => '2020-11-26 14:21:47',\n 'updated_at' => '2020-11-26 14:21:47',\n ],\n 66 =>\n [\n 'id' => 67,\n 'name' => 'La Florida',\n 'created_at' => '2020-11-26 14:21:47',\n 'updated_at' => '2020-11-26 14:21:47',\n ],\n 67 =>\n [\n 'id' => 68,\n 'name' => 'San Bernardo',\n 'created_at' => '2020-11-26 14:21:47',\n 'updated_at' => '2020-11-26 14:21:47',\n ],\n 68 =>\n [\n 'id' => 69,\n 'name' => 'Buin',\n 'created_at' => '2020-11-26 14:21:47',\n 'updated_at' => '2020-11-26 14:21:47',\n ],\n 69 =>\n [\n 'id' => 70,\n 'name' => 'La unión',\n 'created_at' => '2020-11-26 14:21:47',\n 'updated_at' => '2020-11-26 14:21:47',\n ],\n ]);\n Schema::enableForeignKeyConstraints();\n }", "public function create_branch($branch) {\n\t\t\treturn $this->run(\"branch $branch\");\n\t\t}", "private function cObjData_setFlagTreeview()\n {\n // Set key and value for treeview field\n $key = $this->pObj->prefixId . '.flag_treeview';\n $value = 1;\n\n // Set treeview field\n $this->pObj->cObj->data[ $key ] = $value;\n\n // DRS\n if ( $this->pObj->b_drs_cObjData )\n {\n $prompt = 'cObj->data[ ' . $key . '] = ' . $value;\n t3lib_div::devlog( '[INFO/COBJ] ' . $prompt, $this->pObj->extKey, 0 );\n }\n // DRS\n }", "public function branch($branches) {\n\t\tforeach ((array) $branches as $val) {\n\t\t\t$this->branches[] = $val;\n\t\t}\n\n\t\treturn $this;\n\t}", "private function _populateBranch()\n {\n return $this->branch->create(\n $this->branchData['name'], \n $this->branchData['region_ID'], \n $this->branchData['promotor_ID']\n );\n }", "function tep_make_cat_dmbranch($parcat, $table, $level, $maxlevel) {\n\n global $cPath_array, $menu_use_titles, $menu_icon_file;\n\t\t\n $list = $table[$parcat];\n\t\n // Build data for menu\n\t\twhile(list($key,$val) = each($list)){\n \n\t\t\t\tif (isset($cPath_array) && in_array($key, $cPath_array)) {\n $this_expanded = '1';\n $this_selected = 'dmselected';\t\t\t\t\t\t\n } else {\n $this_expanded = '';\n $this_selected = '';\t\t\t\t\t\t\t\t\t\n\t\t }\t\n\n if (!$level) {\n\t\t\t\t unset($GLOBALS['cPath_set']);\n\t\t\t\t\t\t$GLOBALS['cPath_set'][0] = $key;\n $cPath_new = 'cPath=' . $key;\n\n } else {\n\t\t\t\t\t\t$GLOBALS['cPath_set'][$level] = $key;\t\t\n $cPath_new = 'cPath=' . implode(\"_\", array_slice($GLOBALS['cPath_set'], 0, ($level+1)));\n }\n\t\t\t\t\n\t\t\t\tif ($menu_use_titles) {\n\t\t\t\t $this_title = $val;\n\t\t\t\t} else {\n\t\t\t\t $this_title = '';\t\t\t\t\n\t\t\t\t}\t\t\t\t\n /*\n if (SHOW_COUNTS == 'true') {\n $products_in_category = tep_count_products_in_category($key);\n if ($products_in_category > 0) {\n $val .= '&nbsp;(' . $products_in_category . ')';\n }\n }\n\t\t*/\t\t\n\t\t\t\t// Output for file to be parsed by PHP Layers Menu\n\t\t\t\t// Each line (terminated by a newline \"\\n\" is a pipe delimited string with the following fields:\n\t\t\t\t// [dots]|[text]|[link]|[title]|[icon]|[target]|[expanded]\n\t\t\t\t// dots - number of dots signifies the level of the link '.' root level items, '..' first submenu, etc....\n\t\t\t\t// text - text for link; title - tooltip for link; icon - icon for link; target - \"dmselected\" CSS class if item is selected\n\t\t\t\t// expanded - signifies if the node is expanded or collapsed by default (applies only to tree style menus)\n\t\t\t\t$output .= str_repeat(\".\", $level+1).'|'.$val.'|'.tep_href_link(FILENAME_DEFAULT, $cPath_new).'|'.$this_title.'|'.$menu_icon_file.'|'.$this_selected.'|'.$this_expanded.\"\\n\";\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t\n if ((isset($table[$key])) AND (($maxlevel > $level + 1) OR ($maxlevel == '0'))) {\n $output .= tep_make_cat_dmbranch($key,$table,$level + 1,$maxlevel);\n }\n \n\t\t} // End while loop\n\n return $output;\n}", "private function setScenario($switch)\n {\n switch($switch)\n {\n case Story::TYPE_IMAGE:\n $scenario=Story::SCENARIO_IMAGE_STORY;\n break;\n case Story::TYPE_VIDEO:\n $scenario=Story::SCENARIO_VIDEO_STORY;\n break;\n case Story::TYPE_CLIPKIT:\n $scenario=Story::SCENARIO_CLIPKIT_STORY;\n break;\n case Story::TYPE_3RD_PARTY_VIDEO:\n $scenario=Story::SCENARIO_3RD_PARTY_VIDEO_STORY;\n break;\n default:\n $scenario=Story::SCENARIO_IMAGE_STORY;\n break;\n }\n\n return $scenario;\n }", "public function company_lookup_branch() {\n $this->layout = 'ajax';\n $this->loadModel('Branch');\n $branches = $this->Branch->find('all', array(\n 'conditions' => array('Branch.comp_id' => $this->Auth->user('id'))\n ));\n $this->set('branch', $branches);\n }", "public static function _switch()\n {\n //get the argument list, and extract $self\n $args = func_get_args();\n $self = array_shift($args);\n\n //get the item we're comparing to\n $comparison_base = array_shift($args);\n\n //split the arguments into two separate lists\n $count = count($args);\n for($i = 0; $i + 1 < $count; $i += 2)\n {\n //if the condition evalutes to true, run the body code\n if($self->evaluate($args[$i]) == $comparison_base)\n {\n //run the associated code\n $self->evaluate_script($args[$i + 1]);\n }\n }\n }" ]
[ "0.5274463", "0.5015091", "0.48326716", "0.48102018", "0.47833815", "0.4700621", "0.46001625", "0.45670772", "0.45391107", "0.45379442", "0.45202398", "0.45121533", "0.44424596", "0.442582", "0.44007412", "0.43802857", "0.43737704", "0.4356598", "0.43038946", "0.42774263", "0.42674097", "0.42207998", "0.42112848", "0.41407055", "0.41385162", "0.41363582", "0.4135888", "0.41323036", "0.41116926", "0.40967035" ]
0.74532294
0
Clear current operation object
public function clearCurrentOperation() { $this->currentOperation = null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function clearOperations()\n {\n $this->_operations = array();\n\n return $this;\n }", "public function clear()\n\t{\n\t\t$this->getObject()->clear();\n\t}", "public function clear()\n {\n $this->op_prime_id = null;\n $this->op_id = null;\n $this->op_prime_libelle = null;\n $this->op_prime_numero = null;\n $this->gdl_art_id = null;\n $this->operation_prime_currency_id = null;\n $this->operation_prime_r_reward_type_id = null;\n $this->operation_prime_r_reward_expedition_mode_id = null;\n $this->operation_prime_r_reward_transporter_id = null;\n $this->operation_prime_fixed_amount = null;\n $this->operation_prime_product_price_pourcentage = null;\n $this->operation_prime_maximum_amount = null;\n $this->alreadyInSave = false;\n $this->alreadyInValidation = false;\n $this->alreadyInClearAllReferencesDeep = false;\n $this->clearAllReferences();\n $this->resetModified();\n $this->setNew(true);\n $this->setDeleted(false);\n }", "public function clear(): self;", "public function clear() {}", "public function clear() {}", "public function clear() {}", "public function clear() {}", "public function clear () {\n \n }", "public function clear()\n\t{\n\t\t$this->stmt = null;\n\t\t$this->str = null;\n\t}", "protected function _clear()\n\t{\n\t\t$this->_query = null;\n\t\t$this->_set = null;\n\t\t$this->_where = null;\n\t\t$this->_limit = null;\n\t}", "public function clearState() {}", "public function clear()\n {\n\n $this->synchronized = true;\n $this->id = null;\n $this->newId = null;\n $this->data = [];\n $this->savedData = [];\n $this->multiRef = [];\n\n }", "protected function clear() {}", "public function clear( );", "public function clearOperationScenariis()\n {\n $this->collOperationScenariis = null; // important to set this to null since that means it is uninitialized\n $this->collOperationScenariisPartial = null;\n\n return $this;\n }", "public function clear(): void;", "public function clear(): void;", "public function clear(): void;", "public function clear(): void;", "public function clear(): void;", "public function clear(): void;", "public function clear();", "public function clear();", "public function clear();", "public function clear();", "public function clear();", "public function clear();", "public function clear();", "public function clear();" ]
[ "0.759081", "0.7087907", "0.70383245", "0.69579744", "0.6943701", "0.6943701", "0.6943701", "0.6943701", "0.6833984", "0.6793754", "0.67423064", "0.6732334", "0.67225605", "0.67165667", "0.6713597", "0.66961443", "0.66724914", "0.66724914", "0.66724914", "0.66724914", "0.66724914", "0.66724914", "0.6641373", "0.6641373", "0.6641373", "0.6641373", "0.6641373", "0.6641373", "0.6641373", "0.6641373" ]
0.8475614
0
$this>db>query("SELECT FROM `booking` WHERE `BK_Year` = $year && `BK_Month` = $month");
function getBookingByMonth() { $query = $this->db->select('BK_Year,BK_Month,BK_Day') ->get('booking'); return $query->result(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function show_available_bookings(){\n global $db;\n $sql = \"SELECT * FROM booking_info;\";\n $result = $db->query($sql);\n return $result;\n}", "function thismonth(){\n\n $where = \"MONTH( reservation_startdate ) = MONTH( NOW() )\";\n\n $reservation = where( 'reservations', $where );\n\n echo json_encode( $reservation );\n exit;\n}", "function get_transaction_by_month($conds = array())\n\t{\n\t\t//print_r(\"asdfasd\" .$conds);die;\n\t\t$this->db->select('rt_transactions_counts.*'); \n \t\t$this->db->from('rt_transactions_counts');\n \t\t$this->db->where('month(added_date)',$conds['added_date']);\n \t\t$this->db->where('rt_transactions_counts.shop_id',$conds['shop_id']);\n\n\t\treturn $this->db->get();\n\t\t // print_r($this->db->last_query());die;\n\t}", "function whereQuery() {\n // $arrDate1 = explode(\"-\", $bulantahunpenggajian);\n // $date1 = $arrDate1[0].'-'.$arrDate1[1].'-01';\n // $date2 = $arrDate1[0].'-'.$arrDate1[1].'-'.cal_days_in_month(CAL_GREGORIAN, $arrDate1[1], $arrDate1[0]);\n \n // $wer = \" A.MONTH = '\".$arrDate1[1].\"' AND A.YEAR = \".$arrDate1[0].\"\";\n \n // return $wer;\n return '';\n }", "function get_inventory_data($month,$year) {\r\n\t\t\r\n\t\t$query = \"SELECT category, MONTH(auction_date) AS month, YEAR(auction_date) as year,\r\n\t\tSUM(pre_tax_amount) as pre_tax_amount, SUM(tax_amount) AS tax_amount FROM $table_name\r\n\t\tWHERE MONTH(auction_date)=:month AND YEAR(auction_date)=:year\r\n\t\tGROUP BY category ORDER BY category ASC\";\r\n\t\t\r\n\t\t$result = $this->execute_query($query,array(\":year\"=>$year,\":month\"=>$month));\t\r\n\t\t\r\n\t\tif($result === FALSE ) { $this->error_log[] = \"Error or empty result while calling \".__FUNCTION__; return FALSE; }\r\n\t\telse\r\n\t\t{\r\n\t\t\treturn $result;\t\r\n\t\t}\r\n\t}", "protected function getMonths()\n {\n\t$year = $_REQUEST['year'] ;\n\tif( !$year )\n\t{\n\t print( \"Month query failed: no year has been specified\\n\" ) ;\n\t exit( 0 ) ;\n\t}\n\t$year = trim( $year ) ;\n\n\t// need to connect to the database here in order to run the\n\t// function mysql_real_escape_string\n\t$isconnected = $this->cedarconnect() ;\n\tif( $isconnected != \"good\" )\n\t{\n\t print( \"$isconnected\\n\" ) ;\n\t exit( 0 ) ;\n\t}\n\n\tif( $year )\n\t{\n\t $year = mysql_real_escape_string( $year ) ;\n\t}\n\n\t$params = $_REQUEST['params'] ;\n\tif( $params )\n\t{\n\t $params = trim( $params ) ;\n\t $params = mysql_real_escape_string( $params ) ;\n\t}\n\n\t$kinst = $_REQUEST['kinst'] ;\n\tif( $kinst )\n\t{\n\t $kinst = trim( $kinst ) ;\n\t $kinst = mysql_real_escape_string( $kinst ) ;\n\t}\n\n\t$query = \"SELECT DISTINCT d.MONTH\" ;\n\tif( $kinst && !$params )\n\t{\n\t $query .= \" FROM tbl_date d, tbl_date_in_file dif,\" ;\n\t $query .= \" tbl_file_info fi, tbl_record_type rt,\" ;\n\t $query .= \" tbl_record_info ri\" ;\n\t $query .= \" WHERE d.DATE_ID=dif.DATE_ID\" ;\n\t $query .= \" AND dif.RECORD_IN_FILE_ID=fi.RECORD_IN_FILE_ID\" ;\n\t $query .= \" AND fi.RECORD_TYPE_ID=rt.RECORD_TYPE_ID\" ;\n\t $query .= \" AND fi.RECORD_TYPE_ID=ri.RECORD_TYPE_ID\" ;\n\t $query .= \" AND d.YEAR=$year\" ;\n\t $query .= \" AND rt.KINST=$kinst\" ;\n\t}\n\telse if( $params && !$kinst )\n\t{\n\t $query .= \" FROM tbl_date d, tbl_date_in_file dif,\" ;\n\t $query .= \" tbl_file_info fi, tbl_record_info ri\" ;\n\t $query .= \" WHERE d.DATE_ID=dif.DATE_ID\" ;\n\t $query .= \" AND dif.RECORD_IN_FILE_ID=fi.RECORD_IN_FILE_ID\" ;\n\t $query .= \" AND fi.RECORD_TYPE_ID=ri.RECORD_TYPE_ID\" ;\n\t $query .= \" AND d.YEAR=$year\" ;\n\t $query .= \" AND ri.PARAMETER_ID in ($params)\" ;\n\t}\n\telse if( $params && $kinst )\n\t{\n\t $query .= \" FROM tbl_date d, tbl_date_in_file dif,\" ;\n\t $query .= \" tbl_file_info fi, tbl_record_type rt,\" ;\n\t $query .= \" tbl_record_info ri\" ;\n\t $query .= \" WHERE d.DATE_ID=dif.DATE_ID\" ;\n\t $query .= \" AND dif.RECORD_IN_FILE_ID=fi.RECORD_IN_FILE_ID\" ;\n\t $query .= \" AND fi.RECORD_TYPE_ID=rt.RECORD_TYPE_ID\" ;\n\t $query .= \" AND fi.RECORD_TYPE_ID=ri.RECORD_TYPE_ID\" ;\n\t $query .= \" AND d.YEAR=$year\" ;\n\t $query .= \" AND rt.KINST=$kinst\" ;\n\t $query .= \" AND ri.PARAMETER_ID in ($params)\" ;\n\t}\n\telse if( !$params && !$kinst )\n\t{\n\t $query .= \" FROM tbl_date d, tbl_date_in_file dif\" ;\n\t $query .= \" WHERE d.DATE_ID=dif.DATE_ID\" ;\n\t $query .= \" AND d.YEAR=$year\" ;\n\t}\n\n\t$query .= \" ORDER BY d.MONTH ASC\" ;\n\t//print( \"$query\\n\" ) ;\n\n\t$result = parent::dbquery( $query ) ;\n\t$num_rows = mysql_num_rows( $result ) ;\n\tif( $num_rows != 0 )\n\t{\n\t while( $line = mysql_fetch_row( $result ) )\n\t {\n\t\tif( $line )\n\t\t{\n\t\t $colnum = 0 ;\n\t\t foreach( $line as $value )\n\t\t {\n\t\t\tif( $colnum > 0 ) echo \",\" ;\n\t\t\techo $value ;\n\t\t\t$colnum++ ;\n\t\t }\n\t\t echo \"\\n\" ;\n\t\t}\n\t }\n\t}\n\n\tparent::dbclose( $result ) ;\n }", "protected function row_to_days(string $month, int $year, Room $room_for_check){\r\n $this->get_calendar_data();\r\n \r\n $query = \"SELECT * FROM \" . static::$db_table . \" WHERE \";\r\n $query .= \"facility_name='\". $room_for_check->get_facility(). \"' AND room_name='\". $room_for_check->get_room_name(). \"' AND owner='\" . $room_for_check->get_owner().\"'\";\r\n $query .= \" AND year='\". $year.\"'\";\r\n// var_dump($query);\r\n //rezultat queya je objekat sa svim mjesecima\r\n $result_object = self::find_specific_full_query($query);\r\n// var_dump($result_object);\r\n if (!$result_object){\r\n return;\r\n }\r\n \r\n $unav_dates_str = $result_object->$month;\r\n//var_dump($unav_dates_str);\r\n $unav_dates_array = explode(\",\",$unav_dates_str);\r\n \r\n// var_dump($unav_dates_array);\r\n return $unav_dates_array? $unav_dates_array : null;\r\n \r\n}", "function valid_payment($student, $month, $year)\n {\n $this->ci->db->where('student_id', $student);\n $this->ci->db->where('financial_year', $year);\n $val = $this->ci->db->get($this->table)->row();\n\n if ($val->$month){ return FALSE; } else{ return TRUE; }\n }", "function getBookersByDate($yr, $mth){\r\n $inx = 0;\r\n $arrpack = array();\r\n $conn = getConnection();\r\n\r\n $stmt = $conn->prepare(\"SELECT B.idreservations, B.datebkd, G.gs_name, P.pax, P.pooltype, P.time, P.ratetype, B.rs_checkin from packages P, booking B, guests G where B.idreservations = G.reservations_idreservations and B.packages_idpackages = P.idpackages and Year(rs_checkin) = ? and Month(rs_checkin) = ? order by rs_checkin\");\r\n $stmt->bind_param(\"ii\", $yr, $mth);\r\n $stmt->execute();\r\n\r\n $result = $stmt->get_result();\r\n\r\n if($result->num_rows > 0){\r\n while($row = $result->fetch_assoc()){\r\n\r\n $dte = $row['datebkd'];\r\n $pieces = explode(\"-\", $dte);\r\n $id = $row['idreservations'];\r\n $totString = $pieces[0] . $pieces[1] . $pieces[2] . \"-o-\" . $id;\r\n $arrpack[$inx][0] = $row['rs_checkin'];\r\n $arrpack[$inx][1] = $totString;\r\n $arrpack[$inx][2] = $row['gs_name'];\r\n $arrpack[$inx][3] = $row['pax'];\r\n $arrpack[$inx][4] = $row['pooltype'];\r\n $arrpack[$inx][5] = $row['time'];\r\n $arrpack[$inx][6] = $row['ratetype'];\r\n $inx++;\r\n }\r\n }\r\n $conn->close(); \r\n\r\n return $arrpack;\r\n }", "function if_user_has_booking($user_id){\n global $db;\n $sql = \"SELECT * FROM booking WHERE user_id = '$user_id';\";\n $result = $db->query($sql);\n return $result;\n}", "private function _sql_yearmonth() {\n\t\tglobal $wpdb;\n\t\tif ( !$this->yearmonth ) {\n\t\t\treturn '';\n\t\t}\n\t\t// e.g. AND DATE_FORMAT(wp_posts.post_modified, '%Y%m') = '201102'\n\t\treturn sprintf(\"%s DATE_FORMAT(%s.%s, '%%Y%%m') = %s\" // note the double percentage to placate sprintf \n\t\t\t, $this->join_rule\n\t\t\t, $wpdb->posts\n\t\t\t, $this->date_column\n\t\t\t, $wpdb->prepare('%s', $this->yearmonth)\n\t\t);\n\t}", "function index(){\n\n\n $where = \"MONTH( reservation_startdate ) = MONTH( NOW() ) AND reservation_status = 'Approved'\";\n\n $reservation = where( 'reservations', $where );\n\n return view( 'admin/reservation/reservation', compact( 'reservation' ));\n}", "function get_balance($acc=null,$month=null,$year=null)\n {\n// transactions.debit, transactions.credit, transactions.vamount, gls.approved');\n \n $this->db->select_sum('transactions.vamount');\n $this->db->select_sum('transactions.debit');\n $this->db->select_sum('transactions.credit');\n \n $this->db->from('gls, transactions, accounts');\n $this->db->where('gls.id = transactions.gl_id');\n $this->db->where('transactions.account_id = accounts.id');\n $this->db->where('MONTH(dates)', $month);\n $this->db->where('YEAR(dates)', $year);\n $this->cek_null($acc,\"transactions.account_id\");\n $this->db->where('gls.approved', 1);\n $this->db->where('accounts.deleted', NULL);\n return $this->db->get(); \n }", "function Monthly_Requests_Assignment($year) {\r\n $query2 = $this->db->query(\"SELECT DISTINCT(labref), MONTHNAME(date_issued) as month, YEAR(date_issued) as year,DATE_FORMAT(date_issued, '%m') as m,\r\n COUNT(id) as 'total'\r\n FROM sample_details\r\n WHERE DATE_FORMAT(date_issued, '%Y') = '$year' \r\n AND activity='Analysis'\r\n GROUP BY MONTHNAME(date_issued)\r\n ORDER BY MONTH(date_issued) ASC\");\r\n\r\n return $result = $query2->result();\r\n }", "public function getBookings() {\n //$query = \"SELECT * FROM `bookings` WHERE `DATE` = CURDATE() ORDER BY `DATE`, `TIME`\";\n $query = \"SELECT * FROM `bookings` where DATE(`DATE`) = CURDATE() \";\n\n $stmt = $this->sqlConnection->prepare($query);\n\n $stmt->execute();\n\n if ($stmt->rowCount() > 0) {\n\n $result = $stmt->fetchAll(PDO::FETCH_ASSOC);\n\n return json_encode($result);\n } else {\n\n echo json_encode(array(\"status\" => 201, 'message' => 'No bookings made yet..'));\n }\n }", "function get_user_booking_with_id($user_id){\n global $db;\n $sql = \"SELECT * FROM booking WHERE user_id = '$user_id'\";\n $result = $db->query($sql);\n return $result;\n}", "function viewBookings() {\n try {\n $databaseConnection = new PDO( DB_NAME, DB_USERNAME, DB_PASSWORD ); //Creates database connection\n $databaseConnection->setAttribute( PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION );\n } \n catch ( PDOException $e ) {\n echo \"Connection failed: \" . $e->getMessage();\n }\n\n $date = $_POST[\"year\"] . \"-\" . $_POST[\"month\"] . \"-\" . $_POST[\"day\"] . \" \" . \"0\" . \":0:0\"; //Converts the date to a mySQL friendly format \n $date = strtotime($date);\n $maxDate = $date + DAY;\n $date = gmdate(\"Y-m-d H:i:s\", $date);\n $maxDate = gmdate(\"Y-m-d H:i:s\", $maxDate);\n $sql = \"SELECT * FROM `bookings` WHERE `time` >= :date AND `time` < :maxDate ORDER BY `time` AND `room`\"; //Selects all bookings for the inputed time\n try {\n $connection = $databaseConnection->prepare( $sql );\n $connection-> bindValue( \":date\", $date, PDO::PARAM_STR );\n $connection-> bindValue( \":maxDate\", $maxDate, PDO::PARAM_STR );\n $connection-> execute();\n $queryResult = $connection->fetchAll();\n $databaseConnection = \"\"; //closes connection\n }\n catch (PDOException $e) {\n $databaseConnection = \"\"; //closes connection\n die ( \"Invalid query: \" . $e->getMessage() );\n }\n \n echo \"<h1>Bookings for \" . $_POST[\"day\"] . \"/\" . $_POST[\"month\"] . \"/\" . $_POST[\"year\"] . \"</h1>\";\n if($queryResult) { //Checks that the query returned data\n echo \"<table><tr><th>Time</th><th>Room Number</th><th>Name</th><th>purpose</th></tr>\"; //table header\n foreach ( $queryResult as $row ) {\n echo \"<tr><td>\" . $row[\"time\"] . \"</td><td>\" . $row[\"room\"] . \"</td><td>\" . User::getUsersName($row[\"user\"]) . \"</td><td>\" . $row[\"purpose\"] . \"</td></tr>\";\n } \n echo \"</table>\";\n }\n else {\n echo \"There are no bookings for that time.\";\n }\n}", "function getMonthlyReportData($month)\n{\n $sql = sprintf(\"SELECT * FROM PURCHASES WHERE strftime('%m', DATE) = '%s'\", $month);\n\n $rows = array();\n $result = $this->query($sql);\n while($row = $result->fetchArray(SQLITE3_ASSOC))\n {\n array_push($rows, $row);\n }\n return $rows;\n}", "function get_acquisition_value(){\n\n $from_date = $_REQUEST['from_date'];\n $to_date = $_REQUEST['to_date'];\n\n $obj = new vintage_has_acquire();\n //$columns = \"DATE_FORMAT(acquire_date,'%b') as Month\";\n $columns = \"DATE_FORMAT(tblAcquire.acquire_date,'%b') as month, sum(trelVintageHasAcquire.total_price) as total\";\n //$group = \" trelVintageHasAcquire.acquire_id \";\n $group = \" Month \";\n $where = \" tblAcquire.acquire_date BETWEEN '2014-01-01' AND '2014-12-31'\";\n $sort = \" acquire_date ASC \";\n $rst = $obj ->get_extended($where,$columns,$group, $sort);\n \n \n if(!$rst){\n $var_result['success']=false;\n $var_result['error']=\"acquisition report failed\";\n return $var_result;\n }\n\n $var_result['success']=true;\n $var_result['data']=$rst;\n return $var_result;\n\n}", "function Monthly_Requests_Pending($year) {\r\n $query2 = $this->db->query(\"SELECT MONTHNAME(designation_date) as month, YEAR(designation_date) as year,DATE_FORMAT(designation_date, '%m') as m,\r\n COUNT(id) as 'total'\r\n FROM request\r\n WHERE DATE_FORMAT(designation_date, '%Y') = '$year' AND assign_status = '0'\r\n GROUP BY MONTHNAME(designation_date)\r\n ORDER BY MONTH(designation_date) ASC\");\r\n\r\n return $result = $query2->result();\r\n }", "public static function SEARCH_STOP_DATE_RANGE_BOOKING(){\n\t $SQL_String = \"SELECT * FROM area_booking WHERE am_id=:am_id AND (date_enter BETWEEN :stop_start AND :stop_end OR date_exit BETWEEN :stop_start AND :stop_end) AND _keep=1\";\n\t return $SQL_String;\n\t}", "function Monthly_Requests($year) {\r\n $query2 = $this->db->query(\"SELECT MONTHNAME(designation_date) as month, YEAR(designation_date) as year, DATE_FORMAT(designation_date, '%m') as m,\r\n COUNT(id) as 'total'\r\n FROM request\r\n WHERE DATE_FORMAT(designation_date, '%Y') = '$year'\r\n GROUP BY MONTHNAME(designation_date)\r\n ORDER BY MONTH(designation_date) ASC\");\r\n\r\n return $result = $query2->result();\r\n }", "public static function getDataInTbl($nametbl,$year,$month)\n {\n \t strtolower($nametbl);\n return DB::table($nametbl)\n ->where('year',$year)->where('month',$month)->sum('consumption');\n }", "function findBooking() : array\n{ \n $db = new Database;\n $db = $db->dbConnect();\n\n $sql = \"SELECT booking.id, booking_date_debut, booking_time_debut, booking_date_fin, booking_time_fin, number_of_seats, user_i, last_name, first_name, mail \n FROM booking \n INNER JOIN user ON user.id = booking.user_i \";\n $adminGetBooking = $db->query($sql);\n $adminGetBooking = $adminGetBooking->fetchAll();\n return $adminGetBooking;\n}", "function getDateReserve($conn, $day, $current_month) {\n\t\t\t\t\t\n\t\t\t\t\t$current_year = date(\"y\");\n\t\t\t\t\t\n\t\t\t\t\t$select_all_dates = \"SELECT * FROM reservation WHERE confirmation = 'Confirmed'\";\n\t\t\t\t\t$q_seleect_all_dates = $conn->query($select_all_dates);\n\t\t\t\t\t\n\t\t\t\t\tif($q_seleect_all_dates->num_rows > 0) {\n\t\t\t\t\t\twhile($q_row = $q_seleect_all_dates->fetch_assoc()) {\n\t\t\t\t\t\t\t$date_reserved = strtotime($q_row['reserv_date']);\n\t\t\t\t\t\t\t$date_reserved_month = date('m',$date_reserved);\n\t\t\t\t\t\t\t$date_reserved_year = date('y',$date_reserved);\n\t\t\t\t\t\t\t$date_reserved_day = date('d',$date_reserved);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif($date_reserved_month == $current_month && $date_reserved_year == $current_year) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif($day == $date_reserved_day) {\n\t\t\t\t\t\t\t\t\treturn true;\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\techo \".\";\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\techo \"false\";\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}", "function get_all_by_key_by_year() {\t\n\t\t$sql = \"SELECT * \n\t\t\t\tFROM evs_database.evs_set_form_g_and_o\n\t\t\t\tWHERE sfg_pos_id = ? AND sfg_pay_id = ?\";\n\t\t$query = $this->db->query($sql, array($this->sfg_pos_id, $this->sfg_pay_id));\n\t\treturn $query;\n\t}", "public function list_client_select($current_year,$next_year){\n\n$this->db->where(\"year BETWEEN '$next_year' and '$current_year'\", NULL, FALSE); \n$this->db->order_by(\"year\", \"desc\");\n\t\n$result\t= $this->db->get('client');\n\n\t\treturn $result->result();\t\n}", "public function list_invoice_select($current_year,$next_year){\n\n$this->db->where(\"year BETWEEN '$next_year' and '$current_year'\", NULL, FALSE); \n$this->db->order_by(\"year\", \"desc\");\n\t\n$result\t= $this->db->get('invoice');\n\n\t\treturn $result->result();\t\n}", "function get_student_month_attendance($month)\n\t\t{\n\t\t\t\n\t\t\t$array = array(\"attendance.status\"=>2,\"attendance.student_id !=\"=>0,\"attendance.month\"=>$month);\n\t\t\t$this->db->select('*');\n\t\t\t$this->db->from('attendance');\n\t\t\t$this->db->join('student', 'student.student_id = attendance.student_id');\n\t\t\t$this->db->where($array);\n\t\t\t$query = $this->db->get();\n\t\t\t$attendance =$query->result();\n\t\t\t//echo $this->db->last_query();\n\t\t\t\n\t\t\tforeach($attendance as $row)\n\t\t\t{\n\t\t\t\techo '\n\t\t\t\t<tr class=\"gradeA\"><td>' .date(\"d-M-Y\", strtotime($row->date)) . '</td>\n\t\t\t\t<td>'. $row->class_id.'</td>\t\n\t\t\t\t<td>'. $row->name.'</td>\n\t\t\t\t<td>'. $row->description.'</td>\n\t\t\t\t</tr>';\n\t\t\t} \n\t\t}", "function loadLedger($year,$id){\r\n$sql = \"SELECT payroll.*, employee.employeeName FROM payroll, employee WHERE payroll.employeeId='$id' AND employee.employeeId='$id' AND payroll.year= '$year' ORDER BY sn DESC\";\r\nreturn $this->query($sql);\r\n}" ]
[ "0.6195628", "0.6179713", "0.6139088", "0.6093335", "0.60876167", "0.59388876", "0.58544534", "0.58511853", "0.58161455", "0.5814881", "0.5701382", "0.569112", "0.56613433", "0.5659854", "0.562749", "0.56182504", "0.5613191", "0.5591653", "0.55549055", "0.5525527", "0.5507995", "0.5496234", "0.54633033", "0.5448124", "0.54402816", "0.5418694", "0.5380847", "0.5379874", "0.53773504", "0.5360929" ]
0.71947354
0
$this>db = new SuperMySQLi('localhost', 'voipswitchuser', '+4H8ZXcSyWn7CuX', 'voipswitch');
public function __construct() { if(HOST_NAME == TESTING_SERVER_NAME || HOST_NAME == TESTING_SERVER_NAME1 ) $this->db = new SuperMySQLi('localhost', 'voip91_switch', 'yHqbaw4zRWrUWtp8', 'voip91_switch'); else $this->db = new SuperMySQLi('localhost', 'phone91', 'yHqbaw4zRWrUWtp8', 'voip'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function __construct(){\r\n $this->database = new mysqli(\"XXXX\", \"XXXX\", \"XXXX\", \"XXXX\");\r\n \r\n }", "function __construct()\r\n {\r\n $this->mysqli = new mysqli(servidor, usuario, password);\r\n }", "public function __construct(){\n\t\t$this->db=new mysqli('127.0.0.1','root','','test');\n\n }", "public function __construct(){\n\t\t\n /**\n *\tFind Database and Establish connection\n */\t\t\n\t\t$this->__CON = new mysqli($this->__HOSTNAME, $this->__USERNAME , $this->__PASSWORD , $this->__DATABASE , $this->__PORT); \n /**\n *\tError Message\n */\t\n\t\tif (mysqli_connect_errno()){die(mysqli_connect_error());}\n\n}", "function __construct()\n {\n parent::__construct(\"mysql:host=127.0.0.1;dbname=sondcatalog\",\"root\",\"\");\n $this->strmysql=\"?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?\";\n }", "function __construct() {\n\t$this->db = new mysqli('127.2.185.130', 'adminF2Jbm2B', 'nCi6Du5zhr4B' , 'santaslist');\n $this->db->autocommit(FALSE);\n }", "function __construct() {\r\n\t\t\t\r\n\t\t\t$this->con = new MySQLi('localhost',$this->username,$this->password,$this->db);\r\n\t\t\t\r\n\t}", "function __construct() {\r\n// \t\t$this->connection = mysql_connect($this->host,$this->username,$this->password,$this->dbname);\r\n// echo $this->host + \"zxdgfzxfg\";\r\n// echo \"mysql:host=\".$this->host.\";dbname=\".$this->dbname.\";charset=utf8\";\r\n// \t\t$this->connection = new PDO(\"mysql:host=\".$this->host.\";dbname=\".$this->dbname.\";charset=utf8\", $this->username, $this->password, $this->options);\r\n\t\t$this->connection = mysqli_connect($this->host,$this->username,$this->password,$this->dbname);\r\n\t}", "function __construct()\n\t{\n\t\t$this -> sql = new mysqli('host', 'user', 'pass', 'database');\n\t}", "public function __construct() {\n parent::__construct('127.0.0.1', '1151178', '1871', 'control_polizas', 3306);\n if (mysqli_connect_errno()) {\n printf(\"Falló la conexión: %s\\n\", mysqli_connect_error());\n exit();\n }\n }", "function getDB(){\r\n //return new mysqli(\"localhost\", \"root\", \"root\", \"biketime\");\r\n return new mysqli(\"173.194.225.113\", \"root\", \"helloworld\", \"biketime\");\r\n\r\n}", "public function __construct(){\n $this->connect = new \\mysqli(DBAccess::DB_LOCATION, DBAccess::DB_USER, DBAccess::DB_PASS, self::DB_NAME);\n }", "public function __construct(){\n $this->conn = new mysqli($this->servername, $this->username, $this->password, $this->database);\n }", "function __construct() {\n $this->db = new mysqli('localhost', 'test', 'test', 'renteasy');\n $this->db->autocommit(FALSE);\n }", "function __construct() {\n $this->db = new mysqli('localhost', 'test', 'test', 'renteasy');\n $this->db->autocommit(FALSE);\n }", "function __construct($hn, $un, $pw, $db){\n $this->conn = new mysqli($hn, $un, $pw, $db);\n if ($this->conn->connect_error) die($this->conn->connect_error);\n }", "function OpenCon()\n {\n $dbhost = \"localhost\";\n $dbuser = \"id736683_saadabid15\";\n $dbpass = \"saarim123\";\n $db = \"id736683_chatbot\";\n\n\n $conn = new mysqli($dbhost, $dbuser, $dbpass,$db) or die(\"Connect failed: %s\\n\". $conn -> error);\n\n \n return $conn;\n }", "public function __construct()\r\n{\r\n$this->connessione = new mysqli($this->servername,$this->username,$this->password,$this->dbname);\r\n// Check connection\r\nif ($this->connessione->connect_error) {\r\n die('Errore di connessione (' . $this->connessione->connect_errno . ') '. $this->connessione->connect_error);\r\n} else {\r\n// echo 'Connesso. ' . $connessione->host_info . \"\\n\";\r\n}\r\n}", "function getDatabaseConnection($options) {\n $db = new IPM_db_plugin_mysqli();\n $db->open($options[\"username\"], $options[\"password\"], $options[\"ip_address\"]);\n $db->setvar(\"SQL_MODE\",\"NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION\");\n $db->setdb($options[\"database_name\"]);\n if ($db->errno) die(\"Unable to connect to database - error #\" . $db->errno . '<br>' . print_r(debug_backtrace()));\n return $db;\n}", "private function dbConnect(){\n\t\t\t$this->mysqli = new mysqli(self::DB_SERVER, self::DB_USER, self::DB_PASSWORD, self::DB);\n\t\t}", "public function __construct() {\n// $this->db['server'] = $args['server'];\n// $this->db['username'] = $args['username'];\n// $this->db['password'] = $args['password'];\n// $this->db['database'] = $args['database'];\n $this->open_connection();\n }", "public function __construct(){\n try{\n $this->mysqli = new mysqli (self::LOCALHOST, self::USER, self::PASSWORD, self::DATABASE);\n }catch (mysqli_sql_exception $e) {\n //Si no se puede realizar la conexion\n http_response_code(500);\n exit; \n }\n }", "function __construct() {\n $connectstr_dbhost = 'localhost'; \n $connectstr_dbname = 'dkpTable'; \n $connectstr_dbusername = 'root'; \n $connectstr_dbpassword = 'dfghj'; \n $this->database_manager = mysqli_connect($connectstr_dbhost, $connectstr_dbusername, $connectstr_dbpassword,$connectstr_dbname); \n \nif (!$this->database_manager) { \n echo \"Error: Unable to connect to MySQL.\" . PHP_EOL; \n echo \"Debugging errno: \" . mysqli_connect_errno() . PHP_EOL; \n echo \"Debugging error: \" . mysqli_connect_error() . PHP_EOL; \n exit; \n } \n}", "public function __construct()\r\n {\r\n parent::__construct('127.0.0.1', 'root', 'hillstone', 'mysql');\r\n }", "function getConnection() {\n\n $server = \"localhost\";\n $username = \"root\";\n $password = \"\";\n $db = \"trails_on_rails\";\n\n /*$username = \"admin\";\n $password = \"password\";\n $db = \"id523957_trails_on_rails\";*/\n\n $conn = new mysqli($server, $username, $password, $db); \n \n if ($conn->connect_error) {\n die(\"Connection failed: \" . $conn->connect_error);\n } \n\n return $conn;\n}", "public static function startConnectionDb(){\n $db = new MysqliDb (Array (\n 'host' => 'localhost',\n 'username' => 'root',\n 'password' => '',\n 'db'=> 'db_crm_casona',\n 'port' => 3306,\n 'prefix' => '',\n 'charset' => 'utf8'));\n $db->autoReconnect = false;\n\n if ($db->getLastErrno() === 0){\n return $db;\n }else{\n echo 'Failed. Error: '. $db->getLastError(); \n }\n return $db; \n }", "public function __construct(){\n $this->db = new DBConnector(\"localhost\", \"root\", \"\", \"cine\");\n }", "public function __construct()\n {\n $connStr = getenv(\"MYSQLCONNSTR_localdb\");\n // Split the string in the array\n $split = explode(\";\",$connStr);\n $connArray = array();\n foreach ($split as $key => $value) {\n $k = substr($value,0,strpos($value,\"=\"));\n $connArray[$k] = substr($value,strpos($value,\"=\")+1);\n }\n\n mysqli_report(MYSQLI_REPORT_ERROR | MYSQLI_REPORT_STRICT);\n try {\n $this->dbConnection = new \\mysqli(\n $connArray[\"Data Source\"],\n $connArray[\"User Id\"],\n $connArray[\"Password\"],\n $connArray[\"Database\"]);\n } catch (Exception $e) {\n error_log($e->getMessage());\n exit('Error connecting to database');\n }\n }", "function db_connect() {\n $servername = '127.0.0.1';\n $username = 'root';\n $password = 'password';\n $dbname = 'computer_parts';\n\n $result = new mysqli($servername, $username , $password, $dbname);\n if (!$result) {\n return false;\n }\n $result->autocommit(TRUE);\n return $result;\n}", "function getDbInstance()\r\n{\r\n\treturn new MysqliDb(DB_HOST,DB_USER,DB_PASSWORD,DB_NAME); \r\n}" ]
[ "0.7033582", "0.69669753", "0.69102633", "0.6856741", "0.6731042", "0.67213786", "0.67175", "0.667095", "0.6652718", "0.6600131", "0.655671", "0.6544154", "0.6536987", "0.6509757", "0.6509757", "0.6492779", "0.64919984", "0.6488959", "0.64805895", "0.6477766", "0.647662", "0.6470737", "0.6470638", "0.6465031", "0.64617395", "0.6440438", "0.6416058", "0.64120954", "0.6392157", "0.63856214" ]
0.75994664
0
Get the vat number of the company
public function getVatNumber():string { return $this->vatNumber; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getVatNumber(): ?string\n {\n return $this->_vat_number;\n }", "public function getPothinvcnbr()\n {\n return $this->pothinvcnbr;\n }", "function getCodcvv()\n {\n return $this->codcvv;\n }", "public function getCoNumInventario()\n\t{\n\t\treturn $this->co_num_inventario;\n\t}", "public function getNumeroCivico() {\n return $this->numeroCivico;\n }", "public function getVatAmount()\r\n {\r\n $amount = $this->getAmount();\r\n $vat = $this->getVatPercentage();\r\n $vatAmount = ($amount / 100) * $vat;\r\n\r\n return $this->vatAmount;\r\n }", "public function getVie() {\n return intval($this->vie);\n }", "public function getVat()\n {\n return $this->_dVat;\n }", "public function getTransactionCAVV()\n {\n return $this->transactionCAVV;\n }", "public function getVIVIENDA()\r\n {\r\n return $this->VIVIENDA;\r\n }", "public function getContractNum()\n {\n return $this->contract_num;\n }", "public function getViewNum(){\n $map['type'] = \\Addons\\Stat\\StatCont::WEBSITE_VIEW;\n $view_num = $this->where($map)->sum('num');\n return $view_num == '' ? 0 : $view_num;\n }", "public function getCvv()\n {\n return $this->cvv;\n }", "public function getVatID(): ?string;", "public function getVigour()\n {\n $value = $this->get(self::VIGOUR);\n return $value === null ? (integer)$value : $value;\n }", "function verifVadsAmount($data) {\n $amountTotal = $data / 100;\n return $amountTotal;\n }", "public function getVatPercentage()\r\n {\r\n return $this->vatPercentage;\r\n }", "public static function get_formatted_vat_number( $vat ) {\n\t\t$vat = strtoupper( str_replace( array( ' ', '-', '_', '.' ), '', $vat ) );\n\n\t\tif ( in_array( substr( $vat, 0, 2 ), array_merge( self::get_eu_countries(), array( 'EL' ) ) ) ) {\n\t\t\t$vat = substr( $vat, 2 );\n\t\t}\n\n\t\treturn $vat;\n\t}", "public function getPvC()\n {\n return $this->pv_c;\n }", "public function getNumcompte()\n {\n return $this->numcompte;\n }", "public function getNumcompte()\n {\n return $this->numcompte;\n }", "public function getCustomerTaxvat();", "public function getNaziv()\n {\n return $this->naziv;\n }", "public function getCompanyValue()\n {\n return $this->CompanyValue;\n }", "public function getPrecioVenta()\n\t{\n\t\treturn $this->precio_venta;\n\t}", "public function getVersionNo()\n {\n return $this->versionNo;\n }", "public function getCompanyId()\n\t{\n\t\t$column = self::COL_COMPANY_ID;\n\t\t$v = $this->$column;\n\n\t\tif( $v !== null){\n\t\t\t$v = (int)$v;\n\t\t}\n\n\t\treturn $v;\n\t}", "public function getInvoiceNumber();", "function cvrapi($vat, $country)\n{\n $vat = preg_replace('/[^0-9]/', '', $vat);\n // Check whether VAT-number is invalid\n if(empty($vat) === true)\n {\n\n // Print error message\n return('Venligst angiv et CVR-nummer.');\n\n } else {\n\n // Start cURL\n $ch = curl_init();\n\n // Set cURL options\n curl_setopt($ch, CURLOPT_URL, 'http://cvrapi.dk/api?vat=' . $vat . '&country=' . 'dk');\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n curl_setopt($ch, CURLOPT_USERAGENT, 'Fetching company information');\n\n // Parse result\n $result = curl_exec($ch);\n\n // Close connection when done\n curl_close($ch);\n\n // Return our decoded result\n return json_decode($result, 1);\n\n }\n}", "public function getNumberVoucher(){\n return str_replace('R','G',$this->number);\n }" ]
[ "0.63881356", "0.6241496", "0.60229385", "0.60157657", "0.600642", "0.59106827", "0.57468146", "0.571963", "0.56311613", "0.5628074", "0.5600637", "0.55904716", "0.5589161", "0.5577854", "0.5574911", "0.5543841", "0.5535249", "0.5505376", "0.5504078", "0.5493984", "0.5493984", "0.5477238", "0.546631", "0.5424749", "0.54235417", "0.5403786", "0.5387862", "0.5381403", "0.5370854", "0.5370477" ]
0.695811
0
Construct by using the credit card number
public function __construct($ccNumber, $validateLength = true) { // Keep only digits of $ccNumber into $number $ccNumber = (string)$ccNumber; $len = strlen($ccNumber); $number = ""; for ($k=0; $k<$len; $k++) { if ($ccNumber[$k] >= '0' && $ccNumber[$k] <= '9') $number .= $ccNumber[$k]; } // Build a safe display version of the credit card number $len = strlen($number); $numberSafe = ""; for ($k=0; $k<$len; $k++) { if ($k < 6) $numberSafe .= $number[$k]; else if ($k >= $len - 4) $numberSafe .= $number[$k]; else $numberSafe .= 'X'; } $this->number = $number; $this->numberSafe = $numberSafe; $this->numberDisplay = implode("-", str_split($this->numberSafe, 4)); $this->bin = substr($this->number, 0, 6); $this->last4 = substr($this->number, -4); $this->type = null; foreach (static::$cardType as $cardType => $bins) { foreach ($bins as $prefix) { if (substr($this->number, 0, strlen($prefix)) == $prefix) { if (!$validateLength || in_array(strlen($this->number), static::$cardLength[$cardType])) { $this->type = $cardType; break 2; } } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function createCreditCard(CreditCard $creditCard): CreditCard;", "public function createToken($cardinfo){\n \\Stripe\\Stripe::setApiKey($this->getApi('secret_key'));\n $token = \\Stripe\\Token::create(array(\n \"card\" => array(\n \"number\" => $cardinfo['number'],\n \"exp_month\" => $cardinfo['exp_month'],\n \"exp_year\" => $cardinfo['exp_year'],\n \"cvc\" => $cardinfo['cvc']\n )\n ));\n $this->_token = $token; \n $this->_card = $token->card;\n return $token->card->id;\n }", "public static function creditCardNumber()\n {\n return new PartialMatchNode('credit_card_number');\n }", "public function generateCreditCardInfo() {\n $ret = [\"CreditCardInfo\" => []];\n $ret[\"CreditCardInfo\"][] = [\"cardNumber\" => $this->creditCardNo];\n $ret[\"CreditCardInfo\"][] = [\"expiryDate\" => $this->getFormattedExpiryDate()];\n if ($this->cvv != null)\n $ret[\"CreditCardInfo\"][] = [\"cvv\" => $this->cvv];\n return $ret;\n }", "function CCValidationSolution($Number) {\r\n global $CardName, $CardNumber, $language;\r\n\r\n require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CCVAL_FUNCTION); \r\n\r\n\r\n// Get rid of spaces and non-numeric characters.\r\n $Number = OnlyNumericSolution($Number);\r\n\r\n// Do the first four digits fit within proper ranges? If so, who's the card issuer and how long should the number be?\r\n $NumberLeft = substr($Number, 0, 4);\r\n $NumberLength = strlen($Number);\r\n\r\n if ( ($NumberLeft >= 3000) && ($NumberLeft <= 3059) ) {\r\n $CardName = 'Diners Club';\r\n $ShouldLength = 14;\r\n } elseif ( ($NumberLeft >= 3600) && ($NumberLeft <= 3699) ) {\r\n $CardName = 'Diners Club';\r\n $ShouldLength = 14;\r\n } elseif ( ($NumberLeft >= 3800) && ($NumberLeft <= 3889) ) {\r\n $CardName = 'Diners Club';\r\n $ShouldLength = 14;\r\n } elseif ( ($NumberLeft >= 3400) && ($NumberLeft <= 3499) ) {\r\n $CardName = 'American Express';\r\n $ShouldLength = 15;\r\n } elseif ( ($NumberLeft >= 3700) && ($NumberLeft <= 3799) ) {\r\n $CardName = 'American Express';\r\n $ShouldLength = 15;\r\n } elseif ( ($NumberLeft >= 3528) && ($NumberLeft <= 3589) ) {\r\n $CardName = 'JCB';\r\n $ShouldLength = 16;\r\n } elseif ( ($NumberLeft >= 3890) && ($NumberLeft <= 3899) ) {\r\n $CardName = 'Carte Blache';\r\n $ShouldLength = 14;\r\n } elseif ( ($NumberLeft >= 4000) && ($NumberLeft <= 4999) ) {\r\n $CardName = 'Visa';\r\n if ($NumberLength > 14) {\r\n $ShouldLength = 16;\r\n } elseif ($NumberLength < 14) {\r\n $ShouldLength = 13;\r\n }\r\n } elseif ( ($NumberLeft >= 5100) && ($NumberLeft <= 5599) ) {\r\n $CardName = 'MasterCard';\r\n $ShouldLength = 16;\r\n } elseif ($NumberLeft == 5610) {\r\n $CardName = 'Australian BankCard';\r\n $ShouldLength = 16;\r\n } elseif ($NumberLeft == 6011) {\r\n $CardName = 'Discover/Novus';\r\n $ShouldLength = 16;\r\n } else {\r\n $cc_val = sprintf(TEXT_CCVAL_ERROR_UNKNOWN_CARD, $NumberLeft);\r\n return $cc_val;\r\n }\r\n\r\n// Is the number the right length?\r\n if ($NumberLength <> $ShouldLength) {\r\n $Missing = $NumberLength - $ShouldLength;\r\n if ($Missing < 0) {\r\n $cc_val = sprintf(TEXT_CCVAL_ERROR_INVALID_NUMBER, $CardName, $Number);\r\n } else {\r\n $cc_val = sprintf(TEXT_CCVAL_ERROR_INVALID_NUMBER, $CardName, $Number);\r\n }\r\n\r\n return $cc_val;\r\n }\r\n\r\n// Does the number pass the Mod 10 Algorithm Checksum?\r\n if (Mod10Solution($Number)) {\r\n $CardNumber = $Number;\r\n return true;\r\n } else {\r\n $cc_val = sprintf(TEXT_CCVAL_ERROR_INVALID_NUMBER, $CardName, $Number);\r\n return $cc_val;\r\n }\r\n }", "function getCardCode12($card_no) {\n\n$code = strtoupper(str_replace('0', 'O', base_convert(md5(microtime().$card_no.'random pepper32490238590435657'), 16, 36)));\nreturn substr($code, 0, 3).\"-\".substr($code, 3, 3).\"-\".substr($code, 6, 3).\"-\".substr($code, 9, 3);\n}", "public function creditCardPayment()\n {\n }", "public function generateCardObj($transaction)\n {\n return new CreditCard($transaction);\n }", "public function CreditCard($name, $number, $exp_month, $exp_year, $security_code = FALSE) {\n\t\t$number = str_replace(' ','',$number);\n\t\t$number = trim($number);\n\n\t\t$this->Param('name', $name, 'credit_card');\n\t\t$this->Param('card_num', $number, 'credit_card');\n\t\t$this->Param('exp_month', $exp_month, 'credit_card');\n\t\t$this->Param('exp_year', $exp_year, 'credit_card');\n\t\tif($security_code) {\n\t\t\t$this->Param('cvv', $security_code, 'credit_card');\n\t\t}\n\n\t\treturn true;\n\t}", "public function CreditCard($name, $number, $exp_month, $exp_year, $security_code = FALSE) {\n\t\t$number = str_replace(' ','',$number);\n\t\t$number = trim($number);\n\n\t\t$this->Param('name', $name, 'credit_card');\n\t\t$this->Param('card_num', $number, 'credit_card');\n\t\t$this->Param('exp_month', $exp_month, 'credit_card');\n\t\t$this->Param('exp_year', $exp_year, 'credit_card');\n\t\tif($security_code) {\n\t\t\t$this->Param('cvv', $security_code, 'credit_card');\n\t\t}\n\n\t\treturn true;\n\t}", "public function __construct() {\n $this->regex = '/^';\n foreach (CreditCardValidator::$card_patterns as $card => $regex)\n $this->regex .= '(' . $regex . ')|';\n $this->regex .= '$/';\n // remove final pipe\n $this->regex = str_replace(')|$/', ')$/', $this->regex);\n $this->invalid_msg = 'is not a valid CreditCard number';\n }", "public function __construct($cardNo)\n {\n $this->cardNo = $cardNo;\n }", "function insert_creditcard($form = array(), $userid = 0)\n {\n global $ilance, $ilconfig, $phrase, $ilpage;\n $form['number_encrypted'] = $ilance->crypt->three_layer_encrypt($form['number'], $ilconfig['key1'], $ilconfig['key2'], $ilconfig['key3']);\n $form['authorized'] = 'yes';\n $form['creditcard_status'] = 'active';\n $form['default_card'] = 'yes';\n if ($ilconfig['creditcard_authentication'])\n {\n $form['authorized'] = 'no';\n }\n $ilance->db->query(\"\n INSERT INTO \" . DB_PREFIX . \"creditcards\n (cc_id, date_added, date_updated, user_id, creditcard_number, creditcard_expiry, cvv2, name_on_card, phone_of_cardowner, email_of_cardowner, card_billing_address1, card_billing_address2, card_city, card_state, card_postalzip, card_country, creditcard_status, default_card, creditcard_type, authorized) \n VALUES(\n NULL,\n '\" . DATETIME24H . \"',\n '\" . DATETIME24H . \"',\n '\" . intval($userid) . \"',\n '\" . $ilance->db->escape_string($form['number_encrypted']) . \"',\n '\" . $ilance->db->escape_string($form['expmon'] . $form['expyear']) . \"',\n '\" . intval($form['cvv2']) . \"',\n '\" . $ilance->db->escape_string($form['first_name'] . \" \" . $form['last_name']) . \"',\n '\" . $ilance->db->escape_string($form['phone']) . \"',\n '\" . $ilance->db->escape_string($form['email']) . \"',\n '\" . $ilance->db->escape_string($form['address1']) . \"',\n '\" . $ilance->db->escape_string($form['address2']) . \"',\n '\" . $ilance->db->escape_string($form['city']) . \"',\n '\" . $ilance->db->escape_string($form['state']) . \"',\n '\" . $ilance->db->escape_string($form['postalzip']) . \"',\n '\" . $ilance->db->escape_string($form['countryid']) . \"',\n '\" . $ilance->db->escape_string($form['creditcard_status']) . \"',\n '\" . $ilance->db->escape_string($form['default_card']) . \"',\n '\" . $ilance->db->escape_string($form['type']) . \"',\n '\" . $ilance->db->escape_string($form['authorized']) . \"')\n \", 0, null, __FILE__, __LINE__);\n $cc_id = $ilance->db->insert_id(); \n $ilance->email->mail = fetch_user('email', $userid);\n $ilance->email->slng = fetch_user_slng(intval($userid));\n $ilance->email->get('member_added_new_card');\t\t\n $ilance->email->set(array(\n '{{username}}' => fetch_user('username', intval($userid)),\n ));\n $ilance->email->send();\n $ilance->email->mail = SITE_EMAIL;\n $ilance->email->slng = fetch_site_slng();\n $ilance->email->get('member_added_new_card_admin');\t\t\n $ilance->email->set(array(\n '{{username}}' => fetch_user('username', intval($userid)),\n ));\n $ilance->email->send();\n $ilance->db->query(\"\n UPDATE \" . DB_PREFIX . \"subscription_user\n SET paymethod = 'account'\n WHERE user_id = '\" . intval($userid) . \"'\n \", 0, null, __FILE__, __LINE__);\n return true;\n }", "private function createCreditCard($credit_card_details)\n {\n $creditCard = new CreditCardType();\n $creditCard->setCardNumber($credit_card_details->getCardNumber());\n $creditCard->setExpirationDate(\"XXXX\");\n $this->payment_data = new PaymentType();\n $this->payment_data->setCreditCard($creditCard);\n\n return true;\n }", "function InfAddCreditCard($inf_contact_id, $CardNumber, $ExpirationMonth, $ExpirationYear, $CVV2, $BillName, $BillAddress1, $BillCity, $BillState, $BillZip, $BillCountry) {\n\n\t$credit_card = new Infusionsoft_CreditCard();\n\t$credit_card->ContactId = $inf_contact_id;\n\t$credit_card->CardNumber = $CardNumber;\n\t$credit_card->CVV2 = $CVV2;\n\t$credit_card->CardType = WriteCardType($CardNumber);\n#\t$credit_card->Status = 3; //0: Unknown, 1: Invalid, 2: Deleted, 3: Valid/Good, 4: Inactive\n\t$credit_card->ExpirationMonth = $ExpirationMonth;\n\t$credit_card->ExpirationYear = $ExpirationYear;\n\t$credit_card->BillName = $BillName;\n\t$credit_card->BillAddress1 = $BillAddress1;\n\t$credit_card->BillCity = $BillCity;\n\t$credit_card->BillState = $BillState;\n\t$credit_card->BillZip = $BillZip;\n\t$credit_card->BillCountry = $BillCountry;\n\t\n\t# Return card id\n\treturn $credit_card->save();\n}", "function new_token_create($billing_first_name,$billing_last_name,$card_no,$month,$year,$cvc,$billing_city,$billing_country,$billing_address_1,$billing_address_2,$billing_state,$billing_email)\n {\n \t\n \ttry {\n \t $token= \\Stripe\\Token::create(array(\n \t\t \"card\" => array(\n\t \"name\" => $billing_first_name. \" \" .$billing_last_name,\n \t\t \"number\" => $card_no,\n \t\t \"exp_month\" => $month,\n \t\t \"exp_year\" => $year,\n \t \"cvc\" => $cvc,\n \t \"address_city\"=> $billing_city,\n \"address_country\"=> $billing_country,\n \"address_line1\"=> $billing_address_1,\n \"address_line2\"=> $billing_address_2,\n \"address_state\"=> $billing_state,\n \t\t \"metadata\" => array(\"customer_email\" => $billing_email),\n \t\t )\n\t\t ));\n\n\t\t} catch(\\Stripe\\Exception\\CardException $e) {\n \n echo 'Status is:' . $e->getHttpStatus() . '\\n';\n echo 'Type is:' . $e->getError()->type . '\\n';\n echo 'Code is:' . $e->getError()->code . '\\n';\n \n echo 'Param is:' . $e->getError()->param . '\\n';\n echo 'Message is:' . $e->getError()->message . '\\n';\n } catch (\\Stripe\\Exception\\RateLimitException $e) {\n \n } catch (\\Stripe\\Exception\\InvalidRequestException $e) {\n \n } catch (\\Stripe\\Exception\\AuthenticationException $e) {\n \n } catch (\\Stripe\\Exception\\ApiConnectionException $e) {\n \n } catch (\\Stripe\\Exception\\ApiErrorException $e) {\n\n } catch (Exception $e) {\n \techo $e;\n \n } \n return $token; \n\t}", "public function setCreditCard(\n $number,\n $expirationMonth,\n $expirationYear,\n $holder_name\n )\n {\n $this->data->credit_card = new stdClass();\n $this->data->credit_card->number = $number;\n $this->data->credit_card->holder_name = $holder_name;\n $this->data->credit_card->expiration_month = $expirationMonth;\n $this->data->credit_card->expiration_year = $expirationYear;\n\n return $this;\n }", "public function getCreditCardToken($number, $month, $year, $cvv = null, $identity = null)\n {\n // TODO: Implement getCreditCardToken() method.\n }", "public function creditCardProvider()\n\t{\n\t\treturn [\n\t\t\t'null_test' => [\n\t\t\t\t'amex',\n\t\t\t\tnull,\n\t\t\t\tfalse,\n\t\t\t],\n\t\t\t'random_test' => [\n\t\t\t\t'amex',\n\t\t\t\t$this->generateCardNum('37', 16),\n\t\t\t\tfalse,\n\t\t\t],\n\t\t\t'invalid_type' => [\n\t\t\t\t'shorty',\n\t\t\t\t'1111 1111 1111 1111',\n\t\t\t\tfalse,\n\t\t\t],\n\t\t\t'invalid_length' => [\n\t\t\t\t'amex',\n\t\t\t\t'',\n\t\t\t\tfalse,\n\t\t\t],\n\t\t\t'not_numeric' => [\n\t\t\t\t'amex',\n\t\t\t\t'abcd efgh ijkl mnop',\n\t\t\t\tfalse,\n\t\t\t],\n\t\t\t'bad_length' => [\n\t\t\t\t'amex',\n\t\t\t\t'3782 8224 6310 0051',\n\t\t\t\tfalse,\n\t\t\t],\n\t\t\t'bad_prefix' => [\n\t\t\t\t'amex',\n\t\t\t\t'3582 8224 6310 0051',\n\t\t\t\tfalse,\n\t\t\t],\n\t\t\t'amex1' => [\n\t\t\t\t'amex',\n\t\t\t\t'3782 8224 6310 005',\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'amex2' => [\n\t\t\t\t'amex',\n\t\t\t\t'3714 4963 5398 431',\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'dinersclub1' => [\n\t\t\t\t'dinersclub',\n\t\t\t\t'3056 9309 0259 04',\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'dinersculb2' => [\n\t\t\t\t'dinersclub',\n\t\t\t\t'3852 0000 0232 37',\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'discover1' => [\n\t\t\t\t'discover',\n\t\t\t\t'6011 1111 1111 1117',\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'discover2' => [\n\t\t\t\t'discover',\n\t\t\t\t'6011 0009 9013 9424',\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'jcb1' => [\n\t\t\t\t'jcb',\n\t\t\t\t'3530 1113 3330 0000',\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'jcb2' => [\n\t\t\t\t'jcb',\n\t\t\t\t'3566 0020 2036 0505',\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'mastercard1' => [\n\t\t\t\t'mastercard',\n\t\t\t\t'5555 5555 5555 4444',\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'mastercard2' => [\n\t\t\t\t'mastercard',\n\t\t\t\t'5105 1051 0510 5100',\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'visa1' => [\n\t\t\t\t'visa',\n\t\t\t\t'4111 1111 1111 1111',\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'visa2' => [\n\t\t\t\t'visa',\n\t\t\t\t'4012 8888 8888 1881',\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'visa3' => [\n\t\t\t\t'visa',\n\t\t\t\t'4222 2222 2222 2',\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'dankort1' => [\n\t\t\t\t'dankort',\n\t\t\t\t'5019 7170 1010 3742',\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'unionpay1' => [\n\t\t\t\t'unionpay',\n\t\t\t\t$this->generateCardNum(62, 16),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'unionpay2' => [\n\t\t\t\t'unionpay',\n\t\t\t\t$this->generateCardNum(62, 17),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'unionpay3' => [\n\t\t\t\t'unionpay',\n\t\t\t\t$this->generateCardNum(62, 18),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'unionpay4' => [\n\t\t\t\t'unionpay',\n\t\t\t\t$this->generateCardNum(62, 19),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'unionpay5' => [\n\t\t\t\t'unionpay',\n\t\t\t\t$this->generateCardNum(63, 19),\n\t\t\t\tfalse,\n\t\t\t],\n\t\t\t'carteblanche1' => [\n\t\t\t\t'carteblanche',\n\t\t\t\t$this->generateCardNum(300, 14),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'carteblanche2' => [\n\t\t\t\t'carteblanche',\n\t\t\t\t$this->generateCardNum(301, 14),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'carteblanche3' => [\n\t\t\t\t'carteblanche',\n\t\t\t\t$this->generateCardNum(302, 14),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'carteblanche4' => [\n\t\t\t\t'carteblanche',\n\t\t\t\t$this->generateCardNum(303, 14),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'carteblanche5' => [\n\t\t\t\t'carteblanche',\n\t\t\t\t$this->generateCardNum(304, 14),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'carteblanche6' => [\n\t\t\t\t'carteblanche',\n\t\t\t\t$this->generateCardNum(305, 14),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'carteblanche7' => [\n\t\t\t\t'carteblanche',\n\t\t\t\t$this->generateCardNum(306, 14),\n\t\t\t\tfalse,\n\t\t\t],\n\t\t\t'dinersclub3' => [\n\t\t\t\t'dinersclub',\n\t\t\t\t$this->generateCardNum(300, 14),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'dinersclub4' => [\n\t\t\t\t'dinersclub',\n\t\t\t\t$this->generateCardNum(301, 14),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'dinersclub5' => [\n\t\t\t\t'dinersclub',\n\t\t\t\t$this->generateCardNum(302, 14),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'dinersclub6' => [\n\t\t\t\t'dinersclub',\n\t\t\t\t$this->generateCardNum(303, 14),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'dinersclub7' => [\n\t\t\t\t'dinersclub',\n\t\t\t\t$this->generateCardNum(304, 14),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'dinersclub8' => [\n\t\t\t\t'dinersclub',\n\t\t\t\t$this->generateCardNum(305, 14),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'dinersclub9' => [\n\t\t\t\t'dinersclub',\n\t\t\t\t$this->generateCardNum(309, 14),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'dinersclub10' => [\n\t\t\t\t'dinersclub',\n\t\t\t\t$this->generateCardNum(36, 14),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'dinersclub11' => [\n\t\t\t\t'dinersclub',\n\t\t\t\t$this->generateCardNum(38, 14),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'dinersclub12' => [\n\t\t\t\t'dinersclub',\n\t\t\t\t$this->generateCardNum(39, 14),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'dinersclub13' => [\n\t\t\t\t'dinersclub',\n\t\t\t\t$this->generateCardNum(54, 14),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'dinersclub14' => [\n\t\t\t\t'dinersclub',\n\t\t\t\t$this->generateCardNum(55, 14),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'dinersclub15' => [\n\t\t\t\t'dinersclub',\n\t\t\t\t$this->generateCardNum(300, 16),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'dinersclub16' => [\n\t\t\t\t'dinersclub',\n\t\t\t\t$this->generateCardNum(301, 16),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'dinersclub17' => [\n\t\t\t\t'dinersclub',\n\t\t\t\t$this->generateCardNum(302, 16),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'dinersclub18' => [\n\t\t\t\t'dinersclub',\n\t\t\t\t$this->generateCardNum(303, 16),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'dinersclub19' => [\n\t\t\t\t'dinersclub',\n\t\t\t\t$this->generateCardNum(304, 16),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'dinersclub20' => [\n\t\t\t\t'dinersclub',\n\t\t\t\t$this->generateCardNum(305, 16),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'dinersclub21' => [\n\t\t\t\t'dinersclub',\n\t\t\t\t$this->generateCardNum(309, 16),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'dinersclub22' => [\n\t\t\t\t'dinersclub',\n\t\t\t\t$this->generateCardNum(36, 16),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'dinersclub23' => [\n\t\t\t\t'dinersclub',\n\t\t\t\t$this->generateCardNum(38, 16),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'dinersclub24' => [\n\t\t\t\t'dinersclub',\n\t\t\t\t$this->generateCardNum(39, 16),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'dinersclub25' => [\n\t\t\t\t'dinersclub',\n\t\t\t\t$this->generateCardNum(54, 16),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'dinersclub26' => [\n\t\t\t\t'dinersclub',\n\t\t\t\t$this->generateCardNum(55, 16),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'discover3' => [\n\t\t\t\t'discover',\n\t\t\t\t$this->generateCardNum(6011, 16),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'discover4' => [\n\t\t\t\t'discover',\n\t\t\t\t$this->generateCardNum(622, 16),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'discover5' => [\n\t\t\t\t'discover',\n\t\t\t\t$this->generateCardNum(644, 16),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'discover6' => [\n\t\t\t\t'discover',\n\t\t\t\t$this->generateCardNum(645, 16),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'discover7' => [\n\t\t\t\t'discover',\n\t\t\t\t$this->generateCardNum(656, 16),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'discover8' => [\n\t\t\t\t'discover',\n\t\t\t\t$this->generateCardNum(647, 16),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'discover9' => [\n\t\t\t\t'discover',\n\t\t\t\t$this->generateCardNum(648, 16),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'discover10' => [\n\t\t\t\t'discover',\n\t\t\t\t$this->generateCardNum(649, 16),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'discover11' => [\n\t\t\t\t'discover',\n\t\t\t\t$this->generateCardNum(65, 16),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'discover12' => [\n\t\t\t\t'discover',\n\t\t\t\t$this->generateCardNum(6011, 19),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'discover13' => [\n\t\t\t\t'discover',\n\t\t\t\t$this->generateCardNum(622, 19),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'discover14' => [\n\t\t\t\t'discover',\n\t\t\t\t$this->generateCardNum(644, 19),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'discover15' => [\n\t\t\t\t'discover',\n\t\t\t\t$this->generateCardNum(645, 19),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'discover16' => [\n\t\t\t\t'discover',\n\t\t\t\t$this->generateCardNum(656, 19),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'discover17' => [\n\t\t\t\t'discover',\n\t\t\t\t$this->generateCardNum(647, 19),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'discover18' => [\n\t\t\t\t'discover',\n\t\t\t\t$this->generateCardNum(648, 19),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'discover19' => [\n\t\t\t\t'discover',\n\t\t\t\t$this->generateCardNum(649, 19),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'discover20' => [\n\t\t\t\t'discover',\n\t\t\t\t$this->generateCardNum(65, 19),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'interpayment1' => [\n\t\t\t\t'interpayment',\n\t\t\t\t$this->generateCardNum(4, 16),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'interpayment2' => [\n\t\t\t\t'interpayment',\n\t\t\t\t$this->generateCardNum(4, 17),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'interpayment3' => [\n\t\t\t\t'interpayment',\n\t\t\t\t$this->generateCardNum(4, 18),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'interpayment4' => [\n\t\t\t\t'interpayment',\n\t\t\t\t$this->generateCardNum(4, 19),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'jcb1' => [\n\t\t\t\t'jcb',\n\t\t\t\t$this->generateCardNum(352, 16),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'jcb2' => [\n\t\t\t\t'jcb',\n\t\t\t\t$this->generateCardNum(353, 16),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'jcb3' => [\n\t\t\t\t'jcb',\n\t\t\t\t$this->generateCardNum(354, 16),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'jcb4' => [\n\t\t\t\t'jcb',\n\t\t\t\t$this->generateCardNum(355, 16),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'jcb5' => [\n\t\t\t\t'jcb',\n\t\t\t\t$this->generateCardNum(356, 16),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'jcb6' => [\n\t\t\t\t'jcb',\n\t\t\t\t$this->generateCardNum(357, 16),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'jcb7' => [\n\t\t\t\t'jcb',\n\t\t\t\t$this->generateCardNum(358, 16),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'maestro1' => [\n\t\t\t\t'maestro',\n\t\t\t\t$this->generateCardNum(50, 12),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'maestro2' => [\n\t\t\t\t'maestro',\n\t\t\t\t$this->generateCardNum(56, 12),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'maestro3' => [\n\t\t\t\t'maestro',\n\t\t\t\t$this->generateCardNum(57, 12),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'maestro4' => [\n\t\t\t\t'maestro',\n\t\t\t\t$this->generateCardNum(58, 12),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'maestro5' => [\n\t\t\t\t'maestro',\n\t\t\t\t$this->generateCardNum(59, 12),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'maestro6' => [\n\t\t\t\t'maestro',\n\t\t\t\t$this->generateCardNum(60, 12),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'maestro7' => [\n\t\t\t\t'maestro',\n\t\t\t\t$this->generateCardNum(61, 12),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'maestro8' => [\n\t\t\t\t'maestro',\n\t\t\t\t$this->generateCardNum(62, 12),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'maestro9' => [\n\t\t\t\t'maestro',\n\t\t\t\t$this->generateCardNum(63, 12),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'maestro10' => [\n\t\t\t\t'maestro',\n\t\t\t\t$this->generateCardNum(64, 12),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'maestro11' => [\n\t\t\t\t'maestro',\n\t\t\t\t$this->generateCardNum(65, 12),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'maestro12' => [\n\t\t\t\t'maestro',\n\t\t\t\t$this->generateCardNum(66, 12),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'maestro13' => [\n\t\t\t\t'maestro',\n\t\t\t\t$this->generateCardNum(67, 12),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'maestro14' => [\n\t\t\t\t'maestro',\n\t\t\t\t$this->generateCardNum(68, 12),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'maestro15' => [\n\t\t\t\t'maestro',\n\t\t\t\t$this->generateCardNum(69, 12),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'maestro16' => [\n\t\t\t\t'maestro',\n\t\t\t\t$this->generateCardNum(50, 13),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'maestro17' => [\n\t\t\t\t'maestro',\n\t\t\t\t$this->generateCardNum(56, 13),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'maestro18' => [\n\t\t\t\t'maestro',\n\t\t\t\t$this->generateCardNum(57, 13),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'maestro19' => [\n\t\t\t\t'maestro',\n\t\t\t\t$this->generateCardNum(58, 13),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'maestro20' => [\n\t\t\t\t'maestro',\n\t\t\t\t$this->generateCardNum(59, 13),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'maestro21' => [\n\t\t\t\t'maestro',\n\t\t\t\t$this->generateCardNum(60, 13),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'maestro22' => [\n\t\t\t\t'maestro',\n\t\t\t\t$this->generateCardNum(61, 13),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'maestro23' => [\n\t\t\t\t'maestro',\n\t\t\t\t$this->generateCardNum(62, 13),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'maestro24' => [\n\t\t\t\t'maestro',\n\t\t\t\t$this->generateCardNum(63, 13),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'maestro25' => [\n\t\t\t\t'maestro',\n\t\t\t\t$this->generateCardNum(64, 13),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'maestro26' => [\n\t\t\t\t'maestro',\n\t\t\t\t$this->generateCardNum(65, 13),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'maestro27' => [\n\t\t\t\t'maestro',\n\t\t\t\t$this->generateCardNum(66, 13),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'maestro28' => [\n\t\t\t\t'maestro',\n\t\t\t\t$this->generateCardNum(67, 13),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'maestro29' => [\n\t\t\t\t'maestro',\n\t\t\t\t$this->generateCardNum(68, 13),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'maestro30' => [\n\t\t\t\t'maestro',\n\t\t\t\t$this->generateCardNum(69, 13),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'maestro31' => [\n\t\t\t\t'maestro',\n\t\t\t\t$this->generateCardNum(50, 14),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'maestro32' => [\n\t\t\t\t'maestro',\n\t\t\t\t$this->generateCardNum(56, 14),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'maestro33' => [\n\t\t\t\t'maestro',\n\t\t\t\t$this->generateCardNum(57, 14),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'maestro34' => [\n\t\t\t\t'maestro',\n\t\t\t\t$this->generateCardNum(58, 14),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'maestro35' => [\n\t\t\t\t'maestro',\n\t\t\t\t$this->generateCardNum(59, 14),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'maestro36' => [\n\t\t\t\t'maestro',\n\t\t\t\t$this->generateCardNum(60, 14),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'maestro37' => [\n\t\t\t\t'maestro',\n\t\t\t\t$this->generateCardNum(61, 14),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'maestro38' => [\n\t\t\t\t'maestro',\n\t\t\t\t$this->generateCardNum(62, 14),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'maestro39' => [\n\t\t\t\t'maestro',\n\t\t\t\t$this->generateCardNum(63, 14),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'maestro40' => [\n\t\t\t\t'maestro',\n\t\t\t\t$this->generateCardNum(64, 14),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'maestro41' => [\n\t\t\t\t'maestro',\n\t\t\t\t$this->generateCardNum(65, 14),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'maestro42' => [\n\t\t\t\t'maestro',\n\t\t\t\t$this->generateCardNum(66, 14),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'maestro43' => [\n\t\t\t\t'maestro',\n\t\t\t\t$this->generateCardNum(67, 14),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'maestro44' => [\n\t\t\t\t'maestro',\n\t\t\t\t$this->generateCardNum(68, 14),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'maestro45' => [\n\t\t\t\t'maestro',\n\t\t\t\t$this->generateCardNum(69, 14),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'maestro46' => [\n\t\t\t\t'maestro',\n\t\t\t\t$this->generateCardNum(50, 15),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'maestro47' => [\n\t\t\t\t'maestro',\n\t\t\t\t$this->generateCardNum(56, 15),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'maestro48' => [\n\t\t\t\t'maestro',\n\t\t\t\t$this->generateCardNum(57, 15),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'maestro49' => [\n\t\t\t\t'maestro',\n\t\t\t\t$this->generateCardNum(58, 15),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'maestro50' => [\n\t\t\t\t'maestro',\n\t\t\t\t$this->generateCardNum(59, 15),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'maestro51' => [\n\t\t\t\t'maestro',\n\t\t\t\t$this->generateCardNum(60, 15),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'maestro52' => [\n\t\t\t\t'maestro',\n\t\t\t\t$this->generateCardNum(61, 15),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'maestro53' => [\n\t\t\t\t'maestro',\n\t\t\t\t$this->generateCardNum(62, 15),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'maestro54' => [\n\t\t\t\t'maestro',\n\t\t\t\t$this->generateCardNum(63, 15),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'maestro55' => [\n\t\t\t\t'maestro',\n\t\t\t\t$this->generateCardNum(64, 15),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'maestro56' => [\n\t\t\t\t'maestro',\n\t\t\t\t$this->generateCardNum(65, 15),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'maestro57' => [\n\t\t\t\t'maestro',\n\t\t\t\t$this->generateCardNum(66, 15),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'maestro58' => [\n\t\t\t\t'maestro',\n\t\t\t\t$this->generateCardNum(67, 15),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'maestro59' => [\n\t\t\t\t'maestro',\n\t\t\t\t$this->generateCardNum(68, 15),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'maestro60' => [\n\t\t\t\t'maestro',\n\t\t\t\t$this->generateCardNum(69, 15),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'maestro61' => [\n\t\t\t\t'maestro',\n\t\t\t\t$this->generateCardNum(50, 16),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'maestro62' => [\n\t\t\t\t'maestro',\n\t\t\t\t$this->generateCardNum(56, 16),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'maestro63' => [\n\t\t\t\t'maestro',\n\t\t\t\t$this->generateCardNum(57, 16),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'maestro64' => [\n\t\t\t\t'maestro',\n\t\t\t\t$this->generateCardNum(58, 16),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'maestro65' => [\n\t\t\t\t'maestro',\n\t\t\t\t$this->generateCardNum(59, 16),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'maestro66' => [\n\t\t\t\t'maestro',\n\t\t\t\t$this->generateCardNum(60, 16),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'maestro67' => [\n\t\t\t\t'maestro',\n\t\t\t\t$this->generateCardNum(61, 16),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'maestro68' => [\n\t\t\t\t'maestro',\n\t\t\t\t$this->generateCardNum(62, 16),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'maestro69' => [\n\t\t\t\t'maestro',\n\t\t\t\t$this->generateCardNum(63, 16),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'maestro70' => [\n\t\t\t\t'maestro',\n\t\t\t\t$this->generateCardNum(64, 16),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'maestro71' => [\n\t\t\t\t'maestro',\n\t\t\t\t$this->generateCardNum(65, 16),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'maestro72' => [\n\t\t\t\t'maestro',\n\t\t\t\t$this->generateCardNum(66, 16),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'maestro73' => [\n\t\t\t\t'maestro',\n\t\t\t\t$this->generateCardNum(67, 16),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'maestro74' => [\n\t\t\t\t'maestro',\n\t\t\t\t$this->generateCardNum(68, 16),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'maestro75' => [\n\t\t\t\t'maestro',\n\t\t\t\t$this->generateCardNum(69, 16),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'maestro91' => [\n\t\t\t\t'maestro',\n\t\t\t\t$this->generateCardNum(50, 18),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'maestro92' => [\n\t\t\t\t'maestro',\n\t\t\t\t$this->generateCardNum(56, 18),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'maestro93' => [\n\t\t\t\t'maestro',\n\t\t\t\t$this->generateCardNum(57, 18),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'maestro94' => [\n\t\t\t\t'maestro',\n\t\t\t\t$this->generateCardNum(58, 18),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'maestro95' => [\n\t\t\t\t'maestro',\n\t\t\t\t$this->generateCardNum(59, 18),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'maestro96' => [\n\t\t\t\t'maestro',\n\t\t\t\t$this->generateCardNum(60, 18),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'maestro97' => [\n\t\t\t\t'maestro',\n\t\t\t\t$this->generateCardNum(61, 18),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'maestro98' => [\n\t\t\t\t'maestro',\n\t\t\t\t$this->generateCardNum(62, 18),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'maestro99' => [\n\t\t\t\t'maestro',\n\t\t\t\t$this->generateCardNum(63, 18),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'maestro100' => [\n\t\t\t\t'maestro',\n\t\t\t\t$this->generateCardNum(64, 18),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'maestro101' => [\n\t\t\t\t'maestro',\n\t\t\t\t$this->generateCardNum(65, 18),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'maestro102' => [\n\t\t\t\t'maestro',\n\t\t\t\t$this->generateCardNum(66, 18),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'maestro103' => [\n\t\t\t\t'maestro',\n\t\t\t\t$this->generateCardNum(67, 18),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'maestro104' => [\n\t\t\t\t'maestro',\n\t\t\t\t$this->generateCardNum(68, 18),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'maestro105' => [\n\t\t\t\t'maestro',\n\t\t\t\t$this->generateCardNum(69, 18),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'maestro106' => [\n\t\t\t\t'maestro',\n\t\t\t\t$this->generateCardNum(50, 19),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'maestro107' => [\n\t\t\t\t'maestro',\n\t\t\t\t$this->generateCardNum(56, 19),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'maestro108' => [\n\t\t\t\t'maestro',\n\t\t\t\t$this->generateCardNum(57, 19),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'maestro109' => [\n\t\t\t\t'maestro',\n\t\t\t\t$this->generateCardNum(58, 19),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'maestro110' => [\n\t\t\t\t'maestro',\n\t\t\t\t$this->generateCardNum(59, 19),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'maestro111' => [\n\t\t\t\t'maestro',\n\t\t\t\t$this->generateCardNum(60, 19),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'maestro112' => [\n\t\t\t\t'maestro',\n\t\t\t\t$this->generateCardNum(61, 19),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'maestro113' => [\n\t\t\t\t'maestro',\n\t\t\t\t$this->generateCardNum(62, 19),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'maestro114' => [\n\t\t\t\t'maestro',\n\t\t\t\t$this->generateCardNum(63, 19),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'maestro115' => [\n\t\t\t\t'maestro',\n\t\t\t\t$this->generateCardNum(64, 19),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'maestro116' => [\n\t\t\t\t'maestro',\n\t\t\t\t$this->generateCardNum(65, 19),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'maestro117' => [\n\t\t\t\t'maestro',\n\t\t\t\t$this->generateCardNum(66, 19),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'maestro118' => [\n\t\t\t\t'maestro',\n\t\t\t\t$this->generateCardNum(67, 19),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'maestro119' => [\n\t\t\t\t'maestro',\n\t\t\t\t$this->generateCardNum(68, 19),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'maestro120' => [\n\t\t\t\t'maestro',\n\t\t\t\t$this->generateCardNum(69, 19),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'dankort1' => [\n\t\t\t\t'dankort',\n\t\t\t\t$this->generateCardNum(5019, 16),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'dankort2' => [\n\t\t\t\t'dankort',\n\t\t\t\t$this->generateCardNum(4175, 16),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'dankort3' => [\n\t\t\t\t'dankort',\n\t\t\t\t$this->generateCardNum(4571, 16),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'dankort4' => [\n\t\t\t\t'dankort',\n\t\t\t\t$this->generateCardNum(4, 16),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'mir1' => [\n\t\t\t\t'mir',\n\t\t\t\t$this->generateCardNum(2200, 16),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'mir2' => [\n\t\t\t\t'mir',\n\t\t\t\t$this->generateCardNum(2201, 16),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'mir3' => [\n\t\t\t\t'mir',\n\t\t\t\t$this->generateCardNum(2202, 16),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'mir4' => [\n\t\t\t\t'mir',\n\t\t\t\t$this->generateCardNum(2203, 16),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'mir5' => [\n\t\t\t\t'mir',\n\t\t\t\t$this->generateCardNum(2204, 16),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'mastercard1' => [\n\t\t\t\t'mastercard',\n\t\t\t\t$this->generateCardNum(51, 16),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'mastercard2' => [\n\t\t\t\t'mastercard',\n\t\t\t\t$this->generateCardNum(52, 16),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'mastercard3' => [\n\t\t\t\t'mastercard',\n\t\t\t\t$this->generateCardNum(53, 16),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'mastercard4' => [\n\t\t\t\t'mastercard',\n\t\t\t\t$this->generateCardNum(54, 16),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'mastercard5' => [\n\t\t\t\t'mastercard',\n\t\t\t\t$this->generateCardNum(55, 16),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'mastercard6' => [\n\t\t\t\t'mastercard',\n\t\t\t\t$this->generateCardNum(22, 16),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'mastercard7' => [\n\t\t\t\t'mastercard',\n\t\t\t\t$this->generateCardNum(23, 16),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'mastercard8' => [\n\t\t\t\t'mastercard',\n\t\t\t\t$this->generateCardNum(24, 16),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'mastercard9' => [\n\t\t\t\t'mastercard',\n\t\t\t\t$this->generateCardNum(25, 16),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'mastercard10' => [\n\t\t\t\t'mastercard',\n\t\t\t\t$this->generateCardNum(26, 16),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'mastercard11' => [\n\t\t\t\t'mastercard',\n\t\t\t\t$this->generateCardNum(27, 16),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'visa1' => [\n\t\t\t\t'visa',\n\t\t\t\t$this->generateCardNum(4, 13),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'visa2' => [\n\t\t\t\t'visa',\n\t\t\t\t$this->generateCardNum(4, 16),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'visa3' => [\n\t\t\t\t'visa',\n\t\t\t\t$this->generateCardNum(4, 19),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'uatp' => [\n\t\t\t\t'uatp',\n\t\t\t\t$this->generateCardNum(1, 15),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'verve1' => [\n\t\t\t\t'verve',\n\t\t\t\t$this->generateCardNum(506, 16),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'verve2' => [\n\t\t\t\t'verve',\n\t\t\t\t$this->generateCardNum(650, 16),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'verve3' => [\n\t\t\t\t'verve',\n\t\t\t\t$this->generateCardNum(506, 19),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'verve4' => [\n\t\t\t\t'verve',\n\t\t\t\t$this->generateCardNum(650, 19),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'cibc1' => [\n\t\t\t\t'cibc',\n\t\t\t\t$this->generateCardNum(4506, 16),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'rbc1' => [\n\t\t\t\t'rbc',\n\t\t\t\t$this->generateCardNum(45, 16),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'tdtrust' => [\n\t\t\t\t'tdtrust',\n\t\t\t\t$this->generateCardNum(589297, 16),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'scotia1' => [\n\t\t\t\t'scotia',\n\t\t\t\t$this->generateCardNum(4536, 16),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'bmoabm1' => [\n\t\t\t\t'bmoabm',\n\t\t\t\t$this->generateCardNum(500, 16),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'hsbc' => [\n\t\t\t\t'hsbc',\n\t\t\t\t$this->generateCardNum(56, 16),\n\t\t\t\ttrue,\n\t\t\t],\n\t\t\t'hsbc' => [\n\t\t\t\t'hsbc',\n\t\t\t\t$this->generateCardNum(57, 16),\n\t\t\t\tfalse,\n\t\t\t],\n\t\t];\n\t}", "private function creditCardPayment($data)\n {\n $creditCard = $this->createSelling(new CreditCard, $data);\n\n // Set billing information for credit card\n $creditCard->setBilling()->setAddress()->withParameters(\n 'Av. Paulista',\n '1578',\n 'Bela Vista',\n '01310-200',\n 'São Paulo',\n 'SP',\n 'BRA',\n 'Museu'\n );\n\n $creditCard->setToken($data['cardToken']);\n\n // Set the installment quantity and value (could be obtained using the Installments\n // service, that have an example here in \\public\\getInstallments.php)\n $availableInstallments = $this->getInstallments($data['cardBrand']);\n\n $choosenInstallment = Arr::where($availableInstallments, function ($installment) use ($data) {\n return $installment->getQuantity() == $data['installments'];\n });\n $choosenInstallment = Arr::first($choosenInstallment);\n\n $creditCard->setInstallment()->withParameters(\n $choosenInstallment->getQuantity(),\n $choosenInstallment->getAmount(),\n $this->noInterestInstallments\n );\n\n // Set credit card holder information\n $creditCard->setHolder()->setBirthdate('01/01/2000');\n $creditCard->setHolder()->setName($data['cardName']); // Equals in Credit Card\n $creditCard->setHolder()->setPhone()->withParameters(\n 11,\n 999999999\n );\n $creditCard->setHolder()->setDocument()->withParameters(\n 'CPF',\n '10173649076'\n );\n\n try {\n // Get the crendentials and register the boleto payment\n $result = $creditCard->register(\n Configure::getAccountCredentials()\n );\n // code\n // grossAmount\n // netAmount\n // $pagamento = Pagamentos::create();\n // $pagamento->codigo_transacao = $result->getCode();\n // $pagamento->valor = $result->getGrossAmount();\n // $pagamento->valor_pagseguro = $result->getNetAmount();\n dd($result);\n } catch (Exception $e) {\n dd($e, 'Credit Card');\n }\n }", "function cardNumber()\n\t\t{\n\t\t\techo $this->card_number;\n\t\t}", "public function setCCNumber($number = '') {\n $cc = array(\n 'x_card_num'=>$this->cleanCCNumber($number),\n );\n $this->NVP = array_merge($this->NVP, $cc); \n }", "function mapNumberToCard($num) {\n $cardValue = ($num % 13) + 1; \n $cardSuit = floor($num / 13); \n $suitStr = \"\"; \n \n switch($cardSuit) {\n case 0: \n $suitStr = \"clubs\"; \n break; \n case 1: \n $suitStr = \"diamonds\"; \n break; \n case 2: \n $suitStr = \"hearts\"; \n break; \n case 3: \n $suitStr = \"spades\"; \n break; \n }\n\n $card = array(\n 'num' => $cardValue, \n 'suit' => $cardSuit, \n 'imgURL' => \"./cards/\".$suitStr.\"/\".$cardValue.\".png\"\n ); \n \n return $card; \n }", "function get_cc_type($cardNumber)\n\t{\n\t $cardNumber = preg_replace('/\\D/', '', $cardNumber);\n\n\t // First we make sure that the credit\n\t // card number is under 15 characters\n\t // in length, otherwise it is invalid;\n\t $len = strlen($cardNumber);\n\t if ($len < 13 || $len > 19) {\n\t throw new Exception(\"Invalid credit card number: must be 14 to 18 digits.\");\n\t }\n\t else {\n\t switch($cardNumber) {\n\t case(preg_match ('/^4/', $cardNumber) >= 1):\n\t return 'VI';\n\t case(preg_match ('/^5[1-5]/', $cardNumber) >= 1):\n\t return 'MC';\n\t case(preg_match ('/^3[47]/', $cardNumber) >= 1):\n\t return 'AX';\n\t case(preg_match ('/^3(?:0[0-5]|[68])/', $cardNumber) >= 1):\n\t return 'DN';\n\t case(preg_match ('/^6(?:011|5)/', $cardNumber) >= 1):\n\t return 'DS';\n\t /*case(preg_match ('/^(?:2131|1800|35\\d{3})/', $cardNumber) >= 1):\n\t return 'JCB';\n\t case(preg_match ('/^(?:76|50)/', $cardNumber) >= 1):\n\t return 'PBS';\n\t case(preg_match ('/^(?:63)/', $cardNumber) >= 1):\n\t return 'PT';\n\t case(preg_match ('/^56/', $cardNumber) >= 1):\n\t return 'AB';*/\n\t default:\n\t throw new Exception(\"Could not determine the credit card type.\");\n\t break;\n\t }\n\t }\n\t}", "public function omise_create_card()\n\t\t{\n\t\t\t$token = isset ( $_POST['omise_token'] ) ? wc_clean ( $_POST['omise_token'] ) : '';\n\n\t\t\tif ( empty( $token ) ) {\n\t\t\t\tOmise_Util::render_json_error( 'omise_token is required' );\n\t\t\t\tdie();\n\t\t\t}\n\n\t\t\tif ( ! wp_verify_nonce($_POST['omise_nonce'], 'omise_add_card' ) ) {\n\t\t\t\tOmise_Util::render_json_error( 'Nonce verification failure' );\n\t\t\t\tdie();\n\t\t\t}\n\n\t\t\ttry {\n\t\t\t\t$card = $this->customerCard->create($this->omise_customer_id, $token);\n\t\t\t\techo json_encode( $card );\n\t\t\t} catch( Exception $e ) {\n\t\t\t\techo json_encode( array(\n\t\t\t\t\t'object' => 'error',\n\t\t\t\t\t'message' => $e->getMessage()\n\t\t\t\t) );\n\t\t\t}\n\n\t\t\tdie();\n\t\t}", "public function getCreditCardNumber()\n {\n return $this->creditCardNumber;\n }", "function FormatCreditCard($cc)\n{\n\t$cc = str_replace(array('-',' '),'',$cc);\n\t// Get the CC Length\n\t$cc_length = strlen($cc);\n\t// Initialize the new credit card to contian the last four digits\n\t$newCreditCard = substr($cc,-4);\n\t// Walk backwards through the credit card number and add a dash after every fourth digit\n\tfor($i=$cc_length-5;$i>=0;$i--){\n\t\t// If on the fourth character add a dash\n\t\tif((($i+1)-$cc_length)%4 == 0){\n\t\t\t$newCreditCard = '-'.$newCreditCard;\n\t\t}\n\t\t// Add the current character to the new credit card\n\t\t$newCreditCard = $cc[$i].$newCreditCard;\n\t}\n\t// Return the formatted credit card number\n\treturn $newCreditCard;\n}", "function add_credit_card($contact_id,$data)\n {\n $last_4 = substr($data['CardNumber'],-4);\n $cc_id = $this->locateCard($contact_id,$last_4);\n\n if($cc_id == 0) //Doesn't Exist\n {\n //Add Card\n $cc_id = $this->dsAdd('CreditCard',$data);\n return $cc_id;\n }\n elseif($cc_id > 0)\n {\n //Check if card as same expiration date\n $card_data = $this->dsLoad('CreditCard',$cc_id,array('ExpirationMonth','ExpirationYear'));\n if(\n $card_data['ExpirationMonth'] == $data['ExpirationMonth'] &&\n $card_data['ExpirationYear'] == $data['ExpirationMonth']) {\n return $cc_id;\n }\n else\n {\n //Update CC Dates\n return $this->dsUpdate('CreditCard',$cc_id,array('ExpirationYear' => $data['ExpirationYear'],'ExpirationMonth' => $data['ExpirationMonth']));\n }\n\n\n }\n else\n {\n return FALSE;\n }\n\n }", "public function storeCreditCard($obj) {\n if($obj){\n $cc_id = CreditCard::create(array(\n 'type' => $obj-> type,\n 'number' => $obj-> number,\n 'name' => $obj-> name,\n 'expirationDate' => $obj-> expirationDate\n ))->id;\n return $cc_id;\n }\n\n }", "public function create_customer( $zipcode ){\n\t\t\t$card_holder = new HpsCardHolder();\n\t\t\t$address = new HpsAddress();\n\t\t\t$address->zip = $zipcode;\n\t\t\t$card_holder->address = $address;\n\n\t\t\treturn $card_holder;\n\t\t}" ]
[ "0.66682965", "0.65728146", "0.6474136", "0.6464663", "0.6452378", "0.6407396", "0.64025116", "0.63660157", "0.6335622", "0.6335622", "0.6206476", "0.61737734", "0.615927", "0.6124269", "0.6121705", "0.6109675", "0.60799307", "0.6073159", "0.6051181", "0.60065717", "0.60034966", "0.59804904", "0.59745777", "0.5941648", "0.5938519", "0.59013546", "0.5868012", "0.585088", "0.58340234", "0.58295524" ]
0.74029833
0
Get the last 4 digits
public function getLast4() { return $this->last4; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getNumberLastFour()\n {\n return substr($this->getNumber(), -4, 4) ?: null;\n }", "public function getLast4(): ?string\n {\n return $this->last4;\n }", "public function lastFour();", "function mswReverseTicketNumber($num) {\n return ltrim($num,'0');\n}", "public function getLast4(Order $order)\n {\n try {\n $last4Adapter = $this->paymentVerificationFactory->createPaymentLast4($order->getPayment()->getMethod());\n\n $this->logger->debug('Getting last4 using ' . get_class($last4Adapter), ['entity' => $order]);\n\n $last4 = $last4Adapter->getData($order);\n\n if (isset($last4) === false) {\n return null;\n }\n\n $last4 = preg_replace('/\\D/', '', $last4);\n\n if (!empty($last4) && strlen($last4) == 4 && is_numeric($last4)) {\n return (string) $last4;\n }\n\n return null;\n } catch (Exception $e) {\n $this->logger->error('Error fetching last4: ' . $e->getMessage(), ['entity' => $order]);\n return null;\n }\n }", "function right($value, $count){\n return substr($value, ($count*-1));\n}", "private function get_last_number() {\n\t\treturn $this->settings['last_number'];\n\t}", "function get_modul_last_id() {\n $sql = \"SELECT RIGHT(modul_id, 8)'last_number'\n FROM com_modul\n ORDER BY modul_id DESC\n LIMIT 1\";\n $query = $this->db->query($sql);\n if ($query->num_rows() > 0) {\n $result = $query->row_array();\n $query->free_result();\n // create next number\n $number = intval($result['last_number']) + 1;\n if ($number > 99999999) {\n return false;\n }\n $zero = '';\n for ($i = strlen($number); $i < 8; $i++) {\n $zero .= '0';\n }\n return $zero . $number;\n } else {\n // create new number\n return '00000001';\n }\n }", "public function last($n)\n {\n $stringy = static::create($this->str, $this->encoding);\n\n if ($n <= 0) {\n $stringy->str = '';\n } else {\n return $stringy->substr(-$n);\n }\n\n return $stringy;\n }", "public function getTheLastSevenDigitsOfThisMemberMembershipNumber($member_id){\n \n $model = new Members;\n \n return $model->getTheLastFourDigitsOfThisMemberMembershipNumber($member_id);\n \n }", "function get_nav_last_id($portal_id) {\n $sql = \"SELECT RIGHT(nav_id, 8)'last_number'\n FROM com_menu\n WHERE portal_id = ?\n ORDER BY nav_id DESC\n LIMIT 1\";\n $query = $this->db->query($sql, $portal_id);\n if ($query->num_rows() > 0) {\n $result = $query->row_array();\n $query->free_result();\n // create next number\n $number = intval($result['last_number']) + 1;\n if ($number > 99999999) {\n return false;\n }\n $zero = '';\n for ($i = strlen($number); $i < 8; $i++) {\n $zero .= '0';\n }\n return $portal_id . $zero . $number;\n } else {\n // create new number\n return $portal_id . '00000001';\n }\n }", "public static function genPhoneFormat($str) //from 0902244581 to 090-224-xxxx\n {\n $aNumbers = str_split($str);\n \n $result = '';\n $index = 0;\n for($i = count($aNumbers) - 1 ; $i >= 0; $i--)\n {\n $index++;\n \n if($index <= 4)\n {\n $result = 'x'.$result; \n if($index == 4)\n $result = '-'.$result;\n \n }else\n {\n $result = $aNumbers[$i].$result;\n if($index == 7)\n $result = '-'.$result; \n }\n }\n return $result;\n }", "private function getFlightNumber():string \n {\n // Tableau de lettre en majuscule\n $lettres = range('A', 'Z');\n // je mélange\n shuffle($lettres);\n // j'extrait le premier item du tableau\n $lettre = array_shift($lettres);\n // je recommence pour la seconde lettre\n shuffle($lettres);\n // j'extrait la seconde lettre\n $lettre .= array_shift($lettres);\n // un nombre sur 4 digit au hasard\n $nombre = mt_rand(1000, 9999);\n \n return $lettre.$nombre;\n\n }", "function minusOneFromMaxID($maxID) {\n\t//Tweet ID is stored a string. We need to subtract 1 from tweet ID in order to get all tweets lower than the last tweet. Because of the\n\t//length of the tweetID, this causes maths problems. I used this string function to subtract 1.\n\t for ($i=strlen($maxID)-1;$i>=0;$i--) {\n\t\t $currentNum=substr($maxID,$i,1) ;\n\t\t if($currentNum==0) {\n\t \t\t$maxID=substr_replace($maxID,9,$i,1);\n\t \t} else {\n\t\t \t$maxID=substr_replace($maxID,$currentNum-1,$i,1) ;\n\t\t \tbreak ;\n\t \t}\n \t}\n\treturn $maxID ;\n}", "public function setLast4(?string $last4): self\n {\n $this->last4 = $last4;\n\n return $this;\n }", "function printPhoneNum($phone){\n $phone = str_split($phone, 3);\n\n return $phone[0] . '-' . $phone[1] . '-' . $phone[2];\n}", "public static function taxpayerIdentificationNumber()\n {\n $firstEightDigits = static::numerify(static::randomElement(static::$firstEightDigitsFormat));\n $lastDigit = static::dvCalcMod11($firstEightDigits);\n\n return $firstEightDigits.$lastDigit;\n }", "protected function roundTo4($number)\n {\n $remainder = $number % 4;\n if (!$remainder) return $number;\n\n return $number + (4 - $remainder);\n }", "public static function genPhoneFormat($str) { //from 0902244581 to 090-224-xxxx\n $aNumbers = str_split($str);\n\n $result = '';\n $index = 0;\n for ($i = count($aNumbers) - 1; $i >= 0; $i--) {\n $index++;\n\n if ($index <= 4) {\n $result = 'x' . $result;\n if ($index == 4)\n $result = '-' . $result;\n }else {\n $result = $aNumbers[$i] . $result;\n if ($index == 7)\n $result = '-' . $result;\n }\n }\n return $result;\n }", "function getNewCode($lastCode){\n if(strlen((string)$lastCode) > 9) return false;\n $lastCode = sprintf('%09d',$lastCode);\n return $lastCode;\n}", "function last_car($t) {\n\tif (strlen($t)>0) {\n\t\t$t = substr($t, 0, strlen($t)-1);\n\t}\n\treturn $t;\n}", "public function getFinishDigit()\n {\n return $this->finish_digit;\n }", "public function Lastchar($date)\n {\n echo \"<h3><u> Returning the last two characters of string $date </h3></u>\";\n $array=str_split($date);\n $a=count($array);\n for($i=0;$i<2;$i++)\n {\n $a=$a-1;\n echo $array[$a];\n }\n echo \"<br><hr>\";\n }", "public function getNumber(){\n if ( is_null($this->number) ){\n $number = $this->getTable()->getNextBillingNumber($this->getCourier(), 'rest');\n $this->number = \"R-\".date('y',$this->from).date('m',$this->from).\"-\".$this->getCourier()->getCustomerNr().\"-\".$number;\n }\n return $this->number;\n }", "public function get_last_personnel_id(){\n\t$query = $this->db->query(\"SELECT SUBSTR(MAX(personnel_id),-8) AS id FROM human_pa_md_emp_personal\");\n\n\treturn $query;\n\t}", "public function get_last_personnel_id(){\n\t$query = $this->db->query(\"SELECT SUBSTR(MAX(personnel_id),-8) AS id FROM human_pa_md_emp_personal\");\n\n\treturn $query;\n\t}", "function get_telephone_format($number) {\n $telephone_format = array(\n '02' => \"3,4,4\",\n '03' => \"4,3,4\",\n '05' => \"5,6\", \n '0500' => \"4,6\",\n '07' => \"5,6\",\n '08' => \"4,3,4\",\n '09' => \"4,3,4\",\n '01' => \"5,6\",\n '011' => \"4,3,4\",\n '0121' => \"4,3,4\",\n '0131' => \"4,3,4\",\n '0141' => \"4,3,4\",\n '0151' => \"4,3,4\",\n '0161' => \"4,3,4\",\n '0191' => \"4,3,4\",\n '013873' => \"6,5\", \n '015242' => \"6,5\", \n '015394' => \"6,5\",\n '015395' => \"6,5\",\n '015396' => \"6,5\",\n '016973' => \"6,5\",\n '016974' => \"6,5\",\n '017683' => \"6,5\",\n '017684' => \"6,5\",\n '017687' => \"6,5\",\n '019467' => \"6,5\",\n '0169737' => \"5,6\",\n '0169772' => \"6,4\",\n '0169773' => \"6,4\",\n '0169774' => \"6,4\"\n );\n\n // Sorts into longest key first\n uksort($telephone_format, \"sort_str_len\"); \n foreach ($telephone_format AS $key => $value) {\n if (substr($number, 0, strlen($key)) == $key) break;\n };\n return $value;\n}", "function modify_number($number){\n //get the part of the string after the first zero\n $num = substr($number,1,strlen($number));\n //chunk the number into groups of threes\n $num_chunked = chunk_split($num,3,' ');\n return ' (0) '.$num_chunked;\n}", "protected function calculateLastDigit($number)\n {\n if ($number < 10) {\n return $number;\n }\n\n return ($number > 10 && $number <= 20) ? $number : $number % 10;\n }", "function formatAccountNumber($accountNumber){\r\n\t\t$parts = array(0=>2,2=>4,6=>4,10=>4,14=>4,18=>4,22=>4);\r\n\t\tforeach($parts as $key => $val){\r\n\t\t\t$newNumber .= substr($accountNumber, $key, $val).' ';\r\n\t\t}\r\n\t\treturn trim($newNumber);\r\n\t}" ]
[ "0.83754116", "0.66299206", "0.65090394", "0.6470222", "0.5889983", "0.58706045", "0.5751669", "0.5739986", "0.5738026", "0.5626747", "0.55883497", "0.55612344", "0.5559225", "0.5536912", "0.5530146", "0.55300003", "0.5505192", "0.5489729", "0.5474046", "0.54669124", "0.54497087", "0.54343903", "0.54280156", "0.5394267", "0.53758675", "0.53758675", "0.53693974", "0.5321005", "0.53151596", "0.5307702" ]
0.7043308
1
Get the BinInfo This will consume an external service. It will use the Binlist helper
public function getBinInfo() { if ($this->binInfo === null) { $binInfo = Binlist::get($this->getBin()); $this->binInfo = $binInfo; } return $this->binInfo; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getinfo() { \n return $this->bitcoin->getinfo();\n }", "public function raw($bin)\n {\n $fields = $this->fields;\n $fields_query = '';\n if (!empty($fields)) {\n $fields_query = '?fields=';\n foreach ($fields as $field)\n $fields_query .= $field . ',';\n $fields_query = rtrim($fields_query, ',');\n }\n $resource = is_null($this->app_token) ? 'public' : \"private/{$this->app_token}\";\n $url = \"https://bindb.me/api/{$resource}/json/{$bin}{$fields_query}\";\n $ch = curl_init();\n curl_setopt_array($ch, [\n CURLOPT_URL => $url,\n CURLOPT_CONNECTTIMEOUT => 10,\n CURLOPT_TIMEOUT => 10,\n CURLOPT_SSL_VERIFYPEER => false,\n CURLOPT_RETURNTRANSFER => true\n ]);\n $response = curl_exec($ch);\n $this->raw_response = $response;\n return $response;\n }", "public static function getInfo(){ //функция для получения массива общей информации из бд\n \n $db = Db::getConnection(); //инициализируем подключение к бд\n \n $info = array(); //инициализируем переменную \n \n $result = $db->query('SELECT * FROM info'); // получаем из базы список\n \n $result->setFetchMode(PDO::FETCH_ASSOC);\n \n $row = $result->fetch();\n foreach ($row as $key => $value) { //перебираем массив полученный из бд и формируем массив для вывода на страницу сайта\n $info[$key] = $value;\n }\n \n return $info; //возвращаем массив\n }", "public function get()\n {\n return $this->query('getblockchaininfo');\n }", "public static function getinfo() {\n $url = self::$username.':'.self::$password.'@'.self::$address.':'.self::$port.'/';\n self::$rpcClient = new jsonRPCClient($url, self::$debug);\n return self::$emercoin_info = self::$rpcClient->getinfo();\n }", "public static function getInfo(){\n \t$COINS = \\Config::get('coins');\n\t\t$dogecoin = new \\Dogecoin($COINS['DOGE']['USER'],$COINS['DOGE']['PASS'],$COINS['DOGE']['IP'],$COINS['DOGE']['PORT'],'http');\n\t\t$data = $dogecoin->getinfo();\n\t return $data;\n\t}", "public function getBitcoinGeneralInformation()\n {\n\n $endPoint\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t= \"bc/btc/mainnet/info\";\n\n $response \t\t\t\t\t\t\t\t\t\t= array();\n $response[\"data\"] \t\t\t\t\t\t\t\t\t\t= null;\n\n // get post fields\n $endPointUrl\t\t\t\t\t\t\t\t\t\t\t\t\t = $this -> apiBaseUrl.$endPoint;\n // get curl http headers\n $curlHttpheaders \t\t\t\t\t\t\t\t\t\t\t\t\t= $this -> getCurlHttpHeaders();\n //set options for curl\n $curlOptions \t\t\t\t\t\t\t\t\t= $this -> getCurlOptions($curlHttpheaders,$endPointUrl);\n\n // convert string return value to json\n $result \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t= json_decode( $this->performCurl($curlOptions) );\n\n if (!is_null($result))\n {\n $response[\"data\"] \t\t\t\t\t\t\t\t= $result;\n }\n return $response;\n }", "public function getInfo()\n {\n $result = $this->client->GetInfo();\n if ($this->errorHandling($result, 'Could not get info from FRITZ!Box')) {\n return;\n }\n\n return $result;\n }", "public function getInfo()\n\t{\n\t\treturn $this->clientSoap->__soapCall(\"getInfo\", $this->params);\n\t}", "public function getBin()\n\t{\n\t\treturn $this->bin;\n\t}", "public function getBookInfo()\n\t{\n\t\t$isbn = $_POST['ISBN'];\n\t\t$url = \"https://api.douban.com/v2/book/isbn/\" . $isbn;\n\t\t$curl = curl_init();\n\t\tcurl_setopt($curl, CURLOPT_URL, $url);\n\t\tcurl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);\n\t\tcurl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);\n\t\tcurl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);\n\t\t$result = curl_exec($curl);\n\t\tcurl_close($curl);\n\t\t$result = json_decode($result, true);\n\n\n\t\tif ($result[\"code\"] != 6000) {\n\t\t\t$json = json_encode(array(\n\t\t\t\t'code' => 'success',\n\t\t\t\t'data' => $result\n\t\t\t));\n\t\t\techo $json;\n\t\t} else {\n\t\t\t$json = json_encode(array(\n\t\t\t\t'code' => 'fail',\n\t\t\t\t'msg' => 'Can not get its information!'\n\t\t\t));\n\t\t\techo $json;\n\t\t}\n\t}", "public function getInfo();", "public function info()\n {\n if (!addon_installed('banners')) {\n return array();\n }\n\n if (get_option('is_on_banner_buy') == '1') {\n $banner_url = build_url(array('page' => '_SELF', 'type' => 'bannerinfo', 'id' => 'banners'), get_module_zone('banners'));\n\n return array(do_template('POINTSTORE_BANNERS_2', array('_GUID' => '0b34fc7675b4a71fd6e530ad43213e70', 'BANNER_URL' => $banner_url)));\n }\n return array();\n }", "public function getInfo() {}", "public function getInfo() {}", "public function getServiceInfo() {}", "public static function get_bin() {\n\t\t\treturn self::$bin;\n\t\t}", "private function requestBridgeInfo() {\n $conn = new ApiConnection;\n $result = $conn->sendGetCmd(\"config\");\n return $result;\n }", "public function getInfo()\n {\n $this->conn->initialize();\n $json = $this->conn->getClient()->request(\"/{$this->name}/\")->getContent();\n $info = JSONEncoder::decode($json);\n\n return $info;\n }", "public function get_info()\n {\n return $this->_request('getinfo');\n }", "public function Info_Get()\n\t{\n\t\t$Data = $this -> HTTPRequest($this -> APIURL.'Info:Get');\n\t\treturn $this -> ParseResponse($Data);\n\t}", "public function getInfos(){\n\t\treturn array(\n\t\t\t\"serviceDescription\" => \"This is the Comunic API Server.\",\n\t\t\t\"clientURL\" => \"https://communiquons.org/\",\n\t\t);\n\t}", "public function getinfo()\n\t{\n\t\treturn $this->connect('getinfo');\n\t}", "public function getInfo()\n {\n exec(\"rpm -qi {$this->packageName}\", $rawInfo);\n\n $rawInfo = implode(\"\\n\", $rawInfo);\n\n $parser = new Parser;\n\n return $parser->parse($rawInfo);\n }", "public function getInfo() {\r\n\t\t$response = $this->Client->execute('show version');\r\n\t\treturn $response;\r\n\t}", "public function getInfo() {\n\t\t\t$rec = array(\n\t\t\t\t'ff' => array(\n\t\t\t\t\t'name' => 'Firefox',\n\t\t\t\t\t'href' => 'https://www.mozilla.org/en-US/firefox/new/',\n\t\t\t\t\t'ttl' => 'Open the Firefox download page.'\n\t\t\t\t),\n\t\t\t\t'gc' => array(\n\t\t\t\t\t'name' => 'Google Chrome',\n\t\t\t\t\t'href' => 'http://www.google.com/chrome/eula.html',\n\t\t\t\t\t'ttl' => 'Open the Google Chrome EULA page.'\n\t\t\t\t)\n\t\t\t);\n\t\t\t\n\t\t\t$isValid = false;\n\t\t\t\n\t\t\tforeach ($rec as $key => $value) {\n\t\t\t\tif ($this->bc == $key) {\n\t\t\t\t\t$isValid = true;\n\t\t\t\t\t\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif (!$isValid) {\n\t\t\t\t$this->bc = 'ff';\n\t\t\t}\n\t\t\t\n\t\t\t$info = array(\n\t\t\t\t'name' => $rec[$this->bc]['name'],\n\t\t\t\t'href' => $rec[$this->bc]['href'],\n\t\t\t\t'ttl' => $rec[$this->bc]['ttl']\n\t\t\t);\n\t\t\t\n\t\t\treturn $info;\n\t\t}", "public function getInformation();", "public function getBlockChainInfo()\n {\n return $this->query('getblockchaininfo');\n }", "function getInfo();", "public function get($args)\n {\n // Argument check\n if (!isset($args['bid']) || !is_numeric($args['bid'])) {\n return LogUtil::registerArgsError();\n }\n\n // Return the item array\n return BlockUtil::getBlockInfo($args['bid']);\n }" ]
[ "0.62447894", "0.61306787", "0.6013611", "0.59945554", "0.58691835", "0.5858042", "0.58382255", "0.57989544", "0.57628846", "0.5672831", "0.5636324", "0.56148195", "0.5595069", "0.5574575", "0.5574575", "0.55561835", "0.5535375", "0.5530085", "0.552714", "0.5522978", "0.5480924", "0.5471374", "0.5466882", "0.54506475", "0.5426692", "0.5374033", "0.535938", "0.5349949", "0.5298709", "0.52852905" ]
0.7646869
0
Return the country code based on the bin. This will consume an external service. It will use the Binlist helper
public function getCountryCode() { if ($this->countryCode === null) { $binInfo = $this->getBinInfo(); if ($binInfo) $this->countryCode = strtoupper($binInfo->countryCode); } return $this->countryCode; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_country_code_by_bin(string $bin)\n {\n if (!empty($result = api_request(\"https://lookup.binlist.net/${bin}\"))\n && !empty($result['country']['alpha2'])) {\n return $result['country']['alpha2'];\n }\n\n return null;\n }", "public function countryCode();", "public function getCode()\r\r\n\t{\r\r\n\t\treturn \"\";#getCountryFromIP($this->ip,\"code\");\r\r\n\t}", "public function getCountryCode();", "public function getCountryCode(): string;", "protected static function country_code(): mixed\n\t{\n\t\treturn self::$query->country_code;\n\t}", "public function country()\r\n\t{\r\n\t\t$country = \\Shop\\Models\\Countries::fromCode( $this->country_isocode_2 );\r\n\r\n\t\treturn $country;\r\n\t}", "public function getCode($Iban);", "public static function visitor_country()\n {\n $code = null;\n if (Director::isDev()) {\n if (isset($_GET['countryfortestingonly'])) {\n $code = $_GET['countryfortestingonly'];\n Controller::curr()->getRequest()->getSession()->set('countryfortestingonly', $code);\n }\n if ($code = Controller::curr()->getRequest()->getSession()->get('countryfortestingonly')) {\n Controller::curr()->getRequest()->getSession()->set('MyCloudFlareCountry', $code);\n }\n }\n if (! $code) {\n if (isset($_SERVER['HTTP_CF_IPCOUNTRY']) && $_SERVER['HTTP_CF_IPCOUNTRY']) {\n return $_SERVER['HTTP_CF_IPCOUNTRY'];\n }\n $code = Controller::curr()->getRequest()->getSession()->get('MyCloudFlareCountry');\n if (! $code) {\n $address = self::get_remote_address();\n if (strlen($address) > 3) {\n $code = CloudFlareGeoIP::ip2country($address, true);\n }\n if (! $code) {\n $code = self::get_default_country_code();\n }\n if ('' === $code) {\n $code = Config::inst()->get('CloudFlareGeoip', 'default_country_code');\n }\n Controller::curr()->getRequest()->getSession()->set('MyCloudFlareCountry', $code);\n }\n }\n\n return $code;\n }", "private function getIbanCountryCode(string $iban): string\n {\n return substr($iban, 0, 2);\n }", "public function getCountry() {}", "public function getCountry() {}", "public function countryCode(): string\n {\n return $this->getData('CountryCodeISO3166A2');\n }", "public function requestCountryCode();", "public function getCountryCode(): string\n {\n return 'SK';\n }", "function getCountryFromIp() {\n\n\n //error_log(\"getting country for your IP\");\n\n \n\n $ch = curl_init('http://geoip.nekudo.com/api/' . $_SERVER['REMOTE_ADDR']);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n $result = curl_exec($ch);\n\n $geoip = json_decode($result);\n \n if ($geoip) {\n $countryCode = $geoip->country->code;\n return $countryCode;\n\n \n }\n else {\n // No results returned from the API\n // return country US\n //error_log(\"no results from API, call getCountyFromURL\");\n \n return \"US\";\n }\n}", "public static function getCountry(){\n $country = '';\n $ip = self::getClientIP();\n if ($ip != '') {\n $data = file_get_contents('http://freegeoip.net/json/' . $ip);\n $response = json_decode($data);\n $country = $response->country_code;\n }\n \n return $country;\n }", "public function getCountry();", "public function getCountry();", "function get_calling_code($country_id = '')\r\n {\r\n echo get_country_calling_code_by_id($country_id);\r\n }", "public static function country()\n\t{\n\t\treturn static::onTrustedRequest(function () {\n\t\t\treturn request()->header('CF_IPCOUNTRY');\n\t\t}) ?: '';\n\t}", "public function getCountryCode()\n {\n return substr($this->_code, -2);\n }", "public function getCountry(): string\n {\n return $this->result->country_name;\n }", "function getCountry($code){\n\t\n\tglobal $dz;\n\t\n\tif(strlen($code)!=2){\n\t\t\n\t\t// Invalid input.\n\t\terror('field/invalid','country');\n\t\t\n\t}\n\t\n\t// Make sure it's uppercase:\n\t$code=strtoupper($code);\n\t\n\t// Get the row:\n\t$row=$dz->get_row('select country_id from countries where iso2=\"'.$code.'\"');\n\t\n\tif(!$row){\n\t\t\n\t\t// Country was not found.\n\t\terror('country/notfound');\n\t\t\n\t}\n\t\n\treturn $row['country_id'];\n}", "public function getCountryCode()\n {\n return $this->code;\n }", "public function getCountryCode() : string\n {\n return $this->countryCode;\n }", "function tep_get_country_iso_code_2($country_id) {\n $country_iso_query = tep_db_query(\"select * from \" . TABLE_COUNTRIES . \" where countries_id = '\" . $country_id . \"'\");\n if (!tep_db_num_rows($country_iso_query)) {\n return 0;\n }\n else {\n $country_iso_row = tep_db_fetch_array($country_iso_query);\n return $country_iso_row['countries_iso_code_2'];\n }\n }", "abstract public function countryISOCode();", "function tep_get_country_iso_code_2($country_id) {\n\n $country_iso_query = tep_db_query(\"select * from \" . TABLE_COUNTRIES . \" where countries_id = '\" . $country_id . \"'\");\n\n if (!tep_db_num_rows($country_iso_query)) {\n return 0;\n }\n else {\n $country_iso_row = tep_db_fetch_array($country_iso_query);\n return $country_iso_row['countries_iso_code_2'];\n }\n }", "public function getBillcountry()\n {\n return $this->billcountry;\n }" ]
[ "0.7667611", "0.69723207", "0.6939835", "0.65765184", "0.64904463", "0.63911295", "0.62834287", "0.62692285", "0.62674534", "0.6251976", "0.623991", "0.623991", "0.6235599", "0.62270087", "0.6225379", "0.61955583", "0.61715555", "0.61145854", "0.61145854", "0.6106203", "0.60847884", "0.6083383", "0.6052175", "0.603541", "0.6004581", "0.5982517", "0.59825087", "0.59712034", "0.59480184", "0.5942202" ]
0.7083919
1
Determine if the length of the credit card number is valid
public function isValidLength() { if ($this->ccNumber === null) return false; $ccNumberLength = strlen($this->ccNumber); $ccType = $this->getType(); if ($ccType === null) return false; // Check length return in_array($ccNumberLength, $this->cardLength[$ccType]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function is_valid_bank_card_number($number)\n{\n if (is_null($number) || strlen($number) < 16 || strlen($number) > 19)\n {\n return false;\n }\n $pattern = \"/^\\d{16,19}$/\";\n return (preg_match($pattern, $number) == 1);\n}", "private function isValid(): bool\n {\n $this->generateChecksum();\n return (($this->luhnValue % $this->base == 0) && ($this->luhnValue != 0));\n }", "function verify_creditcard_mod10($strccno = '')\n {\n if (empty($strccno))\n {\n return false;\n }\n $len = mb_strlen($strccno);\n if ($len < 13 OR $len > 16)\n {\n return false;\n }\n $checkdig = (int)$strccno[--$len];\n for ($i=--$len, $sum = 0, $dou = true; $i >= 0; $i--, $dou =! $dou)\n {\n $curdig = (int)$strccno[$i];\n if ($dou)\n {\n $curdig *= 2;\n if ($curdig > 9) $curdig-=9;\n }\n $sum += $curdig;\n }\n if (($checkdig + $sum) % 10 == 0)\n {\n return true;\n }\n else\n {\n return false;\n }\n }", "public function validate()\n {\n // get the value; remove spaces, dashes, and dots\n $value = str_replace([' ', '-', '.'], '', (string) $this->getValue());\n\n // is it composed only of digits?\n if (! ctype_digit($value)) {\n return false;\n }\n\n // luhn mod-10 algorithm: https://gist.github.com/1287893\n $sumTable = [\n [0,1,2,3,4,5,6,7,8,9],\n [0,2,4,6,8,1,3,5,7,9],\n ];\n\n $sum = 0;\n $flip = 0;\n\n for ($i = strlen($value) - 1; $i >= 0; $i--) {\n $sum += $sumTable[$flip++ & 0x1][$value[$i]];\n }\n return $sum % 10 === 0;\n }", "protected static function validCardNumberLength($number, string $type = NULL, $function = 'length') : bool\n {\n return in_array(strlen($number ?? ''), self::getCardFormats()[$type][$function]);\n }", "private function verifyByLuhnAlgorithm($number){ }", "protected function validCVVLength()\n {\n if (empty($this->cvvValue)) {\n return false;\n }\n $cvvLength = $this->getCardProp('cvvLength');\n foreach ($cvvLength as $length) {\n if (strlen($this->cvvValue) === $length) {\n return true;\n }\n }\n return false;\n }", "function isCardNumberValid($creditCardNumber)\n {\n $creditCardNumber = strrev($this->cardNumberClean($creditCardNumber));\n // $creditCardNumber = strrev($creditCardNumber);\n $sum = 0;\n\n for ($i = 0; $i < strlen($creditCardNumber); $i++) {\n $digit = (int)substr($creditCardNumber, $i, 1);\n\n // Double every second digit\n if ($i % 2 == 1) {\n $digit *= 2;\n }\n\n // Add digits of 2-digit numbers together\n if ($digit > 9) {\n $digit = ($digit % 10) + floor($digit / 10);\n }\n\n $sum += $digit;\n }\n\n // If the total has no remainder it's OK\n return ($sum % 10 == 0);\n }", "public function valid_cc_number($number)\n\t{\n\t\t// is the number in the correct format?\n\t\t$valid_format = FALSE;\n\t\tif(ereg(\"^5[1-5][0-9]{14}$\", $number)) // mastercard\n\t\t{\n\t\t\t$valid_format = TRUE;\n\t\t}\n\t\telseif(ereg(\"^4[0-9]{12}([0-9]{3})?$\", $number)) // visa\n\t\t{\n\t\t\t$valid_format = TRUE;\n\t\t}\n\t\t// will add others as needed\n\t\n\t\t// is the number valid?\n\t\t$card_number = strrev($number);\n\t\t$num_sum = 0;\n\t\t\n\t\tfor($i=0; $i < strlen($card_number); $i++)\n\t\t{\n\t\t\t$current_num = substr($card_number, $i, 1);\n\t\t\t\n\t\t\t// double every second digit\n\t\t\tif($i%2 == 1)\n\t\t\t{\n\t\t\t\t$current_num *= 2;\n\t\t\t}\n\t\t\t\n\t\t\t// add digits of 2-digit numbers together\n\t\t\tif($current_num > 9)\n\t\t\t{\n\t\t\t\t$first_num = $current_num % 10;\n\t\t\t\t$second_num = ($current_num - $first_num) / 10;\n\t\t\t\t$current_num = $first_num + $second_num;\n\t\t\t}\n\t\t\t\n\t\t\t$num_sum += $current_num;\n\t\t}\n\t\t\n\t\t// if the total has no remainder it's OK\n\t\t$pass_check = ($num_sum % 10 == 0);\n\t\t\n\t\tif($valid_format && $pass_check)\n\t\t{\n\t\t\treturn TRUE;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn FALSE;\n\t\t}\n\t}", "public function isValidChecksum()\n\t{\n\t\t$length = strlen($this->number);\n\t\t$value = $this->ccNumber;\n\t\t$sum = 0;\n $weight = 2;\n\n for ($i = $length - 2; $i >= 0; $i--) {\n $digit = $weight * $value[$i];\n $sum += floor($digit / 10) + $digit % 10;\n $weight = $weight % 2 + 1;\n }\n\n if ((10 - $sum % 10) % 10 != $value[$length - 1]) {\n return false;\n }\n\n return true;\n\t}", "private function validate_isrc($value)\n\t{\n\t\tif (strlen(trim($value)) == 12) {\n\t\t\treturn 1; /* valid */\n\t\t}\n\t\telse {\n\t\t\treturn 0; /* invalid */\n\t\t}\n\t}", "function CCValidationSolution($Number) {\r\n global $CardName, $CardNumber, $language;\r\n\r\n require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CCVAL_FUNCTION); \r\n\r\n\r\n// Get rid of spaces and non-numeric characters.\r\n $Number = OnlyNumericSolution($Number);\r\n\r\n// Do the first four digits fit within proper ranges? If so, who's the card issuer and how long should the number be?\r\n $NumberLeft = substr($Number, 0, 4);\r\n $NumberLength = strlen($Number);\r\n\r\n if ( ($NumberLeft >= 3000) && ($NumberLeft <= 3059) ) {\r\n $CardName = 'Diners Club';\r\n $ShouldLength = 14;\r\n } elseif ( ($NumberLeft >= 3600) && ($NumberLeft <= 3699) ) {\r\n $CardName = 'Diners Club';\r\n $ShouldLength = 14;\r\n } elseif ( ($NumberLeft >= 3800) && ($NumberLeft <= 3889) ) {\r\n $CardName = 'Diners Club';\r\n $ShouldLength = 14;\r\n } elseif ( ($NumberLeft >= 3400) && ($NumberLeft <= 3499) ) {\r\n $CardName = 'American Express';\r\n $ShouldLength = 15;\r\n } elseif ( ($NumberLeft >= 3700) && ($NumberLeft <= 3799) ) {\r\n $CardName = 'American Express';\r\n $ShouldLength = 15;\r\n } elseif ( ($NumberLeft >= 3528) && ($NumberLeft <= 3589) ) {\r\n $CardName = 'JCB';\r\n $ShouldLength = 16;\r\n } elseif ( ($NumberLeft >= 3890) && ($NumberLeft <= 3899) ) {\r\n $CardName = 'Carte Blache';\r\n $ShouldLength = 14;\r\n } elseif ( ($NumberLeft >= 4000) && ($NumberLeft <= 4999) ) {\r\n $CardName = 'Visa';\r\n if ($NumberLength > 14) {\r\n $ShouldLength = 16;\r\n } elseif ($NumberLength < 14) {\r\n $ShouldLength = 13;\r\n }\r\n } elseif ( ($NumberLeft >= 5100) && ($NumberLeft <= 5599) ) {\r\n $CardName = 'MasterCard';\r\n $ShouldLength = 16;\r\n } elseif ($NumberLeft == 5610) {\r\n $CardName = 'Australian BankCard';\r\n $ShouldLength = 16;\r\n } elseif ($NumberLeft == 6011) {\r\n $CardName = 'Discover/Novus';\r\n $ShouldLength = 16;\r\n } else {\r\n $cc_val = sprintf(TEXT_CCVAL_ERROR_UNKNOWN_CARD, $NumberLeft);\r\n return $cc_val;\r\n }\r\n\r\n// Is the number the right length?\r\n if ($NumberLength <> $ShouldLength) {\r\n $Missing = $NumberLength - $ShouldLength;\r\n if ($Missing < 0) {\r\n $cc_val = sprintf(TEXT_CCVAL_ERROR_INVALID_NUMBER, $CardName, $Number);\r\n } else {\r\n $cc_val = sprintf(TEXT_CCVAL_ERROR_INVALID_NUMBER, $CardName, $Number);\r\n }\r\n\r\n return $cc_val;\r\n }\r\n\r\n// Does the number pass the Mod 10 Algorithm Checksum?\r\n if (Mod10Solution($Number)) {\r\n $CardNumber = $Number;\r\n return true;\r\n } else {\r\n $cc_val = sprintf(TEXT_CCVAL_ERROR_INVALID_NUMBER, $CardName, $Number);\r\n return $cc_val;\r\n }\r\n }", "function checkLength($password)\n{\n return strlen($password) >= MIN_PASSWORD;\n}", "protected function len($num, int $length): bool\n {\n return !! preg_match(\"/^[0-9]{$length}/\", $num);\n }", "private function checkSymbolLength(): bool\n {\n $passwordLength = strlen($this->password);\n if ($passwordLength > 6) {\n return true;\n }\n array_push($this->errorMessages, \"Please add atleast \" . 7 - $passwordLength . \" characters to your password\");\n return false;\n }", "function validateDCI($str){\n if((strlen($str)>10) || (strlen($str)<4) || (!ctype_digit($str)) )\n return false;\n else\n return true;\n}", "public function validate($value)\n {\n $value = preg_replace('/[^\\d]/', '', (string) $value);\n if (strlen($value) != 11 ) {\n return false;\n }\n $acumulado = 0;\n $digits = str_split($value);\n\n // obtain digit\n $digit = array_pop($digits);\n\n for ($i=0; $i < count($digits); $i++ ) {\n $acumulado += $digits[9-$i] * (2 + ($i % 6 ));\n }\n $verif = 11 - ( $acumulado % 11 );\n $verif = $verif == 11? 0 : $verif;\n\n return $digit == $verif;\n }", "public static function validLength($input)\n\t{\n\t\t$length = strlen($input);\n\n\t\tif ($length > 2 && $length <= 500) {\n\t\t\treturn TRUE;\n\t\t} else {\n\t\t\treturn FALSE;\n\t\t}\n\n\t}", "public function isValid() {\n\t\t$checksum = self::calculateChecksum($this->number . $this->checkDigit, $this->nDigits + 1);\n\t\t// If the checksum is divisible by 10 it is valid\n\t\treturn ($checksum % 10) === 0;\n\t}", "public function hasCardNumber() : bool;", "protected function card_validate($cardno, &$cardtype=null) {\n return (CreditCardValidator::CCLuhnCheck($cardno) and CreditCardValidator::CCPrefixLengthTypeCheck($cardno, $cardtype));\n }", "public function verifyContainsAlsoNoneDigitChars(): bool\n {\n $count_digits = preg_match_all(\"/[0-9]/\", $this->input);\n if (mb_strlen($this->input) > $count_digits) {\n return true;\n }\n \n return false;\n }", "function checkValidLine_Y6051($acct){\r\n\t\t\tif( strlen($acct)==9 && is_numeric($acct) ){\r\n\t\t\t\treturn true;\r\n\t\t\t}else{\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t}", "private function isCardNumberValid($cardType, $cardNumber)\n {\n if (empty($cardNumber))\n {\n return false;\n }\n\n if (!strcmp($cardNumber, '1234123412349999')) return true;\n if (!strcmp($cardNumber, '1234123412348888')) return true;\n\n /* Create a regular expression to validate card numbers by issuer. */\n switch ($cardType)\n {\n case WF_CARD_TYPE_MASTERCARD:\n $regex = '/^5[1-5]\\d{14}$/';\n break;\n\n case WF_CARD_TYPE_VISA:\n $regex = '/^4\\d{12}(\\d{3})?$/';\n break;\n\n case WF_CARD_TYPE_AMERICANEXPRESS:\n $regex = '/^3[47]\\d{13}$/';\n break;\n\n case WF_CARD_TYPE_DISCOVER:\n $regex = '/^6011\\d{12}$/';\n break;\n\n default:\n return false;\n break;\n }\n\n /* Fail if the card number is not valid for the specified issuer. */\n if (!preg_match($regex, $cardNumber))\n {\n return false;\n }\n\n /* Reverse the card number; we have to start from the right. */\n $reversedCardNumber = strrev($cardNumber);\n\n /* 1) Loop through each digit in the (reversed) card number.\n * A) Multiply every second digit by 2.\n * B) If this multiplication results in a two-digit number, add\n * the two digits together and use the resulting value instead.\n * 2) Add all of the values obtained in step 1 together. Every digit\n * gets added, even ones that weren't doubled.\n * 3) If the value obtained in step 2 is evenly divisible by 10, the\n * card number is valid.\n */\n $sum = 0;\n for ($i = 0; $i < strlen($reversedCardNumber); $i++)\n {\n $currentDigit = $reversedCardNumber[$i];\n\n /* Double every second digit. */\n if (($i % 2) != 0)\n {\n $currentDigit *= 2;\n }\n\n /* If we just generated a two-digit number, we add the value of\n * each digit togeather instead of using the two-digit number.\n */\n if ($currentDigit > 9)\n {\n /* Divide by 10 and take the remainder to get second digit. */\n $secondDigit = $currentDigit % 10;\n\n /* Subtract second digit and divide by 10 to get first digit. */\n $firstDigit = ($currentDigit - $secondDigit) / 10;\n\n $currentDigit = $firstDigit + $secondDigit;\n }\n\n $sum += $currentDigit;\n }\n\n if (($sum % 10) != 0)\n {\n return false;\n }\n\n return true;\n }", "public function validateLength()\n {\n $resultLength = strlen($this->generate());\n\n if ($resultLength > $this->length) {\n throw new RegistryTooLongException($resultLength);\n }\n\n if ($resultLength < $this->length) {\n throw new RegistryTooShortException($resultLength);\n }\n\n return true;\n }", "public function validatePassword()\n {\n $result = false;\n if (strlen($this->password) >= 5) {\n $result = true;\n }\n return $result;\n }", "function has_length_exactly($value, $exact) {\r\n $length = strlen($value);\r\n return $length == $exact;\r\n}", "private function valid_password() {\n return (strlen($this->password) == 6);\n }", "private function luhn_check($number) {\r\n\r\n\t\t// Set the string length and parity\r\n\t\t$number_length=strlen($number);\r\n\t\t$parity=$number_length % 2;\r\n\r\n\t\t// Loop through each digit and do the maths\r\n\t\t$total=0;\r\n\t\tfor ($i=0; $i<$number_length; $i++) {\r\n\t\t\t$digit=$number[$i];\r\n\t\t\t// Multiply alternate digits by two\r\n\t\t\tif ($i % 2 == $parity) {\r\n\t\t\t\t$digit*=2;\r\n\t\t\t\t// If the sum is two digits, add them together (in effect)\r\n\t\t\t\tif ($digit > 9) {\r\n\t\t\t\t\t$digit-=9;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// Total up the digits\r\n\t\t\t$total+=$digit;\r\n\t\t}\r\n\r\n\t\t// If the total mod 10 equals 0, the number is valid\r\n\t\treturn ($total % 10 == 0) ? TRUE : FALSE;\r\n\r\n\t}", "function validatePassword() : bool\n {\n if($this->Password && preg_match('/^[[:alnum:]]{6,20}$/', $this->Password)) // solo numeri-lettere da 6 a 20\n {\n return true;\n }\n else\n return false;\n }" ]
[ "0.73747456", "0.7188931", "0.7173553", "0.7023144", "0.69209266", "0.6856622", "0.6838645", "0.6785059", "0.6746125", "0.66936976", "0.6679283", "0.66473716", "0.66366917", "0.66152406", "0.6597189", "0.65366495", "0.6527042", "0.65013003", "0.6456926", "0.64042544", "0.6403348", "0.6378264", "0.63524884", "0.6321612", "0.6321603", "0.6321273", "0.6317227", "0.63082457", "0.6306876", "0.62809587" ]
0.791776
0
Determine if the checksum is valid
public function isValidChecksum() { $length = strlen($this->number); $value = $this->ccNumber; $sum = 0; $weight = 2; for ($i = $length - 2; $i >= 0; $i--) { $digit = $weight * $value[$i]; $sum += floor($digit / 10) + $digit % 10; $weight = $weight % 2 + 1; } if ((10 - $sum % 10) % 10 != $value[$length - 1]) { return false; } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function validateChecksum() {\n\t}", "private function isValid(): bool\n {\n $this->generateChecksum();\n return (($this->luhnValue % $this->base == 0) && ($this->luhnValue != 0));\n }", "public static function verifyChecksum(): bool\n {\n $checksumFile = static::getChecksumFileName();\n\n if (!file_exists($checksumFile)) {\n return false;\n }\n\n $oldHashes = static::getStoredChecksums();\n $newHashes = static::generateChecksums();\n\n foreach ($newHashes as $fileName => $hash) {\n if (!array_key_exists($fileName, $oldHashes)) {\n return false;\n }\n\n if ($hash !== $oldHashes[$fileName]) {\n return false;\n }\n }\n\n return true;\n }", "private function _check_crc()\n\t{\n\t\t// Make sure we have unsigned crc padded hex.\n\t\t$crc_uncompressed = hash('crc32b', $this->data);\n\t\t$this->_crc = str_pad(dechex($this->_crc), 8, '0', STR_PAD_LEFT);\n\n\t\treturn $this->data !== false && $this->_crc === $crc_uncompressed;\n\t}", "public function hasMd5checksum(){\n return $this->_has(3);\n }", "public function hasMd5checksum(){\n return $this->_has(3);\n }", "function checksum_validate($number)\n{\n $original = substr($number, 0, strlen($number) - 1);\n return checksum_generate($original) === $number;\n}", "public function isValid() {\n\t\t$checksum = self::calculateChecksum($this->number . $this->checkDigit, $this->nDigits + 1);\n\t\t// If the checksum is divisible by 10 it is valid\n\t\treturn ($checksum % 10) === 0;\n\t}", "protected function is_hash_digest_valid() {\r\n\t\t$result = false;\r\n\t\t$data = $this->build_variables_string();\r\n\t\tif ( $data ) {\r\n\t\t\t$hash_digest_received = self::get_post_var( 'HashDigest' );\r\n\t\t\t$hash_digest_calculated = $this->calculate_hash_digest( $data, 'SHA1', get_option( 'paymentsense_preshared_key' ) );\r\n\t\t\t$result = strToUpper( $hash_digest_received ) === strToUpper( $hash_digest_calculated );\r\n\t\t}\r\n\t\treturn $result;\r\n\t}", "private function _check_header_crc()\n\t{\n\t\t$this->_crc = 256;\n\n\t\t// Build the checksum for this header and make sure it matches what it claims\n\t\tfor ($i = 0; $i < 148; $i++)\n\t\t{\n\t\t\t$this->_crc += ord($this->_header[$i]);\n\t\t}\n\t\tfor ($i = 156; $i < 512; $i++)\n\t\t{\n\t\t\t$this->_crc += ord($this->_header[$i]);\n\t\t}\n\n\t\t$this->_crc_check = $this->_current['checksum'] === $this->_crc;\n\n\t\treturn $this->_crc_check;\n\t}", "public function calculateChecksum() {}", "public function calculateChecksum() {}", "public function hasMd5checksums(){\n return $this->_has(1);\n }", "public function hasMd5checksums(){\n return $this->_has(1);\n }", "public function isValid()\n {\n $this->checkJMBG();\n\n $arr = @$this->explode();\n if (count($arr) <> 13) return false;\n foreach ($arr as $k => $v) $$k = (int)$v;\n\n $checksum = 11 - (7 * ($A + $G) + 6 * ($B + $H) + 5 * ($C + $I) + 4 * ($D + $J) + 3 * ($E + $K) + 2 * ($F + $L)) % 11;\n return ($checksum == $M);\n }", "public function validateUpdate()\n\t{\n\t\tBlocks::log('Validating MD5 for '.$this->_downloadFilePath, \\CLogger::LEVEL_INFO);\n\t\t$sourceMD5 = IOHelper::getFileName($this->_downloadFilePath, false);\n\n\t\t$localMD5 = IOHelper::getFileMD5($this->_downloadFilePath);\n\n\t\tif ($localMD5 === $sourceMD5)\n\t\t{\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "public function isValidChecksum($checksum, $data)\n {\n return $checksum == $this->createChecksum($data);\n }", "public function getChecksum();", "public static function isValid($inn)\n {\n return strlen($inn) === 10 && self::checksum($inn) === $inn[9];\n }", "public function validate(): bool\n {\n // exact pin and serial number look like\n return $this->validateAmount();\n }", "function serendipity_verifyFTPChecksums() {\n global $serendipity;\n\n $badsums = array();\n\n // Load the checksums\n $f = S9Y_INCLUDE_PATH . 'checksums.inc.php';\n\n if (!file_exists($f) || filesize($f) < 1) {\n return $badsums;\n }\n\n require_once $f;\n // Verify that every file in the checksum list was uploaded correctly\n $basedir = realpath(dirname(__FILE__) . '/../');\n\n if (!is_array($serendipity['checksums_' . $serendipity['version']])) {\n return $badsums;\n }\n\n foreach ($serendipity['checksums_' . $serendipity['version']] as $prel => $sum) {\n $path = $basedir . '/' . $prel;\n // Don't take checksums of directories\n if (is_dir($path)) {\n // Weird that it's even here.\n continue;\n }\n\n // Can't checksum unreadable or nonexistent files\n if (!is_readable($path)) {\n $badsums[$prel] = 'missing';\n continue;\n }\n\n // Validate checksum\n $calcsum = serendipity_FTPChecksum($path);\n if ($sum != $calcsum) {\n $badsums[$prel] = $calcsum;\n continue;\n }\n }\n\n return $badsums;\n}", "public static function isValidChecksum(string $address): bool\n {\n if (!self::isValidHex($address)) {\n throw new InvalidArgumentException(\"Given address '{$address}' is not a valid Ethereum address.\");\n }\n\n $address = (string) Hex::of($address);\n $hash = (string) Sha3::hash(strtolower($address));\n\n for ($i = 0; $i < 40; ++$i) {\n if (ctype_alpha($address[$i])) {\n $charInt = intval($hash[$i], 16);\n\n if ((ctype_upper($address[$i]) && $charInt <= 7) || (ctype_lower($address[$i]) && $charInt > 7)) {\n return false;\n }\n }\n }\n\n return true;\n }", "public function validate()\n {\n // get the value; remove spaces, dashes, and dots\n $value = str_replace([' ', '-', '.'], '', (string) $this->getValue());\n\n // is it composed only of digits?\n if (! ctype_digit($value)) {\n return false;\n }\n\n // luhn mod-10 algorithm: https://gist.github.com/1287893\n $sumTable = [\n [0,1,2,3,4,5,6,7,8,9],\n [0,2,4,6,8,1,3,5,7,9],\n ];\n\n $sum = 0;\n $flip = 0;\n\n for ($i = strlen($value) - 1; $i >= 0; $i--) {\n $sum += $sumTable[$flip++ & 0x1][$value[$i]];\n }\n return $sum % 10 === 0;\n }", "public function check_valid_tgz()\n\t{\n\t\t// No signature?\n\t\tif (strlen($this->data) < 10)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\n\t\t// Unpack the 10 byte signature so we can see what we have\n\t\t$this->_header = unpack('H2a/H2b/Ct/Cf/Vmtime/Cxtra/Cos', substr($this->data, 0, 10));\n\n\t\t// The IDentification number, gzip must be 1f8b\n\t\treturn strtolower($this->_header['a'] . $this->_header['b']) === '1f8b';\n\t}", "public function checkResetCode()\n {\n return $this->resetCode()->isValid();\n }", "public function isValid()\n {\n return $this->pos < strlen($this->buffer);\n }", "protected function checksumMatches($value): bool\n {\n return $this->calculateChecksum($value) === $this->cutChecksum($value);\n }", "function verifyPaymentDatafeed($src, $prc, $successCode, $merchantReferenceNumber, $paydollarReferenceNumber, $currencyCode, $amount, $payerAuthenticationStatus, $secureHashSecret, $secureHash) {\r\n\t$buffer = $src . '|' . $prc . '|' . $successCode . '|' . $merchantReferenceNumber . '|' . $paydollarReferenceNumber . '|' . $currencyCode . '|' . $amount . '|' . $payerAuthenticationStatus . '|' . $secureHashSecret;\r\n\t$verifyData = sha1($buffer);\r\n\tif ($secureHash == $verifyData) { return true; }\r\n\treturn false;\r\n}", "public function isValid() : bool {\n\t\t\treturn $this->error == 0;\n\t\t}", "public function isValid()\n {\n if ($this->_code == self::RESULT_OK) {\n return true;\n }\n\n return false;\n }" ]
[ "0.81404275", "0.73903674", "0.7319087", "0.712166", "0.69918114", "0.69918114", "0.69786966", "0.6942518", "0.66718996", "0.66687745", "0.66409886", "0.66409886", "0.6591284", "0.6591284", "0.6406728", "0.63726526", "0.6362474", "0.6306898", "0.6290683", "0.62355137", "0.62314856", "0.62272507", "0.62167364", "0.62107265", "0.6163493", "0.6113766", "0.6112509", "0.60851187", "0.6063978", "0.60540247" ]
0.7809408
1
Company is reseller if yes than check main reseller account is block or not
public static function isResellerAndAccountBlock($CompanyID){ $Blocked = 0; $Reseller = Reseller::where(['ChildCompanyID'=>$CompanyID,'Status'=>1])->first(); if(!empty($Reseller) && count($Reseller)>0){ $Blocked = Account::where(['AccountID'=>$Reseller->AccountID,'Blocked'=>1])->count(); } return $Blocked; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function chekcingForMarketplaceSellerOrNot() {\n /**\n * Initilize customer and seller group id\n */\n $customerGroupIdVal = $sellerGroupIdVal = $customerStatusValue = '';\n /**\n * Get customer group id\n * @var int\n */\n $customerGroupIdVal = Mage::getSingleton ( 'customer/session' )->getCustomerGroupId ();\n $sellerGroupIdVal = Mage::helper ( 'marketplace' )->getGroupId ();\n /**\n * Get customer status\n * @var int\n */\n $customerStatusValue = Mage::getSingleton ( 'customer/session' )->getCustomer ()->getCustomerstatus ();\n /**\n * Checking for customer group id and seller group id\n */\n if (! Mage::getSingleton ( 'customer/session' )->isLoggedIn () && $customerGroupIdVal != $sellerGroupIdVal) {\n /**\n * add error message\n */\n Mage::getSingleton ( 'core/session' )->addError ( $this->__ ( 'You must have a Seller Account to access this page' ) );\n $this->_redirect ( 'marketplace/seller/login' );\n return false;\n }\n /**\n * Checking whether customer approved or not\n */\n if ($customerStatusValue != 1) {\n /**\n * add error message\n */\n Mage::getSingleton ( 'core/session' )->addError ( $this->__ ( 'Admin Approval is required. Please wait until admin confirms your Seller Account' ) );\n $this->_redirect ( 'marketplace/seller/login' );\n return false;\n }\n }", "abstract function is_only_premium();", "public function isSeller() {\n $response = array (\n 'is_seller' => 1,\n 'msg' => '',\n 'redirect' => '' \n );\n $objectManager = \\Magento\\Framework\\App\\ObjectManager::getInstance ();\n $customerSession = $objectManager->get ( 'Magento\\Customer\\Model\\Session' );\n if (! $customerSession->isLoggedIn ()) {\n $response = array (\n 'is_seller' => 0,\n 'msg' => 'You must have a Seller Account to access this page',\n 'redirect' => 'marketplace/seller/login' \n );\n } else {\n $customerGroupSession = $objectManager->get ( 'Magento\\Customer\\Model\\Group' );\n $customerGroupData = $customerGroupSession->load ( 'Marketplace Seller', 'customer_group_code' );\n $sellerGroupId = $customerGroupData->getId ();\n \n $currentCustomerGroupId = $customerSession->getCustomerGroupId ();\n \n if ($currentCustomerGroupId != $sellerGroupId) {\n $response = array (\n 'is_seller' => 0,\n 'msg' => 'Admin Approval is required. Please wait until admin confirms your Seller Account',\n 'redirect' => 'marketplace/seller/changebuyer' \n );\n }\n }\n return $response;\n }", "public function isReseller($username)\r\n\t\t{\r\n\t\t\tif(!$username) return;\r\n\t\t\t\r\n\t\t\t$this->logInfos['username'] = htmlspecialchars(addslashes($username));\r\n\t\t\t\r\n\t\t\t$result = $this->getLoginInfos();\r\n\t\t\t\r\n\t\t\t($result['isReseller'] == 1) ? $isReseller = true : $isReseller = false;\r\n\t\t\t\r\n\t\t\treturn $isReseller;\r\n\t\t}", "public function isRublonSecuredAccount() {\n\t\treturn $this->isRublonConfigured() && ($this->isProjectOwner() || RublonFeature::isBusinessEdition());\n\t}", "public function isSeller(){\n\t\t\tif ($this->config->get('module_purpletree_multivendor_status')) {\n\t\t$query = $this->db->query(\"SELECT id, store_status, multi_store_id, is_removed FROM \" . DB_PREFIX . \"purpletree_vendor_stores where seller_id='\".$this->customer_id.\"'\");\n\t\treturn $query->row;\n\t}\n\t}", "function check_rebrandly_account() {\n $options = get_option('sbrb_settings');\n // If API Key option not set, do nothing\n if( $options['sbrb_api_key'] == '' )\n return;\n\n $url = 'https://api.rebrandly.com/v1/account';\n\n $result = wp_remote_get(\n $url, \n array(\n 'headers' => array(\n 'apikey' => $options['sbrb_api_key']\n )\n )\n );\n\n $response = ( $result['response']['code'] == 200 ) ? true : false;\n\n return $response;\n }", "protected function _isAllowed()\n {\n return parent::_isAllowed() && $this->_authorization->isAllowed('Vnecoms_Vendors::vendors_sellers');\n }", "public static function may_restrict_by_site()\n {\n return 3 == lib::create( 'business\\session' )->get_role()->tier;\n }", "public function is_needed() {\n\t\treturn $this->context->site_represents === 'company';\n\t}", "abstract function is_premium();", "protected function _isAllowed() {\r\n return Mage::getSingleton('admin/session')->isAllowed('sales/bookme/reseauchx_reservationreseau/siege');\r\n }", "function dokan_is_seller_enabled( $user_id ) {\n $selling = get_user_meta( $user_id, 'dokan_enable_selling', true );\n\n if ( $selling == 'yes' ) {\n return true;\n }\n\n return false;\n}", "public function authorize()\n {\n return $this->groupHasUser() || $this->hasSeller();\n }", "public function blockAccount() {\n\t\tif(check($this->_userid)) {\n\t\t\t$result = $this->db->query(\"UPDATE \"._TBL_MI_.\" SET \"._CLMN_BLOCCODE_.\" = ? WHERE \"._CLMN_MEMBID_.\" = ?\", array(1, $this->_userid));\n\t\t\tif(!$result) return;\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\tif(check($this->_username)) {\n\t\t\t$result = $this->db->query(\"UPDATE \"._TBL_MI_.\" SET \"._CLMN_BLOCCODE_.\" = ? WHERE \"._CLMN_USERNM_.\" = ?\", array(1, $this->_username));\n\t\t\tif(!$result) return;\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\tif(check($this->_email)) {\n\t\t\t$result = $this->db->query(\"UPDATE \"._TBL_MI_.\" SET \"._CLMN_BLOCCODE_.\" = ? WHERE \"._CLMN_EMAIL_.\" = ?\", array(1, $this->_email));\n\t\t\tif(!$result) return;\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\treturn;\n\t}", "public function checkAllowed() {\r\n\t\t// if option is not active return true!\r\n\t\tif (Mage::getStoreConfig('b2bprofessional/generalsettings/activecustomers')) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\r\n\t\t$iUserStoreId\t\t= Mage::getSingleton('customer/session')->getCustomer()->getStore()->getGroupID();\r\n\t\t$iCurrentStoreId\t= Mage::app()->getStore()->getGroupID();\r\n\r\n\t\tif ($iUserStoreId == $iCurrentStoreId) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t}", "protected function _isAllowed()\n {\n return Mage::getSingleton('admin/session')->isAllowed('sales/mfb_myflyingbox/offer');\n }", "function dokan_is_user_seller( $user_id ) {\n if ( !user_can( $user_id, 'dokandar' ) ) {\n return false;\n }\n\n return true;\n}", "function dokan_is_seller_trusted( $user_id ) {\n $publishing = get_user_meta( $user_id, 'dokan_publishing', true );\n\n if ( $publishing == 'yes' ) {\n return true;\n }\n\n return false;\n}", "function is_wholesale() {\n // Get $wpdb to use in queries\n global $wpdb;\n\n $woo_cust_id = get_current_user_id();\n $customer_class = $wpdb->get_var( $wpdb->prepare( \"SELECT CUSTCLAS FROM randys_customers WHERE WooCustID=%d\", $woo_cust_id ) );\n\n $is_wholesale = 'wholesale' === strtolower($customer_class) ? true : false;\n return $is_wholesale;\n}", "private function checkRACondition()\r\n {\r\n // RA send option, as its not required\r\n if ($this->queryResult[\"Type\"] == \"Non-Warranty\" || $this->claimType == \"repair-no-warranty\" ||\r\n $this->claimType == \"repair-no-transaction\" || $this->queryResult[\"ClaimStatus\"] == \"RA Requested\" || \r\n $this->queryResult[\"ClaimStatus\"] == \"Shipped\" || $this->queryResult[\"ClaimStatus\"] == \"Complete\" || $this->queryResult[\"ClaimStatus\"] == \"Cancelled\")\r\n {\r\n return \"disabled=\\\"disabled\\\"\";\r\n }\r\n // otherwise set to checked\r\n else\r\n {\r\n return \"checked\";\r\n }\r\n }", "abstract function can_use_premium_code();", "public function authorize()\n {\n return is_client_or_staff();\n }", "public function view(User $user)\n {\n return $user->hasRole('seller') && !is_null($user->client);\n }", "public function allowAccountSettlement() \n {\n $blReturn = (\n $this->oxorder__oxpaymenttype->value == 'fcpopayadvance' ||\n fcPayOnePayment::fcIsPayOneOnlinePaymentType($this->oxorder__oxpaymenttype->value)\n );\n\n return $blReturn;\n }", "protected function _isAllowed()\n\t{\n\t\treturn (Mage::getSingleton('admin/session')->isAllowed('dropship360/suppliers') || Mage::getSingleton('admin/session')->isAllowed('dropship360/vendor_ranking'));\n\t}", "protected function _isAllowed()\n {\n return Mage::getSingleton('admin/session')->isAllowed('bs_traininglist/traineecert');\n }", "public function shouldOnlyVaultOnVault()\n {\n return $this->getSingleUse() == 'false' &&\n Mage::getStoreConfigFlag('payment/gene_braintree_paypal/use_vault_only_on_vault');\n }", "public function isRetThirdPartyPayer() {\n \treturn $this->_retThirdPartyPayer;\n }", "protected function _isAllowed()\n {\n $aclResource = 'admin/system/salesblock';\n\n return $this->getAdminSession()->isAllowed($aclResource);\n }" ]
[ "0.7213912", "0.64622843", "0.6455877", "0.63914883", "0.6371869", "0.631443", "0.61858165", "0.6174443", "0.6128029", "0.61060923", "0.61043173", "0.606956", "0.6061751", "0.59804493", "0.5955446", "0.59412503", "0.5938344", "0.59206146", "0.5875717", "0.58734906", "0.58551514", "0.58380246", "0.57688475", "0.57595307", "0.57556206", "0.575262", "0.5751116", "0.57326794", "0.57271343", "0.57268345" ]
0.74504066
0
Get the value of DOCUMENT_PRODUCT_COD
public function getDocumentProductCod() { return (string) $this->document_product_cod; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDocumentProductTaxCod()\n {\n return (string) $this->document_product_tax_cod;\n }", "public function getCodProducto()\n {\n return $this->codProducto;\n }", "public function getProduct_code () {\n\t$preValue = $this->preGetValue(\"product_code\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->product_code;\n\treturn $data;\n}", "public function getDocumentCode()\r\n {\r\n return $this->documentCode;\r\n }", "public function getCodigoProducto()\n {\n return $this->codigoProducto;\n }", "function getCodigoProducto()\n {\n return $this->CodigoProducto;\n }", "public function getProductCode()\n {\n if (array_key_exists(\"productCode\", $this->_propDict)) {\n return $this->_propDict[\"productCode\"];\n } else {\n return null;\n }\n }", "public function getDocumentProductCest()\n {\n return (string) $this->document_product_cest;\n }", "public function getDocumentProductNcm()\n {\n return (string) $this->document_product_ncm;\n }", "public function getDocumentProductName()\n {\n return (string) $this->document_product_name;\n }", "function getProductCode()\n {\n return $this->productCode;\n }", "public function getDocumentProductEan()\n {\n return (string) $this->document_product_ean;\n }", "public function getProdCode()\n {\n return $this->prod_code;\n }", "public function getDocumentProductIpiCst()\n {\n return (string) $this->document_product_ipi_cst;\n }", "function getId_Producto(){\r\n\t\treturn $this->nId_Producto;\r\n\t}", "public function getDocumentProductQtd()\n {\n return (string) $this->document_product_qtd;\n }", "public function getDocCode()\n {\n return $this->doc_code;\n }", "public function getDocumentProductDiscount()\n {\n return (string) $this->document_product_discount;\n }", "public function getDocumentProductPisCst()\n {\n return (string) (string) $this->document_product_pis_cst;\n }", "public function CodigoProducto()\n\t{\n\t\tself::SetNames();\n\n\t\t$sql = \" select codproducto from productos order by codproducto desc limit 1\";\n\t\tforeach ($this->dbh->query($sql) as $row){\n\n\t\t\t$codproducto[\"codproducto\"]=$row[\"codproducto\"];\n\n\t\t}\n\t\tif(empty($codproducto[\"codproducto\"]))\n\t\t{\n\t\t\techo $nro = '00001';\n\n\t\t} else\n\t\t{\n\t\t\t$resto = substr($codproducto[\"codproducto\"], 0, -0);\n\t\t\t$coun = strlen($resto);\n\t\t\t$num = substr($codproducto[\"codproducto\"] , $coun);\n\t\t\t$dig = $num + 1;\n\t\t\t$codigo = str_pad($dig, 5, \"0\", STR_PAD_LEFT);\n\t\t\techo $nro = $codigo;\n\t\t}\n\t}", "public function getProductCode(): ?string\n {\n return $this->productCode;\n }", "public function getValorDocumento()\n {\n return $this->ValorDocumento;\n }", "public function getDocumentProductCfop()\n {\n return (string) $this->document_product_cfop;\n }", "public function getCod_entidad()\n {\n return $this->cod_entidad;\n }", "public function getcodigo()\r\n {\r\n return $this->codigo;\r\n }", "public function getcodigo()\r\n {\r\n return $this->codigo;\r\n }", "public function getCodProy() {\n return $this->codProy;\n }", "public function getCodProy() {\n return $this->codProy;\n }", "public function getCodigo(){\n\t\treturn $this->rg_codigo;\n\t}", "public function getCdProduto()\n {\n return $this->Cd_produto;\n }" ]
[ "0.70886934", "0.7078167", "0.7032005", "0.67955357", "0.67727965", "0.67649156", "0.6614036", "0.65372866", "0.6496565", "0.6485905", "0.6436709", "0.6409009", "0.633729", "0.63270354", "0.6316438", "0.62570655", "0.6252855", "0.6243742", "0.6233239", "0.6192485", "0.61793613", "0.61154747", "0.6108906", "0.5953217", "0.59430695", "0.59430695", "0.5913714", "0.5886719", "0.5880076", "0.5872452" ]
0.8405264
0
Get the value of DOCUMENT_PRODUCT_TAX_COD
public function getDocumentProductTaxCod() { return (string) $this->document_product_tax_cod; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_tax_number()\n {\n if (!empty($this->business_center_id)) {\n $tax_number = $this->db->query_field(DISTRIBUTOR_TAX_NUMBER_SQL, array($this->business_center_id));\n if (!empty($tax_number)) {\n return $tax_number;\n }\n }\n return false;\n }", "public function getTaxDocumentNumber()\n\t{\n\t\treturn $this->getIfSet('number', $this->data->taxDocument);\n\t}", "public function getDocumentProductCod()\n {\n return (string) $this->document_product_cod;\n }", "public function getTaxcode()\n {\n return $this->taxcode;\n }", "public function getTax()\n\t{\n\t\treturn $this->getKeyValue('Tax'); \n\n\t}", "public function getProductPriceTax()\n {\n $_tax = Mage::getStoreConfig('splitprice/split_price_config/add_tax');\n \n if (!ctype_digit($_tax))\n {\n $_tax = 0;\n }\n \n return $_tax;\n }", "public function getProductPriceTax()\n {\n $_tax = $this->_scopeConfig->getValue('splitprice/split_price_config/add_tax', \\Magento\\Store\\Model\\ScopeInterface::SCOPE_STORE);\n \n if (!ctype_digit($_tax))\n {\n $_tax = 0;\n }\n \n return $_tax;\n }", "public function getTaxCode(): ?string\n {\n return $this->data->taxCode;\n }", "function getReceiptTax()\n\t{\n\t\tglobal $db;\n\n\t\t$query = 'SELECT t.tax_desc AS \"Tax\", rt.tax_rate AS \"Tax Rate\", rt.tax_value AS \"Tax Value\"\n\t\tFROM '.receipt_tax_table.' rt JOIN '.tax_table.' t USING (tax_id) \n\t\tWHERE rt.receipt_id = '.$this->receipt_id.' \n\t\tORDER BY rt.tax_sequence';\n\t\t$result = $db->query($query);\n\n\t\tif(!$result)\n\t\t{\n\t\t\t$err_info = $db->errorInfo();\n\t\t\techo $err_info[2];\n\t\t\terror_log('Function : getReceiptTax, Class : receipt, '.$err_info[2]);\n\t\t\texit;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$arr = $result->fetchAll(PDO::FETCH_ASSOC);\n\t\t}\n\t\treturn $arr;\n\t}", "public function getTaxAmount();", "public function getTaxVal() {\n\t\treturn $this->taxVal;\n\t}", "public function getDocumentProductQtd()\n {\n return (string) $this->document_product_qtd;\n }", "public function getLineTax()\n\t{\n\t\treturn $this->getKeyValue('line_tax'); \n\n\t}", "public function getTax(){\n $brutto = $this->getBrutto();\n return $brutto - ($brutto / (107) * 100);\n }", "public function getDocumentProductDiscount()\n {\n return (string) $this->document_product_discount;\n }", "public function getIdTax()\n {\n return $this->id_tax;\n }", "public function getTaxCurrencyCode()\n {\n return $this->taxCurrencyCode;\n }", "public function getCidTax()\n {\n return $this->cid_tax;\n }", "public function actionGetTax() {\r\n $data = '';\r\n if (Yii::$app->request->isAjax) {\r\n $tax_id = $_POST['tax'];\r\n $tax_data = \\common\\models\\Tax::find()->where(['id' => $tax_id])->one();\r\n if (!empty($tax_data)) {\r\n $data = $tax_data->value;\r\n }\r\n }\r\n return $data;\r\n }", "abstract public function getTaxType();", "protected function _getTaxClassCodeByProduct($product)\n {\n $taxClass = $this->_getTaxClassCollection()->getItemById($product->getTaxClassId());\n return $taxClass ? $taxClass->getOpAvataxCode() : '';\n }", "public function getTaxInvoiced();", "public function getTaxedPrice();", "public function getTaxOrIdentityNumber() :string\n {\n return $this->taxOrIdentityNumber;\n }", "public static function GetTaxCode($product, $merchant_id)\n {\n \t$tax_code = '';\n \t$productType = '';\n \tif(is_array($product)) {\n \t\t$tax_code = $product['tax_code'];\n \t\t//$productType = $product['product_type'];\n \t\t$productType = str_replace(\"'\", \"''\", $product['product_type']);\n \t}\n \telse {\n \t\t$tax_code = $product->tax_code;\n \t\t//$productType = $product->product_type;\n \t\t$productType = str_replace(\"'\", \"''\", $product->product_type);\n \t}\n \n \tif(!$tax_code) {\n \t\t$query = \"SELECT `tax_code` FROM `tophatter_category_map` WHERE `product_type`='\".$productType.\"' AND `merchant_id`=\".$merchant_id.\" LIMIT 0,1\";\n \t\t$result = Data::sqlRecords($query, 'one');\n \t\tif($result && (isset($result['tax_code']))) {\n \t\t\treturn $result['tax_code'];\n \t\t}\n \t\telse {\n \t\t\t$query = \"SELECT `value` FROM `tophatter_config` WHERE `data`='tax_code' AND `merchant_id`=\".$merchant_id.\" LIMIT 0,1\";\n \t\t\t$result = Data::sqlRecords($query, 'one');\n \t\t\tif($result && (isset($result['value']))) {\n \t\t\t\treturn $result['value'];\n \t\t\t}\n \t\t}\n \t} else {\n \t\tif(!is_numeric($tax_code))\n \t\t\treturn false;\n \t\telse\n \t\t\treturn $tax_code;\n \t}\n \treturn false;\n }", "public function getTaxRefunded();", "public function getDocumentProductUnitaryValue()\n {\n return (string) $this->document_product_unitary_value;\n }", "function getTax() \n\t{\n\t\t$tax = Option::where('attribute', '=', 'tax_mod')->first();\n\n\t\treturn (float)$tax->value;\n\t}", "public function getTax()\n {\n return $this->tax;\n }", "public function getCustomerTaxvat();" ]
[ "0.6858557", "0.67300886", "0.6703828", "0.64058685", "0.6342145", "0.63100535", "0.6241133", "0.6219471", "0.611676", "0.603875", "0.6038685", "0.60145015", "0.60071737", "0.5994364", "0.5985622", "0.59708077", "0.59659296", "0.59601104", "0.592522", "0.59091187", "0.58871895", "0.58809495", "0.5877335", "0.5871784", "0.58617973", "0.5853618", "0.5820736", "0.58047783", "0.58037335", "0.5798884" ]
0.8360842
0
Get the value of DOCUMENT_PRODUCT_EAN
public function getDocumentProductEan() { return (string) $this->document_product_ean; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getProductEan(): ?string\n {\n return isset($this->ProductEan) ? $this->ProductEan : null;\n }", "public function getProductEan(): ?string\n {\n return isset($this->ProductEan) ? $this->ProductEan : null;\n }", "public function getProductEan(): ?string\n {\n return isset($this->ProductEan) ? $this->ProductEan : null;\n }", "public function getDocumentProductCest()\n {\n return (string) $this->document_product_cest;\n }", "public function getDocumentProductName()\n {\n return (string) $this->document_product_name;\n }", "public function getDocumentProductCod()\n {\n return (string) $this->document_product_cod;\n }", "public function getEnterprise()\n {\n return $this->getValue('nb_icontact_prospect_enterprise');\n }", "public function getProduct_code () {\n\t$preValue = $this->preGetValue(\"product_code\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->product_code;\n\treturn $data;\n}", "public function getDocumentProductNcm()\n {\n return (string) $this->document_product_ncm;\n }", "public function getProdEra()\n {\n return $this->prod_era;\n }", "function enterprise_edition(){\n \n if( !isset( $this->enterprise_edition ) ){\n\n $enterprise_check = $this->single_rec(\"select 'YES' enterprise_edition from v\\$version where lower(banner) like '%enterprise%'\");\n\n if( isset( $enterprise_check->ENTERPRISE_EDITION ) ){\n $this->enterprise_edition = 1;\n }else{\n $this->enterprise_edition = 0;\n }\n\n }\n return $this->enterprise_edition; \n }", "protected function getEgn()\n\t{\n\t\treturn $this->egn;\n\t}", "public function getEIN()\n {\n return $this->eIN;\n }", "public function getDocumentProductQtd()\n {\n return (string) $this->document_product_qtd;\n }", "public function getEcom()\n {\n return $this->ecom;\n }", "public function getAssignProduct() {\n return $this->scopeConfig->getValue ( static::XML_ASSIGN_PRODUCT, ScopeInterface::SCOPE_STORE );\n }", "public function getProduct()\n\t{\n\t\treturn $this->getKeyValue('product'); \n\n\t}", "public function getProduct_name () {\n\t$preValue = $this->preGetValue(\"product_name\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->product_name;\n\treturn $data;\n}", "public function getProduct_desc () {\n\t$preValue = $this->preGetValue(\"product_desc\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->getClass()->getFieldDefinition(\"product_desc\")->preGetData($this);\n\treturn $data;\n}", "public function getDocumentProductPisAliquota()\n {\n return (string) $this->document_product_pis_aliquota;\n }", "public function getEnseigne()\n {\n return $this->_enseigne;\n }", "public function getProducte()\n {\n return $this->producte;\n }", "function getProductCode()\n {\n return $this->productCode;\n }", "public function getLibelleEcr() {\n return $this->libelleEcr;\n }", "public function getProd_niche () {\n\t$preValue = $this->preGetValue(\"prod_niche\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->getClass()->getFieldDefinition(\"prod_niche\")->preGetData($this);\n\treturn $data;\n}", "protected function get_kit_product_xref() {\n return $this->kit_product_xref;\n }", "private function getProductIdentifierField()\n {\n if (!$this->productEntityIdentifierField) {\n $this->productEntityIdentifierField = $this->getMetadataPool()\n ->getMetadata(\\Magento\\Catalog\\Api\\Data\\ProductInterface::class)\n ->getIdentifierField();\n }\n return $this->productEntityIdentifierField;\n }", "public function getE()\n {\n return $this->E;\n }", "function getE() {\n return $this->E;\n }", "public function getDocumentProductDiscount()\n {\n return (string) $this->document_product_discount;\n }" ]
[ "0.67810625", "0.67810625", "0.67810625", "0.6373027", "0.6343185", "0.63141245", "0.62704283", "0.6144007", "0.61240923", "0.6076268", "0.6012841", "0.6012428", "0.5948489", "0.59042156", "0.58385324", "0.57786787", "0.57461154", "0.5739561", "0.5716368", "0.57097673", "0.5655418", "0.565442", "0.5603822", "0.5570486", "0.5557165", "0.55469275", "0.55435777", "0.5512503", "0.5511721", "0.55087894" ]
0.8218687
0
Get the value of DOCUMENT_PRODUCT_NAME
public function getDocumentProductName() { return (string) $this->document_product_name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getProduct_name () {\n\t$preValue = $this->preGetValue(\"product_name\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->product_name;\n\treturn $data;\n}", "public function getProductName() {\n //return the value product name\n return $this->ProductName;\n }", "public function getProductName()\n {\n return $this->product_name;\n }", "public function getProductName()\n {\n return $this->product_name;\n }", "public function getProductName(){\n return $this->product_name;\n }", "public function getName_product()\n {\n return $this->name_product;\n }", "public function getProdName()\n {\n return $this->prod_name;\n }", "public function get_productName(): string\n {\n // $res is a string;\n // $dev is a YDevice;\n if ($this->_cacheExpiration == 0) {\n $dev = $this->_getDev();\n if (!($dev == null)) {\n return $dev->getProductName();\n }\n if ($this->load(YAPI::$_yapiContext->GetCacheValidity()) != YAPI::SUCCESS) {\n return self::PRODUCTNAME_INVALID;\n }\n }\n $res = $this->_productName;\n return $res;\n }", "public function getProductName(): ?string\n {\n return $this->productName;\n }", "public function getProductName(): ?string\n {\n return $this->productName;\n }", "public function getProductName(): ?string\n {\n return $this->productName;\n }", "public function getDocumentName()\n {\n $value = $this->get(self::DOCUMENTNAME);\n return $value === null ? (string)$value : $value;\n }", "public function getProductIdentifier()\n {\n $value = $this->_config->get('dataprocessing/products/identifier');\n\n if ($value === null) {\n $value = 'sku';\n }\n\n return $value;\n }", "public function getProduct()\n\t{\n\t\treturn $this->getKeyValue('product'); \n\n\t}", "public function getDocumentName()\n {\n return $this->document_name;\n }", "public function getProductName()\n {\n if (!isset($this->name))\n {\n if (!$this->name = $this->getHelper()->getName($this->getSlug()))\n {\n $this->name = $this->getHelper()->getNameFromPath($this->getPathname());\n }\n }\n\n return $this->name;\n }", "protected function getProductName(): ?string\n\t{\n\t\tstatic $cache = [];\n\n\t\t$productId = $this->getProductId();\n\t\tif (!$productId)\n\t\t{\n\t\t\treturn null;\n\t\t}\n\n\t\tif (!array_key_exists($productId, $cache))\n\t\t{\n\t\t\tLoader::includeModule('iblock');\n\n\t\t\t$row = ElementTable::getRow([\n\t\t\t\t'select' => [\n\t\t\t\t\t'NAME',\n\t\t\t\t],\n\t\t\t\t'filter' => [\n\t\t\t\t\t'=ID' => $productId,\n\t\t\t\t],\n\t\t\t]);\n\t\t\t$cache[$productId] = $row ? (string)$row['NAME'] : null;\n\t\t}\n\n\t\treturn $cache[$productId];\n\t}", "public function getProductKey()\n {\n if (array_key_exists(\"productKey\", $this->_propDict)) {\n return $this->_propDict[\"productKey\"];\n } else {\n return null;\n }\n }", "public function getProductKey()\n {\n if (array_key_exists(\"productKey\", $this->_propDict)) {\n return $this->_propDict[\"productKey\"];\n } else {\n return null;\n }\n }", "public function getProdTitle()\n {\n return $this->prod_title;\n }", "public function getDocumentProductCod()\n {\n return (string) $this->document_product_cod;\n }", "public function getDocumentProductEan()\n {\n return (string) $this->document_product_ean;\n }", "public function getAssignProduct() {\n return $this->scopeConfig->getValue ( static::XML_ASSIGN_PRODUCT, ScopeInterface::SCOPE_STORE );\n }", "public function getDocumentProductCest()\n {\n return (string) $this->document_product_cest;\n }", "public function getProduct_code () {\n\t$preValue = $this->preGetValue(\"product_code\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->product_code;\n\treturn $data;\n}", "public function getProduct()\r\n {\r\n return $this->_params['product'];\r\n }", "public function getProdName(){\n\t\treturn array_keys($this->_products);\n\t}", "public function getEntityName()\n {\n return CacheKeys::PRODUCT_VARCHAR;\n }", "private function getProductIdentifierField()\n {\n if (!$this->productEntityIdentifierField) {\n $this->productEntityIdentifierField = $this->getMetadataPool()\n ->getMetadata(\\Magento\\Catalog\\Api\\Data\\ProductInterface::class)\n ->getIdentifierField();\n }\n return $this->productEntityIdentifierField;\n }", "public static function get_name() {\n $type = static::get_type();\n return util::string(\"product:{$type}\");\n }" ]
[ "0.7640602", "0.7332767", "0.7137405", "0.70744264", "0.68116105", "0.677168", "0.67213136", "0.6633651", "0.645404", "0.645404", "0.645404", "0.64506495", "0.6426123", "0.637185", "0.6345442", "0.6321905", "0.6311883", "0.63108367", "0.63108367", "0.6299598", "0.6297939", "0.6287581", "0.6177279", "0.61611193", "0.61589074", "0.6139385", "0.61114043", "0.61048853", "0.6095721", "0.60914284" ]
0.8192818
0
Get the value of DOCUMENT_PRODUCT_QTD
public function getDocumentProductQtd() { return (string) $this->document_product_qtd; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDocumentProductName()\n {\n return (string) $this->document_product_name;\n }", "protected function get_kit_product_xref() {\n return $this->kit_product_xref;\n }", "public function getDocumentProductUnitaryValue()\n {\n return (string) $this->document_product_unitary_value;\n }", "public function getDocumentProductCest()\n {\n return (string) $this->document_product_cest;\n }", "public function getProduct()\n\t{\n\t\treturn $this->getKeyValue('product'); \n\n\t}", "public function getQteEnt() {\n return $this->qteEnt;\n }", "public function getQtde()\n {\n return $this->qtde;\n }", "public function getProductData()\n {\n return $this->_coreRegistry->registry('current_product');\n }", "public function getDocumentProductCod()\n {\n return (string) $this->document_product_cod;\n }", "public function getQtd() {\r\n if (isset($this->data)) {\r\n $this->qtd = $this->data->rowCount();\r\n return $this->qtd;\r\n } else {\r\n return '0';\r\n }\r\n }", "protected function _getProductQtd()\n {\n if ($this->has('id')) {\n $orderDetailsTable = TableRegistry::get('OrderDetails');\n $order_details = $orderDetailsTable->find()->where(['order_id' => $this->id])->count();\n return $order_details;\n }\n }", "public function getDocumentProductEan()\n {\n return (string) $this->document_product_ean;\n }", "public function getProduct() {\n return $this->getValueOrDefault('Product');\n }", "public function getQntd()\n {\n return $this->qntd;\n }", "function getProductValue($ms3Oid, $featureName, $raw = false) {\n\t\t$this->dbgstart();\n\t\t$FeatureId = $this->calc->dbutils->getFeatureIdByName($featureName);\n\t\t$pid = $this->calc->getProdIdForMs3Oid($ms3Oid);\n\t\t$ret = $this->calc->dbutils->getProductValue($pid, $FeatureId, $raw);\n\t\t$this->dbgend();\n\t\treturn $ret;\n\t}", "public function getAssignProduct() {\n return $this->scopeConfig->getValue ( static::XML_ASSIGN_PRODUCT, ScopeInterface::SCOPE_STORE );\n }", "public function getProductKey()\n {\n if (array_key_exists(\"productKey\", $this->_propDict)) {\n return $this->_propDict[\"productKey\"];\n } else {\n return null;\n }\n }", "public function getProductKey()\n {\n if (array_key_exists(\"productKey\", $this->_propDict)) {\n return $this->_propDict[\"productKey\"];\n } else {\n return null;\n }\n }", "public function getDocumentProductNcm()\n {\n return (string) $this->document_product_ncm;\n }", "public function getProduct() {\n return $this->_registry->registry ( 'current_product' );\n }", "public function getProduct_name () {\n\t$preValue = $this->preGetValue(\"product_name\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->product_name;\n\treturn $data;\n}", "public function getProduct_desc () {\n\t$preValue = $this->preGetValue(\"product_desc\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->getClass()->getFieldDefinition(\"product_desc\")->preGetData($this);\n\treturn $data;\n}", "public function getFaqQuestion () {\n\t$preValue = $this->preGetValue(\"faqQuestion\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->faqQuestion;\n\treturn $data;\n}", "public function getQ()\n {\n return $this->q;\n }", "public function getDocumentProductTaxCod()\n {\n return (string) $this->document_product_tax_cod;\n }", "public function getProduct()\r\n {\r\n return $this->_params['product'];\r\n }", "public function recuperaQTY()\n {\n $results = $this->client->FERecuperaQTYRequest(\n array('argAuth'=>array('Token' => $this->TA->credentials->token,\n 'Sign' => $this->TA->credentials->sign,\n 'cuit' => self::CUIT)));\n \n $e = $this->_checkErrors($results, 'FERecuperaQTYRequest');\n \n return $e == false ? $results->FERecuperaQTYRequestResult->qty->value : false;\n }", "public function getProduct_code () {\n\t$preValue = $this->preGetValue(\"product_code\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->product_code;\n\treturn $data;\n}", "public function getDocumentProductCfop()\n {\n return (string) $this->document_product_cfop;\n }", "public function getDocumentProductIpiCst()\n {\n return (string) $this->document_product_ipi_cst;\n }" ]
[ "0.60668916", "0.5990909", "0.59300536", "0.58928037", "0.5843058", "0.58175474", "0.5812644", "0.5714473", "0.57050836", "0.56999874", "0.566559", "0.56575423", "0.56526875", "0.55947083", "0.55732787", "0.5540638", "0.5502583", "0.5502583", "0.5500493", "0.5495978", "0.5494381", "0.5494344", "0.5474456", "0.54477507", "0.54470146", "0.5442667", "0.5434747", "0.5427877", "0.54255366", "0.54069626" ]
0.7858672
0
Get the value of DOCUMENT_PRODUCT_UNITARY_VALUE
public function getDocumentProductUnitaryValue() { return (string) $this->document_product_unitary_value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDocumentProductQtd()\n {\n return (string) $this->document_product_qtd;\n }", "function getProductValue($ms3Oid, $featureName, $raw = false) {\n\t\t$this->dbgstart();\n\t\t$FeatureId = $this->calc->dbutils->getFeatureIdByName($featureName);\n\t\t$pid = $this->calc->getProdIdForMs3Oid($ms3Oid);\n\t\t$ret = $this->calc->dbutils->getProductValue($pid, $FeatureId, $raw);\n\t\t$this->dbgend();\n\t\treturn $ret;\n\t}", "public function getDocumentProductEan()\n {\n return (string) $this->document_product_ean;\n }", "public function getDocumentProductCest()\n {\n return (string) $this->document_product_cest;\n }", "public function getLicenseReferenceValue(): string\n {\n return $this->value;\n }", "public function getPdfValue() {}", "public function getPdfValue() {}", "public function getPdfValue() {}", "public function getDocumentProductName()\n {\n return (string) $this->document_product_name;\n }", "public function getDocumentProductCod()\n {\n return (string) $this->document_product_cod;\n }", "public function getProduct_code () {\n\t$preValue = $this->preGetValue(\"product_code\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->product_code;\n\treturn $data;\n}", "public function getDocumentProductNcm()\n {\n return (string) $this->document_product_ncm;\n }", "public function getStoredValue()\n {\n return $this->_fields['StoredValue']['FieldValue'];\n }", "public function getProductValueById()\n\t{\n\t\t$product_id = $this->input->post('product_id');\n\t\tif ($product_id) {\n\t\t\t$product_data = $this->model_products->getProductData($product_id);\n\t\t\techo json_encode($product_data);\n\t\t}\n\t}", "public function getProduct() {\n return $this->getValueOrDefault('Product');\n }", "public function getProduct_type () {\n\t$preValue = $this->preGetValue(\"product_type\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->product_type;\n\treturn $data;\n}", "public function getValue()\n {\n return $this->get(self::_VALUE);\n }", "public function getValue()\n {\n return $this->get(self::_VALUE);\n }", "public function getValue()\n {\n return $this->value instanceof ProductDiscountValueDraftBuilder ? $this->value->build() : $this->value;\n }", "public function getProduct()\n\t{\n\t\treturn $this->getKeyValue('product'); \n\n\t}", "public function getUnitPrice()\n\t{\n\t\treturn $this->getKeyValue('unit_price'); \n\n\t}", "public function getDocumentProductDiscount()\n {\n return (string) $this->document_product_discount;\n }", "public function getProductNum()\n {\n $value = $this->get(self::product_num);\n return $value === null ? (integer)$value : $value;\n }", "public function getProduct_name () {\n\t$preValue = $this->preGetValue(\"product_name\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->product_name;\n\treturn $data;\n}", "public function getProduct_desc () {\n\t$preValue = $this->preGetValue(\"product_desc\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->getClass()->getFieldDefinition(\"product_desc\")->preGetData($this);\n\treturn $data;\n}", "function getValue() {\n\t\treturn $this->sValue;\n\t}", "public function getProductWeightUnit()\n {\n return (string) $this->getConfig(\n 'packages/global_settings_default_weight_unit');\n }", "public function rawValue()\n {\n return $this->contributor_service->value;\n }", "public function getAssignProduct() {\n return $this->scopeConfig->getValue ( static::XML_ASSIGN_PRODUCT, ScopeInterface::SCOPE_STORE );\n }", "public function getProductName() {\n //return the value product name\n return $this->ProductName;\n }" ]
[ "0.6129802", "0.5982759", "0.5934245", "0.59032756", "0.5890836", "0.58025223", "0.58025223", "0.58012515", "0.5747697", "0.5681665", "0.5675808", "0.56253016", "0.5596031", "0.55907005", "0.5539242", "0.54866797", "0.5453702", "0.5453702", "0.5451396", "0.54511005", "0.5444927", "0.5442078", "0.54340786", "0.5403593", "0.53653467", "0.53613925", "0.5349663", "0.5330359", "0.5323167", "0.53215295" ]
0.80409646
0
Get the value of DOCUMENT_PRODUCT_NCM
public function getDocumentProductNcm() { return (string) $this->document_product_ncm; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDocumentProductCod()\n {\n return (string) $this->document_product_cod;\n }", "public function getNcm()\n {\n return $this->ncm;\n }", "public function getDocumentProductName()\n {\n return (string) $this->document_product_name;\n }", "public function getDocumentProductCest()\n {\n return (string) $this->document_product_cest;\n }", "public function getProd_niche () {\n\t$preValue = $this->preGetValue(\"prod_niche\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->getClass()->getFieldDefinition(\"prod_niche\")->preGetData($this);\n\treturn $data;\n}", "public function setDocumentProductNcm(int $document_product_ncm)\n {\n $this->collection->put('document_product_ncm', (string) $document_product_ncm);\n }", "public function getDocumentProductEan()\n {\n return (string) $this->document_product_ean;\n }", "public function getDocumentProductQtd()\n {\n return (string) $this->document_product_qtd;\n }", "public function getDocumentProductDiscount()\n {\n return (string) $this->document_product_discount;\n }", "public function getDocumentProductIpiCst()\n {\n return (string) $this->document_product_ipi_cst;\n }", "public function getProduct_code () {\n\t$preValue = $this->preGetValue(\"product_code\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->product_code;\n\treturn $data;\n}", "public function getProductNum()\n {\n $value = $this->get(self::product_num);\n return $value === null ? (integer)$value : $value;\n }", "public function getAssignProduct() {\n return $this->scopeConfig->getValue ( static::XML_ASSIGN_PRODUCT, ScopeInterface::SCOPE_STORE );\n }", "public function getDocumentProductIcmsCst()\n {\n return $this->document_product_icms_cst;\n }", "public function getDocumentProductPisCst()\n {\n return (string) (string) $this->document_product_pis_cst;\n }", "function getId_Producto(){\r\n\t\treturn $this->nId_Producto;\r\n\t}", "public function getProduct()\n\t{\n\t\treturn $this->getKeyValue('product'); \n\n\t}", "public function getDocumentProductCfop()\n {\n return (string) $this->document_product_cfop;\n }", "public function getDocumentProductUnitaryValue()\n {\n return (string) $this->document_product_unitary_value;\n }", "function getNitProveedor()\n {\n return $this->NitProveedor;\n }", "public function getProduct_name () {\n\t$preValue = $this->preGetValue(\"product_name\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->product_name;\n\treturn $data;\n}", "private function getProductIdentifierField()\n {\n if (!$this->productEntityIdentifierField) {\n $this->productEntityIdentifierField = $this->getMetadataPool()\n ->getMetadata(\\Magento\\Catalog\\Api\\Data\\ProductInterface::class)\n ->getIdentifierField();\n }\n return $this->productEntityIdentifierField;\n }", "protected function get_kit_product_xref() {\n return $this->kit_product_xref;\n }", "public function getInfoSerialNumber() {\n //\n // 3COM\n return PNMSnmp::get($this, '1.3.6.1.2.1.47.1.1.1.1.11.1', Yii::app()->params['cacheTtlGetSnmp']);\n }", "public function getProduct()\r\n {\r\n return $this->_params['product'];\r\n }", "public function getProduct() {\n return $this->getValueOrDefault('Product');\n }", "public function getDocumentProductCofinsCst()\n {\n return (string) $this->document_product_cofins_cst;\n }", "public function getProductKey()\n {\n if (array_key_exists(\"productKey\", $this->_propDict)) {\n return $this->_propDict[\"productKey\"];\n } else {\n return null;\n }\n }", "public function getProductKey()\n {\n if (array_key_exists(\"productKey\", $this->_propDict)) {\n return $this->_propDict[\"productKey\"];\n } else {\n return null;\n }\n }", "public function getDocumentProductTaxCod()\n {\n return (string) $this->document_product_tax_cod;\n }" ]
[ "0.67364234", "0.6507221", "0.65016043", "0.6466501", "0.63982826", "0.62910455", "0.6239672", "0.6149253", "0.6134242", "0.6134178", "0.600868", "0.5993247", "0.5928144", "0.58912337", "0.5813766", "0.5804276", "0.58012134", "0.5793698", "0.57884246", "0.5769994", "0.5762754", "0.5684212", "0.5673322", "0.5643757", "0.5632646", "0.5626752", "0.5544123", "0.54987687", "0.54987687", "0.54969925" ]
0.81500036
0
Set the value of DOCUMENT_PRODUCT_NCM
public function setDocumentProductNcm(int $document_product_ncm) { $this->collection->put('document_product_ncm', (string) $document_product_ncm); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDocumentProductNcm()\n {\n return (string) $this->document_product_ncm;\n }", "public function setDocumentProductCest(int $document_product_cest)\n {\n $this->collection->put('document_product_cest', (string) $document_product_cest);\n }", "public function setDocumentProductIcmsCst(string $document_product_icms_cst)\n {\n $this->collection->put('document_product_icms_cst', (string) $document_product_icms_cst);\n }", "public function setDocumentProductCfop(int $document_product_cfop)\n {\n $this->collection->put('document_product_cfop', (string) $document_product_cfop);\n }", "private function setRecountProduct() {\n\n //$this->model->setDocumentNumber($this->getDocumentNumber);\n $sql = null;\n if ($this->getVendor() == self::MYSQL) {\n $sql = \"\n INSERT INTO `productrecount` \n (\n `companyId`,\n `warehouseId`,\n `productCode`,\n `productDescription`,\n `productRecountDate`,\n `productRecountSystemQuantity`,\n `productRecountPhysicalQuantity`,\n `isDefault`,\n `isNew`,\n `isDraft`,\n `isUpdate`,\n `isDelete`,\n `isActive`,\n `isApproved`,\n `isReview`,\n `isPost`,\n `executeBy`,\n `executeTime`\n ) VALUES ( \n '\" . $this->getCompanyId() . \"',\n '\" . $this->model->getWarehouseId() . \"',\n '\" . $this->model->getProductCode() . \"',\n '\" . $this->model->getProductDescription() . \"',\n '\" . $this->model->getProductRecountDate() . \"',\n '\" . $this->model->getProductRecountSystemQuantity() . \"',\n '\" . $this->model->getProductRecountPhysicalQuantity() . \"',\n '\" . $this->model->getIsDefault(0, 'single') . \"',\n '\" . $this->model->getIsNew(0, 'single') . \"',\n '\" . $this->model->getIsDraft(0, 'single') . \"',\n '\" . $this->model->getIsUpdate(0, 'single') . \"',\n '\" . $this->model->getIsDelete(0, 'single') . \"',\n '\" . $this->model->getIsActive(0, 'single') . \"',\n '\" . $this->model->getIsApproved(0, 'single') . \"',\n '\" . $this->model->getIsReview(0, 'single') . \"',\n '\" . $this->model->getIsPost(0, 'single') . \"',\n '\" . $this->model->getExecuteBy() . \"',\n \" . $this->model->getExecuteTime() . \"\n );\";\n } else {\n if ($this->getVendor() == self::MSSQL) {\n $sql = \"\n INSERT INTO [productRecount]\n (\n [productRecountId],\n [companyId],\n [warehouseId],\n [productCode],\n [productDescription],\n [productRecountDate],\n [productRecountSystemQuantity],\n [productRecountPhysicalQuantity],\n [isDefault],\n [isNew],\n [isDraft],\n [isUpdate],\n [isDelete],\n [isActive],\n [isApproved],\n [isReview],\n [isPost],\n [executeBy],\n [executeTime]\n) VALUES (\n '\" . $this->getCompanyId() . \"',\n '\" . $this->model->getWarehouseId() . \"',\n '\" . $this->model->getProductCode() . \"',\n '\" . $this->model->getProductDescription() . \"',\n '\" . $this->model->getProductRecountDate() . \"',\n '\" . $this->model->getProductRecountSystemQuantity() . \"',\n '\" . $this->model->getProductRecountPhysicalQuantity() . \"',\n '\" . $this->model->getIsDefault(0, 'single') . \"',\n '\" . $this->model->getIsNew(0, 'single') . \"',\n '\" . $this->model->getIsDraft(0, 'single') . \"',\n '\" . $this->model->getIsUpdate(0, 'single') . \"',\n '\" . $this->model->getIsDelete(0, 'single') . \"',\n '\" . $this->model->getIsActive(0, 'single') . \"',\n '\" . $this->model->getIsApproved(0, 'single') . \"',\n '\" . $this->model->getIsReview(0, 'single') . \"',\n '\" . $this->model->getIsPost(0, 'single') . \"',\n '\" . $this->model->getExecuteBy() . \"',\n \" . $this->model->getExecuteTime() . \"\n );\";\n } else {\n if ($this->getVendor() == self::ORACLE) {\n $sql = \"\n INSERT INTO PRODUCTRECOUNT\n (\n COMPANYID,\n WAREHOUSEID,\n PRODUCTCODE,\n PRODUCTDESCRIPTION,\n PRODUCTRECOUNTDATE,\n PRODUCTRECOUNTSYSTEMQUANTITY,\n PRODUCTRECOUNTPHYSICALQUANTITY,\n ISDEFAULT,\n ISNEW,\n ISDRAFT,\n ISUPDATE,\n ISDELETE,\n ISACTIVE,\n ISAPPROVED,\n ISREVIEW,\n ISPOST,\n EXECUTEBY,\n EXECUTETIME\n ) VALUES (\n '\" . $this->getCompanyId() . \"',\n '\" . $this->model->getWarehouseId() . \"',\n '\" . $this->model->getProductCode() . \"',\n '\" . $this->model->getProductDescription() . \"',\n '\" . $this->model->getProductRecountDate() . \"',\n '\" . $this->model->getProductRecountSystemQuantity() . \"',\n '\" . $this->model->getProductRecountPhysicalQuantity() . \"',\n '\" . $this->model->getIsDefault(0, 'single') . \"',\n '\" . $this->model->getIsNew(0, 'single') . \"',\n '\" . $this->model->getIsDraft(0, 'single') . \"',\n '\" . $this->model->getIsUpdate(0, 'single') . \"',\n '\" . $this->model->getIsDelete(0, 'single') . \"',\n '\" . $this->model->getIsActive(0, 'single') . \"',\n '\" . $this->model->getIsApproved(0, 'single') . \"',\n '\" . $this->model->getIsReview(0, 'single') . \"',\n '\" . $this->model->getIsPost(0, 'single') . \"',\n '\" . $this->model->getExecuteBy() . \"',\n \" . $this->model->getExecuteTime() . \"\n );\";\n }\n }\n }\n try {\n $this->q->create($sql);\n } catch (\\Exception $e) {\n $this->q->rollback();\n echo json_encode(array(\"success\" => false, \"message\" => $e->getMessage()));\n exit();\n }\n }", "function setSyncItemsCodeProduct()\n {\n }", "public function setDocumentProductIpiCst(int $document_product_ipi_cst)\n {\n $this->collection->put('document_product_ipi_cst', (string) $document_product_ipi_cst);\n }", "public function setDocumentProductPiscst(string $document_product_pis_cst)\n {\n $this->collection->put('document_product_pis_cst', (string) $document_product_pis_cst);\n }", "function setProduct( $product )\n {\n if ( $this->State_ == \"Dirty\" )\n $this->get( $this->ID );\n\n if ( get_class( $product ) == \"ezproduct\" )\n {\n $this->ProductID = $product->id();\n }\n }", "public function getNcm()\n {\n return $this->ncm;\n }", "public function setDocumentProductDiscount(float $document_product_discount)\n {\n $this->collection->put('document_product_discount', (string) $document_product_discount);\n }", "public function setNcm($ncm)\n {\n $this->ncm = $ncm;\n\n return $this;\n }", "public function setProductNum($value)\n {\n return $this->set(self::product_num, $value);\n }", "public function setDefaultProduct($product) {\n $this->values->put('DefaultProduct', $product);\n }", "protected function setProduct_id($value)\n\t{\n\t\tif (isInt($value) || is_null($value)) { $this->product_id = $value; }\n\t}", "public function setDocumentProductCofinsCst(string $document_product_cofins_cst)\n {\n $this->collection->put('document_product_cofins_cst', (string) $document_product_cofins_cst);\n }", "public function setProd_niche ($prod_niche) {\n\t$this->prod_niche = $this->getClass()->getFieldDefinition(\"prod_niche\")->preSetData($this, $prod_niche);\n\treturn $this;\n}", "public function setProductIDs($productIDs)\n {\n $parameters = $this->request->getParameters();\n $parameters['id'] = $productIDs;\n $this->recommendationsUpToDate = false;\n }", "public function setProduct(LineItemProduct $product)\n\t{\n\t\t$this->addKeyValue('product', $product); \n\n\t}", "public function setProduct(Product $product);", "private function _set_nb_qcm() {\n $sql = \"SELECT COUNT(id_qcm) FROM qcm WHERE qcm.id_test = $this->_id_test;\";\n $select = connect_db()->prepare($sql);\n $select->execute();\n $this->_nb_qcm = $select->fetch();\n $select->closeCursor();\n }", "public function product($prod) {\n\t\t$this->upsProductCode = $prod;\n\t}", "public static function product($product)\n {\n static::$product = $product;\n }", "public function getDocumentProductCod()\n {\n return (string) $this->document_product_cod;\n }", "function setProductCode($productCode)\n {\n $this->productCode = $productCode;\n }", "public function setDocumentProductIcmsAliquota(float $document_product_icms_aliquota)\n {\n $this->collection->put('document_product_icms_aliquota', (string) $document_product_icms_aliquota);\n }", "public function setProduct(Product $product)\n {\n $this->product_id = $product->id;\n $this->_calculateTotal();\n }", "public function setProductId($product_id){\n $this->product_id = $product_id;\n }", "public function setDocumentProductCofinsAliquota(float $document_product_cofins_aliquota)\n {\n $this->collection->put('document_product_cofins_aliquota', (string) $document_product_cofins_aliquota);\n }", "public function setNumProducts($numProducts)\n {\n $this->numProducts = $numProducts;\n return $this;\n }" ]
[ "0.67328125", "0.61772215", "0.5627565", "0.5577425", "0.5528688", "0.55231017", "0.55229497", "0.5301814", "0.52691275", "0.5263133", "0.5242944", "0.52088046", "0.51964444", "0.5172375", "0.5153499", "0.50758654", "0.5073894", "0.5042423", "0.50414395", "0.5038642", "0.502418", "0.5016937", "0.500819", "0.5005079", "0.50017226", "0.49915537", "0.49794716", "0.49785405", "0.4974734", "0.49627653" ]
0.7783967
0
Get the value of DOCUMENT_PRODUCT_CEST
public function getDocumentProductCest() { return (string) $this->document_product_cest; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDocumentProductCofinsCst()\n {\n return (string) $this->document_product_cofins_cst;\n }", "public function getDocumentProductIcmsCst()\n {\n return $this->document_product_icms_cst;\n }", "public function getDocumentProductEan()\n {\n return (string) $this->document_product_ean;\n }", "public function getDocumentProductPisCst()\n {\n return (string) (string) $this->document_product_pis_cst;\n }", "public function getDocumentProductIpiCst()\n {\n return (string) $this->document_product_ipi_cst;\n }", "public function getDocumentProductQtd()\n {\n return (string) $this->document_product_qtd;\n }", "public function getDocumentProductCfop()\n {\n return (string) $this->document_product_cfop;\n }", "public function getDocumentProductCod()\n {\n return (string) $this->document_product_cod;\n }", "public function getDocumentProductNcm()\n {\n return (string) $this->document_product_ncm;\n }", "public function getDocumentProductName()\n {\n return (string) $this->document_product_name;\n }", "public function setDocumentProductCest(int $document_product_cest)\n {\n $this->collection->put('document_product_cest', (string) $document_product_cest);\n }", "public function getDocumentProductDiscount()\n {\n return (string) $this->document_product_discount;\n }", "protected function get_kit_product_xref() {\n return $this->kit_product_xref;\n }", "public function getProduct()\n\t{\n\t\treturn $this->getKeyValue('product'); \n\n\t}", "public function getDocumentProductUnitaryValue()\n {\n return (string) $this->document_product_unitary_value;\n }", "public function getDocumentProductTaxCod()\n {\n return (string) $this->document_product_tax_cod;\n }", "public function getProduct_code () {\n\t$preValue = $this->preGetValue(\"product_code\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->product_code;\n\treturn $data;\n}", "public function getAssignProduct() {\n return $this->scopeConfig->getValue ( static::XML_ASSIGN_PRODUCT, ScopeInterface::SCOPE_STORE );\n }", "public function getEnterprise()\n {\n return $this->getValue('nb_icontact_prospect_enterprise');\n }", "public function getProduct_desc () {\n\t$preValue = $this->preGetValue(\"product_desc\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->getClass()->getFieldDefinition(\"product_desc\")->preGetData($this);\n\treturn $data;\n}", "public function getCssCustomProduct()\n {\n return $this->_scopeConfig->getValue('splitprice/split_price_presentation/css_product', \\Magento\\Store\\Model\\ScopeInterface::SCOPE_STORE);\n }", "public function getEntityName()\n {\n return CacheKeys::PRODUCT_VARCHAR;\n }", "public function getProductDescription()\n\t{\n\t\treturn $this->getKeyValue('product_description'); \n\n\t}", "public function getDocumentProductCofinsAliquota()\n {\n return (string) $this->document_product_cofins_aliquota;\n }", "public function getProduct() {\n return $this->getValueOrDefault('Product');\n }", "public function ecm_version() {\n $v = $this->call( 'systemGetEcmVersion' );\n\n return $v ? str_replace( 'Build ', '', $v->version ) : false;\n }", "public function getProductData()\n {\n return $this->_coreRegistry->registry('current_product');\n }", "public function getCssCustomProduct()\n {\n return Mage::getStoreConfig('splitprice/split_price_presentation/css_product');\n }", "public function getProductKey()\n {\n if (array_key_exists(\"productKey\", $this->_propDict)) {\n return $this->_propDict[\"productKey\"];\n } else {\n return null;\n }\n }", "public function getProductKey()\n {\n if (array_key_exists(\"productKey\", $this->_propDict)) {\n return $this->_propDict[\"productKey\"];\n } else {\n return null;\n }\n }" ]
[ "0.70420736", "0.69468904", "0.67904675", "0.6736606", "0.66338587", "0.65226346", "0.6506373", "0.65007895", "0.6497574", "0.6393742", "0.6194189", "0.609255", "0.5992611", "0.5832863", "0.5760884", "0.5735403", "0.57184523", "0.56797934", "0.5654433", "0.56490946", "0.55460405", "0.55449986", "0.55168295", "0.55128294", "0.5493303", "0.54668355", "0.54534006", "0.54472315", "0.5417322", "0.5417322" ]
0.79646033
0
Set the value of DOCUMENT_PRODUCT_CEST
public function setDocumentProductCest(int $document_product_cest) { $this->collection->put('document_product_cest', (string) $document_product_cest); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setDocumentProductCofinsCst(string $document_product_cofins_cst)\n {\n $this->collection->put('document_product_cofins_cst', (string) $document_product_cofins_cst);\n }", "public function setDocumentProductIcmsCst(string $document_product_icms_cst)\n {\n $this->collection->put('document_product_icms_cst', (string) $document_product_icms_cst);\n }", "public function getDocumentProductCest()\n {\n return (string) $this->document_product_cest;\n }", "public function setDocumentProductCfop(int $document_product_cfop)\n {\n $this->collection->put('document_product_cfop', (string) $document_product_cfop);\n }", "public function setDocumentProductIpiCst(int $document_product_ipi_cst)\n {\n $this->collection->put('document_product_ipi_cst', (string) $document_product_ipi_cst);\n }", "public function setDocumentProductPiscst(string $document_product_pis_cst)\n {\n $this->collection->put('document_product_pis_cst', (string) $document_product_pis_cst);\n }", "public function getDocumentProductIcmsCst()\n {\n return $this->document_product_icms_cst;\n }", "public function setDocumentProductNcm(int $document_product_ncm)\n {\n $this->collection->put('document_product_ncm', (string) $document_product_ncm);\n }", "function setProduct( $product )\n {\n if ( $this->State_ == \"Dirty\" )\n $this->get( $this->ID );\n\n if ( get_class( $product ) == \"ezproduct\" )\n {\n $this->ProductID = $product->id();\n }\n }", "private function setRecountProduct() {\n\n //$this->model->setDocumentNumber($this->getDocumentNumber);\n $sql = null;\n if ($this->getVendor() == self::MYSQL) {\n $sql = \"\n INSERT INTO `productrecount` \n (\n `companyId`,\n `warehouseId`,\n `productCode`,\n `productDescription`,\n `productRecountDate`,\n `productRecountSystemQuantity`,\n `productRecountPhysicalQuantity`,\n `isDefault`,\n `isNew`,\n `isDraft`,\n `isUpdate`,\n `isDelete`,\n `isActive`,\n `isApproved`,\n `isReview`,\n `isPost`,\n `executeBy`,\n `executeTime`\n ) VALUES ( \n '\" . $this->getCompanyId() . \"',\n '\" . $this->model->getWarehouseId() . \"',\n '\" . $this->model->getProductCode() . \"',\n '\" . $this->model->getProductDescription() . \"',\n '\" . $this->model->getProductRecountDate() . \"',\n '\" . $this->model->getProductRecountSystemQuantity() . \"',\n '\" . $this->model->getProductRecountPhysicalQuantity() . \"',\n '\" . $this->model->getIsDefault(0, 'single') . \"',\n '\" . $this->model->getIsNew(0, 'single') . \"',\n '\" . $this->model->getIsDraft(0, 'single') . \"',\n '\" . $this->model->getIsUpdate(0, 'single') . \"',\n '\" . $this->model->getIsDelete(0, 'single') . \"',\n '\" . $this->model->getIsActive(0, 'single') . \"',\n '\" . $this->model->getIsApproved(0, 'single') . \"',\n '\" . $this->model->getIsReview(0, 'single') . \"',\n '\" . $this->model->getIsPost(0, 'single') . \"',\n '\" . $this->model->getExecuteBy() . \"',\n \" . $this->model->getExecuteTime() . \"\n );\";\n } else {\n if ($this->getVendor() == self::MSSQL) {\n $sql = \"\n INSERT INTO [productRecount]\n (\n [productRecountId],\n [companyId],\n [warehouseId],\n [productCode],\n [productDescription],\n [productRecountDate],\n [productRecountSystemQuantity],\n [productRecountPhysicalQuantity],\n [isDefault],\n [isNew],\n [isDraft],\n [isUpdate],\n [isDelete],\n [isActive],\n [isApproved],\n [isReview],\n [isPost],\n [executeBy],\n [executeTime]\n) VALUES (\n '\" . $this->getCompanyId() . \"',\n '\" . $this->model->getWarehouseId() . \"',\n '\" . $this->model->getProductCode() . \"',\n '\" . $this->model->getProductDescription() . \"',\n '\" . $this->model->getProductRecountDate() . \"',\n '\" . $this->model->getProductRecountSystemQuantity() . \"',\n '\" . $this->model->getProductRecountPhysicalQuantity() . \"',\n '\" . $this->model->getIsDefault(0, 'single') . \"',\n '\" . $this->model->getIsNew(0, 'single') . \"',\n '\" . $this->model->getIsDraft(0, 'single') . \"',\n '\" . $this->model->getIsUpdate(0, 'single') . \"',\n '\" . $this->model->getIsDelete(0, 'single') . \"',\n '\" . $this->model->getIsActive(0, 'single') . \"',\n '\" . $this->model->getIsApproved(0, 'single') . \"',\n '\" . $this->model->getIsReview(0, 'single') . \"',\n '\" . $this->model->getIsPost(0, 'single') . \"',\n '\" . $this->model->getExecuteBy() . \"',\n \" . $this->model->getExecuteTime() . \"\n );\";\n } else {\n if ($this->getVendor() == self::ORACLE) {\n $sql = \"\n INSERT INTO PRODUCTRECOUNT\n (\n COMPANYID,\n WAREHOUSEID,\n PRODUCTCODE,\n PRODUCTDESCRIPTION,\n PRODUCTRECOUNTDATE,\n PRODUCTRECOUNTSYSTEMQUANTITY,\n PRODUCTRECOUNTPHYSICALQUANTITY,\n ISDEFAULT,\n ISNEW,\n ISDRAFT,\n ISUPDATE,\n ISDELETE,\n ISACTIVE,\n ISAPPROVED,\n ISREVIEW,\n ISPOST,\n EXECUTEBY,\n EXECUTETIME\n ) VALUES (\n '\" . $this->getCompanyId() . \"',\n '\" . $this->model->getWarehouseId() . \"',\n '\" . $this->model->getProductCode() . \"',\n '\" . $this->model->getProductDescription() . \"',\n '\" . $this->model->getProductRecountDate() . \"',\n '\" . $this->model->getProductRecountSystemQuantity() . \"',\n '\" . $this->model->getProductRecountPhysicalQuantity() . \"',\n '\" . $this->model->getIsDefault(0, 'single') . \"',\n '\" . $this->model->getIsNew(0, 'single') . \"',\n '\" . $this->model->getIsDraft(0, 'single') . \"',\n '\" . $this->model->getIsUpdate(0, 'single') . \"',\n '\" . $this->model->getIsDelete(0, 'single') . \"',\n '\" . $this->model->getIsActive(0, 'single') . \"',\n '\" . $this->model->getIsApproved(0, 'single') . \"',\n '\" . $this->model->getIsReview(0, 'single') . \"',\n '\" . $this->model->getIsPost(0, 'single') . \"',\n '\" . $this->model->getExecuteBy() . \"',\n \" . $this->model->getExecuteTime() . \"\n );\";\n }\n }\n }\n try {\n $this->q->create($sql);\n } catch (\\Exception $e) {\n $this->q->rollback();\n echo json_encode(array(\"success\" => false, \"message\" => $e->getMessage()));\n exit();\n }\n }", "public function setCae(): Documents\r\n {\r\n if (defined('DOCUMENT_SET_CAE_ID')) {\r\n $this->caeId = (int)DOCUMENT_SET_CAE_ID;\r\n } else {\r\n $this->caeId = 0;\r\n }\r\n\r\n return $this;\r\n }", "public function testSetProductIdGetProductId()\n {\n $oTestObject = oxNew('oxArticleException', $this->_sMsg);\n $this->assertNull($oTestObject->getProductId());\n\n $this->_oTestObject->setProductId('xxx');\n $this->assertEquals('xxx', $this->_oTestObject->getProductId());\n }", "public function getDocumentProductCofinsCst()\n {\n return (string) $this->document_product_cofins_cst;\n }", "public function setProductId($product_id){\n $this->product_id = $product_id;\n }", "public function setProduct(LineItemProduct $product)\n\t{\n\t\t$this->addKeyValue('product', $product); \n\n\t}", "public function reindexTragentoProduct() {\n $tp = new Magemore_Tragento_Reindex_Product_Process();\n }", "public function setProduct(Product $product)\n {\n $this->product_id = $product->id;\n $this->_calculateTotal();\n }", "protected function setDocument()\n\t{\n\t\t$isNew = ($this->item->id < 1);\n\t\t$document = Factory::getDocument();\n\t\t$document->setTitle($isNew ? \\JText::_('COM_BOOKINGMANAGER_CUSTOMEREDITOR_CREATING') :\n\t\t\t\\JText::_('COM_BOOKINGMANAGER_CUSTOMEREDITOR_EDITING'));\n\t}", "function setSyncItemsCodeProduct()\n {\n }", "public function setProduct()\n {\n // get the existing products array\n $products = $this->getProducts();\n // push the new product to the array\n array_push($products, $this);\n $file = fopen($_SERVER['DOCUMENT_ROOT'] . \"/mpm_challenge/problem4/db/db.json\", \"w+\") or die(\"not opened\");\n fwrite($file, json_encode($products));\n fclose($file);\n }", "protected function setProduct_id($value)\n\t{\n\t\tif (isInt($value) || is_null($value)) { $this->product_id = $value; }\n\t}", "public function testSetLienDocument() {\n\n $obj = new AttestationCacm();\n\n $obj->setLienDocument(\"lienDocument\");\n $this->assertEquals(\"lienDocument\", $obj->getLienDocument());\n }", "public function testSetLienDocument() {\n\n $obj = new FichesControlesEntetes();\n\n $obj->setLienDocument(\"lienDocument\");\n $this->assertEquals(\"lienDocument\", $obj->getLienDocument());\n }", "public function getDocumentProductEan()\n {\n return (string) $this->document_product_ean;\n }", "public function testSetEtabConfidentialiteQp() {\n\n $obj = new Collaborateurs();\n\n $obj->setEtabConfidentialiteQp(\"etabConfidentialiteQp\");\n $this->assertEquals(\"etabConfidentialiteQp\", $obj->getEtabConfidentialiteQp());\n }", "public function productsAction()\n {\n $this->_initCoursedoc();\n $this->loadLayout();\n $this->getLayout()->getBlock('coursedoc.edit.tab.product')\n ->setCoursedocProducts($this->getRequest()->getPost('coursedoc_products', null));\n $this->renderLayout();\n }", "public function testSetPriceProduct()\n {\n $product = new Product();\n $value = 10.99;\n $product->setPrice($value);\n $this->assertEquals($value, $product->getPrice());\n }", "private function setDocument(&$document) {\n\t\t$this->document = $document;\n\t}", "protected function setEcommerceValues()\n {\n $this->setTxnType('01'); // Purchase\n $this->setTransactionCurrencyCode(826); // Pound sterling\n $this->setTerminalCountryCode(826); // United Kingdom\n\n // CNP/ECommerce (if flagged for payer authorisation with acquirer; no\n // CNP transactions are allowed with the exception of refunds)\n $this->setApacsTerminalCapabilities(4298);\n\n $this->setCaptureMethod(12); // Keyed Cardholder Not Present E-Commerce Order\n $this->setProcessingIdentifier(1); // Auth and Charge\n }", "public function setterSetsTcemain() {\n\t\t\n\t\t$TCE = $this->controller->getTCE();\n\t\t\n\t\t$this->assertInstanceOf(t3lib_TCEmain, $TCE);\n\t}" ]
[ "0.6345856", "0.62950885", "0.5908075", "0.5731057", "0.5718032", "0.5715447", "0.5651033", "0.55116856", "0.54393", "0.5427995", "0.5427111", "0.53686357", "0.5306004", "0.51891226", "0.51050806", "0.5090301", "0.5087608", "0.5063357", "0.50600106", "0.5050315", "0.50469404", "0.5044906", "0.5029096", "0.5005335", "0.49815238", "0.49786547", "0.49654257", "0.49619454", "0.49354666", "0.4897984" ]
0.758849
0
Get the value of DOCUMENT_PRODUCT_CFOP
public function getDocumentProductCfop() { return (string) $this->document_product_cfop; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDocumentProductCest()\n {\n return (string) $this->document_product_cest;\n }", "public function setDocumentProductCfop(int $document_product_cfop)\n {\n $this->collection->put('document_product_cfop', (string) $document_product_cfop);\n }", "public function getCfop()\n {\n return $this->cfop;\n }", "public function getDocumentProductCod()\n {\n return (string) $this->document_product_cod;\n }", "public function getDocumentProductCofinsCst()\n {\n return (string) $this->document_product_cofins_cst;\n }", "public function getDocumentProductPisCst()\n {\n return (string) (string) $this->document_product_pis_cst;\n }", "public function getDocumentProductName()\n {\n return (string) $this->document_product_name;\n }", "public function getDocumentProductDiscount()\n {\n return (string) $this->document_product_discount;\n }", "public function getDocumentProductNcm()\n {\n return (string) $this->document_product_ncm;\n }", "public function getDocumentProductIpiCst()\n {\n return (string) $this->document_product_ipi_cst;\n }", "public function getDocumentProductQtd()\n {\n return (string) $this->document_product_qtd;\n }", "public function getProductFnacId()\n {\n return $this->product_fnac_id;\n }", "public function getProduct()\n\t{\n\t\treturn $this->getKeyValue('product'); \n\n\t}", "protected function get_kit_product_xref() {\n return $this->kit_product_xref;\n }", "public function getAssignProduct() {\n return $this->scopeConfig->getValue ( static::XML_ASSIGN_PRODUCT, ScopeInterface::SCOPE_STORE );\n }", "public function getProduct() {\n return $this->getValueOrDefault('Product');\n }", "public function getProduct_code () {\n\t$preValue = $this->preGetValue(\"product_code\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->product_code;\n\treturn $data;\n}", "public function getProduct_category () {\n\t$preValue = $this->preGetValue(\"product_category\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->getClass()->getFieldDefinition(\"product_category\")->preGetData($this);\n\treturn $data;\n}", "public function getDocumentProductTaxCod()\n {\n return (string) $this->document_product_tax_cod;\n }", "public function getProduct() {\n return $this->_registry->registry ( 'current_product' );\n }", "public function getProduct()\r\n {\r\n return $this->_params['product'];\r\n }", "public function getCdProduto()\n {\n return $this->cd_produto;\n }", "public function getDocumentProductCofinsAliquota()\n {\n return (string) $this->document_product_cofins_aliquota;\n }", "public function getDocumentProductEan()\n {\n return (string) $this->document_product_ean;\n }", "public function getProduct_desc () {\n\t$preValue = $this->preGetValue(\"product_desc\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->getClass()->getFieldDefinition(\"product_desc\")->preGetData($this);\n\treturn $data;\n}", "protected function _fcGetCurrentVersion() \n {\n return $this->_oFcpoHelper->fcpoGetIntShopVersion();\n }", "public function getCdProduto()\n {\n return $this->Cd_produto;\n }", "public function getProductCode()\n {\n if (array_key_exists(\"productCode\", $this->_propDict)) {\n return $this->_propDict[\"productCode\"];\n } else {\n return null;\n }\n }", "public function getDocumentProductIcmsCst()\n {\n return $this->document_product_icms_cst;\n }", "public function getCodigoProducto()\n {\n return $this->codigoProducto;\n }" ]
[ "0.64385766", "0.6410077", "0.63474876", "0.6285445", "0.6139216", "0.60628617", "0.604928", "0.6034629", "0.5986121", "0.5904679", "0.58149004", "0.5776538", "0.5666895", "0.56599075", "0.5614573", "0.5595402", "0.557422", "0.5564377", "0.5537588", "0.5522951", "0.5495327", "0.5450942", "0.5434706", "0.5423137", "0.54079527", "0.53966475", "0.53822184", "0.53818136", "0.53763473", "0.53728515" ]
0.79477
0
Set the value of DOCUMENT_PRODUCT_CFOP
public function setDocumentProductCfop(int $document_product_cfop) { $this->collection->put('document_product_cfop', (string) $document_product_cfop); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDocumentProductCfop()\n {\n return (string) $this->document_product_cfop;\n }", "public function setDocumentProductCest(int $document_product_cest)\n {\n $this->collection->put('document_product_cest', (string) $document_product_cest);\n }", "public function SetDefaultCfop()\n {\n //mark all other user cfopls as not default\n $queryRemoveDefault = \"UPDATE user_cfop SET default_cfop=\".UserCfop::NON_DEFAULT_CFOP.\" WHERE user_id=:user_id\";\n $removeDefault = $this->sqlDataBase->prepare($queryRemoveDefault);\n $removeDefault->execute(array(':user_id'=>$this->userId));\n\n //mark current cfop as default\n $querySetDefault = \"UPDATE user_cfop SET default_cfop=\".UserCfop::DEFAULT_CFOP.\" WHERE id=:user_cfop_id\";\n $setDefault = $this->sqlDataBase->prepare($querySetDefault);\n $setDefault->execute(array(':user_cfop_id'=>$this->userCfopId));\n }", "public function setDocumentProductCofinsCst(string $document_product_cofins_cst)\n {\n $this->collection->put('document_product_cofins_cst', (string) $document_product_cofins_cst);\n }", "public function setCfop($cfop)\n {\n $this->cfop = $cfop;\n\n return $this;\n }", "public function setDocumentProductPiscst(string $document_product_pis_cst)\n {\n $this->collection->put('document_product_pis_cst', (string) $document_product_pis_cst);\n }", "public function setDocumentProductNcm(int $document_product_ncm)\n {\n $this->collection->put('document_product_ncm', (string) $document_product_ncm);\n }", "public function actionSetFedIdToPrintDocument()\n {\n if (Yii::app()->request->isAjaxRequest && isset($_POST['fed_id'])) {\n $fed_id = trim($_POST['fed_id']);\n $company = Companies::model()->with('client')->findByAttributes(array(\n 'Company_Fed_ID' => $fed_id,\n ));\n\n if ($company) {\n $_SESSION['document_to_print'] = $fed_id;\n } else {\n $_SESSION['document_to_print'] = '';\n }\n }\n }", "public function setDocumentProductCofinsAliquota(float $document_product_cofins_aliquota)\n {\n $this->collection->put('document_product_cofins_aliquota', (string) $document_product_cofins_aliquota);\n }", "public function setDocumentProductDiscount(float $document_product_discount)\n {\n $this->collection->put('document_product_discount', (string) $document_product_discount);\n }", "public function product($prod) {\n\t\t$this->upsProductCode = $prod;\n\t}", "public function setDocumentProductIpiCst(int $document_product_ipi_cst)\n {\n $this->collection->put('document_product_ipi_cst', (string) $document_product_ipi_cst);\n }", "public function setCpfAttribute($value) {\n $this->attributes['cpf'] = str_replace('.', '', $value);\n }", "private function setProductParameters(string $action): void\n {\n //====================================================================//\n // Check if object if in Remote Create Mode\n $isLockedForCreation = Splash::object(\"Product\")->isLocked();\n\n //====================================================================//\n // Store Global Action Parameters\n $this->objectType = \"Product\";\n if ('PRODUCT_CREATE' == $action) {\n $this->action = SPL_A_CREATE;\n $this->comment = \"Product Created on Dolibarr\";\n } elseif ('PRODUCT_MODIFY' == $action) {\n $this->action = SPL_A_UPDATE;\n $this->comment = \"Product Updated on Dolibarr\";\n } elseif ('PRODUCT_SET_MULTILANGS' == $action) {\n $this->action = ($isLockedForCreation ? SPL_A_CREATE : SPL_A_UPDATE);\n $this->comment = \"Product Description Updated on Dolibarr\";\n } elseif ('STOCK_MOVEMENT' == $action) {\n $this->action = ($isLockedForCreation ? SPL_A_CREATE : SPL_A_UPDATE);\n $this->comment = \"Product Stock Updated on Dolibarr\";\n } elseif ('PRODUCT_PRICE_MODIFY' == $action) {\n $this->action = ($isLockedForCreation ? SPL_A_CREATE : SPL_A_UPDATE);\n $this->comment = \"Product Price Updated on Dolibarr\";\n } elseif ('PRODUCT_DELETE' == $action) {\n $this->action = SPL_A_DELETE;\n $this->comment = \"Product Deleted on Dolibarr\";\n }\n //====================================================================//\n // Commit Delete for Base Product if Required\n $this->onProductVariantChanges($action);\n }", "function setProduct( $product )\n {\n if ( $this->State_ == \"Dirty\" )\n $this->get( $this->ID );\n\n if ( get_class( $product ) == \"ezproduct\" )\n {\n $this->ProductID = $product->id();\n }\n }", "private function setRecountProduct() {\n\n //$this->model->setDocumentNumber($this->getDocumentNumber);\n $sql = null;\n if ($this->getVendor() == self::MYSQL) {\n $sql = \"\n INSERT INTO `productrecount` \n (\n `companyId`,\n `warehouseId`,\n `productCode`,\n `productDescription`,\n `productRecountDate`,\n `productRecountSystemQuantity`,\n `productRecountPhysicalQuantity`,\n `isDefault`,\n `isNew`,\n `isDraft`,\n `isUpdate`,\n `isDelete`,\n `isActive`,\n `isApproved`,\n `isReview`,\n `isPost`,\n `executeBy`,\n `executeTime`\n ) VALUES ( \n '\" . $this->getCompanyId() . \"',\n '\" . $this->model->getWarehouseId() . \"',\n '\" . $this->model->getProductCode() . \"',\n '\" . $this->model->getProductDescription() . \"',\n '\" . $this->model->getProductRecountDate() . \"',\n '\" . $this->model->getProductRecountSystemQuantity() . \"',\n '\" . $this->model->getProductRecountPhysicalQuantity() . \"',\n '\" . $this->model->getIsDefault(0, 'single') . \"',\n '\" . $this->model->getIsNew(0, 'single') . \"',\n '\" . $this->model->getIsDraft(0, 'single') . \"',\n '\" . $this->model->getIsUpdate(0, 'single') . \"',\n '\" . $this->model->getIsDelete(0, 'single') . \"',\n '\" . $this->model->getIsActive(0, 'single') . \"',\n '\" . $this->model->getIsApproved(0, 'single') . \"',\n '\" . $this->model->getIsReview(0, 'single') . \"',\n '\" . $this->model->getIsPost(0, 'single') . \"',\n '\" . $this->model->getExecuteBy() . \"',\n \" . $this->model->getExecuteTime() . \"\n );\";\n } else {\n if ($this->getVendor() == self::MSSQL) {\n $sql = \"\n INSERT INTO [productRecount]\n (\n [productRecountId],\n [companyId],\n [warehouseId],\n [productCode],\n [productDescription],\n [productRecountDate],\n [productRecountSystemQuantity],\n [productRecountPhysicalQuantity],\n [isDefault],\n [isNew],\n [isDraft],\n [isUpdate],\n [isDelete],\n [isActive],\n [isApproved],\n [isReview],\n [isPost],\n [executeBy],\n [executeTime]\n) VALUES (\n '\" . $this->getCompanyId() . \"',\n '\" . $this->model->getWarehouseId() . \"',\n '\" . $this->model->getProductCode() . \"',\n '\" . $this->model->getProductDescription() . \"',\n '\" . $this->model->getProductRecountDate() . \"',\n '\" . $this->model->getProductRecountSystemQuantity() . \"',\n '\" . $this->model->getProductRecountPhysicalQuantity() . \"',\n '\" . $this->model->getIsDefault(0, 'single') . \"',\n '\" . $this->model->getIsNew(0, 'single') . \"',\n '\" . $this->model->getIsDraft(0, 'single') . \"',\n '\" . $this->model->getIsUpdate(0, 'single') . \"',\n '\" . $this->model->getIsDelete(0, 'single') . \"',\n '\" . $this->model->getIsActive(0, 'single') . \"',\n '\" . $this->model->getIsApproved(0, 'single') . \"',\n '\" . $this->model->getIsReview(0, 'single') . \"',\n '\" . $this->model->getIsPost(0, 'single') . \"',\n '\" . $this->model->getExecuteBy() . \"',\n \" . $this->model->getExecuteTime() . \"\n );\";\n } else {\n if ($this->getVendor() == self::ORACLE) {\n $sql = \"\n INSERT INTO PRODUCTRECOUNT\n (\n COMPANYID,\n WAREHOUSEID,\n PRODUCTCODE,\n PRODUCTDESCRIPTION,\n PRODUCTRECOUNTDATE,\n PRODUCTRECOUNTSYSTEMQUANTITY,\n PRODUCTRECOUNTPHYSICALQUANTITY,\n ISDEFAULT,\n ISNEW,\n ISDRAFT,\n ISUPDATE,\n ISDELETE,\n ISACTIVE,\n ISAPPROVED,\n ISREVIEW,\n ISPOST,\n EXECUTEBY,\n EXECUTETIME\n ) VALUES (\n '\" . $this->getCompanyId() . \"',\n '\" . $this->model->getWarehouseId() . \"',\n '\" . $this->model->getProductCode() . \"',\n '\" . $this->model->getProductDescription() . \"',\n '\" . $this->model->getProductRecountDate() . \"',\n '\" . $this->model->getProductRecountSystemQuantity() . \"',\n '\" . $this->model->getProductRecountPhysicalQuantity() . \"',\n '\" . $this->model->getIsDefault(0, 'single') . \"',\n '\" . $this->model->getIsNew(0, 'single') . \"',\n '\" . $this->model->getIsDraft(0, 'single') . \"',\n '\" . $this->model->getIsUpdate(0, 'single') . \"',\n '\" . $this->model->getIsDelete(0, 'single') . \"',\n '\" . $this->model->getIsActive(0, 'single') . \"',\n '\" . $this->model->getIsApproved(0, 'single') . \"',\n '\" . $this->model->getIsReview(0, 'single') . \"',\n '\" . $this->model->getIsPost(0, 'single') . \"',\n '\" . $this->model->getExecuteBy() . \"',\n \" . $this->model->getExecuteTime() . \"\n );\";\n }\n }\n }\n try {\n $this->q->create($sql);\n } catch (\\Exception $e) {\n $this->q->rollback();\n echo json_encode(array(\"success\" => false, \"message\" => $e->getMessage()));\n exit();\n }\n }", "public function setProducto($pro){ $this->producto = $pro;}", "public function getCfop()\n {\n return $this->cfop;\n }", "public function setDocumentProductIcmsCst(string $document_product_icms_cst)\n {\n $this->collection->put('document_product_icms_cst', (string) $document_product_icms_cst);\n }", "public function setPriceProduct($value)\n {\n $this->priceProduct = $value;\n }", "public function setCf($_cf)\n {\n $this->cf = $_cf;\n }", "public function setPfAttribute($value)\n {\n $this->attributes['pf'] = str_replace('CSTD/PF/', '', $value);\n }", "public function setProductApproval($productApproval, $product, $productData, $productId) {\n $objectManager = \\Magento\\Framework\\App\\ObjectManager::getInstance ();\n $product = $objectManager->create ( 'Magento\\Catalog\\Model\\Product' )->load ( $productId );\n if ($productApproval == 1) {\n $product->setStatus ( 1 );\n $product->setProductApproval(1);\n \n } else {\n $product->setProductApproval ( 0 );\n $product->setStatus(2);\n }\n \n $product->save();\n }", "public function testSetCumProvCp() {\n\n $obj = new Employes();\n\n $obj->setCumProvCp(10.092018);\n $this->assertEquals(10.092018, $obj->getCumProvCp());\n }", "public function setCpf($cpf)\n {\n $this->cpf = $cpf;\n }", "public function setProductPrice($product_price){\n $this->product_price = $product_price;\n }", "public function setDocProp($prop,$val){\n\t\t$this->doc_prop[$prop] = $val;\n\t}", "private function setPurchaseNote() {\n $this->product->set_purchase_note($this->wcData->getPurchaseNote());\n }", "public function setProduct(Product $product);", "protected function setProduct_id($value)\n\t{\n\t\tif (isInt($value) || is_null($value)) { $this->product_id = $value; }\n\t}" ]
[ "0.59732383", "0.58558756", "0.5855747", "0.5799486", "0.5625406", "0.5438423", "0.5410929", "0.53820336", "0.5381488", "0.53658", "0.5317677", "0.52845883", "0.5272279", "0.5245608", "0.51691204", "0.51349854", "0.5071993", "0.507122", "0.50563115", "0.50507486", "0.5018418", "0.50087065", "0.4967528", "0.49644592", "0.49593002", "0.49445307", "0.49152493", "0.491512", "0.4888162", "0.48837447" ]
0.8046122
0
Get the value of DOCUMENT_PRODUCT_DISCOUNT
public function getDocumentProductDiscount() { return (string) $this->document_product_discount; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDocumentProductNcm()\n {\n return (string) $this->document_product_ncm;\n }", "public function getDiscount()\n\t{\n\t\treturn $this->getKeyValue('Discount'); \n\n\t}", "public function getDocumentProductCod()\n {\n return (string) $this->document_product_cod;\n }", "function getDiscountFor($product) {\n\t\treturn 30;\n\t}", "public function getDocumentProductCest()\n {\n return (string) $this->document_product_cest;\n }", "public function getDiscountCatalogObjectId(): ?string\n {\n return $this->discountCatalogObjectId;\n }", "function customerDiscount()\r\n\t{\r\n\t\t$sql = $GLOBALS['db']->Query(\"SELECT Wert FROM \" . PREFIX . \"_modul_shop_kundenrabatte WHERE GruppenId = '\".UGROUP.\"' LIMIT 1\");\r\n\t\t$row = $sql->fetchrow();\r\n\t\t$sql->close();\r\n\t\tif(is_object($row))\r\n\t\t\treturn $row->Wert;\r\n\t}", "public function getDocumentProductName()\n {\n return (string) $this->document_product_name;\n }", "public function getDiscountDescription();", "public function object()\n\t{\n\t\treturn QUICKBOOKS_OBJECT_DISCOUNTITEM;\n\t}", "public function getDiscountCode()\n {\n return $this->discountCode;\n }", "public function getDocumentProductQtd()\n {\n return (string) $this->document_product_qtd;\n }", "public function getDiscountRefunded();", "public function getProduct_desc () {\n\t$preValue = $this->preGetValue(\"product_desc\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->getClass()->getFieldDefinition(\"product_desc\")->preGetData($this);\n\treturn $data;\n}", "public function getDiscountId()\n\t{\n\t\treturn $this->discountId;\n\t}", "function getadvlic_no() {\n return $this->advlic_no;\n }", "public function getDiscountCode()\n {\n if (is_null($this->discountCode)) {\n /** @psalm-var stdClass|array<string, mixed>|null $data */\n $data = $this->raw(self::FIELD_DISCOUNT_CODE);\n if (is_null($data)) {\n return null;\n }\n\n $this->discountCode = DiscountCodeKeyReferenceModel::of($data);\n }\n\n return $this->discountCode;\n }", "public function getDiscountCode()\n {\n return $this->discountCode;\n }", "public function getDiscountCode()\n {\n return $this->discountCode;\n }", "public function getDiscount()\r\n {\r\n return $this->discount;\r\n }", "public function getDocumentProductCfop()\n {\n return (string) $this->document_product_cfop;\n }", "function getDiscountDetailByReferenceNo($reference_no) {\n $qry = $this->db->query(\"select * from tbl_discount_applied where reference_no=$reference_no\");\n if($qry->num_rows()){\n $result = current($qry->result_array());\n $result['original_total_price'] = number_format($result['original_total_price'],2,'.','');\n $result['discount'] = number_format($result['discount'],2,'.','');\n $result['total_price'] = number_format($result['total_price'],2,'.','');\n return $result;\n }\n return false;\n }", "public function getDiscount()\n {\n return $this->discount;\n }", "public function getDiscount()\n {\n return $this->discount;\n }", "public function getDiscount()\n {\n return $this->discount;\n }", "public function getDiscount()\n {\n return $this->discount;\n }", "public function getDiscount()\n {\n return $this->discount;\n }", "public function getDiscount()\n {\n return $this->discount;\n }", "public function getDocumentProductPisCst()\n {\n return (string) (string) $this->document_product_pis_cst;\n }", "public function getDocumentProductEan()\n {\n return (string) $this->document_product_ean;\n }" ]
[ "0.6296907", "0.6009677", "0.60028696", "0.58579147", "0.5838624", "0.58078605", "0.5730429", "0.5718409", "0.56736743", "0.5661221", "0.56548846", "0.5619972", "0.557242", "0.5563782", "0.5551255", "0.55429363", "0.5539255", "0.5536989", "0.5536989", "0.55282253", "0.5519822", "0.5517827", "0.54885334", "0.54885334", "0.54885334", "0.54885334", "0.54885334", "0.54885334", "0.5478153", "0.5474602" ]
0.7122667
0
Set the value of DOCUMENT_PRODUCT_DISCOUNT
public function setDocumentProductDiscount(float $document_product_discount) { $this->collection->put('document_product_discount', (string) $document_product_discount); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setDocumentProductNcm(int $document_product_ncm)\n {\n $this->collection->put('document_product_ncm', (string) $document_product_ncm);\n }", "public function setDiscount(string $discount)\n\t{\n\t\t$this->addKeyValue('Discount', $discount); \n\n\t}", "function set_discount($discount_id = FALSE)\n\t\t{\n\t\t\t$this->load->model('demo_cart_model');\n\t\t\t\n\t\t\t$this->demo_cart_model->demo_set_discount($discount_id);\n\t\t\t\n\t\t\tredirect('cart');\n\t\t}", "public function setDiscounts(array $discounts)\r\n {\r\n $this->_discounts = $discounts;\r\n }", "public function getDocumentProductDiscount()\n {\n return (string) $this->document_product_discount;\n }", "private function setRecountProduct() {\n\n //$this->model->setDocumentNumber($this->getDocumentNumber);\n $sql = null;\n if ($this->getVendor() == self::MYSQL) {\n $sql = \"\n INSERT INTO `productrecount` \n (\n `companyId`,\n `warehouseId`,\n `productCode`,\n `productDescription`,\n `productRecountDate`,\n `productRecountSystemQuantity`,\n `productRecountPhysicalQuantity`,\n `isDefault`,\n `isNew`,\n `isDraft`,\n `isUpdate`,\n `isDelete`,\n `isActive`,\n `isApproved`,\n `isReview`,\n `isPost`,\n `executeBy`,\n `executeTime`\n ) VALUES ( \n '\" . $this->getCompanyId() . \"',\n '\" . $this->model->getWarehouseId() . \"',\n '\" . $this->model->getProductCode() . \"',\n '\" . $this->model->getProductDescription() . \"',\n '\" . $this->model->getProductRecountDate() . \"',\n '\" . $this->model->getProductRecountSystemQuantity() . \"',\n '\" . $this->model->getProductRecountPhysicalQuantity() . \"',\n '\" . $this->model->getIsDefault(0, 'single') . \"',\n '\" . $this->model->getIsNew(0, 'single') . \"',\n '\" . $this->model->getIsDraft(0, 'single') . \"',\n '\" . $this->model->getIsUpdate(0, 'single') . \"',\n '\" . $this->model->getIsDelete(0, 'single') . \"',\n '\" . $this->model->getIsActive(0, 'single') . \"',\n '\" . $this->model->getIsApproved(0, 'single') . \"',\n '\" . $this->model->getIsReview(0, 'single') . \"',\n '\" . $this->model->getIsPost(0, 'single') . \"',\n '\" . $this->model->getExecuteBy() . \"',\n \" . $this->model->getExecuteTime() . \"\n );\";\n } else {\n if ($this->getVendor() == self::MSSQL) {\n $sql = \"\n INSERT INTO [productRecount]\n (\n [productRecountId],\n [companyId],\n [warehouseId],\n [productCode],\n [productDescription],\n [productRecountDate],\n [productRecountSystemQuantity],\n [productRecountPhysicalQuantity],\n [isDefault],\n [isNew],\n [isDraft],\n [isUpdate],\n [isDelete],\n [isActive],\n [isApproved],\n [isReview],\n [isPost],\n [executeBy],\n [executeTime]\n) VALUES (\n '\" . $this->getCompanyId() . \"',\n '\" . $this->model->getWarehouseId() . \"',\n '\" . $this->model->getProductCode() . \"',\n '\" . $this->model->getProductDescription() . \"',\n '\" . $this->model->getProductRecountDate() . \"',\n '\" . $this->model->getProductRecountSystemQuantity() . \"',\n '\" . $this->model->getProductRecountPhysicalQuantity() . \"',\n '\" . $this->model->getIsDefault(0, 'single') . \"',\n '\" . $this->model->getIsNew(0, 'single') . \"',\n '\" . $this->model->getIsDraft(0, 'single') . \"',\n '\" . $this->model->getIsUpdate(0, 'single') . \"',\n '\" . $this->model->getIsDelete(0, 'single') . \"',\n '\" . $this->model->getIsActive(0, 'single') . \"',\n '\" . $this->model->getIsApproved(0, 'single') . \"',\n '\" . $this->model->getIsReview(0, 'single') . \"',\n '\" . $this->model->getIsPost(0, 'single') . \"',\n '\" . $this->model->getExecuteBy() . \"',\n \" . $this->model->getExecuteTime() . \"\n );\";\n } else {\n if ($this->getVendor() == self::ORACLE) {\n $sql = \"\n INSERT INTO PRODUCTRECOUNT\n (\n COMPANYID,\n WAREHOUSEID,\n PRODUCTCODE,\n PRODUCTDESCRIPTION,\n PRODUCTRECOUNTDATE,\n PRODUCTRECOUNTSYSTEMQUANTITY,\n PRODUCTRECOUNTPHYSICALQUANTITY,\n ISDEFAULT,\n ISNEW,\n ISDRAFT,\n ISUPDATE,\n ISDELETE,\n ISACTIVE,\n ISAPPROVED,\n ISREVIEW,\n ISPOST,\n EXECUTEBY,\n EXECUTETIME\n ) VALUES (\n '\" . $this->getCompanyId() . \"',\n '\" . $this->model->getWarehouseId() . \"',\n '\" . $this->model->getProductCode() . \"',\n '\" . $this->model->getProductDescription() . \"',\n '\" . $this->model->getProductRecountDate() . \"',\n '\" . $this->model->getProductRecountSystemQuantity() . \"',\n '\" . $this->model->getProductRecountPhysicalQuantity() . \"',\n '\" . $this->model->getIsDefault(0, 'single') . \"',\n '\" . $this->model->getIsNew(0, 'single') . \"',\n '\" . $this->model->getIsDraft(0, 'single') . \"',\n '\" . $this->model->getIsUpdate(0, 'single') . \"',\n '\" . $this->model->getIsDelete(0, 'single') . \"',\n '\" . $this->model->getIsActive(0, 'single') . \"',\n '\" . $this->model->getIsApproved(0, 'single') . \"',\n '\" . $this->model->getIsReview(0, 'single') . \"',\n '\" . $this->model->getIsPost(0, 'single') . \"',\n '\" . $this->model->getExecuteBy() . \"',\n \" . $this->model->getExecuteTime() . \"\n );\";\n }\n }\n }\n try {\n $this->q->create($sql);\n } catch (\\Exception $e) {\n $this->q->rollback();\n echo json_encode(array(\"success\" => false, \"message\" => $e->getMessage()));\n exit();\n }\n }", "public function set_manual_discount($discount_data = FALSE)\r\n\t{\r\n\t\tif (is_array($discount_data) && ! empty($discount_data))\r\n\t\t{\r\n\t\t\t// Check that any submitted 'New value' discounts are only applied to the shipping total. \r\n\t\t\tif (isset($discount_data['column']) && isset($discount_data['calculation']) && ($discount_data['column'] != 'shipping_total') && ($discount_data['calculation'] == 3))\r\n\t\t\t{\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// Merge the code and manual discounts together, then loop through data and compile an array of all discount ids currently in use.\r\n\t\t\t$existing_discounts = array_merge($this->flexi->cart_contents['settings']['discounts']['manual'], $this->flexi->cart_contents['settings']['discounts']['codes']);\r\n\t\t\t$existing_ids = array();\r\n\t\t\t\t\r\n\t\t\tforeach($existing_discounts as $existing_discount)\r\n\t\t\t{\r\n\t\t\t\t$existing_ids[] = $existing_discount['id'];\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// If an id is not set in the submitted '$discount_data', or if a discount with a matching id already exists, set a new id. \r\n\t\t\tif (! isset($discount_data['id']) || in_array($discount_data['id'], $existing_ids))\r\n\t\t\t{\r\n\t\t\t\t$id = 0;\r\n\t\t\t\twhile (in_array('manual_'.$id, $existing_ids))\r\n\t\t\t\t{\r\n\t\t\t\t\t$id++; \r\n\t\t\t\t}\r\n\t\t\t\t$id = $discount_data['id'] = 'manual_'.$id;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\t$id = $discount_data['id'];\r\n\t\t\t}\r\n\t\t\r\n\t\t\t// Set default values if not submitted.\r\n\t\t\t$discount_data['description'] = (! isset($discount_data['description'])) ? FALSE : $discount_data['description'];\r\n\t\t\t$discount_data['value'] = (! isset($discount_data['value'])) ? 0 : $discount_data['value'];\r\n\t\t\t$discount_data['column'] = (! isset($discount_data['column'])) ? 'total' : $discount_data['column'];\r\n\t\t\t$discount_data['calculation'] = (! isset($discount_data['calculation'])) ? 1 : $discount_data['calculation'];\r\n\t\t\t$discount_data['tax_method'] = (! isset($discount_data['tax_method'])) ? FALSE : $discount_data['tax_method'];\r\n\t\t\t$discount_data['void_reward_points'] = (! isset($discount_data['void_reward_points'])) ? FALSE : $discount_data['void_reward_points'];\r\n\t\t\t\r\n\t\t\t// Set the cart column the discount is targeting and use the value to act as the discounts array key. \r\n\t\t\t// This prevents multiple discounts being applied to the same cart column.\r\n\t\t\t$target_column = $discount_data['column'];\r\n\t\t\t\r\n\t\t\t// Loop through data and set to cart session summary.\r\n\t\t\tforeach($discount_data as $column => $column_value)\r\n\t\t\t{\r\n\t\t\t\tif ($column == 'value')\r\n\t\t\t\t{\r\n\t\t\t\t\t// If a valid discount value is not set, set the default value as zero. \r\n\t\t\t\t\t$column_value = ($this->non_negative($column_value)) ? $this->format_calculation($column_value, 2, TRUE) : 0;\r\n\t\t\t\t}\r\n\t\t\t\telse if ($column == 'column')\r\n\t\t\t\t{\r\n\t\t\t\t\t// If a valid column is not set, discount the 'total' column by default. \r\n\t\t\t\t\t$column_value = (in_array($column_value, array('item_summary_total', 'shipping_total', 'total'))) ? $column_value : 'total';\r\n\t\t\t\t}\r\n\t\t\t\telse if ($column == 'calculation') \r\n\t\t\t\t{\r\n\t\t\t\t\t// If a valid calculation method is not set, a 'percentage' based calculation is set by default.\r\n\t\t\t\t\t// 1 = Percentage Based, 2 = Flat Fee, 3 = New Value.\r\n\t\t\t\t\t$column_value = (in_array($column_value, array(1,2,3))) ? $column_value : 1;\r\n\t\t\t\t}\r\n\t\t\t\telse if ($column == 'tax_method')\r\n\t\t\t\t{\r\n\t\t\t\t\t// If a valid tax method is not set, the tax method is defined by whether cart prices ex/include taxes by default.\r\n\t\t\t\t\t// 0 = Carts Default Tax Method, 1 = Apply Tax Before Discount, 2 = Apply Discount Before Tax, 3 = Apply Discount Before Tax, Add Original Tax.\r\n\t\t\t\t\t$column_value = (in_array($column_value, array(0, 1,2,3))) ? $column_value : 0;\r\n\t\t\t\t}\r\n\t\t\t\telse if ($column == 'void_reward_points')\r\n\t\t\t\t{\r\n\t\t\t\t\t$column_value = (bool)$column_value;\r\n\t\t\t\t}\r\n\t\t\t\telse if (! in_array($column, array('id', 'description')))\r\n\t\t\t\t{\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t$this->flexi->cart_contents['settings']['discounts']['manual'][$target_column][$column] = $column_value;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\treturn TRUE;\r\n\t\t}\r\n\t\t\r\n\t\treturn FALSE;\r\n\t}", "public function setDiscountDescription($description);", "public function AssignDiscount()\n\t{\t\n\t}", "private function setPurchaseNote() {\n $this->product->set_purchase_note($this->wcData->getPurchaseNote());\n }", "function pp_edd_auto_apply_discount() {\n\n\tif ( function_exists( 'edd_is_checkout' ) && edd_is_checkout() ) {\n\n\t\tif ( ! edd_cart_has_discounts() && edd_is_discount_valid( 'BFCM2016', '', false ) ) {\n\t\t\tedd_set_cart_discount( 'BFCM2016' );\n\t\t}\n\n\t}\n\n}", "public function setDiscountUid(?string $discountUid): void\n {\n $this->discountUid = $discountUid;\n }", "public function setDiscounts($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->discounts !== $v) {\n $this->discounts = $v;\n $this->modifiedColumns[KluBillTableMap::COL_DISCOUNTS] = true;\n }\n\n return $this;\n }", "public function setDiscount(int $discount): void\n {\n $this->discount = ($discount > 0 && $discount <= 50) ? $discount : 0;\n\n }", "private function updateProductDiscount(\n ProductInterface $product,\n Request $request\n ): void {\n $discountPercent = $request->request->get('discount_percent') !== '' ? (float) $request->request->get('discount_percent') : null;\n $discountLimitType = $request->request->get('discount_limit_type') !== '' ? $request->request->get('discount_limit_type') : null;\n $discountFromDate = $request->request->get('discount_from_date') !== '' ? $request->request->get('discount_from_date') : null;\n $discountToDate = $request->request->get('discount_to_date') !== '' ? $request->request->get('discount_to_date') : null;\n\n $variants = $product->getVariants();\n foreach ($variants as $variant) {\n // Variant to change\n $variantPricing = $variant->getChannelPricings()->first();\n\n // Change percent\n if ($discountPercent !== null) {\n $variantPricing->setDiscount($discountPercent / 100);\n }\n\n // Continue if no change type\n if ($discountLimitType === self::LIMIT_NO_CHANGE) {\n continue;\n }\n // Discount type\n $variantPricing->setDiscountLimitType($discountLimitType === self::LIMIT_NONE ? null : $discountLimitType);\n\n // Date type discount\n if ($discountLimitType === self::LIMIT_DATETIME) {\n if ($discountFromDate && $discountToDate) {\n $dateFrom = \\DateTime::createFromFormat('Y-m-d', $discountFromDate);\n $dateTo = \\DateTime::createFromFormat('Y-m-d', $discountToDate);\n\n $variantPricing->setDiscountFrom($dateFrom);\n $variantPricing->setDiscountTo($dateTo);\n }\n\n if ($discountFromDate && !$discountToDate) {\n $dateFrom = \\DateTime::createFromFormat('Y-m-d', $discountFromDate);\n\n $variantPricing->setDiscountFrom($dateFrom);\n $variantPricing->setDiscountTo(null);\n }\n\n if (!$discountFromDate && $discountToDate) {\n $dateTo = \\DateTime::createFromFormat('Y-m-d', $discountToDate);\n\n $variantPricing->setDiscountFrom(null);\n $variantPricing->setDiscountTo($dateTo);\n }\n }\n }\n }", "public function setDiscountCatalogObjectId(?string $discountCatalogObjectId): void\n {\n $this->discountCatalogObjectId = $discountCatalogObjectId;\n }", "public function setDiscountAmount($amount);", "public function setDiscountRate($rate)\n\t{\n\t\treturn $this->set('DiscountRate', (float) $rate);\n\t}", "public function setDiscountRefunded($discountRefunded);", "protected function calculateDiscount() : void{\r\n $percentage = ($this->discounted_value * 100) / $this->order->getTrueTotal();\r\n $new_total = $this->order->getTrueTotal() - $this->discounted_value;\r\n\r\n $this->order_discount_value = $this->discounted_value;\r\n $this->order_discount_percentage = $percentage;\r\n $this->order_discount_reason = \"For every \" . $this->products_nr . \" products from category #\" . $this->category_id . \" you get one free. You got: \";\r\n foreach($this->items_matching as $item){\r\n $this->order_discount_reason .= floor($item[\"qty\"] / $this->products_nr) . \" x '\" . $item[\"description\"] . \"' (€\". $item[\"price\"] .\" each) ; \";\r\n }\r\n $this->order_new_total = $new_total;\r\n }", "public function setAttributes_discounted( $attributes_discounted ) {\n\t\t$this->attributes_discounted = $attributes_discounted;\n\t}", "function setSyncItemsCodeProduct()\n {\n }", "public function setDiscount($var)\n {\n GPBUtil::checkDouble($var);\n $this->discount = $var;\n\n return $this;\n }", "public function setDocumentProductCfop(int $document_product_cfop)\n {\n $this->collection->put('document_product_cfop', (string) $document_product_cfop);\n }", "function set_comment_on_receipt() {\n $this->sale_lib->set_comment_on_receipt($this->input->post('show_comment_on_receipt'));\n }", "public function setBillingSubscriptionDiscountsAttribute($value)\n {\n $this->attributes['billing_subscription_discounts'] = empty($value) ? null : json_encode($value);\n }", "function getDiscountFor($product) {\n\t\treturn 30;\n\t}", "private function setEnableReviews() {\n $this->product->set_reviews_allowed($this->wcData->isEnableReviews());\n }", "public function setBaseDiscountAmount($amount);", "public function setProductId($product_id){\n $this->product_id = $product_id;\n }" ]
[ "0.56696135", "0.5646455", "0.55691", "0.55195916", "0.55128676", "0.54512656", "0.5439684", "0.5424697", "0.5378448", "0.53622955", "0.53572786", "0.53374064", "0.5312407", "0.5283846", "0.52652127", "0.52521724", "0.524237", "0.52172405", "0.5120334", "0.5117655", "0.51001793", "0.5041034", "0.5031459", "0.5009698", "0.5005436", "0.50043213", "0.49550518", "0.49499246", "0.49145555", "0.49053508" ]
0.6104721
0
Get the value of DOCUMENT_PRODUCT_ICMS_CST
public function getDocumentProductIcmsCst() { return $this->document_product_icms_cst; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDocumentProductIpiCst()\n {\n return (string) $this->document_product_ipi_cst;\n }", "public function getDocumentProductPisCst()\n {\n return (string) (string) $this->document_product_pis_cst;\n }", "public function getDocumentProductCofinsCst()\n {\n return (string) $this->document_product_cofins_cst;\n }", "public function getDocumentProductCest()\n {\n return (string) $this->document_product_cest;\n }", "public function setDocumentProductIcmsCst(string $document_product_icms_cst)\n {\n $this->collection->put('document_product_icms_cst', (string) $document_product_icms_cst);\n }", "public function getDocumentProductNcm()\n {\n return (string) $this->document_product_ncm;\n }", "public function getICMS()\n {\n return $this->iCMS;\n }", "public function getDocumentProductCod()\n {\n return (string) $this->document_product_cod;\n }", "public function getDocumentProductCfop()\n {\n return (string) $this->document_product_cfop;\n }", "public function setDocumentProductIpiCst(int $document_product_ipi_cst)\n {\n $this->collection->put('document_product_ipi_cst', (string) $document_product_ipi_cst);\n }", "public function getVICMSST()\n {\n return $this->vICMSST;\n }", "public function getDocumentProductIcmsAliquota()\n {\n return (string) $this->document_product_icms_aliquota;\n }", "public function getDocumentProductCofinsAliquota()\n {\n return (string) $this->document_product_cofins_aliquota;\n }", "public function getDocumentProductDiscount()\n {\n return (string) $this->document_product_discount;\n }", "public function getCsoi()\n {\n return $this->csoi;\n }", "public function getCLINICA()\r\n {\r\n return $this->CLINICA;\r\n }", "public function getCIF(){\n $info = $this->getInfo();\n return $info[\"cif\"];\n }", "public function getDocumentProductQtd()\n {\n return (string) $this->document_product_qtd;\n }", "public function getVICMS()\n {\n return $this->vICMS;\n }", "public function getVICMS()\n {\n return $this->vICMS;\n }", "public function getCLSc() {\n\t\treturn $this->clsc;\n\t}", "public function getNIVEL_SOCIOECONOMICO()\r\n {\r\n return $this->NIVEL_SOCIOECONOMICO;\r\n }", "public function imc(){\n\t\t\treturn $this-> peso / ($this->altura * $this->altura);\n\t\t}", "public function getSectoreconomicocodigo()\n\t{\n\t\treturn $this->sectoreconomicocodigo;\n\t}", "public function getNIVELSOCIOECONOMICO()\r\n {\r\n return $this->NIVEL_SOCIOECONOMICO;\r\n }", "public function get_imsi(): string\n {\n // $res is a string;\n if ($this->_cacheExpiration <= YAPI::GetTickCount()) {\n if ($this->load(YAPI::$_yapiContext->GetCacheValidity()) != YAPI::SUCCESS) {\n return self::IMSI_INVALID;\n }\n }\n $res = $this->_imsi;\n return $res;\n }", "public function getDocumentProductName()\n {\n return (string) $this->document_product_name;\n }", "public function getDocumentProductIpiAliquota()\n {\n return (string) $this->document_product_ipi_aliquota;\n }", "public function getProd_niche () {\n\t$preValue = $this->preGetValue(\"prod_niche\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->getClass()->getFieldDefinition(\"prod_niche\")->preGetData($this);\n\treturn $data;\n}", "protected function get_kit_product_xref() {\n return $this->kit_product_xref;\n }" ]
[ "0.76014584", "0.68476796", "0.66269094", "0.6495449", "0.6368592", "0.6332875", "0.6241685", "0.5974501", "0.5929815", "0.578915", "0.57847613", "0.5755456", "0.56317174", "0.54890496", "0.5474392", "0.5465126", "0.54166514", "0.5415783", "0.53968126", "0.53968126", "0.53803825", "0.53119564", "0.5292458", "0.52781105", "0.52434784", "0.5234715", "0.5203003", "0.51348644", "0.5119245", "0.51087296" ]
0.81093717
0
Set the value of DOCUMENT_PRODUCT_ICMS_CST
public function setDocumentProductIcmsCst(string $document_product_icms_cst) { $this->collection->put('document_product_icms_cst', (string) $document_product_icms_cst); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDocumentProductIcmsCst()\n {\n return $this->document_product_icms_cst;\n }", "public function setDocumentProductIpiCst(int $document_product_ipi_cst)\n {\n $this->collection->put('document_product_ipi_cst', (string) $document_product_ipi_cst);\n }", "public function setDocumentProductPiscst(string $document_product_pis_cst)\n {\n $this->collection->put('document_product_pis_cst', (string) $document_product_pis_cst);\n }", "public function getDocumentProductIpiCst()\n {\n return (string) $this->document_product_ipi_cst;\n }", "public function setDocumentProductCest(int $document_product_cest)\n {\n $this->collection->put('document_product_cest', (string) $document_product_cest);\n }", "public function setDocumentProductCofinsCst(string $document_product_cofins_cst)\n {\n $this->collection->put('document_product_cofins_cst', (string) $document_product_cofins_cst);\n }", "public function setDocumentProductNcm(int $document_product_ncm)\n {\n $this->collection->put('document_product_ncm', (string) $document_product_ncm);\n }", "public function setVICMSST($vICMSST)\n {\n $this->vICMSST = $vICMSST;\n return $this;\n }", "public function getICMS()\n {\n return $this->iCMS;\n }", "public function getDocumentProductPisCst()\n {\n return (string) (string) $this->document_product_pis_cst;\n }", "public function setDocumentProductCfop(int $document_product_cfop)\n {\n $this->collection->put('document_product_cfop', (string) $document_product_cfop);\n }", "public function setICMS(\\JansenFelipe\\NFePHPSerialize\\NotaFiscal\\TNFeType\\InfNFeAType\\DetAType\\ImpostoAType\\ICMSAType $iCMS)\n {\n $this->iCMS = $iCMS;\n return $this;\n }", "public function getDocumentProductCofinsCst()\n {\n return (string) $this->document_product_cofins_cst;\n }", "public function setDocumentProductIcmsAliquota(float $document_product_icms_aliquota)\n {\n $this->collection->put('document_product_icms_aliquota', (string) $document_product_icms_aliquota);\n }", "function setSyncItemsCodeProduct()\n {\n }", "public function setVICMS($vICMS)\n {\n $this->vICMS = $vICMS;\n return $this;\n }", "public function setVICMS($vICMS)\n {\n $this->vICMS = $vICMS;\n return $this;\n }", "private function setRecountProduct() {\n\n //$this->model->setDocumentNumber($this->getDocumentNumber);\n $sql = null;\n if ($this->getVendor() == self::MYSQL) {\n $sql = \"\n INSERT INTO `productrecount` \n (\n `companyId`,\n `warehouseId`,\n `productCode`,\n `productDescription`,\n `productRecountDate`,\n `productRecountSystemQuantity`,\n `productRecountPhysicalQuantity`,\n `isDefault`,\n `isNew`,\n `isDraft`,\n `isUpdate`,\n `isDelete`,\n `isActive`,\n `isApproved`,\n `isReview`,\n `isPost`,\n `executeBy`,\n `executeTime`\n ) VALUES ( \n '\" . $this->getCompanyId() . \"',\n '\" . $this->model->getWarehouseId() . \"',\n '\" . $this->model->getProductCode() . \"',\n '\" . $this->model->getProductDescription() . \"',\n '\" . $this->model->getProductRecountDate() . \"',\n '\" . $this->model->getProductRecountSystemQuantity() . \"',\n '\" . $this->model->getProductRecountPhysicalQuantity() . \"',\n '\" . $this->model->getIsDefault(0, 'single') . \"',\n '\" . $this->model->getIsNew(0, 'single') . \"',\n '\" . $this->model->getIsDraft(0, 'single') . \"',\n '\" . $this->model->getIsUpdate(0, 'single') . \"',\n '\" . $this->model->getIsDelete(0, 'single') . \"',\n '\" . $this->model->getIsActive(0, 'single') . \"',\n '\" . $this->model->getIsApproved(0, 'single') . \"',\n '\" . $this->model->getIsReview(0, 'single') . \"',\n '\" . $this->model->getIsPost(0, 'single') . \"',\n '\" . $this->model->getExecuteBy() . \"',\n \" . $this->model->getExecuteTime() . \"\n );\";\n } else {\n if ($this->getVendor() == self::MSSQL) {\n $sql = \"\n INSERT INTO [productRecount]\n (\n [productRecountId],\n [companyId],\n [warehouseId],\n [productCode],\n [productDescription],\n [productRecountDate],\n [productRecountSystemQuantity],\n [productRecountPhysicalQuantity],\n [isDefault],\n [isNew],\n [isDraft],\n [isUpdate],\n [isDelete],\n [isActive],\n [isApproved],\n [isReview],\n [isPost],\n [executeBy],\n [executeTime]\n) VALUES (\n '\" . $this->getCompanyId() . \"',\n '\" . $this->model->getWarehouseId() . \"',\n '\" . $this->model->getProductCode() . \"',\n '\" . $this->model->getProductDescription() . \"',\n '\" . $this->model->getProductRecountDate() . \"',\n '\" . $this->model->getProductRecountSystemQuantity() . \"',\n '\" . $this->model->getProductRecountPhysicalQuantity() . \"',\n '\" . $this->model->getIsDefault(0, 'single') . \"',\n '\" . $this->model->getIsNew(0, 'single') . \"',\n '\" . $this->model->getIsDraft(0, 'single') . \"',\n '\" . $this->model->getIsUpdate(0, 'single') . \"',\n '\" . $this->model->getIsDelete(0, 'single') . \"',\n '\" . $this->model->getIsActive(0, 'single') . \"',\n '\" . $this->model->getIsApproved(0, 'single') . \"',\n '\" . $this->model->getIsReview(0, 'single') . \"',\n '\" . $this->model->getIsPost(0, 'single') . \"',\n '\" . $this->model->getExecuteBy() . \"',\n \" . $this->model->getExecuteTime() . \"\n );\";\n } else {\n if ($this->getVendor() == self::ORACLE) {\n $sql = \"\n INSERT INTO PRODUCTRECOUNT\n (\n COMPANYID,\n WAREHOUSEID,\n PRODUCTCODE,\n PRODUCTDESCRIPTION,\n PRODUCTRECOUNTDATE,\n PRODUCTRECOUNTSYSTEMQUANTITY,\n PRODUCTRECOUNTPHYSICALQUANTITY,\n ISDEFAULT,\n ISNEW,\n ISDRAFT,\n ISUPDATE,\n ISDELETE,\n ISACTIVE,\n ISAPPROVED,\n ISREVIEW,\n ISPOST,\n EXECUTEBY,\n EXECUTETIME\n ) VALUES (\n '\" . $this->getCompanyId() . \"',\n '\" . $this->model->getWarehouseId() . \"',\n '\" . $this->model->getProductCode() . \"',\n '\" . $this->model->getProductDescription() . \"',\n '\" . $this->model->getProductRecountDate() . \"',\n '\" . $this->model->getProductRecountSystemQuantity() . \"',\n '\" . $this->model->getProductRecountPhysicalQuantity() . \"',\n '\" . $this->model->getIsDefault(0, 'single') . \"',\n '\" . $this->model->getIsNew(0, 'single') . \"',\n '\" . $this->model->getIsDraft(0, 'single') . \"',\n '\" . $this->model->getIsUpdate(0, 'single') . \"',\n '\" . $this->model->getIsDelete(0, 'single') . \"',\n '\" . $this->model->getIsActive(0, 'single') . \"',\n '\" . $this->model->getIsApproved(0, 'single') . \"',\n '\" . $this->model->getIsReview(0, 'single') . \"',\n '\" . $this->model->getIsPost(0, 'single') . \"',\n '\" . $this->model->getExecuteBy() . \"',\n \" . $this->model->getExecuteTime() . \"\n );\";\n }\n }\n }\n try {\n $this->q->create($sql);\n } catch (\\Exception $e) {\n $this->q->rollback();\n echo json_encode(array(\"success\" => false, \"message\" => $e->getMessage()));\n exit();\n }\n }", "public function setCLINICA($CLINICA)\r\n {\r\n $this->CLINICA = $CLINICA;\r\n\r\n return $this;\r\n }", "public function getVICMS()\n {\n return $this->vICMS;\n }", "public function getVICMS()\n {\n return $this->vICMS;\n }", "public function getVICMSST()\n {\n return $this->vICMSST;\n }", "public function setCae(): Documents\r\n {\r\n if (defined('DOCUMENT_SET_CAE_ID')) {\r\n $this->caeId = (int)DOCUMENT_SET_CAE_ID;\r\n } else {\r\n $this->caeId = 0;\r\n }\r\n\r\n return $this;\r\n }", "public function init(){\n $this->documento='760';\n }", "public function getDocumentProductNcm()\n {\n return (string) $this->document_product_ncm;\n }", "public function setDocumentProductCofinsAliquota(float $document_product_cofins_aliquota)\n {\n $this->collection->put('document_product_cofins_aliquota', (string) $document_product_cofins_aliquota);\n }", "function setDocumentID($iNewValue) {\n\t\t$this->iDocumentID = $iNewValue;\n\t}", "public function testSetLienDocument() {\n\n $obj = new AttestationCacm();\n\n $obj->setLienDocument(\"lienDocument\");\n $this->assertEquals(\"lienDocument\", $obj->getLienDocument());\n }", "function setIdkitprodutos($idkitprodutos) {\n $this->idkitprodutos = $idkitprodutos;\n }", "public function getDocumentProductCest()\n {\n return (string) $this->document_product_cest;\n }" ]
[ "0.7181086", "0.70867074", "0.6230185", "0.59676886", "0.59606594", "0.5876622", "0.5527107", "0.55088997", "0.5488337", "0.5203582", "0.5193613", "0.51403403", "0.51362604", "0.50937307", "0.5000548", "0.4975171", "0.4975171", "0.489001", "0.47388262", "0.46920273", "0.46920273", "0.4640779", "0.46131417", "0.45928395", "0.45868415", "0.4550395", "0.4530723", "0.4527017", "0.4508548", "0.45035872" ]
0.78779256
0
Get the value of DOCUMENT_PRODUCT_ICMS_ALIQUOTA
public function getDocumentProductIcmsAliquota() { return (string) $this->document_product_icms_aliquota; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDocumentProductIpiAliquota()\n {\n return (string) $this->document_product_ipi_aliquota;\n }", "public function getDocumentProductPisAliquota()\n {\n return (string) $this->document_product_pis_aliquota;\n }", "public function getDocumentProductCofinsAliquota()\n {\n return (string) $this->document_product_cofins_aliquota;\n }", "public function getAliquotaPis()\n {\n return $this->aliquotaPis;\n }", "public function setDocumentProductIcmsAliquota(float $document_product_icms_aliquota)\n {\n $this->collection->put('document_product_icms_aliquota', (string) $document_product_icms_aliquota);\n }", "public function getQuota()\n {\n return $this->_quota;\n }", "public function getQuota()\n {\n return $this->quota;\n }", "public function setDocumentProductIpiAliquota(float $document_product_ipi_aliquota)\n {\n $this->collection->put('document_product_ipi_aliquota', (string) $document_product_ipi_aliquota);\n }", "function imap_get_quota(IMAP\\Connection $imap, string $quota_root): array|false {}", "public function getStorageUsage() {\n if (isset($this->_quotausage['STORAGE']['usage'])) {\n return $this->_quotausage['STORAGE']['usage'];\n }\n return 0;\n }", "public function getQuota(): int\n {\n return $this->quota;\n }", "public function get_quota() {\n\n\t\tif(!$this->has_capability(\"QUOTA\"))\n\t\t\treturn false;\n\n\t\t$command = \"GETQUOTAROOT \\\"INBOX\\\"\\r\\n\";\n\n\t\t$this->send_command($command);\n\t\t$res = $this->get_response();\n\t\t$status = $this->check_response($res);\n\t\tif($status){\n\t\t\tforeach($res as $response){\n\t\t\t\tif(strpos($response, 'STORAGE')!==false){\n\t\t\t\t\t$parts = explode(\" \", $response);\n\t\t\t\t\t$storage_part = array_search(\"STORAGE\", $parts);\n\t\t\t\t\tif ($storage_part>0){\n\t\t\t\t\t\treturn array(\n\t\t\t\t\t\t\t'usage'=>intval($parts[$storage_part+1]),\n\t\t\t\t\t\t\t'limit'=>intval($parts[$storage_part+2]));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public function getAliquotaCofins()\n {\n return $this->aliquotaCofins;\n }", "function quota_getUploadQuota($quota) {\n\tglobal $_zp_current_admin_obj;\n\tif (zp_loggedin(MANAGE_ALL_ALBUM_RIGHTS)) {\n\t\t$quota = -1;\n\t} else {\n\t\t$quota = $_zp_current_admin_obj->getQuota();\n\t\tif ($quota == NULL) $quota = getOption('quota_default');\n\t}\n\treturn $quota;\n}", "function quota_getCurrentUse($userobj) {\n\tglobal $_zp_current_admin_obj;\n\tif (is_null($userobj)) {\n\t\t$userobj = $_zp_current_admin_obj;\n\t}\n\t$sql = 'SELECT sum(`filesize`) FROM '.prefix('images').' WHERE `owner`=\"'.$userobj->getUser().'\"';\n\t$result = query_single_row($sql);\n\treturn array_shift($result)/1024;\n}", "public function getDocumentProductQtd()\n {\n return (string) $this->document_product_qtd;\n }", "public function getAliquotaReaisPis()\n {\n return $this->aliquotaReaisPis;\n }", "function get_quota($quota) {\n if(ereg('S$', $quota)) {\n $quota = ereg_replace('S$','', $quota);\n $quota = $quota / 1024;\n $quota = $quota / 1024;\n $quota = $quota . 'MB';\n }\n return $quota;\n}", "public function getquotaTypeId()\n {\n return $this->quotatype_id;\n }", "public function getStorageLimit() {\n if (isset($this->_quotausage['STORAGE']['limit'])) {\n return $this->_quotausage['STORAGE']['limit'];\n }\n return 0;\n }", "public function getUsage()\n {\n return isset($this->usage) ? $this->usage : 0.0;\n }", "function get_quota() {\n\n\t\t$response = $this->curl_get(skydrive_base_url.\"me/skydrive/quota?access_token=\".$this->access_token);\n\n\t\tif (@array_key_exists('error', $response)) {\n\n\t\t\tthrow new Exception($response['error'].\" - \".$response['description']);\n\n\t\t\texit;\n\n\t\t} else {\t\t\t\n\n\t\t\treturn $response;\n\n\t\t}\n\n\t}", "function getQuotationCount()\n {\n $result = $this->query(\"SELECT COUNT(*) as count FROM `\".$this->tblPrefix.$this->table.\"` WHERE client_id='\".$this->logUser.\"'\");\n return $result['0']['count'];\n }", "public function getUsage ($language = null) {\n\t$data = $this->getLocalizedfields()->getLocalizedValue(\"usage\", $language);\n\t$preValue = $this->preGetValue(\"usage\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { return $preValue;}\n\t return $data;\n}", "public function getDocumentProductIpiCst()\n {\n return (string) $this->document_product_ipi_cst;\n }", "public function getDocumentProductEan()\n {\n return (string) $this->document_product_ean;\n }", "public function getMessageUsage() {\n if (isset($this->_quotausage['MESSAGE']['usage'])) {\n return $this->_quotausage['MESSAGE']['usage'];\n }\n return 0;\n }", "protected function get_current_usage()\n {\n if( !($current = get_option(self::OPTION_USAGE)))\n {\n EPFLQuota::init_update();\n $current = get_option(self::OPTION_USAGE);\n }\n\n return $current;\n }", "public function getQuota(){\n $option = Paging::normalizeOption($_GET);\n $result = QuotaTable::get($option);\n\n http_response_code(200);\n echo json_encode($result);\n }", "public function getUsagelimit()\n {\n return $this->usagelimit;\n }" ]
[ "0.7748148", "0.7477283", "0.73343956", "0.6202208", "0.6026077", "0.5936274", "0.5920357", "0.5764523", "0.5719433", "0.5678696", "0.56755286", "0.5661612", "0.55641234", "0.55479956", "0.5541804", "0.55076456", "0.5444175", "0.53773165", "0.5349883", "0.5271518", "0.523727", "0.52223384", "0.5217022", "0.5198392", "0.51834613", "0.5175805", "0.51564854", "0.51288545", "0.5125053", "0.5124971" ]
0.80387366
0
Set the value of DOCUMENT_PRODUCT_ICMS_ALIQUOTA
public function setDocumentProductIcmsAliquota(float $document_product_icms_aliquota) { $this->collection->put('document_product_icms_aliquota', (string) $document_product_icms_aliquota); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setDocumentProductIpiAliquota(float $document_product_ipi_aliquota)\n {\n $this->collection->put('document_product_ipi_aliquota', (string) $document_product_ipi_aliquota);\n }", "public function getDocumentProductIcmsAliquota()\n {\n return (string) $this->document_product_icms_aliquota;\n }", "public function getDocumentProductIpiAliquota()\n {\n return (string) $this->document_product_ipi_aliquota;\n }", "public function setDocumentProductCofinsAliquota(float $document_product_cofins_aliquota)\n {\n $this->collection->put('document_product_cofins_aliquota', (string) $document_product_cofins_aliquota);\n }", "public function getDocumentProductPisAliquota()\n {\n return (string) $this->document_product_pis_aliquota;\n }", "public function setDocumentProductPisAliquota(float $document_product_pis_aliquota)\n {\n $this->collection->put('document_product_pis_aliquota', (string) $document_product_pis_aliquota);\n }", "public function getDocumentProductCofinsAliquota()\n {\n return (string) $this->document_product_cofins_aliquota;\n }", "public function setQuota($value) {\n $this->_quota = $value;\n }", "public function getAliquotaPis()\n {\n return $this->aliquotaPis;\n }", "public function setAliquotaPis($aliquotaPis)\n {\n $this->aliquotaPis = $aliquotaPis;\n\n return $this;\n }", "public function set_user_quota($email, $quota) \n\t{\n\t\treturn $this->vpopmail_readline(sprintf(\"M %s %s\", $email, $quota));\n\t}", "function quota_save_admin($updated, $userobj, $i, $alter) {\n\tif (isset($_POST[$i.'quota']) && $alter) {\n\t\t$oldquota = $userobj->getQuota();\n\t\t$userobj->setQuota(sanitize_numeric($_POST[$i.'quota']));\n\t\t$updated = $oldquota == $userobj->getQuota();\n\t}\n\treturn $updated;\n}", "function quota_edit_admin($html, $userobj, $i, $background, $current, $local_alterrights) {\n\tif ($userobj->getRights() & (ADMIN_RIGHTS | MANAGE_ALL_ALBUM_RIGHTS)) return $html;\n\tif (!($userobj->getRights() & UPLOAD_RIGHTS)) return $html;\n\t$quota = $userobj->getQuota();\n\t$used = quota_getCurrentUse($userobj);\n\tif ($quota == NULL) $quota = getOption('quota_default');\n\t$result =\n\t\t'<tr'.((!$current)? ' style=\"display:none;\"':'').' class=\"userextrainfo\">\n\t\t\t<td width=\"20%\"'.((!empty($background)) ? ' style=\"'.$background.'\"':'').' valign=\"top\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'.gettext(\"Quota:\").'</td>\n\t\t\t<td'.((!empty($background)) ? ' style=\"'.$background.'\"':'').' valign=\"top\" width=\"345\">'.\n\t\t\t\tsprintf(gettext('Allowed: %s kb'),'<input type=\"text\" size=\"10\" name=\"'.$i.'quota\" value=\"'.$quota.'\" '.$local_alterrights.' />').' '.\n\t\t\t\tsprintf(gettext('(%s kb used)'),number_format($used)).\n\t\t\t\t\"\\n\".\n\t\t\t'</td>\n\t\t\t<td'.((!empty($background)) ? ' style=\"'.$background.'\"':'').' valign=\"top\">'.gettext('Image quota information.').'</td>\n\t\t</tr>'.\"\\n\";\n\treturn $html.$result;\n}", "function testSetUploadQuota()\n {\n $this->deleteLog($this->logfilename);\n $this->login();\n $query = $this->db->query(\"SELECT id FROM project WHERE name = 'EmailProjectExample'\");\n $projectid = $query[0]['id'];\n $content = $this->connect($this->url.'/createProject.php?projectid='.$projectid);\n\n if($content == false)\n {\n return;\n }\n\n // set the upload quota to 1 GB\n $this->setField('uploadQuota','1');\n $this->clickSubmitByName('Update');\n }", "public function setQuota($value)\n {\n $this->_quota = $value;\n return $this;\n }", "public function setAliquotaCofins($aliquotaCofins)\n {\n $this->aliquotaCofins = $aliquotaCofins;\n\n return $this;\n }", "function setNota_max($inota_max = '')\n {\n $this->inota_max = $inota_max;\n }", "function setNota_max($inota_max = '')\n {\n $this->inota_max = $inota_max;\n }", "public function getAliquotaCofins()\n {\n return $this->aliquotaCofins;\n }", "public static function reInstateQuotaExceeded()\n {\n //$noticeControl = Notices::getInstance();\n //$notice = $noticeControl->getNoticeByID(self::MSG_QUOTA_REACHED);\n Notices::removeNoticeByID(self::MSG_QUOTA_REACHED);\n //$notice->unDismiss();\n //$noticeControl->update();\n }", "public function setCertificateEnhancedKeyUsage(?string $value): void {\n $this->getBackingStore()->set('certificateEnhancedKeyUsage', $value);\n }", "public function is_user_over_quota()\n {\n }", "function setSyncItemsCodeProduct()\n {\n }", "function imap_get_quota(IMAP\\Connection $imap, string $quota_root): array|false {}", "function setCantidad($icantidad = '')\n {\n $this->icantidad = $icantidad;\n }", "function setCantidad($icantidad = '')\n {\n $this->icantidad = $icantidad;\n }", "public function getAliquotaReaisPis()\n {\n return $this->aliquotaReaisPis;\n }", "public static function setGlobalMaxLength(int $maxLength):void {\r\n\t\tself::$globalMaxLength = $maxLength;\r\n\t}", "function _buyquota()\n\t{\n\t\tif (get_option('is_on_pop3_buy')=='0') return new ocp_tempcode();\n\n\t\t$title=get_page_title('TITLE_QUOTA');\n\n\t\t$member_id=get_member();\n\t\t$pointsleft=available_points($member_id);\n\t\t$price=intval(get_option('quota'));\n\t\t$quota=post_param_integer('quota');\n\n\t\t$details=$GLOBALS['SITE_DB']->query_select('sales',array('details','details2'),array('memberid'=>$member_id,'purchasetype'=>'pop3'),'',1);\n\t\t$prefix=$details[0]['details'];\n\t\t$suffix=$details[0]['details2'];\n\n\t\t// If we don't own a POP3 account, stop right here.\n\t\tif (!array_key_exists(0,$details))\n\t\t{\n\t\t\treturn warn_screen($title,do_lang_tempcode('NO_POP3'));\n\t\t}\n\n\t\t// Stop if we can't afford this much quota\n\t\tif ((($quota*$price)>$pointsleft) && (!has_specific_permission(get_member(),'give_points_self')))\n\t\t{\n\t\t\treturn warn_screen($title,do_lang_tempcode('CANT_AFFORD'));\n\t\t}\n\n\t\t// Mail off the order form\n\t\t$quota_url=get_option('quota_url');\n\t\t$_price=$quota*$price;\n\t\t$encoded_reason=do_lang('TITLE_QUOTA');\n\t\t$message_raw=do_template('POINTSTORE_QUOTA_MAIL',array('_GUID'=>'5a4e0bb5e53e6ccf8e57581c377557f4','ENCODED_REASON'=>$encoded_reason,'QUOTA'=>integer_format($quota),'EMAIL'=>$prefix.$suffix,'QUOTA_URL'=>$quota_url,'PRICE'=>integer_format($_price)));\n\t\trequire_code('notifications');\n\t\tdispatch_notification('pointstore_request_quota','quota_'.uniqid('',true),do_lang('MAIL_REQUEST_QUOTA',NULL,NULL,NULL,get_site_default_lang()),$message_raw->evaluate(get_site_default_lang(),false),NULL,NULL,3,true);\n\n\t\t$url=build_url(array('page'=>'_SELF','type'=>'misc'),'_SELF');\n\t\treturn redirect_screen($title,$url,do_lang_tempcode('ORDER_QUOTA_DONE'));\n\t}", "private function updateMemoryLimit()\r\n {\r\n if (function_exists('ini_set')) {\r\n // phpcs:ignore Magento2.Functions.DiscouragedFunction\r\n $result = ini_set('display_errors', 1);\r\n if ($result === false) {\r\n $error = error_get_last();\r\n throw new InvalidArgumentException(__(\r\n 'Failed to set ini option display_errors to value 1. %1',\r\n $error['message']\r\n ));\r\n }\r\n $memoryLimit = trim(ini_get('memory_limit'));\r\n if ($memoryLimit != -1 && $this->getMemoryInBytes($memoryLimit) < 756 * 1024 * 1024) {\r\n // phpcs:ignore Magento2.Functions.DiscouragedFunction\r\n $result = ini_set('memory_limit', '756M');\r\n if ($result === false) {\r\n $error = error_get_last();\r\n throw new InvalidArgumentException(__(\r\n 'Failed to set ini option memory_limit to 756M. %1',\r\n $error['message']\r\n ));\r\n }\r\n }\r\n }\r\n }" ]
[ "0.7022972", "0.69151837", "0.6708596", "0.63255256", "0.61990136", "0.61616904", "0.60150886", "0.5663729", "0.5366067", "0.5205891", "0.5130014", "0.5099317", "0.49651566", "0.49491405", "0.48345387", "0.4817023", "0.4700523", "0.4700523", "0.46926457", "0.46026295", "0.45823374", "0.4575478", "0.45385826", "0.44982344", "0.44849184", "0.44849184", "0.4460493", "0.4433856", "0.44079566", "0.43996125" ]
0.7439476
0
Get the value of DOCUMENT_PRODUCT_IPI_CST
public function getDocumentProductIpiCst() { return (string) $this->document_product_ipi_cst; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDocumentProductIcmsCst()\n {\n return $this->document_product_icms_cst;\n }", "public function getDocumentProductPisCst()\n {\n return (string) (string) $this->document_product_pis_cst;\n }", "public function setDocumentProductIpiCst(int $document_product_ipi_cst)\n {\n $this->collection->put('document_product_ipi_cst', (string) $document_product_ipi_cst);\n }", "public function getDocumentProductCest()\n {\n return (string) $this->document_product_cest;\n }", "public function getDocumentProductIpiAliquota()\n {\n return (string) $this->document_product_ipi_aliquota;\n }", "public function getDocumentProductCofinsCst()\n {\n return (string) $this->document_product_cofins_cst;\n }", "public function getDocumentProductCod()\n {\n return (string) $this->document_product_cod;\n }", "public function getDocumentProductNcm()\n {\n return (string) $this->document_product_ncm;\n }", "public function getDocumentProductPisAliquota()\n {\n return (string) $this->document_product_pis_aliquota;\n }", "public function getDocumentProductIcmsAliquota()\n {\n return (string) $this->document_product_icms_aliquota;\n }", "private function getCurrentIssueProductId()\n {\n $issue = $this->_helper->service('mobile.issue')->findCurrent();\n $date = $this->getArticleField($issue, 'issuedate')\n ? new DateTime($this->getArticleField($issue, 'issuedate'))\n : $issue->getPublished();\n return sprintf(\n 'ch.tageswoche.issue.%d.%02d',\n $date->format('Y'),\n $this->getArticleField($issue, 'issue_number')\n );\n }", "public function getDocumentProductCofinsAliquota()\n {\n return (string) $this->document_product_cofins_aliquota;\n }", "public function getProd_niche () {\n\t$preValue = $this->preGetValue(\"prod_niche\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->getClass()->getFieldDefinition(\"prod_niche\")->preGetData($this);\n\treturn $data;\n}", "public function getDocumentProductDiscount()\n {\n return (string) $this->document_product_discount;\n }", "public function getDocumentProductTaxCod()\n {\n return (string) $this->document_product_tax_cod;\n }", "public function getDocumentProductQtd()\n {\n return (string) $this->document_product_qtd;\n }", "public function getPO106(){\n\t\treturn $this->getPO1IndexOf(6);\n\t}", "public function getDocumentProductCfop()\n {\n return (string) $this->document_product_cfop;\n }", "public function setDocumentProductIcmsCst(string $document_product_icms_cst)\n {\n $this->collection->put('document_product_icms_cst', (string) $document_product_icms_cst);\n }", "public function getProduct_code () {\n\t$preValue = $this->preGetValue(\"product_code\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->product_code;\n\treturn $data;\n}", "public function get_imsi(): string\n {\n // $res is a string;\n if ($this->_cacheExpiration <= YAPI::GetTickCount()) {\n if ($this->load(YAPI::$_yapiContext->GetCacheValidity()) != YAPI::SUCCESS) {\n return self::IMSI_INVALID;\n }\n }\n $res = $this->_imsi;\n return $res;\n }", "public function getDocumentProductEan()\n {\n return (string) $this->document_product_ean;\n }", "protected function _getIpn()\n {\n if (is_null($this->_ipn)) {\n $this->_ipn = Mage::getModel('cjcheckout/ipn');\n }\n return $this->_ipn;\n }", "public function getProductAttributeInt($productId, $attributeCode){\r\n\t$resource = Mage::getSingleton('core/resource');\r\n\t$readConnection = $resource->getConnection('core_read');\r\n\treturn\t\r\n\t $readConnection->fetchOne(\r\n\t 'select value from catalog_product_entity_int where entity_id=' . $productId . '\r\n\t\t and attribute_id = (select attribute_id from eav_attribute where attribute_code = \\'' . $attributeCode . '\\')'\r\n );\r\n}", "public function getDocumentProductUnitaryValue()\n {\n return (string) $this->document_product_unitary_value;\n }", "public function setDocumentProductPiscst(string $document_product_pis_cst)\n {\n $this->collection->put('document_product_pis_cst', (string) $document_product_pis_cst);\n }", "public function getCodigoItemNota() {\n \treturn $this->iCodigoItemNota;\n }", "public function getNci()\n {\n return $this->nci;\n }", "public function getPO104(){\n\t\treturn $this->getPO1IndexOf(4);\n\t}", "public function getPO103(){\n\t\treturn $this->getPO1IndexOf(3);\n\t}" ]
[ "0.68182784", "0.6707252", "0.62440854", "0.5940464", "0.59319866", "0.58903027", "0.5866564", "0.5865579", "0.5549312", "0.5468522", "0.5466877", "0.54611975", "0.5437773", "0.5430682", "0.54193753", "0.5394915", "0.5301958", "0.5298055", "0.52868176", "0.52262765", "0.5112313", "0.5082093", "0.5076974", "0.5027212", "0.5019667", "0.49886513", "0.49349532", "0.4929081", "0.4922537", "0.49218982" ]
0.7846604
0
Set the value of DOCUMENT_PRODUCT_IPI_CST
public function setDocumentProductIpiCst(int $document_product_ipi_cst) { $this->collection->put('document_product_ipi_cst', (string) $document_product_ipi_cst); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setDocumentProductIcmsCst(string $document_product_icms_cst)\n {\n $this->collection->put('document_product_icms_cst', (string) $document_product_icms_cst);\n }", "public function setDocumentProductPiscst(string $document_product_pis_cst)\n {\n $this->collection->put('document_product_pis_cst', (string) $document_product_pis_cst);\n }", "public function getDocumentProductIpiCst()\n {\n return (string) $this->document_product_ipi_cst;\n }", "public function setDocumentProductCest(int $document_product_cest)\n {\n $this->collection->put('document_product_cest', (string) $document_product_cest);\n }", "public function setDocumentProductIpiAliquota(float $document_product_ipi_aliquota)\n {\n $this->collection->put('document_product_ipi_aliquota', (string) $document_product_ipi_aliquota);\n }", "public function getDocumentProductIcmsCst()\n {\n return $this->document_product_icms_cst;\n }", "public function setDocumentProductNcm(int $document_product_ncm)\n {\n $this->collection->put('document_product_ncm', (string) $document_product_ncm);\n }", "public function setDocumentProductCfop(int $document_product_cfop)\n {\n $this->collection->put('document_product_cfop', (string) $document_product_cfop);\n }", "public function setDocumentProductCofinsCst(string $document_product_cofins_cst)\n {\n $this->collection->put('document_product_cofins_cst', (string) $document_product_cofins_cst);\n }", "public function setDocumentProductIcmsAliquota(float $document_product_icms_aliquota)\n {\n $this->collection->put('document_product_icms_aliquota', (string) $document_product_icms_aliquota);\n }", "public function setNci($nci)\n {\n $this->nci = $nci;\n }", "public function setDocumentProductPisAliquota(float $document_product_pis_aliquota)\n {\n $this->collection->put('document_product_pis_aliquota', (string) $document_product_pis_aliquota);\n }", "protected function setProduct_id($value)\n\t{\n\t\tif (isInt($value) || is_null($value)) { $this->product_id = $value; }\n\t}", "public function setIPI(\\JansenFelipe\\NFePHPSerialize\\NotaFiscal\\TIpiType $iPI)\n {\n $this->iPI = $iPI;\n return $this;\n }", "function setId_ubi($iid_ubi)\n {\n $this->iid_ubi = $iid_ubi;\n }", "function setId_ubi($iid_ubi)\n {\n $this->iid_ubi = $iid_ubi;\n }", "public function setDocumentProductCofinsAliquota(float $document_product_cofins_aliquota)\n {\n $this->collection->put('document_product_cofins_aliquota', (string) $document_product_cofins_aliquota);\n }", "public function getDocumentProductPisCst()\n {\n return (string) (string) $this->document_product_pis_cst;\n }", "function setId_ubi($iid_ubi = '')\n {\n $this->iid_ubi = $iid_ubi;\n }", "function setIdkitprodutos($idkitprodutos) {\n $this->idkitprodutos = $idkitprodutos;\n }", "public function getDocumentProductIpiAliquota()\n {\n return (string) $this->document_product_ipi_aliquota;\n }", "function setSyncItemsCodeProduct()\n {\n }", "public function setNit_empresa($nit_empresa){\n $this->nit_empresa = $nit_empresa;\n }", "function setId_asignatura($iid_asignatura = '')\n {\n $this->iid_asignatura = $iid_asignatura;\n }", "function setId_asignatura($iid_asignatura)\n {\n $this->iid_asignatura = $iid_asignatura;\n }", "public function setProductId($product_id){\n $this->product_id = $product_id;\n }", "function setId_situacion($iid_situacion = '')\n {\n $this->iid_situacion = (int)$iid_situacion;\n }", "public function setIdif($value)\n {\n $this->setParam('idif', $value);\n }", "protected function setTaxAmount2100($valueNeto, $valueIva)\n\t{\n\t\t$this->setNumbersFont(8);\n\t\tfor($i=0;$i<$this->copies;$i++){\n\t\t\t$this->_getPdf()->pages[$i]->drawText($this->asMonospacedNumber($valueNeto,10), 254, 128, 'UTF-8');\n\t\t\t$this->_getPdf()->pages[$i]->drawText($this->asMonospacedNumber($valueIva,10), 254, 108, 'UTF-8');\n\t\t}\n\t}", "public function setIps()\n {\n if ($this->module->sandbox) {\n $this->ips = $this->sandboxIps;\n } else {\n $this->ips = $this->productionIps;\n }\n }" ]
[ "0.67029035", "0.6339274", "0.6062076", "0.5832119", "0.5670909", "0.555258", "0.53851664", "0.51954", "0.51451474", "0.5116685", "0.50754505", "0.5053566", "0.50219256", "0.4935607", "0.48674855", "0.48674855", "0.48388153", "0.48168135", "0.4804078", "0.47882086", "0.47729185", "0.47359982", "0.46668148", "0.46304813", "0.4615353", "0.4610153", "0.45883632", "0.45872247", "0.45658135", "0.45448124" ]
0.7667752
0
Get the value of DOCUMENT_PRODUCT_IPI_ALIQUOTA
public function getDocumentProductIpiAliquota() { return (string) $this->document_product_ipi_aliquota; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDocumentProductIcmsAliquota()\n {\n return (string) $this->document_product_icms_aliquota;\n }", "public function getDocumentProductPisAliquota()\n {\n return (string) $this->document_product_pis_aliquota;\n }", "public function getDocumentProductCofinsAliquota()\n {\n return (string) $this->document_product_cofins_aliquota;\n }", "public function setDocumentProductIpiAliquota(float $document_product_ipi_aliquota)\n {\n $this->collection->put('document_product_ipi_aliquota', (string) $document_product_ipi_aliquota);\n }", "public function getAliquotaPis()\n {\n return $this->aliquotaPis;\n }", "public function setDocumentProductIcmsAliquota(float $document_product_icms_aliquota)\n {\n $this->collection->put('document_product_icms_aliquota', (string) $document_product_icms_aliquota);\n }", "public function getQuota()\n {\n return $this->_quota;\n }", "public function getQuota()\n {\n return $this->quota;\n }", "public function getDocumentProductQtd()\n {\n return (string) $this->document_product_qtd;\n }", "function imap_get_quota(IMAP\\Connection $imap, string $quota_root): array|false {}", "public function getAliquotaReaisPis()\n {\n return $this->aliquotaReaisPis;\n }", "function quota_getUploadQuota($quota) {\n\tglobal $_zp_current_admin_obj;\n\tif (zp_loggedin(MANAGE_ALL_ALBUM_RIGHTS)) {\n\t\t$quota = -1;\n\t} else {\n\t\t$quota = $_zp_current_admin_obj->getQuota();\n\t\tif ($quota == NULL) $quota = getOption('quota_default');\n\t}\n\treturn $quota;\n}", "public function setDocumentProductPisAliquota(float $document_product_pis_aliquota)\n {\n $this->collection->put('document_product_pis_aliquota', (string) $document_product_pis_aliquota);\n }", "public function getQuota(): int\n {\n return $this->quota;\n }", "public function getStorageUsage() {\n if (isset($this->_quotausage['STORAGE']['usage'])) {\n return $this->_quotausage['STORAGE']['usage'];\n }\n return 0;\n }", "function quota_getCurrentUse($userobj) {\n\tglobal $_zp_current_admin_obj;\n\tif (is_null($userobj)) {\n\t\t$userobj = $_zp_current_admin_obj;\n\t}\n\t$sql = 'SELECT sum(`filesize`) FROM '.prefix('images').' WHERE `owner`=\"'.$userobj->getUser().'\"';\n\t$result = query_single_row($sql);\n\treturn array_shift($result)/1024;\n}", "public function get_quota() {\n\n\t\tif(!$this->has_capability(\"QUOTA\"))\n\t\t\treturn false;\n\n\t\t$command = \"GETQUOTAROOT \\\"INBOX\\\"\\r\\n\";\n\n\t\t$this->send_command($command);\n\t\t$res = $this->get_response();\n\t\t$status = $this->check_response($res);\n\t\tif($status){\n\t\t\tforeach($res as $response){\n\t\t\t\tif(strpos($response, 'STORAGE')!==false){\n\t\t\t\t\t$parts = explode(\" \", $response);\n\t\t\t\t\t$storage_part = array_search(\"STORAGE\", $parts);\n\t\t\t\t\tif ($storage_part>0){\n\t\t\t\t\t\treturn array(\n\t\t\t\t\t\t\t'usage'=>intval($parts[$storage_part+1]),\n\t\t\t\t\t\t\t'limit'=>intval($parts[$storage_part+2]));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public function getquotaTypeId()\n {\n return $this->quotatype_id;\n }", "public function getDocumentProductEan()\n {\n return (string) $this->document_product_ean;\n }", "public function getDocumentProductIpiCst()\n {\n return (string) $this->document_product_ipi_cst;\n }", "static public function getIvaTaxValue()\n {\n $tax = 1;\n $query = \"SELECT\n class.title,\n rate.`name`,\n round((rate.rate/100)+1,2) as value\n FROM\n oc_tax_class AS class\n INNER JOIN oc_tax_rule AS rule ON class.tax_class_id = rule.tax_class_id\n INNER JOIN oc_tax_rate AS rate ON rule.tax_rate_id = rate.tax_rate_id\";\n $results = DB::select(DB::raw($query));\n foreach ($results as $res){\n if(strtoupper($res->title)==\"IVA\"){\n $tax = $res->value;\n }\n }\n return $tax;\n }", "public function getUsage ($language = null) {\n\t$data = $this->getLocalizedfields()->getLocalizedValue(\"usage\", $language);\n\t$preValue = $this->preGetValue(\"usage\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { return $preValue;}\n\t return $data;\n}", "public function getAliquotaCofins()\n {\n return $this->aliquotaCofins;\n }", "public function getDocumentProductDiscount()\n {\n return (string) $this->document_product_discount;\n }", "public function getUsage()\n {\n return isset($this->usage) ? $this->usage : 0.0;\n }", "public function getDocumentProductTaxCod()\n {\n return (string) $this->document_product_tax_cod;\n }", "public function setDocumentProductCofinsAliquota(float $document_product_cofins_aliquota)\n {\n $this->collection->put('document_product_cofins_aliquota', (string) $document_product_cofins_aliquota);\n }", "public function getMessageUsage() {\n if (isset($this->_quotausage['MESSAGE']['usage'])) {\n return $this->_quotausage['MESSAGE']['usage'];\n }\n return 0;\n }", "function get_quota($quota) {\n if(ereg('S$', $quota)) {\n $quota = ereg_replace('S$','', $quota);\n $quota = $quota / 1024;\n $quota = $quota / 1024;\n $quota = $quota . 'MB';\n }\n return $quota;\n}", "public function getProductPriceTax()\n {\n $_tax = Mage::getStoreConfig('splitprice/split_price_config/add_tax');\n \n if (!ctype_digit($_tax))\n {\n $_tax = 0;\n }\n \n return $_tax;\n }" ]
[ "0.76989377", "0.7676531", "0.7001205", "0.63785225", "0.63692695", "0.58422005", "0.5589974", "0.55463535", "0.5536588", "0.55030614", "0.54961556", "0.54907507", "0.54490364", "0.53629017", "0.5356127", "0.53451765", "0.5330909", "0.5291521", "0.5284586", "0.5236343", "0.51682895", "0.5134094", "0.5102341", "0.50994974", "0.5041685", "0.5041352", "0.50270504", "0.5011494", "0.49679938", "0.49417746" ]
0.81257683
0
Set the value of DOCUMENT_PRODUCT_IPI_ALIQUOTA
public function setDocumentProductIpiAliquota(float $document_product_ipi_aliquota) { $this->collection->put('document_product_ipi_aliquota', (string) $document_product_ipi_aliquota); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setDocumentProductIcmsAliquota(float $document_product_icms_aliquota)\n {\n $this->collection->put('document_product_icms_aliquota', (string) $document_product_icms_aliquota);\n }", "public function getDocumentProductIpiAliquota()\n {\n return (string) $this->document_product_ipi_aliquota;\n }", "public function setDocumentProductPisAliquota(float $document_product_pis_aliquota)\n {\n $this->collection->put('document_product_pis_aliquota', (string) $document_product_pis_aliquota);\n }", "public function getDocumentProductIcmsAliquota()\n {\n return (string) $this->document_product_icms_aliquota;\n }", "public function getDocumentProductPisAliquota()\n {\n return (string) $this->document_product_pis_aliquota;\n }", "public function setDocumentProductCofinsAliquota(float $document_product_cofins_aliquota)\n {\n $this->collection->put('document_product_cofins_aliquota', (string) $document_product_cofins_aliquota);\n }", "public function getDocumentProductCofinsAliquota()\n {\n return (string) $this->document_product_cofins_aliquota;\n }", "public function getAliquotaPis()\n {\n return $this->aliquotaPis;\n }", "public function setAliquotaPis($aliquotaPis)\n {\n $this->aliquotaPis = $aliquotaPis;\n\n return $this;\n }", "public function setQuota($value) {\n $this->_quota = $value;\n }", "public function set_user_quota($email, $quota) \n\t{\n\t\treturn $this->vpopmail_readline(sprintf(\"M %s %s\", $email, $quota));\n\t}", "function quota_save_admin($updated, $userobj, $i, $alter) {\n\tif (isset($_POST[$i.'quota']) && $alter) {\n\t\t$oldquota = $userobj->getQuota();\n\t\t$userobj->setQuota(sanitize_numeric($_POST[$i.'quota']));\n\t\t$updated = $oldquota == $userobj->getQuota();\n\t}\n\treturn $updated;\n}", "function setId_ubi($iid_ubi)\n {\n $this->iid_ubi = $iid_ubi;\n }", "function setId_ubi($iid_ubi)\n {\n $this->iid_ubi = $iid_ubi;\n }", "function setNota_max($inota_max = '')\n {\n $this->inota_max = $inota_max;\n }", "function setNota_max($inota_max = '')\n {\n $this->inota_max = $inota_max;\n }", "function setId_ubi($iid_ubi = '')\n {\n $this->iid_ubi = $iid_ubi;\n }", "function testSetUploadQuota()\n {\n $this->deleteLog($this->logfilename);\n $this->login();\n $query = $this->db->query(\"SELECT id FROM project WHERE name = 'EmailProjectExample'\");\n $projectid = $query[0]['id'];\n $content = $this->connect($this->url.'/createProject.php?projectid='.$projectid);\n\n if($content == false)\n {\n return;\n }\n\n // set the upload quota to 1 GB\n $this->setField('uploadQuota','1');\n $this->clickSubmitByName('Update');\n }", "function quota_edit_admin($html, $userobj, $i, $background, $current, $local_alterrights) {\n\tif ($userobj->getRights() & (ADMIN_RIGHTS | MANAGE_ALL_ALBUM_RIGHTS)) return $html;\n\tif (!($userobj->getRights() & UPLOAD_RIGHTS)) return $html;\n\t$quota = $userobj->getQuota();\n\t$used = quota_getCurrentUse($userobj);\n\tif ($quota == NULL) $quota = getOption('quota_default');\n\t$result =\n\t\t'<tr'.((!$current)? ' style=\"display:none;\"':'').' class=\"userextrainfo\">\n\t\t\t<td width=\"20%\"'.((!empty($background)) ? ' style=\"'.$background.'\"':'').' valign=\"top\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'.gettext(\"Quota:\").'</td>\n\t\t\t<td'.((!empty($background)) ? ' style=\"'.$background.'\"':'').' valign=\"top\" width=\"345\">'.\n\t\t\t\tsprintf(gettext('Allowed: %s kb'),'<input type=\"text\" size=\"10\" name=\"'.$i.'quota\" value=\"'.$quota.'\" '.$local_alterrights.' />').' '.\n\t\t\t\tsprintf(gettext('(%s kb used)'),number_format($used)).\n\t\t\t\t\"\\n\".\n\t\t\t'</td>\n\t\t\t<td'.((!empty($background)) ? ' style=\"'.$background.'\"':'').' valign=\"top\">'.gettext('Image quota information.').'</td>\n\t\t</tr>'.\"\\n\";\n\treturn $html.$result;\n}", "function setId_asignatura($iid_asignatura)\n {\n $this->iid_asignatura = $iid_asignatura;\n }", "function setId_asignatura($iid_asignatura = '')\n {\n $this->iid_asignatura = $iid_asignatura;\n }", "protected function setTaxAmount1050($valueNeto, $valueIva)\n\t{\n\t\t$this->setNumbersFont(8);\n\t\tfor($i=0;$i<$this->copies;$i++){\n\t\t\t$this->_getPdf()->pages[$i]->drawText($this->asMonospacedNumber($valueNeto,10), 198, 128, 'UTF-8');\n\t\t\t$this->_getPdf()->pages[$i]->drawText($this->asMonospacedNumber($valueIva,10), 198, 108, 'UTF-8');\n\t\t}\n\t}", "protected function set_iri($iri)\n {\n }", "public static function reInstateQuotaExceeded()\n {\n //$noticeControl = Notices::getInstance();\n //$notice = $noticeControl->getNoticeByID(self::MSG_QUOTA_REACHED);\n Notices::removeNoticeByID(self::MSG_QUOTA_REACHED);\n //$notice->unDismiss();\n //$noticeControl->update();\n }", "public function setIdpension($idpension){\n $this->idpension = $idpension;\n }", "public function setAmount()\n {\n $exact = $this->getOriginalPurgeValue('amount_exact');\n $percentage = $this->getOriginalPurgeValue('amount_percentage');\n\n $this->amount = $this->is_percentage\n ? $percentage\n : $exact;\n }", "public function setQuota($value)\n {\n $this->_quota = $value;\n return $this;\n }", "protected function setTaxAmountExento($valueNeto, $valueIva)\n\t{\n\t\t$this->setNumbersFont(8);\n\t\tfor($i=0;$i<$this->copies;$i++){\n\t\t\t$this->_getPdf()->pages[$i]->drawText($this->asMonospacedNumber($valueNeto,10), 366, 128, 'UTF-8');\n\t\t\t$this->_getPdf()->pages[$i]->drawText($this->asMonospacedNumber($valueIva,10), 366, 108, 'UTF-8');\n\t\t}\n\t}", "public function is_user_over_quota()\n {\n }", "public function getAliquotaReaisPis()\n {\n return $this->aliquotaReaisPis;\n }" ]
[ "0.7108706", "0.7073608", "0.65636307", "0.64673686", "0.6358375", "0.61048526", "0.5561543", "0.55568546", "0.5506728", "0.5445127", "0.53600866", "0.49788535", "0.49465716", "0.49465716", "0.4905343", "0.4905343", "0.48415685", "0.48237023", "0.47509137", "0.46919742", "0.46909186", "0.46893147", "0.45903", "0.4575788", "0.4570689", "0.45666796", "0.4566533", "0.45317286", "0.45010662", "0.4494029" ]
0.7632168
0
Get the value of DOCUMENT_PRODUCT_PIS_CST
public function getDocumentProductPisCst() { return (string) (string) $this->document_product_pis_cst; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDocumentProductIpiCst()\n {\n return (string) $this->document_product_ipi_cst;\n }", "public function getDocumentProductIcmsCst()\n {\n return $this->document_product_icms_cst;\n }", "public function getPIS()\n {\n return $this->pIS;\n }", "public function getDocumentProductCofinsCst()\n {\n return (string) $this->document_product_cofins_cst;\n }", "public function getDocumentProductCest()\n {\n return (string) $this->document_product_cest;\n }", "public function setDocumentProductIpiCst(int $document_product_ipi_cst)\n {\n $this->collection->put('document_product_ipi_cst', (string) $document_product_ipi_cst);\n }", "public function setDocumentProductPiscst(string $document_product_pis_cst)\n {\n $this->collection->put('document_product_pis_cst', (string) $document_product_pis_cst);\n }", "public function getDocumentProductCod()\n {\n return (string) $this->document_product_cod;\n }", "public function getDocumentProductCfop()\n {\n return (string) $this->document_product_cfop;\n }", "public function getDocumentProductNcm()\n {\n return (string) $this->document_product_ncm;\n }", "public function getPcIdPl() {\n\t\tif ((bool) $this->_result) {\n\t\t\tif (array_key_exists(1, $this->_result)) return (int) $this->_result[1];\n\t\t\telse parent::throwGetColException('Not set ProjectsListingsModel::getPcIdPl', __LINE__, __FILE__);\n\t\t}\n\t\telse return parent::throwNoResException('No result From ProjectsListingsModel::getPcIdPl', __LINE__, __FILE__);\n\t}", "public function getDocumentProductPisAliquota()\n {\n return (string) $this->document_product_pis_aliquota;\n }", "public function getCstPis()\n {\n return $this->cst_pis;\n }", "public function getProducts_prid() {\n\t\treturn $this->products_prid;\n\t}", "function PDF_pcos_get_number($p, $doc, $path)\n{\n}", "public function getDocumentProductQtd()\n {\n return (string) $this->document_product_qtd;\n }", "public function getDocumentProductIpiAliquota()\n {\n return (string) $this->document_product_ipi_aliquota;\n }", "public function getPO106(){\n\t\treturn $this->getPO1IndexOf(6);\n\t}", "public function getProduct_code () {\n\t$preValue = $this->preGetValue(\"product_code\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->product_code;\n\treturn $data;\n}", "public function getPR() {}", "private function getCurrentIssueProductId()\n {\n $issue = $this->_helper->service('mobile.issue')->findCurrent();\n $date = $this->getArticleField($issue, 'issuedate')\n ? new DateTime($this->getArticleField($issue, 'issuedate'))\n : $issue->getPublished();\n return sprintf(\n 'ch.tageswoche.issue.%d.%02d',\n $date->format('Y'),\n $this->getArticleField($issue, 'issue_number')\n );\n }", "public function getPO103(){\n\t\treturn $this->getPO1IndexOf(3);\n\t}", "public function getDocumentProductDiscount()\n {\n return (string) $this->document_product_discount;\n }", "public function getPO104(){\n\t\treturn $this->getPO1IndexOf(4);\n\t}", "public function getPricedisp()\n {\n return $this->pricedisp;\n }", "public function getProductPosition()\n {\n return $this->_scopeConfig->getValue('splitprice/split_price_presentation/show_product_position', \\Magento\\Store\\Model\\ScopeInterface::SCOPE_STORE);\n }", "public function setDocumentProductIcmsCst(string $document_product_icms_cst)\n {\n $this->collection->put('document_product_icms_cst', (string) $document_product_icms_cst);\n }", "protected function get_kit_product_xref() {\n return $this->kit_product_xref;\n }", "public function getInfoSerialNumber() {\n //\n // 3COM\n return PNMSnmp::get($this, '1.3.6.1.2.1.47.1.1.1.1.11.1', Yii::app()->params['cacheTtlGetSnmp']);\n }", "public function getDocumentProductCofinsAliquota()\n {\n return (string) $this->document_product_cofins_aliquota;\n }" ]
[ "0.7598149", "0.6693505", "0.63605064", "0.6030234", "0.59615695", "0.59219176", "0.58843046", "0.57073796", "0.5706667", "0.5688387", "0.5588754", "0.55771387", "0.5571512", "0.5544027", "0.54149705", "0.54082924", "0.5375663", "0.533855", "0.52789134", "0.52406347", "0.52322954", "0.52297515", "0.52265686", "0.52027416", "0.51789516", "0.51676655", "0.51434106", "0.5108783", "0.5092026", "0.50865275" ]
0.74078065
1
Set the value of DOCUMENT_PRODUCT_PIS_CST
public function setDocumentProductPiscst(string $document_product_pis_cst) { $this->collection->put('document_product_pis_cst', (string) $document_product_pis_cst); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setDocumentProductIpiCst(int $document_product_ipi_cst)\n {\n $this->collection->put('document_product_ipi_cst', (string) $document_product_ipi_cst);\n }", "public function setDocumentProductIcmsCst(string $document_product_icms_cst)\n {\n $this->collection->put('document_product_icms_cst', (string) $document_product_icms_cst);\n }", "public function getDocumentProductIpiCst()\n {\n return (string) $this->document_product_ipi_cst;\n }", "public function setDocumentProductCofinsCst(string $document_product_cofins_cst)\n {\n $this->collection->put('document_product_cofins_cst', (string) $document_product_cofins_cst);\n }", "public function getDocumentProductPisCst()\n {\n return (string) (string) $this->document_product_pis_cst;\n }", "public function getDocumentProductIcmsCst()\n {\n return $this->document_product_icms_cst;\n }", "public function setDocumentProductCest(int $document_product_cest)\n {\n $this->collection->put('document_product_cest', (string) $document_product_cest);\n }", "public function getPIS()\n {\n return $this->pIS;\n }", "public function setDocumentProductCfop(int $document_product_cfop)\n {\n $this->collection->put('document_product_cfop', (string) $document_product_cfop);\n }", "public function setPIID($value)\n {\n return $this->set('PIID', $value);\n }", "public function setPIS(\\JansenFelipe\\NFePHPSerialize\\NotaFiscal\\TNFeType\\InfNFeAType\\DetAType\\ImpostoAType\\PISAType $pIS)\n {\n $this->pIS = $pIS;\n return $this;\n }", "public function setDocumentProductNcm(int $document_product_ncm)\n {\n $this->collection->put('document_product_ncm', (string) $document_product_ncm);\n }", "public function setDocumentProductPisAliquota(float $document_product_pis_aliquota)\n {\n $this->collection->put('document_product_pis_aliquota', (string) $document_product_pis_aliquota);\n }", "public function setIPI(\\JansenFelipe\\NFePHPSerialize\\NotaFiscal\\TIpiType $iPI)\n {\n $this->iPI = $iPI;\n return $this;\n }", "private function set_nicePiVar()\n {\n // Get table and field\n list( $table, $field ) = explode( '.', $this->curr_tableField );\n\n // Get TS filter configuration\n $conf_name = $this->conf_view[ 'filter.' ][ $table . '.' ][ $field ];\n $conf_array = $this->conf_view[ 'filter.' ][ $table . '.' ][ $field . '.' ];\n\n\n // Get nice_piVar from TS\n $str_nicePiVar = $conf_array[ 'nice_piVar' ];\n if ( empty( $str_nicePiVar ) )\n {\n $str_nicePiVar = $this->curr_tableField;\n }\n // Get nice_piVar from TS\n // Set multiple flag\n switch ( $conf_name )\n {\n case( 'CHECKBOX' ) :\n // #41753.01, 121010, dwildt, 1+\n case( 'TREEVIEW' ) :\n $bool_multiple = true;\n break;\n case( 'CATEGORY_MENU' ) :\n case( 'RADIOBUTTONS' ) :\n $bool_multiple = false;\n break;\n case( 'SELECTBOX' ) :\n $bool_multiple = $conf_array[ 'multiple' ];\n break;\n default :\n if ( $this->pObj->b_drs_error )\n {\n $prompt = 'undefined value in switch: \\'';\n t3lib_div :: devlog( '[ERROR/JSS] ' . $prompt . $conf_name . '\\'', $this->pObj->extKey, 3 );\n }\n echo '<h1>Undefined value</h1>\n <h2>' . $conf_name . ' is not defined</h2>\n <p>Method ' . __METHOD__ . ' (line: ' . __LINE__ . ')</p>\n <p>Sorry, this error shouldn\\'t occured!</p>\n <p>Browser - TYPO3 without PHP</p>\n ';\n exit;\n break;\n }\n // Set multiple flag\n // SWITCH multiple flag\n switch ( $bool_multiple )\n {\n case( false ):\n $key_piVar = $this->pObj->prefixId . '[' . $str_nicePiVar . ']';\n $arr_piVar[ 0 ] = $this->pObj->piVars[ $str_nicePiVar ];\n break;\n case( true ):\n default:\n $key_piVar = $this->pObj->prefixId . '[' . $str_nicePiVar . '][]';\n $arr_piVar = ( array ) $this->pObj->piVars[ $str_nicePiVar ];\n break;\n }\n // SWITCH multiple flag\n // Remove empty piVars in $arr_piVar\n foreach ( ( array ) $arr_piVar as $key => $value )\n {\n if ( !$value )\n {\n unset( $arr_piVar[ $key ] );\n }\n }\n // Remove empty piVars in $arr_piVar\n // Set class var nicePiVar\n $this->nicePiVar[ 'key_piVar' ] = $key_piVar;\n $this->nicePiVar[ 'arr_piVar' ] = $arr_piVar;\n $this->nicePiVar[ 'nice_piVar' ] = $str_nicePiVar;\n // Set class var nicePiVar\n\n return;\n }", "public function setProductId($product_id){\n $this->product_id = $product_id;\n }", "public function setCstPis($cst_pis)\n {\n $this->cst_pis = $cst_pis;\n\n return $this;\n }", "protected function setProduct_id($value)\n\t{\n\t\tif (isInt($value) || is_null($value)) { $this->product_id = $value; }\n\t}", "public function setPricedisp($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->pricedisp !== $v) {\n $this->pricedisp = $v;\n $this->modifiedColumns[OrdrhedTableMap::COL_PRICEDISP] = true;\n }\n\n return $this;\n }", "public function product($prod) {\n\t\t$this->upsProductCode = $prod;\n\t}", "private function _setPagSeguroCMSVersion(){\n PagSeguroLibrary::setCMSVersion('prestashop-v.'._PS_VERSION_);\n }", "private function setRecountProduct() {\n\n //$this->model->setDocumentNumber($this->getDocumentNumber);\n $sql = null;\n if ($this->getVendor() == self::MYSQL) {\n $sql = \"\n INSERT INTO `productrecount` \n (\n `companyId`,\n `warehouseId`,\n `productCode`,\n `productDescription`,\n `productRecountDate`,\n `productRecountSystemQuantity`,\n `productRecountPhysicalQuantity`,\n `isDefault`,\n `isNew`,\n `isDraft`,\n `isUpdate`,\n `isDelete`,\n `isActive`,\n `isApproved`,\n `isReview`,\n `isPost`,\n `executeBy`,\n `executeTime`\n ) VALUES ( \n '\" . $this->getCompanyId() . \"',\n '\" . $this->model->getWarehouseId() . \"',\n '\" . $this->model->getProductCode() . \"',\n '\" . $this->model->getProductDescription() . \"',\n '\" . $this->model->getProductRecountDate() . \"',\n '\" . $this->model->getProductRecountSystemQuantity() . \"',\n '\" . $this->model->getProductRecountPhysicalQuantity() . \"',\n '\" . $this->model->getIsDefault(0, 'single') . \"',\n '\" . $this->model->getIsNew(0, 'single') . \"',\n '\" . $this->model->getIsDraft(0, 'single') . \"',\n '\" . $this->model->getIsUpdate(0, 'single') . \"',\n '\" . $this->model->getIsDelete(0, 'single') . \"',\n '\" . $this->model->getIsActive(0, 'single') . \"',\n '\" . $this->model->getIsApproved(0, 'single') . \"',\n '\" . $this->model->getIsReview(0, 'single') . \"',\n '\" . $this->model->getIsPost(0, 'single') . \"',\n '\" . $this->model->getExecuteBy() . \"',\n \" . $this->model->getExecuteTime() . \"\n );\";\n } else {\n if ($this->getVendor() == self::MSSQL) {\n $sql = \"\n INSERT INTO [productRecount]\n (\n [productRecountId],\n [companyId],\n [warehouseId],\n [productCode],\n [productDescription],\n [productRecountDate],\n [productRecountSystemQuantity],\n [productRecountPhysicalQuantity],\n [isDefault],\n [isNew],\n [isDraft],\n [isUpdate],\n [isDelete],\n [isActive],\n [isApproved],\n [isReview],\n [isPost],\n [executeBy],\n [executeTime]\n) VALUES (\n '\" . $this->getCompanyId() . \"',\n '\" . $this->model->getWarehouseId() . \"',\n '\" . $this->model->getProductCode() . \"',\n '\" . $this->model->getProductDescription() . \"',\n '\" . $this->model->getProductRecountDate() . \"',\n '\" . $this->model->getProductRecountSystemQuantity() . \"',\n '\" . $this->model->getProductRecountPhysicalQuantity() . \"',\n '\" . $this->model->getIsDefault(0, 'single') . \"',\n '\" . $this->model->getIsNew(0, 'single') . \"',\n '\" . $this->model->getIsDraft(0, 'single') . \"',\n '\" . $this->model->getIsUpdate(0, 'single') . \"',\n '\" . $this->model->getIsDelete(0, 'single') . \"',\n '\" . $this->model->getIsActive(0, 'single') . \"',\n '\" . $this->model->getIsApproved(0, 'single') . \"',\n '\" . $this->model->getIsReview(0, 'single') . \"',\n '\" . $this->model->getIsPost(0, 'single') . \"',\n '\" . $this->model->getExecuteBy() . \"',\n \" . $this->model->getExecuteTime() . \"\n );\";\n } else {\n if ($this->getVendor() == self::ORACLE) {\n $sql = \"\n INSERT INTO PRODUCTRECOUNT\n (\n COMPANYID,\n WAREHOUSEID,\n PRODUCTCODE,\n PRODUCTDESCRIPTION,\n PRODUCTRECOUNTDATE,\n PRODUCTRECOUNTSYSTEMQUANTITY,\n PRODUCTRECOUNTPHYSICALQUANTITY,\n ISDEFAULT,\n ISNEW,\n ISDRAFT,\n ISUPDATE,\n ISDELETE,\n ISACTIVE,\n ISAPPROVED,\n ISREVIEW,\n ISPOST,\n EXECUTEBY,\n EXECUTETIME\n ) VALUES (\n '\" . $this->getCompanyId() . \"',\n '\" . $this->model->getWarehouseId() . \"',\n '\" . $this->model->getProductCode() . \"',\n '\" . $this->model->getProductDescription() . \"',\n '\" . $this->model->getProductRecountDate() . \"',\n '\" . $this->model->getProductRecountSystemQuantity() . \"',\n '\" . $this->model->getProductRecountPhysicalQuantity() . \"',\n '\" . $this->model->getIsDefault(0, 'single') . \"',\n '\" . $this->model->getIsNew(0, 'single') . \"',\n '\" . $this->model->getIsDraft(0, 'single') . \"',\n '\" . $this->model->getIsUpdate(0, 'single') . \"',\n '\" . $this->model->getIsDelete(0, 'single') . \"',\n '\" . $this->model->getIsActive(0, 'single') . \"',\n '\" . $this->model->getIsApproved(0, 'single') . \"',\n '\" . $this->model->getIsReview(0, 'single') . \"',\n '\" . $this->model->getIsPost(0, 'single') . \"',\n '\" . $this->model->getExecuteBy() . \"',\n \" . $this->model->getExecuteTime() . \"\n );\";\n }\n }\n }\n try {\n $this->q->create($sql);\n } catch (\\Exception $e) {\n $this->q->rollback();\n echo json_encode(array(\"success\" => false, \"message\" => $e->getMessage()));\n exit();\n }\n }", "public function setProdID($prodID){\r\n\t\t$this->prodID= $prodID;\r\n\t}", "function setSyncItemsCodeProduct()\n {\n }", "public function getCstPis()\n {\n return $this->cst_pis;\n }", "function __construct($nidp=NULL, $sdes=NULL, $npre=NULL, $suni=NULL, $ntip=NULL){\r\n\t\t$this->nId_Producto = $nidp;\r\n\t\t$this->sDescripcion = $sdes;\r\n\t\t$this->nPrecio = $npre;\r\n\t\t$this->sUnidad = $suni;\r\n\t\t$this->nId_Tipo = $ntip;\r\n\t}", "public function setProductPrice($product_price){\n $this->product_price = $product_price;\n }", "public function setProducts_prid( $products_prid ) {\n\t\t$this->products_prid = $products_prid;\n\t}", "public function setOperationPrimeProductPricePourcentage($v)\n {\n if ($v === ''){\n $v = null;\n }\n elseif ($v !== null){\n \n if(is_numeric($v)) {\n $v = (int) $v;\n }\n }\n if ($this->operation_prime_product_price_pourcentage !== $v) {\n $this->operation_prime_product_price_pourcentage = $v;\n $this->modifiedColumns[] = OperationPrimesPeer::OPERATION_PRIME_PRODUCT_PRICE_POURCENTAGE;\n }\n\n\n return $this;\n }", "public function testSetProductIdGetProductId()\n {\n $oTestObject = oxNew('oxArticleException', $this->_sMsg);\n $this->assertNull($oTestObject->getProductId());\n\n $this->_oTestObject->setProductId('xxx');\n $this->assertEquals('xxx', $this->_oTestObject->getProductId());\n }" ]
[ "0.72350395", "0.656024", "0.5880204", "0.57285804", "0.5723442", "0.5607413", "0.5573917", "0.5319703", "0.5291768", "0.52509326", "0.50441164", "0.49307394", "0.49186003", "0.4722158", "0.47080618", "0.4701123", "0.46990576", "0.46814469", "0.46468633", "0.46373168", "0.46209922", "0.46204227", "0.45763537", "0.45697078", "0.4563909", "0.45395", "0.4535357", "0.4535269", "0.4530989", "0.4515556" ]
0.72766274
0
Get the value of DOCUMENT_PRODUCT_PIS_ALIQUOTA
public function getDocumentProductPisAliquota() { return (string) $this->document_product_pis_aliquota; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDocumentProductIpiAliquota()\n {\n return (string) $this->document_product_ipi_aliquota;\n }", "public function getDocumentProductIcmsAliquota()\n {\n return (string) $this->document_product_icms_aliquota;\n }", "public function getDocumentProductCofinsAliquota()\n {\n return (string) $this->document_product_cofins_aliquota;\n }", "public function getAliquotaPis()\n {\n return $this->aliquotaPis;\n }", "public function setDocumentProductIpiAliquota(float $document_product_ipi_aliquota)\n {\n $this->collection->put('document_product_ipi_aliquota', (string) $document_product_ipi_aliquota);\n }", "public function getQuota()\n {\n return $this->_quota;\n }", "public function getQuota()\n {\n return $this->quota;\n }", "function quota_getUploadQuota($quota) {\n\tglobal $_zp_current_admin_obj;\n\tif (zp_loggedin(MANAGE_ALL_ALBUM_RIGHTS)) {\n\t\t$quota = -1;\n\t} else {\n\t\t$quota = $_zp_current_admin_obj->getQuota();\n\t\tif ($quota == NULL) $quota = getOption('quota_default');\n\t}\n\treturn $quota;\n}", "public function getStorageUsage() {\n if (isset($this->_quotausage['STORAGE']['usage'])) {\n return $this->_quotausage['STORAGE']['usage'];\n }\n return 0;\n }", "public function getAliquotaReaisPis()\n {\n return $this->aliquotaReaisPis;\n }", "public function get_quota() {\n\n\t\tif(!$this->has_capability(\"QUOTA\"))\n\t\t\treturn false;\n\n\t\t$command = \"GETQUOTAROOT \\\"INBOX\\\"\\r\\n\";\n\n\t\t$this->send_command($command);\n\t\t$res = $this->get_response();\n\t\t$status = $this->check_response($res);\n\t\tif($status){\n\t\t\tforeach($res as $response){\n\t\t\t\tif(strpos($response, 'STORAGE')!==false){\n\t\t\t\t\t$parts = explode(\" \", $response);\n\t\t\t\t\t$storage_part = array_search(\"STORAGE\", $parts);\n\t\t\t\t\tif ($storage_part>0){\n\t\t\t\t\t\treturn array(\n\t\t\t\t\t\t\t'usage'=>intval($parts[$storage_part+1]),\n\t\t\t\t\t\t\t'limit'=>intval($parts[$storage_part+2]));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "function quota_getCurrentUse($userobj) {\n\tglobal $_zp_current_admin_obj;\n\tif (is_null($userobj)) {\n\t\t$userobj = $_zp_current_admin_obj;\n\t}\n\t$sql = 'SELECT sum(`filesize`) FROM '.prefix('images').' WHERE `owner`=\"'.$userobj->getUser().'\"';\n\t$result = query_single_row($sql);\n\treturn array_shift($result)/1024;\n}", "public function getQuota(): int\n {\n return $this->quota;\n }", "public function getDocumentProductQtd()\n {\n return (string) $this->document_product_qtd;\n }", "public function setDocumentProductPisAliquota(float $document_product_pis_aliquota)\n {\n $this->collection->put('document_product_pis_aliquota', (string) $document_product_pis_aliquota);\n }", "function imap_get_quota(IMAP\\Connection $imap, string $quota_root): array|false {}", "function _buyquota()\n\t{\n\t\tif (get_option('is_on_pop3_buy')=='0') return new ocp_tempcode();\n\n\t\t$title=get_page_title('TITLE_QUOTA');\n\n\t\t$member_id=get_member();\n\t\t$pointsleft=available_points($member_id);\n\t\t$price=intval(get_option('quota'));\n\t\t$quota=post_param_integer('quota');\n\n\t\t$details=$GLOBALS['SITE_DB']->query_select('sales',array('details','details2'),array('memberid'=>$member_id,'purchasetype'=>'pop3'),'',1);\n\t\t$prefix=$details[0]['details'];\n\t\t$suffix=$details[0]['details2'];\n\n\t\t// If we don't own a POP3 account, stop right here.\n\t\tif (!array_key_exists(0,$details))\n\t\t{\n\t\t\treturn warn_screen($title,do_lang_tempcode('NO_POP3'));\n\t\t}\n\n\t\t// Stop if we can't afford this much quota\n\t\tif ((($quota*$price)>$pointsleft) && (!has_specific_permission(get_member(),'give_points_self')))\n\t\t{\n\t\t\treturn warn_screen($title,do_lang_tempcode('CANT_AFFORD'));\n\t\t}\n\n\t\t// Mail off the order form\n\t\t$quota_url=get_option('quota_url');\n\t\t$_price=$quota*$price;\n\t\t$encoded_reason=do_lang('TITLE_QUOTA');\n\t\t$message_raw=do_template('POINTSTORE_QUOTA_MAIL',array('_GUID'=>'5a4e0bb5e53e6ccf8e57581c377557f4','ENCODED_REASON'=>$encoded_reason,'QUOTA'=>integer_format($quota),'EMAIL'=>$prefix.$suffix,'QUOTA_URL'=>$quota_url,'PRICE'=>integer_format($_price)));\n\t\trequire_code('notifications');\n\t\tdispatch_notification('pointstore_request_quota','quota_'.uniqid('',true),do_lang('MAIL_REQUEST_QUOTA',NULL,NULL,NULL,get_site_default_lang()),$message_raw->evaluate(get_site_default_lang(),false),NULL,NULL,3,true);\n\n\t\t$url=build_url(array('page'=>'_SELF','type'=>'misc'),'_SELF');\n\t\treturn redirect_screen($title,$url,do_lang_tempcode('ORDER_QUOTA_DONE'));\n\t}", "public function setDocumentProductIcmsAliquota(float $document_product_icms_aliquota)\n {\n $this->collection->put('document_product_icms_aliquota', (string) $document_product_icms_aliquota);\n }", "public function getUsage ($language = null) {\n\t$data = $this->getLocalizedfields()->getLocalizedValue(\"usage\", $language);\n\t$preValue = $this->preGetValue(\"usage\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { return $preValue;}\n\t return $data;\n}", "public function getUsage()\n {\n return isset($this->usage) ? $this->usage : 0.0;\n }", "function buyquota()\n\t{\n\t\tif (get_option('is_on_pop3_buy')=='0') return new ocp_tempcode();\n\n\t\t$title=get_page_title('TITLE_QUOTA');\n\n\t\t$member_id=get_member();\n\t\t$pointsleft=available_points($member_id);\n\t\t$price=intval(get_option('quota'));\n\t\t$topamount=intval(get_option('max_quota'));\n\n\t\tif ($price==0) $topamount=$pointsleft; else $topamount=intval(round($pointsleft/$price));\n\t\t$details=$GLOBALS['SITE_DB']->query_select('sales',array('details','details2'),array('memberid'=>$member_id,'purchasetype'=>'pop3'),'',1);\n\n\t\t// If we don't own a POP3 account, stop right here.\n\t\tif (!array_key_exists(0,$details))\n\t\t{\n\t\t\treturn warn_screen($title,do_lang_tempcode('NO_POP3'));\n\t\t}\n\n\t\t$prefix=$details[0]['details'];\n\t\t$suffix=$details[0]['details2'];\n\n\t\t// Screen\n\t\t$submit_name=do_lang_tempcode('TITLE_QUOTA');\n\t\t$post_url=build_url(array('page'=>'_SELF','type'=>'_buyquota','id'=>'pop3'),'_SELF');\n\t\t$text=do_template('POINTSTORE_QUOTA',array('_GUID'=>'1282fae968b4919bcd0ba1e3ca169fe8','POINTS_LEFT'=>integer_format($pointsleft),'PRICE'=>integer_format($price),'TOP_AMOUNT'=>integer_format($topamount),'EMAIL'=>$prefix.$suffix));\n\t\trequire_code('form_templates');\n\t\t$fields=form_input_integer(do_lang_tempcode('QUOTA'),do_lang_tempcode('QUOTA_DESCRIPTION'),'quota',100,true);\n\t\treturn do_template('FORM_SCREEN',array('_GUID'=>'1c82c713beaa03d1e3045e50295c722c','HIDDEN'=>'','URL'=>$post_url,'TITLE'=>$title,'FIELDS'=>$fields,'TEXT'=>$text,'SUBMIT_NAME'=>$submit_name));\n\t}", "function get_quota($quota) {\n if(ereg('S$', $quota)) {\n $quota = ereg_replace('S$','', $quota);\n $quota = $quota / 1024;\n $quota = $quota / 1024;\n $quota = $quota . 'MB';\n }\n return $quota;\n}", "public function getProductPriceTax()\n {\n $_tax = Mage::getStoreConfig('splitprice/split_price_config/add_tax');\n \n if (!ctype_digit($_tax))\n {\n $_tax = 0;\n }\n \n return $_tax;\n }", "protected function get_current_usage()\n {\n if( !($current = get_option(self::OPTION_USAGE)))\n {\n EPFLQuota::init_update();\n $current = get_option(self::OPTION_USAGE);\n }\n\n return $current;\n }", "public function getquotaTypeId()\n {\n return $this->quotatype_id;\n }", "public function getProductPriceTax()\n {\n $_tax = $this->_scopeConfig->getValue('splitprice/split_price_config/add_tax', \\Magento\\Store\\Model\\ScopeInterface::SCOPE_STORE);\n \n if (!ctype_digit($_tax))\n {\n $_tax = 0;\n }\n \n return $_tax;\n }", "public function getStorageLimit() {\n if (isset($this->_quotausage['STORAGE']['limit'])) {\n return $this->_quotausage['STORAGE']['limit'];\n }\n return 0;\n }", "public function getMessageUsage() {\n if (isset($this->_quotausage['MESSAGE']['usage'])) {\n return $this->_quotausage['MESSAGE']['usage'];\n }\n return 0;\n }", "public function getIptPercent();", "public function getUsagelimit()\n {\n return $this->usagelimit;\n }" ]
[ "0.7746799", "0.7274966", "0.6792936", "0.65718615", "0.5923601", "0.58215785", "0.5794177", "0.57673514", "0.57008153", "0.5592656", "0.5556852", "0.55527586", "0.55491024", "0.5526643", "0.5519039", "0.55091786", "0.5413571", "0.5403986", "0.5393269", "0.5386488", "0.535748", "0.5322949", "0.5256582", "0.52243847", "0.52231956", "0.5217725", "0.5185248", "0.5179189", "0.51218677", "0.51192766" ]
0.76541287
1
Get the value of DOCUMENT_PRODUCT_COFINS_CST
public function getDocumentProductCofinsCst() { return (string) $this->document_product_cofins_cst; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDocumentProductIcmsCst()\n {\n return $this->document_product_icms_cst;\n }", "public function getCstCofins()\n {\n return $this->cst_cofins;\n }", "public function getDocumentProductCest()\n {\n return (string) $this->document_product_cest;\n }", "public function getDocumentProductCfop()\n {\n return (string) $this->document_product_cfop;\n }", "public function getCoCNES()\n {\n return isset($this->coCNES) ? $this->coCNES : null;\n }", "public function getDocumentProductIpiCst()\n {\n return (string) $this->document_product_ipi_cst;\n }", "public function setDocumentProductCofinsCst(string $document_product_cofins_cst)\n {\n $this->collection->put('document_product_cofins_cst', (string) $document_product_cofins_cst);\n }", "public function getDocumentProductPisCst()\n {\n return (string) (string) $this->document_product_pis_cst;\n }", "public function getCOFINS()\n {\n return $this->cOFINS;\n }", "public function getCoCentroDato()\n\t{\n\t\treturn $this->co_centro_dato;\n\t}", "public function getCoCustodio()\n\t{\n\t\treturn $this->co_custodio;\n\t}", "public function getCoSo()\n\t{\n\t\treturn $this->co_so;\n\t}", "function getCcs() {\n\t\treturn $this->getData('ccs');\n\t}", "public function getDocumentProductCod()\n {\n return (string) $this->document_product_cod;\n }", "public function getDocumentProductCofinsAliquota()\n {\n return (string) $this->document_product_cofins_aliquota;\n }", "public function getCoEdificio()\n\t{\n\t\treturn $this->co_edificio;\n\t}", "public function getC6()\r\n {\r\n return $this->C6;\r\n }", "public function getCoInformeIncidente()\n\t{\n\t\treturn $this->co_informe_incidente;\n\t}", "public function getValorCofins()\n {\n return $this->valorCofins;\n }", "public function getCLINICA()\r\n {\r\n return $this->CLINICA;\r\n }", "public function getSectoreconomicocodigo()\n\t{\n\t\treturn $this->sectoreconomicocodigo;\n\t}", "public function getCindex()\n {\n $value = $this->get(self::CINDEX);\n return $value === null ? (integer)$value : $value;\n }", "public function getC()\n {\n return $this->C;\n }", "public function getDocumentProductNcm()\n {\n return (string) $this->document_product_ncm;\n }", "public function getCOMENTARIOS()\r\n {\r\n return $this->COMENTARIOS;\r\n }", "public function getCodcaj(){\n\t\treturn $this->codcaj;\n\t}", "public function getCLSc() {\n\t\treturn $this->clsc;\n\t}", "public function getCoNumInventario()\n\t{\n\t\treturn $this->co_num_inventario;\n\t}", "public function getCIF(){\n $info = $this->getInfo();\n return $info[\"cif\"];\n }", "public function getNIVEL_SOCIOECONOMICO()\r\n {\r\n return $this->NIVEL_SOCIOECONOMICO;\r\n }" ]
[ "0.6927473", "0.6868773", "0.6568281", "0.6495302", "0.64735186", "0.6472246", "0.6447161", "0.64454985", "0.63001484", "0.6154556", "0.6144235", "0.5917708", "0.5855762", "0.5797576", "0.5787883", "0.5758336", "0.57354844", "0.57293695", "0.56427044", "0.5641518", "0.56377536", "0.562973", "0.5618048", "0.5600019", "0.5594637", "0.558287", "0.5578307", "0.55745906", "0.5522729", "0.5502259" ]
0.80786407
0
Set the value of DOCUMENT_PRODUCT_COFINS_CST
public function setDocumentProductCofinsCst(string $document_product_cofins_cst) { $this->collection->put('document_product_cofins_cst', (string) $document_product_cofins_cst); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setDocumentProductCest(int $document_product_cest)\n {\n $this->collection->put('document_product_cest', (string) $document_product_cest);\n }", "public function setDocumentProductIcmsCst(string $document_product_icms_cst)\n {\n $this->collection->put('document_product_icms_cst', (string) $document_product_icms_cst);\n }", "public function setDocumentProductCfop(int $document_product_cfop)\n {\n $this->collection->put('document_product_cfop', (string) $document_product_cfop);\n }", "public function getDocumentProductCofinsCst()\n {\n return (string) $this->document_product_cofins_cst;\n }", "public function setDocumentProductIpiCst(int $document_product_ipi_cst)\n {\n $this->collection->put('document_product_ipi_cst', (string) $document_product_ipi_cst);\n }", "public function getCstCofins()\n {\n return $this->cst_cofins;\n }", "public function getDocumentProductIcmsCst()\n {\n return $this->document_product_icms_cst;\n }", "public function setDocumentProductPiscst(string $document_product_pis_cst)\n {\n $this->collection->put('document_product_pis_cst', (string) $document_product_pis_cst);\n }", "public function setCstCofins($cst_cofins)\n {\n $this->cst_cofins = $cst_cofins;\n\n return $this;\n }", "public function setDocumentProductCofinsAliquota(float $document_product_cofins_aliquota)\n {\n $this->collection->put('document_product_cofins_aliquota', (string) $document_product_cofins_aliquota);\n }", "public function getCOFINS()\n {\n return $this->cOFINS;\n }", "public function getCoCNES()\n {\n return isset($this->coCNES) ? $this->coCNES : null;\n }", "public function setCoCustodio($v)\n\t{\n\t\tif ($v !== null) {\n\t\t\t$v = (string) $v;\n\t\t}\n\n\t\tif ($this->co_custodio !== $v) {\n\t\t\t$this->co_custodio = $v;\n\t\t\t$this->modifiedColumns[] = C060InventarioPeer::CO_CUSTODIO;\n\t\t}\n\n\t\treturn $this;\n\t}", "public function setDocumentProductNcm(int $document_product_ncm)\n {\n $this->collection->put('document_product_ncm', (string) $document_product_ncm);\n }", "public function setCOFINS(\\JansenFelipe\\NFePHPSerialize\\NotaFiscal\\TNFeType\\InfNFeAType\\DetAType\\ImpostoAType\\COFINSAType $cOFINS)\n {\n $this->cOFINS = $cOFINS;\n return $this;\n }", "public function testSetCumProvCp() {\n\n $obj = new Employes();\n\n $obj->setCumProvCp(10.092018);\n $this->assertEquals(10.092018, $obj->getCumProvCp());\n }", "public function setCLINICA($CLINICA)\r\n {\r\n $this->CLINICA = $CLINICA;\r\n\r\n return $this;\r\n }", "public function setCoCentroDato($v)\n\t{\n\t\tif ($v !== null) {\n\t\t\t$v = (string) $v;\n\t\t}\n\n\t\tif ($this->co_centro_dato !== $v) {\n\t\t\t$this->co_centro_dato = $v;\n\t\t\t$this->modifiedColumns[] = C060InventarioPeer::CO_CENTRO_DATO;\n\t\t}\n\n\t\treturn $this;\n\t}", "public function setCoti_total($coti_total){\n $this->coti_total = $coti_total;\n }", "public function setCoSo($v)\n\t{\n\t\tif ($v !== null) {\n\t\t\t$v = (string) $v;\n\t\t}\n\n\t\tif ($this->co_so !== $v) {\n\t\t\t$this->co_so = $v;\n\t\t\t$this->modifiedColumns[] = C060InventarioPeer::CO_SO;\n\t\t}\n\n\t\treturn $this;\n\t}", "public function setCNES($cNES)\n {\n $this->cNES = $cNES;\n return $this;\n }", "public function getCoCentroDato()\n\t{\n\t\treturn $this->co_centro_dato;\n\t}", "public function testSetCumCpPris() {\n\n $obj = new Employes();\n\n $obj->setCumCpPris(10.092018);\n $this->assertEquals(10.092018, $obj->getCumCpPris());\n }", "public function obtenerCentroCotizacions($count = false){\n if( $count ){\n $sql = \"SELECT count(uid_elemento) FROM \". TABLE_CENTRO_COTIZACION .\" WHERE uid_elemento = {$this->getUID()} AND uid_modulo = {$this->getModuleId()}\";\n return $this->db->query($sql, 0, 0);\n } else {\n $sql = \"SELECT uid_centrocotizacion FROM \". TABLE_CENTRO_COTIZACION .\" WHERE uid_elemento = {$this->getUID()} AND uid_modulo = {$this->getModuleId()}\";\n $items = $this->db->query($sql, \"*\", 0, \"centrocotizacion\");\n return new ArrayObjectList($items);\n }\n }", "function set_cc($direcciones = array())\n\t{\n\t\t$this->cc = $direcciones;\n\t}", "public function setCae(): Documents\r\n {\r\n if (defined('DOCUMENT_SET_CAE_ID')) {\r\n $this->caeId = (int)DOCUMENT_SET_CAE_ID;\r\n } else {\r\n $this->caeId = 0;\r\n }\r\n\r\n return $this;\r\n }", "public function getDocumentProductPisCst()\n {\n return (string) (string) $this->document_product_pis_cst;\n }", "public function setCpf($cpf)\n {\n $this->cpf = $cpf;\n }", "function setCcs($ccs) {\n\t\t$this->setData('ccs', $ccs);\n\t}", "public function getDocumentProductIpiCst()\n {\n return (string) $this->document_product_ipi_cst;\n }" ]
[ "0.6640624", "0.6639885", "0.66164434", "0.65267414", "0.60607076", "0.5908602", "0.57555777", "0.57115674", "0.56976277", "0.5514128", "0.53617257", "0.5217201", "0.5161775", "0.5151112", "0.5091954", "0.5068208", "0.5053028", "0.5035455", "0.49965444", "0.49686086", "0.49561483", "0.49419546", "0.4909488", "0.48258853", "0.48020947", "0.477343", "0.4764615", "0.4755104", "0.47494084", "0.47318408" ]
0.7816083
0
Get the value of DOCUMENT_PRODUCT_COFINS_ALIQUOTA
public function getDocumentProductCofinsAliquota() { return (string) $this->document_product_cofins_aliquota; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDocumentProductIcmsAliquota()\n {\n return (string) $this->document_product_icms_aliquota;\n }", "public function getDocumentProductPisAliquota()\n {\n return (string) $this->document_product_pis_aliquota;\n }", "public function getDocumentProductIpiAliquota()\n {\n return (string) $this->document_product_ipi_aliquota;\n }", "public function getAliquotaCofins()\n {\n return $this->aliquotaCofins;\n }", "public function setDocumentProductCofinsAliquota(float $document_product_cofins_aliquota)\n {\n $this->collection->put('document_product_cofins_aliquota', (string) $document_product_cofins_aliquota);\n }", "public function getQuota()\n {\n return $this->_quota;\n }", "public function getQuota()\n {\n return $this->quota;\n }", "public function getDocumentProductQtd()\n {\n return (string) $this->document_product_qtd;\n }", "function getQuotationCount()\n {\n $result = $this->query(\"SELECT COUNT(*) as count FROM `\".$this->tblPrefix.$this->table.\"` WHERE client_id='\".$this->logUser.\"'\");\n return $result['0']['count'];\n }", "public function getDocumentProductTaxCod()\n {\n return (string) $this->document_product_tax_cod;\n }", "public function getDocumentProductDiscount()\n {\n return (string) $this->document_product_discount;\n }", "public function getQuota(): int\n {\n return $this->quota;\n }", "public function getAliquotaReaisCofins()\n {\n return $this->aliquotaReaisCofins;\n }", "function quota_getUploadQuota($quota) {\n\tglobal $_zp_current_admin_obj;\n\tif (zp_loggedin(MANAGE_ALL_ALBUM_RIGHTS)) {\n\t\t$quota = -1;\n\t} else {\n\t\t$quota = $_zp_current_admin_obj->getQuota();\n\t\tif ($quota == NULL) $quota = getOption('quota_default');\n\t}\n\treturn $quota;\n}", "function quota_getCurrentUse($userobj) {\n\tglobal $_zp_current_admin_obj;\n\tif (is_null($userobj)) {\n\t\t$userobj = $_zp_current_admin_obj;\n\t}\n\t$sql = 'SELECT sum(`filesize`) FROM '.prefix('images').' WHERE `owner`=\"'.$userobj->getUser().'\"';\n\t$result = query_single_row($sql);\n\treturn array_shift($result)/1024;\n}", "public function getDocumentProductCfop()\n {\n return (string) $this->document_product_cfop;\n }", "public function getStorageUsage() {\n if (isset($this->_quotausage['STORAGE']['usage'])) {\n return $this->_quotausage['STORAGE']['usage'];\n }\n return 0;\n }", "public function getDocumentProductCofinsCst()\n {\n return (string) $this->document_product_cofins_cst;\n }", "public function getDocumentProductCest()\n {\n return (string) $this->document_product_cest;\n }", "public function getDocumentProductEan()\n {\n return (string) $this->document_product_ean;\n }", "function imap_get_quota(IMAP\\Connection $imap, string $quota_root): array|false {}", "public function getDocumentProductIpiCst()\n {\n return (string) $this->document_product_ipi_cst;\n }", "public function setDocumentProductIcmsAliquota(float $document_product_icms_aliquota)\n {\n $this->collection->put('document_product_icms_aliquota', (string) $document_product_icms_aliquota);\n }", "public function getDocumentProductNcm()\n {\n return (string) $this->document_product_ncm;\n }", "public function getAliquotaPis()\n {\n return $this->aliquotaPis;\n }", "public function getDocumentProductUnitaryValue()\n {\n return (string) $this->document_product_unitary_value;\n }", "public function get_quota() {\n\n\t\tif(!$this->has_capability(\"QUOTA\"))\n\t\t\treturn false;\n\n\t\t$command = \"GETQUOTAROOT \\\"INBOX\\\"\\r\\n\";\n\n\t\t$this->send_command($command);\n\t\t$res = $this->get_response();\n\t\t$status = $this->check_response($res);\n\t\tif($status){\n\t\t\tforeach($res as $response){\n\t\t\t\tif(strpos($response, 'STORAGE')!==false){\n\t\t\t\t\t$parts = explode(\" \", $response);\n\t\t\t\t\t$storage_part = array_search(\"STORAGE\", $parts);\n\t\t\t\t\tif ($storage_part>0){\n\t\t\t\t\t\treturn array(\n\t\t\t\t\t\t\t'usage'=>intval($parts[$storage_part+1]),\n\t\t\t\t\t\t\t'limit'=>intval($parts[$storage_part+2]));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public function get_resource_qty() {\n\t\t\n\t\t$bkap_resource_qty = get_post_meta( $this->get_id(), '_bkap_resource_qty', true );\n\t\t\n\t\treturn $bkap_resource_qty;\n\t}", "public function getCapacidad()\r\n {\r\n return \"4.7GB\";\r\n }", "function get_quota($quota) {\n if(ereg('S$', $quota)) {\n $quota = ereg_replace('S$','', $quota);\n $quota = $quota / 1024;\n $quota = $quota / 1024;\n $quota = $quota . 'MB';\n }\n return $quota;\n}" ]
[ "0.7069205", "0.69054484", "0.6759853", "0.62343174", "0.6082119", "0.592756", "0.59221387", "0.5869005", "0.5699457", "0.566505", "0.56565154", "0.5637489", "0.56222486", "0.54967225", "0.5481819", "0.544269", "0.54211444", "0.5414359", "0.536564", "0.53562856", "0.53233665", "0.53157276", "0.5286929", "0.5285919", "0.52738124", "0.52406245", "0.5187971", "0.5162017", "0.5145066", "0.51175964" ]
0.7932899
0
Set the value of DOCUMENT_PRODUCT_COFINS_ALIQUOTA
public function setDocumentProductCofinsAliquota(float $document_product_cofins_aliquota) { $this->collection->put('document_product_cofins_aliquota', (string) $document_product_cofins_aliquota); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setDocumentProductIcmsAliquota(float $document_product_icms_aliquota)\n {\n $this->collection->put('document_product_icms_aliquota', (string) $document_product_icms_aliquota);\n }", "public function getDocumentProductCofinsAliquota()\n {\n return (string) $this->document_product_cofins_aliquota;\n }", "public function setDocumentProductIpiAliquota(float $document_product_ipi_aliquota)\n {\n $this->collection->put('document_product_ipi_aliquota', (string) $document_product_ipi_aliquota);\n }", "public function setQuota($value) {\n $this->_quota = $value;\n }", "public function setDocumentProductPisAliquota(float $document_product_pis_aliquota)\n {\n $this->collection->put('document_product_pis_aliquota', (string) $document_product_pis_aliquota);\n }", "public function getDocumentProductIcmsAliquota()\n {\n return (string) $this->document_product_icms_aliquota;\n }", "public function getDocumentProductIpiAliquota()\n {\n return (string) $this->document_product_ipi_aliquota;\n }", "public function getDocumentProductPisAliquota()\n {\n return (string) $this->document_product_pis_aliquota;\n }", "public function getAliquotaCofins()\n {\n return $this->aliquotaCofins;\n }", "function testSetUploadQuota()\n {\n $this->deleteLog($this->logfilename);\n $this->login();\n $query = $this->db->query(\"SELECT id FROM project WHERE name = 'EmailProjectExample'\");\n $projectid = $query[0]['id'];\n $content = $this->connect($this->url.'/createProject.php?projectid='.$projectid);\n\n if($content == false)\n {\n return;\n }\n\n // set the upload quota to 1 GB\n $this->setField('uploadQuota','1');\n $this->clickSubmitByName('Update');\n }", "public function setDocumentProductCfop(int $document_product_cfop)\n {\n $this->collection->put('document_product_cfop', (string) $document_product_cfop);\n }", "public function setAliquotaCofins($aliquotaCofins)\n {\n $this->aliquotaCofins = $aliquotaCofins;\n\n return $this;\n }", "public function setQuota($value)\n {\n $this->_quota = $value;\n return $this;\n }", "public function set_user_quota($email, $quota) \n\t{\n\t\treturn $this->vpopmail_readline(sprintf(\"M %s %s\", $email, $quota));\n\t}", "public function setDocumentProductCest(int $document_product_cest)\n {\n $this->collection->put('document_product_cest', (string) $document_product_cest);\n }", "public function setDocumentProductDiscount(float $document_product_discount)\n {\n $this->collection->put('document_product_discount', (string) $document_product_discount);\n }", "protected function setTaxAmount1050($valueNeto, $valueIva)\n\t{\n\t\t$this->setNumbersFont(8);\n\t\tfor($i=0;$i<$this->copies;$i++){\n\t\t\t$this->_getPdf()->pages[$i]->drawText($this->asMonospacedNumber($valueNeto,10), 198, 128, 'UTF-8');\n\t\t\t$this->_getPdf()->pages[$i]->drawText($this->asMonospacedNumber($valueIva,10), 198, 108, 'UTF-8');\n\t\t}\n\t}", "function quota_save_admin($updated, $userobj, $i, $alter) {\n\tif (isset($_POST[$i.'quota']) && $alter) {\n\t\t$oldquota = $userobj->getQuota();\n\t\t$userobj->setQuota(sanitize_numeric($_POST[$i.'quota']));\n\t\t$updated = $oldquota == $userobj->getQuota();\n\t}\n\treturn $updated;\n}", "public function getAliquotaReaisCofins()\n {\n return $this->aliquotaReaisCofins;\n }", "function quotas() {\n\n\t\t/**\n\t\t * Check if maintenance is on.\n\t\t * Call the \"Maintenance\" component to check.\n\t\t */\n\t\t$this->Maintenance->check();\n\n\t\t/**\n\t\t * Display SQL databases quota.\n\t\t * Call the \"Quota\" component to check.\n\t\t * $quotasSqldata will be available in the view.\n\t\t */\n\t\t$this->set('quotasSqldata', $this->Quota->displayTotal('Sqldata'));\n\t\t\n\t\t/**\n\t\t * Display FTP users quota.\n\t\t * Call the \"Quota\" component to check.\n\t\t * $quotasFtpuser will be available in the view.\n\t\t */\n\t\t$this->set('quotasFtpuser', $this->Quota->displayTotal('Ftpuser'));\n\t\t\n\t\t/**\n\t\t * Display SQL users quota.\n\t\t * Call the \"Quota\" component to check.\n\t\t * $quotasSqluser will be available in the view.\n\t\t */\n\t\t$this->set('quotasSqluser', $this->Quota->displayTotal('Sqluser'));\n\t\t\n\t\t/**\n\t\t * Display mailboxes quota.\n\t\t * Call the \"Quota\" component to check.\n\t\t * $quotasMailbox will be available in the view.\n\t\t */\n\t\t$this->set('quotasMailbox', $this->Quota->displayTotal('Mailbox'));\n\t\t\n\t\t/**\n\t\t * Display aliases quota.\n\t\t * Call the \"Quota\" component to check.\n\t\t * $quotasAlias will be available in the view.\n\t\t */\n\t\t$this->set('quotasAlias', $this->Quota->displayTotal('Alias'));\n\t\t\n\t\t/**\n\t\t * Display domains quota.\n\t\t * Call the \"Quota\" component to check.\n\t\t * $quotasDomain will be available in the view.\n\t\t */\n\t\t$this->set('quotasDomain', $this->Quota->displayTotal('Domain'));\n\t\t\n\t\t/**\n\t\t * Display subdomains quota.\n\t\t * Call the \"Quota\" component to check.\n\t\t * $quotasSubdomain will be available in the view.\n\t\t */\n\t\t$this->set('quotasSubdomain', $this->Quota->displayTotal('Subdomain'));\n\t\t\n\t\t/**\n\t\t * Display cronjobs quota.\n\t\t * Call the \"Quota\" component to check.\n\t\t * $quotasCron will be available in the view.\n\t\t */\n\t\t$this->set('quotasCron', $this->Quota->displayTotal('Cron'));\n\n\t\t/**\n\t\t * Display disk quota.\n\t\t * Call the \"Quota\" component to check.\n\t\t * $quotasDisk will be available in the view.\n\t\t */\n\t\t$this->set('quotasDisk', $this->Quota->displayDisk('Quotasprogress'));\n\n\t\t/**\n\t\t * Select all quotas about the offer who belongs to the user.\n\t\t * @var array\n\t\t */\n\t\t$conditionQuota = array('conditions' => array('Quota.offer_id' => $this->Auth->user('offer_id')));\n\n\t\t/**\n\t\t * Display the total of quotas.\n\t\t * Call the \"Quota\" component to check.\n\t\t * $quotasTotal will be available in the view.\n\t\t */\n\t\t$this->set('quotasTotal', $this->User->Offer->Quota->find('all', $conditionQuota));\n\n\t}", "function _buyquota()\n\t{\n\t\tif (get_option('is_on_pop3_buy')=='0') return new ocp_tempcode();\n\n\t\t$title=get_page_title('TITLE_QUOTA');\n\n\t\t$member_id=get_member();\n\t\t$pointsleft=available_points($member_id);\n\t\t$price=intval(get_option('quota'));\n\t\t$quota=post_param_integer('quota');\n\n\t\t$details=$GLOBALS['SITE_DB']->query_select('sales',array('details','details2'),array('memberid'=>$member_id,'purchasetype'=>'pop3'),'',1);\n\t\t$prefix=$details[0]['details'];\n\t\t$suffix=$details[0]['details2'];\n\n\t\t// If we don't own a POP3 account, stop right here.\n\t\tif (!array_key_exists(0,$details))\n\t\t{\n\t\t\treturn warn_screen($title,do_lang_tempcode('NO_POP3'));\n\t\t}\n\n\t\t// Stop if we can't afford this much quota\n\t\tif ((($quota*$price)>$pointsleft) && (!has_specific_permission(get_member(),'give_points_self')))\n\t\t{\n\t\t\treturn warn_screen($title,do_lang_tempcode('CANT_AFFORD'));\n\t\t}\n\n\t\t// Mail off the order form\n\t\t$quota_url=get_option('quota_url');\n\t\t$_price=$quota*$price;\n\t\t$encoded_reason=do_lang('TITLE_QUOTA');\n\t\t$message_raw=do_template('POINTSTORE_QUOTA_MAIL',array('_GUID'=>'5a4e0bb5e53e6ccf8e57581c377557f4','ENCODED_REASON'=>$encoded_reason,'QUOTA'=>integer_format($quota),'EMAIL'=>$prefix.$suffix,'QUOTA_URL'=>$quota_url,'PRICE'=>integer_format($_price)));\n\t\trequire_code('notifications');\n\t\tdispatch_notification('pointstore_request_quota','quota_'.uniqid('',true),do_lang('MAIL_REQUEST_QUOTA',NULL,NULL,NULL,get_site_default_lang()),$message_raw->evaluate(get_site_default_lang(),false),NULL,NULL,3,true);\n\n\t\t$url=build_url(array('page'=>'_SELF','type'=>'misc'),'_SELF');\n\t\treturn redirect_screen($title,$url,do_lang_tempcode('ORDER_QUOTA_DONE'));\n\t}", "protected function setTaxAmount2100($valueNeto, $valueIva)\n\t{\n\t\t$this->setNumbersFont(8);\n\t\tfor($i=0;$i<$this->copies;$i++){\n\t\t\t$this->_getPdf()->pages[$i]->drawText($this->asMonospacedNumber($valueNeto,10), 254, 128, 'UTF-8');\n\t\t\t$this->_getPdf()->pages[$i]->drawText($this->asMonospacedNumber($valueIva,10), 254, 108, 'UTF-8');\n\t\t}\n\t}", "public function setDocumentProductCofinsCst(string $document_product_cofins_cst)\n {\n $this->collection->put('document_product_cofins_cst', (string) $document_product_cofins_cst);\n }", "public function setFabricQuantity($quantity) {\r\n \r\n $this->quantity = intVal(100*$quantity);\r\n }", "protected function setCuitOrDni($afipInvoice,$customer){\n\t\t$ivaAmount = $afipInvoice->getIva_0250() + $afipInvoice->getIva_0500() + $afipInvoice->getIva_1050() + $afipInvoice->getIva_2100() + $afipInvoice->getIva_2700();\n\t\t$netoAmount = $afipInvoice->getNeto_0250() + $afipInvoice->getNeto_0500() + $afipInvoice->getNeto_1050() + $afipInvoice->getNeto_2100() + $afipInvoice->getNeto_2700() + $afipInvoice->getNetoExento();\n\t\t//Factura B\n\t\tif($afipInvoice->getType() == TypeEnum::B){\n\t\t\t//>= $1000\n\t\t\tif(($customer->getIvaCondition() == 1 || $customer->getIvaCondition() == 4) && ($ivaAmount + $netoAmount) >= 1000){\n\t\t\t\tif(strlen($customer->getTaxvat()) == 11){\n\t\t\t\t\t$this->setCUITNumber($customer->getTaxvat());\n\t\t\t\t}else{\n\t\t\t\t\t$this->setDNINumber($customer->getTaxvat());\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\t//Responsable monotributo o Exento\n\t\t\t\tif($customer->getIvaCondition() == 3 || $customer->getIvaCondition() == 5){\n\t\t\t\t\tif(strlen($customer->getTaxvat()) == 11){\n\t\t\t\t\t\t$this->setCUITNumber($customer->getTaxvat());\n\t\t\t\t\t}else{\n\t\t\t\t\t\t$this->setDNINumber($customer->getTaxvat());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t//Factura A\t\n\t\t}else{\n\t\t\t$this->setCUITNumber($customer->getTaxvat());\n\t\t}\n\t\t \n\t\t \n\t\t\n\t}", "public function is_user_over_quota()\n {\n }", "function setNota_max($inota_max = '')\n {\n $this->inota_max = $inota_max;\n }", "function setNota_max($inota_max = '')\n {\n $this->inota_max = $inota_max;\n }", "public function setCertificateEnhancedKeyUsage(?string $value): void {\n $this->getBackingStore()->set('certificateEnhancedKeyUsage', $value);\n }", "protected function setTaxAmountExento($valueNeto, $valueIva)\n\t{\n\t\t$this->setNumbersFont(8);\n\t\tfor($i=0;$i<$this->copies;$i++){\n\t\t\t$this->_getPdf()->pages[$i]->drawText($this->asMonospacedNumber($valueNeto,10), 366, 128, 'UTF-8');\n\t\t\t$this->_getPdf()->pages[$i]->drawText($this->asMonospacedNumber($valueIva,10), 366, 108, 'UTF-8');\n\t\t}\n\t}" ]
[ "0.6750867", "0.65985334", "0.6318673", "0.5918599", "0.58983606", "0.5870606", "0.56730485", "0.56056935", "0.53566444", "0.52897686", "0.51968235", "0.5142676", "0.51390696", "0.49675822", "0.4945191", "0.47667527", "0.4754607", "0.47456142", "0.47118095", "0.46851468", "0.46847916", "0.46205756", "0.46128085", "0.4598797", "0.45880434", "0.4586742", "0.45739123", "0.45739123", "0.4560931", "0.45401937" ]
0.7460945
0
Resolve the correct type of quote from IOC
public function getQuoteStrategy($type) { if ($type == 'post') { return \App::make(QuotePost::class); } if ($type == 'reply') { return \App::make(QuoteReply::class); } return \App::make(NullQuote::class); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getNotification_Type_QuoteService()\n {\n $instance = new \\phpbb\\notification\\type\\quote(${($_ = isset($this->services['dbal.conn']) ? $this->services['dbal.conn'] : ($this->services['dbal.conn'] = new \\phpbb\\db\\driver\\factory($this))) && false ?: '_'}, ${($_ = isset($this->services['language']) ? $this->services['language'] : $this->getLanguageService()) && false ?: '_'}, ${($_ = isset($this->services['user']) ? $this->services['user'] : $this->getUserService()) && false ?: '_'}, ${($_ = isset($this->services['auth']) ? $this->services['auth'] : ($this->services['auth'] = new \\phpbb\\auth\\auth())) && false ?: '_'}, './../', 'php', 'phpbb_user_notifications');\n\n $instance->set_user_loader(${($_ = isset($this->services['user_loader']) ? $this->services['user_loader'] : $this->getUserLoaderService()) && false ?: '_'});\n $instance->set_config(${($_ = isset($this->services['config']) ? $this->services['config'] : $this->getConfigService()) && false ?: '_'});\n $instance->set_utils(${($_ = isset($this->services['text_formatter.s9e.utils']) ? $this->services['text_formatter.s9e.utils'] : ($this->services['text_formatter.s9e.utils'] = new \\phpbb\\textformatter\\s9e\\utils())) && false ?: '_'});\n\n return $instance;\n }", "public function prepareQuote($quote, $info)\n {\n if ($this->validatePaymentClass()) {\n return $this->getPaymentClass()->prepareQuote($quote, $info);\n }\n\n return parent::prepareQuote($quote, $info);\n }", "public function getQuote();", "function get_quote( $id ) \n {\n if( ! is_numeric($id) ) { return; }\n \n // not sure if this will work for custom post types as well... \n $quote = get_post( $id );\n return $quote;\n }", "private function getQuoteById():?CartInterface\n {\n $quote = null;\n try {\n $quote = $this->quoteRepository->get($this->quoteId);\n } catch (\\Exception $e) {\n $this->logger->info('getQuoteById Exception : ', [$e->getMessage()]);\n }\n return $quote;\n }", "public function getObject(): mixed\n {\n // how can i derive this class from a string?\n if (!$object = call_user_func('App\\\\'.ucfirst($this->object_type).'::find', $this->object_id)) {\n return $object;\n }\n\n return null;\n }", "private function processQuote(CartInterface $quote)\n {\n if ($quote->getExtensionAttributes() && $quote->getExtensionAttributes()->getNegotiableQuote()\n && $quote->getExtensionAttributes()->getNegotiableQuote()->getIsRegularQuote()\n && $this->userContext->getUserType() != UserContextInterface::USER_TYPE_CUSTOMER\n ) {\n $this->restriction->setQuote($quote);\n $negotiableQuote = $quote->getExtensionAttributes()->getNegotiableQuote();\n $quoteId = $quote->getId();\n if (!$this->restriction->canSubmit()) {\n if (empty($this->snapshotQuote[$quoteId]) && $negotiableQuote->getSnapshot()) {\n $snapshot = $this->serializer->unserialize($negotiableQuote->getSnapshot());\n $this->snapshotQuote[$quoteId] = $this->negotiableQuoteConverter->arrayToQuote($snapshot);\n } else {\n $this->snapshotQuote[$quoteId] = $quote;\n }\n return $this->snapshotQuote[$quoteId];\n }\n $this->updateQuoteItemPrices($quote);\n }\n\n return $quote;\n }", "public function getQuote()\n {\n if (!$quote = $this->_coreRegistry->registry('current_quote')) {\n $this->_coreRegistry->register(\n 'current_quote',\n $this->quote->load($this->getRequest()->getParam('quote_id'))\n );\n }\n\n return $quote;\n }", "public function resolve(string $className): object;", "public function getQuote()\n {\n $quoteId = $this->getRequest()->getParam('quote_id');\n if ($quoteId) {\n return $this->_quoteCreate->load($quoteId);\n } else {\n return $this->_coreRegistry->registry('current_quote');\n }\n }", "public function get_quote(){ return $this->_quote;}", "public function testPriceHolderCanBeResolved()\n {\n $container = new Container;\n $priceHolder = $container->make('PAMH\\\\PriceHolder');\n $this->assertTrue($priceHolder instanceof \\PAMH\\PriceHolder);\n }", "abstract function resolve($class);", "public function get($quoteId);", "public function __construct(QuoteRepository $quote)\n {\n $this->quote = $quote;\n }", "private function createQuote()\n {\n $isRegular = true;\n $negotiableQuote =\n $this->createPartialMock(\\Magento\\NegotiableQuote\\Model\\NegotiableQuote::class, ['getIsRegularQuote']);\n $negotiableQuote->expects($this->any())\n ->method('getIsRegularQuote')\n ->will($this->returnValue($isRegular));\n $extension = $this->getMockForAbstractClass(\n \\Magento\\Quote\\Api\\Data\\CartExtensionInterface::class,\n [],\n '',\n false,\n false,\n true,\n ['getNegotiableQuote']\n );\n $extension->expects($this->any())\n ->method('getNegotiableQuote')\n ->willReturn($negotiableQuote);\n $this->quote = $this->getMockForAbstractClass(\n \\Magento\\Quote\\Api\\Data\\CartInterface::class,\n ['getExtensionAttributes', 'getId'],\n '',\n false,\n false,\n true,\n ['getAppliedRuleIds']\n );\n $this->quote->expects($this->any())\n ->method('getExtensionAttributes')\n ->willReturn($extension);\n $this->quote->expects($this->any())\n ->method('getAppliedRuleIds')\n ->will($this->returnValue('1'));\n $this->quoteRepository->expects($this->any())\n ->method('get')\n ->willReturn($this->quote);\n }", "protected function _initParser($quote)\n\t{\n\t\tif (!isset($this->_parser)) {\n\t\t\t$this->_parser = Mage::getModel('Springbot_Combine_Model_Parser_Quote', $quote);\n\t\t}\n\t\treturn $this->_parser;\n\t}", "public function getActualQuote()\n {\n return $this->_quote->getQuote();\n }", "function getConvertQuoteToSoObject($focus, $quote_focus, $quoteid) {\n\tglobal $log,$current_user;\n\t$log->debug('> getConvertQuoteToSoObject '.get_class($focus).','.get_class($quote_focus).','.$quoteid);\n\t$fields = array(\n\t\t'bill_street','bill_city','bill_code','bill_pobox','bill_country','bill_state',\n\t\t'ship_street','ship_city','ship_code','ship_pobox','ship_country','ship_state'\n\t);\n\tforeach ($fields as $fieldname) {\n\t\tif (getFieldVisibilityPermission('Quotes', $current_user->id, $fieldname) != '0') {\n\t\t\t$quote_focus->column_fields[$fieldname] = '';\n\t\t}\n\t}\n\t$focus->column_fields['quote_id'] = $quoteid;\n\t$focus->column_fields['subject'] = isset($quote_focus->column_fields['subject']) ? $quote_focus->column_fields['subject'] : '';\n\t$focus->column_fields['contact_id'] = isset($quote_focus->column_fields['contact_id']) ? $quote_focus->column_fields['contact_id'] : '';\n\t$focus->column_fields['potential_id'] = isset($quote_focus->column_fields['potential_id']) ? $quote_focus->column_fields['potential_id'] : '';\n\t$focus->column_fields['account_id'] = isset($quote_focus->column_fields['account_id']) ? $quote_focus->column_fields['account_id'] : '';\n\t$focus->column_fields['carrier'] = isset($quote_focus->column_fields['carrier']) ? $quote_focus->column_fields['carrier'] : '';\n\t$focus->column_fields['bill_street'] = isset($quote_focus->column_fields['bill_street']) ? $quote_focus->column_fields['bill_street'] : '';\n\t$focus->column_fields['ship_street'] = isset($quote_focus->column_fields['ship_street']) ? $quote_focus->column_fields['ship_street'] : '';\n\t$focus->column_fields['bill_city'] = isset($quote_focus->column_fields['bill_city']) ? $quote_focus->column_fields['bill_city'] : '';\n\t$focus->column_fields['ship_city'] = isset($quote_focus->column_fields['ship_city']) ? $quote_focus->column_fields['ship_city'] : '';\n\t$focus->column_fields['bill_state'] = isset($quote_focus->column_fields['bill_state']) ? $quote_focus->column_fields['bill_state'] : '';\n\t$focus->column_fields['ship_state'] = isset($quote_focus->column_fields['ship_state']) ? $quote_focus->column_fields['ship_state'] : '';\n\t$focus->column_fields['bill_code'] = isset($quote_focus->column_fields['bill_code']) ? $quote_focus->column_fields['bill_code'] : '';\n\t$focus->column_fields['ship_code'] = isset($quote_focus->column_fields['ship_code']) ? $quote_focus->column_fields['ship_code'] : '';\n\t$focus->column_fields['bill_country'] = isset($quote_focus->column_fields['bill_country']) ? $quote_focus->column_fields['bill_country'] : '';\n\t$focus->column_fields['ship_country'] = isset($quote_focus->column_fields['ship_country']) ? $quote_focus->column_fields['ship_country'] : '';\n\t$focus->column_fields['bill_pobox'] = isset($quote_focus->column_fields['bill_pobox']) ? $quote_focus->column_fields['bill_pobox'] : '';\n\t$focus->column_fields['ship_pobox'] = isset($quote_focus->column_fields['ship_pobox']) ? $quote_focus->column_fields['ship_pobox'] : '';\n\t$focus->column_fields['description'] = isset($quote_focus->column_fields['description']) ? $quote_focus->column_fields['description'] : '';\n\t$focus->column_fields['terms_conditions'] = isset($quote_focus->column_fields['terms_conditions']) ? $quote_focus->column_fields['terms_conditions'] : '';\n\t$focus->column_fields['currency_id'] = isset($quote_focus->column_fields['currency_id']) ? $quote_focus->column_fields['currency_id'] : '';\n\t$focus->column_fields['conversion_rate'] = isset($quote_focus->column_fields['conversion_rate']) ? $quote_focus->column_fields['conversion_rate'] : '';\n\tif (vtlib_isModuleActive('Warehouse')) {\n\t\t$focus->column_fields['whid'] = $quote_focus->column_fields['whid'];\n\t}\n\t$cbMapid = GlobalVariable::getVariable('BusinessMapping_Quotes2SalesOrder', cbMap::getMapIdByName('Quotes2SalesOrder'));\n\tif ($cbMapid) {\n\t\t$cbMap = cbMap::getMapByID($cbMapid);\n\t\t$focus->column_fields = $cbMap->Mapping($quote_focus->column_fields, $focus->column_fields);\n\t}\n\t$log->debug('< getConvertQuoteToSoObject');\n\treturn $focus;\n}", "public function getQuoteAction($symbol)\n {\n # Retrieve company.\n $company = $this->getDoctrine()->getRepository('AppBundle:Company')\n ->findOneBySymbol($symbol);\n if (!$company) {\n throw $this->createNotFoundException();\n }\n\n # Retrieve director's name.\n $auth = array(\n 'username' => $this->container->getParameter('soap_username'),\n 'password' => $this->container->getParameter('soap_password')\n );\n $client = new SoapClient($this->container->getParameter('soap_wsdl'));\n\n try {\n $response = $client->__soapCall(\"getQuote\", [$auth, $symbol]);\n } catch (Exception $e) {\n throw new RuntimeException(\n sprintf('Failed to get quote for symbol: %s', $symbol)\n );\n }\n\n if(!is_string($response)){\n throw $this->createNotFoundException();\n }\n\n # Save quote to database.\n $quote = new Quote();\n $quote->setValue($response);\n $quote->setCompanyId($company->getId());\n $em = $this->getDoctrine()->getManager();\n $em->persist($quote);\n $em->flush();\n\n return $quote;\n }", "public function isQuote($object)\n {\n return $object instanceof Mage_Sales_Model_Quote;\n }", "public function isQuote($object)\n {\n return $object instanceof Mage_Sales_Model_Quote;\n }", "private function prepareQuoteMock()\n {\n $extensionAttributes = $this->getMockBuilder(\\Magento\\Quote\\Api\\Data\\CartExtensionInterface::class)\n ->disableOriginalConstructor()\n ->setMethods(['getNegotiableQuote'])\n ->getMockForAbstractClass();\n $this->negotiableQuote = $this->getMockBuilder(NegotiableQuoteInterface::class)\n ->disableOriginalConstructor()\n ->setMethods(['getSnapshot'])\n ->getMockForAbstractClass();\n $this->quote->expects($this->atLeastOnce())->method('getExtensionAttributes')->willReturn($extensionAttributes);\n $extensionAttributes->expects($this->atLeastOnce())->method('getNegotiableQuote')\n ->willReturn($this->negotiableQuote);\n }", "protected function _getQuote()\n {\n return $this->_getCart()->getQuote();\n }", "protected function getEntityResolver()\n {\n return \\Yii::createObject('app\\modules\\queue\\components\\interfaces\\EntityResolverInterface');\n }", "public function getQuote()\n {\n return $this->quoteFactory->create()->load($this->getReservedOrderId(), 'reserved_order_id');\n }", "public function query(QueryServiceQuotesRequest $request)\n {\n $payload = $request->input('payload');\n $currency = $request->input('currency');\n $facilitator = $request->input('facilitator');\n $scheduledAt = $request->input('scheduled_at');\n $service = $request->input('service', 'all'); // the specific service rate to query - defaults to `all`\n $serviceType = $request->input('service_type'); // the specific type of service rate to query\n $single = $request->boolean('single');\n $isRouteOptimized = $request->boolean('is_route_optimized', true);\n $requestId = ServiceQuote::generatePublicId('request');\n\n if (Utils::isPublicId($payload)) {\n $payload = Payload::with(['pickup', 'dropoff', 'waypoints', 'entities'])\n ->where('public_id', $payload)\n ->first();\n }\n\n if (!$payload instanceof Payload) {\n return $this->queryFromPreliminary($request);\n }\n\n // if facilitator is an integrated partner resolve service quotes from bridge\n if ($facilitator && Str::startsWith($facilitator, 'integrated_vendor')) {\n $integratedVendor = IntegratedVendor::where('public_id', $facilitator)->first();\n $serviceQuotes = [];\n\n if ($integratedVendor) {\n try {\n $serviceQuotes = $integratedVendor->api()->setRequestId($requestId)->getQuoteFromPayload($payload, $serviceType, $scheduledAt, $isRouteOptimized);\n } catch (\\Exception $e) {\n return response()->json([\n 'errors' => [$e->getMessage()]\n ], 400);\n }\n }\n\n // send single quote back\n if ($single) {\n return new ServiceQuoteResource($serviceQuotes);\n }\n\n if (!is_array($serviceQuotes)) {\n $serviceQuotes = [$serviceQuotes];\n }\n\n return ServiceQuoteResource::collection($serviceQuotes);\n }\n\n // get all waypoints\n $waypoints = $payload->getAllStops()->mapInto(Place::class);\n\n // if quote for single service\n if ($service && $service !== 'all') {\n $serviceRate = ServiceRate::where('uuid', $service)->where(function ($q) use ($currency) {\n if ($currency) {\n $q->where(DB::raw(\"lower(currency)\"), strtolower($currency));\n }\n })->first();\n $serviceQuotes = collect();\n\n if ($serviceRate) {\n [$subTotal, $lines] = $serviceRate->quote($payload);\n\n $quote = ServiceQuote::create([\n 'request_id' => $requestId,\n 'company_uuid' => $serviceRate->company_uuid,\n 'service_rate_uuid' => $serviceRate->uuid,\n 'amount' => $subTotal,\n 'currency' => $serviceRate->currency,\n ]);\n\n $items = $lines->map(function ($line) use ($quote) {\n return ServiceQuoteItem::create([\n 'service_quote_uuid' => $quote->uuid,\n 'amount' => $line['amount'],\n 'currency' => $line['currency'],\n 'details' => $line['details'],\n 'code' => $line['code'],\n ]);\n });\n\n $quote->setRelation('items', $items);\n $serviceQuotes->push($quote);\n\n // if single quotation requested\n if ($single) {\n return new ServiceQuoteResource($quote);\n }\n\n return ServiceQuoteResource::collection($serviceQuotes);\n }\n }\n\n // get all service rates\n $serviceRates = ServiceRate::getServicableForPlaces(\n $waypoints,\n $serviceType,\n $currency,\n function ($query) use ($request) {\n $query->where('company_uuid', $request->session()->get('company'));\n }\n );\n $serviceQuotes = collect();\n\n // calculate quotes\n foreach ($serviceRates as $serviceRate) {\n [$subTotal, $lines] = $serviceRate->quote($payload);\n\n $quote = ServiceQuote::create([\n 'request_id' => $requestId,\n 'company_uuid' => $serviceRate->company_uuid,\n 'service_rate_uuid' => $serviceRate->uuid,\n 'amount' => $subTotal,\n 'currency' => $serviceRate->currency,\n ]);\n\n $items = $lines->map(function ($line) use ($quote) {\n return ServiceQuoteItem::create([\n 'service_quote_uuid' => $quote->uuid,\n 'amount' => $line['amount'],\n 'currency' => $line['currency'],\n 'details' => $line['details'],\n 'code' => $line['code'],\n ]);\n });\n\n $quote->setRelation('items', $items);\n $serviceQuotes->push($quote);\n }\n\n // if single quotation requested\n if ($single) {\n // find the best quotation\n $bestQuote = $serviceQuotes->sortBy('amount')->first();\n\n return new ServiceQuoteResource($bestQuote);\n }\n\n return ServiceQuoteResource::collection($serviceQuotes);\n }", "public function getQuote() {\n return $this->quote;\n }", "public function setQuotationQuote($quote)\n {\n return $this->traitSetQuotationQuote($quote);\n }", "public function getQuote(): ?string\n {\n try {\n $request = $this->api->get(env('QUOTE_URL'));\n $response = $request->getBody()->getContents();\n\n return $response;\n } catch (ClientException $e) {\n $response = $e->getResponse();\n Log::error('Error getting quotes.'.$response->getBody->getContents());\n }\n }" ]
[ "0.57214856", "0.54287696", "0.5384086", "0.5252368", "0.51723135", "0.5166844", "0.5133963", "0.51091003", "0.50590456", "0.50229615", "0.4957337", "0.49205613", "0.49135235", "0.4901462", "0.4890966", "0.48424032", "0.48054156", "0.4791063", "0.47896945", "0.4758143", "0.47253764", "0.47253764", "0.47167778", "0.47156468", "0.46959034", "0.46931487", "0.46750534", "0.46422446", "0.4628621", "0.45991957" ]
0.5697471
1
this update replaces diverse old navigation modules with conny's new "navigation" module
function sitemgr_upgrade1_0_1_001() { $modules2nav_type = array('currentsection' => 1,'index' => 2,'index_block' => 3,'navigation' => 4,'sitetree' => 5,'toc' => 6,'toc_block' => 7); $db = clone($GLOBALS['egw_setup']->db); $db->set_app('sitemgr'); $db2 = clone($db); // get the module_id of all navigation modules and remove the old modules $db->select('egw_sitemgr_modules','module_id,module_name',array('module_name' => array_keys($modules2nav_type)),__LINE__,__FILE__); $id2module = $old_modules = array(); while(($row = $db->row(true))) { $id2module[$row['module_id']] = $row['module_name']; if ($row['module_name'] != 'navigation') { $old_modules[] = $row['module_id']; } } $db->delete('egw_sitemgr_modules',array('module_id' => $old_modules),__LINE__,__FILE__); // check if navigation is already registered, if not register it if (!($navigation_id = array_search('navigation',$id2module))) { if (ereg('\$this->description = lang\(\'([^'."\n".']*)\'\);',implode("\n",file(EGW_SERVER_ROOT.'/sitemgr/modules/class.module_navigation.inc.php')),$parts)) { $description = str_replace("\\'","'",$parts[1]); } $db->insert('egw_sitemgr_modules',array( 'module_name' => 'navigation', 'module_description' => $description, ),false,__LINE__,__FILE__); $navigation_id = $db->get_last_insert_id('egw_sitemgr_modules','module_id'); } // add navigation to all contentareas, which allowed any for the old modules before and remove the old modules $db->select('egw_sitemgr_active_modules','DISTINCT cat_id,area',array('module_id' => $old_modules),__LINE__,__FILE__); while (($row = $db->row(true))) { $row['module_id'] = $navigation_id; $db2->insert('egw_sitemgr_active_modules',array(),$row,__LINE__,__FILE__); } $db->delete('egw_sitemgr_active_modules',array('module_id' => $old_modules),__LINE__,__FILE__); // replace old modules in the blocks with the navigation module $db->select('egw_sitemgr_blocks','block_id,module_id',array('module_id' => array_keys($id2module)),__LINE__,__FILE__); $block_id2module_id = array(); while (($row = $db->row(true))) { $block_id2module_id[$row['block_id']] = $row['module_id']; } $db->select('egw_sitemgr_content','version_id,block_id,arguments',array('block_id' => array_keys($block_id2module_id)),__LINE__,__FILE__); while (($row = $db->row(true))) { $arguments = unserialize($row['arguments']); if (!isset($arguments['nav_type'])) { $version_id = $row['version_id']; unset($row['version_id']); $arguments['nav_type'] = $modules2nav_type[$id2module[$block_id2module_id[$row['block_id']]]]; $row['arguments'] = serialize($arguments); $db2->update('egw_sitemgr_content',$row,array('version_id' => $version_id),__LINE__,__FILE__); } } $db->update('egw_sitemgr_blocks',array('module_id' => $navigation_id),array('module_id' => $old_modules),__LINE__,__FILE__); $GLOBALS['setup_info']['sitemgr']['currentver'] = '1.2'; return $GLOBALS['setup_info']['sitemgr']['currentver']; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function contactmod_extend_navigation(navigation_node $navref, stdclass $course, stdclass $module, cm_info $cm) {\n}", "function vitero_extend_navigation(navigation_node $navref, stdclass $course, stdclass $module, cm_info $cm) {\n\n}", "function roshine_extend_navigation(navigation_node $navref, stdclass $course, stdclass $module, cm_info $cm) {\n}", "function dllc_extend_navigation(navigation_node $navref, stdClass $course, stdClass $module, cm_info $cm) {\n // TODO Delete this function and its docblock, or implement it.\n}", "function randomstrayquotes_extend_navigation(navigation_node $navref, stdClass $course, stdClass $module, cm_info $cm) {\n // TODO Delete this function and its docblock, or implement it.\n}", "function cicleinscription_extend_navigation(navigation_node $navref, stdclass $course, stdclass $module, cm_info $cm) {\n\treturn false;\n}", "function tquiz_extend_navigation(navigation_node $navref, stdclass $course, stdclass $module, cm_info $cm) {\n}", "function randomstrayquotes_extend_settings_navigation(settings_navigation $settingsnav, navigation_node $newmodulenode=null) {\n // TODO Delete this function and its docblock, or implement it.\n}", "function show_navigation()\n {\n }", "function _getNav()\n {\n }", "function page_nav() {\n global $user;\n global $xtpl;\n \n $xtpl->assign('nav_base', trim(simpleid_url(' ', '', true)));\n \n if ($user != NULL) {\n if (isset($user['administrator']) && ($user['administrator'] == 1)) $xtpl->parse('main.nav.nav_admin');\n \n }\n $xtpl->parse('main.nav');\n}", "public function exampleNavigation()\n {\n /*\n $config = array(\n array(\n 'label' => 'Home',\n 'module' => 'example',\n 'controller' => 'index',\n 'action' => 'index',\n ),\n\n array(\n 'label' => 'Coding Guidelines',\n 'module' => 'example',\n 'controller' => 'index',\n 'action' => 'guideslines',\n ),\n\n array(\n 'label' => 'Libraries',\n 'module' => 'example',\n 'controller' => 'index',\n 'action' => 'index',\n 'pages' => array(\n array(\n 'label' => 'Blueprint',\n 'module' => 'example',\n 'controller' => 'library',\n 'action' => 'blueprint',\n ),\n ),\n ),\n );\n\n $container = new Zend_Navigation($config);\n\t\t$this->setContainer($container);\n\n return $this;\n\n */\n $menus = array(\n\n '' => array(\n '/example' => 'Home',\n '/example/index/guideslines' => 'Coding Guidelines',\n ),\n\n 'Libraries' => array(\n //'/example/library/zend' => 'Zend Framework',\n '/example/library/blueprint' => 'Blueprint',\n '/example/library/mootools' => 'Mootools',\n ),\n\n 'Tools' => array(\n '/example/tools/debug' => 'Debug',\n '/example/tools/makefile' => 'MakeFile',\n ),\n\n 'CSS Elements' => array(\n '/example/css/menus' => 'Menus',\n '/example/css/buttons' => 'Fancy Buttons',\n '/example/css/box' => 'Round Box',\n ),\n\n 'JS Elements' => array(\n '/example/javascript/ajaxlink' => 'Ajax Link',\n '/example/javascript/ajaxform' => 'Ajax Form',\n '/example/javascript/lightbox' => 'LightBox',\n '/example/javascript/uwa' => 'UWA Widget',\n ),\n\n 'Form Elements' => array(\n '/example/form/index' => 'Showcases',\n '/example/form/fancyselect' => 'Fancy Select',\n '/example/form/dateselect' => 'Date Select',\n '/example/form/autocompleter' => 'Auto Completer',\n //'/example/form/rangeselect' => 'Range Select Element',\n //'/example/form/contactselect' => 'Contact List Element',\n ),\n\n 'View Helpers' => array(\n '/example/helper/geshi' => 'GeShi',\n '/example/helper/googleanalytics' => 'Google Analytics',\n ),\n\n 'Services' => array(\n '/example/service/xmlrpc' => 'Simple XMLRPC',\n ),\n\n 'Core Classes' => array(\n '/example/core/error' => 'Error Handler',\n '/example/core/controller' => 'Controller Abstract',\n '/example/core/archive' => 'Archive',\n '/example/core/template' => 'Template',\n '/example/core/notify' => 'Notify',\n '/example/core/stitem' => 'StItem/StCollection',\n '/example/core/dbitem' => 'DbItem/DbCollection',\n '/example/core/dbsearch' => 'DbSearch',\n ),\n );\n\n $xhtml = array();\n foreach ($menus as $menu => $links) {\n\n if (strlen($menu) > 0) {\n $xhtml[] = '<h4>' . $this->view->escape($menu) . '</h4>';\n }\n\n $xhtml[] = '<ul>';\n foreach ($links as $link => $label) {\n $xhtml[] = '<li><a href=\"' . $link . '\">' . $this->view->escape($label) . '</a></li>';\n }\n $xhtml[] = '</ul>';\n }\n\n return implode(\"\\n\", $xhtml);\n }", "function fsgs_boostnavigation_extend_navigation(global_navigation $navigation) {\n global $PAGE, $CFG;\n\n // Check if admin wanted us to remove the home node from Boost's nav drawer.\n if (!empty($PAGE->theme->settings->removehomenode)) {\n // If yes, do it.\n if ($homenode = $navigation->find('home', global_navigation::TYPE_ROOTNODE)) {\n // Hide home node.\n $homenode->showinflatnavigation = false;\n }\n }\n\n // Check if admin wanted us to remove the calendar node from Boost's nav drawer.\n if (!empty($PAGE->theme->settings->removecalendarnode)) {\n // If yes, do it.\n if ($calendarnode = $navigation->find('calendar', global_navigation::TYPE_CUSTOM)) {\n // Hide calendar node.\n $calendarnode->showinflatnavigation = false;\n }\n }\n\n // Check if admin wanted us to remove the privatefiles node from Boost's nav drawer.\n if (!empty($PAGE->theme->settings->removeprivatefilesnode)) {\n // If yes, do it.\n if ($privatefilesnode = fsgs_boostnavigation_find_privatefiles_node($navigation)) {\n // Hide privatefiles node.\n $privatefilesnode->showinflatnavigation = false;\n }\n }\n\n // Check if admin wanted us to remove the mycourses node from Boost's nav drawer.\n if (!empty($PAGE->theme->settings->removemycoursesnode)) {\n // If yes, do it.\n if ($mycoursesnode = $navigation->find('mycourses', global_navigation::TYPE_ROOTNODE)) {\n // Hide mycourses node.\n $mycoursesnode->showinflatnavigation = false;\n\n // Hide all courses below the mycourses node.\n $mycourseschildrennodeskeys = $mycoursesnode->get_children_key_list();\n foreach ($mycourseschildrennodeskeys as $k) {\n // If the admin decided to display categories, things get slightly complicated.\n if ($CFG->navshowmycoursecategories) {\n // We need to find all children nodes first.\n $allchildrennodes = fsgs_boostnavigation_get_all_childrenkeys($mycoursesnode->get($k));\n // Then we can hide each children node.\n // Unfortunately, the children nodes have navigation_node type TYPE_MY_CATEGORY or navigation_node type\n // TYPE_COURSE, thus we need to search without a specific navigation_node type.\n foreach ($allchildrennodes as $cn) {\n $mycoursesnode->find($cn, null)->showinflatnavigation = false;\n }\n }\n // Otherwise we have a flat navigation tree and hiding the courses is easy.\n else {\n $mycoursesnode->get($k)->showinflatnavigation = false;\n }\n }\n }\n }\n\n}", "function dllc_extend_settings_navigation(settings_navigation $settingsnav, navigation_node $dllcnode=null) {\n // TODO Delete this function and its docblock, or implement it.\n}", "public function enableNavigation() {\n\t\t$this->enableNav = true;\n\t}", "public function appendNavigation(){\n\t\t\t$nav = $this->getNavigationArray();\n\n\t\t\t/**\n\t\t\t * Immediately before displaying the admin navigation. Provided with the\n\t\t\t * navigation array. Manipulating it will alter the navigation for all pages.\n\t\t\t *\n\t\t\t * @delegate NavigationPreRender\n\t\t\t * @param string $context\n\t\t\t * '/backend/'\n\t\t\t * @param array $nav\n\t\t\t * An associative array of the current navigation, passed by reference\n\t\t\t */\n\t\t\tSymphony::ExtensionManager()->notifyMembers('NavigationPreRender', '/backend/', array('navigation' => &$nav));\n\n\t\t\t$xNav = new XMLElement('ul');\n\t\t\t$xNav->setAttribute('id', 'nav');\n\n\t\t\tforeach($nav as $n){\n\t\t\t\tif($n['visible'] == 'no') continue;\n\n\t\t\t\t$can_access = false;\n\n\t\t\t\tif(!isset($n['limit']) || $n['limit'] == 'author')\n\t\t\t\t\t$can_access = true;\n\n\t\t\t\telseif($n['limit'] == 'developer' && Administration::instance()->Author->isDeveloper())\n\t\t\t\t\t$can_access = true;\n\n\t\t\t\telseif($n['limit'] == 'primary' && Administration::instance()->Author->isPrimaryAccount())\n\t\t\t\t\t$can_access = true;\n\n\t\t\t\tif($can_access) {\n\t\t\t\t\t$xGroup = new XMLElement('li', $n['name']);\n\t\t\t\t\tif(isset($n['class']) && trim($n['name']) != '') $xGroup->setAttribute('class', $n['class']);\n\n\t\t\t\t\t$hasChildren = false;\n\t\t\t\t\t$xChildren = new XMLElement('ul');\n\n\t\t\t\t\tif(is_array($n['children']) && !empty($n['children'])){\n\t\t\t\t\t\tforeach($n['children'] as $c){\n\t\t\t\t\t\t\tif($c['visible'] == 'no') continue;\n\n\t\t\t\t\t\t\t$can_access_child = false;\n\n\t\t\t\t\t\t\tif(!isset($c['limit']) || $c['limit'] == 'author')\n\t\t\t\t\t\t\t\t$can_access_child = true;\n\n\t\t\t\t\t\t\telseif($c['limit'] == 'developer' && Administration::instance()->Author->isDeveloper())\n\t\t\t\t\t\t\t\t$can_access_child = true;\n\n\t\t\t\t\t\t\telseif($c['limit'] == 'primary' && Administration::instance()->Author->isPrimaryAccount())\n\t\t\t\t\t\t\t\t$can_access_child = true;\n\n\t\t\t\t\t\t\tif($can_access_child) {\n\t\t\t\t\t\t\t\t$xChild = new XMLElement('li');\n\t\t\t\t\t\t\t\t$xChild->appendChild(\n\t\t\t\t\t\t\t\t\tWidget::Anchor($c['name'], SYMPHONY_URL . $c['link'])\n\t\t\t\t\t\t\t\t);\n\n\t\t\t\t\t\t\t\t$xChildren->appendChild($xChild);\n\t\t\t\t\t\t\t\t$hasChildren = true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif($hasChildren){\n\t\t\t\t\t\t\t$xGroup->appendChild($xChildren);\n\t\t\t\t\t\t\t$xNav->appendChild($xGroup);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$this->Header->appendChild($xNav);\n\t\t\tAdministration::instance()->Profiler->sample('Navigation Built', PROFILE_LAP);\n\t\t}", "function app_template_navigation() {\n global $Auth, $App;\n $user = $Auth->get_user_data();\n $navigation = NULL;\n\n if ( ! empty($user) ) {\n $user_id = $user['is_super'] ? false : $user['user_id'];\n $Menu = new AdminMenu($user_id, $user['is_super']);\n $nav = $Menu->generate();\n $navigation = array(\n 'selector' \t=> $App->config('page_content_id'),\n 'pos_func' \t=> 'insertAfter',\n 'html'\t\t=> $nav['navigation'].$nav['search']\n );\n }\n return $navigation;\n}", "function side_navigation()\n\t{\n\t\t//side navigation\n\t\t$nav['dashboard'] = array(\n\t\t\t'name' => trans('admin_messages.dashboard'),\n\t\t\t'icon' => 'assessment',\n\t\t\t'has_permission' => true,\n\t\t\t'route' => route('admin.dashboard'),\n\t\t\t'active' => navigation_active('admin.dashboard'),\n\t\t);\n\n\t\t$nav['admin_management'] = array(\n\t\t\t'name' => trans('admin_messages.admin_user_management'),\n\t\t\t'icon' => 'supervised_user_circle',\n\t\t\t'has_permission' => checkPermission('view-admin'),\n\t\t\t'route' => route('admin.view_admin'),\n\t\t\t'active' => navigation_active('admin.view_admin')\n\t\t);\n\n\t\t$nav['role_management'] = array(\n\t\t\t'name' => trans('admin_messages.role_management'),\n\t\t\t'icon' => 'lock',\n\t\t\t'has_permission' => checkPermission('view-role'),\n\t\t\t'route' => route('admin.view_role'),\n\t\t\t'active' => navigation_active('admin.view_role')\n\t\t);\n\n\t\t$nav['user_management'] = array(\n\t\t\t'name' => trans('admin_messages.user_management'),\n\t\t\t'icon' => 'account_circle',\n\t\t\t'has_permission' => checkPermission('view-user'),\n\t\t\t'route' => route('admin.view_user'),\n\t\t\t'active' => navigation_active('admin.view_user')\n\t\t);\n\t\t\n\t\t$nav['driver_management'] = array(\n\t\t\t'name' => trans('admin_messages.driver_management'),\n\t\t\t'icon' => 'drive_eta',\n\t\t\t'has_permission' => checkPermission('view-driver'),\n\t\t\t'route' => route('admin.view_driver'),\n\t\t\t'active' => navigation_active('admin.view_driver')\n\t\t);\n\t\t\n\t\t$nav['home_banner'] = array(\n\t\t\t'name' => trans('admin_messages.home_banner'),\n\t\t\t'icon' => 'merge_type',\n\t\t\t'has_permission' => checkPermission('view-home_banner'),\n\t\t\t'route' => route('admin.home_banner'),\n\t\t\t'active' => navigation_active('admin.home_banner')\n\t\t);\n\t\t\n\t\t$nav['cuisine_management'] = array(\n\t\t\t'name' => trans('admin_messages.cuisine_management'),\n\t\t\t'icon' => 'category',\n\t\t\t'has_permission' => checkPermission('view-category'),\n\t\t\t'route' => route('admin.cuisine'),\n\t\t\t'active' => navigation_active('admin.cuisine')\n\t\t);\n\t\t\n\t\t$nav['restaurant_management'] = array(\n\t\t\t'name' => trans('admin_messages.store_management'),\n\t\t\t'icon' => 'restaurant',\n\t\t\t'has_permission' => checkPermission('view-restaurant'),\n\t\t\t'route' => route('admin.view_restaurant'),\n\t\t\t'active' => navigation_active('admin.view_restaurant')\n\t\t);\n\t\t\n\t\t$nav['send_message'] = array(\n\t\t\t'name' => trans('admin_messages.send_message'),\n\t\t\t'icon' => 'email',\n\t\t\t'has_permission' => checkPermission('manage-send_message'),\n\t\t\t'route' => route('admin.send_message'),\n\t\t\t'active' => navigation_active('admin.send_message')\n\t\t);\n\t\t\n\t\t$nav['order_management'] = array(\n\t\t\t'name' => trans('admin_messages.order_managemnt'),\n\t\t\t'icon' => 'add_shopping_cart',\n\t\t\t'has_permission' => checkPermission('manage-orders'),\n\t\t\t'route' => route('admin.order'),\n\t\t\t'active' => navigation_active('admin.order')\n\t\t);\n\t\t\n\t\t$nav['restaurant_payout_management'] = array(\n\t\t\t'name' => trans('admin_messages.store_payout_management'),\n\t\t\t'icon' => 'euro_symbol',\n\t\t\t'has_permission' => checkPermission('manage-payouts'),\n\t\t\t'route' => route('admin.payout', 1),\n\t\t\t'active' => navigation_active('admin.payout', 1)\n\t\t);\n\t\t\n\t\t$nav['driver_payout_management'] = array(\n\t\t\t'name' => trans('admin_messages.driver_payout_management'),\n\t\t\t'icon' => 'motorcycle',\n\t\t\t'has_permission' => checkPermission('manage-payouts'),\n\t\t\t'route' => route('admin.payout', 2),\n\t\t\t'active' => navigation_active('admin.payout', 2)\n\t\t);\n\t\t\n\t\t$nav['driver_owe_amount'] = array(\n\t\t\t'name' => trans('admin_messages.owe_amount'),\n\t\t\t'icon' => 'attach_money',\n\t\t\t'has_permission' => checkPermission('manage-owe_amount'),\n\t\t\t'route' => route('admin.owe_amount'),\n\t\t\t'active' => navigation_active('admin.owe_amount')\n\t\t);\n\t\t\n\t\t$nav['restaurant_owe_amount'] = array(\n\t\t\t'name' => trans('admin_messages.store_owe_amount'),\n\t\t\t'icon' => 'attach_money',\n\t\t\t'has_permission' => checkPermission('manage-restaurant_owe_amount'),\n\t\t\t'route' => route('admin.restaurant_owe_amount'),\n\t\t\t'active' => navigation_active('admin.restaurant_owe_amount')\n\t\t);\n\n\n\t\t$nav['penality'] = array(\n\t\t\t'name' => trans('admin_messages.penalty'),\n\t\t\t'icon' => 'thumb_down',\n\t\t\t'has_permission' => checkPermission('manage-penality'),\n\t\t\t'route' => route('admin.penality'),\n\t\t\t'active' => navigation_active('admin.penality')\n\t\t);\n\t\t\n\t\t$nav['promo_management'] = array(\n\t\t\t'name' => trans('admin_messages.promo_management'),\n\t\t\t'icon' => 'card_giftcard',\n\t\t\t'has_permission' => checkPermission('view-promo'),\n\t\t\t'route' => route('admin.promo'),\n\t\t\t'active' => navigation_active('admin.promo')\n\t\t);\n\t\t\n\t\t$nav['static_page_management'] = array(\n\t\t\t'name' => trans('admin_messages.static_page_management'),\n\t\t\t'icon' => 'description',\n\t\t\t'has_permission' => checkPermission('view-static_page'),\n\t\t\t'route' => route('admin.static_page'),\n\t\t\t'active' => navigation_active('admin.static_page')\n\t\t);\n\t\t\n\t\t$nav['home_slider'] = array(\n\t\t\t'name' => trans('admin_messages.home_slider'),\n\t\t\t'icon' => 'description',\n\t\t\t'has_permission' => checkPermission('view-restaurant_slider'),\n\t\t\t'route' => route('admin.view_home_slider'),\n\t\t\t'active' => navigation_active('admin.view_home_slider')\n\t\t);\n\t\t\n\t\t$nav['country_management'] = array(\n\t\t\t'name' => trans('admin_messages.country_management'),\n\t\t\t'icon' => 'language',\n\t\t\t'has_permission' => checkPermission('view-country'),\n\t\t\t'route' => route('admin.country'),\n\t\t\t'active' => navigation_active('admin.country')\n\t\t);\n\t\t\n\t\t$nav['currency_management'] = array(\n\t\t\t'name' => trans('admin_messages.currency_management'),\n\t\t\t'icon' => 'euro_symbol',\n\t\t\t'has_permission' => checkPermission('view-currency'),\n\t\t\t'route' => route('admin.currency'),\n\t\t\t'active' => navigation_active('admin.currency')\n\t\t);\n\t\t\n\t\t\n\t\t$nav['language_management'] = array(\n\t\t\t'name' => trans('admin_messages.language_management'),\n\t\t\t'icon' => 'translate',\n\t\t\t'has_permission' => checkPermission('view-language'),\n\t\t\t'route' => route('admin.languages'),\n\t\t\t'active' => navigation_active('admin.languages')\n\t\t);\n\t\t\n\t\t$nav['cancel_reason'] = array(\n\t\t\t'name' => trans('admin_messages.cancel_reason'),\n\t\t\t'icon' => 'cancel',\n\t\t\t'has_permission' => checkPermission('view-cancel_reason'),\n\t\t\t'route' => route('admin.order_cancel_reason'),\n\t\t\t'active' => navigation_active('admin.order_cancel_reason')\n\t\t);\n\t\t\n\t\t$nav['review_issue_type'] = array(\n\t\t\t'name' => trans('admin_messages.review_issue_type'),\n\t\t\t'icon' => 'report_problem',\n\t\t\t'has_permission' => checkPermission('view-review_issue_type'),\n\t\t\t'route' => route('admin.issue_type'),\n\t\t\t'active' => navigation_active('admin.issue_type')\n\t\t);\n\t\t\n\t\t$nav['review_vehicle_type'] = array(\n\t\t\t'name' => trans('admin_messages.manage_vehicle_type'),\n\t\t\t'icon' => 'drive_eta',\n\t\t\t'has_permission' => checkPermission('view-vehicle_type'),\n\t\t\t'route' => route('admin.vehicle_type'),\n\t\t\t'active' => navigation_active('admin.vehicle_type')\n\t\t);\n\t\t\n\t\t$nav['food_receiver'] = array(\n\t\t\t'name' => trans('admin_messages.food_receiver'),\n\t\t\t'icon' => 'receipt',\n\t\t\t'has_permission' => checkPermission('view-recipient'),\n\t\t\t'route' => route('admin.food_receiver'),\n\t\t\t'active' => navigation_active('admin.food_receiver')\n\t\t);\n\t\t\n\t\t$nav['help_category'] = array(\n\t\t\t'name' => trans('admin_messages.help_category'),\n\t\t\t'icon' => 'help',\n\t\t\t'has_permission' => checkPermission('view-help_category'),\n\t\t\t'route' => route('admin.help_category'),\n\t\t\t'active' => navigation_active('admin.help_category')\n\t\t);\n\t\t\n\t\t$nav['help_subcategory'] = array(\n\t\t\t'name' => trans('admin_messages.help_subcategory'),\n\t\t\t'icon' => 'help',\n\t\t\t'has_permission' => checkPermission('view-help_subcategory'),\n\t\t\t'route' => route('admin.help_subcategory'),\n\t\t\t'active' => navigation_active('admin.help_subcategory')\n\t\t);\n\t\t\n\t\t$nav['help'] = array(\n\t\t\t'name' => trans('admin_messages.help'),\n\t\t\t'icon' => 'help',\n\t\t\t'has_permission' => checkPermission('view-help'),\n\t\t\t'route' => route('admin.help'),\n\t\t\t'active' => navigation_active('admin.help')\n\t\t);\n\t\t\n\t\t$nav['site_setting'] = array(\n\t\t\t'name' => trans('admin_messages.site_setting'),\n\t\t\t'icon' => 'settings',\n\t\t\t'has_permission' => checkPermission('manage-site_setting'),\n\t\t\t'route' => route('admin.site_setting'),\n\t\t\t'active' => navigation_active('admin.site_setting')\n\t\t);\n\n\n\t\t$nav['support'] = array(\n\t\t\t'name' => trans('admin_messages.support'),\n\t\t\t'icon' => 'support_agent',\n\t\t\t'has_permission' => checkPermission('view-support'),\n\t\t\t'route' => route('admin.support'),\n\t\t\t'active' => navigation_active('admin.support')\n\t\t);\n\n\t\treturn $nav;\n\t}", "public function registerNavigation()\n {\n return [];\n }", "public function registerNavigation()\n {\n return [];\n }", "public function registerNavigation()\n {\n return [];\n }", "function navigation (){\n}", "function template_navigation() {\n\t\t$_ENV['menu'] = array();\n\t\t$_ENV['menu']['Main'] = _URL_;\n\t\tModule::includes('menus');\n\t\t$_ENV['menu']['Preferences'] = '?module=prefs';\n\t\t$_ENV['menu']['Logout'] = '?logout=true';\n\n\t\t$buffer = '<ul><li><h2>';\n\t\t$buffer .= array_key_exists('Menu',$_ENV['imgs']['menu']) \n\t\t\t? '<img src=\"'.$_ENV['imgs']['menu']['Menu'].'\" border=\"0\" /> ' : ' ';\n\t\t$buffer .= ' Main Menu</h2><ul>';\n\t\tforeach ($_ENV['menu'] as $module => $items) {\n\t\t\tif (is_array($items)) {\n\t\t\t\t$buffer .= '<li><a href=\"#\">';\n\t\t\t\t$buffer .= array_key_exists($module,$_ENV['imgs']['menu'])\n\t\t\t\t\t? '<img src=\"'.$_ENV['imgs']['menu'][$module].'\" border=\"0\" /> ' : ' ';\n\t\t\t\t$buffer .= $module.'</a><ul>';\n\t\t\t\tforeach ($items as $label => $url) {\n\t\t\t\t\t$buffer .= '<li><a href=\"'.$url.'\">';\n\t\t\t\t\t$buffer .= array_key_exists($label,$_ENV['imgs']['menu'])\n\t\t\t\t\t\t? '<img src=\"'.$_ENV['imgs']['menu'][$label].'\" border=\"0\" /> ' : ' ';\n\t\t\t\t\t$buffer .= $label.'</a></li>';\n\t\t\t\t}\n\t\t\t\t$buffer .= '</ul></li>';\n\t\t\t} else {\n\t\t\t\t$buffer .= '<li><a href=\"'.$items.'\">';\n\t\t\t\t$buffer .= array_key_exists($module,$_ENV['imgs']['menu'])\n\t\t\t\t\t? '<img src=\"'.$_ENV['imgs']['menu'][$module].'\" border=\"0\" /> ' : ' ';\n\t\t\t\t$buffer .= $module.' </a></li>';\n\t\t\t}\t\n\t\t}\n\t\t$buffer .= '</ul></li></ul>';\n\t\treturn $buffer;\n\t}", "public function moduleNavigation() {\n\t\t$out = '';\n\t\tif($modules = DataObject::get('WorkflowCategory', '', 'priority ASC')) {\n\t\t\tforeach ($modules as $module) {\n\t\t\t\tif (Permission::check(strtoupper(str_replace(\" \", \"_\", $module->name)))) {\n\t\t\t\t\t$icon = '';\n\t\t\t\t\tif($image = DataObject::get_by_id('Image', $module->imageID)) {\n\t\t\t\t\t\tif($smImage = $image->setSize(16,16)) {\n\t\t\t\t\t\t\t$icon = $smImage->URL;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif($module->module == null) {\n\t\t\t\t\t\t$out .= \"\n\t\t\t\t\t\t, new Ext.Button({\n\t\t\t\t\t\t\tcls: 'x-toolbar',\n\t\t\t\t\t\t\twidth: '100%',\n\t\t\t\t\t\t\ttext: '{$module->name}', \n\t\t\t\t\t\t\ticon: '{$icon}',\n\t\t\t\t\t\t\thandler: function(){\n\t\t\t\t\t\t\t\tfor (var i=0; i<subNavigationHolder.items.items.length; i++) {\n\t\t\t\t\t\t\t\t\tsubNavigationHolder.items.items[i].hide();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\".str_replace(\" \", \"_\",$module->name.\"Panel\").\".show();\n\t\t\t\t\t\t\t\tfor (var i=0; i<Ext.getCmp('centerWorkflowHolder').items.items.length; i++) {\n\t\t\t\t\t\t\t\t\tExt.getCmp('centerWorkflowHolder').items.items[i].hide();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t{$module->action}\n\t\t\t\t\t\t\t\tExt.getCmp('main').doLayout();\n\t\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\t$out .= \"\n\t\t\t\t\t\t, new Ext.Button({\n\t\t\t\t\t\t\tcls: 'x-toolbar',\n\t\t\t\t\t\t\twidth: '100%',\n\t\t\t\t\t\t\ttext: '{$module->name}', \n\t\t\t\t\t\t\ticon: '{$icon}',\n\t\t\t\t\t\t\thandler: function(){\n\t\t\t\t\t\t\t\tfor (var i=0; i<subNavigationHolder.items.items.length; i++) {\n\t\t\t\t\t\t\t\t\tsubNavigationHolder.items.items[i].hide();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\".str_replace(\" \", \"_\",$module->name.\"Panel\").\".show();\n\t\t\t\t\t\t\t\tfor (var i=0; i<Ext.getCmp('centerWorkflowHolder').items.items.length; i++) {\n\t\t\t\t\t\t\t\t\tExt.getCmp('centerWorkflowHolder').items.items[i].hide();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t{$module->getNavigation()}\n\t\t\t\t\t\t\t\tExt.getCmp('main').doLayout();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t})\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn $out;\n\t}", "protected function configureBackendNavigation(): void\n {\n $navigationModulesId = $this->setNavigation(null, 'Modules');\n $this->setNavigation(\n $navigationModulesId,\n $this->getModule(),\n 'media_galleries/media_gallery_index',\n [\n 'media_galleries/media_gallery_add',\n 'media_galleries/media_gallery_edit',\n ]\n );\n }", "private function gen_nav_links()\n\t{\n\t\t$this->template->assign_block_vars('navlinks', array(\n\t\t\t'S_IS_CAT'\t\t=> true,\n\t\t\t'S_IS_LINK'\t\t=> false,\n\t\t\t'S_IS_POST'\t\t=> false,\n\t\t\t'FORUM_NAME'\t=> $this->user->lang('BLOG_MAIN'),\n\t\t\t'FORUM_ID'\t\t=> -1,\n\t\t\t'U_VIEW_FORUM'\t=> append_sid('blog'),\n\t\t));\n\t}", "function woo_custom_move_navigation () {\n remove_action( 'woo_header_after','woo_nav', 10 );\n // Add main nav to the woo_header_inside hook\n add_action( 'woo_header_inside','woo_nav', 10 );\n}", "function register_block_core_post_navigation_link()\n {\n }", "public function registerNavigation()\n {\n return []; // Remove this line to activate\n\n return [\n 'mightyseoplus' => [\n 'label' => 'MightySeoPlus',\n 'url' => Backend::url('media1/mightyseoplus/mycontroller'),\n 'icon' => 'icon-leaf',\n 'permissions' => ['media1.mightyseoplus.*'],\n 'order' => 500,\n ],\n ];\n }", "function sp_main_navigation() {\n\t\tif ( function_exists ( 'wp_nav_menu' ) )\n\t\t\twp_nav_menu( array(\n\t\t\t\t'container' => false,\n\t\t\t\t'menu_class'\t => 'menu-nav',\n\t\t\t\t'theme_location' => 'primary_nav',\n\t\t\t\t'fallback_cb' => 'sp_main_nav_fallback'\n\t\t\t\t) );\n\t\telse\n\t\t\tsp_main_nav_fallback();\t\n\t}" ]
[ "0.7273478", "0.7230432", "0.7149625", "0.7123502", "0.7047796", "0.6939628", "0.67859316", "0.652289", "0.6364496", "0.63575345", "0.6314106", "0.63031256", "0.62661844", "0.6262463", "0.6255353", "0.610678", "0.6106527", "0.61028993", "0.6099241", "0.6099241", "0.6099241", "0.60850006", "0.60697657", "0.6059522", "0.604446", "0.59667706", "0.5958887", "0.5940256", "0.59244746", "0.58788115" ]
0.732579
0
Updating egw_sitemgr_content(_lang) to json_encoding
function sitemgr_upgrade14_1() { foreach($GLOBALS['egw_setup']->db->select('egw_sitemgr_content', '*', "arguments LIKE 'a:%'", __LINE__, __FILE__, false, '', 'sitemgr') as $row) { $args = json_php_unserialize($row['arguments']); unset($row['arguments'], $row['state']); $GLOBALS['egw_setup']->db->update('egw_sitemgr_content', array( 'arguments' => json_encode($args, JSON_UNESCAPED_SLASHES|JSON_UNESCAPED_UNICODE), ), $row, __LINE__, __FILE__, 'sitemgr'); } foreach($GLOBALS['egw_setup']->db->select('egw_sitemgr_content_lang', '*', "arguments_lang LIKE 'a:%' OR arguments_lang='N;'", __LINE__, __FILE__, false, '', 'sitemgr') as $row) { $args = json_php_unserialize($row['arguments_lang']); unset($row['arguments_lang']); $GLOBALS['egw_setup']->db->update('egw_sitemgr_content_lang', array( 'arguments_lang' => json_encode($args, JSON_UNESCAPED_SLASHES|JSON_UNESCAPED_UNICODE), ), $row, __LINE__, __FILE__, 'sitemgr'); } return $GLOBALS['setup_info']['sitemgr']['currentver'] = '16.1'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function asJson($content=[])\n{\n self::$stored['json'][] = $content;\n return json_encode($content);\n}", "public function updateMLContent( &$dbObject , $language);", "public function process_lang_change()\n {\n if (!isset($_POST['lang']) || !$_POST['lang']) {\n wp_send_json_error();\n }\n\n if (!session_id()) {\n session_start();\n }\n\n try {\n // Include Esc functions\n include_once(\\Esc::directory() . '/modules/general.php');\n include_once(\\Esc::directory() . '/includes/connect.php');\n\n if (!isset($_SESSION['esc_store']['selection_id'])) {\n \\EscConnect::getSelection();\n }\n\n $selection = \\EscConnect::init('selections/' . $_SESSION['esc_store']['selection_id'] . '/languages/' . $_POST['lang'])->put();\n\n if (!$selection || isset($selection['errors'])) {\n wp_send_json_error();\n }\n\n $_SESSION['esc_selection'] = $selection;\n\n wp_send_json_success();\n } catch (\\Exception $exp) {\n wp_send_json_error($exp->getMessage());\n }\n }", "function json($content = null){\n $this->_JSON = true;\n $this->_HTML = false;\n $this->_redirect = false;\n if(is_array($content)) $this->_JSON_contents = $content;\n }", "function sitemgr_upgrade1_5_001()\n{\n\t// (unserialzied) string in that (unserialized) column,\n\t// to easy the conversation from iso-... --> utf-8 (all serialized content with non-ascii chars get lost!)\n\tforeach($GLOBALS['egw_setup']->db->select('egw_sitemgr_content_lang','*',false,__LINE__,__FILE__,false,'','sitemgr') as $row)\n\t{\n\t\tif ($row['arguments_lang'] && ($arr = unserialize($row['arguments_lang'])) !== false &&\n\t\t\tis_array($arr) && count($arr) == 1 && isset($arr['htmlcontent']))\n\t\t{\n\t\t\t$row['arguments_lang'] = $arr['htmlcontent'];\n\t\t\t$GLOBALS['egw_setup']->db->update('egw_sitemgr_content_lang',array(\n\t\t\t\t'arguments_lang' => $row['arguments_lang'],\n\t\t\t),array(\n\t\t\t\t'version_id' => $row['version_id'],\n\t\t\t\t'lang' => $row['lang'],\n\t\t\t),__LINE__,__FILE__,'sitemgr');\n\t\t}\n\t}\n\treturn $GLOBALS['setup_info']['sitemgr']['currentver'] = '1.5.002';\n}", "public function toJson(){\n return json_encode($this->content);\n }", "public function json() {\n\t\t$json = parent::json();\n\t\t$json['upsell_text'] = wp_kses_post( $this->upsell_text );\n\n\t\treturn $json;\n\t}", "private function changeLangFileContent() \n {\n $this->read();\n $this->arrayLang[$this->key] = $this->value;\n $this->save();\n }", "function jsonSave()\n {\n try {\n file_put_contents($this->fname, json_encode($this->content));\n } catch (Exception $e) {\n echo $e;\n }\n }", "private function generateLangFileContent($lang) {\n $files = glob(resource_path('lang/' . $lang . '/*.php'));\n $strings = [];\n\n // Add locale_lang to file\n $strings['locale_lang'] = $lang;\n\n // Add content from PHP files\n foreach ($files as $file) {\n $name = basename($file, '.php');\n $strings[$name] = require $file;\n }\n\n // Add content from json file\n $simpleWordsFileName = resource_path('lang/' . $lang . '.json');\n if (file_exists($simpleWordsFileName)) {\n $simpleWordsJson = json_decode(file_get_contents($simpleWordsFileName));\n foreach ($simpleWordsJson as $key => $value) {\n $strings[$key] = $value;\n }\n }\n\n return json_encode($strings);\n }", "function json_post($post_id) {\n // $post = get_post($post_id);\n // $fields = get_fields($post_id);\n $content = array();\n\n //On récupère les lat lng en fonction de l'adresse\n $coords = geocode(get_field('adresse_de_lassociation',$post_id),get_field('ville',$post_id),\"FRANCE\");\n // $fields['latitude'] = $coords['latitude'];\n // $fields['longitude'] = $coords['longitude'];\n\n\n update_field('field_528e0e4107a59', $coords['latitude'], $post_id);\n update_field('field_528e0e5207a5a', $coords['longitude'], $post_id);\n\n\n //array_push($content,$fields);\n\n \n\n $tmp = array();\n foreach(get_posts( array('post_type'=> 'associations')) as $key=>$value){\n $id=$value->ID;\n\n $tmp = get_fields($id);\n $tmp['nom']=get_the_title($id);\n $tmp['permalink']=get_permalink($id);\n $tmp['categories']=wp_get_post_terms($id,'categories');\n $tmp['action_en_cours']=wp_get_post_terms($id,'action_en_cours');\n\n array_push($content, $tmp);\n }\n\n $content = json_encode($content);\n\n $fp = fopen(get_stylesheet_directory().\"/associations.json\",\"wb\");\n fwrite($fp,$content);\n fclose($fp);\n\n}", "public function updateJson()\n {\n $ExtensionData = ExtensionData::get()->filter(array(\"Title\" => $this->latestReleasePackage->getPrettyName()))->First();\n\n if ($ExtensionData) {\n $result = $this->dataFields($ExtensionData);\n return $result ;\n } else {\n return ;\n }\n }", "public function initContent()\n {\n /**\n * !!! Do not call parent::initContent().\n * Use it only for collections.\n * Custom output do not have an id and will generate error.\n */\n\n foreach ($this->sql as $key => $query) {\n try {\n $result = Db::getInstance()->executeS($query);\n if (isset($result)) {\n $this->jsonContent[$key] = $result[0][$key];\n }\n } catch (PrestaShopDatabaseException $exception) {\n ClaroLogger::errorLog(__METHOD__ . ' : DBException: ' . $exception->getMessage()\n . ' at line ' . $exception->getLine());\n\n $this->jsonContent = [\n 'status' => 'error',\n 'error' => $exception->getMessage()\n ];\n die(json_encode($this->jsonContent));\n }\n }\n die(json_encode($this->jsonContent));\n }", "private function myJsonEncode($package){\r\n $myPackage = new ZendExt_WF_WFObject_Entidades_Package();\r\n $myPackage = $package;\r\n $packageArray = $myPackage->toArray();\r\n $packageJson = json_encode($packageArray);\r\n }", "public function toLDJSON()\n {\n }", "function acf_json_encode($json)\n{\n}", "function smarty_modifier_json($data) {\n require_once ANGIE_PATH . '/classes/json/init.php';\n return do_json_encode($data);\n }", "function y_translate($text, $lang = \"en-ru\")\r\n{\r\n global $encoding;\r\n $save_encoding = @$encoding;\r\n $encoding = 'UTF-8';\r\n $url = 'http://translate.yandex.net/api/v1/tr.json/translate?format=html&lang=' . $lang . '&text=' . urlencode($text);\r\n for ($i=0;$i<5;$i++) {\r\n $result = json_decode(get($url), true);\r\n if (g('last_result')==200) break;\r\n }\r\n $encoding=$save_encoding;\r\n if ($result['code'] == 200) {\r\n $r = implode('<br />', $result['text']);\r\n } else $r = $text;\r\n\r\n if (DEV)\r\n xlogc('y_translate', $r, $text, $lang);\r\n\r\n return $r;\r\n}", "public function prepare_json() { \n return json_encode($this->get_settings()); \n }", "function json_cb(&$item, $key) { \n if (is_string($item)) $item = mb_encode_numericentity($item, array (0x80, 0xffff, 0, 0xffff), 'UTF-8'); \n}", "private function saveTranslateConfig(){\r\n\t\t// Check for request forgeries\r\n\t\tJRequest::checkToken() or die( 'Invalid Token' );\r\n\r\n\t\t$lang_id \t= JRequest::getInt( 'lang_id',0 );\r\n\t\t$model = $this->getModel('languages');\r\n\t\t$language = $model->getTable('JFLanguage');\t\t\r\n\t\t$language->load($lang_id);\r\n\r\n\t\tif (is_null($lang_id) || !isset($language->id) || $language->id<=0){\r\n\t\t\tdie( 'Invalid Language Id' );\r\n\t\t}\r\n\t\t\r\n\t\t$data = array();\r\n\t\tforeach ($_REQUEST as $key=>$val) {\r\n\t\t\tif (strpos($key,\"trans_\")===0){\r\n\t\t\t\t$key = str_replace(\"trans_\",\"\",$key);\r\n\t\t\t\tif (ini_get('magic_quotes_gpc')) {\r\n \t\t $val = stripslashes($val);\r\n \t\t} \r\n \t\t$data[$key]=$val;\r\n\t\t\t}\r\n\t\t}\r\n\t\t$registry = new JRegistry();\r\n\t\t$registry->loadArray($data);\r\n\t\t$language->params = $registry->toString();\r\n\r\n\t\t$language->store();\r\n\t\tJFactory::getApplication()->redirect(\"index.php?option=com_joomfish&task=languages.show\",JText::_( 'LANGUAGES_SAVED' ));\r\n\t}", "function json($id)\n{\n\t$query=$GLOBALS['GCMS_SAFESQL']->query(\n \t\"\n \tSELECT pg_title as name , id , pg_excerpt , date_modified\n\t\t\tFROM `gcms_page`\n\t\t\tWHERE pg_type = 'page' AND pg_status = 'publish'\n \t\t\t[ AND gcms_page.`parent_id` = %N ]\n \t\",array(\n \t\t\t$id ));\n\n $list = $GLOBALS['GCMS_DB']->get_results($query);\n \tusort($list, \"sort_compare\" );\n die (print_r($list));\n\tforeach ($list as $row)\n\t{\n\t\t\n\t\t$img = Image::get(array(\"im_type\"=>\"page\"),false, array(), $row->id );\n\t\t\n\t\t$page[] = $row->id ;\n\t\t$page[] = $row->name ;\n\t\t$page[] = $img->im_path . $img->im_name;\n\t\t$page[] = clean($row->pg_excerpt) ;\n\t\t$page[] = $row->date_modified ;\n\t\t$jsonExp[] = $page;\n\t\t$page = null;\n\t\t\n\t}\n\t\n\theader('Content-type: application/json');\n\tdie ( json_encode(array('posts'=>$jsonExp)));\n\n}", "public function json_encode($obj) {\r\n // Try to use native PHP 5.2+ json_encode\r\n // Switch back to JSON library included with Tiny MCE\r\n if(function_exists('json_encode')){\r\n return json_encode($obj);\r\n } else {\r\n require_once(ABSPATH.\"/wp-includes/js/tinymce/plugins/spellchecker/classes/utils/JSON.php\");\r\n $json_obj = new Moxiecode_JSON();\r\n $json = $json_obj->encode($obj);\r\n return $json;\r\n }\r\n }", "public function to_json() {\n\t\t\tparent::to_json();\n\t\t\t$this->json['mtmfontslist'] = $this->font_list;\n\t\t}", "function update_cache($cache_url, $cache_data){\n\t\t$fh = fopen($cache_url, 'w')or die(\"Error opening output file\");\n\t\tfwrite($fh, json_encode($cache_data,JSON_UNESCAPED_UNICODE));\n\t\tfclose($fh);\n\t}", "public function json() {\n\t\t$array = wp_array_slice_assoc(\n\t\t\t(array) $this,\n\t\t\tarray(\n\t\t\t\t'id',\n\t\t\t\t'description',\n\t\t\t\t'priority',\n\t\t\t\t'panel',\n\t\t\t\t'type',\n\t\t\t\t'description_hidden',\n\t\t\t\t'section',\n\t\t\t)\n\t\t);\n\n\t\t$array['title'] = html_entity_decode( $this->title, ENT_QUOTES, get_bloginfo( 'charset' ) );\n\t\t$array['content'] = $this->get_content();\n\t\t$array['active'] = $this->active();\n\t\t$array['instanceNumber'] = $this->instance_number;\n\n\t\t$array['customizeAction'] = esc_html__( 'Customizing', 'kirki' );\n\t\tif ( $this->panel ) {\n\t\t\t/* translators: The title. */\n\t\t\t$array['customizeAction'] = sprintf( esc_html__( 'Customizing &#9656; %s', 'kirki' ), esc_html( $this->manager->get_panel( $this->panel )->title ) );\n\t\t}\n\t\treturn $array;\n\t}", "public function save_translation($lang)\n {\n\n if ($this->session->userdata(array('admin' => 'is_admin'))) {\n if (!$this->Madmin->change_language_translation($lang, $_POST['key'], $_POST['val'])) {\n json(array('error' => 'Unable to update language status'));\n } else {\n json(array('success' => 'Language status changed'));\n }\n } else {\n json(array('error' => 'Please login first!'));\n }\n }", "public function json() {\n\t\t$data = parent::json();\n\n\t\t$data['id'] = $this->type . '-' . $this->id;\n\t\t$data['label'] = html_entity_decode( $this->label, ENT_QUOTES, get_bloginfo( 'charset' ) );\n\t\t$data['value'] = $this->value();\n\t\t$data['link'] = $this->get_link();\n\t\t$data['defaultValue'] = $this->setting->default;\n\n\t\treturn $data;\n\t}", "function formatBodyForDisplay($body, $lang) {\n global $serverScriptHelper;\n global $HTTP_ACCEPT_LANGUAGE;\n//LOCALE SPECIFIC\n if (ereg(\"^ja\",$lang) || ereg(\"^ja\",$HTTP_ACCEPT_LANGUAGE)) {\n $j = new EncodingConv($body, \"japanese\");\n $returnBody = $j->toSJIS();\n } else {\n $returnBody = $body;\n }\n return $returnBody;\n}", "public function wplt_ajax_response(){\n global $sitepress;\n $sitepress->switch_lang('all');\n }" ]
[ "0.60806", "0.56985813", "0.5632007", "0.5581205", "0.5517603", "0.55164015", "0.55077565", "0.5503295", "0.5455231", "0.5438799", "0.54165876", "0.5414611", "0.5410617", "0.54047054", "0.53899664", "0.5348275", "0.5340322", "0.5318825", "0.52705944", "0.5247874", "0.5246367", "0.52213144", "0.52123475", "0.51891506", "0.51695395", "0.5166894", "0.516014", "0.51498705", "0.51357126", "0.513347" ]
0.59678245
1
End get author id from entry id Get channel id from entry id
function get_channel_id_from_entry_id( $entry_id = '' ) { if ( is_numeric( $entry_id ) === FALSE ) return FALSE; // -------------------------------------------- // Prep Cache, Return if Set // -------------------------------------------- $cache_name = __FUNCTION__; $cache_hash = $this->_imploder(func_get_args()); if (isset($this->cached[$cache_name][$cache_hash])) { return $this->cached[$cache_name][$cache_hash]; } $this->cached[$cache_name][$cache_hash] = FALSE; // -------------------------------------------- // Grab from DB // -------------------------------------------- $query = ee()->db ->select('author_id, channel_id') ->where('entry_id', $entry_id) ->limit(1) ->get('channel_titles'); if ( $query->num_rows() > 0 ) { $this->cached[$cache_name][$cache_hash] = $query->row('channel_id'); $this->cached['get_author_id_from_entry_id'][$cache_hash] = $query->row('author_id'); } return $this->cached[$cache_name][$cache_hash]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_channel_id($entry_id)\n\t{\t\n\t\t$this->EE->db->select('channel_id');\n\t\t$this->EE->db->where('entry_id', $entry_id);\n\t\t$query = $this->EE->db->get('channel_titles');\n\t\t$row = $query->row();\n\t\t\n\t\treturn ($row ? $row->channel_id : '');\n\t}", "function get_channel_entry()\n\t{\n\t\t// get variables\n\t\t$vars = $this->_get_vars('get', array('entry_id'));\n\t\t\n\t\t// start hook\n\t\t$vars = $this->_hook('get_channel_entry_start', $vars);\n\n\t\t// load channel data library\n\t\t$this->_load_library('channel_data');\n\n\t\t$data = $this->EE->channel_data_lib->get_channel_entry($vars['entry_id'])->result();\n\t\t\n\t\t// expand file fields\n\t\tif (count($data)) \n\t\t{\n\t\t\t$channel_id = $data[0]->channel_id;\n\t\t\t$data = $this->_expand_file_fields($channel_id, $data);\n\t\t}\n\n\t\t// end hook\n\t\t$data = $this->_hook('get_channel_entry_end', $data);\n\n\t\t$this->response($data);\n\t}", "function get_author_id_from_entry_id( $entry_id = '' )\n\t{\n\t\tif ( is_numeric( $entry_id ) === FALSE ) return FALSE;\n\n\t\t// --------------------------------------------\n\t\t// Prep Cache, Return if Set\n\t\t// --------------------------------------------\n\n\t\t$cache_name = __FUNCTION__;\n\t\t$cache_hash = $this->_imploder(func_get_args());\n\n\t\tif (isset($this->cached[$cache_name][$cache_hash]))\n\t\t{\n\t\t\treturn $this->cached[$cache_name][$cache_hash];\n\t\t}\n\n\t\t$this->get_channel_id_from_entry_id( $entry_id );\n\n\t\tif (isset($this->cached[$cache_name][$cache_hash]))\n\t\t{\n\t\t\treturn $this->cached[$cache_name][$cache_hash];\n\t\t}\n\n\t\t$this->cached[$cache_name][$cache_hash] = FALSE;\n\n\t\treturn $this->cached[$cache_name][$cache_hash];\n\t}", "function get_the_author_ID()\n {\n }", "public function getAuthorID();", "function get_author_ID() {\n\t\treturn $this->get_data( 'user_id' );\n\t}", "function the_author_ID()\n {\n }", "function the_ticket_author_id() {\n\n // Get ticket\n $ticket = md_the_component_variable('support_single_ticket');\n\n // Verify if ticket exists\n if ( $ticket ) {\n return $ticket[0]['user_id'];\n } else {\n return false;\n }\n \n }", "public function getEntryId();", "function get_author_feed_link($author_id, $feed = '')\n {\n }", "public function get_urlChannel () {\r\n\t\treturn $this->get_info()['author_url'];\r\n\t}", "function get_author_info($author_id) {\n\n global $data_base;\n\n $request = $data_base->prepare(\"\n SELECT *\n FROM imago_info_creator \n WHERE creator_id = ? \n \");\n\n $request->execute(array($author_id));\n\n return $request->fetch(PDO::FETCH_ASSOC); \n }", "function getRealId($entry) {\n if(null==$entry)\n return null;\n if (isset($entry[\"changeForID\"])) {\n return $entry[\"changeForID\"];\n } else {\n if (isset($entry[\"id\"])) {\n return $entry[\"id\"];\n }\n }\n return null;\n}", "function the_author() {\n\tglobal $discussion;\n\treturn $discussion['author'];\n}", "public function getAuthor_id()\n {\n return $this->author_id;\n }", "public function authorId() { return $this->post->post_author; }", "function get_the_author_login()\n {\n }", "public function getAuthorId()\n {\n return $this->_authorId;\n }", "function get_the_author_aim()\n {\n }", "public function getAuthorId() : Uuid {\n\t\treturn $this->authorId;\n\t}", "function get_author_user_ids()\n {\n }", "public function getIdAuthor()\n {\n return $this->id_author;\n }", "public function getIdAuthor()\n {\n return $this->id_author;\n }", "public function getAuthorId() {\n\t\treturn $this->authorId;\n\t}", "function get_entitled( $pub_id, $channel = false, $issue_id = false, $now = false ){\n\n\t\tglobal $wpdb;\n\n\t\tif ( ! $pub_id ) { return false; }\n\n\t\t$now = ( is_int( $now ) ) ? $now : time();\n\n\t\t$sql = $wpdb->prepare( \"SELECT user_id FROM {$wpdb->prefix}harbor_entitlements WHERE (expires > %d) AND (pub_id = %s)\", $now, $pub_id );\n\t\tif ( $channel ) { $sql .= $wpdb->prepare( ' AND (channel = %s)', $channel ); }\n\t\tif ( $issue_id ) { $sql .= $wpdb->prepare( ' AND (issue_id = %d)', $issue_id ); }\n\n\t\t$users = $wpdb->get_results($sql, ARRAY_A);\n\n\t\treturn $users;\n\t}", "function get_author_name($auth_id = \\false)\n {\n }", "public function get_nameChannel () {\r\n\t\treturn $this->get_info()['author_name'];\r\n\t}", "function get_the_author_yim()\n {\n }", "public function getAuthorId() : string\n {\n return $this->authorId;\n }", "public function fetch_the_id() {}" ]
[ "0.680784", "0.6797325", "0.67747015", "0.6695558", "0.64310515", "0.6360339", "0.63242865", "0.61829036", "0.61047876", "0.61023843", "0.607294", "0.6030234", "0.6002783", "0.5989491", "0.5977807", "0.59760445", "0.59329015", "0.5865321", "0.58230335", "0.5776734", "0.5774693", "0.57631844", "0.57631844", "0.57616895", "0.5755784", "0.5746978", "0.5741828", "0.5738189", "0.5714516", "0.57052237" ]
0.69990194
0