query stringlengths 9 43.3k | document stringlengths 17 1.17M | metadata dict | negatives listlengths 0 30 | negative_scores listlengths 0 30 | document_score stringlengths 5 10 | document_rank stringclasses 2 values |
|---|---|---|---|---|---|---|
Starts the Code Coverage. | public static function start()
{
/**
* Simpletest Code Coverage depends on xdebug.
*
* Ensure that the xdebug extension is loaded.
*/
if (false === extension_loaded('xdebug')) {
die('Code Coverage needs Xdebug extension. Not loaded!');
}
if (false === function_exists("xdebug_start_code_coverage")) {
die('Code Coverage needs the method xdebug_start_code_coverage. Not found!');
}
/**
* Simpletest Code Coverage depends on sqlite.
*
* Ensure that the sqlite extension is loaded.
*/
/*if (false === class_exists('SQLiteDatabase')) {
echo 'Code Coverage needs the php extension SQLITE. Not loaded!';
}*/
/**
* Setup Simpletest Code Coverage.
*/
require_once 'simpletest/extensions/coverage/coverage.php';
$coverage = new CodeCoverage();
$coverage->log = 'coverage.sqlite';
$coverage->root = dirname(__DIR__);
$coverage->includes[] = '.*\.php$';
$coverage->excludes[] = 'simpletest';
$coverage->excludes[] = 'tests';
$coverage->excludes[] = 'libraries';
$coverage->excludes[] = 'vendor';
$coverage->excludes[] = 'vendors';
$coverage->excludes[] = 'coverage-report';
$coverage->excludes[] = 'sweety';
$coverage->excludes[] = './.*.php';
$coverage->maxDirectoryDepth = 1;
$coverage->resetLog();
$coverage->writeSettings();
/**
* Finally: let's start the Code Coverage.
*/
$coverage->startCoverage();
#echo 'Code Coverage started...';
self::$coverage = $coverage;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function coverage() {\n\t\t$this->header('Lithium Code Coverage');\n\n\t\t$testables = $this->_testables(array(\n\t\t\t'exclude' => '/tests|resources|webroot|index$|^app\\\\\\\\config|^app\\\\\\\\views|Exception$/'\n\t\t));\n\n\t\t$this->out(\"Checking coverage on \" . count($testables) . \" classes.\");\n\... | [
"0.72504836",
"0.69689924",
"0.6684011",
"0.6375917",
"0.6340871",
"0.633141",
"0.62140745",
"0.6145866",
"0.61395174",
"0.5968653",
"0.593805",
"0.5915477",
"0.5915477",
"0.59146005",
"0.58945316",
"0.5848105",
"0.58159685",
"0.5731122",
"0.5703029",
"0.5645834",
"0.5638319"... | 0.85688597 | 0 |
Stops the Code Coverage. | public static function stop()
{
self::$coverage->writeUntouched();
self::$coverage->stopCoverage();
#echo 'Code Coverage stopped!';
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function stop()\n {\n $this->sample = XhprofRun::stop();\n }",
"public static function stop()\n {\n self::marker(array('Tracer ended'));\n }",
"public function stop()\n {\n $this->mustStop = true;\n }",
"public function stop(int $code=null) : void;",
"public fu... | [
"0.7138708",
"0.6978861",
"0.6703343",
"0.66626936",
"0.6524003",
"0.6524003",
"0.6524003",
"0.6524003",
"0.6524003",
"0.6524003",
"0.6520898",
"0.6495957",
"0.64533734",
"0.64533734",
"0.6452559",
"0.6304159",
"0.62985724",
"0.62598455",
"0.62481856",
"0.6194675",
"0.6180879... | 0.908968 | 0 |
Generates the Code Coverage Report. | public static function getReport()
{
require_once 'simpletest/extensions/coverage/coverage_reporter.php';
$handler = new CoverageDataHandler(self::$coverage->log);
$report = new CoverageReporter();
$report->reportDir = 'coverage-report';
$report->title = 'The Coverage Report';
$report->coverage = $handler->read();
$report->untouched = $handler->readUntouchedFiles();
$report->generate();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function coverage() {\n\t\t$this->header('Lithium Code Coverage');\n\n\t\t$testables = $this->_testables(array(\n\t\t\t'exclude' => '/tests|resources|webroot|index$|^app\\\\\\\\config|^app\\\\\\\\views|Exception$/'\n\t\t));\n\n\t\t$this->out(\"Checking coverage on \" . count($testables) . \" classes.\");\n\... | [
"0.6942413",
"0.6617026",
"0.6590017",
"0.65415907",
"0.6529828",
"0.62199146",
"0.6172738",
"0.61642176",
"0.59908783",
"0.58520603",
"0.5837446",
"0.57875586",
"0.57748604",
"0.5764691",
"0.5663823",
"0.56425405",
"0.56130546",
"0.5592005",
"0.5579337",
"0.5564632",
"0.5539... | 0.70565605 | 0 |
$email, $rg, $nome_mae, $data_nascimento, $numero_titulo, $telefone, $celular, $referencia_comercial, $referencia_pessoal, $empresa_trabalha | function grava_nomes($nCpfcgc, $Tipo, $nome, $data_nascimento, $numero_titulo, $endereco, $id_tipo_log, $numero, $complemento, $bairro, $cidade, $uf, $cep, $email, $nome_mae, $telefone, $celular, $referencia_comercial, $referencia_pessoal, $empresa_trabalha, $cargo, $endereco_empresa, $rg, $nome_referencia, $fax, $fone_empresa, $cnpj_empresa){
#$Tipo -> [ 0-CPF 1-CNPJ ]
#$nreceita -> [ Nome da Pessoa ou Empresa ]
#$nacireceita2 -> [ Data Nascimento ou Data Fundação ]
global $conexao;
#Cadastra o nome na base caso nao exista
if ( $nCpfcgc > 0 ){
$sql_nome = "SELECT Nom_Nome FROM base_inform.Nome_Brasil
WHERE Nom_CPF = '$nCpfcgc' AND Nom_Tp= $Tipo AND
Origem_Nome_id = 1";
$ql_nome = mysql_query($sql_nome, $conexao);
$quant_dados = mysql_num_rows($ql_nome);
if ( $quant_dados == '0' ){
#Verificando se existe o NOME CADASTRADO para o CPF
$sql_nome = "SELECT Nom_Nome FROM base_inform.Nome_Brasil
WHERE Nom_CPF = '$nCpfcgc' AND Nom_Tp= $Tipo AND
Origem_Nome_id <> 1 AND Nom_Nome = '$nome' ";
$ql_nome = mysql_query($sql_nome, $conexao);
$quant_dados = mysql_num_rows($ql_nome);
if ( $quant_dados == '0' ){
mysql_query("INSERT INTO base_inform.Nome_Brasil(Origem_Nome_id, Nom_CPF, Nom_Tp, Nom_Nome, Dt_Cad)
VALUES('2','$nCpfcgc','$Tipo','$nome', now() )" ,$conexao);
}
}
#VERIFICANDO SE EXISTE O REGISTRO OU O ENDEREÇO
if(! empty($endereco ) ){
$sql = "SELECT count(*) qtd FROM base_inform.Endereco WHERE CPF='$nCpfcgc' AND logradouro = '$endereco'";
$qr = mysql_query($sql,$conexao) or die ("Erro !!! 2532 $sql");
$qtd = mysql_result($qr,0,'qtd');
if($qtd == 0){
#NÃO EXISTE REGISTRO OU O LOGRADOURO É NOVO, CADASTRAR UM NOVO
$sql = "INSERT INTO base_inform.Endereco(CPF, Tipo, Origem_Nome_id, Tipo_Log_id, logradouro, numero, complemento, bairro, cidade, uf, cep, data_cadastro)
VALUES('$nCpfcgc', '$Tipo', '2', '$id_tipo_log', '$endereco', '$numero', '$complemento', '$bairro', '$cidade', '$uf', '$cep', NOW() )";
$qr = mysql_query($sql, $conexao) or die (mysql_error()." $sql --- Erro ao inserir");
}else{
$sql = "UPDATE base_inform.Endereco SET
Tipo = '$Tipo',
Tipo_Log_id = '$id_tipo_log',
logradouro = '$endereco',
numero = '$numero',
complemento = '$complemento',
bairro = '$bairro',
cidade = '$cidade',
uf = '$uf',
cep = '$cep'
WHERE
CPF = '$nCpfcgc'";
$qr = mysql_query($sql, $conexao) or die (mysql_error()." $sql --- Erro ao alterar");
}
}
//Email
if(! empty($email ) ){
$sql_email = "SELECT * FROM base_inform.Email_Brasil WHERE CPF = '$nCpfcgc' AND Email = '$email'";
$qry = mysql_query( $sql_email , $conexao );
if ( mysql_fetch_array( $qry ) == 0 ){
$sql_insert = " INSERT INTO base_inform.Email_Brasil(CPF, Tipo, Email)
VALUES('$nCpfcgc' , '$Tipo' , '$email' )";
$qry = mysql_query( $sql_insert , $conexao );
}
}
//RG
if(! empty($rg ) ){
$sql_rg = "SELECT * FROM base_inform.Nome_RG WHERE CPF = '$nCpfcgc'";
$qry = mysql_query( $sql_rg , $conexao );
if ( mysql_fetch_array( $qry ) == 0 ){
$sql_insert = " INSERT INTO base_inform.Nome_RG(CPF, Tipo, Numero_RG)
VALUES('$nCpfcgc' , '$Tipo' , '$rg' )";
$qry = mysql_query( $sql_insert , $conexao );
}
}
//Nome_Mae
if(! empty($nome_mae ) ){
$sql_rg = "SELECT * FROM base_inform.Nome_Mae WHERE CPF = '$nCpfcgc'";
$qry = mysql_query( $sql_rg , $conexao );
if ( mysql_fetch_array( $qry ) == 0 ){
$sql_insert = " INSERT INTO base_inform.Nome_Mae(CPF, Tipo, Nome_Mae)
VALUES('$nCpfcgc' , '$Tipo' , '$nome_mae' )";
$qry = mysql_query( $sql_insert , $conexao );
}
}
//Data Nascimento
if(! empty($data_nascimento ) ){
$sql_rg = "SELECT * FROM base_inform.Nome_DataNascimento WHERE CPF = '$nCpfcgc'";
$qry = mysql_query( $sql_rg , $conexao );
if ( mysql_fetch_array( $qry ) == 0 ){
$sql_insert = " INSERT INTO
base_inform.Nome_DataNascimento(CPF, Tipo, data_nascimento)
VALUES('$nCpfcgc' , '$Tipo' , '$data_nascimento' )";
$qry = mysql_query( $sql_insert , $conexao );
}
}
//Titulo de Eleitor
if(! empty($numero_titulo ) ){
$sql_rg = "SELECT * FROM base_inform.Nome_Titulo WHERE CPF = '$nCpfcgc'";
$qry = mysql_query( $sql_rg , $conexao );
if ( mysql_fetch_array( $qry ) == 0 ){
$sql_insert = " INSERT INTO
base_inform.Nome_Titulo(CPF, Tipo, Numero_Titulo)
VALUES('$nCpfcgc' , '$Tipo' , '$numero_titulo' )";
$qry = mysql_query( $sql_insert , $conexao );
}
}
grava_fone($telefone, '1', $nCpfcgc);
grava_fone($celular, '3', $nCpfcgc);
grava_fone($referencia_comercial, '4', $nCpfcgc);
grava_fone($referencia_pessoal, '4', $nCpfcgc);
grava_fone($fax, '2', $nCpfcgc);
grava_fone($fone_empresa, '2', $nCpfcgc);
//Profissao
if(!empty($empresa_trabalha)){
$sql = "SELECT CPF, id FROM base_inform.Nome_Empresa_Trabalha
WHERE CPF = '$nCpfcgc' AND Tipo = '$Tipo' AND empresa = '$empresa_trabalha' AND cargo = '$cargo'";
$qry = mysql_query($sql,$conexao) or die ("erro ao selecionar o profissao - ".$sql);
$numero = mysql_num_rows($qry);
if( $numero == 0 ){
$sql = "INSERT INTO base_inform.Nome_Empresa_Trabalha(cnpj_empresa, CPF, Tipo, empresa, cargo, endereco_empresa)
VALUES('$cnpj_empresa', '$nCpfcgc', '$Tipo', '$empresa_trabalha', '$cargo', '$endereco_empresa')";
$qry = mysql_query($sql,$conexao)or die ("Erro: $sql");
}else{
$id = mysql_result($qry,0,'id');
$sql = "UPDATE base_inform.Nome_Empresa_Trabalha
SET cnpj_empresa = '$cnpj_empresa',
CPF = '$nCpfcgc',
Tipo = '$Tipo',
empresa = '$empresa_trabalha',
cargo = '$cargo',
endereco_empresa = '$endereco_empresa'
WHERE id = $id";
//$qry = mysql_query($sql,$conexao)or die ("Erro: $sql");
}
}
//Referencia Pessoal
if(!empty($nome_referencia)){
$sql = "SELECT CPF FROM base_inform.Nome_PessoaContato
WHERE cpf = '$nCpfcgc' AND nome_contato = '$nome_referencia'";
$qry = mysql_query($sql,$conexao) or die ("erro ao selecionar o REFERENCIA PESSOAL - ".$sql);
$numero = mysql_num_rows($qry);
if( $numero == 0 ){
$sql = "INSERT INTO base_inform.Nome_PessoaContato(cpf , nome_contato)
VALUES('$nCpfcgc', '$nome_referencia')";
$qry = mysql_query($sql,$conexao)or die ("Erro: $sql");
}
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function geraRelatorio()\r\n {\r\n \t$dados = $this->model->buscar('emails');\r\n \t$email = [];\r\n \tforeach($dados as $value){\r\n \t\t$email[] = $value['email'];\r\n \t}\r\n\r\n \tif(count($email) > 0){\r\n \t\t$emails[] = $email;\r\n \t\tPadrao::geraCSV('csv_emails.csv',$emai... | [
"0.6463522",
"0.64525425",
"0.616028",
"0.6110528",
"0.6083596",
"0.60551816",
"0.60009354",
"0.5967791",
"0.5953021",
"0.59370124",
"0.59157556",
"0.58975166",
"0.5874283",
"0.5846738",
"0.5833213",
"0.5826548",
"0.58233964",
"0.5823364",
"0.57755715",
"0.5773508",
"0.576766... | 0.6596987 | 0 |
Get widget name. Retrieve About Intro widget name. | public function get_name() {
return 'About Intro';
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getWidgetName();",
"public function get_title() {\n\t\treturn __( 'Atl About Intro', 'atl-extension' );\n\t}",
"public function get_name() {\n\t\treturn 'portfolio-hero-widget';\n\t}",
"public function get_title() {\n\t\treturn __( 'portfolio-hero-widget', 'portfolio-elementor' );\n\t}",
"p... | [
"0.6917263",
"0.6726215",
"0.63209957",
"0.6096512",
"0.60857975",
"0.607627",
"0.59865624",
"0.5928579",
"0.5892842",
"0.589119",
"0.587197",
"0.58645004",
"0.5795463",
"0.5780988",
"0.5774507",
"0.5709545",
"0.56936735",
"0.5674222",
"0.5649973",
"0.55912226",
"0.5525704",
... | 0.72946453 | 0 |
Get widget title. Retrieve About Intro widget title. | public function get_title() {
return __( 'Atl About Intro', 'atl-extension' );
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function get_title() {\n\t\treturn __( 'portfolio-hero-widget', 'portfolio-elementor' );\n\t}",
"public function get_title() {\n\t\treturn esc_html__( 'Title Widget', 'colormag' );\n\t}",
"public function get_name() {\n\t\treturn 'About Intro';\n\t}",
"public function get_title() {\n\t\treturn __( 'po... | [
"0.71070015",
"0.7005716",
"0.68613344",
"0.68185776",
"0.6723616",
"0.6723616",
"0.6548709",
"0.6517682",
"0.6474134",
"0.6466001",
"0.64246094",
"0.64246094",
"0.64246094",
"0.64246094",
"0.64246094",
"0.64246094",
"0.64246094",
"0.64246094",
"0.64246094",
"0.64246094",
"0.... | 0.7811823 | 0 |
Register About Intro widget controls. Adds different input fields to allow the user to change and customize the widget settings. | protected function _register_controls() {
$this->start_controls_section(
'content_section',
[
'label' => __( 'Content', 'atl-extension' ),
'tab' => \Elementor\Controls_Manager::TAB_CONTENT,
]
);
$this->add_control(
'about_intro_sub_title', [
'label' => __( 'About Intro Sub Title', 'atl-extension' ),
'type' => \Elementor\Controls_Manager::TEXT,
'default' => __( 'About Us' , 'atl-extension' ),
'label_block' => true,
'separator'=> 'before',
]
);
$this->add_control(
'about_intro_title', [
'label' => __( 'About Intro Title', 'atl-extension' ),
'type' => \Elementor\Controls_Manager::TEXT,
'default' => __( 'Business Agency That Helps You Succeed' , 'atl-extension' ),
'label_block' => true,
'separator'=> 'before',
]
);
$this->add_control(
'about_intro_desc', [
'label' => __( 'About Intro Description', 'atl-extension' ),
'type' => \Elementor\Controls_Manager::TEXTAREA,
'default' => __( 'lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et.' , 'atl-extension' ),
'label_block' => true,
'separator'=> 'before',
]
);
$this->add_control(
'about_intro_image', [
'label' => __( 'About Intro Image', 'atl-extension' ),
'type' => \Elementor\Controls_Manager::MEDIA,
'label_block' => true,
'separator'=> 'before',
]
);
$this->add_control(
'btn_text',
[
'label' => __( 'Button Text', 'atl-extension' ),
'type' => \Elementor\Controls_Manager::TEXT,
'label_block' => true,
'separator'=> 'before',
'default' => 'Read More ',
]
);
// Button Link
$this->add_control(
'btn_link',
[
'label' => __( 'Button Link', 'atl-extension' ),
'type' => \Elementor\Controls_Manager::URL,
'placeholder' => __( 'Write Button Linke Here', 'atl-extension' ),
]
);
$repeater = new \Elementor\Repeater();
// about_intro Options
$this->add_control(
'about_intro_list_heading',
[
'label' => __( 'Left About Intro', 'atl-extension' ),
'type' => \Elementor\Controls_Manager::HEADING,
'separator'=> 'before',
]
);
$repeater->add_control(
'about_intro_list_icon',
[
'label' => __( 'Icon', 'text-domain' ),
'type' => \Elementor\Controls_Manager::ICONS,
'default' => [
'value' => 'fas fa-circle',
'library' => 'solid',
],
]
);
$repeater->add_control(
'about_intro_list_title', [
'label' => __( 'About Intro Title', 'atl-extension' ),
'type' => \Elementor\Controls_Manager::TEXTAREA,
'default' => __( 'We’re the leaders in web and App based.' , 'atl-extension' ),
'label_block' => true,
]
);
$this->add_control(
'about_intro_lists',
[
'label' => __( 'About Intro Lists', 'atl-extension' ),
'type' => \Elementor\Controls_Manager::REPEATER,
'fields' => $repeater->get_controls(),
'title_field' => '{{{ about_intro_list_title }}}',
]
);
$this->end_controls_section();
// About Intro Style Tab
$this->start_controls_section(
'about_intro_intro_style_section',
[
'label' => __( 'About Intro Heading', 'atl-extension' ),
'tab' => \Elementor\Controls_Manager::TAB_STYLE,
]
);
// About Intro Icon
$this->add_control(
'about_intro_intro_sub_title_heading',
[
'label' => __( 'Sub Title', 'atl-extension' ),
'type' => \Elementor\Controls_Manager::HEADING,
'separator' => 'before'
]
);
// About Intro Title Color
$this->add_control(
'about_intro_intro_sub_title_color',
[
'label' => __( 'Color', 'atl-extension' ),
'type' => \Elementor\Controls_Manager::COLOR,
'scheme' => [
'type' => \Elementor\Core\Schemes\Color::get_type(),
'value' => \Elementor\Core\Schemes\Color::COLOR_1,
],
'default' => '#000',
'selectors' => [
'{{WRAPPER}} .aboutIntro .display-2--start' => 'color: {{VALUE}}',
],
]
);
// About Intro Title Typography
$this->add_group_control(
\Elementor\Group_Control_Typography::get_type(),
[
'name' => 'about_intro_intro_sub_title_typography',
'label' => __( 'Typography', 'atl-extension' ),
'scheme' => \Elementor\Core\Schemes\Typography::TYPOGRAPHY_1,
'selector' => '{{WRAPPER}} .aboutIntro .display-2--start',
]
);
// About Intro Icon
$this->add_control(
'about_intro_intro_title_heading',
[
'label' => __( 'Title', 'atl-extension' ),
'type' => \Elementor\Controls_Manager::HEADING,
'separator' => 'before'
]
);
// About Intro Title Color
$this->add_control(
'about_intro_intro_title_color',
[
'label' => __( 'Color', 'atl-extension' ),
'type' => \Elementor\Controls_Manager::COLOR,
'scheme' => [
'type' => \Elementor\Core\Schemes\Color::get_type(),
'value' => \Elementor\Core\Schemes\Color::COLOR_1,
],
'default' => '#1714e0',
'selectors' => [
'{{WRAPPER}} .aboutIntro .display-2--intro ' => 'color: {{VALUE}}',
],
]
);
// About Intro Title Typography
$this->add_group_control(
\Elementor\Group_Control_Typography::get_type(),
[
'name' => 'about_intro_intro_title_typography',
'label' => __( 'Typography', 'atl-extension' ),
'scheme' => \Elementor\Core\Schemes\Typography::TYPOGRAPHY_1,
'selector' => '{{WRAPPER}} .aboutIntro .display-2--intro ',
]
);
// About Intro Icon
$this->add_control(
'about_intro_intro_desc_heading',
[
'label' => __( 'Description', 'atl-extension' ),
'type' => \Elementor\Controls_Manager::HEADING,
'separator' => 'before'
]
);
// About Intro Title Color
$this->add_control(
'about_intro_intro_desc_color',
[
'label' => __( 'Color', 'atl-extension' ),
'type' => \Elementor\Controls_Manager::COLOR,
'scheme' => [
'type' => \Elementor\Core\Schemes\Color::get_type(),
'value' => \Elementor\Core\Schemes\Color::COLOR_1,
],
'default' => '#000',
'selectors' => [
'{{WRAPPER}} .aboutIntro .about-sub-title ' => 'color: {{VALUE}}',
],
]
);
// About Intro Title Typography
$this->add_group_control(
\Elementor\Group_Control_Typography::get_type(),
[
'name' => 'about_intro_intro_desc_typography',
'label' => __( 'Typography', 'atl-extension' ),
'scheme' => \Elementor\Core\Schemes\Typography::TYPOGRAPHY_1,
'selector' => '{{WRAPPER}} .aboutIntro .about-sub-title ',
]
);
$this->end_controls_section();
// About Intro Style Tab
$this->start_controls_section(
'about_intro_style_section',
[
'label' => __( 'About Intro', 'atl-extension' ),
'tab' => \Elementor\Controls_Manager::TAB_STYLE,
]
);
// icon Options
$this->add_control(
'about_intro_icon_style',
[
'label' => __( 'Icon', 'atl-extension' ),
'type' => \Elementor\Controls_Manager::HEADING,
'separator' => 'before'
]
);
// icon Background Color
$this->add_control(
'about_intro_icon_color',
[
'label' => __( 'Color', 'atl-extension' ),
'type' => \Elementor\Controls_Manager::COLOR,
'scheme' => [
'type' => \Elementor\Core\Schemes\Color::get_type(),
'value' => \Elementor\Core\Schemes\Color::COLOR_1,
],
'default' => '#1714e0',
'separator' => 'after',
'selectors' => [
'{{WRAPPER}} .aboutIntro .address i' => 'color: {{VALUE}}',
],
]
);
// About Intro Title
$this->add_control(
'about_intro_title_heading',
[
'label' => __( 'Title', 'atl-extension' ),
'type' => \Elementor\Controls_Manager::HEADING,
'separator' => 'before'
]
);
// About Intro Title Color
$this->add_control(
'about_intro_title_color',
[
'label' => __( 'Color', 'atl-extension' ),
'type' => \Elementor\Controls_Manager::COLOR,
'scheme' => [
'type' => \Elementor\Core\Schemes\Color::get_type(),
'value' => \Elementor\Core\Schemes\Color::COLOR_1,
],
'default' => '#000',
'selectors' => [
'{{WRAPPER}} .aboutIntro .address p' => 'color: {{VALUE}}',
],
]
);
// About Intro Title Typography
$this->add_group_control(
\Elementor\Group_Control_Typography::get_type(),
[
'name' => 'about_intro_title_typography',
'label' => __( 'Typography', 'atl-extension' ),
'scheme' => \Elementor\Core\Schemes\Typography::TYPOGRAPHY_1,
'selector' => '{{WRAPPER}} .aboutIntro .address p',
]
);
$this->end_controls_section();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected function _register_controls(){\n //Name of the content section\n $this->start_controls_section(\n 'client',\n array(\n 'label' => __('Client Slider', 'reveal'),\n 'tab' => Controls_Manager::TAB_CONTENT\n )\n );\n\n $this->add_control(\n ... | [
"0.6355803",
"0.62246096",
"0.6141228",
"0.59395325",
"0.5936918",
"0.5936355",
"0.591194",
"0.5880933",
"0.5876454",
"0.58612883",
"0.5848175",
"0.583901",
"0.57958686",
"0.5769119",
"0.57572263",
"0.5746662",
"0.57391334",
"0.5737239",
"0.5716785",
"0.571666",
"0.5714124",
... | 0.6796867 | 0 |
Render About Intro widget output on the frontend. Written in PHP and used to generate the final HTML. | protected function render() {
$settings = $this->get_settings_for_display();
$about_intro_title = $settings['about_intro_title'];
$about_intro_sub_title = $settings['about_intro_sub_title'];
$about_intro_desc = $settings['about_intro_desc'];
$btn_text = $settings['btn_text'];
$btn_link = $settings['btn_link'];
$about_intro_image = $settings['about_intro_image']['url'];
$about_introImages= $about_intro_image ? $about_intro_image: plugin_dir_url( dirname( __FILE__ ) ) .'/images/about/about.png';
?>
<div id="about" class="about">
<div class="container">
<div class="row aboutIntro">
<!-- START THE CONTENT FOR THE Description -->
<div class="col-md-6 text-start" >
<h1 class="display-2">
<span class="display-2--start"><?php echo $about_intro_sub_title; ?></span>
<span class="display-2--intro"><?php echo $about_intro_title; ?></span>
<div class="display-2--description lh-base about-sub-title">
<?php echo $about_intro_desc; ?>
</div>
</h1>
<div class="info">
<?php
if ( $settings['about_intro_lists'] ) {
foreach ( $settings['about_intro_lists'] as $item ) {
?>
<div class="address">
<div class="left d-flex justify-content-center align-items-center">
<i class="<?php echo $item['about_intro_list_icon']['value']; ?>"></i>
</div>
<div class="right d-flex align-items-center">
<p><?php echo $item['about_intro_list_title']; ?></p>
</div>
</div>
<?php
}
}
?>
</div>
<div class="about__action">
<a href="<?php echo $btn_link;?>" type="button" class="btn btn-primary rounded pt-3 pb-3"><?php echo $btn_text." " ;?><i class="fas fa-paper-plane"></i>
</a>
</div>
</div>
<!-- START THE CONTENT FOR THE Graphics -->
<div class="col-md-6 illutration">
<img src="<?php echo $about_introImages; ?>" alt="video illutration"
class="img-fluid">
</div>
</div>
</div>
</div>
<?php
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function intro(){\n\t\t$html = \"\";\n\t\t$html.= '\n\t\t<div class=\"row description\">\n\t\t\t<div class=\"small-10 large-10 columns\">\n\t\t\t\t<h1>Le marche</h1>\n\t\t\t\t<hr/>\n\t\t\t\t<center><p>Vous trouverez ici tous les articles dont vous avez besoin pour vous occuper de vos kreaturs.</p></center>\... | [
"0.67974985",
"0.6715028",
"0.66407347",
"0.6591764",
"0.6587358",
"0.6573542",
"0.65718937",
"0.6492532",
"0.6340364",
"0.63357896",
"0.63355386",
"0.6265195",
"0.6239343",
"0.6218339",
"0.62085223",
"0.61986464",
"0.6179838",
"0.6160259",
"0.61546755",
"0.6132486",
"0.61201... | 0.71863115 | 0 |
echo used to show we are in the person getFullName | protected function getFullName()
{
echo "Person->getFullName()".PHP_EOL;
return $this->firstName." ".$this->lastName.PHP_EOL;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function get_name(){\n\t\tprint $this->first_name . \" \" . $this->last_name . \"\\n\";\t\n\t}",
"public function getFullName() {\n return $this->fname . \" \" . $this->lname;\n }",
"public function fullName() {\n \treturn $this->first_name.\" \".$this->last_name;\n }",
"public functio... | [
"0.7667816",
"0.75958014",
"0.7583371",
"0.75623363",
"0.7535787",
"0.75180733",
"0.7513698",
"0.7513698",
"0.75101125",
"0.7490482",
"0.7457596",
"0.74357915",
"0.7414982",
"0.74127537",
"0.7411812",
"0.74110144",
"0.74110144",
"0.74047595",
"0.7393186",
"0.7387973",
"0.7376... | 0.8094885 | 1 |
Description =========== This method will return all the information about an shipping profile rate. Arguments api_key: auth_token: tnid: The ID of the tenant the shipping profile rate is attached to. rate_id: The ID of the shipping profile rate to get the details for. Returns | function ciniki_sapos_shippingRateGet($ciniki) {
//
// Find all the required and optional arguments
//
ciniki_core_loadMethod($ciniki, 'ciniki', 'core', 'private', 'prepareArgs');
$rc = ciniki_core_prepareArgs($ciniki, 'no', array(
'tnid'=>array('required'=>'yes', 'blank'=>'no', 'name'=>'Tenant'),
'rate_id'=>array('required'=>'yes', 'blank'=>'no', 'name'=>'Shipping Profile Rate'),
));
if( $rc['stat'] != 'ok' ) {
return $rc;
}
$args = $rc['args'];
//
// Make sure this module is activated, and
// check permission to run this function for this tenant
//
ciniki_core_loadMethod($ciniki, 'ciniki', 'sapos', 'private', 'checkAccess');
$rc = ciniki_sapos_checkAccess($ciniki, $args['tnid'], 'ciniki.sapos.shippingRateGet');
if( $rc['stat'] != 'ok' ) {
return $rc;
}
//
// Load tenant settings
//
ciniki_core_loadMethod($ciniki, 'ciniki', 'tenants', 'private', 'intlSettings');
$rc = ciniki_tenants_intlSettings($ciniki, $args['tnid']);
if( $rc['stat'] != 'ok' ) {
return $rc;
}
$intl_timezone = $rc['settings']['intl-default-timezone'];
$intl_currency_fmt = numfmt_create($rc['settings']['intl-default-locale'], NumberFormatter::CURRENCY);
$intl_currency = $rc['settings']['intl-default-currency'];
ciniki_core_loadMethod($ciniki, 'ciniki', 'users', 'private', 'dateFormat');
$date_format = ciniki_users_dateFormat($ciniki, 'php');
//
// Return default for new Shipping Profile Rate
//
if( $args['rate_id'] == 0 ) {
$rate = array('id'=>0,
'profile_id'=>'',
'flags'=>'0',
'min_quantity'=>'',
'max_quantity'=>'',
'min_amount'=>'',
'max_amount'=>'',
'shipping_amount_us'=>'',
'shipping_amount_ca'=>'',
'shipping_amount_intl'=>'',
);
}
//
// Get the details for an existing Shipping Profile Rate
//
else {
$strsql = "SELECT ciniki_sapos_shipping_rates.id, "
. "ciniki_sapos_shipping_rates.profile_id, "
. "ciniki_sapos_shipping_rates.flags, "
. "ciniki_sapos_shipping_rates.min_quantity, "
. "ciniki_sapos_shipping_rates.max_quantity, "
. "ciniki_sapos_shipping_rates.min_amount, "
. "ciniki_sapos_shipping_rates.max_amount, "
. "ciniki_sapos_shipping_rates.shipping_amount_us, "
. "ciniki_sapos_shipping_rates.shipping_amount_ca, "
. "ciniki_sapos_shipping_rates.shipping_amount_intl "
. "FROM ciniki_sapos_shipping_rates "
. "WHERE ciniki_sapos_shipping_rates.tnid = '" . ciniki_core_dbQuote($ciniki, $args['tnid']) . "' "
. "AND ciniki_sapos_shipping_rates.id = '" . ciniki_core_dbQuote($ciniki, $args['rate_id']) . "' "
. "";
ciniki_core_loadMethod($ciniki, 'ciniki', 'core', 'private', 'dbHashQueryArrayTree');
$rc = ciniki_core_dbHashQueryArrayTree($ciniki, $strsql, 'ciniki.sapos', array(
array('container'=>'rates', 'fname'=>'id',
'fields'=>array('profile_id', 'flags', 'min_quantity', 'max_quantity', 'min_amount', 'max_amount', 'shipping_amount_us', 'shipping_amount_ca', 'shipping_amount_intl'),
),
));
if( $rc['stat'] != 'ok' ) {
return array('stat'=>'fail', 'err'=>array('code'=>'ciniki.sapos.301', 'msg'=>'Shipping Profile Rate not found', 'err'=>$rc['err']));
}
if( !isset($rc['rates'][0]) ) {
return array('stat'=>'fail', 'err'=>array('code'=>'ciniki.sapos.302', 'msg'=>'Unable to find Shipping Profile Rate'));
}
$rate = $rc['rates'][0];
//
// Format the display variables
//
ciniki_core_loadMethod($ciniki, 'ciniki', 'sapos', 'private', 'shippingRateFormat');
$rc = ciniki_sapos_shippingRateFormat($ciniki, $args['tnid'], $rate);
if( $rc['stat'] != 'ok' ) {
return array('stat'=>'fail', 'err'=>array('code'=>'ciniki.sapos.306', 'msg'=>'Unable to format rate', 'err'=>$rc['err']));
}
$rate['shipping_amount_us'] = $rc['rate']['shipping_amount_us_display'];
$rate['shipping_amount_ca'] = $rc['rate']['shipping_amount_ca_display'];
$rate['shipping_amount_intl'] = $rc['rate']['shipping_amount_intl_display'];
}
return array('stat'=>'ok', 'rate'=>$rate);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function show(Rate $rate)\n {\n return new RateResource($rate);\n }",
"protected function _getEconomyShippingRate()\n {\n $Xml =\"<?xml version='1.0' encoding='UTF-8' standalone='no'?>\n<priceRequest>\n\t<appId>PC</appId>\n\t<appVersion>3.0</appVersion>\n\t<priceCheck>\n\t\t<rateId>... | [
"0.5745902",
"0.57003856",
"0.55931926",
"0.5429044",
"0.54031605",
"0.5334688",
"0.5308043",
"0.5307911",
"0.5283962",
"0.5271877",
"0.5271877",
"0.5271118",
"0.52537394",
"0.52537394",
"0.5243126",
"0.5238364",
"0.523198",
"0.521162",
"0.5195986",
"0.51837784",
"0.51709944"... | 0.6452177 | 0 |
Help doc for scaffolding command | public function help()
{
if ($this->type)
{
$class = __NAMESPACE__ . '\\Scaffolding\\' . ucfirst($this->type);
$obj = new $class($this->output, $this->arguments);
// Call the help method
$obj->help();
}
else
{
$this->output = $this->output->getHelpOutput();
$this
->output
->addOverview(
'Create a new item scaffold. There are currently no arguments available.
Type "muse scaffolding help [scaffolding type]" for more details.');
$this->output->render();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected function registerScaffold() {\n\t\t$this->app['snowman.scaffold'] = $this->app->share(function($app) {\n\t\t\treturn new ScaffoldGeneratorCommand;\n\t\t});\n\n\t\t$this->commands('snowman.scaffold');\n\t}",
"public function helpAction ()\r\n\t{\t\t\r\n\t\techo \"\\n./cli doc [help|build]\\n\\n\";\r\n\t... | [
"0.67486256",
"0.64170825",
"0.6335059",
"0.62292624",
"0.62205887",
"0.61565775",
"0.61501896",
"0.6098629",
"0.59078294",
"0.58592707",
"0.5833201",
"0.57601696",
"0.57063717",
"0.5697602",
"0.5691971",
"0.56326836",
"0.56057584",
"0.56057584",
"0.55960435",
"0.55928177",
"... | 0.69879794 | 0 |
Set blind replacement var | protected function doBlindReplacements()
{
$this->doBlindReplacements = true;
return $this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function replace();",
"abstract function replace();",
"function bbp_set_200()\n{\n}",
"public function setImageBias ($bias) {}",
"public function blindWavelet($_waveId, $_waveletId, $_proxyForId = null, $_blips) {}",
"function colorreplace(){\n\n\t\t$red = hexdec(substr($this->Colorreplace[1], 1, ... | [
"0.53124374",
"0.5215597",
"0.5164274",
"0.51041645",
"0.5032601",
"0.49996156",
"0.49894872",
"0.49767128",
"0.49214154",
"0.47897485",
"0.47791067",
"0.47761276",
"0.47065866",
"0.47018892",
"0.46887314",
"0.46602228",
"0.46394756",
"0.46252224",
"0.46192846",
"0.4618151",
... | 0.6078413 | 0 |
Return the base root of all git repositories | public function getGitRootPath(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getRootDir();",
"public function getRootDir();",
"public function getRootDir(): string;",
"public function getBaseDir()\n {\n return $this->_directoryList->getPath(DirectoryList::ROOT).\"/\";\n }",
"public function getBasePath()\n {\n return config('repository.generat... | [
"0.6744378",
"0.6744378",
"0.65636307",
"0.65276974",
"0.65201885",
"0.6391423",
"0.6298346",
"0.6136479",
"0.6132719",
"0.61192906",
"0.6104982",
"0.6104177",
"0.6075389",
"0.60659486",
"0.6065948",
"0.6064272",
"0.6056187",
"0.6056122",
"0.60441923",
"0.6041194",
"0.6021361... | 0.74319786 | 0 |
Test is user can read the content of this repository and metadata | public function userCanRead($user, $repository); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function testLoadFileMetadataAccessDenied() {\n FileRepositoryFS::getFileMetadata($this->fileName, 2);\n }",
"public function checkReadAccess() {\n \treturn true;\n }",
"public function testAuthorContentResource() {\n NodeType::create([\n 'name' => 'article',\n 'type' => 'ar... | [
"0.6337399",
"0.6148803",
"0.60914403",
"0.6082182",
"0.60467696",
"0.59978956",
"0.59446543",
"0.5928849",
"0.59049237",
"0.58939284",
"0.5841874",
"0.57968915",
"0.57959145",
"0.579219",
"0.5730576",
"0.57230353",
"0.5721723",
"0.5669923",
"0.565857",
"0.5653374",
"0.565056... | 0.6451992 | 0 |
Change postreceiveemail hook mail prefix | public function changeRepositoryMailPrefix($repository); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function moi_custom_wp_mail_from( $original_email_address ) {\n $new_email_address = 'ventas@';\n return str_replace( 'wordpress@', MOI_EMAIL_SENDER, $original_email_address );\n}",
"public static function setUp_wp_mail( $args ) {\n\t\tif ( isset( $_SERVER['SERVER_NAME'] ) ) {\n\t\t\tself::$cached_SERVER_NAME ... | [
"0.62830794",
"0.5976274",
"0.5906609",
"0.585451",
"0.57695824",
"0.5683242",
"0.5650312",
"0.56480515",
"0.55996686",
"0.5592391",
"0.55773616",
"0.55222124",
"0.55213225",
"0.54969835",
"0.5480112",
"0.5469848",
"0.5466146",
"0.54641294",
"0.54544365",
"0.5429659",
"0.5417... | 0.6459614 | 0 |
Check if repository can be deleted | public function canBeDeleted(GitRepository $repository); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"abstract public function canDelete();",
"public function deleteRepo( )\n\t{\n\t\tif (!empty( $this->repoPath )) {\n\t\t\t$query = 'sleep 0.2 ; ';\n\t\t\t$query .= \"rm -rf \".$this->repoPath.'* ; '; // Flush all contents\n\t\t\t$query .= \"rm -rf \".$this->repoPath.'.* ; '; // Flush all cached contents\n\n\t\t\t... | [
"0.6520881",
"0.64048237",
"0.6261557",
"0.62046933",
"0.6195733",
"0.61556154",
"0.6155424",
"0.61482036",
"0.6121524",
"0.60927075",
"0.60274094",
"0.6020015",
"0.59906584",
"0.5963881",
"0.5928047",
"0.59203845",
"0.5840353",
"0.57885957",
"0.57710254",
"0.57555807",
"0.57... | 0.7818936 | 0 |
Physically delete a repository already marked for deletion | public function delete(GitRepository $repository); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function markAsDeleted(GitRepository $repository);",
"public function deleteRepo()\n {\n $this->checkRepository();\n\n $request = new HTTP_Request2($this->dsn . '/repositories/' . $this->repository,\n HTTP_Request2::METHOD_DELETE);\n $request = $... | [
"0.7215305",
"0.71925074",
"0.70818096",
"0.6574748",
"0.65052104",
"0.64094144",
"0.6302477",
"0.6302477",
"0.6302477",
"0.6302477",
"0.6302477",
"0.6302477",
"0.6302477",
"0.6302477",
"0.6302477",
"0.6302477",
"0.6302477",
"0.6302477",
"0.6302477",
"0.6302477",
"0.6302477",... | 0.772076 | 0 |
Enqueues scripts for the media uploader. | protected function enqueueMediaUploader() {
add_filter( 'media_upload_tabs', array( $this, '_replyToRemovingMediaLibraryTab' ) );
wp_enqueue_script( 'jquery' );
wp_enqueue_script( 'thickbox' );
wp_enqueue_style( 'thickbox' );
if ( function_exists( 'wp_enqueue_media' ) ) { // means the WordPress version is 3.5 or above
new AdminPageFramework_Script_MediaUploader( $this->oMsg );
} else {
wp_enqueue_script( 'media-upload' );
}
if ( in_array( $this->getPageNow(), array( 'media-upload.php', 'async-upload.php', ) ) ) {
add_filter( 'gettext', array( $this, '_replyToReplaceThickBoxText' ) , 1, 2 );
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function enqueueScripts() {}",
"public function _enqueue() {\n if ( function_exists( 'wp_enqueue_media' ) ) {\n wp_enqueue_media();\n wp_enqueue_script( 'metabolics-attachment-new', $this->core->js_path . 'script.MetabolicsAttachment.js', array( 'jquery' ), METABOLICS_VER, true );\n }\n }... | [
"0.7224487",
"0.7116802",
"0.701108",
"0.69384944",
"0.68406564",
"0.68014205",
"0.6688379",
"0.66711235",
"0.66090786",
"0.6581504",
"0.6553992",
"0.6535408",
"0.6493119",
"0.6492642",
"0.6480562",
"0.64504355",
"0.64208275",
"0.63545614",
"0.63471335",
"0.63266355",
"0.6316... | 0.7279536 | 0 |
Removes the From URL tab from the media uploader. since 2.1.3 since 2.1.5 Moved from AdminPageFramework_Setting. Changed the name from removeMediaLibraryTab() to _replyToRemovingMediaLibraryTab(). | public function _replyToRemovingMediaLibraryTab( $aTabs ) {
if ( ! isset( $_REQUEST['enable_external_source'] ) ) { return $aTabs; }
if ( ! $_REQUEST['enable_external_source'] ) {
unset( $aTabs['type_url'] ); // removes the 'From URL' tab in the thick box.
}
return $aTabs;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function removeMedia()\n {\n global $current_screen;\n\n if ($current_screen->post_type != 'page') {\n remove_action('media_buttons', 'media_buttons');\n }\n }",
"function removeMediaFromForm($form=NULL, $form_state=NULL)\n{\n removeMediaHelper($form_state['MID']);\n... | [
"0.60199654",
"0.5986137",
"0.57200956",
"0.5638095",
"0.5630763",
"0.5623065",
"0.55991596",
"0.5576874",
"0.5563392",
"0.5426074",
"0.53886235",
"0.53068787",
"0.53036976",
"0.5300611",
"0.5292783",
"0.5283952",
"0.5275042",
"0.5254565",
"0.52299124",
"0.52104557",
"0.51912... | 0.69837224 | 0 |
get current link as array | public function getArrayLink(){
$link['namespace'] = $this->namespace;
$link['controller'] = $this->controller;
$link['action'] = $this->action;
$link['params'] = $this->params;
return $link;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function links(): array;",
"public function getLinks() {\n if (empty($this->data['links'])) {\n return array();\n }\n return array_keys($this->data['links']);\n }",
"public function getLinks()\n {\n return $this->links_array;\n }",
"public function getCurrentLink(): Link\n ... | [
"0.6850049",
"0.65423256",
"0.6472981",
"0.6463024",
"0.64206475",
"0.64084184",
"0.63935673",
"0.63265854",
"0.62513876",
"0.62335074",
"0.62297213",
"0.6224408",
"0.6224408",
"0.6224408",
"0.62079996",
"0.611313",
"0.61121017",
"0.60967225",
"0.60595495",
"0.6049492",
"0.60... | 0.68031913 | 1 |
Check the main page, get meta data and inject into given content | public function processMeta(&$content, $main_page, $page_id = 0)
{
$this->meta = $this->getMeta($main_page, $page_id);
if (!empty($this->meta)) {
//inject meta data into content and return
return $this->injectMetas($content, $main_page);
}
//return original content
return $content;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private function injectMetas(&$content, $page)\n {\n foreach ($this->meta['metas'] as $key => $value) {\n if (!$this->has(\"metas.\" . $key . \"\")) {\n if (trim($value) != '') {\n $this->set(\"metas.\" . $key . \"\", $value);\n }\n }... | [
"0.68672144",
"0.62761223",
"0.61844677",
"0.6110686",
"0.60922825",
"0.6070542",
"0.60698956",
"0.60184985",
"0.60018647",
"0.59583634",
"0.5933773",
"0.5918461",
"0.5905237",
"0.5869711",
"0.58671975",
"0.5866066",
"0.58395946",
"0.5817625",
"0.58008",
"0.5784223",
"0.57804... | 0.6755771 | 1 |
Delete single meta with seo_id in table seo_meta and name | public function deleteSingleMeta($seo_id, $meta_name)
{
global $db;
$sql = "DELETE FROM " . TABLE_META_DATA . " WHERE seo_id = :seo_id AND meta_name = :meta_name";
$sql = $db->bindVars($sql, ":seo_id", $seo_id, 'integer');
$sql = $db->bindVars($sql, ":meta_name", $meta_name, 'string');
$db->Execute($sql);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function delete_meta( $mid ) {\n\treturn delete_metadata_by_mid( 'post', $mid );\n}",
"public static function delete_meta($id)\n { global $wpdb;\n\n $table = WTYPE::DB(WTYPE::DB_META);\n return $wpdb->query($wpdb->prepare(\"DELETE FROM $table WHERE id = %d\", $id));\n }",
"public functio... | [
"0.69224197",
"0.676596",
"0.670447",
"0.649529",
"0.63843787",
"0.63407594",
"0.6322839",
"0.63080114",
"0.6297992",
"0.6275735",
"0.6143098",
"0.6143098",
"0.6130769",
"0.6121923",
"0.60417444",
"0.5887874",
"0.5868545",
"0.58155334",
"0.5815522",
"0.57941514",
"0.57719564"... | 0.80714303 | 0 |
< Muestra la lista de las transacciones existentes | public function transacciones()
{
$data['transaccion'] = $this->{$this->model}->listar_transaccion();
foreach ($data['transaccion'] as $key => $confirmacion){
$confirmacion->Confirmacion = ($confirmacion->Confirmacion == 1) ? 'Aprobada' : 'No-Aprobada';
}
$this->load->view($this->views.'transacciones',$data);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function list_trans() {\n require_once( CF7_payro24_PLUGIN_PATH . 'templates/list-transactions.php' );\n }",
"private function multiTrans()\n {\n $trans = [];\n foreach ($this->to as $to) {\n $trans[ $to ] = $this->api(reversoTranslationLangsConvert($to));\n }\... | [
"0.67132556",
"0.6028619",
"0.59833753",
"0.58650696",
"0.5801662",
"0.5759337",
"0.5722739",
"0.5722739",
"0.5722739",
"0.57039803",
"0.5673326",
"0.5649934",
"0.5636791",
"0.56243116",
"0.5571916",
"0.55414426",
"0.5508087",
"0.5498648",
"0.5480989",
"0.547105",
"0.5441935"... | 0.65789306 | 1 |
Editar un registro de una transaccion con un id especifico | public function editar($id=NULL)
{
//Obtenemos todas las transacciones dependiendo del id especifico
if( !$data['transaccion_proceso'] = $this->{$this->model}->obtener_transaccion($id) )
$this->alertas->info('Transaccion/transacciones');
//Obtenemos las areas de trabajo
if( !$data['areas_trabajo'] = $this->{$this->model}->obtener_areaenvia() )
$this->alertas->info('Transaccion/transacciones');
//Obtenemos las ordenes de servicio
if( !$data['ordenservicio'] = $this->{$this->model}->obtener_ordenservicio() )
$this->alertas->info('Transaccion/transacciones');
// Validaciones de Formulario
$this->form_validation->set_rules(
array(
array(
'field' => 'input_fecha',
'label' => 'Fecha',
'rules' => 'required'
),
array(
'field' => 'input_hora',
'label' => 'Hora de entrega',
'rules' => 'required'
),
array(
'field' => 'input_con',
'label' => ' Confirmación',
'rules' => ''
),
array(
'field' => 'areaenvia',
'label' => 'Area',
'rules' => 'required'
),
array(
'field' => 'orden_id',
'label' => 'Orden de servicios',
'rules' => 'required'
),
array(
'field' => 'areadestino',
'label' => 'Area de destino',
'rules' => 'required'
)
)
);
if( $this->form_validation->run() && $this->input->post() ){
$data_update = array(
'Fecha_entrega' => $this->input->post('input_fecha',TRUE),
'Hora_entrega' => $this->input->post('input_hora',TRUE),
'Confirmacion' => ($this->input->post('input_con',TRUE) == 'on' ) ? 1 : 0,
'idareaenvia' => $this->input->post('areaenvia',TRUE),
'idordenservicio' => $this->input->post('orden_id',TRUE),
'idareadestino' => $this->input->post('areadestino',TRUE),
);
$this->alertas->db($this->{$this->model}->actualizar_transaccion($id,$data_update),'Transaccion/transacciones');
}
$this->load->view($this->views.'editar_transaccion',$data);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function edit($id)\n {\n //modificacion. tira el formulario con el dato cargado. genera una vista. \n\n }",
"public function edit(Transaksi $transaksi)\n {\n //\n }",
"public function edit(Transaksi $transaksi)\n {\n //\n }",
"public function edit(transaksi $tran... | [
"0.6947966",
"0.69206715",
"0.69206715",
"0.68450296",
"0.68326527",
"0.682315",
"0.67596173",
"0.67290753",
"0.67208534",
"0.67138803",
"0.6711097",
"0.6703805",
"0.66790175",
"0.66767675",
"0.6676091",
"0.66647995",
"0.66428167",
"0.6579963",
"0.65737206",
"0.65648943",
"0.... | 0.7069196 | 0 |
Elimina una determinada transaccion mediante un id especifico | public function eliminar($id=NULL)
{
$this->alertas->db($this->{$this->model}->eliminar_transaccion($id),'Transaccion/transacciones');
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected function eliminar($id)\n {\n }",
"function eliminar_evento($id) {}",
"protected function eliminar($id)\n {\n }",
"protected function eliminar($id)\n {\n }",
"public function eliminar($id)\n {\n }",
"function del($id) {\n $query = \"\n DELETE\n ... | [
"0.6908081",
"0.68785703",
"0.68196875",
"0.68196875",
"0.6739332",
"0.67323464",
"0.6704742",
"0.65417045",
"0.65291685",
"0.6517113",
"0.64840555",
"0.64661765",
"0.6446252",
"0.64234155",
"0.6413478",
"0.638985",
"0.6368381",
"0.63624537",
"0.6360527",
"0.6358218",
"0.6348... | 0.7370608 | 0 |
Message to show error service implementation returns null for IMetadataProvider or IQueryProvider. | public static function providersWrapperNull()
{
return 'For custom providers, GetService should not return null for both IMetadataProvider and'
. ' IQueryProvider types.';
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static function invalidMetadataInstance()\n {\n return 'IService.getMetadataProvider returns invalid object.';\n }",
"public static function invalidQueryInstance()\n {\n return 'IService.getQueryProvider returns invalid object.';\n }",
"public function get_error_message() {\n\n... | [
"0.5988619",
"0.58678013",
"0.57579017",
"0.57506037",
"0.5743611",
"0.5727477",
"0.55849206",
"0.55849206",
"0.55826205",
"0.5580364",
"0.55350024",
"0.5525951",
"0.5520149",
"0.551537",
"0.55003",
"0.5497083",
"0.5464829",
"0.5464829",
"0.5464829",
"0.5464829",
"0.540852",
... | 0.68137 | 0 |
The error message to show when IQueryProvider::getExpressionProvider method returns empty or null. | public static function providersWrapperExpressionProviderMustNotBeNullOrEmpty()
{
return 'The value returned by IQueryProvider::getExpressionProvider method must not be null or empty';
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static function providersWrapperInvalidExpressionProviderInstance()\n {\n return 'The value returned by IQueryProvider::getExpressionProvider method must be an implementation'\n . ' of IExpressionProvider';\n }",
"public static function invalidQueryInstance()\n {\n return... | [
"0.7027117",
"0.68011445",
"0.6347229",
"0.595575",
"0.56917834",
"0.5589084",
"0.5522286",
"0.5521226",
"0.5480495",
"0.54626274",
"0.53840995",
"0.5349331",
"0.5349331",
"0.5349331",
"0.53454417",
"0.5288797",
"0.5276543",
"0.5276085",
"0.5238665",
"0.5227117",
"0.52267617"... | 0.7637528 | 0 |
The error message to show when IQueryProvider::getExpressionProvider method returns nonobject or an object which does not implement IExpressionProvider. | public static function providersWrapperInvalidExpressionProviderInstance()
{
return 'The value returned by IQueryProvider::getExpressionProvider method must be an implementation'
. ' of IExpressionProvider';
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static function invalidQueryInstance()\n {\n return 'IService.getQueryProvider returns invalid object.';\n }",
"public static function providersWrapperExpressionProviderMustNotBeNullOrEmpty()\n {\n return 'The value returned by IQueryProvider::getExpressionProvider method must not b... | [
"0.6894007",
"0.67308575",
"0.662168",
"0.55596846",
"0.55596846",
"0.55596846",
"0.52937967",
"0.52398884",
"0.5205753",
"0.5122827",
"0.51195383",
"0.5080206",
"0.5043041",
"0.5042685",
"0.50336087",
"0.50336087",
"0.5028836",
"0.49656236",
"0.49246925",
"0.49110243",
"0.49... | 0.7933981 | 0 |
The error message to show when IMetadataProvider::getContainerName method returns empty container name. | public static function providersWrapperContainerNameMustNotBeNullOrEmpty()
{
return 'The value returned by IMetadataProvider::getContainerName method must not be null or empty';
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static function providersWrapperContainerNamespaceMustNotBeNullOrEmpty()\n {\n return 'The value returned by IMetadataProvider::getContainerNamespace method must not be null or empty';\n }",
"private function _getContainerName() {\n\t\t$this->SiteSetting = ClassRegistry::init(\"SiteSetting\")... | [
"0.6752855",
"0.62786365",
"0.60565716",
"0.604085",
"0.5911269",
"0.5673316",
"0.5646998",
"0.55951726",
"0.55649525",
"0.5554781",
"0.55417776",
"0.5522205",
"0.5489819",
"0.5473444",
"0.5466936",
"0.54600245",
"0.54327637",
"0.5347757",
"0.53412724",
"0.5319306",
"0.529304... | 0.7609924 | 0 |
The error message to show when IMetadataProvider::getContainerNamespace method returns empty container name. | public static function providersWrapperContainerNamespaceMustNotBeNullOrEmpty()
{
return 'The value returned by IMetadataProvider::getContainerNamespace method must not be null or empty';
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static function providersWrapperContainerNameMustNotBeNullOrEmpty()\n {\n return 'The value returned by IMetadataProvider::getContainerName method must not be null or empty';\n }",
"private function _getContainerName() {\n\t\t$this->SiteSetting = ClassRegistry::init(\"SiteSetting\");\n\t\t$im... | [
"0.70655394",
"0.60141563",
"0.5980159",
"0.5861975",
"0.57535315",
"0.57065463",
"0.5665873",
"0.56549853",
"0.55738163",
"0.5513175",
"0.5377934",
"0.5377934",
"0.53228337",
"0.53098744",
"0.5233912",
"0.5208335",
"0.51478964",
"0.5139075",
"0.51215506",
"0.5112151",
"0.508... | 0.76990294 | 0 |
Format a message to show error when more than one entity set with the same name found. | public static function providersWrapperEntitySetNameShouldBeUnique($entitySetName)
{
return 'More than one entity set with the name \'' . $entitySetName
. '\' was found. Entity set names must be unique';
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function show_errors()\n {\n $errors = array();\n\n\t\t$inf = $this->get_info();\n\t\t$single = $inf['SINGLE'];\n\n for ($i=0; $i<count($this->status); $i++)\n {\n if ($this->status[$i] == DUPLICATE) { $error = \"That $single already exists!\"; }\n\n $errors[] = $error;\n }\n\n $this->pg-... | [
"0.61122894",
"0.6016769",
"0.5579891",
"0.55512077",
"0.5493931",
"0.5491501",
"0.5427483",
"0.5396941",
"0.5276569",
"0.52573514",
"0.5256599",
"0.52485496",
"0.523717",
"0.52087015",
"0.51398736",
"0.5133942",
"0.511029",
"0.5093154",
"0.50899744",
"0.5085034",
"0.5082381"... | 0.6290607 | 0 |
Format a message to show error when more than one entity type with the same name found. | public static function providersWrapperEntityTypeNameShouldBeUnique($entityTypeName)
{
return 'More than one entity type with the name \'' . $entityTypeName
. '\' was found. Entity type names must be unique';
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function show_errors()\n {\n $errors = array();\n\n\t\t$inf = $this->get_info();\n\t\t$single = $inf['SINGLE'];\n\n for ($i=0; $i<count($this->status); $i++)\n {\n if ($this->status[$i] == DUPLICATE) { $error = \"That $single already exists!\"; }\n\n $errors[] = $error;\n }\n\n $this->pg-... | [
"0.5907107",
"0.5845459",
"0.57363534",
"0.551114",
"0.5500004",
"0.54442424",
"0.54251623",
"0.5422074",
"0.5365218",
"0.5339566",
"0.5325547",
"0.53078353",
"0.5304718",
"0.5278811",
"0.5275641",
"0.5262549",
"0.5240613",
"0.52007055",
"0.51678836",
"0.5113847",
"0.50898397... | 0.604157 | 0 |
Runs measure test for activities. | public function measureActivity($additionActivityFilter = array()); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public final function run() {\n\t\t$this->onBegin() ;\n\t\t$tests = get_class_methods( get_class( $this ) );\n\t\t$notTests = get_class_methods( 'TestCase' );\n\t\t$test = array_diff($tests, $notTests);\n\t\tforeach($test as $test) {\n\t\t\ttry {\n\t\t\t\t$start = microtime(true);\n\t\t\t\t$this->$test();\n\t\t\t\... | [
"0.5874978",
"0.5389401",
"0.5316529",
"0.5300796",
"0.5260735",
"0.5176131",
"0.5176131",
"0.5176131",
"0.5176131",
"0.5176131",
"0.5176131",
"0.5023273",
"0.50149554",
"0.5011208",
"0.50109565",
"0.50109565",
"0.5004613",
"0.50040734",
"0.49730203",
"0.49503663",
"0.4899532... | 0.65538013 | 0 |
Returns count of activities. | public function countActivity($additionActivityFilter = array()); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getActivitesCount()\n\t{\n\t\treturn count($this->_activites);\n\t}",
"public function getActivityStats()\n {\n $stats = ['draft' => 0, 'completed' => 0, 'verified' => 0, 'published' => 0];\n $activities = $this->all();\n $statsMapping = [0 => 'draft', 1 => 'compl... | [
"0.7366634",
"0.70027536",
"0.69800127",
"0.6781743",
"0.6744602",
"0.67255354",
"0.6705756",
"0.66871417",
"0.6667025",
"0.66422683",
"0.66365707",
"0.66201913",
"0.6576708",
"0.6576708",
"0.65689987",
"0.652552",
"0.65120155",
"0.6503234",
"0.6502775",
"0.64780146",
"0.6473... | 0.70648336 | 1 |
Returns dropped count of associated entity activities. | public function getDroppedActivityCount(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function setDroppedActivityCount($count);",
"public function trashCount()\n\t{\n\t\treturn $this->getRemoved()->count();\n\t}",
"public function incrementDroppedActivityCount($count);",
"public function getNonRemovedCampaignCount()\n {\n return isset($this->non_removed_campaign_count) ? $thi... | [
"0.6213354",
"0.6108556",
"0.5911893",
"0.57951206",
"0.57355225",
"0.5702586",
"0.5702586",
"0.56899583",
"0.56019294",
"0.55918026",
"0.5408886",
"0.5373845",
"0.53328824",
"0.53328824",
"0.53303695",
"0.52903247",
"0.52301097",
"0.5229687",
"0.5215843",
"0.52064055",
"0.52... | 0.800133 | 0 |
Sets dropped count of associated entity activities. | public function setDroppedActivityCount($count); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function incrementDroppedActivityCount($count);",
"public function getDroppedActivityCount();",
"function update_activity_share_count_on_delete( $activities ) {\n\n\t\tforeach ( $activities as $activity ) {\n\n\t\t\tif ( $activity->type != 'activity_share' ) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t// Get... | [
"0.69578195",
"0.63761663",
"0.5242976",
"0.5216208",
"0.52016526",
"0.48643538",
"0.4833739",
"0.4831918",
"0.4831918",
"0.4807109",
"0.47517806",
"0.4742259",
"0.47127998",
"0.47088957",
"0.47069278",
"0.4659841",
"0.4628116",
"0.4603736",
"0.44942454",
"0.44857526",
"0.446... | 0.7434835 | 0 |
Return the active rock unit for a team, but only if the rock unit has been seen more recently than either SMS or HTTP | public static function team_active_rock($team) {
if (!self::db_connect()) return false;
$team_esc = self::$mysqli->real_escape_string($team);
$sql = "SELECT lastseen_rock_id "
."FROM teams "
."WHERE teamid = $team_esc "
."AND lastseen_rock_time > ifnull(lastseen_http_time, '1970-01-01') "
."AND lastseen_rock_time > ifnull(lastseen_sms_time,'1970-01-01') ";
$res = self::$mysqli->query($sql);
if (!$res) {
self::loge('Succinct', "get_active_rock: MySQL query error ".self::$mysqli->error);
return false;
}
$ret = false;
if ($row = $res->fetch_assoc()) {
$ret = $row["lastseen_rock_id"];
}
$res->free();
return $ret;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getHasTeam ()\r\n {\r\n return $this->hasTeam;\r\n }",
"function detectWinner(){\n\n $team1 = $this->getPlayerByGroup(SL_TEAM_1);\n $team2 = $this->getPlayerByGroup(SL_TEAM_2);\n\n // pve map, always return id of playing team\n if(empty($team1))return SL_TEAM_... | [
"0.5638971",
"0.55900234",
"0.5377969",
"0.5337279",
"0.5328879",
"0.5308899",
"0.52978903",
"0.5279032",
"0.52655256",
"0.5258335",
"0.52200806",
"0.5213414",
"0.5164846",
"0.5144098",
"0.51123744",
"0.5104296",
"0.50987417",
"0.5093361",
"0.5073278",
"0.5070281",
"0.5060870... | 0.71079266 | 0 |
Misc. Private Functions Whitelisted PHP eval function Thanks to Maurice: | function pabc_safe_eval($code) {
$status = 0;
//Language constructs
//$bl_constructs = array("print","echo","require","include","if","else", "while","for","switch","exit","break");
$bl_constructs = array("require","include", "while","for","switch","exit","break");
//Functions
$funcs = get_defined_functions();
$funcs = array_merge($funcs['internal'],$funcs['user']);
//Functions allowed
//Math cant be evil, can it?
$whitelist = array("if", "else", "endif","pow","exp","abs","sin","cos","tan");
//Remove whitelist elements
foreach($whitelist as $f) {
unset($funcs[array_search($f,$funcs)]);
}
//Append '(' to prevent confusion (e.g. array() and array_fill())
foreach($funcs as $key => $val) {
$funcs[$key] = $val."(";
}
$blacklist = array_merge($bl_constructs,$funcs);
//Check
$status=1;
foreach($blacklist as $nono) {
if(strpos($code,$nono) !== false) {
$status = 0;
die("You have PHP code that is not allowed in the Banner Cycler plugin. You may only use the following functions: " . implode(",", $whitelist) . ".");
//return 0;
}
}
//Eval
return @eval($code);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function evaluate();",
"function runfunction($funct,$arrayparam)\n{\n$params = implode(\",\",$arrayparam);\neval (\"$result = $this->ex->application->$funct($params);\");\nreturn $result;\n}",
"function mbtng_eval_php($filename) {\r\n\tglobal $tng_output;\r\n\tif ($tng_output == '') {\r\n\t\t$tng_folder... | [
"0.6479338",
"0.61658794",
"0.60715234",
"0.59665364",
"0.59299964",
"0.5770039",
"0.5671096",
"0.55910933",
"0.5574131",
"0.55590093",
"0.55582464",
"0.5523053",
"0.54851365",
"0.5443455",
"0.542739",
"0.5425836",
"0.53980947",
"0.5371323",
"0.53592235",
"0.5335713",
"0.5301... | 0.73592037 | 0 |
Get Customer Age At Ordered Time | public function getCustomerAgeAtOrderedTimeAttribute() {
return calcDateDiffYears($this->customer->birth_date, $this->date);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getAge()\r\n {\r\n\t\t$_birthdate = new Zend_Date();\r\n \t$_birthdate->setTimezone($this->getTimezone());\r\n if( null !== $this->getBirthday() ) {\r\n\t\t $_birthdate->set($this->getBirthday(),Zend_Date::ISO_8601);\r\n\t\t $_usertime = $this->getUserTime();\r\n\t\t $_usertim... | [
"0.6897946",
"0.6754273",
"0.67377114",
"0.6714165",
"0.6714165",
"0.6714165",
"0.6714165",
"0.6714165",
"0.6714165",
"0.6710314",
"0.66853786",
"0.666636",
"0.66551924",
"0.6632571",
"0.66159934",
"0.65287596",
"0.6519659",
"0.649745",
"0.64654773",
"0.6463329",
"0.6451811",... | 0.81722564 | 0 |
Exchanges a site code for client credentials from the proxy. | public function exchange_site_code( $site_code, $undelegated_code ) {
$response = wp_remote_post(
$this->url( self::OAUTH2_SITE_URI ),
array(
'body' => array(
'code' => $undelegated_code,
'site_code' => $site_code,
),
)
);
if ( is_wp_error( $response ) ) {
throw new Exception( $response->get_error_code() );
}
$raw_body = wp_remote_retrieve_body( $response );
$response_data = json_decode( $raw_body, true );
if ( ! $response_data || isset( $response_data['error'] ) ) {
throw new Exception(
isset( $response_data['error'] ) ? $response_data['error'] : 'failed_to_parse_response'
);
}
if ( ! isset( $response_data['site_id'], $response_data['site_secret'] ) ) {
throw new Exception( 'oauth_credentials_not_exist' );
}
return $response_data;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function exchange_code( $request ) {\r\n\t\t// Network flag.\r\n\t\t$network = (bool) $request->get_param( 'network' );\r\n\t\t// Access code.\r\n\t\t$access_code = $request->get_param( 'access_code' );\r\n\t\t// Client ID.\r\n\t\t$client_id = $request->get_param( 'client_id' );\r\n\r\n\t\t// Setup client i... | [
"0.5208693",
"0.5000519",
"0.4950098",
"0.48507336",
"0.48212066",
"0.48119366",
"0.48113468",
"0.48113468",
"0.48113468",
"0.48113468",
"0.48113468",
"0.48014826",
"0.47915462",
"0.4683997",
"0.4633144",
"0.45436662",
"0.4521736",
"0.45054108",
"0.44830048",
"0.44431907",
"0... | 0.6208932 | 0 |
Creates a filter that casts values to booleans. | public static function toBoolean(): \Closure
{
return function ($value) {
return is_bool($value) ? $value :
(is_scalar($value) ?
in_array(strtolower(trim(Strings::coerce($value))), Casts::$truthy, true)
: false);
};
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function testFilterBoolean()\n {\n $dirtyVal = 'This will be casted to true';\n $expectedResult = true;\n $filterInstance = new Filter();\n $cleanVal = $filterInstance->filterBool($dirtyVal);\n $this->assertEquals($expectedResult, $cleanVal);\n $dirtyFalseVal = 0... | [
"0.6978383",
"0.62456656",
"0.6190076",
"0.6059743",
"0.6043853",
"0.5876424",
"0.5863889",
"0.5832159",
"0.5794417",
"0.57632244",
"0.57403684",
"0.5740016",
"0.5654405",
"0.5637961",
"0.5625332",
"0.5597282",
"0.5589809",
"0.5575592",
"0.5568828",
"0.5565278",
"0.5535764",
... | 0.7103412 | 0 |
Creates a filter that casts values to integers. | public static function toInteger(): \Closure
{
return function ($value) {
return (int)(is_scalar($value) ? $value : Strings::coerce($value));
};
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function testFilterInt()\n {\n $dirtyVal = 'This will 4 be casted to 0';\n $expectedResult = 0;\n $filterInstance = new Filter();\n $cleanVal = $filterInstance->filterInt($dirtyVal);\n $this->assertEquals($expectedResult, $cleanVal);\n $dirtyTrueInt = '-5.9e-10ab... | [
"0.6612699",
"0.6276555",
"0.6046902",
"0.5921708",
"0.58029264",
"0.5739295",
"0.56027323",
"0.5589924",
"0.55889183",
"0.5583936",
"0.5563518",
"0.55383503",
"0.5468137",
"0.5444898",
"0.5420154",
"0.537694",
"0.5367667",
"0.5289763",
"0.52305347",
"0.52222306",
"0.52086025... | 0.64352363 | 1 |
Creates a filter that casts values to floats. | public static function toFloat(): \Closure
{
return function ($value) {
return (float)(is_scalar($value) ? $value : Strings::coerce($value));
};
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function testFilterFloat()\n {\n $dirtyVal = 'This will 4 be casted to 0';\n $expectedResult = 0;\n $filterInstance = new Filter();\n $cleanVal = $filterInstance->filterFloat($dirtyVal);\n $this->assertEquals($expectedResult, $cleanVal);\n $dirtyTrueFloat = '-5.9... | [
"0.7263462",
"0.66382074",
"0.6403475",
"0.63933384",
"0.6150876",
"0.5976194",
"0.59579575",
"0.59418094",
"0.58695304",
"0.58665276",
"0.58590335",
"0.58042175",
"0.56733763",
"0.56653243",
"0.5633743",
"0.55915624",
"0.5581113",
"0.5544134",
"0.5512645",
"0.54722524",
"0.5... | 0.69740534 | 1 |
Returns the valid ips for access | public static function validIps(): array
{
$ips = self::find()
->select('ip')
->asArray()
->all();
$valid_ips = ['127.0.0.1', '::1'];
if (!empty($ips)) {
foreach($ips as $key => $value) {
//$valid_ips[] = inet_ntop($value['ip']);
$valid_ips[] = $value['ip'];
}
}
return $valid_ips;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function validIpAddresses()\n {\n return array(\n array('12.34.56.78', 4),\n array('::12.34.56.78', 4),\n array('::1', 4),\n array('2001:db8::a60:8a2e:370:7334', 6),\n array('2001:0db8:0000:0000:0a60:8a2e:0370:7334', 6),\n array('12... | [
"0.734493",
"0.7312277",
"0.71294713",
"0.7046864",
"0.7045829",
"0.70209867",
"0.7000692",
"0.69707924",
"0.6968132",
"0.69335353",
"0.6879102",
"0.68375313",
"0.6832074",
"0.68028224",
"0.67415476",
"0.67302334",
"0.6701756",
"0.66961175",
"0.667808",
"0.6622734",
"0.661515... | 0.77896094 | 0 |
Generates Collection object from source file. | abstract protected function generateCollection(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private function parseSourceFile()\n {\n $this->setCollection(SourceFile::parse($this->source_file));\n }",
"protected function _generateDataCollection()\n\t{\n\n\t\t$this->_dataCollection = new Doctrine_Collection($this->getModelClassName());\n\n\t\t$directoryIterator = new DirectoryIterator(APPLIC... | [
"0.6554803",
"0.6110295",
"0.60080093",
"0.60011977",
"0.5808704",
"0.5498314",
"0.5487589",
"0.53929913",
"0.53611565",
"0.53524727",
"0.5315737",
"0.5315737",
"0.5305416",
"0.52819234",
"0.5256586",
"0.5240181",
"0.5202976",
"0.5171969",
"0.5170801",
"0.51359975",
"0.510731... | 0.6785671 | 0 |
Returns source file name. | abstract protected function getSourceFileName(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getSourceFilename()\n {\n return $this->_sourceFilename;\n }",
"public function getSourceFile() : string\n {\n return $this->getRecordStringKey('source_file');\n }",
"public function getSourceName()\n {\n return $this->sourceName;\n }",
"private function... | [
"0.80014807",
"0.79592633",
"0.77935475",
"0.72320896",
"0.7220363",
"0.7193317",
"0.7185268",
"0.7166764",
"0.7116709",
"0.70871675",
"0.706585",
"0.70273864",
"0.70169663",
"0.70129085",
"0.69862175",
"0.69757366",
"0.69757366",
"0.69757366",
"0.6951283",
"0.69343233",
"0.6... | 0.82712966 | 0 |
Returns relative path to source dir. | private function getSourceDirPath()
{
return __DIR__ . DIRECTORY_SEPARATOR .
'..' . DIRECTORY_SEPARATOR . '..' .
DIRECTORY_SEPARATOR . self::SOURCES_DIR_NAME;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getSourcePath()\r\n {\r\n return $this->dir->getRelativePath($this->subDir);\r\n }",
"public function getSourceDir();",
"public static function getSourcePath(): string\n {\n // Get the ROOT path, which will also throw the PluginNotInitializedException if necessary.\n ... | [
"0.8193739",
"0.8141029",
"0.79025537",
"0.78276527",
"0.7570097",
"0.75435555",
"0.7428266",
"0.7327029",
"0.72571325",
"0.72007656",
"0.6993505",
"0.6984486",
"0.69544876",
"0.6908204",
"0.684041",
"0.67743194",
"0.6758183",
"0.6708224",
"0.67037517",
"0.6676543",
"0.665504... | 0.8216552 | 0 |
Returns full path to source file. | private function getSourceFilePath()
{
return $this->getSourceDirPath() . DIRECTORY_SEPARATOR .
trim($this->getSourceFileName(), DIRECTORY_SEPARATOR);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected function _source_path ()\n {\n return __FILE__;\n }",
"public function getSourcePath(): string\n {\n\t\t// lazy init\n\n\t\tif($this->sourcePath === null) {\n\n\t\t\t$this->sourcePath =\n\t\t\t\t$this->rootPath .\n\t\t\t\t'src' . DIRECTORY_SEPARATOR;\n\n\t\t}\n\n\t\treturn $this->sourcePath;\n\... | [
"0.8347699",
"0.8203637",
"0.81360877",
"0.7870853",
"0.78510225",
"0.7765441",
"0.77363485",
"0.7697622",
"0.7668629",
"0.7518203",
"0.7418571",
"0.7397055",
"0.7390306",
"0.73295116",
"0.73126775",
"0.7292406",
"0.7279429",
"0.7194752",
"0.71835726",
"0.7142491",
"0.7079549... | 0.82907075 | 1 |
setLayoutzones : Setter pour layoutzones | public function setLayoutzones($layoutzones)
{
$this->layoutzones = $layoutzones;
return $this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getLayoutzones()\n {\n return $this->layoutzones;\n }",
"public function setupConfig() {\n\t\t// Initialize the $config\n\t\t$this->config = array(\n\t\t\t'zones' => array(\n\t\t\t\t'top' => array( // the zone's id\n\t\t\t\t\t'order' => 10,\n\t\t\t\t\t// We will u... | [
"0.66956514",
"0.5705486",
"0.5703953",
"0.56335807",
"0.55536765",
"0.5501626",
"0.5474773",
"0.54468167",
"0.5345591",
"0.532106",
"0.53099483",
"0.5296387",
"0.5290364",
"0.5258248",
"0.5253253",
"0.5247923",
"0.5241291",
"0.5236156",
"0.52343935",
"0.5231521",
"0.51473486... | 0.6530444 | 1 |
getLayoutzones : Getter pour layoutzones | public function getLayoutzones()
{
return $this->layoutzones;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getPageMainZones()\n {\n $result = array();\n\n if (null === $this->getLayout()) {\n return $result;\n }\n\n $currentpageRootZones = $this->getContentSet();\n $layoutZones = $this->getLayout()->getZones();\n $count = count($layoutZones);\n ... | [
"0.65759635",
"0.63782924",
"0.62602067",
"0.60058063",
"0.60058063",
"0.5979903",
"0.5833914",
"0.57584476",
"0.5733606",
"0.5733606",
"0.57091326",
"0.56724536",
"0.56724536",
"0.5663513",
"0.5606224",
"0.55627644",
"0.55392337",
"0.5517877",
"0.5501636",
"0.5493403",
"0.54... | 0.8342708 | 0 |
Create order payment entity with status of STATUS_CREATED. It returns a persisted payment entity. Then we use this payment entity in payment service to create and send a payment request. | public function createOrderPayment(Order $order, $paymentType = OrderPayment::TYPE_PAY_PAL)
{
// Call total price
$totalPrice = $toBePay = $order->callTotalPrice();
if (null !== $order->getDeposit() && $order->isCustomOrder()) {
$toBePay = $order->getDeposit();
}
// Make a payment object
$payment = $this->getOrderPayment();
$payment->setStatus(OrderPayment::STATUS_CREATED);
$payment->setOrder($order);
$payment->setCurrency($order->getCurrency());
$payment->setUser($order->getUser());
$payment->setType($paymentType);
$payment->setContent(array());
$payment->setValue($toBePay);
$itemList = $payment->getPaymentSerializer()->serialize($order);
$payment->setItemList($itemList);
// Update order total price
$order->setTotalPrice($totalPrice);
$order->addPayment($payment);
$this->appService->persistEntity($payment);
$this->appService->persistEntity($order);
$this->appService->flushEntityManager();
return $payment;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function createOrder()\n {\n $user = auth('api')->user()->id;\n\n $cart = Cart::firstOrCreate([\n 'user_id' => $user,\n 'active' => 1\n ]);\n\n $order = Order::firstOrCreate([\n 'cart_id' => $cart->id,\n 'order_status_id' => 1,\n 'payment_method_id' => 1\n ]);\n\n ... | [
"0.6671451",
"0.66130155",
"0.65982306",
"0.65766853",
"0.643061",
"0.6413645",
"0.6385651",
"0.63763475",
"0.6262058",
"0.6222899",
"0.61987746",
"0.6164763",
"0.6163788",
"0.6101796",
"0.6095613",
"0.6080452",
"0.60454005",
"0.6039397",
"0.6026943",
"0.6025143",
"0.6017938"... | 0.7065147 | 0 |
/ Conforme documentacao wtg_cargo( cargo_id int not null auto increment, car_nome varchar(255) ) Run the migrations. | public function up()
{
Schema::create('wtg_cargo', function (Blueprint $table) {
$table->increments('cargo_id');
$table->char('car_nome',255);
$table->timestamps(); /**/
});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function opcion__migrar_ddl()\n\t{\n\t\t$this->get_nucleo()->migrar_ddl();\n\t}",
"public function up()\n {\n Schema::create('ciclos', function (Blueprint $table) {\n $table->increments('id');\n $table->string('nombre');\n $table->text('descripcion');\n $tabl... | [
"0.6435148",
"0.64212835",
"0.64004326",
"0.6395078",
"0.6310421",
"0.6292999",
"0.6279675",
"0.62448823",
"0.62446374",
"0.6242395",
"0.6218295",
"0.621624",
"0.61832845",
"0.61754423",
"0.61151576",
"0.61051923",
"0.61046404",
"0.60777104",
"0.6071105",
"0.60655653",
"0.605... | 0.7684434 | 0 |
Public grid actions. Update NavigationMenuItem | function updateNavigationMenuItem($args, $request) {
$navigationMenuItemId = (int)$request->getUserVar('navigationMenuItemId');
$navigationMenuId = (int)$request->getUserVar('navigationMenuId');
$navigationMenuIdParent = (int)$request->getUserVar('navigationMenuIdParent');
$context = $request->getContext();
$contextId = CONTEXT_ID_NONE;
if ($context) {
$contextId = $context->getId();
}
import('lib.pkp.controllers.grid.navigationMenus.form.NavigationMenuItemsForm');
$navigationMenuItemForm = new NavigationMenuItemsForm($contextId, $navigationMenuItemId, $navigationMenuIdParent);
$navigationMenuItemForm->readInputData();
if ($navigationMenuItemForm->validate()) {
$navigationMenuItemForm->execute($request);
if ($navigationMenuItemId) {
// Successful edit of an existing $navigationMenuItem.
$notificationLocaleKey = 'notification.editedNavigationMenuItem';
} else {
// Successful added a new $navigationMenuItemForm.
$notificationLocaleKey = 'notification.addedNavigationMenuItem';
}
// Record the notification to user.
$notificationManager = new NotificationManager();
$user = $request->getUser();
$notificationManager->createTrivialNotification($user->getId(), NOTIFICATION_TYPE_SUCCESS, array('contents' => __($notificationLocaleKey)));
// Prepare the grid row data.
return DAO::getDataChangedEvent($navigationMenuItemId);
} else {
return new JSONMessage(false);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function admin_updatemenu()\n {\n $this->model_system->update_menu();\n }",
"public function menuAction()\n {\n $orders = $this->params('order');\n $model = $this->getModel('page');\n foreach ($orders as $id => $value) {\n $model->update(\n [... | [
"0.6893533",
"0.68513423",
"0.6540979",
"0.65233886",
"0.6493757",
"0.6301986",
"0.6289335",
"0.62517804",
"0.6246939",
"0.62336934",
"0.6220108",
"0.62185216",
"0.61666024",
"0.6157359",
"0.6128447",
"0.61079466",
"0.60872823",
"0.6049545",
"0.60140085",
"0.60134304",
"0.600... | 0.6880649 | 1 |
Returns a new ChildPricingQuery object. | public static function create($modelAlias = null, Criteria $criteria = null)
{
if ($criteria instanceof ChildPricingQuery) {
return $criteria;
}
$query = new ChildPricingQuery();
if (null !== $modelAlias) {
$query->setModelAlias($modelAlias);
}
if ($criteria instanceof Criteria) {
$query->mergeWith($criteria);
}
return $query;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected function getPricing() {\n if (!$this->_pricing) {\n $this->_pricing = new Pricing($this);\n }\n return $this->_pricing;\n }",
"public function newQueryBuilder()\n {\n return new VoucherInstanceQuery($this->adapter,$this);\n }",
"public function pricings... | [
"0.6365031",
"0.58151",
"0.57214594",
"0.5547176",
"0.542878",
"0.542147",
"0.53754556",
"0.5351376",
"0.532607",
"0.5283586",
"0.52379286",
"0.52166766",
"0.5176635",
"0.5110708",
"0.5037017",
"0.50273657",
"0.49987563",
"0.49971345",
"0.49914426",
"0.49608904",
"0.49526012"... | 0.6130236 | 1 |
Filter the query on the recno column Example usage: $query>filterByRecno(1234); // WHERE recno = 1234 $query>filterByRecno(array(12, 34)); // WHERE recno IN (12, 34) $query>filterByRecno(array('min' => 12)); // WHERE recno > 12 | public function filterByRecno($recno = null, $comparison = null)
{
if (is_array($recno)) {
$useMinMax = false;
if (isset($recno['min'])) {
$this->addUsingAlias(PricingTableMap::COL_RECNO, $recno['min'], Criteria::GREATER_EQUAL);
$useMinMax = true;
}
if (isset($recno['max'])) {
$this->addUsingAlias(PricingTableMap::COL_RECNO, $recno['max'], Criteria::LESS_EQUAL);
$useMinMax = true;
}
if ($useMinMax) {
return $this;
}
if (null === $comparison) {
$comparison = Criteria::IN;
}
}
return $this->addUsingAlias(PricingTableMap::COL_RECNO, $recno, $comparison);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function filterByRecno($recno = null, $comparison = null)\n {\n if (is_array($recno)) {\n $useMinMax = false;\n if (isset($recno['min'])) {\n $this->addUsingAlias(OrdrhedTableMap::COL_RECNO, $recno['min'], Criteria::GREATER_EQUAL);\n $useMinMax =... | [
"0.6532791",
"0.5413955",
"0.5230459",
"0.5084088",
"0.5045667",
"0.4885372",
"0.48693728",
"0.4868028",
"0.48501492",
"0.4848061",
"0.4790543",
"0.47506058",
"0.47416663",
"0.47194183",
"0.47071606",
"0.45759133",
"0.45745218",
"0.45718223",
"0.4568268",
"0.45664158",
"0.454... | 0.6535524 | 0 |
Filter the query on the priceqty1 column Example usage: $query>filterByPriceqty1(1234); // WHERE priceqty1 = 1234 $query>filterByPriceqty1(array(12, 34)); // WHERE priceqty1 IN (12, 34) $query>filterByPriceqty1(array('min' => 12)); // WHERE priceqty1 > 12 | public function filterByPriceqty1($priceqty1 = null, $comparison = null)
{
if (is_array($priceqty1)) {
$useMinMax = false;
if (isset($priceqty1['min'])) {
$this->addUsingAlias(PricingTableMap::COL_PRICEQTY1, $priceqty1['min'], Criteria::GREATER_EQUAL);
$useMinMax = true;
}
if (isset($priceqty1['max'])) {
$this->addUsingAlias(PricingTableMap::COL_PRICEQTY1, $priceqty1['max'], Criteria::LESS_EQUAL);
$useMinMax = true;
}
if ($useMinMax) {
return $this;
}
if (null === $comparison) {
$comparison = Criteria::IN;
}
}
return $this->addUsingAlias(PricingTableMap::COL_PRICEQTY1, $priceqty1, $comparison);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function filterByPriceprice1($priceprice1 = null, $comparison = null)\n {\n if (is_array($priceprice1)) {\n $useMinMax = false;\n if (isset($priceprice1['min'])) {\n $this->addUsingAlias(PricingTableMap::COL_PRICEPRICE1, $priceprice1['min'], Criteria::GREATER_E... | [
"0.58859575",
"0.5742717",
"0.5514272",
"0.5510968",
"0.54731256",
"0.54434204",
"0.5437379",
"0.5317191",
"0.52843666",
"0.5276381",
"0.5184308",
"0.5118972",
"0.5103385",
"0.5084061",
"0.50480396",
"0.5013557",
"0.5004472",
"0.4995556",
"0.4992214",
"0.4957326",
"0.49556735... | 0.6836501 | 0 |
Filter the query on the priceqty2 column Example usage: $query>filterByPriceqty2(1234); // WHERE priceqty2 = 1234 $query>filterByPriceqty2(array(12, 34)); // WHERE priceqty2 IN (12, 34) $query>filterByPriceqty2(array('min' => 12)); // WHERE priceqty2 > 12 | public function filterByPriceqty2($priceqty2 = null, $comparison = null)
{
if (is_array($priceqty2)) {
$useMinMax = false;
if (isset($priceqty2['min'])) {
$this->addUsingAlias(PricingTableMap::COL_PRICEQTY2, $priceqty2['min'], Criteria::GREATER_EQUAL);
$useMinMax = true;
}
if (isset($priceqty2['max'])) {
$this->addUsingAlias(PricingTableMap::COL_PRICEQTY2, $priceqty2['max'], Criteria::LESS_EQUAL);
$useMinMax = true;
}
if ($useMinMax) {
return $this;
}
if (null === $comparison) {
$comparison = Criteria::IN;
}
}
return $this->addUsingAlias(PricingTableMap::COL_PRICEQTY2, $priceqty2, $comparison);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function filterByPriceqty1($priceqty1 = null, $comparison = null)\n {\n if (is_array($priceqty1)) {\n $useMinMax = false;\n if (isset($priceqty1['min'])) {\n $this->addUsingAlias(PricingTableMap::COL_PRICEQTY1, $priceqty1['min'], Criteria::GREATER_EQUAL);\n ... | [
"0.6077612",
"0.5684474",
"0.55558205",
"0.55241287",
"0.5372257",
"0.530704",
"0.52826715",
"0.5246281",
"0.51648515",
"0.5122202",
"0.5090885",
"0.50822544",
"0.5070832",
"0.50523514",
"0.50449926",
"0.5018237",
"0.50070727",
"0.49839458",
"0.4944926",
"0.49333623",
"0.4928... | 0.6465848 | 0 |
Filter the query on the priceqty3 column Example usage: $query>filterByPriceqty3(1234); // WHERE priceqty3 = 1234 $query>filterByPriceqty3(array(12, 34)); // WHERE priceqty3 IN (12, 34) $query>filterByPriceqty3(array('min' => 12)); // WHERE priceqty3 > 12 | public function filterByPriceqty3($priceqty3 = null, $comparison = null)
{
if (is_array($priceqty3)) {
$useMinMax = false;
if (isset($priceqty3['min'])) {
$this->addUsingAlias(PricingTableMap::COL_PRICEQTY3, $priceqty3['min'], Criteria::GREATER_EQUAL);
$useMinMax = true;
}
if (isset($priceqty3['max'])) {
$this->addUsingAlias(PricingTableMap::COL_PRICEQTY3, $priceqty3['max'], Criteria::LESS_EQUAL);
$useMinMax = true;
}
if ($useMinMax) {
return $this;
}
if (null === $comparison) {
$comparison = Criteria::IN;
}
}
return $this->addUsingAlias(PricingTableMap::COL_PRICEQTY3, $priceqty3, $comparison);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function addQtyProductLowstockGridColumnFiltersToCollection($collection, $column) {\n\t\t\t$field = ($column->getFilterIndex( ) ? $column->getFilterIndex( ) : $column->getIndex( ));\n\t\t\t$condition = $column->getFilter( )->getCondition( );\n\n\t\t\tif (( $field && empty( $$condition ) )) {\n\t\t\t\t$adapter... | [
"0.5653287",
"0.55586284",
"0.5488448",
"0.5482666",
"0.5448373",
"0.5424143",
"0.52922225",
"0.5252394",
"0.52187407",
"0.52120465",
"0.51032066",
"0.50878596",
"0.5057585",
"0.50487155",
"0.5047168",
"0.50367284",
"0.50165576",
"0.49992442",
"0.49622378",
"0.49613595",
"0.4... | 0.6382353 | 0 |
Filter the query on the priceqty4 column Example usage: $query>filterByPriceqty4(1234); // WHERE priceqty4 = 1234 $query>filterByPriceqty4(array(12, 34)); // WHERE priceqty4 IN (12, 34) $query>filterByPriceqty4(array('min' => 12)); // WHERE priceqty4 > 12 | public function filterByPriceqty4($priceqty4 = null, $comparison = null)
{
if (is_array($priceqty4)) {
$useMinMax = false;
if (isset($priceqty4['min'])) {
$this->addUsingAlias(PricingTableMap::COL_PRICEQTY4, $priceqty4['min'], Criteria::GREATER_EQUAL);
$useMinMax = true;
}
if (isset($priceqty4['max'])) {
$this->addUsingAlias(PricingTableMap::COL_PRICEQTY4, $priceqty4['max'], Criteria::LESS_EQUAL);
$useMinMax = true;
}
if ($useMinMax) {
return $this;
}
if (null === $comparison) {
$comparison = Criteria::IN;
}
}
return $this->addUsingAlias(PricingTableMap::COL_PRICEQTY4, $priceqty4, $comparison);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function filterByPriceprice4($priceprice4 = null, $comparison = null)\n {\n if (is_array($priceprice4)) {\n $useMinMax = false;\n if (isset($priceprice4['min'])) {\n $this->addUsingAlias(PricingTableMap::COL_PRICEPRICE4, $priceprice4['min'], Criteria::GREATER_E... | [
"0.58563846",
"0.5671803",
"0.5344777",
"0.53259814",
"0.5198488",
"0.5180826",
"0.51212525",
"0.51096994",
"0.5007626",
"0.49773562",
"0.4967577",
"0.49663597",
"0.49534026",
"0.49363586",
"0.49283937",
"0.49258944",
"0.49083582",
"0.4898171",
"0.48778448",
"0.48688596",
"0.... | 0.65559655 | 0 |
Filter the query on the priceqty5 column Example usage: $query>filterByPriceqty5(1234); // WHERE priceqty5 = 1234 $query>filterByPriceqty5(array(12, 34)); // WHERE priceqty5 IN (12, 34) $query>filterByPriceqty5(array('min' => 12)); // WHERE priceqty5 > 12 | public function filterByPriceqty5($priceqty5 = null, $comparison = null)
{
if (is_array($priceqty5)) {
$useMinMax = false;
if (isset($priceqty5['min'])) {
$this->addUsingAlias(PricingTableMap::COL_PRICEQTY5, $priceqty5['min'], Criteria::GREATER_EQUAL);
$useMinMax = true;
}
if (isset($priceqty5['max'])) {
$this->addUsingAlias(PricingTableMap::COL_PRICEQTY5, $priceqty5['max'], Criteria::LESS_EQUAL);
$useMinMax = true;
}
if ($useMinMax) {
return $this;
}
if (null === $comparison) {
$comparison = Criteria::IN;
}
}
return $this->addUsingAlias(PricingTableMap::COL_PRICEQTY5, $priceqty5, $comparison);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function filterByPriceprice5($priceprice5 = null, $comparison = null)\n {\n if (is_array($priceprice5)) {\n $useMinMax = false;\n if (isset($priceprice5['min'])) {\n $this->addUsingAlias(PricingTableMap::COL_PRICEPRICE5, $priceprice5['min'], Criteria::GREATER_E... | [
"0.60554343",
"0.56200236",
"0.545538",
"0.54199946",
"0.53770536",
"0.53534347",
"0.532303",
"0.52682036",
"0.52134085",
"0.51012784",
"0.50475407",
"0.5043806",
"0.49839872",
"0.49825898",
"0.49682167",
"0.49455848",
"0.49419478",
"0.49405134",
"0.493959",
"0.49375707",
"0.... | 0.6609876 | 0 |
Filter the query on the priceqty6 column Example usage: $query>filterByPriceqty6(1234); // WHERE priceqty6 = 1234 $query>filterByPriceqty6(array(12, 34)); // WHERE priceqty6 IN (12, 34) $query>filterByPriceqty6(array('min' => 12)); // WHERE priceqty6 > 12 | public function filterByPriceqty6($priceqty6 = null, $comparison = null)
{
if (is_array($priceqty6)) {
$useMinMax = false;
if (isset($priceqty6['min'])) {
$this->addUsingAlias(PricingTableMap::COL_PRICEQTY6, $priceqty6['min'], Criteria::GREATER_EQUAL);
$useMinMax = true;
}
if (isset($priceqty6['max'])) {
$this->addUsingAlias(PricingTableMap::COL_PRICEQTY6, $priceqty6['max'], Criteria::LESS_EQUAL);
$useMinMax = true;
}
if ($useMinMax) {
return $this;
}
if (null === $comparison) {
$comparison = Criteria::IN;
}
}
return $this->addUsingAlias(PricingTableMap::COL_PRICEQTY6, $priceqty6, $comparison);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function filterByPriceprice6($priceprice6 = null, $comparison = null)\n {\n if (is_array($priceprice6)) {\n $useMinMax = false;\n if (isset($priceprice6['min'])) {\n $this->addUsingAlias(PricingTableMap::COL_PRICEPRICE6, $priceprice6['min'], Criteria::GREATER_E... | [
"0.59423816",
"0.56241906",
"0.5564612",
"0.54148537",
"0.5392029",
"0.53834856",
"0.53234196",
"0.53044474",
"0.52612823",
"0.52513194",
"0.5185817",
"0.5034433",
"0.5026029",
"0.501712",
"0.49947274",
"0.49791148",
"0.4968728",
"0.49458176",
"0.48935807",
"0.48931372",
"0.4... | 0.6604432 | 0 |
Filter the query on the priceprice1 column Example usage: $query>filterByPriceprice1(1234); // WHERE priceprice1 = 1234 $query>filterByPriceprice1(array(12, 34)); // WHERE priceprice1 IN (12, 34) $query>filterByPriceprice1(array('min' => 12)); // WHERE priceprice1 > 12 | public function filterByPriceprice1($priceprice1 = null, $comparison = null)
{
if (is_array($priceprice1)) {
$useMinMax = false;
if (isset($priceprice1['min'])) {
$this->addUsingAlias(PricingTableMap::COL_PRICEPRICE1, $priceprice1['min'], Criteria::GREATER_EQUAL);
$useMinMax = true;
}
if (isset($priceprice1['max'])) {
$this->addUsingAlias(PricingTableMap::COL_PRICEPRICE1, $priceprice1['max'], Criteria::LESS_EQUAL);
$useMinMax = true;
}
if ($useMinMax) {
return $this;
}
if (null === $comparison) {
$comparison = Criteria::IN;
}
}
return $this->addUsingAlias(PricingTableMap::COL_PRICEPRICE1, $priceprice1, $comparison);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function filterByPrice($price = null, $comparison = null)\n {\n if (is_array($price)) {\n $useMinMax = false;\n if (isset($price['min'])) {\n $this->addUsingAlias(AliStockcardSTableMap::COL_PRICE, $price['min'], Criteria::GREATER_EQUAL);\n $useMi... | [
"0.6311694",
"0.60215217",
"0.59655166",
"0.5952945",
"0.58758694",
"0.5871904",
"0.58199877",
"0.5805864",
"0.5698579",
"0.56817186",
"0.56672585",
"0.54635525",
"0.53667545",
"0.53464895",
"0.5331031",
"0.5320448",
"0.53082335",
"0.5262516",
"0.52613074",
"0.52600956",
"0.5... | 0.7067865 | 0 |
Filter the query on the priceprice2 column Example usage: $query>filterByPriceprice2(1234); // WHERE priceprice2 = 1234 $query>filterByPriceprice2(array(12, 34)); // WHERE priceprice2 IN (12, 34) $query>filterByPriceprice2(array('min' => 12)); // WHERE priceprice2 > 12 | public function filterByPriceprice2($priceprice2 = null, $comparison = null)
{
if (is_array($priceprice2)) {
$useMinMax = false;
if (isset($priceprice2['min'])) {
$this->addUsingAlias(PricingTableMap::COL_PRICEPRICE2, $priceprice2['min'], Criteria::GREATER_EQUAL);
$useMinMax = true;
}
if (isset($priceprice2['max'])) {
$this->addUsingAlias(PricingTableMap::COL_PRICEPRICE2, $priceprice2['max'], Criteria::LESS_EQUAL);
$useMinMax = true;
}
if ($useMinMax) {
return $this;
}
if (null === $comparison) {
$comparison = Criteria::IN;
}
}
return $this->addUsingAlias(PricingTableMap::COL_PRICEPRICE2, $priceprice2, $comparison);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function filterByPrice($price = null, $comparison = null)\n {\n if (is_array($price)) {\n $useMinMax = false;\n if (isset($price['min'])) {\n $this->addUsingAlias(AliStockcardSTableMap::COL_PRICE, $price['min'], Criteria::GREATER_EQUAL);\n $useMi... | [
"0.65875053",
"0.64104015",
"0.6189843",
"0.61205596",
"0.6052785",
"0.6008069",
"0.5860448",
"0.5852704",
"0.5750963",
"0.57297575",
"0.5720766",
"0.56571233",
"0.561495",
"0.5548911",
"0.54439735",
"0.53425026",
"0.5322047",
"0.5283552",
"0.5244238",
"0.52384794",
"0.522461... | 0.6660315 | 0 |
Filter the query on the priceprice3 column Example usage: $query>filterByPriceprice3(1234); // WHERE priceprice3 = 1234 $query>filterByPriceprice3(array(12, 34)); // WHERE priceprice3 IN (12, 34) $query>filterByPriceprice3(array('min' => 12)); // WHERE priceprice3 > 12 | public function filterByPriceprice3($priceprice3 = null, $comparison = null)
{
if (is_array($priceprice3)) {
$useMinMax = false;
if (isset($priceprice3['min'])) {
$this->addUsingAlias(PricingTableMap::COL_PRICEPRICE3, $priceprice3['min'], Criteria::GREATER_EQUAL);
$useMinMax = true;
}
if (isset($priceprice3['max'])) {
$this->addUsingAlias(PricingTableMap::COL_PRICEPRICE3, $priceprice3['max'], Criteria::LESS_EQUAL);
$useMinMax = true;
}
if ($useMinMax) {
return $this;
}
if (null === $comparison) {
$comparison = Criteria::IN;
}
}
return $this->addUsingAlias(PricingTableMap::COL_PRICEPRICE3, $priceprice3, $comparison);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function filterByPrice($price = null, $comparison = null)\n {\n if (is_array($price)) {\n $useMinMax = false;\n if (isset($price['min'])) {\n $this->addUsingAlias(AliStockcardSTableMap::COL_PRICE, $price['min'], Criteria::GREATER_EQUAL);\n $useMi... | [
"0.61350316",
"0.5944129",
"0.58886206",
"0.58128184",
"0.57100296",
"0.56980646",
"0.5681674",
"0.56291133",
"0.55972487",
"0.5563382",
"0.5547529",
"0.5534569",
"0.55047846",
"0.54052716",
"0.5396905",
"0.53429186",
"0.5311713",
"0.52722806",
"0.5220887",
"0.5208298",
"0.52... | 0.6318187 | 0 |
Filter the query on the priceprice4 column Example usage: $query>filterByPriceprice4(1234); // WHERE priceprice4 = 1234 $query>filterByPriceprice4(array(12, 34)); // WHERE priceprice4 IN (12, 34) $query>filterByPriceprice4(array('min' => 12)); // WHERE priceprice4 > 12 | public function filterByPriceprice4($priceprice4 = null, $comparison = null)
{
if (is_array($priceprice4)) {
$useMinMax = false;
if (isset($priceprice4['min'])) {
$this->addUsingAlias(PricingTableMap::COL_PRICEPRICE4, $priceprice4['min'], Criteria::GREATER_EQUAL);
$useMinMax = true;
}
if (isset($priceprice4['max'])) {
$this->addUsingAlias(PricingTableMap::COL_PRICEPRICE4, $priceprice4['max'], Criteria::LESS_EQUAL);
$useMinMax = true;
}
if ($useMinMax) {
return $this;
}
if (null === $comparison) {
$comparison = Criteria::IN;
}
}
return $this->addUsingAlias(PricingTableMap::COL_PRICEPRICE4, $priceprice4, $comparison);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function filterByPrice($min_max){\n $min_max_array = explode(', ', $min_max);\n $min_price = $min_max_array[0];\n $max_price = $min_max_array[1];\n\n $products = DB::table('products')\n ->join('subcategories', 'products.subcategory_id', '=', 'subcategories.id')\n ->... | [
"0.6117331",
"0.6016927",
"0.5939695",
"0.5905368",
"0.5847611",
"0.58250403",
"0.55680746",
"0.5490506",
"0.54861367",
"0.5451746",
"0.53948635",
"0.53817534",
"0.53427136",
"0.5342223",
"0.53155154",
"0.5314047",
"0.5275442",
"0.5273091",
"0.52535105",
"0.52111685",
"0.5186... | 0.6713224 | 0 |
Filter the query on the priceprice5 column Example usage: $query>filterByPriceprice5(1234); // WHERE priceprice5 = 1234 $query>filterByPriceprice5(array(12, 34)); // WHERE priceprice5 IN (12, 34) $query>filterByPriceprice5(array('min' => 12)); // WHERE priceprice5 > 12 | public function filterByPriceprice5($priceprice5 = null, $comparison = null)
{
if (is_array($priceprice5)) {
$useMinMax = false;
if (isset($priceprice5['min'])) {
$this->addUsingAlias(PricingTableMap::COL_PRICEPRICE5, $priceprice5['min'], Criteria::GREATER_EQUAL);
$useMinMax = true;
}
if (isset($priceprice5['max'])) {
$this->addUsingAlias(PricingTableMap::COL_PRICEPRICE5, $priceprice5['max'], Criteria::LESS_EQUAL);
$useMinMax = true;
}
if ($useMinMax) {
return $this;
}
if (null === $comparison) {
$comparison = Criteria::IN;
}
}
return $this->addUsingAlias(PricingTableMap::COL_PRICEPRICE5, $priceprice5, $comparison);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function filterByPrice($price = null, $comparison = null)\n {\n if (is_array($price)) {\n $useMinMax = false;\n if (isset($price['min'])) {\n $this->addUsingAlias(AliStockcardSTableMap::COL_PRICE, $price['min'], Criteria::GREATER_EQUAL);\n $useMi... | [
"0.6020473",
"0.58238256",
"0.57471293",
"0.5710933",
"0.57036",
"0.5604733",
"0.5553583",
"0.5486413",
"0.5465589",
"0.54184943",
"0.5407972",
"0.52850044",
"0.52670103",
"0.5248118",
"0.52109474",
"0.5206463",
"0.5196958",
"0.5173515",
"0.51371",
"0.511949",
"0.50991654",
... | 0.6685939 | 0 |
Filter the query on the priceprice6 column Example usage: $query>filterByPriceprice6(1234); // WHERE priceprice6 = 1234 $query>filterByPriceprice6(array(12, 34)); // WHERE priceprice6 IN (12, 34) $query>filterByPriceprice6(array('min' => 12)); // WHERE priceprice6 > 12 | public function filterByPriceprice6($priceprice6 = null, $comparison = null)
{
if (is_array($priceprice6)) {
$useMinMax = false;
if (isset($priceprice6['min'])) {
$this->addUsingAlias(PricingTableMap::COL_PRICEPRICE6, $priceprice6['min'], Criteria::GREATER_EQUAL);
$useMinMax = true;
}
if (isset($priceprice6['max'])) {
$this->addUsingAlias(PricingTableMap::COL_PRICEPRICE6, $priceprice6['max'], Criteria::LESS_EQUAL);
$useMinMax = true;
}
if ($useMinMax) {
return $this;
}
if (null === $comparison) {
$comparison = Criteria::IN;
}
}
return $this->addUsingAlias(PricingTableMap::COL_PRICEPRICE6, $priceprice6, $comparison);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function filterByPrice($price = null, $comparison = null)\n {\n if (is_array($price)) {\n $useMinMax = false;\n if (isset($price['min'])) {\n $this->addUsingAlias(AliStockcardSTableMap::COL_PRICE, $price['min'], Criteria::GREATER_EQUAL);\n $useMi... | [
"0.60593176",
"0.6037443",
"0.5964774",
"0.5831931",
"0.56563115",
"0.5616361",
"0.5571299",
"0.5530565",
"0.5526873",
"0.55247396",
"0.55202746",
"0.5416766",
"0.540308",
"0.53787106",
"0.529336",
"0.5166111",
"0.5137056",
"0.5131545",
"0.5020816",
"0.50152516",
"0.5004545",... | 0.6702876 | 0 |
Filter the query on the listprice column Example usage: $query>filterByListprice(1234); // WHERE listprice = 1234 $query>filterByListprice(array(12, 34)); // WHERE listprice IN (12, 34) $query>filterByListprice(array('min' => 12)); // WHERE listprice > 12 | public function filterByListprice($listprice = null, $comparison = null)
{
if (is_array($listprice)) {
$useMinMax = false;
if (isset($listprice['min'])) {
$this->addUsingAlias(PricingTableMap::COL_LISTPRICE, $listprice['min'], Criteria::GREATER_EQUAL);
$useMinMax = true;
}
if (isset($listprice['max'])) {
$this->addUsingAlias(PricingTableMap::COL_LISTPRICE, $listprice['max'], Criteria::LESS_EQUAL);
$useMinMax = true;
}
if ($useMinMax) {
return $this;
}
if (null === $comparison) {
$comparison = Criteria::IN;
}
}
return $this->addUsingAlias(PricingTableMap::COL_LISTPRICE, $listprice, $comparison);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function filterByPrice($price = null, $comparison = null)\n {\n if (is_array($price)) {\n $useMinMax = false;\n if (isset($price['min'])) {\n $this->addUsingAlias(AliStockcardSTableMap::COL_PRICE, $price['min'], Criteria::GREATER_EQUAL);\n $useMi... | [
"0.62205553",
"0.60829955",
"0.58947027",
"0.5794127",
"0.5778634",
"0.57442653",
"0.57058793",
"0.5660367",
"0.56423575",
"0.55796784",
"0.55561405",
"0.55469155",
"0.5538994",
"0.5496423",
"0.5494358",
"0.5428786",
"0.53025377",
"0.52882373",
"0.52876294",
"0.5236553",
"0.5... | 0.6355587 | 0 |
Filter the query on the name2 column Example usage: $query>filterByName2('fooValue'); // WHERE name2 = 'fooValue' $query>filterByName2('%fooValue%', Criteria::LIKE); // WHERE name2 LIKE '%fooValue%' | public function filterByName2($name2 = null, $comparison = null)
{
if (null === $comparison) {
if (is_array($name2)) {
$comparison = Criteria::IN;
}
}
return $this->addUsingAlias(PricingTableMap::COL_NAME2, $name2, $comparison);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function queryByName2($name2) {\r\n $this->name2 = $name2;\r\n }",
"public function filterBySp2name($sp2name = null, $comparison = null)\n {\n if (null === $comparison) {\n if (is_array($sp2name)) {\n $comparison = Criteria::IN;\n }\n }\n\n ... | [
"0.72384924",
"0.63222235",
"0.56403494",
"0.55395484",
"0.5515447",
"0.5374963",
"0.5267489",
"0.51306254",
"0.5108934",
"0.5097197",
"0.5062892",
"0.50419736",
"0.5033823",
"0.5030137",
"0.4994298",
"0.4987554",
"0.4969743",
"0.49659258",
"0.49136132",
"0.48931032",
"0.4874... | 0.66010994 | 1 |
Filter the query on the shortdesc column Example usage: $query>filterByShortdesc('fooValue'); // WHERE shortdesc = 'fooValue' $query>filterByShortdesc('%fooValue%', Criteria::LIKE); // WHERE shortdesc LIKE '%fooValue%' | public function filterByShortdesc($shortdesc = null, $comparison = null)
{
if (null === $comparison) {
if (is_array($shortdesc)) {
$comparison = Criteria::IN;
}
}
return $this->addUsingAlias(PricingTableMap::COL_SHORTDESC, $shortdesc, $comparison);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function core_filter_geoFilter_listingShortenDescription($desc)\n {\n //If you wanted to filter the description before it is displayed on\n //category browsing pages, this is the way to do it.\n\n //FILTER the desc here..\n\n //NOTE: If this is being called, you know that list... | [
"0.6285296",
"0.570068",
"0.5666139",
"0.55172205",
"0.54348224",
"0.54148734",
"0.5182434",
"0.51773685",
"0.51765174",
"0.51661015",
"0.51631033",
"0.5146911",
"0.51395816",
"0.5125863",
"0.50914735",
"0.5091266",
"0.5090657",
"0.50895286",
"0.5064823",
"0.5050997",
"0.5049... | 0.62086254 | 1 |
Filter the query on the familyid column Example usage: $query>filterByFamilyid('fooValue'); // WHERE familyid = 'fooValue' $query>filterByFamilyid('%fooValue%', Criteria::LIKE); // WHERE familyid LIKE '%fooValue%' | public function filterByFamilyid($familyid = null, $comparison = null)
{
if (null === $comparison) {
if (is_array($familyid)) {
$comparison = Criteria::IN;
}
}
return $this->addUsingAlias(PricingTableMap::COL_FAMILYID, $familyid, $comparison);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function filterByFamilyId($familyId = null, $comparison = null)\n\t{\n\t\tif (is_array($familyId)) {\n\t\t\t$useMinMax = false;\n\t\t\tif (isset($familyId['min'])) {\n\t\t\t\t$this->addUsingAlias(CustomerPeer::FAMILY_ID, $familyId['min'], Criteria::GREATER_EQUAL);\n\t\t\t\t$useMinMax = true;\n\t\t\t}\n\t\t\... | [
"0.64027756",
"0.5644984",
"0.56065327",
"0.5337106",
"0.5276949",
"0.52570707",
"0.520321",
"0.5153734",
"0.5146631",
"0.5069937",
"0.5047553",
"0.50175333",
"0.50175333",
"0.50175333",
"0.50175333",
"0.50175333",
"0.50175333",
"0.50175333",
"0.50175333",
"0.50175333",
"0.49... | 0.59556496 | 1 |
Filter the query on the ermes column Example usage: $query>filterByErmes('fooValue'); // WHERE ermes = 'fooValue' $query>filterByErmes('%fooValue%', Criteria::LIKE); // WHERE ermes LIKE '%fooValue%' | public function filterByErmes($ermes = null, $comparison = null)
{
if (null === $comparison) {
if (is_array($ermes)) {
$comparison = Criteria::IN;
}
}
return $this->addUsingAlias(PricingTableMap::COL_ERMES, $ermes, $comparison);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function filterBymesId($mesId = null, $comparison = null)\n {\n if (is_array($mesId)) {\n $useMinMax = false;\n if (isset($mesId['min'])) {\n $this->addUsingAlias(EventPeer::MES_ID, $mesId['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n ... | [
"0.48981395",
"0.4761989",
"0.4625102",
"0.46187636",
"0.45856696",
"0.45853525",
"0.45834407",
"0.45814064",
"0.45689517",
"0.4555318",
"0.45529127",
"0.45416248",
"0.4506553",
"0.45059028",
"0.449164",
"0.44849825",
"0.44716302",
"0.44497442",
"0.44325733",
"0.44203618",
"0... | 0.6964294 | 0 |
Filter the query on the speca column Example usage: $query>filterBySpeca('fooValue'); // WHERE speca = 'fooValue' $query>filterBySpeca('%fooValue%', Criteria::LIKE); // WHERE speca LIKE '%fooValue%' | public function filterBySpeca($speca = null, $comparison = null)
{
if (null === $comparison) {
if (is_array($speca)) {
$comparison = Criteria::IN;
}
}
return $this->addUsingAlias(PricingTableMap::COL_SPECA, $speca, $comparison);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function where($value,$spec=\"*\")\n {\n\t \t$query = \"SELECT {$spec} FROM {$this->table} WHERE {$value}\";\n\t \t$stmt = $this->conn->prepare($query);\n\t \t$stmt->execute(); \n $stmt->setFetchMode(\\PDO::FETCH_OBJ);\n $this->result = $stmt->fetchAll();\n retur... | [
"0.5519744",
"0.54249465",
"0.5192338",
"0.51603246",
"0.51012856",
"0.5090482",
"0.5076648",
"0.50630516",
"0.50361484",
"0.49903375",
"0.4916981",
"0.48997477",
"0.48318705",
"0.48011273",
"0.47953022",
"0.475399",
"0.47348565",
"0.47344625",
"0.46922842",
"0.46369296",
"0.... | 0.6675799 | 0 |
Filter the query on the specb column Example usage: $query>filterBySpecb('fooValue'); // WHERE specb = 'fooValue' $query>filterBySpecb('%fooValue%', Criteria::LIKE); // WHERE specb LIKE '%fooValue%' | public function filterBySpecb($specb = null, $comparison = null)
{
if (null === $comparison) {
if (is_array($specb)) {
$comparison = Criteria::IN;
}
}
return $this->addUsingAlias(PricingTableMap::COL_SPECB, $specb, $comparison);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function where($value,$spec=\"*\")\n {\n\t \t$query = \"SELECT {$spec} FROM {$this->table} WHERE {$value}\";\n\t \t$stmt = $this->conn->prepare($query);\n\t \t$stmt->execute(); \n $stmt->setFetchMode(\\PDO::FETCH_OBJ);\n $this->result = $stmt->fetchAll();\n retur... | [
"0.5337144",
"0.51779395",
"0.5120018",
"0.49321598",
"0.4911404",
"0.48874578",
"0.48745316",
"0.48642874",
"0.485941",
"0.48576242",
"0.48057765",
"0.47528714",
"0.4659757",
"0.46148944",
"0.4592693",
"0.45926696",
"0.45866376",
"0.45731464",
"0.45639586",
"0.45566264",
"0.... | 0.71505064 | 0 |
Filter the query on the specc column Example usage: $query>filterBySpecc('fooValue'); // WHERE specc = 'fooValue' $query>filterBySpecc('%fooValue%', Criteria::LIKE); // WHERE specc LIKE '%fooValue%' | public function filterBySpecc($specc = null, $comparison = null)
{
if (null === $comparison) {
if (is_array($specc)) {
$comparison = Criteria::IN;
}
}
return $this->addUsingAlias(PricingTableMap::COL_SPECC, $specc, $comparison);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function setInputFilterSpecification($spec)\n {\n $this->inputFilterSpecification = $spec;\n }",
"public function where($value,$spec=\"*\")\n {\n\t \t$query = \"SELECT {$spec} FROM {$this->table} WHERE {$value}\";\n\t \t$stmt = $this->conn->prepare($query);\n\t \t$stmt->exec... | [
"0.5217561",
"0.5204904",
"0.51784",
"0.5102207",
"0.5062295",
"0.5052069",
"0.49853805",
"0.49553552",
"0.49189344",
"0.48872247",
"0.48692352",
"0.47826195",
"0.4753632",
"0.47486833",
"0.47089753",
"0.47023758",
"0.47005108",
"0.466648",
"0.46624115",
"0.46240553",
"0.4614... | 0.6774381 | 0 |
Filter the query on the specd column Example usage: $query>filterBySpecd('fooValue'); // WHERE specd = 'fooValue' $query>filterBySpecd('%fooValue%', Criteria::LIKE); // WHERE specd LIKE '%fooValue%' | public function filterBySpecd($specd = null, $comparison = null)
{
if (null === $comparison) {
if (is_array($specd)) {
$comparison = Criteria::IN;
}
}
return $this->addUsingAlias(PricingTableMap::COL_SPECD, $specd, $comparison);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function where($value,$spec=\"*\")\n {\n\t \t$query = \"SELECT {$spec} FROM {$this->table} WHERE {$value}\";\n\t \t$stmt = $this->conn->prepare($query);\n\t \t$stmt->execute(); \n $stmt->setFetchMode(\\PDO::FETCH_OBJ);\n $this->result = $stmt->fetchAll();\n retur... | [
"0.5472004",
"0.53286076",
"0.5310302",
"0.52981645",
"0.4940564",
"0.49055788",
"0.4863645",
"0.48387137",
"0.48160532",
"0.4684301",
"0.46073687",
"0.46033558",
"0.45532444",
"0.4532532",
"0.45131412",
"0.44895998",
"0.44778085",
"0.4472624",
"0.44502556",
"0.44415158",
"0.... | 0.6150656 | 0 |
Filter the query on the spece column Example usage: $query>filterBySpece('fooValue'); // WHERE spece = 'fooValue' $query>filterBySpece('%fooValue%', Criteria::LIKE); // WHERE spece LIKE '%fooValue%' | public function filterBySpece($spece = null, $comparison = null)
{
if (null === $comparison) {
if (is_array($spece)) {
$comparison = Criteria::IN;
}
}
return $this->addUsingAlias(PricingTableMap::COL_SPECE, $spece, $comparison);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function filter(string $column, string $operator, $value, int $perPage)\n {\n return $this->model->where($column, $operator, $value)->paginate($perPage);\n }",
"function filter($col, $value=\"\")\n\t{\n\t\tif(empty($value)) return false;\n\t\t$select = $this->getSelect();\n\t\tif( preg_match(... | [
"0.54881746",
"0.5393324",
"0.5388105",
"0.52783424",
"0.5259166",
"0.5178138",
"0.50923264",
"0.50652146",
"0.50210583",
"0.4966425",
"0.49420142",
"0.4918453",
"0.49169433",
"0.4897454",
"0.48852122",
"0.4859917",
"0.48361236",
"0.48185056",
"0.47999156",
"0.47935057",
"0.4... | 0.589363 | 0 |
Filter the query on the specf column Example usage: $query>filterBySpecf('fooValue'); // WHERE specf = 'fooValue' $query>filterBySpecf('%fooValue%', Criteria::LIKE); // WHERE specf LIKE '%fooValue%' | public function filterBySpecf($specf = null, $comparison = null)
{
if (null === $comparison) {
if (is_array($specf)) {
$comparison = Criteria::IN;
}
}
return $this->addUsingAlias(PricingTableMap::COL_SPECF, $specf, $comparison);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function setInputFilterSpecification($spec)\n {\n $this->inputFilterSpecification = $spec;\n }",
"function filterStr($field, $value) {\n if (\"$value\" !== '') {\n if ($value[0] === '=') {\n $this->where($field, '=', trim( substr($value, 1) ));\n } else {\n $wrapped... | [
"0.5782107",
"0.5550639",
"0.54794943",
"0.5469015",
"0.5210959",
"0.5057613",
"0.50310546",
"0.49646723",
"0.49562028",
"0.49153388",
"0.48800966",
"0.48188737",
"0.47919312",
"0.47870272",
"0.47578678",
"0.47196567",
"0.47176048",
"0.47113854",
"0.46945724",
"0.46740758",
"... | 0.6610199 | 0 |
Filter the query on the specg column Example usage: $query>filterBySpecg('fooValue'); // WHERE specg = 'fooValue' $query>filterBySpecg('%fooValue%', Criteria::LIKE); // WHERE specg LIKE '%fooValue%' | public function filterBySpecg($specg = null, $comparison = null)
{
if (null === $comparison) {
if (is_array($specg)) {
$comparison = Criteria::IN;
}
}
return $this->addUsingAlias(PricingTableMap::COL_SPECG, $specg, $comparison);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function filter($col, $value=\"\")\n\t{\n\t\tif(empty($value)) return false;\n\t\t$select = $this->getSelect();\n\t\tif( preg_match(\"/^\\*/\", $col ) )\n\t\t\t$select->having( substr($col,1).\" = ?\", $value);\n\t\telse\n\t\t\t$select->where(\"$col = ?\", $value);\n\t\treturn true;\n\n\t}",
"function filterStr(... | [
"0.53583145",
"0.5246387",
"0.51230663",
"0.5038859",
"0.49845535",
"0.49594158",
"0.49526665",
"0.4916598",
"0.48943862",
"0.4836117",
"0.47547746",
"0.4751467",
"0.47303984",
"0.4717599",
"0.4687155",
"0.46848434",
"0.46729848",
"0.46698067",
"0.46544355",
"0.4643379",
"0.4... | 0.658713 | 0 |
Filter the query on the spech column Example usage: $query>filterBySpech('fooValue'); // WHERE spech = 'fooValue' $query>filterBySpech('%fooValue%', Criteria::LIKE); // WHERE spech LIKE '%fooValue%' | public function filterBySpech($spech = null, $comparison = null)
{
if (null === $comparison) {
if (is_array($spech)) {
$comparison = Criteria::IN;
}
}
return $this->addUsingAlias(PricingTableMap::COL_SPECH, $spech, $comparison);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function filterBySpece($spece = null, $comparison = null)\n {\n if (null === $comparison) {\n if (is_array($spece)) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(PricingTableMap::COL_SPECE, $spece, $comparison);\n }",
... | [
"0.5457223",
"0.5083165",
"0.4955914",
"0.48969075",
"0.4845214",
"0.48095912",
"0.47066757",
"0.47026986",
"0.46844268",
"0.46727788",
"0.46502277",
"0.46458894",
"0.46424523",
"0.46293265",
"0.4605941",
"0.46048826",
"0.4604262",
"0.45929658",
"0.45869136",
"0.45751247",
"0... | 0.61874896 | 0 |
Filter the query on the longdesc column Example usage: $query>filterByLongdesc('fooValue'); // WHERE longdesc = 'fooValue' $query>filterByLongdesc('%fooValue%', Criteria::LIKE); // WHERE longdesc LIKE '%fooValue%' | public function filterByLongdesc($longdesc = null, $comparison = null)
{
if (null === $comparison) {
if (is_array($longdesc)) {
$comparison = Criteria::IN;
}
}
return $this->addUsingAlias(PricingTableMap::COL_LONGDESC, $longdesc, $comparison);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function core_filter_geoFilter_listingDescription($desc)\n {\n //If you wanted to filter the description before it is displayed on\n //category browsing pages, this is the way to do it.\n\n //FILTER the desc here..\n\n return $desc;\n }",
"public function core_filter_geoF... | [
"0.56809175",
"0.56756175",
"0.5602455",
"0.5452149",
"0.5359657",
"0.51698846",
"0.51692116",
"0.51378363",
"0.50797063",
"0.5058875",
"0.49521223",
"0.494497",
"0.4870633",
"0.48380172",
"0.48228636",
"0.48081228",
"0.47868547",
"0.478257",
"0.47682196",
"0.47647205",
"0.46... | 0.6515434 | 0 |
Filter the query on the name3 column Example usage: $query>filterByName3('fooValue'); // WHERE name3 = 'fooValue' $query>filterByName3('%fooValue%', Criteria::LIKE); // WHERE name3 LIKE '%fooValue%' | public function filterByName3($name3 = null, $comparison = null)
{
if (null === $comparison) {
if (is_array($name3)) {
$comparison = Criteria::IN;
}
}
return $this->addUsingAlias(PricingTableMap::COL_NAME3, $name3, $comparison);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"abstract public function filter($name, $params = array());",
"public function filterBySp3name($sp3name = null, $comparison = null)\n {\n if (null === $comparison) {\n if (is_array($sp3name)) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->add... | [
"0.59238213",
"0.5716289",
"0.56539106",
"0.5449817",
"0.54076034",
"0.5399903",
"0.5289386",
"0.52797467",
"0.52528644",
"0.52496815",
"0.52474743",
"0.52330685",
"0.52087843",
"0.519087",
"0.51484877",
"0.512634",
"0.51257455",
"0.511498",
"0.51076907",
"0.50430316",
"0.501... | 0.59527326 | 0 |
Filter the query on the name4 column Example usage: $query>filterByName4('fooValue'); // WHERE name4 = 'fooValue' $query>filterByName4('%fooValue%', Criteria::LIKE); // WHERE name4 LIKE '%fooValue%' | public function filterByName4($name4 = null, $comparison = null)
{
if (null === $comparison) {
if (is_array($name4)) {
$comparison = Criteria::IN;
}
}
return $this->addUsingAlias(PricingTableMap::COL_NAME4, $name4, $comparison);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"abstract public function filter($name, $params = array());",
"public function filterByName($name)\n {\n $this->filter[] = $this->field('name').' = '.$this->quote($name);\n return $this;\n }",
"public function getFilter(string $name): StringFilterInterface;",
"public function name($value) ... | [
"0.56702733",
"0.5498955",
"0.5431444",
"0.53321856",
"0.5281794",
"0.5208449",
"0.51988125",
"0.5121064",
"0.5118868",
"0.51141906",
"0.51067567",
"0.51004547",
"0.5096065",
"0.5053696",
"0.50244147",
"0.5012873",
"0.5012039",
"0.49733257",
"0.49713507",
"0.49236628",
"0.490... | 0.59328985 | 0 |
Filter the query on the thumb column Example usage: $query>filterByThumb('fooValue'); // WHERE thumb = 'fooValue' $query>filterByThumb('%fooValue%', Criteria::LIKE); // WHERE thumb LIKE '%fooValue%' | public function filterByThumb($thumb = null, $comparison = null)
{
if (null === $comparison) {
if (is_array($thumb)) {
$comparison = Criteria::IN;
}
}
return $this->addUsingAlias(PricingTableMap::COL_THUMB, $thumb, $comparison);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function thumbs() {\n if(!is_null($this->thumbs)) return $this->thumbs;\n return $this->filterBy('type', 'thumb');\n }",
"public function filterByThumbUrl($thumbUrl = null, $comparison = null)\n {\n if (null === $comparison) {\n if (is_array($thumbUrl)) {\n $comp... | [
"0.6670779",
"0.5384488",
"0.51401407",
"0.50354683",
"0.49870083",
"0.4943666",
"0.49193573",
"0.48988453",
"0.47962323",
"0.47193265",
"0.47111264",
"0.46816877",
"0.4662965",
"0.4661798",
"0.46501553",
"0.4635633",
"0.46192724",
"0.46007043",
"0.45871493",
"0.45589963",
"0... | 0.5826435 | 1 |
Filter the query on the width column Example usage: $query>filterByWidth('fooValue'); // WHERE width = 'fooValue' $query>filterByWidth('%fooValue%', Criteria::LIKE); // WHERE width LIKE '%fooValue%' | public function filterByWidth($width = null, $comparison = null)
{
if (null === $comparison) {
if (is_array($width)) {
$comparison = Criteria::IN;
}
}
return $this->addUsingAlias(PricingTableMap::COL_WIDTH, $width, $comparison);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function setWidth($width) {\n if (is_numeric($width) == false && (is_string($width) == true && Utils::stringEndsWith($width, \"%\")) == false) {\n throw new IllegalArgumentException('In class <b>' . get_class($this) . '</b> in method <b>width($width)</b>: Parameter <b>$width</b> MUST BE of type I... | [
"0.60494316",
"0.59083676",
"0.58204615",
"0.5793681",
"0.5663814",
"0.56409895",
"0.5628821",
"0.55847925",
"0.5580749",
"0.5579482",
"0.55663854",
"0.55663854",
"0.55453604",
"0.55408967",
"0.5526799",
"0.5519643",
"0.5518448",
"0.54964286",
"0.54917586",
"0.5470071",
"0.54... | 0.59548444 | 1 |
Filter the query on the height column Example usage: $query>filterByHeight('fooValue'); // WHERE height = 'fooValue' $query>filterByHeight('%fooValue%', Criteria::LIKE); // WHERE height LIKE '%fooValue%' | public function filterByHeight($height = null, $comparison = null)
{
if (null === $comparison) {
if (is_array($height)) {
$comparison = Criteria::IN;
}
}
return $this->addUsingAlias(PricingTableMap::COL_HEIGHT, $height, $comparison);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private function filterColumn(Builder $builder, string $column, string $value)\n {\n Delegator::make([\n new ListFilter($builder),\n new WildcardFilter($builder),\n new ComparisonFilter($builder),\n new NullFilter($builder),\n new EqualsFilter($build... | [
"0.5159077",
"0.49489367",
"0.49329695",
"0.47928745",
"0.47820556",
"0.4758482",
"0.4686566",
"0.4662435",
"0.4638467",
"0.46154726",
"0.46088314",
"0.45354795",
"0.45295313",
"0.45240027",
"0.452106",
"0.45056573",
"0.44839254",
"0.44778907",
"0.44741324",
"0.44741324",
"0.... | 0.53918976 | 0 |
Filter the query on the familydes column Example usage: $query>filterByFamilydes('fooValue'); // WHERE familydes = 'fooValue' $query>filterByFamilydes('%fooValue%', Criteria::LIKE); // WHERE familydes LIKE '%fooValue%' | public function filterByFamilydes($familydes = null, $comparison = null)
{
if (null === $comparison) {
if (is_array($familydes)) {
$comparison = Criteria::IN;
}
}
return $this->addUsingAlias(PricingTableMap::COL_FAMILYDES, $familydes, $comparison);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private function filterColumn(Builder $builder, string $column, string $value)\n {\n Delegator::make([\n new ListFilter($builder),\n new WildcardFilter($builder),\n new ComparisonFilter($builder),\n new NullFilter($builder),\n new EqualsFilter($build... | [
"0.5233821",
"0.5215077",
"0.5190321",
"0.51095057",
"0.5074982",
"0.48626992",
"0.48551628",
"0.48281372",
"0.4807528",
"0.47727144",
"0.474547",
"0.47387207",
"0.4738386",
"0.47170186",
"0.46849728",
"0.4662052",
"0.4661679",
"0.46550557",
"0.46469343",
"0.46091363",
"0.460... | 0.58906126 | 0 |
Filter the query on the keywords column Example usage: $query>filterByKeywords('fooValue'); // WHERE keywords = 'fooValue' $query>filterByKeywords('%fooValue%', Criteria::LIKE); // WHERE keywords LIKE '%fooValue%' | public function filterByKeywords($keywords = null, $comparison = null)
{
if (null === $comparison) {
if (is_array($keywords)) {
$comparison = Criteria::IN;
}
}
return $this->addUsingAlias(PricingTableMap::COL_KEYWORDS, $keywords, $comparison);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function search($keywords);",
"public function setKeywords($keywords);",
"public function setKeywords($keywords);",
"protected function _make_sql_filter_by_key($key)\n\t{\n\t\t$key = str_replace([',', '.'], '', $key);\n\t\t$key = trim($key);\n\t\t$query = [\"`keywords` LIKE '%\" . t('db')->escape_like... | [
"0.630505",
"0.620413",
"0.620413",
"0.6191574",
"0.5995138",
"0.59440273",
"0.59048396",
"0.59040344",
"0.5872573",
"0.5834751",
"0.5818404",
"0.5779517",
"0.5754786",
"0.5678702",
"0.5597061",
"0.5581761",
"0.55591905",
"0.5553471",
"0.5532797",
"0.55293375",
"0.5484343",
... | 0.71442807 | 0 |
Filter the query on the vpn column Example usage: $query>filterByVpn('fooValue'); // WHERE vpn = 'fooValue' $query>filterByVpn('%fooValue%', Criteria::LIKE); // WHERE vpn LIKE '%fooValue%' | public function filterByVpn($vpn = null, $comparison = null)
{
if (null === $comparison) {
if (is_array($vpn)) {
$comparison = Criteria::IN;
}
}
return $this->addUsingAlias(PricingTableMap::COL_VPN, $vpn, $comparison);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function vpn($vpn) {\n\n $data = $this->productData($vpn);\n echo \"<pre>===\";\n print_r($data->getData());\n exit;\n }",
"public function filter(string $column, string $operator, $value, int $perPage)\n {\n return $this->model->where($column, $operator, $value)->... | [
"0.50811285",
"0.50048673",
"0.48889145",
"0.48734415",
"0.47878197",
"0.47443843",
"0.47071302",
"0.4701468",
"0.46970013",
"0.4694512",
"0.4678173",
"0.46406525",
"0.46258518",
"0.46044484",
"0.46008494",
"0.45910564",
"0.45680383",
"0.4545437",
"0.45171416",
"0.4517028",
"... | 0.55545264 | 0 |
Filter the query on the uomdesc column Example usage: $query>filterByUomdesc('fooValue'); // WHERE uomdesc = 'fooValue' $query>filterByUomdesc('%fooValue%', Criteria::LIKE); // WHERE uomdesc LIKE '%fooValue%' | public function filterByUomdesc($uomdesc = null, $comparison = null)
{
if (null === $comparison) {
if (is_array($uomdesc)) {
$comparison = Criteria::IN;
}
}
return $this->addUsingAlias(PricingTableMap::COL_UOMDESC, $uomdesc, $comparison);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function filterByDescription($description = null)\n\t{\n\t\tif(preg_match('/[\\%\\*]/', $description)) {\n\t\t\treturn $this->addUsingAlias(cre8ContentTypePeer::DESCRIPTION, str_replace('*', '%', $description), Criteria::LIKE);\n\t\t} else {\n\t\t\treturn $this->addUsingAlias(cre8ContentTypePeer::DESCRIPTIO... | [
"0.5297111",
"0.52244896",
"0.51928294",
"0.50309175",
"0.5001882",
"0.4973138",
"0.49628213",
"0.4791354",
"0.4750468",
"0.47105426",
"0.47047374",
"0.4681918",
"0.46024957",
"0.4556801",
"0.45196137",
"0.45029503",
"0.4483064",
"0.44642127",
"0.4456494",
"0.44525066",
"0.44... | 0.62557083 | 0 |
Filter the query on the vidinffg column Example usage: $query>filterByVidinffg('fooValue'); // WHERE vidinffg = 'fooValue' $query>filterByVidinffg('%fooValue%', Criteria::LIKE); // WHERE vidinffg LIKE '%fooValue%' | public function filterByVidinffg($vidinffg = null, $comparison = null)
{
if (null === $comparison) {
if (is_array($vidinffg)) {
$comparison = Criteria::IN;
}
}
return $this->addUsingAlias(PricingTableMap::COL_VIDINFFG, $vidinffg, $comparison);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function filterByFv($fv = null, $comparison = null)\n {\n if (is_array($fv)) {\n $useMinMax = false;\n if (isset($fv['min'])) {\n $this->addUsingAlias(AliProductTableMap::COL_FV, $fv['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n ... | [
"0.5094669",
"0.50548595",
"0.4883215",
"0.48599774",
"0.48474196",
"0.48272577",
"0.4822198",
"0.480535",
"0.48047876",
"0.48009795",
"0.47950453",
"0.47865492",
"0.47588247",
"0.47559053",
"0.4733082",
"0.47158688",
"0.46991313",
"0.46973133",
"0.46798006",
"0.4660077",
"0.... | 0.63516295 | 0 |
Filter the query on the vidinflk column Example usage: $query>filterByVidinflk('fooValue'); // WHERE vidinflk = 'fooValue' $query>filterByVidinflk('%fooValue%', Criteria::LIKE); // WHERE vidinflk LIKE '%fooValue%' | public function filterByVidinflk($vidinflk = null, $comparison = null)
{
if (null === $comparison) {
if (is_array($vidinflk)) {
$comparison = Criteria::IN;
}
}
return $this->addUsingAlias(PricingTableMap::COL_VIDINFLK, $vidinflk, $comparison);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected function sqlKeyFilter()\n\t{\n\t\treturn \"`ValuationNo` = @ValuationNo@\";\n\t}",
"function getListFilter($col,$key) {\n\t\t\tswitch($col) { \n\t\t\t\tcase 'periode': return \"'$key' between to_char(tglmulai, 'YYYYMM') AND to_char(tglselesai, 'YYYYMM')\";\n\t\t\t}\n\t\t}",
"function getListFilter($c... | [
"0.5318873",
"0.51524705",
"0.5108394",
"0.5086964",
"0.5081821",
"0.50240266",
"0.49956796",
"0.49759609",
"0.49381384",
"0.49011424",
"0.48853296",
"0.48710954",
"0.48429438",
"0.48217702",
"0.48187342",
"0.47866032",
"0.47572672",
"0.47526106",
"0.47464365",
"0.47444555",
... | 0.6159584 | 0 |
Filter the query on the additemflag column Example usage: $query>filterByAdditemflag('fooValue'); // WHERE additemflag = 'fooValue' $query>filterByAdditemflag('%fooValue%', Criteria::LIKE); // WHERE additemflag LIKE '%fooValue%' | public function filterByAdditemflag($additemflag = null, $comparison = null)
{
if (null === $comparison) {
if (is_array($additemflag)) {
$comparison = Criteria::IN;
}
}
return $this->addUsingAlias(PricingTableMap::COL_ADDITEMFLAG, $additemflag, $comparison);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function addFlag($flag)\n {\n return $this->addAction(ClassUtils::verifyInstance($flag, FlagQualifier::class));\n }",
"public function addremove($flag = true) {\n\t\t$this->addremove = (boolean) $flag;\n\t\treturn $this;\n\t}",
"public function flag($flags, $add, IMP_Indices $indices)\n ... | [
"0.5339901",
"0.50765985",
"0.5069803",
"0.4714987",
"0.46770054",
"0.46531597",
"0.46155322",
"0.4593368",
"0.45893073",
"0.45797774",
"0.45645192",
"0.44732144",
"0.4452615",
"0.44249183",
"0.44179374",
"0.44134495",
"0.43636492",
"0.43523782",
"0.43473145",
"0.43456903",
"... | 0.6641598 | 0 |
Filter the query on the schemafam column Example usage: $query>filterBySchemafam('fooValue'); // WHERE schemafam = 'fooValue' $query>filterBySchemafam('%fooValue%', Criteria::LIKE); // WHERE schemafam LIKE '%fooValue%' | public function filterBySchemafam($schemafam = null, $comparison = null)
{
if (null === $comparison) {
if (is_array($schemafam)) {
$comparison = Criteria::IN;
}
}
return $this->addUsingAlias(PricingTableMap::COL_SCHEMAFAM, $schemafam, $comparison);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function addFilterQuery($fq) {}",
"function filter($col, $value=\"\")\n\t{\n\t\tif(empty($value)) return false;\n\t\t$select = $this->getSelect();\n\t\tif( preg_match(\"/^\\*/\", $col ) )\n\t\t\t$select->having( substr($col,1).\" = ?\", $value);\n\t\telse\n\t\t\t$select->where(\"$col = ?\", $value);\n\t\t... | [
"0.46060747",
"0.46046227",
"0.4597895",
"0.45345402",
"0.45315415",
"0.44655097",
"0.4462",
"0.4438087",
"0.44346675",
"0.44196978",
"0.44083908",
"0.4356932",
"0.43270057",
"0.43163124",
"0.43067977",
"0.4278512",
"0.4260082",
"0.4239202",
"0.42331526",
"0.42323205",
"0.423... | 0.62085557 | 0 |
Filter the query on the origitemid column Example usage: $query>filterByOrigitemid('fooValue'); // WHERE origitemid = 'fooValue' $query>filterByOrigitemid('%fooValue%', Criteria::LIKE); // WHERE origitemid LIKE '%fooValue%' | public function filterByOrigitemid($origitemid = null, $comparison = null)
{
if (null === $comparison) {
if (is_array($origitemid)) {
$comparison = Criteria::IN;
}
}
return $this->addUsingAlias(PricingTableMap::COL_ORIGITEMID, $origitemid, $comparison);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function filterByPrimaryKey($key)\n\t{\n\t\treturn $this->addUsingAlias(ItemPropertyPeer::ID, $key, Criteria::EQUAL);\n\t}",
"public function onItemFiltered(ItemNotModifiedEvent $event)\n {\n $this->skipItem($event->getItem(), $event->getReason());\n }",
"public function filter(\\Magento\\F... | [
"0.4708481",
"0.45945984",
"0.4576023",
"0.4534351",
"0.45205596",
"0.45152813",
"0.4504796",
"0.4451899",
"0.4451899",
"0.4451899",
"0.4451899",
"0.4451899",
"0.4451899",
"0.4451899",
"0.4451899",
"0.4451899",
"0.4423884",
"0.44145507",
"0.44106075",
"0.4408321",
"0.44011426... | 0.6975071 | 0 |
Filter the query on the techspecflg column Example usage: $query>filterByTechspecflg('fooValue'); // WHERE techspecflg = 'fooValue' $query>filterByTechspecflg('%fooValue%', Criteria::LIKE); // WHERE techspecflg LIKE '%fooValue%' | public function filterByTechspecflg($techspecflg = null, $comparison = null)
{
if (null === $comparison) {
if (is_array($techspecflg)) {
$comparison = Criteria::IN;
}
}
return $this->addUsingAlias(PricingTableMap::COL_TECHSPECFLG, $techspecflg, $comparison);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function searchByFilter()\n\t{\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\tif(!empty($this->programkerja_id)){\n\t\t\t$criteria->addCondition('programkerja_id = '.$this->programkerja_id);\n\t\t}\n\t\t$criteria->compare('LOWER(programkerja_kode)',strtolower($this->programkerja_ko... | [
"0.46541545",
"0.4593281",
"0.4592803",
"0.45626125",
"0.4500749",
"0.4483976",
"0.44808146",
"0.44797546",
"0.446455",
"0.44469324",
"0.44245067",
"0.44039458",
"0.4399354",
"0.43430263",
"0.43080515",
"0.4300971",
"0.42960384",
"0.42826748",
"0.42806056",
"0.4276734",
"0.42... | 0.66220176 | 0 |
Filter the query on the techspecname column Example usage: $query>filterByTechspecname('fooValue'); // WHERE techspecname = 'fooValue' $query>filterByTechspecname('%fooValue%', Criteria::LIKE); // WHERE techspecname LIKE '%fooValue%' | public function filterByTechspecname($techspecname = null, $comparison = null)
{
if (null === $comparison) {
if (is_array($techspecname)) {
$comparison = Criteria::IN;
}
}
return $this->addUsingAlias(PricingTableMap::COL_TECHSPECNAME, $techspecname, $comparison);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function addNameFilter(Builder $query = null, $product_name_part = null)\n {\n if(is_null($query)){\n $query = $this->query();\n }\n\n if(!is_null($product_name_part)) {\n $query = $query->where('ecom_products.name', 'like', '%' . $product_name_part . '%');\n ... | [
"0.53116316",
"0.5258266",
"0.52193815",
"0.5091843",
"0.5082995",
"0.5066454",
"0.504763",
"0.49977568",
"0.49470812",
"0.4923973",
"0.49205855",
"0.48869282",
"0.48830438",
"0.48425573",
"0.4821579",
"0.48116726",
"0.4798568",
"0.47862756",
"0.477079",
"0.47647393",
"0.4762... | 0.6691173 | 0 |
Filter the query on the cost column Example usage: $query>filterByCost(1234); // WHERE cost = 1234 $query>filterByCost(array(12, 34)); // WHERE cost IN (12, 34) $query>filterByCost(array('min' => 12)); // WHERE cost > 12 | public function filterByCost($cost = null, $comparison = null)
{
if (is_array($cost)) {
$useMinMax = false;
if (isset($cost['min'])) {
$this->addUsingAlias(PricingTableMap::COL_COST, $cost['min'], Criteria::GREATER_EQUAL);
$useMinMax = true;
}
if (isset($cost['max'])) {
$this->addUsingAlias(PricingTableMap::COL_COST, $cost['max'], Criteria::LESS_EQUAL);
$useMinMax = true;
}
if ($useMinMax) {
return $this;
}
if (null === $comparison) {
$comparison = Criteria::IN;
}
}
return $this->addUsingAlias(PricingTableMap::COL_COST, $cost, $comparison);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function filterByCost($cost)\n {\n $this->filter[] = $this->field('cost').' = '.$this->quote($cost);\n return $this;\n }",
"public function filter($builder, $value)\n {\n return $builder->where('cost', '<', $value);\n }",
"public static function findByCost($cost)\n {\... | [
"0.6615999",
"0.5531355",
"0.5307774",
"0.52636397",
"0.52482617",
"0.4975097",
"0.48971143",
"0.4852756",
"0.48349065",
"0.47912037",
"0.4787786",
"0.47813046",
"0.47283602",
"0.47228247",
"0.47072524",
"0.46786392",
"0.4657294",
"0.46517503",
"0.46240908",
"0.46203762",
"0.... | 0.5872957 | 1 |
Filter the query on the prop65 column Example usage: $query>filterByProp65('fooValue'); // WHERE prop65 = 'fooValue' $query>filterByProp65('%fooValue%', Criteria::LIKE); // WHERE prop65 LIKE '%fooValue%' | public function filterByProp65($prop65 = null, $comparison = null)
{
if (null === $comparison) {
if (is_array($prop65)) {
$comparison = Criteria::IN;
}
}
return $this->addUsingAlias(PricingTableMap::COL_PROP65, $prop65, $comparison);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected function applyFiltersOnProperty($property, $value) {\n \t$eval = $this->getEval($property);\n \tforeach ($eval as $filterString) {\n \t\tlist($filter, $param1, $param2) = t3lib_div::trimExplode(':', $filterString);\n \t\ttx_pttools_assert::isAlphaNum($filter);\n \t\t$filterFunction = 'filt... | [
"0.59353846",
"0.5509931",
"0.54856825",
"0.51594555",
"0.5088625",
"0.50358176",
"0.49819642",
"0.49676302",
"0.49366876",
"0.49172398",
"0.4831304",
"0.4823498",
"0.4815069",
"0.47507465",
"0.47470894",
"0.47350782",
"0.47045347",
"0.46923536",
"0.46871355",
"0.46807507",
"... | 0.6785368 | 0 |
Filter the query on the leadfree column Example usage: $query>filterByLeadfree('fooValue'); // WHERE leadfree = 'fooValue' $query>filterByLeadfree('%fooValue%', Criteria::LIKE); // WHERE leadfree LIKE '%fooValue%' | public function filterByLeadfree($leadfree = null, $comparison = null)
{
if (null === $comparison) {
if (is_array($leadfree)) {
$comparison = Criteria::IN;
}
}
return $this->addUsingAlias(PricingTableMap::COL_LEADFREE, $leadfree, $comparison);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function setFree($var)\n {\n GPBUtil::checkInt64($var);\n $this->free = $var;\n\n return $this;\n }",
"public function actionIndexfree()\n {\n \n $searchModel = new OfertaSearchfree();\n $dataProvider = $searchModel->search(Yii::$app->request->queryParams... | [
"0.50483656",
"0.4825887",
"0.45368212",
"0.44795445",
"0.44716522",
"0.44451466",
"0.44126326",
"0.43625352",
"0.4361993",
"0.43291354",
"0.4317528",
"0.42672306",
"0.42620245",
"0.42121112",
"0.42059615",
"0.42013842",
"0.4198218",
"0.41980174",
"0.4195553",
"0.41455987",
"... | 0.63954246 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.