query
stringlengths
11
3.13k
ru_query
stringlengths
9
3.91k
document
stringlengths
18
71k
metadata
dict
negatives
listlengths
0
100
negative_scores
listlengths
0
100
document_score
stringlengths
5
10
document_rank
stringclasses
2 values
Total Status Lead Discussions
Общий статус, ведущие обсуждения
public function totalStatusLeadDiscussions($status) { return Lead::where('status', $status)->count(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTotalLactationByStatus()\n {\n return $this->total_lactation_by_status;\n }", "function getTotalSubmissions() {\n if(\n is_object(\n $oStmt = DB::$PDO->prepare(\n 'SELECT\n COUNT(1)\n FROM\n c...
[ "0.6435931", "0.6059527", "0.5981261", "0.5981261", "0.5981261", "0.59504586", "0.5881921", "0.58279365", "0.58279365", "0.58210135", "0.578081", "0.57802534", "0.5718376", "0.5682864", "0.5682864", "0.5645733", "0.5635716", "0.5628105", "0.56248134", "0.5614034", "0.5610888"...
0.7557167
0
/ Problem: Digit Fifth Powers Surprisingly there are only three numbers that can be written as the sum of fourth powers of their digits: 1634 = 1^4 + 6^4 + 3^4 + 4^4 8208 = 8^4 + 2^4 + 0^4 + 8^4 9474 = 9^4 + 4^4 + 7^4 + 4^4 As 1 = 14 is not a sum it is not included. The sum of these numbers is 1634 + 8208 + 9474 = 1931...
/ Задача: Пятые степени цифр Всего существует три числа, которые могут быть представлены в виде суммы четвертых степеней своих цифр: 1634 = 1^4 + 6^4 + 3^4 + 4^4 8208 = 8^4 + 2^4 + 0^4 + 8^4 9474 = 9^4 + 4^4 + 7^4 + 4^4 Так как 1 = 14 не является суммой, его не включают. Сумма этих чисел равна 1634 + 8208 + 9474 = 1931...
function sumOfNth($nPower,$num) { $digitsArr = str_split((string)$num); $nthPower = function($n) use ($nPower){return pow($n,$nPower);}; return array_sum(array_map($nthPower,$digitsArr)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function checkRecursive($x, $n, $curr_num = 1,$curr_sum = 0)\n{\n // Initialize number of ways to express\n // x as n-th powers of different natural\n // numbers\n $results = 0;\n \n // Calling power of 'i' raised to 'n'\n $p = power($curr_num, $n);\n $p + $curr_sum;\n while ($p + $curr_sum...
[ "0.60419554", "0.5968498", "0.5883453", "0.5756385", "0.5739952", "0.5737688", "0.55899024", "0.55890155", "0.5525939", "0.550741", "0.5440084", "0.5416347", "0.5412163", "0.5397404", "0.53523654", "0.5329117", "0.5284867", "0.5266647", "0.52295923", "0.52123207", "0.5168725"...
0.72332525
0
Returns whether the resource is fresh as of the given timestamp
Возвращает, является ли ресурс свежим по отношению к указанному временному метку
public function isFresh($timestamp = null);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isFresh()\n {\n return (bool)$this->fresh;\n }", "public function isFresh(string $name, int $time): bool\n {\n if (null === $path = $this->findTemplate($name)) {\n return false;\n }\n\n return filemtime($path) < $time;\n }", "public function is...
[ "0.7110876", "0.6894656", "0.6728656", "0.6684991", "0.6684377", "0.6616016", "0.6468048", "0.63848454", "0.63766736", "0.63219535", "0.63169175", "0.6291651", "0.62711877", "0.6257202", "0.6256739", "0.624635", "0.62240493", "0.62204695", "0.6197095", "0.6190939", "0.6180579...
0.85411114
0
Custom variables for the checkout module. Custom variables are stored in the following format: array(variable_id, variable_name, variable_type, help_text, default_value, required, [variable_options], [multi_select], [multi_select_height]) variable_type types are: text,number,password,radio,dropdown variable_options is ...
Персонализированные переменные для модуля оформления заказа. Персонализированные переменные хранятся в следующем формате: массив (variable_id, variable_name, variable_type, help_text, default_value, required, [variable_options], [multi_select], [multi_select_height]). Типы variable_type: text, number, password, radio, ...
public function SetCustomVars() { $this->_variables['displayname'] = array("name" => GetLang('DisplayName'), "type" => "textbox", "help" => GetLang('DisplayNameHelp'), "default" => $this->GetName(), "required" => true ); $this->_variables['vendorname'] = array("name" => GetLang($this...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function SetCustomVars()\n\t{\n\t\t$this->_variables['displayname'] = array(\"name\" => GetLang('NabDisplayName'),\n\t\t \"type\" => \"textbox\",\n\t\t \"help\" => GetLang('DisplayNameHelp'),\n\t\t \"default\" => $this->GetName(),\n\t\t \"required\" => true\n\t\t);\n\n\t\t$this->_variables['vendor_n...
[ "0.7372163", "0.71588606", "0.7011692", "0.67815447", "0.657785", "0.6544428", "0.61889243", "0.6177271", "0.57543576", "0.56145495", "0.5562694", "0.555358", "0.5531509", "0.5526962", "0.54036975", "0.53986245", "0.5393699", "0.5387998", "0.5369916", "0.5307703", "0.530044",...
0.72038835
1
OneToMany (owning side) Get fkComprasPublicacaoCompraDiretas
OneToMany (сторона, владеющая связью) Получить fkComprasPublicacaoCompraDiretas
public function getFkComprasPublicacaoCompraDiretas() { return $this->fkComprasPublicacaoCompraDiretas; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFkLicitacaoPublicacaoContratos()\n {\n return $this->fkLicitacaoPublicacaoContratos;\n }", "public function getFkComprasSolicitacao()\n {\n return $this->fkComprasSolicitacao;\n }", "public function getFkComprasOrdemItens()\n {\n return $this->fkComprasOrd...
[ "0.6873307", "0.66151017", "0.6571709", "0.6571709", "0.65573525", "0.6530886", "0.6508532", "0.64831406", "0.64492583", "0.64103436", "0.6403145", "0.6386631", "0.6374543", "0.6325447", "0.6312396", "0.62496936", "0.62475383", "0.62153554", "0.6190051", "0.6187534", "0.61579...
0.75029445
0
OneToMany (owning side) Get fkLdoHomologacoes
OneToMany (сторона, владеющая связью) Получить fkLdoHomologacoes
public function getFkLdoHomologacoes() { return $this->fkLdoHomologacoes; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTblLophocphans()\n {\n return $this->hasMany(TblLophocphan::className(), ['mahocphan' => 'mahocphan']);\n }", "public function getFkLdoLdos()\n {\n return $this->fkLdoLdos;\n }", "public function getLophp()\n {\n return $this->hasOne(TblLophocphan::classNa...
[ "0.6444692", "0.6045428", "0.60195196", "0.5999213", "0.5993136", "0.5975653", "0.59726065", "0.59561056", "0.5913195", "0.5892287", "0.5848755", "0.5806871", "0.579552", "0.5734927", "0.5723317", "0.5677549", "0.5668117", "0.56341296", "0.56128335", "0.56040365", "0.5603126"...
0.7742684
0
OneToMany (owning side) Get fkLicitacaoPublicacaoContratoAditivos
OneToMany (сторона, владеющая связью) Получить fkLicitacaoPublicacaoContratoAditivos
public function getFkLicitacaoPublicacaoContratoAditivos() { return $this->fkLicitacaoPublicacaoContratoAditivos; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFkLicitacaoPublicacaoContratos()\n {\n return $this->fkLicitacaoPublicacaoContratos;\n }", "public function getFkLicitacaoPublicacaoConvenios()\n {\n return $this->fkLicitacaoPublicacaoConvenios;\n }", "public function getFkLicitacaoPublicacaoRescisaoContratos()\n ...
[ "0.7433855", "0.7022171", "0.6997039", "0.68176377", "0.6771484", "0.67386645", "0.67299914", "0.6729561", "0.6597312", "0.6502317", "0.64982605", "0.64982605", "0.6493722", "0.6437753", "0.64362353", "0.6403966", "0.63430136", "0.62967414", "0.62826645", "0.62731147", "0.620...
0.77627426
0
OneToMany (owning side) Get fkLicitacaoPublicacaoRescisaoContratos
OneToMany (сторона, владеющая связью) Получить fkLicitacaoPublicacaoRescisaoContratos
public function getFkLicitacaoPublicacaoRescisaoContratos() { return $this->fkLicitacaoPublicacaoRescisaoContratos; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFkLicitacaoPublicacaoContratos()\n {\n return $this->fkLicitacaoPublicacaoContratos;\n }", "public function getFkLicitacaoRescisaoContrato()\n {\n return $this->fkLicitacaoRescisaoContrato;\n }", "public function getFkLicitacaoLicitacoes()\n {\n return $th...
[ "0.7624612", "0.7299571", "0.7190168", "0.7183094", "0.71443367", "0.7138111", "0.7122052", "0.711426", "0.7057137", "0.69024575", "0.6782046", "0.6693293", "0.66490483", "0.66490483", "0.66465735", "0.65075743", "0.64704466", "0.64166963", "0.62956536", "0.6283881", "0.62796...
0.79079366
0
OneToMany (owning side) Get fkLicitacaoPublicacaoConvenios
OneToMany (сторона, владеющая связью) Получить fkLicitacaoPublicacaoConvenios
public function getFkLicitacaoPublicacaoConvenios() { return $this->fkLicitacaoPublicacaoConvenios; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFkLicitacaoPublicacaoContratos()\n {\n return $this->fkLicitacaoPublicacaoContratos;\n }", "public function getFkLicitacaoPublicacaoRescisaoContratos()\n {\n return $this->fkLicitacaoPublicacaoRescisaoContratos;\n }", "public function getFkLicitacaoConvenio()\n {...
[ "0.7445839", "0.70992905", "0.70976007", "0.7041503", "0.70331943", "0.70116466", "0.69830894", "0.68864053", "0.6795639", "0.6792301", "0.6764861", "0.66570127", "0.66570127", "0.654606", "0.63420695", "0.63056684", "0.6272771", "0.6272011", "0.6235458", "0.62058604", "0.618...
0.77271265
0
OneToMany (owning side) Get fkLicitacaoPublicacaoEditais
OneToMany (сторона, владеющая связью) Получить fkLicitacaoPublicacaoEditais
public function getFkLicitacaoPublicacaoEditais() { return $this->fkLicitacaoPublicacaoEditais; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFkLicitacaoPublicacaoContratos()\n {\n return $this->fkLicitacaoPublicacaoContratos;\n }", "public function getFkLicitacaoPublicacaoRescisaoContratos()\n {\n return $this->fkLicitacaoPublicacaoRescisaoContratos;\n }", "public function getFkLicitacaoLicitacao()\n ...
[ "0.7219703", "0.696813", "0.6923095", "0.6912954", "0.68926567", "0.687921", "0.67362857", "0.6601461", "0.6601461", "0.65992415", "0.65719175", "0.6509175", "0.6472069", "0.6461166", "0.6440174", "0.634259", "0.62885904", "0.62793714", "0.62594944", "0.62594944", "0.6070989"...
0.7928973
0
OneToMany (owning side) Get fkPpaPpaPublicacoes
OneToMany (сторона, владеющая связью) Получить fkPpaPpaPublicacoes
public function getFkPpaPpaPublicacoes() { return $this->fkPpaPpaPublicacoes; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFkPessoalPensao()\n {\n return $this->fkPessoalPensao;\n }", "public function getFkPpaPpaPrecisao()\n {\n return $this->fkPpaPpaPrecisao;\n }", "public function getFkPpaPrecisao()\n {\n return $this->fkPpaPrecisao;\n }", "public function pais(){\n ...
[ "0.6623769", "0.6563858", "0.65266085", "0.6478532", "0.64659935", "0.6452693", "0.6345024", "0.63095677", "0.6265583", "0.6232621", "0.6224327", "0.6223547", "0.6204207", "0.62007666", "0.61783504", "0.617561", "0.6147404", "0.6139649", "0.6125806", "0.6120939", "0.61208653"...
0.74998736
1
OneToMany (owning side) Get fkTcealPublicacaoRreos
OneToMany (сторона, владеющая связью) Получить fkTcealPublicacaoRreos
public function getFkTcealPublicacaoRreos() { return $this->fkTcealPublicacaoRreos; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFkPessoalOcorrencia()\n {\n return $this->fkPessoalOcorrencia;\n }", "public function getFkTcepeDocumentos()\n {\n return $this->fkTcepeDocumentos;\n }", "public function getIdpeliculas()\n {\n return $this->hasMany(Pelicula::className(), ['id' => 'idpelic...
[ "0.68995374", "0.67664176", "0.6553124", "0.655011", "0.65257084", "0.65178055", "0.6489827", "0.64811754", "0.6471935", "0.64579993", "0.6422506", "0.6398829", "0.63929725", "0.63823", "0.6352035", "0.6341388", "0.63120204", "0.6304463", "0.6304463", "0.6303621", "0.62970936...
0.7451274
0
OneToMany (owning side) Get fkTcealPublicacaoRgfs
OneToMany (сторона, владеющая связью) Получить fkTcealPublicacaoRgfs
public function getFkTcealPublicacaoRgfs() { return $this->fkTcealPublicacaoRgfs; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFkTcealPublicacaoRreos()\n {\n return $this->fkTcealPublicacaoRreos;\n }", "public function getFkTcepeDocumentos()\n {\n return $this->fkTcepeDocumentos;\n }", "public function getFkOrganogramaNiveis()\n {\n return $this->fkOrganogramaNiveis;\n }", "p...
[ "0.68161833", "0.6751685", "0.65860075", "0.65677786", "0.65513784", "0.6547837", "0.64201206", "0.63888556", "0.63688266", "0.6293477", "0.62801003", "0.6223434", "0.6223434", "0.62098837", "0.62098837", "0.62098837", "0.6196842", "0.61939186", "0.61903626", "0.6181365", "0....
0.72343385
0
OneToMany (owning side) Get fkTcemgContratos
OneToMany (сторона, владеющая связью) Получить fkTcemgContratos
public function getFkTcemgContratos() { return $this->fkTcemgContratos; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFkTcemgContratoAditivos()\n {\n return $this->fkTcemgContratoAditivos;\n }", "public function getFkTcepeDocumentos()\n {\n return $this->fkTcepeDocumentos;\n }", "public function getForeignKeys(){\n \n }", "public function getFkConcursoCandidato(...
[ "0.6906631", "0.67483455", "0.6736112", "0.655206", "0.64882714", "0.6356678", "0.6339623", "0.63311976", "0.63243306", "0.6317802", "0.6300091", "0.62872046", "0.6182556", "0.61797565", "0.6170625", "0.6163466", "0.61557585", "0.61557585", "0.6143967", "0.61040795", "0.60978...
0.7632175
1
OneToMany (owning side) Get fkLicitacaoPublicacaoContratos
OneToMany (сторона, владеющая связью) Получить fkLicitacaoPublicacaoContratos
public function getFkLicitacaoPublicacaoContratos() { return $this->fkLicitacaoPublicacaoContratos; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFkLicitacaoPublicacaoRescisaoContratos()\n {\n return $this->fkLicitacaoPublicacaoRescisaoContratos;\n }", "public function getFkLicitacaoPublicacaoConvenios()\n {\n return $this->fkLicitacaoPublicacaoConvenios;\n }", "public function getFkLicitacaoPublicacaoContrat...
[ "0.75575995", "0.7459148", "0.7416407", "0.71518624", "0.7083091", "0.7074746", "0.7013749", "0.6993833", "0.6878965", "0.6866741", "0.66600597", "0.65980184", "0.65980184", "0.6582605", "0.6531634", "0.6471146", "0.6417249", "0.63639194", "0.62874305", "0.6255636", "0.621288...
0.7926493
0
OneToMany (owning side) Get fkLicitacaoPublicacaoAtas
OneToMany (сторона, владеющая связью) Получить fkLicitacaoPublicacaoAtas
public function getFkLicitacaoPublicacaoAtas() { return $this->fkLicitacaoPublicacaoAtas; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFkLicitacaoPublicacaoContratos()\n {\n return $this->fkLicitacaoPublicacaoContratos;\n }", "public function getFkLicitacaoPublicacaoContratoAditivos()\n {\n return $this->fkLicitacaoPublicacaoContratoAditivos;\n }", "public function getFkLicitacaoPublicacaoConvenios...
[ "0.74709696", "0.72185856", "0.70855683", "0.69770736", "0.6963095", "0.6949324", "0.68897396", "0.67675656", "0.6602407", "0.6574031", "0.6531976", "0.6285319", "0.62335634", "0.6228746", "0.6211592", "0.6204246", "0.6140665", "0.609113", "0.60584027", "0.6049347", "0.604934...
0.7556929
0
OneToMany (owning side) Get fkTcemgContratoAditivos
OneToMany (сторона, владеющая связью) Получить fkTcemgContratoAditivos
public function getFkTcemgContratoAditivos() { return $this->fkTcemgContratoAditivos; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFkTcemgContratos()\n {\n return $this->fkTcemgContratos;\n }", "public function getFkTcemgContratos()\n {\n return $this->fkTcemgContratos;\n }", "public function getFkTcepeDocumentos()\n {\n return $this->fkTcepeDocumentos;\n }", "public function get...
[ "0.69655466", "0.69655466", "0.65203154", "0.6426103", "0.63823485", "0.6339268", "0.6307423", "0.6299812", "0.628181", "0.62793636", "0.6266995", "0.62528646", "0.62220585", "0.61941004", "0.6193028", "0.6190161", "0.6175705", "0.6175628", "0.6171811", "0.6166064", "0.616526...
0.772905
0
ManyToOne (inverse side) Get fkLicitacaoTipoVeiculosPublicidade
ManyToOne (обратная сторона) Получить fkLicitacaoTipoVeiculosPublicidade
public function getFkLicitacaoTipoVeiculosPublicidade() { return $this->fkLicitacaoTipoVeiculosPublicidade; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFkEconomicoLicencaDiversa()\n {\n return $this->fkEconomicoLicencaDiversa;\n }", "public function getFkLicitacaoPublicacaoConvenios()\n {\n return $this->fkLicitacaoPublicacaoConvenios;\n }", "public function getFkLicitacaoLicitacao()\n {\n return $this->f...
[ "0.70547223", "0.7032761", "0.7029754", "0.6967053", "0.6853017", "0.6816853", "0.67114294", "0.6671827", "0.65691346", "0.65691346", "0.65642834", "0.65181285", "0.65181285", "0.65181285", "0.64383554", "0.64344907", "0.64057", "0.638917", "0.6294307", "0.6214839", "0.616446...
0.7739954
0
get_redirect_url() Gets the address that the provided URL redirects to, or FALSE if there's no redirect.
get_redirect_url() Получает адрес, к которому перенаправляется предоставленный URL, или FALSE, если перенаправления нет.
function get_redirect_url($url){ $redirect_url = null; $url_parts = @parse_url($url); if (!$url_parts) return false; if (!isset($url_parts['host'])) return false; //can't process relative URLs if (!isset($url_parts['path'])) $url_parts['path'] = '/'; $sock = fsockopen($url_parts['host'], (isset($url_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getRedirectUrl(): ?string\n {\n return $this->_redirectUrl;\n }", "public function getRedirectUrl();", "public function getRedirectUrl();", "public function getRedirectUrl();", "public function getRedirectUrl();", "public function getRedirectUrl();", "public function checkL...
[ "0.69765407", "0.6918374", "0.6918374", "0.6918374", "0.6918374", "0.6918374", "0.68498534", "0.6681673", "0.66285294", "0.6627446", "0.6605137", "0.6605137", "0.6575628", "0.657342", "0.6561052", "0.65265983", "0.65265983", "0.65265983", "0.65008205", "0.64503694", "0.645036...
0.7297239
0
get_final_url() Gets the address that the URL ultimately leads to. Returns $url itself if it isn't a redirect.
get_final_url() Получает адрес, к которому в итоге ведёт URL. Возвращает $url само по себе, если оно не является перенаправлением.
function get_final_url($url){ $redirects = get_all_redirects($url); if (count($redirects)>0){ return array_pop($redirects); } else { return $url; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static function get_final_url($url)\n\t\t{\n\t\t\t$redirects = CUtils::get_all_redirects($url);\n\t\t\tif (count($redirects)>0)\n\t\t\t{\n\t\t\t\treturn array_pop($redirects);\n\t\t\t} \n\t\t\telse \n\t\t\t{\n\t\t\t\treturn $url;\n\t\t\t}\n\t\t}", "function get_final_url($url){\n\t$redirects = get_all_redirects(...
[ "0.8182524", "0.81635004", "0.73048997", "0.7131725", "0.68727154", "0.6670572", "0.65954643", "0.650293", "0.64909655", "0.64904004", "0.6467125", "0.6452957", "0.6427875", "0.6427875", "0.6427875", "0.6427875", "0.6427875", "0.6367524", "0.62690073", "0.6217572", "0.6216810...
0.8172781
1
Obtain the human readable message from redsys error code.
Получить человеко-читаемое сообщение из кода ошибки redsys.
public function getMessageInfo($error_code) { return 'Error ' . $error_code . ': ' . RedsysErrorInfo::getErrorInfo($error_code); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function getErrorMessage(int $code): string\n {\n return sprintf(\n '%s - Error Code = [%d]'\n , self::$errors[$code]\n , $code\n );\n }", "final public function error_get() : string{\r\n return (string) ($this->code != 0) ? \"[<b>{$th...
[ "0.7506608", "0.74893034", "0.7479687", "0.72988445", "0.72967196", "0.7252391", "0.71906835", "0.7169486", "0.7134165", "0.71326643", "0.7128417", "0.71013594", "0.702751", "0.7020475", "0.7017535", "0.70157695", "0.7012731", "0.69851846", "0.69492877", "0.69384867", "0.6918...
0.771796
0
Validate a string callback Check first if the string provided is callable. If not see if it is a valid class name; if so, determine if the object is invokable.
Проверьте строковый обратный вызов. Сначала проверьте, является ли предоставленная строка вызываемой. Если нет, проверьте, является ли она допустимым именем класса; если да, определите, можно ли вызвать объект.
protected function validateStringCallback($callback) { if (is_callable($callback)) { $this->isValidCallback = true; return true; } if (!class_exists($callback)) { return false; } // check __invoke before instantiating if (!method_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function validateString($callback)\n\t{\n\t\tif ( ! is_callable($callback))\n\t\t{\n\t\t\tthrow new Exceptions\\InvalidArgumentException('String \"'.$callback.'\" is not callable.');\n\t\t}\n\t}", "public function testIsCallable() {\n\t\t$result = _::isCallable('Fibonacci::compute');\n\t\t$this->assertTr...
[ "0.7078671", "0.63677686", "0.62908775", "0.62633246", "0.6197142", "0.61023116", "0.6029212", "0.5956618", "0.5884913", "0.58814055", "0.5783414", "0.57730407", "0.5752886", "0.573782", "0.571153", "0.56918126", "0.5676638", "0.56625575", "0.5650651", "0.56387234", "0.559804...
0.77615815
0
function for the getting the streamID based on a user's phone number and stream name
функция для получения streamID на основе номера телефона пользователя и названия потока
function getStreamIDWithName($phoneNumber, $theStreamName) { $theStreamName = urlencode($theStreamName); $url = 'http://75.101.134.112/api/getStreamID.php?phone=' . $phoneNumber . '&streamName=' . $theStreamName; $ch = curl_init($url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getStreamIDWithStreamToUser($phoneNumber, $streamToUser)\n{\n $streamToUser = urlencode($streamToUser);\n $url = 'http://75.101.134.112/api/getStreamID.php?phone=' . $phoneNumber . '&streamToUser=' . $streamToUser;\n $ch = curl_init($url);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\n $response = ...
[ "0.7802621", "0.6004984", "0.5837018", "0.5834308", "0.57078344", "0.5575922", "0.5575922", "0.5575922", "0.557322", "0.5471952", "0.5459189", "0.54405606", "0.5423306", "0.5389238", "0.5386066", "0.5383364", "0.53585744", "0.53394383", "0.5326064", "0.5324676", "0.5319277", ...
0.7533242
1
function for the getting the streamID based on a user's phone number and streamToUser Number
функция для получения streamID на основе телефонного номера пользователя и streamToUser Number
function getStreamIDWithStreamToUser($phoneNumber, $streamToUser) { $streamToUser = urlencode($streamToUser); $url = 'http://75.101.134.112/api/getStreamID.php?phone=' . $phoneNumber . '&streamToUser=' . $streamToUser; $ch = curl_init($url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getStreamIDWithName($phoneNumber, $theStreamName)\n{\n $theStreamName = urlencode($theStreamName);\n $url = 'http://75.101.134.112/api/getStreamID.php?phone=' . $phoneNumber . '&streamName=' . $theStreamName;\n $ch = curl_init($url);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\n $response = curl_e...
[ "0.6818001", "0.5745752", "0.56763333", "0.5659625", "0.5582489", "0.55523276", "0.55140716", "0.5475992", "0.54717827", "0.54503185", "0.54478425", "0.54392594", "0.54058725", "0.54020315", "0.538626", "0.538626", "0.538626", "0.5375267", "0.53704065", "0.536813", "0.5361725...
0.80581796
0
Views Slideshow: "previous" control.
Просмотр слайдов: кнопка "предыдущий".
function theme_views_slideshow_thumbnailhover_control_previous($vss_id, $view, $options) { return l(t('Previous'), '', array( 'attributes' => array( 'class' => 'views_slideshow_thumbnailhover_previous views_slideshow_previous', 'id' => "views_slideshow_thumbnailhover_prev_" . $vss_id, ), 'frag...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function prev()\n {\n $current = $this->current();\n\n if ($current) {\n $this->current = $current->getBefore();\n }\n }", "private function previous()\n {\n $this->m--;\n $this->init();\n }", "public function previous_question()\n {\n\n ...
[ "0.7047478", "0.69017476", "0.68411475", "0.68004435", "0.67327315", "0.6725313", "0.67221904", "0.66578543", "0.6645318", "0.6601906", "0.6567965", "0.6551652", "0.6547041", "0.6533268", "0.65179783", "0.6487003", "0.64845717", "0.64715266", "0.64544225", "0.6452305", "0.644...
0.786601
0
Views Slideshow: "pause" control.
Просмотр слайдов: кнопка "пауза".
function theme_views_slideshow_thumbnailhover_control_pause($vss_id, $view, $options) { return l(t('Pause'), '', array( 'attributes' => array( 'class' => 'views_slideshow_thumbnailhover_pause views_slideshow_pause', 'id' => "views_slideshow_thumbnailhover_playpause_" . $vss_id, ), 'fragment' =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function pause();", "public function pause() {\n if ($this->getLigado() && $this->getTocando()) {\n $this->setTocando(false);\n }\n }", "public function pause()\n\t{\n\t\t$this->data->directSet(\"state\", self::STATE_PAUSED);\n\t}", "public function pause() {\n $this...
[ "0.6668244", "0.63620645", "0.63252294", "0.62587315", "0.6203959", "0.5918009", "0.57461226", "0.5673045", "0.5611137", "0.56036097", "0.54613864", "0.54345626", "0.54341656", "0.54212046", "0.5340885", "0.53332216", "0.5332074", "0.53057945", "0.52771217", "0.5171361", "0.5...
0.74458516
0
Views Slideshow: "next" control.
Просмотр слайдов: кнопка "следующий".
function theme_views_slideshow_thumbnailhover_control_next($vss_id, $view, $options) { return l(t('Next'), '', array( 'attributes' => array( 'class' => 'views_slideshow_thumbnailhover_next views_slideshow_next', 'id' => "views_slideshow_thumbnailhover_next_" . $vss_id, ), 'fragment' => ' ', ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function slide(){\r\n\t\t\r\n\t}", "public function nextAction()\n {\n // check if request is ajax\n if (Helper::isAjaxRequest()) {\n // get request\n $code = Helper::requestGet('code', null);\n $userName = Helper::requestGet('userName', null);\n\n ...
[ "0.67060417", "0.65444446", "0.644538", "0.6381874", "0.6268521", "0.6086604", "0.60668695", "0.6035861", "0.60072666", "0.59961575", "0.59313434", "0.5925621", "0.58702594", "0.5847926", "0.5801213", "0.5784727", "0.57814014", "0.577088", "0.5746499", "0.5737253", "0.5729457...
0.77647436
0
Views Slideshow: image counter.
Просмотр слайдов: счётчик изображений.
function theme_views_slideshow_thumbnailhover_image_count($vss_id, $view, $options) { $attributes['class'] = 'views_slideshow_thumbnailhover_image_count views_slideshow_image_count'; $attributes['id'] = "views_slideshow_thumbnailhover_image_count_" . $vss_id; $attributes = drupal_attributes($attributes); $coun...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function slide_show()\n \t{\n // Setup show\n $show = ( $this->ipsclass->input['show'] == 'first' ) ? 0 : $this->ipsclass->input['show'];\n\n // Figure out if the user has chosen a value, or if we should go with a default\n $sort_key = ( $this->ipsclass->input['sort_...
[ "0.6352001", "0.58842885", "0.5878858", "0.58574224", "0.58273286", "0.5768982", "0.5740373", "0.5732933", "0.5653383", "0.5620649", "0.56200314", "0.55988336", "0.5556949", "0.55331826", "0.5465565", "0.54599404", "0.545906", "0.544698", "0.5440352", "0.54309994", "0.5410104...
0.7624445
0
updatesettings : Function responsible to update the settings of the application, First Param : key ... Second Param : value ...
updatesettings : Функция, отвечающая за обновление настроек приложения, Первый параметр : ключ ... Второй параметр : значение ...
public function updatesettings($key='',$value='') { $whrArray = array('key_text'=>$key); $updateArray = array('value_text'=>$value); $this->CI->DatabaseModel->access_database('ts_settings','update', $updateArray , $whrArray); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function settingsupdate() {\n $this->auth(WL_ADM_LEVEL);\n $wl_id = $this->session->userdata('wl_id');\n $wl_data = $this->m_white_label->getById($wl_id);\n foreach ($_POST as $key=>$value) {\n if($key != 'save'){\n $data[$key] = $this->input->post($key);\n }\n }\n if($this->m_s...
[ "0.6925366", "0.6922989", "0.68871367", "0.68501556", "0.67781216", "0.6774027", "0.67635393", "0.6736985", "0.65445936", "0.64803886", "0.64615905", "0.6439107", "0.640302", "0.6383356", "0.6363065", "0.6325392", "0.6301587", "0.62751615", "0.6274324", "0.62709117", "0.62483...
0.76271707
0
getlanguage : Function responsible to fetch the language depending on either key or type, First Param : key Second Param : type
getlanguage : Функция, отвечающая за получение языка в зависимости от ключа или типа, Первый параметр : ключ Второй параметр : тип
public function getlanguage($key='',$type='',$return='') { if( $key == 'all' ) { $whrArray = array('language_type'=>$type); } else { $whrArray = array('language_key'=>$key,'language_type'=>$type); } $resArray = $this->CI->DatabaseModel->acces...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function lang($key){\n\tglobal $lang;\n\treturn isset($lang[$key])?$lang[$key]:$key;\n}", "function lang($key)\n{\n\tglobal $lang;\n\t\n\t// Make sure the key is uppercase\n\t$key = strtoupper($key);\n\t\n\t// Does that key exist?\n\tif(!$lang[$key])\n\t{\n\t\t// So we know it needs to be translated.\n\t\treturn...
[ "0.7194255", "0.70760334", "0.69914544", "0.69654256", "0.68553513", "0.68464166", "0.6839216", "0.678644", "0.678644", "0.678644", "0.678644", "0.678644", "0.678644", "0.67794806", "0.6757948", "0.6752235", "0.66622424", "0.6643197", "0.66386914", "0.6613281", "0.65631944", ...
0.8548627
0
sendtransactionemails : Function to get send transaction email First Param : product db id
sendtransactionemails : Функция для получения электронной почты о проведении транзакции Первый параметр : идентификатор продукта в базе данных
public function sendtransactionemails($tranId){ $bodyhead="<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'> <html xmlns='http://www.w3.org/1999/xhtml'> <head> <meta http-equiv='Content-Type' content='text/html...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function sendMailForWishlistProductPromotion($promoId, $productIdPromotion, $con) {\n if (in_array('all', $productIdPromotion)) {\n $qq = \"SELECT DISTINCT(tw.user_id), tu.email, tu.username FROM tbl_user_wishlist tw LEFT JOIN tbl_user tu ON tu.user_id = tw.user_id\";\n } else {\n $pids = implo...
[ "0.6865416", "0.66873497", "0.65963364", "0.64373344", "0.635409", "0.6342586", "0.63003796", "0.6287271", "0.6283493", "0.62504673", "0.6218449", "0.62035924", "0.6195935", "0.61799747", "0.61738086", "0.6170081", "0.61555755", "0.61516255", "0.6149326", "0.6132691", "0.6126...
0.7956523
0
returns the TestHelper constructed with constructTestHelper
возвращает TestHelper, созданный с помощью constructTestHelper
protected function getTestHelper() { return $this->testHelper; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract protected function constructTestHelper();", "protected abstract function getTestCase() : TestCase;", "protected abstract function getTestCase() : TestCase;", "function this(): TestCase\n{\n return TestSuite::getInstance()->test;\n}", "public function getTestCase($class);", "public static func...
[ "0.7506531", "0.6337296", "0.6337296", "0.6336013", "0.61446893", "0.60379326", "0.58406585", "0.5779586", "0.573509", "0.573509", "0.5710233", "0.5697454", "0.5697454", "0.56459755", "0.5603042", "0.5599164", "0.55826294", "0.5525997", "0.5488314", "0.54746", "0.5466814", ...
0.7864767
0
Test defaults with metadata available.
Тестирование значений по умолчанию с доступными метаданными.
public function testDefaultWithMetadata() { $config = array( 'default' => TRUE, ); $result = self::processFilter($config, self::$request); $attributes = $result['Attributes']; $this->assertArrayHasKey('cn', $attributes); $this->assertArrayHasKey('mail', $...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getExpectedDefaults();", "public function hasDefaults(): bool;", "public function testDefaultsApplying()\n {\n $cfg = new ConfigLoader(realpath(__DIR__ . '/../config/database-config.ini'), $this->config);\n $ro = new \\ReflectionObject($cfg);\n $prop = $ro->getProperty('...
[ "0.69439745", "0.6481823", "0.6444917", "0.6422711", "0.6377728", "0.6165863", "0.6116806", "0.60702145", "0.6029185", "0.60230124", "0.5995624", "0.59884083", "0.5984122", "0.5963848", "0.59617996", "0.59426576", "0.5940192", "0.5930236", "0.59225273", "0.5914546", "0.589396...
0.7194289
0
Test defaults with attributes and metadata
Тестирование дефолтов с атрибутами и метаданными
public function testDefaultWithAttrs() { $config = array( 'default' => TRUE, 'eduPersonTargetedID', 'eduPersonAffiliation', ); $result = self::processFilter($config, self::$request); $attributes = $result['Attributes']; $this->assertCount(2, $attribut...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testDefaultWithMetadata()\n {\n $config = array(\n 'default' => TRUE,\n );\n\n $result = self::processFilter($config, self::$request);\n $attributes = $result['Attributes'];\n $this->assertArrayHasKey('cn', $attributes);\n $this->assertArrayHa...
[ "0.75322294", "0.67857546", "0.6660234", "0.64972305", "0.6468576", "0.64454275", "0.6429209", "0.6407448", "0.63876563", "0.63154006", "0.63069504", "0.62176085", "0.6202759", "0.62019295", "0.61554885", "0.6130396", "0.61208224", "0.61141896", "0.6092597", "0.60826063", "0....
0.7413255
1
Test for exception with illegal config.
Тест на исключение с неправильной конфигурацией.
public function testInvalidConfig() { $config = array( 'invalidArg' => TRUE, ); $result = self::processFilter($config, self::$request); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testInvalidConfig(): void\n {\n $result = $this->check->run('Books', [ 'icon_bad_values' => ['cube'], 'display_field_bad_values' => [\"title2\"] ]);\n $result = $this->check->getErrors();\n\n $this->assertTrue(is_array($result), \"getErrors() returned a non-array result\");\...
[ "0.697551", "0.6670781", "0.66464055", "0.64785826", "0.64533657", "0.6436782", "0.6436619", "0.6382252", "0.6372625", "0.6332778", "0.6307451", "0.63008845", "0.62928915", "0.6247532", "0.62246525", "0.6218642", "0.61945987", "0.61865014", "0.6171977", "0.61695397", "0.61264...
0.7235849
0
Test for invalid attribute name
Тест на недопустимое имя атрибута
public function testInvalidAttributeName() { $config = array( null ); $result = self::processFilter($config, self::$request); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function _check_valid_attr($string) {\n\t\t\n\t\t$result = true;\n\t\t\n\t\t// Check $name for correct characters\n\t\t// \"^[a-zA-Z0-9_-]*$\"\n\t\t\n\t\treturn $result;\n\t\t\n\t}", "private function checkAttribute($attr)\n {\n if (! in_array($attr, $this->attributeNames)) {\n throw...
[ "0.7390543", "0.7141038", "0.674659", "0.6663978", "0.6469234", "0.6412499", "0.6382428", "0.63690454", "0.6326776", "0.6321513", "0.6278484", "0.6195413", "0.6183443", "0.61810625", "0.61236906", "0.6084901", "0.6074845", "0.60724187", "0.60096055", "0.59269375", "0.59237117...
0.8003157
0
Test for attribute value matching
Тест на соответствие значения атрибута
public function testMatchAttributeValues() { $config = array( 'eduPersonAffiliation' => array('member') ); $result = self::processFilter($config, self::$request); $attributes = $result['Attributes']; $this->assertCount(1, $attributes); $this->assertArrayHasKey('edu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_atribute_by_attribute($attr_name,$attr_value,$exactly,$name_attr)\n {\n return $this->get_attribute_by_attribute($attr_name,$attr_value,$exactly,$name_attr);\n }", "public function hasAttr($attr);", "public function matchAttribute($oi, $attribute, $value) {\n $valuef...
[ "0.69118315", "0.67917496", "0.6776963", "0.67645085", "0.66651374", "0.6612803", "0.6500062", "0.6472165", "0.6471704", "0.64670354", "0.64578277", "0.63939446", "0.63405377", "0.63186175", "0.6286468", "0.62409925", "0.6208753", "0.61998445", "0.6166967", "0.60935366", "0.6...
0.7050939
0
Check if the tag is a stopper
Проверьте, является ли тег стоппером
protected function _isStopper($tag) { $this->_checkTagDeclaration($this->_current->getName()); if (!empty($this->_searchedStoppers[$tag])) { return true; } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function hasStopdf(){\r\n return $this->_has(23);\r\n }", "public function hasStopdf(){\r\n return $this->_has(26);\r\n }", "public function stop(): bool {}", "function stop() { \n\n\t\tif ($this->XBMCCmd(\"Stop\")!=\"OK\") { return false; }\n return true;\n\n\t}", "pub...
[ "0.62850285", "0.6167335", "0.5723946", "0.5721585", "0.57198507", "0.5714323", "0.56885535", "0.55625445", "0.5559373", "0.5553175", "0.5481944", "0.5472591", "0.5440412", "0.5419836", "0.5365842", "0.5306841", "0.5269649", "0.5259936", "0.5178301", "0.5133003", "0.5131871",...
0.73668003
0
Returns the manufacturer id by product description
Возвращает идентификатор производителя по описанию продукта
public function getManufacturerIdByProductDescription($description) { Assert::string($description); $description = ' ' . strtoupper($description) . ' '; $description = str_replace(',', ' ', $description); foreach ($this->manufacturers as $name => $id) { if (preg_mat...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function getManufacturer($product)\n { \n $manufacturers= $product->manufacturers;\n\n if(!$manufacturers->isEmpty())\n {\n $manufacturerName=NULL;\n\n foreach ($manufacturers as $manufacturer) {\n\n $manufacturerName .= $manufacturer->manu...
[ "0.6351554", "0.6281304", "0.61417824", "0.61040723", "0.6022663", "0.5978258", "0.5938581", "0.5938581", "0.5936947", "0.5920834", "0.58512354", "0.5820176", "0.5809691", "0.579001", "0.5731553", "0.5657583", "0.56335235", "0.56157917", "0.5601677", "0.5588692", "0.55846137"...
0.83175904
0
Gets one directory site contact by ID. (directorySiteContacts.get)
Получает один контакт сайта по идентификатору. (directorySiteContacts.get)
public function get($profileId, $id, $optParams = array()) { $params = array('profileId' => $profileId, 'id' => $id); $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_Dfareporting_DirectorySiteContact"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function findContactById($id)\n {\n return $this->getContacts()->findContactById($id);\n }", "function get_contact($id)\n\t{\n\t\t$xml = $this->load_url(\"contacts/$id\");\n\n\t\tif(!$xml):\n\t\t\treturn false;\n\t\tendif;\n\n\t\t$contact = false;\n\t\t$_contact = (isset($xml['entry'])) ? $xm...
[ "0.73377806", "0.71155715", "0.66967845", "0.668658", "0.66067845", "0.6593884", "0.65776163", "0.6561862", "0.6519823", "0.6509509", "0.641309", "0.63434935", "0.633838", "0.63050675", "0.63050675", "0.6304395", "0.62910926", "0.6276276", "0.626482", "0.6259421", "0.6245583"...
0.7341824
0
Retrieves a list of directory site contacts, possibly filtered. (directorySiteContacts.listDirectorySiteContacts)
Получает список контактов сайта, возможно, отфильтрованный. (directorySiteContacts.listDirectorySiteContacts)
public function listDirectorySiteContacts($profileId, $optParams = array()) { $params = array('profileId' => $profileId); $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Dfareporting_DirectorySiteContactsListResponse"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getContactsList() {\n return $this->_get(7);\n }", "public function getContactList()\r\n {\r\n return $this->exec('contact_list');\r\n }", "public function getContactsList() {\n return $this->_get(6);\n }", "function getUserContacts()\n\t{\n\t\t$userId = $this->ge...
[ "0.69399375", "0.6838955", "0.6801849", "0.63649595", "0.6349542", "0.6270366", "0.626369", "0.62500304", "0.6249355", "0.6212805", "0.617582", "0.61228627", "0.6110979", "0.60145116", "0.59912735", "0.5962533", "0.5889834", "0.58590376", "0.5853265", "0.5822479", "0.5769485"...
0.7958995
0
El constructor intenta crear una clase Mongo con los datos de la clase config, y guardarla en la variable db. En caso de error tira una excepcion Fail.
Конструктор пытается создать класс Mongo с данными класса config и сохранить его в переменной db. В случае ошибки выбрасывает исключение Fail.
public function __construct() { $this->host = \App\Config::get('dbHost'); $this->username = \App\Config::get('dbUsername'); $this->password = \App\Config::get('dbPassword'); try { $this->db = new \Mongo('mongodb://'.$this->host.':27017/'.\App\Config::get('dbName')); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function __construct($config)\n {\n extract($config);\n if (! empty($dbuser)) {\n $mongo = new \\Mongo('mongodb://' . $dbuser . '@' . $host . ':' . $port . '/' . $dbname);\n } else {\n $mongo = new \\Mongo('mongodb://' . $host . ':' . $port . '/' . $dbname);\n...
[ "0.74455136", "0.71210724", "0.70794064", "0.6955525", "0.6866906", "0.6812971", "0.6761746", "0.6748077", "0.67323303", "0.6718714", "0.6700899", "0.6683953", "0.66787356", "0.6674288", "0.6659882", "0.6659882", "0.6657952", "0.6621237", "0.6621237", "0.6598356", "0.6595489"...
0.7781269
0
Removes impractical WordPress core update nag messages.
Удаляет ненужные уведомления о обновлении ядра WordPress.
public static function removeUselessCoreUpdateNagMessages() { if (!current_user_can('update_core')) { // @see wp-admin/includes/admin-filters.php remove_action('admin_notices', 'update_nag', 3); remove_action('admin_notices', 'maintenance_nag', 10); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function classicpress_remove_update_nag() {\n\tremove_action( 'admin_notices', 'update_nag', 3 );\n\tremove_action( 'network_admin_notices', 'update_nag', 3 );\n}", "function hide_update_notice_to_all_but_admin() {\n if ( !current_user_can( 'update_core' ) ) {\n remove_action( 'admin_notices', 'update_...
[ "0.8286387", "0.7271548", "0.6835011", "0.65875965", "0.65762365", "0.6511309", "0.6431786", "0.6296101", "0.6249499", "0.62491345", "0.6181148", "0.6179135", "0.6112979", "0.6077313", "0.6039477", "0.6023519", "0.5996223", "0.59751225", "0.59153485", "0.5888135", "0.5869622"...
0.853897
0
Returns the accessible user roles.
Возвращает доступные роли пользователей.
public static function getAccessibleRoles() { $roles = [ 'super_admin', 'administrator', 'shop_manager', 'editor', 'author', 'contributor', ]; return apply_filters('core_standards/admin/accessible_roles', $roles); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getUserRoles()\n {\n return $this->userRoles;\n }", "public static function roles(){\n self::init();\n\n return array_keys(AUTH_USER_ROLES);\n }", "public function getAvailableRoles() ;", "public function getRoles()\n {\n return $this->userRoles->toArray();\n ...
[ "0.8036785", "0.79889673", "0.79731447", "0.7886177", "0.7873458", "0.77929735", "0.77006245", "0.7638897", "0.76158017", "0.76011884", "0.7593328", "0.7583101", "0.7581204", "0.75763094", "0.75763094", "0.75763094", "0.75763094", "0.75763094", "0.75763094", "0.756968", "0.75...
0.82748
0
Adds admin access capability for the accessible user roles.
Добавляет возможность административного доступа для пользовательских ролей, имеющих доступ.
public static function addAccessCapability() { foreach (wp_roles()->role_objects as $name => $role) { if (in_array($name, static::getAccessibleRoles())) { $role->add_cap('admin_access'); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function add_capabilties_to_roles()\n {\n $post_type_object = get_post_type_object($this->name);\n global $wp_roles;\n $roles = array('administrator');\n foreach( (array)$post_type_object->cap as $capability ){\n foreach( $roles as $role_name ){\n $role = get_role($role_name);\n ...
[ "0.6751393", "0.6745972", "0.66157925", "0.65946686", "0.65288234", "0.648657", "0.64671636", "0.6465235", "0.645308", "0.64441764", "0.639467", "0.6345214", "0.6328543", "0.6313155", "0.63008755", "0.62738377", "0.62684953", "0.6239062", "0.62352395", "0.61034596", "0.607583...
0.8206096
0
Removes admin access capability for the accessible user roles.
Удаляет возможность административного доступа для доступных ролей пользователей.
public static function removeAccessCapability() { foreach (wp_roles()->role_objects as $name => $role) { if (in_array($name, static::getAccessibleRoles())) { $role->remove_cap('admin_access'); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static public function removeAdminCaps()\n {\n // récupérer le rôle administrateur\n $adminRole = get_role('administrator');\n // pour chaque cap prévue pour l'admin sur le CPT courant, on retire la cap\n foreach (static::ADMIN_CAPS as $cap => $grant) {\n $adminRole->remov...
[ "0.7031903", "0.6707331", "0.6640352", "0.63786453", "0.63226515", "0.63110644", "0.6244554", "0.621269", "0.6209031", "0.61937916", "0.6142315", "0.6120188", "0.60583067", "0.60474414", "0.5991453", "0.59780335", "0.5945383", "0.5922942", "0.5919417", "0.59086233", "0.590758...
0.8516106
0
Cron event callback to clean up obsolete revisions.
Обратный вызов события Cron для очистки устаревших ревизий.
public static function cron_revision_cleanup($limit = 100) { global $wpdb; $post_types = 'post, product, product_variation'; // Revisions of posts that were last modified a long time ago (3 months) are // no longer necessary and can be cleaned up. $revision_ids = $wpdb->get_col($wpdb->prepare("SEL...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function revisionableCleanUp()\n {\n $relation = $this->model->getRevisionHistoryName();\n $relationObject = $this->model->{$relation}();\n\n $revisionLimit = property_exists($this->model, 'revisionableLimit')\n ? (int) $this->model->revisionableLimit\n : sel...
[ "0.65374875", "0.6314005", "0.60330105", "0.5917752", "0.5849654", "0.5825009", "0.581411", "0.57946694", "0.5791341", "0.5763667", "0.573755", "0.57266086", "0.5696513", "0.56806636", "0.5673785", "0.5666724", "0.5660672", "0.5623215", "0.5613298", "0.5578314", "0.5566418", ...
0.70242214
0
Before each route checks if the user is logged in
До каждой маршрутизации проверяется, авторизован ли пользователь
function beforeRoute() { if ($this->app->get('SESSION.user')) { $this->app->set('loggedIN', true); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function beforeRoute()\n {\n if (!Session::get('userid')) {\n \\BarkaneArts\\redirect('/login');\n }\n parent::beforeRoute();\n }", "function before()\n {\n # require a logged in User or else redirect to session/new\n $this->requireUser();\n }", ...
[ "0.83299494", "0.7823269", "0.7768953", "0.75925523", "0.7536236", "0.7536236", "0.7372763", "0.7306519", "0.7207952", "0.7121946", "0.7111386", "0.705798", "0.70264655", "0.6989571", "0.6978403", "0.6972861", "0.6965075", "0.69620883", "0.6959703", "0.69544345", "0.6932723",...
0.8891553
0
Handle the history "created" event.
Обрабатывайте событие "created" истории.
public function created(History $history) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function created(QueryHistory $history)\n {\n\t\t\tif($history->has_error) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t$payload = [\n\t\t\t\t'username' => $history->user->name,\n\t\t\t\t'data' => $history->data,\n\t\t\t\t'time' => $history->created_at->timestamp,\n\t\t\t\t'name' => $history->queryOfRecord->name...
[ "0.6580401", "0.6356202", "0.6193884", "0.5980662", "0.5975824", "0.5909713", "0.5909713", "0.5884925", "0.58046764", "0.56721", "0.5656351", "0.56542593", "0.5633158", "0.5631198", "0.5620205", "0.5606282", "0.5602631", "0.5544635", "0.55385774", "0.54951036", "0.5471585", ...
0.7960718
0
Handle the history "updated" event.
Обработайте событие "updated" истории.
public function updated(History $history) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function onUpdateRecord()\n {\n $this->updated = new \\DateTime();\n $this->rev++;\n }", "public function onUpdate();", "public function onUpdate();", "public function onUpdate();", "public function onUpdated(Step $step): void\n {\n }", "public function updated(CandidacyH...
[ "0.62830186", "0.60256684", "0.60256684", "0.60256684", "0.5971165", "0.593375", "0.59204024", "0.58681995", "0.5828589", "0.5805914", "0.5749612", "0.57079804", "0.56775075", "0.566354", "0.5637183", "0.562864", "0.5618608", "0.56102467", "0.55830365", "0.5548486", "0.553754...
0.7681614
0
Handle the history "deleted" event.
Обработка события "удалено" из истории.
public function deleted(History $history) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function handleDelete()\n {\n Craft::$app->getDb()->createCommand()\n ->delete(Table::REVISIONS, ['id' => $this->owner->revisionId])\n ->execute();\n }", "public function deleted(CandidacyHistory $candidacyHistory)\n {\n //\n }", "public function forceDele...
[ "0.6796349", "0.67903334", "0.67594916", "0.6648702", "0.66399866", "0.65639687", "0.6563126", "0.6517311", "0.65031403", "0.6496948", "0.64482653", "0.6432608", "0.6429003", "0.64266866", "0.64174914", "0.6409487", "0.6405499", "0.6339071", "0.6323798", "0.6252252", "0.62055...
0.7658617
0
Handle the history "restored" event.
Обработка события "восстановлено".
public function restored(History $history) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function restored(Auditable $model)\n {\n Auditor::execute($model->setAuditEvent('restored'));\n\n // Once the model is restored, we need to put everything back\n // as before, in case a legitimate update event is fired\n static::$restoring = false;\n }", "public function...
[ "0.6481664", "0.6398714", "0.6373055", "0.6202887", "0.6116496", "0.6009931", "0.59775573", "0.59098905", "0.57599896", "0.5717227", "0.5677994", "0.56717885", "0.56232363", "0.5614866", "0.5587103", "0.55682665", "0.55476594", "0.5525272", "0.5520927", "0.55164325", "0.55144...
0.7153369
0
Handle the history "force deleted" event.
Обработка события "силовое удаление" истории.
public function forceDeleted(History $history) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function onBeforeDelete();", "public function deleted(History $history)\n {\n //\n }", "public function onAfterDelete();", "public function forceDeleted(CandidacyHistory $candidacyHistory)\n {\n //\n }", "public function handleDelete()\n {\n Craft::$app->getDb()->...
[ "0.7206995", "0.70236033", "0.701842", "0.6991745", "0.68656534", "0.6810205", "0.6730883", "0.66243726", "0.65321654", "0.65167135", "0.651382", "0.64984465", "0.6488916", "0.6460238", "0.64384526", "0.64247656", "0.64056253", "0.6384735", "0.6359961", "0.63593346", "0.63477...
0.74658924
0
get available surveys by time
получить доступные опросы по времени
function get_available_by_time_surveys() { // set connection var global $db; // get current time $time = date("Y-m-d H:i:s"); // query to get all vote survey_ids for session user $sql = "SELECT id FROM surveys WHERE is_active = '1' AND status = '1' AND availa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_available_by_user_surveys($user_id) {\r\n // get available by time\r\n $available_by_time_surveys = array();\r\n if (get_available_by_time_surveys()) {\r\n $available_by_time_surveys = get_available_by_time_surveys();\r\n }\r\n\r\n // get user groups\r\n $user_staff_groups = g...
[ "0.66559726", "0.6214284", "0.613023", "0.60253465", "0.5894345", "0.58450013", "0.57598966", "0.5699812", "0.55565435", "0.5544845", "0.5505346", "0.55017567", "0.54869324", "0.54822147", "0.5432536", "0.5428622", "0.5407366", "0.53934336", "0.5373871", "0.535392", "0.534502...
0.7956227
0
get survey staff groups
получить группы персонала опроса
function get_survey_staff_groups($survey_id) { // set connection var global $db; //query to get staff groups $sql = "SELECT staff_groups FROM surveys WHERE is_active = '1' AND id = '$survey_id';"; $groups_data = array(); $groups = array(); $survey_groups ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_survey_local_groups($survey_id) {\r\n // set connection var\r\n global $db;\r\n\r\n //query to get local groups str\r\n $sql = \"SELECT local_groups\r\n FROM surveys\r\n WHERE is_active = '1' AND id = '$survey_id';\";\r\n\r\n $groups_data = array();\r\n $groups ...
[ "0.6814555", "0.68065953", "0.68065953", "0.6707413", "0.6706301", "0.66695154", "0.6642723", "0.66347027", "0.6632942", "0.6632942", "0.6623774", "0.66129863", "0.65418863", "0.6531667", "0.65252095", "0.6484129", "0.64579266", "0.64490336", "0.640143", "0.6380705", "0.63670...
0.78039014
0
get survey student groups
получить группы студентов опроса
function get_survey_student_groups($survey_id) { // set connection var global $db; //query to get student groups str $sql = "SELECT student_groups FROM surveys WHERE is_active = '1' AND id = '$survey_id';"; $groups_data = array(); $groups = array(); $surv...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_susi_student_groups() {\r\n // set connection var\r\n global $db;\r\n\r\n //query to get student groups str\r\n $sql = \"SELECT id\r\n FROM groups\r\n WHERE is_active = '1' AND student = '1'\r\n ORDER BY name ASC;\";\r\n\r\n $groups = array();\r\n $st...
[ "0.7239908", "0.69660485", "0.67824674", "0.6776881", "0.6761288", "0.6694747", "0.6694747", "0.6594144", "0.6585074", "0.6574988", "0.6561441", "0.654395", "0.654395", "0.6528532", "0.6494279", "0.6479753", "0.6466447", "0.6460115", "0.6458652", "0.64580035", "0.6452547", ...
0.78750247
0
get survey local groups
получить локальные группы опроса
function get_survey_local_groups($survey_id) { // set connection var global $db; //query to get local groups str $sql = "SELECT local_groups FROM surveys WHERE is_active = '1' AND id = '$survey_id';"; $groups_data = array(); $groups = array(); $survey_gro...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function acf_get_local_field_groups()\n{\n}", "public function getGroups() {}", "public function getGroups();", "public function getGroups();", "function get_groups_by_creator($user_id) {\r\n // set connection var\r\n global $db;\r\n\r\n //query to get all associated surveys\r\n $sql = \"SELECT...
[ "0.7048852", "0.68377113", "0.6831809", "0.6831809", "0.6808395", "0.66875106", "0.6646037", "0.66275656", "0.66100967", "0.6604011", "0.6597545", "0.65772086", "0.65772086", "0.65749496", "0.6572239", "0.6534274", "0.65215194", "0.65119225", "0.6509954", "0.64540535", "0.641...
0.8011563
0
get available surveys by user
получить доступные опросы по пользователю
function get_available_by_user_surveys($user_id) { // get available by time $available_by_time_surveys = array(); if (get_available_by_time_surveys()) { $available_by_time_surveys = get_available_by_time_surveys(); } // get user groups $user_staff_groups = get_user_staff_groups(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getSurveys() {\n return $this->_request(\n \"surveys/\"\n );\n }", "function get_surveys_by_creator($user_id) {\r\n // set connection var\r\n global $db;\r\n\r\n //query to get all associated surveys\r\n $sql = \"SELECT id\r\n FROM surveys\r\n ...
[ "0.7527046", "0.74077076", "0.71240586", "0.7093781", "0.6829643", "0.68211955", "0.6796482", "0.6791546", "0.65544516", "0.64576113", "0.64359415", "0.6432806", "0.63029695", "0.62813157", "0.61792964", "0.6167509", "0.6086126", "0.6005111", "0.5976428", "0.5918598", "0.5905...
0.75786364
0
get surveys by creator's user_id
получить опросы по user_id создателя
function get_surveys_by_creator($user_id) { // set connection var global $db; //query to get all associated surveys $sql = "SELECT id FROM surveys WHERE is_active = '1' AND created_by = '$user_id';"; $surveys_data = array(); $surveys = array(); foreach ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getSurveysWithUser(User $user,$isParticipant){\n if($isParticipant){\n $query = $this->getDocumentManager()->createQueryBuilder('Application\\Document\\ParticipantDocument')\n ->field('user')->references($user)\n ->field('status')->equ...
[ "0.6548485", "0.6435962", "0.6146991", "0.59255856", "0.5910598", "0.5860262", "0.5790232", "0.57329863", "0.5689481", "0.56326574", "0.55971557", "0.559382", "0.55628717", "0.54537565", "0.5451412", "0.5380015", "0.5355541", "0.535046", "0.53382033", "0.52967745", "0.5294712...
0.77992684
0
get votes by answer
получить голоса по ответу
function get_votes_by_answer($answer_id) { // set connection var global $db; //query to get all associated surveys $sql = "SELECT id FROM votes WHERE is_active = '1' AND answer_id = '$answer_id';"; $answers_data = array(); $answers = array(); foreach ($...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_user_vote_by_answer($user_id, $answer_id) {\r\n // set connection var\r\n global $db;\r\n\r\n // query to get all vote survey_ids for session user\r\n $sql = \"SELECT id\r\n FROM votes\r\n WHERE is_active = '1' AND user_id = '$user_id' AND answer_id = '$answer_id';\"...
[ "0.72252697", "0.67722505", "0.65714175", "0.64698595", "0.6464988", "0.64327556", "0.64234", "0.62114763", "0.62010163", "0.60438377", "0.5978951", "0.59575874", "0.5956602", "0.59395176", "0.59179693", "0.58711976", "0.58310735", "0.5808881", "0.57987076", "0.57869375", "0....
0.7185025
1
get local groups by creator
получить локальные группы по создателю
function get_local_groups_by_creator($user_id) { // set connection var global $db; //query to get all associated groups $sql = "SELECT id FROM groups WHERE is_active = '1' AND local = '1' AND created_by = '$user_id' ORDER BY name ASC;"; $groups_data = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_groups_by_creator($user_id) {\r\n // set connection var\r\n global $db;\r\n\r\n //query to get all associated surveys\r\n $sql = \"SELECT id\r\n FROM groups\r\n WHERE is_active = '1' AND local = '1' AND created_by = '$user_id';\";\r\n\r\n $groups_data = array();\r\...
[ "0.67591256", "0.63320804", "0.6330762", "0.62667835", "0.62273425", "0.6219521", "0.621608", "0.6187556", "0.6145536", "0.6145536", "0.6124904", "0.60691744", "0.6014316", "0.6006535", "0.59861386", "0.5983584", "0.5935221", "0.58902425", "0.5888882", "0.5888426", "0.5887847...
0.7885671
0
get user staff groups
получить группы персонала пользователя
function get_user_staff_groups($user_id) { // set connection var global $db; //query to get staff groups $sql = "SELECT staff_groups FROM users WHERE is_active = '1' AND id = '$user_id';"; $groups_data = array(); $groups = array(); $user_groups = array();...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getUserGroups()\n\t{\n\t\t\n\t\t$groups = array();\n\t\t$db \t= $this->getUserDbTable();\n\t\t$id \t= $this->getUserId();\n\t\t\n\t\tif ($id)\n\t\t{\t\n\t\t\t$groups \t= $db->getAdapter()->select()->from(array('gmt'=>'groups_members_table'))\n\t\t\t\t\t\t\t\t\t\t ->joinInner(array('gt'=>'groups_t...
[ "0.74741125", "0.744734", "0.7338193", "0.72608167", "0.7258521", "0.72072303", "0.71460056", "0.714075", "0.71193993", "0.7095933", "0.70627916", "0.704122", "0.700971", "0.700971", "0.70047474", "0.69889027", "0.69798064", "0.6948555", "0.6946188", "0.69231665", "0.690427",...
0.7646395
0
get user student groups
получить группы студентов пользователя
function get_user_student_groups($user_id) { // set connection var global $db; //query to get student groups str $sql = "SELECT student_groups FROM users WHERE is_active = '1' AND id = '$user_id';"; $groups_data = array(); $groups = ""; $user_groups = arr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getUserGroups()\n\t{\n\t\tself::authenticate();\n\n\t\t$uname = FormUtil::getPassedValue('user', null);\n\t\tif($uname == null) {\n\t\t\treturn self::retError('ERROR: No user name passed!');\n\t\t}\n\n\t\t$uid = UserUtil::getIdFromName($uname);\n\t\tif($uid == false) {\n\t\t\treturn self::ret(false...
[ "0.75625426", "0.75432014", "0.7535619", "0.75206983", "0.745929", "0.7336378", "0.73168874", "0.728452", "0.7280892", "0.7244648", "0.7244648", "0.7230418", "0.72141707", "0.72091407", "0.7173796", "0.7133087", "0.71306634", "0.7130156", "0.7120443", "0.70948684", "0.7080921...
0.76906794
0
get user local groups
получить локальные группы пользователя
function get_user_local_groups($user_id) { // set connection var global $db; //query to get local groups str $sql = "SELECT local_groups FROM users WHERE is_active = '1' AND id = '$user_id';"; $groups_data = array(); $groups = array(); $user_groups = arra...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_local_groups_by_creator($user_id) {\r\n // set connection var\r\n global $db;\r\n\r\n //query to get all associated groups\r\n $sql = \"SELECT id\r\n FROM groups\r\n WHERE is_active = '1' AND local = '1' AND created_by = '$user_id'\r\n ORDER BY name ASC;\";...
[ "0.7870451", "0.76551145", "0.7624444", "0.75776815", "0.7469607", "0.7396859", "0.7352879", "0.7334332", "0.72487146", "0.7148585", "0.70928496", "0.7079639", "0.70654243", "0.70577466", "0.7024539", "0.70115894", "0.69925237", "0.698753", "0.6982845", "0.6970991", "0.697099...
0.7782102
1
get groups by creator's user_id
получить группы по user_id создателя
function get_groups_by_creator($user_id) { // set connection var global $db; //query to get all associated surveys $sql = "SELECT id FROM groups WHERE is_active = '1' AND local = '1' AND created_by = '$user_id';"; $groups_data = array(); $groups = array(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_local_groups_by_creator($user_id) {\r\n // set connection var\r\n global $db;\r\n\r\n //query to get all associated groups\r\n $sql = \"SELECT id\r\n FROM groups\r\n WHERE is_active = '1' AND local = '1' AND created_by = '$user_id'\r\n ORDER BY name ASC;\";...
[ "0.718262", "0.67898005", "0.6659006", "0.6613858", "0.6518003", "0.64498043", "0.6373897", "0.63264054", "0.6270461", "0.6187045", "0.618642", "0.6173482", "0.61643046", "0.6154834", "0.6134965", "0.6088747", "0.6059581", "0.6032689", "0.6007661", "0.5996676", "0.5996153", ...
0.74825025
0
add survey group type
добавить тип группы опроса
function add_survey_group_type() { // get global user object global $user; // protect from unauthorized access if (!isset($user) or ! isset($_POST['formSurveyAddGroupSubmit']) or ! isset($_POST['formSurveyAddGroup'])) { if ($_POST['formSurveyAddGroup'] != 'formSurveyAddGroup') { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function add_group_type( $type ){\n\t\tarray_push($this->_group_types, $type);\n\t}", "protected function setGroupType() {\r\n $this->group_type = 'radio';\r\n $this->option_name = $this->name;\r\n }", "public function addDataReturnsRecordTitleForGroupTypeDataProvider() {}", "public f...
[ "0.7413317", "0.67306495", "0.6512722", "0.61677134", "0.61288065", "0.6031899", "0.5954159", "0.5899835", "0.5823687", "0.5822608", "0.5763926", "0.5759778", "0.5742567", "0.57149863", "0.57007515", "0.56483006", "0.56478184", "0.56464916", "0.5634423", "0.56322074", "0.5618...
0.7369418
1
get susi student groups
получить группы студентов susi
function get_susi_student_groups() { // set connection var global $db; //query to get student groups str $sql = "SELECT id FROM groups WHERE is_active = '1' AND student = '1' ORDER BY name ASC;"; $groups = array(); $student_groups = array(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_survey_student_groups($survey_id) {\r\n // set connection var\r\n global $db;\r\n\r\n //query to get student groups str\r\n $sql = \"SELECT student_groups\r\n FROM surveys\r\n WHERE is_active = '1' AND id = '$survey_id';\";\r\n\r\n $groups_data = array();\r\n $g...
[ "0.73245054", "0.71805215", "0.70379394", "0.69153696", "0.68612826", "0.6809585", "0.6809585", "0.6790492", "0.67866075", "0.67609745", "0.6741846", "0.6741846", "0.67324626", "0.67108434", "0.6664992", "0.6645782", "0.66350985", "0.66350985", "0.66234195", "0.6576979", "0.6...
0.7895849
0
add survey group susi students
Добавить группу опроса susi студентов
function add_survey_group_susi_student() { // get global user object global $user; // protect from unauthorized access if (!isset($user) or ! isset($_POST['formSurveyAddGroupSusiStudentSubmit']) or ! isset($_POST['formSurveyAddGroupSusiStudent'])) { if ($_POST['formSurveyAddGroupSusiStude...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function add_survey_group_susi_staff_faculty() {\r\n // get global user object\r\n global $user;\r\n\r\n // protect from unauthorized access\r\n if (!isset($user) or ! isset($_POST['formSurveyAddGroupSusiStaffFacultySubmit']) or ! isset($_POST['formSurveyAddGroupSusiStaffFaculty'])) {\r\n if ($_...
[ "0.6405743", "0.63824046", "0.6320759", "0.6227225", "0.61324835", "0.61282796", "0.5997945", "0.598955", "0.5959435", "0.5941705", "0.5881736", "0.5857802", "0.5845679", "0.5734971", "0.570459", "0.5687402", "0.56872517", "0.567657", "0.56719446", "0.56601024", "0.5639722", ...
0.7334724
0
delete session group user
удалить группу сессии пользователя
function delete_session_group_user() { // protect from unauthorized access if (!isset($_SESSION['user']) or ! isset($_SESSION['group'])) { logout(); die(); } // get the URL query string $query_str = $_SERVER['QUERY_STRING']; // parse the URL query string to array ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function delete() {\n\t\t// Delete passwords and all ssl data of this group\n\t\t$passwordList = $this->getPasswordList();\n\t\t$passwordList->deleteListItems();\n\n\t\t// Delete members from group\n\t\t$memberList = $this->getMemberList();\n\t\t$memberList->deleteListItems();\n\n\t\t// Delete group\n\t\t$r...
[ "0.7216469", "0.7089356", "0.7088554", "0.7076239", "0.70749784", "0.70103264", "0.6973036", "0.69481605", "0.6938933", "0.69059736", "0.6883343", "0.68741244", "0.6821084", "0.6802665", "0.68004686", "0.67979133", "0.6735228", "0.67174685", "0.67016965", "0.6685838", "0.6664...
0.802319
0
add temp user to session group
Добавить временного пользователя в группу сессии
function add_session_group_user() { // set connection var global $db; // protect from unauthorized access if (!isset($_SESSION['user']) or !isset($_SESSION['group'])) { logout(); die(); } if (!isset($_POST['formSurveyGroupUserUsername']) || (($_POST['for...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function addUserToWorkinggroup($idWG){\n require_once 'model/dbConnector.php';\n $connexion = openDBConnexion();\n $request = $connexion->prepare('\n INSERT INTO bdd_satisfevent.users_has_workinggroups \n SET Users_idUsers = ?, WorkingGroups_idWorkingGroups = ?');\n $request->execute(array($_SESS...
[ "0.6294305", "0.62792695", "0.6197488", "0.619434", "0.619434", "0.6132294", "0.607418", "0.6052064", "0.60037667", "0.59822863", "0.59760773", "0.5948362", "0.5926598", "0.5918467", "0.5881085", "0.5862198", "0.58554345", "0.58357525", "0.5831186", "0.5827068", "0.5818141", ...
0.70996886
0
Dump object to a string to save within PDF file. $factory parameter defines operation context.
Записать объект в строку для сохранения в файле PDF. Параметр $factory определяет контекст операции.
public function dump(Zend_Pdf_ElementFactory $factory) { $shift = $factory->getEnumerationShift($this->_factory); return $this->_objNum + $shift . " " . $this->_genNum . " obj \n" . $this->_value->toString($factory) . "\n" . "endobj\n"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function toString($factory = null)\n {\n if (is_integer($this->value)) {\n return (string)$this->value;\n }\n\n /**\n * PDF doesn't support exponental format.\n * Fixed point format must be used instead\n */\n $prec = 0; $v = $this->value;\n ...
[ "0.62194586", "0.6162084", "0.54787046", "0.53334624", "0.5267899", "0.52600986", "0.5116356", "0.5084449", "0.50701344", "0.5069816", "0.5069816", "0.5066853", "0.5065291", "0.50632846", "0.5050554", "0.5022403", "0.502183", "0.5012536", "0.5012536", "0.5012536", "0.5012536"...
0.75409603
0
Pass menu options key into exported options array
Передать ключ опций меню в экспортированный массив опций
public function export_menu_options( $options ) { $options[] = $this->options_slug; return $options; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function optionsframework_options() {\n\n\t$options[] = array(\n\t\t'name' => 'Styles Font Menu Example',\n\t\t'type' => 'heading'\n\t);\n\n\t$options[] = array(\n\t\t'name' => 'Font',\n\t\t'desc' => '',\n\t\t'id' => 'example_font_1',\n\t\t'type' => 'styles_font_menu',\n\t\t// Set default to Arial.\n\t\t// Get alt...
[ "0.6386105", "0.63160384", "0.62758195", "0.6214732", "0.6142842", "0.6127056", "0.6082997", "0.6078575", "0.6043139", "0.5951015", "0.5935213", "0.5932424", "0.5932001", "0.5929787", "0.5929787", "0.5929787", "0.5929787", "0.5929787", "0.5929787", "0.5929787", "0.5922525", ...
0.70581186
0
Create db options field if this is not exist
Создайте поле db options, если оно не существует
public function create_db_options_field() { if ( ! $this->is_db_options_exist( $this->options_slug ) ) { $this->save_options( $this->options_slug, $this->default_options ); } if ( ! $this->is_db_options_exist( $this->options_slug . '_default' ) ) { $this->save_options( $this->options_slug . '_default...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function create_options( $field ) {\n\t\t$field = array_merge($this->defaults, $field);\n\t\t$key = $field['name'];\n\t}", "function create_options($key, $field)\n\t{\n\t\t\n\t}", "public function addOption()\n {\n try {\n $this->validate();\n DB::beginTransaction();\n ...
[ "0.6399582", "0.6362891", "0.6250887", "0.60915536", "0.6058008", "0.6034703", "0.60294974", "0.5993931", "0.59467226", "0.59100723", "0.5910056", "0.5847378", "0.5823337", "0.57969195", "0.56527704", "0.56419194", "0.56213176", "0.5578252", "0.5546522", "0.55464023", "0.5523...
0.8608006
0
/ $ParamUpload = array( 'UploadFtp' => 1, 'WithCreateDir' => 1, 'Name' => date('YmdHis') . '_' . rand(1000,9999), 'Extention' => GetExtention($_FILES['document']['name']), 'UploadPathFtp' => SFTP_PATH, 'UploadPathLocal' => $this>config>item('base_path') . '/static/images/_temp' ); $FileUpload = UploadFtp($ParamUpload, ...
/ $ParamUpload = array( 'UploadFtp' => 1, 'WithCreateDir' => 1, 'Name' => date('YmdHis') . '_' . rand(1000,9999), 'Extention' => GetExtention($_FILES['document']['name']), 'UploadPathFtp' => SFTP_PATH, 'UploadPathLocal' => $this>config>item('base_path') . '/static/images/_temp' ); $FileUpload = UploadFtp($ParamUpload, ...
function UploadFtp($File, $Name = 'Image') { $File['WithCreateDir'] = (isset($File['WithCreateDir'])) ? $File['WithCreateDir'] : 0; $File['UploadFtp'] = (isset($File['UploadFtp'])) ? $File['UploadFtp'] : 0; $ArrayResult = array('Message' => '', 'Status' => 1); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function uploadFTP($file,$path,$parent='',$borrar=true,$code=''){\n\tglobal $config;\n\t//nombre de archivo y carpeta solamente,parent es para cuando se trabaje desde un include\n\t$code=$path=='tags'?'':($code?$code:$_SESSION['ws-tags']['ws-user']['code']);\n\tif(isset($config->ftp)){\n\t\t$id_ftp=ftp_connect($co...
[ "0.7005289", "0.6854405", "0.68515724", "0.68444836", "0.67192084", "0.6718699", "0.66956455", "0.6560256", "0.6486209", "0.63771266", "0.6294622", "0.62403274", "0.61663526", "0.6164909", "0.6163141", "0.6146169", "0.6144639", "0.61352885", "0.6131109", "0.6121583", "0.61050...
0.7263377
0
Provides information about a deployed process application
Предоставляет информацию о развернутом процессе приложении
public function getProcessApplicationInfo(?string $processApplicationName): ProcessApplicationInfoInterface;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getApplication();", "public function getApplication();", "public function getApplication();", "public function getApplication();", "public function getApplication();", "public function getApp()\n {\n return $this['app.name'];\n }", "function getApplication() {\n retu...
[ "0.6115403", "0.6115403", "0.6115403", "0.6115403", "0.6115403", "0.6111828", "0.60938656", "0.6068319", "0.5999115", "0.59678435", "0.5909116", "0.5909116", "0.5909116", "0.575033", "0.57375324", "0.5720099", "0.5705561", "0.5703082", "0.5702982", "0.5689012", "0.5678437", ...
0.70532525
0
Returns an instance of PluginDinLanguageDictionaryTable
Возвращает экземпляр PluginDinLanguageDictionaryTable
public static function getInstance() { return Doctrine_Core::getTable( 'PluginDinLanguageDictionary' ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function getInstance()\n {\n\n return Doctrine_Core::getTable( 'PluginDinLanguageDictionaryPair' );\n\n }", "protected function getDictionary()\n {\n $schemaClass = get_class($this->schema);\n $locale = $this->language;\n $key = \"$schemaClass/$locale\";\n if ( !isset($thi...
[ "0.7938285", "0.61462706", "0.60153896", "0.5830808", "0.5748312", "0.55903685", "0.55903685", "0.55903685", "0.55903685", "0.55903685", "0.55903685", "0.55903685", "0.5589872", "0.5464177", "0.54511845", "0.54172856", "0.5386424", "0.5383152", "0.5347096", "0.53285134", "0.5...
0.8329807
0
Get all of the Javascript resources that are needed to display a chart
Получить все JavaScript-ресурсы, необходимые для отображения графика
function getChartResources() { return ' <script language="javascript" type="text/javascript" src="'.getJSPath('include/javascript/d3-sugar/d3-sugar.min.js').'"></script> <script language="javascript" type="text/javascript" src="'.getJSPath('include/javascript/sucrose/sucrose.min.js').'"></sc...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getJavaScripts();", "public function getScripts()\n {\n $scripts = array();\n switch ($this->_jsEngine) {\n\n case self::ENGINE_MOOTOOLS:\n $scripts[] = $this->_confs['mootools']['path'] . $this->_confs['mootools']['name'];\n if ($this->_chartType === self::HIGHCHART) {\...
[ "0.7497887", "0.7139762", "0.70711076", "0.6984065", "0.6778187", "0.6744406", "0.6685197", "0.6678418", "0.6659944", "0.6643306", "0.663843", "0.6560654", "0.65482616", "0.65329623", "0.64696485", "0.6438571", "0.64283764", "0.64265805", "0.64085", "0.63797295", "0.6364343",...
0.8452748
0
Computes the IBAN number from a given Czech account information.
Вычисляет IBAN-номер на основе заданной чешской информации о счете.
public static function computeIBANFromCzechBankAccount(CzechBankAccount $account) { // preprocess the numbers $prefix = sprintf('%06d', $account->getPrefix()); $number = sprintf('%010d', $account->getNumber()); $bank = sprintf('%04d', $account->getBankCode()); // calculate the c...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function asString(): string\n {\n if (is_null($this->iban)) {\n $part1 = ord('C') - ord('A') + 10;\n $part2 = ord('Z') - ord('A') + 10;\n\n $accountPrefix = 0;\n $accountNumber = $this->accountNumber;\n if (strpos($accountNumber, '-') !== fals...
[ "0.5965444", "0.5755485", "0.5662566", "0.5610408", "0.5582585", "0.5549457", "0.5520144", "0.54403055", "0.5339911", "0.52758807", "0.5267134", "0.5142175", "0.51369065", "0.512947", "0.512947", "0.5125439", "0.51243263", "0.5121478", "0.50555325", "0.50539607", "0.5025146",...
0.7514276
0
Find a role by name
Найдите роль по имени
public static function findByName($name) { return Role::where('name', $name)->firstOrFail(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getByName($roleName);", "public function findRoleByName(string $name)\n {\n if (! $this->roles) {\n $this->roles = $this->client->guild->getGuildRoles([\n 'guild.id' => $this->guildId,\n ]);\n }\n\n foreach ($this->roles as $role) {\n ...
[ "0.7829216", "0.77163434", "0.76421285", "0.7618007", "0.7297579", "0.71301275", "0.71160036", "0.7052386", "0.699562", "0.6890467", "0.6843183", "0.6829937", "0.6703947", "0.66520834", "0.66520834", "0.66092306", "0.6592915", "0.65859956", "0.65725213", "0.65453434", "0.6489...
0.80453306
0
The function get an attractionName and return the average rating.
Функция получает имя привлекательности и возвращает средний рейтинг.
public static function AvgRatingsPerAttraction($attractionName) { $avgRating= DB::table('Reviews')->select(DB::raw("avg(ratings) as AttractionAvg"))->where('AttractionName','=',$attractionName)->get(); return $avgRating; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAvgRating(){\n if($this->ratings){\n return $this->ratings->avg('rating');\n }\n }", "public function averageRate()\n {\n $movie = $this->getKey();\n return DB::table('movies_reviews')\n ->where('movies_id', '=', $movie)\n ->av...
[ "0.7539763", "0.7257353", "0.7246648", "0.7131478", "0.7066806", "0.69175977", "0.6849805", "0.6849805", "0.6791571", "0.67814916", "0.6702511", "0.6678702", "0.6579508", "0.65507025", "0.64882916", "0.6470976", "0.641655", "0.63262355", "0.63247055", "0.62917084", "0.6242298...
0.8422208
0
Function that returns all reviews
Функция, возвращающая все отзывы
public static function getAllReviews() { $reviews = Review::all(); return $reviews; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAllReviews(){\n\t\t$sql = \"SELECT * FROM reviews\";\n\n\t\t// with PDO prepare for sql statment executing\n\t\t$pdo_statement = $this->dbh->prepare($sql);\n\n\t\t// sql execution\n\t\t$pdo_statement->execute();\n\t\t\n\t\t// return results\n\t\treturn $pdo_statement->fetchAll();\n\t}", "publ...
[ "0.81658876", "0.8161259", "0.80922586", "0.74229705", "0.7392257", "0.73730725", "0.73442096", "0.7334038", "0.73328775", "0.72386837", "0.72163796", "0.71660525", "0.71573335", "0.71480113", "0.7118129", "0.7081102", "0.7045957", "0.69871", "0.6980957", "0.6980957", "0.6980...
0.8300005
0
Function that returns all reviews for a particular attraction
Функция, возвращающая все отзывы по определенному аттракциону
public static function getReviewsByAttractionName($attractionName) { $reviews = Review::where('AttractionName','=',$attractionName)->get(); return $reviews; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getReviews(){\n $reviews = $this->all('schema:reviews');\n if ($reviews){\n \tEasyRdf_TypeMapper::set('schema:Review', 'WorldCat\\Discovery\\Review');\n \t$reviews = static::reloadGraph($this->graph)->resource($this->getUri())->all('schema:reviews');\n \tEasyRdf_TypeMapp...
[ "0.6996775", "0.69562095", "0.68872774", "0.68304497", "0.6793375", "0.6753609", "0.67473066", "0.6559366", "0.65170604", "0.6509954", "0.64043605", "0.6400829", "0.63827467", "0.6343035", "0.6334573", "0.63263994", "0.629873", "0.628941", "0.628941", "0.628941", "0.628941", ...
0.75963074
0
Function that delete all reviews for a particular attraction
Функция, удаляющая все отзывы для определенного места притяжения
public static function deleteReviewsByAttractionName($attractionName) { Review::where('AttractionName','=',$attractionName)->delete(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function deleteAllReviews() {\n $deleteGenreQuery = $connection->prepare(\"DELETE FROM Reviews WHERE genreName=(?)\");\n $deleteGenreQuery->bind_param(\"s\",$genreName);\n $genreName=$this->get_genreName();\n $insertGenreQuery->execute();\n\n }", "public function destroy(rev...
[ "0.71078074", "0.7029125", "0.6778237", "0.6607495", "0.6595738", "0.6588733", "0.65885127", "0.6503016", "0.6439052", "0.6395954", "0.6309984", "0.6296017", "0.62626725", "0.61164576", "0.6112841", "0.60458726", "0.60031587", "0.5865204", "0.5865204", "0.5865204", "0.5808712...
0.7651746
0
documenting daily parsing records
документирование ежедневных записей парсинга
public function documentDailyParsingRecords() { $SupParsingLists = new SupParsingLists; foreach ($this->file as $key => $file) { $this->file[$key]['created_at'] = new \DateTime(); $this->file[$key]['updated_at'] = new \DateTime(); } $part = (int) (2100 / 4) -...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function documentaries()\n\t{\n\t\tif (preg_match('/^#sterntuary - (.+? - \".+?)' . $this->e1, $this->subject, $match)) {\n\t\t\treturn $match[1];\n\t\t}\n\t\t//(08/25) \"Wild Russia 5 of 6 The Secret Forest 2009.part06.rar\" - 47.68 MB - 771.18 MB - yEnc\n\t\t//(01/24) \"ITV Wild Britain With Ray Mears 1 o...
[ "0.5498773", "0.5488419", "0.5388687", "0.53110826", "0.5278963", "0.5216952", "0.5198515", "0.5108895", "0.500366", "0.49909422", "0.49716553", "0.4969658", "0.49597168", "0.49332377", "0.49209744", "0.49070504", "0.48862603", "0.48782727", "0.4867478", "0.4866587", "0.48665...
0.7889878
0
/ helper function: Create and send an image with an error message.
/ вспомогательная функция: Создать и отправить изображение с сообщением об ошибке.
function sendErrorImage($message) { /* get all of the required data from the HTTP request */ $document_root = $_SERVER['DOCUMENT_ROOT']; $requested_uri = parse_url(urldecode($_SERVER['REQUEST_URI']), PHP_URL_PATH); $requested_file = basename($requested_uri); $source_file = $...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function sendErrorImage($message)\n{\n $im = ImageCreateTrueColor(1000, 500);\n $text_color = ImageColorAllocate($im, 233, 14, 91);\n $message_color = ImageColorAllocate($im, 91, 112, 233);\n\n ImageString($im, 5, 5, 5, \"Adaptive Images encountered a problem:\", $text_color);\n ImageString($im, 3, ...
[ "0.79250616", "0.7755047", "0.7524639", "0.69566", "0.6902421", "0.67265165", "0.66654474", "0.6599924", "0.60752875", "0.60466176", "0.5892915", "0.58485025", "0.5846534", "0.58268815", "0.5721", "0.5680508", "0.5647625", "0.5632062", "0.55812705", "0.5576293", "0.55704725",...
0.7877641
1
Short alias for App::service()>get('events')
Краткий алиас для App::service()>get('events')
public static function event() { return self::service()->get('events'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getEvents();", "public function getEvents();", "public function getEvent();", "public function getEvent() {\n\t}", "public function getEvents()\n {\n return json_decode((string) $this->response->getBody())->events;\n }", "public function getEventSubscriber();", "public func...
[ "0.74854344", "0.74854344", "0.7399963", "0.7198481", "0.71901125", "0.708138", "0.7062458", "0.6968109", "0.68945146", "0.6872081", "0.68682486", "0.676867", "0.6752643", "0.67196906", "0.6716268", "0.66532034", "0.6644243", "0.6641906", "0.6641906", "0.6641906", "0.6641906"...
0.81160784
0
Load the application. This has to be called before doing anything else that concerns the application object.
Загрузите приложение. Это должно быть вызвано до выполнения чего-либо еще, связанного с объектом приложения.
public static function load() { if (!(self::$app instanceof self)) { self::$app = new self(); } return self::$app; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function initializeApplication()\n {\n switch ($this->mode) {\n case self::MODE_FPM:\n $this->application = new MvcApplication($this->di);\n break;\n case self::MODE_CLI:\n $arguments = CliParser::getArguments();\n ...
[ "0.7162873", "0.683348", "0.6727953", "0.66521174", "0.660632", "0.6555988", "0.651324", "0.65006745", "0.64390814", "0.6406361", "0.6379011", "0.63274693", "0.6326241", "0.63111466", "0.6274832", "0.6267325", "0.6259736", "0.6240857", "0.62297714", "0.62297714", "0.62297714"...
0.7438198
0
Map rules types to corresponding token types
Сопоставляйте типы правил с соответствующими типами токенов
function _token_rules_map_type($type) { if (($data_type = rules_get_data_types($type)) && isset($data_type['token type'])) { return $data_type['token type']; } return $type; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_types_and_literals($tokens){\n $types = array();\n $literals = array();\n for($i = 1; $i < count($tokens[0]); $i++){\n if($tokens[0][$i] == TokenConstants::CONSTANT){\n if(preg_match(\"/^bool@(true|false)\\z/u\",$tokens[1][$i])){\n $types[$i - 1] = \"bool\";\n...
[ "0.6464586", "0.53130597", "0.5246642", "0.5181578", "0.5124719", "0.5071586", "0.50632024", "0.5059525", "0.5054849", "0.5035472", "0.49512768", "0.49268854", "0.49088514", "0.48379707", "0.48122317", "0.48113644", "0.47779587", "0.47705632", "0.47699437", "0.47589004", "0.4...
0.7938582
0
Return list of handling search params
Возвращать список параметров поиска для обработки
protected function getHandlingSearchParams() { return array( static::SEARCH_ORDER, static::SEARCH_PUBLIC_ID, static::SEARCH_DATE, static::SEARCH_STATUS, static::SEARCH_VALUE, static::SEARCH_ORDERBY, static::SEARCH_LIMIT, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getHandlingSearchParams()\n {\n $return = parent::getHandlingSearchParams();\n\n $return[] = static::P_ORDER_BY_ACTIVE_CURRENCY;\n $return[] = static::P_ACTIVE_CURRENCY;\n $return[] = static::P_ENABLED;\n\n return $return;\n }", "public function get_col...
[ "0.7982413", "0.65401417", "0.63917845", "0.6361496", "0.62727076", "0.62234896", "0.61334205", "0.6119873", "0.60735774", "0.60363156", "0.60085523", "0.5998886", "0.59800786", "0.59688085", "0.5942069", "0.59317374", "0.59305185", "0.59127736", "0.5883732", "0.5883266", "0....
0.83568954
0
Checks if top bar has elements for desktop and/or mobile
Проверяет, содержит ли верхняя панель элементы для настольного компьютера и/или мобильного устройства
function flatsome_has_top_bar() { $screens = array( 'large' => false, 'mobile' => false, ); if ( get_theme_mod( 'topbar_show', 1 ) ) { if ( get_theme_mod( 'topbar_elements_center' ) || get_theme_mod( 'topbar_elements_left' ) || get_theme_mod( 'topbar_elements_right' ) ) { $screens['large'] = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function newsroom_elated_header_top_bar_responsive_styles() {\n\n $hide_top_bar_on_mobile = newsroom_elated_options()->getOptionValue('hide_top_bar_on_mobile');\n\n if($hide_top_bar_on_mobile === 'yes') { ?>\n @media only screen and (max-width: 700px) {\n .eltd-top-bar {\n ...
[ "0.7183045", "0.7087361", "0.6700833", "0.6577197", "0.64868087", "0.6413115", "0.63490105", "0.62259", "0.6156973", "0.59943545", "0.59840435", "0.5965622", "0.59607977", "0.59300345", "0.5927624", "0.5905225", "0.58785", "0.58624375", "0.58617806", "0.58601874", "0.58548474...
0.8135287
0
Checks if bottom bar has elements for desktop and/or mobile
Проверяет, содержит ли нижняя панель элементы для настольного компьютера и/или мобильного устройства
function flatsome_has_bottom_bar() { $screens = array( 'large' => false, 'mobile' => false, ); if ( get_theme_mod( 'header_elements_bottom_left' ) || get_theme_mod( 'header_elements_bottom_center' ) || get_theme_mod( 'header_elements_bottom_right' ) ) { $screens['large'] = true; } if ( get_theme...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function flatsome_has_top_bar() {\n\t$screens = array(\n\t\t'large' => false,\n\t\t'mobile' => false,\n\t);\n\tif ( get_theme_mod( 'topbar_show', 1 ) ) {\n\t\tif ( get_theme_mod( 'topbar_elements_center' )\n\t\t || get_theme_mod( 'topbar_elements_left' )\n\t\t || get_theme_mod( 'topbar_elements_right' ) )...
[ "0.67824227", "0.6486729", "0.63503253", "0.6203604", "0.61210537", "0.60567087", "0.604165", "0.6039275", "0.6014141", "0.5928932", "0.59004056", "0.58930445", "0.5867672", "0.5867672", "0.5867672", "0.5867672", "0.5867672", "0.5867672", "0.5867672", "0.5867672", "0.5867672"...
0.80731833
0
objFromRow: take a row of a table containing one of this class: the row has a prefix, e.g. a_users for each column defined by this class, attempt to fetch it from row return an object, or null if nothing found
objFromRow: возьмите строку таблицы, содержащую один из классов этого класса: строка имеет префикс, например, a_users для каждого столбца, определенного этим классом, попытайтесь получить его из строки, верните объект, или null, если ничего не найдено
protected static function objFromRow($row, $prefix) { $cols = self::getTableCols(); $new_obj = new static(); $n_imported_columns = 0; foreach($cols as $colName => $col) { $new_obj->$colName = $row[$prefix . '_' . $colName]; // Convert ints & floats if ($col->type == 'int') $new_obj->...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function fetchFromRow($row)\n {\n $cn = $this->getClassName();\n $obj = new $cn();\n foreach ($row as $key => $value) {\n $obj->{$key} = $value;\n }\n return $obj;\n }", "private static function object_from_table_row($record) {\n\t // Could check that ...
[ "0.69196653", "0.68923205", "0.67121047", "0.65581226", "0.6422376", "0.6417416", "0.638353", "0.63501275", "0.63031626", "0.62312466", "0.61565083", "0.6079694", "0.58934987", "0.5879905", "0.5878337", "0.584864", "0.58291364", "0.58108944", "0.5810213", "0.5801538", "0.5782...
0.7347613
0
Fetch: fetch rows from the table, using the given conditions & joins returns: false on db error a nested array of object(s) on success
Fetch: получает строки из таблицы, используя заданные условия и соединения, возвращает: false при ошибке базы данных, вложенный массив объектов при успешном выполнении
static function fetch($conditions = [ ], $joins = [ ], $debug = false) { self::$bind_params = [ ]; $table = self::getTableName(); $cols = &self::getTableCols(); if ((is_array($conditions) && count($conditions) == 0) || (!is_array($conditions) && !($conditions instanceof Condition))) { $res = ne...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function fetchAll()\n {\n //*** your code goes here\n //*** if there is an error, return an array which includes an error code of 2 and message == ERROR_UNABLE\n $listing = $this->table->select();\n if ($listing) {\n $data = [];\n $hydrator = $this->table...
[ "0.6340733", "0.61871755", "0.6094626", "0.6094413", "0.6087799", "0.60755444", "0.60662967", "0.6011202", "0.5954555", "0.5905584", "0.5904738", "0.5889988", "0.58785784", "0.58668005", "0.58667153", "0.58631146", "0.58523464", "0.5826039", "0.5826039", "0.57998425", "0.5786...
0.7059432
0
Show build info attached to a site created by the build:project:create command.
Показать информацию о сборке, привязанную к сайту, созданному командой build:project:create.
public function info( $site_name, $options = [ 'ci' => '', ]) { // Fetch the build metadata $buildMetadata = $this->retrieveBuildMetadata("{$site_name}.dev"); $url = $this->getMetadataUrl($buildMetadata); $this->log()->notice('Build metadata: {met...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function showProjectInfo()\n {\n // URLs\n $this->output->writeln('');\n $this->output->writeln('<info>'. $this->project->getName(false) .'</info> has now been created.');\n $this->output->writeln('<comment>Development:</comment> ' . $this->project->getDevUrl());\n $th...
[ "0.67511606", "0.6175381", "0.6052875", "0.57897246", "0.5722969", "0.5699622", "0.5664737", "0.55574167", "0.5500091", "0.54897493", "0.5438663", "0.54245204", "0.53862834", "0.5384272", "0.5375842", "0.53689635", "0.5330091", "0.532686", "0.52977127", "0.52883863", "0.52758...
0.70729315
0
Get the Dropzone localization options.
Получить локализационные опции Dropzone.
public function getLocalizationOptions(): array { return [ 'dictDefaultMessage' => t('Drop files here or click to upload.'), 'dictFallbackMessage' => t("Your browser does not support drag'n'drop file uploads."), 'dictFallbackText' => t('Please use the fallback form below ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getLocalizedOptions() {\n\t\treturn array();\n\t}", "function abl_droploader_get_localisation() {\n\t\t$l10n = array(\n\t\t\t'open' => '',\n\t\t\t'open_title' => '',\n\t\t\t'close' => '',\n\t\t\t'close_title' => '',\n\t\t\t'error_method' => '',\n\t\t\t'info_text' => '',\n\t\t\t'err_invalid_filetype' => ...
[ "0.69759256", "0.66892403", "0.65263885", "0.64681286", "0.6464968", "0.63179225", "0.6206821", "0.60914654", "0.60607946", "0.60516196", "0.60390174", "0.6038899", "0.6003268", "0.5987604", "0.5983329", "0.59644526", "0.5947619", "0.59452933", "0.59446007", "0.594385", "0.59...
0.7418204
0
Does this meta object have additional attrs.
Имеет ли этот метаобъект дополнительные атрибуты.
function has_attrs() { $has_attrs = True; if (empty($this->attrs)) { $has_attrs = False; } return $has_attrs; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function hasAttributes() {\n return $this->_has(15);\n }", "public function hasAttributes() {\n return $this->_has(15);\n }", "public function hasAttributes() {\n return $this->_has(2);\n }", "public function hasAttributes() {\n return $this->_has(3);\n }", "public fu...
[ "0.7789699", "0.7789699", "0.7739773", "0.773973", "0.77315843", "0.7622507", "0.75999004", "0.70818835", "0.7063301", "0.68818885", "0.67667264", "0.6759799", "0.66802216", "0.6544646", "0.6537789", "0.65229666", "0.65095884", "0.65092754", "0.65092754", "0.6508483", "0.6507...
0.78022474
0
Get an array of FileObj objects.
Получите массив объектов FileObj.
function get_file_objs() { return $this->file_objs; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFiles(): array;", "public function getFiles($where = null){\n $result = null;\n $temp = parent::getObjects(null, $where);\n if(count($temp) > 0){\n $result = array();\n foreach($temp as $item){\n $f = new File();\n $f->se...
[ "0.73008895", "0.7200046", "0.7177691", "0.7170979", "0.7119214", "0.6905499", "0.6840452", "0.6820739", "0.6813961", "0.67185766", "0.67185766", "0.67185766", "0.6703287", "0.6664954", "0.659127", "0.6569479", "0.6559155", "0.65550023", "0.6548631", "0.65439093", "0.6538253"...
0.7699946
0
Add a single FileObj.
Добавьте один FileObj.
function add_file_obj($path = null, $media_type = null, $size = null, $duration = null, $container = null, $bitrate = null, $width = null, $height = null, $frames = null, $framerate = null, $samplerate = null) { array_push($this->file_objs, new FileObj($path, $media_t...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function add(){\n\t\t\n\t\t// Open or create file\n\t\t$f = fopen($this->file, 'wb');\n\t\tfclose($f);\n\t}", "function add($File){\n if(is_file($File->path)) {\n $this->files[$File->ID] = $File;\n }\n elseif(is_dir($File->path)) {\n $this->folders[$File->ID] = $...
[ "0.70125693", "0.70001", "0.6835182", "0.6751971", "0.6608704", "0.6496924", "0.6494521", "0.645789", "0.6378516", "0.63754386", "0.6365361", "0.6356813", "0.62929", "0.6289832", "0.62717885", "0.6145311", "0.6086144", "0.6046761", "0.59739166", "0.5970485", "0.59445935", "...
0.7353056
0
Add an array of FileObj objects.
Добавьте массив объектов FileObj.
function add_file_objs($file_objs) { array_merge($this->file_objs, $file_objs); $this->update_files = 1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function createFilesFromArray($request, $array)\n {\n foreach ($array as $key => $value) {\n if ($file = $this->client->getResourceHandler($value)) {\n $request->files[] = new FileReference([\n 'field' => $key,\n 'file' => $file,\n ...
[ "0.6812675", "0.6635221", "0.64833426", "0.62343603", "0.6229129", "0.62261343", "0.6195148", "0.6179248", "0.6073326", "0.59869665", "0.5982539", "0.5934057", "0.591297", "0.5854468", "0.5798723", "0.5764501", "0.5759937", "0.5738621", "0.57349485", "0.57124025", "0.5704694"...
0.7707787
0
Set an array of FileObj objects.
Задайте массив объектов FileObj.
function set_file_objs($file_objs) { $this->file_objs = $file_objs; $this->update_files = 1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function _setFileObject() {\n try {\n $fileArry = $_FILES;\n $_FILES = array();\n\n $fName = $fType = $fTmpName = $fErr = $fSize = array();\n foreach ($fileArry as $key => $val) {\n $fArr = explode('_', $key);\n $fKey = $fArr[...
[ "0.67921007", "0.6766793", "0.6723891", "0.6552626", "0.6476096", "0.62589777", "0.61255443", "0.60883117", "0.5911723", "0.5898012", "0.58622843", "0.5849475", "0.5849475", "0.5849475", "0.5849475", "0.57740444", "0.5697608", "0.5683663", "0.5671209", "0.5651089", "0.5609057...
0.7764088
0